TILEGX Linux: Fill 'collect_regset' in regset structure.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8f1cee41
AA
12014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4 function. Move logic to...
5 (tilegx_linux_regmap): ... this new register map.
6 (tilegx_linux_regset): Refer to register map, replace supply
7 method by regcache_supply_regset, and add collect method.
8 * tilegx-tdep.h (enum tilegx_regnum): New enum value
9 TILEGX_FIRST_EASY_REGNUM.
10
c5741217
AA
112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12
13 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
14 that calls regcache_supply_regset and handles the EPC register
15 separately. Move main logic to...
16 (score7_linux_gregmap): ... this new register map.
17 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
18 (score7_linux_gregset): Refer to register map. Add collect method.
19 (score7_linux_regset_from_core_section): Replace
20 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
21 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
22 (struct regset): Delete unused forward declaraction.
23 (struct pt_regs): Delete structure definition.
24 (elf_gregset_t): Delete typedef.
25
81580573
AA
262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
27
28 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
29 (nios2_core_regset): Add collect method.
30
ba199d7d
AA
312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
32
33 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
34 platform-independent and don't write to read-only input buffer.
35 (m32r_linux_collect_gregset): New function.
36 (m32r_linux_gregset): Add collect method.
37
0006a9da
AA
382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
39
40 * hppa-linux-tdep.c (greg_map): Rename to...
41 (hppa_linux_gregmap): ... this. Also convert to
42 regcache_map_entry format.
43 (hppa_linux_supply_regset): Delete function.
44 (hppa_linux_supply_fpregset): Delete function. Move logic to...
45 (hppa_linux_fpregmap): ... this new register map.
46 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
47 register map, replace supply method by regcache_supply_regset, and
48 add collect method regcache_collect_regset.
49
901e1b23
AA
502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
51
52 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
53 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
54 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
55 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
56 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
57 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
58 (frv_linux_supply_gregset): Replace main logic by call to
59 regcache_supply_regset, but keep clearing gr32-gr63.
60 (frv_linux_supply_fpregset): Delete function.
61 (frv_linux_gregset): Refer to appropriate register map and add
62 regcache_collect_regset as the collect method.
63 (frv_linux_fpregset): Likewise. Also exchange the supply method
64 by regcache_supply_regset.
65
1d6e7555
AA
662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
69 by call to alpha_supply_int_regs.
70 (alpha_linux_collect_gregset): New function.
71 (alpha_linux_supply_fpregset): Replace logic by call to
72 alpha_supply_fp_regs.
73 (alpha_linux_collect_fpregset): New function.
74 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
75
d4d793bf
AA
762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
77
78 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
79 by call to regcache_collect_regset.
80 (supply_gregset, supply_fpregset): Call regcache_supply_regset
81 instead of aarch64_linux_supply_gregset/_fpregset.
82 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
83 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
84 header file instead.
85 (aarch64_linux_supply_gregset, supply_gregset_from_core)
86 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
87 functions. Move logic to ...
88 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
89 register maps.
90 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
91 refer to new register maps, replace *_regset_from_core by
92 regcache_supply_regset, and also use regcache_collect_regset.
93 * aarch64-linux-tdep.h: Include "regset.h".
94 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
95 Delete prototypes.
96 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
97 macros, moved from C source file.
98 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
99 variable declarations.
100
99b7da5d
AA
1012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
102
103 * s390-linux-nat.c: Include "regset.h".
104 (regmap_gregset): Delete macro.
105 (s390_64_regmap_gregset): New register map for
106 regcache_supply/_collect_regset.
107 (s390_64_gregset): New regset.
108 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
109 (regmap_fpregset): Delete macro.
110 (s390_native_supply, s390_native_collect): Delete functions.
111 (supply_gregset, fill_gregset): Replace s390-specific regmap
112 handling by a call to regcache_supply/_collect_regset.
113 (supply_fpregset, fill_fpregset): Call regcache_supply/
114 _collect_regset instead of s390_native_supply/_collect.
115 (fetch_regset, store_regset): Likewise. Also change the last
116 parameter to a regset instead of a regmap.
117 (s390_linux_fetch_inferior_registers)
118 (390_linux_store_inferior_registers): Adjust last parameter in
119 calls to fetch_regset and store_regset.
120 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
121 (s390_gregmap): ... this. Also make static const and convert to
122 regcache_map_entry format.
123 (s390x_regmap_gregset): Delete.
124 (s390_regmap_fpregset): Rename to...
125 (s390_fpregmap): ... this. Make static const and convert to
126 regcache_map_entry format.
127 (s390_regmap_upper, s390_regmap_last_break)
128 (s390x_regmap_last_break, s390_regmap_system_call)
129 (s390_regmap_tdb): Likewise.
130 (s390_supply_regset, s390_collect_regset): Remove functions.
131 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
132 s390_supply_regset.
133 (s390_gregset, s390_fpregset, s390_upper_regset)
134 (s390_last_break_regset, s390x_last_break_regset)
135 (s390_system_call_regset, s390_tdb_regset): Make global and
136 replace s390_supply/_collect_regset by regcache_supply/
137 _collect_regset.
138 (s390x_gregset): Delete.
139 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
140 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
141 (s390_regmap_fpregset, s390_regmap_last_break)
142 (s390x_regmap_last_break, s390_regmap_system_call)
143 (s390_regmap_tdb): Delete global variable declarations.
144 (s390_gregset, s390_fpregset, s390_last_break_regset)
145 (s390x_last_break_regset, s390_system_call_regset)
146 (s390_tdb_regset): New global variable declarations.
147
0b309272
AA
1482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
149
150 * regcache.c: Include "regset.h".
151 (regcache_transfer_regset): New local function.
152 (regcache_supply_regset, regcache_collect_regset): New functions.
153 * regcache.h (struct regcache_map_entry): New structure.
154 (REGCACHE_MAP_SKIP): New enum value.
155 (regcache_supply_regset, regcache_collect_regset): New prototypes.
156
7fefa8d7
AA
1572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
158
159 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
160 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
161 (ppc_linux_collect_gregset ): Likewise.
162 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
163 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
164 (ppc_collect_vrregset): Likewise.
165 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
166 Likewise.
167
96c4f946
YQ
1682014-08-07 Yao Qi <yao@codesourcery.com>
169
170 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
171 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
172 * remote.c (remote_read_bytes): Likewise.
173
fffbe6a8
YQ
1742014-08-07 Yao Qi <yao@codesourcery.com>
175
176 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
177
5ee8a82c
YQ
1782014-08-07 Yao Qi <yao@codesourcery.com>
179
180 PR remote/17230
181 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
182 TARGET_XFER_OK instead of 0.
183
bb974a24
GB
1842014-08-07 Gary Benson <gbenson@redhat.com>
185
186 * common/common-defs.h: Include errno.h.
187 * defs.h: Do not include errno.h.
188 * ada-typeprint.c: Likewise.
189 * c-typeprint.c: Likewise.
190 * core-regset.c: Likewise.
191 * corefile.c: Likewise.
192 * corelow.c: Likewise.
193 * event-loop.c: Likewise.
194 * f-typeprint.c: Likewise.
195 * gnu-nat.c: Likewise.
196 * go32-nat.c: Likewise.
197 * i386gnu-nat.c: Likewise.
198 * m2-typeprint.c: Likewise.
199 * nat/linux-btrace.c: Likewise.
200 * p-typeprint.c: Likewise.
201 * procfs.c: Likewise.
202 * remote-sim.c: Likewise.
203 * rs6000-nat.c: Likewise.
204 * target.c: Likewise.
205 * typeprint.c: Likewise.
206 * ui-file.c: Likewise.
207 * valops.c: Likewise.
208 * valprint.c: Likewise.
209
6d3d12eb
GB
2102014-08-07 Gary Benson <gbenson@redhat.com>
211
212 * common/common-defs.h: Include string.h.
213 * aarch64-tdep.c: Do not include string.h.
214 * ada-exp.y: Likewise.
215 * ada-lang.c: Likewise.
216 * ada-lex.l: Likewise.
217 * ada-typeprint.c: Likewise.
218 * ada-valprint.c: Likewise.
219 * aix-thread.c: Likewise.
220 * alpha-linux-tdep.c: Likewise.
221 * alpha-mdebug-tdep.c: Likewise.
222 * alpha-nat.c: Likewise.
223 * alpha-osf1-tdep.c: Likewise.
224 * alpha-tdep.c: Likewise.
225 * alphanbsd-tdep.c: Likewise.
226 * amd64-dicos-tdep.c: Likewise.
227 * amd64-linux-tdep.c: Likewise.
228 * amd64-nat.c: Likewise.
229 * amd64-sol2-tdep.c: Likewise.
230 * amd64fbsd-tdep.c: Likewise.
231 * amd64obsd-tdep.c: Likewise.
232 * arch-utils.c: Likewise.
233 * arm-linux-nat.c: Likewise.
234 * arm-linux-tdep.c: Likewise.
235 * arm-tdep.c: Likewise.
236 * arm-wince-tdep.c: Likewise.
237 * armbsd-tdep.c: Likewise.
238 * armnbsd-nat.c: Likewise.
239 * armnbsd-tdep.c: Likewise.
240 * armobsd-tdep.c: Likewise.
241 * avr-tdep.c: Likewise.
242 * ax-gdb.c: Likewise.
243 * ax-general.c: Likewise.
244 * bcache.c: Likewise.
245 * bfin-tdep.c: Likewise.
246 * breakpoint.c: Likewise.
247 * build-id.c: Likewise.
248 * buildsym.c: Likewise.
249 * c-exp.y: Likewise.
250 * c-lang.c: Likewise.
251 * c-typeprint.c: Likewise.
252 * c-valprint.c: Likewise.
253 * charset.c: Likewise.
254 * cli-out.c: Likewise.
255 * cli/cli-cmds.c: Likewise.
256 * cli/cli-decode.c: Likewise.
257 * cli/cli-dump.c: Likewise.
258 * cli/cli-interp.c: Likewise.
259 * cli/cli-logging.c: Likewise.
260 * cli/cli-script.c: Likewise.
261 * cli/cli-setshow.c: Likewise.
262 * cli/cli-utils.c: Likewise.
263 * coffread.c: Likewise.
264 * common/agent.c: Likewise.
265 * common/buffer.c: Likewise.
266 * common/buffer.h: Likewise.
267 * common/common-utils.c: Likewise.
268 * common/filestuff.c: Likewise.
269 * common/filestuff.c: Likewise.
270 * common/format.c: Likewise.
271 * common/print-utils.c: Likewise.
272 * common/rsp-low.c: Likewise.
273 * common/signals.c: Likewise.
274 * common/vec.h: Likewise.
275 * common/xml-utils.c: Likewise.
276 * core-regset.c: Likewise.
277 * corefile.c: Likewise.
278 * corelow.c: Likewise.
279 * cp-abi.c: Likewise.
280 * cp-name-parser.y: Likewise.
281 * cp-support.c: Likewise.
282 * cp-valprint.c: Likewise.
283 * cris-tdep.c: Likewise.
284 * d-exp.y: Likewise.
285 * darwin-nat.c: Likewise.
286 * dbxread.c: Likewise.
287 * dcache.c: Likewise.
288 * demangle.c: Likewise.
289 * dicos-tdep.c: Likewise.
290 * disasm.c: Likewise.
291 * doublest.c: Likewise.
292 * dsrec.c: Likewise.
293 * dummy-frame.c: Likewise.
294 * dwarf2-frame.c: Likewise.
295 * dwarf2loc.c: Likewise.
296 * dwarf2read.c: Likewise.
297 * elfread.c: Likewise.
298 * environ.c: Likewise.
299 * eval.c: Likewise.
300 * event-loop.c: Likewise.
301 * exceptions.c: Likewise.
302 * exec.c: Likewise.
303 * expprint.c: Likewise.
304 * f-exp.y: Likewise.
305 * f-lang.c: Likewise.
306 * f-typeprint.c: Likewise.
307 * f-valprint.c: Likewise.
308 * fbsd-nat.c: Likewise.
309 * findcmd.c: Likewise.
310 * findvar.c: Likewise.
311 * fork-child.c: Likewise.
312 * frame.c: Likewise.
313 * frv-linux-tdep.c: Likewise.
314 * frv-tdep.c: Likewise.
315 * gdb.c: Likewise.
316 * gdb_bfd.c: Likewise.
317 * gdbarch.c: Likewise.
318 * gdbarch.sh: Likewise.
319 * gdbtypes.c: Likewise.
320 * gnu-nat.c: Likewise.
321 * gnu-v2-abi.c: Likewise.
322 * gnu-v3-abi.c: Likewise.
323 * go-exp.y: Likewise.
324 * go-lang.c: Likewise.
325 * go32-nat.c: Likewise.
326 * guile/guile.c: Likewise.
327 * guile/scm-auto-load.c: Likewise.
328 * hppa-hpux-tdep.c: Likewise.
329 * hppa-linux-nat.c: Likewise.
330 * hppanbsd-tdep.c: Likewise.
331 * hppaobsd-tdep.c: Likewise.
332 * i386-cygwin-tdep.c: Likewise.
333 * i386-dicos-tdep.c: Likewise.
334 * i386-linux-tdep.c: Likewise.
335 * i386-nto-tdep.c: Likewise.
336 * i386-sol2-tdep.c: Likewise.
337 * i386-tdep.c: Likewise.
338 * i386bsd-tdep.c: Likewise.
339 * i386gnu-nat.c: Likewise.
340 * i386nbsd-tdep.c: Likewise.
341 * i386obsd-tdep.c: Likewise.
342 * i387-tdep.c: Likewise.
343 * ia64-libunwind-tdep.c: Likewise.
344 * ia64-linux-nat.c: Likewise.
345 * inf-child.c: Likewise.
346 * inf-ptrace.c: Likewise.
347 * inf-ttrace.c: Likewise.
348 * infcall.c: Likewise.
349 * infcmd.c: Likewise.
350 * inflow.c: Likewise.
351 * infrun.c: Likewise.
352 * interps.c: Likewise.
353 * iq2000-tdep.c: Likewise.
354 * irix5-nat.c: Likewise.
355 * jv-exp.y: Likewise.
356 * jv-lang.c: Likewise.
357 * jv-typeprint.c: Likewise.
358 * jv-valprint.c: Likewise.
359 * language.c: Likewise.
360 * linux-fork.c: Likewise.
361 * linux-nat.c: Likewise.
362 * lm32-tdep.c: Likewise.
363 * m2-exp.y: Likewise.
364 * m2-typeprint.c: Likewise.
365 * m32c-tdep.c: Likewise.
366 * m32r-linux-nat.c: Likewise.
367 * m32r-linux-tdep.c: Likewise.
368 * m32r-rom.c: Likewise.
369 * m32r-tdep.c: Likewise.
370 * m68hc11-tdep.c: Likewise.
371 * m68k-tdep.c: Likewise.
372 * m68kbsd-tdep.c: Likewise.
373 * m68klinux-nat.c: Likewise.
374 * m68klinux-tdep.c: Likewise.
375 * m88k-tdep.c: Likewise.
376 * machoread.c: Likewise.
377 * macrocmd.c: Likewise.
378 * main.c: Likewise.
379 * mdebugread.c: Likewise.
380 * mem-break.c: Likewise.
381 * memattr.c: Likewise.
382 * memory-map.c: Likewise.
383 * mep-tdep.c: Likewise.
384 * mi/mi-cmd-break.c: Likewise.
385 * mi/mi-cmd-disas.c: Likewise.
386 * mi/mi-cmd-env.c: Likewise.
387 * mi/mi-cmd-stack.c: Likewise.
388 * mi/mi-cmd-var.c: Likewise.
389 * mi/mi-cmds.c: Likewise.
390 * mi/mi-console.c: Likewise.
391 * mi/mi-getopt.c: Likewise.
392 * mi/mi-interp.c: Likewise.
393 * mi/mi-main.c: Likewise.
394 * mi/mi-parse.c: Likewise.
395 * microblaze-rom.c: Likewise.
396 * microblaze-tdep.c: Likewise.
397 * mingw-hdep.c: Likewise.
398 * minidebug.c: Likewise.
399 * minsyms.c: Likewise.
400 * mips-irix-tdep.c: Likewise.
401 * mips-linux-tdep.c: Likewise.
402 * mips-tdep.c: Likewise.
403 * mips64obsd-tdep.c: Likewise.
404 * mipsnbsd-tdep.c: Likewise.
405 * mipsread.c: Likewise.
406 * mn10300-linux-tdep.c: Likewise.
407 * mn10300-tdep.c: Likewise.
408 * monitor.c: Likewise.
409 * moxie-tdep.c: Likewise.
410 * mt-tdep.c: Likewise.
411 * nat/linux-btrace.c: Likewise.
412 * nat/linux-osdata.c: Likewise.
413 * nat/linux-procfs.c: Likewise.
414 * nat/linux-ptrace.c: Likewise.
415 * nat/linux-waitpid.c: Likewise.
416 * nbsd-tdep.c: Likewise.
417 * nios2-linux-tdep.c: Likewise.
418 * nto-procfs.c: Likewise.
419 * nto-tdep.c: Likewise.
420 * objc-lang.c: Likewise.
421 * objfiles.c: Likewise.
422 * opencl-lang.c: Likewise.
423 * osabi.c: Likewise.
424 * osdata.c: Likewise.
425 * p-exp.y: Likewise.
426 * p-lang.c: Likewise.
427 * p-typeprint.c: Likewise.
428 * parse.c: Likewise.
429 * posix-hdep.c: Likewise.
430 * ppc-linux-nat.c: Likewise.
431 * ppc-sysv-tdep.c: Likewise.
432 * ppcfbsd-tdep.c: Likewise.
433 * ppcnbsd-tdep.c: Likewise.
434 * ppcobsd-tdep.c: Likewise.
435 * printcmd.c: Likewise.
436 * procfs.c: Likewise.
437 * prologue-value.c: Likewise.
438 * python/py-auto-load.c: Likewise.
439 * python/py-gdb-readline.c: Likewise.
440 * ravenscar-thread.c: Likewise.
441 * regcache.c: Likewise.
442 * registry.c: Likewise.
443 * remote-fileio.c: Likewise.
444 * remote-m32r-sdi.c: Likewise.
445 * remote-mips.c: Likewise.
446 * remote-notif.c: Likewise.
447 * remote-sim.c: Likewise.
448 * remote.c: Likewise.
449 * reverse.c: Likewise.
450 * rs6000-aix-tdep.c: Likewise.
451 * ser-base.c: Likewise.
452 * ser-go32.c: Likewise.
453 * ser-mingw.c: Likewise.
454 * ser-pipe.c: Likewise.
455 * ser-tcp.c: Likewise.
456 * ser-unix.c: Likewise.
457 * serial.c: Likewise.
458 * sh-tdep.c: Likewise.
459 * sh64-tdep.c: Likewise.
460 * shnbsd-tdep.c: Likewise.
461 * skip.c: Likewise.
462 * sol-thread.c: Likewise.
463 * solib-dsbt.c: Likewise.
464 * solib-frv.c: Likewise.
465 * solib-osf.c: Likewise.
466 * solib-som.c: Likewise.
467 * solib-spu.c: Likewise.
468 * solib-target.c: Likewise.
469 * solib.c: Likewise.
470 * somread.c: Likewise.
471 * source.c: Likewise.
472 * sparc-nat.c: Likewise.
473 * sparc-sol2-tdep.c: Likewise.
474 * sparc-tdep.c: Likewise.
475 * sparc64-tdep.c: Likewise.
476 * sparc64fbsd-tdep.c: Likewise.
477 * sparc64nbsd-tdep.c: Likewise.
478 * sparcnbsd-tdep.c: Likewise.
479 * spu-linux-nat.c: Likewise.
480 * spu-multiarch.c: Likewise.
481 * spu-tdep.c: Likewise.
482 * stabsread.c: Likewise.
483 * stack.c: Likewise.
484 * std-regs.c: Likewise.
485 * symfile.c: Likewise.
486 * symmisc.c: Likewise.
487 * symtab.c: Likewise.
488 * target.c: Likewise.
489 * thread.c: Likewise.
490 * tilegx-linux-nat.c: Likewise.
491 * tilegx-tdep.c: Likewise.
492 * top.c: Likewise.
493 * tracepoint.c: Likewise.
494 * tui/tui-command.c: Likewise.
495 * tui/tui-data.c: Likewise.
496 * tui/tui-disasm.c: Likewise.
497 * tui/tui-file.c: Likewise.
498 * tui/tui-layout.c: Likewise.
499 * tui/tui-out.c: Likewise.
500 * tui/tui-regs.c: Likewise.
501 * tui/tui-source.c: Likewise.
502 * tui/tui-stack.c: Likewise.
503 * tui/tui-win.c: Likewise.
504 * tui/tui-windata.c: Likewise.
505 * tui/tui-winsource.c: Likewise.
506 * typeprint.c: Likewise.
507 * ui-file.c: Likewise.
508 * ui-out.c: Likewise.
509 * user-regs.c: Likewise.
510 * utils.c: Likewise.
511 * v850-tdep.c: Likewise.
512 * valarith.c: Likewise.
513 * valops.c: Likewise.
514 * valprint.c: Likewise.
515 * value.c: Likewise.
516 * varobj.c: Likewise.
517 * vax-tdep.c: Likewise.
518 * vaxnbsd-tdep.c: Likewise.
519 * vaxobsd-tdep.c: Likewise.
520 * windows-nat.c: Likewise.
521 * xcoffread.c: Likewise.
522 * xml-support.c: Likewise.
523 * xstormy16-tdep.c: Likewise.
524 * xtensa-linux-nat.c: Likewise.
525
dccbb609
GB
5262014-08-07 Gary Benson <gbenson@redhat.com>
527
528 * common/common-defs.h: Include gdb_assert.h.
529 * aarch64-tdep.c: Do not include gdb_assert.h.
530 * addrmap.c: Likewise.
531 * aix-thread.c: Likewise.
532 * alpha-linux-tdep.c: Likewise.
533 * alpha-mdebug-tdep.c: Likewise.
534 * alphanbsd-tdep.c: Likewise.
535 * amd64-nat.c: Likewise.
536 * amd64-tdep.c: Likewise.
537 * amd64bsd-nat.c: Likewise.
538 * amd64fbsd-nat.c: Likewise.
539 * amd64fbsd-tdep.c: Likewise.
540 * amd64nbsd-nat.c: Likewise.
541 * amd64nbsd-tdep.c: Likewise.
542 * amd64obsd-nat.c: Likewise.
543 * amd64obsd-tdep.c: Likewise.
544 * arch-utils.c: Likewise.
545 * arm-tdep.c: Likewise.
546 * armbsd-tdep.c: Likewise.
547 * auxv.c: Likewise.
548 * bcache.c: Likewise.
549 * bfin-tdep.c: Likewise.
550 * blockframe.c: Likewise.
551 * breakpoint.c: Likewise.
552 * bsd-kvm.c: Likewise.
553 * bsd-uthread.c: Likewise.
554 * buildsym.c: Likewise.
555 * c-exp.y: Likewise.
556 * c-lang.c: Likewise.
557 * charset.c: Likewise.
558 * cleanups.c: Likewise.
559 * cli-out.c: Likewise.
560 * cli/cli-decode.c: Likewise.
561 * cli/cli-dump.c: Likewise.
562 * cli/cli-logging.c: Likewise.
563 * cli/cli-script.c: Likewise.
564 * cli/cli-utils.c: Likewise.
565 * coffread.c: Likewise.
566 * common/common-utils.c: Likewise.
567 * common/queue.h: Likewise.
568 * common/signals.c: Likewise.
569 * common/vec.h: Likewise.
570 * complaints.c: Likewise.
571 * completer.c: Likewise.
572 * corelow.c: Likewise.
573 * cp-abi.c: Likewise.
574 * cp-name-parser.y: Likewise.
575 * cp-namespace.c: Likewise.
576 * cp-support.c: Likewise.
577 * cris-tdep.c: Likewise.
578 * dbxread.c: Likewise.
579 * dictionary.c: Likewise.
580 * doublest.c: Likewise.
581 * dsrec.c: Likewise.
582 * dummy-frame.c: Likewise.
583 * dwarf2-frame-tailcall.c: Likewise.
584 * dwarf2-frame.c: Likewise.
585 * dwarf2expr.c: Likewise.
586 * dwarf2loc.c: Likewise.
587 * dwarf2read.c: Likewise.
588 * eval.c: Likewise.
589 * event-loop.c: Likewise.
590 * exceptions.c: Likewise.
591 * expprint.c: Likewise.
592 * f-valprint.c: Likewise.
593 * fbsd-nat.c: Likewise.
594 * findvar.c: Likewise.
595 * frame-unwind.c: Likewise.
596 * frame.c: Likewise.
597 * frv-tdep.c: Likewise.
598 * gcore.c: Likewise.
599 * gdb-dlfcn.c: Likewise.
600 * gdb_bfd.c: Likewise.
601 * gdbarch.c: Likewise.
602 * gdbarch.sh: Likewise.
603 * gdbtypes.c: Likewise.
604 * gnu-nat.c: Likewise.
605 * gnu-v3-abi.c: Likewise.
606 * go-lang.c: Likewise.
607 * guile/scm-exception.c: Likewise.
608 * guile/scm-gsmob.c: Likewise.
609 * guile/scm-lazy-string.c: Likewise.
610 * guile/scm-math.c: Likewise.
611 * guile/scm-pretty-print.c: Likewise.
612 * guile/scm-safe-call.c: Likewise.
613 * guile/scm-utils.c: Likewise.
614 * guile/scm-value.c: Likewise.
615 * h8300-tdep.c: Likewise.
616 * hppa-hpux-nat.c: Likewise.
617 * hppa-tdep.c: Likewise.
618 * hppanbsd-tdep.c: Likewise.
619 * hppaobsd-tdep.c: Likewise.
620 * i386-darwin-nat.c: Likewise.
621 * i386-darwin-tdep.c: Likewise.
622 * i386-nto-tdep.c: Likewise.
623 * i386-tdep.c: Likewise.
624 * i386bsd-nat.c: Likewise.
625 * i386fbsd-tdep.c: Likewise.
626 * i386gnu-nat.c: Likewise.
627 * i386nbsd-tdep.c: Likewise.
628 * i386obsd-tdep.c: Likewise.
629 * i387-tdep.c: Likewise.
630 * ia64-libunwind-tdep.c: Likewise.
631 * ia64-tdep.c: Likewise.
632 * inf-ptrace.c: Likewise.
633 * inf-ttrace.c: Likewise.
634 * infcall.c: Likewise.
635 * infcmd.c: Likewise.
636 * infrun.c: Likewise.
637 * inline-frame.c: Likewise.
638 * interps.c: Likewise.
639 * jv-lang.c: Likewise.
640 * jv-typeprint.c: Likewise.
641 * linux-fork.c: Likewise.
642 * linux-nat.c: Likewise.
643 * linux-thread-db.c: Likewise.
644 * m32c-tdep.c: Likewise.
645 * m32r-linux-nat.c: Likewise.
646 * m32r-tdep.c: Likewise.
647 * m68k-tdep.c: Likewise.
648 * m68kbsd-nat.c: Likewise.
649 * m68kbsd-tdep.c: Likewise.
650 * m88k-tdep.c: Likewise.
651 * machoread.c: Likewise.
652 * macroexp.c: Likewise.
653 * macrotab.c: Likewise.
654 * maint.c: Likewise.
655 * mdebugread.c: Likewise.
656 * memory-map.c: Likewise.
657 * mep-tdep.c: Likewise.
658 * mi/mi-common.c: Likewise.
659 * microblaze-tdep.c: Likewise.
660 * mingw-hdep.c: Likewise.
661 * mips-linux-nat.c: Likewise.
662 * mips-linux-tdep.c: Likewise.
663 * mips-tdep.c: Likewise.
664 * mips64obsd-tdep.c: Likewise.
665 * mipsnbsd-tdep.c: Likewise.
666 * mn10300-linux-tdep.c: Likewise.
667 * mn10300-tdep.c: Likewise.
668 * moxie-tdep.c: Likewise.
669 * mt-tdep.c: Likewise.
670 * nat/linux-btrace.c: Likewise.
671 * nat/linux-osdata.c: Likewise.
672 * nat/linux-ptrace.c: Likewise.
673 * nat/mips-linux-watch.c: Likewise.
674 * nios2-linux-tdep.c: Likewise.
675 * nios2-tdep.c: Likewise.
676 * objc-lang.c: Likewise.
677 * objfiles.c: Likewise.
678 * obsd-nat.c: Likewise.
679 * opencl-lang.c: Likewise.
680 * osabi.c: Likewise.
681 * parse.c: Likewise.
682 * ppc-linux-nat.c: Likewise.
683 * ppc-sysv-tdep.c: Likewise.
684 * ppcfbsd-nat.c: Likewise.
685 * ppcfbsd-tdep.c: Likewise.
686 * ppcnbsd-nat.c: Likewise.
687 * ppcnbsd-tdep.c: Likewise.
688 * ppcobsd-nat.c: Likewise.
689 * ppcobsd-tdep.c: Likewise.
690 * printcmd.c: Likewise.
691 * procfs.c: Likewise.
692 * prologue-value.c: Likewise.
693 * psymtab.c: Likewise.
694 * python/py-lazy-string.c: Likewise.
695 * python/py-value.c: Likewise.
696 * regcache.c: Likewise.
697 * reggroups.c: Likewise.
698 * registry.c: Likewise.
699 * remote-sim.c: Likewise.
700 * remote.c: Likewise.
701 * rs6000-aix-tdep.c: Likewise.
702 * rs6000-tdep.c: Likewise.
703 * s390-linux-tdep.c: Likewise.
704 * score-tdep.c: Likewise.
705 * ser-base.c: Likewise.
706 * ser-mingw.c: Likewise.
707 * sh-tdep.c: Likewise.
708 * sh64-tdep.c: Likewise.
709 * solib-darwin.c: Likewise.
710 * solib-spu.c: Likewise.
711 * solib-svr4.c: Likewise.
712 * source.c: Likewise.
713 * sparc-nat.c: Likewise.
714 * sparc-sol2-tdep.c: Likewise.
715 * sparc-tdep.c: Likewise.
716 * sparc64-sol2-tdep.c: Likewise.
717 * sparc64-tdep.c: Likewise.
718 * sparc64fbsd-tdep.c: Likewise.
719 * sparc64nbsd-tdep.c: Likewise.
720 * sparc64obsd-tdep.c: Likewise.
721 * sparcnbsd-tdep.c: Likewise.
722 * sparcobsd-tdep.c: Likewise.
723 * spu-multiarch.c: Likewise.
724 * spu-tdep.c: Likewise.
725 * stabsread.c: Likewise.
726 * stack.c: Likewise.
727 * symfile.c: Likewise.
728 * symtab.c: Likewise.
729 * target-descriptions.c: Likewise.
730 * target-memory.c: Likewise.
731 * target.c: Likewise.
732 * tic6x-linux-tdep.c: Likewise.
733 * tic6x-tdep.c: Likewise.
734 * tilegx-linux-nat.c: Likewise.
735 * tilegx-tdep.c: Likewise.
736 * top.c: Likewise.
737 * tramp-frame.c: Likewise.
738 * tui/tui-out.c: Likewise.
739 * tui/tui-winsource.c: Likewise.
740 * ui-out.c: Likewise.
741 * user-regs.c: Likewise.
742 * utils.c: Likewise.
743 * v850-tdep.c: Likewise.
744 * valops.c: Likewise.
745 * value.c: Likewise.
746 * varobj.c: Likewise.
747 * vax-nat.c: Likewise.
748 * xml-syscall.c: Likewise.
749 * xml-tdesc.c: Likewise.
750 * xstormy16-tdep.c: Likewise.
751 * xtensa-linux-nat.c: Likewise.
752 * xtensa-tdep.c: Likewise.
753
e76df0d0
GB
7542014-08-07 Gary Benson <gbenson@redhat.com>
755
756 * common/common-defs.h: Include common-utils.h.
757 * defs.h: Do not include common-utils.h.
758 * common/gdb_assert.h: Likewise.
759 * darwin-nat.h: Likewise.
760 * nat/linux-btrace.c: Likewise.
761 * target/waitstatus.h: Likewise.
762
4cb9c816
GB
7632014-08-07 Gary Benson <gbenson@redhat.com>
764
765 * common/common-defs.h: Include ptid.h.
766 * defs.h: Do not include ptid.h.
767 * inferior.h: Likewise.
768 * infrun.h: Likewise.
769 * nat/linux-btrace.h: Likewise.
770 * nat/linux-osdata.h: Likewise.
771 * target/waitstatus.h: Likewise.
772
3995eeee
GB
7732014-08-07 Gary Benson <gbenson@redhat.com>
774
775 * common/common-defs.h: Include gdb_locale.h.
776 * defs.h: Do not include gdb_locale.h.
777
cb9f1a9b
GB
7782014-08-07 Gary Benson <gbenson@redhat.com>
779
780 * common/common-defs.h: Include gdb/signals.h.
781 * defs.h: Do not include gdb/signals.h.
782
a5fceff8
GB
7832014-08-07 Gary Benson <gbenson@redhat.com>
784
785 * common/common-defs.h: Include pathmax.h.
786 * defs.h: Do not include pathmax.h.
787
b9391142
GB
7882014-08-07 Gary Benson <gbenson@redhat.com>
789
790 * common/common-defs.h: Include libiberty.h.
791 * defs.h: Do not include libiberty.h.
792 * common/queue.h: Likewise.
793 * cp-name-parser.y: Likewise.
794 * mi/mi-cmd-catch.c: Likewise.
795 * python/python.c: Likewise.
796
0e443c87
GB
7972014-08-07 Gary Benson <gbenson@redhat.com>
798
799 * common/common-defs.h: Include ansidecl.h.
800 * defs.h: Do not include ansidecl.h.
801 * common/buffer.h: Likewise.
802 * common/common-utils.h: Likewise.
803
8ebb3f56
GB
8042014-08-07 Gary Benson <gbenson@redhat.com>
805
806 * common/common-defs.h: Include stddef.h.
807 * defs.h: Do not include stddef.h.
808 * common/common-utils.h: Likewise.
809 * amd64fbsd-nat.c: Likewise.
810 * bcache.c: Likewise.
811 * charset.c: Likewise.
812 * common/buffer.h: Likewise.
813 * common/vec.h: Likewise.
814 * i386bsd-nat.c: Likewise.
815 * nat/linux-btrace.h: Likewise.
816 * ppcfbsd-nat.c: Likewise.
817 * ppcnbsd-tdep.h: Likewise.
818 * ppcobsd-nat.c: Likewise.
819 * ppcobsd-tdep.h: Likewise.
820 * python/py-gdb-readline.c: Likewise.
821
8980bdf6
GB
8222014-08-07 Gary Benson <gbenson@redhat.com>
823
824 * common/common-defs.h: Include stdarg.h.
825 * defs.h: Do not include stdarg.h.
826 * ada-lang.c: Likewise.
827 * common/common-utils.h: Likewise.
828 * guile/scm-string.c: Likewise.
829 * guile/scm-utils.c: Likewise.
830 * m32c-tdep.c: Likewise.
831
d7096f71
GB
8322014-08-07 Gary Benson <gbenson@redhat.com>
833
834 * common/common-defs.h: Include stdlib.h.
835 * defs.h: Do not include stdlib.h.
836 * addrmap.c: Likewise.
837 * bcache.c: Likewise.
838 * common/buffer.c: Likewise.
839 * common/common-utils.c: Likewise.
840 * cp-name-parser.y: Likewise.
841 * go32-nat.c: Likewise.
842 * mn10300-linux-tdep.c: Likewise.
843 * nat/linux-osdata.c: Likewise.
844 * tui/tui.c: Likewise.
845 * windows-nat.c: Likewise.
846
d02f550d
GB
8472014-08-07 Gary Benson <gbenson@redhat.com>
848
849 * common/common-defs.h: Include stdio.h.
850 * defs.h: Do not include stdio.h.
851 * ada-lang.c: Likewise.
852 * common/buffer.c: Likewise.
853 * common/common-utils.c: Likewise.
854 * cp-name-parser.y: Likewise.
855 * gnu-nat.c: Likewise.
856 * go32-nat.c: Likewise.
857 * i386gnu-nat.c: Likewise.
858 * proc-api.c: Likewise.
859 * proc-events.c: Likewise.
860 * proc-flags.c: Likewise.
861 * proc-why.c: Likewise.
862 * python/python-internal.h: Likewise.
863 * target-memory.c: Likewise.
864 * tui/tui-io.c: Likewise.
865 * tui/tui.c: Likewise.
866
b6d7a4bf
SM
8672014-08-06 Simon Marchi <simon.marchi@ericsson.com>
868
869 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
870 (scan_dyntag_auxv): Same.
871
af19829b
YQ
8722014-08-06 Yao Qi <yao@codesourcery.com>
873
874 * amd64-linux-nat.c: Remove duplicated include
875 "x86-linux-nat.h".
876 * i386-linux-nat.c: Likewise.
877
8e07a239
YQ
8782014-08-06 Yao Qi <yao@codesourcery.com>
879
880 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
881 operand" with "Special opcode" in comments.
882
7bfe8241
GB
8832014-08-05 Gary Benson <gbenson@redhat.com>
884
885 * interps.c (initialize_interps): Remove prototype.
886 (interpreter_initialized): Remove static global.
887 (interp_add): Do not call initialize_interps.
888 (initialize_interps): Remove function.
889
d6c95504
GB
8902014-08-05 Gary Benson <gbenson@redhat.com>
891
892 * utils.c (vwarning): Remove spurious va_end.
893
241fd515
AM
8942014-08-05 Alan Modra <amodra@gmail.com>
895
896 * charset.c (convert_between_encodings): Cast result of obstack_base.
897 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
898 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
899 (read_unwind_info): Use size_t for some locals.
900 * jit.c (finalize_symtab): Likewise.
901 * utils.c (hashtab_obstack_allocate): Likewise.
902 * symmisc.c (print_objfile_statistics): Update format strings.
903
dc304a94
JK
9042014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
905
906 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
907 (Changes in GDB 7.8): ... here.
908
3cecbbbe
TT
9092014-08-04 Tom Tromey <tromey@redhat.com>
910
911 * target.c (set_targetdebug): New function.
912 (initialize_targets): Pass set_targetdebug when creating "set
913 debug target".
914
6908c509
JB
9152014-08-01 Joel Brobecker <brobecker@adacore.com>
916
917 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
918 if detecting a variable-sized field that is not the last field.
919 Fix struct type length computation.
920
53e8f97d
JB
9212014-08-01 Joel Brobecker <brobecker@adacore.com>
922
923 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
924 Add debug trace.
925
e068c55d
JB
9262014-08-01 Joel Brobecker <brobecker@adacore.com>
927
928 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
929 Remove "+ 8" offset in computation of CHAIN_VMA.
930
4d4ca2a1
DE
9312014-07-31 Doug Evans <dje@google.com>
932
933 * inflow.c (child_terminal_inferior): Add comment.
934 (child_terminal_ours_for_output): Add comment.
935 (child_terminal_ours): Add comment.
936 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
937 (linux_nat_terminal_ours): Add comment.
938
462f517e
GB
9392014-07-31 Gary Benson <gbenson@redhat.com>
940
941 * common/btrace-common.h: Do not include defs.h or server.h.
942 * nat/mips-linux-watch.h: Likewise.
943 * gdb-dlfcn.h: Do not include defs.h.
944 * tracefile.h: Likewise.
945
74228e77
RM
9462014-07-30 Roland McGrath <mcgrathr@google.com>
947
948 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
949
014f9477
TT
9502014-07-30 Tom Tromey <tromey@redhat.com>
951
952 * bsd-kvm.c (bsd_kvm_open): Constify.
953 * corelow.c (core_open): Constify.
954 * ctf.c (ctf_open): Constify.
955 * dbug-rom.c (dbug_open): Constify.
956 * exec.c (exec_open): Constify.
957 * m32r-rom.c (m32r_open, mon2000_open): Constify.
958 * microblaze-rom.c (picobug_open): Constify.
959 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
960 Constify.
961 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
962 * record-btrace.c (record_btrace_open): Constify.
963 * record-full.c (record_full_core_open_1, record_full_open_1)
964 (record_full_open): Constify.
965 * remote-m32r-sdi.c (m32r_open): Constify.
966 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
967 (rockhopper_open, lsi_open): Constify.
968 * remote-sim.c (gdbsim_open): Constify.
969 * remote.c (remote_open, extended_remote_open, remote_open_1):
970 Constify.
971 * target.h (struct target_ops) <to_open>: Make "arg" const.
972 * tracefile-tfile.c (tfile_open): Constify.
973
e799154c
TT
9742014-07-30 Tom Tromey <tromey@redhat.com>
975
976 * breakpoint.c (map_breakpoint_numbers): Update.
977 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
978 (get_number_const): New function.
979 (get_number): Rewrite using get_number_const.
980 (init_number_or_range): Make "string" const.
981 (number_is_in_list): Make "list" const.
982 * cli/cli-utils.h (get_number_const): Declare.
983 (struct get_number_or_range_state) <string, end_ptr>: Now const.
984 (init_number_or_range, number_is_in_list): Update.
985 * printcmd.c (map_display_numbers): Update.
986 * value.c (value_from_history_ref): Constify.
987 * value.h (value_from_history_ref): Update.
988
5f08566b
TT
9892014-07-30 Tom Tromey <tromey@redhat.com>
990
991 * corefile.c (hook_type, call_extra_exec_file_hooks)
992 (specify_exec_file_hook): Constify.
993 * exec.c (exec_file_attach): Make "filename" const.
994 * gdbcore.h (deprecated_exec_file_display_hook)
995 (specify_exec_file_hook, exec_file_attach): Constify.
996 * main.c (captured_main): Use catch_command_errors_const.
997
8981c758
TT
9982014-07-30 Tom Tromey <tromey@redhat.com>
999
1000 * target.c (open_target): New function.
1001 (add_target_with_completer, add_deprecated_target_alias): Use
1002 set_cmd_sfunc, set_cmd_context.
1003 (debug_to_open): Remove.
1004 (setup_target_debug): Update.
1005
a1c7835a
YQ
10062014-07-30 Yao Qi <yao@codesourcery.com>
1007
1008 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1009 comments.
1010 * parse.c (exp_iterate): Update comments.
1011
976411d6
GB
10122014-07-30 Gary Benson <gbenson@redhat.com>
1013
1014 * common/common-defs.h: New file.
1015 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1016 * defs.h: Include common-defs.h.
1017 Do not include config.h or build-gnulib/config.h.
1018
5d4848a4
GB
10192014-07-30 Gary Benson <gbenson@redhat.com>
1020
1021 * common/common-utils.h: Do not include config.h.
1022 * nat/linux-btrace.h: Likewise.
1023
d41f6d8e
GB
10242014-07-30 Gary Benson <gbenson@redhat.com>
1025
1026 * btrace.c: Include defs.h.
1027 * common/ptid.c: Include defs.h or server.h as appropriate.
1028 * nat/mips-linux-watch.c: Likewise.
1029
84202f9c
TT
10302014-07-29 Tom Tromey <tromey@redhat.com>
1031
1032 * target.c (target_is_pushed): Simplify.
1033
2530441c
JB
10342014-07-29 Joel Brobecker <brobecker@adacore.com>
1035
1036 GDB 7.8 released.
1037
7e09a223
YQ
10382014-07-29 Yao Qi <yao@codesourcery.com>
1039
1040 PR gdb/17206
1041 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1042
7ebdbe92
DE
10432014-07-28 Doug Evans <xdje42@gmail.com>
1044
1045 PR guile/17203
1046 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1047 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1048 parameters.
1049
f347ffc9
WN
10502014-07-28 Will Newton <will.newton@linaro.org>
1051
1052 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1053 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1054 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1055 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1056 (THUMB2_EABI_SYSCALL): Likewise.
1057 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1058 struct tramp_frame.
1059 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1060 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1061
37c5f1f7
DE
10622014-07-27 Doug Evans <xdje42@gmail.com>
1063
1064 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1065
0c3abbc7
DE
10662014-07-27 Doug Evans <xdje42@gmail.com>
1067
1068 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1069
e76c5d17
DE
10702014-07-26 Ludovic Courtès <ludo@gnu.org>
1071 Doug Evans <xdje42@gmail.com>
1072
1073 PR guile/17146
1074 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1075 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1076 * configure.ac: Try to use guild to compile an scm file, if it fails
1077 then disable guile support.
1078 * configure: Regenerate.
1079 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1080 GUILE_FILE_LIST.
1081 (GUILE_COMPILED_FILES): New variable.
1082 (GUILE_FILES) Update.
1083 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1084 (stamp-guile): Compile scm files.
1085 * guile/guile.c (boot_guile_support): New function.
1086 (standard_throw_args_p): New function.
1087 (print_standard_throw_error, print_throw_error): New functions.
1088 (handle_boot_error): New function.
1089 (initialize_scheme_side): Rewrite to call boot_guile_support.
1090 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1091 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1092
186fcde0
DE
10932014-07-26 Ludovic Courtès <ludo@gnu.org>
1094 Doug Evans <xdje42@gmail.com>
1095
1096 PR guile/17146
1097 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1098 * guile/lib/gdb/support.scm: New file.
1099 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1100 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1101 All uses updated.
1102 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1103 All uses updated.
1104 (%assert-type): Ditto, and renamed to assert-type.
1105 (%exception-print-style): Delete.
1106
4df42755
DE
11072014-07-26 Doug Evans <xdje42@gmail.com>
1108
1109 PR build/17105
1110 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1111 * configure: Regenerate.
1112 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1113 PYTHON_FILES.
1114 (PYTHON_FILES): New variable.
1115 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1116 (GUILE_FILES): New variable.
1117 (stamp-python, install-python, uninstall-python): Handle empty
1118 file list.
1119 (stamp-guile, install-guile, uninstall-guile): Ditto.
1120
ee7333ae
DE
11212014-07-26 Doug Evans <xdje42@gmail.com>
1122
1123 PR guile/17177
1124 * guile/lib/gdb.scm (pretty-printers): Export.
1125 (set-pretty-printers!): Export.
1126 * guile/lib/gdb/printing.scm (gdb module): Update.
1127 (prepend-pretty-printer!, append-pretty-printer!): Update.
1128 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1129 (pretty_printer_list_var): Delete.
1130 (pretty_printer_list): New static global.
1131 (gdbscm_pretty_printers): New function.
1132 (gdbscm_set_pretty_printers_x): New function.
1133 (ppscm_find_pretty_printer_from_gdb): Update.
1134 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1135 (gdbscm_initialize_pretty_printers): Update.
1136
74edf516
DE
11372014-07-26 Doug Evans <xdje42@gmail.com>
1138
1139 PR 17185
1140 * configure.ac: Add check for header gc/gc.h.
1141 Add check for function setenv.
1142 * configure: Regenerate.
1143 * config.in: Regenerate.
1144 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1145
d54398a7
MR
11462014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1147
1148 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1149 variation in gdbarch matching.
1150
ab16fce8
TT
11512014-07-25 Tom Tromey <tromey@redhat.com>
1152
1153 * exec.c (using_exec_ops): Remove.
1154 (exec_close_1): Update. Remove extraneous block, reindent.
1155 (add_target_sections): Use target_is_pushed.
1156
88056fbb
PA
11572014-07-25 Pedro Alves <palves@redhat.com>
1158
1159 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1160 * monitor.c (monitor_create_inferior): Likewise.
1161 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1162 * remote-sim.c (gdbsim_create_inferior): Likewise.
1163 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1164 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1165 * windows-nat.c (do_initial_windows_stuff): Likewise.
1166
70509625
PA
11672014-07-25 Pedro Alves <palves@redhat.com>
1168
1169 * NEWS: Mention signal passing and "signal" command changes.
1170 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1171 comment.
1172 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1173 call.
1174 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1175 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1176 (jump_command): Adjust clear_proceed_status call.
1177 (signal_command): Warn if other thread that are resumed have
1178 signals that will be delivered. Adjust clear_proceed_status call.
1179 (until_next_command, finish_command)
1180 (proceed_after_attach_callback, attach_command_post_wait)
1181 (attach_command): Adjust clear_proceed_status call.
1182 * infrun.c (proceed_after_vfork_done): Likewise.
1183 (proceed_after_attach_callback): Adjust comment.
1184 (clear_proceed_status_thread): Clear stop_signal if not in pass
1185 state.
1186 (clear_proceed_status_callback): Delete.
1187 (clear_proceed_status): New 'step' parameter. Only clear the
1188 proceed status of threads the command being prepared is about to
1189 resume.
1190 (proceed): If passed in an explicit signal, override stop_signal
1191 with it. Don't pass the last stop signal to the thread we're
1192 resuming.
1193 (init_wait_for_inferior): Adjust clear_proceed_status call.
1194 (switch_back_to_stepped_thread): Clear the signal if it should not
1195 be passed.
1196 * infrun.h (clear_proceed_status): New 'step' parameter.
1197 (user_visible_resume_ptid): Add comment.
1198 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1199 signal is in pass state.
1200 * remote.c (append_pending_thread_resumptions): Likewise.
1201 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1202
d8be2939
TT
12032014-07-25 Tom Tromey <tromey@redhat.com>
1204
1205 * target.h (target_stopped_data_address)
1206 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1207 parentheses.
1208
7d0d9d2b
PL
12092014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1210
1211 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1212 comments.
1213 (avr_pointer_to_address): Likewise.
1214
e9e7f724
TT
12152014-07-24 Tom Tromey <tromey@redhat.com>
1216
1217 * monitor.c (compile_pattern): Update.
1218 * target.h (struct target_ops) <to_shortname, to_longname,
1219 to_doc>: Now const.
1220
1947513d
TT
12212014-07-24 Tom Tromey <tromey@redhat.com>
1222
1223 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1224 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1225 (add_info_alias, add_com): Make "doc" const.
1226 (print_doc_line): Make "str" const.
1227 (delete_cmd): Update.
1228 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1229 (print_doc_line): Update.
1230 * cli/cli-script.c (document_command): Update.
1231 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1232 (add_com, add_info, add_info_alias): Update.
1233 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1234 * python/py-cmd.c (cmdpy_destroyer): Update.
1235
64e61d29
TT
12362014-07-24 Tom Tromey <tromey@redhat.com>
1237
1238 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1239 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1240 (help_cmd_list): Constify.
1241 (lookup_cmd): Update.
1242 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1243 const.
1244 (help_cmd_list, apropos_cmd): Update.
1245 * cli/cli-script.c (show_user): Update.
1246 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1247 * cli/cli-setshow.h (cmd_show_list): Update.
1248 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1249 (cmd_show_list): Update.
1250 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1251 * python/py-cmd.c (cmdpy_destroyer): Update.
1252
429e55ea
TT
12532014-07-24 Tom Tromey <tromey@redhat.com>
1254
1255 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1256 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1257 const.
1258 * command.h (deprecate_cmd): Update.
1259 * maint.c (maintenance_do_deprecate): Add casts.
1260
64669f3b
TT
12612014-07-24 Tom Tromey <tromey@redhat.com>
1262
1263 * cli/cli-decode.c (help_cmd): Make parameter "const".
1264 * cli/cli-decode.h (help_cmd): Update.
1265
d3d3328b
TT
12662014-07-24 Tom Tromey <tromey@redhat.com>
1267
1268 * stack.c (up_silently_base, down_silently_base): Make argument
1269 const.
1270
414842dc
TT
12712014-07-24 Tom Tromey <tromey@redhat.com>
1272
1273 * solib.c (solib_add): Make "pattern" const.
1274 * solib.h (solib_add): Update.
1275
baa336ce
TT
12762014-07-24 Tom Tromey <tromey@redhat.com>
1277
1278 * remote.c (remote_serial_open, print_packet, putpkt)
1279 (putpkt_binary): Constify.
1280 * remote.h (putpkt): Update.
1281
5a19e2d0
TT
12822014-07-24 Tom Tromey <tromey@redhat.com>
1283
1284 * monitor.c (monitor_open): Make "args" const.
1285 * monitor.h (monitor_open): Update.
1286
fc4baa5e
TT
12872014-07-24 Tom Tromey <tromey@redhat.com>
1288
1289 * maint.c (match_bfd_flags): Make "string" const.
1290 (print_bfd_section_info): Remove casts.
1291 (print_objfile_section_info): Make "string" const.
1292
0d5f0dbe
TT
12932014-07-24 Tom Tromey <tromey@redhat.com>
1294
1295 * inf-child.c (inf_child_open_target): Make "arg" const.
1296 * inf-child.h (inf_child_open_target): Update.
1297
41c77899
TT
12982014-07-24 Tom Tromey <tromey@redhat.com>
1299
1300 * environ.c (unset_in_environ): Make "var" const.
1301 * environ.h (unset_in_environ): Update.
1302
93db0d79
TT
13032014-07-24 Tom Tromey <tromey@redhat.com>
1304
1305 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1306 Make "cmd" const.
1307 (scan_filename_with_cleanup): Likewise.
1308 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1309 Make arguments const.
1310 (restore_command): Update.
1311
36d6eb95
PA
13122014-07-24 Pedro Alves <palves@redhat.com>
1313
1314 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1315
8009206a
TT
13162014-07-24 Tom Tromey <tromey@redhat.com>
1317 Gary Benson <gbenson@redhat.com>
1318
1319 * nat/linux-ptrace.c (additional_flags): New global.
1320 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1321 additional_flags; don't check GDBSERVER.
1322 (linux_ptrace_set_additional_flags): New function.
1323 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1324 Declare.
1325 * linux-nat.c (_initialize_linux_nat): Call
1326 linux_ptrace_set_additional_flags.
1327
a7068b60
TT
13282014-07-24 Tom Tromey <tromey@redhat.com>
1329
1330 * make-target-delegates (munge_type, write_debugmethod): New
1331 functions.
1332 (debug_names): New global.
1333 ($TARGET_DEBUG_PRINTER): New global.
1334 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1335 name.
1336 Write debug methods. Generate init_debug_target.
1337 * target-debug.h: New file.
1338 * target-delegates.c: Rebuild.
1339 * target.c: Include target-debug.h.
1340 (debug_target): Hoist definition.
1341 (target_kill, target_get_section_table, target_memory_map)
1342 (target_flash_erase, target_flash_done, target_detach)
1343 (target_disconnect, target_wait, target_resume)
1344 (target_pass_signals, target_program_signals, target_follow_fork)
1345 (target_mourn_inferior, target_search_memory)
1346 (target_thread_address_space, target_close)
1347 (target_find_new_threads, target_core_of_thread)
1348 (target_verify_memory, target_insert_mask_watchpoint)
1349 (target_remove_mask_watchpoint): Remove targetdebug code.
1350 (debug_to_post_attach, debug_to_prepare_to_store)
1351 (debug_to_files_info, debug_to_insert_breakpoint)
1352 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1353 (debug_to_region_ok_for_hw_watchpoint)
1354 (debug_to_can_accel_watchpoint_condition)
1355 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1356 (debug_to_watchpoint_addr_within_range)
1357 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1358 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1359 (debug_to_terminal_init, debug_to_terminal_inferior)
1360 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1361 (debug_to_terminal_save_ours, debug_to_terminal_info)
1362 (debug_to_load, debug_to_post_startup_inferior)
1363 (debug_to_insert_fork_catchpoint)
1364 (debug_to_remove_fork_catchpoint)
1365 (debug_to_insert_vfork_catchpoint)
1366 (debug_to_remove_vfork_catchpoint)
1367 (debug_to_insert_exec_catchpoint)
1368 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1369 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1370 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1371 (setup_target_debug): Call init_debug_target.
1372 * target.h (TARGET_DEBUG_PRINTER): New macro.
1373 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1374 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1375
2c51604d
GB
13762014-07-24 Gary Benson <gbenson@redhat.com>
1377
1378 * exceptions.h (throw_vfatal): Renamed to...
1379 (throw_vquit): New declaration.
1380 (throw_quit): Likewise.
1381 * exceptions.c (throw_vfatal): Renamed to...
1382 (throw_vquit): New function.
1383 (throw_quit): Likewise.
1384 (throw_error): Call throw_verror rather than throw_it.
1385 * utils.h (vfatal): Removed.
1386 (fatal): Likewise.
1387 * utils.c (vfatal): Removed.
1388 (fatal): Likewise.
1389 (internal_verror): Replaced call to fatal with call to throw_quit.
1390 (quit): Replaced calls to fatal with calls to throw_quit.
1391
34211963
ME
13922014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1393
1394 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1395 target_read_code.
1396
a52b4d3e
ME
13972014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1398
1399 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1400 less than zero in conditional expression.
1401
a8bdc56b
TT
14022014-07-23 Tom Tromey <tromey@redhat.com>
1403
1404 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1405 ($INTRO_PART): Don't match whitespace.
1406 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1407 argument matching.
1408 ($METHOD): Add $METHOD_TRAILER.
1409 (trim): Rewrite.
1410 (scan_target_h): New sub.
1411 Change main loop not to collect state.
1412 * target-delegates.c: Rebuild.
1413
91b52240
GB
14142014-07-23 Gary Benson <gbenson@redhat.com>
1415
1416 * cp-support.c (gdb_demangle): Fix build on systems without
1417 sigaltstack.
1418
45326f6f
JK
14192014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1422 for reference entry value target data value.
1423
e214cf6c
JK
14242014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1425
1426 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1427 value_available_contents_eq.
1428
bddbbedd
PA
14292014-07-22 Pedro Alves <palves@redhat.com>
1430
1431 * value.c (allocate_optimized_out_value): Don't mark value as
1432 non-lazy.
1433
45c71484
JW
14342014-07-22 Jiong Wang <jiong.wang@arm.com>
1435
1436 * MAINTAINERS (Write After Approval): Update my email address.
1437
9597b22a
DE
14382014-07-20 Doug Evans <dje@google.com>
1439
1440 PR server/17147
1441 * remote.c (putpkt_binary): Add text to error message.
1442
91101fe5
YQ
14432014-07-20 Yao Qi <yao@codesourcery.com>
1444
1445 * eval.c: Remove "Chill" from comments.
1446 * gdbtypes.h: Likewise.
1447 * symtab.h: Likewise.
1448
c9402c95
YQ
14492014-07-20 Yao Qi <yao@codesourcery.com>
1450
1451 * std-operator.def: Update comments to TERNOP_SLICE.
1452
ae8fddda
YQ
14532014-07-20 Yao Qi <yao@codesourcery.com>
1454
1455 * std-operator.def: Remove BINOP_RANGE.
1456 * breakpoint.c (watchpoint_exp_is_const): Update.
1457 * expprint.c (dump_subexp_body_standard): Likewise.
1458 * eval.c (init_array_element): Remove dead code.
1459 (evaluate_subexp_standard): Likewise.
1460
9c816640
YQ
14612014-07-20 Yao Qi <yao@codesourcery.com>
1462
1463 * std-operator.def: Remove BINOP_IN.
1464 * breakpoint.c (watchpoint_exp_is_const): Update.
1465 * eval.c (evaluate_subexp_standard): Likewise.
1466 * expprint.c (dump_subexp_body_standard): Likewise.
1467
164224e9
ME
14682014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1469
1470 * microblaze-tdep.c (microblaze_register_names): Add
1471 the rshr and rslr register names.
1472 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1473 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1474 Use of tdesc_numbered_register. Use of
1475 microblaze_register_g_packet_guesses. Use of
1476 tdesc_use_registers. Use of set_gdbarch_register_type.
1477 (microblaze_register_g_packet_guesses): New.
1478 * microblaze-tdep.h (microblaze_reg_num): Add
1479 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1480 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1481 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1482 * features/microblaze-core.xml: New file.
1483 * features/microblaze-stack-protect.xml: New file.
1484 * features/microblaze-with-stack-protect.c: New file.
1485 * features/microblaze-with-stack-protect.xml: New file.
1486 * features/microblaze.xml: New file.
1487 * features/microblaze.c: New file.
1488 * features/Makefile (microblaze-with-stack-protect): Add
1489 microblaze-with-stack-protect microblaze and microblaze-expedite.
1490 * regformats/microblaze-with-stack-protect.dat: New file.
1491 * regformats/microblaze.dat: New file.
1492 * doc/gdb.texinfo (MicroBlaze Features): Added.
1493
e8b2341c
TT
14942014-07-18 Tom Tromey <tromey@redhat.com>
1495
1496 * exec.c (exec_ops): Now static.
1497 * exec.h (exec_ops): Don't declare.
1498
44e89118
TT
14992014-07-18 Tom Tromey <tromey@redhat.com>
1500
1501 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1502 to find_target_beneath.
1503 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1504 find_target_beneath.
1505 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1506
b0ed115f
TT
15072014-07-18 Tom Tromey <tromey@redhat.com>
1508
1509 PR gdb/17130:
1510 * utils.c (quit): Use target_supports_terminal_ours.
1511 * target.h (target_supports_terminal_ours): Declare.
1512 * target.c (target_supports_delete_record): Don't check
1513 to_delete_record against NULL.
1514 (target_supports_terminal_ours): New function.
1515
e75fdfca
TT
15162014-07-18 Tom Tromey <tromey@redhat.com>
1517
1518 PR gdb/17130:
1519 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1520 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1521 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1522 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1523 * windows-nat.c (windows_xfer_partial): Always delegate.
1524 * record-btrace.c (record_btrace_xfer_partial): Simplify
1525 delegation.
1526 (record_btrace_fetch_registers, record_btrace_store_registers)
1527 (record_btrace_prepare_to_store, record_btrace_resume)
1528 (record_btrace_wait, record_btrace_find_new_threads)
1529 (record_btrace_thread_alive): Likewise.
1530 * procfs.c (procfs_xfer_partial): Always delegate.
1531 * corelow.c (core_xfer_partial): Always delegate.
1532 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1533
83814951
TT
15342014-07-18 Tom Tromey <tromey@redhat.com>
1535
1536 * exec.c (exec_make_note_section): Move earlier.
1537
b8b8facf
DE
15382014-07-17 Doug Evans <dje@google.com>
1539
74b49205 1540 PR gdb/17170
b8b8facf
DE
1541 * maint.c (count_symtabs_and_blocks): Handle NULL
1542 current_program_space.
1543 (report_command_stats): Check global enabled flag in addition to
1544 recorded enabled flag.
1545 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1546
69ff6be5
PA
15472014-07-16 Pedro Alves <palves@redhat.com>
1548
1549 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1550
252db1b5
TT
15512014-07-16 Tom Tromey <tromey@redhat.com>
1552
1553 * target.h (struct target_ops) <to_delete_record>: Reformat
1554 comment.
1555
a432721e
TT
15562014-07-16 Tom Tromey <tromey@redhat.com>
1557
1558 * target-delegates.c: Rebuild.
1559
487d9753
PL
15602014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1561
1562 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1563 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1564 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1565 (avr_pointer_to_address): Likewise.
1566 (avr_address_class_type_flags): New function.
1567 (avr_address_class_type_flags_to_name): Likewise.
1568 (avr_address_class_name_to_type_flags): Likewise.
1569 (avr_gdbarch_init): Set address_class_type_flags,
1570 address_class_type_flags_to_name and
1571 address_class_name_to_type_flags.
1572
57745c90
PA
15732014-07-15 Pedro Alves <palves@redhat.com>
1574
1575 * linux-nat.c (kill_callback): Save errno and work with saved
1576 copy.
1577
2d40be18
SM
15782014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1579
1580 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1581
572f6555
EBM
15822014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1583
1584 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1585 breakpoint support correctly.
1586
cc1c52ad
PA
15872014-07-14 Pedro Alves <palves@redhat.com>
1588
1589 * utils.c (prompt_for_continue): Call target_terminal_ours.
1590
1e973570
PA
15912014-07-14 Pedro Alves <palves@redhat.com>
1592
1593 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1594 catch_errors. Don't re-enable stdin or notify observers where,
1595 and rethrow error.
1596 (fetch_inferior_event_wrapper): Delete.
1597
93d6eb10
PA
15982014-07-14 Pedro Alves <palves@redhat.com>
1599
1600 PR gdb/17072
1601 * top.c: Include "inf-loop.h".
1602 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1603 field.
1604 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1605 was async before.
1606 (gdb_readline_wrapper): Store whether the target is async, and
1607 make it sync.
1608
0017922d
PA
16092014-07-14 Pedro Alves <palves@redhat.com>
1610
1611 PR gdb/17072
1612 * top.c (gdb_readline_wrapper_line): Tweak comment.
1613 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1614 the input handler callback.
1615
94696ad3
PA
16162014-07-14 Pedro Alves <palves@redhat.com>
1617
1618 PR gdb/17072
1619 * main.c: Include event-top.h.
1620 (handle_command_errors): New function.
1621 (catch_command_errors, catch_command_errors_const): Use it.
1622
9d1e69a2
PA
16232014-07-14 Pedro Alves <palves@redhat.com>
1624
1625 * exceptions.c (catch_command_errors, catch_command_errors_const):
1626 Moved to main.c.
1627 * exceptions.h (catch_command_errors_ftype)
1628 (catch_command_errors_const_ftype): Moved to main.c.
1629 (catch_command_errors, catch_command_errors_const): Delete
1630 declarations.
1631 * main.c (catch_command_errors_ftype)
1632 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1633 (catch_command_errors, catch_command_errors_const)): Moved here
1634 from exceptions.c and make static.
1635
feefc97b
PA
16362014-07-14 Pedro Alves <palves@redhat.com>
1637
1638 * exceptions.c (print_any_exception): Delete.
1639 (catch_exceptions_with_msg): Use exception_print instead of
1640 print_any_exception.
1641 (catch_errors): Use exception_fprintf instead of
1642 print_any_exception.
1643 (catch_command_errors, catch_command_errors_const): Use
1644 exception_print instead of print_any_exception.
1645
c933f875
PA
16462014-07-14 Pedro Alves <palves@redhat.com>
1647
1648 * infcall.c (run_inferior_call): Set 'sync_execution' while
1649 running the inferior call.
1650
feb6f816
PA
16512014-07-14 Pedro Alves <palves@redhat.com>
1652
1653 * value.c (value_contents_equal): Delete function.
1654 * value.h (value_contents_equal): Delete declaration.
1655
d98b7a16
TT
16562014-07-14 Tom Tromey <tromey@redhat.com>
1657
1658 PR exp/17106:
1659 * gdbtypes.c (is_dynamic_type_internal): New function, from
1660 is_dynamic_type.
1661 (is_dynamic_type): Rewrite.
1662 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1663 (resolve_dynamic_struct): Likewise.
1664 (resolve_dynamic_type_internal): New function, from
1665 resolve_dynamic_type.
1666 (resolve_dynamic_type): Rewrite.
1667
548740d6
TT
16682014-07-14 Tom Tromey <tromey@redhat.com>
1669
1670 * target.c (target_require_runnable): Also check record_stratum.
1671 Update comment.
1672
808f7ab1
YQ
16732014-07-11 Yao Qi <yao@codesourcery.com>
1674
1675 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1676 thumb_instruction_restores_sp return true.
1677
540314bd
YQ
16782014-07-11 Yao Qi <yao@codesourcery.com>
1679
1680 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1681 (thumb_in_function_epilogue_p): Call
1682 thumb_instruction_restores_sp.
1683
1db01f22
YQ
16842014-07-11 Yao Qi <yao@codesourcery.com>
1685
1686 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1687 'add sp, #imm'.
1688 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1689
3116063b
GB
16902014-07-11 Gary Benson <gbenson@redhat.com>
1691
1692 * amd64-linux-nat.c (gdbcore.h): Remove include.
1693 (regset.h): Likewise.
1694 (nat/linux-btrace.h): Likewise.
1695 (btrace.h): Likewise.
1696 (gdb_assert.h): Likewise.
1697 (string.h): Likewise.
1698 (sys/uio.h): Likewise.
1699 (sys/debugreg.h): Likewise.
1700 (sys/syscall.h): Likewise.
1701 (sys/procfs.h): Likewise.
1702 (sys/user.h): Likewise.
1703 (asm/ptrace.h): Likewise.
1704 (i386-nat.h): Likewise.
1705 * i386-linux-nat.c (i386-nat.h): Likewise.
1706 (regset.h): Likewise.
1707 (target.h): Likewise.
1708 (linux-nat.h): Likewise.
1709 (nat/linux-btrace.h): Likewise.
1710 (btrace.h): Likewise.
1711 (gdb_assert.h): Likewise.
1712 (string.h): Likewise.
1713 (sys/uio.h): Likewise.
1714 (sys/user.h): Likewise.
1715 (sys/procfs.h): Likewise.
1716 (sys/reg.h): Likewise.
1717 (sys/debugreg.h): Likewise.
1718 (ORIG_EAX): Remove definition.
1719
040baaf6
GB
17202014-07-11 Gary Benson <gbenson@redhat.com>
1721
1722 * i386-linux-nat.h: New file.
1723 * x86-linux-nat.h: Likewise.
1724 * x86-linux-nat.c: Likewise.
1725 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1726 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1727 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1728 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1729 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1730 (PTRACE_SETREGSET): Likewise.
1731 (arch_lwp_info): Now in x86-linux-nat.c.
1732 (have_ptrace_getregset): Now in x86-linux-nat.h.
1733 (x86_linux_dr_get): Now in x86-linux-nat.c.
1734 (x86_linux_dr_set): Likewise.
1735 (x86_linux_dr_get_addr): Likewise.
1736 (x86_linux_dr_get_control): Likewise.
1737 (x86_linux_dr_get_status): Likewise.
1738 (update_debug_registers_callback): Likewise.
1739 (x86_linux_dr_set_control): Likewise.
1740 (x86_linux_dr_set_addr): Likewise.
1741 (x86_linux_prepare_to_resume): Likewise.
1742 (x86_linux_new_thread): Likewise.
1743 (x86_linux_new_fork): Likewise.
1744 (x86_linux_get_thread_area): Likewise.
1745 (super_post_startup_inferior): Likewise.
1746 (x86_linux_child_post_startup_inferior): Likewise.
1747 (AMD64_LINUX_USER64_CS): Likewise.
1748 (AMD64_LINUX_X32_DS): Likewise.
1749 (x86_linux_read_description): Likewise.
1750 (x86_linux_enable_btrace): Likewise.
1751 (x86_linux_disable_btrace): Likewise.
1752 (x86_linux_teardown_btrace): Likewise.
1753 (x86_linux_read_btrace): Likewise.
1754 (x86_linux_create_target): Likewise.
1755 (x86_linux_add_target): Likewise.
1756 * i386-linux-nat.c (x86-linux-nat.h): New include.
1757 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1758 (PTRACE_SETREGSET): Likewise.
1759 (arch_lwp_info): Now in x86-linux-nat.c.
1760 (have_ptrace_getregset): Now in x86-linux-nat.h.
1761 (x86_linux_dr_get): Now in x86-linux-nat.c.
1762 (x86_linux_dr_set): Likewise.
1763 (x86_linux_dr_get_addr): Likewise.
1764 (x86_linux_dr_get_control): Likewise.
1765 (x86_linux_dr_get_status): Likewise.
1766 (update_debug_registers_callback): Likewise.
1767 (x86_linux_dr_set_control): Likewise.
1768 (x86_linux_dr_set_addr): Likewise.
1769 (x86_linux_prepare_to_resume): Likewise.
1770 (x86_linux_new_thread): Likewise.
1771 (x86_linux_new_fork): Likewise.
1772 (x86_linux_get_thread_area): Likewise.
1773 (super_post_startup_inferior): Likewise.
1774 (x86_linux_child_post_startup_inferior): Likewise.
1775 (AMD64_LINUX_USER64_CS): Likewise.
1776 (AMD64_LINUX_X32_DS): Likewise.
1777 (x86_linux_read_description): Likewise.
1778 (x86_linux_enable_btrace): Likewise.
1779 (x86_linux_disable_btrace): Likewise.
1780 (x86_linux_teardown_btrace): Likewise.
1781 (x86_linux_read_btrace): Likewise.
1782 (x86_linux_create_target): Likewise.
1783 (x86_linux_add_target): Likewise.
1784
1aa7e42c
GB
17852014-07-11 Gary Benson <gbenson@redhat.com>
1786
1787 * amd64-linux-nat.c: Comment and whitespace changes.
1788 * i386-linux-nat.c: Comment and whitespace changes.
1789
c1e246a0
GB
17902014-07-11 Gary Benson <gbenson@redhat.com>
1791
1792 * amd64-linux-nat.c (x86_linux_create_target): New function.
1793 (x86_linux_add_target): Likewise.
1794 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1795 * i386-linux-nat.c (x86_linux_create_target): New function.
1796 (x86_linux_add_target): Likewise.
1797 (_initialize_i386_linux_nat): Delegate to the above new functions.
1798
8c420b8d
GB
17992014-07-11 Gary Benson <gbenson@redhat.com>
1800
1801 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1802 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1803 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1804 (ps_get_thread_area): Delegate to the above.
1805
cb1da100
GB
18062014-07-11 Gary Benson <gbenson@redhat.com>
1807
1808 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1809 x86_linux_read_description. All uses updated. amd64-specific
1810 code conditionalized. Conditionalized i386-specific code added.
1811 Redundant cast removed.
1812 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1813 x86_linux_read_description. All uses updated. i386-specific
1814 code conditionalized. Conditionalized amd64-specific code added.
1815 One sizeof replaced with the actual type it is describing.
1816
2acf3cd0
GB
18172014-07-11 Gary Benson <gbenson@redhat.com>
1818
1819 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1820 x86_linux_dr_get. All uses updated.
1821 (amd64_linux_dr_set): Renamed to
1822 x86_linux_dr_set. All uses updated.
1823 (amd64_linux_dr_get_addr): Renamed to
1824 x86_linux_dr_get_addr. All uses updated.
1825 (amd64_linux_dr_get_control): Renamed to
1826 x86_linux_dr_get_control. All uses updated.
1827 (amd64_linux_dr_get_status): Renamed to
1828 x86_linux_dr_get_status. All uses updated.
1829 (amd64_linux_dr_set_control): Renamed to
1830 x86_linux_dr_set_control. All uses updated.
1831 (amd64_linux_dr_set_addr): Renamed to
1832 x86_linux_dr_set_addr. All uses updated.
1833 (amd64_linux_prepare_to_resume): Renamed to
1834 x86_linux_prepare_to_resume. All uses updated.
1835 (amd64_linux_new_thread): Renamed to
1836 x86_linux_new_thread. All uses updated.
1837 (amd64_linux_new_fork): Renamed to
1838 x86_linux_new_fork. All uses updated.
1839 (amd64_linux_child_post_startup_inferior): Renamed to
1840 x86_linux_child_post_startup_inferior. All uses updated.
1841 (amd64_linux_enable_btrace): Renamed to
1842 x86_linux_enable_btrace. All uses updated.
1843 (amd64_linux_disable_btrace): Renamed to
1844 x86_linux_disable_btrace. All uses updated.
1845 (amd64_linux_teardown_btrace): Renamed to
1846 x86_linux_teardown_btrace. All uses updated.
1847 (amd64_linux_read_btrace): Renamed to
1848 x86_linux_read_btrace. All uses updated.
1849 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1850 x86_linux_dr_get. All uses updated.
1851 (i386_linux_dr_set): Renamed to
1852 x86_linux_dr_set. All uses updated.
1853 (i386_linux_dr_get_addr): Renamed to
1854 x86_linux_dr_get_addr. All uses updated.
1855 (i386_linux_dr_get_control): Renamed to
1856 x86_linux_dr_get_control. All uses updated.
1857 (i386_linux_dr_get_status): Renamed to
1858 x86_linux_dr_get_status. All uses updated.
1859 (i386_linux_dr_set_control): Renamed to
1860 x86_linux_dr_set_control. All uses updated.
1861 (i386_linux_dr_set_addr): Renamed to
1862 x86_linux_dr_set_addr. All uses updated.
1863 (i386_linux_prepare_to_resume): Renamed to
1864 x86_linux_prepare_to_resume. All uses updated.
1865 (i386_linux_new_thread): Renamed to
1866 x86_linux_new_thread. All uses updated.
1867 (i386_linux_new_fork): Renamed to
1868 x86_linux_new_fork. All uses updated.
1869 (i386_linux_child_post_startup_inferior): Renamed to
1870 x86_linux_child_post_startup_inferior. All uses updated.
1871 (i386_linux_enable_btrace): Renamed to
1872 x86_linux_enable_btrace. All uses updated.
1873 (i386_linux_disable_btrace): Renamed to
1874 x86_linux_disable_btrace. All uses updated.
1875 (i386_linux_teardown_btrace): Renamed to
1876 x86_linux_teardown_btrace. All uses updated.
1877 (i386_linux_read_btrace): Renamed to
1878 x86_linux_read_btrace. All uses updated.
1879
b9c1d481
AS
18802014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1881
1882 * remote.c (extended_remote_post_attach): New function.
1883 (init_extended_remote_ops): Install it as to_post_attach method.
1884
7180e04a
PA
18852014-07-09 Pedro Alves <palves@redhat.com>
1886
1887 * infcmd.c (attach_command_post_wait): Don't call
1888 target_terminal_inferior here.
1889 (attach_command): Call it here instead.
1890
9a9a7608
AB
18912014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1894 field.
1895 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1896 from varobj.c, with additional checks.
1897 (c_varobj_ops): Fill in is_path_expr_parent field.
1898 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1899 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1900 field.
1901 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1902 ops method.
1903 (varobj_default_is_path_expr_parent): New function.
1904 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1905 (varobj_default_is_path_expr_parent): Declare new function.
1906
1f267ae3
MM
19072014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1908
1909 * infcmd.c (finish_backward): Turn internal error into normal error.
1910
b2ee242b
PA
19112014-07-07 Pedro Alves <palves@redhat.com>
1912
8a869bca 1913 PR gdb/17096
b2ee242b
PA
1914 * remote.c (async_handle_remote_sigint)
1915 (async_handle_remote_sigint_twice): Call
1916 gdb_call_async_signal_handler instead of
1917 mark_async_signal_handler.
1918
38e229b2
TT
19192014-07-07 Tom Tromey <tromey@redhat.com>
1920
1921 * target-delegates.c: Rebuild.
1922 * target.c (target_info_record): Remove.
1923 * record.c (info_record_command): Unconditionally call
1924 to_info_record.
1925 * target.h (struct target_ops) <to_info_record>: Use
1926 TARGET_DEFAULT_IGNORE.
1927 (target_info_record): Remove.
1928
f0f9ff95
TT
19292014-07-07 Tom Tromey <tromey@redhat.com>
1930
1931 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1932 TARGET_DEFAULT_NORETURN.
1933 * target.c (generic_tls_error): New function.
1934 (target_translate_tls_address): Don't search target stack.
1935 * target-delegates.c: Rebuild.
1936 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1937 stack.
1938 * linux-thread-db.c (thread_db_get_thread_local_address):
1939 Unconditionally call beneath target.
1940
4a5be5ee
MK
19412014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1942
1943 * cli/cli-logging.c (pop_output_files): Assign targerr to
1944 gdb_stdtargerr.
1945
92c3b204
AB
19462014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1947
1948 * MAINTAINERS (Write After Approval): Update my email address.
1949
9b11e3a7
GB
19502014-07-02 Gary Benson <gbenson@redhat.com>
1951
1952 * proc-service.c (ps_xfer_memory): Update comment.
1953 (ps_pstop): Remove unused function.
1954 (ps_pcontinue): Likewise.
1955 (ps_lstop): Likewise.
1956 (ps_lcontinue): Likewise.
1957 (ps_lgetxregsize): Likewise.
1958 (ps_lgetxregs): Likewise.
1959 (ps_lsetxregs): Likewise.
1960 (ps_plog): Likewise.
1961 (ps_ptread): Likewise.
1962 (ps_ptwrite): Likewise.
1963
cf363f18
MW
19642014-07-01 Mark Wielaard <mjw@redhat.com>
1965
1966 * dwarf2read.c (add_array_cv_type): New function.
1967 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1968 (read_tag_volatile_type): Likewise.
1969
82ae6c8d
TT
19702014-07-01 Tom Tromey <tromey@redhat.com>
1971
1972 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1973 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1974 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1975 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1976 * command.h (cmd_cfunc_ftype): Move earlier.
1977 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1978 (add_com, add_info): Use cmd_cfunc_ftype.
1979
96142726
TT
19802014-06-30 Tom Tromey <tromey@redhat.com>
1981
1982 * symtab.c (operator_chars): Make parameters and return type
1983 const.
1984 (file_matches): Make "files" const.
1985 (struct search_symbols_data) <files>: Now const.
1986 (search_symbols): Make "regexp" and "files" parameters const.
1987 Update.
1988 (symtab_symbol_info): Remove cast.
1989 (rbreak_command): Update.
1990 * symtab.h (search_symbols): Update.
1991
b67a2c6f
YQ
19922014-06-27 Yao Qi <yao@codesourcery.com>
1993
1994 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1995 Change parameter type to 'struct thread_info *'. Caller
1996 updated.
1997 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1998 Update declaration.
1999 * dummy-frame.c (struct dummy_frame_id): New.
2000 (dummy_frame_id_eq): New function.
2001 (struct dummy_frame) <id>: Change its type to 'struct
2002 dummy_frame_id'.
2003 (dummy_frame_push): Add parameter ptid and save it in
2004 dummy_frame_id.
2005 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2006 inferior_ptid.
2007 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2008 to inferior_ptid.
2009 (lookup_dummy_frame): Change parameter type to 'struct
2010 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2011 instead of frame_id_eq.
2012 (dummy_frame_pop): Add parameter ptid. Callers updated.
2013 Update comments. Compose dummy_frame_id and pass it to
2014 lookup_dummy_frame.
2015 (dummy_frame_discard): Add parameter ptid.
2016 (dummy_frame_sniffer): Compose dummy_frame_id and call
2017 dummy_frame_id_eq instead of frame_id_eq.
2018 (fprint_dummy_frames): Print ptid.
2019 * dummy-frame.h: Remove comments.
2020 (dummy_frame_push): Add ptid in declaration.
2021 (dummy_frame_pop, dummy_frame_discard): Likewise.
2022
5b10184c
TT
20232014-06-26 Tom Tromey <tromey@redhat.com>
2024
2025 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2026 * command.h (error_no_arg): Update.
2027
06900326
TT
20282014-06-26 Tom Tromey <tromey@redhat.com>
2029
2030 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2031 (do_show_command): Make "arg" const.
2032 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2033
c2bcbb1d
TT
20342014-06-26 Tom Tromey <tromey@redhat.com>
2035
2036 * record-full.c (record_full_get_bookmark): Make "args" const.
2037 (record_full_goto_bookmark): Make "raw_bookmark" const.
2038 * record.c (record_goto): New function.
2039 (cmd_record_goto): Use it. Now static.
2040 * record.h (record_goto): Declare.
2041 (cmd_record_goto): Remove declaration.
2042 * target-delegates.c: Rebuild.
2043 * target.h (struct target_ops) <to_get_bookmark,
2044 to_goto_bookmark>: Make parameter const.
2045
9cbe5fff
TT
20462014-06-26 Tom Tromey <tromey@redhat.com>
2047
2048 * defs.h (generic_load): Update.
2049 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2050 * monitor.c (monitor_load): Make "args" const.
2051 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2052 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2053 const.
2054 (mips_load): Make "file" const.
2055 * remote-sim.c (gdbsim_load): Make "args" const.
2056 * remote.c (remote_load): Make "name" const.
2057 * symfile.c (generic_load): Make "args" const.
2058 * target-delegates.c: Rebuild.
2059 * target.c (target_load): Make "arg" const.
2060 (debug_to_load): Make "args" const.
2061 * target.h (struct target_ops) <to_load>: Make parameter const.
2062 (target_load): Update.
2063
34a68019
TT
20642014-06-26 Tom Tromey <tromey@redhat.com>
2065
2066 PR symtab/16902:
2067 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2068 (dwarf2_physname, read_partial_die)
2069 (guess_partial_die_structure_name, fixup_partial_die)
2070 (guess_full_die_structure_name, anonymous_struct_prefix)
2071 (dwarf2_name): Use per-BFD obstack.
2072
efc889c1
YQ
20732014-06-26 Yao Qi <yao@codesourcery.com>
2074
2075 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2076 dummyframe and this_id into inner block below.
2077
4395285e
YQ
20782014-06-26 Yao Qi <yao@codesourcery.com>
2079
2080 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2081 with "signal_pass[0]" in the initialization of signal_pass.
2082
aef92902
MM
20832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2084
2085 * record-btrace.c (record_btrace_generating_corefile)
2086 (record_btrace_prepare_to_generate_core)
2087 (record_btrace_done_generating_core): New.
2088 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2089 (record_btrace_store_registers, record_btrace_prepare_to_store):
2090 Forward request when generating a core file.
2091 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2092 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2093 to_done_generating_core.
2094
5fff78c4
MM
20952014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2096
2097 * target.h (target_ops) <to_prepare_to_generate_core>
2098 <to_done_generating_core>: New.
2099 (target_prepare_to_generate_core, target_done_generating_core): New.
2100 * target.c (target_prepare_to_generate_core)
2101 (target_done_generating_core): New.
2102 * target-delegates.c: Regenerate.
2103 * gcore.c: (write_gcore_file): Rename to ...
2104 (write_gcore_file_1): ...this.
2105 (write_gcore_file): Call target_prepare_to_generate_core
2106 and target_done_generating_core.
2107
1d1f1ccb
MM
21082014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2109
2110 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2111 * gcore.c (write_gcore_file): Free memory returned from
2112 make_corefile_notes.
2113 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2114 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2115
3343ef86
YQ
21162014-06-24 Yao Qi <yao@codesourcery.com>
2117
2118 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2119 (arm_linux_init_abi): Set skip_trampoline_code with
2120 gdbarch_skip_trampoline_code instead of
2121 find_solib_trampoline_target.
2122
18d18ac8
YQ
21232014-06-24 Yao Qi <yao@codesourcery.com>
2124
2125 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2126 arm_skip_bx_reg returns non-zero.
2127
80d8d390
YQ
21282014-06-24 Yao Qi <yao@codesourcery.com>
2129
2130 * arm-tdep.c (arm_skip_bx_reg): New function.
2131 (arm_skip_stub): Call arm_skip_bx_reg.
2132
6a18a01c
DB
21332014-06-23 Don Breazeal <donb@codesourcery.com>
2134
2135 * MAINTAINERS: Add myself as write-after-approval maintainer.
2136
8e9db26e
PA
21372014-06-23 Pedro Alves <palves@redhat.com>
2138
2139 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2140 DR_CONTROL before setting DR0..DR3.
2141 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2142 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2143 bits of DR_CONTROL related to the debug register slot being
2144 disabled. If all slots are vacant, clear local slowdown as well,
2145 and assert DR_CONTROL is 0.
2146
70afc5b7
SC
21472014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2148
2149 * python/lib/gdb/command/xmethods.py
2150 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2151 current progspace only if the string "progspace" matches LOCUS_RE.
2152
840ed64d
JK
21532014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2154
2155 Fix --with-system-readline with readline-6.3 patch 5.
2156 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2157 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2158 types.
2159
26f2dc30
TT
21602014-06-20 Tom Tromey <tromey@redhat.com>
2161
2162 * dwarf2read.c (dw2_get_real_path): Use correct type in
2163 OBSTACK_CALLOC.
2164 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2165
125f8a3d
GB
21662014-06-20 Gary Benson <gbenson@redhat.com>
2167
2168 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2169 * common/glibc_thread_db.h: Likewise.
2170 * common/i386-cpuid.h: Likewise.
2171 * common/i386-gcc-cpuid.h: Likewise.
2172 * common/linux-btrace.h: Likewise.
2173 * common/linux-osdata.h: Likewise.
2174 * common/linux-procfs.h: Likewise.
2175 * common/linux-ptrace.h: Likewise.
2176 * common/mips-linux-watch.h: Likewise.
2177 * common/linux-btrace.c: Moved to nat.
2178 * common/linux-osdata.c: Likewise.
2179 * common/linux-procfs.c: Likewise.
2180 * common/linux-ptrace.c: Likewise.
2181 * common/mips-linux-watch.c: Likewise.
2182 * nat/gdb_thread_db.h: Moved from common.
2183 * nat/glibc_thread_db.h: Likewise.
2184 * nat/i386-cpuid.h: Likewise.
2185 * nat/i386-gcc-cpuid.h: Likewise.
2186 * nat/linux-btrace.c: Likewise.
2187 * nat/linux-btrace.h: Likewise.
2188 * nat/linux-osdata.c: Likewise.
2189 * nat/linux-osdata.h: Likewise.
2190 * nat/linux-procfs.c: Likewise.
2191 * nat/linux-procfs.h: Likewise.
2192 * nat/linux-ptrace.c: Likewise.
2193 * nat/linux-ptrace.h: Likewise.
2194 * nat/mips-linux-watch.c: Likewise.
2195 * nat/mips-linux-watch.h: Likewise.
2196 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2197 (object file files): Reordered.
2198 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2199 of glibc_thread_db.h.
2200
42995dbd
GB
22012014-06-20 Gary Benson <gbenson@redhat.com>
2202
2203 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2204 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2205 (i386_dr_low): Likewise.
2206 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2207 (i386_dr_low_set_addr): Likewise.
2208 (i386_dr_low_get_addr): Likewise.
2209 (i386_dr_low_can_set_control): Likewise.
2210 (i386_dr_low_set_control): Likewise.
2211 (i386_dr_low_get_control): Likewise.
2212 (i386_dr_low_get_status): Likewise.
2213 (i386_get_debug_register_length): Likewise.
2214 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2215 (i386_dr_low): Likewise.
2216 * nat/i386-dregs.c (i386-low.h): Remove include.
2217 (i386-nat.h): Likewise.
2218 (nat/i386-dregs.h): New include.
2219 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2220 (i386_dr_low_set_addr): Likewise.
2221 (i386_dr_low_get_addr): Likewise.
2222 (i386_dr_low_can_set_control): Likewise.
2223 (i386_dr_low_set_control): Likewise.
2224 (i386_dr_low_get_control): Likewise.
2225 (i386_dr_low_get_status): Likewise.
2226 (i386_get_debug_register_length): Likewise.
2227 (debug_hw_points): Likewise.
2228
3ed9baed
IB
22292014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2230
2231 * Makefile.in (SFILES): Add d-exp.y.
2232 (YYFILES): Add d-exp.c.
2233 (YYOBJ): Add d-exp.o.
2234 (local-maintainer-clean): Delete d-exp.c.
2235 * d-exp.y: New file.
2236 * d-lang.h (d_parse): New declaration.
2237 (d_error): New declaration.
2238 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2239 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2240 PREC_ORDER operators.
2241 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2242
78c164b0
YQ
22432014-06-19 Yao Qi <yao@codesourcery.com>
2244
2245 * gdbthread.h (any_running): Remove the declaration.
2246 * thread.c (any_running): Remove.
2247
f6e29b6e
YQ
22482014-06-19 Yao Qi <yao@codesourcery.com>
2249
2250 * gdbthread.h (struct thread_info) <state>: Change its type to
2251 'enum thread_state'. Update comments.
2252
034f788c
PA
22532014-06-19 Pedro Alves <palves@redhat.com>
2254
2255 * gdbthread.h (ALL_THREADS): Delete.
2256 (ALL_NON_EXITED_THREADS): New macro.
2257 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2258 instead of ALL_THREADS.
2259 * infrun.c (find_thread_needs_step_over)
2260 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2261 instead of ALL_THREADS.
2262 * record-btrace.c (record_btrace_open)
2263 (record_btrace_stop_recording, record_btrace_close)
2264 (record_btrace_is_replaying, record_btrace_resume)
2265 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2266 * remote.c (append_pending_thread_resumptions): Likewise.
2267 * thread.c (thread_apply_all_command): Likewise.
2268
46e33252
GB
22692014-06-19 Gary Benson <gbenson@redhat.com>
2270
2271 * i386-nat.c (i386_stopped_by_watchpoint):
2272 Use i386_dr_stopped_by_watchpoint.
2273 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2274 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2275
3a8ee006
GB
22762014-06-19 Gary Benson <gbenson@redhat.com>
2277
2278 * nat/i386-dregs.c: New file.
2279 * Makefile.in (i386-dregs.o): New rule.
2280 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2281 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2282 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2283 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2284 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2285 * config/i386/go32.mh (NATDEPFILES): Likewise.
2286 * config/i386/linux.mh (NATDEPFILES): Likewise.
2287 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2288 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2289 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2290 * i386-nat.h (debug_hw_points): New declaration.
2291 * i386-nat.c (breakpoint.h): Remove include.
2292 (command.h): Likewise.
2293 (target.h): Likewise.
2294 (gdb_assert.h): Likewise.
2295 (debug_hw_points): Made nonstatic.
2296 (debug_printf): Now in i386-dregs.c.
2297 (TARGET_HAS_DR_LEN_8): Likewise.
2298 (DR_CONTROL_SHIFT): Likewise.
2299 (DR_CONTROL_SIZE): Likewise.
2300 (DR_RW_EXECUTE): Likewise.
2301 (DR_RW_WRITE): Likewise.
2302 (DR_RW_READ): Likewise.
2303 (DR_RW_IORW): Likewise.
2304 (DR_LEN_1): Likewise.
2305 (DR_LEN_2): Likewise.
2306 (DR_LEN_4): Likewise.
2307 (DR_LEN_8): Likewise.
2308 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2309 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2310 (DR_ENABLE_SIZE): Likewise.
2311 (DR_LOCAL_SLOWDOWN): Likewise.
2312 (DR_GLOBAL_SLOWDOWN): Likewise.
2313 (DR_CONTROL_RESERVED): Likewise.
2314 (I386_DR_CONTROL_MASK): Likewise.
2315 (I386_DR_VACANT): Likewise.
2316 (I386_DR_LOCAL_ENABLE): Likewise.
2317 (I386_DR_GLOBAL_ENABLE): Likewise.
2318 (I386_DR_DISABLE): Likewise.
2319 (I386_DR_SET_RW_LEN): Likewise.
2320 (I386_DR_GET_RW_LEN): Likewise.
2321 (I386_DR_WATCH_HIT): Likewise.
2322 (i386_wp_op_t): Likewise.
2323 (i386_show_dr): Likewise.
2324 (i386_length_and_rw_bits): Likewise.
2325 (i386_insert_aligned_watchpoint): Likewise.
2326 (i386_remove_aligned_watchpoint): Likewise.
2327 (i386_handle_nonaligned_watchpoint): Likewise.
2328 (i386_update_inferior_debug_regs): Likewise.
2329 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2330 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2331 (i386_region_ok_for_watchpoint):
2332 Use i386_dr_region_ok_for_watchpoint.
2333 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2334
322a8e06
GB
23352014-06-19 Gary Benson <gbenson@redhat.com>
2336
2337 * i386-nat.c (i386_insert_hw_breakpoint): Use
2338 i386_insert_watchpoint.
2339 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2340
8f26655c
GB
23412014-06-19 Gary Benson <gbenson@redhat.com>
2342
2343 * i386-nat.c (i386_dr_show): Renamed to
2344 i386_show_dr and made static. All uses updated.
2345 (i386_dr_length_and_rw_bits): Renamed to
2346 i386_length_and_rw_bits and made static.
2347 All uses updated.
2348 (i386_dr_insert_aligned_watchpoint): Renamed to
2349 i386_insert_aligned_watchpoint and made static.
2350 All uses updated.
2351 (i386_dr_remove_aligned_watchpoint): Renamed to
2352 i386_remove_aligned_watchpoint and made static.
2353 All uses updated.
2354 (i386_dr_update_inferior_debug_regs): Renamed to
2355 i386_update_inferior_debug_regs and made static.
2356 All uses updated.
2357 * nat/i386-dregs.h (i386_dr_show): Removed.
2358 (i386_dr_length_and_rw_bits): Likewise.
2359 (i386_dr_insert_aligned_watchpoint): Likewise.
2360 (i386_dr_remove_aligned_watchpoint): Likewise.
2361 (i386_dr_update_inferior_debug_regs): Likewise.
2362
992c7d70
GB
23632014-06-19 Gary Benson <gbenson@redhat.com>
2364
2365 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2366 * configure: Regenerate.
2367 * config.in: Likewise.
2368 * main.c (signal.h): New include.
2369 (setup_alternate_signal_stack): New function.
2370 (captured_main): Call the above.
2371 * cp-support.c (signal.h): New include.
2372 (catch_demangler_crashes): New flag.
2373 (SIGJMP_BUF): New define.
2374 (SIGSETJMP): Likewise.
2375 (SIGLONGJMP): Likewise.
2376 (gdb_demangle_jmp_buf): New static global.
2377 (gdb_demangle_attempt_core_dump): Likewise.
2378 (gdb_demangle_signal_handler): New function.
2379 (gdb_demangle): If catch_demangler_crashes is set, install the
2380 above signal handler before calling bfd_demangle, and restore
2381 the original signal handler afterwards. Display the offending
2382 symbol and call demangler_warning the first time a segmentation
2383 fault is caught.
2384 (_initialize_cp_support): New maint set/show command.
2385
eae7090b
GB
23862014-06-19 Gary Benson <gbenson@redhat.com>
2387
2388 * utils.h (resource_limit_kind): New enum.
2389 (can_dump_core): New declaration.
2390 (warn_cant_dump_core): Likewise.
2391 (dump_core): Likewise.
2392 * utils.c (dump_core): Made nonstatic. Added new
2393 parameter "limit_kind".
2394 (can_dump_core): Made nonstatic. Moved printing code to...
2395 (warn_cant_dump_core): New function.
2396 (can_dump_core_warn): Likewise.
2397 (internal_vproblem): Replace calls to can_dump_core with
2398 calls to can_dump_core_warn. Supply new argument to each.
2399
57fcfb1b
GB
24002014-06-19 Gary Benson <gbenson@redhat.com>
2401
2402 * utils.h (demangler_vwarning): New declaration.
2403 (demangler_warning): Likewise.
2404 * utils.c (struct internal_problem)
2405 <user_settable_should_quit>: New field.
2406 <user_settable_should_dump_core>: Likewise
2407 (internal_error_problem): Add values for above new fields.
2408 (internal_warning_problem): Likewise.
2409 (demangler_warning_problem): New static global.
2410 (demangler_vwarning): New function.
2411 (demangler_warning): Likewise.
2412 (add_internal_problem_command): Selectively add commands.
2413 (_initialize_utils): New internal problem command.
2414 * maint.c (maintenance_demangler_warning): New function.
2415 (_initialize_maint_cmds): New command.
2416
17a40b44
TT
24172014-06-18 Tom Tromey <tromey@redhat.com>
2418
2419 * f-valprint.c (info_common_command_for_block): Update.
2420 * symtab.h (struct general_symbol_info) <common_block>: Now
2421 const.
2422
346d1dfe
TT
24232014-06-18 Tom Tromey <tromey@redhat.com>
2424
2425 * symtab.h (struct symtab) <blockvector>: Now const.
2426 * ada-lang.c (ada_add_global_exceptions): Update.
2427 * buildsym.c (augment_type_symtab): Update.
2428 * dwarf2read.c (dw2_lookup_symbol): Update.
2429 * jit.c (finalize_symtab): Update.
2430 * jv-lang.c (add_class_symtab_symbol): Update.
2431 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2432 Update.
2433 * objfiles.c (objfile_relocate1): Update.
2434 * psymtab.c (lookup_symbol_aux_psymtabs)
2435 (maintenance_check_psymtabs): Update.
2436 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2437 Update.
2438 * spu-tdep.c (spu_catch_start): Update.
2439 * symmisc.c (dump_symtab_1): Update.
2440 * symtab.c (lookup_global_symbol_from_objfile)
2441 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2442 (basic_lookup_transparent_type_quick)
2443 (basic_lookup_transparent_type, find_pc_sect_symtab)
2444 (find_pc_sect_line, search_symbols): Update.
2445 * block.c (find_block_in_blockvector): Make "bl" const.
2446 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2447 const.
2448 (blockvector_contains_pc): Make "bv" const.
2449 (block_for_pc_sect): Update.
2450 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2451 (blockvector_contains_pc): Update.
2452 * breakpoint.c (resolve_sal_pc): Update.
2453 * inline-frame.c (block_starting_point_at): Update.
2454
1834676b
TT
24552014-06-18 Tom Tromey <tromey@redhat.com>
2456
2457 * completer.c (complete_line): Make "line_buffer" const.
2458 * completer.h (complete_line): Update.
2459
ac1a991b
TT
24602014-06-18 Tom Tromey <tromey@redhat.com>
2461
2462 * symtab.c (add_macro_name): Remove unneeded cast.
2463
5bc98e52
TT
24642014-06-18 Tom Tromey <tromey@redhat.com>
2465
2466 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2467 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2468
8236def8
TT
24692014-06-18 Tom Tromey <tromey@redhat.com>
2470
2471 * probe.c (info_probes_for_ops): Make "arg" const.
2472 * probe.h (info_probes_for_ops): Update.
2473
3977b71f
TT
24742014-06-18 Tom Tromey <tromey@redhat.com>
2475
2476 * varobj.c (varobj_create): Update.
2477 * valops.c (value_of_this): Update.
2478 * tracepoint.c (add_local_symbols, scope_info): Update.
2479 * symtab.h (struct general_symbol_info) <block>: Now const.
2480 * symtab.c (skip_prologue_sal)
2481 (default_make_symbol_completion_list_break_on)
2482 (skip_prologue_using_sal): Update.
2483 * stack.h (iterate_over_block_locals)
2484 (iterate_over_block_local_vars): Update.
2485 * stack.c (print_frame_args): Update.
2486 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2487 parameter const.
2488 (get_selected_block): Make return type const.
2489 * python/py-frame.c (frapy_block): Update.
2490 * python/py-block.c (gdbpy_block_for_pc): Update.
2491 * p-exp.y (%union) <bval>: Now const.
2492 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2493 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2494 * m2-exp.y (%union) <bval>: Now const.
2495 * linespec.c (get_current_search_block): Make return type const.
2496 (create_sals_line_offset, find_label_symbols): Update.
2497 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2498 Update.
2499 (block_starting_point_at): Make "block" const.
2500 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2501 (check_exception_resume): Update.
2502 * guile/scm-frame.c (gdbscm_frame_block): Update.
2503 * guile/scm-block.c (gdbscm_lookup_block): Update.
2504 * frame.h (get_frame_block): Update.
2505 (get_selected_block): Make return type const.
2506 * frame.c (frame_id_inner): Update.
2507 * f-valprint.c (info_common_command_for_block)
2508 (info_common_command): Update.
2509 * dwarf2loc.c (dwarf2_find_location_expression)
2510 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2511 (locexpr_describe_location_piece): Update.
2512 * c-exp.y (%union) <bval>: Now const.
2513 * breakpoint.c (resolve_sal_pc): Update.
2514 * blockframe.c (get_frame_block):Make return type const.
2515 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2516 (block_innermost_frame): Update.
2517 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2518 (block_for_pc, block_for_pc_sect): Update.
2519 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2520 'pblock' const.
2521 (block_for_pc_sect, block_for_pc): Make return type const.
2522 * ax-gdb.c (gen_expr): Update.
2523 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2524 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2525 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2526 (ada_read_var_value): Update.
2527 * ada-exp.y (struct name_info) <block>: Now const.
2528 (%union): Likewise.
2529 (block_lookup): Constify.
2530
b9228891
GB
25312014-06-18 Gary Benson <gbenson@redhat.com>
2532
2533 * nat/i386-dregs.h: New file.
2534 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2535 * i386-nat.h (i386-dregs.h): New include.
2536 (DR_FIRSTADDR): Now in i386-dregs.h.
2537 (DR_LASTADDR): Likewise.
2538 (DR_NADDR): Likewise.
2539 (DR_STATUS): Likewise.
2540 (DR_CONTROL): Likewise.
2541 (i386_debug_reg_state): Likewise.
2542 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2543
a1aa2221
LM
25442014-06-18 Don Breazeal <donb@codesourcery.com>
2545
2546 * breakpoint.c (set_longjmp_breakpoint): Call
2547 momentary_breakpoint_from_master with additional argument.
2548 (set_longjmp_breakpoint_for_call_dummy): Call
2549 momentary_breakpoint_from_master with additional argument.
2550 (set_std_terminate_breakpoint): Call
2551 momentary_breakpoint_from_master with additional argument.
2552 (momentary_breakpoint_from_master): Add argument to function
2553 definition and use it to initialize structure member flag.
74228e77 2554 (clone_momentary_breakpoint): Call
a1aa2221
LM
2555 momentary_breakpoint_from_master with additional argument.
2556 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2557 member flags set in momentary_breakpoint_from_master.
2558
4be83cc2
GB
25592014-06-18 Gary Benson <gbenson@redhat.com>
2560
2561 * i386-nat.c (i386_show_dr): Renamed to
2562 i386_dr_show and made nonstatic. All uses updated.
2563 (i386_length_and_rw_bits): Renamed to
2564 i386_dr_length_and_rw_bits and made nonstatic.
2565 All uses updated.
2566 (i386_insert_aligned_watchpoint): Renamed to
2567 i386_dr_insert_aligned_watchpoint and made nonstatic.
2568 All uses updated.
2569 (i386_remove_aligned_watchpoint): Renamed to
2570 i386_dr_remove_aligned_watchpoint and made nonstatic.
2571 All uses updated.
2572 (i386_update_inferior_debug_regs): Renamed to
2573 i386_dr_update_inferior_debug_regs and made nonstatic.
2574 All uses updated.
2575
131aa0d4
GB
25762014-06-18 Gary Benson <gbenson@redhat.com>
2577
2578 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2579 (i386_dr_low_can_set_control): Likewise.
2580 (i386_dr_low_set_addr): Likewise.
2581 (i386_dr_low_set_control): Likewise.
2582 (i386_dr_low_get_addr): Likewise.
2583 (i386_dr_low_get_status): Likewise.
2584 (i386_dr_low_get_control): Likewise.
2585 (i386_insert_aligned_watchpoint): Use new macros.
2586 (i386_update_inferior_debug_regs): Likewise.
2587 (i386_stopped_data_address): Likewise.
2588
d9305f7f
GB
25892014-06-18 Gary Benson <gbenson@redhat.com>
2590
2591 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2592 New parameter. All uses updated.
2593
ea008da4
GB
25942014-06-18 Gary Benson <gbenson@redhat.com>
2595
2596 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2597 All uses updated.
2598
1b6d4134
GB
25992014-06-18 Gary Benson <gbenson@redhat.com>
2600
2601 * i386-nat.c (debug_printf): New macro.
2602 (i386_get_debug_register_length): Likewise.
2603 (TARGET_HAS_DR_LEN_8): Use above macro.
2604 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2605 and printf_unfiltered. Use phex to format values.
2606
9b4550ef
GB
26072014-06-18 Gary Benson <gbenson@redhat.com>
2608
2609 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2610 Make const.
2611
6e62758f
GB
26122014-06-18 Gary Benson <gbenson@redhat.com>
2613
2614 * i386-nat.c: Comment changes.
2615
51c79e94
GB
26162014-06-18 Gary Benson <gbenson@redhat.com>
2617
2618 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2619
3e11889a
GB
26202014-06-18 Gary Benson <gbenson@redhat.com>
2621
2622 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2623 (i386_insert_aligned_watchpoint): Likewise.
2624 (i386_remove_aligned_watchpoint): Likewise.
2625 (i386_handle_nonaligned_watchpoint): Likewise.
2626
fc6e2f03
GB
26272014-06-18 Gary Benson <gbenson@redhat.com>
2628
2629 * i386-nat.c: Whitespace changes.
2630
2afe7d50
SB
26312014-06-17 Samuel Bronson <naesten@gmail.com>
2632
2633 * MAINTAINERS: Update Roland McGrath's email address.
2634 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2635 Red Hat a while ago, and giving me a current address.
2afe7d50 2636
3bca49ee
TT
26372014-06-17 Tom Tromey <tromey@redhat.com>
2638
2639 * utils.h (savestring): Remove declaration.
2640
6e366df1
TT
26412014-06-17 Tom Tromey <tromey@redhat.com>
2642
2643 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2644
6be47f0c
KS
26452014-06-16 Keith Seitz <keiths@redhat.com>
2646
2647 PR mi/15863
2648 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2649 to update the varobj if inferior_ptid is null_ptid.
2650
7bc112c1
TT
26512014-06-16 Tom Tromey <tromey@redhat.com>
2652
2653 * target.h (struct target_ops) <to_info_proc>: Make parameter
2654 const.
2655 (target_info_proc): Update.
2656 * target.c (target_info_proc): Make "args" const.
2657 * procfs.c (procfs_info_proc): Update.
2658 * linux-tdep.c (linux_info_proc): Update.
2659 (linux_core_info_proc_mappings): Make "args" const.
2660 (linux_core_info_proc): Update.
2661 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2662 * gdbarch.c: Rebuild.
2663 * gdbarch.h: Rebuild.
2664 * corelow.c (core_info_proc): Update.
2665
fee354ee
TT
26662014-06-16 Tom Tromey <tromey@redhat.com>
2667
2668 * target.h (struct target_ops) <to_disconnect>: Make parameter
2669 const.
2670 (target_disconnect): Update.
2671 * target.c (target_disconnect): Make "args" const.
2672 * target-delegates.c: Rebuild.
2673 * remote.c (remote_disconnect): Update.
2674 * record.h (record_disconnect): Update.
2675 * record.c (record_disconnect): Update.
2676 * inf-child.c (inf_child_disconnect): Update.
2677
a30bf1f1
TT
26782014-06-16 Tom Tromey <tromey@redhat.com>
2679
2680 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2681 * target.c (debug_to_rcmd, default_rcmd): Update.
2682 * target-delegates.c: Rebuild.
2683 * remote.c (remote_rcmd): Update.
2684 * monitor.c (monitor_rcmd): Update.
2685
d03de421
PA
26862014-06-16 Pedro Alves <palves@redhat.com>
2687
2688 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2689 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2690 have OBJF_SHARED set.
2691 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2692 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2693 instead of OBJF_USERLOADED.
2694 * objfiles.h (OBJF_SHARED): Update comment.
2695 (userloaded_objfile_contains_address_p): Rename to ...
2696 (shared_objfile_contains_address_p): ... this, and update
2697 comments.
2698 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2699 new objfile.
2700 (remove_symbol_file_command): Skip objfiles that don't have
2701 OBJF_SHARED set.
2702
99f4262f
TT
27032014-06-16 Tom Tromey <tromey@redhat.com>
2704
2705 * minsyms.h (prim_record_minimal_symbol)
2706 (prim_record_minimal_symbol_and_info): Update comments.
2707
97d66cc6
EZ
27082014-06-14 Eli Zaretskii <eliz@gnu.org>
2709
2710 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2711 or --without-guile, according to how GDB was built.
2712
635c7e8a
TT
27132014-06-13 Tom Tromey <tromey@redhat.com>
2714
2715 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2716 to help_list.
2717 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2718 to help_list.
2719 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2720 help_list.
2721 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2722 help_list.Pass all_commands, not -1, to help_list.
2723 * cli/cli-dump.c (dump_command, append_command)
2724 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2725 (binary_dump_command, binary_append_command): Pass all_commands,
2726 not -1, to help_list.
2727 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2728 -1, to help_list.
2729 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2730 -1, to help_list.
2731 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2732 help_list.
2733 * top.c (set_history): Pass all_commands, not -1, to help_list.
2734 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2735 all_commands, not -1, to help_list.
2736 * symfile.c (overlay_command): Pass all_commands, not -1, to
2737 help_list.
2738 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2739 help_list.
2740 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2741 help_list.
2742 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2743 -1, to help_list.
2744 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2745 not -1, to help_list.
2746 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2747 not -1, to help_list.
2748 * maint.c (maintenance_command, maintenance_info_command)
2749 (maintenance_print_command, maintenance_set_cmd): Pass
2750 all_commands, not -1, to help_list.
2751 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2752 help_list.
2753 * language.c (set_check): Pass all_commands, not -1, to help_list.
2754 * infcmd.c (unset_command): Pass all_commands, not -1, to
2755 help_list.
2756 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2757 help_list.
2758 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2759 help_list.
2760 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2761 help_list.
2762 * breakpoint.c (save_command): Pass all_commands, not -1, to
2763 help_list.
2764 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2765 all_commands, not -1, to help_list.
2766
b94ade42
PL
27672014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2768
2769 * regcache.c (struct register_to_invalidate): New structure.
2770 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2771 functions.
2772 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2773
31f628ae
YQ
27742014-06-12 Yao Qi <yao@codesourcery.com>
2775
2776 * varobj.c (varobj_get_num_children): Call
2777 varobj_is_dynamic_p.
2778 (varobj_list_children): Likewise.
2779 (varobj_update): Likewise. Update comments.
2780
cde5ef40
YQ
27812014-06-12 Yao Qi <yao@codesourcery.com>
2782
2783 * varobj.c (varobj_pretty_printed_p): Rename to ...
2784 (varobj_is_dynamic_p): ... this. New function.
2785 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2786 (varobj_is_dynamic_p): Declare.
2787 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2788 (mi_print_value_p, varobj_update_one): Likewise.
2789
576ea091
YQ
27902014-06-12 Pedro Alves <pedro@codesourcery.com>
2791 Yao Qi <yao@codesourcery.com>
2792
2793 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2794 (varobj_get_iterator): Wrap up code for pretty-printer by
2795 "#if HAVE_PYTHON" and "#endif".
2796 (update_dynamic_varobj_children): Likewise.
2797
827f100c
YQ
27982014-06-12 Pedro Alves <pedro@codesourcery.com>
2799 Yao Qi <yao@codesourcery.com>
2800
2801 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2802 gdb_python_initialized is false. Move some code from varobj.c.
2803 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2804 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2805 (struct varobj_item): Moved to varobj-iter.h".
2806 (varobj_clear_saved_item): New function.
2807 (update_dynamic_varobj_children): Move python-related code to
2808 py-varobj.c.
2809 (free_variable): Call varobj_clear_saved_item and
2810 varobj_iter_delete.
2811
e5250216
YQ
28122014-06-12 Pedro Alves <pedro@codesourcery.com>
2813 Yao Qi <yao@codesourcery.com>
2814
2815 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2816 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2817 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2818 (py-varobj.o): New rule.
2819 * python/py-varobj.c: New file.
2820 * python/python-internal.h (py_varobj_get_iterator): Declare.
2821 * varobj-iter.h: New file.
2822 * varobj.c: Include "varobj-iter.h"
2823 (struct varobj) <child_iter>: Change its type from "PyObject *"
2824 to "struct varobj_iter *".
2825 <saved_item>: Likewise.
2826 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2827 [HAVE_PYTHON] (varobj_get_iterator): New function.
2828 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2829 python-specific code to python/py-varobj.c.
2830 (install_visualizer): Call varobj_iter_delete instead of
2831 Py_XDECREF.
2832 * varobj.h (varobj_ensure_python_env): Declare.
2833
5a2e0d6e
YQ
28342014-06-12 Yao Qi <yao@codesourcery.com>
2835
2836 * varobj.c (struct varobj_item): New structure.
2837 (create_child_with_value): Update declaration.
2838 (varobj_add_child): Replace arguments 'name' and 'value' with
2839 'item'. All callers updated.
2840 (install_dynamic_child): Likewise.
2841 (update_dynamic_varobj_children): Likewise.
2842 (varobj_add_child): Likewise.
2843 (create_child_with_value): Likewise.
2844
919b9a93
JB
28452014-06-11 Joel Brobecker <brobecker@adacore.com>
2846
2847 * NEWS: Create a new section for the next release branch.
2848 Rename the section of the current branch, now that it has
2849 been cut.
2850
71a55bdf
JB
28512014-06-11 Joel Brobecker <brobecker@adacore.com>
2852
2853 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2854 * version.in: Bump version to 7.8.50.DATE-cvs.
2855
364fe1f7
PA
28562014-06-11 Pedro Alves <palves@redhat.com>
2857
2858 PR remote/17028
2859 * ser-mingw.c (net_windows_socket_check_pending): New function.
2860 (net_windows_select_thread): Ignore spurious wakeups. Use
2861 net_windows_socket_check_pending.
2862 (net_windows_wait_handle): Check for pending events with
2863 ioctlsocket, through net_windows_socket_check_pending, instead of
2864 checking the socket's event.
2865
5a6c7709
SC
28662014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2867
2868 * python/python-internal.h (gdb_PyObject_GetAttrString)
2869 (gdb_PyObject_HasAttrString): New inline function definitions.
2870 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2871 char * of the second argument to PyObject_GetAttrString.
74228e77 2872
0e58ee40
JB
28732014-06-10 Joel Brobecker <brobecker@adacore.com>
2874
2875 * serial.c (serial_write): Fix index of character to be printed
2876 in call to serial_logchar when serial debug traces are enabled.
2877
d190df30
JB
28782014-06-10 Joel Brobecker <brobecker@adacore.com>
2879
2880 * gdbtypes (resolve_dynamic_range): Add function description.
2881
b4b01d36
PA
28822014-06-09 Pedro Alves <palves@redhat.com>
2883
2884 * linux-nat.c (linux_child_follow_fork): Initialize status with
2885 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2886 inner block. Only pass the signal to PTRACE_DETACH if in pass
2887 state.
2888
3657956b
GB
28892014-06-09 Gary Benson <gbenson@redhat.com>
2890
2891 * common/signals.c (gdb_signal_from_host): Reorder to separate
2892 the always-available ANSI-standard signals from the signals that
2893 require checking.
2894 (do_gdb_signal_to_host): Likewise.
2895 * proc-events.c (signal_table): Likewise.
2896
c077881a
HZ
28972014-06-08 Hui Zhu <hui@codesourcery.com>
2898
2899 * common/linux-ptrace.c (linux_disable_event_reporting): New
2900 function.
2901 * common/linux-ptrace.h (linux_disable_event_reporting): New
2902 declaration.
2903 * linux-nat.c (linux_child_follow_fork): Do a single step before
2904 detach.
2905
4186eb54
KS
29062014-06-07 Keith Seitz <keiths@redhat.com>
2907
2908 Revert:
2909 PR c++/16253
2910 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2911 from symbol_matches_domain in symtab.c. All local callers
2912 of symbol_matches_domain updated.
2913 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2914 search STRUCT_DOMAIN.
2915 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2916 independently. standard_lookup will do that automatically.
2917 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2918 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2919 (cp_lookup_symbol_in_namespace): Likewise.
2920 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2921 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2922 may return a STRUCT_DOMAIN match.
2923 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2924 * cp-support.c: Include language.h.
2925 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2926 VAR_DOMAIN.
2927 * psymtab.c (match_partial_symbol): Compare the requested
2928 domain with the symbol's domain directly.
2929 (lookup_partial_symbol): Likewise.
2930 * symtab.c (lookup_symbol_in_language): Explain when/why
2931 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2932 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2933 appropriate languages.
2934 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2935 and moved to ada-lang.c
2936 (lookup_block_symbol): Explain that this function only returns
2937 symbol matching the requested DOMAIN.
2938 Compare the requested domain with the symbol's domain directly.
2939 (iterate_over_symbols): Compare the requested domain with the
2940 symbol's domain directly.
2941 * symtab.h (symbol_matches_domain): Remove.
2942
25326a28 29432014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2944
2945 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2946 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2947 (gdbscm_guile_version_is_at_least): Declare.
2948 (gdbscm_scm_string_to_int): Declare.
2949 * guile/guile.c (gdbscm_guile_major_version): New global.
2950 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2951 (guile_datadir): New static global.
2952 (gdbscm_guile_data_directory): New function.
2953 (initialize_scheme_side): Update.
2954 (misc_guile_functions): Add guile-data-directory.
2955 (initialize_gdb_module): Fetch guile version number.
2956 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2957 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2958 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2959 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2960 comments.
2961 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2962 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2963 * guile/scm-value.c (gdbscm_value_to_string): Only call
2964 scm_port_conversion_strategy if Guile version >= 2.0.6.
2965
0a770bb2 29662014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2967
2968 * main.c (print_gdb_help): Add -q and --silent.
2969
73ba372c
GB
29702014-06-06 Gary Benson <gbenson@redhat.com>
2971
2972 * common/signals.c: Remove preprocessor conditionals for
2973 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2974 SIGSEGV and SIGTERM.
2975 * proc-events.c: Likewise.
2976
c33b2f12
MM
29772014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2978
2979 * symfile.c (symfile_free_objfile): Remove restriction to
2980 OBJF_USERLOADED.
2981 * symfile-mem.c (symbol_file_add_from_memory): Call
2982 add_target_sections_of_objfile.
2983
fb934770
LC
29842014-06-05 Ludovic Courtès <ludo@gnu.org>
2985
2986 * guile/scm-value.c (gdbscm_history_append_x): Use
2987 'vlscm_get_value_smob_arg_unsafe' instead of
2988 'vlscm_scm_to_value'.
2989
6ef284bd
SM
29902014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2991
2992 PR mi/15806
2993 * utils.c (printchar): Don't escape at all if quoter is NUL.
2994 Update function documentation to clarify effect of parameter
2995 QUOTER.
2996 * remote.c (escape_buffer): Pass '\\' as the quoter to
2997 fputstrn_unfiltered.
2998 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2999 generate the output.
3000 (mi_solib_unloaded): Same.
3001
270c9937
JB
30022014-06-05 Joel Brobecker <brobecker@adacore.com>
3003
3004 * development.sh: Delete.
3005 * Makefile.in (config.status): Adjust dependency on development.sh.
3006 * configure.ac: Adjust development.sh source call.
3007 * configure: Regenerate.
3008
16f691fb
DE
30092014-06-04 Doug Evans <xdje42@gmail.com>
3010
3011 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3012 is_scheme_bkpt, spec.
3013 (bpscm_make_breakpoint_smob): Initialize new members.
3014 (gdbscm_create_breakpoint_x): Split into two ...
3015 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3016 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3017 (scheme_function breakpoint_functions): Update.
3018 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3019 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3020 register-breakpoint!.
3021
ef7cab6b
JB
30222014-06-04 Joel Brobecker <brobecker@adacorer.com>
3023
3024 PR server/17023
3025 * mem-break.c (z_type_supported): Return zero if
3026 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3027
012370f6
TT
30282014-06-04 Tom Tromey <tromey@redhat.com>
3029
3030 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3031 value_from_contents_and_address_unresolved.
3032 (ada_template_to_fixed_record_type_1): Likewise.
3033 (ada_which_variant_applies): Likewise.
3034 * value.h (value_from_contents_and_address_unresolved): Declare.
3035 * value.c (value_from_contents_and_address_unresolved): New
3036 function.
3037 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3038 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3039 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3040
92e2a17f
TT
30412014-06-04 Tom Tromey <tromey@redhat.com>
3042
3043 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3044
c0939df1
TT
30452014-06-04 Tom Tromey <tromey@redhat.com>
3046
3047 * procfs.c (procfs_attach): Make "args" const.
3048 * windows-nat.c (windows_attach): Make "args" const.
3049 * nto-procfs.c (procfs_attach): Make "args" const.
3050 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3051 * go32-nat.c (go32_attach): Make "args" const.
3052 * gnu-nat.c (gnu_attach): Make "args" const.
3053 * darwin-nat.c (darwin_attach): Make "args" const.
3054 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3055 * linux-nat.c (linux_nat_attach): Make "args" const.
3056 * remote.c (extended_remote_attach_1, extended_remote_attach):
3057 Make "args" const.
3058 * target.h (struct target_ops) <to_attach>: Make "args" const.
3059 (find_default_attach): Likewise.
3060 * utils.c (parse_pid_to_attach): Make "args" const.
3061 * utils.h (parse_pid_to_attach): Update.
3062
8eaff7cd
TT
30632014-06-04 Tom Tromey <tromey@redhat.com>
3064
3065 * target-delegates.c: Rebuild.
3066 * target.c (default_thread_address_space): New function.
3067 (target_thread_address_space): Simplify.
3068 * target.h (struct target_ops) <to_thread_address_space>: Add
3069 TARGET_DEFAULT_FUNC.
3070
1913f160
DE
30712014-06-04 Doug Evans <xdje42@gmail.com>
3072
3073 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3074
70ad5bff
MM
30752014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3076
3077 * record-btrace.c: Include event-loop.h and inf-loop.h.
3078 (record_btrace_resume_exec_dir)
3079 (record_btrace_async_inferior_event_handler)
3080 (record_btrace_handle_async_inferior_event): New.
3081 (record_btrace_open): Create async event handler.
3082 (record_btrace_close): Delete async event handler.
3083 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3084 Mark async event handler.
3085 (record_btrace_execution_direction): New.
3086 (init_record_btrace_ops): Initialize to_execution_direction.
3087
b6210538
DE
30882014-06-03 Doug Evans <xdje42@gmail.com>
3089
3090 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3091 (gdbscm_make_parameter): Ditto.
3092
a5b1fd27
DE
30932014-06-03 Doug Evans <dje@google.com>
3094
3095 * exec.c (exec_close_1): Call clear_section_table instead of
3096 resize_section_table.
3097 (clear_section_table): New function.
3098 (resize_section_table): Make static. Rename arg num_added to
3099 adjustment.
3100 * exec.h (clear_section_table): Declare.
3101 (resize_section_table): Delete.
3102 * progspace.c (release_program_space): Call clear_section_table
3103 instead of resize_section_table.
3104
0c6e92a5
SC
31052014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3106
3107 * NEWS (Python Scripting): Add entry about the new xmethods
3108 feature.
3109
883964a7
SC
31102014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3111
3112 * python/py-xmethods.c: New file.
3113 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3114 (objfpy_dealloc): XDECREF on the new xmethods field.
3115 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3116 field.
3117 (objfpy_get_xmethods): New function.
3118 (objfile_getset): New entry 'xmethods'.
3119 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3120 (pspy_dealloc): XDECREF on the new xmethods field.
3121 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3122 field.
3123 (pspy_get_xmethods): New function.
3124 (pspace_getset): New entry 'xmethods'.
3125 * python/python-internal.h: Add declarations for new functions.
3126 * python/python.c (_initialize_python): Invoke
3127 gdbpy_initialize_xmethods.
3128 * python/lib/gdb/__init__.py (xmethods): New
3129 attribute.
3130 * python/lib/gdb/xmethod.py: New file.
3131 * python/lib/gdb/command/xmethods.py: New file.
3132
58992dc5
SC
31332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3134
3135 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3136 best match method returned by find_overload_match is an xmethod.
3137 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3138 the best matching operator returned by find_overload_match is an
3139 xmethod.
3140 * valops.c: #include "extension.h".
3141 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3142 Return void. The list of matching source methods is returned in
3143 "fn_list" and a vector of matching debug method workers is
3144 returned in "xm_worker_vec". Update all callers.
3145 (value_find_oload_method_list): Likewise.
3146 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3147 non-NULL, then the index of the best matching method in this
3148 vector is returned. Update all callers.
3149 (find_overload_match): Include xmethods while performing overload
3150 resolution.
3151
e81e7f5e
SC
31522014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3153
3154 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3155 * extension-priv.h (struct extension_language_ops): Add the
3156 xmethod interface.
3157 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3158 get_matching_xmethod_workers, get_xmethod_argtypes,
3159 invoke_xmethod, free_xmethod_worker,
3160 free_xmethod_worker_vec): New functions.
3161 * extension.h: #include "common/vec.h".
3162 New function declarations.
3163 (struct xmethod_worker): New struct.
3164 (VEC (xmethod_worker_ptr)): New vector type.
3165 (xmethod_worker_ptr): New typedef.
3166 (xmethod_worker_vec): Likewise.
3167 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3168 builtin_type.
3169 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3170 (struct builtin_type): New field "xmethod".
3171 * valarith.c (value_ptradd): Assert that the value argument is not
3172 lval_xcallable.
3173 * valops.c (value_must_coerce_to_target): Return 0 for
3174 lval_xcallable values.
3175 * value.c (struct value): New field XM_WORKER in the field
3176 LOCATION.
3177 (value_address, value_raw_address): Return 0 for lval_xcallable
3178 values.
3179 (set_value_address): Assert that the value is not an
3180 lval_xcallable.
3181 (value_free): Free the associated xmethod worker when freeing
3182 lval_xcallable values.
3183 (set_value_component_location): Assert that the WHOLE value is not
3184 lval_xcallable.
3185 (value_of_xmethod, call_xmethod): New functions.
3186 * value.h: Declare "struct xmethod_worker".
3187 Declare new functions value_of_xmethod, call_xmethod.
3188
ef370185
JB
31892014-06-03 Joel Brobecker <brobecker@adacore.com>
3190 Pedro Alves <palves@redhat.com>
3191
3192 PR breakpoints/17000
3193 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3194 New function, extracted from software_breakpoint_inserted_here_p.
3195 (software_breakpoint_inserted_here_p): Replace factored out code
3196 by call to find_non_raw_software_breakpoint_inserted_here.
3197 (bp_target_info_copy_insertion_state): New function.
3198 (bkpt_insert_location): Handle the case of a single-step
3199 breakpoint already inserted at the same address.
3200 (bkpt_remove_location): Handle the case of a single-step
3201 breakpoint still inserted at the same address.
3202 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3203 breakpoint already inserted at the same address.
3204 (deprecated_remove_raw_breakpoint): Handle the case of a
3205 non-raw breakpoint still inserted at the same address.
3206 (find_single_step_breakpoint): New function, extracted from
3207 single_step_breakpoint_inserted_here_p.
3208 (find_single_step_breakpoint): New function,
3209 factored out from single_step_breakpoint_inserted_here_p.
3210 (single_step_breakpoint_inserted_here_p): Reimplement.
3211
1e2ccb61
BM
32122014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3213
3214 Pushed by Joel Brobecker <brobecker@adacore.com>
3215 * source.c (show_substitute_path_command): Fix display of matching
3216 substitution rules.
3217
d3448d85
GB
32182014-06-03 Gary Benson <gbenson@redhat.com>
3219
3220 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3221
06eb1586
DE
32222014-06-02 Doug Evans <xdje42@gmail.com>
3223
3224 Add parameter support for Guile.
3225 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3226 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3227 (scm-param.o): New rule.
3228 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3229 (gdbscm_misc_error): Declare.
3230 (gdbscm_canonicalize_command_name): Declare.
3231 (gdbscm_scm_to_host_string): Declare.
3232 (gdbscm_scm_from_host_string): Declare.
3233 (gdbscm_initialize_parameters): Declare.
3234 * guile/guile.c (initialize_gdb_module): Call
3235 gdbscm_initialize_parameters.
3236 * guile/lib/gdb.scm: Export parameter symbols.
3237 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3238 cmdscm_canonicalize_name and made public. All callers updated.
3239 * guile/scm-exception.c (gdbscm_misc_error): New function.
3240 * guile/scm-param.c: New file.
3241 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3242 (gdbscm_scm_to_host_string): New function.
3243 (gdbscm_scm_from_host_string): New function.
3244 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3245
e698b8c4
DE
32462014-06-02 Doug Evans <xdje42@gmail.com>
3247
3248 Add command support for Guile.
3249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3250 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3251 (scm-cmd.o): New rule.
3252 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3253 (gdbscm_user_error_p): Declare.
3254 (gdbscm_parse_command_name): Declare.
3255 (gdbscm_valid_command_class_p): Declare.
3256 (gdbscm_initialize_commands): Declare.
3257 * guile/guile.c (initialize_gdb_module): Call
3258 gdbscm_initialize_commands.
3259 * guile/lib/gdb.scm: Export command symbols.
3260 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3261 (throw-user-error): New function.
3262 * guile/scm-cmd.c: New file.
3263 * guile/scm-exception.c (user_error_symbol): New static global.
3264 (gdbscm_user_error_p): New function.
3265 (gdbscm_initialize_exceptions): Set user_error_symbol.
3266 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3267
fb1f94b0
PM
32682014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3269
3270 * top.c (command_loop): Handle comments here...
3271 (command_line_input): ... not here.
3272
ded03782
DE
32732014-06-02 Doug Evans <xdje42@gmail.com>
3274
3275 Add progspace support for Guile.
3276 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3277 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3278 (scm-progspace.o): New rule.
3279 * guile/guile-internal.h (pspace_smob): New typedef.
3280 (psscm_pspace_smob_pretty_printers): Declare.
3281 (psscm_pspace_smob_from_pspace): Declare.
3282 (psscm_scm_from_pspace): Declare.
3283 * guile/guile.c (initialize_gdb_module): Call
3284 gdbscm_initialize_pspaces.
3285 * guile/lib/gdb.scm: Export progspace symbols.
3286 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3287 support.
3288 (append-pretty-printer!): Ditto.
3289 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3290 Implement.
3291 * guile/scm-progspace.c: New file.
3292
397998fc
AM
32932014-06-03 Alan Modra <amodra@gmail.com>
3294
3295 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3296 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3297
6aa5f3a6
DE
32982014-06-02 Doug Evans <dje@google.com>
3299
3300 Add support for skeletonless type units.
3301 * dwarf2read.c (struct dwarf2_per_objfile): New member
3302 n_allocated_type_units.
3303 (struct dwarf2_per_objfile) <tu_stats>: New member
3304 nr_all_type_units_reallocs.
3305 (create_signatured_type_table_from_index): Initialize
3306 n_allocated_type_units
3307 (create_all_type_units): Ditto.
3308 (add_type_unit): Move up in file. New arg slot.
3309 All callers updated. Increase space for all_type_units more
3310 efficiently.
3311 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3312 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3313 (lookup_dwp_signatured_type): Ditto.
3314 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3315 All callers updated.
3316 (build_type_psymtabs_1): Leave type_unit_groups as
3317 NULL if no TUs present.
3318 (print_tu_stats): New function.
3319 (process_skeletonless_type_unit): New function.
3320 (process_dwo_file_for_skeletonless_type_units): New
3321 function.
3322 (process_skeletonless_type_units): New function.
3323 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3324 Call print tu_stats if debugging enabled.
3325
41fac0cf
PA
33262014-06-02 Pedro Alves <palves@redhat.com>
3327
3328 * breakpoint.c (build_target_command_list): Don't build a command
3329 list if we have any duplicate location that isn't a dprintf.
3330
cd1608cc
PA
33312014-06-02 Pedro Alves <palves@redhat.com>
3332
3333 * breakpoint.c (dprintf_breakpoint_hit): New function.
3334 (initialize_breakpoint_ops): Install it as dprintf's
3335 breakpoint_hit method.
3336
486ef3b9
JB
33372014-06-02 Joel Brobecker <brobecker@adacore.com>
3338
3339 * source.c (substitute_path_rule_matches): Simplify using
3340 filename_ncmp instead of FILENAME_CMP.
3341
230cd560
JB
33422014-06-02 Joel Brobecker <brobecker@adacore.com>
3343
3344 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3345
16954d5d
LC
33462014-06-01 Ludovic Courtès <ludo@gnu.org>
3347
3348 * configure.ac: When Guile is available, check for the
3349 availability of 'scm_new_smob'.
3350 * configure, config.h.in: Regenerate.
3351 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3352 function.
3353
53e8a631
AB
33542014-05-30 Andrew Burgess <aburgess@broadcom.com>
3355
3356 * frame.c (struct frame_info): Add stop_string field.
3357 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3358 (get_prev_frame_always): Old content moved into
3359 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3360 TRY_CATCH, handle MEMORY_ERROR exceptions.
3361 (frame_stop_reason_string): New function definition.
3362 * frame.h (unwind_stop_reason_to_string): Extend comment to
3363 mention frame_stop_reason_string.
3364 (frame_stop_reason_string): New function declaration.
3365 * stack.c (frame_info): Switch to frame_stop_reason_string.
3366 (backtrace_command_1): Switch to frame_stop_reason_string.
3367 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3368 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3369 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3370
70e38b8e
AB
33712014-05-30 Andrew Burgess <aburgess@broadcom.com>
3372
3373 * frame.c (frame_stop_reason_string): Rename to ...
3374 (unwind_stop_reason_to_string): this.
3375 * frame.h (frame_stop_reason_string): Rename to ...
3376 (unwind_stop_reason_to_string): this.
3377 * stack.c (frame_info): Update call to frame_stop_reason_string.
3378 (backtrace_command_1): Likewise.
3379 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3380 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3381
938f0e2f
AB
33822014-05-30 Andrew Burgess <aburgess@broadcom.com>
3383
3384 * frame.c (remove_prev_frame): New function.
3385 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3386 remove_prev_frame.
3387
a09dd441
PA
33882014-05-29 Pedro Alves <palves@redhat.com>
3389
3390 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3391 and make it const. When a single-step decays to a continue,
3392 clear 'step', not 'hw_step'. Pass whether the caller wanted
3393 to step to user_visible_resume_ptid, not what we ask the
3394 target to do.
3395
bdc36728
PA
33962014-05-29 Pedro Alves <palves@redhat.com>
3397
3398 * infrun.c (process_event_stop_test, handle_step_into_function)
3399 (handle_step_into_function_backward): Adjust.
3400 Don't set the even thread's stop_step and call stop_waiting before
3401 calling end_stepping_range. Instead do that ...
3402 (end_stepping_range): ... here. Take an ecs pointer parameter.
3403
22bcd14b
PA
34042014-05-29 Pedro Alves <palves@redhat.com>
3405
3406 * infrun.c (stop_stepping): Rename to ...
3407 (stop_waiting): ... this.
3408 (proceed): Update comment.
3409 (process_event_stop_test, handle_inferior_event)
3410 (handle_signal_stop, handle_step_into_function)
3411 (handle_step_into_function_backward): Update.
3412
4ae57c05
PA
34132014-05-29 Pedro Alves <palves@redhat.com>
3414
3415 * infcall.c (run_inferior_call): Don't check whether the current
3416 thread is running after the proceed call.
3417
329ea579
PA
34182014-05-29 Pedro Alves <palves@redhat.com>
3419 Tom Tromey <tromey@redhat.com>
3420
3421 * NEWS: Mention "maint set target-async", "set mi-async", and that
3422 background execution commands are now always available.
3423 * target.h (target_async_permitted): Update comment.
3424 * target.c (target_async_permitted, target_async_permitted_1):
3425 Default to 1.
3426 (set_target_async_command): Rename to ...
3427 (maint_set_target_async_command): ... this.
3428 (show_target_async_command): Rename to ...
3429 (maint_show_target_async_command): ... this.
3430 (_initialize_target): Adjust.
3431 * infcmd.c (prepare_execution_command): Make extern.
3432 * inferior.h (prepare_execution_command): Declare.
3433 * infrun.c (set_observer_mode): Leave target async alone.
3434 * mi/mi-interp.c (mi_interpreter_init): Install
3435 mi_on_sync_execution_done as sync_execution_done observer.
3436 (mi_on_sync_execution_done): New function.
3437 (mi_execute_command_input_handler): Don't print the prompt if we
3438 just started a synchronous command with an async target.
3439 (mi_on_resume): Check sync_execution before printing prompt.
3440 * mi/mi-main.h (mi_async_p): Declare.
3441 * mi/mi-main.c: Include gdbcmd.h.
3442 (mi_async_p): New function.
3443 (mi_async, mi_async_1): New globals.
3444 (set_mi_async_command, show_mi_async_command, mi_async): New
3445 functions.
3446 (exec_continue): Call prepare_execution_command.
3447 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3448 (mi_execute_async_cli_command): Use mi_async_p.
3449 (_initialize_mi_main): Install "set mi-async". Make
3450 "target-async" a deprecated alias.
3451
92bcb5f9
PA
34522014-05-29 Pedro Alves <palves@redhat.com>
3453
3454 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3455 (_initialize_cli_interp): Adjust.
3456 * event-loop.c: Include "observer.h".
3457 (start_event_loop): Notify 'command_error' observers instead of
3458 calling display_gdb_prompt. Remove FIXME comment.
3459 * event-top.c (display_gdb_prompt): Remove call into the
3460 interpreters.
3461 * inf-loop.c: Include "observer.h".
3462 (inferior_event_handler): Notify 'command_error' observers instead
3463 of calling display_gdb_prompt.
3464 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3465 observers instead of calling display_gdb_prompt.
3466 * interps.c (interp_set): Don't call display_gdb_prompt.
3467 (current_interp_display_prompt_p): Delete.
3468 * interps.h (interp_prompt_p): Delete declaration.
3469 (interp_prompt_p_ftype): Delete.
3470 (struct interp_procs) <prompt_proc_p>: Delete field.
3471 (current_interp_display_prompt_p): Delete declaration.
3472 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3473 (_initialize_mi_interp): Adjust.
3474 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3475 'command_error' observers.
3476 (tui_on_sync_execution_done, tui_on_command_error): New
3477 functions.
3478 (tui_display_prompt_p): Delete.
3479 (_initialize_tui_interp): Adjust.
3480
fd664c91
PA
34812014-05-29 Pedro Alves <palves@redhat.com>
3482
3483 PR gdb/13860
3484 * cli/cli-interp.c: Include infrun.h and observer.h.
3485 (cli_uiout, cli_interp): New globals.
3486 (cli_on_signal_received, cli_on_end_stepping_range)
3487 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3488 functions.
3489 (cli_interpreter_init): Install them as 'end_stepping_range',
3490 'signal_received' 'signal_exited', 'exited' and 'no_history'
3491 observers.
3492 (_initialize_cli_interp): Remove cli_interp local.
3493 * infrun.c (handle_inferior_event): Call the several stop reason
3494 observers instead of printing the stop reason directly.
3495 (end_stepping_range): New function.
3496 (print_end_stepping_range_reason, print_signal_exited_reason)
3497 (print_exited_reason, print_signal_received_reason)
3498 (print_no_history_reason): Make static, and add an uiout
3499 parameter. Print to that instead of to CURRENT_UIOUT.
3500 * infrun.h (print_end_stepping_range_reason)
3501 (print_signal_exited_reason, print_exited_reason)
3502 (print_signal_received_reason print_no_history_reason): New
3503 declarations.
3504 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3505 'mi_uiout'.
3506 <cli_uiout>: New field.
3507 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3508 uiout for CLI output. Install 'signal_received',
3509 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3510 observers.
3511 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3512 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3513 (mi_on_no_history): New functions.
3514 (ui_out_free_cleanup): Delete function.
3515 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3516 instead use the one already stored in the MI interpreter data.
3517 (mi_ui_out): Adjust.
3518 * tui/tui-interp.c: Include infrun.h and observer.h.
3519 (tui_interp): New global.
3520 (tui_on_signal_received, tui_on_end_stepping_range)
3521 (tui_on_signal_exited, tui_on_exited)
3522 (tui_on_no_history): New functions.
3523 (tui_init): Install them as 'end_stepping_range',
3524 'signal_received' 'signal_exited', 'exited' and 'no_history'
3525 observers.
3526 (_initialize_tui_interp): Delete tui_interp local.
3527
8817a6f2
PA
35282014-05-29 Pedro Alves <palves@redhat.com>
3529
3530 PR gdb/15713
3531 * linux-nat.c (linux_nat_resume_callback): Rename the second
3532 parameter to 'except'. Skip LP if it points to EXCEPT.
3533 (linux_nat_resume): Don't mark the event lwp as not stopped
3534 before resuming sibling lwps. Instead ask
3535 linux_nat_resume_callback to skip the event lwp. Mark it as not
3536 stopped after actually resuming it.
3537 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3538 resuming it.
3539 (wait_lwp): Mark the lwp as stopped here.
3540 (stop_wait_callback): Mark the lwp as not stopped right after
3541 resuming it. Don't mark lwps as stopped here.
3542 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3543 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3544
251bde03
PA
35452014-05-29 Pedro Alves <palves@redhat.com>
3546
3547 PR PR15693
3548 * infrun.c (resume): Determine how much to resume depending on
3549 whether the caller wanted a step, not whether we can hardware step
3550 the target. Mark all threads that we intend to run as running,
3551 unless we're calling an inferior function.
3552 (normal_stop): If the thread is running an infcall, don't finish
3553 thread state.
3554 * target.c (target_resume): Don't mark threads as running here.
3555
7f3c0343
JB
35562014-05-28 Joel Brobecker <brobecker@adacore.com>
3557
3558 * serial.c (_initialize_serial): Remove support for
3559 the "set remotebaud" and "show remotebaud" commands.
3560 * NEWS: Add entry documenting the removal of that command.
3561
ee34b3f9
YQ
35622014-05-28 Yao Qi <yao@codesourcery.com>
3563
3564 * charset.c: Fix typo in comments.
3565
add6c04d
GB
35662014-05-27 Gary Benson <gbenson@redhat.com>
3567
3568 * utils.c (internal_vproblem): Prompt for a bug report.
3569
92c48fc5
AW
35702014-05-26 Andy Wingo <wingo@igalia.com>
3571
3572 * guile/scm-arch.c (arscm_mark_arch_smob):
3573 * guile/scm-block.c (bkscm_mark_block_smob)
3574 (bkscm_mark_block_syms_progress_smob):
3575 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3576 * guile/scm-exception.c (exscm_mark_exception_smob):
3577 * guile/scm-frame.c (frscm_mark_frame_smob):
3578 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3579 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3580 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3581 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3582 (ppscm_mark_pretty_printer_worker_smob):
3583 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3584 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3585 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3586 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3587 mark functions.
3588 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3589 function.
3590
b2715b27
AW
35912014-05-26 Andy Wingo <wingo@igalia.com>
3592 Doug Evans <xdje42@gmail.com>
3593
3594 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3595 empty_base_class. All uses updated.
3596 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3597 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3598 Adapt all callers.
3599 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3600 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3601 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3602 (gdbscm_gsmob_has_property_p, add_property_name)
3603 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3604 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3605 (gdb-object-has-property?, gdb-object-properties): Remove.
3606 (gdb-object-kind): Renamed from gsmob-kind.
3607
214ab2da
AW
36082014-05-26 Andy Wingo <wingo@igalia.com>
3609
3610 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3611 * configure: Regenerate.
3612
589fdceb
MM
36132014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3614
3615 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3616
67b5c0c1
MM
36172014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3618
3619 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3620 (replay_memory_access_read_only, replay_memory_access_read_write)
3621 (replay_memory_access_types, replay_memory_access)
3622 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3623 (cmd_set_record_btrace, cmd_show_record_btrace)
3624 (cmd_show_replay_memory_access): New.
3625 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3626 (record_btrace_remove_breakpoint): Replace
3627 record_btrace_allow_memory_access with replay_memory_access.
3628 (_initialize_record_btrace): Add commands.
3629 * NEWS: Announce it.
3630
036cd381
RR
36312014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3632
3633 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3634
c77c1e42
RR
36352014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3636
3637 * MAINTAINERS (Write After Approval): Move self back from
3638 paper trail.
3639
45741a9c
PA
36402014-05-22 Pedro Alves <palves@redhat.com>
3641
3642 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3643 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3644 (disable_randomization, enum exec_direction_kind)
3645 (execution_direction, stop_registers, start_remote)
3646 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3647 (wait_for_inferior, normal_stop, get_last_target_status)
3648 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3649 (insert_step_resume_breakpoint_at_sal)
3650 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3651 (set_step_info, print_stop_event, signal_stop_state)
3652 (signal_print_state, signal_pass_state, signal_stop_update)
3653 (signal_print_update, signal_pass_update)
3654 (update_signals_program_target, clear_exit_convenience_vars)
3655 (displaced_step_dump_bytes, update_observer_mode)
3656 (signal_catch_update, gdb_signal_from_command): Move
3657 declarations ...
3658 * infrun.h: ... to this new file.
3659 * amd64-tdep.c: Include infrun.h.
3660 * annotate.c: Include infrun.h.
3661 * arch-utils.c: Include infrun.h.
3662 * arm-linux-tdep.c: Include infrun.h.
3663 * arm-tdep.c: Include infrun.h.
3664 * break-catch-sig.c: Include infrun.h.
3665 * breakpoint.c: Include infrun.h.
3666 * common/agent.c: Include infrun.h instead of inferior.h.
3667 * corelow.c: Include infrun.h.
3668 * event-top.c: Include infrun.h.
3669 * go32-nat.c: Include infrun.h.
3670 * i386-tdep.c: Include infrun.h.
3671 * inf-loop.c: Include infrun.h.
3672 * infcall.c: Include infrun.h.
3673 * infcmd.c: Include infrun.h.
3674 * infrun.c: Include infrun.h.
3675 * linux-fork.c: Include infrun.h.
3676 * linux-nat.c: Include infrun.h.
3677 * linux-thread-db.c: Include infrun.h.
3678 * monitor.c: Include infrun.h.
3679 * nto-tdep.c: Include infrun.h.
3680 * procfs.c: Include infrun.h.
3681 * record-btrace.c: Include infrun.h.
3682 * record-full.c: Include infrun.h.
3683 * remote-m32r-sdi.c: Include infrun.h.
3684 * remote-mips.c: Include infrun.h.
3685 * remote-notif.c: Include infrun.h.
3686 * remote-sim.c: Include infrun.h.
3687 * remote.c: Include infrun.h.
3688 * reverse.c: Include infrun.h.
3689 * rs6000-tdep.c: Include infrun.h.
3690 * s390-linux-tdep.c: Include infrun.h.
3691 * solib-irix.c: Include infrun.h.
3692 * solib-osf.c: Include infrun.h.
3693 * solib-svr4.c: Include infrun.h.
3694 * target.c: Include infrun.h.
3695 * top.c: Include infrun.h.
3696 * windows-nat.c: Include infrun.h.
3697 * mi/mi-interp.c: Include infrun.h.
3698 * mi/mi-main.c: Include infrun.h.
3699 * python/py-threadevent.c: Include infrun.h.
3700
98eb56a4
PA
37012014-05-22 Pedro Alves <palves@redhat.com>
3702
3703 * infrun.c (handle_inferior_event): Store the exit code for
3704 --return-child-result here, instead of ...
3705 (print_exited_reason): ... here.
3706
17b2616c
PA
37072014-05-21 Pedro Alves <palves@redhat.com>
3708
3709 PR gdb/13860
3710 * gdbthread.h (struct thread_control_state): New field
3711 `command_interp'.
3712 * infrun.c (follow_fork): Copy the new thread control field to the
3713 child fork thread.
3714 (clear_proceed_status_thread): Clear the new thread control field.
3715 (proceed): Set the new thread control field.
3716 * interps.h (command_interp): Declare.
3717 * interps.c (command_interpreter): New global.
3718 (command_interp): New function.
3719 (interp_exec): Set `command_interpreter' while here.
3720 * cli-out.c (cli_uiout_dtor): New function.
3721 (cli_ui_out_impl): Install it.
3722 * mi/mi-interp.c: Include cli-out.h.
3723 (mi_cmd_interpreter_exec): Add comment.
3724 (restore_current_uiout_cleanup): New function.
3725 (ui_out_free_cleanup): New function.
3726 (mi_on_normal_stop): If finishing an execution command started by
3727 a CLI command, or any kind of breakpoint-like event triggered,
3728 print the stop event to the output (CLI) stream.
3729 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3730
5166082f
PA
37312014-05-21 Pedro Alves <palves@redhat.com>
3732
3733 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3734 current source line having changed.
3735 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3736 * infrun.c (normal_stop): Adjust call to
3737 set_current_sal_from_frame.
3738 * source.c (clear_lines_listed_range): New function.
3739 (set_current_source_symtab_and_line, identify_source_line): Clear
3740 the lines listed range.
3741 (line_info): Handle the first "info line" after the current source
3742 line having changed.
3743 * stack.c (print_stack_frame): Remove center handling.
3744 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3745 center sal.line.
3746
c1ee2fb3
PA
37472014-05-21 Pedro Alves <palves@redhat.com>
3748
3749 * inf-child.c (inf_child_mourn_inferior): New function.
3750 * inf-child.h (inf_child_mourn_inferior): New declaration.
3751 * darwin-nat.c (darwin_mourn_inferior): Use
3752 inf_child_mourn_inferior.
3753 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3754 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3755 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3756 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3757 * windows-nat.c (windows_mourn_inferior): Likewise.
3758
5c6d4fb2
DE
37592014-05-21 Doug Evans <xdje42@gmail.com>
3760
250748cb 3761 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3762
4a2722c5
DE
37632014-05-21 Doug Evans <xdje42@gmail.com>
3764
17292b30 3765 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3766 (gdbscm_out_of_range_error): Ditto.
3767 (gdbscm_memory_error): Ditto.
250748cb
DE
3768 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3769 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3770 (gdbscm_out_of_range_error): Update.
3771 (gdbscm_memory_error): Update.
3772 (gdbscm_scm_to_target_string_unsafe): Delete.
3773
6a3cb8e8
PA
37742014-05-21 Pedro Alves <palves@redhat.com>
3775
3776 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3777 globals.
3778 (inf_child_open_target): New function.
3779 (inf_child_open): Use inf_child_open_target to push the target
3780 instead of erroring out.
3781 (inf_child_disconnect, inf_child_close)
3782 (inf_child_maybe_unpush_target): New functions.
3783 (inf_child_target): Install inf_child_disconnect and
3784 inf_child_close. Store a pointer to the returned object.
3785 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3786 declarations.
3787 * target.c (auto_connect_native_target): New global.
3788 (show_default_run_target): New function.
3789 (find_default_run_target): Return NULL if automatically connecting
3790 to the native target is disabled.
3791 (_initialize_target): Install set/show auto-connect-native-target.
3792 * NEWS: Mention "set auto-connect-native-target", and "target
3793 native".
3794 * linux-nat.c (super_close): New global.
3795 (linux_nat_close): Call super_close.
3796 (linux_nat_add_target): Store a pointer to the base class's
3797 to_close method.
3798 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3799 inf_child_maybe_unpush.
3800 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3801 already pushed.
3802 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3803 the inferior. Use inf_child_maybe_unpush_target.
3804 (inf_ttrace_attach): Don't push the target if it is already
3805 pushed.
3806 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3807 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3808 after mourning the inferior. Use inf_child_maybe_unpush_target.
3809 (darwin_attach_pid): Don't push the target if it is already
3810 pushed.
3811 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3812 mourning the inferior. Use inf_child_maybe_unpush_target.
3813 (gnu_detach): Use inf_child_maybe_unpush_target.
3814 * go32-nat.c (go32_create_inferior): Don't push the target if it
3815 is already pushed.
3816 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3817 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3818 (procfs_open): Rename to ...
3819 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3820 comments. Can target_preopen before changing node. Call
3821 inf_child_open_target to push the target explicitly.
3822 (procfs_attach): Don't push the target if it is already pushed.
3823 (procfs_detach): Use inf_child_maybe_unpush_target.
3824 (procfs_create_inferior): Don't push the target if it is already
3825 pushed.
3826 (nto_native_ops): New global.
3827 (procfs_open): Reimplement.
3828 (procfs_native_open): New function.
3829 (init_procfs_targets): Install procfs_native_open as to_open of
3830 "target native". Store a pointer to the "native" target in
3831 nto_native_ops.
3832 * procfs.c (procfs_attach): Don't push the target if it is already
3833 pushed.
3834 (procfs_detach): Use inf_child_maybe_unpush_target.
3835 (procfs_mourn_inferior): Only unpush the target after mourning the
3836 inferior. Use inf_child_maybe_unpush_target.
3837 (procfs_init_inferior): Don't push the target if it is already
3838 pushed.
3839 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3840 if it is already pushed.
3841
930ee1b1
PA
38422014-05-21 Pedro Alves <palves@redhat.com>
3843
3844 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3845 and "procfs" targets are now called "native" instead.
3846
1f5d1b13
PA
38472014-05-21 Pedro Alves <palves@redhat.com>
3848
3849 * go32-nat.c (go32_open): Delete.
3850 (go32_target): Don't override the to_open method.
3851
132f8e03
PA
38522014-05-21 Pedro Alves <palves@redhat.com>
3853
3854 * nto-procfs.c (procfs_can_run): New function.
3855 (nto_procfs_ops): New global.
3856 (init_procfs_targets): New, based on procfs_target. Install
3857 "target native" in addition to "target procfs".
3858 (_initialize_procfs): Call init_procfs_targets instead of adding
3859 the target here.
3860
03c136c3
PA
38612014-05-21 Pedro Alves <palves@redhat.com>
3862
3863 * windows-nat.c (windows_target): Don't override to_shortname,
3864 to_longname or to_doc.
3865
a635d0f3
PA
38662014-05-21 Pedro Alves <palves@redhat.com>
3867
3868 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3869 to_doc.
3870
4f9b5133
PA
38712014-05-21 Pedro Alves <palves@redhat.com>
3872
3873 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3874 to_shortname, to_longname or to_doc.
3875
bc85afde
PA
38762014-05-21 Pedro Alves <palves@redhat.com>
3877
3878 * go32-nat.c (go32_target): Don't override to_shortname,
3879 to_longname or to_doc.
3880
4ebfc96e
PA
38812014-05-21 Pedro Alves <palves@redhat.com>
3882
3883 * inf-child.c (inf_child_open): Remove mention of "child".
3884 (inf_child_target): Rename target to "native" instead of "child".
3885
2648dfed
AA
38862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3887
3888 * Makefile.in (SFILES): Delete "regset.c".
3889 (COMMON_OBS): Delete "regset.o".
3890 * regset.c: Remove.
3891 * regset.h (regset_alloc): Delete prototype.
3892
b13feb94
AA
38932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3894
3895 * sparc-linux-tdep.c (sparc32_linux_gregset)
3896 (sparc32_linux_fpregset): New static regset structures.
3897 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3898 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3899 'fpregset' fields.
3900 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3901 (sparc64_linux_fpregset): New static regset structures.
3902 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3903 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3904 New static regset structures.
3905 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3906 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3907 New static regset structures.
3908 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3909 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3910 New static regset structures.
3911 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3912 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3913 New static regset structures.
3914 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3915
b4fd25c9
AA
39162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3917
3918 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3919 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3920 register maps ("regmaps") from "*regset" to "*regmap". Do this
3921 for all regmap types and variables.
3922 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3923 (sparc32_linux_supply_core_gregset)
3924 (sparc32_linux_collect_core_gregset)
3925 (sparc32_linux_supply_core_fpregset)
3926 (sparc32_linux_collect_core_fpregset): Likewise.
3927 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3928 (sparc_gregmap, sparc_fpregmap): ... these.
3929 (sparc_supply_gregset, sparc_collect_gregset)
3930 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3931 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3932 (_initialize_sparc_nat): Rename regmaps.
3933 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3934 (sparc_gregmap, sparc_fpregmap): ... these.
3935 (sparc_supply_gregset, sparc_collect_gregset)
3936 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3937 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3938 Rename macros to...
3939 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3940 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3941 Likewise.
3942 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3943 Rename to...
3944 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3945 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3946 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3947 regmaps.
3948 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3949 (sparc32_bsd_fpregset): Rename to...
3950 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3951 (sparc32_bsd_fpregmap): ... these.
3952 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3953 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3954 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3955 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3956 (struct sparc_gregmap, struct sparc_fpregmap)
3957 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3958 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3959 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3960 (sparc32_supply_regset, sparc32_collect_gregset)
3961 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3962 prototypes.
3963 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3964 (sparc64_linux_ptrace_gregmap): ... this.
3965 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3966 (_initialize_sparc64_linux_nat): Rename regmaps.
3967 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3968 (sparc64_linux_core_gregmap): ... this.
3969 (sparc64_linux_supply_core_gregset)
3970 (sparc64_linux_collect_core_gregset)
3971 (sparc64_linux_supply_core_fpregset)
3972 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3973 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3974 (sparc64_sol2_fpregset): Rename to...
3975 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3976 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3977 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3978 regmaps.
3979 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3980 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3981 (sparc64_bsd_fpregset): Rename to...
3982 (struct sparc_gregmap, sparc64_sol2_gregmap)
3983 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3984 (sparc64_bsd_fpregmap): ... these.
3985 (sparc64_supply_gregset, sparc64_collect_gregset)
3986 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3987 prototypes.
3988 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3989 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3990 (sparc64fbsd_gregmap): ... this.
3991 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3992 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3993 Rename regmaps.
3994 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3995 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3996 (sparc64nbsd_collect_fpregset): Likewise.
3997 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3998 (sparc64nbsd_gregmap): ... this.
3999 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4000 regmaps.
4001 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4002 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4003 (sparc64obsd_gregmap): ... this.
4004 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4005 regmaps.
4006 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4007 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4008 (sparc32nbsd_gregmap): ... this.
4009 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4010 regmaps.
4011
8fea3224
AA
40122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4013
4014 * score-tdep.c (score7_linux_gregset): New static regset
4015 structure.
4016 (score7_linux_regset_from_core_section): Remove dynamic regset
4017 allocation.
4018 (score_gdbarch_init): Drop allocation of tdep structure.
4019 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4020
24534243
AA
40212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4022
4023 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4024 regset structures.
4025 (am33_regset_from_core_section): Remove dynamic regset
4026 allocations.
4027
b7195f27
AA
40282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4029
4030 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4031 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4032 structures.
4033 (mips_linux_regset_from_core_section): Remove dynamic regset
4034 allocations.
4035 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4036 'gregset64', 'fpregset', and 'fpregset64'.
4037 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4038 deleted tdep fields.
4039
ecc37a5a
AA
40402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4041
4042 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4043 regset structures.
4044 (amd64_regset_from_core_section): Remove dynamic regset
4045 allocations.
4046 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4047 structure.
4048 (amd64obsd_regset_from_core_section): Remove dynamic regset
4049 allocation.
4050 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4051 Likewise.
4052 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4053 x86-common regset supply function.
4054 * i386-tdep.c (i386_collect_gregset): Make static.
4055 (i386_gregset): New global regset structure.
4056 (i386_fpregset, i386_xstateregset): New static regset structures.
4057 (i386_regset_from_core_section): Remove dynamic regset
4058 allocations.
4059 (i386_gdbarch_init): Remove initialization of tdep fields
4060 'gregset', 'fpregset', and 'xstateregset'.
4061 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4062 'fpregset', and 'xstateregset'.
4063 (i386_collect_gregset): Remove prototype.
4064 (i386_gregset): New declaration.
4065 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4066 structure.
4067 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4068 allocation.
4069
b7611c43
AA
40702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4071
4072 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4073 (arm_linux_vfpregset): New static regset structures.
4074 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4075 regset structures.
4076 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4077 and 'vfpregset' fields.
4078
a069a2bd
AA
40792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4080
4081 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4082 (aarch64_linux_fpregset): New static regset structures.
4083 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4084 of regset structures.
4085 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4086 'fpregset' fields.
4087
09424cff
AA
40882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4089
4090 * regset.h (struct regset): Remove gdbarch field.
4091 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4092 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4093 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4094 Likewise.
4095 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4096 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4097 (ppc32_linux_vsxregset): Likewise.
4098 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4099 via the regcache instead of the regset.
4100 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4101 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4102 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4103 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4104 Likewise.
4105
3ca7dae4
AA
41062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4107
4108 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4109 Constify structures.
4110 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4111 (alphanbsd_aout_gregset): Likewise.
4112 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4113 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4114 Likewise.
4115 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4116 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4117 Likewise.
4118 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4119 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4120 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4121 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4122 * m88k-tdep.c (m88k_gregset): Likewise.
4123 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4124 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4125 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4126 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4127 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4128 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4129 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4130 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4131 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4132 Likewise.
4133 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4134 * sh-tdep.h (sh_corefile_gregset): Likewise.
4135 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4136 * vax-tdep.c (vax_gregset): Likewise.
4137
5876f503
JK
41382014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 Fix TLS access for -static -pthread.
4141 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4142 (try_thread_db_load_1): Initialize it.
4143 (thread_db_get_thread_local_address): Call it if LM is zero.
4144 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4145 * target.h (struct target_ops) (to_get_thread_local_address): Add
4146 load_module_addr comment.
4147
0256a6ac
PA
41482014-05-21 Pedro Alves <palves@redhat.com>
4149
4150 * dcache.c (dcache_read_memory_partial): If reading the cache line
4151 fails, fallback to reading just the memory the caller wanted.
4152
227533ac
DE
41532014-05-20 Doug Evans <dje@google.com>
4154
4155 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4156 instead of get_current_arch.
4157
936d2992
PA
41582014-05-20 Pedro Alves <palves@redhat.com>
4159
4160 * NEWS: Mention that compare-sections now works with all targets.
4161
4162 * remote.c (PACKET_qCRC): New enum value.
4163 (remote_verify_memory): Don't send qCRC if the target has no
4164 execution. Use packet_support/packet_ok. If the target doesn't
4165 support the qCRC packet, fallback to a deep memory copy.
4166 (compare_sections_command): Say "target image" instead of "remote
4167 executable".
4168 (_initialize_remote): Add PACKET_qCRC to the list of config
4169 packets that have no associated command. Extend comment.
4170 * target.c (simple_verify_memory, default_verify_memory): New
4171 function.
4172 * target.h (struct target_ops) <to_verify_memory>: Default to
4173 default_verify_memory.
4174 (simple_verify_memory): New declaration.
4175 * target-delegates.c: Regenerate.
4176
e59fa00f
MM
41772014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4178
4179 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4180
f2205de0
HZ
41812014-05-20 Hui Zhu <hui@codesourcery.com>
4182 Yao Qi <yao@codesourcery.com>
4183
4184 PR backtrace/16558
4185 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4186 and change address of sp and pc.
4187
c4e54771
TT
41882014-05-19 Tom Tromey <tromey@redhat.com>
4189
4190 * gdbtypes.c (rank_function): Use XNEWVEC.
4191 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4192
73051182
DE
41932014-05-19 Doug Evans <dje@google.com>
4194
4195 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4196 build_type_unit_groups and moved closer to only caller. Remove
4197 arguments. All references updated. Remove outdated .gdb_index
4198 comment.
4199 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4200 build_type_psymtabs_1.
4201
8832e7e3
DE
42022014-05-19 Doug Evans <dje@google.com>
4203
4204 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4205 n_type_unit_groups, all_type_unit_groups. All uses removed.
4206 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4207 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4208 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4209 (add_type_unit_group_to_table): Delete.
4210
cd8ae15e
DE
42112014-05-19 Doug Evans <dje@google.com>
4212
4213 * eval.c (evaluate_subexp_standard): Add some comments.
4214
08f4850b
DE
42152014-05-17 Doug Evans <xdje42@gmail.com>
4216
4217 * progspace.c (remove_program_space): Delete, unused.
4218 * progspace.h (remove_program_space): Ditto.
4219
bed8455c
DE
42202014-05-17 Doug Evans <xdje42@gmail.com>
4221
4222 * inferior.c (prune_inferiors): Fix comment.
4223 (remove_inferior_command): Call prune_program_spaces.
4224
8d551b02
DE
42252014-05-16 Doug Evans <dje@google.com>
4226
4227 New command line option -D.
4228 * NEWS: Mention it.
4229 * main.c (set_gdb_data_directory): New function.
4230 (captured_main): Recognize -D. Flag error for --data-directory "".
4231 Call set_gdb_data_directory.
4232 (print_gdb_help): Print --data-directory, -D.
4233 * main.h (set_gdb_data_directory): Declare.
4234 * top.c (staged_gdb_datadir): New static global.
4235 (set_gdb_datadir): Call set_gdb_data_directory
4236 (show_gdb_datadir): New function.
4237 (init_main): Update init of data-directory parameter.
4238
18848e28
GF
42392014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4240
4241 Import the "dirfd" gnulib module.
4242 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4243 * gnulib/aclocal.m4: Update.
4244 * gnulib/config.in: Update.
4245 * gnulib/configure: Update.
4246 * gnulib/import/Makefile.am: Update.
4247 * gnulib/import/Makefile.in: Update.
4248 * gnulib/import/dirfd.c: New.
4249 * gnulib/import/m4/dirfd.m4: New.
4250 * gnulib/import/m4/gnulib-cache.m4: Update.
4251 * gnulib/import/m4/gnulib-comp.m4: Update.
4252
95c64f92
YQ
42532014-05-16 Pierre Muller <muller@sourceware.org>
4254 Yao Qi <yao@codesourcery.com>
4255
4256 * valprint.c (print_wchar): Move the code on checking whether
4257 W is a printable wide char to the default branch of switch
4258 statement below. Call wchar_printable instead of gdb_iswprint.
4259
cac395ea
TM
42602014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4261
19679eca 4262 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4263 ldr.w and ldrd instructions.
4264
83655187
DE
42652014-05-15 Doug Evans <dje@google.com>
4266
4267 * dwarf2read.c (read_structure_type): Delete outdated comments.
4268
dd756689
TT
42692014-05-14 Tom Tromey <tromey@redhat.com>
4270
4271 * macrocmd.c (print_macro_definition): Reindent.
4272
75ddda77
DE
42732014-05-13 Doug Evans <xdje42@gmail.com>
4274
4275 * python/py-cmd.c (cmdpy_completer): Add comment.
4276 (completers): Make const.
4277
b0f16a3e
SM
42782014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4279
4280 * infrun.c (resume): Remove should_resume (unused). Move up
4281 declaration of resume_ptid.
4282
033c3379
TT
42832014-05-13 Tom Tromey <tromey@redhat.com>
4284
4285 * language.h (unop_type_check): Remove.
4286 (binop_type_check): Don't declare.
4287
9b44a3a5
AA
42882014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4289
4290 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4291 call to regcache_raw_collect.
4292
303a33fa
SM
42932014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4294
4295 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4296 mi_console->quote as the quoting character.
4297
196100a0
SM
42982014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4299
4300 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4301
f989a1c8
TT
43022014-04-29 Tom Tromey <tromey@redhat.com>
4303
4304 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4305 "show debug varobj".
4306
9404b58f
KM
43072014-05-07 Kyle McMartin <kyle@redhat.com>
4308
4309 Pushed by Joel Brobecker <brobecker@adacore.com>.
4310 * aarch64-tdep.c (aarch64_software_single_step): New function.
4311 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4312 with aarch64_software_single_step.
4313
5e49ba57
JB
43142014-05-05 Joel Brobecker <brobecker@adacore.com>
4315
4316 GDB 7.7.1 released.
4317
c888a17d
KS
43182014-05-05 Keith Seitz <keiths@redhat.com>
4319
4320 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4321 variable or history value is successfully parsed.
4322
290a839c
YQ
43232014-05-05 Yao Qi <yao@codesourcery.com>
4324 Pedro Alves <palves@redhat.com>
4325
4326 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4327 address of blocks that intersects the requested range. Trim
4328 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4329 sections.
4330 * ctf.c (ctf_xfer_partial): Likewise.
4331
91256dc2
YQ
43322014-05-05 Yao Qi <yao@codesourcery.com>
4333
4334 * printcmd.c (display_command): Remove the check to
4335 target_has_execution.
4336
07284463
MK
43372014-05-03 Mark Kettenis <kettenis@gnu.org>
4338
4339 * ppcobsd-nat.c: Include "obsd-nat.h".
4340 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4341 add_target.
4342 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4343
30a1e6cc
SDJ
43442014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4345
4346 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4347 and 16-bit signed and unsigned arguments. Update comment.
4348 (stap_parse_probe_arguments): Extend code to handle such
4349 arguments. Use warning instead of complaint to notify about
4350 unrecognized bitness.
4351
f33da99a
SDJ
43522014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4353
4354 PR breakpoints/16889
4355 * stap-probe.c (stap_parse_probe_arguments): Simplify
4356 check for non-prefixed probes (i.e., probes whose
4357 arguments do not start with "N@"). Always set the
4358 argument type to a sane value.
4359
95cf3b38
DT
43602014-05-01 David Taylor <dtaylor@emc.com>
4361
4362 * remote.c (compare_sections_command): Add -r option to compare
4363 all loadable read-only sections.
4364
1cfdf534
SC
43652014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4366
4367 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4368 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4369 Update all callers.
4370 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4371 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4372 Remove unused CORE_ADDR argument. Update all callers.
4373
ca4f7f8b
PA
43742014-04-29 Pedro Alves <palves@redhat.com>
4375
4376 * remote.c (struct packet_config) <detect>: Extend comment.
4377 (add_packet_config_cmd): Don't set the config's detect or support
4378 fields here.
4379 (init_all_packet_configs): Also initialize the config's 'detect'
4380 field.
4381 (reset_all_packet_configs_support): New function.
4382 (remote_open_1): Call reset_all_packet_configs_support instead of
4383 init_all_packet_configs.
4384 (_initialize_remote): Initialize all packet configs. Assert that
4385 all packets have an associated command, except a few known
4386 outliers.
4387
11c1ba78
JB
43882014-04-28 Joel Brobecker <brobecker@adacore.com>
4389
4390 * dwarf2read.c (read_subrange_type): Handle dynamic
4391 DW_AT_lower_bound attributes.
4392
8739bc53
JB
43932014-04-28 Joel Brobecker <brobecker@adacore.com>
4394
4395 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4396 dynamic bounds before computing its upper bound.
4397 (ada_discrete_type_low_bound): Same as above with the lower bound.
4398
6f8a3220
JB
43992014-04-28 Joel Brobecker <brobecker@adacore.com>
4400
4401 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4402 range types. Adjust the array handling implementation to
4403 take advantage of this change.
4404 (resolve_dynamic_range): New function, mostly extracted from
4405 resolve_dynamic_bounds.
4406 (resolve_dynamic_array): New function, mostly extracted from
4407 resolve_dynamic_bounds.
4408 (resolve_dynamic_bounds): Delete.
4409 (resolve_dynamic_type): Reimplement. Add handling of
4410 TYPE_CODE_RANGE types.
4411
4d072ce4
JB
44122014-04-28 Joel Brobecker <brobecker@adacore.com>
4413
4414 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4415 handling of parallel ___XA types.
4416
52865325
JB
44172014-04-28 Joel Brobecker <brobecker@adacore.com>
4418
4419 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4420 unnecessary second call to static_unwrap_type.
4421
433e77fa
HZ
44222014-04-27 Hui Zhu <hui@codesourcery.com>
4423
4424 * stack.c (print_frame_info): Call do_gdb_disassembly with
4425 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4426
b51a69ee
DE
44272014-04-26 Doug Evans <xdje42@gmail.com>
4428
4429 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4430
7ae1a6a6
PA
44312014-04-25 Pedro Alves <palves@redhat.com>
4432
4433 PR server/16255
4434 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4435 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4436 and newline from built string.
4437 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4438 (linux_ptrace_attach_fail_reason): ... this.
4439 * linux-nat.c (linux_nat_attach): Adjust to use
4440 linux_ptrace_attach_fail_reason.
4441
4082afcc
PA
44422014-04-25 Pedro Alves <palves@redhat.com>
4443
4444 * remote.c (struct remote_state): Remove multi_process_aware,
4445 non_stop_aware, cond_tracepoints, cond_breakpoints,
4446 breakpoint_commands, fast_tracepoints, static_tracepoints,
4447 install_in_trace, disconnected_tracing,
4448 enable_disable_tracepoints, string_tracing, and
4449 augmented_libraries_svr4_read fields.
4450 (remote_multi_process_p): Move further below in the file.
4451 (struct packet_config): Add comments.
4452 (update_packet_config): Delete function.
4453 (show_packet_config_cmd): Use packet_config_support.
4454 (add_packet_config_cmd): Use NULL as set callback.
4455 (packet_ok): "set remote foo-packet"-style commands no longer
4456 change config->supported -- adjust.
4457 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4458 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4459 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4460 (PACKET_QNonStop, PACKET_multiprocess_feature)
4461 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4462 (PACKET_DisconnectedTracing_feature)
4463 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4464 (set_remote_protocol_packet_cmd): Delete function.
4465 (packet_config_support, packet_support): New functions.
4466 (set_remote_protocol_Z_packet_cmd): Don't call
4467 update_packet_config.
4468 (remote_query_attached, remote_pass_signals)
4469 (remote_program_signals, remote_threads_info)
4470 (remote_threads_extra_info, remote_start_remote): Use
4471 packet_support.
4472 (remote_start_remote): Use packet_config_support and
4473 packet_support.
4474 (init_all_packet_configs): Set all packets to unknown support,
4475 instead of calling update_packet_config.
4476 (remote_check_symbols): Use packet_support.
4477 (remote_supported_packet): Unconditionally set the packet config's
4478 support status.
4479 (remote_multi_process_feature, remote_non_stop_feature)
4480 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4481 (remote_breakpoint_commands_feature)
4482 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4483 (remote_install_in_trace_feature)
4484 (remote_disconnected_tracing_feature)
4485 (remote_enable_disable_tracepoint_feature)
4486 (remote_string_tracing_feature)
4487 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4488 (remote_protocol_features): Adjust to use remote_supported_packet
4489 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4490 "ConditionalTracepoints", "ConditionalBreakpoints",
4491 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4492 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4493 "EnableDisableTracepoints", and "tracenz".
4494 (remote_query_supported): Use packet_support.
4495 (remote_open_1): Adjust.
4496 (extended_remote_attach_1): Use packet_support. Switch on the
4497 result of packet_ok instead of checking whether the packet ended
4498 up disabled.
4499 (remote_vcont_resume): Use packet_support.
4500 (remote_resume, remote_stop_ns, fetch_register_using_p)
4501 (remote_prepare_to_store, store_register_using_P)
4502 (check_binary_download, remote_write_bytes): Use packet_support.
4503 (remote_vkill): Use packet_support. Switch on the result of
4504 packet_ok instead of checking whether the packet ended up
4505 disabled.
4506 (extended_remote_supports_disable_randomization): Use
4507 packet_support.
4508 (extended_remote_run): Switch on the result of packet_ok instead
4509 of checking whether the packet ended up disabled.
4510 (remote_insert_breakpoint, remote_remove_breakpoint)
4511 (remote_insert_watchpoint, remote_remove_watchpoint)
4512 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4513 packet_support.
4514 (remote_search_memory): Use packet_config_support.
4515 (remote_get_thread_local_address, remote_get_tib_address)
4516 (remote_hostio_send_command, remote_can_execute_reverse): Use
4517 packet_support.
4518 (remote_supports_cond_tracepoints)
4519 (remote_supports_cond_breakpoints)
4520 (remote_supports_fast_tracepoints)
4521 (remote_supports_static_tracepoints)
4522 (remote_supports_install_in_trace)
4523 (remote_supports_enable_disable_tracepoint)
4524 (remote_supports_string_tracing)
4525 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4526 the packet config says the feature is enabled or disabled.
4527 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4528 (remote_get_trace_status): Use packet_support.
4529 (remote_set_disconnected_tracing): Adjust to check whether the
4530 feature is enabled with packet_support.
4531 (remote_set_trace_buffer_size, remote_use_agent)
4532 (remote_can_use_agent, remote_supports_btrace): Use
4533 packet_support.
4534 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4535 Use packet_config_support.
4536 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4537 the packet config says the feature is enabled or disabled.
4538 (set_range_stepping): Use packet_support.
4539
bdb52a22
TT
45402014-04-25 Tom Tromey <tromey@redhat.com>
4541
4542 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4543 argument.
4544
e9475ead
SA
45452014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4546
4547 * NEWS: Mention support for C99 variable length arrays.
4548
82eacd52
JB
45492014-04-24 Joel Brobecker <brobecker@adacore.com>
4550
4551 * ada-lang.c (standard_exc): Expand introductory comment.
4552
01f9f808
MS
45532014-04-24 Michael Sturm <michael.sturm@mintel.com>
4554 Walfred Tedeschi <walfred.tedeschi@intel.com>
4555
4556 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4557 AVX512 registers.
4558 (amd64_linux_read_description): Add code to handle AVX512 xstate
4559 mask and return respective tdesc.
4560 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4561 and features/i386/x32-avx512-linux.c.
4562 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4563 (amd64_linux_core_read_description): Add code to handle AVX512
4564 xstate mask and return respective tdesc.
4565 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4566 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4567 calculation.
4568 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4569 (tdesc_amd64_avx512_linux): New prototype.
4570 (tdesc_x32_avx512_linux): Likewise.
4571 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4572 features/i386/x32-avx512.c.
4573 (amd64_ymm_avx512_names): New register names for pseudo
4574 registers YMM16-31.
4575 (amd64_ymmh_avx512_names): New register names for raw registers
4576 YMMH16-31.
4577 (amd64_k_names): New register names for K registers.
4578 (amd64_zmmh_names): New register names for ZMM raw registers.
4579 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4580 (amd64_xmm_avx512_names): New register names for XMM16-31
4581 registers.
4582 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4583 registers.
4584 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4585 if feature is present.
4586 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4587 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4588 (AMD64_NUM_REGS): Adjust to new number of registers.
4589 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4590 registers supplied via XSTATE by AVX512 registers.
4591 (i386_linux_read_description): Add case for AVX512.
4592 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4593 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4594 (i386_linux_core_read_description): Add case for AVX512.
4595 (i386_linux_init_abi): Install supported register note section
4596 for AVX512.
4597 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4598 AVX512.
4599 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4600 registers to be number of zmm7h + 1.
4601 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4602 * i386-tdep.c: Include features/i386/i386-avx512.c.
4603 (i386_zmm_names): Add ZMM pseudo register names array.
4604 (i386_zmmh_names): Add ZMM raw register names array.
4605 (i386_k_names): Add K raw register names array.
4606 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4607 registers. AVX512 has 16 more ZMM registers than there are YMM
4608 registers.
4609 (i386_zmmh_regnum_p): Add function to look up register number of
4610 ZMM raw registers.
4611 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4612 (i386_k_regnum_p): Likewise for K raw registers.
4613 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4614 registers added by AVX512.
4615 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4616 registers added by AVX512.
4617 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4618 added by AVX512.
4619 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4620 (i386_pseudo_register_name): Add ZMM pseudo registers.
4621 (i386_zmm_type): Construct and return vector registers type for ZMM
4622 registers.
4623 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4624 ZMM0-31 pseudo registers and K registers.
4625 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4626 and YMM16-31 registers from register cache.
4627 (i386_pseudo_register_write): Add code to write K, ZMM and
4628 YMM16-31 registers.
4629 (i386_register_reggroup_p): Add code to include/exclude AVX512
4630 registers in/from respective register groups.
4631 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4632 registers if feature is present in xcr0.
4633 (i386_gdbarch_init): Add code to initialize AVX512 feature
4634 variables in tdep structure, wire in pseudo registers and call
4635 initialize_tdesc_i386_avx512.
4636 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4637 variables.
4638 (i386_regnum): Add AVX512 registers.
4639 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4640 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4641 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4642 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4643 512 bits wide.
4644 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4645 (i386_ymm_avx512_regnum_p): Likewise.
4646 (i386_k_regnum_p): Likewise.
4647 (i386_zmm_regnum_p): Likewise.
4648 (i386_zmmh_regnum_p): Likewise.
4649 * i387-tdep.c : Update year in copyright notice.
4650 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4651 XSAVE buffer.
4652 (XSAVE_YMM_AVX512_ADDR): New macro.
4653 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4654 XSAVE buffer.
4655 (XSAVE_XMM_AVX512_ADDR): New macro.
4656 (xsave_avx512_k_offset): New table for K register offsets in
4657 XSAVE buffer.
4658 (XSAVE_AVX512_K_ADDR): New macro.
4659 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4660 in XSAVE buffer.
4661 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4662 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4663 buffer.
4664 (i387_collect_xsave): Add code to collect AVX512 registers from
4665 XSAVE buffer.
4666 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4667 of XMM16-31 registers.
4668 (I387_NUM_K_REGS): New define for number of K registers.
4669 (I387_K0_REGNUM): New define for K0 register number.
4670 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4671 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4672 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4673 registers.
4674 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4675 (I387_XMM16_REGNUM): New define for XMM16 register number.
4676 (I387_YMM0_REGNUM): New define for YMM0 register number.
4677 (I387_KEND_REGNUM): New define for last K register number.
4678 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4679 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4680 number.
4681 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4682 number.
4683 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4684 size.
4685 * features/Makefile: Add AVX512 related files.
4686 * features/i386/32bit-avx512.xml: New file.
4687 * features/i386/64bit-avx512.xml: Likewise.
4688 * features/i386/amd64-avx512-linux.c: Likewise.
4689 * features/i386/amd64-avx512-linux.xml: Likewise.
4690 * features/i386/amd64-avx512.c: Likewise.
4691 * features/i386/amd64-avx512.xml: Likewise.
4692 * features/i386/i386-avx512-linux.c: Likewise.
4693 * features/i386/i386-avx512-linux.xml: Likewise.
4694 * features/i386/i386-avx512.c: Likewise.
4695 * features/i386/i386-avx512.xml: Likewise.
4696 * features/i386/x32-avx512-linux.c: Likewise.
4697 * features/i386/x32-avx512-linux.xml: Likewise.
4698 * features/i386/x32-avx512.c: Likewise.
4699 * features/i386/x32-avx512.xml: Likewise.
4700 * regformats/i386/amd64-avx512-linux.dat: New file.
4701 * regformats/i386/amd64-avx512.dat: Likewise.
4702 * regformats/i386/i386-avx512-linux.dat: Likewise.
4703 * regformats/i386/i386-avx512.dat: Likewise.
4704 * regformats/i386/x32-avx512-linux.dat: Likewise.
4705 * regformats/i386/x32-avx512.dat: Likewise.
4706 * NEWS: Add note about new support for AVX512.
4707
4708
08351840
PA
47092014-04-23 Pedro Alves <palves@redhat.com>
4710
4711 * breakpoint.c (insert_bp_location): Tolerate errors if the
4712 breakpoint is set in a user-loaded objfile.
4713 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4714 location is marked shlib_disabled. If the breakpoint is set in a
4715 user-loaded objfile is a GDB-side memory breakpoint, validate it
4716 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4717 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4718 flag.
4719 * mem-break.c (memory_validate_breakpoint): New function.
4720 * objfiles.c (userloaded_objfile_contains_address_p): New
4721 function.
4722 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4723 * target.h (memory_validate_breakpoint): New declaration.
4724
076855f9
PA
47252014-04-23 Pedro Alves <palves@redhat.com>
4726
4727 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4728 the breakpoint is set in a shared library, only suppress
4729 errors for software breakpoints, not hardware breakpoints.
4730
483805cf
PA
47312014-04-22 Pedro Alves <palves@redhat.com>
4732
4733 * infrun.c (schedlock_applies): New function, factored out from
4734 find_thread_needs_step_over.
4735 (find_thread_needs_step_over): Use it.
4736 (switch_back_to_stepped_thread): Always clear trap_expected if the
4737 step over is finished. Return early if scheduler locking applies.
4738 Look for the stepping thread and a potential step-over thread with
4739 a single loop.
4740 (currently_stepping_or_nexting_callback): Delete.
4741
a75fef0e
NC
47422014-04-22 Nick Clifton <nickc@redhat.com>
4743
4744 * NEWS: Mention that ARM sim now supports tracing.
4745
48b6e87e
YQ
47462014-04-22 Yao Qi <yao@codesourcery.com>
4747
4748 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4749 to ...
4750 * tracefile.c (tracefile_fetch_registers): ... it. New
4751 function.
4752 * tracefile.h (tracefile_fetch_registers): Declare.
4753 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4754 tracefile_fetch_registers.
4755
17617f2d
EZ
47562014-04-19 Eli Zaretskii <eliz@gnu.org>
4757
4758 PR gdb/14018
4759 * windows-nat.c (thread_rec): Don't display a warning when
4760 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4761 fails for any reason, set th->suspended to -1, so that we don't
4762 try to resume such a thread. Also, don't return NULL in these
4763 cases, to avoid completely ruin the session due to "PC register is
4764 not available" error.
4765 (do_windows_fetch_inferior_registers): Check errors in
4766 GetThreadContext call.
4767 (windows_continue): Accept an additional argument KILLED; if not
4768 zero, ignore errors in the SetThreadContext call, since the
4769 inferior was killed and is shutting down.
4770 (windows_resume, get_windows_debug_event)
4771 (windows_create_inferior, windows_mourn_inferior)
4772 (windows_kill_inferior): All callers of windows_continue changed
4773 to adjust to its new calling sequence.
4774
5723a6fd
YQ
47752014-04-19 Yao Qi <yao@codesourcery.com>
4776
4777 * ctf.c (ctf_open): Call post_create_inferior.
4778
614d5099
YQ
47792014-04-19 Yao Qi <yao@codesourcery.com>
4780
4781 * ctf.c (handle_id): New static variable.
4782 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4783 value. Get the declaration of event "register" and get length
4784 of field "contents".
4785
dac3e710
YQ
47862014-04-19 Yao Qi <yao@codesourcery.com>
4787
4788 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4789
2bca57ba
SC
47902014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4791
4792 * valops.c (oload_method_static): Remove unnecessary argument
4793 METHOD. Update all callers.
4794
51d48146
PA
47952014-04-18 Pedro alves <palves@redhat.com>
4796 Tom Tromey <tromey@redhat.com>
4797
4798 PR backtrace/15558
4799 * frame.c (get_prev_frame_1): Rename to ...
4800 (get_prev_frame_always): ... this, and make extern. Adjust.
4801 (skip_artificial_frames): Use get_prev_frame_always.
4802 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4803 (get_frame_unwind_stop_reason): Adjust to rename.
4804 * frame.h (get_prev_frame_always): Declare.
4805 * inline-frame.c: Include frame.h.
4806 (inline_frame_this_id): Use get_prev_frame_always.
4807
1bdad2e0
TG
48082014-04-18 Tristan Gingold <gingold@adacore.com>
4809
4810 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4811 code by using bfd_mach_o_get_base_address.
4812
7ce16bd4
UW
48132014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4814
4815 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4816 (spu_ax_pseudo_register_collect): New function.
4817 (spu_ax_pseudo_register_push_stack): Likewise.
4818 (spu_dwarf_reg_to_regnum): Likewise.
4819 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4820
2ed3c037
UW
48212014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4822
4823 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4824 Replace FRAME argument with FRAME_ID.
4825 * gdbarch.c, gdbarch.h: Regenerate.
4826 * findvar.c (default_value_from_register): Add GDBARCH argument;
4827 replace FRAME by FRAME_ID. No longer call get_frame_id.
4828 (value_from_register): Update call to gdbarch_value_from_register.
4829 * value.h (default_value_from_register): Update prototype.
4830 * s390-linux-tdep.c (s390_value_from_register): Update interface
4831 and call to default_value_from_register.
4832 * spu-tdep.c (spu_value_from_register): Likewise.
4833
4834 * findvar.c (address_from_register): Remove TYPE argument.
4835 Do not call value_from_register; use gdbarch_value_from_register
4836 with null_frame_id instead.
4837 * value.h (address_from_register): Update prototype.
4838 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4839 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4840 address_from_register interface change.
4841
71e50e83
YQ
48422014-04-17 Yao Qi <yao@codesourcery.com>
4843
4844 * gdbtypes.h: Update comments to link to types and macros'
4845 definitions.
4846
7a23c549
SC
48472014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4848
4849 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4850
22869d73
KS
48512014-04-16 Keith Seitz <keiths@redhat.com>
4852
4853 PR gdb/15827
4854 * dwarf2read.c (skip_one_die): Check that all relative-offset
4855 sibling DIEs fall within range of the current reader's buffer.
4856 (read_partial_die): Likewise.
4857
c4f87ca6
KS
48582014-04-16 Keith Seitz <keiths@redhat.com>
4859
4860 PR c++/16597
4861 * cp-namespace.c (lookup_symbol_file): If the type name of
4862 `this' is NULL, return immediately.
4863
b50c8614
KS
48642014-04-14 Keith Seitz <keiths@redhat.com>
4865
4866 PR c++/16253
4867 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4868 from symbol_matches_domain in symtab.c. All local callers
4869 of symbol_matches_domain updated.
4870 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4871 search STRUCT_DOMAIN.
4872 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4873 independently. standard_lookup will do that automatically.
4874 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4875 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4876 (cp_lookup_symbol_in_namespace): Likewise.
4877 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4878 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4879 may return a STRUCT_DOMAIN match.
4880 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4881 * cp-support.c: Include language.h.
4882 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4883 VAR_DOMAIN.
4884 * psymtab.c (match_partial_symbol): Compare the requested
4885 domain with the symbol's domain directly.
4886 (lookup_partial_symbol): Likewise.
4887 * symtab.c (lookup_symbol_in_language): Explain when/why
4888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4889 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4890 appropriate languages.
4891 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4892 and moved to ada-lang.c
4893 (lookup_block_symbol): Explain that this function only returns
4894 symbol matching the requested DOMAIN.
4895 Compare the requested domain with the symbol's domain directly.
4896 (iterate_over_symbols): Compare the requested domain with the
4897 symbol's domain directly.
4898 * symtab.h (symbol_matches_domain): Remove.
4899
3d567982
TT
49002014-04-14 Tom Tromey <tromey@redhat.com>
4901
4902 PR c++/15246:
4903 * c-exp.y (type_aggregate_p): New function.
4904 (qualified_name, classify_inner_name): Use it.
4905 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4906 and TYPE_TARGET_TYPE of an enum type.
4907 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4908 an enum type.
4909 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4910 handle TYPE_DECLARED_CLASS.
4911 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4912 types.
4913 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4914 * valops.c (enum_constant_from_type): New function.
4915 (value_aggregate_elt): Use it.
4916 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4917 TYPE_CODE_ENUM.
4918
c848d642
TT
49192014-04-14 Tom Tromey <tromey@redhat.com>
4920
4921 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4922 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4923 const.
4924 * value.h (value_aggregate_elt): Update.
4925
0626fc76
TT
49262014-04-14 Tom Tromey <tromey@redhat.com>
4927
4928 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4929
5ecaaa66
SA
49302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4931
4932 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4933 (evaluate_subexp_standard): Pass noside argument.
4934 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4935 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4936 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4937 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4938 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4939
1612e0c0
SA
49402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4941
4942 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4943 points to a constant blob.
4944
c451ebe5
SA
49452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4946
4947 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4948 property and store it as the high bound and flag the range accordingly.
4949 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4950 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4951 * gdbtypes.h (enum range_flags): New enum.
4952 (struct range_bounds): Add flags member.
4953
1d42e4c4
SA
49542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4955
4956 * c-typeprint.c (c_type_print_varspec_suffix): Added
4957 check for not yet resolved high bound. If unresolved, print
4958 "variable length" string to the console instead of random
4959 length.
4960
9f1f738a
SA
49612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4962
4963 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4964 value.
4965 (ada_template_to_fixed_record_type_1): Likewise.
4966 (ada_to_fixed_type_1): Likewise.
4967 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4968 (cp_print_value): Likewise.
4969 * d-valprint.c (dynamic_array_type): Likewise.
4970 * findvar.c (address_of_variable): Likewise.
4971 * jv-valprint.c (java_value_print): Likewise.
4972 * valops.c (value_ind): Likewise.
4973 * value.c (coerce_ref): Likewise.
4974
3c8452d4
SA
49752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4976
4977 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4978 value and retrieve the dynamic type size.
4979
4ad88275
SA
49802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4981
4982 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4983 passed to sizeof is dynamic evaluate the argument to compute the length.
4984
80180f79
SA
49852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4986 Joel Brobecker <brobecker@adacore.com>
4987
4988 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4989 (dwarf2_evaluate_property): New function.
4990 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4991 * dwarf2read.c (attr_to_dynamic_prop): New function.
4992 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4993 attribute.
4994 * gdbtypes.c: Include dwarf2loc.h.
4995 (is_dynamic_type): New function.
4996 (resolve_dynamic_type): New function.
4997 (resolve_dynamic_bounds): New function.
4998 (get_type_length): New function.
4999 (check_typedef): Use get_type_length to compute type length.
5000 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5001 (TYPE_LOW_BOUND_KIND): New macro.
5002 (is_dynamic_type): New function prototype.
5003 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5004 to resolve dynamic properties of the type. Update comment.
5005 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5006
a1556843
RH
50072014-04-14 Richard Henderson <rth@redhat.com>
5008
5009 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5010
0be03e84
DE
50112014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5012 Doug Evans <xdje42@gmail.com>
5013
5014 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5015 dereference TYPE_CODE_REF values.
5016
6b662e19
JB
50172014-04-11 Joel Brobecker <brobecker@adacore.com>
5018
5019 Revert the following changes due to regressions:
5020
5021 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5022 (dwarf2_evaluate_property): New function.
5023 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5024 * dwarf2read.c (attr_to_dynamic_prop): New function.
5025 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5026 attribute.
5027 * gdbtypes.c: Include dwarf2loc.h.
5028 (is_dynamic_type): New function.
5029 (resolve_dynamic_type): New function.
5030 (resolve_dynamic_bounds): New function.
5031 (get_type_length): New function.
5032 (check_typedef): Use get_type_length to compute type length.
5033 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5034 (TYPE_LOW_BOUND_KIND): New macro.
5035 (is_dynamic_type): New function prototype.
5036 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5037 to resolve dynamic properties of the type. Update comment.
5038 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5039
5040 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5041 passed to sizeof is dynamic evaluate the argument to compute the length.
5042
5043 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5044 value and retrieve the dynamic type size.
5045
5046 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5047 (ada_template_to_fixed_record_type_1): Likewise.
5048 (ada_to_fixed_type_1): Likewise.
5049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5050 (cp_print_value): Likewise.
5051 * d-valprint.c (dynamic_array_type): Likewise.
5052 * eval.c (evaluate_subexp_with_coercion): Likewise.
5053 * findvar.c (address_of_variable): Likewise.
5054 * jv-valprint.c (java_value_print): Likewise.
5055 * valops.c (value_ind): Likewise.
5056 * value.c (coerce_ref): Likewise.
5057
5058 * c-typeprint.c (c_type_print_varspec_suffix): Added
5059 check for not yet resolved high bound. If unresolved, print
5060 "variable length" string to the console instead of random
5061 length.
5062
5063 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5064 property and store it as the high bound and flag the range accordingly.
5065 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5066 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5067 * gdbtypes.h (enum range_flags): New enum.
5068 (struct range_bounds): Add flags member.
5069
5070 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5071 points to a constant blob.
5072
5073 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5074 (evaluate_subexp_standard): Pass noside argument.
5075 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5076 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5077 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5078 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5079 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5080
245a5f0b
KS
50812014-04-11 Keith Seitz <keiths@redhat.com>
5082
5083 PR c++/16675
5084 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5085 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5086 reference types.
5087
3bce8237
SA
50882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5089
5090 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5091 (evaluate_subexp_standard): Pass noside argument.
5092 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5093 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5094 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5095 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5096 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5097
92b09522
SA
50982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5099
5100 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5101 points to a constant blob.
5102
e1969afb
SA
51032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5104
5105 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5106 property and store it as the high bound and flag the range accordingly.
5107 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5108 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5109 * gdbtypes.h (enum range_flags): New enum.
5110 (struct range_bounds): Add flags member.
5111
b86138fb
SA
51122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5113
5114 * c-typeprint.c (c_type_print_varspec_suffix): Added
5115 check for not yet resolved high bound. If unresolved, print
5116 "variable length" string to the console instead of random
5117 length.
5118
bcd629a4
SA
51192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5120
5121 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5122 (ada_template_to_fixed_record_type_1): Likewise.
5123 (ada_to_fixed_type_1): Likewise.
5124 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5125 (cp_print_value): Likewise.
5126 * d-valprint.c (dynamic_array_type): Likewise.
5127 * eval.c (evaluate_subexp_with_coercion): Likewise.
5128 * findvar.c (address_of_variable): Likewise.
5129 * jv-valprint.c (java_value_print): Likewise.
5130 * valops.c (value_ind): Likewise.
5131 * value.c (coerce_ref): Likewise.
5132
04b19544
SA
51332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5134
5135 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5136 value and retrieve the dynamic type size.
5137
26cb189f
SA
51382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5139
5140 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5141 passed to sizeof is dynamic evaluate the argument to compute the length.
5142
37c1ab67
SA
51432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5144
5145 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5146 (dwarf2_evaluate_property): New function.
5147 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5148 * dwarf2read.c (attr_to_dynamic_prop): New function.
5149 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5150 attribute.
5151 * gdbtypes.c: Include dwarf2loc.h.
5152 (is_dynamic_type): New function.
5153 (resolve_dynamic_type): New function.
5154 (resolve_dynamic_bounds): New function.
5155 (get_type_length): New function.
5156 (check_typedef): Use get_type_length to compute type length.
5157 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5158 (TYPE_LOW_BOUND_KIND): New macro.
5159 (is_dynamic_type): New function prototype.
5160 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5161 to resolve dynamic properties of the type. Update comment.
5162 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5163
729efb13
SA
51642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5165
5166 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5167 declaring high/low bounds and change uses accordingly. Call
5168 create_range_type instead of create_static_range_type.
5169 * gdbtypes.c (create_range_type): New function.
5170 (create_range_type): Convert bounds into struct bound_prop and pass
5171 them to create_range_type.
5172 * gdbtypes.h (struct bound_prop): New struct.
5173 (create_range_type): New function prototype.
5174 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5175 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5176 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5177 part of the bound.
5178 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5179
0c9c3474
SA
51802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5181
5182 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5183 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5184 * ada-lang.c: All uses of create_range_type updated.
5185 * coffread.c: All uses of create_range_type updated.
5186 * dwarf2read.c: All uses of create_range_type updated.
5187 * f-exp.y: All uses of create_range_type updated.
5188 * m2-valprint.c: All uses of create_range_type updated.
5189 * mdebugread.c: All uses of create_range_type updated.
5190 * stabsread.c: All uses of create_range_type updated.
5191 * valops.c: All uses of create_range_type updated.
5192 * valprint.c: All uses of create_range_type updated.
5193
9d497a19
PA
51942014-04-10 Pedro Alves <palves@redhat.com>
5195
5196 * breakpoint.c (single_step_breakpoints)
5197 (single_step_gdbarch): Move up in the file.
5198 (one_breakpoint_xfer_memory): New function, factored out from ...
5199 (breakpoint_xfer_memory): ... here. Also process single-step
5200 breakpoints.
5201
15a9128a
TG
52022014-04-09 Tristan Gingold <gingold@adacore.com>
5203
5204 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5205 comments.
5206 (darwin_decode_exception_message): Free port only after use.
5207
9c97a070
PL
52082014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5209
5210 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5211 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5212 when setting the size of call_length.
5213
7af389b8
SC
52142014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5215
5216 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5217 dereference TYPE_CODE_REF values.
5218
86ad98c3
JB
52192014-04-07 Joel Brobecker <brobecker@adacore.com>
5220
5221 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5222 end of warning message.
5223
b0aeadb3
DE
52242014-04-03 Doug Evans <dje@google.com>
5225
5226 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5227 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5228
5979d6b6
AM
52292014-04-02 Alan Modra <amodra@gmail.com>
5230
5231 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5232 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5233 (struct symbol_file_add_from_memory_args): Add size field.
5234 (find_vdso_size): New function.
5235 (add_vsyscall_page): Attempt to find vdso size.
5236
0d60c288
DE
52372014-04-01 Doug Evans <dje@google.com>
5238
5239 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5240
a41f2563
TG
52412014-04-01 Tristan Gingold <gingold@adacore.com>
5242
5243 * darwin-nat.c (darwin_encode_reply): Add prototype.
5244 (darwin_decode_exception_message): Reply to unknown inferiors.
5245 (darwin_decode_message): Handle message by id. Ignore message
5246 to unknown inferior.
5247 (darwin_wait): Discard unknown messages, add debug trace.
5248
11a865c8
DE
52492014-03-31 Doug Evans <dje@google.com>
5250
5251 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5252 comp_dir_string.
5253
770e7fc7
DE
52542014-03-31 Doug Evans <dje@google.com>
5255
5256 New option "set print symbol-loading".
5257 * NEWS: Mention it.
5258 * solib.c (solib_read_symbols): Only print symbol loading messages
5259 if requested.
5260 (solib_add): If symbol loading is in "brief" mode, notify user
5261 symbols are being loaded.
5262 (reload_shared_libraries_1): Ditto.
5263 * symfile.c (print_symbol_loading_off): New static global.
5264 (print_symbol_loading_brief): New static global.
5265 (print_symbol_loading_full): New static global.
5266 (print_symbol_loading_enums): New static global.
5267 (print_symbol_loading): New static global.
5268 (print_symbol_loading_p): New function.
5269 (symbol_file_add_with_addrs): Only print symbol loading messages
5270 if requested.
5271 (_initialize_symfile): Register "print symbol-loading" set/show
5272 command.
5273 * symfile.h (print_symbol_loading_p): Declare.
5274
c32c64b7
DE
52752014-03-30 Doug Evans <xdje42@gmail.com>
5276
5277 * infrun.c (set_last_target_status): New function.
5278 (handle_inferior_event): Call it.
5279
7c0bc051
DE
52802014-03-30 Doug Evans <xdje42@gmail.com>
5281
5282 * inferior.h (enum stop_kind): Improve comment.
5283
8776cfe9
JB
52842014-03-28 Joel Brobecker <brobecker@adacore.com>
5285
5286 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5287 a reference, strip the reference layer before calling
5288 the lang_ops value_has_mutated callback.
5289
410a0ff2
SDJ
52902014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5291
5292 Remove some globals from our parser.
5293 * language.c (unk_lang_parser): Add "struct parser_state"
5294 argument.
5295 * language.h (struct language_defn) <la_parser>: Likewise.
5296 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5297 (initialize_expout): Add "struct parser_state" argument.
5298 Rewrite function to use the parser state.
5299 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5300 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5301 write_exp_elt_longcst, write_exp_elt_dblcst,
5302 write_exp_elt_decfloatcst, write_exp_elt_type,
5303 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5304 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5305 write_dollar_variable): Likewise.
5306 (parse_exp_in_context_1): Use parser state.
5307 (insert_type_address_space): Add "struct parser_state" argument.
5308 Use parser state.
5309 (increase_expout_size): New function.
5310 * parser-defs.h: Forward declare "struct language_defn" and
5311 "struct parser_state".
5312 (expout, expout_size, expout_ptr): Remove extern declarations.
5313 (parse_gdbarch, parse_language): Rewrite macro declarations to
5314 accept the parser state.
5315 (struct parser_state): New struct.
5316 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5317 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5318 write_exp_elt_decfloatcst, write_exp_elt_type,
5319 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5320 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5321 write_exp_msymbol, write_dollar_variable,
5322 mark_struct_expression, insert_type_address_space): Add "struct
5323 parser_state" argument.
5324 (increase_expout_size): New function.
5325 * utils.c (do_clear_parser_state): New function.
5326 (make_cleanup_clear_parser_state): Likewise.
5327 * utils.h (make_cleanup_clear_parser_state): New function
5328 prototype.
5329 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5330 Update calls to write_exp* in order to pass the parser state.
5331 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5332 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5333 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5334 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5335 * stap-probe.c (stap_parse_register_operand): Likewise.
5336 (stap_parse_single_operand): Likewise.
5337 (stap_parse_argument_1): Likewise.
5338 (stap_parse_argument): Use parser state.
5339 * stap-probe.h: Include "parser-defs.h".
5340 (struct stap_parse_info) <pstate>: New field.
5341 * c-exp.y (parse_type): Rewrite to use parser state.
5342 (yyparse): Redefine to c_parse_internal.
5343 (pstate): New global variable.
5344 (parse_number): Add "struct parser_state" argument.
5345 (write_destructor_name): Likewise.
5346 (type_exp): Update calls to write_exp* and similars in order to
5347 use parser state.
5348 (exp1, exp, variable, qualified_name, space_identifier,
5349 typename, typebase): Likewise.
5350 (write_destructor_name, parse_number, lex_one_token,
5351 classify_name, classify_inner_name, c_parse): Add "struct
5352 parser_state" argument. Update function to use parser state.
5353 * c-lang.h: Forward declare "struct parser_state".
5354 (c_parse): Add "struct parser_state" argument.
5355 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5356 (yyparse): Redefine macro to ada_parse_internal.
5357 (pstate): New variable.
5358 (write_int, write_object_renaming, write_var_or_type,
5359 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5360 type_int, type_long, type_long_long, type_float, type_double,
5361 type_long_double, type_char, type_boolean, type_system_address):
5362 Add "struct parser_state" argument.
5363 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5364 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5365 var_or_type, aggregate, aggregate_component_list,
5366 positional_list, others, component_group,
5367 component_associations): Update calls to write_exp* and similar
5368 functions in order to use parser state.
5369 (ada_parse, write_var_from_sym, write_int,
5370 write_exp_op_with_string, write_object_renaming,
5371 find_primitive_type, write_selectors, write_ambiguous_var,
5372 write_var_or_type, write_name_assoc, type_int, type_long,
5373 type_long_long, type_float, type_double, type_long_double,
5374 type_char, type_boolean, type_system_address): Add "struct
5375 parser_state" argument. Adjust function to use parser state.
5376 * ada-lang.c (parse): Likewise.
5377 * ada-lang.h: Forward declare "struct parser_state".
5378 (ada_parse): Add "struct parser_state" argument.
5379 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5380 calls to both functions.
5381 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5382 parser state.
5383 (yyparse): Redefine macro to f_parse_internal.
5384 (pstate): New variable.
5385 (parse_number): Add "struct parser_state" argument.
5386 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5387 and similars in order to use parser state.
5388 (parse_number): Adjust code to use parser state.
5389 (yylex): Likewise.
5390 (f_parse): New function.
5391 * f-lang.h: Forward declare "struct parser_state".
5392 (f_parse): Add "struct parser_state" argument.
5393 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5394 parser state.
5395 (yyparse): Redefine macro for java_parse_internal.
5396 (pstate): New variable.
5397 (push_expression_name, push_expression_name, insert_exp): Add
5398 "struct parser_state" argument.
5399 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5400 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5401 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5402 PostIncrementExpression, PostDecrementExpression,
5403 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5404 UnaryExpressionNotPlusMinus, CastExpression,
5405 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5406 RelationalExpression, EqualityExpression, AndExpression,
5407 ExclusiveOrExpression, InclusiveOrExpression,
5408 ConditionalAndExpression, ConditionalOrExpression,
5409 ConditionalExpression, Assignment, LeftHandSide): Update
5410 calls to write_exp* and similars in order to use parser state.
5411 (parse_number): Ajust code to use parser state.
5412 (yylex): Likewise.
5413 (java_parse): New function.
5414 (push_variable): Add "struct parser_state" argument. Adjust
5415 code to user parser state.
5416 (push_fieldnames, push_qualified_expression_name,
5417 push_expression_name, insert_exp): Likewise.
5418 * jv-lang.h: Forward declare "struct parser_state".
5419 (java_parse): Add "struct parser_state" argument.
5420 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5421 parser state.
5422 (yyparse): Redefine macro to m2_parse_internal.
5423 (pstate): New variable.
5424 (type_exp, exp, fblock, variable, type): Update calls to
5425 write_exp* and similars to use parser state.
5426 (yylex): Likewise.
5427 (m2_parse): New function.
5428 * m2-lang.h: Forward declare "struct parser_state".
5429 (m2_parse): Add "struct parser_state" argument.
5430 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5431 * objc-lang.h: Forward declare "struct parser_state".
5432 (end_msglist): Add "struct parser_state" argument.
5433 * p-exp.y (parse_type): Rewrite macro to use parser state.
5434 (yyparse): Redefine macro to pascal_parse_internal.
5435 (pstate): New variable.
5436 (parse_number): Add "struct parser_state" argument.
5437 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5438 write_exp* and similars in order to use parser state.
5439 (parse_number, yylex): Adjust code to use parser state.
5440 (pascal_parse): New function.
5441 * p-lang.h: Forward declare "struct parser_state".
5442 (pascal_parse): Add "struct parser_state" argument.
5443 * go-exp.y (parse_type): Rewrite macro to use parser state.
5444 (yyparse): Redefine macro to go_parse_internal.
5445 (pstate): New variable.
5446 (parse_number): Add "struct parser_state" argument.
5447 (type_exp, exp1, exp, variable, type): Update calls to
5448 write_exp* and similars in order to use parser state.
5449 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5450 to use parser state.
5451 (go_parse): Likewise.
5452 * go-lang.h: Forward declare "struct parser_state".
5453 (go_parse): Add "struct parser_state" argument.
5454
342587c4
DE
54552014-03-27 Doug Evans <dje@google.com>
5456
5457 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5458
33e80786
DE
54592014-03-27 Doug Evans <dje@google.com>
5460
5461 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5462 Remove argument abbrev_section. All callers updated.
5463
1dbab08b
DE
54642014-03-27 Doug Evans <dje@google.com>
5465
5466 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5467 addr_base, ranges_base.
5468
318d3177
KS
54692014-03-26 Keith Seitz <keiths@redhat.com>
5470
5471 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5472 types, not VAR_DOMAIN.
5473
1e54db15
SL
54742014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5475
5476 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5477 "ra" registers.
5478 * features/nios2-linux.c: Regenerated.
5479 * features/nios2.c: Regenerated.
5480
d3839ede
PA
54812014-03-25 Pedro Alves <palves@redhat.com>
5482
5483 * cli/cli-script.c (script_from_file): Force the interpreter to
5484 sync mode.
5485
7588d2ec
PL
54862014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5487
5488 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5489 small stack allocation.
5490
a6290449
TG
54912014-03-24 Tristan Gingold <gingold@adacore.com>
5492
5493 * darwin-nat.c (exc_server): Remove unused prototype.
5494 (darwin_dump_message): Correctly display data on x86_64.
5495 (darwin_encode_reply): Fix style.
5496 Add comments and fix indentation.
5497
31ae9d24 54982014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5499
5500 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5501
6339bfc4
DE
55022014-03-22 Doug Evans <xdje42@gmail.com>
5503
5504 * infcmd.c: Whitespace fixes.
5505 (interrupt_command): Merge two function comments into one.
5506
0a07590b
DE
55072014-03-22 Doug Evans <xdje42@gmail.com>
5508
5509 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5510 All uses updated.
5511
b55fbac4
YQ
55122014-03-22 Yao Qi <yao@codesourcery.com>
5513
5514 * remote.c (target_read_live_memory): Remove.
5515 (memory_xfer_live_readonly_partial): Rename it to
5516 remote_xfer_live_readonly_partial. Remove argument 'object'.
5517 All callers updated. Call remote_read_bytes_1
5518 instead of target_read_live_memory.
5519 * tracepoint.c (set_traceframe_number): Remove.
5520 (make_cleanup_restore_traceframe_number): Likewise .
5521 * tracepoint.h (set_traceframe_number): Remove declaration.
5522 (make_cleanup_restore_traceframe_number): Likewise.
5523
9217e74e
YQ
55242014-03-22 Yao Qi <yao@codesourcery.com>
5525
5526 * remote.c (remote_read_bytes): Move code on reading from the
5527 remote stub to ...
5528 (remote_read_bytes_1): ... here. New function.
5529
8acf9577
YQ
55302014-03-22 Yao Qi <yao@codesourcery.com>
5531
5532 * ctf.c (ctf_xfer_partial): Check the return value of
5533 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5534 return TARGET_XFER_UNAVAILABLE.
5535 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5536 * target.c (target_read_live_memory): Move it to remote.c.
5537 (memory_xfer_live_readonly_partial): Likewise.
5538 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5539 * remote.c (target_read_live_memory): Moved from target.c.
5540 (memory_xfer_live_readonly_partial): Likewise.
5541 (remote_read_bytes): Factored out from
5542 memory_xfer_partial_1.
5543
feef67ab
DE
55442014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5545
5546 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5547 NULL pointer.
5548
b65dc60b
PA
55492014-03-21 Pedro Alves <palves@redhat.com>
5550
5551 * infrun.c (normal_stop): Extend comment.
5552
b4ab256d
HZ
55532014-03-21 Hui Zhu <hui@codesourcery.com>
5554 Pedro Alves <palves@redhat.com>
5555
5556 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5557 static buffer.
5558 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5559 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5560 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5561
deba7593
MR
55622014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5563
5564 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5565 `z' formatted output modifier.
5566
1bff71c3
SDJ
55672014-03-20 Tom Tromey <tromey@redhat.com>
5568 Sergio Durigan Junior <sergiodj@redhat.com>
5569
5570 * probe.c (parse_probes): Turn assert into an ordinary error.
5571 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5572 exceptions when parsing probes. Rearrange the code for clarity.
5573
90e28950
TT
55742014-03-20 Tom Tromey <tromey@redhat.com>
5575
5576 PR gdb/14135
5577 * top.c (execute_command): Only dispatch events if the command
5578 started the target.
5579
beb460e8
PA
55802014-03-20 Tom Tromey <tromey@redhat.com>
5581
5582 PR cli/15718
5583 * infcall.c: Include event-top.h.
5584 (run_inferior_call): Call async_disable_stdin if needed.
5585
99619bea
PA
55862014-03-20 Pedro Alves <palves@redhat.com>
5587
5588 * infrun.c (prepare_to_proceed): Delete.
5589 (thread_still_needs_step_over): New function.
5590 (find_thread_needs_step_over): New function.
5591 (proceed): If the current thread needs a step-over, set its
5592 steping_over_breakpoint flag. Adjust to use
5593 find_thread_needs_step_over instead of prepare_to_proceed.
5594 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5595 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5596 breakpoint.
5597 (switch_back_to_stepped_thread): Step over breakpoints of all
5598 threads not the stepping thread, before switching back to the
5599 stepping thread.
5600
2adfaa28
PA
56012014-03-20 Pedro Alves <palves@redhat.com>
5602
5603 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5604 extern.
5605 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5606 * infrun.c (saved_singlestep_ptid)
5607 (stepping_past_singlestep_breakpoint): Delete.
5608 (resume): Remove stepping_past_singlestep_breakpoint handling.
5609 (proceed): Store the prev_pc of the stepping thread too.
5610 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5611 singlestep_pc.
5612 (enum infwait_states): Delete infwait_thread_hop_state.
5613 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5614 field.
5615 (handle_inferior_event): Adjust.
5616 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5617 handling and the thread-hop code. Before removing single-step
5618 breakpoints, check whether the thread hit a single-step breakpoint
5619 of another thread. If it did, the trap is not a random signal.
5620 (switch_back_to_stepped_thread): If the event thread hit a
5621 single-step breakpoint, unblock it before switching to the
5622 stepping thread. Handle the case of the stepped thread having
5623 advanced already.
5624 (keep_going): Handle the case of the current thread moving past a
5625 single-step breakpoint.
5626
31e77af2
PA
56272014-03-20 Pedro Alves <palves@redhat.com>
5628
5629 PR breakpoints/7143
5630 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5631 are being stepped over.
5632 (breakpoint_address_match): Make extern.
5633 * breakpoint.h (breakpoint_address_match): New declaration.
5634 * inferior.h (stepping_past_instruction_at): New declaration.
5635 * infrun.c (struct step_over_info): New type.
5636 (step_over_info): New global.
5637 (set_step_over_info, clear_step_over_info)
5638 (stepping_past_instruction_at): New functions.
5639 (handle_inferior_event): Clear the step-over info when
5640 trap_expected is cleared.
5641 (resume): Remove now stale comment.
5642 (clear_proceed_status): Clear step-over info.
5643 (proceed): Adjust step-over handling to set or clear the step-over
5644 info instead of removing all breakpoints.
5645 (handle_signal_stop): When setting up a thread-hop, don't remove
5646 breakpoints here.
5647 (stop_stepping): Clear step-over info.
5648 (keep_going): Adjust step-over handling to set or clear step-over
5649 info and then always inserting breakpoints, instead of removing
5650 all breakpoints when stepping over one.
5651
b9f437de
PA
56522014-03-20 Pedro Alves <palves@redhat.com>
5653
5654 * infrun.c (previous_inferior_ptid): Adjust comment.
5655 (deferred_step_ptid): Delete.
5656 (infrun_thread_ptid_changed, prepare_to_proceed)
5657 (init_wait_for_inferior): Adjust.
5658 (handle_signal_stop): Delete deferred_step_ptid handling.
5659
06c868a8
JK
56602014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 PR gdb/15358
5663 * defs.h (sync_quit_force_run): New declaration.
5664 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5665 * event-top.c (async_sigterm_handler): New declaration.
5666 (async_sigterm_token): New variable.
5667 (async_init_signals): Create also async_sigterm_token.
5668 (async_sigterm_handler): New function.
5669 (sync_quit_force_run): New variable.
5670 (handle_sigterm): Replace quit_force call by other calls.
5671 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5672
dea80df0
MR
56732014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5674
5675 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5676 offset into SPE pseudo registers.
5677
0c7e1a46
PA
56782014-03-18 Pedro Alves <palves@redhat.com>
5679
5680 PR gdb/13860
5681 * inferior.h (print_stop_event): Declare.
5682 * infrun.c (print_stop_event): New, factored out from ...
5683 (normal_stop): ... this.
5684 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5685 of bpstat_print/print_stack_frame.
5686
9c1fcd01
TT
56872014-03-17 Tom Tromey <tromey@redhat.com>
5688
5689 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5690
11aa919a
PMR
56912014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5692
5693 * ada-lang.c (decode_constrained_packed_array): Perform a
5694 minimal coercion for reference with coerce_ref instead of
5695 ada_coerce_ref.
5696
d4ccb5e0
TG
56972014-03-17 Tristan Gingold <gingold@adacore.com>
5698
5699 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5700 (darwin_solib_create_inferior_hook): Emit a warning if version
5701 is unhandled.
5702
49840f2a
UW
57032014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5704
5705 * python/py-value.c (get_field_flag): Cast flag_name argument to
5706 PyObject_GetAttrString to support Python 2.4.
5707
ed4123e5
JK
57082014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5709
5710 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5711 (Global Maintainers): Remove Jan Kratochvil.
5712
d6b64346
PA
57132014-03-14 Pedro Alves <palves@redhat.com>
5714
5715 * inferior.h (terminal_ours_for_output): Rename to ...
5716 (child_terminal_ours_for_output): ... this.
5717 (terminal_save_ours): Rename to ...
5718 (child_terminal_save_ours): ... this.
5719 (terminal_ours): Rename to ...
5720 (child_terminal_ours): ... this.
5721 (terminal_inferior): Rename to ...
5722 (child_terminal_inferior): ... this.
5723 (terminal_init_inferior): Rename to ...
5724 (child_terminal_init_inferior): ... this.
5725 (terminal_init_inferior_with_pgrp): Rename to ...
5726 (child_terminal_init_inferior_with_pgrp): ... this.
5727 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5728 (child_terminal_init_with_pgrp): ... this.
5729 (terminal_save_ours): Rename to ...
5730 (child_terminal_save_ours): ... this.
5731 (terminal_init_inferior): Rename to ...
5732 (child_terminal_init): ... this. Adjust.
5733 (terminal_inferior): Rename to ...
5734 (child_terminal_inferior): ... this.
5735 (terminal_ours_for_output): Rename to ...
5736 (child_terminal_ours_for_output): ... this. Adjust.
5737 (terminal_ours): Rename to ...
5738 (child_terminal_ours): ... this.
5739 (terminal_ours_1): Rename to ...
5740 (child_terminal_ours_1): ... this. Adjust.
5741 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5742 * windows-nat.c (do_initial_windows_stuff): Adjust.
5743 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5744 (gnu_terminal_init): ... this. Adjust.
5745 (gnu_target): Adjust.
5746 * inf-child.c (inf_child_target): Adjust.
5747
5a1e8c7a
DE
57482014-03-13 Doug Evans <xdje42@gmail.com>
5749
5750 PR guile/16612
5751 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5752 new eq?-hashtab.
5753
350e1a76
DE
57542014-03-13 Doug Evans <xdje42@gmail.com>
5755
5756 * value.c (record_latest_value): Call release_value_or_incref
5757 instead of release_value.
5758
a69900ae
PA
57592014-03-13 Pedro Alves <palves@redhat.com>
5760
5761 * procfs.c (procfs_target): Don't override to_shortname,
5762 to_longname or to_doc.
5763
5db9f0bd
PA
57642014-03-13 Pedro Alves <palves@redhat.com>
5765
5766 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5767 Unix in user visible strings.
5768
5e3a2c38
SS
57692014-03-12 Stan Shebs <stan@codesourcery.com>
5770
5771 * gdbtypes.h: Annotate comments for Doxygen, add a page
5772 block comment with some general info.
5773
8bc2fe48
PA
57742014-03-12 Pedro Alves <palves@redhat.com>
5775
5776 * infcmd.c (prepare_execution_command): New function, factored out
5777 from several execution commands.
5778 (run_command_1, continue_command, step_1, jump_command)
5779 (signal_command, until_command, advance_command, finish_command)
5780 (attach_command): Use prepare_execution_command.
5781
638c5f49
OJ
57822014-03-12 Omair Javaid <omair.javaid@linaro.org>
5783
5784 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5785 (MAX_BPTS): Define.
5786 (MAX_WPTS): Define.
5787 (struct arm_linux_thread_points): Removed.
5788 (struct arm_linux_process_info): New.
5789 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5790 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5791 (arm_linux_find_breakpoints_by_tid): Removed.
5792 (struct arch_lwp_info): New.
5793 (arm_linux_find_process_pid): New functions.
5794 (arm_linux_add_process): New functions.
5795 (arm_linux_process_info_get): New functions.
5796 (arm_linux_forget_process): New function.
5797 (arm_linux_get_debug_reg_state): New function.
5798 (struct update_registers_data): New.
5799 (update_registers_callback): New function.
5800 (arm_linux_insert_hw_breakpoint1): Updated.
5801 (arm_linux_remove_hw_breakpoint1): Updated.
5802 (arm_linux_insert_hw_breakpoint): Updated.
5803 (arm_linux_remove_hw_breakpoint): Updated.
5804 (arm_linux_insert_watchpoint): Updated.
5805 (arm_linux_remove_watchpoint): Updated.
5806 (arm_linux_new_thread): Updated.
5807 (arm_linux_prepare_to_resume): New function.
5808 (arm_linux_new_fork): New function.
5809 (_initialize_arm_linux_nat): Updated.
5810
6d03af93
PA
58112014-03-12 Pedro Alves <palves@redhat.com>
5812
5813 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5814
b3ccfe11
TT
58152014-03-12 Tom Tromey <tromey@redhat.com>
5816
5817 * inf-child.c (return_zero): New function.
5818 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5819 * aix-thread.c (aix_thread_inferior_created): New function.
5820 (aix_thread_attach): Remove.
5821 (init_aix_thread_ops): Don't set to_attach.
5822 (_initialize_aix_thread): Register inferior_created observer.
5823 * corelow.c (init_core_ops): Don't set to_attach or
5824 to_create_inferior.
5825 * exec.c (init_exec_ops): Don't set to_attach or
5826 to_create_inferior.
5827 * infcmd.c (run_command_1): Use find_run_target. Make direct
5828 target calls.
5829 (attach_command): Use find_attach_target. Make direct target
5830 calls.
5831 * record-btrace.c (init_record_btrace_ops): Don't set
5832 to_create_inferior.
5833 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5834 Remove.
5835 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5836 set to_create_inferior.
5837 * target.c (complete_target_initialization): Add assertion.
5838 (target_create_inferior): Remove.
5839 (find_default_attach, find_default_create_inferior): Remove.
5840 (find_attach_target, find_run_target): New functions.
5841 (find_default_is_async_p, find_default_can_async_p)
5842 (target_supports_non_stop, target_attach): Remove.
5843 (init_dummy_target): Don't set to_create_inferior or
5844 to_supports_non_stop.
5845 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5846 TARGET_DEFAULT_FUNC.
5847 <to_create_inferior>: Add comment.
5848 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5849 TARGET_DEFAULT_RETURN.
5850 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5851 (find_attach_target, find_run_target): Declare.
5852 (target_create_inferior): Remove.
5853 (target_has_execution_1): Update comment.
5854 (target_supports_non_stop): Remove.
5855 * target-delegates.c: Rebuild.
5856
91f83b02
PA
58572014-03-12 Pedro Alves <palves@redhat.com>
5858
5859 * inf-child.h: Update comment to not mention Unix.
5860
f1aea813
PA
58612014-03-12 Pedro Alves <palves@redhat.com>
5862
5863 * inf-child.c: Update top comment to not mention Unix. Add
5864 generic comment describing how this target is meant to be used.
5865 (inf_child_post_attach, inf_child_post_startup_inferior)
5866 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5867 Unix in comment.
5868
ee8e9165
PA
58692014-03-12 Pedro Alves <palves@redhat.com>
5870
5871 * nto-procfs.c: Include inf-child.h.
5872 (procfs_ops): Delete global.
5873 (procfs_can_run): Delete method.
5874 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5875 target pointer instead of referencing procfs_ops.
5876 (procfs_prepare_to_store): Delete.
5877 (init_procfs_ops): Delete function.
5878 (procfs_target): New function, based on init_procfs_ops, but
5879 inherit inf_child_target.
5880 (_initialize_procfs): Use procfs_target.
5881
51a9c8c5
PA
58822014-03-12 Pedro Alves <palves@redhat.com>
5883
5884 * windows-nat.c: Include inf-child.h.
5885 (windows_ops): Delete global.
5886 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5887 methods.
5888 (init_windows_ops): Delete function.
5889 (windows_target): New function, based on init_windows_ops, but
5890 inherit inf_child_target.
5891 (_initialize_windows_nat): Use windows_target. Install x86
5892 specific target methods here.
5893
c1966e26
DE
58942014-03-10 Doug Evans <xdje42@gmail.com>
5895
5896 * guile/guile.c (call_initialize_gdb_module): New function.
5897 (initialize_guile): Replace call to scm_init_guile with call to
5898 scm_with_guile.
5899
023db19c
JB
59002014-03-10 Joel Brobecker <brobecker@adacore.com>
5901
5902 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5903 in call to TYPE_CODE macro.
5904
5ec18f2b
JG
59052014-03-10 Jerome Guitton <guitton@adacore.com>
5906
8668be63
JB
5907 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5908 Resolve tagged types to full view.
5ec18f2b 5909
7d03f2eb
HZ
59102014-03-10 Hui Zhu <hui@codesourcery.com>
5911
5912 * target.h (target_insert_breakpoint): Remove "hardware" from its
5913 comments.
5914
c5164cbc
DE
59152014-03-07 Doug Evans <dje@google.com>
5916
5917 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5918
c4a3fee2
DE
59192014-03-07 Doug Evans <dje@google.com>
5920
5921 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5922 Remove unused local comp_dir_attr. Assert exactly one of
5923 stub_comp_unit_die, stub_comp_dir is non-NULL.
5924
3156469c
JB
59252014-03-07 Joel Brobecker <brobecker@adacore.com>
5926
5927 * target.h (complete_target_initialization, add_target):
5928 Add comment.
5929
c1a7b7c6
PA
59302014-03-07 Pedro Alves <palves@redhat.com>
5931
5932 * go32-nat.c: Include inf-child.h.
5933 (go32_ops): Delete global.
5934 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5935 Delete methods.
5936 (go32_create_inferior): Push the passed in target pointer instead
5937 of referencing go32_ops.
5938 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5939 (go32_target): New function, based on init_go32_ops, but inherit
5940 inf_child_target.
5941 (_initialize_go32_nat): Use go32_target. Move parts of
5942 init_go32_ops here.
5943
d3c1a85f
JB
59442014-03-06 Joel Brobecker <brobecker@adacore.com>
5945
5946 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5947 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5948 SYMBOL_VALUE_ADDRESS.
5949 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5950
5fa1d40e
YQ
59512014-03-06 Yao Qi <yao@codesourcery.com>
5952
5953 * breakpoint.c (get_tracepoint_by_number): Remove argument
5954 optional_p. All callers updated. Adjust comments. Update
5955 output message.
5956 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5957
0c13193f
YQ
59582014-03-06 Yao Qi <yao@codesourcery.com>
5959
5960 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5961 early if get_number returns zero. Use 'p' instead of 'args'.
5962
2217da06
YQ
59632014-03-06 Yao Qi <yao@codesourcery.com>
5964
5965 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5966 message.
5967
cc3da688
YQ
59682014-03-06 Yao Qi <yao@codesourcery.com>
5969
5970 PR breakpoints/16508
5971 * tracepoint.c (check_trace_running): New function.
5972 (trace_find_command): Move code to check_trace_running and
5973 call check_trace_running.
5974 (trace_find_pc_command): Likewise.
5975 (trace_find_tracepoint_command): Likewise.
5976 (trace_find_line_command): Likewise.
5977 (trace_find_range_command): Likewise.
5978 * tracepoint.h (check_trace_running): Likewise.
5979 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5980
6a5f844b
YQ
59812014-03-06 Yao Qi <yao@codesourcery.com>
5982
5983 * target.h (struct target_ops) <to_traceframe_info>: Use
5984 TARGET_DEFAULT_NORETURN (tcomplain ()).
5985 * target-delegates.c: Regenerated.
5986
0f26cec1
PA
59872014-03-05 Pedro Alves <palves@redhat.com>
5988
5989 PR gdb/16575
5990 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5991 void. Update comment.
5992 (dcache_xfer_memory): Delete.
5993 (dcache_read_memory_partial): New, based on the read bits of
5994 dcache_xfer_memory.
5995 (dcache_update): Add status parameter. Use ULONGEST for len, and
5996 adjust. Discard cache lines if the reason for the update was
5997 error.
5998 * dcache.h (dcache_xfer_memory): Delete declaration.
5999 (dcache_read_memory_partial): New declaration.
6000 (dcache_update): Update prototype.
6001 * target.c (raw_memory_xfer_partial): Update the dcache here.
6002 (memory_xfer_partial_1): Don't handle dcache writes here.
6003
b2b255bd
MF
60042014-03-05 Mike Frysinger <vapier@gentoo.org>
6005
6006 * remote-sim.c (gdbsim_load): Add const to prog.
6007
5d9cf8a4
TT
60082014-03-03 Tom Tromey <tromey@redhat.com>
6009
6010 * elfread.c (probe_key): Change to bfd_data.
6011 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6012 now per-BFD, not per-objfile.
6013 * stap-probe.c (stap_probe_destroy): Update comment.
6014 (handle_stap_probe): Allocate on the per-BFD obstack.
6015
729662a5
TT
60162014-03-03 Tom Tromey <tromey@redhat.com>
6017
6018 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6019 * breakpoint.c (create_longjmp_master_breakpoint): Use
6020 get_probe_address.
6021 (add_location_to_breakpoint, bkpt_probe_insert_location)
6022 (bkpt_probe_remove_location): Update.
6023 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6024 * elfread.c (elf_symfile_relocate_probe): Remove.
6025 (elf_probe_fns): Update.
6026 (insert_exception_resume_breakpoint): Change type of "probe"
6027 parameter to bound_probe.
6028 (check_exception_resume): Update.
6029 * objfiles.c (objfile_relocate1): Don't relocate probes.
6030 * probe.c (bound_probe_s): New typedef.
6031 (parse_probes): Use get_probe_address. Set sal's objfile.
6032 (find_probe_by_pc): Return a bound_probe.
6033 (collect_probes): Return a VEC(bound_probe_s).
6034 (compare_probes): Update.
6035 (gen_ui_out_table_header_info): Change type of "probes"
6036 parameter. Update.
6037 (info_probes_for_ops): Update.
6038 (get_probe_address): New function.
6039 (probe_safe_evaluate_at_pc): Update.
6040 * probe.h (struct probe_ops) <get_probe_address>: New field.
6041 <set_semaphore, clear_semaphore>: Add objfile parameter.
6042 (struct probe) <objfile>: Remove field.
6043 <arch>: New field.
6044 <address>: Update comment.
6045 (struct bound_probe): New.
6046 (find_probe_by_pc): Return a bound_probe.
6047 (get_probe_address): Declare.
6048 * solib-svr4.c (struct probe_and_action) <address>: New field.
6049 (hash_probe_and_action, equal_probe_and_action): Update.
6050 (register_solib_event_probe): Add address parameter.
6051 (solib_event_probe_at): Update.
6052 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6053 get_probe_address.
6054 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6055 (stap_get_probe_address): New function.
6056 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6057 (compile_probe_arg): Update.
6058 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6059 address.
6060 (handle_stap_probe): Don't relocate the probe.
6061 (stap_relocate): Remove.
6062 (stap_gen_info_probes_table_values): Update.
6063 (stap_probe_ops): Remove stap_relocate.
6064 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6065 (debug_sym_probe_fns): Update.
6066 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6067 * symtab.c (init_sal): Use memset.
6068 * symtab.h (struct symtab_and_line) <objfile>: New field.
6069 * tracepoint.c (start_tracing, stop_tracing): Update.
6070
ff887920
TT
60712014-03-03 Tom Tromey <tromey@redhat.com>
6072
6073 * probe.h (parse_probes, find_probe_by_pc)
6074 (find_probes_in_objfile): Fix comments.
6075
f0407826
DE
60762014-03-02 Doug Evans <xdje42@gmail.com>
6077
6078 * infrun.c (handle_signal_stop): Replace test for
6079 TARGET_WAITKIND_STOPPED with an assert.
6080
35e6a711
DE
60812014-03-02 Doug Evans <xdje42@gmail.com>
6082
6083 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6084
667f9d0b
DE
60852014-03-02 Doug Evans <xdje42@gmail.com>
6086
6087 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6088
dc92ace0
MK
60892014-03-01 Mark Kettenis <kettenis@gnu.org>
6090
6091 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6092
a900370f
MK
60932014-03-01 Mark Kettenis <kettenis@gnu.org>
6094
6095 * i386obsd-nat.c: Include "obsd-nat.h".
6096 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6097 add_target.
6098 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6099
b72a7981
MK
61002014-03-01 Mark Kettenis <kettenis@gnu.org>
6101
6102 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6103
96c70aba
MK
61042014-03-01 Mark Kettenis <kettenis@gnu.org>
6105
6106 * mips64obsd-nat.c: Include "obsd-nath".
6107 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6108 add_target
6109 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6110
874a80af
MK
61112014-03-01 Mark Kettenis <kettenis@gnu.org>
6112
8fd408f1
MK
6113 * amd64obsd-nat.c: Include "obsd-nat,h.
6114 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6115 add_target.
874a80af
MK
6116 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6117
9cf95373
SC
61182014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6119
6120 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6121 (find_overload_match): Update call to find_oload_champ.
6122 (find_oload_champ_namespace_loop): Likewise
6123
863e4da4
MK
61242014-02-28 Mark Kettenis <kettenis@gnu.org>
6125
025cac40
MK
6126 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6127
1ed586ce
MK
6128 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6129 * config/sparc/obsd64.mh: New file.
6130 * sparc64obsd-nat.c: New file.
6131
863e4da4
MK
6132 * obsd-nat.h: New file.
6133 * obsd-nat.c: New file.
6134 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6135 (ALLDEPFILES): Add obsd-nat.c.
6136
89de4da4
TT
61372014-02-28 Tom Tromey <tromey@redhat.com>
6138
6139 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6140 * cli-out.h (cli_ui_out_impl): Now const.
6141 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6142 * ui-out.c (struct ui_out) <impl>: Now const.
6143 (default_ui_out_impl): Now const.
6144 (ui_out_new): Make 'impl' parameter const.
6145 * ui-out.h (ui_out_new): Update.
6146
c725e7b6
MK
61472014-02-27 Mark Kettenis <kettenis@gnu.org>
6148
6149 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6150
670b46b3
MK
61512014-02-27 Mark Kettenis <kettenis@gnu.org>
6152
6153 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6154
c91550fc
JK
61552014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 Additional PR 8882 fix.
6158 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6159
2fa0369e
PA
61602014-02-27 Pedro Alves <palves@redhat.com>
6161
6162 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6163 isn't set.
6164
d632a097
PA
61652014-02-27 Pedro Alves <palves@redhat.com>
6166
6167 PR 12702
6168 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6169 * nat/linux-waitpid.c: Include string.h.
6170 (status_to_str): Moved here and made extern.
6171 * nat/linux-waitpid.h (status_to_str): New declaration.
6172
2ebd5a35
HZ
61732014-02-27 Hui Zhu <hui@codesourcery.com>
6174
6175 PR 12702
6176 * infrun.c (ptid_match): Move ...
6177 * common/ptid.c (ptid_match): ... here.
6178 * inferior.h (ptid_match): Move ...
6179 * common/ptid.h (ptid_match): ... here.
6180
3cdd631f
MK
61812014-02-27 Mark Kettenis <kettenis@gnu.org>
6182
6183 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6184 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6185 gdb_target_obs.
6186
bee30a64
MK
61872014-02-27 Mark Kettenis <kettenis@gnu.org>
6188
6189 * obsd-tdep.c (obsd_auxv_parse): New function.
6190 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6191
6192 * gdbarch.sh (auxv_parse): New.
6193 * gdbarch.h: Regenerated.
6194 * gdbarch.c: Regenerated.
6195 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6196
7a5a839f
LC
61972014-02-26 Ludovic Courtès <ludo@gnu.org>
6198
6199 * guile/scm-value.c (gdbscm_history_append_x): New function.
6200 (value_functions): Add it.
6201
31aa7e4e
JB
62022014-02-27 Joel Brobecker <brobecker@adacore.com>
6203
6204 * dwarf2read.c (attr_value_as_address): New function.
6205 (dwarf2_find_base_address, read_call_site_scope): Use
6206 attr_value_as_address in place of DW_ADDR.
6207 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6208 the low and high addresses. Slight rework of the handling
6209 of the high pc being a constant form, and limit it to
6210 DWARF verson 4 or higher.
6211 (dwarf2_record_block_ranges): Likewise.
6212 (read_partial_die): Likewise.
6213 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6214
9b333ba3
TT
62152014-02-26 Tom Tromey <tromey@redhat.com>
6216
6217 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6218
5f6cac40
TT
62192014-02-26 Tom Tromey <tromey@redhat.com>
6220
6221 * elfread.c (elf_read_minimal_symbols): Return early if
6222 minimal symbols have already been read. Add "ei" parameter.
6223 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6224 * minsyms.c (prim_record_minimal_symbol_full): Update.
6225 * objfiles.h (struct objstats) <n_minsyms>: Move...
6226 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6227 * symmisc.c (print_objfile_statistics): Update.
6228
2750ef27
TT
62292014-02-26 Tom Tromey <tromey@redhat.com>
6230
6231 * elfread.c (elf_read_minimal_symbols): New function, from
6232 elf_symfile_read.
6233 (elf_symfile_read): Call it.
6234
34643a32
TT
62352014-02-26 Tom Tromey <tromey@redhat.com>
6236
6237 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6238 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6239 (lookup_minimal_symbol_solib_trampoline)
6240 (lookup_minimal_symbol_by_pc_section_1)
6241 (lookup_minimal_symbol_and_objfile): Update.
6242 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6243 Don't allocate a minimal symbol if minsyms have already been read.
6244 (build_minimal_symbol_hash_tables): Update.
6245 (install_minimal_symbols): Do nothing if minsyms already read.
6246 Use the per-BFD obstack.
6247 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6248 * objfiles.c (allocate_objfile): Call
6249 terminate_minimal_symbol_table later.
6250 (have_minimal_symbols): Update.
6251 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6252 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6253 Move from struct objfile.
6254 <minsyms_read>: New field.
6255 (struct objfile) <msymbols, minimal_symbol_count,
6256 msymbol_hash, msymbol_demangled_hash>: Move.
6257 (ALL_OBJFILE_MSYMBOLS): Update.
6258 * symfile.c (read_symbols): Set minsyms_read.
6259 (reread_symbols): Update.
6260 * symmisc.c (dump_objfile, dump_msymbols): Update.
6261
2273f0ac
TT
62622014-02-26 Tom Tromey <tromey@redhat.com>
6263
6264 * minsyms.c (msymbols_sort): Remove.
6265 * minsyms.h (msymbols_sort): Remove.
6266 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6267 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6268 * elfread.c (elf_symtab_read): Don't add section offsets.
6269 * xcoffread.c (record_minimal_symbol): Don't add section offset
6270 to minimal symbol address.
6271 * somread.c (text_offset, data_offset): Remove.
6272 (som_symtab_read): Don't add section offsets to minimal symbol
6273 addresses.
6274 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6275 Don't add section offsets to minimal symbols.
6276 * coffread.c (coff_symtab_read): Don't add section offsets
6277 to minimal symbol addresses.
6278 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6279 to minimal symbol addresses.
6280 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6281 section offset to minimal symbol addresses.
6282 * mdebugread.c (parse_partial_symbols): Don't add section
6283 offset to minimal symbol addresses.
6284 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6285 offset to minimal symbol addresses.
6286
77e371c0
TT
62872014-02-26 Tom Tromey <tromey@redhat.com>
6288
6289 * ada-lang.c (ada_main_name): Update.
6290 (ada_add_standard_exceptions): Update.
6291 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6292 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6293 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6294 * auxv.c (ld_so_xfer_auxv): Update.
6295 * avr-tdep.c (avr_scan_prologue): Update.
6296 * ax-gdb.c (gen_var_ref): Update.
6297 * blockframe.c (get_pc_function_start)
6298 (find_pc_partial_function_gnu_ifunc): Update.
6299 * breakpoint.c (create_overlay_event_breakpoint)
6300 (create_longjmp_master_breakpoint)
6301 (create_std_terminate_master_breakpoint)
6302 (create_exception_master_breakpoint): Update.
6303 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6304 * c-valprint.c (c_val_print): Update.
6305 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6306 * common/agent.c (agent_look_up_symbols): Update.
6307 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6308 * dwarf2loc.c (call_site_to_target_addr): Update.
6309 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6310 * elfread.c (elf_gnu_ifunc_record_cache)
6311 (elf_gnu_ifunc_resolve_by_got): Update.
6312 * findvar.c (default_read_var_value): Update.
6313 * frame.c (inside_main_func): Update.
6314 * frv-tdep.c (frv_frame_this_id): Update.
6315 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6316 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6317 Update.
6318 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6319 (hppa_hpux_find_dummy_bpaddr): Update.
6320 * hppa-tdep.c (hppa_symbol_address): Update.
6321 * infcmd.c (until_next_command): Update.
6322 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6323 Update.
6324 * linespec.c (minsym_found, add_minsym): Update.
6325 * linux-nat.c (get_signo): Update.
6326 * linux-thread-db.c (inferior_has_bug): Update.
6327 * m32c-tdep.c (m32c_return_value)
6328 (m32c_m16c_address_to_pointer): Update.
6329 * m32r-tdep.c (m32r_frame_this_id): Update.
6330 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6331 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6332 * maint.c (maintenance_translate_address): Update.
6333 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6334 (frob_address): New function.
6335 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6336 frob_address. Rename parameter to "pc_in".
6337 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6338 addresses.
6339 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6340 Update.
6341 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6342 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6343 * objc-lang.c (find_objc_msgsend): Update.
6344 * objfiles.c (objfile_relocate1): Update.
6345 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6346 * p-valprint.c (pascal_val_print): Update.
6347 * parse.c (write_exp_msymbol): Update.
6348 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6349 (ppc_elfv2_skip_entrypoint): Update.
6350 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6351 * printcmd.c (build_address_symbolic, msym_info)
6352 (address_info): Update.
6353 * proc-service.c (ps_pglobal_lookup): Update.
6354 * psymtab.c (find_pc_sect_psymtab_closer)
6355 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6356 Change msymbol parameter to bound_minimal_symbol.
6357 * ravenscar-thread.c (get_running_thread_id): Update.
6358 * remote.c (remote_check_symbols): Update.
6359 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6360 address.
6361 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6362 * solib-dsbt.c (lm_base): Update.
6363 * solib-frv.c (lm_base, main_got): Update.
6364 * solib-irix.c (locate_base): Update.
6365 * solib-som.c (som_solib_create_inferior_hook)
6366 (link_map_start): Update.
6367 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6368 * solib-svr4.c (elf_locate_base, enable_break): Update.
6369 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6370 (flush_ea_cache): Update.
6371 * stabsread.c (define_symbol, scan_file_globals): Update.
6372 * stack.c (find_frame_funname): Update.
6373 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6374 (debug_qf_find_pc_sect_symtab): Update.
6375 * symfile.c (simple_read_overlay_table)
6376 (simple_overlay_update): Update.
6377 * symfile.h (struct quick_symbol_functions)
6378 <find_pc_sect_symtab>: Change type of msymbol to
6379 bound_minimal_symbol.
6380 * symmisc.c (dump_msymbols): Update.
6381 * symtab.c (find_pc_sect_symtab_via_partial)
6382 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6383 (search_symbols, print_msymbol_info): Update.
6384 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6385 (MSYMBOL_VALUE_ADDRESS): Redefine.
6386 (BMSYMBOL_VALUE_ADDRESS): New macro.
6387 * tracepoint.c (scope_info): Update.
6388 * tui/tui-disasm.c (tui_find_disassembly_address)
6389 (tui_get_begin_asm_address): Update.
6390 * valops.c (find_function_in_inferior): Update.
6391 * value.c (value_static_field, value_fn_field): Update.
6392
3b7344d5
TT
63932014-02-26 Tom Tromey <tromey@redhat.com>
6394
6395 * ada-lang.c (ada_update_initial_language): Update.
6396 (ada_main_name, ada_has_this_exception_support): Update.
6397 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6398 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6399 * arm-tdep.c (arm_skip_stub): Update.
6400 * auxv.c (ld_so_xfer_auxv): Update.
6401 * avr-tdep.c (avr_scan_prologue): Update.
6402 * ax-gdb.c (gen_var_ref): Update.
6403 * breakpoint.c (struct breakpoint_objfile_data)
6404 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6405 type to bound_minimal_symbol.
6406 (create_overlay_event_breakpoint)
6407 (create_longjmp_master_breakpoint)
6408 (create_std_terminate_master_breakpoint)
6409 (create_exception_master_breakpoint): Update.
6410 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6411 * c-exp.y (classify_name): Update.
6412 * coffread.c (coff_symfile_read): Update.
6413 * common/agent.c (agent_look_up_symbols): Update.
6414 * d-lang.c (d_main_name): Update.
6415 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6416 * dec-thread.c (enable_dec_thread): Update.
6417 * dwarf2loc.c (call_site_to_target_addr): Update.
6418 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6419 * eval.c (evaluate_subexp_standard): Update.
6420 * findvar.c (struct minsym_lookup_data) <result>: Change type
6421 to bound_minimal_symbol.
6422 <objfile>: Remove.
6423 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6424 * frame.c (inside_main_func): Update.
6425 * frv-tdep.c (frv_frame_this_id): Update.
6426 * gcore.c (call_target_sbrk): Update.
6427 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6428 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6429 Update.
6430 * go-lang.c (go_main_name): Update.
6431 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6432 (hppa_hpux_find_import_stub_for_addr): Update.
6433 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6434 Update. Change return type.
6435 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6436 type.
6437 * jit.c (jit_breakpoint_re_set_internal): Update.
6438 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6439 Update.
6440 * linux-nat.c (get_signo): Update.
6441 * linux-thread-db.c (inferior_has_bug): Update
6442 * m32c-tdep.c (m32c_return_value)
6443 (m32c_m16c_address_to_pointer): Update.
6444 * m32r-tdep.c (m32r_frame_this_id): Update.
6445 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6446 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6447 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6448 lookup_minimal_symbol. Change return type.
6449 (lookup_minimal_symbol): Remove.
6450 (lookup_bound_minimal_symbol): Update.
6451 (lookup_minimal_symbol_text): Change return type.
6452 (lookup_minimal_symbol_solib_trampoline): Change return type.
6453 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6454 (lookup_minimal_symbol_solib_trampoline): Change return type.
6455 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6456 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6457 (value_nsstring, find_imps): Update.
6458 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6459 * p-lang.c (pascal_main_name): Update.
6460 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6461 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6462 * proc-service.c (ps_pglobal_lookup): Update.
6463 * ravenscar-thread.c (get_running_thread_msymbol): Change
6464 return type.
6465 (has_ravenscar_runtime, get_running_thread_id): Update.
6466 * remote.c (remote_check_symbols): Update.
6467 * sol-thread.c (ps_pglobal_lookup): Update.
6468 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6469 * solib-dsbt.c (lm_base): Update.
6470 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6471 Update.
6472 * solib-irix.c (locate_base): Update.
6473 * solib-som.c (som_solib_create_inferior_hook)
6474 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6475 Update.
6476 * solib-spu.c (spu_enable_break): Update.
6477 * solib-svr4.c (elf_locate_base, enable_break): Update.
6478 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6479 (flush_ea_cache): Update.
6480 * stabsread.c (define_symbol): Update.
6481 * symfile.c (simple_read_overlay_table): Update.
6482 * symtab.c (find_pc_sect_line): Update.
6483 * tracepoint.c (scope_info): Update.
6484 * tui-disasm.c (tui_get_begin_asm_address): Update.
6485 * value.c (value_static_field): Update.
6486
40c1a007
TT
64872014-02-26 Tom Tromey <tromey@redhat.com>
6488
6489 * minsyms.c (prim_record_minimal_symbol_full): Use
6490 SET_MSYMBOL_VALUE_ADDRESS.
6491 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6492 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6493 SET_MSYMBOL_VALUE_ADDRESS.
6494 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6495 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6496
efd66ac6
TT
64972014-02-26 Tom Tromey <tromey@redhat.com>
6498
6499 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6500 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6501 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6502 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6503 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6504 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6505 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6506 * ada-lang.c (ada_main_name): Update.
6507 (ada_lookup_simple_minsym): Update.
6508 (ada_make_symbol_completion_list): Update.
6509 (ada_add_standard_exceptions): Update.
6510 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6511 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6512 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6513 * arm-tdep.c (skip_prologue_function): Update.
6514 (arm_skip_stack_protector, arm_skip_stub): Update.
6515 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6516 (arm_wince_skip_main_prologue): Update.
6517 * auxv.c (ld_so_xfer_auxv): Update.
6518 * avr-tdep.c (avr_scan_prologue): Update.
6519 * ax-gdb.c (gen_var_ref): Update.
6520 * block.c (call_site_for_pc): Update.
6521 * blockframe.c (get_pc_function_start): Update.
6522 (find_pc_partial_function_gnu_ifunc): Update.
6523 * breakpoint.c (create_overlay_event_breakpoint): Update.
6524 (create_longjmp_master_breakpoint): Update.
6525 (create_std_terminate_master_breakpoint): Update.
6526 (create_exception_master_breakpoint): Update.
6527 (resolve_sal_pc): Update.
6528 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6529 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6530 Update.
6531 * c-valprint.c (c_val_print): Update.
6532 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6533 * coffread.c (coff_symfile_read): Update.
6534 * common/agent.c (agent_look_up_symbols): Update.
6535 * dbxread.c (find_stab_function_addr): Update.
6536 (end_psymtab): Update.
6537 * dwarf2loc.c (call_site_to_target_addr): Update.
6538 (func_verify_no_selftailcall): Update.
6539 (tailcall_dump): Update.
6540 (call_site_find_chain_1): Update.
6541 (dwarf_expr_reg_to_entry_parameter): Update.
6542 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6543 (elf_gnu_ifunc_resolve_by_got): Update.
6544 * f-valprint.c (info_common_command): Update.
6545 * findvar.c (read_var_value): Update.
6546 * frame.c (get_prev_frame_1): Update.
6547 (inside_main_func): Update.
6548 * frv-tdep.c (frv_skip_main_prologue): Update.
6549 (frv_frame_this_id): Update.
6550 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6551 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6552 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6553 (gnuv3_skip_trampoline): Update.
6554 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6555 (hppa64_hpux_in_solib_call_trampoline): Update.
6556 (hppa_hpux_skip_trampoline_code): Update.
6557 (hppa64_hpux_search_dummy_call_sequence): Update.
6558 (hppa_hpux_find_import_stub_for_addr): Update.
6559 (hppa_hpux_find_dummy_bpaddr): Update.
6560 * hppa-tdep.c (hppa_symbol_address)
6561 (hppa_lookup_stub_minimal_symbol): Update.
6562 * i386-tdep.c (i386_skip_main_prologue): Update.
6563 (i386_pe_skip_trampoline_code): Update.
6564 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6565 * infcall.c (get_function_name): Update.
6566 * infcmd.c (until_next_command): Update.
6567 * jit.c (jit_breakpoint_re_set_internal): Update.
6568 (jit_inferior_init): Update.
6569 * linespec.c (minsym_found): Update.
6570 (add_minsym): Update.
6571 * linux-fork.c (info_checkpoints_command): Update.
6572 * linux-nat.c (get_signo): Update.
6573 * linux-thread-db.c (inferior_has_bug): Update.
6574 * m32c-tdep.c (m32c_return_value): Update.
6575 (m32c_m16c_address_to_pointer): Update.
6576 (m32c_m16c_pointer_to_address): Update.
6577 * m32r-tdep.c (m32r_frame_this_id): Update.
6578 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6579 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6580 * maint.c (maintenance_translate_address): Update.
6581 * minsyms.c (add_minsym_to_hash_table): Update.
6582 (add_minsym_to_demangled_hash_table): Update.
6583 (msymbol_objfile): Update.
6584 (lookup_minimal_symbol): Update.
6585 (iterate_over_minimal_symbols): Update.
6586 (lookup_minimal_symbol_text): Update.
6587 (lookup_minimal_symbol_by_pc_name): Update.
6588 (lookup_minimal_symbol_solib_trampoline): Update.
6589 (lookup_minimal_symbol_by_pc_section_1): Update.
6590 (lookup_minimal_symbol_and_objfile): Update.
6591 (prim_record_minimal_symbol_full): Update.
6592 (compare_minimal_symbols): Update.
6593 (compact_minimal_symbols): Update.
6594 (build_minimal_symbol_hash_tables): Update.
6595 (install_minimal_symbols): Update.
6596 (terminate_minimal_symbol_table): Update.
6597 (find_solib_trampoline_target): Update.
6598 (minimal_symbol_upper_bound): Update.
6599 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6600 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6601 (mips_skip_pic_trampoline_code): Update.
6602 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6603 * objc-lang.c (selectors_info): Update.
6604 (classes_info): Update.
6605 (find_methods): Update.
6606 (find_imps): Update.
6607 (find_objc_msgsend): Update.
6608 * objfiles.c (objfile_relocate1): Update.
6609 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6610 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6611 * p-valprint.c (pascal_val_print): Update.
6612 * parse.c (write_exp_msymbol): Update.
6613 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6614 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6615 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6616 * printcmd.c (build_address_symbolic): Update.
6617 (sym_info): Update.
6618 (address_info): Update.
6619 * proc-service.c (ps_pglobal_lookup): Update.
6620 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6621 (find_pc_sect_psymtab): Update.
6622 * python/py-framefilter.c (py_print_frame): Update.
6623 * ravenscar-thread.c (get_running_thread_id): Update.
6624 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6625 Update.
6626 * remote.c (remote_check_symbols): Update.
6627 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6628 (rs6000_skip_trampoline_code): Update.
6629 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6630 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6631 * solib-dsbt.c (lm_base): Update.
6632 * solib-frv.c (lm_base): Update.
6633 (main_got): Update.
6634 * solib-irix.c (locate_base): Update.
6635 * solib-som.c (som_solib_create_inferior_hook): Update.
6636 (som_solib_desire_dynamic_linker_symbols): Update.
6637 (link_map_start): Update.
6638 * solib-spu.c (spu_enable_break): Update.
6639 (ocl_enable_break): Update.
6640 * solib-svr4.c (elf_locate_base): Update.
6641 (enable_break): Update.
6642 * spu-tdep.c (spu_get_overlay_table): Update.
6643 (spu_catch_start): Update.
6644 (flush_ea_cache): Update.
6645 * stabsread.c (define_symbol): Update.
6646 (scan_file_globals): Update.
6647 * stack.c (find_frame_funname): Update.
6648 (frame_info): Update.
6649 * symfile.c (simple_read_overlay_table): Update.
6650 (simple_overlay_update): Update.
6651 * symmisc.c (dump_msymbols): Update.
6652 * symtab.c (fixup_section): Update.
6653 (find_pc_sect_line): Update.
6654 (skip_prologue_sal): Update.
6655 (search_symbols): Update.
6656 (print_msymbol_info): Update.
6657 (rbreak_command): Update.
6658 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6659 (completion_list_objc_symbol): Update.
6660 (default_make_symbol_completion_list_break_on): Update.
6661 * tracepoint.c (scope_info): Update.
6662 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6663 (tui_get_begin_asm_address): Update.
6664 * valops.c (find_function_in_inferior): Update.
6665 * value.c (value_static_field): Update.
6666 (value_fn_field): Update.
6667
50e65b17
TT
66682014-02-26 Tom Tromey <tromey@redhat.com>
6669
6670 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6671 bound minimal symbols. Move code that knows about minsym
6672 table layout...
6673 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6674 function.
6675 * minsyms.h (minimal_symbol_upper_bound): Declare.
6676 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6677 minimal_symbol_upper_bound.
6678
1b588015
JB
66792014-02-27 Joel Brobecker <brobecker@adacore.com>
6680
6681 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6682 Use the type's name if its basic type does not have a tag.
6683
dbb9c2b1
JB
66842014-02-27 Joel Brobecker <brobecker@adacore.com>
6685
6686 * dwarf2read.c (read_subrange_type): Add comment.
6687
55426c9d
JB
66882014-02-27 Joel Brobecker <brobecker@adacore.com>
6689
6690 * dwarf2read.c (update_enumeration_type_from_children): New
6691 function, mostly extracted from process_structure_scope.
6692 (read_enumeration_type): Call update_enumeration_type_from_children.
6693 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6694 and flag_flag_enum fields.
6695
f2fce0ca
PA
66962014-02-26 Pedro Alves <palves@redhat.com>
6697
6698 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6699 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6700 to_xfer_partial method.
6701
7a44e40e
PA
67022014-02-26 Pedro Alves <palves@redhat.com>
6703
6704 * target.c (complete_target_initialization): Don't install
6705 default_xfer_partial as to_xfer_partial hook.
6706 (nomemory): Delete.
6707 (update_current_target): Don't INHERIT nor de_fault
6708 deprecated_xfer_memory. Delete de_fault macro.
6709 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6710 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6711 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6712 field.
6713
bd265cd0
PA
67142014-02-26 Pedro Alves <palves@redhat.com>
6715
6716 * go32-nat.c (my_write_child): New function.
6717 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6718 (go32_xfer_partial): New function.
6719 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6720 Instead install a to_xfer_partial hook.
6721
9d46c4e5
PA
67222014-02-26 Pedro Alves <palves@redhat.com>
6723
6724 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6725 to_xfer_partial helper. Rewrite.
6726 (procfs_xfer_partial): New function.
6727 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6728 Install a to_xfer_partial hook.
6729
a1583b1f
PA
67302014-02-26 Pedro Alves <palves@redhat.com>
6731
6732 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6733 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6734 (m32r_xfer_partial): New function.
6735 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6736 Install a to_xfer_partial hook.
6737
6df1b29f
PA
67382014-02-26 Pedro Alves <palves@redhat.com>
6739
6740 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6741 helper.
6742 (mips_xfer_partial): New function.
6743 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6744 hook. Install a to_xfer_partial hook.
6745
dc53a7ad
JB
67462014-02-26 Joel Brobecker <brobecker@adacore.com>
6747
6748 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6749 * gdbtypes.c (create_array_type_with_stride): New function,
6750 renaming create_array_type, but with an added parameter
6751 called "bit_stride".
6752 (create_array_type): Re-implement using
6753 create_array_type_with_stride.
6754 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6755 and DW_AT_bit_stride attributes.
6756
12ab52e9
PA
67572014-02-26 Pedro Alves <palves@redhat.com>
6758
6759 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6760 task-specific breakpoints.
6761
d16461ae
PA
67622014-02-25 Pedro Alves <palves@redhat.com>
6763
6764 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6765 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6766
a8b16220
SS
67672014-02-25 Stan Shebs <stan@codesourcery.com>
6768
6769 * defs.h: Annotate comments for Doxygen.
6770
b9e795ee
TT
67712014-02-25 Tom Tromey <tromey@redhat.com>
6772
6773 * target.h (target_ignore): Don't declare.
6774 * target.c (target_ignore): Remove.
6775
849c862e
JK
67762014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6777
6778 PR gdb/16626
6779 * auto-load.c (auto_load_objfile_script_1): Change filename to
6780 debugfile.
6781
475109d8
JB
67822014-02-25 Joel Brobecker <brobecker@adacore.com>
6783
6784 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6785 documentation. Adjust prototype to match the target_ops
6786 to_xfer_partial method. Adjust implementation accordingly.
6787
e186c3bd
HZ
67882014-02-25 Hui Zhu <hui@codesourcery.com>
6789
6790 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6791 to_traceframe_info.
6792
6d451942
KB
67932014-02-25 Kevin Buettner <kevinb@redhat.com>
6794
041ab8b4 6795 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6796 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6797 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6798 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6799 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6800 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6801 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6802 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6803 New constants.
6804 (rl78_register_type): Use a data pointer type for SP and
6805 new pseudo registers mentioned above. Use a 16 bit integer
6806 type for all other register pairs.
6807 (rl78_register_name, rl78_g10_register_name): Update for
6808 new pseudo registers.
6809 (rl78_pseudo_register_read): Likewise.
6810 (rl78_pseudo_register_write): Likewise.
6811 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6812 to the newly added pseudo registers.
6813
eddf0bae
DE
68142014-02-24 Doug Evans <dje@google.com>
6815
6816 * value.c (record_latest_value): Fix comment.
6817 * printcmd.c (print_command_1): Remove code to handle -1 return from
6818 record_latest_value.
6819
e96027e0
PA
68202014-02-24 Pedro Alves <palves@redhat.com>
6821
6822 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6823 deprecated_xfer_memory hook.
6824 (procfs_xfer_partial): Call procfs_xfer_memory instead
6825 of the deprecated_xfer_memory target hook.
6826 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6827 helper.
6828
0837c976
YZ
68292014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6830
6831 * windows-nat.c (windows_xfer_shared_libraries): Return
6832 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6833 requested object is TARGET_OBJECT_LIBRARIES.
6834
bc113b4e
YQ
68352014-02-24 Yao Qi <yao@codesourcery.com>
6836
6837 * target.h (enum target_xfer_status)
6838 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6839 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6840 explicitly. New.
6841 * corefile.c (memory_error_message): User updated.
6842 * exec.c (section_table_read_available_memory): Likewise.
6843 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6844 * target.c (target_xfer_status_to_string): Likewise.
6845 (raw_memory_xfer_partial): Likewise.
6846 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6847 * valops.c (read_value_memory): Likewise.
6848 * exec.h: Update comments.
6849
01cb8804
YQ
68502014-02-24 Yao Qi <yao@codesourcery.com>
6851
6852 * target.c (target_xfer_status_to_string): Rename argument err
6853 to status.
6854 * target.h (target_xfer_status_to_string): Update declaration.
6855 Replace target_xfer_error_to_string with
6856 target_xfer_status_to_string in comment.
6857
93063aa6
YQ
68582014-02-24 Yao Qi <yao@codesourcery.com>
6859
6860 * mips-linux-nat.c (super_close): Update its type.
6861 (mips_linux_close): Pass 'self' to super_close.
6862
5c328c05
YQ
68632014-02-24 Yao Qi <yao@codesourcery.com>
6864
6865 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6866 * corefile.c (read_memory): Adjusted.
6867 * target.c (target_write_with_progress): Adjusted.
6868
f73023dd
YQ
68692014-02-23 Yao Qi <yao@codesourcery.com>
6870
6871 Revert two patches:
6872
6873 2013-10-25 Yao Qi <yao@codesourcery.com>
6874
6875 * remote.c (remote_traceframe_info): Return early if
6876 traceframe is not selected.
6877
6878 2013-07-19 Yao Qi <yao@codesourcery.com>
6879
6880 * target.c (update_current_target): Change the default action
6881 of 'to_traceframe_info' from tcomplain to return_zero.
6882 * target.h (struct target_ops) <to_traceframe_info>: Add more
6883 comments.
6884
5a2eb0ef
YQ
68852014-02-23 Yao Qi <yao@codesourcery.com>
6886
6887 * valops.c (read_value_memory): Rewrite it. Call
6888 target_xfer_partial in a loop.
6889 * exec.h (section_table_available_memory): Remove declaration.
6890 Move comments to ...
6891 * exec.c (section_table_available_memory): ... here. Make it
6892 static.
6893
1ee79381
YQ
68942014-02-23 Yao Qi <yao@codesourcery.com>
6895
6896 * exec.c (section_table_read_available_memory): New function.
6897 * exec.h (section_table_read_available_memory): Declare.
6898 * ctf.c (ctf_xfer_partial): Call
6899 section_table_read_available_memory.
6900 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6901
1ca49d37
YQ
69022014-02-23 Yao Qi <yao@codesourcery.com>
6903
6904 * ctf.c (ctf_xfer_partial): Move code to ...
6905 * exec.c (exec_read_partial_read_only): ... it. New function.
6906 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6907 * tracefile.c: Include "exec.h".
6908 * exec.h (exec_read_partial_read_only): Declare.
6909
a283690e
YQ
69102014-02-23 Yao Qi <yao@codesourcery.com>
6911
6912 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6913 (tfile_has_memory): Remove.
6914 (init_tfile_ops): Don't set fields to_has_all_memory and
6915 to_has_memory of tfile_ops.
6916 * tracefile.c (tracefile_has_all_memory): New function.
6917 (tracefile_has_memory): New function.
6918 (init_tracefile_ops): Initialize fields to_has_all_memory and
6919 to_has_memory of 'ops'.
6920
12e03cd0
YQ
69212014-02-23 Yao Qi <yao@codesourcery.com>
6922
6923 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6924 (ctf_thread_alive, ctf_get_trace_status): Remove.
6925 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6926 init_tracefile_ops.
6927 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6928 (tfile_has_stack, tfile_has_registers): Remove.
6929 (tfile_thread_alive): Remove.
6930 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6931 init_tracefile_ops.
6932 * tracefile.c (tracefile_has_stack): New function.
6933 (tracefile_has_registers): New function.
6934 (tracefile_thread_alive): New function.
6935 (tracefile_get_trace_status): New function.
6936 (init_tracefile_ops): New function.
6937 * tracefile.h (init_tracefile_ops): Declare.
6938
11395323
YQ
69392014-02-23 Yao Qi <yao@codesourcery.com>
6940
6941 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6942 (O_LARGEFILE): Likewise.
6943 (tfile_ops): Likewise.
6944 (TRACE_HEADER_SIZE): Likewise.
6945 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6946 (cur_data_size): Likewise.
6947 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6948 (tfile_close, tfile_files_info): Likewise.
6949 (tfile_get_trace_status): Likewise.
6950 (tfile_get_tracepoint_status): Likewise.
6951 (tfile_get_traceframe_address): Likewise.
6952 (tfile_trace_find, match_blocktype): Likewise.
6953 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6954 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6955 (tfile_get_trace_state_variable_value): Likewise.
6956 (tfile_has_all_memory, tfile_has_memory): Likewise.
6957 (tfile_has_stack, tfile_has_registers): Likewise.
6958 (tfile_thread_alive, build_traceframe_info): Likewise.
6959 (tfile_traceframe_info, init_tfile_ops): Likewise.
6960 (_initialize_tracepoint): Don't call init_tfile_ops
6961 and add_target_with_completer.
6962 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6963 exec.h, completer.h and filenames.h.
6964 (_initialize_tracefile_tfile): New function.
6965
7951c4eb
YQ
69662014-02-23 Yao Qi <yao@codesourcery.com>
6967
6968 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6969 tracefile-tfile.o.
6970 (HFILES_NO_SRCDIR): Add tracefile.h.
6971 * ctf.c: Include "tracefile.h".
6972 * tracefile.h: New file.
6973 * tracefile.c: New file
6974 * tracefile-tfile.c: New file.
6975 * tracepoint.c: Include "tracefile.h".
6976 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6977 (stop_reason_names): Add const.
6978 (trace_file_writer_xfree): Move it to tracefile.c.
6979 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6980 (trace_save_ctf): Likewise.
6981 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6982 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6983 (tfile_write_header, tfile_write_regblock_type): Likewise.
6984 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6985 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6986 (tfile_write_raw_data, tfile_end): Likewise.
6987 (tfile_trace_file_writer_new): Likewise.
6988 (free_uploaded_tp): Make it extern.
6989 (free_uploaded_tsv): Make it extern.
6990 (_initialize_tracepoint): Move code to register command 'tsave'
6991 to tracefile.c.
6992 * tracepoint.h (stop_reason_names): Declare.
6993 (struct trace_frame_write_ops): Move it to tracefile.h.
6994 (struct trace_file_write_ops): Likewise.
6995 (struct trace_file_writer): Likewise.
6996 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6997
184cd072
JK
69982014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6999
7000 PR gdb/16594
7001 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7002 process name.
7003 (get_cores_used_by_process): New parameter num_cores, use it.
7004 (linux_xfer_osdata_processes): Pass num_cores to it.
7005 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7006 process name.
7007
c63528fc
AK
70082014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7009
7010 * target.c (memory_xfer_partial): Fix length arg in call to
7011 breakpoint_xfer_memory.
7012
d7b30f67
SDJ
70132014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7014
7015 PR tdep/16397
7016 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7017 number comes after the + or - signs. Adjust length of register
7018 name to be extracted.
7019
8838afaf
TT
70202014-02-20 Tom Tromey <tromey@redhat.com>
7021
7022 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7023 (ada_varobj_ops): Mark "extern".
7024
05227d14
TT
70252014-02-20 Tom Tromey <tromey@redhat.com>
7026
7027 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7028
1254eefc
DE
70292014-02-20 Doug Evans <xdje42@gmail.com>
7030
7031 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7032 All callers updated.
7033 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7034 All callers updated.
7035 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7036 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7037
adde2bff
DE
70382014-02-20 lin zuojian <manjian2006@gmail.com>
7039 Joel Brobecker <brobecker@adacore.com>
7040 Doug Evans <xdje42@gmail.com>
7041
7042 PR symtab/16581
7043 * dwarf2read.c (struct die_info): New member in_process.
7044 (reset_die_in_process): New function.
7045 (process_die): Set it at the start, reset when returning.
7046 (inherit_abstract_dies): Only call process_die if origin_child_die
7047 not already being processed.
7048
3be75f87
JB
70492014-02-20 Joel Brobecker <brobecker@adacore.com>
7050
7051 * windows-nat.c (handle_unload_dll): Add function documentation.
7052 (do_initial_windows_stuff): Add comment explaining why we wait
7053 until after inferior initialization has finished before
7054 processing all DLLs.
7055
47f7ffdb
JB
70562014-02-20 Joel Brobecker <brobecker@adacore.com>
7057
7058 * windows-nat.c (get_module_name): Delete.
7059 (windows_get_exec_module_filename): New function, mostly
7060 inspired from get_module_name.
7061 (windows_pid_to_exec_file): Replace call to get_module_name
7062 by call to windows_get_exec_module_filename.
7063
1cd9feab
JB
70642014-02-20 Joel Brobecker <brobecker@adacore.com>
7065
7066 * windows-nat.c (handle_load_dll): Rewrite this function's
7067 introductory comment. Remove code using get_module_name
7068 to get the DLL's name.
7069
ea39ad35
JB
70702014-02-20 Joel Brobecker <brobecker@adacore.com>
7071
7072 * windows-nat.c (get_windows_debug_event): Ignore
7073 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7074 if windows_initialization_done == 0.
7075 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7076 Adjust implementation to always load all DLLs.
7077 (do_initial_windows_stuff): Replace call to
7078 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7079
95060284
JB
70802014-02-20 Joel Brobecker <brobecker@adacore.com>
7081
7082 * windows-nat.c (_initialize_windows_nat): Deprecate the
7083 "dll-symbols" command. Turn the "add-shared-symbol-files"
7084 and "assf" aliases into commands, and deprecate them as well.
7085 * NEWS: Add entry explaining that "dll-symbols" and its two
7086 aliases are now deprecated.
7087
8d4fdb12
JB
70882014-02-20 Joel Brobecker <brobecker@adacore.com>
7089
7090 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7091 new-line in debug string. Remove trailing spaces.
7092
1b281443
SS
70932014-02-19 Stan Shebs <stan@codesourcery.com>
7094
7095 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7096
f7bd0f78
SC
70972014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7098
7099 * NEWS: Add entry for the new feature
7100 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7101 and class values.
7102
399ebc3d
SS
71032014-02-19 Stan Shebs <stan@codesourcery.com>
7104
7105 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7106
c658158d
PA
71072014-02-19 Pedro Alves <palves@redhat.com>
7108
7109 * common/ptid.h (struct ptid): Mention that process_stratum
7110 targets should prefer ptid.lwp.
7111
ba348170
PA
71122014-02-19 Pedro Alves <palves@redhat.com>
7113
7114 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7115 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7116 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7117 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7118 store remote thread ids rather than ptid.tid.
7119 (_initialize_remote): Adjust.
7120
ac01945b
TT
71212014-02-19 Tom Tromey <tromey@redhat.com>
7122
7123 * target.c (target_get_unwinder): Rewrite.
7124 (target_get_tailcall_unwinder): Rewrite.
7125 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7126 (record_btrace_to_get_tailcall_unwinder): New function.
7127 (init_record_btrace_ops): Update.
7128 * target.h (struct target_ops) <to_get_unwinder,
7129 to_get_tailcall_unwinder>: Now function pointers. Use
7130 TARGET_DEFAULT_RETURN.
7131
8476dc92
TT
71322014-02-19 Tom Tromey <tromey@redhat.com>
7133
7134 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7135 argument.
7136 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7137
c0eca49f
TT
71382014-02-19 Tom Tromey <tromey@redhat.com>
7139
7140 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7141 directly.
7142 * target-delegates.c: Rebuild.
7143 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7144 TARGET_DEFAULT_FUNC.
7145 * target.c (default_target_decr_pc_after_break): Rename from
7146 forward_target_decr_pc_after_break. Simplify.
7147 (target_decr_pc_after_break): Rely on delegation.
7148
596b6b39
TT
71492014-02-19 Tom Tromey <tromey@redhat.com>
7150
7151 * target.c (update_current_target): Do not INHERIT to_doc or
7152 to_magic. Do not de_fault to_open or to_close.
7153
b427c1bc
TT
71542014-02-19 Tom Tromey <tromey@redhat.com>
7155
7156 * gcore.h (objfile_find_memory_regions): Declare.
7157 * gcore.c (objfile_find_memory_regions): No longer static. Add
7158 "self" argument.
7159 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7160 * exec.c: Include gcore.h.
7161 (exec_set_find_memory_regions): Remove.
7162 (exec_find_memory_regions): Remove.
7163 (exec_do_find_memory_regions): Remove.
7164 (init_exec_ops): Update.
7165 * defs.h (exec_set_find_memory_regions): Remove.
7166
9b144037
TT
71672014-02-19 Tom Tromey <tromey@redhat.com>
7168
7169 * target-delegates.c: Rebuild.
7170 * target.h (struct target_ops) <to_extra_thread_info,
7171 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7172 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7173 not 0, in TARGET_DEFAULT_RETURN.
7174
555bbdeb
TT
71752014-02-19 Tom Tromey <tromey@redhat.com>
7176
7177 * target.c (complete_target_initialization): Remove casts. Use
7178 return_zero_has_execution.
7179 (return_zero): Add "ignore" argument.
7180 (return_zero_has_execution): New function.
7181 (init_dummy_target): Remove casts. Use
7182 return_zero_has_execution.
7183
be4ddd36
TT
71842014-02-19 Tom Tromey <tromey@redhat.com>
7185
7186 * target.c (update_current_target): Update comments. Do not
7187 INHERIT to_stratum.
7188
2117c711
TT
71892014-02-19 Tom Tromey <tromey@redhat.com>
7190
7191 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7192 needed.
7193 * corelow.c (core_read_description): Delegate when needed.
7194 * remote.c (remote_read_description): Delegate when needed.
7195 * target-delegates.c: Rebuild.
7196 * target.c (target_read_description): Rewrite.
7197 * target.h (struct target_ops) <to_read_description>: Update
7198 comment. Use TARGET_DEFAULT_RETURN.
7199
e88ef65c
TT
72002014-02-19 Tom Tromey <tromey@redhat.com>
7201
7202 * target-delegates.c: Rebuild.
7203 * target.c (update_current_target): Don't inherit or default
7204 to_can_run.
7205 (find_default_run_target): Check against delegate_can_run.
7206 * target.h (struct target_ops) <to_can_run>: Use
7207 TARGET_DEFAULT_RETURN.
7208
86a0854a
TT
72092014-02-19 Tom Tromey <tromey@redhat.com>
7210
7211 * target-delegates.c: Rebuild.
7212 * target.c (target_disconnect): Unconditionally delegate.
7213 * target.h (struct target_ops) <to_disconnect>: Use
7214 TARGET_DEFAULT_NORETURN.
7215
ee97f592
TT
72162014-02-19 Tom Tromey <tromey@redhat.com>
7217
7218 * record.c (record_stop): Unconditionally delegate.
7219 * target-delegates.c: Rebuild.
7220 * target.c (target_stop_recording): Unconditionally delegate.
7221 * target.h (struct target_ops) <to_stop_recording>: Use
7222 TARGET_DEFAULT_IGNORE.
7223
6dc7fcf4
TT
72242014-02-19 Tom Tromey <tromey@redhat.com>
7225
7226 * target-delegates.c: Rebuild.
7227 * target.c (target_enable_btrace): Unconditionally delegate.
7228 * target.h (struct target_ops) <to_enable_btrace>: Use
7229 TARGET_DEFAULT_NORETURN.
7230
eb5b20d4
TT
72312014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * target-delegates.c: Rebuild.
7234 * target.c (target_read_btrace): Unconditionally delegate.
7235 * target.h (struct target_ops) <to_read_btrace>: Use
7236 TARGET_DEFAULT_NORETURN.
7237
9ace480d
TT
72382014-02-19 Tom Tromey <tromey@redhat.com>
7239
7240 * target-delegates.c: Rebuild.
7241 * target.c (target_teardown_btrace): Unconditionally delegate.
7242 * target.h (struct target_ops) <to_teardown_btrace>: Use
7243 TARGET_DEFAULT_NORETURN.
7244
8dc292d3
TT
72452014-02-19 Tom Tromey <tromey@redhat.com>
7246
7247 * target-delegates.c: Rebuild.
7248 * target.c (target_disable_btrace): Unconditionally delegate.
7249 * target.h (struct target_ops) <to_disable_btrace>: Use
7250 TARGET_DEFAULT_NORETURN.
7251
58a5184e
TT
72522014-02-19 Tom Tromey <tromey@redhat.com>
7253
7254 * target-delegates.c: Rebuild.
7255 * target.c (default_search_memory): New function.
7256 (simple_search_memory): Update comment.
7257 (target_search_memory): Unconditionally delegate.
7258 * target.h (struct target_ops) <to_search_memory>: Use
7259 TARGET_DEFAULT_FUNC.
7260
8de71aab
TT
72612014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * auxv.c (default_auxv_parse): No longer static.
7264 (target_auxv_parse): Unconditionally delegate.
7265 * auxv.h (default_auxv_parse): Declare.
7266 * target-delegates.c: Rebuild.
7267 * target.c: Include auxv.h.
7268 * target.h (struct target_ops) <to_auxv_parse>: Use
7269 TARGET_DEFAULT_FUNC.
7270
6b2c5a57
TT
72712014-02-19 Tom Tromey <tromey@redhat.com>
7272
7273 * target-delegates.c: Rebuild.
7274 * target.c (target_memory_map): Unconditionally delegate.
7275 * target.h (struct target_ops) <to_memory_map>: Use
7276 TARGET_DEFAULT_RETURN.
7277
cbffc065
TT
72782014-02-19 Tom Tromey <tromey@redhat.com>
7279
7280 * target-delegates.c: Rebuild.
7281 * target.c (target_thread_alive): Unconditionally delegate.
7282 * target.h (struct target_ops) <to_thread_alive>: Use
7283 TARGET_DEFAULT_RETURN.
7284
f09e2107
TT
72852014-02-19 Tom Tromey <tromey@redhat.com>
7286
7287 * target-delegates.c: Rebuild.
7288 * target.c (target_save_record): Unconditionally delegate.
7289 * target.h (struct target_ops) <to_save_record>: Use
7290 TARGET_DEFAULT_NORETURN.
7291
07366925
TT
72922014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target-delegates.c: Rebuild.
7295 * target.c (target_delete_record): Unconditionally delegate.
7296 * target.h (struct target_ops) <to_delete_record>: Use
7297 TARGET_DEFAULT_NORETURN.
7298
dd2e9d25
TT
72992014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target-delegates.c: Rebuild.
7302 * target.c (target_record_is_replaying): Unconditionally
7303 delegate.
7304 * target.h (struct target_ops) <to_record_is_replaying>: Use
7305 TARGET_DEFAULT_RETURN.
7306
671e76cc
TT
73072014-02-19 Tom Tromey <tromey@redhat.com>
7308
7309 * target-delegates.c: Rebuild.
7310 * target.c (target_goto_record_begin): Unconditionally delegate.
7311 * target.h (struct target_ops) <to_goto_record_begin>: Use
7312 TARGET_DEFAULT_NORETURN.
7313
e9179bb3
TT
73142014-02-19 Tom Tromey <tromey@redhat.com>
7315
7316 * target-delegates.c: Rebuild.
7317 * target.c (target_goto_record_end): Unconditionally delegate.
7318 * target.h (struct target_ops) <to_goto_record_end>: Use
7319 TARGET_DEFAULT_NORETURN.
7320
05969c84
TT
73212014-02-19 Tom Tromey <tromey@redhat.com>
7322
7323 * target-delegates.c: Rebuild.
7324 * target.c (target_goto_record): Unconditionally delegate.
7325 * target.h (struct target_ops) <to_goto_record>: Use
7326 TARGET_DEFAULT_NORETURN.
7327
3679abfa
TT
73282014-02-19 Tom Tromey <tromey@redhat.com>
7329
7330 * target-delegates.c: Rebuild.
7331 * target.c (target_insn_history): Unconditionally delegate.
7332 * target.h (struct target_ops) <to_insn_history>: Use
7333 TARGET_DEFAULT_NORETURN.
7334
8444ab58
TT
73352014-02-19 Tom Tromey <tromey@redhat.com>
7336
7337 * target-delegates.c: Rebuild.
7338 * target.c (target_insn_history_from): Unconditionally delegate.
7339 * target.h (struct target_ops) <to_insn_history_from>: Use
7340 TARGET_DEFAULT_NORETURN.
7341
c29302cc
TT
73422014-02-19 Tom Tromey <tromey@redhat.com>
7343
7344 * target-delegates.c: Rebuild.
7345 * target.c (target_insn_history_range): Unconditionally delegate.
7346 * target.h (struct target_ops) <to_insn_history_range>: Use
7347 TARGET_DEFAULT_NORETURN.
7348
170049d4
TT
73492014-02-19 Tom Tromey <tromey@redhat.com>
7350
7351 * target-delegates.c: Rebuild.
7352 * target.c (target_call_history): Unconditionally delegate.
7353 * target.h (struct target_ops) <to_call_history>: Use
7354 TARGET_DEFAULT_NORETURN.
7355
16fc27d6
TT
73562014-02-19 Tom Tromey <tromey@redhat.com>
7357
7358 * target-delegates.c: Rebuild.
7359 * target.c (target_call_history_from): Unconditionally delegate.
7360 * target.h (struct target_ops) <to_call_history_from>: Use
7361 TARGET_DEFAULT_NORETURN.
7362
115d9817
TT
73632014-02-19 Tom Tromey <tromey@redhat.com>
7364
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_call_history_range): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_call_history_range>: Use
7368 TARGET_DEFAULT_NORETURN.
7369
eb276a6b
TT
73702014-02-19 Tom Tromey <tromey@redhat.com>
7371
7372 * target-delegates.c: Rebuild.
7373 * target.c (target_verify_memory): Unconditionally delegate.
7374 * target.h (struct target_ops) <to_verify_memory>: Use
7375 TARGET_DEFAULT_NORETURN.
7376
9e538d0d
TT
73772014-02-19 Tom Tromey <tromey@redhat.com>
7378
7379 * target-delegates.c: Rebuild.
7380 * target.c (target_core_of_thread): Unconditionally delegate.
7381 * target.h (struct target_ops) <to_core_of_thread>: Use
7382 TARGET_DEFAULT_RETURN.
7383
f6fb2925
TT
73842014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_flash_done): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_flash_done>: Use
7389 TARGET_DEFAULT_NORETURN.
7390
e8a6c6ac
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_flash_erase): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_flash_erase>: Use
7396 TARGET_DEFAULT_NORETURN.
7397
7e35c012
TT
73982014-02-19 Tom Tromey <tromey@redhat.com>
7399
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_get_section_table): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_get_section_table>: Use
7403 TARGET_DEFAULT_RETURN.
7404
770234d3
TT
74052014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (target_pid_to_str): Unconditionally delegate.
7409 (init_dummy_target): Don't initialize to_pid_to_str.
7410 (default_pid_to_str): Rename from dummy_pid_to_str.
7411 * target.h (struct target_ops) <to_pid_to_str>: Use
7412 TARGET_DEFAULT_FUNC.
7413
09b0dc2b
TT
74142014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target-delegates.c: Rebuild.
7417 * target.c (target_find_new_threads): Unconditionally delegate.
7418 * target.h (struct target_ops) <to_find_new_threads>: Use
7419 TARGET_DEFAULT_RETURN.
7420
7d4f8efa
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target-delegates.c: Rebuild.
7424 * target.c (target_program_signals): Unconditionally delegate.
7425 * target.h (struct target_ops) <to_program_signals>: Use
7426 TARGET_DEFAULT_IGNORE.
7427
035cad7f
TT
74282014-02-19 Tom Tromey <tromey@redhat.com>
7429
7430 * target-delegates.c: Rebuild.
7431 * target.c (target_pass_signals): Unconditionally delegate.
7432 * target.h (struct target_ops) <to_pass_signals>: Use
7433 TARGET_DEFAULT_IGNORE.
7434
8d657035
TT
74352014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target-delegates.c: Rebuild.
7438 * target.c (default_mourn_inferior): New function.
7439 (target_mourn_inferior): Unconditionally delegate.
7440 * target.h (struct target_ops) <to_mourn_inferior>: Use
7441 TARGET_DEFAULT_FUNC.
7442
098dba18
TT
74432014-02-19 Tom Tromey <tromey@redhat.com>
7444
7445 * target-delegates.c: Rebuild.
7446 * target.c (default_follow_fork): New function.
7447 (target_follow_fork): Unconditionally delegate.
7448 * target.h (struct target_ops) <to_follow_fork>: Use
7449 TARGET_DEFAULT_FUNC.
7450
423a4807
TT
74512014-02-19 Tom Tromey <tromey@redhat.com>
7452
7453 * target-delegates.c: Rebuild.
7454 * target.c (target_kill): Unconditionally delegate.
7455 * target.h (struct target_ops) <to_kill>: Use
7456 TARGET_DEFAULT_NORETURN.
7457
6c7e5e5c
TT
74582014-02-19 Tom Tromey <tromey@redhat.com>
7459
7460 * target-delegates.c: Rebuild.
7461 * target.c (target_masked_watch_num_registers): Unconditionally
7462 delegate.
7463 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7464 Use TARGET_DEFAULT_RETURN.
7465
8b1c364c
TT
74662014-02-19 Tom Tromey <tromey@redhat.com>
7467
7468 * target-delegates.c: Rebuild.
7469 * target.c (target_remove_mask_watchpoint): Unconditionally
7470 delegate.
7471 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7472 TARGET_DEFAULT_RETURN.
7473
cd4ae029
TT
74742014-02-19 Tom Tromey <tromey@redhat.com>
7475
7476 * target-delegates.c: Rebuild.
7477 * target.c (target_insert_mask_watchpoint): Unconditionally
7478 delegate.
7479 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7480 TARGET_DEFAULT_RETURN.
7481
a134316b
TT
74822014-02-19 Tom Tromey <tromey@redhat.com>
7483
7484 * target-delegates.c: Rebuild.
7485 * target.c (target_ranged_break_num_registers): Unconditionally
7486 delegate.
7487 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7488 Use TARGET_DEFAULT_RETURN.
7489
ad5989bd
TT
74902014-02-19 Tom Tromey <tromey@redhat.com>
7491
7492 * target-delegates.c: Rebuild.
7493 * target.c (target_fetch_registers): Unconditionally delegate.
7494 * target.h (struct target_ops) <to_fetch_registers>: Use
7495 TARGET_DEFAULT_NORETURN.
7496
46ee7e8d
TT
74972014-02-19 Tom Tromey <tromey@redhat.com>
7498
7499 * target-delegates.c: Rebuild.
7500 * target.c (update_current_target): Don't inherit or default
7501 to_stop.
7502 * target.h (struct target_ops) <to_stop>: Use
7503 TARGET_DEFAULT_IGNORE.
7504
843f59ed
TT
75052014-02-19 Tom Tromey <tromey@redhat.com>
7506
7507 * target-delegates.c: Rebuild.
7508 * target.c (update_current_target): Don't inherit or default
7509 to_can_run_breakpoint_commands.
7510 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7511 Use TARGET_DEFAULT_RETURN.
7512
ccfde2a0
TT
75132014-02-19 Tom Tromey <tromey@redhat.com>
7514
7515 * target-delegates.c: Rebuild.
7516 * target.c (update_current_target): Don't inherit or default
7517 to_supports_evaluation_of_breakpoint_conditions.
7518 * target.h (struct target_ops)
7519 <to_supports_evaluation_of_breakpoint_conditions>: Use
7520 TARGET_DEFAULT_RETURN.
7521
0de91722
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (update_current_target): Don't inherit or default
7526 to_augmented_libraries_svr4_read.
7527 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7528 Use TARGET_DEFAULT_RETURN.
7529
9a7d8b48
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target-delegates.c: Rebuild.
7533 * target.c (update_current_target): Don't inherit or default
7534 to_can_use_agent.
7535 * target.h (struct target_ops) <to_can_use_agent>: Use
7536 TARGET_DEFAULT_RETURN.
7537
d9db5b21
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target-delegates.c: Rebuild.
7541 * target.c (update_current_target): Don't inherit or default
7542 to_use_agent.
7543 * target.h (struct target_ops) <to_use_agent>: Use
7544 TARGET_DEFAULT_NORETURN.
7545
92155eeb
TT
75462014-02-19 Tom Tromey <tromey@redhat.com>
7547
7548 * target-delegates.c: Rebuild.
7549 * target.c (update_current_target): Don't inherit or default
7550 to_traceframe_info.
7551 (return_null): Remove.
7552 * target.h (struct target_ops) <to_traceframe_info>: Use
7553 TARGET_DEFAULT_RETURN.
7554
d6522a22
TT
75552014-02-19 Tom Tromey <tromey@redhat.com>
7556
7557 * target-delegates.c: Rebuild.
7558 * target.c (update_current_target): Don't inherit or default
7559 to_static_tracepoint_markers_by_strid.
7560 * target.h (struct target_ops)
7561 <to_static_tracepoint_markers_by_strid>: Use
7562 TARGET_DEFAULT_NORETURN.
7563
4c3e4425
TT
75642014-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * target-delegates.c: Rebuild.
7567 * target.c (update_current_target): Don't inherit or default
7568 to_static_tracepoint_marker_at.
7569 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7570 Use TARGET_DEFAULT_RETURN.
7571
dcd6917f
TT
75722014-02-19 Tom Tromey <tromey@redhat.com>
7573
7574 * target-delegates.c: Rebuild.
7575 * target.c (update_current_target): Don't inherit or default
7576 to_set_permissions.
7577 * target.h (struct target_ops) <to_set_permissions>: Use
7578 TARGET_DEFAULT_IGNORE.
7579
22bcceee
TT
75802014-02-19 Tom Tromey <tromey@redhat.com>
7581
7582 * target-delegates.c: Rebuild.
7583 * target.c (update_current_target): Don't inherit or default
7584 to_get_tib_address.
7585 * target.h (struct target_ops) <to_get_tib_address>: Use
7586 TARGET_DEFAULT_NORETURN.
7587
8586ccaa
TT
75882014-02-19 Tom Tromey <tromey@redhat.com>
7589
7590 * target-delegates.c: Rebuild.
7591 * target.c (update_current_target): Don't inherit or default
7592 to_set_trace_notes.
7593 * target.h (struct target_ops) <to_set_trace_notes>: Use
7594 TARGET_DEFAULT_RETURN.
7595
91df8d1d
TT
75962014-02-19 Tom Tromey <tromey@redhat.com>
7597
7598 * target-delegates.c: Rebuild.
7599 * target.c (update_current_target): Don't initialize
7600 to_set_trace_buffer_size.
7601 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7602 TARGET_DEFAULT_IGNORE.
7603
8d526939
TT
76042014-02-19 Tom Tromey <tromey@redhat.com>
7605
7606 * target-delegates.c: Rebuild.
7607 * target.c (update_current_target): Don't inherit or default
7608 to_set_circular_trace_buffer.
7609 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7610 TARGET_DEFAULT_IGNORE.
7611
0bcfeddf
TT
76122014-02-19 Tom Tromey <tromey@redhat.com>
7613
7614 * target-delegates.c: Rebuild.
7615 * target.c (update_current_target): Don't inherit or default
7616 to_set_disconnected_tracing.
7617 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7618 TARGET_DEFAULT_IGNORE.
7619
9249843f
TT
76202014-02-19 Tom Tromey <tromey@redhat.com>
7621
7622 * target-delegates.c: Rebuild.
7623 * target.c (update_current_target): Don't inherit or default
7624 to_get_min_fast_tracepoint_insn_len.
7625 (return_minus_one): Remove.
7626 * target.h (struct target_ops)
7627 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7628
ace92e7d
TT
76292014-02-19 Tom Tromey <tromey@redhat.com>
7630
7631 * target-delegates.c: Rebuild.
7632 * target.c (update_current_target): Don't inherit or default
7633 to_get_raw_trace_data.
7634 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7635 TARGET_DEFAULT_NORETURN.
7636
08120467
TT
76372014-02-19 Tom Tromey <tromey@redhat.com>
7638
7639 * target-delegates.c: Rebuild.
7640 * target.c (update_current_target): Don't inherit or default
7641 to_upload_trace_state_variables.
7642 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7643 Use TARGET_DEFAULT_RETURN.
7644
1e949b00
TT
76452014-02-19 Tom Tromey <tromey@redhat.com>
7646
7647 * target-delegates.c: Rebuild.
7648 * target.c (update_current_target): Don't inherit or default
7649 to_upload_tracepoints.
7650 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7651 TARGET_DEFAULT_RETURN.
7652
a2e6c147
TT
76532014-02-19 Tom Tromey <tromey@redhat.com>
7654
7655 * target-delegates.c: Rebuild.
7656 * target.c (update_current_target): Don't inherit or default
7657 to_save_trace_data.
7658 * target.h (struct target_ops) <to_save_trace_data>: Use
7659 TARGET_DEFAULT_NORETURN.
7660
959bcd0b
TT
76612014-02-19 Tom Tromey <tromey@redhat.com>
7662
7663 * target-delegates.c: Rebuild.
7664 * target.c (update_current_target): Don't inherit or default
7665 to_get_trace_state_variable_value.
7666 * target.h (struct target_ops)
7667 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7668
afc94e66
TT
76692014-02-19 Tom Tromey <tromey@redhat.com>
7670
7671 * target-delegates.c: Rebuild.
7672 * target.c (update_current_target): Don't inherit or default
7673 to_trace_find.
7674 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7675
e51c07ea
TT
76762014-02-19 Tom Tromey <tromey@redhat.com>
7677
7678 * target-delegates.c: Rebuild.
7679 * target.c (update_current_target): Don't inherit or default
7680 to_trace_stop.
7681 * target.h (struct target_ops) <to_trace_stop>: Use
7682 TARGET_DEFAULT_NORETURN.
7683
6fea14cd
TT
76842014-02-19 Tom Tromey <tromey@redhat.com>
7685
7686 * target-delegates.c: Rebuild.
7687 * target.c (update_current_target): Don't inherit or default
7688 to_get_tracepoint_status.
7689 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7690 TARGET_DEFAULT_NORETURN.
7691
4072d4ff
TT
76922014-02-19 Tom Tromey <tromey@redhat.com>
7693
7694 * target-delegates.c: Rebuild.
7695 * target.c (update_current_target): Don't inherit or default
7696 to_get_trace_status.
7697 * target.h (struct target_ops) <to_get_trace_status>: Use
7698 TARGET_DEFAULT_RETURN.
7699
25da2e80
TT
77002014-02-19 Tom Tromey <tromey@redhat.com>
7701
7702 * target-delegates.c: Rebuild.
7703 * target.c (update_current_target): Don't inherit or default
7704 to_trace_start.
7705 * target.h (struct target_ops) <to_trace_start>: Use
7706 TARGET_DEFAULT_NORETURN.
7707
86dd181d
TT
77082014-02-19 Tom Tromey <tromey@redhat.com>
7709
7710 * target-delegates.c: Rebuild.
7711 * target.c (update_current_target): Don't inherit or default
7712 to_trace_set_readonly_regions.
7713 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7714 Use TARGET_DEFAULT_NORETURN.
7715
05c41993
TT
77162014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target-delegates.c: Rebuild.
7719 * target.c (update_current_target): Don't inherit or default
7720 to_disable_tracepoint.
7721 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7722 TARGET_DEFAULT_NORETURN.
7723
151f70f1
TT
77242014-02-19 Tom Tromey <tromey@redhat.com>
7725
7726 * target-delegates.c: Rebuild.
7727 * target.c (update_current_target): Don't inherit or default
7728 to_enable_tracepoint.
7729 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7730 TARGET_DEFAULT_NORETURN.
7731
94eb98b9
TT
77322014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7736 to_download_trace_state_variable.
7737 * target.h (struct target_ops) <to_download_trace_state_variable>:
7738 Use TARGET_DEFAULT_NORETURN.
7739
719acc4a
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target-delegates.c: Rebuild.
7743 * target.c (update_current_target): Don't inherit or default
7744 to_can_download_tracepoint.
7745 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7746 TARGET_DEFAULT_RETURN.
7747
9a980a22
TT
77482014-02-19 Tom Tromey <tromey@redhat.com>
7749
7750 * target-delegates.c: Rebuild.
7751 * target.c (update_current_target): Don't inherit or default
7752 to_download_tracepoint.
7753 * target.h (struct target_ops) <to_download_tracepoint>: Use
7754 TARGET_DEFAULT_NORETURN.
7755
5536135b
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target-delegates.c: Rebuild.
7759 * target.c (update_current_target): Don't inherit or default
7760 to_trace_init.
7761 * target.h (struct target_ops) <to_trace_init>: Use
7762 TARGET_DEFAULT_RETURN.
7763
9409d39e
TT
77642014-02-19 Tom Tromey <tromey@redhat.com>
7765
7766 * target-delegates.c: Rebuild.
7767 * target.c (update_current_target): Don't inherit or default
7768 to_supports_string_tracing.
7769 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7770 TARGET_DEFAULT_RETURN.
7771
aab1b22d
TT
77722014-02-19 Tom Tromey <tromey@redhat.com>
7773
7774 * target-delegates.c: Rebuild.
7775 * target.c (update_current_target): Don't inherit or default
7776 to_supports_enable_disable_tracepoint.
7777 * target.h (struct target_ops)
7778 <to_supports_enable_disable_tracepoint>: Use
7779 TARGET_DEFAULT_RETURN.
7780
a7304748
TT
77812014-02-19 Tom Tromey <tromey@redhat.com>
7782
7783 * target-delegates.c: Rebuild.
7784 * target.c (update_current_target): Don't inherit or default
7785 to_supports_multi_process.
7786 * target.h (struct target_ops) <to_supports_multi_process>: Use
7787 TARGET_DEFAULT_RETURN.
7788
4229b31d
TT
77892014-02-19 Tom Tromey <tromey@redhat.com>
7790
7791 * target-delegates.c: Rebuild.
7792 * target.c (update_current_target): Don't inherit or default
7793 to_get_ada_task_ptid.
7794 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7795 TARGET_DEFAULT_FUNC.
7796
43eba180
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (update_current_target): Don't inherit or default
7801 to_thread_architecture.
7802 * target.h (struct target_ops) <to_thread_architecture>: Use
7803 TARGET_DEFAULT_FUNC.
7804
fe31bf5b
TT
78052014-02-19 Tom Tromey <tromey@redhat.com>
7806
7807 * target-delegates.c: Rebuild.
7808 * target.c (update_current_target): Don't inherit or default
7809 to_execution_direction.
7810 * target.h (struct target_ops) <to_execution_direction>: Use
7811 TARGET_DEFAULT_FUNC.
7812
53e1cfc7
TT
78132014-02-19 Tom Tromey <tromey@redhat.com>
7814
7815 * target-delegates.c: Rebuild.
7816 * target.c (update_current_target): Don't inherit or default
7817 to_can_execute_reverse.
7818 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7819 TARGET_DEFAULT_RETURN.
7820 (target_can_execute_reverse): Unconditionally delegate.
7821
9bb9d61d
TT
78222014-02-19 Tom Tromey <tromey@redhat.com>
7823
7824 * target-delegates.c: Rebuild.
7825 * target.c (update_current_target): Don't inherit or default
7826 to_goto_bookmark.
7827 (dummy_goto_bookmark): Remove.
7828 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7829 * target.h (struct target_ops) <to_goto_bookmark>: Use
7830 TARGET_DEFAULT_NORETURN.
7831
3dbafbbb
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_get_bookmark.
7837 (dummy_get_bookmark): Remove.
7838 (init_dummy_target): Don't inherit or default to_get_bookmark.
7839 * target.h (struct target_ops) <to_get_bookmark>: Use
7840 TARGET_DEFAULT_NORETURN
7841
16f796b1
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_make_corefile_notes.
7847 (init_dummy_target): Don't initialize to_make_corefile_notes.
7848 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7849 TARGET_DEFAULT_FUNC.
7850
0b5a2719
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (update_current_target): Don't inherit or default
7855 to_find_memory_regions.
7856 (init_dummy_target): Don't initialize to_find_memory_regions.
7857 * target.h (struct target_ops) <to_find_memory_regions>: Use
7858 TARGET_DEFAULT_FUNC.
7859
d9cb0195
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target-delegates.c: Rebuild.
7863 * target.c (update_current_target): Don't inherit or default
7864 to_log_command.
7865 * target.h (struct target_ops) <to_log_command>: Use
7866 TARGET_DEFAULT_IGNORE.
7867 (target_log_command): Unconditionally delegate.
7868
830ca330
TT
78692014-02-19 Tom Tromey <tromey@redhat.com>
7870
7871 * target-delegates.c: Rebuild.
7872 * target.c (update_current_target): Don't inherit or default
7873 to_pid_to_exec_file.
7874 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7875 TARGET_DEFAULT_RETURN.
7876
825828fc
TT
78772014-02-19 Tom Tromey <tromey@redhat.com>
7878
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7881 to_thread_name.
7882 (target_thread_name): Unconditionally delegate.
7883 * target.h (struct target_ops) <to_thread_name>: Use
7884 TARGET_DEFAULT_RETURN.
7885
4a7e6dda
TT
78862014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7890 to_extra_thread_info.
7891 * target.h (struct target_ops) <to_extra_thread_info>: Use
7892 TARGET_DEFAULT_RETURN.
7893
0db88c1d
TT
78942014-02-19 Tom Tromey <tromey@redhat.com>
7895
7896 * target-delegates.c: Rebuild.
7897 * target.c (update_current_target): Don't inherit or default
7898 to_has_exited.
7899 * target.h (struct target_ops) <to_has_exited>: Use
7900 TARGET_DEFAULT_RETURN..
7901
6a9fa051
TT
79022014-02-19 Tom Tromey <tromey@redhat.com>
7903
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7906 to_set_syscall_catchpoint.
7907 (return_one): Remove.
7908 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7909 TARGET_DEFAULT_RETURN.
7910
62f64d7a
TT
79112014-02-19 Tom Tromey <tromey@redhat.com>
7912
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7915 to_insert_exec_catchpoint.
7916 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7917 TARGET_DEFAULT_RETURN.
7918
cda0f38c
TT
79192014-01-08 Tom Tromey <tromey@redhat.com>
7920
7921 * target-delegates.c: Rebuild.
7922 * target.c (update_current_target): Don't inherit or default
7923 to_insert_exec_catchpoint.
7924 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7925 TARGET_DEFAULT_RETURN.
7926
95c3375e
TT
79272014-02-19 Tom Tromey <tromey@redhat.com>
7928
7929 * target-delegates.c: Rebuild.
7930 * target.c (update_current_target): Don't inherit or default
7931 to_remove_vfork_catchpoint.
7932 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7933 TARGET_DEFAULT_RETURN.
7934
7e18a8dc
TT
79352014-02-19 Tom Tromey <tromey@redhat.com>
7936
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7939 to_insert_vfork_catchpoint.
7940 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7941 TARGET_DEFAULT_RETURN.
7942
e1a21fb7
TT
79432014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7947 to_remove_fork_catchpoint.
7948 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7949 TARGET_DEFAULT_RETURN.
7950
5958ebeb
TT
79512014-02-19 Tom Tromey <tromey@redhat.com>
7952
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7955 to_insert_fork_catchpoint.
7956 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7957 TARGET_DEFAULT_RETURN.
7958
340ba4bf
TT
79592014-02-19 Tom Tromey <tromey@redhat.com>
7960
7961 * target-delegates.c: Rebuild.
7962 * target.c (update_current_target): Don't inherit or default
7963 to_post_startup_inferior.
7964 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7965 TARGET_DEFAULT_IGNORE.
7966
7634da87
TT
79672014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target-delegates.c: Rebuild.
7970 * target.c (update_current_target): Don't inherit or default
7971 to_load.
7972 * target.h (struct target_ops) <to_load>: Use
7973 TARGET_DEFAULT_NORETURN.
7974
e19e919f
TT
79752014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_terminal_info.
7980 * target.h (struct target_ops) <to_terminal_info>: Use
7981 TARGET_DEFAULT_FUNC.
7982
c6ea8f79
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_terminal_save_ours.
7988 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7989 TARGET_DEFAULT_IGNORE.
7990
e4a733f1
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_terminal_ours.
7996 * target.h (struct target_ops) <to_terminal_ours>: Use
7997 TARGET_DEFAULT_IGNORE.
7998
74fcbef9
TT
79992014-02-19 Tom Tromey <tromey@redhat.com>
8000
8001 * target-delegates.c: Rebuild.
8002 * target.c (update_current_target): Don't inherit or default
8003 to_terminal_ours_for_output.
8004 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8005 TARGET_DEFAULT_IGNORE.
8006
ddeaacc9
TT
80072014-02-19 Tom Tromey <tromey@redhat.com>
8008
8009 * target-delegates.c: Rebuild.
8010 * target.c (update_current_target): Don't inherit or default
8011 to_terminal_inferior.
8012 * target.h (struct target_ops) <to_terminal_inferior>: Use
8013 TARGET_DEFAULT_IGNORE.
8014
0343661d
TT
80152014-02-19 Tom Tromey <tromey@redhat.com>
8016
8017 * target-delegates.c: Rebuild.
8018 * target.c (update_current_target): Don't inherit or default
8019 to_terminal_init.
8020 * target.h (struct target_ops) <to_terminal_init>: Use
8021 TARGET_DEFAULT_IGNORE.
8022
77cdffe9
TT
80232014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * target-delegates.c: Rebuild.
8026 * target.c (update_current_target): Don't inherit or default
8027 to_can_accel_watchpoint_condition.
8028 * target.h (struct target_ops)
8029 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8030
d03655e4
TT
80312014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target-delegates.c: Rebuild.
8034 * target.c (update_current_target): Don't inherit or default
8035 to_region_ok_for_hw_watchpoint.
8036 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8037 Use TARGET_DEFAULT_FUNC.
8038
65f160a9
TT
80392014-02-19 Tom Tromey <tromey@redhat.com>
8040
8041 * target-delegates.c: Rebuild.
8042 * target.c (update_current_target): Don't inherit or default
8043 to_watchpoint_addr_within_range.
8044 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8045 Use TARGET_DEFAULT_FUNC.
8046
61dd109f
TT
80472014-02-19 Tom Tromey <tromey@redhat.com>
8048
8049 * target-delegates.c: Rebuild.
8050 * target.c (update_current_target): Don't inherit or default
8051 to_remove_watchpoint.
8052 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8053 TARGET_DEFAULT_NORETURN.
8054
016facd4
TT
80552014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target-delegates.c: Rebuild.
8058 * target.c (update_current_target): Don't inherit or default
8059 to_insert_watchpoint.
8060 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8061 TARGET_DEFAULT_RETURN.
8062
418dabac
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (update_current_target): Don't inherit or default
8067 to_remove_hw_breakpoint.
8068 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8069 TARGET_DEFAULT_RETURN.
8070
61b371f9
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target-delegates.c: Rebuild.
8074 * target.c (update_current_target): Don't inherit or default
8075 to_insert_hw_breakpoint.
8076 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8077 TARGET_DEFAULT_RETURN.
8078
52b51d06
TT
80792014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target-delegates.c: Rebuild.
8082 * target.c (update_current_target): Don't inherit or default
8083 to_can_use_hw_breakpoint.
8084 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8085 TARGET_DEFAULT_RETURN.
8086
f86e59b2
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_files_info.
8092 * target.h (struct target_ops) <to_files_info>: Use
8093 TARGET_DEFAULT_IGNORE.
8094
6c628163
TT
80952014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_store.
8100 * target.h (struct target_ops) <to_store>: Use
8101 TARGET_DEFAULT_NORETURN.
8102
bebd3233
TT
81032014-02-19 Tom Tromey <tromey@redhat.com>
8104
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_post_attach.
8108 * target.h (struct target_ops) <to_post_attach>: Use
8109 TARGET_DEFAULT_IGNORE.
8110
a53f3625
TT
81112014-02-19 Tom Tromey <tromey@redhat.com>
8112
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't inherit or default
8115 to_rcmd.
8116 (default_rcmd): New function.
8117 (do_monitor_command): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_rmcd>: Use
8119 TARGET_DEFAULT_FUNC.
8120
e9a29200
TT
81212014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (init_dummy_target): Don't initialize to_attach.
8125 (target_attach): Unconditionally delegate.
8126 * target.h (struct target_ops) <to_attach>: Use
8127 TARGET_DEFAULT_FUNC.
8128
09da0d0a
TT
81292014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (target_detach): Unconditionally delegate.
8133 (init_dummy_target): Don't initialize to_detach.
8134 * target.h (struct target_ops) <to_detach>: Use
8135 TARGET_DEFAULT_IGNORE.
8136
5436ff03
TT
81372014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8140 Add argument.
8141 (target_augmented_libraries_svr4_read): Add argument.
8142 * target.c (update_current_target): Update.
8143 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8144 argument.
8145
f0d960ea
TT
81462014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target.h (struct target_ops) <to_call_history_range>: Add
8149 argument.
8150 * target.c (target_call_history_range): Add argument.
8151 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8152 argument.
8153 (record_btrace_call_history_from): Update.
8154
ec0aea04
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target.h (struct target_ops) <to_call_history_from>: Add
8158 argument.
8159 * target.c (target_call_history_from): Add argument.
8160 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8161 argument.
8162
5df2fcba
TT
81632014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target.h (struct target_ops) <to_call_history>: Add argument.
8166 * target.c (target_call_history): Add argument.
8167 * record-btrace.c (record_btrace_call_history): Add 'self'
8168 argument.
8169
4e99c6b7
TT
81702014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target.h (struct target_ops) <to_insn_history_range>: Add
8173 argument.
8174 * target.c (target_insn_history_range): Add argument.
8175 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8176 argument.
8177 (record_btrace_insn_history_from): Update.
8178
9abc3ff3
TT
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target.h (struct target_ops) <to_insn_history_from>: Add
8182 argument.
8183 * target.c (target_insn_history_from): Add argument.
8184 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8185 argument.
8186
7a6c5609
TT
81872014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * target.h (struct target_ops) <to_insn_history>: Add argument.
8190 * target.c (target_insn_history): Add argument.
8191 * record-btrace.c (record_btrace_insn_history): Add 'self'
8192 argument.
8193
606183ac
TT
81942014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target.h (struct target_ops) <to_goto_record>: Add argument.
8197 * target.c (target_goto_record): Add argument.
8198 * record-full.c (record_full_goto): Add 'self' argument.
8199 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8200
307a1b91
TT
82012014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8204 * target.c (target_goto_record_end): Add argument.
8205 * record-full.c (record_full_goto_end): Add 'self' argument.
8206 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8207
08475817
TT
82082014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target.h (struct target_ops) <to_goto_record_begin>: Add
8211 argument.
8212 * target.c (target_goto_record_begin): Add argument.
8213 * record-full.c (record_full_goto_begin): Add 'self' argument.
8214 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8215 argument.
8216
1c63c994
TT
82172014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target.h (struct target_ops) <to_record_is_replaying>: Add
8220 argument.
8221 * target.c (target_record_is_replaying): Add argument.
8222 * record-full.c (record_full_is_replaying): Add 'self' argument.
8223 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8224 argument.
8225 (record_btrace_xfer_partial, record_btrace_store_registers)
8226 (record_btrace_prepare_to_store, record_btrace_resume)
8227 (record_btrace_wait, record_btrace_decr_pc_after_break)
8228 (record_btrace_find_new_threads, record_btrace_thread_alive):
8229 Update.
8230
d1b55219
TT
82312014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target.h (struct target_ops) <to_delete_record>: Add argument.
8234 * target.c (target_delete_record): Add argument.
8235 * record-full.c (record_full_delete): Add 'self' argument.
8236
1390f529
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target.h (struct target_ops) <to_save_record>: Add argument.
8240 * target.c (target_save_record): Add argument.
8241 * record-full.c (record_full_save): Add 'self' argument.
8242 (record_full_save): Add 'self' argument.
8243
630d6a4a
TT
82442014-02-19 Tom Tromey <tromey@redhat.com>
8245
8246 * target.h (struct target_ops) <to_info_record>: Add argument.
8247 * target.c (target_info_record): Add argument.
8248 * record.c (info_record_command): Add argument.
8249 * record-full.c (record_full_info): Add 'self' argument.
8250 * record-btrace.c (record_btrace_info): Add 'self' argument.
8251
c6cd7c02
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8255 * target.c (target_stop_recording): Add argument.
8256 * record.c (record_stop): Add argument.
8257 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8258 argument.
8259
39c49f83
TT
82602014-02-19 Tom Tromey <tromey@redhat.com>
8261
8262 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8263 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8264 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8265 argument.
8266 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8267 (_initialize_amd64_linux_nat): Use it.
8268 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8269 (_initialize_i386_linux_nat): Use it.
8270
1777056d
TT
82712014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8274 * target.c (target_teardown_btrace): Add argument.
8275 * remote.c (remote_teardown_btrace): Add 'self' argument.
8276 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8277 argument.
8278 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8279 argument.
8280
25e95349
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8284 * target.c (target_disable_btrace): Add argument.
8285 * remote.c (remote_disable_btrace): Add 'self' argument.
8286 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8287 argument.
8288 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8289 argument.
8290
e3c49f88
TT
82912014-02-19 Tom Tromey <tromey@redhat.com>
8292
8293 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8294 * target.c (target_enable_btrace): Add argument.
8295 * remote.c (remote_enable_btrace): Add 'self' argument.
8296 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8297 argument.
8298 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8299 argument.
8300
fe38f897
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8304 (target_can_use_agent): Add argument.
8305 * target.c (update_current_target): Update.
8306 * remote.c (remote_can_use_agent): Add 'self' argument.
8307 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8308
2c152180
TT
83092014-02-19 Tom Tromey <tromey@redhat.com>
8310
8311 * target.h (struct target_ops) <to_use_agent>: Add argument.
8312 (target_use_agent): Add argument.
8313 * target.c (update_current_target): Update.
8314 * remote.c (remote_use_agent): Add 'self' argument.
8315 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8316
a893e81f
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8320 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8321 (target_traceframe_info): Add argument.
8322 * target.c (update_current_target): Update.
8323 * remote.c (remote_traceframe_info): Add 'self' argument.
8324 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8325
c686c57f
TT
83262014-02-19 Tom Tromey <tromey@redhat.com>
8327
8328 * target.h (target_static_tracepoint_markers_by_strid): Add
8329 argument.
8330 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8331 'self' argument.
8332 * target.c (update_current_target): Update.
8333 * remote.c (struct target_ops)
8334 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8335 * linux-nat.c (struct target_ops)
8336 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8337
61fc905d
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8341 Add argument.
8342 (target_static_tracepoint_marker_at): Add argument.
8343 * target.c (update_current_target): Update.
8344 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8345 argument.
8346
c378d69d
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8350 (target_set_permissions): Add argument.
8351 * target.c (update_current_target): Update.
8352 * remote.c (remote_set_permissions): Add 'self' argument.
8353 (remote_start_remote): Update.
8354
bd7ae0f5
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8358 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8359 (target_get_tib_address): Add argument.
8360 * target.c (update_current_target): Update.
8361 * remote.c (remote_get_tib_address): Add 'self' argument.
8362
d9e68a2c
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8366 (target_set_trace_notes): Add argument.
8367 * target.c (update_current_target): Update.
8368 * remote.c (remote_set_trace_notes): Add 'self' argument.
8369
4da384be
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8373 argument.
8374 (target_set_trace_buffer_size): Add argument.
8375 * target.c (update_current_target): Update.
8376 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8377
736d5b1f
TT
83782014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8381 argument.
8382 (target_set_circular_trace_buffer): Add argument.
8383 * target.c (update_current_target): Update.
8384 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8385 argument.
8386
37b25738
TT
83872014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8390 argument.
8391 (target_set_disconnected_tracing): Add argument.
8392 * target.c (update_current_target): Update.
8393 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8394
0e67620a
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target.h (struct target_ops)
8398 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8399 (target_get_min_fast_tracepoint_insn_len): Add argument.
8400 * target.c (update_current_target): Update.
8401 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8402 argument.
8403
88ee6f45
TT
84042014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8407 argument.
8408 (target_get_raw_trace_data): Add argument.
8409 * target.c (update_current_target): Update.
8410 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8411
181e3713
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8415 Add argument.
8416 (target_upload_trace_state_variables): Add argument.
8417 * target.c (update_current_target): Update.
8418 * remote.c (remote_upload_trace_state_variables): Add 'self'
8419 argument.
8420 (remote_start_remote): Update.
8421
ab6617cc
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8425 argument.
8426 (target_upload_tracepoints): Add argument.
8427 * target.c (update_current_target): Update.
8428 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8429 (remote_start_remote): Update.
8430
dc3decaf
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8434 (target_save_trace_data): Add argument.
8435 * target.c (update_current_target): Update.
8436 * remote.c (remote_save_trace_data): Add 'self' argument.
8437
4011015b
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8441 argument.
8442 * target.h (struct target_ops)
8443 <to_get_trace_state_variable_value>: Add argument.
8444 (target_get_trace_state_variable_value): Add argument.
8445 * target.c (update_current_target): Update.
8446 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8447 argument.
8448 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8449
bd4c6793
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8453 * target.h (struct target_ops) <to_trace_find>: Add argument.
8454 (target_trace_find): Add argument.
8455 * target.c (update_current_target): Update.
8456 * remote.c (remote_trace_find): Add 'self' argument.
8457 * ctf.c (ctf_trace_find): Add 'self' argument.
8458
74499f1b
TT
84592014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8462 (target_trace_stop): Add argument.
8463 * target.c (update_current_target): Update.
8464 * remote.c (remote_trace_stop): Add 'self' argument.
8465
db90e85c
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8469 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8470 argument.
8471 (target_get_tracepoint_status): Add argument.
8472 * target.c (update_current_target): Update.
8473 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8474
8bd200f1
TT
84752014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8478 * target.h (struct target_ops) <to_get_trace_status>: Add
8479 argument.
8480 (target_get_trace_status): Add argument.
8481 * target.c (update_current_target): Update.
8482 * remote.c (remote_get_trace_status): Add 'self' argument.
8483 (remote_start_remote, remote_can_download_tracepoint): Update.
8484 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8485
e2d1aae3
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target.h (struct target_ops) <to_trace_start>: Add argument.
8489 (target_trace_start): Add argument.
8490 * target.c (update_current_target): Update.
8491 * remote.c (remote_trace_start): Add 'self' argument.
8492
583f9a86
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8496 Add argument.
8497 (target_trace_set_readonly_regions): Add argument.
8498 * target.c (update_current_target): Update.
8499 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8500 argument.
8501
780b049c
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8505 argument.
8506 (target_disable_tracepoint): Add argument.
8507 * target.c (update_current_target): Update.
8508 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8509
46670d57
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8513 argument.
8514 (target_enable_tracepoint): Add argument.
8515 * target.c (update_current_target): Update.
8516 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8517
559d2b81
TT
85182014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target.h (struct target_ops) <to_download_trace_state_variable>:
8521 Add argument.
8522 (target_download_trace_state_variable): Add argument.
8523 * target.c (update_current_target): Update.
8524 * remote.c (remote_download_trace_state_variable): Add 'self'
8525 argument.
8526
a52a8357
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8530 argument.
8531 (target_can_download_tracepoint): Add argument.
8532 * target.c (update_current_target): Update.
8533 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8534
548f7808
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target.h (struct target_ops) <to_download_tracepoint>: Add
8538 argument.
8539 (target_download_tracepoint): Add argument.
8540 * target.c (update_current_target): Update.
8541 * remote.c (remote_download_tracepoint): Add 'self' argument.
8542
ecae04e1
TT
85432014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target.h (struct target_ops) <to_trace_init>: Add argument.
8546 (target_trace_init): Add argument.
8547 * target.c (update_current_target): Update.
8548 * remote.c (remote_trace_init): Add 'self' argument.
8549
fab5aa7c
TT
85502014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8553 * target.c (target_fileio_readlink): Add argument.
8554 * remote.c (remote_hostio_readlink): Add 'self' argument.
8555 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8556
dbbca37d
TT
85572014-02-19 Tom Tromey <tromey@redhat.com>
8558
8559 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8560 * target.c (target_fileio_unlink): Add argument.
8561 * remote.c (remote_hostio_unlink): Add 'self' argument.
8562 (remote_file_delete): Update.
8563 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8564
df39ea25
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8568 * target.c (target_fileio_close): Add argument.
8569 * remote.c (remote_hostio_close): Add 'self' argument.
8570 (remote_hostio_close_cleanup): Update.
8571 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8572 Update.
8573 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8574
a3be983c
TT
85752014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8578 * target.c (target_fileio_pread): Add argument.
8579 * remote.c (remote_hostio_pread): Add 'self' argument.
8580 (remote_bfd_iovec_pread, remote_file_get): Update.
8581 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8582
0d866f62
TT
85832014-02-19 Tom Tromey <tromey@redhat.com>
8584
8585 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8586 * target.c (target_fileio_pwrite): Add argument.
8587 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8588 (remote_file_put): Update.
8589 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8590
cd897586
TT
85912014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8594 * target.c (target_fileio_open): Add argument.
8595 * remote.c (remote_hostio_open): Add 'self' argument.
8596 (remote_bfd_iovec_open): Add 'self' argument.
8597 (remote_file_put): Add 'self' argument.
8598 (remote_file_get): Add 'self' argument.
8599 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8600
78eff0ec
TT
86012014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8604 Add argument.
8605 (target_can_run_breakpoint_commands): Add argument.
8606 * target.c (update_current_target): Update.
8607 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8608 argument.
8609 (remote_insert_breakpoint): Add 'self' argument.
8610 (remote_insert_hw_breakpoint): Add 'self' argument.
8611 (remote_can_run_breakpoint_commands): Add 'self' argument.
8612
efcc2da7
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops)
8616 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8617 (target_supports_evaluation_of_breakpoint_conditions): Add
8618 argument.
8619 * target.c (update_current_target): Update.
8620 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8621 argument.
8622 (remote_insert_breakpoint): Add 'self' argument.
8623 (remote_insert_hw_breakpoint): Add 'self' argument.
8624 (remote_supports_cond_breakpoints): Add 'self' argument.
8625
6de37a3a
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8629 argument.
8630 (target_supports_string_tracing): Add argument.
8631 * target.c (update_current_target): Update.
8632 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8633
2bfc0540
TT
86342014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target.h (struct target_ops)
8637 <to_supports_disable_randomization>: Add argument.
8638 * target.c (find_default_supports_disable_randomization): Add
8639 argument.
8640 (target_supports_disable_randomization): Add argument.
8641 (find_default_supports_disable_randomization): Add 'self'
8642 argument.
8643 * remote.c (extended_remote_supports_disable_randomization): Add
8644 'self' argument.
8645 (remote_supports_disable_randomization): Add 'self' argument.
8646 (extended_remote_create_inferior): Update.
8647 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8648 'self' argument.
8649
7d178d6a
TT
86502014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target.h (struct target_ops)
8653 <to_supports_enable_disable_tracepoint>: Add argument.
8654 (target_supports_enable_disable_tracepoint): Add argument.
8655 * target.c (update_current_target): Update.
8656 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8657 argument.
8658
86ce2668
TT
86592014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target.h (struct target_ops) <to_supports_multi_process>: Add
8662 argument.
8663 (target_supports_multi_process): Add argument.
8664 * target.c (update_current_target): Update.
8665 * remote.c (remote_supports_multi_process): Add 'self' argument.
8666 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8667 argument.
8668 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8669 argument.
8670
4c612759
TT
86712014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target.h (struct target_ops) <to_execution_direction>: Add
8674 argument.
8675 (target_execution_direction): Add argument.
8676 * target.c (default_execution_direction): Add 'self' argument.
8677 * record-full.c (record_full_execution_direction): Add 'self'
8678 argument.
8679
19db3e69
TT
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8683 argument.
8684 (target_can_execute_reverse): Add argument.
8685 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8686 * record-full.c (record_full_can_execute_reverse): Add 'self'
8687 argument.
8688 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8689 argument.
8690
1e6b91a4
TT
86912014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8694 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8695 argument.
8696 (target_get_ada_task_ptid): Add argument.
8697 * target.c (update_current_target): Update.
8698 (default_get_ada_task_ptid): Add 'self' argument.
8699 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8700 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8701 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8702 argument.
8703 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8704 argument.
8705 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8706 argument.
8707 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8708 argument.
8709 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8710 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8711 argument.
8712
3c80fb48
TT
87132014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8716 (target_goto_bookmark): Add argument.
8717 * target.c (dummy_goto_bookmark): Add 'self' argument.
8718 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8719
dd0e2830
TT
87202014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8723 (target_get_bookmark): Add argument.
8724 * target.c (dummy_get_bookmark): Add 'self' argument.
8725 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8726
fc6691b2
TT
87272014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8730 argument.
8731 (target_make_corefile_notes): Add argument.
8732 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8733 * procfs.c (procfs_make_note_section): Add 'self' argument.
8734 (procfs_make_note_section): Add 'self' argument.
8735 (procfs_make_note_section): Add 'self' argument.
8736 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8737 argument.
8738 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8739 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8740 * exec.c (exec_make_note_section): Add 'self' argument.
8741 (exec_make_note_section): Add 'self' argument.
8742
2e73927c
TT
87432014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target.h (struct target_ops) <to_find_memory_regions>: Add
8746 argument.
8747 (target_find_memory_regions): Add argument.
8748 * target.c (dummy_find_memory_regions): Add 'self' argument.
8749 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8750 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8751 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8752 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8753 * exec. (exec_do_find_memory_regions): New global.
8754 (exec_set_find_memory_regions): Rewrite.
8755 (exec_find_memory_regions): New function.
8756 (init_exec_ops): Use exec_find_memory_regions.
8757
2a9a2795
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target.h (struct target_ops) <to_supports_non_stop>: Add
8761 argument.
8762 * target.c (find_default_supports_non_stop): Add argument.
8763 (target_supports_non_stop): Add argument.
8764 (find_default_supports_non_stop): Add 'self' argument.
8765 * remote.c (remote_supports_non_stop): Add 'self' argument.
8766 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8767
4ab76ea3
TT
87682014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * target.h (struct target_ops) <to_log_command>: Add argument.
8771 (target_log_command): Add argument.
8772 * serial.h (serial_log_command): Add 'self' argument.
8773 * serial.c (serial_log_command): Add 'self' argument.
8774
8dd27370
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8778 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8779 argument.
8780 (target_pid_to_exec_file): Add argument.
8781 * target.c (debug_to_pid_to_exec_file): Add argument.
8782 (update_current_target): Update.
8783 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8784 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8785 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8786 (linux_handle_extended_wait): Update.
8787 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8788 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8789 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8790 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8791
1aac633b
TT
87922014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_rcmd>: Add argument.
8795 (target_rcmd): Add argument.
8796 * target.c (debug_to_rcmd): Add argument.
8797 (update_current_target, do_monitor_command): Update.
8798 * remote.c (remote_rcmd): Add 'self' argument.
8799 * monitor.c (monitor_rcmd): Add 'self' argument.
8800
1eab8a48
TT
88012014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * windows-nat.c (windows_stop): Add 'self' argument.
8804 * target.h (struct target_ops) <to_stop>: Add argument.
8805 * target.c (target_stop): Add argument.
8806 (debug_to_stop): Add argument.
8807 (update_current_target): Update.
8808 * remote.c (remote_stop): Add 'self' argument.
8809 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8810 (gdbsim_cntrl_c): Update.
8811 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8812 * procfs.c (procfs_stop): Add 'self' argument.
8813 * nto-procfs.c (procfs_stop): Add 'self' argument.
8814 * monitor.c (monitor_stop): Add 'self' argument.
8815 (monitor_open): Update.
8816 * linux-nat.c (linux_nat_stop): Add argument.
8817 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8818 * gnu-nat.c (gnu_stop): Add 'self' argument.
8819 * darwin-nat.c (darwin_stop): Add 'self' argument.
8820
503a628d
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target.h (struct target_ops) <to_thread_name>: Add argument.
8824 * target.c (target_thread_name): Add argument.
8825 (update_current_target): Update.
8826 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8827
c15906d8
TT
88282014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target.h (struct target_ops) <to_extra_thread_info>: Add
8831 argument.
8832 (target_extra_thread_info): Add argument.
8833 * target.c (update_current_target): Update.
8834 * remote.c (remote_threads_extra_info): Add 'self' argument.
8835 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8836 argument.
8837 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8838 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8839 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8840 argument.
8841 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8842 argument.
8843 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8844 argument.
8845 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8846 argument.
8847
daf5e9b6
TT
88482014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target.h (struct target_ops) <to_program_signals>: Add argument.
8851 * target.c (target_program_signals): Add argument.
8852 * remote.c (remote_program_signals): Add 'self' argument.
8853
94bedb42
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8857 * target.c (target_pass_signals): Add argument.
8858 * remote.c (remote_pass_signals): Add 'self' argument.
8859 (remote_start_remote): Update.
8860 * procfs.c (procfs_pass_signals): Add 'self' argument.
8861 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8862 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8863 (linux_nat_create_inferior, linux_nat_attach): Update.
8864
da82bd6b
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * windows-nat.c (windows_can_run): Add 'self' argument.
8868 * target.h (struct target_ops) <to_can_run>: Add argument.
8869 (target_can_run): Add argument.
8870 * target.c (debug_to_can_run): Add argument.
8871 (update_current_target): Update.
8872 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8873 * inf-child.c (inf_child_can_run): Add 'self' argument.
8874 * go32-nat.c (go32_can_run): Add 'self' argument.
8875
d796e1d6
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target.h (struct target_ops) <to_has_exited>: Add argument.
8879 (target_has_exited): Add argument.
8880 * target.c (debug_to_has_exited): Add argument.
8881 (update_current_target): Update.
8882
ff214e67
TT
88832014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8886 argument.
8887 (target_set_syscall_catchpoint): Add argument.
8888 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8889 argument.
8890 * target.c (update_current_target): Update.
8891
758e29d2
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8895 argument.
8896 (target_remove_exec_catchpoint): Add argument.
8897 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8898 (update_current_target): Update.
8899 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8900 argument.
8901
ba025e51
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8905 argument.
8906 (target_insert_exec_catchpoint): Add argument.
8907 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8908 (update_current_target): Update.
8909 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8910 argument.
8911
e98cf0cd
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8915 argument.
8916 (target_remove_vfork_catchpoint): Add argument.
8917 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8918 (update_current_target): Update.
8919 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8920 argument.
8921
3ecc7da0
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8925 argument.
8926 (target_insert_vfork_catchpoint): Add argument.
8927 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8928 (update_current_target): Update.
8929 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8930 argument.
8931
973fc227
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8935 argument.
8936 (target_remove_fork_catchpoint): Add argument.
8937 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8938 (update_current_target): Update.
8939 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8940 argument.
8941
a863b201
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8945 argument.
8946 (target_insert_fork_catchpoint): Add argument.
8947 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8948 (update_current_target): Update.
8949 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8950 argument.
8951
2e97a79e
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8955 argument.
8956 (target_post_startup_inferior): Add argument.
8957 * target.c (debug_to_post_startup_inferior): Add argument.
8958 (update_current_target): Update.
8959 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8960 argument.
8961 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8962 argument.
8963 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8964 argument.
8965 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8966 argument.
8967 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8968 'self' argument.
8969 (super_post_startup_inferior): Likewise.
8970 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8971 'self' argument.
8972 (super_post_startup_inferior): Likewise.
8973 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8974 Add 'self' argument.
8975 (super_post_startup_inferior): Likewise.
8976
71a9f134
TT
89772014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_load>: Add argument.
8980 * target.c (target_load): Add argument.
8981 (debug_to_load): Add argument.
8982 (update_current_target): Update.
8983 * remote.c (remote_load): Add 'self' argument.
8984 * remote-sim.c (gdbsim_load): Add 'self' argument.
8985 * remote-mips.c (mips_load): Add 'self' argument.
8986 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8987 * monitor.c (monitor_load): Add 'self' argument.
8988 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8989
0a4f40a2
TT
89902014-02-19 Tom Tromey <tromey@redhat.com>
8991
8992 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8993 (target_terminal_info): Add argument.
8994 * target.c (debug_to_terminal_info): Add argument.
8995 (default_terminal_info): Likewise.
8996 * inflow.c (child_terminal_info): Add 'self' argument.
8997 * inferior.h (child_terminal_info): Add 'self' argument.
8998 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8999
ae3bd431
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9003 argument.
9004 (target_terminal_save_ours): Add argument.
9005 * target.c (debug_to_terminal_save_ours): Add argument.
9006 (update_current_target): Update.
9007 * inflow.c (terminal_save_ours): Add 'self' argument.
9008 * inferior.h (terminal_save_ours): Add 'self' argument.
9009
e3594fd1
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9013 (target_terminal_ours): Add argument.
9014 * target.c (debug_to_terminal_ours): Add argument.
9015 (update_current_target): Update.
9016 * remote.c (remote_terminal_ours): Add 'self' argument.
9017 (remote_close): Update.
9018 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9019 * inflow.c (terminal_ours): Add 'self' argument.
9020 * inferior.h (terminal_ours): Add 'self' argument.
9021 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9022
2e1e1a19
TT
90232014-02-19 Pedro Alves <palves@redhat.com>
9024 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9027 argument.
9028 (target_terminal_ours_for_output): Add argument.
9029 * target.c (debug_to_terminal_ours_for_output): Add argument.
9030 (update_current_target): Update.
9031 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9032 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9033 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9034
d2f640d4
TT
90352014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target.h (struct target_ops) <to_terminal_inferior>: Add
9038 argument.
9039 * target.c (target_terminal_inferior): Add argument.
9040 (update_current_target): Update.
9041 * remote.c (remote_terminal_inferior): Add 'self' argument.
9042 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9043 * inflow.c (terminal_inferior): Add 'self' argument.
9044 * inferior.h (terminal_inferior): Add 'self' argument.
9045 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9046 (go32_terminal_inferior): Add 'self' argument.
9047
c42bf286
TT
90482014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9051 (target_terminal_init): Add argument.
9052 * target.c (debug_to_terminal_init): Add argument.
9053 (update_current_target): Update.
9054 * inflow.c (terminal_init_inferior): Add 'self' argument.
9055 * inferior.h (terminal_init_inferior): Add 'self' argument.
9056 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9057 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9058
c3a5ff89
TT
90592014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target.h (struct target_ops)
9062 <to_can_accel_watchpoint_condition>: Add argument.
9063 (target_can_accel_watchpoint_condition): Add argument.
9064 * target.c (debug_to_can_accel_watchpoint_condition): Add
9065 argument.
9066 (update_current_target): Update.
9067 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9068 'self' argument.
9069
31568a15
TT
90702014-02-19 Tom Tromey <tromey@redhat.com>
9071
9072 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9073 Add argument.
9074 (target_region_ok_for_hw_watchpoint): Add argument.
9075 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9076 (default_region_ok_for_hw_watchpoint): Add argument.
9077 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9078 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9079 argument.
9080 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9081 argument.
9082 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9083 argument.
9084 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9085 'self' argument.
9086 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9087 'self' argument.
9088 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9089 'self' argument.
9090 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9091 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9092 'self' argument.
9093 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9094 Add 'self' argument.
9095
7bb99c53
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9099 argument.
9100 (target_insert_watchpoint): Add argument.
9101 * target.c (debug_to_insert_watchpoint): Add argument.
9102 (update_current_target): Update.
9103 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9104 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9105 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9106 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9107 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9108 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9109 argument.
9110 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9111 (procfs_insert_hw_watchpoint): Add 'self' argument.
9112 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9113 argument.
9114 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9115 argument.
9116 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9117 argument.
9118 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9119 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9120 argument.
9121 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9122 'self' argument.
9123
11b5219a
TT
91242014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9127 argument.
9128 (target_remove_watchpoint): Add argument.
9129 * target.c (debug_to_remove_watchpoint): Add argument.
9130 (update_current_target): Update.
9131 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9132 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9133 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9134 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9135 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9136 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9137 argument.
9138 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9139 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9140 argument.
9141 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9142 argument.
9143 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9144 argument.
9145 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9146 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9147 argument.
9148 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9149 'self' argument.
9150
a64dc96c
TT
91512014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9154 argument.
9155 (target_remove_hw_breakpoint): Add argument.
9156 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9157 (update_current_target): Update.
9158 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9159 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9160 argument.
9161 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9162 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9163 argument.
9164 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9165 'self' argument.
9166
23a26771
TT
91672014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9170 argument.
9171 (target_insert_hw_breakpoint): Add argument.
9172 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9173 (update_current_target): Update.
9174 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9175 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9176 argument.
9177 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9178 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9179 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9180 argument.
9181 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9182 'self' argument.
9183
5461485a
TT
91842014-02-19 Tom Tromey <tromey@redhat.com>
9185
9186 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9187 argument.
9188 (target_can_use_hardware_watchpoint): Add argument.
9189 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9190 (update_current_target): Update.
9191 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9192 argument.
9193 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9194 argument.
9195 * remote.c (remote_check_watch_resources): Add 'self' argument.
9196 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9197 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9198 argument.
9199 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9200 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9201 argument.
9202 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9203 argument.
9204 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9205 argument.
9206 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9207 argument.
9208 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9209 argument.
9210 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9211 argument.
9212 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9213 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9214 argument.
9215 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9216 'self' argument.
9217
f045800c
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target.h (struct target_ops) <to_post_attach>: Add argument.
9221 (target_post_attach): Add argument.
9222 * target.c (debug_to_post_attach): Add argument.
9223 (update_current_target): Update.
9224 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9225 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9226 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9227 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9228 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9229
de90e03d
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * windows-nat.c (windows_close): Add 'self' argument.
9233 * tracepoint.c (tfile_close): Add 'self' argument.
9234 * target.h (struct target_ops) <to_close>: Add argument.
9235 * target.c (target_close): Add argument.
9236 (update_current_target): Update.
9237 * remote.c (remote_close): Add 'self' argument.
9238 * remote-sim.c (gdbsim_close): Add 'self' argument.
9239 * remote-mips.c (mips_close): Add 'self' argument.
9240 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9241 * record-full.c (record_full_close): Add 'self' argument.
9242 * record-btrace.c (record_btrace_close): Add 'self' argument.
9243 * monitor.h (monitor_close): Add 'self' argument.
9244 * monitor.c (monitor_close): Add 'self' argument.
9245 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9246 * linux-nat.c (linux_nat_close): Add argument.
9247 * go32-nat.c (go32_close): Add 'self' argument.
9248 * exec.c (exec_close_1): Add 'self' argument.
9249 * ctf.c (ctf_close): Add 'self' argument.
9250 * corelow.c (core_close): Add 'self' argument.
9251 (core_close_cleanup): Update.
9252 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9253 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9254
9dd130a0
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * remote.c (remote_load): New function.
9258 (init_remote_ops): Use it.
9259
46917d26
TT
92602014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9263 argument.
9264 * common/linux-btrace.h (linux_supports_btrace): Update.
9265 * remote.c (remote_supports_btrace): Add "self" argument.
9266 * target-delegates.c: Rebuild.
9267 * target.c (target_supports_btrace): Remove.
9268 * target.h (struct target_ops) <to_supports_btrace>: Add
9269 target_ops argument.
9270 (target_supports_btrace): New define.
9271
6b84065d
TT
92722014-02-19 Tom Tromey <tromey@redhat.com>
9273
9274 * record-full.c (record_full_beneath_to_resume_ops)
9275 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9276 (record_full_beneath_to_wait)
9277 (record_full_beneath_to_store_registers_ops)
9278 (record_full_beneath_to_store_registers)
9279 (record_full_beneath_to_xfer_partial_ops)
9280 (record_full_beneath_to_xfer_partial)
9281 (record_full_beneath_to_insert_breakpoint_ops)
9282 (record_full_beneath_to_insert_breakpoint)
9283 (record_full_beneath_to_remove_breakpoint_ops)
9284 (record_full_beneath_to_remove_breakpoint)
9285 (record_full_beneath_to_stopped_by_watchpoint)
9286 (record_full_beneath_to_stopped_data_address)
9287 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9288 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9289 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9290 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9291 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9292 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9293 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9294 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9295 (record_full_resume, record_full_wait_1)
9296 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9297 (record_full_store_registers, record_full_xfer_partial)
9298 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9299 (record_full_async, record_full_core_xfer_partial): Use target
9300 delegation.
9301 * target-delegates.c: Rebuild.
9302 * target.c (current_xfer_partial): Remove.
9303 (update_current_target): Do not INHERIT or de_fault
9304 to_insert_breakpoint, to_remove_breakpoint,
9305 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9306 to_is_async_p, to_async. Do not set to_xfer_partial field.
9307 (default_xfer_partial): Simplify.
9308 (current_xfer_partial): Remove.
9309 (target_wait, target_resume): Simplify.
9310 (find_default_can_async_p, find_default_is_async_p): Update.
9311 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9312 to_xfer_partial, to_stopped_by_watchpoint,
9313 to_stopped_data_address.
9314 (target_store_registers): Simplify.
9315 (forward_target_remove_breakpoint)
9316 (forward_target_insert_breakpoint): Remove.
9317 (target_remove_breakpoint, target_insert_breakpoint)
9318 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9319 * target.h (struct target_ops) <to_resume, to_wait,
9320 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9321 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9322 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9323 markup.
9324 (forward_target_remove_breakpoint)
9325 (forward_target_insert_breakpoint): Remove.
9326 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9327 directly.
9328 (record_btrace_insert_breakpoint): Delegate directly.
9329
1101cb7b
TT
93302014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 PR build/7701:
9333 * target-delegates.c: New file.
9334 * target.c: Include target-delegates.c.
9335 (init_dummy_target): Call install_dummy_methods.
9336 (complete_target_initialization): Call install_delegators.
9337 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9338 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9339 * make-target-delegates: New file.
9340
8b06beed
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * record.c (find_record_target): Use find_target_at.
9344 * target.c (find_target_at): New function.
9345 * target.h (find_target_at): Declare.
9346
6a109b6b
TT
93472014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9350 Add 'ops' argument.
9351 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9352 'ops' argument.
9353 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9354 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9355 'ops' argument.
9356 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9357 argument.
9358 * linux-nat.c (save_sigtrap): Update.
9359 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9360 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9361 (linux_nat_close): Update.
9362 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9363 argument.
9364 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9365 argument.
9366 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9367 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9368 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9369 (tmp_to_async): Add 'ops' argument.
9370 (record_full_stopped_by_watchpoint, record_full_async)
9371 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9372 argument.
9373 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9374 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9375 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9376 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9377 (remote_is_async_p, remote_async): Add 'ops' argument.
9378 (remote_stopped_data_address): Update.
9379 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9380 * target.c (update_current_target)
9381 (find_default_can_async_p, find_default_is_async_p): Update.
9382 (init_dummy_target): Update.
9383 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9384 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9385 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9386 (target_can_async_p, target_is_async_p, target_async)
9387 (target_stopped_by_watchpoint): Update.
9388
e095146b
YQ
93892014-02-19 Yao Qi <yao@codesourcery.com>
9390
9391 PR gdb/16220
9392 * gdbarch.sh: Remove startup_gdbarch.
9393 * gdbarch.c: Regenerated.
9394 * gdbarch.h: Likewise.
9395
bc3c6b36
KB
93962014-02-17 Kevin Buettner <kevinb@redhat.com>
9397
9398 * rl78-tdep.c (rl78_g10_register_name): New function.
9399 (rl78_return_value): Add g10 support.
9400 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9401 g10.
9402
98dc0167 94032014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9404
9405 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9406 (SUBDIR_GUILE_SRCS): Ditto.
9407 (scm-gsmob.o): Ditto.
9408
842c05cd
YQ
94092014-02-17 Yao Qi <yao@codesourcery.com>
9410
9411 * gnu-nat.c (ILL_RPC): Declare defined function.
9412
25c0bd04
YQ
94132014-02-17 Yao Qi <yao@codesourcery.com>
9414
9415 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9416 mach_msg_type_number_t.
9417 (gnu_write_inferior): Likewise.
9418
a9a758e3
YQ
94192014-02-17 Yao Qi <yao@codesourcery.com>
9420
9421 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9422 in format string.
9423 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9424 (inf_validate_procs, inf_signal): Likewise.
9425 (S_exception_raise_request): Likewise.
9426 (do_mach_notify_dead_name): Likewise.
9427 (steal_exc_port): Likewise.
9428 (gnu_read_inferior): Change 'copy_count''s type to
9429 mach_msg_type_number_t.
9430 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9431 format string.
9432
bae8023e
TS
94332014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9434
c82f56d9
TS
9435 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9436 flag. Adjust all users; in particular...
9437 (gnu_wait): ..., don't decrement its value in here...
9438 (gnu_create_inferior): ..., and instead set the flag in here,
9439 around the startup_inferior call, and call that one with
9440 START_INFERIOR_TRAPS_EXPECTED.
9441
3398af6a
TS
9442 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9443 (ILL_RPC): ... new macro.
9444 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9445 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9446 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9447 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9448 functions with ILL_RPC macro.
9449 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9450 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9451 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9452 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9453 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9454 (S_proc_getlogin_reply, S_proc_getsid_reply)
9455 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9456 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9457 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9458 (S_proc_getnports_reply, S_proc_is_important_reply)
9459 (S_proc_get_code_reply): New stub functions, generated with
9460 ILL_RPC macro.
9461
d47642c9
TS
9462 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9463 collected the type check structures.
9464
bae8023e
TS
9465 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9466
8a55ffb0
DE
94672014-02-14 Doug Evans <dje@google.com>
9468
9469 * target.c (target_write_partial): Fix result type.
9470
c2853f3d
JM
94712014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9472
9473 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9474 the proper offsets to access fpregset_t.
9475
ac61d2db
SA
94762014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9477
9478 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9479 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9480 * h8300-tdep.c (setmachinelist): Remove global.
9481 * hppa-tdep.c (hppa_sigtramp): Remove global.
9482 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9483 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9484 * ravenscar-thread.c (update_target_observer): Remove global.
9485 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9486
9d2d0b8b
TT
94872014-02-12 Tom Tromey <tromey@redhat.com>
9488
9489 * common/rsp-low.c: Update comments.
9490 * common/rsp-low.h: Update comments.
9491
a7191e8b
TT
94922014-02-12 Tom Tromey <tromey@redhat.com>
9493
9494 * common/rsp-low.c (convert_ascii_to_int): Remove.
9495 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9496
ff0e980e
TT
94972014-02-12 Tom Tromey <tromey@redhat.com>
9498
9499 * common/rsp-low.h (unhexify): Don't declare.
9500 * common/rsp-low.c (unhexify): Remove.
9501
e9371aff
TT
95022014-02-12 Tom Tromey <tromey@redhat.com>
9503
9504 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9505 * common/rsp-low.c (convert_int_to_ascii): Remove.
9506
971dc0b8
TT
95072014-02-12 Tom Tromey <tromey@redhat.com>
9508
9509 * common/rsp-low.h (hexify): Don't declare.
9510 * common/rsp-low.c (hexify): Remove.
9511
0a822afb
TT
95122014-02-12 Tom Tromey <tromey@redhat.com>
9513
9514 * common/rsp-low.c (hexify): Never take strlen of argument.
9515
9f1b45b0
TT
95162014-02-12 Tom Tromey <tromey@redhat.com>
9517
9518 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9519 * remote.c (extended_remote_run, remote_rcmd)
9520 (remote_download_trace_state_variable, remote_save_trace_data)
9521 (remote_set_trace_notes): Update.
9522 * tracepoint.c (encode_source_string, tfile_write_status)
9523 (tfile_write_uploaded_tsv): Update.
9524
9c3d6531
TT
95252014-02-12 Tom Tromey <tromey@redhat.com>
9526
9527 * tracepoint.c: Include rsp-low.h.
9528 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9529 * remote.c: Include rsp-low.h.
9530 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9531 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9532 (remote_unescape_input): Move to common/rsp-low.c.
9533 * common/rsp-low.h: New file.
9534 * common/rsp-low.c: New file.
9535 * Makefile.in (SFILES): Add common/rsp-low.c.
9536 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9537 (COMMON_OBS): Add rsp-low.o.
9538 (rsp-low.o): New target.
9539
01fd3ea5
TT
95402014-02-12 Tom Tromey <tromey@redhat.com>
9541
9542 * utils.h: Include print-utils.h.
9543 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9544 (int_string, core_addr_to_string, core_addr_to_string_nz)
9545 (hex_string, hex_string_custom): Don't declare.
9546 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9547 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9548 (hex_string_custom, int_string, core_addr_to_string)
9549 (core_addr_to_string_nz, host_address_to_string): Move to
9550 common/print-utils.c.
9551 * common/print-utils.h: New file.
9552 * common/print-utils.c: New file
9553 * Makefile.in (SFILES): Add common/print-utils.c.
9554 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9555 (COMMON_OBS): Add print-utils.o.
9556 (print-utils.o): New target.
9557
9fb50108
TT
95582014-02-12 Tom Tromey <tromey@redhat.com>
9559
9560 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9561
0548b5db
MK
95622014-02-12 Mark Kettenis <kettenis@gnu.org>
9563
9564 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9565
493443a4
MK
95662014-02-12 Mark Kettenis <kettenis@gnu.org>
9567
9568 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9569 if a PT_IO ptrace request returns sucessfully but indicates that 0
9570 bytes were transferred.
9571
706d0883
PA
95722014-02-12 Pedro Alves <palves@redhat.com>
9573 Kevin Buettner <kevinb@redhat.com>
9574
9575 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9576 TYPE_INSTANCE_FLAG_CODE_SPACE.
9577
5caa2f0b
PA
95782014-02-12 Pedro Alves <palves@redhat.com>
9579
9580 * h8300-tdep.c (pseudo_from_raw_register)
9581 (raw_from_pseudo_register): New functions.
9582 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9583 them.
9584
76fd5f74
PA
95852014-02-12 Pedro Alves <palves@redhat.com>
9586
9587 * h8300-tdep.c (h8300_register_sim_regno): New function.
9588 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9589 gdbarch_register_sim_regno hook.
9590
8f008406
SA
95912014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9592
9593 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9594
195abc10
SA
95952014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9596
9597 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9598
93ffa5b9
MK
95992014-02-12 Mark Kettenis <kettenis@gnu.org>
9600
9601 * obsd-tdep.h (obsd_init_abi): New prototype.
9602 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9603 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9604 (obsd_init_abi): New functions.
9605 * i386obsd-tdep.c: Include "obsd-tdep.h".
9606 (i386obsd_init_abi): Call obsd_init_abi.
9607 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9608 (amd64obsd_init_abi): Call obsd_init_abi.
9609 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9610 obsd-tdep.c to gdb_target_obs.
9611
49caec94
JM
96122014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9613
9614 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9615 double float arguments to 16-byte in the argument slots.
9616
e1402065
DE
96172014-02-11 Doug Evans <xdje42@gmail.com>
9618
9619 * configure.ac: Don't crash if pkg-config is not found and guile
9620 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9621 in guile checks.
9622 * configure: Regenerate.
9623
edcc890f
YQ
96242014-02-11 Yao Qi <yao@codesourcery.com>
9625
9626 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9627 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9628 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9629 * gnu-nat.c (gnu_xfer_memory): Likewise.
9630 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9631 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9632 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9633 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9634
9b409511
YQ
96352014-02-11 Yao Qi <yao@codesourcery.com>
9636
9637 * target.h (enum target_xfer_error): Rename to ...
9638 (enum target_xfer_status): ... it. New. All users updated.
9639 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9640 New.
9641 (TARGET_XFER_STATUS_ERROR_P): New macro.
9642 (target_xfer_error_to_string): Remove declaration.
9643 (target_xfer_status_to_string): Declare.
9644 (target_xfer_partial_ftype): Adjust it.
9645 (struct target_ops) <to_xfer_partial>: Return
9646 target_xfer_status. Add argument xfered_len. Update
9647 comments.
9648 * target.c (target_xfer_error_to_string): Rename to ...
9649 (target_xfer_status_to_string): ... it. New. All callers
9650 updated.
9651 (target_read_live_memory): Likewise. Call target_xfer_partial
9652 instead of target_read.
9653 (memory_xfer_live_readonly_partial): Return
9654 target_xfer_status. Add argument xfered_len.
9655 (raw_memory_xfer_partial): Likewise.
9656 (memory_xfer_partial_1): Likewise.
9657 (memory_xfer_partial): Likewise.
9658 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9659 properly. Update debug message.
9660 (default_xfer_partial, current_xfer_partial): Likewise.
9661 (target_write_partial): Likewise.
9662 (target_read_partial): Likewise. All callers updated.
9663 (read_whatever_is_readable): Likewise.
9664 (target_write_with_progress): Likewise.
9665 (target_read_alloc_1): Likewise.
9666
9667 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9668 * auxv.c (procfs_xfer_auxv): Likewise.
9669 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9670 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9671 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9672 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9673 * corefile.c (read_memory): Adjust.
9674 * corelow.c (core_xfer_partial): Likewise.
9675 * ctf.c (ctf_xfer_partial): Likewise.
9676 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9677 updated.
9678 (darwin_xfer_partial): Likewise.
9679 * exec.c (section_table_xfer_memory_partial): Likewise. All
9680 callers updated.
9681 (exec_xfer_partial): Likewise.
9682 * exec.h (section_table_xfer_memory_partial): Update
9683 declaration.
9684 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9685 negative.
9686 (gnu_xfer_partial): Likewise.
9687 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9688 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9689 (ia64_hpux_xfer_solib_got): Likewise.
9690 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9691 type of 'partial_len' to ULONGEST.
9692 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9693 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9694 (linux_nat_xfer_partial): Likewise.
9695 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9696 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9697 * monitor.c (monitor_xfer_memory): Likewise.
9698 (monitor_xfer_partial): Likewise.
9699 * procfs.c (procfs_xfer_partial): Likewise.
9700 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9701 * record-full.c (record_full_xfer_partial): Likewise.
9702 (record_full_core_xfer_partial): Likewise.
9703 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9704 (gdbsim_xfer_partial): Likewise.
9705 * remote.c (remote_write_bytes_aux): Likewise. All callers
9706 updated.
9707 (remote_write_bytes, remote_read_bytes): Likewise. All
9708 callers updated.
9709 (remote_flash_erase): Likewise. All callers updated.
9710 (remote_write_qxfer): Likewise. All callers updated.
9711 (remote_read_qxfer): Likewise. All callers updated.
9712 (remote_xfer_partial): Likewise.
9713 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9714 (rs6000_xfer_shared_libraries): Likewise.
9715 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9716 (sol_thread_xfer_partial): Likewise.
9717 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9718 (sparc_xfer_partial): Likewise.
9719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9720 updated.
9721 (spu_xfer_partial): Likewise.
9722 * spu-multiarch.c (spu_xfer_partial): Likewise.
9723 * tracepoint.c (tfile_xfer_partial): Likewise.
9724 * windows-nat.c (windows_xfer_memory): Likewise.
9725 (windows_xfer_shared_libraries): Likewise.
9726 (windows_xfer_partial): Likewise.
9727 * valprint.c: Replace 'target_xfer_error' with
9728 'target_xfer_status' in comments.
9729
a8e63083
JB
97302014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9731
9732 Checked in by Joel Brobecker <brobecker@adacore.com>.
9733 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9734
e86b67d3
JB
97352014-02-11 Joel Brobecker <brobecker@adacore.com>
9736
9737 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9738 function parameters.
9739
4b7d1f7f
WN
97402014-02-10 Will Newton <will.newton@linaro.org>
9741
9742 * elfread.c (elf_rel_plt_read): Look for a .got section if
9743 looking up .got.plt fails.
9744 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9745 on address passed to elf_gnu_ifunc_record_cache.
9746 (elf_gnu_ifunc_resolve_addr): Likewise.
9747 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9748
961842b2
JM
97492014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9750
9751 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9752 (X_RETTURN): New macro.
9753 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9754
9755 * sparc64-tdep.c (sparc64_init_abi): Hook
9756 sparc_in_function_epilogue_p.
9757
3f03e7b1
GB
97582014-02-10 Gary Benson <gbenson@redhat.com>
9759
9760 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9761 Rename name_matcher to symbol_matcher.
9762
96f861ef
GB
97632014-02-10 Gary Benson <gbenson@redhat.com>
9764
9765 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9766 Use expand_symtabs_file_matcher_ftype and
9767 expand_symtabs_symbol_matcher_ftype.
9768
ee01b665
JB
97692014-02-10 Joel Brobecker <brobecker@adacore.com>
9770
9771 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9772 (struct ada_symbol_cache): New.
9773 (ada_free_symbol_cache): Forward declare.
9774 (struct ada_pspace_data): New.
9775 (ada_pspace_data_handle): New static global.
9776 (get_ada_pspace_data, ada_pspace_data_cleanup)
9777 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9778 (cache_space, cache): Delete, now folded inside struct
9779 ada_pspace_data.
9780 (ada_get_symbol_cache): New function.
9781 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9782 implementation.
9783 (_initialize_ada_language): Remove initialization of cache_space.
9784 Move call to observer_attach_inferior_exit up, grouping it
9785 with the other observer registrations inside this function.
9786 Rename command to be more general. Add call to
9787 register_program_space_data_with_cleanup.
9788
143adbbf
JB
97892014-02-10 Joel Brobecker <brobecker@adacore.com>
9790
9791 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9792 ada_new_objfile_observer.
9793 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9794 (_initialize_tasks): Update uses of ada_new_objfile_observer
9795 and ada_tasks_normal_stop_observer.
9796
aa4fb036
JB
97972014-02-10 Joel Brobecker <brobecker@adacore.com>
9798
9799 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9800 returned by the 'Length attribute to integer.
9801
9dee8cc6
JB
98022014-02-10 Joel Brobecker <brobecker@adacore.com>
9803
9804 * ada-lang.c (_initialize_ada_language): Initialize
9805 cache_space obstack.
9806
3d9434b5
JB
98072014-02-10 Joel Brobecker <brobecker@adacore.com>
9808
9809 * ada-lang.c (HASH_SIZE): New macro.
9810 (struct cache_entry): New type.
9811 (cache_space, cache): New static globals.
9812 (ada_clear_symbol_cache, find_entry): New functions.
9813 (lookup_cached_symbol, cache_symbol): Implement.
9814 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9815 (_initialize_ada_language): Attach ada_new_objfile_observer
9816 and ada_free_objfile_observer.
9817
f0c5f9b2
JB
98182014-02-10 Joel Brobecker <brobecker@adacore.com>
9819
9820 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9821 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9822 struct block * parameter.
9823 (ada_lookup_symbol_list_worker): Constify local variable "block".
9824 Remove cast which is no longer necessary.
9825
ed3ef339
DE
98262014-02-10 Doug Evans <xdje42@gmail.com>
9827
9828 Add Guile as an extension language.
9829 * NEWS: Mention Guile scripting.
9830 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9831 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9832 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9833 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9834 (CLIBS): Add GUILE_LIBS.
9835 (install-guile): New rule.
9836 (guile.o): New rule.
9837 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9838 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9839 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9840 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9841 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9842 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9843 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9844 * configure.ac: New option --with-guile.
9845 * configure: Regenerate.
9846 * config.in: Regenerate.
9847 * auto-load.c: Remove #include "python/python.h". Add #include
9848 "gdb/section-scripts.h".
9849 (source_section_scripts): Handle Guile scripts.
9850 (_initialize_auto_load): Add name of Guile objfile script to
9851 scripts-directory help text.
9852 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9853 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9854 (struct breakpoint): New member scm_bp_object.
9855 * defs.h (enum command_control_type): New value guile_control.
9856 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9857 "extension.h".
9858 (show_user): Update comment.
9859 (_initialize_cli_cmds): Update help text for "show user". Update help
9860 text for max-user-call-depth.
9861 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9862 "extension.h".
9863 (multi_line_command_p): Add guile_control.
9864 (print_command_lines): Handle guile_control.
9865 (execute_control_command, recurse_read_control_structure): Ditto.
9866 (process_next_line): Recognize "guile" commands.
9867 * disasm.c (gdb_disassemble_info): Make non-static.
9868 * disasm.h: #include "dis-asm.h".
9869 (struct gdbarch): Add forward decl.
9870 (gdb_disassemble_info): Declare.
9871 * extension.c: #include "guile/guile.h".
9872 (extension_languages): Add guile.
9873 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9874 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9875 * gdbtypes.c (get_unsigned_type_max): New function.
9876 (get_signed_type_minmax): New function.
9877 * gdbtypes.h (get_unsigned_type_max): Declare.
9878 (get_signed_type_minmax): Declare.
9879 * guile/README: New file.
9880 * guile/guile-internal.h: New file.
9881 * guile/guile.c: New file.
9882 * guile/guile.h: New file.
9883 * guile/scm-arch.c: New file.
9884 * guile/scm-auto-load.c: New file.
9885 * guile/scm-block.c: New file.
9886 * guile/scm-breakpoint.c: New file.
9887 * guile/scm-disasm.c: New file.
9888 * guile/scm-exception.c: New file.
9889 * guile/scm-frame.c: New file.
9890 * guile/scm-gsmob.c: New file.
9891 * guile/scm-iterator.c: New file.
9892 * guile/scm-lazy-string.c: New file.
9893 * guile/scm-math.c: New file.
9894 * guile/scm-objfile.c: New file.
9895 * guile/scm-ports.c: New file.
9896 * guile/scm-pretty-print.c: New file.
9897 * guile/scm-safe-call.c: New file.
9898 * guile/scm-string.c: New file.
9899 * guile/scm-symbol.c: New file.
9900 * guile/scm-symtab.c: New file.
9901 * guile/scm-type.c: New file.
9902 * guile/scm-utils.c: New file.
9903 * guile/scm-value.c: New file.
9904 * guile/lib/gdb.scm: New file.
9905 * guile/lib/gdb/boot.scm: New file.
9906 * guile/lib/gdb/experimental.scm: New file.
9907 * guile/lib/gdb/init.scm: New file.
9908 * guile/lib/gdb/iterator.scm: New file.
9909 * guile/lib/gdb/printing.scm: New file.
9910 * guile/lib/gdb/types.scm: New file.
9911 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9912 (VPATH): Add $(GUILE_SRCDIR).
9913 (GUILE_DIR): New variable.
9914 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9915 (all): Add stamp-guile dependency.
9916 (stamp-guile): New rule.
9917 (clean-guile, install-guile, uninstall-guile): New rules.
9918 (install-only): Add install-guile dependency.
9919 (uninstall): Add uninstall-guile dependency.
9920 (clean): Add clean-guile dependency.
9921
ac020ec5
DE
99222014-02-09 Doug Evans <xdje42@gmail.com>
9923
9924 Revert this patch (which I approved, mea culpa).
9925
9926 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9927
9928 * Makefile.in (all-lib): Remove.
9929 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9930
2a081c59
JK
99312014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9932
9933 Fix Python stack corruption.
9934 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9935 gdb_py_longest.
9936
0a6bd22d
MK
99372014-02-08 Mark Kettenis <kettenis@gnu.org>
9938
9939 * Makefile.in (all-lib): Remove.
9940 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9941
1a860409
DE
99422014-02-07 Doug Evans <dje@google.com>
9943
9944 * extension-priv.h (extension_language_script_ops): Add comment.
9945 (extension_language_ops): Add comment.
caf5a491 9946 (active_ext_lang_state): Fix typo in comment.
1a860409 9947
d137e6dc
PA
99482014-02-07 Pedro Alves <palves@redhat.com>
9949
0dcb32c3 9950 PR breakpoints/16292
d137e6dc
PA
9951 * infrun.c (handle_signal_stop) <signal arrives while stepping
9952 over a breakpoint>: Switch back to the stepping thread.
9953
ce6d0892
YQ
99542014-02-07 Yao Qi <yao@codesourcery.com>
9955
9956 * target.c (target_xfer_partial): Return zero if LEN is zero.
9957
2ed4b548
YQ
99582014-02-07 Yao Qi <yao@codesourcery.com>
9959
9960 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9961 (ld_so_xfer_auxv): Likewise.
9962 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9963 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9964 * corelow.c (core_xfer_partial): Likewise.
9965 * ctf.c (ctf_xfer_partial): Likewise.
9966 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9967 (darwin_xfer_partial): Likewise.
9968 * exec.c (exec_xfer_partial): Likewise.
9969 * gnu-nat.c (gnu_xfer_partial): Likewise.
9970 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9971 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9972 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9973 * linux-nat.c (linux_xfer_siginfo): Likewise.
9974 (linux_proc_xfer_spu): Likewise.
9975 * procfs.c (procfs_xfer_partial): Likewise.
9976 * record-full.c (record_full_xfer_partial): Likewise.
9977 (record_full_core_xfer_partial): Likewise.
9978 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9979 * remote.c (remote_write_qxfer): Likewise.
9980 (remote_write_qxfer, remote_read_qxfer): Likewise.
9981 (remote_xfer_partial): Likewise.
9982 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9983 (rs6000_xfer_shared_libraries): Likewise.
9984 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9985 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9986 (spu_xfer_partial): Likewise.
9987 * target.c (memory_xfer_partial_1): Likewise.
9988 * tracepoint.c (tfile_xfer_partial): Likewise.
9989 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9990 (windows_xfer_partial): Likewise.
9991
c09f20e4
YQ
99922014-02-07 Yao Qi <yao@codesourcery.com>
9993
9994 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9995 comments.
9996 (core_xfer_shared_libraries_aix): Likewise.
9997 * gdbarch.c, gdbarch.h: Regenerated.
9998 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9999 ULONGEST. Change 'len_avail' type to ULONGEST.
10000 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10001 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10002 declaration.
10003 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10004
8635b3bf
YQ
100052014-02-07 Yao Qi <yao@codesourcery.com>
10006
10007 * corefile.c (memory_error): Get 'exception' from ERR and pass
10008 'exception' to throw_error.
10009
6dddc817
DE
100102014-02-06 Doug Evans <xdje42@gmail.com>
10011
10012 * configure.ac (libpython checking): Remove all but python.o from
10013 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10014 * configure: Regenerate.
10015
10016 * Makefile.in (SFILES): Add extension.c.
10017 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10018 (COMMON_OBS): Add extension.o.
10019 * extension.h: New file.
10020 * extension-priv.h: New file.
10021 * extension.c: New file.
10022
10023 * python/python-internal.h: #include "extension.h".
10024 (gdbpy_auto_load_enabled): Declare.
10025 (gdbpy_apply_val_pretty_printer): Declare.
10026 (gdbpy_apply_frame_filter): Declare.
10027 (gdbpy_preserve_values): Declare.
10028 (gdbpy_breakpoint_cond_says_stop): Declare.
10029 (gdbpy_breakpoint_has_cond): Declare.
10030 (void source_python_script_for_objfile): Delete.
10031 * python/python.c: #include "extension-priv.h".
10032 Delete inclusion of "observer.h".
10033 (extension_language_python): Moved here and renamed from
10034 script_language_python in py-auto-load.c.
10035 Redefined to be of type extension_language_defn.
10036 (python_extension_script_ops): New global.
10037 (python_extension_ops): New global.
10038 (struct python_env): New member previous_active.
10039 (restore_python_env): Call restore_active_ext_lang.
10040 (ensure_python_env): Call set_active_ext_lang.
10041 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10042 New arg extlang.
10043 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10044 New arg extlang.
10045 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10046 New arg extlang.
10047 (gdbpy_eval_from_control_command): Renamed from
10048 eval_python_from_control_command, made static. New arg extlang.
10049 (gdbpy_source_script) Renamed from source_python_script, made static.
10050 New arg extlang.
10051 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10052 result to int. New arg extlang.
10053 (gdbpy_source_objfile_script): Renamed from
10054 source_python_script_for_objfile, made static. New arg extlang.
10055 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10056 static. New args extlang, extlang_printers. Change result type to
10057 "void".
10058 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10059 static. New arg extlang. Rename arg printers to extlang_printers
10060 and change type to ext_lang_type_printers *.
10061 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10062 static. Replace argument arg with extlang, extlang_printers.
10063 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10064 (!HAVE_PYTHON, source_python_script): Delete.
10065 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10066 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10067 (!HAVE_PYTHON, start_type_printers): Delete.
10068 (!HAVE_PYTHON, apply_type_printers): Delete.
10069 (!HAVE_PYTHON, free_type_printers): Delete.
10070 (_initialize_python): Delete call to observer_attach_before_prompt.
10071 (finalize_python): Set/restore active extension language.
10072 (gdbpy_finish_initialization) Renamed from
10073 finish_python_initialization, made static. New arg extlang.
10074 (gdbpy_initialized): New function.
10075 * python/python.h: #include "extension.h". Delete #include
10076 "value.h", "mi/mi-cmds.h".
10077 (extension_language_python): Declare.
10078 (GDBPY_AUTO_FILE_NAME): Delete.
10079 (enum py_bt_status): Moved to extension.h and renamed to
10080 ext_lang_bt_status.
10081 (enum frame_filter_flags): Moved to extension.h.
10082 (enum py_frame_args): Moved to extension.h and renamed to
10083 ext_lang_frame_args.
10084 (finish_python_initialization): Delete.
10085 (eval_python_from_control_command): Delete.
10086 (source_python_script): Delete.
10087 (apply_val_pretty_printer): Delete.
10088 (apply_frame_filter): Delete.
10089 (preserve_python_values): Delete.
10090 (gdbpy_script_language_defn): Delete.
10091 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10092 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10093
10094 * auto-load.c: #include "extension.h".
10095 (GDB_AUTO_FILE_NAME): Delete.
10096 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10097 (script_language_gdb): Delete, moved to extension.c and renamed to
10098 extension_language_gdb.
10099 (source_gdb_script_for_objfile): Delete.
10100 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10101 (loaded_script): Change type of language member to
10102 struct extension_language_defn *.
10103 (init_loaded_scripts_info): Initialize
10104 unsupported_script_warning_printed.
10105 (maybe_add_script): Make static. Change type of language arg to
10106 struct extension_language_defn *.
10107 (clear_section_scripts): Reset unsupported_script_warning_printed.
10108 (auto_load_objfile_script_1): Rewrite to use extension language API.
10109 (auto_load_objfile_script): Make public. Remove support-compiled-in
10110 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10111 (source_section_scripts): Rewrite to use extension language API.
10112 (load_auto_scripts_for_objfile): Rewrite to use
10113 auto_load_scripts_for_objfile.
10114 (collect_matching_scripts_data): Change type of language member to
10115 struct extension_language_defn *.
10116 (auto_load_info_scripts): Change type of language arg to
10117 struct extension_language_defn *.
10118 (unsupported_script_warning_print): New function.
10119 (script_not_found_warning_print): Make static.
10120 (_initialize_auto_load): Rewrite construction of scripts-directory
10121 help.
10122 * auto-load.h (struct objfile): Add forward decl.
10123 (struct script_language): Delete.
10124 (struct auto_load_pspace_info): Add forward decl.
10125 (struct extension_language_defn): Add forward decl.
10126 (maybe_add_script): Delete.
10127 (auto_load_objfile_script): Declare.
10128 (script_not_found_warning_print): Delete.
10129 (auto_load_info_scripts): Update prototype.
10130 (auto_load_gdb_scripts_enabled): Declare.
10131 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10132 auto_load_python_scripts_enabled and made public.
10133 (script_language_python): Delete, moved to python.c.
10134 (gdbpy_script_language_defn): Delete.
10135 (info_auto_load_python_scripts): Update to use
10136 extension_language_python.
10137
10138 * breakpoint.c (condition_command): Replace call to
10139 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10140 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10141 with call to breakpoint_ext_lang_cond_says_stop.
10142 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10143 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10144 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10145 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10146 New arg slang.
10147 (local_setattro): Print name of extension language with existing
10148 stop condition.
10149
10150 * valprint.c (val_print, value_print): Update to call
10151 apply_ext_lang_val_pretty_printer.
10152 * cp-valprint.c (cp_print_value): Update call to
10153 apply_ext_lang_val_pretty_printer.
10154 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10155 (gdbpy_apply_val_pretty_printer): Renamed from
10156 apply_val_pretty_printer. New arg extlang.
10157 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10158
10159 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10160 extension language API.
10161 * cli/cli-script.c (execute_control_command): Update to call
10162 eval_ext_lang_from_control_command.
10163
10164 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10165 enum ext_lang_bt_status values. Update call to
10166 apply_ext_lang_frame_filter.
10167 (mi_cmd_stack_list_locals): Ditto.
10168 (mi_cmd_stack_list_args): Ditto.
10169 (mi_cmd_stack_list_variables): Ditto.
10170 * mi/mi-main.c: Delete #include "python/python-internal.h".
10171 Add #include "extension.h".
10172 (mi_cmd_list_features): Replace reference to python internal variable
10173 gdb_python_initialized with call to ext_lang_initialized_p.
10174
10175 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10176 Update to use enum ext_lang_frame_args. Update to call
10177 apply_ext_lang_frame_filter.
10178 * python/py-framefilter.c (extract_sym): Update to use enum
10179 ext_lang_bt_status.
10180 (extract_value, py_print_type, py_print_value): Ditto.
10181 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10182 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10183 (py_print_frame): Ditto.
10184 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10185 New arg extlang. Update to use enum ext_lang_bt_status.
10186
10187 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10188 finish_python_initialization. Replace with call to
10189 finish_ext_lang_initialization.
10190
10191 * typeprint.c (do_free_global_table): Update to call
10192 free_ext_lang_type_printers.
10193 (create_global_typedef_table): Update to call
10194 start_ext_lang_type_printers.
10195 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10196 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10197 (type_print_options): Change type of global_printers from "void *"
10198 to "struct ext_lang_type_printers *".
10199
10200 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10201 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10202 (gdbpy_preserve_values): Renamed from preserve_python_values.
10203 New arg extlang.
10204 (!HAVE_PYTHON, preserve_python_values): Delete.
10205
10206 * utils.c (quit_flag): Delete, moved to extension.c.
10207 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10208 extension.c.
10209
10210 * eval.c: Delete #include "python/python.h".
10211 * main.c: Delete #include "python/python.h".
10212
10213 * defs.h: Update comment.
10214
6af79985
JB
102152014-02-06 Joel Brobecker <brobecker@adacore.com>
10216
10217 GDB 7.7 released.
10218
12c5175d
MK
102192014-02-05 Mark Kettenis <kettenis@gnu.org>
10220
10221 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10222 defined.
10223
8dc5b319
YQ
102242014-02-05 Yao Qi <yao@codesourcery.com>
10225
10226 * remote.c (remote_pass_signals): Remove local 'buf' and use
10227 rs->buf.
10228 (remote_program_signals): Likewise.
10229
de7b2893
YQ
102302014-02-05 Yao Qi <yao@codesourcery.com>
10231
10232 * ctf.c: Include "inferior.h" and "gdbthread.h".
10233 (CTF_PID): A new macro.
10234 (ctf_open): Call inferior_appeared and add_thread_silent.
10235 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10236 (ctf_thread_alive): New function.
10237 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10238
66d032ac
YQ
102392014-02-05 Yao Qi <yao@codesourcery.com>
10240
10241 Revert this patch:
10242
10243 2013-05-24 Yao Qi <yao@codesourcery.com>
10244
10245 * tracepoint.c (TFILE_PID): Remove.
10246 (tfile_open): Don't add thread and inferior.
10247 (tfile_close): Don't set 'inferior_ptid'. Don't call
10248 exit_inferior_silent.
10249 (tfile_thread_alive): Remove.
10250 (init_tfile_ops): Don't set field 'to_thread_alive' of
10251 tfile_ops.
10252
f4ccffad
CE
102532014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10254
10255 * remote.c (remote_start_remote): Call remote_check_symbols even
10256 if only symbol-file (not file) has been given.
10257
591a12a1
UW
102582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10259
10260 * gdbarch.sh (skip_entrypoint): New callback.
10261 * gdbarch.c, gdbarch.h: Regenerate.
10262 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10263 * infrun.c (fill_in_stop_func): Likewise.
10264 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10265 (ppc_elfv2_elf_make_msymbol_special): New function.
10266 (ppc_elfv2_skip_entrypoint): Likewise.
10267 (ppc_linux_init_abi): Install them for ELFv2.
10268
cc0e89c5
UW
102692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10270
10271 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10272 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10273 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10274 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10275 structures returned in GPRs.
10276
52f548e4
UW
102772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10278
10279 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10280 offset to the stack parameter list for the ELFv2 ABI.
10281
d4094b6a
UW
102822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10283
10284 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10285 set_gdbarch_convert_from_func_ptr_addr and
10286 set_gdbarch_elf_make_msymbol_special for ELFv1.
10287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10288 function descriptors on ELFv1.
10289 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10290 set up r12 at function entry.
10291
cd453cd0
UW
102922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10293
10294 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10295 (struct gdbarch_tdep): New member elf_abi.
10296
10297 * rs6000-tdep.c: Include "elf/ppc64.h".
10298 (rs6000_gdbarch_init): Detect ELF ABI version.
10299
0ff3e01f
UW
103002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10301
10302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10303 within a register pair holding a DFP 128-bit value on little-endian.
10304 (ppc64_sysv_abi_return_value_base): Likewise.
10305 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10306 (dfp_pseudo_register_write): Likewise.
10307
5b757e5d
UW
103082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10309
10310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10311 offset on little-endian when passing _Decimal32.
10312 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10313
084ee545
UW
103142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10315
10316 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10317 of the overlapped FP register within the VSX register on little-
10318 endian platforms.
10319 (efpr_pseudo_register_write): Likewise.
10320
d63167af
UW
103212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10322
10323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10324 offset on little-endian when passing small structures.
10325
e765b44c
UW
103262014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10327
10328 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10329 (struct ppc64_sysv_argpos): New data structure.
10330 (ppc64_sysv_abi_push_float): Remove.
10331 (ppc64_sysv_abi_push_val): New function.
10332 (ppc64_sysv_abi_push_integer): Likewise.
10333 (ppc64_sysv_abi_push_freg): Likewise.
10334 (ppc64_sysv_abi_push_vreg): Likewise.
10335 (ppc64_sysv_abi_push_param): Likewise.
10336 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10337 (ppc64_sysv_abi_return_value_base): New function.
10338 (ppc64_sysv_abi_return_value): Refactor to use it.
10339
36c24d95
UW
103402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10341
10342 * NEWS: Document new target powerpc64le-*-linux*.
10343
26fd9228
MK
103442014-02-04 Mark Kettenis <kettenis@gnu.org>
10345
10346 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10347 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10348 core dumps.
10349 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10350 register set used in ELF core dumps. Add floating-point register set.
10351
c5bb7362
KB
103522014-02-03 Kevin Buettner <kevinb@redhat.com>
10353
74228e77 10354 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10355 dwarf2_to_gdb[] table using symbolic constants. Adjust
10356 penultimate entry from number representing the PC register
10357 to symbolic constant representing the MDR register. Add
10358 constant for the PC register to the end of the table.
10359
af09351e
MK
103602014-02-03 Mark Kettenis <kettenis@gnu.org>
10361
10362 * bsd-kvm.c: Include <sys/param.h>
10363
8507e05d
MK
103642014-02-03 Mark Kettenis <kettenis@gnu.org>
10365
10366 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10367
ae56bfb8
JB
103682014-01-31 Joel Brobecker <brobecker@adacore.com>
10369
10370 * ada-lang.h (clear_ada_sym_cache): Delete.
10371
718ee4dc
UW
103722014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10373
10374 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10375
401e27fd
JM
103762014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10377
10378 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10379 the sigreturn register save area only if the syscall is
10380 sigreturn.
10381
a7c88acd
JB
103822014-01-29 Joel Brobecker <brobecker@adacore.com>
10383
10384 * valops.c (value_slice): Minor reformatting.
10385
fa0079ea
UW
103862014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10387
10388 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10389
c6044dd1
JB
103902014-01-28 Joel Brobecker <brobecker@adacore.com>
10391
10392 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10393 New static globals.
10394 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10395 (ada_ignore_descriptive_types_p): New static global.
10396 (find_parallel_type_by_descriptive_type): Return immediately
10397 if ada_ignore_descriptive_types_p is set.
10398 (_initialize_ada_language): Register new commands "maintenance
10399 set ada", "maintenance show ada", "maintenance set ada
10400 ignore-descriptive-types" and "maintenance show ada
10401 ignore-descriptive-types".
10402 * NEWS: Add entry for new "maint ada set/show
10403 ignore-descriptive-types" commands.
10404
568e808b
MM
104052014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10406
10407 * record-btrace.c (record_btrace_close): Call btrace_teardown
10408 for all threads.
10409
467d141b
JB
104102014-01-27 Joel Brobecker <brobecker@adacore.com>
10411
10412 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10413 "ui-out.h".
10414
fb151210
JB
104152014-01-27 Joel Brobecker <brobecker@adacore.com>
10416
10417 * ada-typeprint (type_is_full_subrange_of_target_type):
10418 New function.
10419 (print_range): Add parameter bounds_prefered_p. If not set,
10420 try printing range types using the name of their base type.
10421 (print_range_type): Add parameter bounds_prefered_p.
10422 Use it in call to print_range.
10423 (print_array_type, ada_print_type): Update calls to print_range
10424 and print_range_type.
10425
aba02109
JB
104262014-01-27 Joel Brobecker <brobecker@adacore.com>
10427
10428 * ada-typeprint.c (print_array_type, print_choices, print_range)
10429 (print_range_bound, print_dynamic_range_bound, print_range_type):
10430 Remove declaration.
10431
e62e21fd
JB
104322014-01-27 Joel Brobecker <brobecker@adacore.com>
10433
10434 * ada-typeprint.c (print_range): Add missing empty line
10435 after local declaration.
10436
859cf5d1
JB
104372014-01-27 Joel Brobecker <brobecker@adacore.com>
10438
10439 * ada-valprint.c (print_optional_low_bound): Get index_type's
10440 target type for as long as it is a TYPE_CODE_RANGE.
10441
25790f6f
JB
104422014-01-27 Joel Brobecker <brobecker@adacore.com>
10443
10444 * procfs.c (procfs_make_note_section): Remove assertion and
10445 associated comment.
10446
6b6aa828
YQ
104472014-01-24 Yao Qi <yao@codesourcery.com>
10448
10449 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10450 * corelow.c (get_core_siginfo): Likewise.
10451
5d6df423
YQ
104522014-01-24 Yao Qi <yao@codesourcery.com>
10453
10454 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10455 ULONGEST. Don't check 'len' is negative.
10456 (remote_write_bytes): Change type of 'len' to ULONGEST.
10457
83b645b8
TT
104582014-01-23 Tom Tromey <tromey@redhat.com>
10459
10460 PR python/16485:
10461 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10462 Handle exception from frame.block.
10463 (FrameVars.fetch_frame_locals): Likewise.
10464
0740f8d8
TT
104652014-01-23 Tom Tromey <tromey@redhat.com>
10466
10467 PR python/16487:
10468 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10469 on a NULL pointer. Move "goto error" to correct place.
10470
21909fa1
TT
104712014-01-23 Tom Tromey <tromey@redhat.com>
10472
10473 PR python/16491:
10474 * python/py-framefilter.c (apply_frame_filter): Call
10475 ensure_python_env after computing gdbarch.
10476
17fde6d0
YQ
104772014-01-23 Yao Qi <yao@codesourcery.com>
10478
10479 * target.c (raw_memory_xfer_partial): Change argument type
10480 from void * to gdb_byte *.
10481 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10482
87ce2a04
DE
104832014-01-22 Doug Evans <dje@google.com>
10484
10485 New gdbserver option --debug-format=timestamp.
10486 * NEWS: Mention it.
10487
237b092b
AA
104882014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10489
10490 * syscalls/s390x-linux.xml: New file.
10491 * syscalls/s390-linux.xml: New file.
10492 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10493 (XML_SYSCALL_FILENAME_S390X): Likewise.
10494 (op_svc): New enum value for SVC opcode.
10495 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10496 (s390_linux_get_syscall_number): New function.
10497 (s390_gdbarch_init): Register '*get_syscall_number' and the
10498 syscall xml file name.
10499 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10500 "s390-linux.xml" and "s390x-linux.xml".
10501 * NEWS: Announce new feature.
10502
54bff650
BS
105032014-01-22 Baruch Siach <baruch@tkos.co.il>
10504
10505 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10506
14e361d7
PA
105072014-01-22 Pedro Alves <palves@redhat.com>
10508
10509 * xtensa-config.c: Include defs.h.
10510
46bbb3ed
JB
105112014-01-22 Joel Brobecker <brobecker@adacore.com>
10512
10513 * common/common-utils.h: Add "ARI:" comment beside __func__
10514 reference.
10515
3a80edfc
JB
105162014-01-22 Joel Brobecker <brobecker@adacore.com>
10517
10518 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10519 documentation a bit.
10520
4869db5e
RM
105212014-01-21 Roland McGrath <mcgrathr@google.com>
10522
10523 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10524 * configure: Regenerate.
10525 * aclocal.m4: Regenerate.
10526 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10527 New substituted variables.
10528 (install-strip): New target.
10529 (INSTALL_SCRIPT): New substituted variable.
10530 (FLAGS_TO_PASS): Add it.
10531 (install-only): Use $(INSTALL_SCRIPT) rather than
10532 $(INSTALL_PROGRAM) for gcore.
10533
9ea4267d
TT
105342014-01-20 Tom Tromey <tromey@redhat.com>
10535
10536 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10537 together.
10538
1f2bdf09
TT
105392014-01-20 Tom Tromey <tromey@redhat.com>
10540
10541 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10542 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10543 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10544 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10545 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10546 (struct cmd_list_element) <flags>: Remove.
10547 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10548 doc_allocated>: New fields.
10549 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10550 bitfields.
10551 * maint.c (maintenance_do_deprecate): Update.
10552 * top.c (execute_command): Update.
10553
e671835b
BS
105542014-01-20 Baruch Siach <baruch@tkos.co.il>
10555
10556 * xtensa-linux-nat.c: Include asm/ptrace.h.
10557
50367cd2
IB
105582014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10559
10560 * Makefile.in (SFILES): Add d-support.c.
10561 (COMMON_OBS): Add d-support.o.
10562 * d-lang.h (d_parse_symbol): Add comment, now defined in
10563 d-support.c.
10564 * d-lang.c (parse_call_convention)
10565 (parse_attributes, parse_function_types)
10566 (parse_function_args, parse_type, parse_identifier)
10567 (call_convention_p, d_parse_symbol): Move functions to ...
10568 * d-support.c: ... New file.
10569
ec9f644a
IB
105702014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10571
10572 * d-lang.h (d_parse_symbol): Add declaration.
10573 * d-lang.c (extract_identifiers)
10574 (extract_type_info): Remove functions.
10575 (parse_call_convention, parse_attributes)
10576 (parse_function_types, parse_function_args)
10577 (parse_type, parse_identifier, call_convention_p)
10578 (d_parse_symbol): New functions.
10579 (d_demangle): Use d_parse_symbol to demangle D symbols.
10580
94b1b47e
IB
105812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10582
10583 * d-lang.h (struct builtin_d_type): New data type.
10584 (builtin_d_type): Add declaration.
10585 * d-lang.c (d_language_arch_info, build_d_types)
10586 (builtin_d_type): New functions.
10587 (enum d_primitive_types): New data type.
10588 (d_language_defn): Change c_language_arch_info to
10589 d_language_arch_info.
10590 (d_type_data): New static variable.
10591 (_initialize_d_language): Initialize d_type_data.
10592
63778547
IB
105932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10594
10595 * d-lang.h (d_main_name): Add declaration.
10596 * d-lang.c (d_main_name): New function.
10597 * symtab.c (find_main_name): Add call to d_main_name.
10598
3271ba66
IB
105992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10600
10601 * d-lang.c (d_language_defn): Change macro_expansion_c to
10602 macro_expansion_no.
10603
d36b3012
IB
106042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10605
10606 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10607
c90a6fb7
SDJ
106082014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10609
10610 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10611 gdb_exception" declaration.
10612 * remote.c (getpkt_or_notif_sane): Likewise.
10613
749234e5
DE
106142014-01-17 Doug Evans <dje@google.com>
10615
10616 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10617 function, contents of dirnames_to_char_ptr_vec_append moved here.
10618 (delim_string_to_char_ptr_vec): New function.
10619 (dirnames_to_char_ptr_vec_append): Rewrite.
10620 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10621
df049a58
DE
106222014-01-17 Doug Evans <dje@google.com>
10623
10624 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10625 and moved here ...
10626 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10627 #include "common-utils.h".
10628 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10629 * common/vec.h (VEC_ASSERT_PASS): Update.
10630 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10631 (MACH_CHECK_ERROR): Update.
10632
69f97648
SM
106332014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10634
10635 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10636 comments.
10637 * gdbarch.h: Regenerate.
10638
98b1cfdc
TT
106392014-01-16 Tom Tromey <tromey@redhat.com>
10640
10641 * value.c (struct value) <regnum>: Move earlier.
10642
77a19445
TT
106432014-01-16 Tom Tromey <tromey@redhat.com>
10644
10645 * remote.c (extended_remote_create_inferior): Rename from
10646 extended_remote_create_inferior_1. Add "ops" argument. Remove
10647 old implementation.
10648
62261490
PA
106492014-01-16 Pedro Alves <palves@redhat.com>
10650
10651 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10652 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10653 the backchain.
10654
4d65956b
DE
106552014-01-16 Doug Evans <dje@google.com>
10656
10657 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10658
52834460
MM
106592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10660
10661 * btrace.h (btrace_thread_flag): New.
10662 (struct btrace_thread_info) <flags>: New.
10663 * record-btrace.c (record_btrace_resume_thread)
10664 (record_btrace_find_thread_to_move, btrace_step_no_history)
10665 (btrace_step_stopped, record_btrace_start_replaying)
10666 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10667 (record_btrace_find_resume_thread): New.
10668 (record_btrace_resume, record_btrace_wait): Extend.
10669 (record_btrace_can_execute_reverse): New.
10670 (record_btrace_open): Fail in non-stop mode.
10671 (record_btrace_set_replay): Split into this, ...
10672 (record_btrace_stop_replaying): ... this, ...
10673 (record_btrace_clear_histories): ... and this.
10674 (init_record_btrace_ops): Init to_can_execute_reverse.
10675 * NEWS: Announce it.
10676
118e6252
MM
106772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10678
10679 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10680 (forward_target_decr_pc_after_break)
10681 (target_decr_pc_after_break): New.
10682 * target.c (forward_target_decr_pc_after_break)
10683 (target_decr_pc_after_break): New.
10684 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10685 instead of gdbarch_decr_pc_after_break.
10686 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10687 instead of gdbarch_decr_pc_after_break.
10688 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10689 instead of gdbarch_decr_pc_after_break.
10690 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10691 instead of gdbarch_decr_pc_after_break.
10692 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10693 instead of gdbarch_decr_pc_after_break.
10694 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10695 instead of gdbarch_decr_pc_after_break.
10696
6e07b1d2
MM
106972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10698
10699 * btrace.c: Include regcache.h.
10700 (btrace_add_pc): New.
10701 (btrace_enable): Call btrace_add_pc.
10702 (btrace_is_empty): New.
10703 * btrace.h (btrace_is_empty): New.
10704 * record-btrace.c (require_btrace, record_btrace_info): Call
10705 btrace_is_empty.
10706
969c39fb
MM
107072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10708
10709 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10710 Support delta reads.
10711 (linux_disable_btrace): Change return type.
10712 * common/linux-btrace.h (linux_read_btrace): Change parameters
10713 and return type to allow error reporting. Update users.
10714 (linux_disable_btrace): Change return type. Update users.
10715 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10716 New.
10717 (btrace_error): New.
10718 (btrace_block) <begin>: Comment on BEGIN == 0.
10719 * btrace.c (btrace_compute_ftrace): Start from the end of
10720 the current trace.
10721 (btrace_stitch_trace, btrace_clear_history): New.
10722 (btrace_fetch): Read delta trace, return if replaying.
10723 (btrace_clear): Move clear history code to btrace_clear_history.
10724 (parse_xml_btrace): Throw an error if parsing failed.
10725 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10726 and return type to allow error reporting.
10727 (target_read_btrace): Change parameters and return type to allow
10728 error reporting.
10729 * target.c (target_read_btrace): Update.
10730 * remote.c (remote_read_btrace): Support delta reads. Pass
10731 errors on.
10732 * NEWS: Announce it.
10733
0b722aec
MM
107342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10735
10736 * record.h (record_btrace_frame_unwind)
10737 (record_btrace_tailcall_frame_unwind): New declarations.
10738 * dwarf2-frame: Include record.h
10739 (dwarf2_frame_cfa): Throw an error for btrace frames.
10740 * record-btrace.c: Include hashtab.h.
10741 (btrace_get_bfun_name): New.
10742 (btrace_call_history): Call btrace_get_bfun_name.
10743 (struct btrace_frame_cache): New.
10744 (bfcache): New.
10745 (bfcache_hash, bfcache_eq, bfcache_new): New.
10746 (btrace_get_frame_function): New.
10747 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10748 (record_btrace_frame_this_id): Compute own id.
10749 (record_btrace_frame_prev_register): Provide PC, throw_error
10750 for all other registers.
10751 (record_btrace_frame_sniffer): Detect btrace frames.
10752 (record_btrace_tailcall_frame_sniffer): New.
10753 (record_btrace_frame_dealloc_cache): New.
10754 (record_btrace_frame_unwind): Add new functions.
10755 (record_btrace_tailcall_frame_unwind): New.
10756 (_initialize_record_btrace): Allocate cache.
10757 * btrace.c (btrace_clear): Call reinit_frame_cache.
10758 * NEWS: Announce it.
10759
066ce621
MM
107602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10761
10762 * record-btrace.c (record_btrace_set_replay)
10763 (record_btrace_goto_begin, record_btrace_goto_end)
10764 (record_btrace_goto): New.
10765 (init_record_btrace_ops): Initialize them.
10766 * NEWS: Announce it.
10767
e2887aa3
MM
107682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10769
10770 * record-btrace.c (record_btrace_find_new_threads)
10771 (record_btrace_thread_alive): New.
10772 (init_record_btrace_ops): Initialize to_find_new_threads and
10773 to_thread_alive.
10774
b2f4cfde
MM
107752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10776
10777 * record-btrace.c (record_btrace_resume): New.
10778 (record_btrace_wait): New.
10779 (init_record_btrace_ops): Initialize to_wait and to_resume.
10780
633785ff
MM
107812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10782
10783 * record-btrace.c (record_btrace_xfer_partial)
10784 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10785 (record_btrace_allow_memory_access): New.
10786 (init_record_btrace_ops): Initialize new methods.
10787 * target.c (raw_memory_xfer_partial): Bail out if target reports
10788 that this memory is not available.
10789
3db08215
MM
107902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10791
10792 * target.h (target_ops) <to_insert_breakpoint>
10793 <to_remove_breakpoint>: Add target_ops parameter.
10794 (forward_target_insert_breakpoint): New.
10795 (forward_target_remove_breakpoint): New.
10796 (memory_remove_breakpoint, memory_insert_breakpoint):
10797 Add target_ops parameter.
10798 * target.c (target_insert_breakpoint): Split into this and ...
10799 (forward_target_insert_breakpoint): ... this.
10800 (target_remove_breakpoint): Split into this and ...
10801 (forward_target_remove_breakpoint): ... this.
10802 (debug_to_insert_breakpoint): Add target_ops parameter.
10803 Call forward_target_insert_breakpoint.
10804 (debug_to_remove_breakpoint): Add target_ops parameter.
10805 Call forward_target_remove_breakpoint.
10806 (update_current_target): Do not inherit or default to_insert_breakpoint
10807 and to_remove_breakpoint.
10808 * corelow.c (ignore): Add target_ops parameter.
10809 * exec.c (ignore): Add target_ops parameter.
10810 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10811 Add target_ops parameter.
10812 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10813 Add target_ops parameter.
10814 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10815 Add target_ops parameter.
10816 * record-full.c (record_full_beneath_to_insert_breakpoint)
10817 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10818 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10819 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10820 (record_full_core_remove_breakpoint): Add target_ops parameter.
10821 Update users.
10822 (record_full_beneath_to_insert_breakpoint_ops)
10823 (record_full_beneath_to_remove_breakpoint_ops)
10824 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10825 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10826 tmp_to_remove_breakpoint_ops,
10827 record_full_beneath_to_insert_breakpoint_ops, and
10828 record_full_beneath_to_remove_breakpoint_ops.
10829 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10830 (m32r_remove_breakpoint): Add target_ops parameter.
10831 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10832 Add target_ops parameter.
10833 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10834 Add target_ops parameter.
10835
cecac1ab
MM
108362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10837 Markus Metzger <markus.t.metzger@intel.com>
10838
10839 * record-btrace.c: Include frame-unwind.h.
10840 (record_btrace_frame_unwind_stop_reason)
10841 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10842 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10843 New.
10844 (init_record_btrace_ops): Install it.
10845
824344ca
MM
108462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10849 get_prev_frame_1.
10850
32261e52
MM
108512014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10852
10853 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10854 earlier.
10855
ea001bdc
MM
108562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10857
10858 * frame-unwind.c: Include target.h.
10859 (frame_unwind_try_unwinder): New function with code from ...
10860 (frame_unwind_find_by_frame): ... here. New variable
10861 unwinder_from_target, call also target_get_unwinder)
10862 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10863 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10864 * target.h (struct target_ops): New fields to_get_unwinder and
10865 to_get_tailcall_unwinder.
10866 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10867
1f3ef581
MM
108682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10869
10870 * record-btrace.c (record_btrace_fetch_registers)
10871 (record_btrace_store_registers)
10872 (record_btrace_to_prepare_to_store): New.
10873 (init_record_btrace_ops): Add the above.
10874
f32dbf8c
MM
108752014-01-16 Tom Tromey <tromey@redhat.com>
10876
10877 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10878 * target.h (struct target_ops) <to_prepare_to_store>: Add
10879 argument.
10880 (target_prepare_to_store): Add argument.
10881 * target.c (debug_to_prepare_to_store): Add argument.
10882 (update_current_target): Update.
10883 * remote.c (remote_prepare_to_store): Add 'self' argument.
10884 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10885 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10886 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10887 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10888 argument.
10889 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10890 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10891 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10892 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10893 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10894
07bbe694
MM
108952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10896
10897 * btrace.h (replay) <replay>: New.
10898 (btrace_is_replaying): New.
10899 * btrace.c (btrace_clear): Free replay iterator.
10900 (btrace_is_replaying): New.
10901 * record-btrace.c (record_btrace_is_replaying): New.
10902 (record_btrace_info): Print insn number if replaying.
10903 (record_btrace_insn_history): Start at replay position.
10904 (record_btrace_call_history): Start at replay position.
10905 (init_record_btrace_ops): Init to_record_is_replaying.
10906
0688d04e
MM
109072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10908
10909 * record-btrace.c (record_btrace_insn_history_range): Include
10910 end.
10911 (record_btrace_insn_history_from): Adjust range.
10912 (record_btrace_call_history_range): Include
10913 end.
10914 (record_btrace_call_history_from): Adjust range.
10915 * NEWS: Announce changes.
10916
8710b709
MM
109172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10918
10919 * record.h (enum record_print_flag)
10920 <record_print_indent_calls>: New.
10921 * record.c (get_call_history_modifiers): Recognize /c modifier.
10922 (_initialize_record): Document /c modifier.
10923 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10924 Reorder fields. Optionally indent the function name. Update
10925 all users.
10926 * NEWS: Announce changes.
10927
d0fa7535
MM
109282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10929
10930 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10931
5de9129b
MM
109322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10933
10934 * btrace.c (ftrace_new_function): Start counting at one.
10935 * record-btrace.c (record_btrace_info): Adjust number of calls
10936 and insns.
10937 * NEWS: Announce it.
10938
7acbe133
MM
109392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10940
10941 * record-btrace.c (btrace_call_history_insn_range): Print
10942 insn range as [begin, end].
10943
23a7fe75
MM
109442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10945
10946 * btrace.h (struct btrace_func_link): New.
10947 (enum btrace_function_flag): New.
10948 (struct btrace_inst): Rename to ...
10949 (struct btrace_insn): ...this. Update all users.
10950 (struct btrace_func) <ibegin, iend>: Remove.
10951 (struct btrace_func_link): New.
10952 (struct btrace_func): Rename to ...
10953 (struct btrace_function): ...this. Update all users.
10954 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10955 (number, level, flags>: New.
10956 (struct btrace_insn_iterator): Rename to ...
10957 (struct btrace_insn_history): ...this.
10958 Update all users.
10959 (struct btrace_insn_iterator, btrace_call_iterator): New.
10960 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10961 (struct btrace_target_info) <begin, end, level>
10962 <insn_history, call_history>: New.
10963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10966 (btrace_call_number, btrace_call_begin, btrace_call_end)
10967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10968 (btrace_find_function_by_number, btrace_set_insn_history)
10969 (btrace_set_call_history): New.
10970 * btrace.c (btrace_init_insn_iterator)
10971 (btrace_init_func_iterator, compute_itrace): Remove.
10972 (ftrace_print_function_name, ftrace_print_filename)
10973 (ftrace_skip_file): Change
10974 parameter to const.
10975 (ftrace_init_func): Remove.
10976 (ftrace_debug): Use new btrace_function fields.
10977 (ftrace_function_switched): Also consider gaining and
10978 losing symbol information).
10979 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10980 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10981 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10982 New.
10983 (ftrace_new_function): Move. Remove debug print.
10984 (ftrace_update_lines, ftrace_update_insns): New.
10985 (ftrace_update_function): Check for call, ret, and jump.
10986 (compute_ftrace): Renamed to ...
10987 (btrace_compute_ftrace): ...this. Rewritten to compute call
10988 stack.
10989 (btrace_fetch, btrace_clear): Updated.
10990 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10991 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10992 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10993 (btrace_call_number, btrace_call_begin, btrace_call_end)
10994 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10995 (btrace_find_function_by_number, btrace_set_insn_history)
10996 (btrace_set_call_history): New.
10997 * record-btrace.c (require_btrace): Use new btrace thread
10998 info fields.
10999 (record_btrace_info, btrace_insn_history)
11000 (record_btrace_insn_history, record_btrace_insn_history_range):
11001 Use new btrace thread info fields and new iterator.
11002 (btrace_func_history_src_line): Rename to ...
11003 (btrace_call_history_src_line): ...this. Use new btrace
11004 thread info fields.
11005 (btrace_func_history): Rename to ...
11006 (btrace_call_history): ...this. Use new btrace thread info
11007 fields and new iterator.
11008 (record_btrace_call_history, record_btrace_call_history_range):
11009 Use new btrace thread info fields and new iterator.
11010
8372a7cb
MM
110112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * frame.h (frame_id_build_unavailable_stack_special): New.
11014 * frame.c (frame_id_build_unavailable_stack_special): New.
11015
c2170eef
MM
110162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11017
11018 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11019 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11020 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11021 to gdbarch.
11022 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11023 (i386_insn_is_jump, i386_jmp_p): New.
11024 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11025 insn_is_jump to gdbarch.
11026 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11027 * gdbarch.h: Regenerated.
11028 * gdbarch.c: Regenerated.
11029 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11030 (default_insn_is_jump): New.
11031 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11032 (default_insn_is_jump): New.
11033
864089d2
MM
110342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11035
11036 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11037 Change to ...
11038 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11039 (btrace_read_type) <btrace_read_new>: Change to ...
11040 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11041
ed9edfb5
MM
110422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11043
11044 * common/linux-btrace.c (linux_read_btrace): Free trace from
11045 previous iteration.
11046
fbcbc3fd
DE
110472014-01-15 Doug Evans <dje@google.com>
11048
11049 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11050 uint32_t.
11051
3d548a53
TT
110522014-01-15 Tom Tromey <tromey@redhat.com>
11053
11054 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11055 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11056 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11057 (set_objfile_main_name): New function.
11058 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11059 language_of_main>: New fields.
11060 (set_objfile_main_name): Declare.
11061 * symtab.c (find_main_name): Loop over objfiles to find the main
11062 name and language.
11063 (set_main_name): Now static.
11064 (get_main_info): Add comment.
11065 * symtab.h (set_main_name): Don't declare.
11066
32ac0d11
TT
110672014-01-15 Tom Tromey <tromey@redhat.com>
11068
11069 * symtab.c (main_progspace_key): New global.
11070 (struct main_info): New.
11071 (name_of_main, language_of_main): Remove.
11072 (get_main_info, main_info_cleanup): New function.
11073 (set_main_name, main_name, main_language): Use get_main_info.
11074 (_initialize_symtab): Initialize main_progspace_key.
11075
9e6c82ad
TT
110762014-01-15 Tom Tromey <tromey@redhat.com>
11077
11078 * dbxread.c (process_one_symbol): Update.
11079 * dwarf2read.c (read_partial_die): Update.
11080 * symfile.c (set_initial_language): Call main_language.
11081 * symtab.c (language_of_main): Now static.
11082 (set_main_name): Add 'lang' parameter.
11083 (find_main_name): Update.
11084 (main_language): New function.
11085 (symtab_observer_executable_changed): Update.
11086 * symtab.h (set_main_name): Update.
11087 (language_of_main): Remove.
11088 (main_language): Declare.
11089
6ef55de7
TT
110902014-01-15 Tom Tromey <tromey@redhat.com>
11091
11092 * symfile.c (init_entry_point_info): Use new "initialized" field.
11093 Update.
11094 * objfiles.h (struct entry_point) <initialized>: New field.
11095 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11096 (struct objfile) <ei>: ...here. Remove.
11097 * objfiles.c (entry_point_address_query): Update.
11098
53eddfa6
TT
110992014-01-15 Tom Tromey <tromey@redhat.com>
11100
11101 * objfiles.c (entry_point_address_query): Relocate entry point
11102 address.
11103 (objfile_relocate1): Do not relocate entry point address.
11104 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11105 <the_bfd_section_index>: New field.
11106 * symfile.c (init_entry_point_info): Find the entry point's
11107 section.
11108
d56e56aa
TT
111092014-01-15 Tom Tromey <tromey@redhat.com>
11110
11111 * solib-frv.c (enable_break): Use entry_point_address_query.
11112
33a97bbe
OJ
111132014-01-15 Omair Javaid <omair.javaid@linaro.org>
11114
11115 * NEWS: Add note on improved process record-replay on
11116 arm*-linux* targets.
11117
c6ec2b30
OJ
111182014-01-15 Omair Javaid <omair.javaid@linaro.org>
11119
11120 * arm-tdep.c (enum arm_record_result): New enum.
11121 (arm_record_unsupported_insn): New function.
11122 (arm_record_coproc_data_proc): Removed.
11123 (thumb2_record_ld_st_multiple): New function.
11124 (thumb2_record_ld_st_dual_ex_tbb): New function.
11125 (thumb2_record_data_proc_sreg_mimm): New function.
11126 (thumb2_record_ps_dest_generic): New function.
11127 (thumb2_record_branch_misc_cntrl): New function.
11128 (thumb2_record_str_single_data): New function.
11129 (thumb2_record_ld_mem_hints): New function.
11130 (thumb2_record_ld_word): New function.
11131 (thumb2_record_lmul_lmla_div): New function.
11132 (thumb2_record_decode_insn_handler): New function.
11133 (decode_insn): Add thumb32 instruction handlers.
11134
97dfe206
OJ
111352014-01-15 Omair Javaid <omair.javaid@linaro.org>
11136
11137 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11138 (struct arm_linux_record_tdep): Declare.
11139 (arm_canonicalize_syscall): New function.
11140 (arm_all_but_pc_registers_record): New function.
11141 (arm_linux_syscall_record): New function.
11142 (arm_linux_init_abi): Add syscall recording constructs.
11143 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11144 decoding. (arm_record_coproc_data_proc): Update arm syscall
11145 decoding.
11146 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11147 <arm_syscall_record>: New field.
11148 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11149 gdb_target_obs.
11150
9904a494
OJ
111512014-01-15 Omair Javaid <omair.javaid@linaro.org>
11152
11153 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11154 register for push instruction recording.
11155
f969241e
OJ
111562014-01-15 Omair Javaid <omair.javaid@linaro.org>
11157
11158 * arm-tdep.c (thumb_record_misc): Update to correct logical
11159 error while recording ldm, ldmia and pop instructions.
11160
bfbbec00
OJ
111612014-01-15 Omair Javaid <omair.javaid@linaro.org>
11162
11163 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11164
e40adcc9
PA
111652014-01-15 Pedro Alves <palves@redhat.com>
11166
11167 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11168 (go32_resume, go32_fetch_registers, store_register)
11169 (go32_store_registers, go32_prepare_to_store)
11170 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11171 (go32_create_inferior, go32_can_run, go32_terminal_init)
11172 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11173 declarations.
11174
b0a16e66
TT
111752014-01-15 Tom Tromey <tromey@redhat.com>
11176
11177 * target.h (async_callback_ftype): New typedef.
11178 (struct target_ops) <to_async>: Use it.
11179
bf7105a4
JB
111802014-01-15 Joel Brobecker <brobecker@adacore.com>
11181
11182 * python/py-value.c (get_field_type): Remove unnecessary curly
11183 braces for single-statement if block.
11184
a8f35c2e
JB
111852014-01-15 Joel Brobecker <brobecker@adacore.com>
11186
11187 * python/py-type.c (convert_field): Add missing empty line
11188 after declarations.
11189
bb4142cf
DE
111902014-01-14 Doug Evans <dje@google.com>
11191
11192 * symfile.h (expand_symtabs_matching): Renamed from
11193 expand_partial_symbol_names. Update prototype.
11194 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11195 * symfile.c (expand_symtabs_matching): Renamed from
11196 expand_partial_symbol_names. New args file_matcher, kind.
11197 Rename arg fun to symbol_matcher.
11198 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11199 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11200 ada_expand_partial_symbol_name.
11201 (ada_make_symbol_completion_list): Update to call
11202 expand_symtabs_matching.
11203 (ada_add_global_exceptions): Call expand_symtabs_matching.
11204 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11205 call map_symbol_filenames.
11206 * symtab.c (sources_info): Update to call map_symbol_filenames.
11207 (search_symbols): Call expand_symtabs_matching.
11208 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11209 (default_make_symbol_completion_list_break_on): Update to call
11210 expand_symtabs_matching.
11211 (make_source_files_completion_list): Update to call
11212 map_symbol_filenames.
11213
206f2a57
DE
112142014-01-14 Doug Evans <dje@google.com>
11215
11216 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11217 (expand_symtabs_symbol_matcher_ftype): New typedef.
11218 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11219 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11220 * symfile.c (expand_partial_symbol_names): Update to use
11221 expand_symtabs_symbol_matcher_ftype.
11222 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11223 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11224 Arg name_matcher renamed to symbol_matcher.
11225 * psymtab.c (recursively_search_psymtabs): Update to use
11226 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11227 sym_matcher.
11228 (expand_symtabs_matching_via_partial): Update to use
11229 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11230 Arg name_matcher renamed to symbol_matcher.
11231
540c2971
DE
112322014-01-14 Doug Evans <dje@google.com>
11233
11234 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11235 (map_partial_symbol_filenames): Ditto.
11236 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11237 (map_partial_symbol_filenames): Ditto.
11238 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11239 (map_partial_symbol_filenames): Ditto.
11240 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11241 (map_partial_symbol_filenames): Ditto.
11242 * symtab.c: Delete #include "psymtab.h".
11243
8213266a
PA
112442014-01-14 Pedro Alves <palves@redhat.com>
11245 Tom Tromey <tromey@redhat.com>
11246
11247 * infrun.c (use_displaced_stepping): Use find_record_target
11248 instead of RECORD_IS_USED.
11249 (adjust_pc_after_break): Use record_full_is_used instead of
11250 RECORD_IS_USED.
11251 * record-btrace.c (record_btrace_open): Call record_preopen
11252 instead of checking RECORD_IS_USED.
11253 * record-full.c (record_full_shortname)
11254 (record_full_core_shortname): New globals.
11255 (record_full_is_used): New function.
11256 (find_full_open): Call record_preopen instead of checking
11257 RECORD_IS_USED.
11258 (init_record_full_ops): Set the target's shortname to
11259 record_full_shortname.
11260 (init_record_full_core_ops): Set the target's shortname to
11261 record_full_core_shortname.
11262 * record-full.h (record_full_is_used): Declare.
11263 * record.c (find_record_target): Make extern.
11264 (record_preopen): New function.
11265 * record.h (RECORD_IS_USED): Delete macro.
11266 (find_record_target, record_preopen): Declare functions.
11267
7ec1862d
YQ
112682014-01-14 Yao Qi <yao@codesourcery.com>
11269
11270 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11271 'len''s type to ULONGEST.
11272 (core_xfer_shared_libraries_aix): Likewise.
11273 * gdbarch.c, gdbarch.h: Regenerated.
11274 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11275 Change type of 'len' to ULONGEST.
11276 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11277 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11278
dea80a27
YQ
112792014-01-14 Yao Qi <yao@codesourcery.com>
11280
11281 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11282 type of 'len' to ULONGEST.
11283 (linux_xfer_osdata_processgroups): Likewise.
11284 (linux_xfer_osdata_threads): Likewise.
11285 (linux_xfer_osdata_fds): Likewise.
11286 (linux_xfer_osdata_isockets): Likewise.
11287 (linux_xfer_osdata_shm): Likewise.
11288 (linux_xfer_osdata_sem): Likewise.
11289 (linux_xfer_osdata_msg): Likewise.
11290 (linux_common_xfer_osdata): Likewise.
11291 (struct osdata_type) <getter>: Likewise.
11292 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11293 the declaration.
11294
b55e14c7
YQ
112952014-01-14 Yao Qi <yao@codesourcery.com>
11296
11297 * target.h (target_xfer_partial_ftype): Update.
11298 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11299 ULONGEST.
11300 * aix-thread.c (aix_thread_xfer_partial): Change type of
11301 argument 'len' to ULONGEST.
11302 * auxv.c (procfs_xfer_auxv): Likewise.
11303 (ld_so_xfer_auxv): Likewise.
11304 (memory_xfer_auxv): Likewise.
11305 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11306 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11307 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11308 * corelow.c (core_xfer_partial): Likewise.
11309 * ctf.c (ctf_xfer_partial): Likewise.
11310 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11311 '%u'.
11312 (darwin_read_dyld_info): Likewise.
11313 (darwin_xfer_partial): Likewise.
11314 * exec.c (section_table_xfer_memory_partial): Likewise.
11315 (exec_xfer_partial): Likewise.
11316 * exec.h (section_table_xfer_memory_partial): Update
11317 declaration.
11318 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11319 instead of plongest.
11320 (gnu_xfer_partial): Likewise.
11321 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11322 (ia64_hpux_xfer_solib_got): Likewise.
11323 (ia64_hpux_xfer_partial): Likewise.
11324 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11325 * inf-ptrace.c (inf_ptrace_xfer_partial):
11326 * inf-ttrace.c (inf_ttrace_xfer_partial):
11327 * linux-nat.c (linux_xfer_siginfo): Likewise.
11328 (linux_nat_xfer_partial): Likewise.
11329 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11330 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11331 * monitor.c (monitor_xfer_memory): Likewise.
11332 (monitor_xfer_partial): Likewise.
11333 * procfs.c (procfs_xfer_partial): Likewise.
11334 * record-full.c (record_full_xfer_partial): Likewise.
11335 (record_full_core_xfer_partial): Likewise.
11336 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11337 instead of plongest.
11338 (gdbsim_xfer_partial): Likewise.
11339 * remote.c (remote_xfer_partial): Likewise.
11340 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11341 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11342 declaration.
11343 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11344 (rs6000_xfer_shared_libraries): Likewise.
11345 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11346 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11347 (sparc_xfer_partial): Likewise.
11348 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11349 (spu_xfer_partial): Likewise.
11350 * spu-multiarch.c (spu_xfer_partial): Likewise.
11351 * target.c (target_read_live_memory): Likewise.
11352 (memory_xfer_live_readonly_partial): Likewise.
11353 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11354 (target_xfer_partial, default_xfer_partial): Likewise.
11355 (current_xfer_partial): Likewise.
11356 * tracepoint.c (tfile_xfer_partial): Likewise.
11357 * windows-nat.c (windows_xfer_memory): Likewise. Call
11358 pulongest instead of plongest.
11359 (windows_xfer_partial): Likewise.
11360 (windows_xfer_shared_libraries): Likewise.
11361
05804640
YQ
113622014-01-14 Yao Qi <yao@codesourcery.com>
11363
11364 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11365 target_xfer_partial_ftype.
11366
b5b08fb4
SC
113672014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11368
11369 PR python/15464
11370 PR python/16113
11371 * valops.c (value_struct_elt_bitpos): New function
11372 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11373 object to 'None' if the field name is an empty string ("").
11374 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11375 attribute to look for a field when 'name' is 'None'.
11376 (get_field_type): New function
11377
13aaf454
DE
113782014-01-13 Doug Evans <dje@google.com>
11379
11380 PR symtab/16426
11381 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11382 (try_open_dwop_file): Ditto.
11383 * gdb_bfd.c: #include "vec.h".
11384 (bfdp): New typedef.
11385 (struct gdb_bfd_data): New member included_bfds.
11386 (gdb_bfd_unref): Unref all included bfds.
11387 (gdb_bfd_record_inclusion): New function.
11388 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11389
c2cec97c
TT
113902014-01-13 Tom Tromey <tromey@redhat.com>
11391
11392 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11393
78e5999d
TT
113942014-01-13 Tom Tromey <tromey@redhat.com>
11395
11396 * defs.h (use_windows): Remove.
11397 * gdb.c (main): Update.
11398 * main.c (captured_main, gdb_main): Update.
11399 * main.h (struct captured_main_args) <use_windows>: Remove.
11400 * top.c (use_windows): Remove.
11401
f2052bbe
TT
114022014-01-13 Tom Tromey <tromey@redhat.com>
11403
11404 * defs.h (deprecated_flush_hook): Remove.
11405
fde4f8ed
JK
114062014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 PR threads/16216
11409 * linux-thread-db.c (try_thread_db_load): Add parameter
11410 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11411 (try_thread_db_load_from_pdir_1): Move it there from here.
11412 (try_thread_db_load_from_sdir): Update caller.
11413 (try_thread_db_load_from_dir): Move it there from here.
11414
bdf61915
PP
114152014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11416
11417 * regformats/regdat.sh: Always rewrite the register file.
11418
f71e1a8d
PA
114192014-01-13 Pedro Alves <palves@redhat.com>
11420
11421 * Makefile.in (CHECK_HEADERS): New variable.
11422 (check-headers:): New rule.
11423
42c85435
TT
114242014-01-13 Tom Tromey <tromey@redhat.com>
11425
11426 * cli/cli-setshow.c (do_set_command): Update.
11427 * defs.h (deprecated_set_hook): Remove.
11428 * top.c (deprecated_set_hook): Remove.
11429
f8de5129
PA
114302014-01-13 Pedro Alves <palves@redhat.com>
11431
11432 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11433 the tracepoint if the PC is a pseudo-register.
11434
fc270c35
TT
114352014-01-13 Tom Tromey <tromey@redhat.com>
11436
11437 * defs.h (XCALLOC): Remove.
11438 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11439 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11440 * dwarf2loc.c (allocate_piece_closure): Likewise.
11441 * elfread.c (elf_symfile_segments): Likewise.
11442 (elf_symfile_segments): Likewise.
11443 * gdbtypes.c (copy_type_recursive): Likewise.
11444 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11445 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11446 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11447 XCALLOC.
11448 * mt-tdep.c (mt_gdbarch_init): Likewise.
11449 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11450 XCALLOC.
11451 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11452 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11453 * registry.c (registry_alloc_data): Likewise.
11454 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11455 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11456 * serial.c (serial_fdopen_ops): Likewise.
11457 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11458 XCALLOC.
11459 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11460 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11461 not XCALLOC.
11462
70ba0933
TT
114632014-01-13 Tom Tromey <tromey@redhat.com>
11464
11465 * defs.h (XMALLOC): Remove.
11466 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11467 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11468 * cli-out.c (struct ui_out *): Likewise.
11469 * cli/cli-dump.c (add_dump_command): Likewise.
11470 (add_dump_command): Likewise.
11471 * complaints.c (get_complaints): Likewise.
11472 (find_complaint): Likewise.
11473 * dwarf2-frame.c (execute_cfa_program): Likewise.
11474 * dwarf2read.c (abbrev_table_read_table): Likewise.
11475 * gdbarch.sh: Likewise.
11476 * gdbarch.c: Rebuild.
11477 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11478 * interps.c (interp_new): Likewise.
11479 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11480 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11481 * mi/mi-console.c (mi_console_file_new): Likewise.
11482 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11483 * mi/mi-out.c (mi_out_new): Likewise.
11484 * mi/mi-parse.c (mi_parse): Likewise.
11485 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11486 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11487 * observer.c (xalloc_observer_list_node): Likewise.
11488 * regcache.c (regcache_xmalloc_1): Likewise.
11489 * reggroups.c (reggroup_new): Likewise.
11490 (_initialize_reggroup): Likewise.
11491 * registry.c (register_data_with_cleanup): Likewise.
11492 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11493 * ser-base.c (serial_ttystate): Likewise.
11494 * ser-mingw.c (make_pipe_state): Likewise.
11495 * ser-pipe.c (pipe_open): Likewise.
11496 * serial.c (serial_open): Likewise.
11497 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11498 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11499 (tui_alloc_win_info): Likewise.
11500 (tui_add_content_elements): Likewise.
11501 * tui/tui-file.c (tui_file_new): Likewise.
11502 * tui/tui-out.c (tui_out_new): Likewise.
11503 * ui-file.c (mem_file_new): Likewise.
11504 * ui-out.c (push_level): Likewise.
11505 (make_cleanup_ui_out_end): Likewise.
11506 (append_header_to_list): Likewise.
11507 (ui_out_new): Likewise.
11508 * user-regs.c (user_reg_add_builtin): Likewise.
11509
41bf6aca
TT
115102014-01-13 Tom Tromey <tromey@redhat.com>
11511
11512 * defs.h (XZALLOC): Remove.
11513 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11514 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11515 (get_ada_tasks_inferior_data): Likewise.
11516 * auto-load.c (get_auto_load_pspace_data): Likewise.
11517 * auxv.c (get_auxv_inferior_data): Likewise.
11518 * bfd-target.c (target_bfd_reopen): Likewise.
11519 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11520 (deprecated_insert_raw_breakpoint): Likewise.
11521 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11522 * corelow.c (core_open): Likewise.
11523 * darwin-nat.c (darwin_check_new_threads): Likewise.
11524 (darwin_attach_pid): Likewise.
11525 * dummy-frame.c (dummy_frame_push): Likewise.
11526 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11527 * dwarf2loc.c (allocate_piece_closure): Likewise.
11528 * elfread.c (elf_symfile_segments): Likewise.
11529 * eval.c (ptrmath_type_p): Likewise.
11530 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11531 * gdbtypes.c (alloc_type_arch): Likewise.
11532 (alloc_type_instance): Likewise.
11533 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11534 * inf-child.c (inf_child_can_use_agent): Likewise.
11535 * inflow.c (get_inflow_inferior_data): Likewise.
11536 * infrun.c (save_infcall_suspend_state): Likewise.
11537 * jit.c (jit_reader_load): Likewise.
11538 (get_jit_objfile_data): Likewise.
11539 (get_jit_program_space_data): Likewise.
11540 (jit_object_open_impl): Likewise.
11541 (jit_symtab_open_impl): Likewise.
11542 (jit_block_open_impl): Likewise.
11543 (jit_frame_sniffer): Likewise.
11544 * linux-fork.c (add_fork): Likewise.
11545 * maint.c (make_command_stats_cleanup): Likewise.
11546 * objfiles.c (get_objfile_pspace_data): Likewise.
11547 * opencl-lang.c (struct lval_closure): Likewise.
11548 * osdata.c (osdata_start_osdata): Likewise.
11549 * progspace.c (new_address_space): Likewise.
11550 (add_program_space): Likewise.
11551 * remote-sim.c (get_sim_inferior_data): Likewise.
11552 * sh-tdep.c (sh_gdbarch_init): Likewise.
11553 * skip.c (Ignore): Likewise.
11554 (skip_delete_command): Likewise.
11555 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11556 (library_list_start_library): Likewise.
11557 (solib_aix_current_sos): Likewise.
11558 * solib-darwin.c (get_darwin_info): Likewise.
11559 (darwin_current_sos): Likewise.
11560 * solib-dsbt.c (get_dsbt_info): Likewise.
11561 * solib-ia64-hpux.c (new_so_list): Likewise.
11562 (ia64_hpux_get_solib_linkage_addr): Likewise.
11563 * solib-spu.c (append_ocl_sos): Likewise.
11564 (spu_current_sos): Likewise.
11565 * solib-svr4.c (get_svr4_info): Likewise.
11566 (svr4_keep_data_in_core): Likewise.
11567 (library_list_start_library): Likewise.
11568 (svr4_default_sos): Likewise.
11569 (svr4_read_so_list): Likewise.
11570 * solib-target.c (library_list_start_library): Likewise.
11571 (solib_target_current_sos): Likewise.
11572 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11573 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11574 * symfile.c (default_symfile_segments): Likewise.
11575 * target-descriptions.c (tdesc_data_init): Likewise.
11576 (tdesc_create_reg): Likewise.
11577 (struct tdesc_type *): Likewise.
11578 (tdesc_create_vector): Likewise.
11579 (tdesc_set_struct_size): Likewise.
11580 (struct tdesc_type *): Likewise.
11581 (tdesc_free_feature): Likewise.
11582 (tdesc_create_feature): Likewise.
11583 * windows-nat.c (windows_add_thread): Likewise.
11584 (windows_make_so): Likewise.
11585 * xml-support.c (gdb_xml_body_text): Likewise.
11586 (gdb_xml_create_parser_and_cleanup): Likewise.
11587 (xml_process_xincludes): Likewise.
11588 * xml-syscall.c (allocate_syscalls_info): Likewise.
11589 (syscall_create_syscall_desc): Likewise.
11590
5acfdbae
SDJ
115912014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11592
11593 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11594 function, with code from i386_stap_parse_special_token.
11595 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11596 (i386_stap_parse_special_token): Move code to the two functions
11597 above; simplify it.
11598
0000e5cc
PA
115992014-01-09 Pedro Alves <palves@redhat.com>
11600 Hui Zhu <hui@codesourcery.com>
11601
11602 PR gdb/16101
11603 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11604 bp_err_string. Don't mark the location shlib_disabled if the
11605 error thrown wasn't a generic or memory error. Catch errors
11606 thrown while inserting breakpoints in overlayed code. Output
11607 error message of software breakpoints.
11608 * remote.c (remote_insert_breakpoint): If this breakpoint has
11609 target-side commands but this stub doesn't support Z0 packets,
11610 throw NOT_SUPPORTED_ERROR error.
11611 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11612 * target.h (target_insert_breakpoint): Extend comment.
11613 (target_insert_hw_breakpoint): Add comment.
11614
b7ea362b
PA
116152014-01-08 Pedro Alves <palves@redhat.com>
11616
11617 * remote.c (remote_add_thread): Add threads silently if starting
11618 up.
11619 (remote_notice_new_inferior): If in all-stop, and starting up,
11620 don't call notice_new_inferior.
11621 (get_current_thread): New function, factored out from ...
11622 (add_current_inferior_and_thread): ... this. Adjust.
11623 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11624 found any thread, then select the remote's current thread as GDB's
11625 current thread too.
11626
b7bba001
JB
116272014-01-08 Joel Brobecker <brobecker@adacore.com>
11628
11629 * NEWS: Create a new section for the next release branch.
11630 Rename the section of the current branch, now that it has
11631 been cut.
11632
16dfbded
JB
116332014-01-08 Joel Brobecker <brobecker@adacore.com>
11634
11635 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11636 * version.in: Bump version to 7.7.50.DATE-cvs.
11637
22c90ac1
YQ
116382014-01-08 Yao Qi <yao@codesourcery.com>
11639
11640 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11641 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11642 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11643
d64ad97c
YQ
116442014-01-08 Yao Qi <yao@codesourcery.com>
11645
11646 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11647 return value of bfd_get_filename to symbol_file_add_from_bfd.
11648
f93ba80c
PM
116492014-01-08 Pierre Muller <muller@sourceware.org>
11650
11651 Fix PR16201.
11652 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11653 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11654 to prim_record_mininal_symbol_and_info.
11655 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11656 in call to prim_record_minimal_symbol_and_info.
11657 (read_pe_exported_syms): Set index field of section_data.
11658
a4d9ba85
AP
116592014-01-07 Andrew Pinski <apinski@cavium.com>
11660
11661 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11662 * features/aarch64.c: Regenerate.
11663
1b67eb02
AS
116642014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11665
11666 * target.c (return_null): Define.
11667 (update_current_target): Use it instead of return_zero for
11668 functions that return a pointer.
11669
5e3f4fab
EBM
116702014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11671
11672 * source.c (add_path): Fix check for duplicated paths in the previously
11673 included paths.
11674
e2616788
HK
116752014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11676
11677 * ada-lang.c: Remove duplicated include statements.
11678 * alphabsd-nat.c: Ditto.
11679 * amd64-darwin-tdep.c: Ditto.
11680 * amd64fbsd-nat.c: Ditto.
11681 * auto-load.c: Ditto.
11682 * ax-gdb.c: Ditto.
11683 * breakpoint.c: Ditto.
11684 * dbxread.c: Ditto.
11685 * fork-child.c: Ditto.
11686 * gdb_usleep.c: Ditto.
11687 * i386-darwin-tdep.c: Ditto.
11688 * i386fbsd-nat.c: Ditto.
11689 * infcmd.c: Ditto.
11690 * inferior.c: Ditto.
11691 * jv-lang.c: Ditto.
11692 * linux-nat.c: Ditto.
11693 * linux-tdep.c: Ditto.
11694 * m68kbsd-nat.c: Ditto.
11695 * m68klinux-nat.c: Ditto.
11696 * microblaze-tdep.c: Ditto.
11697 * mips-linux-tdep.c: Ditto.
11698 * mn10300-tdep.c: Ditto.
11699 * nto-tdep.c: Ditto.
11700 * opencl-lang.c: Ditto.
11701 * osdata.c: Ditto.
11702 * printcmd.c: Ditto.
11703 * regcache.c: Ditto.
11704 * remote-m32r-sdi.c: Ditto.
11705 * remote.c: Ditto.
11706 * symfile.c: Ditto.
11707 * symtab.c: Ditto.
11708 * tilegx-linux-nat.c: Ditto.
11709 * tilegx-tdep.c: Ditto.
11710 * tracepoint.c: Ditto.
11711 * valops.c: Ditto.
11712 * vaxbsd-nat.c: Ditto.
11713 * windows-nat.c: Ditto.
11714 * xtensa-tdep.c: Ditto.
11715
bd1f7788
YQ
117162014-01-07 Yao Qi <yao@codesourcery.com>
11717
11718 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11719
79301218
JB
117202014-01-07 Yao Qi <yao@codesourcery.com>
11721 Joel Brobecker <brobecker@adacore.com>
11722
11723 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11724 (pdc_write_regs): Likewise.
11725 (fetch_regs_kernel_thread): Likewise.
11726 (store_regs_kernel_thread): Likewise.
11727
117282014-01-07 Joel Brobecker <brobecker@adacore.com>
11729
11730 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11731 tagged type objects to their actual type.
11732
8e355c5d
JB
117332014-01-07 Joel Brobecker <brobecker@adacore.com>
11734
11735 * ada-valprint.c (print_field_values): Add "language" parameter.
11736 Update calls to print_field_values and print_variant_part.
11737 Pass new parameter "language" in call to val_print instead
11738 of "current_language". Replace call to ada_val_print by call
11739 to val_print.
11740 (print_variant_part): Add "language" parameter.
11741 (ada_val_print_struct_union): Update call to print_field_values.
11742
4fbf5aa5
JB
117432014-01-07 Joel Brobecker <brobecker@adacore.com>
11744
11745 * ada-valprint.c (ui_memcpy): Delete.
11746 (ada_print_floating): Update documentation. Add empty line
11747 between between function documentation and implementation.
11748 Delete variable "buffer". Use ui_file_xstrdup in place of
11749 ui_file_put. Minor adjustments following this change.
11750
71855601
JB
117512014-01-07 Joel Brobecker <brobecker@adacore.com>
11752
11753 * ada-valprint.c (ada_val_print_string): New function,
11754 extracted from ada_val_print_array.
11755 (ada_val_print_array): Replace extracted code by call
11756 to ada_val_print_string followed by a return. Move
11757 "else" branch to the function's top block.
11758
4eb27a30
JB
117592014-01-07 Joel Brobecker <brobecker@adacore.com>
11760
11761 * ada-valprint.c (ada_val_print_array): Move implementation
11762 down. Rename parameter "offset" and "val" into "offset_aligned"
11763 and "original_value" respectively. Add parameter "offset".
11764
34b27950
JB
117652014-01-07 Joel Brobecker <brobecker@adacore.com>
11766
11767 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11768 re-organizing the code. Change the "???" message printed
11769 when target type is a TYPE_CODE_UNDEF into
11770 "<ref to undefined type>".
11771
079e4591
JB
117722014-01-07 Joel Brobecker <brobecker@adacore.com>
11773
11774 * ada-valprint.c (print_record): Delete, implementation inlined...
11775 (ada_val_print_struct_union): ... here. Remove call to
11776 ada_check_typedef in inlined implementation.
11777
8004dfd1
JB
117782014-01-07 Joel Brobecker <brobecker@adacore.com>
11779
11780 * ada-valprint.c (ada_val_print_gnat_array): New function,
11781 extracted from ada_val_print_1;
11782 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11783 (ada_val_print_flt, ada_val_print_struct_union)
11784 (ada_val_print_ref): Likewise.
11785 (ada_val_print_1): Delete variables i and elttype.
11786 Replace extracted-out code by call to corresponding
11787 new functions.
11788
760a2db0
JB
117892014-01-07 Joel Brobecker <brobecker@adacore.com>
11790
11791 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11792
3a92c861
JB
117932014-01-07 Joel Brobecker <brobecker@adacore.com>
11794
11795 * ada-valprint.c (ada_val_print_1): Replace calls to
11796 ada_val_print_1 by calls to val_print.
11797
cd1630f9
JB
117982014-01-07 Joel Brobecker <brobecker@adacore.com>
11799
11800 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11801 Update calls to self accordingly. Replace calls to c_val_print
11802 by calls to val_print.
11803
bdf779a0
JB
118042014-01-07 Joel Brobecker <brobecker@adacore.com>
11805
11806 * ada-valprint.c (print_record): Delete declaration.
11807 (adjust_type_signedness, ada_val_print_1): Likewise.
11808 (ada_val_print): Move function implementation down.
11809 (print_variant_part, print_field_values, print_record):
11810 Move function implementation up.
11811
c0d48811
JB
118122014-01-07 Joel Brobecker <brobecker@adacore.com>
11813
11814 * python/py-type.c (typy_get_name): New function.
11815 (type_object_getset): Add entry for attribute "name".
11816 * NEWS: Add entry mentioning this new attribute.
11817
c26e9cbb
YQ
118182014-01-07 Yao Qi <yao@codesourcery.com>
11819
11820 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11821 statement.
11822
0cc6f43d
YQ
118232014-01-07 Yao Qi <yao@codesourcery.com>
11824
11825 * gnu-nat.c (info_port_rights): Add qualifier const to
11826 argument args.
11827
eec03155
YQ
118282014-01-07 Yao Qi <yao@codesourcery.com>
11829
11830 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11831
f04a82ef
YQ
118322014-01-07 Yao Qi <yao@codesourcery.com>
11833
11834 * gnu-nat.c (make_inf) Update declaration.
11835 (make_inf): Make it static.
11836 (inf_set_traced): Likewise.
11837 (inf_port_to_thread, inf_task_died_status): Likewise.
11838
d57dda0a
YQ
118392014-01-07 Yao Qi <yao@codesourcery.com>
11840
11841 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11842
3aa8c969
YQ
118432014-01-07 Yao Qi <yao@codesourcery.com>
11844
11845 * gnu-nat.c (_initialize_gnu_nat): Declare.
11846
94123b4f
YQ
118472014-01-07 Yao Qi <yao@codesourcery.com>
11848
11849 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11850 'enum bfd_endian'.
11851 (struct gdbarch_info) <byte_order>: Change type to
11852 'enum bfd_endian'.
11853 <byte_order_for_code>: Likewise.
11854 * gdbarch.c, gdbarch.h: Regenerated.
11855
dc81d70a
TT
118562014-01-06 Sasha Smundak <asmundak@google.com>
11857
11858 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11859
cc2f3c35
TT
118602014-01-06 Tom Tromey <tromey@redhat.com>
11861
11862 * doublest.c (convert_doublest_to_floatformat): Use const, not
11863 CONST.
11864 * somread.c (som_symtab_read): Likewise.
11865
adcf2eed
HZ
118662014-01-07 Hui Zhu <hui@codesourcery.com>
11867
11868 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11869 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11870 (gdb_bfd_fopen): Ditto.
11871 (gdb_bfd_openr): Ditto.
11872 (gdb_bfd_openw): Ditto.
11873 (gdb_bfd_openr_iovec): Ditto.
11874 (gdb_bfd_fdopenr): Ditto.
11875 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11876 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11877 with xstrdup.
11878 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11879 with xstrdup.
11880 * symfile-mem.c (symbol_file_add_from_memory): Removed
11881 gdb_bfd_stash_filename.
11882
50722198
DE
118832014-01-03 Doug Evans <dje@google.com>
11884
11885 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11886 output.
11887
2fa4b862
JB
118882014-01-01 Joel Brobecker <brobecker@adacore.com>
11889
11890 Update year range in copyright notice of all files.
11891
28498c42
JB
118922014-01-01 Joel Brobecker <brobecker@adacore.com>
11893
11894 * top.c (print_gdb_version): Set copyright year to 2014.
11895
7b6e1046
JB
118962014-01-01 Joel Brobecker <brobecker@adacore.com>
11897
11898 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11899
df96af55 11900For older changes see ChangeLog-2013.
c906108c
SS
11901\f
11902Local Variables:
11903mode: change-log
11904left-margin: 8
11905fill-column: 74
11906version-control: never
57da7796 11907coding: utf-8
c906108c 11908End:
This page took 2.508689 seconds and 4 git commands to generate.