]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Avoid compiler warnings about incomplete parameter types.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cb039ba4
EZ
12014-08-15 Eli Zaretskii <eliz@gnu.org>
2
3 * dcache.h: Include target.h, to avoid compile time warnings.
4
eb7a547a
JB
52014-08-15 Joel Brobecker <brobecker@adacore.com>
6
7 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
8 frame_info" partial declaration.
9 * gdbarch.h: Regenerate.
10
783cecc8
YQ
112014-08-15 Yao Qi <yao@codesourcery.com>
12
13 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
14 Add parameter 'decode_for_pst_p'. Callers update.
15
65c749e7
YQ
162014-08-13 Yao Qi <yao@codesourcery.com>
17
18 PR build/17104
19 * configure.ac: Use local variable 'pos'.
20 * configure: Regenerated.
21
d769e349
DE
222014-08-11 Doug Evans <dje@google.com>
23
24 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
25 message, it is redundant with "Reading symbols from ..." message.
26
24f1235e
DE
272014-08-10 Doug Evans <xdje42@gmail.com>
28
29 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
30
dcd2e6ef
YQ
312014-08-09 Yao Qi <yao@codesourcery.com>
32
33 PR remote/9053
34 * remote.c (remote_xfer_partial): Remove dead code.
35
070bdf0b
AA
362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
37
38 * ia64-linux-tdep.c: Include "regset.h".
39 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
40 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
41 (ia64_linux_supply_fpregset): New function.
42 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
43 (ia64_linux_regset_from_core_section): New function.
44 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
45 method.
46
08f9f542
AA
472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
48
49 * m68klinux-tdep.c: Include "regset.h".
50 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
51 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
52 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
53 (m68k_linux_regset_from_core_section): New function.
54 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
55 method.
56
8f1cee41
AA
572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
58
59 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
60 function. Move logic to...
61 (tilegx_linux_regmap): ... this new register map.
62 (tilegx_linux_regset): Refer to register map, replace supply
63 method by regcache_supply_regset, and add collect method.
64 * tilegx-tdep.h (enum tilegx_regnum): New enum value
65 TILEGX_FIRST_EASY_REGNUM.
66
c5741217
AA
672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
68
69 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
70 that calls regcache_supply_regset and handles the EPC register
71 separately. Move main logic to...
72 (score7_linux_gregmap): ... this new register map.
73 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
74 (score7_linux_gregset): Refer to register map. Add collect method.
75 (score7_linux_regset_from_core_section): Replace
76 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
77 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
78 (struct regset): Delete unused forward declaraction.
79 (struct pt_regs): Delete structure definition.
80 (elf_gregset_t): Delete typedef.
81
81580573
AA
822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
83
84 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
85 (nios2_core_regset): Add collect method.
86
ba199d7d
AA
872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
88
89 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
90 platform-independent and don't write to read-only input buffer.
91 (m32r_linux_collect_gregset): New function.
92 (m32r_linux_gregset): Add collect method.
93
0006a9da
AA
942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
95
96 * hppa-linux-tdep.c (greg_map): Rename to...
97 (hppa_linux_gregmap): ... this. Also convert to
98 regcache_map_entry format.
99 (hppa_linux_supply_regset): Delete function.
100 (hppa_linux_supply_fpregset): Delete function. Move logic to...
101 (hppa_linux_fpregmap): ... this new register map.
102 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
103 register map, replace supply method by regcache_supply_regset, and
104 add collect method regcache_collect_regset.
105
901e1b23
AA
1062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
107
108 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
109 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
110 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
111 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
112 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
113 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
114 (frv_linux_supply_gregset): Replace main logic by call to
115 regcache_supply_regset, but keep clearing gr32-gr63.
116 (frv_linux_supply_fpregset): Delete function.
117 (frv_linux_gregset): Refer to appropriate register map and add
118 regcache_collect_regset as the collect method.
119 (frv_linux_fpregset): Likewise. Also exchange the supply method
120 by regcache_supply_regset.
121
1d6e7555
AA
1222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
123
124 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
125 by call to alpha_supply_int_regs.
126 (alpha_linux_collect_gregset): New function.
127 (alpha_linux_supply_fpregset): Replace logic by call to
128 alpha_supply_fp_regs.
129 (alpha_linux_collect_fpregset): New function.
130 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
131
d4d793bf
AA
1322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
133
134 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
135 by call to regcache_collect_regset.
136 (supply_gregset, supply_fpregset): Call regcache_supply_regset
137 instead of aarch64_linux_supply_gregset/_fpregset.
138 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
139 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
140 header file instead.
141 (aarch64_linux_supply_gregset, supply_gregset_from_core)
142 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
143 functions. Move logic to ...
144 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
145 register maps.
146 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
147 refer to new register maps, replace *_regset_from_core by
148 regcache_supply_regset, and also use regcache_collect_regset.
149 * aarch64-linux-tdep.h: Include "regset.h".
150 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
151 Delete prototypes.
152 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
153 macros, moved from C source file.
154 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
155 variable declarations.
156
99b7da5d
AA
1572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
158
159 * s390-linux-nat.c: Include "regset.h".
160 (regmap_gregset): Delete macro.
161 (s390_64_regmap_gregset): New register map for
162 regcache_supply/_collect_regset.
163 (s390_64_gregset): New regset.
164 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
165 (regmap_fpregset): Delete macro.
166 (s390_native_supply, s390_native_collect): Delete functions.
167 (supply_gregset, fill_gregset): Replace s390-specific regmap
168 handling by a call to regcache_supply/_collect_regset.
169 (supply_fpregset, fill_fpregset): Call regcache_supply/
170 _collect_regset instead of s390_native_supply/_collect.
171 (fetch_regset, store_regset): Likewise. Also change the last
172 parameter to a regset instead of a regmap.
173 (s390_linux_fetch_inferior_registers)
174 (390_linux_store_inferior_registers): Adjust last parameter in
175 calls to fetch_regset and store_regset.
176 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
177 (s390_gregmap): ... this. Also make static const and convert to
178 regcache_map_entry format.
179 (s390x_regmap_gregset): Delete.
180 (s390_regmap_fpregset): Rename to...
181 (s390_fpregmap): ... this. Make static const and convert to
182 regcache_map_entry format.
183 (s390_regmap_upper, s390_regmap_last_break)
184 (s390x_regmap_last_break, s390_regmap_system_call)
185 (s390_regmap_tdb): Likewise.
186 (s390_supply_regset, s390_collect_regset): Remove functions.
187 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
188 s390_supply_regset.
189 (s390_gregset, s390_fpregset, s390_upper_regset)
190 (s390_last_break_regset, s390x_last_break_regset)
191 (s390_system_call_regset, s390_tdb_regset): Make global and
192 replace s390_supply/_collect_regset by regcache_supply/
193 _collect_regset.
194 (s390x_gregset): Delete.
195 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
196 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
197 (s390_regmap_fpregset, s390_regmap_last_break)
198 (s390x_regmap_last_break, s390_regmap_system_call)
199 (s390_regmap_tdb): Delete global variable declarations.
200 (s390_gregset, s390_fpregset, s390_last_break_regset)
201 (s390x_last_break_regset, s390_system_call_regset)
202 (s390_tdb_regset): New global variable declarations.
203
0b309272
AA
2042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
205
206 * regcache.c: Include "regset.h".
207 (regcache_transfer_regset): New local function.
208 (regcache_supply_regset, regcache_collect_regset): New functions.
209 * regcache.h (struct regcache_map_entry): New structure.
210 (REGCACHE_MAP_SKIP): New enum value.
211 (regcache_supply_regset, regcache_collect_regset): New prototypes.
212
7fefa8d7
AA
2132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
214
215 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
216 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
217 (ppc_linux_collect_gregset ): Likewise.
218 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
219 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
220 (ppc_collect_vrregset): Likewise.
221 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
222 Likewise.
223
96c4f946
YQ
2242014-08-07 Yao Qi <yao@codesourcery.com>
225
226 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
227 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
228 * remote.c (remote_read_bytes): Likewise.
229
fffbe6a8
YQ
2302014-08-07 Yao Qi <yao@codesourcery.com>
231
232 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
233
5ee8a82c
YQ
2342014-08-07 Yao Qi <yao@codesourcery.com>
235
236 PR remote/17230
237 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
238 TARGET_XFER_OK instead of 0.
239
bb974a24
GB
2402014-08-07 Gary Benson <gbenson@redhat.com>
241
242 * common/common-defs.h: Include errno.h.
243 * defs.h: Do not include errno.h.
244 * ada-typeprint.c: Likewise.
245 * c-typeprint.c: Likewise.
246 * core-regset.c: Likewise.
247 * corefile.c: Likewise.
248 * corelow.c: Likewise.
249 * event-loop.c: Likewise.
250 * f-typeprint.c: Likewise.
251 * gnu-nat.c: Likewise.
252 * go32-nat.c: Likewise.
253 * i386gnu-nat.c: Likewise.
254 * m2-typeprint.c: Likewise.
255 * nat/linux-btrace.c: Likewise.
256 * p-typeprint.c: Likewise.
257 * procfs.c: Likewise.
258 * remote-sim.c: Likewise.
259 * rs6000-nat.c: Likewise.
260 * target.c: Likewise.
261 * typeprint.c: Likewise.
262 * ui-file.c: Likewise.
263 * valops.c: Likewise.
264 * valprint.c: Likewise.
265
6d3d12eb
GB
2662014-08-07 Gary Benson <gbenson@redhat.com>
267
268 * common/common-defs.h: Include string.h.
269 * aarch64-tdep.c: Do not include string.h.
270 * ada-exp.y: Likewise.
271 * ada-lang.c: Likewise.
272 * ada-lex.l: Likewise.
273 * ada-typeprint.c: Likewise.
274 * ada-valprint.c: Likewise.
275 * aix-thread.c: Likewise.
276 * alpha-linux-tdep.c: Likewise.
277 * alpha-mdebug-tdep.c: Likewise.
278 * alpha-nat.c: Likewise.
279 * alpha-osf1-tdep.c: Likewise.
280 * alpha-tdep.c: Likewise.
281 * alphanbsd-tdep.c: Likewise.
282 * amd64-dicos-tdep.c: Likewise.
283 * amd64-linux-tdep.c: Likewise.
284 * amd64-nat.c: Likewise.
285 * amd64-sol2-tdep.c: Likewise.
286 * amd64fbsd-tdep.c: Likewise.
287 * amd64obsd-tdep.c: Likewise.
288 * arch-utils.c: Likewise.
289 * arm-linux-nat.c: Likewise.
290 * arm-linux-tdep.c: Likewise.
291 * arm-tdep.c: Likewise.
292 * arm-wince-tdep.c: Likewise.
293 * armbsd-tdep.c: Likewise.
294 * armnbsd-nat.c: Likewise.
295 * armnbsd-tdep.c: Likewise.
296 * armobsd-tdep.c: Likewise.
297 * avr-tdep.c: Likewise.
298 * ax-gdb.c: Likewise.
299 * ax-general.c: Likewise.
300 * bcache.c: Likewise.
301 * bfin-tdep.c: Likewise.
302 * breakpoint.c: Likewise.
303 * build-id.c: Likewise.
304 * buildsym.c: Likewise.
305 * c-exp.y: Likewise.
306 * c-lang.c: Likewise.
307 * c-typeprint.c: Likewise.
308 * c-valprint.c: Likewise.
309 * charset.c: Likewise.
310 * cli-out.c: Likewise.
311 * cli/cli-cmds.c: Likewise.
312 * cli/cli-decode.c: Likewise.
313 * cli/cli-dump.c: Likewise.
314 * cli/cli-interp.c: Likewise.
315 * cli/cli-logging.c: Likewise.
316 * cli/cli-script.c: Likewise.
317 * cli/cli-setshow.c: Likewise.
318 * cli/cli-utils.c: Likewise.
319 * coffread.c: Likewise.
320 * common/agent.c: Likewise.
321 * common/buffer.c: Likewise.
322 * common/buffer.h: Likewise.
323 * common/common-utils.c: Likewise.
324 * common/filestuff.c: Likewise.
325 * common/filestuff.c: Likewise.
326 * common/format.c: Likewise.
327 * common/print-utils.c: Likewise.
328 * common/rsp-low.c: Likewise.
329 * common/signals.c: Likewise.
330 * common/vec.h: Likewise.
331 * common/xml-utils.c: Likewise.
332 * core-regset.c: Likewise.
333 * corefile.c: Likewise.
334 * corelow.c: Likewise.
335 * cp-abi.c: Likewise.
336 * cp-name-parser.y: Likewise.
337 * cp-support.c: Likewise.
338 * cp-valprint.c: Likewise.
339 * cris-tdep.c: Likewise.
340 * d-exp.y: Likewise.
341 * darwin-nat.c: Likewise.
342 * dbxread.c: Likewise.
343 * dcache.c: Likewise.
344 * demangle.c: Likewise.
345 * dicos-tdep.c: Likewise.
346 * disasm.c: Likewise.
347 * doublest.c: Likewise.
348 * dsrec.c: Likewise.
349 * dummy-frame.c: Likewise.
350 * dwarf2-frame.c: Likewise.
351 * dwarf2loc.c: Likewise.
352 * dwarf2read.c: Likewise.
353 * elfread.c: Likewise.
354 * environ.c: Likewise.
355 * eval.c: Likewise.
356 * event-loop.c: Likewise.
357 * exceptions.c: Likewise.
358 * exec.c: Likewise.
359 * expprint.c: Likewise.
360 * f-exp.y: Likewise.
361 * f-lang.c: Likewise.
362 * f-typeprint.c: Likewise.
363 * f-valprint.c: Likewise.
364 * fbsd-nat.c: Likewise.
365 * findcmd.c: Likewise.
366 * findvar.c: Likewise.
367 * fork-child.c: Likewise.
368 * frame.c: Likewise.
369 * frv-linux-tdep.c: Likewise.
370 * frv-tdep.c: Likewise.
371 * gdb.c: Likewise.
372 * gdb_bfd.c: Likewise.
373 * gdbarch.c: Likewise.
374 * gdbarch.sh: Likewise.
375 * gdbtypes.c: Likewise.
376 * gnu-nat.c: Likewise.
377 * gnu-v2-abi.c: Likewise.
378 * gnu-v3-abi.c: Likewise.
379 * go-exp.y: Likewise.
380 * go-lang.c: Likewise.
381 * go32-nat.c: Likewise.
382 * guile/guile.c: Likewise.
383 * guile/scm-auto-load.c: Likewise.
384 * hppa-hpux-tdep.c: Likewise.
385 * hppa-linux-nat.c: Likewise.
386 * hppanbsd-tdep.c: Likewise.
387 * hppaobsd-tdep.c: Likewise.
388 * i386-cygwin-tdep.c: Likewise.
389 * i386-dicos-tdep.c: Likewise.
390 * i386-linux-tdep.c: Likewise.
391 * i386-nto-tdep.c: Likewise.
392 * i386-sol2-tdep.c: Likewise.
393 * i386-tdep.c: Likewise.
394 * i386bsd-tdep.c: Likewise.
395 * i386gnu-nat.c: Likewise.
396 * i386nbsd-tdep.c: Likewise.
397 * i386obsd-tdep.c: Likewise.
398 * i387-tdep.c: Likewise.
399 * ia64-libunwind-tdep.c: Likewise.
400 * ia64-linux-nat.c: Likewise.
401 * inf-child.c: Likewise.
402 * inf-ptrace.c: Likewise.
403 * inf-ttrace.c: Likewise.
404 * infcall.c: Likewise.
405 * infcmd.c: Likewise.
406 * inflow.c: Likewise.
407 * infrun.c: Likewise.
408 * interps.c: Likewise.
409 * iq2000-tdep.c: Likewise.
410 * irix5-nat.c: Likewise.
411 * jv-exp.y: Likewise.
412 * jv-lang.c: Likewise.
413 * jv-typeprint.c: Likewise.
414 * jv-valprint.c: Likewise.
415 * language.c: Likewise.
416 * linux-fork.c: Likewise.
417 * linux-nat.c: Likewise.
418 * lm32-tdep.c: Likewise.
419 * m2-exp.y: Likewise.
420 * m2-typeprint.c: Likewise.
421 * m32c-tdep.c: Likewise.
422 * m32r-linux-nat.c: Likewise.
423 * m32r-linux-tdep.c: Likewise.
424 * m32r-rom.c: Likewise.
425 * m32r-tdep.c: Likewise.
426 * m68hc11-tdep.c: Likewise.
427 * m68k-tdep.c: Likewise.
428 * m68kbsd-tdep.c: Likewise.
429 * m68klinux-nat.c: Likewise.
430 * m68klinux-tdep.c: Likewise.
431 * m88k-tdep.c: Likewise.
432 * machoread.c: Likewise.
433 * macrocmd.c: Likewise.
434 * main.c: Likewise.
435 * mdebugread.c: Likewise.
436 * mem-break.c: Likewise.
437 * memattr.c: Likewise.
438 * memory-map.c: Likewise.
439 * mep-tdep.c: Likewise.
440 * mi/mi-cmd-break.c: Likewise.
441 * mi/mi-cmd-disas.c: Likewise.
442 * mi/mi-cmd-env.c: Likewise.
443 * mi/mi-cmd-stack.c: Likewise.
444 * mi/mi-cmd-var.c: Likewise.
445 * mi/mi-cmds.c: Likewise.
446 * mi/mi-console.c: Likewise.
447 * mi/mi-getopt.c: Likewise.
448 * mi/mi-interp.c: Likewise.
449 * mi/mi-main.c: Likewise.
450 * mi/mi-parse.c: Likewise.
451 * microblaze-rom.c: Likewise.
452 * microblaze-tdep.c: Likewise.
453 * mingw-hdep.c: Likewise.
454 * minidebug.c: Likewise.
455 * minsyms.c: Likewise.
456 * mips-irix-tdep.c: Likewise.
457 * mips-linux-tdep.c: Likewise.
458 * mips-tdep.c: Likewise.
459 * mips64obsd-tdep.c: Likewise.
460 * mipsnbsd-tdep.c: Likewise.
461 * mipsread.c: Likewise.
462 * mn10300-linux-tdep.c: Likewise.
463 * mn10300-tdep.c: Likewise.
464 * monitor.c: Likewise.
465 * moxie-tdep.c: Likewise.
466 * mt-tdep.c: Likewise.
467 * nat/linux-btrace.c: Likewise.
468 * nat/linux-osdata.c: Likewise.
469 * nat/linux-procfs.c: Likewise.
470 * nat/linux-ptrace.c: Likewise.
471 * nat/linux-waitpid.c: Likewise.
472 * nbsd-tdep.c: Likewise.
473 * nios2-linux-tdep.c: Likewise.
474 * nto-procfs.c: Likewise.
475 * nto-tdep.c: Likewise.
476 * objc-lang.c: Likewise.
477 * objfiles.c: Likewise.
478 * opencl-lang.c: Likewise.
479 * osabi.c: Likewise.
480 * osdata.c: Likewise.
481 * p-exp.y: Likewise.
482 * p-lang.c: Likewise.
483 * p-typeprint.c: Likewise.
484 * parse.c: Likewise.
485 * posix-hdep.c: Likewise.
486 * ppc-linux-nat.c: Likewise.
487 * ppc-sysv-tdep.c: Likewise.
488 * ppcfbsd-tdep.c: Likewise.
489 * ppcnbsd-tdep.c: Likewise.
490 * ppcobsd-tdep.c: Likewise.
491 * printcmd.c: Likewise.
492 * procfs.c: Likewise.
493 * prologue-value.c: Likewise.
494 * python/py-auto-load.c: Likewise.
495 * python/py-gdb-readline.c: Likewise.
496 * ravenscar-thread.c: Likewise.
497 * regcache.c: Likewise.
498 * registry.c: Likewise.
499 * remote-fileio.c: Likewise.
500 * remote-m32r-sdi.c: Likewise.
501 * remote-mips.c: Likewise.
502 * remote-notif.c: Likewise.
503 * remote-sim.c: Likewise.
504 * remote.c: Likewise.
505 * reverse.c: Likewise.
506 * rs6000-aix-tdep.c: Likewise.
507 * ser-base.c: Likewise.
508 * ser-go32.c: Likewise.
509 * ser-mingw.c: Likewise.
510 * ser-pipe.c: Likewise.
511 * ser-tcp.c: Likewise.
512 * ser-unix.c: Likewise.
513 * serial.c: Likewise.
514 * sh-tdep.c: Likewise.
515 * sh64-tdep.c: Likewise.
516 * shnbsd-tdep.c: Likewise.
517 * skip.c: Likewise.
518 * sol-thread.c: Likewise.
519 * solib-dsbt.c: Likewise.
520 * solib-frv.c: Likewise.
521 * solib-osf.c: Likewise.
522 * solib-som.c: Likewise.
523 * solib-spu.c: Likewise.
524 * solib-target.c: Likewise.
525 * solib.c: Likewise.
526 * somread.c: Likewise.
527 * source.c: Likewise.
528 * sparc-nat.c: Likewise.
529 * sparc-sol2-tdep.c: Likewise.
530 * sparc-tdep.c: Likewise.
531 * sparc64-tdep.c: Likewise.
532 * sparc64fbsd-tdep.c: Likewise.
533 * sparc64nbsd-tdep.c: Likewise.
534 * sparcnbsd-tdep.c: Likewise.
535 * spu-linux-nat.c: Likewise.
536 * spu-multiarch.c: Likewise.
537 * spu-tdep.c: Likewise.
538 * stabsread.c: Likewise.
539 * stack.c: Likewise.
540 * std-regs.c: Likewise.
541 * symfile.c: Likewise.
542 * symmisc.c: Likewise.
543 * symtab.c: Likewise.
544 * target.c: Likewise.
545 * thread.c: Likewise.
546 * tilegx-linux-nat.c: Likewise.
547 * tilegx-tdep.c: Likewise.
548 * top.c: Likewise.
549 * tracepoint.c: Likewise.
550 * tui/tui-command.c: Likewise.
551 * tui/tui-data.c: Likewise.
552 * tui/tui-disasm.c: Likewise.
553 * tui/tui-file.c: Likewise.
554 * tui/tui-layout.c: Likewise.
555 * tui/tui-out.c: Likewise.
556 * tui/tui-regs.c: Likewise.
557 * tui/tui-source.c: Likewise.
558 * tui/tui-stack.c: Likewise.
559 * tui/tui-win.c: Likewise.
560 * tui/tui-windata.c: Likewise.
561 * tui/tui-winsource.c: Likewise.
562 * typeprint.c: Likewise.
563 * ui-file.c: Likewise.
564 * ui-out.c: Likewise.
565 * user-regs.c: Likewise.
566 * utils.c: Likewise.
567 * v850-tdep.c: Likewise.
568 * valarith.c: Likewise.
569 * valops.c: Likewise.
570 * valprint.c: Likewise.
571 * value.c: Likewise.
572 * varobj.c: Likewise.
573 * vax-tdep.c: Likewise.
574 * vaxnbsd-tdep.c: Likewise.
575 * vaxobsd-tdep.c: Likewise.
576 * windows-nat.c: Likewise.
577 * xcoffread.c: Likewise.
578 * xml-support.c: Likewise.
579 * xstormy16-tdep.c: Likewise.
580 * xtensa-linux-nat.c: Likewise.
581
dccbb609
GB
5822014-08-07 Gary Benson <gbenson@redhat.com>
583
584 * common/common-defs.h: Include gdb_assert.h.
585 * aarch64-tdep.c: Do not include gdb_assert.h.
586 * addrmap.c: Likewise.
587 * aix-thread.c: Likewise.
588 * alpha-linux-tdep.c: Likewise.
589 * alpha-mdebug-tdep.c: Likewise.
590 * alphanbsd-tdep.c: Likewise.
591 * amd64-nat.c: Likewise.
592 * amd64-tdep.c: Likewise.
593 * amd64bsd-nat.c: Likewise.
594 * amd64fbsd-nat.c: Likewise.
595 * amd64fbsd-tdep.c: Likewise.
596 * amd64nbsd-nat.c: Likewise.
597 * amd64nbsd-tdep.c: Likewise.
598 * amd64obsd-nat.c: Likewise.
599 * amd64obsd-tdep.c: Likewise.
600 * arch-utils.c: Likewise.
601 * arm-tdep.c: Likewise.
602 * armbsd-tdep.c: Likewise.
603 * auxv.c: Likewise.
604 * bcache.c: Likewise.
605 * bfin-tdep.c: Likewise.
606 * blockframe.c: Likewise.
607 * breakpoint.c: Likewise.
608 * bsd-kvm.c: Likewise.
609 * bsd-uthread.c: Likewise.
610 * buildsym.c: Likewise.
611 * c-exp.y: Likewise.
612 * c-lang.c: Likewise.
613 * charset.c: Likewise.
614 * cleanups.c: Likewise.
615 * cli-out.c: Likewise.
616 * cli/cli-decode.c: Likewise.
617 * cli/cli-dump.c: Likewise.
618 * cli/cli-logging.c: Likewise.
619 * cli/cli-script.c: Likewise.
620 * cli/cli-utils.c: Likewise.
621 * coffread.c: Likewise.
622 * common/common-utils.c: Likewise.
623 * common/queue.h: Likewise.
624 * common/signals.c: Likewise.
625 * common/vec.h: Likewise.
626 * complaints.c: Likewise.
627 * completer.c: Likewise.
628 * corelow.c: Likewise.
629 * cp-abi.c: Likewise.
630 * cp-name-parser.y: Likewise.
631 * cp-namespace.c: Likewise.
632 * cp-support.c: Likewise.
633 * cris-tdep.c: Likewise.
634 * dbxread.c: Likewise.
635 * dictionary.c: Likewise.
636 * doublest.c: Likewise.
637 * dsrec.c: Likewise.
638 * dummy-frame.c: Likewise.
639 * dwarf2-frame-tailcall.c: Likewise.
640 * dwarf2-frame.c: Likewise.
641 * dwarf2expr.c: Likewise.
642 * dwarf2loc.c: Likewise.
643 * dwarf2read.c: Likewise.
644 * eval.c: Likewise.
645 * event-loop.c: Likewise.
646 * exceptions.c: Likewise.
647 * expprint.c: Likewise.
648 * f-valprint.c: Likewise.
649 * fbsd-nat.c: Likewise.
650 * findvar.c: Likewise.
651 * frame-unwind.c: Likewise.
652 * frame.c: Likewise.
653 * frv-tdep.c: Likewise.
654 * gcore.c: Likewise.
655 * gdb-dlfcn.c: Likewise.
656 * gdb_bfd.c: Likewise.
657 * gdbarch.c: Likewise.
658 * gdbarch.sh: Likewise.
659 * gdbtypes.c: Likewise.
660 * gnu-nat.c: Likewise.
661 * gnu-v3-abi.c: Likewise.
662 * go-lang.c: Likewise.
663 * guile/scm-exception.c: Likewise.
664 * guile/scm-gsmob.c: Likewise.
665 * guile/scm-lazy-string.c: Likewise.
666 * guile/scm-math.c: Likewise.
667 * guile/scm-pretty-print.c: Likewise.
668 * guile/scm-safe-call.c: Likewise.
669 * guile/scm-utils.c: Likewise.
670 * guile/scm-value.c: Likewise.
671 * h8300-tdep.c: Likewise.
672 * hppa-hpux-nat.c: Likewise.
673 * hppa-tdep.c: Likewise.
674 * hppanbsd-tdep.c: Likewise.
675 * hppaobsd-tdep.c: Likewise.
676 * i386-darwin-nat.c: Likewise.
677 * i386-darwin-tdep.c: Likewise.
678 * i386-nto-tdep.c: Likewise.
679 * i386-tdep.c: Likewise.
680 * i386bsd-nat.c: Likewise.
681 * i386fbsd-tdep.c: Likewise.
682 * i386gnu-nat.c: Likewise.
683 * i386nbsd-tdep.c: Likewise.
684 * i386obsd-tdep.c: Likewise.
685 * i387-tdep.c: Likewise.
686 * ia64-libunwind-tdep.c: Likewise.
687 * ia64-tdep.c: Likewise.
688 * inf-ptrace.c: Likewise.
689 * inf-ttrace.c: Likewise.
690 * infcall.c: Likewise.
691 * infcmd.c: Likewise.
692 * infrun.c: Likewise.
693 * inline-frame.c: Likewise.
694 * interps.c: Likewise.
695 * jv-lang.c: Likewise.
696 * jv-typeprint.c: Likewise.
697 * linux-fork.c: Likewise.
698 * linux-nat.c: Likewise.
699 * linux-thread-db.c: Likewise.
700 * m32c-tdep.c: Likewise.
701 * m32r-linux-nat.c: Likewise.
702 * m32r-tdep.c: Likewise.
703 * m68k-tdep.c: Likewise.
704 * m68kbsd-nat.c: Likewise.
705 * m68kbsd-tdep.c: Likewise.
706 * m88k-tdep.c: Likewise.
707 * machoread.c: Likewise.
708 * macroexp.c: Likewise.
709 * macrotab.c: Likewise.
710 * maint.c: Likewise.
711 * mdebugread.c: Likewise.
712 * memory-map.c: Likewise.
713 * mep-tdep.c: Likewise.
714 * mi/mi-common.c: Likewise.
715 * microblaze-tdep.c: Likewise.
716 * mingw-hdep.c: Likewise.
717 * mips-linux-nat.c: Likewise.
718 * mips-linux-tdep.c: Likewise.
719 * mips-tdep.c: Likewise.
720 * mips64obsd-tdep.c: Likewise.
721 * mipsnbsd-tdep.c: Likewise.
722 * mn10300-linux-tdep.c: Likewise.
723 * mn10300-tdep.c: Likewise.
724 * moxie-tdep.c: Likewise.
725 * mt-tdep.c: Likewise.
726 * nat/linux-btrace.c: Likewise.
727 * nat/linux-osdata.c: Likewise.
728 * nat/linux-ptrace.c: Likewise.
729 * nat/mips-linux-watch.c: Likewise.
730 * nios2-linux-tdep.c: Likewise.
731 * nios2-tdep.c: Likewise.
732 * objc-lang.c: Likewise.
733 * objfiles.c: Likewise.
734 * obsd-nat.c: Likewise.
735 * opencl-lang.c: Likewise.
736 * osabi.c: Likewise.
737 * parse.c: Likewise.
738 * ppc-linux-nat.c: Likewise.
739 * ppc-sysv-tdep.c: Likewise.
740 * ppcfbsd-nat.c: Likewise.
741 * ppcfbsd-tdep.c: Likewise.
742 * ppcnbsd-nat.c: Likewise.
743 * ppcnbsd-tdep.c: Likewise.
744 * ppcobsd-nat.c: Likewise.
745 * ppcobsd-tdep.c: Likewise.
746 * printcmd.c: Likewise.
747 * procfs.c: Likewise.
748 * prologue-value.c: Likewise.
749 * psymtab.c: Likewise.
750 * python/py-lazy-string.c: Likewise.
751 * python/py-value.c: Likewise.
752 * regcache.c: Likewise.
753 * reggroups.c: Likewise.
754 * registry.c: Likewise.
755 * remote-sim.c: Likewise.
756 * remote.c: Likewise.
757 * rs6000-aix-tdep.c: Likewise.
758 * rs6000-tdep.c: Likewise.
759 * s390-linux-tdep.c: Likewise.
760 * score-tdep.c: Likewise.
761 * ser-base.c: Likewise.
762 * ser-mingw.c: Likewise.
763 * sh-tdep.c: Likewise.
764 * sh64-tdep.c: Likewise.
765 * solib-darwin.c: Likewise.
766 * solib-spu.c: Likewise.
767 * solib-svr4.c: Likewise.
768 * source.c: Likewise.
769 * sparc-nat.c: Likewise.
770 * sparc-sol2-tdep.c: Likewise.
771 * sparc-tdep.c: Likewise.
772 * sparc64-sol2-tdep.c: Likewise.
773 * sparc64-tdep.c: Likewise.
774 * sparc64fbsd-tdep.c: Likewise.
775 * sparc64nbsd-tdep.c: Likewise.
776 * sparc64obsd-tdep.c: Likewise.
777 * sparcnbsd-tdep.c: Likewise.
778 * sparcobsd-tdep.c: Likewise.
779 * spu-multiarch.c: Likewise.
780 * spu-tdep.c: Likewise.
781 * stabsread.c: Likewise.
782 * stack.c: Likewise.
783 * symfile.c: Likewise.
784 * symtab.c: Likewise.
785 * target-descriptions.c: Likewise.
786 * target-memory.c: Likewise.
787 * target.c: Likewise.
788 * tic6x-linux-tdep.c: Likewise.
789 * tic6x-tdep.c: Likewise.
790 * tilegx-linux-nat.c: Likewise.
791 * tilegx-tdep.c: Likewise.
792 * top.c: Likewise.
793 * tramp-frame.c: Likewise.
794 * tui/tui-out.c: Likewise.
795 * tui/tui-winsource.c: Likewise.
796 * ui-out.c: Likewise.
797 * user-regs.c: Likewise.
798 * utils.c: Likewise.
799 * v850-tdep.c: Likewise.
800 * valops.c: Likewise.
801 * value.c: Likewise.
802 * varobj.c: Likewise.
803 * vax-nat.c: Likewise.
804 * xml-syscall.c: Likewise.
805 * xml-tdesc.c: Likewise.
806 * xstormy16-tdep.c: Likewise.
807 * xtensa-linux-nat.c: Likewise.
808 * xtensa-tdep.c: Likewise.
809
e76df0d0
GB
8102014-08-07 Gary Benson <gbenson@redhat.com>
811
812 * common/common-defs.h: Include common-utils.h.
813 * defs.h: Do not include common-utils.h.
814 * common/gdb_assert.h: Likewise.
815 * darwin-nat.h: Likewise.
816 * nat/linux-btrace.c: Likewise.
817 * target/waitstatus.h: Likewise.
818
4cb9c816
GB
8192014-08-07 Gary Benson <gbenson@redhat.com>
820
821 * common/common-defs.h: Include ptid.h.
822 * defs.h: Do not include ptid.h.
823 * inferior.h: Likewise.
824 * infrun.h: Likewise.
825 * nat/linux-btrace.h: Likewise.
826 * nat/linux-osdata.h: Likewise.
827 * target/waitstatus.h: Likewise.
828
3995eeee
GB
8292014-08-07 Gary Benson <gbenson@redhat.com>
830
831 * common/common-defs.h: Include gdb_locale.h.
832 * defs.h: Do not include gdb_locale.h.
833
cb9f1a9b
GB
8342014-08-07 Gary Benson <gbenson@redhat.com>
835
836 * common/common-defs.h: Include gdb/signals.h.
837 * defs.h: Do not include gdb/signals.h.
838
a5fceff8
GB
8392014-08-07 Gary Benson <gbenson@redhat.com>
840
841 * common/common-defs.h: Include pathmax.h.
842 * defs.h: Do not include pathmax.h.
843
b9391142
GB
8442014-08-07 Gary Benson <gbenson@redhat.com>
845
846 * common/common-defs.h: Include libiberty.h.
847 * defs.h: Do not include libiberty.h.
848 * common/queue.h: Likewise.
849 * cp-name-parser.y: Likewise.
850 * mi/mi-cmd-catch.c: Likewise.
851 * python/python.c: Likewise.
852
0e443c87
GB
8532014-08-07 Gary Benson <gbenson@redhat.com>
854
855 * common/common-defs.h: Include ansidecl.h.
856 * defs.h: Do not include ansidecl.h.
857 * common/buffer.h: Likewise.
858 * common/common-utils.h: Likewise.
859
8ebb3f56
GB
8602014-08-07 Gary Benson <gbenson@redhat.com>
861
862 * common/common-defs.h: Include stddef.h.
863 * defs.h: Do not include stddef.h.
864 * common/common-utils.h: Likewise.
865 * amd64fbsd-nat.c: Likewise.
866 * bcache.c: Likewise.
867 * charset.c: Likewise.
868 * common/buffer.h: Likewise.
869 * common/vec.h: Likewise.
870 * i386bsd-nat.c: Likewise.
871 * nat/linux-btrace.h: Likewise.
872 * ppcfbsd-nat.c: Likewise.
873 * ppcnbsd-tdep.h: Likewise.
874 * ppcobsd-nat.c: Likewise.
875 * ppcobsd-tdep.h: Likewise.
876 * python/py-gdb-readline.c: Likewise.
877
8980bdf6
GB
8782014-08-07 Gary Benson <gbenson@redhat.com>
879
880 * common/common-defs.h: Include stdarg.h.
881 * defs.h: Do not include stdarg.h.
882 * ada-lang.c: Likewise.
883 * common/common-utils.h: Likewise.
884 * guile/scm-string.c: Likewise.
885 * guile/scm-utils.c: Likewise.
886 * m32c-tdep.c: Likewise.
887
d7096f71
GB
8882014-08-07 Gary Benson <gbenson@redhat.com>
889
890 * common/common-defs.h: Include stdlib.h.
891 * defs.h: Do not include stdlib.h.
892 * addrmap.c: Likewise.
893 * bcache.c: Likewise.
894 * common/buffer.c: Likewise.
895 * common/common-utils.c: Likewise.
896 * cp-name-parser.y: Likewise.
897 * go32-nat.c: Likewise.
898 * mn10300-linux-tdep.c: Likewise.
899 * nat/linux-osdata.c: Likewise.
900 * tui/tui.c: Likewise.
901 * windows-nat.c: Likewise.
902
d02f550d
GB
9032014-08-07 Gary Benson <gbenson@redhat.com>
904
905 * common/common-defs.h: Include stdio.h.
906 * defs.h: Do not include stdio.h.
907 * ada-lang.c: Likewise.
908 * common/buffer.c: Likewise.
909 * common/common-utils.c: Likewise.
910 * cp-name-parser.y: Likewise.
911 * gnu-nat.c: Likewise.
912 * go32-nat.c: Likewise.
913 * i386gnu-nat.c: Likewise.
914 * proc-api.c: Likewise.
915 * proc-events.c: Likewise.
916 * proc-flags.c: Likewise.
917 * proc-why.c: Likewise.
918 * python/python-internal.h: Likewise.
919 * target-memory.c: Likewise.
920 * tui/tui-io.c: Likewise.
921 * tui/tui.c: Likewise.
922
b6d7a4bf
SM
9232014-08-06 Simon Marchi <simon.marchi@ericsson.com>
924
925 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
926 (scan_dyntag_auxv): Same.
927
af19829b
YQ
9282014-08-06 Yao Qi <yao@codesourcery.com>
929
930 * amd64-linux-nat.c: Remove duplicated include
931 "x86-linux-nat.h".
932 * i386-linux-nat.c: Likewise.
933
8e07a239
YQ
9342014-08-06 Yao Qi <yao@codesourcery.com>
935
936 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
937 operand" with "Special opcode" in comments.
938
7bfe8241
GB
9392014-08-05 Gary Benson <gbenson@redhat.com>
940
941 * interps.c (initialize_interps): Remove prototype.
942 (interpreter_initialized): Remove static global.
943 (interp_add): Do not call initialize_interps.
944 (initialize_interps): Remove function.
945
d6c95504
GB
9462014-08-05 Gary Benson <gbenson@redhat.com>
947
948 * utils.c (vwarning): Remove spurious va_end.
949
241fd515
AM
9502014-08-05 Alan Modra <amodra@gmail.com>
951
952 * charset.c (convert_between_encodings): Cast result of obstack_base.
953 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
954 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
955 (read_unwind_info): Use size_t for some locals.
956 * jit.c (finalize_symtab): Likewise.
957 * utils.c (hashtab_obstack_allocate): Likewise.
958 * symmisc.c (print_objfile_statistics): Update format strings.
959
dc304a94
JK
9602014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
963 (Changes in GDB 7.8): ... here.
964
3cecbbbe
TT
9652014-08-04 Tom Tromey <tromey@redhat.com>
966
967 * target.c (set_targetdebug): New function.
968 (initialize_targets): Pass set_targetdebug when creating "set
969 debug target".
970
6908c509
JB
9712014-08-01 Joel Brobecker <brobecker@adacore.com>
972
973 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
974 if detecting a variable-sized field that is not the last field.
975 Fix struct type length computation.
976
53e8f97d
JB
9772014-08-01 Joel Brobecker <brobecker@adacore.com>
978
979 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
980 Add debug trace.
981
e068c55d
JB
9822014-08-01 Joel Brobecker <brobecker@adacore.com>
983
984 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
985 Remove "+ 8" offset in computation of CHAIN_VMA.
986
4d4ca2a1
DE
9872014-07-31 Doug Evans <dje@google.com>
988
989 * inflow.c (child_terminal_inferior): Add comment.
990 (child_terminal_ours_for_output): Add comment.
991 (child_terminal_ours): Add comment.
992 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
993 (linux_nat_terminal_ours): Add comment.
994
462f517e
GB
9952014-07-31 Gary Benson <gbenson@redhat.com>
996
997 * common/btrace-common.h: Do not include defs.h or server.h.
998 * nat/mips-linux-watch.h: Likewise.
999 * gdb-dlfcn.h: Do not include defs.h.
1000 * tracefile.h: Likewise.
1001
74228e77
RM
10022014-07-30 Roland McGrath <mcgrathr@google.com>
1003
1004 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1005
014f9477
TT
10062014-07-30 Tom Tromey <tromey@redhat.com>
1007
1008 * bsd-kvm.c (bsd_kvm_open): Constify.
1009 * corelow.c (core_open): Constify.
1010 * ctf.c (ctf_open): Constify.
1011 * dbug-rom.c (dbug_open): Constify.
1012 * exec.c (exec_open): Constify.
1013 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1014 * microblaze-rom.c (picobug_open): Constify.
1015 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1016 Constify.
1017 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1018 * record-btrace.c (record_btrace_open): Constify.
1019 * record-full.c (record_full_core_open_1, record_full_open_1)
1020 (record_full_open): Constify.
1021 * remote-m32r-sdi.c (m32r_open): Constify.
1022 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1023 (rockhopper_open, lsi_open): Constify.
1024 * remote-sim.c (gdbsim_open): Constify.
1025 * remote.c (remote_open, extended_remote_open, remote_open_1):
1026 Constify.
1027 * target.h (struct target_ops) <to_open>: Make "arg" const.
1028 * tracefile-tfile.c (tfile_open): Constify.
1029
e799154c
TT
10302014-07-30 Tom Tromey <tromey@redhat.com>
1031
1032 * breakpoint.c (map_breakpoint_numbers): Update.
1033 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1034 (get_number_const): New function.
1035 (get_number): Rewrite using get_number_const.
1036 (init_number_or_range): Make "string" const.
1037 (number_is_in_list): Make "list" const.
1038 * cli/cli-utils.h (get_number_const): Declare.
1039 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1040 (init_number_or_range, number_is_in_list): Update.
1041 * printcmd.c (map_display_numbers): Update.
1042 * value.c (value_from_history_ref): Constify.
1043 * value.h (value_from_history_ref): Update.
1044
5f08566b
TT
10452014-07-30 Tom Tromey <tromey@redhat.com>
1046
1047 * corefile.c (hook_type, call_extra_exec_file_hooks)
1048 (specify_exec_file_hook): Constify.
1049 * exec.c (exec_file_attach): Make "filename" const.
1050 * gdbcore.h (deprecated_exec_file_display_hook)
1051 (specify_exec_file_hook, exec_file_attach): Constify.
1052 * main.c (captured_main): Use catch_command_errors_const.
1053
8981c758
TT
10542014-07-30 Tom Tromey <tromey@redhat.com>
1055
1056 * target.c (open_target): New function.
1057 (add_target_with_completer, add_deprecated_target_alias): Use
1058 set_cmd_sfunc, set_cmd_context.
1059 (debug_to_open): Remove.
1060 (setup_target_debug): Update.
1061
a1c7835a
YQ
10622014-07-30 Yao Qi <yao@codesourcery.com>
1063
1064 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1065 comments.
1066 * parse.c (exp_iterate): Update comments.
1067
976411d6
GB
10682014-07-30 Gary Benson <gbenson@redhat.com>
1069
1070 * common/common-defs.h: New file.
1071 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1072 * defs.h: Include common-defs.h.
1073 Do not include config.h or build-gnulib/config.h.
1074
5d4848a4
GB
10752014-07-30 Gary Benson <gbenson@redhat.com>
1076
1077 * common/common-utils.h: Do not include config.h.
1078 * nat/linux-btrace.h: Likewise.
1079
d41f6d8e
GB
10802014-07-30 Gary Benson <gbenson@redhat.com>
1081
1082 * btrace.c: Include defs.h.
1083 * common/ptid.c: Include defs.h or server.h as appropriate.
1084 * nat/mips-linux-watch.c: Likewise.
1085
84202f9c
TT
10862014-07-29 Tom Tromey <tromey@redhat.com>
1087
1088 * target.c (target_is_pushed): Simplify.
1089
2530441c
JB
10902014-07-29 Joel Brobecker <brobecker@adacore.com>
1091
1092 GDB 7.8 released.
1093
7e09a223
YQ
10942014-07-29 Yao Qi <yao@codesourcery.com>
1095
1096 PR gdb/17206
1097 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1098
7ebdbe92
DE
10992014-07-28 Doug Evans <xdje42@gmail.com>
1100
1101 PR guile/17203
1102 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1103 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1104 parameters.
1105
f347ffc9
WN
11062014-07-28 Will Newton <will.newton@linaro.org>
1107
1108 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1109 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1110 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1111 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1112 (THUMB2_EABI_SYSCALL): Likewise.
1113 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1114 struct tramp_frame.
1115 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1116 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1117
37c5f1f7
DE
11182014-07-27 Doug Evans <xdje42@gmail.com>
1119
1120 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1121
0c3abbc7
DE
11222014-07-27 Doug Evans <xdje42@gmail.com>
1123
1124 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1125
e76c5d17
DE
11262014-07-26 Ludovic Courtès <ludo@gnu.org>
1127 Doug Evans <xdje42@gmail.com>
1128
1129 PR guile/17146
1130 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1131 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1132 * configure.ac: Try to use guild to compile an scm file, if it fails
1133 then disable guile support.
1134 * configure: Regenerate.
1135 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1136 GUILE_FILE_LIST.
1137 (GUILE_COMPILED_FILES): New variable.
1138 (GUILE_FILES) Update.
1139 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1140 (stamp-guile): Compile scm files.
1141 * guile/guile.c (boot_guile_support): New function.
1142 (standard_throw_args_p): New function.
1143 (print_standard_throw_error, print_throw_error): New functions.
1144 (handle_boot_error): New function.
1145 (initialize_scheme_side): Rewrite to call boot_guile_support.
1146 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1147 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1148
186fcde0
DE
11492014-07-26 Ludovic Courtès <ludo@gnu.org>
1150 Doug Evans <xdje42@gmail.com>
1151
1152 PR guile/17146
1153 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1154 * guile/lib/gdb/support.scm: New file.
1155 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1156 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1157 All uses updated.
1158 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1159 All uses updated.
1160 (%assert-type): Ditto, and renamed to assert-type.
1161 (%exception-print-style): Delete.
1162
4df42755
DE
11632014-07-26 Doug Evans <xdje42@gmail.com>
1164
1165 PR build/17105
1166 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1167 * configure: Regenerate.
1168 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1169 PYTHON_FILES.
1170 (PYTHON_FILES): New variable.
1171 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1172 (GUILE_FILES): New variable.
1173 (stamp-python, install-python, uninstall-python): Handle empty
1174 file list.
1175 (stamp-guile, install-guile, uninstall-guile): Ditto.
1176
ee7333ae
DE
11772014-07-26 Doug Evans <xdje42@gmail.com>
1178
1179 PR guile/17177
1180 * guile/lib/gdb.scm (pretty-printers): Export.
1181 (set-pretty-printers!): Export.
1182 * guile/lib/gdb/printing.scm (gdb module): Update.
1183 (prepend-pretty-printer!, append-pretty-printer!): Update.
1184 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1185 (pretty_printer_list_var): Delete.
1186 (pretty_printer_list): New static global.
1187 (gdbscm_pretty_printers): New function.
1188 (gdbscm_set_pretty_printers_x): New function.
1189 (ppscm_find_pretty_printer_from_gdb): Update.
1190 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1191 (gdbscm_initialize_pretty_printers): Update.
1192
74edf516
DE
11932014-07-26 Doug Evans <xdje42@gmail.com>
1194
1195 PR 17185
1196 * configure.ac: Add check for header gc/gc.h.
1197 Add check for function setenv.
1198 * configure: Regenerate.
1199 * config.in: Regenerate.
1200 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1201
d54398a7
MR
12022014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1203
1204 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1205 variation in gdbarch matching.
1206
ab16fce8
TT
12072014-07-25 Tom Tromey <tromey@redhat.com>
1208
1209 * exec.c (using_exec_ops): Remove.
1210 (exec_close_1): Update. Remove extraneous block, reindent.
1211 (add_target_sections): Use target_is_pushed.
1212
88056fbb
PA
12132014-07-25 Pedro Alves <palves@redhat.com>
1214
1215 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1216 * monitor.c (monitor_create_inferior): Likewise.
1217 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1218 * remote-sim.c (gdbsim_create_inferior): Likewise.
1219 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1220 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1221 * windows-nat.c (do_initial_windows_stuff): Likewise.
1222
70509625
PA
12232014-07-25 Pedro Alves <palves@redhat.com>
1224
1225 * NEWS: Mention signal passing and "signal" command changes.
1226 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1227 comment.
1228 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1229 call.
1230 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1231 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1232 (jump_command): Adjust clear_proceed_status call.
1233 (signal_command): Warn if other thread that are resumed have
1234 signals that will be delivered. Adjust clear_proceed_status call.
1235 (until_next_command, finish_command)
1236 (proceed_after_attach_callback, attach_command_post_wait)
1237 (attach_command): Adjust clear_proceed_status call.
1238 * infrun.c (proceed_after_vfork_done): Likewise.
1239 (proceed_after_attach_callback): Adjust comment.
1240 (clear_proceed_status_thread): Clear stop_signal if not in pass
1241 state.
1242 (clear_proceed_status_callback): Delete.
1243 (clear_proceed_status): New 'step' parameter. Only clear the
1244 proceed status of threads the command being prepared is about to
1245 resume.
1246 (proceed): If passed in an explicit signal, override stop_signal
1247 with it. Don't pass the last stop signal to the thread we're
1248 resuming.
1249 (init_wait_for_inferior): Adjust clear_proceed_status call.
1250 (switch_back_to_stepped_thread): Clear the signal if it should not
1251 be passed.
1252 * infrun.h (clear_proceed_status): New 'step' parameter.
1253 (user_visible_resume_ptid): Add comment.
1254 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1255 signal is in pass state.
1256 * remote.c (append_pending_thread_resumptions): Likewise.
1257 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1258
d8be2939
TT
12592014-07-25 Tom Tromey <tromey@redhat.com>
1260
1261 * target.h (target_stopped_data_address)
1262 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1263 parentheses.
1264
7d0d9d2b
PL
12652014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1266
1267 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1268 comments.
1269 (avr_pointer_to_address): Likewise.
1270
e9e7f724
TT
12712014-07-24 Tom Tromey <tromey@redhat.com>
1272
1273 * monitor.c (compile_pattern): Update.
1274 * target.h (struct target_ops) <to_shortname, to_longname,
1275 to_doc>: Now const.
1276
1947513d
TT
12772014-07-24 Tom Tromey <tromey@redhat.com>
1278
1279 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1280 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1281 (add_info_alias, add_com): Make "doc" const.
1282 (print_doc_line): Make "str" const.
1283 (delete_cmd): Update.
1284 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1285 (print_doc_line): Update.
1286 * cli/cli-script.c (document_command): Update.
1287 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1288 (add_com, add_info, add_info_alias): Update.
1289 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1290 * python/py-cmd.c (cmdpy_destroyer): Update.
1291
64e61d29
TT
12922014-07-24 Tom Tromey <tromey@redhat.com>
1293
1294 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1295 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1296 (help_cmd_list): Constify.
1297 (lookup_cmd): Update.
1298 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1299 const.
1300 (help_cmd_list, apropos_cmd): Update.
1301 * cli/cli-script.c (show_user): Update.
1302 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1303 * cli/cli-setshow.h (cmd_show_list): Update.
1304 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1305 (cmd_show_list): Update.
1306 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1307 * python/py-cmd.c (cmdpy_destroyer): Update.
1308
429e55ea
TT
13092014-07-24 Tom Tromey <tromey@redhat.com>
1310
1311 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1312 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1313 const.
1314 * command.h (deprecate_cmd): Update.
1315 * maint.c (maintenance_do_deprecate): Add casts.
1316
64669f3b
TT
13172014-07-24 Tom Tromey <tromey@redhat.com>
1318
1319 * cli/cli-decode.c (help_cmd): Make parameter "const".
1320 * cli/cli-decode.h (help_cmd): Update.
1321
d3d3328b
TT
13222014-07-24 Tom Tromey <tromey@redhat.com>
1323
1324 * stack.c (up_silently_base, down_silently_base): Make argument
1325 const.
1326
414842dc
TT
13272014-07-24 Tom Tromey <tromey@redhat.com>
1328
1329 * solib.c (solib_add): Make "pattern" const.
1330 * solib.h (solib_add): Update.
1331
baa336ce
TT
13322014-07-24 Tom Tromey <tromey@redhat.com>
1333
1334 * remote.c (remote_serial_open, print_packet, putpkt)
1335 (putpkt_binary): Constify.
1336 * remote.h (putpkt): Update.
1337
5a19e2d0
TT
13382014-07-24 Tom Tromey <tromey@redhat.com>
1339
1340 * monitor.c (monitor_open): Make "args" const.
1341 * monitor.h (monitor_open): Update.
1342
fc4baa5e
TT
13432014-07-24 Tom Tromey <tromey@redhat.com>
1344
1345 * maint.c (match_bfd_flags): Make "string" const.
1346 (print_bfd_section_info): Remove casts.
1347 (print_objfile_section_info): Make "string" const.
1348
0d5f0dbe
TT
13492014-07-24 Tom Tromey <tromey@redhat.com>
1350
1351 * inf-child.c (inf_child_open_target): Make "arg" const.
1352 * inf-child.h (inf_child_open_target): Update.
1353
41c77899
TT
13542014-07-24 Tom Tromey <tromey@redhat.com>
1355
1356 * environ.c (unset_in_environ): Make "var" const.
1357 * environ.h (unset_in_environ): Update.
1358
93db0d79
TT
13592014-07-24 Tom Tromey <tromey@redhat.com>
1360
1361 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1362 Make "cmd" const.
1363 (scan_filename_with_cleanup): Likewise.
1364 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1365 Make arguments const.
1366 (restore_command): Update.
1367
36d6eb95
PA
13682014-07-24 Pedro Alves <palves@redhat.com>
1369
1370 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1371
8009206a
TT
13722014-07-24 Tom Tromey <tromey@redhat.com>
1373 Gary Benson <gbenson@redhat.com>
1374
1375 * nat/linux-ptrace.c (additional_flags): New global.
1376 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1377 additional_flags; don't check GDBSERVER.
1378 (linux_ptrace_set_additional_flags): New function.
1379 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1380 Declare.
1381 * linux-nat.c (_initialize_linux_nat): Call
1382 linux_ptrace_set_additional_flags.
1383
a7068b60
TT
13842014-07-24 Tom Tromey <tromey@redhat.com>
1385
1386 * make-target-delegates (munge_type, write_debugmethod): New
1387 functions.
1388 (debug_names): New global.
1389 ($TARGET_DEBUG_PRINTER): New global.
1390 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1391 name.
1392 Write debug methods. Generate init_debug_target.
1393 * target-debug.h: New file.
1394 * target-delegates.c: Rebuild.
1395 * target.c: Include target-debug.h.
1396 (debug_target): Hoist definition.
1397 (target_kill, target_get_section_table, target_memory_map)
1398 (target_flash_erase, target_flash_done, target_detach)
1399 (target_disconnect, target_wait, target_resume)
1400 (target_pass_signals, target_program_signals, target_follow_fork)
1401 (target_mourn_inferior, target_search_memory)
1402 (target_thread_address_space, target_close)
1403 (target_find_new_threads, target_core_of_thread)
1404 (target_verify_memory, target_insert_mask_watchpoint)
1405 (target_remove_mask_watchpoint): Remove targetdebug code.
1406 (debug_to_post_attach, debug_to_prepare_to_store)
1407 (debug_to_files_info, debug_to_insert_breakpoint)
1408 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1409 (debug_to_region_ok_for_hw_watchpoint)
1410 (debug_to_can_accel_watchpoint_condition)
1411 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1412 (debug_to_watchpoint_addr_within_range)
1413 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1414 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1415 (debug_to_terminal_init, debug_to_terminal_inferior)
1416 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1417 (debug_to_terminal_save_ours, debug_to_terminal_info)
1418 (debug_to_load, debug_to_post_startup_inferior)
1419 (debug_to_insert_fork_catchpoint)
1420 (debug_to_remove_fork_catchpoint)
1421 (debug_to_insert_vfork_catchpoint)
1422 (debug_to_remove_vfork_catchpoint)
1423 (debug_to_insert_exec_catchpoint)
1424 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1425 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1426 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1427 (setup_target_debug): Call init_debug_target.
1428 * target.h (TARGET_DEBUG_PRINTER): New macro.
1429 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1430 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1431
2c51604d
GB
14322014-07-24 Gary Benson <gbenson@redhat.com>
1433
1434 * exceptions.h (throw_vfatal): Renamed to...
1435 (throw_vquit): New declaration.
1436 (throw_quit): Likewise.
1437 * exceptions.c (throw_vfatal): Renamed to...
1438 (throw_vquit): New function.
1439 (throw_quit): Likewise.
1440 (throw_error): Call throw_verror rather than throw_it.
1441 * utils.h (vfatal): Removed.
1442 (fatal): Likewise.
1443 * utils.c (vfatal): Removed.
1444 (fatal): Likewise.
1445 (internal_verror): Replaced call to fatal with call to throw_quit.
1446 (quit): Replaced calls to fatal with calls to throw_quit.
1447
34211963
ME
14482014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1449
1450 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1451 target_read_code.
1452
a52b4d3e
ME
14532014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1454
1455 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1456 less than zero in conditional expression.
1457
a8bdc56b
TT
14582014-07-23 Tom Tromey <tromey@redhat.com>
1459
1460 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1461 ($INTRO_PART): Don't match whitespace.
1462 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1463 argument matching.
1464 ($METHOD): Add $METHOD_TRAILER.
1465 (trim): Rewrite.
1466 (scan_target_h): New sub.
1467 Change main loop not to collect state.
1468 * target-delegates.c: Rebuild.
1469
91b52240
GB
14702014-07-23 Gary Benson <gbenson@redhat.com>
1471
1472 * cp-support.c (gdb_demangle): Fix build on systems without
1473 sigaltstack.
1474
45326f6f
JK
14752014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1478 for reference entry value target data value.
1479
e214cf6c
JK
14802014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1483 value_available_contents_eq.
1484
bddbbedd
PA
14852014-07-22 Pedro Alves <palves@redhat.com>
1486
1487 * value.c (allocate_optimized_out_value): Don't mark value as
1488 non-lazy.
1489
45c71484
JW
14902014-07-22 Jiong Wang <jiong.wang@arm.com>
1491
1492 * MAINTAINERS (Write After Approval): Update my email address.
1493
9597b22a
DE
14942014-07-20 Doug Evans <dje@google.com>
1495
1496 PR server/17147
1497 * remote.c (putpkt_binary): Add text to error message.
1498
91101fe5
YQ
14992014-07-20 Yao Qi <yao@codesourcery.com>
1500
1501 * eval.c: Remove "Chill" from comments.
1502 * gdbtypes.h: Likewise.
1503 * symtab.h: Likewise.
1504
c9402c95
YQ
15052014-07-20 Yao Qi <yao@codesourcery.com>
1506
1507 * std-operator.def: Update comments to TERNOP_SLICE.
1508
ae8fddda
YQ
15092014-07-20 Yao Qi <yao@codesourcery.com>
1510
1511 * std-operator.def: Remove BINOP_RANGE.
1512 * breakpoint.c (watchpoint_exp_is_const): Update.
1513 * expprint.c (dump_subexp_body_standard): Likewise.
1514 * eval.c (init_array_element): Remove dead code.
1515 (evaluate_subexp_standard): Likewise.
1516
9c816640
YQ
15172014-07-20 Yao Qi <yao@codesourcery.com>
1518
1519 * std-operator.def: Remove BINOP_IN.
1520 * breakpoint.c (watchpoint_exp_is_const): Update.
1521 * eval.c (evaluate_subexp_standard): Likewise.
1522 * expprint.c (dump_subexp_body_standard): Likewise.
1523
164224e9
ME
15242014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1525
1526 * microblaze-tdep.c (microblaze_register_names): Add
1527 the rshr and rslr register names.
1528 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1529 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1530 Use of tdesc_numbered_register. Use of
1531 microblaze_register_g_packet_guesses. Use of
1532 tdesc_use_registers. Use of set_gdbarch_register_type.
1533 (microblaze_register_g_packet_guesses): New.
1534 * microblaze-tdep.h (microblaze_reg_num): Add
1535 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1536 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1537 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1538 * features/microblaze-core.xml: New file.
1539 * features/microblaze-stack-protect.xml: New file.
1540 * features/microblaze-with-stack-protect.c: New file.
1541 * features/microblaze-with-stack-protect.xml: New file.
1542 * features/microblaze.xml: New file.
1543 * features/microblaze.c: New file.
1544 * features/Makefile (microblaze-with-stack-protect): Add
1545 microblaze-with-stack-protect microblaze and microblaze-expedite.
1546 * regformats/microblaze-with-stack-protect.dat: New file.
1547 * regformats/microblaze.dat: New file.
1548 * doc/gdb.texinfo (MicroBlaze Features): Added.
1549
e8b2341c
TT
15502014-07-18 Tom Tromey <tromey@redhat.com>
1551
1552 * exec.c (exec_ops): Now static.
1553 * exec.h (exec_ops): Don't declare.
1554
44e89118
TT
15552014-07-18 Tom Tromey <tromey@redhat.com>
1556
1557 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1558 to find_target_beneath.
1559 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1560 find_target_beneath.
1561 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1562
b0ed115f
TT
15632014-07-18 Tom Tromey <tromey@redhat.com>
1564
1565 PR gdb/17130:
1566 * utils.c (quit): Use target_supports_terminal_ours.
1567 * target.h (target_supports_terminal_ours): Declare.
1568 * target.c (target_supports_delete_record): Don't check
1569 to_delete_record against NULL.
1570 (target_supports_terminal_ours): New function.
1571
e75fdfca
TT
15722014-07-18 Tom Tromey <tromey@redhat.com>
1573
1574 PR gdb/17130:
1575 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1576 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1577 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1578 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1579 * windows-nat.c (windows_xfer_partial): Always delegate.
1580 * record-btrace.c (record_btrace_xfer_partial): Simplify
1581 delegation.
1582 (record_btrace_fetch_registers, record_btrace_store_registers)
1583 (record_btrace_prepare_to_store, record_btrace_resume)
1584 (record_btrace_wait, record_btrace_find_new_threads)
1585 (record_btrace_thread_alive): Likewise.
1586 * procfs.c (procfs_xfer_partial): Always delegate.
1587 * corelow.c (core_xfer_partial): Always delegate.
1588 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1589
83814951
TT
15902014-07-18 Tom Tromey <tromey@redhat.com>
1591
1592 * exec.c (exec_make_note_section): Move earlier.
1593
b8b8facf
DE
15942014-07-17 Doug Evans <dje@google.com>
1595
74b49205 1596 PR gdb/17170
b8b8facf
DE
1597 * maint.c (count_symtabs_and_blocks): Handle NULL
1598 current_program_space.
1599 (report_command_stats): Check global enabled flag in addition to
1600 recorded enabled flag.
1601 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1602
69ff6be5
PA
16032014-07-16 Pedro Alves <palves@redhat.com>
1604
1605 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1606
252db1b5
TT
16072014-07-16 Tom Tromey <tromey@redhat.com>
1608
1609 * target.h (struct target_ops) <to_delete_record>: Reformat
1610 comment.
1611
a432721e
TT
16122014-07-16 Tom Tromey <tromey@redhat.com>
1613
1614 * target-delegates.c: Rebuild.
1615
487d9753
PL
16162014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1617
1618 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1619 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1620 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1621 (avr_pointer_to_address): Likewise.
1622 (avr_address_class_type_flags): New function.
1623 (avr_address_class_type_flags_to_name): Likewise.
1624 (avr_address_class_name_to_type_flags): Likewise.
1625 (avr_gdbarch_init): Set address_class_type_flags,
1626 address_class_type_flags_to_name and
1627 address_class_name_to_type_flags.
1628
57745c90
PA
16292014-07-15 Pedro Alves <palves@redhat.com>
1630
1631 * linux-nat.c (kill_callback): Save errno and work with saved
1632 copy.
1633
2d40be18
SM
16342014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1635
1636 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1637
572f6555
EBM
16382014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1639
1640 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1641 breakpoint support correctly.
1642
cc1c52ad
PA
16432014-07-14 Pedro Alves <palves@redhat.com>
1644
1645 * utils.c (prompt_for_continue): Call target_terminal_ours.
1646
1e973570
PA
16472014-07-14 Pedro Alves <palves@redhat.com>
1648
1649 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1650 catch_errors. Don't re-enable stdin or notify observers where,
1651 and rethrow error.
1652 (fetch_inferior_event_wrapper): Delete.
1653
93d6eb10
PA
16542014-07-14 Pedro Alves <palves@redhat.com>
1655
1656 PR gdb/17072
1657 * top.c: Include "inf-loop.h".
1658 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1659 field.
1660 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1661 was async before.
1662 (gdb_readline_wrapper): Store whether the target is async, and
1663 make it sync.
1664
0017922d
PA
16652014-07-14 Pedro Alves <palves@redhat.com>
1666
1667 PR gdb/17072
1668 * top.c (gdb_readline_wrapper_line): Tweak comment.
1669 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1670 the input handler callback.
1671
94696ad3
PA
16722014-07-14 Pedro Alves <palves@redhat.com>
1673
1674 PR gdb/17072
1675 * main.c: Include event-top.h.
1676 (handle_command_errors): New function.
1677 (catch_command_errors, catch_command_errors_const): Use it.
1678
9d1e69a2
PA
16792014-07-14 Pedro Alves <palves@redhat.com>
1680
1681 * exceptions.c (catch_command_errors, catch_command_errors_const):
1682 Moved to main.c.
1683 * exceptions.h (catch_command_errors_ftype)
1684 (catch_command_errors_const_ftype): Moved to main.c.
1685 (catch_command_errors, catch_command_errors_const): Delete
1686 declarations.
1687 * main.c (catch_command_errors_ftype)
1688 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1689 (catch_command_errors, catch_command_errors_const)): Moved here
1690 from exceptions.c and make static.
1691
feefc97b
PA
16922014-07-14 Pedro Alves <palves@redhat.com>
1693
1694 * exceptions.c (print_any_exception): Delete.
1695 (catch_exceptions_with_msg): Use exception_print instead of
1696 print_any_exception.
1697 (catch_errors): Use exception_fprintf instead of
1698 print_any_exception.
1699 (catch_command_errors, catch_command_errors_const): Use
1700 exception_print instead of print_any_exception.
1701
c933f875
PA
17022014-07-14 Pedro Alves <palves@redhat.com>
1703
1704 * infcall.c (run_inferior_call): Set 'sync_execution' while
1705 running the inferior call.
1706
feb6f816
PA
17072014-07-14 Pedro Alves <palves@redhat.com>
1708
1709 * value.c (value_contents_equal): Delete function.
1710 * value.h (value_contents_equal): Delete declaration.
1711
d98b7a16
TT
17122014-07-14 Tom Tromey <tromey@redhat.com>
1713
1714 PR exp/17106:
1715 * gdbtypes.c (is_dynamic_type_internal): New function, from
1716 is_dynamic_type.
1717 (is_dynamic_type): Rewrite.
1718 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1719 (resolve_dynamic_struct): Likewise.
1720 (resolve_dynamic_type_internal): New function, from
1721 resolve_dynamic_type.
1722 (resolve_dynamic_type): Rewrite.
1723
548740d6
TT
17242014-07-14 Tom Tromey <tromey@redhat.com>
1725
1726 * target.c (target_require_runnable): Also check record_stratum.
1727 Update comment.
1728
808f7ab1
YQ
17292014-07-11 Yao Qi <yao@codesourcery.com>
1730
1731 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1732 thumb_instruction_restores_sp return true.
1733
540314bd
YQ
17342014-07-11 Yao Qi <yao@codesourcery.com>
1735
1736 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1737 (thumb_in_function_epilogue_p): Call
1738 thumb_instruction_restores_sp.
1739
1db01f22
YQ
17402014-07-11 Yao Qi <yao@codesourcery.com>
1741
1742 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1743 'add sp, #imm'.
1744 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1745
3116063b
GB
17462014-07-11 Gary Benson <gbenson@redhat.com>
1747
1748 * amd64-linux-nat.c (gdbcore.h): Remove include.
1749 (regset.h): Likewise.
1750 (nat/linux-btrace.h): Likewise.
1751 (btrace.h): Likewise.
1752 (gdb_assert.h): Likewise.
1753 (string.h): Likewise.
1754 (sys/uio.h): Likewise.
1755 (sys/debugreg.h): Likewise.
1756 (sys/syscall.h): Likewise.
1757 (sys/procfs.h): Likewise.
1758 (sys/user.h): Likewise.
1759 (asm/ptrace.h): Likewise.
1760 (i386-nat.h): Likewise.
1761 * i386-linux-nat.c (i386-nat.h): Likewise.
1762 (regset.h): Likewise.
1763 (target.h): Likewise.
1764 (linux-nat.h): Likewise.
1765 (nat/linux-btrace.h): Likewise.
1766 (btrace.h): Likewise.
1767 (gdb_assert.h): Likewise.
1768 (string.h): Likewise.
1769 (sys/uio.h): Likewise.
1770 (sys/user.h): Likewise.
1771 (sys/procfs.h): Likewise.
1772 (sys/reg.h): Likewise.
1773 (sys/debugreg.h): Likewise.
1774 (ORIG_EAX): Remove definition.
1775
040baaf6
GB
17762014-07-11 Gary Benson <gbenson@redhat.com>
1777
1778 * i386-linux-nat.h: New file.
1779 * x86-linux-nat.h: Likewise.
1780 * x86-linux-nat.c: Likewise.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1782 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1783 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1784 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1785 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1786 (PTRACE_SETREGSET): Likewise.
1787 (arch_lwp_info): Now in x86-linux-nat.c.
1788 (have_ptrace_getregset): Now in x86-linux-nat.h.
1789 (x86_linux_dr_get): Now in x86-linux-nat.c.
1790 (x86_linux_dr_set): Likewise.
1791 (x86_linux_dr_get_addr): Likewise.
1792 (x86_linux_dr_get_control): Likewise.
1793 (x86_linux_dr_get_status): Likewise.
1794 (update_debug_registers_callback): Likewise.
1795 (x86_linux_dr_set_control): Likewise.
1796 (x86_linux_dr_set_addr): Likewise.
1797 (x86_linux_prepare_to_resume): Likewise.
1798 (x86_linux_new_thread): Likewise.
1799 (x86_linux_new_fork): Likewise.
1800 (x86_linux_get_thread_area): Likewise.
1801 (super_post_startup_inferior): Likewise.
1802 (x86_linux_child_post_startup_inferior): Likewise.
1803 (AMD64_LINUX_USER64_CS): Likewise.
1804 (AMD64_LINUX_X32_DS): Likewise.
1805 (x86_linux_read_description): Likewise.
1806 (x86_linux_enable_btrace): Likewise.
1807 (x86_linux_disable_btrace): Likewise.
1808 (x86_linux_teardown_btrace): Likewise.
1809 (x86_linux_read_btrace): Likewise.
1810 (x86_linux_create_target): Likewise.
1811 (x86_linux_add_target): Likewise.
1812 * i386-linux-nat.c (x86-linux-nat.h): New include.
1813 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1814 (PTRACE_SETREGSET): Likewise.
1815 (arch_lwp_info): Now in x86-linux-nat.c.
1816 (have_ptrace_getregset): Now in x86-linux-nat.h.
1817 (x86_linux_dr_get): Now in x86-linux-nat.c.
1818 (x86_linux_dr_set): Likewise.
1819 (x86_linux_dr_get_addr): Likewise.
1820 (x86_linux_dr_get_control): Likewise.
1821 (x86_linux_dr_get_status): Likewise.
1822 (update_debug_registers_callback): Likewise.
1823 (x86_linux_dr_set_control): Likewise.
1824 (x86_linux_dr_set_addr): Likewise.
1825 (x86_linux_prepare_to_resume): Likewise.
1826 (x86_linux_new_thread): Likewise.
1827 (x86_linux_new_fork): Likewise.
1828 (x86_linux_get_thread_area): Likewise.
1829 (super_post_startup_inferior): Likewise.
1830 (x86_linux_child_post_startup_inferior): Likewise.
1831 (AMD64_LINUX_USER64_CS): Likewise.
1832 (AMD64_LINUX_X32_DS): Likewise.
1833 (x86_linux_read_description): Likewise.
1834 (x86_linux_enable_btrace): Likewise.
1835 (x86_linux_disable_btrace): Likewise.
1836 (x86_linux_teardown_btrace): Likewise.
1837 (x86_linux_read_btrace): Likewise.
1838 (x86_linux_create_target): Likewise.
1839 (x86_linux_add_target): Likewise.
1840
1aa7e42c
GB
18412014-07-11 Gary Benson <gbenson@redhat.com>
1842
1843 * amd64-linux-nat.c: Comment and whitespace changes.
1844 * i386-linux-nat.c: Comment and whitespace changes.
1845
c1e246a0
GB
18462014-07-11 Gary Benson <gbenson@redhat.com>
1847
1848 * amd64-linux-nat.c (x86_linux_create_target): New function.
1849 (x86_linux_add_target): Likewise.
1850 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1851 * i386-linux-nat.c (x86_linux_create_target): New function.
1852 (x86_linux_add_target): Likewise.
1853 (_initialize_i386_linux_nat): Delegate to the above new functions.
1854
8c420b8d
GB
18552014-07-11 Gary Benson <gbenson@redhat.com>
1856
1857 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1858 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1859 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1860 (ps_get_thread_area): Delegate to the above.
1861
cb1da100
GB
18622014-07-11 Gary Benson <gbenson@redhat.com>
1863
1864 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1865 x86_linux_read_description. All uses updated. amd64-specific
1866 code conditionalized. Conditionalized i386-specific code added.
1867 Redundant cast removed.
1868 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1869 x86_linux_read_description. All uses updated. i386-specific
1870 code conditionalized. Conditionalized amd64-specific code added.
1871 One sizeof replaced with the actual type it is describing.
1872
2acf3cd0
GB
18732014-07-11 Gary Benson <gbenson@redhat.com>
1874
1875 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1876 x86_linux_dr_get. All uses updated.
1877 (amd64_linux_dr_set): Renamed to
1878 x86_linux_dr_set. All uses updated.
1879 (amd64_linux_dr_get_addr): Renamed to
1880 x86_linux_dr_get_addr. All uses updated.
1881 (amd64_linux_dr_get_control): Renamed to
1882 x86_linux_dr_get_control. All uses updated.
1883 (amd64_linux_dr_get_status): Renamed to
1884 x86_linux_dr_get_status. All uses updated.
1885 (amd64_linux_dr_set_control): Renamed to
1886 x86_linux_dr_set_control. All uses updated.
1887 (amd64_linux_dr_set_addr): Renamed to
1888 x86_linux_dr_set_addr. All uses updated.
1889 (amd64_linux_prepare_to_resume): Renamed to
1890 x86_linux_prepare_to_resume. All uses updated.
1891 (amd64_linux_new_thread): Renamed to
1892 x86_linux_new_thread. All uses updated.
1893 (amd64_linux_new_fork): Renamed to
1894 x86_linux_new_fork. All uses updated.
1895 (amd64_linux_child_post_startup_inferior): Renamed to
1896 x86_linux_child_post_startup_inferior. All uses updated.
1897 (amd64_linux_enable_btrace): Renamed to
1898 x86_linux_enable_btrace. All uses updated.
1899 (amd64_linux_disable_btrace): Renamed to
1900 x86_linux_disable_btrace. All uses updated.
1901 (amd64_linux_teardown_btrace): Renamed to
1902 x86_linux_teardown_btrace. All uses updated.
1903 (amd64_linux_read_btrace): Renamed to
1904 x86_linux_read_btrace. All uses updated.
1905 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1906 x86_linux_dr_get. All uses updated.
1907 (i386_linux_dr_set): Renamed to
1908 x86_linux_dr_set. All uses updated.
1909 (i386_linux_dr_get_addr): Renamed to
1910 x86_linux_dr_get_addr. All uses updated.
1911 (i386_linux_dr_get_control): Renamed to
1912 x86_linux_dr_get_control. All uses updated.
1913 (i386_linux_dr_get_status): Renamed to
1914 x86_linux_dr_get_status. All uses updated.
1915 (i386_linux_dr_set_control): Renamed to
1916 x86_linux_dr_set_control. All uses updated.
1917 (i386_linux_dr_set_addr): Renamed to
1918 x86_linux_dr_set_addr. All uses updated.
1919 (i386_linux_prepare_to_resume): Renamed to
1920 x86_linux_prepare_to_resume. All uses updated.
1921 (i386_linux_new_thread): Renamed to
1922 x86_linux_new_thread. All uses updated.
1923 (i386_linux_new_fork): Renamed to
1924 x86_linux_new_fork. All uses updated.
1925 (i386_linux_child_post_startup_inferior): Renamed to
1926 x86_linux_child_post_startup_inferior. All uses updated.
1927 (i386_linux_enable_btrace): Renamed to
1928 x86_linux_enable_btrace. All uses updated.
1929 (i386_linux_disable_btrace): Renamed to
1930 x86_linux_disable_btrace. All uses updated.
1931 (i386_linux_teardown_btrace): Renamed to
1932 x86_linux_teardown_btrace. All uses updated.
1933 (i386_linux_read_btrace): Renamed to
1934 x86_linux_read_btrace. All uses updated.
1935
b9c1d481
AS
19362014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1937
1938 * remote.c (extended_remote_post_attach): New function.
1939 (init_extended_remote_ops): Install it as to_post_attach method.
1940
7180e04a
PA
19412014-07-09 Pedro Alves <palves@redhat.com>
1942
1943 * infcmd.c (attach_command_post_wait): Don't call
1944 target_terminal_inferior here.
1945 (attach_command): Call it here instead.
1946
9a9a7608
AB
19472014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1950 field.
1951 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1952 from varobj.c, with additional checks.
1953 (c_varobj_ops): Fill in is_path_expr_parent field.
1954 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1955 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1956 field.
1957 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1958 ops method.
1959 (varobj_default_is_path_expr_parent): New function.
1960 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1961 (varobj_default_is_path_expr_parent): Declare new function.
1962
1f267ae3
MM
19632014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1964
1965 * infcmd.c (finish_backward): Turn internal error into normal error.
1966
b2ee242b
PA
19672014-07-07 Pedro Alves <palves@redhat.com>
1968
8a869bca 1969 PR gdb/17096
b2ee242b
PA
1970 * remote.c (async_handle_remote_sigint)
1971 (async_handle_remote_sigint_twice): Call
1972 gdb_call_async_signal_handler instead of
1973 mark_async_signal_handler.
1974
38e229b2
TT
19752014-07-07 Tom Tromey <tromey@redhat.com>
1976
1977 * target-delegates.c: Rebuild.
1978 * target.c (target_info_record): Remove.
1979 * record.c (info_record_command): Unconditionally call
1980 to_info_record.
1981 * target.h (struct target_ops) <to_info_record>: Use
1982 TARGET_DEFAULT_IGNORE.
1983 (target_info_record): Remove.
1984
f0f9ff95
TT
19852014-07-07 Tom Tromey <tromey@redhat.com>
1986
1987 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1988 TARGET_DEFAULT_NORETURN.
1989 * target.c (generic_tls_error): New function.
1990 (target_translate_tls_address): Don't search target stack.
1991 * target-delegates.c: Rebuild.
1992 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1993 stack.
1994 * linux-thread-db.c (thread_db_get_thread_local_address):
1995 Unconditionally call beneath target.
1996
4a5be5ee
MK
19972014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1998
1999 * cli/cli-logging.c (pop_output_files): Assign targerr to
2000 gdb_stdtargerr.
2001
92c3b204
AB
20022014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * MAINTAINERS (Write After Approval): Update my email address.
2005
9b11e3a7
GB
20062014-07-02 Gary Benson <gbenson@redhat.com>
2007
2008 * proc-service.c (ps_xfer_memory): Update comment.
2009 (ps_pstop): Remove unused function.
2010 (ps_pcontinue): Likewise.
2011 (ps_lstop): Likewise.
2012 (ps_lcontinue): Likewise.
2013 (ps_lgetxregsize): Likewise.
2014 (ps_lgetxregs): Likewise.
2015 (ps_lsetxregs): Likewise.
2016 (ps_plog): Likewise.
2017 (ps_ptread): Likewise.
2018 (ps_ptwrite): Likewise.
2019
cf363f18
MW
20202014-07-01 Mark Wielaard <mjw@redhat.com>
2021
2022 * dwarf2read.c (add_array_cv_type): New function.
2023 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2024 (read_tag_volatile_type): Likewise.
2025
82ae6c8d
TT
20262014-07-01 Tom Tromey <tromey@redhat.com>
2027
2028 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2029 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2030 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2031 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2032 * command.h (cmd_cfunc_ftype): Move earlier.
2033 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2034 (add_com, add_info): Use cmd_cfunc_ftype.
2035
96142726
TT
20362014-06-30 Tom Tromey <tromey@redhat.com>
2037
2038 * symtab.c (operator_chars): Make parameters and return type
2039 const.
2040 (file_matches): Make "files" const.
2041 (struct search_symbols_data) <files>: Now const.
2042 (search_symbols): Make "regexp" and "files" parameters const.
2043 Update.
2044 (symtab_symbol_info): Remove cast.
2045 (rbreak_command): Update.
2046 * symtab.h (search_symbols): Update.
2047
b67a2c6f
YQ
20482014-06-27 Yao Qi <yao@codesourcery.com>
2049
2050 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2051 Change parameter type to 'struct thread_info *'. Caller
2052 updated.
2053 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2054 Update declaration.
2055 * dummy-frame.c (struct dummy_frame_id): New.
2056 (dummy_frame_id_eq): New function.
2057 (struct dummy_frame) <id>: Change its type to 'struct
2058 dummy_frame_id'.
2059 (dummy_frame_push): Add parameter ptid and save it in
2060 dummy_frame_id.
2061 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2062 inferior_ptid.
2063 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2064 to inferior_ptid.
2065 (lookup_dummy_frame): Change parameter type to 'struct
2066 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2067 instead of frame_id_eq.
2068 (dummy_frame_pop): Add parameter ptid. Callers updated.
2069 Update comments. Compose dummy_frame_id and pass it to
2070 lookup_dummy_frame.
2071 (dummy_frame_discard): Add parameter ptid.
2072 (dummy_frame_sniffer): Compose dummy_frame_id and call
2073 dummy_frame_id_eq instead of frame_id_eq.
2074 (fprint_dummy_frames): Print ptid.
2075 * dummy-frame.h: Remove comments.
2076 (dummy_frame_push): Add ptid in declaration.
2077 (dummy_frame_pop, dummy_frame_discard): Likewise.
2078
5b10184c
TT
20792014-06-26 Tom Tromey <tromey@redhat.com>
2080
2081 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2082 * command.h (error_no_arg): Update.
2083
06900326
TT
20842014-06-26 Tom Tromey <tromey@redhat.com>
2085
2086 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2087 (do_show_command): Make "arg" const.
2088 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2089
c2bcbb1d
TT
20902014-06-26 Tom Tromey <tromey@redhat.com>
2091
2092 * record-full.c (record_full_get_bookmark): Make "args" const.
2093 (record_full_goto_bookmark): Make "raw_bookmark" const.
2094 * record.c (record_goto): New function.
2095 (cmd_record_goto): Use it. Now static.
2096 * record.h (record_goto): Declare.
2097 (cmd_record_goto): Remove declaration.
2098 * target-delegates.c: Rebuild.
2099 * target.h (struct target_ops) <to_get_bookmark,
2100 to_goto_bookmark>: Make parameter const.
2101
9cbe5fff
TT
21022014-06-26 Tom Tromey <tromey@redhat.com>
2103
2104 * defs.h (generic_load): Update.
2105 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2106 * monitor.c (monitor_load): Make "args" const.
2107 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2108 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2109 const.
2110 (mips_load): Make "file" const.
2111 * remote-sim.c (gdbsim_load): Make "args" const.
2112 * remote.c (remote_load): Make "name" const.
2113 * symfile.c (generic_load): Make "args" const.
2114 * target-delegates.c: Rebuild.
2115 * target.c (target_load): Make "arg" const.
2116 (debug_to_load): Make "args" const.
2117 * target.h (struct target_ops) <to_load>: Make parameter const.
2118 (target_load): Update.
2119
34a68019
TT
21202014-06-26 Tom Tromey <tromey@redhat.com>
2121
2122 PR symtab/16902:
2123 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2124 (dwarf2_physname, read_partial_die)
2125 (guess_partial_die_structure_name, fixup_partial_die)
2126 (guess_full_die_structure_name, anonymous_struct_prefix)
2127 (dwarf2_name): Use per-BFD obstack.
2128
efc889c1
YQ
21292014-06-26 Yao Qi <yao@codesourcery.com>
2130
2131 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2132 dummyframe and this_id into inner block below.
2133
4395285e
YQ
21342014-06-26 Yao Qi <yao@codesourcery.com>
2135
2136 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2137 with "signal_pass[0]" in the initialization of signal_pass.
2138
aef92902
MM
21392014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2140
2141 * record-btrace.c (record_btrace_generating_corefile)
2142 (record_btrace_prepare_to_generate_core)
2143 (record_btrace_done_generating_core): New.
2144 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2145 (record_btrace_store_registers, record_btrace_prepare_to_store):
2146 Forward request when generating a core file.
2147 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2148 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2149 to_done_generating_core.
2150
5fff78c4
MM
21512014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2152
2153 * target.h (target_ops) <to_prepare_to_generate_core>
2154 <to_done_generating_core>: New.
2155 (target_prepare_to_generate_core, target_done_generating_core): New.
2156 * target.c (target_prepare_to_generate_core)
2157 (target_done_generating_core): New.
2158 * target-delegates.c: Regenerate.
2159 * gcore.c: (write_gcore_file): Rename to ...
2160 (write_gcore_file_1): ...this.
2161 (write_gcore_file): Call target_prepare_to_generate_core
2162 and target_done_generating_core.
2163
1d1f1ccb
MM
21642014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2165
2166 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2167 * gcore.c (write_gcore_file): Free memory returned from
2168 make_corefile_notes.
2169 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2170 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2171
3343ef86
YQ
21722014-06-24 Yao Qi <yao@codesourcery.com>
2173
2174 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2175 (arm_linux_init_abi): Set skip_trampoline_code with
2176 gdbarch_skip_trampoline_code instead of
2177 find_solib_trampoline_target.
2178
18d18ac8
YQ
21792014-06-24 Yao Qi <yao@codesourcery.com>
2180
2181 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2182 arm_skip_bx_reg returns non-zero.
2183
80d8d390
YQ
21842014-06-24 Yao Qi <yao@codesourcery.com>
2185
2186 * arm-tdep.c (arm_skip_bx_reg): New function.
2187 (arm_skip_stub): Call arm_skip_bx_reg.
2188
6a18a01c
DB
21892014-06-23 Don Breazeal <donb@codesourcery.com>
2190
2191 * MAINTAINERS: Add myself as write-after-approval maintainer.
2192
8e9db26e
PA
21932014-06-23 Pedro Alves <palves@redhat.com>
2194
2195 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2196 DR_CONTROL before setting DR0..DR3.
2197 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2198 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2199 bits of DR_CONTROL related to the debug register slot being
2200 disabled. If all slots are vacant, clear local slowdown as well,
2201 and assert DR_CONTROL is 0.
2202
70afc5b7
SC
22032014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2204
2205 * python/lib/gdb/command/xmethods.py
2206 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2207 current progspace only if the string "progspace" matches LOCUS_RE.
2208
840ed64d
JK
22092014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2210
2211 Fix --with-system-readline with readline-6.3 patch 5.
2212 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2213 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2214 types.
2215
26f2dc30
TT
22162014-06-20 Tom Tromey <tromey@redhat.com>
2217
2218 * dwarf2read.c (dw2_get_real_path): Use correct type in
2219 OBSTACK_CALLOC.
2220 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2221
125f8a3d
GB
22222014-06-20 Gary Benson <gbenson@redhat.com>
2223
2224 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2225 * common/glibc_thread_db.h: Likewise.
2226 * common/i386-cpuid.h: Likewise.
2227 * common/i386-gcc-cpuid.h: Likewise.
2228 * common/linux-btrace.h: Likewise.
2229 * common/linux-osdata.h: Likewise.
2230 * common/linux-procfs.h: Likewise.
2231 * common/linux-ptrace.h: Likewise.
2232 * common/mips-linux-watch.h: Likewise.
2233 * common/linux-btrace.c: Moved to nat.
2234 * common/linux-osdata.c: Likewise.
2235 * common/linux-procfs.c: Likewise.
2236 * common/linux-ptrace.c: Likewise.
2237 * common/mips-linux-watch.c: Likewise.
2238 * nat/gdb_thread_db.h: Moved from common.
2239 * nat/glibc_thread_db.h: Likewise.
2240 * nat/i386-cpuid.h: Likewise.
2241 * nat/i386-gcc-cpuid.h: Likewise.
2242 * nat/linux-btrace.c: Likewise.
2243 * nat/linux-btrace.h: Likewise.
2244 * nat/linux-osdata.c: Likewise.
2245 * nat/linux-osdata.h: Likewise.
2246 * nat/linux-procfs.c: Likewise.
2247 * nat/linux-procfs.h: Likewise.
2248 * nat/linux-ptrace.c: Likewise.
2249 * nat/linux-ptrace.h: Likewise.
2250 * nat/mips-linux-watch.c: Likewise.
2251 * nat/mips-linux-watch.h: Likewise.
2252 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2253 (object file files): Reordered.
2254 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2255 of glibc_thread_db.h.
2256
42995dbd
GB
22572014-06-20 Gary Benson <gbenson@redhat.com>
2258
2259 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2260 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2261 (i386_dr_low): Likewise.
2262 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2263 (i386_dr_low_set_addr): Likewise.
2264 (i386_dr_low_get_addr): Likewise.
2265 (i386_dr_low_can_set_control): Likewise.
2266 (i386_dr_low_set_control): Likewise.
2267 (i386_dr_low_get_control): Likewise.
2268 (i386_dr_low_get_status): Likewise.
2269 (i386_get_debug_register_length): Likewise.
2270 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2271 (i386_dr_low): Likewise.
2272 * nat/i386-dregs.c (i386-low.h): Remove include.
2273 (i386-nat.h): Likewise.
2274 (nat/i386-dregs.h): New include.
2275 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2276 (i386_dr_low_set_addr): Likewise.
2277 (i386_dr_low_get_addr): Likewise.
2278 (i386_dr_low_can_set_control): Likewise.
2279 (i386_dr_low_set_control): Likewise.
2280 (i386_dr_low_get_control): Likewise.
2281 (i386_dr_low_get_status): Likewise.
2282 (i386_get_debug_register_length): Likewise.
2283 (debug_hw_points): Likewise.
2284
3ed9baed
IB
22852014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2286
2287 * Makefile.in (SFILES): Add d-exp.y.
2288 (YYFILES): Add d-exp.c.
2289 (YYOBJ): Add d-exp.o.
2290 (local-maintainer-clean): Delete d-exp.c.
2291 * d-exp.y: New file.
2292 * d-lang.h (d_parse): New declaration.
2293 (d_error): New declaration.
2294 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2295 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2296 PREC_ORDER operators.
2297 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2298
78c164b0
YQ
22992014-06-19 Yao Qi <yao@codesourcery.com>
2300
2301 * gdbthread.h (any_running): Remove the declaration.
2302 * thread.c (any_running): Remove.
2303
f6e29b6e
YQ
23042014-06-19 Yao Qi <yao@codesourcery.com>
2305
2306 * gdbthread.h (struct thread_info) <state>: Change its type to
2307 'enum thread_state'. Update comments.
2308
034f788c
PA
23092014-06-19 Pedro Alves <palves@redhat.com>
2310
2311 * gdbthread.h (ALL_THREADS): Delete.
2312 (ALL_NON_EXITED_THREADS): New macro.
2313 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2314 instead of ALL_THREADS.
2315 * infrun.c (find_thread_needs_step_over)
2316 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2317 instead of ALL_THREADS.
2318 * record-btrace.c (record_btrace_open)
2319 (record_btrace_stop_recording, record_btrace_close)
2320 (record_btrace_is_replaying, record_btrace_resume)
2321 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2322 * remote.c (append_pending_thread_resumptions): Likewise.
2323 * thread.c (thread_apply_all_command): Likewise.
2324
46e33252
GB
23252014-06-19 Gary Benson <gbenson@redhat.com>
2326
2327 * i386-nat.c (i386_stopped_by_watchpoint):
2328 Use i386_dr_stopped_by_watchpoint.
2329 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2330 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2331
3a8ee006
GB
23322014-06-19 Gary Benson <gbenson@redhat.com>
2333
2334 * nat/i386-dregs.c: New file.
2335 * Makefile.in (i386-dregs.o): New rule.
2336 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2337 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2338 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2339 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2340 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2341 * config/i386/go32.mh (NATDEPFILES): Likewise.
2342 * config/i386/linux.mh (NATDEPFILES): Likewise.
2343 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2344 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2345 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2346 * i386-nat.h (debug_hw_points): New declaration.
2347 * i386-nat.c (breakpoint.h): Remove include.
2348 (command.h): Likewise.
2349 (target.h): Likewise.
2350 (gdb_assert.h): Likewise.
2351 (debug_hw_points): Made nonstatic.
2352 (debug_printf): Now in i386-dregs.c.
2353 (TARGET_HAS_DR_LEN_8): Likewise.
2354 (DR_CONTROL_SHIFT): Likewise.
2355 (DR_CONTROL_SIZE): Likewise.
2356 (DR_RW_EXECUTE): Likewise.
2357 (DR_RW_WRITE): Likewise.
2358 (DR_RW_READ): Likewise.
2359 (DR_RW_IORW): Likewise.
2360 (DR_LEN_1): Likewise.
2361 (DR_LEN_2): Likewise.
2362 (DR_LEN_4): Likewise.
2363 (DR_LEN_8): Likewise.
2364 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2365 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2366 (DR_ENABLE_SIZE): Likewise.
2367 (DR_LOCAL_SLOWDOWN): Likewise.
2368 (DR_GLOBAL_SLOWDOWN): Likewise.
2369 (DR_CONTROL_RESERVED): Likewise.
2370 (I386_DR_CONTROL_MASK): Likewise.
2371 (I386_DR_VACANT): Likewise.
2372 (I386_DR_LOCAL_ENABLE): Likewise.
2373 (I386_DR_GLOBAL_ENABLE): Likewise.
2374 (I386_DR_DISABLE): Likewise.
2375 (I386_DR_SET_RW_LEN): Likewise.
2376 (I386_DR_GET_RW_LEN): Likewise.
2377 (I386_DR_WATCH_HIT): Likewise.
2378 (i386_wp_op_t): Likewise.
2379 (i386_show_dr): Likewise.
2380 (i386_length_and_rw_bits): Likewise.
2381 (i386_insert_aligned_watchpoint): Likewise.
2382 (i386_remove_aligned_watchpoint): Likewise.
2383 (i386_handle_nonaligned_watchpoint): Likewise.
2384 (i386_update_inferior_debug_regs): Likewise.
2385 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2386 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2387 (i386_region_ok_for_watchpoint):
2388 Use i386_dr_region_ok_for_watchpoint.
2389 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2390
322a8e06
GB
23912014-06-19 Gary Benson <gbenson@redhat.com>
2392
2393 * i386-nat.c (i386_insert_hw_breakpoint): Use
2394 i386_insert_watchpoint.
2395 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2396
8f26655c
GB
23972014-06-19 Gary Benson <gbenson@redhat.com>
2398
2399 * i386-nat.c (i386_dr_show): Renamed to
2400 i386_show_dr and made static. All uses updated.
2401 (i386_dr_length_and_rw_bits): Renamed to
2402 i386_length_and_rw_bits and made static.
2403 All uses updated.
2404 (i386_dr_insert_aligned_watchpoint): Renamed to
2405 i386_insert_aligned_watchpoint and made static.
2406 All uses updated.
2407 (i386_dr_remove_aligned_watchpoint): Renamed to
2408 i386_remove_aligned_watchpoint and made static.
2409 All uses updated.
2410 (i386_dr_update_inferior_debug_regs): Renamed to
2411 i386_update_inferior_debug_regs and made static.
2412 All uses updated.
2413 * nat/i386-dregs.h (i386_dr_show): Removed.
2414 (i386_dr_length_and_rw_bits): Likewise.
2415 (i386_dr_insert_aligned_watchpoint): Likewise.
2416 (i386_dr_remove_aligned_watchpoint): Likewise.
2417 (i386_dr_update_inferior_debug_regs): Likewise.
2418
992c7d70
GB
24192014-06-19 Gary Benson <gbenson@redhat.com>
2420
2421 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2422 * configure: Regenerate.
2423 * config.in: Likewise.
2424 * main.c (signal.h): New include.
2425 (setup_alternate_signal_stack): New function.
2426 (captured_main): Call the above.
2427 * cp-support.c (signal.h): New include.
2428 (catch_demangler_crashes): New flag.
2429 (SIGJMP_BUF): New define.
2430 (SIGSETJMP): Likewise.
2431 (SIGLONGJMP): Likewise.
2432 (gdb_demangle_jmp_buf): New static global.
2433 (gdb_demangle_attempt_core_dump): Likewise.
2434 (gdb_demangle_signal_handler): New function.
2435 (gdb_demangle): If catch_demangler_crashes is set, install the
2436 above signal handler before calling bfd_demangle, and restore
2437 the original signal handler afterwards. Display the offending
2438 symbol and call demangler_warning the first time a segmentation
2439 fault is caught.
2440 (_initialize_cp_support): New maint set/show command.
2441
eae7090b
GB
24422014-06-19 Gary Benson <gbenson@redhat.com>
2443
2444 * utils.h (resource_limit_kind): New enum.
2445 (can_dump_core): New declaration.
2446 (warn_cant_dump_core): Likewise.
2447 (dump_core): Likewise.
2448 * utils.c (dump_core): Made nonstatic. Added new
2449 parameter "limit_kind".
2450 (can_dump_core): Made nonstatic. Moved printing code to...
2451 (warn_cant_dump_core): New function.
2452 (can_dump_core_warn): Likewise.
2453 (internal_vproblem): Replace calls to can_dump_core with
2454 calls to can_dump_core_warn. Supply new argument to each.
2455
57fcfb1b
GB
24562014-06-19 Gary Benson <gbenson@redhat.com>
2457
2458 * utils.h (demangler_vwarning): New declaration.
2459 (demangler_warning): Likewise.
2460 * utils.c (struct internal_problem)
2461 <user_settable_should_quit>: New field.
2462 <user_settable_should_dump_core>: Likewise
2463 (internal_error_problem): Add values for above new fields.
2464 (internal_warning_problem): Likewise.
2465 (demangler_warning_problem): New static global.
2466 (demangler_vwarning): New function.
2467 (demangler_warning): Likewise.
2468 (add_internal_problem_command): Selectively add commands.
2469 (_initialize_utils): New internal problem command.
2470 * maint.c (maintenance_demangler_warning): New function.
2471 (_initialize_maint_cmds): New command.
2472
17a40b44
TT
24732014-06-18 Tom Tromey <tromey@redhat.com>
2474
2475 * f-valprint.c (info_common_command_for_block): Update.
2476 * symtab.h (struct general_symbol_info) <common_block>: Now
2477 const.
2478
346d1dfe
TT
24792014-06-18 Tom Tromey <tromey@redhat.com>
2480
2481 * symtab.h (struct symtab) <blockvector>: Now const.
2482 * ada-lang.c (ada_add_global_exceptions): Update.
2483 * buildsym.c (augment_type_symtab): Update.
2484 * dwarf2read.c (dw2_lookup_symbol): Update.
2485 * jit.c (finalize_symtab): Update.
2486 * jv-lang.c (add_class_symtab_symbol): Update.
2487 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2488 Update.
2489 * objfiles.c (objfile_relocate1): Update.
2490 * psymtab.c (lookup_symbol_aux_psymtabs)
2491 (maintenance_check_psymtabs): Update.
2492 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2493 Update.
2494 * spu-tdep.c (spu_catch_start): Update.
2495 * symmisc.c (dump_symtab_1): Update.
2496 * symtab.c (lookup_global_symbol_from_objfile)
2497 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2498 (basic_lookup_transparent_type_quick)
2499 (basic_lookup_transparent_type, find_pc_sect_symtab)
2500 (find_pc_sect_line, search_symbols): Update.
2501 * block.c (find_block_in_blockvector): Make "bl" const.
2502 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2503 const.
2504 (blockvector_contains_pc): Make "bv" const.
2505 (block_for_pc_sect): Update.
2506 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2507 (blockvector_contains_pc): Update.
2508 * breakpoint.c (resolve_sal_pc): Update.
2509 * inline-frame.c (block_starting_point_at): Update.
2510
1834676b
TT
25112014-06-18 Tom Tromey <tromey@redhat.com>
2512
2513 * completer.c (complete_line): Make "line_buffer" const.
2514 * completer.h (complete_line): Update.
2515
ac1a991b
TT
25162014-06-18 Tom Tromey <tromey@redhat.com>
2517
2518 * symtab.c (add_macro_name): Remove unneeded cast.
2519
5bc98e52
TT
25202014-06-18 Tom Tromey <tromey@redhat.com>
2521
2522 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2523 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2524
8236def8
TT
25252014-06-18 Tom Tromey <tromey@redhat.com>
2526
2527 * probe.c (info_probes_for_ops): Make "arg" const.
2528 * probe.h (info_probes_for_ops): Update.
2529
3977b71f
TT
25302014-06-18 Tom Tromey <tromey@redhat.com>
2531
2532 * varobj.c (varobj_create): Update.
2533 * valops.c (value_of_this): Update.
2534 * tracepoint.c (add_local_symbols, scope_info): Update.
2535 * symtab.h (struct general_symbol_info) <block>: Now const.
2536 * symtab.c (skip_prologue_sal)
2537 (default_make_symbol_completion_list_break_on)
2538 (skip_prologue_using_sal): Update.
2539 * stack.h (iterate_over_block_locals)
2540 (iterate_over_block_local_vars): Update.
2541 * stack.c (print_frame_args): Update.
2542 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2543 parameter const.
2544 (get_selected_block): Make return type const.
2545 * python/py-frame.c (frapy_block): Update.
2546 * python/py-block.c (gdbpy_block_for_pc): Update.
2547 * p-exp.y (%union) <bval>: Now const.
2548 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2549 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2550 * m2-exp.y (%union) <bval>: Now const.
2551 * linespec.c (get_current_search_block): Make return type const.
2552 (create_sals_line_offset, find_label_symbols): Update.
2553 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2554 Update.
2555 (block_starting_point_at): Make "block" const.
2556 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2557 (check_exception_resume): Update.
2558 * guile/scm-frame.c (gdbscm_frame_block): Update.
2559 * guile/scm-block.c (gdbscm_lookup_block): Update.
2560 * frame.h (get_frame_block): Update.
2561 (get_selected_block): Make return type const.
2562 * frame.c (frame_id_inner): Update.
2563 * f-valprint.c (info_common_command_for_block)
2564 (info_common_command): Update.
2565 * dwarf2loc.c (dwarf2_find_location_expression)
2566 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2567 (locexpr_describe_location_piece): Update.
2568 * c-exp.y (%union) <bval>: Now const.
2569 * breakpoint.c (resolve_sal_pc): Update.
2570 * blockframe.c (get_frame_block):Make return type const.
2571 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2572 (block_innermost_frame): Update.
2573 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2574 (block_for_pc, block_for_pc_sect): Update.
2575 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2576 'pblock' const.
2577 (block_for_pc_sect, block_for_pc): Make return type const.
2578 * ax-gdb.c (gen_expr): Update.
2579 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2580 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2581 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2582 (ada_read_var_value): Update.
2583 * ada-exp.y (struct name_info) <block>: Now const.
2584 (%union): Likewise.
2585 (block_lookup): Constify.
2586
b9228891
GB
25872014-06-18 Gary Benson <gbenson@redhat.com>
2588
2589 * nat/i386-dregs.h: New file.
2590 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2591 * i386-nat.h (i386-dregs.h): New include.
2592 (DR_FIRSTADDR): Now in i386-dregs.h.
2593 (DR_LASTADDR): Likewise.
2594 (DR_NADDR): Likewise.
2595 (DR_STATUS): Likewise.
2596 (DR_CONTROL): Likewise.
2597 (i386_debug_reg_state): Likewise.
2598 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2599
a1aa2221
LM
26002014-06-18 Don Breazeal <donb@codesourcery.com>
2601
2602 * breakpoint.c (set_longjmp_breakpoint): Call
2603 momentary_breakpoint_from_master with additional argument.
2604 (set_longjmp_breakpoint_for_call_dummy): Call
2605 momentary_breakpoint_from_master with additional argument.
2606 (set_std_terminate_breakpoint): Call
2607 momentary_breakpoint_from_master with additional argument.
2608 (momentary_breakpoint_from_master): Add argument to function
2609 definition and use it to initialize structure member flag.
74228e77 2610 (clone_momentary_breakpoint): Call
a1aa2221
LM
2611 momentary_breakpoint_from_master with additional argument.
2612 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2613 member flags set in momentary_breakpoint_from_master.
2614
4be83cc2
GB
26152014-06-18 Gary Benson <gbenson@redhat.com>
2616
2617 * i386-nat.c (i386_show_dr): Renamed to
2618 i386_dr_show and made nonstatic. All uses updated.
2619 (i386_length_and_rw_bits): Renamed to
2620 i386_dr_length_and_rw_bits and made nonstatic.
2621 All uses updated.
2622 (i386_insert_aligned_watchpoint): Renamed to
2623 i386_dr_insert_aligned_watchpoint and made nonstatic.
2624 All uses updated.
2625 (i386_remove_aligned_watchpoint): Renamed to
2626 i386_dr_remove_aligned_watchpoint and made nonstatic.
2627 All uses updated.
2628 (i386_update_inferior_debug_regs): Renamed to
2629 i386_dr_update_inferior_debug_regs and made nonstatic.
2630 All uses updated.
2631
131aa0d4
GB
26322014-06-18 Gary Benson <gbenson@redhat.com>
2633
2634 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2635 (i386_dr_low_can_set_control): Likewise.
2636 (i386_dr_low_set_addr): Likewise.
2637 (i386_dr_low_set_control): Likewise.
2638 (i386_dr_low_get_addr): Likewise.
2639 (i386_dr_low_get_status): Likewise.
2640 (i386_dr_low_get_control): Likewise.
2641 (i386_insert_aligned_watchpoint): Use new macros.
2642 (i386_update_inferior_debug_regs): Likewise.
2643 (i386_stopped_data_address): Likewise.
2644
d9305f7f
GB
26452014-06-18 Gary Benson <gbenson@redhat.com>
2646
2647 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2648 New parameter. All uses updated.
2649
ea008da4
GB
26502014-06-18 Gary Benson <gbenson@redhat.com>
2651
2652 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2653 All uses updated.
2654
1b6d4134
GB
26552014-06-18 Gary Benson <gbenson@redhat.com>
2656
2657 * i386-nat.c (debug_printf): New macro.
2658 (i386_get_debug_register_length): Likewise.
2659 (TARGET_HAS_DR_LEN_8): Use above macro.
2660 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2661 and printf_unfiltered. Use phex to format values.
2662
9b4550ef
GB
26632014-06-18 Gary Benson <gbenson@redhat.com>
2664
2665 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2666 Make const.
2667
6e62758f
GB
26682014-06-18 Gary Benson <gbenson@redhat.com>
2669
2670 * i386-nat.c: Comment changes.
2671
51c79e94
GB
26722014-06-18 Gary Benson <gbenson@redhat.com>
2673
2674 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2675
3e11889a
GB
26762014-06-18 Gary Benson <gbenson@redhat.com>
2677
2678 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2679 (i386_insert_aligned_watchpoint): Likewise.
2680 (i386_remove_aligned_watchpoint): Likewise.
2681 (i386_handle_nonaligned_watchpoint): Likewise.
2682
fc6e2f03
GB
26832014-06-18 Gary Benson <gbenson@redhat.com>
2684
2685 * i386-nat.c: Whitespace changes.
2686
2afe7d50
SB
26872014-06-17 Samuel Bronson <naesten@gmail.com>
2688
2689 * MAINTAINERS: Update Roland McGrath's email address.
2690 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2691 Red Hat a while ago, and giving me a current address.
2afe7d50 2692
3bca49ee
TT
26932014-06-17 Tom Tromey <tromey@redhat.com>
2694
2695 * utils.h (savestring): Remove declaration.
2696
6e366df1
TT
26972014-06-17 Tom Tromey <tromey@redhat.com>
2698
2699 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2700
6be47f0c
KS
27012014-06-16 Keith Seitz <keiths@redhat.com>
2702
2703 PR mi/15863
2704 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2705 to update the varobj if inferior_ptid is null_ptid.
2706
7bc112c1
TT
27072014-06-16 Tom Tromey <tromey@redhat.com>
2708
2709 * target.h (struct target_ops) <to_info_proc>: Make parameter
2710 const.
2711 (target_info_proc): Update.
2712 * target.c (target_info_proc): Make "args" const.
2713 * procfs.c (procfs_info_proc): Update.
2714 * linux-tdep.c (linux_info_proc): Update.
2715 (linux_core_info_proc_mappings): Make "args" const.
2716 (linux_core_info_proc): Update.
2717 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2718 * gdbarch.c: Rebuild.
2719 * gdbarch.h: Rebuild.
2720 * corelow.c (core_info_proc): Update.
2721
fee354ee
TT
27222014-06-16 Tom Tromey <tromey@redhat.com>
2723
2724 * target.h (struct target_ops) <to_disconnect>: Make parameter
2725 const.
2726 (target_disconnect): Update.
2727 * target.c (target_disconnect): Make "args" const.
2728 * target-delegates.c: Rebuild.
2729 * remote.c (remote_disconnect): Update.
2730 * record.h (record_disconnect): Update.
2731 * record.c (record_disconnect): Update.
2732 * inf-child.c (inf_child_disconnect): Update.
2733
a30bf1f1
TT
27342014-06-16 Tom Tromey <tromey@redhat.com>
2735
2736 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2737 * target.c (debug_to_rcmd, default_rcmd): Update.
2738 * target-delegates.c: Rebuild.
2739 * remote.c (remote_rcmd): Update.
2740 * monitor.c (monitor_rcmd): Update.
2741
d03de421
PA
27422014-06-16 Pedro Alves <palves@redhat.com>
2743
2744 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2745 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2746 have OBJF_SHARED set.
2747 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2748 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2749 instead of OBJF_USERLOADED.
2750 * objfiles.h (OBJF_SHARED): Update comment.
2751 (userloaded_objfile_contains_address_p): Rename to ...
2752 (shared_objfile_contains_address_p): ... this, and update
2753 comments.
2754 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2755 new objfile.
2756 (remove_symbol_file_command): Skip objfiles that don't have
2757 OBJF_SHARED set.
2758
99f4262f
TT
27592014-06-16 Tom Tromey <tromey@redhat.com>
2760
2761 * minsyms.h (prim_record_minimal_symbol)
2762 (prim_record_minimal_symbol_and_info): Update comments.
2763
97d66cc6
EZ
27642014-06-14 Eli Zaretskii <eliz@gnu.org>
2765
2766 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2767 or --without-guile, according to how GDB was built.
2768
635c7e8a
TT
27692014-06-13 Tom Tromey <tromey@redhat.com>
2770
2771 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2772 to help_list.
2773 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2774 to help_list.
2775 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2776 help_list.
2777 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2778 help_list.Pass all_commands, not -1, to help_list.
2779 * cli/cli-dump.c (dump_command, append_command)
2780 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2781 (binary_dump_command, binary_append_command): Pass all_commands,
2782 not -1, to help_list.
2783 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2784 -1, to help_list.
2785 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2786 -1, to help_list.
2787 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2788 help_list.
2789 * top.c (set_history): Pass all_commands, not -1, to help_list.
2790 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2791 all_commands, not -1, to help_list.
2792 * symfile.c (overlay_command): Pass all_commands, not -1, to
2793 help_list.
2794 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2795 help_list.
2796 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2797 help_list.
2798 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2799 -1, to help_list.
2800 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2801 not -1, to help_list.
2802 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2803 not -1, to help_list.
2804 * maint.c (maintenance_command, maintenance_info_command)
2805 (maintenance_print_command, maintenance_set_cmd): Pass
2806 all_commands, not -1, to help_list.
2807 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2808 help_list.
2809 * language.c (set_check): Pass all_commands, not -1, to help_list.
2810 * infcmd.c (unset_command): Pass all_commands, not -1, to
2811 help_list.
2812 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2813 help_list.
2814 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2815 help_list.
2816 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2817 help_list.
2818 * breakpoint.c (save_command): Pass all_commands, not -1, to
2819 help_list.
2820 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2821 all_commands, not -1, to help_list.
2822
b94ade42
PL
28232014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2824
2825 * regcache.c (struct register_to_invalidate): New structure.
2826 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2827 functions.
2828 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2829
31f628ae
YQ
28302014-06-12 Yao Qi <yao@codesourcery.com>
2831
2832 * varobj.c (varobj_get_num_children): Call
2833 varobj_is_dynamic_p.
2834 (varobj_list_children): Likewise.
2835 (varobj_update): Likewise. Update comments.
2836
cde5ef40
YQ
28372014-06-12 Yao Qi <yao@codesourcery.com>
2838
2839 * varobj.c (varobj_pretty_printed_p): Rename to ...
2840 (varobj_is_dynamic_p): ... this. New function.
2841 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2842 (varobj_is_dynamic_p): Declare.
2843 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2844 (mi_print_value_p, varobj_update_one): Likewise.
2845
576ea091
YQ
28462014-06-12 Pedro Alves <pedro@codesourcery.com>
2847 Yao Qi <yao@codesourcery.com>
2848
2849 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2850 (varobj_get_iterator): Wrap up code for pretty-printer by
2851 "#if HAVE_PYTHON" and "#endif".
2852 (update_dynamic_varobj_children): Likewise.
2853
827f100c
YQ
28542014-06-12 Pedro Alves <pedro@codesourcery.com>
2855 Yao Qi <yao@codesourcery.com>
2856
2857 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2858 gdb_python_initialized is false. Move some code from varobj.c.
2859 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2860 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2861 (struct varobj_item): Moved to varobj-iter.h".
2862 (varobj_clear_saved_item): New function.
2863 (update_dynamic_varobj_children): Move python-related code to
2864 py-varobj.c.
2865 (free_variable): Call varobj_clear_saved_item and
2866 varobj_iter_delete.
2867
e5250216
YQ
28682014-06-12 Pedro Alves <pedro@codesourcery.com>
2869 Yao Qi <yao@codesourcery.com>
2870
2871 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2872 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2873 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2874 (py-varobj.o): New rule.
2875 * python/py-varobj.c: New file.
2876 * python/python-internal.h (py_varobj_get_iterator): Declare.
2877 * varobj-iter.h: New file.
2878 * varobj.c: Include "varobj-iter.h"
2879 (struct varobj) <child_iter>: Change its type from "PyObject *"
2880 to "struct varobj_iter *".
2881 <saved_item>: Likewise.
2882 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2883 [HAVE_PYTHON] (varobj_get_iterator): New function.
2884 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2885 python-specific code to python/py-varobj.c.
2886 (install_visualizer): Call varobj_iter_delete instead of
2887 Py_XDECREF.
2888 * varobj.h (varobj_ensure_python_env): Declare.
2889
5a2e0d6e
YQ
28902014-06-12 Yao Qi <yao@codesourcery.com>
2891
2892 * varobj.c (struct varobj_item): New structure.
2893 (create_child_with_value): Update declaration.
2894 (varobj_add_child): Replace arguments 'name' and 'value' with
2895 'item'. All callers updated.
2896 (install_dynamic_child): Likewise.
2897 (update_dynamic_varobj_children): Likewise.
2898 (varobj_add_child): Likewise.
2899 (create_child_with_value): Likewise.
2900
919b9a93
JB
29012014-06-11 Joel Brobecker <brobecker@adacore.com>
2902
2903 * NEWS: Create a new section for the next release branch.
2904 Rename the section of the current branch, now that it has
2905 been cut.
2906
71a55bdf
JB
29072014-06-11 Joel Brobecker <brobecker@adacore.com>
2908
2909 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2910 * version.in: Bump version to 7.8.50.DATE-cvs.
2911
364fe1f7
PA
29122014-06-11 Pedro Alves <palves@redhat.com>
2913
2914 PR remote/17028
2915 * ser-mingw.c (net_windows_socket_check_pending): New function.
2916 (net_windows_select_thread): Ignore spurious wakeups. Use
2917 net_windows_socket_check_pending.
2918 (net_windows_wait_handle): Check for pending events with
2919 ioctlsocket, through net_windows_socket_check_pending, instead of
2920 checking the socket's event.
2921
5a6c7709
SC
29222014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2923
2924 * python/python-internal.h (gdb_PyObject_GetAttrString)
2925 (gdb_PyObject_HasAttrString): New inline function definitions.
2926 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2927 char * of the second argument to PyObject_GetAttrString.
74228e77 2928
0e58ee40
JB
29292014-06-10 Joel Brobecker <brobecker@adacore.com>
2930
2931 * serial.c (serial_write): Fix index of character to be printed
2932 in call to serial_logchar when serial debug traces are enabled.
2933
d190df30
JB
29342014-06-10 Joel Brobecker <brobecker@adacore.com>
2935
2936 * gdbtypes (resolve_dynamic_range): Add function description.
2937
b4b01d36
PA
29382014-06-09 Pedro Alves <palves@redhat.com>
2939
2940 * linux-nat.c (linux_child_follow_fork): Initialize status with
2941 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2942 inner block. Only pass the signal to PTRACE_DETACH if in pass
2943 state.
2944
3657956b
GB
29452014-06-09 Gary Benson <gbenson@redhat.com>
2946
2947 * common/signals.c (gdb_signal_from_host): Reorder to separate
2948 the always-available ANSI-standard signals from the signals that
2949 require checking.
2950 (do_gdb_signal_to_host): Likewise.
2951 * proc-events.c (signal_table): Likewise.
2952
c077881a
HZ
29532014-06-08 Hui Zhu <hui@codesourcery.com>
2954
2955 * common/linux-ptrace.c (linux_disable_event_reporting): New
2956 function.
2957 * common/linux-ptrace.h (linux_disable_event_reporting): New
2958 declaration.
2959 * linux-nat.c (linux_child_follow_fork): Do a single step before
2960 detach.
2961
4186eb54
KS
29622014-06-07 Keith Seitz <keiths@redhat.com>
2963
2964 Revert:
2965 PR c++/16253
2966 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2967 from symbol_matches_domain in symtab.c. All local callers
2968 of symbol_matches_domain updated.
2969 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2970 search STRUCT_DOMAIN.
2971 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2972 independently. standard_lookup will do that automatically.
2973 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2974 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2975 (cp_lookup_symbol_in_namespace): Likewise.
2976 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2977 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2978 may return a STRUCT_DOMAIN match.
2979 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2980 * cp-support.c: Include language.h.
2981 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2982 VAR_DOMAIN.
2983 * psymtab.c (match_partial_symbol): Compare the requested
2984 domain with the symbol's domain directly.
2985 (lookup_partial_symbol): Likewise.
2986 * symtab.c (lookup_symbol_in_language): Explain when/why
2987 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2988 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2989 appropriate languages.
2990 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2991 and moved to ada-lang.c
2992 (lookup_block_symbol): Explain that this function only returns
2993 symbol matching the requested DOMAIN.
2994 Compare the requested domain with the symbol's domain directly.
2995 (iterate_over_symbols): Compare the requested domain with the
2996 symbol's domain directly.
2997 * symtab.h (symbol_matches_domain): Remove.
2998
25326a28 29992014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3000
3001 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3002 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3003 (gdbscm_guile_version_is_at_least): Declare.
3004 (gdbscm_scm_string_to_int): Declare.
3005 * guile/guile.c (gdbscm_guile_major_version): New global.
3006 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3007 (guile_datadir): New static global.
3008 (gdbscm_guile_data_directory): New function.
3009 (initialize_scheme_side): Update.
3010 (misc_guile_functions): Add guile-data-directory.
3011 (initialize_gdb_module): Fetch guile version number.
3012 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3013 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3014 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3015 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3016 comments.
3017 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3018 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3019 * guile/scm-value.c (gdbscm_value_to_string): Only call
3020 scm_port_conversion_strategy if Guile version >= 2.0.6.
3021
0a770bb2 30222014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3023
3024 * main.c (print_gdb_help): Add -q and --silent.
3025
73ba372c
GB
30262014-06-06 Gary Benson <gbenson@redhat.com>
3027
3028 * common/signals.c: Remove preprocessor conditionals for
3029 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3030 SIGSEGV and SIGTERM.
3031 * proc-events.c: Likewise.
3032
c33b2f12
MM
30332014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3034
3035 * symfile.c (symfile_free_objfile): Remove restriction to
3036 OBJF_USERLOADED.
3037 * symfile-mem.c (symbol_file_add_from_memory): Call
3038 add_target_sections_of_objfile.
3039
fb934770
LC
30402014-06-05 Ludovic Courtès <ludo@gnu.org>
3041
3042 * guile/scm-value.c (gdbscm_history_append_x): Use
3043 'vlscm_get_value_smob_arg_unsafe' instead of
3044 'vlscm_scm_to_value'.
3045
6ef284bd
SM
30462014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3047
3048 PR mi/15806
3049 * utils.c (printchar): Don't escape at all if quoter is NUL.
3050 Update function documentation to clarify effect of parameter
3051 QUOTER.
3052 * remote.c (escape_buffer): Pass '\\' as the quoter to
3053 fputstrn_unfiltered.
3054 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3055 generate the output.
3056 (mi_solib_unloaded): Same.
3057
270c9937
JB
30582014-06-05 Joel Brobecker <brobecker@adacore.com>
3059
3060 * development.sh: Delete.
3061 * Makefile.in (config.status): Adjust dependency on development.sh.
3062 * configure.ac: Adjust development.sh source call.
3063 * configure: Regenerate.
3064
16f691fb
DE
30652014-06-04 Doug Evans <xdje42@gmail.com>
3066
3067 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3068 is_scheme_bkpt, spec.
3069 (bpscm_make_breakpoint_smob): Initialize new members.
3070 (gdbscm_create_breakpoint_x): Split into two ...
3071 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3072 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3073 (scheme_function breakpoint_functions): Update.
3074 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3075 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3076 register-breakpoint!.
3077
ef7cab6b
JB
30782014-06-04 Joel Brobecker <brobecker@adacorer.com>
3079
3080 PR server/17023
3081 * mem-break.c (z_type_supported): Return zero if
3082 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3083
012370f6
TT
30842014-06-04 Tom Tromey <tromey@redhat.com>
3085
3086 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3087 value_from_contents_and_address_unresolved.
3088 (ada_template_to_fixed_record_type_1): Likewise.
3089 (ada_which_variant_applies): Likewise.
3090 * value.h (value_from_contents_and_address_unresolved): Declare.
3091 * value.c (value_from_contents_and_address_unresolved): New
3092 function.
3093 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3094 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3095 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3096
92e2a17f
TT
30972014-06-04 Tom Tromey <tromey@redhat.com>
3098
3099 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3100
c0939df1
TT
31012014-06-04 Tom Tromey <tromey@redhat.com>
3102
3103 * procfs.c (procfs_attach): Make "args" const.
3104 * windows-nat.c (windows_attach): Make "args" const.
3105 * nto-procfs.c (procfs_attach): Make "args" const.
3106 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3107 * go32-nat.c (go32_attach): Make "args" const.
3108 * gnu-nat.c (gnu_attach): Make "args" const.
3109 * darwin-nat.c (darwin_attach): Make "args" const.
3110 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3111 * linux-nat.c (linux_nat_attach): Make "args" const.
3112 * remote.c (extended_remote_attach_1, extended_remote_attach):
3113 Make "args" const.
3114 * target.h (struct target_ops) <to_attach>: Make "args" const.
3115 (find_default_attach): Likewise.
3116 * utils.c (parse_pid_to_attach): Make "args" const.
3117 * utils.h (parse_pid_to_attach): Update.
3118
8eaff7cd
TT
31192014-06-04 Tom Tromey <tromey@redhat.com>
3120
3121 * target-delegates.c: Rebuild.
3122 * target.c (default_thread_address_space): New function.
3123 (target_thread_address_space): Simplify.
3124 * target.h (struct target_ops) <to_thread_address_space>: Add
3125 TARGET_DEFAULT_FUNC.
3126
1913f160
DE
31272014-06-04 Doug Evans <xdje42@gmail.com>
3128
3129 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3130
70ad5bff
MM
31312014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3132
3133 * record-btrace.c: Include event-loop.h and inf-loop.h.
3134 (record_btrace_resume_exec_dir)
3135 (record_btrace_async_inferior_event_handler)
3136 (record_btrace_handle_async_inferior_event): New.
3137 (record_btrace_open): Create async event handler.
3138 (record_btrace_close): Delete async event handler.
3139 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3140 Mark async event handler.
3141 (record_btrace_execution_direction): New.
3142 (init_record_btrace_ops): Initialize to_execution_direction.
3143
b6210538
DE
31442014-06-03 Doug Evans <xdje42@gmail.com>
3145
3146 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3147 (gdbscm_make_parameter): Ditto.
3148
a5b1fd27
DE
31492014-06-03 Doug Evans <dje@google.com>
3150
3151 * exec.c (exec_close_1): Call clear_section_table instead of
3152 resize_section_table.
3153 (clear_section_table): New function.
3154 (resize_section_table): Make static. Rename arg num_added to
3155 adjustment.
3156 * exec.h (clear_section_table): Declare.
3157 (resize_section_table): Delete.
3158 * progspace.c (release_program_space): Call clear_section_table
3159 instead of resize_section_table.
3160
0c6e92a5
SC
31612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3162
3163 * NEWS (Python Scripting): Add entry about the new xmethods
3164 feature.
3165
883964a7
SC
31662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3167
3168 * python/py-xmethods.c: New file.
3169 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3170 (objfpy_dealloc): XDECREF on the new xmethods field.
3171 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3172 field.
3173 (objfpy_get_xmethods): New function.
3174 (objfile_getset): New entry 'xmethods'.
3175 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3176 (pspy_dealloc): XDECREF on the new xmethods field.
3177 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3178 field.
3179 (pspy_get_xmethods): New function.
3180 (pspace_getset): New entry 'xmethods'.
3181 * python/python-internal.h: Add declarations for new functions.
3182 * python/python.c (_initialize_python): Invoke
3183 gdbpy_initialize_xmethods.
3184 * python/lib/gdb/__init__.py (xmethods): New
3185 attribute.
3186 * python/lib/gdb/xmethod.py: New file.
3187 * python/lib/gdb/command/xmethods.py: New file.
3188
58992dc5
SC
31892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3190
3191 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3192 best match method returned by find_overload_match is an xmethod.
3193 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3194 the best matching operator returned by find_overload_match is an
3195 xmethod.
3196 * valops.c: #include "extension.h".
3197 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3198 Return void. The list of matching source methods is returned in
3199 "fn_list" and a vector of matching debug method workers is
3200 returned in "xm_worker_vec". Update all callers.
3201 (value_find_oload_method_list): Likewise.
3202 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3203 non-NULL, then the index of the best matching method in this
3204 vector is returned. Update all callers.
3205 (find_overload_match): Include xmethods while performing overload
3206 resolution.
3207
e81e7f5e
SC
32082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3209
3210 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3211 * extension-priv.h (struct extension_language_ops): Add the
3212 xmethod interface.
3213 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3214 get_matching_xmethod_workers, get_xmethod_argtypes,
3215 invoke_xmethod, free_xmethod_worker,
3216 free_xmethod_worker_vec): New functions.
3217 * extension.h: #include "common/vec.h".
3218 New function declarations.
3219 (struct xmethod_worker): New struct.
3220 (VEC (xmethod_worker_ptr)): New vector type.
3221 (xmethod_worker_ptr): New typedef.
3222 (xmethod_worker_vec): Likewise.
3223 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3224 builtin_type.
3225 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3226 (struct builtin_type): New field "xmethod".
3227 * valarith.c (value_ptradd): Assert that the value argument is not
3228 lval_xcallable.
3229 * valops.c (value_must_coerce_to_target): Return 0 for
3230 lval_xcallable values.
3231 * value.c (struct value): New field XM_WORKER in the field
3232 LOCATION.
3233 (value_address, value_raw_address): Return 0 for lval_xcallable
3234 values.
3235 (set_value_address): Assert that the value is not an
3236 lval_xcallable.
3237 (value_free): Free the associated xmethod worker when freeing
3238 lval_xcallable values.
3239 (set_value_component_location): Assert that the WHOLE value is not
3240 lval_xcallable.
3241 (value_of_xmethod, call_xmethod): New functions.
3242 * value.h: Declare "struct xmethod_worker".
3243 Declare new functions value_of_xmethod, call_xmethod.
3244
ef370185
JB
32452014-06-03 Joel Brobecker <brobecker@adacore.com>
3246 Pedro Alves <palves@redhat.com>
3247
3248 PR breakpoints/17000
3249 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3250 New function, extracted from software_breakpoint_inserted_here_p.
3251 (software_breakpoint_inserted_here_p): Replace factored out code
3252 by call to find_non_raw_software_breakpoint_inserted_here.
3253 (bp_target_info_copy_insertion_state): New function.
3254 (bkpt_insert_location): Handle the case of a single-step
3255 breakpoint already inserted at the same address.
3256 (bkpt_remove_location): Handle the case of a single-step
3257 breakpoint still inserted at the same address.
3258 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3259 breakpoint already inserted at the same address.
3260 (deprecated_remove_raw_breakpoint): Handle the case of a
3261 non-raw breakpoint still inserted at the same address.
3262 (find_single_step_breakpoint): New function, extracted from
3263 single_step_breakpoint_inserted_here_p.
3264 (find_single_step_breakpoint): New function,
3265 factored out from single_step_breakpoint_inserted_here_p.
3266 (single_step_breakpoint_inserted_here_p): Reimplement.
3267
1e2ccb61
BM
32682014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3269
3270 Pushed by Joel Brobecker <brobecker@adacore.com>
3271 * source.c (show_substitute_path_command): Fix display of matching
3272 substitution rules.
3273
d3448d85
GB
32742014-06-03 Gary Benson <gbenson@redhat.com>
3275
3276 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3277
06eb1586
DE
32782014-06-02 Doug Evans <xdje42@gmail.com>
3279
3280 Add parameter support for Guile.
3281 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3282 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3283 (scm-param.o): New rule.
3284 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3285 (gdbscm_misc_error): Declare.
3286 (gdbscm_canonicalize_command_name): Declare.
3287 (gdbscm_scm_to_host_string): Declare.
3288 (gdbscm_scm_from_host_string): Declare.
3289 (gdbscm_initialize_parameters): Declare.
3290 * guile/guile.c (initialize_gdb_module): Call
3291 gdbscm_initialize_parameters.
3292 * guile/lib/gdb.scm: Export parameter symbols.
3293 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3294 cmdscm_canonicalize_name and made public. All callers updated.
3295 * guile/scm-exception.c (gdbscm_misc_error): New function.
3296 * guile/scm-param.c: New file.
3297 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3298 (gdbscm_scm_to_host_string): New function.
3299 (gdbscm_scm_from_host_string): New function.
3300 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3301
e698b8c4
DE
33022014-06-02 Doug Evans <xdje42@gmail.com>
3303
3304 Add command support for Guile.
3305 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3306 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3307 (scm-cmd.o): New rule.
3308 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3309 (gdbscm_user_error_p): Declare.
3310 (gdbscm_parse_command_name): Declare.
3311 (gdbscm_valid_command_class_p): Declare.
3312 (gdbscm_initialize_commands): Declare.
3313 * guile/guile.c (initialize_gdb_module): Call
3314 gdbscm_initialize_commands.
3315 * guile/lib/gdb.scm: Export command symbols.
3316 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3317 (throw-user-error): New function.
3318 * guile/scm-cmd.c: New file.
3319 * guile/scm-exception.c (user_error_symbol): New static global.
3320 (gdbscm_user_error_p): New function.
3321 (gdbscm_initialize_exceptions): Set user_error_symbol.
3322 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3323
fb1f94b0
PM
33242014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3325
3326 * top.c (command_loop): Handle comments here...
3327 (command_line_input): ... not here.
3328
ded03782
DE
33292014-06-02 Doug Evans <xdje42@gmail.com>
3330
3331 Add progspace support for Guile.
3332 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3333 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3334 (scm-progspace.o): New rule.
3335 * guile/guile-internal.h (pspace_smob): New typedef.
3336 (psscm_pspace_smob_pretty_printers): Declare.
3337 (psscm_pspace_smob_from_pspace): Declare.
3338 (psscm_scm_from_pspace): Declare.
3339 * guile/guile.c (initialize_gdb_module): Call
3340 gdbscm_initialize_pspaces.
3341 * guile/lib/gdb.scm: Export progspace symbols.
3342 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3343 support.
3344 (append-pretty-printer!): Ditto.
3345 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3346 Implement.
3347 * guile/scm-progspace.c: New file.
3348
397998fc
AM
33492014-06-03 Alan Modra <amodra@gmail.com>
3350
3351 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3352 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3353
6aa5f3a6
DE
33542014-06-02 Doug Evans <dje@google.com>
3355
3356 Add support for skeletonless type units.
3357 * dwarf2read.c (struct dwarf2_per_objfile): New member
3358 n_allocated_type_units.
3359 (struct dwarf2_per_objfile) <tu_stats>: New member
3360 nr_all_type_units_reallocs.
3361 (create_signatured_type_table_from_index): Initialize
3362 n_allocated_type_units
3363 (create_all_type_units): Ditto.
3364 (add_type_unit): Move up in file. New arg slot.
3365 All callers updated. Increase space for all_type_units more
3366 efficiently.
3367 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3368 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3369 (lookup_dwp_signatured_type): Ditto.
3370 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3371 All callers updated.
3372 (build_type_psymtabs_1): Leave type_unit_groups as
3373 NULL if no TUs present.
3374 (print_tu_stats): New function.
3375 (process_skeletonless_type_unit): New function.
3376 (process_dwo_file_for_skeletonless_type_units): New
3377 function.
3378 (process_skeletonless_type_units): New function.
3379 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3380 Call print tu_stats if debugging enabled.
3381
41fac0cf
PA
33822014-06-02 Pedro Alves <palves@redhat.com>
3383
3384 * breakpoint.c (build_target_command_list): Don't build a command
3385 list if we have any duplicate location that isn't a dprintf.
3386
cd1608cc
PA
33872014-06-02 Pedro Alves <palves@redhat.com>
3388
3389 * breakpoint.c (dprintf_breakpoint_hit): New function.
3390 (initialize_breakpoint_ops): Install it as dprintf's
3391 breakpoint_hit method.
3392
486ef3b9
JB
33932014-06-02 Joel Brobecker <brobecker@adacore.com>
3394
3395 * source.c (substitute_path_rule_matches): Simplify using
3396 filename_ncmp instead of FILENAME_CMP.
3397
230cd560
JB
33982014-06-02 Joel Brobecker <brobecker@adacore.com>
3399
3400 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3401
16954d5d
LC
34022014-06-01 Ludovic Courtès <ludo@gnu.org>
3403
3404 * configure.ac: When Guile is available, check for the
3405 availability of 'scm_new_smob'.
3406 * configure, config.h.in: Regenerate.
3407 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3408 function.
3409
53e8a631
AB
34102014-05-30 Andrew Burgess <aburgess@broadcom.com>
3411
3412 * frame.c (struct frame_info): Add stop_string field.
3413 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3414 (get_prev_frame_always): Old content moved into
3415 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3416 TRY_CATCH, handle MEMORY_ERROR exceptions.
3417 (frame_stop_reason_string): New function definition.
3418 * frame.h (unwind_stop_reason_to_string): Extend comment to
3419 mention frame_stop_reason_string.
3420 (frame_stop_reason_string): New function declaration.
3421 * stack.c (frame_info): Switch to frame_stop_reason_string.
3422 (backtrace_command_1): Switch to frame_stop_reason_string.
3423 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3424 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3425 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3426
70e38b8e
AB
34272014-05-30 Andrew Burgess <aburgess@broadcom.com>
3428
3429 * frame.c (frame_stop_reason_string): Rename to ...
3430 (unwind_stop_reason_to_string): this.
3431 * frame.h (frame_stop_reason_string): Rename to ...
3432 (unwind_stop_reason_to_string): this.
3433 * stack.c (frame_info): Update call to frame_stop_reason_string.
3434 (backtrace_command_1): Likewise.
3435 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3436 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3437
938f0e2f
AB
34382014-05-30 Andrew Burgess <aburgess@broadcom.com>
3439
3440 * frame.c (remove_prev_frame): New function.
3441 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3442 remove_prev_frame.
3443
a09dd441
PA
34442014-05-29 Pedro Alves <palves@redhat.com>
3445
3446 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3447 and make it const. When a single-step decays to a continue,
3448 clear 'step', not 'hw_step'. Pass whether the caller wanted
3449 to step to user_visible_resume_ptid, not what we ask the
3450 target to do.
3451
bdc36728
PA
34522014-05-29 Pedro Alves <palves@redhat.com>
3453
3454 * infrun.c (process_event_stop_test, handle_step_into_function)
3455 (handle_step_into_function_backward): Adjust.
3456 Don't set the even thread's stop_step and call stop_waiting before
3457 calling end_stepping_range. Instead do that ...
3458 (end_stepping_range): ... here. Take an ecs pointer parameter.
3459
22bcd14b
PA
34602014-05-29 Pedro Alves <palves@redhat.com>
3461
3462 * infrun.c (stop_stepping): Rename to ...
3463 (stop_waiting): ... this.
3464 (proceed): Update comment.
3465 (process_event_stop_test, handle_inferior_event)
3466 (handle_signal_stop, handle_step_into_function)
3467 (handle_step_into_function_backward): Update.
3468
4ae57c05
PA
34692014-05-29 Pedro Alves <palves@redhat.com>
3470
3471 * infcall.c (run_inferior_call): Don't check whether the current
3472 thread is running after the proceed call.
3473
329ea579
PA
34742014-05-29 Pedro Alves <palves@redhat.com>
3475 Tom Tromey <tromey@redhat.com>
3476
3477 * NEWS: Mention "maint set target-async", "set mi-async", and that
3478 background execution commands are now always available.
3479 * target.h (target_async_permitted): Update comment.
3480 * target.c (target_async_permitted, target_async_permitted_1):
3481 Default to 1.
3482 (set_target_async_command): Rename to ...
3483 (maint_set_target_async_command): ... this.
3484 (show_target_async_command): Rename to ...
3485 (maint_show_target_async_command): ... this.
3486 (_initialize_target): Adjust.
3487 * infcmd.c (prepare_execution_command): Make extern.
3488 * inferior.h (prepare_execution_command): Declare.
3489 * infrun.c (set_observer_mode): Leave target async alone.
3490 * mi/mi-interp.c (mi_interpreter_init): Install
3491 mi_on_sync_execution_done as sync_execution_done observer.
3492 (mi_on_sync_execution_done): New function.
3493 (mi_execute_command_input_handler): Don't print the prompt if we
3494 just started a synchronous command with an async target.
3495 (mi_on_resume): Check sync_execution before printing prompt.
3496 * mi/mi-main.h (mi_async_p): Declare.
3497 * mi/mi-main.c: Include gdbcmd.h.
3498 (mi_async_p): New function.
3499 (mi_async, mi_async_1): New globals.
3500 (set_mi_async_command, show_mi_async_command, mi_async): New
3501 functions.
3502 (exec_continue): Call prepare_execution_command.
3503 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3504 (mi_execute_async_cli_command): Use mi_async_p.
3505 (_initialize_mi_main): Install "set mi-async". Make
3506 "target-async" a deprecated alias.
3507
92bcb5f9
PA
35082014-05-29 Pedro Alves <palves@redhat.com>
3509
3510 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3511 (_initialize_cli_interp): Adjust.
3512 * event-loop.c: Include "observer.h".
3513 (start_event_loop): Notify 'command_error' observers instead of
3514 calling display_gdb_prompt. Remove FIXME comment.
3515 * event-top.c (display_gdb_prompt): Remove call into the
3516 interpreters.
3517 * inf-loop.c: Include "observer.h".
3518 (inferior_event_handler): Notify 'command_error' observers instead
3519 of calling display_gdb_prompt.
3520 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3521 observers instead of calling display_gdb_prompt.
3522 * interps.c (interp_set): Don't call display_gdb_prompt.
3523 (current_interp_display_prompt_p): Delete.
3524 * interps.h (interp_prompt_p): Delete declaration.
3525 (interp_prompt_p_ftype): Delete.
3526 (struct interp_procs) <prompt_proc_p>: Delete field.
3527 (current_interp_display_prompt_p): Delete declaration.
3528 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3529 (_initialize_mi_interp): Adjust.
3530 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3531 'command_error' observers.
3532 (tui_on_sync_execution_done, tui_on_command_error): New
3533 functions.
3534 (tui_display_prompt_p): Delete.
3535 (_initialize_tui_interp): Adjust.
3536
fd664c91
PA
35372014-05-29 Pedro Alves <palves@redhat.com>
3538
3539 PR gdb/13860
3540 * cli/cli-interp.c: Include infrun.h and observer.h.
3541 (cli_uiout, cli_interp): New globals.
3542 (cli_on_signal_received, cli_on_end_stepping_range)
3543 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3544 functions.
3545 (cli_interpreter_init): Install them as 'end_stepping_range',
3546 'signal_received' 'signal_exited', 'exited' and 'no_history'
3547 observers.
3548 (_initialize_cli_interp): Remove cli_interp local.
3549 * infrun.c (handle_inferior_event): Call the several stop reason
3550 observers instead of printing the stop reason directly.
3551 (end_stepping_range): New function.
3552 (print_end_stepping_range_reason, print_signal_exited_reason)
3553 (print_exited_reason, print_signal_received_reason)
3554 (print_no_history_reason): Make static, and add an uiout
3555 parameter. Print to that instead of to CURRENT_UIOUT.
3556 * infrun.h (print_end_stepping_range_reason)
3557 (print_signal_exited_reason, print_exited_reason)
3558 (print_signal_received_reason print_no_history_reason): New
3559 declarations.
3560 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3561 'mi_uiout'.
3562 <cli_uiout>: New field.
3563 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3564 uiout for CLI output. Install 'signal_received',
3565 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3566 observers.
3567 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3568 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3569 (mi_on_no_history): New functions.
3570 (ui_out_free_cleanup): Delete function.
3571 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3572 instead use the one already stored in the MI interpreter data.
3573 (mi_ui_out): Adjust.
3574 * tui/tui-interp.c: Include infrun.h and observer.h.
3575 (tui_interp): New global.
3576 (tui_on_signal_received, tui_on_end_stepping_range)
3577 (tui_on_signal_exited, tui_on_exited)
3578 (tui_on_no_history): New functions.
3579 (tui_init): Install them as 'end_stepping_range',
3580 'signal_received' 'signal_exited', 'exited' and 'no_history'
3581 observers.
3582 (_initialize_tui_interp): Delete tui_interp local.
3583
8817a6f2
PA
35842014-05-29 Pedro Alves <palves@redhat.com>
3585
3586 PR gdb/15713
3587 * linux-nat.c (linux_nat_resume_callback): Rename the second
3588 parameter to 'except'. Skip LP if it points to EXCEPT.
3589 (linux_nat_resume): Don't mark the event lwp as not stopped
3590 before resuming sibling lwps. Instead ask
3591 linux_nat_resume_callback to skip the event lwp. Mark it as not
3592 stopped after actually resuming it.
3593 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3594 resuming it.
3595 (wait_lwp): Mark the lwp as stopped here.
3596 (stop_wait_callback): Mark the lwp as not stopped right after
3597 resuming it. Don't mark lwps as stopped here.
3598 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3599 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3600
251bde03
PA
36012014-05-29 Pedro Alves <palves@redhat.com>
3602
3603 PR PR15693
3604 * infrun.c (resume): Determine how much to resume depending on
3605 whether the caller wanted a step, not whether we can hardware step
3606 the target. Mark all threads that we intend to run as running,
3607 unless we're calling an inferior function.
3608 (normal_stop): If the thread is running an infcall, don't finish
3609 thread state.
3610 * target.c (target_resume): Don't mark threads as running here.
3611
7f3c0343
JB
36122014-05-28 Joel Brobecker <brobecker@adacore.com>
3613
3614 * serial.c (_initialize_serial): Remove support for
3615 the "set remotebaud" and "show remotebaud" commands.
3616 * NEWS: Add entry documenting the removal of that command.
3617
ee34b3f9
YQ
36182014-05-28 Yao Qi <yao@codesourcery.com>
3619
3620 * charset.c: Fix typo in comments.
3621
add6c04d
GB
36222014-05-27 Gary Benson <gbenson@redhat.com>
3623
3624 * utils.c (internal_vproblem): Prompt for a bug report.
3625
92c48fc5
AW
36262014-05-26 Andy Wingo <wingo@igalia.com>
3627
3628 * guile/scm-arch.c (arscm_mark_arch_smob):
3629 * guile/scm-block.c (bkscm_mark_block_smob)
3630 (bkscm_mark_block_syms_progress_smob):
3631 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3632 * guile/scm-exception.c (exscm_mark_exception_smob):
3633 * guile/scm-frame.c (frscm_mark_frame_smob):
3634 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3635 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3636 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3637 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3638 (ppscm_mark_pretty_printer_worker_smob):
3639 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3640 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3641 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3642 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3643 mark functions.
3644 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3645 function.
3646
b2715b27
AW
36472014-05-26 Andy Wingo <wingo@igalia.com>
3648 Doug Evans <xdje42@gmail.com>
3649
3650 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3651 empty_base_class. All uses updated.
3652 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3653 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3654 Adapt all callers.
3655 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3656 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3657 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3658 (gdbscm_gsmob_has_property_p, add_property_name)
3659 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3660 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3661 (gdb-object-has-property?, gdb-object-properties): Remove.
3662 (gdb-object-kind): Renamed from gsmob-kind.
3663
214ab2da
AW
36642014-05-26 Andy Wingo <wingo@igalia.com>
3665
3666 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3667 * configure: Regenerate.
3668
589fdceb
MM
36692014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3670
3671 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3672
67b5c0c1
MM
36732014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3674
3675 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3676 (replay_memory_access_read_only, replay_memory_access_read_write)
3677 (replay_memory_access_types, replay_memory_access)
3678 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3679 (cmd_set_record_btrace, cmd_show_record_btrace)
3680 (cmd_show_replay_memory_access): New.
3681 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3682 (record_btrace_remove_breakpoint): Replace
3683 record_btrace_allow_memory_access with replay_memory_access.
3684 (_initialize_record_btrace): Add commands.
3685 * NEWS: Announce it.
3686
036cd381
RR
36872014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3688
3689 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3690
c77c1e42
RR
36912014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3692
3693 * MAINTAINERS (Write After Approval): Move self back from
3694 paper trail.
3695
45741a9c
PA
36962014-05-22 Pedro Alves <palves@redhat.com>
3697
3698 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3699 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3700 (disable_randomization, enum exec_direction_kind)
3701 (execution_direction, stop_registers, start_remote)
3702 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3703 (wait_for_inferior, normal_stop, get_last_target_status)
3704 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3705 (insert_step_resume_breakpoint_at_sal)
3706 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3707 (set_step_info, print_stop_event, signal_stop_state)
3708 (signal_print_state, signal_pass_state, signal_stop_update)
3709 (signal_print_update, signal_pass_update)
3710 (update_signals_program_target, clear_exit_convenience_vars)
3711 (displaced_step_dump_bytes, update_observer_mode)
3712 (signal_catch_update, gdb_signal_from_command): Move
3713 declarations ...
3714 * infrun.h: ... to this new file.
3715 * amd64-tdep.c: Include infrun.h.
3716 * annotate.c: Include infrun.h.
3717 * arch-utils.c: Include infrun.h.
3718 * arm-linux-tdep.c: Include infrun.h.
3719 * arm-tdep.c: Include infrun.h.
3720 * break-catch-sig.c: Include infrun.h.
3721 * breakpoint.c: Include infrun.h.
3722 * common/agent.c: Include infrun.h instead of inferior.h.
3723 * corelow.c: Include infrun.h.
3724 * event-top.c: Include infrun.h.
3725 * go32-nat.c: Include infrun.h.
3726 * i386-tdep.c: Include infrun.h.
3727 * inf-loop.c: Include infrun.h.
3728 * infcall.c: Include infrun.h.
3729 * infcmd.c: Include infrun.h.
3730 * infrun.c: Include infrun.h.
3731 * linux-fork.c: Include infrun.h.
3732 * linux-nat.c: Include infrun.h.
3733 * linux-thread-db.c: Include infrun.h.
3734 * monitor.c: Include infrun.h.
3735 * nto-tdep.c: Include infrun.h.
3736 * procfs.c: Include infrun.h.
3737 * record-btrace.c: Include infrun.h.
3738 * record-full.c: Include infrun.h.
3739 * remote-m32r-sdi.c: Include infrun.h.
3740 * remote-mips.c: Include infrun.h.
3741 * remote-notif.c: Include infrun.h.
3742 * remote-sim.c: Include infrun.h.
3743 * remote.c: Include infrun.h.
3744 * reverse.c: Include infrun.h.
3745 * rs6000-tdep.c: Include infrun.h.
3746 * s390-linux-tdep.c: Include infrun.h.
3747 * solib-irix.c: Include infrun.h.
3748 * solib-osf.c: Include infrun.h.
3749 * solib-svr4.c: Include infrun.h.
3750 * target.c: Include infrun.h.
3751 * top.c: Include infrun.h.
3752 * windows-nat.c: Include infrun.h.
3753 * mi/mi-interp.c: Include infrun.h.
3754 * mi/mi-main.c: Include infrun.h.
3755 * python/py-threadevent.c: Include infrun.h.
3756
98eb56a4
PA
37572014-05-22 Pedro Alves <palves@redhat.com>
3758
3759 * infrun.c (handle_inferior_event): Store the exit code for
3760 --return-child-result here, instead of ...
3761 (print_exited_reason): ... here.
3762
17b2616c
PA
37632014-05-21 Pedro Alves <palves@redhat.com>
3764
3765 PR gdb/13860
3766 * gdbthread.h (struct thread_control_state): New field
3767 `command_interp'.
3768 * infrun.c (follow_fork): Copy the new thread control field to the
3769 child fork thread.
3770 (clear_proceed_status_thread): Clear the new thread control field.
3771 (proceed): Set the new thread control field.
3772 * interps.h (command_interp): Declare.
3773 * interps.c (command_interpreter): New global.
3774 (command_interp): New function.
3775 (interp_exec): Set `command_interpreter' while here.
3776 * cli-out.c (cli_uiout_dtor): New function.
3777 (cli_ui_out_impl): Install it.
3778 * mi/mi-interp.c: Include cli-out.h.
3779 (mi_cmd_interpreter_exec): Add comment.
3780 (restore_current_uiout_cleanup): New function.
3781 (ui_out_free_cleanup): New function.
3782 (mi_on_normal_stop): If finishing an execution command started by
3783 a CLI command, or any kind of breakpoint-like event triggered,
3784 print the stop event to the output (CLI) stream.
3785 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3786
5166082f
PA
37872014-05-21 Pedro Alves <palves@redhat.com>
3788
3789 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3790 current source line having changed.
3791 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3792 * infrun.c (normal_stop): Adjust call to
3793 set_current_sal_from_frame.
3794 * source.c (clear_lines_listed_range): New function.
3795 (set_current_source_symtab_and_line, identify_source_line): Clear
3796 the lines listed range.
3797 (line_info): Handle the first "info line" after the current source
3798 line having changed.
3799 * stack.c (print_stack_frame): Remove center handling.
3800 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3801 center sal.line.
3802
c1ee2fb3
PA
38032014-05-21 Pedro Alves <palves@redhat.com>
3804
3805 * inf-child.c (inf_child_mourn_inferior): New function.
3806 * inf-child.h (inf_child_mourn_inferior): New declaration.
3807 * darwin-nat.c (darwin_mourn_inferior): Use
3808 inf_child_mourn_inferior.
3809 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3810 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3811 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3812 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3813 * windows-nat.c (windows_mourn_inferior): Likewise.
3814
5c6d4fb2
DE
38152014-05-21 Doug Evans <xdje42@gmail.com>
3816
250748cb 3817 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3818
4a2722c5
DE
38192014-05-21 Doug Evans <xdje42@gmail.com>
3820
17292b30 3821 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3822 (gdbscm_out_of_range_error): Ditto.
3823 (gdbscm_memory_error): Ditto.
250748cb
DE
3824 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3825 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3826 (gdbscm_out_of_range_error): Update.
3827 (gdbscm_memory_error): Update.
3828 (gdbscm_scm_to_target_string_unsafe): Delete.
3829
6a3cb8e8
PA
38302014-05-21 Pedro Alves <palves@redhat.com>
3831
3832 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3833 globals.
3834 (inf_child_open_target): New function.
3835 (inf_child_open): Use inf_child_open_target to push the target
3836 instead of erroring out.
3837 (inf_child_disconnect, inf_child_close)
3838 (inf_child_maybe_unpush_target): New functions.
3839 (inf_child_target): Install inf_child_disconnect and
3840 inf_child_close. Store a pointer to the returned object.
3841 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3842 declarations.
3843 * target.c (auto_connect_native_target): New global.
3844 (show_default_run_target): New function.
3845 (find_default_run_target): Return NULL if automatically connecting
3846 to the native target is disabled.
3847 (_initialize_target): Install set/show auto-connect-native-target.
3848 * NEWS: Mention "set auto-connect-native-target", and "target
3849 native".
3850 * linux-nat.c (super_close): New global.
3851 (linux_nat_close): Call super_close.
3852 (linux_nat_add_target): Store a pointer to the base class's
3853 to_close method.
3854 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3855 inf_child_maybe_unpush.
3856 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3857 already pushed.
3858 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3859 the inferior. Use inf_child_maybe_unpush_target.
3860 (inf_ttrace_attach): Don't push the target if it is already
3861 pushed.
3862 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3863 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3864 after mourning the inferior. Use inf_child_maybe_unpush_target.
3865 (darwin_attach_pid): Don't push the target if it is already
3866 pushed.
3867 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3868 mourning the inferior. Use inf_child_maybe_unpush_target.
3869 (gnu_detach): Use inf_child_maybe_unpush_target.
3870 * go32-nat.c (go32_create_inferior): Don't push the target if it
3871 is already pushed.
3872 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3873 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3874 (procfs_open): Rename to ...
3875 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3876 comments. Can target_preopen before changing node. Call
3877 inf_child_open_target to push the target explicitly.
3878 (procfs_attach): Don't push the target if it is already pushed.
3879 (procfs_detach): Use inf_child_maybe_unpush_target.
3880 (procfs_create_inferior): Don't push the target if it is already
3881 pushed.
3882 (nto_native_ops): New global.
3883 (procfs_open): Reimplement.
3884 (procfs_native_open): New function.
3885 (init_procfs_targets): Install procfs_native_open as to_open of
3886 "target native". Store a pointer to the "native" target in
3887 nto_native_ops.
3888 * procfs.c (procfs_attach): Don't push the target if it is already
3889 pushed.
3890 (procfs_detach): Use inf_child_maybe_unpush_target.
3891 (procfs_mourn_inferior): Only unpush the target after mourning the
3892 inferior. Use inf_child_maybe_unpush_target.
3893 (procfs_init_inferior): Don't push the target if it is already
3894 pushed.
3895 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3896 if it is already pushed.
3897
930ee1b1
PA
38982014-05-21 Pedro Alves <palves@redhat.com>
3899
3900 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3901 and "procfs" targets are now called "native" instead.
3902
1f5d1b13
PA
39032014-05-21 Pedro Alves <palves@redhat.com>
3904
3905 * go32-nat.c (go32_open): Delete.
3906 (go32_target): Don't override the to_open method.
3907
132f8e03
PA
39082014-05-21 Pedro Alves <palves@redhat.com>
3909
3910 * nto-procfs.c (procfs_can_run): New function.
3911 (nto_procfs_ops): New global.
3912 (init_procfs_targets): New, based on procfs_target. Install
3913 "target native" in addition to "target procfs".
3914 (_initialize_procfs): Call init_procfs_targets instead of adding
3915 the target here.
3916
03c136c3
PA
39172014-05-21 Pedro Alves <palves@redhat.com>
3918
3919 * windows-nat.c (windows_target): Don't override to_shortname,
3920 to_longname or to_doc.
3921
a635d0f3
PA
39222014-05-21 Pedro Alves <palves@redhat.com>
3923
3924 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3925 to_doc.
3926
4f9b5133
PA
39272014-05-21 Pedro Alves <palves@redhat.com>
3928
3929 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3930 to_shortname, to_longname or to_doc.
3931
bc85afde
PA
39322014-05-21 Pedro Alves <palves@redhat.com>
3933
3934 * go32-nat.c (go32_target): Don't override to_shortname,
3935 to_longname or to_doc.
3936
4ebfc96e
PA
39372014-05-21 Pedro Alves <palves@redhat.com>
3938
3939 * inf-child.c (inf_child_open): Remove mention of "child".
3940 (inf_child_target): Rename target to "native" instead of "child".
3941
2648dfed
AA
39422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3943
3944 * Makefile.in (SFILES): Delete "regset.c".
3945 (COMMON_OBS): Delete "regset.o".
3946 * regset.c: Remove.
3947 * regset.h (regset_alloc): Delete prototype.
3948
b13feb94
AA
39492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3950
3951 * sparc-linux-tdep.c (sparc32_linux_gregset)
3952 (sparc32_linux_fpregset): New static regset structures.
3953 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3954 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3955 'fpregset' fields.
3956 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3957 (sparc64_linux_fpregset): New static regset structures.
3958 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3959 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3960 New static regset structures.
3961 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3962 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3963 New static regset structures.
3964 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3965 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3966 New static regset structures.
3967 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3968 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3969 New static regset structures.
3970 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3971
b4fd25c9
AA
39722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3973
3974 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3975 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3976 register maps ("regmaps") from "*regset" to "*regmap". Do this
3977 for all regmap types and variables.
3978 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3979 (sparc32_linux_supply_core_gregset)
3980 (sparc32_linux_collect_core_gregset)
3981 (sparc32_linux_supply_core_fpregset)
3982 (sparc32_linux_collect_core_fpregset): Likewise.
3983 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3984 (sparc_gregmap, sparc_fpregmap): ... these.
3985 (sparc_supply_gregset, sparc_collect_gregset)
3986 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3987 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3988 (_initialize_sparc_nat): Rename regmaps.
3989 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3990 (sparc_gregmap, sparc_fpregmap): ... these.
3991 (sparc_supply_gregset, sparc_collect_gregset)
3992 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3993 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3994 Rename macros to...
3995 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3996 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3997 Likewise.
3998 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3999 Rename to...
4000 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4001 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4002 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4003 regmaps.
4004 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4005 (sparc32_bsd_fpregset): Rename to...
4006 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4007 (sparc32_bsd_fpregmap): ... these.
4008 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4009 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4010 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4011 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4012 (struct sparc_gregmap, struct sparc_fpregmap)
4013 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4014 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4015 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4016 (sparc32_supply_regset, sparc32_collect_gregset)
4017 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4018 prototypes.
4019 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4020 (sparc64_linux_ptrace_gregmap): ... this.
4021 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4022 (_initialize_sparc64_linux_nat): Rename regmaps.
4023 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4024 (sparc64_linux_core_gregmap): ... this.
4025 (sparc64_linux_supply_core_gregset)
4026 (sparc64_linux_collect_core_gregset)
4027 (sparc64_linux_supply_core_fpregset)
4028 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4029 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4030 (sparc64_sol2_fpregset): Rename to...
4031 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4032 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4033 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4034 regmaps.
4035 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4036 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4037 (sparc64_bsd_fpregset): Rename to...
4038 (struct sparc_gregmap, sparc64_sol2_gregmap)
4039 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4040 (sparc64_bsd_fpregmap): ... these.
4041 (sparc64_supply_gregset, sparc64_collect_gregset)
4042 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4043 prototypes.
4044 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4045 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4046 (sparc64fbsd_gregmap): ... this.
4047 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4048 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4049 Rename regmaps.
4050 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4051 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4052 (sparc64nbsd_collect_fpregset): Likewise.
4053 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4054 (sparc64nbsd_gregmap): ... this.
4055 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4056 regmaps.
4057 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4058 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4059 (sparc64obsd_gregmap): ... this.
4060 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4061 regmaps.
4062 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4063 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4064 (sparc32nbsd_gregmap): ... this.
4065 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4066 regmaps.
4067
8fea3224
AA
40682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4069
4070 * score-tdep.c (score7_linux_gregset): New static regset
4071 structure.
4072 (score7_linux_regset_from_core_section): Remove dynamic regset
4073 allocation.
4074 (score_gdbarch_init): Drop allocation of tdep structure.
4075 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4076
24534243
AA
40772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4078
4079 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4080 regset structures.
4081 (am33_regset_from_core_section): Remove dynamic regset
4082 allocations.
4083
b7195f27
AA
40842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4085
4086 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4087 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4088 structures.
4089 (mips_linux_regset_from_core_section): Remove dynamic regset
4090 allocations.
4091 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4092 'gregset64', 'fpregset', and 'fpregset64'.
4093 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4094 deleted tdep fields.
4095
ecc37a5a
AA
40962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4097
4098 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4099 regset structures.
4100 (amd64_regset_from_core_section): Remove dynamic regset
4101 allocations.
4102 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4103 structure.
4104 (amd64obsd_regset_from_core_section): Remove dynamic regset
4105 allocation.
4106 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4107 Likewise.
4108 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4109 x86-common regset supply function.
4110 * i386-tdep.c (i386_collect_gregset): Make static.
4111 (i386_gregset): New global regset structure.
4112 (i386_fpregset, i386_xstateregset): New static regset structures.
4113 (i386_regset_from_core_section): Remove dynamic regset
4114 allocations.
4115 (i386_gdbarch_init): Remove initialization of tdep fields
4116 'gregset', 'fpregset', and 'xstateregset'.
4117 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4118 'fpregset', and 'xstateregset'.
4119 (i386_collect_gregset): Remove prototype.
4120 (i386_gregset): New declaration.
4121 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4122 structure.
4123 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4124 allocation.
4125
b7611c43
AA
41262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4127
4128 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4129 (arm_linux_vfpregset): New static regset structures.
4130 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4131 regset structures.
4132 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4133 and 'vfpregset' fields.
4134
a069a2bd
AA
41352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4136
4137 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4138 (aarch64_linux_fpregset): New static regset structures.
4139 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4140 of regset structures.
4141 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4142 'fpregset' fields.
4143
09424cff
AA
41442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4145
4146 * regset.h (struct regset): Remove gdbarch field.
4147 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4148 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4149 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4150 Likewise.
4151 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4152 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4153 (ppc32_linux_vsxregset): Likewise.
4154 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4155 via the regcache instead of the regset.
4156 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4157 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4158 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4159 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4160 Likewise.
4161
3ca7dae4
AA
41622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4163
4164 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4165 Constify structures.
4166 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4167 (alphanbsd_aout_gregset): Likewise.
4168 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4169 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4170 Likewise.
4171 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4172 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4173 Likewise.
4174 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4175 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4176 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4177 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4178 * m88k-tdep.c (m88k_gregset): Likewise.
4179 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4180 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4181 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4182 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4183 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4184 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4185 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4186 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4187 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4188 Likewise.
4189 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4190 * sh-tdep.h (sh_corefile_gregset): Likewise.
4191 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4192 * vax-tdep.c (vax_gregset): Likewise.
4193
5876f503
JK
41942014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4195
4196 Fix TLS access for -static -pthread.
4197 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4198 (try_thread_db_load_1): Initialize it.
4199 (thread_db_get_thread_local_address): Call it if LM is zero.
4200 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4201 * target.h (struct target_ops) (to_get_thread_local_address): Add
4202 load_module_addr comment.
4203
0256a6ac
PA
42042014-05-21 Pedro Alves <palves@redhat.com>
4205
4206 * dcache.c (dcache_read_memory_partial): If reading the cache line
4207 fails, fallback to reading just the memory the caller wanted.
4208
227533ac
DE
42092014-05-20 Doug Evans <dje@google.com>
4210
4211 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4212 instead of get_current_arch.
4213
936d2992
PA
42142014-05-20 Pedro Alves <palves@redhat.com>
4215
4216 * NEWS: Mention that compare-sections now works with all targets.
4217
4218 * remote.c (PACKET_qCRC): New enum value.
4219 (remote_verify_memory): Don't send qCRC if the target has no
4220 execution. Use packet_support/packet_ok. If the target doesn't
4221 support the qCRC packet, fallback to a deep memory copy.
4222 (compare_sections_command): Say "target image" instead of "remote
4223 executable".
4224 (_initialize_remote): Add PACKET_qCRC to the list of config
4225 packets that have no associated command. Extend comment.
4226 * target.c (simple_verify_memory, default_verify_memory): New
4227 function.
4228 * target.h (struct target_ops) <to_verify_memory>: Default to
4229 default_verify_memory.
4230 (simple_verify_memory): New declaration.
4231 * target-delegates.c: Regenerate.
4232
e59fa00f
MM
42332014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4234
4235 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4236
f2205de0
HZ
42372014-05-20 Hui Zhu <hui@codesourcery.com>
4238 Yao Qi <yao@codesourcery.com>
4239
4240 PR backtrace/16558
4241 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4242 and change address of sp and pc.
4243
c4e54771
TT
42442014-05-19 Tom Tromey <tromey@redhat.com>
4245
4246 * gdbtypes.c (rank_function): Use XNEWVEC.
4247 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4248
73051182
DE
42492014-05-19 Doug Evans <dje@google.com>
4250
4251 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4252 build_type_unit_groups and moved closer to only caller. Remove
4253 arguments. All references updated. Remove outdated .gdb_index
4254 comment.
4255 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4256 build_type_psymtabs_1.
4257
8832e7e3
DE
42582014-05-19 Doug Evans <dje@google.com>
4259
4260 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4261 n_type_unit_groups, all_type_unit_groups. All uses removed.
4262 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4263 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4264 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4265 (add_type_unit_group_to_table): Delete.
4266
cd8ae15e
DE
42672014-05-19 Doug Evans <dje@google.com>
4268
4269 * eval.c (evaluate_subexp_standard): Add some comments.
4270
08f4850b
DE
42712014-05-17 Doug Evans <xdje42@gmail.com>
4272
4273 * progspace.c (remove_program_space): Delete, unused.
4274 * progspace.h (remove_program_space): Ditto.
4275
bed8455c
DE
42762014-05-17 Doug Evans <xdje42@gmail.com>
4277
4278 * inferior.c (prune_inferiors): Fix comment.
4279 (remove_inferior_command): Call prune_program_spaces.
4280
8d551b02
DE
42812014-05-16 Doug Evans <dje@google.com>
4282
4283 New command line option -D.
4284 * NEWS: Mention it.
4285 * main.c (set_gdb_data_directory): New function.
4286 (captured_main): Recognize -D. Flag error for --data-directory "".
4287 Call set_gdb_data_directory.
4288 (print_gdb_help): Print --data-directory, -D.
4289 * main.h (set_gdb_data_directory): Declare.
4290 * top.c (staged_gdb_datadir): New static global.
4291 (set_gdb_datadir): Call set_gdb_data_directory
4292 (show_gdb_datadir): New function.
4293 (init_main): Update init of data-directory parameter.
4294
18848e28
GF
42952014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4296
4297 Import the "dirfd" gnulib module.
4298 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4299 * gnulib/aclocal.m4: Update.
4300 * gnulib/config.in: Update.
4301 * gnulib/configure: Update.
4302 * gnulib/import/Makefile.am: Update.
4303 * gnulib/import/Makefile.in: Update.
4304 * gnulib/import/dirfd.c: New.
4305 * gnulib/import/m4/dirfd.m4: New.
4306 * gnulib/import/m4/gnulib-cache.m4: Update.
4307 * gnulib/import/m4/gnulib-comp.m4: Update.
4308
95c64f92
YQ
43092014-05-16 Pierre Muller <muller@sourceware.org>
4310 Yao Qi <yao@codesourcery.com>
4311
4312 * valprint.c (print_wchar): Move the code on checking whether
4313 W is a printable wide char to the default branch of switch
4314 statement below. Call wchar_printable instead of gdb_iswprint.
4315
cac395ea
TM
43162014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4317
19679eca 4318 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4319 ldr.w and ldrd instructions.
4320
83655187
DE
43212014-05-15 Doug Evans <dje@google.com>
4322
4323 * dwarf2read.c (read_structure_type): Delete outdated comments.
4324
dd756689
TT
43252014-05-14 Tom Tromey <tromey@redhat.com>
4326
4327 * macrocmd.c (print_macro_definition): Reindent.
4328
75ddda77
DE
43292014-05-13 Doug Evans <xdje42@gmail.com>
4330
4331 * python/py-cmd.c (cmdpy_completer): Add comment.
4332 (completers): Make const.
4333
b0f16a3e
SM
43342014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4335
4336 * infrun.c (resume): Remove should_resume (unused). Move up
4337 declaration of resume_ptid.
4338
033c3379
TT
43392014-05-13 Tom Tromey <tromey@redhat.com>
4340
4341 * language.h (unop_type_check): Remove.
4342 (binop_type_check): Don't declare.
4343
9b44a3a5
AA
43442014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4345
4346 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4347 call to regcache_raw_collect.
4348
303a33fa
SM
43492014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4350
4351 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4352 mi_console->quote as the quoting character.
4353
196100a0
SM
43542014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4355
4356 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4357
f989a1c8
TT
43582014-04-29 Tom Tromey <tromey@redhat.com>
4359
4360 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4361 "show debug varobj".
4362
9404b58f
KM
43632014-05-07 Kyle McMartin <kyle@redhat.com>
4364
4365 Pushed by Joel Brobecker <brobecker@adacore.com>.
4366 * aarch64-tdep.c (aarch64_software_single_step): New function.
4367 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4368 with aarch64_software_single_step.
4369
5e49ba57
JB
43702014-05-05 Joel Brobecker <brobecker@adacore.com>
4371
4372 GDB 7.7.1 released.
4373
c888a17d
KS
43742014-05-05 Keith Seitz <keiths@redhat.com>
4375
4376 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4377 variable or history value is successfully parsed.
4378
290a839c
YQ
43792014-05-05 Yao Qi <yao@codesourcery.com>
4380 Pedro Alves <palves@redhat.com>
4381
4382 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4383 address of blocks that intersects the requested range. Trim
4384 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4385 sections.
4386 * ctf.c (ctf_xfer_partial): Likewise.
4387
91256dc2
YQ
43882014-05-05 Yao Qi <yao@codesourcery.com>
4389
4390 * printcmd.c (display_command): Remove the check to
4391 target_has_execution.
4392
07284463
MK
43932014-05-03 Mark Kettenis <kettenis@gnu.org>
4394
4395 * ppcobsd-nat.c: Include "obsd-nat.h".
4396 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4397 add_target.
4398 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4399
30a1e6cc
SDJ
44002014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4401
4402 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4403 and 16-bit signed and unsigned arguments. Update comment.
4404 (stap_parse_probe_arguments): Extend code to handle such
4405 arguments. Use warning instead of complaint to notify about
4406 unrecognized bitness.
4407
f33da99a
SDJ
44082014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4409
4410 PR breakpoints/16889
4411 * stap-probe.c (stap_parse_probe_arguments): Simplify
4412 check for non-prefixed probes (i.e., probes whose
4413 arguments do not start with "N@"). Always set the
4414 argument type to a sane value.
4415
95cf3b38
DT
44162014-05-01 David Taylor <dtaylor@emc.com>
4417
4418 * remote.c (compare_sections_command): Add -r option to compare
4419 all loadable read-only sections.
4420
1cfdf534
SC
44212014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4422
4423 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4424 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4425 Update all callers.
4426 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4427 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4428 Remove unused CORE_ADDR argument. Update all callers.
4429
ca4f7f8b
PA
44302014-04-29 Pedro Alves <palves@redhat.com>
4431
4432 * remote.c (struct packet_config) <detect>: Extend comment.
4433 (add_packet_config_cmd): Don't set the config's detect or support
4434 fields here.
4435 (init_all_packet_configs): Also initialize the config's 'detect'
4436 field.
4437 (reset_all_packet_configs_support): New function.
4438 (remote_open_1): Call reset_all_packet_configs_support instead of
4439 init_all_packet_configs.
4440 (_initialize_remote): Initialize all packet configs. Assert that
4441 all packets have an associated command, except a few known
4442 outliers.
4443
11c1ba78
JB
44442014-04-28 Joel Brobecker <brobecker@adacore.com>
4445
4446 * dwarf2read.c (read_subrange_type): Handle dynamic
4447 DW_AT_lower_bound attributes.
4448
8739bc53
JB
44492014-04-28 Joel Brobecker <brobecker@adacore.com>
4450
4451 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4452 dynamic bounds before computing its upper bound.
4453 (ada_discrete_type_low_bound): Same as above with the lower bound.
4454
6f8a3220
JB
44552014-04-28 Joel Brobecker <brobecker@adacore.com>
4456
4457 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4458 range types. Adjust the array handling implementation to
4459 take advantage of this change.
4460 (resolve_dynamic_range): New function, mostly extracted from
4461 resolve_dynamic_bounds.
4462 (resolve_dynamic_array): New function, mostly extracted from
4463 resolve_dynamic_bounds.
4464 (resolve_dynamic_bounds): Delete.
4465 (resolve_dynamic_type): Reimplement. Add handling of
4466 TYPE_CODE_RANGE types.
4467
4d072ce4
JB
44682014-04-28 Joel Brobecker <brobecker@adacore.com>
4469
4470 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4471 handling of parallel ___XA types.
4472
52865325
JB
44732014-04-28 Joel Brobecker <brobecker@adacore.com>
4474
4475 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4476 unnecessary second call to static_unwrap_type.
4477
433e77fa
HZ
44782014-04-27 Hui Zhu <hui@codesourcery.com>
4479
4480 * stack.c (print_frame_info): Call do_gdb_disassembly with
4481 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4482
b51a69ee
DE
44832014-04-26 Doug Evans <xdje42@gmail.com>
4484
4485 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4486
7ae1a6a6
PA
44872014-04-25 Pedro Alves <palves@redhat.com>
4488
4489 PR server/16255
4490 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4491 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4492 and newline from built string.
4493 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4494 (linux_ptrace_attach_fail_reason): ... this.
4495 * linux-nat.c (linux_nat_attach): Adjust to use
4496 linux_ptrace_attach_fail_reason.
4497
4082afcc
PA
44982014-04-25 Pedro Alves <palves@redhat.com>
4499
4500 * remote.c (struct remote_state): Remove multi_process_aware,
4501 non_stop_aware, cond_tracepoints, cond_breakpoints,
4502 breakpoint_commands, fast_tracepoints, static_tracepoints,
4503 install_in_trace, disconnected_tracing,
4504 enable_disable_tracepoints, string_tracing, and
4505 augmented_libraries_svr4_read fields.
4506 (remote_multi_process_p): Move further below in the file.
4507 (struct packet_config): Add comments.
4508 (update_packet_config): Delete function.
4509 (show_packet_config_cmd): Use packet_config_support.
4510 (add_packet_config_cmd): Use NULL as set callback.
4511 (packet_ok): "set remote foo-packet"-style commands no longer
4512 change config->supported -- adjust.
4513 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4514 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4515 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4516 (PACKET_QNonStop, PACKET_multiprocess_feature)
4517 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4518 (PACKET_DisconnectedTracing_feature)
4519 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4520 (set_remote_protocol_packet_cmd): Delete function.
4521 (packet_config_support, packet_support): New functions.
4522 (set_remote_protocol_Z_packet_cmd): Don't call
4523 update_packet_config.
4524 (remote_query_attached, remote_pass_signals)
4525 (remote_program_signals, remote_threads_info)
4526 (remote_threads_extra_info, remote_start_remote): Use
4527 packet_support.
4528 (remote_start_remote): Use packet_config_support and
4529 packet_support.
4530 (init_all_packet_configs): Set all packets to unknown support,
4531 instead of calling update_packet_config.
4532 (remote_check_symbols): Use packet_support.
4533 (remote_supported_packet): Unconditionally set the packet config's
4534 support status.
4535 (remote_multi_process_feature, remote_non_stop_feature)
4536 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4537 (remote_breakpoint_commands_feature)
4538 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4539 (remote_install_in_trace_feature)
4540 (remote_disconnected_tracing_feature)
4541 (remote_enable_disable_tracepoint_feature)
4542 (remote_string_tracing_feature)
4543 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4544 (remote_protocol_features): Adjust to use remote_supported_packet
4545 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4546 "ConditionalTracepoints", "ConditionalBreakpoints",
4547 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4548 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4549 "EnableDisableTracepoints", and "tracenz".
4550 (remote_query_supported): Use packet_support.
4551 (remote_open_1): Adjust.
4552 (extended_remote_attach_1): Use packet_support. Switch on the
4553 result of packet_ok instead of checking whether the packet ended
4554 up disabled.
4555 (remote_vcont_resume): Use packet_support.
4556 (remote_resume, remote_stop_ns, fetch_register_using_p)
4557 (remote_prepare_to_store, store_register_using_P)
4558 (check_binary_download, remote_write_bytes): Use packet_support.
4559 (remote_vkill): Use packet_support. Switch on the result of
4560 packet_ok instead of checking whether the packet ended up
4561 disabled.
4562 (extended_remote_supports_disable_randomization): Use
4563 packet_support.
4564 (extended_remote_run): Switch on the result of packet_ok instead
4565 of checking whether the packet ended up disabled.
4566 (remote_insert_breakpoint, remote_remove_breakpoint)
4567 (remote_insert_watchpoint, remote_remove_watchpoint)
4568 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4569 packet_support.
4570 (remote_search_memory): Use packet_config_support.
4571 (remote_get_thread_local_address, remote_get_tib_address)
4572 (remote_hostio_send_command, remote_can_execute_reverse): Use
4573 packet_support.
4574 (remote_supports_cond_tracepoints)
4575 (remote_supports_cond_breakpoints)
4576 (remote_supports_fast_tracepoints)
4577 (remote_supports_static_tracepoints)
4578 (remote_supports_install_in_trace)
4579 (remote_supports_enable_disable_tracepoint)
4580 (remote_supports_string_tracing)
4581 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4582 the packet config says the feature is enabled or disabled.
4583 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4584 (remote_get_trace_status): Use packet_support.
4585 (remote_set_disconnected_tracing): Adjust to check whether the
4586 feature is enabled with packet_support.
4587 (remote_set_trace_buffer_size, remote_use_agent)
4588 (remote_can_use_agent, remote_supports_btrace): Use
4589 packet_support.
4590 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4591 Use packet_config_support.
4592 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4593 the packet config says the feature is enabled or disabled.
4594 (set_range_stepping): Use packet_support.
4595
bdb52a22
TT
45962014-04-25 Tom Tromey <tromey@redhat.com>
4597
4598 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4599 argument.
4600
e9475ead
SA
46012014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4602
4603 * NEWS: Mention support for C99 variable length arrays.
4604
82eacd52
JB
46052014-04-24 Joel Brobecker <brobecker@adacore.com>
4606
4607 * ada-lang.c (standard_exc): Expand introductory comment.
4608
01f9f808
MS
46092014-04-24 Michael Sturm <michael.sturm@mintel.com>
4610 Walfred Tedeschi <walfred.tedeschi@intel.com>
4611
4612 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4613 AVX512 registers.
4614 (amd64_linux_read_description): Add code to handle AVX512 xstate
4615 mask and return respective tdesc.
4616 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4617 and features/i386/x32-avx512-linux.c.
4618 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4619 (amd64_linux_core_read_description): Add code to handle AVX512
4620 xstate mask and return respective tdesc.
4621 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4622 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4623 calculation.
4624 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4625 (tdesc_amd64_avx512_linux): New prototype.
4626 (tdesc_x32_avx512_linux): Likewise.
4627 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4628 features/i386/x32-avx512.c.
4629 (amd64_ymm_avx512_names): New register names for pseudo
4630 registers YMM16-31.
4631 (amd64_ymmh_avx512_names): New register names for raw registers
4632 YMMH16-31.
4633 (amd64_k_names): New register names for K registers.
4634 (amd64_zmmh_names): New register names for ZMM raw registers.
4635 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4636 (amd64_xmm_avx512_names): New register names for XMM16-31
4637 registers.
4638 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4639 registers.
4640 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4641 if feature is present.
4642 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4643 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4644 (AMD64_NUM_REGS): Adjust to new number of registers.
4645 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4646 registers supplied via XSTATE by AVX512 registers.
4647 (i386_linux_read_description): Add case for AVX512.
4648 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4649 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4650 (i386_linux_core_read_description): Add case for AVX512.
4651 (i386_linux_init_abi): Install supported register note section
4652 for AVX512.
4653 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4654 AVX512.
4655 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4656 registers to be number of zmm7h + 1.
4657 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4658 * i386-tdep.c: Include features/i386/i386-avx512.c.
4659 (i386_zmm_names): Add ZMM pseudo register names array.
4660 (i386_zmmh_names): Add ZMM raw register names array.
4661 (i386_k_names): Add K raw register names array.
4662 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4663 registers. AVX512 has 16 more ZMM registers than there are YMM
4664 registers.
4665 (i386_zmmh_regnum_p): Add function to look up register number of
4666 ZMM raw registers.
4667 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4668 (i386_k_regnum_p): Likewise for K raw registers.
4669 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4670 registers added by AVX512.
4671 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4672 registers added by AVX512.
4673 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4674 added by AVX512.
4675 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4676 (i386_pseudo_register_name): Add ZMM pseudo registers.
4677 (i386_zmm_type): Construct and return vector registers type for ZMM
4678 registers.
4679 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4680 ZMM0-31 pseudo registers and K registers.
4681 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4682 and YMM16-31 registers from register cache.
4683 (i386_pseudo_register_write): Add code to write K, ZMM and
4684 YMM16-31 registers.
4685 (i386_register_reggroup_p): Add code to include/exclude AVX512
4686 registers in/from respective register groups.
4687 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4688 registers if feature is present in xcr0.
4689 (i386_gdbarch_init): Add code to initialize AVX512 feature
4690 variables in tdep structure, wire in pseudo registers and call
4691 initialize_tdesc_i386_avx512.
4692 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4693 variables.
4694 (i386_regnum): Add AVX512 registers.
4695 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4696 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4697 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4698 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4699 512 bits wide.
4700 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4701 (i386_ymm_avx512_regnum_p): Likewise.
4702 (i386_k_regnum_p): Likewise.
4703 (i386_zmm_regnum_p): Likewise.
4704 (i386_zmmh_regnum_p): Likewise.
4705 * i387-tdep.c : Update year in copyright notice.
4706 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4707 XSAVE buffer.
4708 (XSAVE_YMM_AVX512_ADDR): New macro.
4709 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4710 XSAVE buffer.
4711 (XSAVE_XMM_AVX512_ADDR): New macro.
4712 (xsave_avx512_k_offset): New table for K register offsets in
4713 XSAVE buffer.
4714 (XSAVE_AVX512_K_ADDR): New macro.
4715 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4716 in XSAVE buffer.
4717 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4718 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4719 buffer.
4720 (i387_collect_xsave): Add code to collect AVX512 registers from
4721 XSAVE buffer.
4722 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4723 of XMM16-31 registers.
4724 (I387_NUM_K_REGS): New define for number of K registers.
4725 (I387_K0_REGNUM): New define for K0 register number.
4726 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4727 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4728 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4729 registers.
4730 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4731 (I387_XMM16_REGNUM): New define for XMM16 register number.
4732 (I387_YMM0_REGNUM): New define for YMM0 register number.
4733 (I387_KEND_REGNUM): New define for last K register number.
4734 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4735 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4736 number.
4737 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4738 number.
4739 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4740 size.
4741 * features/Makefile: Add AVX512 related files.
4742 * features/i386/32bit-avx512.xml: New file.
4743 * features/i386/64bit-avx512.xml: Likewise.
4744 * features/i386/amd64-avx512-linux.c: Likewise.
4745 * features/i386/amd64-avx512-linux.xml: Likewise.
4746 * features/i386/amd64-avx512.c: Likewise.
4747 * features/i386/amd64-avx512.xml: Likewise.
4748 * features/i386/i386-avx512-linux.c: Likewise.
4749 * features/i386/i386-avx512-linux.xml: Likewise.
4750 * features/i386/i386-avx512.c: Likewise.
4751 * features/i386/i386-avx512.xml: Likewise.
4752 * features/i386/x32-avx512-linux.c: Likewise.
4753 * features/i386/x32-avx512-linux.xml: Likewise.
4754 * features/i386/x32-avx512.c: Likewise.
4755 * features/i386/x32-avx512.xml: Likewise.
4756 * regformats/i386/amd64-avx512-linux.dat: New file.
4757 * regformats/i386/amd64-avx512.dat: Likewise.
4758 * regformats/i386/i386-avx512-linux.dat: Likewise.
4759 * regformats/i386/i386-avx512.dat: Likewise.
4760 * regformats/i386/x32-avx512-linux.dat: Likewise.
4761 * regformats/i386/x32-avx512.dat: Likewise.
4762 * NEWS: Add note about new support for AVX512.
4763
4764
08351840
PA
47652014-04-23 Pedro Alves <palves@redhat.com>
4766
4767 * breakpoint.c (insert_bp_location): Tolerate errors if the
4768 breakpoint is set in a user-loaded objfile.
4769 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4770 location is marked shlib_disabled. If the breakpoint is set in a
4771 user-loaded objfile is a GDB-side memory breakpoint, validate it
4772 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4773 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4774 flag.
4775 * mem-break.c (memory_validate_breakpoint): New function.
4776 * objfiles.c (userloaded_objfile_contains_address_p): New
4777 function.
4778 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4779 * target.h (memory_validate_breakpoint): New declaration.
4780
076855f9
PA
47812014-04-23 Pedro Alves <palves@redhat.com>
4782
4783 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4784 the breakpoint is set in a shared library, only suppress
4785 errors for software breakpoints, not hardware breakpoints.
4786
483805cf
PA
47872014-04-22 Pedro Alves <palves@redhat.com>
4788
4789 * infrun.c (schedlock_applies): New function, factored out from
4790 find_thread_needs_step_over.
4791 (find_thread_needs_step_over): Use it.
4792 (switch_back_to_stepped_thread): Always clear trap_expected if the
4793 step over is finished. Return early if scheduler locking applies.
4794 Look for the stepping thread and a potential step-over thread with
4795 a single loop.
4796 (currently_stepping_or_nexting_callback): Delete.
4797
a75fef0e
NC
47982014-04-22 Nick Clifton <nickc@redhat.com>
4799
4800 * NEWS: Mention that ARM sim now supports tracing.
4801
48b6e87e
YQ
48022014-04-22 Yao Qi <yao@codesourcery.com>
4803
4804 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4805 to ...
4806 * tracefile.c (tracefile_fetch_registers): ... it. New
4807 function.
4808 * tracefile.h (tracefile_fetch_registers): Declare.
4809 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4810 tracefile_fetch_registers.
4811
17617f2d
EZ
48122014-04-19 Eli Zaretskii <eliz@gnu.org>
4813
4814 PR gdb/14018
4815 * windows-nat.c (thread_rec): Don't display a warning when
4816 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4817 fails for any reason, set th->suspended to -1, so that we don't
4818 try to resume such a thread. Also, don't return NULL in these
4819 cases, to avoid completely ruin the session due to "PC register is
4820 not available" error.
4821 (do_windows_fetch_inferior_registers): Check errors in
4822 GetThreadContext call.
4823 (windows_continue): Accept an additional argument KILLED; if not
4824 zero, ignore errors in the SetThreadContext call, since the
4825 inferior was killed and is shutting down.
4826 (windows_resume, get_windows_debug_event)
4827 (windows_create_inferior, windows_mourn_inferior)
4828 (windows_kill_inferior): All callers of windows_continue changed
4829 to adjust to its new calling sequence.
4830
5723a6fd
YQ
48312014-04-19 Yao Qi <yao@codesourcery.com>
4832
4833 * ctf.c (ctf_open): Call post_create_inferior.
4834
614d5099
YQ
48352014-04-19 Yao Qi <yao@codesourcery.com>
4836
4837 * ctf.c (handle_id): New static variable.
4838 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4839 value. Get the declaration of event "register" and get length
4840 of field "contents".
4841
dac3e710
YQ
48422014-04-19 Yao Qi <yao@codesourcery.com>
4843
4844 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4845
2bca57ba
SC
48462014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4847
4848 * valops.c (oload_method_static): Remove unnecessary argument
4849 METHOD. Update all callers.
4850
51d48146
PA
48512014-04-18 Pedro alves <palves@redhat.com>
4852 Tom Tromey <tromey@redhat.com>
4853
4854 PR backtrace/15558
4855 * frame.c (get_prev_frame_1): Rename to ...
4856 (get_prev_frame_always): ... this, and make extern. Adjust.
4857 (skip_artificial_frames): Use get_prev_frame_always.
4858 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4859 (get_frame_unwind_stop_reason): Adjust to rename.
4860 * frame.h (get_prev_frame_always): Declare.
4861 * inline-frame.c: Include frame.h.
4862 (inline_frame_this_id): Use get_prev_frame_always.
4863
1bdad2e0
TG
48642014-04-18 Tristan Gingold <gingold@adacore.com>
4865
4866 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4867 code by using bfd_mach_o_get_base_address.
4868
7ce16bd4
UW
48692014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4870
4871 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4872 (spu_ax_pseudo_register_collect): New function.
4873 (spu_ax_pseudo_register_push_stack): Likewise.
4874 (spu_dwarf_reg_to_regnum): Likewise.
4875 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4876
2ed3c037
UW
48772014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4878
4879 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4880 Replace FRAME argument with FRAME_ID.
4881 * gdbarch.c, gdbarch.h: Regenerate.
4882 * findvar.c (default_value_from_register): Add GDBARCH argument;
4883 replace FRAME by FRAME_ID. No longer call get_frame_id.
4884 (value_from_register): Update call to gdbarch_value_from_register.
4885 * value.h (default_value_from_register): Update prototype.
4886 * s390-linux-tdep.c (s390_value_from_register): Update interface
4887 and call to default_value_from_register.
4888 * spu-tdep.c (spu_value_from_register): Likewise.
4889
4890 * findvar.c (address_from_register): Remove TYPE argument.
4891 Do not call value_from_register; use gdbarch_value_from_register
4892 with null_frame_id instead.
4893 * value.h (address_from_register): Update prototype.
4894 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4895 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4896 address_from_register interface change.
4897
71e50e83
YQ
48982014-04-17 Yao Qi <yao@codesourcery.com>
4899
4900 * gdbtypes.h: Update comments to link to types and macros'
4901 definitions.
4902
7a23c549
SC
49032014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4904
4905 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4906
22869d73
KS
49072014-04-16 Keith Seitz <keiths@redhat.com>
4908
4909 PR gdb/15827
4910 * dwarf2read.c (skip_one_die): Check that all relative-offset
4911 sibling DIEs fall within range of the current reader's buffer.
4912 (read_partial_die): Likewise.
4913
c4f87ca6
KS
49142014-04-16 Keith Seitz <keiths@redhat.com>
4915
4916 PR c++/16597
4917 * cp-namespace.c (lookup_symbol_file): If the type name of
4918 `this' is NULL, return immediately.
4919
b50c8614
KS
49202014-04-14 Keith Seitz <keiths@redhat.com>
4921
4922 PR c++/16253
4923 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4924 from symbol_matches_domain in symtab.c. All local callers
4925 of symbol_matches_domain updated.
4926 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4927 search STRUCT_DOMAIN.
4928 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4929 independently. standard_lookup will do that automatically.
4930 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4931 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4932 (cp_lookup_symbol_in_namespace): Likewise.
4933 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4934 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4935 may return a STRUCT_DOMAIN match.
4936 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4937 * cp-support.c: Include language.h.
4938 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4939 VAR_DOMAIN.
4940 * psymtab.c (match_partial_symbol): Compare the requested
4941 domain with the symbol's domain directly.
4942 (lookup_partial_symbol): Likewise.
4943 * symtab.c (lookup_symbol_in_language): Explain when/why
4944 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4945 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4946 appropriate languages.
4947 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4948 and moved to ada-lang.c
4949 (lookup_block_symbol): Explain that this function only returns
4950 symbol matching the requested DOMAIN.
4951 Compare the requested domain with the symbol's domain directly.
4952 (iterate_over_symbols): Compare the requested domain with the
4953 symbol's domain directly.
4954 * symtab.h (symbol_matches_domain): Remove.
4955
3d567982
TT
49562014-04-14 Tom Tromey <tromey@redhat.com>
4957
4958 PR c++/15246:
4959 * c-exp.y (type_aggregate_p): New function.
4960 (qualified_name, classify_inner_name): Use it.
4961 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4962 and TYPE_TARGET_TYPE of an enum type.
4963 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4964 an enum type.
4965 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4966 handle TYPE_DECLARED_CLASS.
4967 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4968 types.
4969 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4970 * valops.c (enum_constant_from_type): New function.
4971 (value_aggregate_elt): Use it.
4972 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4973 TYPE_CODE_ENUM.
4974
c848d642
TT
49752014-04-14 Tom Tromey <tromey@redhat.com>
4976
4977 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4978 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4979 const.
4980 * value.h (value_aggregate_elt): Update.
4981
0626fc76
TT
49822014-04-14 Tom Tromey <tromey@redhat.com>
4983
4984 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4985
5ecaaa66
SA
49862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4987
4988 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4989 (evaluate_subexp_standard): Pass noside argument.
4990 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4991 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4992 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4993 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4994 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4995
1612e0c0
SA
49962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4997
4998 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4999 points to a constant blob.
5000
c451ebe5
SA
50012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5002
5003 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5004 property and store it as the high bound and flag the range accordingly.
5005 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5006 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5007 * gdbtypes.h (enum range_flags): New enum.
5008 (struct range_bounds): Add flags member.
5009
1d42e4c4
SA
50102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5011
5012 * c-typeprint.c (c_type_print_varspec_suffix): Added
5013 check for not yet resolved high bound. If unresolved, print
5014 "variable length" string to the console instead of random
5015 length.
5016
9f1f738a
SA
50172014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5018
5019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5020 value.
5021 (ada_template_to_fixed_record_type_1): Likewise.
5022 (ada_to_fixed_type_1): Likewise.
5023 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5024 (cp_print_value): Likewise.
5025 * d-valprint.c (dynamic_array_type): Likewise.
5026 * findvar.c (address_of_variable): Likewise.
5027 * jv-valprint.c (java_value_print): Likewise.
5028 * valops.c (value_ind): Likewise.
5029 * value.c (coerce_ref): Likewise.
5030
3c8452d4
SA
50312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5032
5033 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5034 value and retrieve the dynamic type size.
5035
4ad88275
SA
50362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5037
5038 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5039 passed to sizeof is dynamic evaluate the argument to compute the length.
5040
80180f79
SA
50412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5042 Joel Brobecker <brobecker@adacore.com>
5043
5044 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5045 (dwarf2_evaluate_property): New function.
5046 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5047 * dwarf2read.c (attr_to_dynamic_prop): New function.
5048 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5049 attribute.
5050 * gdbtypes.c: Include dwarf2loc.h.
5051 (is_dynamic_type): New function.
5052 (resolve_dynamic_type): New function.
5053 (resolve_dynamic_bounds): New function.
5054 (get_type_length): New function.
5055 (check_typedef): Use get_type_length to compute type length.
5056 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5057 (TYPE_LOW_BOUND_KIND): New macro.
5058 (is_dynamic_type): New function prototype.
5059 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5060 to resolve dynamic properties of the type. Update comment.
5061 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5062
a1556843
RH
50632014-04-14 Richard Henderson <rth@redhat.com>
5064
5065 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5066
0be03e84
DE
50672014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5068 Doug Evans <xdje42@gmail.com>
5069
5070 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5071 dereference TYPE_CODE_REF values.
5072
6b662e19
JB
50732014-04-11 Joel Brobecker <brobecker@adacore.com>
5074
5075 Revert the following changes due to regressions:
5076
5077 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5078 (dwarf2_evaluate_property): New function.
5079 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5080 * dwarf2read.c (attr_to_dynamic_prop): New function.
5081 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5082 attribute.
5083 * gdbtypes.c: Include dwarf2loc.h.
5084 (is_dynamic_type): New function.
5085 (resolve_dynamic_type): New function.
5086 (resolve_dynamic_bounds): New function.
5087 (get_type_length): New function.
5088 (check_typedef): Use get_type_length to compute type length.
5089 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5090 (TYPE_LOW_BOUND_KIND): New macro.
5091 (is_dynamic_type): New function prototype.
5092 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5093 to resolve dynamic properties of the type. Update comment.
5094 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5095
5096 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5097 passed to sizeof is dynamic evaluate the argument to compute the length.
5098
5099 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5100 value and retrieve the dynamic type size.
5101
5102 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5103 (ada_template_to_fixed_record_type_1): Likewise.
5104 (ada_to_fixed_type_1): Likewise.
5105 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5106 (cp_print_value): Likewise.
5107 * d-valprint.c (dynamic_array_type): Likewise.
5108 * eval.c (evaluate_subexp_with_coercion): Likewise.
5109 * findvar.c (address_of_variable): Likewise.
5110 * jv-valprint.c (java_value_print): Likewise.
5111 * valops.c (value_ind): Likewise.
5112 * value.c (coerce_ref): Likewise.
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
5119 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5120 property and store it as the high bound and flag the range accordingly.
5121 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5122 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5123 * gdbtypes.h (enum range_flags): New enum.
5124 (struct range_bounds): Add flags member.
5125
5126 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5127 points to a constant blob.
5128
5129 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5130 (evaluate_subexp_standard): Pass noside argument.
5131 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5132 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5133 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5134 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5135 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5136
245a5f0b
KS
51372014-04-11 Keith Seitz <keiths@redhat.com>
5138
5139 PR c++/16675
5140 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5141 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5142 reference types.
5143
3bce8237
SA
51442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5145
5146 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5147 (evaluate_subexp_standard): Pass noside argument.
5148 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5149 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5150 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5151 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5152 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5153
92b09522
SA
51542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5155
5156 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5157 points to a constant blob.
5158
e1969afb
SA
51592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5160
5161 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5162 property and store it as the high bound and flag the range accordingly.
5163 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5164 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5165 * gdbtypes.h (enum range_flags): New enum.
5166 (struct range_bounds): Add flags member.
5167
b86138fb
SA
51682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5169
5170 * c-typeprint.c (c_type_print_varspec_suffix): Added
5171 check for not yet resolved high bound. If unresolved, print
5172 "variable length" string to the console instead of random
5173 length.
5174
bcd629a4
SA
51752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5176
5177 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5178 (ada_template_to_fixed_record_type_1): Likewise.
5179 (ada_to_fixed_type_1): Likewise.
5180 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5181 (cp_print_value): Likewise.
5182 * d-valprint.c (dynamic_array_type): Likewise.
5183 * eval.c (evaluate_subexp_with_coercion): Likewise.
5184 * findvar.c (address_of_variable): Likewise.
5185 * jv-valprint.c (java_value_print): Likewise.
5186 * valops.c (value_ind): Likewise.
5187 * value.c (coerce_ref): Likewise.
5188
04b19544
SA
51892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5190
5191 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5192 value and retrieve the dynamic type size.
5193
26cb189f
SA
51942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5195
5196 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5197 passed to sizeof is dynamic evaluate the argument to compute the length.
5198
37c1ab67
SA
51992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5200
5201 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5202 (dwarf2_evaluate_property): New function.
5203 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5204 * dwarf2read.c (attr_to_dynamic_prop): New function.
5205 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5206 attribute.
5207 * gdbtypes.c: Include dwarf2loc.h.
5208 (is_dynamic_type): New function.
5209 (resolve_dynamic_type): New function.
5210 (resolve_dynamic_bounds): New function.
5211 (get_type_length): New function.
5212 (check_typedef): Use get_type_length to compute type length.
5213 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5214 (TYPE_LOW_BOUND_KIND): New macro.
5215 (is_dynamic_type): New function prototype.
5216 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5217 to resolve dynamic properties of the type. Update comment.
5218 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5219
729efb13
SA
52202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5221
5222 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5223 declaring high/low bounds and change uses accordingly. Call
5224 create_range_type instead of create_static_range_type.
5225 * gdbtypes.c (create_range_type): New function.
5226 (create_range_type): Convert bounds into struct bound_prop and pass
5227 them to create_range_type.
5228 * gdbtypes.h (struct bound_prop): New struct.
5229 (create_range_type): New function prototype.
5230 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5231 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5232 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5233 part of the bound.
5234 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5235
0c9c3474
SA
52362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5237
5238 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5239 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5240 * ada-lang.c: All uses of create_range_type updated.
5241 * coffread.c: All uses of create_range_type updated.
5242 * dwarf2read.c: All uses of create_range_type updated.
5243 * f-exp.y: All uses of create_range_type updated.
5244 * m2-valprint.c: All uses of create_range_type updated.
5245 * mdebugread.c: All uses of create_range_type updated.
5246 * stabsread.c: All uses of create_range_type updated.
5247 * valops.c: All uses of create_range_type updated.
5248 * valprint.c: All uses of create_range_type updated.
5249
9d497a19
PA
52502014-04-10 Pedro Alves <palves@redhat.com>
5251
5252 * breakpoint.c (single_step_breakpoints)
5253 (single_step_gdbarch): Move up in the file.
5254 (one_breakpoint_xfer_memory): New function, factored out from ...
5255 (breakpoint_xfer_memory): ... here. Also process single-step
5256 breakpoints.
5257
15a9128a
TG
52582014-04-09 Tristan Gingold <gingold@adacore.com>
5259
5260 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5261 comments.
5262 (darwin_decode_exception_message): Free port only after use.
5263
9c97a070
PL
52642014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5265
5266 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5267 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5268 when setting the size of call_length.
5269
7af389b8
SC
52702014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5271
5272 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5273 dereference TYPE_CODE_REF values.
5274
86ad98c3
JB
52752014-04-07 Joel Brobecker <brobecker@adacore.com>
5276
5277 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5278 end of warning message.
5279
b0aeadb3
DE
52802014-04-03 Doug Evans <dje@google.com>
5281
5282 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5283 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5284
5979d6b6
AM
52852014-04-02 Alan Modra <amodra@gmail.com>
5286
5287 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5288 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5289 (struct symbol_file_add_from_memory_args): Add size field.
5290 (find_vdso_size): New function.
5291 (add_vsyscall_page): Attempt to find vdso size.
5292
0d60c288
DE
52932014-04-01 Doug Evans <dje@google.com>
5294
5295 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5296
a41f2563
TG
52972014-04-01 Tristan Gingold <gingold@adacore.com>
5298
5299 * darwin-nat.c (darwin_encode_reply): Add prototype.
5300 (darwin_decode_exception_message): Reply to unknown inferiors.
5301 (darwin_decode_message): Handle message by id. Ignore message
5302 to unknown inferior.
5303 (darwin_wait): Discard unknown messages, add debug trace.
5304
11a865c8
DE
53052014-03-31 Doug Evans <dje@google.com>
5306
5307 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5308 comp_dir_string.
5309
770e7fc7
DE
53102014-03-31 Doug Evans <dje@google.com>
5311
5312 New option "set print symbol-loading".
5313 * NEWS: Mention it.
5314 * solib.c (solib_read_symbols): Only print symbol loading messages
5315 if requested.
5316 (solib_add): If symbol loading is in "brief" mode, notify user
5317 symbols are being loaded.
5318 (reload_shared_libraries_1): Ditto.
5319 * symfile.c (print_symbol_loading_off): New static global.
5320 (print_symbol_loading_brief): New static global.
5321 (print_symbol_loading_full): New static global.
5322 (print_symbol_loading_enums): New static global.
5323 (print_symbol_loading): New static global.
5324 (print_symbol_loading_p): New function.
5325 (symbol_file_add_with_addrs): Only print symbol loading messages
5326 if requested.
5327 (_initialize_symfile): Register "print symbol-loading" set/show
5328 command.
5329 * symfile.h (print_symbol_loading_p): Declare.
5330
c32c64b7
DE
53312014-03-30 Doug Evans <xdje42@gmail.com>
5332
5333 * infrun.c (set_last_target_status): New function.
5334 (handle_inferior_event): Call it.
5335
7c0bc051
DE
53362014-03-30 Doug Evans <xdje42@gmail.com>
5337
5338 * inferior.h (enum stop_kind): Improve comment.
5339
8776cfe9
JB
53402014-03-28 Joel Brobecker <brobecker@adacore.com>
5341
5342 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5343 a reference, strip the reference layer before calling
5344 the lang_ops value_has_mutated callback.
5345
410a0ff2
SDJ
53462014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5347
5348 Remove some globals from our parser.
5349 * language.c (unk_lang_parser): Add "struct parser_state"
5350 argument.
5351 * language.h (struct language_defn) <la_parser>: Likewise.
5352 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5353 (initialize_expout): Add "struct parser_state" argument.
5354 Rewrite function to use the parser state.
5355 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5356 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5357 write_exp_elt_longcst, write_exp_elt_dblcst,
5358 write_exp_elt_decfloatcst, write_exp_elt_type,
5359 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5360 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5361 write_dollar_variable): Likewise.
5362 (parse_exp_in_context_1): Use parser state.
5363 (insert_type_address_space): Add "struct parser_state" argument.
5364 Use parser state.
5365 (increase_expout_size): New function.
5366 * parser-defs.h: Forward declare "struct language_defn" and
5367 "struct parser_state".
5368 (expout, expout_size, expout_ptr): Remove extern declarations.
5369 (parse_gdbarch, parse_language): Rewrite macro declarations to
5370 accept the parser state.
5371 (struct parser_state): New struct.
5372 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5373 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5374 write_exp_elt_decfloatcst, write_exp_elt_type,
5375 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5376 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5377 write_exp_msymbol, write_dollar_variable,
5378 mark_struct_expression, insert_type_address_space): Add "struct
5379 parser_state" argument.
5380 (increase_expout_size): New function.
5381 * utils.c (do_clear_parser_state): New function.
5382 (make_cleanup_clear_parser_state): Likewise.
5383 * utils.h (make_cleanup_clear_parser_state): New function
5384 prototype.
5385 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5386 Update calls to write_exp* in order to pass the parser state.
5387 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5388 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5389 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5390 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5391 * stap-probe.c (stap_parse_register_operand): Likewise.
5392 (stap_parse_single_operand): Likewise.
5393 (stap_parse_argument_1): Likewise.
5394 (stap_parse_argument): Use parser state.
5395 * stap-probe.h: Include "parser-defs.h".
5396 (struct stap_parse_info) <pstate>: New field.
5397 * c-exp.y (parse_type): Rewrite to use parser state.
5398 (yyparse): Redefine to c_parse_internal.
5399 (pstate): New global variable.
5400 (parse_number): Add "struct parser_state" argument.
5401 (write_destructor_name): Likewise.
5402 (type_exp): Update calls to write_exp* and similars in order to
5403 use parser state.
5404 (exp1, exp, variable, qualified_name, space_identifier,
5405 typename, typebase): Likewise.
5406 (write_destructor_name, parse_number, lex_one_token,
5407 classify_name, classify_inner_name, c_parse): Add "struct
5408 parser_state" argument. Update function to use parser state.
5409 * c-lang.h: Forward declare "struct parser_state".
5410 (c_parse): Add "struct parser_state" argument.
5411 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5412 (yyparse): Redefine macro to ada_parse_internal.
5413 (pstate): New variable.
5414 (write_int, write_object_renaming, write_var_or_type,
5415 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5416 type_int, type_long, type_long_long, type_float, type_double,
5417 type_long_double, type_char, type_boolean, type_system_address):
5418 Add "struct parser_state" argument.
5419 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5420 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5421 var_or_type, aggregate, aggregate_component_list,
5422 positional_list, others, component_group,
5423 component_associations): Update calls to write_exp* and similar
5424 functions in order to use parser state.
5425 (ada_parse, write_var_from_sym, write_int,
5426 write_exp_op_with_string, write_object_renaming,
5427 find_primitive_type, write_selectors, write_ambiguous_var,
5428 write_var_or_type, write_name_assoc, type_int, type_long,
5429 type_long_long, type_float, type_double, type_long_double,
5430 type_char, type_boolean, type_system_address): Add "struct
5431 parser_state" argument. Adjust function to use parser state.
5432 * ada-lang.c (parse): Likewise.
5433 * ada-lang.h: Forward declare "struct parser_state".
5434 (ada_parse): Add "struct parser_state" argument.
5435 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5436 calls to both functions.
5437 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5438 parser state.
5439 (yyparse): Redefine macro to f_parse_internal.
5440 (pstate): New variable.
5441 (parse_number): Add "struct parser_state" argument.
5442 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5443 and similars in order to use parser state.
5444 (parse_number): Adjust code to use parser state.
5445 (yylex): Likewise.
5446 (f_parse): New function.
5447 * f-lang.h: Forward declare "struct parser_state".
5448 (f_parse): Add "struct parser_state" argument.
5449 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5450 parser state.
5451 (yyparse): Redefine macro for java_parse_internal.
5452 (pstate): New variable.
5453 (push_expression_name, push_expression_name, insert_exp): Add
5454 "struct parser_state" argument.
5455 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5456 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5457 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5458 PostIncrementExpression, PostDecrementExpression,
5459 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5460 UnaryExpressionNotPlusMinus, CastExpression,
5461 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5462 RelationalExpression, EqualityExpression, AndExpression,
5463 ExclusiveOrExpression, InclusiveOrExpression,
5464 ConditionalAndExpression, ConditionalOrExpression,
5465 ConditionalExpression, Assignment, LeftHandSide): Update
5466 calls to write_exp* and similars in order to use parser state.
5467 (parse_number): Ajust code to use parser state.
5468 (yylex): Likewise.
5469 (java_parse): New function.
5470 (push_variable): Add "struct parser_state" argument. Adjust
5471 code to user parser state.
5472 (push_fieldnames, push_qualified_expression_name,
5473 push_expression_name, insert_exp): Likewise.
5474 * jv-lang.h: Forward declare "struct parser_state".
5475 (java_parse): Add "struct parser_state" argument.
5476 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5477 parser state.
5478 (yyparse): Redefine macro to m2_parse_internal.
5479 (pstate): New variable.
5480 (type_exp, exp, fblock, variable, type): Update calls to
5481 write_exp* and similars to use parser state.
5482 (yylex): Likewise.
5483 (m2_parse): New function.
5484 * m2-lang.h: Forward declare "struct parser_state".
5485 (m2_parse): Add "struct parser_state" argument.
5486 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5487 * objc-lang.h: Forward declare "struct parser_state".
5488 (end_msglist): Add "struct parser_state" argument.
5489 * p-exp.y (parse_type): Rewrite macro to use parser state.
5490 (yyparse): Redefine macro to pascal_parse_internal.
5491 (pstate): New variable.
5492 (parse_number): Add "struct parser_state" argument.
5493 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5494 write_exp* and similars in order to use parser state.
5495 (parse_number, yylex): Adjust code to use parser state.
5496 (pascal_parse): New function.
5497 * p-lang.h: Forward declare "struct parser_state".
5498 (pascal_parse): Add "struct parser_state" argument.
5499 * go-exp.y (parse_type): Rewrite macro to use parser state.
5500 (yyparse): Redefine macro to go_parse_internal.
5501 (pstate): New variable.
5502 (parse_number): Add "struct parser_state" argument.
5503 (type_exp, exp1, exp, variable, type): Update calls to
5504 write_exp* and similars in order to use parser state.
5505 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5506 to use parser state.
5507 (go_parse): Likewise.
5508 * go-lang.h: Forward declare "struct parser_state".
5509 (go_parse): Add "struct parser_state" argument.
5510
342587c4
DE
55112014-03-27 Doug Evans <dje@google.com>
5512
5513 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5514
33e80786
DE
55152014-03-27 Doug Evans <dje@google.com>
5516
5517 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5518 Remove argument abbrev_section. All callers updated.
5519
1dbab08b
DE
55202014-03-27 Doug Evans <dje@google.com>
5521
5522 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5523 addr_base, ranges_base.
5524
318d3177
KS
55252014-03-26 Keith Seitz <keiths@redhat.com>
5526
5527 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5528 types, not VAR_DOMAIN.
5529
1e54db15
SL
55302014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5531
5532 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5533 "ra" registers.
5534 * features/nios2-linux.c: Regenerated.
5535 * features/nios2.c: Regenerated.
5536
d3839ede
PA
55372014-03-25 Pedro Alves <palves@redhat.com>
5538
5539 * cli/cli-script.c (script_from_file): Force the interpreter to
5540 sync mode.
5541
7588d2ec
PL
55422014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5543
5544 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5545 small stack allocation.
5546
a6290449
TG
55472014-03-24 Tristan Gingold <gingold@adacore.com>
5548
5549 * darwin-nat.c (exc_server): Remove unused prototype.
5550 (darwin_dump_message): Correctly display data on x86_64.
5551 (darwin_encode_reply): Fix style.
5552 Add comments and fix indentation.
5553
31ae9d24 55542014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5555
5556 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5557
6339bfc4
DE
55582014-03-22 Doug Evans <xdje42@gmail.com>
5559
5560 * infcmd.c: Whitespace fixes.
5561 (interrupt_command): Merge two function comments into one.
5562
0a07590b
DE
55632014-03-22 Doug Evans <xdje42@gmail.com>
5564
5565 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5566 All uses updated.
5567
b55fbac4
YQ
55682014-03-22 Yao Qi <yao@codesourcery.com>
5569
5570 * remote.c (target_read_live_memory): Remove.
5571 (memory_xfer_live_readonly_partial): Rename it to
5572 remote_xfer_live_readonly_partial. Remove argument 'object'.
5573 All callers updated. Call remote_read_bytes_1
5574 instead of target_read_live_memory.
5575 * tracepoint.c (set_traceframe_number): Remove.
5576 (make_cleanup_restore_traceframe_number): Likewise .
5577 * tracepoint.h (set_traceframe_number): Remove declaration.
5578 (make_cleanup_restore_traceframe_number): Likewise.
5579
9217e74e
YQ
55802014-03-22 Yao Qi <yao@codesourcery.com>
5581
5582 * remote.c (remote_read_bytes): Move code on reading from the
5583 remote stub to ...
5584 (remote_read_bytes_1): ... here. New function.
5585
8acf9577
YQ
55862014-03-22 Yao Qi <yao@codesourcery.com>
5587
5588 * ctf.c (ctf_xfer_partial): Check the return value of
5589 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5590 return TARGET_XFER_UNAVAILABLE.
5591 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5592 * target.c (target_read_live_memory): Move it to remote.c.
5593 (memory_xfer_live_readonly_partial): Likewise.
5594 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5595 * remote.c (target_read_live_memory): Moved from target.c.
5596 (memory_xfer_live_readonly_partial): Likewise.
5597 (remote_read_bytes): Factored out from
5598 memory_xfer_partial_1.
5599
feef67ab
DE
56002014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5601
5602 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5603 NULL pointer.
5604
b65dc60b
PA
56052014-03-21 Pedro Alves <palves@redhat.com>
5606
5607 * infrun.c (normal_stop): Extend comment.
5608
b4ab256d
HZ
56092014-03-21 Hui Zhu <hui@codesourcery.com>
5610 Pedro Alves <palves@redhat.com>
5611
5612 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5613 static buffer.
5614 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5615 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5616 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5617
deba7593
MR
56182014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5619
5620 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5621 `z' formatted output modifier.
5622
1bff71c3
SDJ
56232014-03-20 Tom Tromey <tromey@redhat.com>
5624 Sergio Durigan Junior <sergiodj@redhat.com>
5625
5626 * probe.c (parse_probes): Turn assert into an ordinary error.
5627 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5628 exceptions when parsing probes. Rearrange the code for clarity.
5629
90e28950
TT
56302014-03-20 Tom Tromey <tromey@redhat.com>
5631
5632 PR gdb/14135
5633 * top.c (execute_command): Only dispatch events if the command
5634 started the target.
5635
beb460e8
PA
56362014-03-20 Tom Tromey <tromey@redhat.com>
5637
5638 PR cli/15718
5639 * infcall.c: Include event-top.h.
5640 (run_inferior_call): Call async_disable_stdin if needed.
5641
99619bea
PA
56422014-03-20 Pedro Alves <palves@redhat.com>
5643
5644 * infrun.c (prepare_to_proceed): Delete.
5645 (thread_still_needs_step_over): New function.
5646 (find_thread_needs_step_over): New function.
5647 (proceed): If the current thread needs a step-over, set its
5648 steping_over_breakpoint flag. Adjust to use
5649 find_thread_needs_step_over instead of prepare_to_proceed.
5650 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5651 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5652 breakpoint.
5653 (switch_back_to_stepped_thread): Step over breakpoints of all
5654 threads not the stepping thread, before switching back to the
5655 stepping thread.
5656
2adfaa28
PA
56572014-03-20 Pedro Alves <palves@redhat.com>
5658
5659 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5660 extern.
5661 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5662 * infrun.c (saved_singlestep_ptid)
5663 (stepping_past_singlestep_breakpoint): Delete.
5664 (resume): Remove stepping_past_singlestep_breakpoint handling.
5665 (proceed): Store the prev_pc of the stepping thread too.
5666 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5667 singlestep_pc.
5668 (enum infwait_states): Delete infwait_thread_hop_state.
5669 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5670 field.
5671 (handle_inferior_event): Adjust.
5672 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5673 handling and the thread-hop code. Before removing single-step
5674 breakpoints, check whether the thread hit a single-step breakpoint
5675 of another thread. If it did, the trap is not a random signal.
5676 (switch_back_to_stepped_thread): If the event thread hit a
5677 single-step breakpoint, unblock it before switching to the
5678 stepping thread. Handle the case of the stepped thread having
5679 advanced already.
5680 (keep_going): Handle the case of the current thread moving past a
5681 single-step breakpoint.
5682
31e77af2
PA
56832014-03-20 Pedro Alves <palves@redhat.com>
5684
5685 PR breakpoints/7143
5686 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5687 are being stepped over.
5688 (breakpoint_address_match): Make extern.
5689 * breakpoint.h (breakpoint_address_match): New declaration.
5690 * inferior.h (stepping_past_instruction_at): New declaration.
5691 * infrun.c (struct step_over_info): New type.
5692 (step_over_info): New global.
5693 (set_step_over_info, clear_step_over_info)
5694 (stepping_past_instruction_at): New functions.
5695 (handle_inferior_event): Clear the step-over info when
5696 trap_expected is cleared.
5697 (resume): Remove now stale comment.
5698 (clear_proceed_status): Clear step-over info.
5699 (proceed): Adjust step-over handling to set or clear the step-over
5700 info instead of removing all breakpoints.
5701 (handle_signal_stop): When setting up a thread-hop, don't remove
5702 breakpoints here.
5703 (stop_stepping): Clear step-over info.
5704 (keep_going): Adjust step-over handling to set or clear step-over
5705 info and then always inserting breakpoints, instead of removing
5706 all breakpoints when stepping over one.
5707
b9f437de
PA
57082014-03-20 Pedro Alves <palves@redhat.com>
5709
5710 * infrun.c (previous_inferior_ptid): Adjust comment.
5711 (deferred_step_ptid): Delete.
5712 (infrun_thread_ptid_changed, prepare_to_proceed)
5713 (init_wait_for_inferior): Adjust.
5714 (handle_signal_stop): Delete deferred_step_ptid handling.
5715
06c868a8
JK
57162014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5717
5718 PR gdb/15358
5719 * defs.h (sync_quit_force_run): New declaration.
5720 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5721 * event-top.c (async_sigterm_handler): New declaration.
5722 (async_sigterm_token): New variable.
5723 (async_init_signals): Create also async_sigterm_token.
5724 (async_sigterm_handler): New function.
5725 (sync_quit_force_run): New variable.
5726 (handle_sigterm): Replace quit_force call by other calls.
5727 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5728
dea80df0
MR
57292014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5730
5731 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5732 offset into SPE pseudo registers.
5733
0c7e1a46
PA
57342014-03-18 Pedro Alves <palves@redhat.com>
5735
5736 PR gdb/13860
5737 * inferior.h (print_stop_event): Declare.
5738 * infrun.c (print_stop_event): New, factored out from ...
5739 (normal_stop): ... this.
5740 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5741 of bpstat_print/print_stack_frame.
5742
9c1fcd01
TT
57432014-03-17 Tom Tromey <tromey@redhat.com>
5744
5745 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5746
11aa919a
PMR
57472014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5748
5749 * ada-lang.c (decode_constrained_packed_array): Perform a
5750 minimal coercion for reference with coerce_ref instead of
5751 ada_coerce_ref.
5752
d4ccb5e0
TG
57532014-03-17 Tristan Gingold <gingold@adacore.com>
5754
5755 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5756 (darwin_solib_create_inferior_hook): Emit a warning if version
5757 is unhandled.
5758
49840f2a
UW
57592014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5760
5761 * python/py-value.c (get_field_flag): Cast flag_name argument to
5762 PyObject_GetAttrString to support Python 2.4.
5763
ed4123e5
JK
57642014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5765
5766 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5767 (Global Maintainers): Remove Jan Kratochvil.
5768
d6b64346
PA
57692014-03-14 Pedro Alves <palves@redhat.com>
5770
5771 * inferior.h (terminal_ours_for_output): Rename to ...
5772 (child_terminal_ours_for_output): ... this.
5773 (terminal_save_ours): Rename to ...
5774 (child_terminal_save_ours): ... this.
5775 (terminal_ours): Rename to ...
5776 (child_terminal_ours): ... this.
5777 (terminal_inferior): Rename to ...
5778 (child_terminal_inferior): ... this.
5779 (terminal_init_inferior): Rename to ...
5780 (child_terminal_init_inferior): ... this.
5781 (terminal_init_inferior_with_pgrp): Rename to ...
5782 (child_terminal_init_inferior_with_pgrp): ... this.
5783 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5784 (child_terminal_init_with_pgrp): ... this.
5785 (terminal_save_ours): Rename to ...
5786 (child_terminal_save_ours): ... this.
5787 (terminal_init_inferior): Rename to ...
5788 (child_terminal_init): ... this. Adjust.
5789 (terminal_inferior): Rename to ...
5790 (child_terminal_inferior): ... this.
5791 (terminal_ours_for_output): Rename to ...
5792 (child_terminal_ours_for_output): ... this. Adjust.
5793 (terminal_ours): Rename to ...
5794 (child_terminal_ours): ... this.
5795 (terminal_ours_1): Rename to ...
5796 (child_terminal_ours_1): ... this. Adjust.
5797 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5798 * windows-nat.c (do_initial_windows_stuff): Adjust.
5799 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5800 (gnu_terminal_init): ... this. Adjust.
5801 (gnu_target): Adjust.
5802 * inf-child.c (inf_child_target): Adjust.
5803
5a1e8c7a
DE
58042014-03-13 Doug Evans <xdje42@gmail.com>
5805
5806 PR guile/16612
5807 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5808 new eq?-hashtab.
5809
350e1a76
DE
58102014-03-13 Doug Evans <xdje42@gmail.com>
5811
5812 * value.c (record_latest_value): Call release_value_or_incref
5813 instead of release_value.
5814
a69900ae
PA
58152014-03-13 Pedro Alves <palves@redhat.com>
5816
5817 * procfs.c (procfs_target): Don't override to_shortname,
5818 to_longname or to_doc.
5819
5db9f0bd
PA
58202014-03-13 Pedro Alves <palves@redhat.com>
5821
5822 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5823 Unix in user visible strings.
5824
5e3a2c38
SS
58252014-03-12 Stan Shebs <stan@codesourcery.com>
5826
5827 * gdbtypes.h: Annotate comments for Doxygen, add a page
5828 block comment with some general info.
5829
8bc2fe48
PA
58302014-03-12 Pedro Alves <palves@redhat.com>
5831
5832 * infcmd.c (prepare_execution_command): New function, factored out
5833 from several execution commands.
5834 (run_command_1, continue_command, step_1, jump_command)
5835 (signal_command, until_command, advance_command, finish_command)
5836 (attach_command): Use prepare_execution_command.
5837
638c5f49
OJ
58382014-03-12 Omair Javaid <omair.javaid@linaro.org>
5839
5840 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5841 (MAX_BPTS): Define.
5842 (MAX_WPTS): Define.
5843 (struct arm_linux_thread_points): Removed.
5844 (struct arm_linux_process_info): New.
5845 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5846 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5847 (arm_linux_find_breakpoints_by_tid): Removed.
5848 (struct arch_lwp_info): New.
5849 (arm_linux_find_process_pid): New functions.
5850 (arm_linux_add_process): New functions.
5851 (arm_linux_process_info_get): New functions.
5852 (arm_linux_forget_process): New function.
5853 (arm_linux_get_debug_reg_state): New function.
5854 (struct update_registers_data): New.
5855 (update_registers_callback): New function.
5856 (arm_linux_insert_hw_breakpoint1): Updated.
5857 (arm_linux_remove_hw_breakpoint1): Updated.
5858 (arm_linux_insert_hw_breakpoint): Updated.
5859 (arm_linux_remove_hw_breakpoint): Updated.
5860 (arm_linux_insert_watchpoint): Updated.
5861 (arm_linux_remove_watchpoint): Updated.
5862 (arm_linux_new_thread): Updated.
5863 (arm_linux_prepare_to_resume): New function.
5864 (arm_linux_new_fork): New function.
5865 (_initialize_arm_linux_nat): Updated.
5866
6d03af93
PA
58672014-03-12 Pedro Alves <palves@redhat.com>
5868
5869 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5870
b3ccfe11
TT
58712014-03-12 Tom Tromey <tromey@redhat.com>
5872
5873 * inf-child.c (return_zero): New function.
5874 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5875 * aix-thread.c (aix_thread_inferior_created): New function.
5876 (aix_thread_attach): Remove.
5877 (init_aix_thread_ops): Don't set to_attach.
5878 (_initialize_aix_thread): Register inferior_created observer.
5879 * corelow.c (init_core_ops): Don't set to_attach or
5880 to_create_inferior.
5881 * exec.c (init_exec_ops): Don't set to_attach or
5882 to_create_inferior.
5883 * infcmd.c (run_command_1): Use find_run_target. Make direct
5884 target calls.
5885 (attach_command): Use find_attach_target. Make direct target
5886 calls.
5887 * record-btrace.c (init_record_btrace_ops): Don't set
5888 to_create_inferior.
5889 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5890 Remove.
5891 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5892 set to_create_inferior.
5893 * target.c (complete_target_initialization): Add assertion.
5894 (target_create_inferior): Remove.
5895 (find_default_attach, find_default_create_inferior): Remove.
5896 (find_attach_target, find_run_target): New functions.
5897 (find_default_is_async_p, find_default_can_async_p)
5898 (target_supports_non_stop, target_attach): Remove.
5899 (init_dummy_target): Don't set to_create_inferior or
5900 to_supports_non_stop.
5901 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5902 TARGET_DEFAULT_FUNC.
5903 <to_create_inferior>: Add comment.
5904 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5905 TARGET_DEFAULT_RETURN.
5906 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5907 (find_attach_target, find_run_target): Declare.
5908 (target_create_inferior): Remove.
5909 (target_has_execution_1): Update comment.
5910 (target_supports_non_stop): Remove.
5911 * target-delegates.c: Rebuild.
5912
91f83b02
PA
59132014-03-12 Pedro Alves <palves@redhat.com>
5914
5915 * inf-child.h: Update comment to not mention Unix.
5916
f1aea813
PA
59172014-03-12 Pedro Alves <palves@redhat.com>
5918
5919 * inf-child.c: Update top comment to not mention Unix. Add
5920 generic comment describing how this target is meant to be used.
5921 (inf_child_post_attach, inf_child_post_startup_inferior)
5922 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5923 Unix in comment.
5924
ee8e9165
PA
59252014-03-12 Pedro Alves <palves@redhat.com>
5926
5927 * nto-procfs.c: Include inf-child.h.
5928 (procfs_ops): Delete global.
5929 (procfs_can_run): Delete method.
5930 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5931 target pointer instead of referencing procfs_ops.
5932 (procfs_prepare_to_store): Delete.
5933 (init_procfs_ops): Delete function.
5934 (procfs_target): New function, based on init_procfs_ops, but
5935 inherit inf_child_target.
5936 (_initialize_procfs): Use procfs_target.
5937
51a9c8c5
PA
59382014-03-12 Pedro Alves <palves@redhat.com>
5939
5940 * windows-nat.c: Include inf-child.h.
5941 (windows_ops): Delete global.
5942 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5943 methods.
5944 (init_windows_ops): Delete function.
5945 (windows_target): New function, based on init_windows_ops, but
5946 inherit inf_child_target.
5947 (_initialize_windows_nat): Use windows_target. Install x86
5948 specific target methods here.
5949
c1966e26
DE
59502014-03-10 Doug Evans <xdje42@gmail.com>
5951
5952 * guile/guile.c (call_initialize_gdb_module): New function.
5953 (initialize_guile): Replace call to scm_init_guile with call to
5954 scm_with_guile.
5955
023db19c
JB
59562014-03-10 Joel Brobecker <brobecker@adacore.com>
5957
5958 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5959 in call to TYPE_CODE macro.
5960
5ec18f2b
JG
59612014-03-10 Jerome Guitton <guitton@adacore.com>
5962
8668be63
JB
5963 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5964 Resolve tagged types to full view.
5ec18f2b 5965
7d03f2eb
HZ
59662014-03-10 Hui Zhu <hui@codesourcery.com>
5967
5968 * target.h (target_insert_breakpoint): Remove "hardware" from its
5969 comments.
5970
c5164cbc
DE
59712014-03-07 Doug Evans <dje@google.com>
5972
5973 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5974
c4a3fee2
DE
59752014-03-07 Doug Evans <dje@google.com>
5976
5977 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5978 Remove unused local comp_dir_attr. Assert exactly one of
5979 stub_comp_unit_die, stub_comp_dir is non-NULL.
5980
3156469c
JB
59812014-03-07 Joel Brobecker <brobecker@adacore.com>
5982
5983 * target.h (complete_target_initialization, add_target):
5984 Add comment.
5985
c1a7b7c6
PA
59862014-03-07 Pedro Alves <palves@redhat.com>
5987
5988 * go32-nat.c: Include inf-child.h.
5989 (go32_ops): Delete global.
5990 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5991 Delete methods.
5992 (go32_create_inferior): Push the passed in target pointer instead
5993 of referencing go32_ops.
5994 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5995 (go32_target): New function, based on init_go32_ops, but inherit
5996 inf_child_target.
5997 (_initialize_go32_nat): Use go32_target. Move parts of
5998 init_go32_ops here.
5999
d3c1a85f
JB
60002014-03-06 Joel Brobecker <brobecker@adacore.com>
6001
6002 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6003 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6004 SYMBOL_VALUE_ADDRESS.
6005 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6006
5fa1d40e
YQ
60072014-03-06 Yao Qi <yao@codesourcery.com>
6008
6009 * breakpoint.c (get_tracepoint_by_number): Remove argument
6010 optional_p. All callers updated. Adjust comments. Update
6011 output message.
6012 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6013
0c13193f
YQ
60142014-03-06 Yao Qi <yao@codesourcery.com>
6015
6016 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6017 early if get_number returns zero. Use 'p' instead of 'args'.
6018
2217da06
YQ
60192014-03-06 Yao Qi <yao@codesourcery.com>
6020
6021 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6022 message.
6023
cc3da688
YQ
60242014-03-06 Yao Qi <yao@codesourcery.com>
6025
6026 PR breakpoints/16508
6027 * tracepoint.c (check_trace_running): New function.
6028 (trace_find_command): Move code to check_trace_running and
6029 call check_trace_running.
6030 (trace_find_pc_command): Likewise.
6031 (trace_find_tracepoint_command): Likewise.
6032 (trace_find_line_command): Likewise.
6033 (trace_find_range_command): Likewise.
6034 * tracepoint.h (check_trace_running): Likewise.
6035 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6036
6a5f844b
YQ
60372014-03-06 Yao Qi <yao@codesourcery.com>
6038
6039 * target.h (struct target_ops) <to_traceframe_info>: Use
6040 TARGET_DEFAULT_NORETURN (tcomplain ()).
6041 * target-delegates.c: Regenerated.
6042
0f26cec1
PA
60432014-03-05 Pedro Alves <palves@redhat.com>
6044
6045 PR gdb/16575
6046 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6047 void. Update comment.
6048 (dcache_xfer_memory): Delete.
6049 (dcache_read_memory_partial): New, based on the read bits of
6050 dcache_xfer_memory.
6051 (dcache_update): Add status parameter. Use ULONGEST for len, and
6052 adjust. Discard cache lines if the reason for the update was
6053 error.
6054 * dcache.h (dcache_xfer_memory): Delete declaration.
6055 (dcache_read_memory_partial): New declaration.
6056 (dcache_update): Update prototype.
6057 * target.c (raw_memory_xfer_partial): Update the dcache here.
6058 (memory_xfer_partial_1): Don't handle dcache writes here.
6059
b2b255bd
MF
60602014-03-05 Mike Frysinger <vapier@gentoo.org>
6061
6062 * remote-sim.c (gdbsim_load): Add const to prog.
6063
5d9cf8a4
TT
60642014-03-03 Tom Tromey <tromey@redhat.com>
6065
6066 * elfread.c (probe_key): Change to bfd_data.
6067 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6068 now per-BFD, not per-objfile.
6069 * stap-probe.c (stap_probe_destroy): Update comment.
6070 (handle_stap_probe): Allocate on the per-BFD obstack.
6071
729662a5
TT
60722014-03-03 Tom Tromey <tromey@redhat.com>
6073
6074 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6075 * breakpoint.c (create_longjmp_master_breakpoint): Use
6076 get_probe_address.
6077 (add_location_to_breakpoint, bkpt_probe_insert_location)
6078 (bkpt_probe_remove_location): Update.
6079 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6080 * elfread.c (elf_symfile_relocate_probe): Remove.
6081 (elf_probe_fns): Update.
6082 (insert_exception_resume_breakpoint): Change type of "probe"
6083 parameter to bound_probe.
6084 (check_exception_resume): Update.
6085 * objfiles.c (objfile_relocate1): Don't relocate probes.
6086 * probe.c (bound_probe_s): New typedef.
6087 (parse_probes): Use get_probe_address. Set sal's objfile.
6088 (find_probe_by_pc): Return a bound_probe.
6089 (collect_probes): Return a VEC(bound_probe_s).
6090 (compare_probes): Update.
6091 (gen_ui_out_table_header_info): Change type of "probes"
6092 parameter. Update.
6093 (info_probes_for_ops): Update.
6094 (get_probe_address): New function.
6095 (probe_safe_evaluate_at_pc): Update.
6096 * probe.h (struct probe_ops) <get_probe_address>: New field.
6097 <set_semaphore, clear_semaphore>: Add objfile parameter.
6098 (struct probe) <objfile>: Remove field.
6099 <arch>: New field.
6100 <address>: Update comment.
6101 (struct bound_probe): New.
6102 (find_probe_by_pc): Return a bound_probe.
6103 (get_probe_address): Declare.
6104 * solib-svr4.c (struct probe_and_action) <address>: New field.
6105 (hash_probe_and_action, equal_probe_and_action): Update.
6106 (register_solib_event_probe): Add address parameter.
6107 (solib_event_probe_at): Update.
6108 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6109 get_probe_address.
6110 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6111 (stap_get_probe_address): New function.
6112 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6113 (compile_probe_arg): Update.
6114 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6115 address.
6116 (handle_stap_probe): Don't relocate the probe.
6117 (stap_relocate): Remove.
6118 (stap_gen_info_probes_table_values): Update.
6119 (stap_probe_ops): Remove stap_relocate.
6120 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6121 (debug_sym_probe_fns): Update.
6122 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6123 * symtab.c (init_sal): Use memset.
6124 * symtab.h (struct symtab_and_line) <objfile>: New field.
6125 * tracepoint.c (start_tracing, stop_tracing): Update.
6126
ff887920
TT
61272014-03-03 Tom Tromey <tromey@redhat.com>
6128
6129 * probe.h (parse_probes, find_probe_by_pc)
6130 (find_probes_in_objfile): Fix comments.
6131
f0407826
DE
61322014-03-02 Doug Evans <xdje42@gmail.com>
6133
6134 * infrun.c (handle_signal_stop): Replace test for
6135 TARGET_WAITKIND_STOPPED with an assert.
6136
35e6a711
DE
61372014-03-02 Doug Evans <xdje42@gmail.com>
6138
6139 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6140
667f9d0b
DE
61412014-03-02 Doug Evans <xdje42@gmail.com>
6142
6143 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6144
dc92ace0
MK
61452014-03-01 Mark Kettenis <kettenis@gnu.org>
6146
6147 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6148
a900370f
MK
61492014-03-01 Mark Kettenis <kettenis@gnu.org>
6150
6151 * i386obsd-nat.c: Include "obsd-nat.h".
6152 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6153 add_target.
6154 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6155
b72a7981
MK
61562014-03-01 Mark Kettenis <kettenis@gnu.org>
6157
6158 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6159
96c70aba
MK
61602014-03-01 Mark Kettenis <kettenis@gnu.org>
6161
6162 * mips64obsd-nat.c: Include "obsd-nath".
6163 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6164 add_target
6165 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6166
874a80af
MK
61672014-03-01 Mark Kettenis <kettenis@gnu.org>
6168
8fd408f1
MK
6169 * amd64obsd-nat.c: Include "obsd-nat,h.
6170 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6171 add_target.
874a80af
MK
6172 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6173
9cf95373
SC
61742014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6175
6176 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6177 (find_overload_match): Update call to find_oload_champ.
6178 (find_oload_champ_namespace_loop): Likewise
6179
863e4da4
MK
61802014-02-28 Mark Kettenis <kettenis@gnu.org>
6181
025cac40
MK
6182 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6183
1ed586ce
MK
6184 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6185 * config/sparc/obsd64.mh: New file.
6186 * sparc64obsd-nat.c: New file.
6187
863e4da4
MK
6188 * obsd-nat.h: New file.
6189 * obsd-nat.c: New file.
6190 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6191 (ALLDEPFILES): Add obsd-nat.c.
6192
89de4da4
TT
61932014-02-28 Tom Tromey <tromey@redhat.com>
6194
6195 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6196 * cli-out.h (cli_ui_out_impl): Now const.
6197 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6198 * ui-out.c (struct ui_out) <impl>: Now const.
6199 (default_ui_out_impl): Now const.
6200 (ui_out_new): Make 'impl' parameter const.
6201 * ui-out.h (ui_out_new): Update.
6202
c725e7b6
MK
62032014-02-27 Mark Kettenis <kettenis@gnu.org>
6204
6205 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6206
670b46b3
MK
62072014-02-27 Mark Kettenis <kettenis@gnu.org>
6208
6209 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6210
c91550fc
JK
62112014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 Additional PR 8882 fix.
6214 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6215
2fa0369e
PA
62162014-02-27 Pedro Alves <palves@redhat.com>
6217
6218 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6219 isn't set.
6220
d632a097
PA
62212014-02-27 Pedro Alves <palves@redhat.com>
6222
6223 PR 12702
6224 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6225 * nat/linux-waitpid.c: Include string.h.
6226 (status_to_str): Moved here and made extern.
6227 * nat/linux-waitpid.h (status_to_str): New declaration.
6228
2ebd5a35
HZ
62292014-02-27 Hui Zhu <hui@codesourcery.com>
6230
6231 PR 12702
6232 * infrun.c (ptid_match): Move ...
6233 * common/ptid.c (ptid_match): ... here.
6234 * inferior.h (ptid_match): Move ...
6235 * common/ptid.h (ptid_match): ... here.
6236
3cdd631f
MK
62372014-02-27 Mark Kettenis <kettenis@gnu.org>
6238
6239 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6240 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6241 gdb_target_obs.
6242
bee30a64
MK
62432014-02-27 Mark Kettenis <kettenis@gnu.org>
6244
6245 * obsd-tdep.c (obsd_auxv_parse): New function.
6246 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6247
6248 * gdbarch.sh (auxv_parse): New.
6249 * gdbarch.h: Regenerated.
6250 * gdbarch.c: Regenerated.
6251 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6252
7a5a839f
LC
62532014-02-26 Ludovic Courtès <ludo@gnu.org>
6254
6255 * guile/scm-value.c (gdbscm_history_append_x): New function.
6256 (value_functions): Add it.
6257
31aa7e4e
JB
62582014-02-27 Joel Brobecker <brobecker@adacore.com>
6259
6260 * dwarf2read.c (attr_value_as_address): New function.
6261 (dwarf2_find_base_address, read_call_site_scope): Use
6262 attr_value_as_address in place of DW_ADDR.
6263 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6264 the low and high addresses. Slight rework of the handling
6265 of the high pc being a constant form, and limit it to
6266 DWARF verson 4 or higher.
6267 (dwarf2_record_block_ranges): Likewise.
6268 (read_partial_die): Likewise.
6269 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6270
9b333ba3
TT
62712014-02-26 Tom Tromey <tromey@redhat.com>
6272
6273 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6274
5f6cac40
TT
62752014-02-26 Tom Tromey <tromey@redhat.com>
6276
6277 * elfread.c (elf_read_minimal_symbols): Return early if
6278 minimal symbols have already been read. Add "ei" parameter.
6279 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6280 * minsyms.c (prim_record_minimal_symbol_full): Update.
6281 * objfiles.h (struct objstats) <n_minsyms>: Move...
6282 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6283 * symmisc.c (print_objfile_statistics): Update.
6284
2750ef27
TT
62852014-02-26 Tom Tromey <tromey@redhat.com>
6286
6287 * elfread.c (elf_read_minimal_symbols): New function, from
6288 elf_symfile_read.
6289 (elf_symfile_read): Call it.
6290
34643a32
TT
62912014-02-26 Tom Tromey <tromey@redhat.com>
6292
6293 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6294 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6295 (lookup_minimal_symbol_solib_trampoline)
6296 (lookup_minimal_symbol_by_pc_section_1)
6297 (lookup_minimal_symbol_and_objfile): Update.
6298 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6299 Don't allocate a minimal symbol if minsyms have already been read.
6300 (build_minimal_symbol_hash_tables): Update.
6301 (install_minimal_symbols): Do nothing if minsyms already read.
6302 Use the per-BFD obstack.
6303 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6304 * objfiles.c (allocate_objfile): Call
6305 terminate_minimal_symbol_table later.
6306 (have_minimal_symbols): Update.
6307 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6308 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6309 Move from struct objfile.
6310 <minsyms_read>: New field.
6311 (struct objfile) <msymbols, minimal_symbol_count,
6312 msymbol_hash, msymbol_demangled_hash>: Move.
6313 (ALL_OBJFILE_MSYMBOLS): Update.
6314 * symfile.c (read_symbols): Set minsyms_read.
6315 (reread_symbols): Update.
6316 * symmisc.c (dump_objfile, dump_msymbols): Update.
6317
2273f0ac
TT
63182014-02-26 Tom Tromey <tromey@redhat.com>
6319
6320 * minsyms.c (msymbols_sort): Remove.
6321 * minsyms.h (msymbols_sort): Remove.
6322 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6323 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6324 * elfread.c (elf_symtab_read): Don't add section offsets.
6325 * xcoffread.c (record_minimal_symbol): Don't add section offset
6326 to minimal symbol address.
6327 * somread.c (text_offset, data_offset): Remove.
6328 (som_symtab_read): Don't add section offsets to minimal symbol
6329 addresses.
6330 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6331 Don't add section offsets to minimal symbols.
6332 * coffread.c (coff_symtab_read): Don't add section offsets
6333 to minimal symbol addresses.
6334 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6335 to minimal symbol addresses.
6336 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6337 section offset to minimal symbol addresses.
6338 * mdebugread.c (parse_partial_symbols): Don't add section
6339 offset to minimal symbol addresses.
6340 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6341 offset to minimal symbol addresses.
6342
77e371c0
TT
63432014-02-26 Tom Tromey <tromey@redhat.com>
6344
6345 * ada-lang.c (ada_main_name): Update.
6346 (ada_add_standard_exceptions): Update.
6347 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6348 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6349 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6350 * auxv.c (ld_so_xfer_auxv): Update.
6351 * avr-tdep.c (avr_scan_prologue): Update.
6352 * ax-gdb.c (gen_var_ref): Update.
6353 * blockframe.c (get_pc_function_start)
6354 (find_pc_partial_function_gnu_ifunc): Update.
6355 * breakpoint.c (create_overlay_event_breakpoint)
6356 (create_longjmp_master_breakpoint)
6357 (create_std_terminate_master_breakpoint)
6358 (create_exception_master_breakpoint): Update.
6359 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6360 * c-valprint.c (c_val_print): Update.
6361 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6362 * common/agent.c (agent_look_up_symbols): Update.
6363 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6364 * dwarf2loc.c (call_site_to_target_addr): Update.
6365 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6366 * elfread.c (elf_gnu_ifunc_record_cache)
6367 (elf_gnu_ifunc_resolve_by_got): Update.
6368 * findvar.c (default_read_var_value): Update.
6369 * frame.c (inside_main_func): Update.
6370 * frv-tdep.c (frv_frame_this_id): Update.
6371 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6372 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6373 Update.
6374 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6375 (hppa_hpux_find_dummy_bpaddr): Update.
6376 * hppa-tdep.c (hppa_symbol_address): Update.
6377 * infcmd.c (until_next_command): Update.
6378 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6379 Update.
6380 * linespec.c (minsym_found, add_minsym): Update.
6381 * linux-nat.c (get_signo): Update.
6382 * linux-thread-db.c (inferior_has_bug): Update.
6383 * m32c-tdep.c (m32c_return_value)
6384 (m32c_m16c_address_to_pointer): Update.
6385 * m32r-tdep.c (m32r_frame_this_id): Update.
6386 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6387 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6388 * maint.c (maintenance_translate_address): Update.
6389 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6390 (frob_address): New function.
6391 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6392 frob_address. Rename parameter to "pc_in".
6393 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6394 addresses.
6395 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6396 Update.
6397 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6398 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6399 * objc-lang.c (find_objc_msgsend): Update.
6400 * objfiles.c (objfile_relocate1): Update.
6401 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6402 * p-valprint.c (pascal_val_print): Update.
6403 * parse.c (write_exp_msymbol): Update.
6404 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6405 (ppc_elfv2_skip_entrypoint): Update.
6406 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6407 * printcmd.c (build_address_symbolic, msym_info)
6408 (address_info): Update.
6409 * proc-service.c (ps_pglobal_lookup): Update.
6410 * psymtab.c (find_pc_sect_psymtab_closer)
6411 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6412 Change msymbol parameter to bound_minimal_symbol.
6413 * ravenscar-thread.c (get_running_thread_id): Update.
6414 * remote.c (remote_check_symbols): Update.
6415 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6416 address.
6417 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6418 * solib-dsbt.c (lm_base): Update.
6419 * solib-frv.c (lm_base, main_got): Update.
6420 * solib-irix.c (locate_base): Update.
6421 * solib-som.c (som_solib_create_inferior_hook)
6422 (link_map_start): Update.
6423 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6424 * solib-svr4.c (elf_locate_base, enable_break): Update.
6425 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6426 (flush_ea_cache): Update.
6427 * stabsread.c (define_symbol, scan_file_globals): Update.
6428 * stack.c (find_frame_funname): Update.
6429 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6430 (debug_qf_find_pc_sect_symtab): Update.
6431 * symfile.c (simple_read_overlay_table)
6432 (simple_overlay_update): Update.
6433 * symfile.h (struct quick_symbol_functions)
6434 <find_pc_sect_symtab>: Change type of msymbol to
6435 bound_minimal_symbol.
6436 * symmisc.c (dump_msymbols): Update.
6437 * symtab.c (find_pc_sect_symtab_via_partial)
6438 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6439 (search_symbols, print_msymbol_info): Update.
6440 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6441 (MSYMBOL_VALUE_ADDRESS): Redefine.
6442 (BMSYMBOL_VALUE_ADDRESS): New macro.
6443 * tracepoint.c (scope_info): Update.
6444 * tui/tui-disasm.c (tui_find_disassembly_address)
6445 (tui_get_begin_asm_address): Update.
6446 * valops.c (find_function_in_inferior): Update.
6447 * value.c (value_static_field, value_fn_field): Update.
6448
3b7344d5
TT
64492014-02-26 Tom Tromey <tromey@redhat.com>
6450
6451 * ada-lang.c (ada_update_initial_language): Update.
6452 (ada_main_name, ada_has_this_exception_support): Update.
6453 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6454 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6455 * arm-tdep.c (arm_skip_stub): Update.
6456 * auxv.c (ld_so_xfer_auxv): Update.
6457 * avr-tdep.c (avr_scan_prologue): Update.
6458 * ax-gdb.c (gen_var_ref): Update.
6459 * breakpoint.c (struct breakpoint_objfile_data)
6460 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6461 type to bound_minimal_symbol.
6462 (create_overlay_event_breakpoint)
6463 (create_longjmp_master_breakpoint)
6464 (create_std_terminate_master_breakpoint)
6465 (create_exception_master_breakpoint): Update.
6466 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6467 * c-exp.y (classify_name): Update.
6468 * coffread.c (coff_symfile_read): Update.
6469 * common/agent.c (agent_look_up_symbols): Update.
6470 * d-lang.c (d_main_name): Update.
6471 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6472 * dec-thread.c (enable_dec_thread): Update.
6473 * dwarf2loc.c (call_site_to_target_addr): Update.
6474 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6475 * eval.c (evaluate_subexp_standard): Update.
6476 * findvar.c (struct minsym_lookup_data) <result>: Change type
6477 to bound_minimal_symbol.
6478 <objfile>: Remove.
6479 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6480 * frame.c (inside_main_func): Update.
6481 * frv-tdep.c (frv_frame_this_id): Update.
6482 * gcore.c (call_target_sbrk): Update.
6483 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6484 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6485 Update.
6486 * go-lang.c (go_main_name): Update.
6487 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6488 (hppa_hpux_find_import_stub_for_addr): Update.
6489 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6490 Update. Change return type.
6491 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6492 type.
6493 * jit.c (jit_breakpoint_re_set_internal): Update.
6494 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6495 Update.
6496 * linux-nat.c (get_signo): Update.
6497 * linux-thread-db.c (inferior_has_bug): Update
6498 * m32c-tdep.c (m32c_return_value)
6499 (m32c_m16c_address_to_pointer): Update.
6500 * m32r-tdep.c (m32r_frame_this_id): Update.
6501 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6502 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6503 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6504 lookup_minimal_symbol. Change return type.
6505 (lookup_minimal_symbol): Remove.
6506 (lookup_bound_minimal_symbol): Update.
6507 (lookup_minimal_symbol_text): Change return type.
6508 (lookup_minimal_symbol_solib_trampoline): Change return type.
6509 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6510 (lookup_minimal_symbol_solib_trampoline): Change return type.
6511 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6512 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6513 (value_nsstring, find_imps): Update.
6514 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6515 * p-lang.c (pascal_main_name): Update.
6516 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6517 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6518 * proc-service.c (ps_pglobal_lookup): Update.
6519 * ravenscar-thread.c (get_running_thread_msymbol): Change
6520 return type.
6521 (has_ravenscar_runtime, get_running_thread_id): Update.
6522 * remote.c (remote_check_symbols): Update.
6523 * sol-thread.c (ps_pglobal_lookup): Update.
6524 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6525 * solib-dsbt.c (lm_base): Update.
6526 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6527 Update.
6528 * solib-irix.c (locate_base): Update.
6529 * solib-som.c (som_solib_create_inferior_hook)
6530 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6531 Update.
6532 * solib-spu.c (spu_enable_break): Update.
6533 * solib-svr4.c (elf_locate_base, enable_break): Update.
6534 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6535 (flush_ea_cache): Update.
6536 * stabsread.c (define_symbol): Update.
6537 * symfile.c (simple_read_overlay_table): Update.
6538 * symtab.c (find_pc_sect_line): Update.
6539 * tracepoint.c (scope_info): Update.
6540 * tui-disasm.c (tui_get_begin_asm_address): Update.
6541 * value.c (value_static_field): Update.
6542
40c1a007
TT
65432014-02-26 Tom Tromey <tromey@redhat.com>
6544
6545 * minsyms.c (prim_record_minimal_symbol_full): Use
6546 SET_MSYMBOL_VALUE_ADDRESS.
6547 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6548 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6549 SET_MSYMBOL_VALUE_ADDRESS.
6550 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6551 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6552
efd66ac6
TT
65532014-02-26 Tom Tromey <tromey@redhat.com>
6554
6555 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6556 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6557 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6558 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6559 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6560 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6561 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6562 * ada-lang.c (ada_main_name): Update.
6563 (ada_lookup_simple_minsym): Update.
6564 (ada_make_symbol_completion_list): Update.
6565 (ada_add_standard_exceptions): Update.
6566 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6567 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6568 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6569 * arm-tdep.c (skip_prologue_function): Update.
6570 (arm_skip_stack_protector, arm_skip_stub): Update.
6571 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6572 (arm_wince_skip_main_prologue): Update.
6573 * auxv.c (ld_so_xfer_auxv): Update.
6574 * avr-tdep.c (avr_scan_prologue): Update.
6575 * ax-gdb.c (gen_var_ref): Update.
6576 * block.c (call_site_for_pc): Update.
6577 * blockframe.c (get_pc_function_start): Update.
6578 (find_pc_partial_function_gnu_ifunc): Update.
6579 * breakpoint.c (create_overlay_event_breakpoint): Update.
6580 (create_longjmp_master_breakpoint): Update.
6581 (create_std_terminate_master_breakpoint): Update.
6582 (create_exception_master_breakpoint): Update.
6583 (resolve_sal_pc): Update.
6584 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6585 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6586 Update.
6587 * c-valprint.c (c_val_print): Update.
6588 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6589 * coffread.c (coff_symfile_read): Update.
6590 * common/agent.c (agent_look_up_symbols): Update.
6591 * dbxread.c (find_stab_function_addr): Update.
6592 (end_psymtab): Update.
6593 * dwarf2loc.c (call_site_to_target_addr): Update.
6594 (func_verify_no_selftailcall): Update.
6595 (tailcall_dump): Update.
6596 (call_site_find_chain_1): Update.
6597 (dwarf_expr_reg_to_entry_parameter): Update.
6598 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6599 (elf_gnu_ifunc_resolve_by_got): Update.
6600 * f-valprint.c (info_common_command): Update.
6601 * findvar.c (read_var_value): Update.
6602 * frame.c (get_prev_frame_1): Update.
6603 (inside_main_func): Update.
6604 * frv-tdep.c (frv_skip_main_prologue): Update.
6605 (frv_frame_this_id): Update.
6606 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6607 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6608 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6609 (gnuv3_skip_trampoline): Update.
6610 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6611 (hppa64_hpux_in_solib_call_trampoline): Update.
6612 (hppa_hpux_skip_trampoline_code): Update.
6613 (hppa64_hpux_search_dummy_call_sequence): Update.
6614 (hppa_hpux_find_import_stub_for_addr): Update.
6615 (hppa_hpux_find_dummy_bpaddr): Update.
6616 * hppa-tdep.c (hppa_symbol_address)
6617 (hppa_lookup_stub_minimal_symbol): Update.
6618 * i386-tdep.c (i386_skip_main_prologue): Update.
6619 (i386_pe_skip_trampoline_code): Update.
6620 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6621 * infcall.c (get_function_name): Update.
6622 * infcmd.c (until_next_command): Update.
6623 * jit.c (jit_breakpoint_re_set_internal): Update.
6624 (jit_inferior_init): Update.
6625 * linespec.c (minsym_found): Update.
6626 (add_minsym): Update.
6627 * linux-fork.c (info_checkpoints_command): Update.
6628 * linux-nat.c (get_signo): Update.
6629 * linux-thread-db.c (inferior_has_bug): Update.
6630 * m32c-tdep.c (m32c_return_value): Update.
6631 (m32c_m16c_address_to_pointer): Update.
6632 (m32c_m16c_pointer_to_address): Update.
6633 * m32r-tdep.c (m32r_frame_this_id): Update.
6634 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6635 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6636 * maint.c (maintenance_translate_address): Update.
6637 * minsyms.c (add_minsym_to_hash_table): Update.
6638 (add_minsym_to_demangled_hash_table): Update.
6639 (msymbol_objfile): Update.
6640 (lookup_minimal_symbol): Update.
6641 (iterate_over_minimal_symbols): Update.
6642 (lookup_minimal_symbol_text): Update.
6643 (lookup_minimal_symbol_by_pc_name): Update.
6644 (lookup_minimal_symbol_solib_trampoline): Update.
6645 (lookup_minimal_symbol_by_pc_section_1): Update.
6646 (lookup_minimal_symbol_and_objfile): Update.
6647 (prim_record_minimal_symbol_full): Update.
6648 (compare_minimal_symbols): Update.
6649 (compact_minimal_symbols): Update.
6650 (build_minimal_symbol_hash_tables): Update.
6651 (install_minimal_symbols): Update.
6652 (terminate_minimal_symbol_table): Update.
6653 (find_solib_trampoline_target): Update.
6654 (minimal_symbol_upper_bound): Update.
6655 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6656 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6657 (mips_skip_pic_trampoline_code): Update.
6658 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6659 * objc-lang.c (selectors_info): Update.
6660 (classes_info): Update.
6661 (find_methods): Update.
6662 (find_imps): Update.
6663 (find_objc_msgsend): Update.
6664 * objfiles.c (objfile_relocate1): Update.
6665 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6666 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6667 * p-valprint.c (pascal_val_print): Update.
6668 * parse.c (write_exp_msymbol): Update.
6669 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6670 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6671 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6672 * printcmd.c (build_address_symbolic): Update.
6673 (sym_info): Update.
6674 (address_info): Update.
6675 * proc-service.c (ps_pglobal_lookup): Update.
6676 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6677 (find_pc_sect_psymtab): Update.
6678 * python/py-framefilter.c (py_print_frame): Update.
6679 * ravenscar-thread.c (get_running_thread_id): Update.
6680 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6681 Update.
6682 * remote.c (remote_check_symbols): Update.
6683 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6684 (rs6000_skip_trampoline_code): Update.
6685 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6686 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6687 * solib-dsbt.c (lm_base): Update.
6688 * solib-frv.c (lm_base): Update.
6689 (main_got): Update.
6690 * solib-irix.c (locate_base): Update.
6691 * solib-som.c (som_solib_create_inferior_hook): Update.
6692 (som_solib_desire_dynamic_linker_symbols): Update.
6693 (link_map_start): Update.
6694 * solib-spu.c (spu_enable_break): Update.
6695 (ocl_enable_break): Update.
6696 * solib-svr4.c (elf_locate_base): Update.
6697 (enable_break): Update.
6698 * spu-tdep.c (spu_get_overlay_table): Update.
6699 (spu_catch_start): Update.
6700 (flush_ea_cache): Update.
6701 * stabsread.c (define_symbol): Update.
6702 (scan_file_globals): Update.
6703 * stack.c (find_frame_funname): Update.
6704 (frame_info): Update.
6705 * symfile.c (simple_read_overlay_table): Update.
6706 (simple_overlay_update): Update.
6707 * symmisc.c (dump_msymbols): Update.
6708 * symtab.c (fixup_section): Update.
6709 (find_pc_sect_line): Update.
6710 (skip_prologue_sal): Update.
6711 (search_symbols): Update.
6712 (print_msymbol_info): Update.
6713 (rbreak_command): Update.
6714 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6715 (completion_list_objc_symbol): Update.
6716 (default_make_symbol_completion_list_break_on): Update.
6717 * tracepoint.c (scope_info): Update.
6718 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6719 (tui_get_begin_asm_address): Update.
6720 * valops.c (find_function_in_inferior): Update.
6721 * value.c (value_static_field): Update.
6722 (value_fn_field): Update.
6723
50e65b17
TT
67242014-02-26 Tom Tromey <tromey@redhat.com>
6725
6726 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6727 bound minimal symbols. Move code that knows about minsym
6728 table layout...
6729 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6730 function.
6731 * minsyms.h (minimal_symbol_upper_bound): Declare.
6732 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6733 minimal_symbol_upper_bound.
6734
1b588015
JB
67352014-02-27 Joel Brobecker <brobecker@adacore.com>
6736
6737 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6738 Use the type's name if its basic type does not have a tag.
6739
dbb9c2b1
JB
67402014-02-27 Joel Brobecker <brobecker@adacore.com>
6741
6742 * dwarf2read.c (read_subrange_type): Add comment.
6743
55426c9d
JB
67442014-02-27 Joel Brobecker <brobecker@adacore.com>
6745
6746 * dwarf2read.c (update_enumeration_type_from_children): New
6747 function, mostly extracted from process_structure_scope.
6748 (read_enumeration_type): Call update_enumeration_type_from_children.
6749 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6750 and flag_flag_enum fields.
6751
f2fce0ca
PA
67522014-02-26 Pedro Alves <palves@redhat.com>
6753
6754 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6755 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6756 to_xfer_partial method.
6757
7a44e40e
PA
67582014-02-26 Pedro Alves <palves@redhat.com>
6759
6760 * target.c (complete_target_initialization): Don't install
6761 default_xfer_partial as to_xfer_partial hook.
6762 (nomemory): Delete.
6763 (update_current_target): Don't INHERIT nor de_fault
6764 deprecated_xfer_memory. Delete de_fault macro.
6765 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6766 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6767 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6768 field.
6769
bd265cd0
PA
67702014-02-26 Pedro Alves <palves@redhat.com>
6771
6772 * go32-nat.c (my_write_child): New function.
6773 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6774 (go32_xfer_partial): New function.
6775 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6776 Instead install a to_xfer_partial hook.
6777
9d46c4e5
PA
67782014-02-26 Pedro Alves <palves@redhat.com>
6779
6780 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6781 to_xfer_partial helper. Rewrite.
6782 (procfs_xfer_partial): New function.
6783 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6784 Install a to_xfer_partial hook.
6785
a1583b1f
PA
67862014-02-26 Pedro Alves <palves@redhat.com>
6787
6788 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6789 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6790 (m32r_xfer_partial): New function.
6791 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6792 Install a to_xfer_partial hook.
6793
6df1b29f
PA
67942014-02-26 Pedro Alves <palves@redhat.com>
6795
6796 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6797 helper.
6798 (mips_xfer_partial): New function.
6799 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6800 hook. Install a to_xfer_partial hook.
6801
dc53a7ad
JB
68022014-02-26 Joel Brobecker <brobecker@adacore.com>
6803
6804 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6805 * gdbtypes.c (create_array_type_with_stride): New function,
6806 renaming create_array_type, but with an added parameter
6807 called "bit_stride".
6808 (create_array_type): Re-implement using
6809 create_array_type_with_stride.
6810 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6811 and DW_AT_bit_stride attributes.
6812
12ab52e9
PA
68132014-02-26 Pedro Alves <palves@redhat.com>
6814
6815 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6816 task-specific breakpoints.
6817
d16461ae
PA
68182014-02-25 Pedro Alves <palves@redhat.com>
6819
6820 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6821 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6822
a8b16220
SS
68232014-02-25 Stan Shebs <stan@codesourcery.com>
6824
6825 * defs.h: Annotate comments for Doxygen.
6826
b9e795ee
TT
68272014-02-25 Tom Tromey <tromey@redhat.com>
6828
6829 * target.h (target_ignore): Don't declare.
6830 * target.c (target_ignore): Remove.
6831
849c862e
JK
68322014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6833
6834 PR gdb/16626
6835 * auto-load.c (auto_load_objfile_script_1): Change filename to
6836 debugfile.
6837
475109d8
JB
68382014-02-25 Joel Brobecker <brobecker@adacore.com>
6839
6840 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6841 documentation. Adjust prototype to match the target_ops
6842 to_xfer_partial method. Adjust implementation accordingly.
6843
e186c3bd
HZ
68442014-02-25 Hui Zhu <hui@codesourcery.com>
6845
6846 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6847 to_traceframe_info.
6848
6d451942
KB
68492014-02-25 Kevin Buettner <kevinb@redhat.com>
6850
041ab8b4 6851 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6852 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6853 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6854 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6855 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6856 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6857 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6858 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6859 New constants.
6860 (rl78_register_type): Use a data pointer type for SP and
6861 new pseudo registers mentioned above. Use a 16 bit integer
6862 type for all other register pairs.
6863 (rl78_register_name, rl78_g10_register_name): Update for
6864 new pseudo registers.
6865 (rl78_pseudo_register_read): Likewise.
6866 (rl78_pseudo_register_write): Likewise.
6867 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6868 to the newly added pseudo registers.
6869
eddf0bae
DE
68702014-02-24 Doug Evans <dje@google.com>
6871
6872 * value.c (record_latest_value): Fix comment.
6873 * printcmd.c (print_command_1): Remove code to handle -1 return from
6874 record_latest_value.
6875
e96027e0
PA
68762014-02-24 Pedro Alves <palves@redhat.com>
6877
6878 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6879 deprecated_xfer_memory hook.
6880 (procfs_xfer_partial): Call procfs_xfer_memory instead
6881 of the deprecated_xfer_memory target hook.
6882 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6883 helper.
6884
0837c976
YZ
68852014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6886
6887 * windows-nat.c (windows_xfer_shared_libraries): Return
6888 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6889 requested object is TARGET_OBJECT_LIBRARIES.
6890
bc113b4e
YQ
68912014-02-24 Yao Qi <yao@codesourcery.com>
6892
6893 * target.h (enum target_xfer_status)
6894 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6895 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6896 explicitly. New.
6897 * corefile.c (memory_error_message): User updated.
6898 * exec.c (section_table_read_available_memory): Likewise.
6899 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6900 * target.c (target_xfer_status_to_string): Likewise.
6901 (raw_memory_xfer_partial): Likewise.
6902 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6903 * valops.c (read_value_memory): Likewise.
6904 * exec.h: Update comments.
6905
01cb8804
YQ
69062014-02-24 Yao Qi <yao@codesourcery.com>
6907
6908 * target.c (target_xfer_status_to_string): Rename argument err
6909 to status.
6910 * target.h (target_xfer_status_to_string): Update declaration.
6911 Replace target_xfer_error_to_string with
6912 target_xfer_status_to_string in comment.
6913
93063aa6
YQ
69142014-02-24 Yao Qi <yao@codesourcery.com>
6915
6916 * mips-linux-nat.c (super_close): Update its type.
6917 (mips_linux_close): Pass 'self' to super_close.
6918
5c328c05
YQ
69192014-02-24 Yao Qi <yao@codesourcery.com>
6920
6921 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6922 * corefile.c (read_memory): Adjusted.
6923 * target.c (target_write_with_progress): Adjusted.
6924
f73023dd
YQ
69252014-02-23 Yao Qi <yao@codesourcery.com>
6926
6927 Revert two patches:
6928
6929 2013-10-25 Yao Qi <yao@codesourcery.com>
6930
6931 * remote.c (remote_traceframe_info): Return early if
6932 traceframe is not selected.
6933
6934 2013-07-19 Yao Qi <yao@codesourcery.com>
6935
6936 * target.c (update_current_target): Change the default action
6937 of 'to_traceframe_info' from tcomplain to return_zero.
6938 * target.h (struct target_ops) <to_traceframe_info>: Add more
6939 comments.
6940
5a2eb0ef
YQ
69412014-02-23 Yao Qi <yao@codesourcery.com>
6942
6943 * valops.c (read_value_memory): Rewrite it. Call
6944 target_xfer_partial in a loop.
6945 * exec.h (section_table_available_memory): Remove declaration.
6946 Move comments to ...
6947 * exec.c (section_table_available_memory): ... here. Make it
6948 static.
6949
1ee79381
YQ
69502014-02-23 Yao Qi <yao@codesourcery.com>
6951
6952 * exec.c (section_table_read_available_memory): New function.
6953 * exec.h (section_table_read_available_memory): Declare.
6954 * ctf.c (ctf_xfer_partial): Call
6955 section_table_read_available_memory.
6956 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6957
1ca49d37
YQ
69582014-02-23 Yao Qi <yao@codesourcery.com>
6959
6960 * ctf.c (ctf_xfer_partial): Move code to ...
6961 * exec.c (exec_read_partial_read_only): ... it. New function.
6962 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6963 * tracefile.c: Include "exec.h".
6964 * exec.h (exec_read_partial_read_only): Declare.
6965
a283690e
YQ
69662014-02-23 Yao Qi <yao@codesourcery.com>
6967
6968 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6969 (tfile_has_memory): Remove.
6970 (init_tfile_ops): Don't set fields to_has_all_memory and
6971 to_has_memory of tfile_ops.
6972 * tracefile.c (tracefile_has_all_memory): New function.
6973 (tracefile_has_memory): New function.
6974 (init_tracefile_ops): Initialize fields to_has_all_memory and
6975 to_has_memory of 'ops'.
6976
12e03cd0
YQ
69772014-02-23 Yao Qi <yao@codesourcery.com>
6978
6979 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6980 (ctf_thread_alive, ctf_get_trace_status): Remove.
6981 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6982 init_tracefile_ops.
6983 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6984 (tfile_has_stack, tfile_has_registers): Remove.
6985 (tfile_thread_alive): Remove.
6986 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6987 init_tracefile_ops.
6988 * tracefile.c (tracefile_has_stack): New function.
6989 (tracefile_has_registers): New function.
6990 (tracefile_thread_alive): New function.
6991 (tracefile_get_trace_status): New function.
6992 (init_tracefile_ops): New function.
6993 * tracefile.h (init_tracefile_ops): Declare.
6994
11395323
YQ
69952014-02-23 Yao Qi <yao@codesourcery.com>
6996
6997 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6998 (O_LARGEFILE): Likewise.
6999 (tfile_ops): Likewise.
7000 (TRACE_HEADER_SIZE): Likewise.
7001 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7002 (cur_data_size): Likewise.
7003 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7004 (tfile_close, tfile_files_info): Likewise.
7005 (tfile_get_trace_status): Likewise.
7006 (tfile_get_tracepoint_status): Likewise.
7007 (tfile_get_traceframe_address): Likewise.
7008 (tfile_trace_find, match_blocktype): Likewise.
7009 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7010 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7011 (tfile_get_trace_state_variable_value): Likewise.
7012 (tfile_has_all_memory, tfile_has_memory): Likewise.
7013 (tfile_has_stack, tfile_has_registers): Likewise.
7014 (tfile_thread_alive, build_traceframe_info): Likewise.
7015 (tfile_traceframe_info, init_tfile_ops): Likewise.
7016 (_initialize_tracepoint): Don't call init_tfile_ops
7017 and add_target_with_completer.
7018 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7019 exec.h, completer.h and filenames.h.
7020 (_initialize_tracefile_tfile): New function.
7021
7951c4eb
YQ
70222014-02-23 Yao Qi <yao@codesourcery.com>
7023
7024 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7025 tracefile-tfile.o.
7026 (HFILES_NO_SRCDIR): Add tracefile.h.
7027 * ctf.c: Include "tracefile.h".
7028 * tracefile.h: New file.
7029 * tracefile.c: New file
7030 * tracefile-tfile.c: New file.
7031 * tracepoint.c: Include "tracefile.h".
7032 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7033 (stop_reason_names): Add const.
7034 (trace_file_writer_xfree): Move it to tracefile.c.
7035 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7036 (trace_save_ctf): Likewise.
7037 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7038 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7039 (tfile_write_header, tfile_write_regblock_type): Likewise.
7040 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7041 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7042 (tfile_write_raw_data, tfile_end): Likewise.
7043 (tfile_trace_file_writer_new): Likewise.
7044 (free_uploaded_tp): Make it extern.
7045 (free_uploaded_tsv): Make it extern.
7046 (_initialize_tracepoint): Move code to register command 'tsave'
7047 to tracefile.c.
7048 * tracepoint.h (stop_reason_names): Declare.
7049 (struct trace_frame_write_ops): Move it to tracefile.h.
7050 (struct trace_file_write_ops): Likewise.
7051 (struct trace_file_writer): Likewise.
7052 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7053
184cd072
JK
70542014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7055
7056 PR gdb/16594
7057 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7058 process name.
7059 (get_cores_used_by_process): New parameter num_cores, use it.
7060 (linux_xfer_osdata_processes): Pass num_cores to it.
7061 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7062 process name.
7063
c63528fc
AK
70642014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7065
7066 * target.c (memory_xfer_partial): Fix length arg in call to
7067 breakpoint_xfer_memory.
7068
d7b30f67
SDJ
70692014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7070
7071 PR tdep/16397
7072 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7073 number comes after the + or - signs. Adjust length of register
7074 name to be extracted.
7075
8838afaf
TT
70762014-02-20 Tom Tromey <tromey@redhat.com>
7077
7078 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7079 (ada_varobj_ops): Mark "extern".
7080
05227d14
TT
70812014-02-20 Tom Tromey <tromey@redhat.com>
7082
7083 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7084
1254eefc
DE
70852014-02-20 Doug Evans <xdje42@gmail.com>
7086
7087 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7088 All callers updated.
7089 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7090 All callers updated.
7091 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7092 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7093
adde2bff
DE
70942014-02-20 lin zuojian <manjian2006@gmail.com>
7095 Joel Brobecker <brobecker@adacore.com>
7096 Doug Evans <xdje42@gmail.com>
7097
7098 PR symtab/16581
7099 * dwarf2read.c (struct die_info): New member in_process.
7100 (reset_die_in_process): New function.
7101 (process_die): Set it at the start, reset when returning.
7102 (inherit_abstract_dies): Only call process_die if origin_child_die
7103 not already being processed.
7104
3be75f87
JB
71052014-02-20 Joel Brobecker <brobecker@adacore.com>
7106
7107 * windows-nat.c (handle_unload_dll): Add function documentation.
7108 (do_initial_windows_stuff): Add comment explaining why we wait
7109 until after inferior initialization has finished before
7110 processing all DLLs.
7111
47f7ffdb
JB
71122014-02-20 Joel Brobecker <brobecker@adacore.com>
7113
7114 * windows-nat.c (get_module_name): Delete.
7115 (windows_get_exec_module_filename): New function, mostly
7116 inspired from get_module_name.
7117 (windows_pid_to_exec_file): Replace call to get_module_name
7118 by call to windows_get_exec_module_filename.
7119
1cd9feab
JB
71202014-02-20 Joel Brobecker <brobecker@adacore.com>
7121
7122 * windows-nat.c (handle_load_dll): Rewrite this function's
7123 introductory comment. Remove code using get_module_name
7124 to get the DLL's name.
7125
ea39ad35
JB
71262014-02-20 Joel Brobecker <brobecker@adacore.com>
7127
7128 * windows-nat.c (get_windows_debug_event): Ignore
7129 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7130 if windows_initialization_done == 0.
7131 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7132 Adjust implementation to always load all DLLs.
7133 (do_initial_windows_stuff): Replace call to
7134 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7135
95060284
JB
71362014-02-20 Joel Brobecker <brobecker@adacore.com>
7137
7138 * windows-nat.c (_initialize_windows_nat): Deprecate the
7139 "dll-symbols" command. Turn the "add-shared-symbol-files"
7140 and "assf" aliases into commands, and deprecate them as well.
7141 * NEWS: Add entry explaining that "dll-symbols" and its two
7142 aliases are now deprecated.
7143
8d4fdb12
JB
71442014-02-20 Joel Brobecker <brobecker@adacore.com>
7145
7146 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7147 new-line in debug string. Remove trailing spaces.
7148
1b281443
SS
71492014-02-19 Stan Shebs <stan@codesourcery.com>
7150
7151 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7152
f7bd0f78
SC
71532014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7154
7155 * NEWS: Add entry for the new feature
7156 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7157 and class values.
7158
399ebc3d
SS
71592014-02-19 Stan Shebs <stan@codesourcery.com>
7160
7161 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7162
c658158d
PA
71632014-02-19 Pedro Alves <palves@redhat.com>
7164
7165 * common/ptid.h (struct ptid): Mention that process_stratum
7166 targets should prefer ptid.lwp.
7167
ba348170
PA
71682014-02-19 Pedro Alves <palves@redhat.com>
7169
7170 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7171 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7172 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7173 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7174 store remote thread ids rather than ptid.tid.
7175 (_initialize_remote): Adjust.
7176
ac01945b
TT
71772014-02-19 Tom Tromey <tromey@redhat.com>
7178
7179 * target.c (target_get_unwinder): Rewrite.
7180 (target_get_tailcall_unwinder): Rewrite.
7181 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7182 (record_btrace_to_get_tailcall_unwinder): New function.
7183 (init_record_btrace_ops): Update.
7184 * target.h (struct target_ops) <to_get_unwinder,
7185 to_get_tailcall_unwinder>: Now function pointers. Use
7186 TARGET_DEFAULT_RETURN.
7187
8476dc92
TT
71882014-02-19 Tom Tromey <tromey@redhat.com>
7189
7190 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7191 argument.
7192 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7193
c0eca49f
TT
71942014-02-19 Tom Tromey <tromey@redhat.com>
7195
7196 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7197 directly.
7198 * target-delegates.c: Rebuild.
7199 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7200 TARGET_DEFAULT_FUNC.
7201 * target.c (default_target_decr_pc_after_break): Rename from
7202 forward_target_decr_pc_after_break. Simplify.
7203 (target_decr_pc_after_break): Rely on delegation.
7204
596b6b39
TT
72052014-02-19 Tom Tromey <tromey@redhat.com>
7206
7207 * target.c (update_current_target): Do not INHERIT to_doc or
7208 to_magic. Do not de_fault to_open or to_close.
7209
b427c1bc
TT
72102014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * gcore.h (objfile_find_memory_regions): Declare.
7213 * gcore.c (objfile_find_memory_regions): No longer static. Add
7214 "self" argument.
7215 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7216 * exec.c: Include gcore.h.
7217 (exec_set_find_memory_regions): Remove.
7218 (exec_find_memory_regions): Remove.
7219 (exec_do_find_memory_regions): Remove.
7220 (init_exec_ops): Update.
7221 * defs.h (exec_set_find_memory_regions): Remove.
7222
9b144037
TT
72232014-02-19 Tom Tromey <tromey@redhat.com>
7224
7225 * target-delegates.c: Rebuild.
7226 * target.h (struct target_ops) <to_extra_thread_info,
7227 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7228 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7229 not 0, in TARGET_DEFAULT_RETURN.
7230
555bbdeb
TT
72312014-02-19 Tom Tromey <tromey@redhat.com>
7232
7233 * target.c (complete_target_initialization): Remove casts. Use
7234 return_zero_has_execution.
7235 (return_zero): Add "ignore" argument.
7236 (return_zero_has_execution): New function.
7237 (init_dummy_target): Remove casts. Use
7238 return_zero_has_execution.
7239
be4ddd36
TT
72402014-02-19 Tom Tromey <tromey@redhat.com>
7241
7242 * target.c (update_current_target): Update comments. Do not
7243 INHERIT to_stratum.
7244
2117c711
TT
72452014-02-19 Tom Tromey <tromey@redhat.com>
7246
7247 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7248 needed.
7249 * corelow.c (core_read_description): Delegate when needed.
7250 * remote.c (remote_read_description): Delegate when needed.
7251 * target-delegates.c: Rebuild.
7252 * target.c (target_read_description): Rewrite.
7253 * target.h (struct target_ops) <to_read_description>: Update
7254 comment. Use TARGET_DEFAULT_RETURN.
7255
e88ef65c
TT
72562014-02-19 Tom Tromey <tromey@redhat.com>
7257
7258 * target-delegates.c: Rebuild.
7259 * target.c (update_current_target): Don't inherit or default
7260 to_can_run.
7261 (find_default_run_target): Check against delegate_can_run.
7262 * target.h (struct target_ops) <to_can_run>: Use
7263 TARGET_DEFAULT_RETURN.
7264
86a0854a
TT
72652014-02-19 Tom Tromey <tromey@redhat.com>
7266
7267 * target-delegates.c: Rebuild.
7268 * target.c (target_disconnect): Unconditionally delegate.
7269 * target.h (struct target_ops) <to_disconnect>: Use
7270 TARGET_DEFAULT_NORETURN.
7271
ee97f592
TT
72722014-02-19 Tom Tromey <tromey@redhat.com>
7273
7274 * record.c (record_stop): Unconditionally delegate.
7275 * target-delegates.c: Rebuild.
7276 * target.c (target_stop_recording): Unconditionally delegate.
7277 * target.h (struct target_ops) <to_stop_recording>: Use
7278 TARGET_DEFAULT_IGNORE.
7279
6dc7fcf4
TT
72802014-02-19 Tom Tromey <tromey@redhat.com>
7281
7282 * target-delegates.c: Rebuild.
7283 * target.c (target_enable_btrace): Unconditionally delegate.
7284 * target.h (struct target_ops) <to_enable_btrace>: Use
7285 TARGET_DEFAULT_NORETURN.
7286
eb5b20d4
TT
72872014-02-19 Tom Tromey <tromey@redhat.com>
7288
7289 * target-delegates.c: Rebuild.
7290 * target.c (target_read_btrace): Unconditionally delegate.
7291 * target.h (struct target_ops) <to_read_btrace>: Use
7292 TARGET_DEFAULT_NORETURN.
7293
9ace480d
TT
72942014-02-19 Tom Tromey <tromey@redhat.com>
7295
7296 * target-delegates.c: Rebuild.
7297 * target.c (target_teardown_btrace): Unconditionally delegate.
7298 * target.h (struct target_ops) <to_teardown_btrace>: Use
7299 TARGET_DEFAULT_NORETURN.
7300
8dc292d3
TT
73012014-02-19 Tom Tromey <tromey@redhat.com>
7302
7303 * target-delegates.c: Rebuild.
7304 * target.c (target_disable_btrace): Unconditionally delegate.
7305 * target.h (struct target_ops) <to_disable_btrace>: Use
7306 TARGET_DEFAULT_NORETURN.
7307
58a5184e
TT
73082014-02-19 Tom Tromey <tromey@redhat.com>
7309
7310 * target-delegates.c: Rebuild.
7311 * target.c (default_search_memory): New function.
7312 (simple_search_memory): Update comment.
7313 (target_search_memory): Unconditionally delegate.
7314 * target.h (struct target_ops) <to_search_memory>: Use
7315 TARGET_DEFAULT_FUNC.
7316
8de71aab
TT
73172014-02-19 Tom Tromey <tromey@redhat.com>
7318
7319 * auxv.c (default_auxv_parse): No longer static.
7320 (target_auxv_parse): Unconditionally delegate.
7321 * auxv.h (default_auxv_parse): Declare.
7322 * target-delegates.c: Rebuild.
7323 * target.c: Include auxv.h.
7324 * target.h (struct target_ops) <to_auxv_parse>: Use
7325 TARGET_DEFAULT_FUNC.
7326
6b2c5a57
TT
73272014-02-19 Tom Tromey <tromey@redhat.com>
7328
7329 * target-delegates.c: Rebuild.
7330 * target.c (target_memory_map): Unconditionally delegate.
7331 * target.h (struct target_ops) <to_memory_map>: Use
7332 TARGET_DEFAULT_RETURN.
7333
cbffc065
TT
73342014-02-19 Tom Tromey <tromey@redhat.com>
7335
7336 * target-delegates.c: Rebuild.
7337 * target.c (target_thread_alive): Unconditionally delegate.
7338 * target.h (struct target_ops) <to_thread_alive>: Use
7339 TARGET_DEFAULT_RETURN.
7340
f09e2107
TT
73412014-02-19 Tom Tromey <tromey@redhat.com>
7342
7343 * target-delegates.c: Rebuild.
7344 * target.c (target_save_record): Unconditionally delegate.
7345 * target.h (struct target_ops) <to_save_record>: Use
7346 TARGET_DEFAULT_NORETURN.
7347
07366925
TT
73482014-02-19 Tom Tromey <tromey@redhat.com>
7349
7350 * target-delegates.c: Rebuild.
7351 * target.c (target_delete_record): Unconditionally delegate.
7352 * target.h (struct target_ops) <to_delete_record>: Use
7353 TARGET_DEFAULT_NORETURN.
7354
dd2e9d25
TT
73552014-02-19 Tom Tromey <tromey@redhat.com>
7356
7357 * target-delegates.c: Rebuild.
7358 * target.c (target_record_is_replaying): Unconditionally
7359 delegate.
7360 * target.h (struct target_ops) <to_record_is_replaying>: Use
7361 TARGET_DEFAULT_RETURN.
7362
671e76cc
TT
73632014-02-19 Tom Tromey <tromey@redhat.com>
7364
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_goto_record_begin): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_goto_record_begin>: Use
7368 TARGET_DEFAULT_NORETURN.
7369
e9179bb3
TT
73702014-02-19 Tom Tromey <tromey@redhat.com>
7371
7372 * target-delegates.c: Rebuild.
7373 * target.c (target_goto_record_end): Unconditionally delegate.
7374 * target.h (struct target_ops) <to_goto_record_end>: Use
7375 TARGET_DEFAULT_NORETURN.
7376
05969c84
TT
73772014-02-19 Tom Tromey <tromey@redhat.com>
7378
7379 * target-delegates.c: Rebuild.
7380 * target.c (target_goto_record): Unconditionally delegate.
7381 * target.h (struct target_ops) <to_goto_record>: Use
7382 TARGET_DEFAULT_NORETURN.
7383
3679abfa
TT
73842014-02-19 Tom Tromey <tromey@redhat.com>
7385
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_insn_history): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_insn_history>: Use
7389 TARGET_DEFAULT_NORETURN.
7390
8444ab58
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_insn_history_from): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_insn_history_from>: Use
7396 TARGET_DEFAULT_NORETURN.
7397
c29302cc
TT
73982014-02-19 Tom Tromey <tromey@redhat.com>
7399
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_insn_history_range): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_insn_history_range>: Use
7403 TARGET_DEFAULT_NORETURN.
7404
170049d4
TT
74052014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (target_call_history): Unconditionally delegate.
7409 * target.h (struct target_ops) <to_call_history>: Use
7410 TARGET_DEFAULT_NORETURN.
7411
16fc27d6
TT
74122014-02-19 Tom Tromey <tromey@redhat.com>
7413
7414 * target-delegates.c: Rebuild.
7415 * target.c (target_call_history_from): Unconditionally delegate.
7416 * target.h (struct target_ops) <to_call_history_from>: Use
7417 TARGET_DEFAULT_NORETURN.
7418
115d9817
TT
74192014-02-19 Tom Tromey <tromey@redhat.com>
7420
7421 * target-delegates.c: Rebuild.
7422 * target.c (target_call_history_range): Unconditionally delegate.
7423 * target.h (struct target_ops) <to_call_history_range>: Use
7424 TARGET_DEFAULT_NORETURN.
7425
eb276a6b
TT
74262014-02-19 Tom Tromey <tromey@redhat.com>
7427
7428 * target-delegates.c: Rebuild.
7429 * target.c (target_verify_memory): Unconditionally delegate.
7430 * target.h (struct target_ops) <to_verify_memory>: Use
7431 TARGET_DEFAULT_NORETURN.
7432
9e538d0d
TT
74332014-02-19 Tom Tromey <tromey@redhat.com>
7434
7435 * target-delegates.c: Rebuild.
7436 * target.c (target_core_of_thread): Unconditionally delegate.
7437 * target.h (struct target_ops) <to_core_of_thread>: Use
7438 TARGET_DEFAULT_RETURN.
7439
f6fb2925
TT
74402014-02-19 Tom Tromey <tromey@redhat.com>
7441
7442 * target-delegates.c: Rebuild.
7443 * target.c (target_flash_done): Unconditionally delegate.
7444 * target.h (struct target_ops) <to_flash_done>: Use
7445 TARGET_DEFAULT_NORETURN.
7446
e8a6c6ac
TT
74472014-02-19 Tom Tromey <tromey@redhat.com>
7448
7449 * target-delegates.c: Rebuild.
7450 * target.c (target_flash_erase): Unconditionally delegate.
7451 * target.h (struct target_ops) <to_flash_erase>: Use
7452 TARGET_DEFAULT_NORETURN.
7453
7e35c012
TT
74542014-02-19 Tom Tromey <tromey@redhat.com>
7455
7456 * target-delegates.c: Rebuild.
7457 * target.c (target_get_section_table): Unconditionally delegate.
7458 * target.h (struct target_ops) <to_get_section_table>: Use
7459 TARGET_DEFAULT_RETURN.
7460
770234d3
TT
74612014-02-19 Tom Tromey <tromey@redhat.com>
7462
7463 * target-delegates.c: Rebuild.
7464 * target.c (target_pid_to_str): Unconditionally delegate.
7465 (init_dummy_target): Don't initialize to_pid_to_str.
7466 (default_pid_to_str): Rename from dummy_pid_to_str.
7467 * target.h (struct target_ops) <to_pid_to_str>: Use
7468 TARGET_DEFAULT_FUNC.
7469
09b0dc2b
TT
74702014-02-19 Tom Tromey <tromey@redhat.com>
7471
7472 * target-delegates.c: Rebuild.
7473 * target.c (target_find_new_threads): Unconditionally delegate.
7474 * target.h (struct target_ops) <to_find_new_threads>: Use
7475 TARGET_DEFAULT_RETURN.
7476
7d4f8efa
TT
74772014-02-19 Tom Tromey <tromey@redhat.com>
7478
7479 * target-delegates.c: Rebuild.
7480 * target.c (target_program_signals): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_program_signals>: Use
7482 TARGET_DEFAULT_IGNORE.
7483
035cad7f
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_pass_signals): Unconditionally delegate.
7488 * target.h (struct target_ops) <to_pass_signals>: Use
7489 TARGET_DEFAULT_IGNORE.
7490
8d657035
TT
74912014-02-19 Tom Tromey <tromey@redhat.com>
7492
7493 * target-delegates.c: Rebuild.
7494 * target.c (default_mourn_inferior): New function.
7495 (target_mourn_inferior): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_mourn_inferior>: Use
7497 TARGET_DEFAULT_FUNC.
7498
098dba18
TT
74992014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * target-delegates.c: Rebuild.
7502 * target.c (default_follow_fork): New function.
7503 (target_follow_fork): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_follow_fork>: Use
7505 TARGET_DEFAULT_FUNC.
7506
423a4807
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_kill): Unconditionally delegate.
7511 * target.h (struct target_ops) <to_kill>: Use
7512 TARGET_DEFAULT_NORETURN.
7513
6c7e5e5c
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target-delegates.c: Rebuild.
7517 * target.c (target_masked_watch_num_registers): Unconditionally
7518 delegate.
7519 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7520 Use TARGET_DEFAULT_RETURN.
7521
8b1c364c
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (target_remove_mask_watchpoint): Unconditionally
7526 delegate.
7527 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7528 TARGET_DEFAULT_RETURN.
7529
cd4ae029
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target-delegates.c: Rebuild.
7533 * target.c (target_insert_mask_watchpoint): Unconditionally
7534 delegate.
7535 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7536 TARGET_DEFAULT_RETURN.
7537
a134316b
TT
75382014-02-19 Tom Tromey <tromey@redhat.com>
7539
7540 * target-delegates.c: Rebuild.
7541 * target.c (target_ranged_break_num_registers): Unconditionally
7542 delegate.
7543 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7544 Use TARGET_DEFAULT_RETURN.
7545
ad5989bd
TT
75462014-02-19 Tom Tromey <tromey@redhat.com>
7547
7548 * target-delegates.c: Rebuild.
7549 * target.c (target_fetch_registers): Unconditionally delegate.
7550 * target.h (struct target_ops) <to_fetch_registers>: Use
7551 TARGET_DEFAULT_NORETURN.
7552
46ee7e8d
TT
75532014-02-19 Tom Tromey <tromey@redhat.com>
7554
7555 * target-delegates.c: Rebuild.
7556 * target.c (update_current_target): Don't inherit or default
7557 to_stop.
7558 * target.h (struct target_ops) <to_stop>: Use
7559 TARGET_DEFAULT_IGNORE.
7560
843f59ed
TT
75612014-02-19 Tom Tromey <tromey@redhat.com>
7562
7563 * target-delegates.c: Rebuild.
7564 * target.c (update_current_target): Don't inherit or default
7565 to_can_run_breakpoint_commands.
7566 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7567 Use TARGET_DEFAULT_RETURN.
7568
ccfde2a0
TT
75692014-02-19 Tom Tromey <tromey@redhat.com>
7570
7571 * target-delegates.c: Rebuild.
7572 * target.c (update_current_target): Don't inherit or default
7573 to_supports_evaluation_of_breakpoint_conditions.
7574 * target.h (struct target_ops)
7575 <to_supports_evaluation_of_breakpoint_conditions>: Use
7576 TARGET_DEFAULT_RETURN.
7577
0de91722
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (update_current_target): Don't inherit or default
7582 to_augmented_libraries_svr4_read.
7583 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7584 Use TARGET_DEFAULT_RETURN.
7585
9a7d8b48
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (update_current_target): Don't inherit or default
7590 to_can_use_agent.
7591 * target.h (struct target_ops) <to_can_use_agent>: Use
7592 TARGET_DEFAULT_RETURN.
7593
d9db5b21
TT
75942014-02-19 Tom Tromey <tromey@redhat.com>
7595
7596 * target-delegates.c: Rebuild.
7597 * target.c (update_current_target): Don't inherit or default
7598 to_use_agent.
7599 * target.h (struct target_ops) <to_use_agent>: Use
7600 TARGET_DEFAULT_NORETURN.
7601
92155eeb
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * target-delegates.c: Rebuild.
7605 * target.c (update_current_target): Don't inherit or default
7606 to_traceframe_info.
7607 (return_null): Remove.
7608 * target.h (struct target_ops) <to_traceframe_info>: Use
7609 TARGET_DEFAULT_RETURN.
7610
d6522a22
TT
76112014-02-19 Tom Tromey <tromey@redhat.com>
7612
7613 * target-delegates.c: Rebuild.
7614 * target.c (update_current_target): Don't inherit or default
7615 to_static_tracepoint_markers_by_strid.
7616 * target.h (struct target_ops)
7617 <to_static_tracepoint_markers_by_strid>: Use
7618 TARGET_DEFAULT_NORETURN.
7619
4c3e4425
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_static_tracepoint_marker_at.
7625 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7626 Use TARGET_DEFAULT_RETURN.
7627
dcd6917f
TT
76282014-02-19 Tom Tromey <tromey@redhat.com>
7629
7630 * target-delegates.c: Rebuild.
7631 * target.c (update_current_target): Don't inherit or default
7632 to_set_permissions.
7633 * target.h (struct target_ops) <to_set_permissions>: Use
7634 TARGET_DEFAULT_IGNORE.
7635
22bcceee
TT
76362014-02-19 Tom Tromey <tromey@redhat.com>
7637
7638 * target-delegates.c: Rebuild.
7639 * target.c (update_current_target): Don't inherit or default
7640 to_get_tib_address.
7641 * target.h (struct target_ops) <to_get_tib_address>: Use
7642 TARGET_DEFAULT_NORETURN.
7643
8586ccaa
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * target-delegates.c: Rebuild.
7647 * target.c (update_current_target): Don't inherit or default
7648 to_set_trace_notes.
7649 * target.h (struct target_ops) <to_set_trace_notes>: Use
7650 TARGET_DEFAULT_RETURN.
7651
91df8d1d
TT
76522014-02-19 Tom Tromey <tromey@redhat.com>
7653
7654 * target-delegates.c: Rebuild.
7655 * target.c (update_current_target): Don't initialize
7656 to_set_trace_buffer_size.
7657 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7658 TARGET_DEFAULT_IGNORE.
7659
8d526939
TT
76602014-02-19 Tom Tromey <tromey@redhat.com>
7661
7662 * target-delegates.c: Rebuild.
7663 * target.c (update_current_target): Don't inherit or default
7664 to_set_circular_trace_buffer.
7665 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7666 TARGET_DEFAULT_IGNORE.
7667
0bcfeddf
TT
76682014-02-19 Tom Tromey <tromey@redhat.com>
7669
7670 * target-delegates.c: Rebuild.
7671 * target.c (update_current_target): Don't inherit or default
7672 to_set_disconnected_tracing.
7673 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7674 TARGET_DEFAULT_IGNORE.
7675
9249843f
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_get_min_fast_tracepoint_insn_len.
7681 (return_minus_one): Remove.
7682 * target.h (struct target_ops)
7683 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7684
ace92e7d
TT
76852014-02-19 Tom Tromey <tromey@redhat.com>
7686
7687 * target-delegates.c: Rebuild.
7688 * target.c (update_current_target): Don't inherit or default
7689 to_get_raw_trace_data.
7690 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7691 TARGET_DEFAULT_NORETURN.
7692
08120467
TT
76932014-02-19 Tom Tromey <tromey@redhat.com>
7694
7695 * target-delegates.c: Rebuild.
7696 * target.c (update_current_target): Don't inherit or default
7697 to_upload_trace_state_variables.
7698 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7699 Use TARGET_DEFAULT_RETURN.
7700
1e949b00
TT
77012014-02-19 Tom Tromey <tromey@redhat.com>
7702
7703 * target-delegates.c: Rebuild.
7704 * target.c (update_current_target): Don't inherit or default
7705 to_upload_tracepoints.
7706 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7707 TARGET_DEFAULT_RETURN.
7708
a2e6c147
TT
77092014-02-19 Tom Tromey <tromey@redhat.com>
7710
7711 * target-delegates.c: Rebuild.
7712 * target.c (update_current_target): Don't inherit or default
7713 to_save_trace_data.
7714 * target.h (struct target_ops) <to_save_trace_data>: Use
7715 TARGET_DEFAULT_NORETURN.
7716
959bcd0b
TT
77172014-02-19 Tom Tromey <tromey@redhat.com>
7718
7719 * target-delegates.c: Rebuild.
7720 * target.c (update_current_target): Don't inherit or default
7721 to_get_trace_state_variable_value.
7722 * target.h (struct target_ops)
7723 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7724
afc94e66
TT
77252014-02-19 Tom Tromey <tromey@redhat.com>
7726
7727 * target-delegates.c: Rebuild.
7728 * target.c (update_current_target): Don't inherit or default
7729 to_trace_find.
7730 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7731
e51c07ea
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_trace_stop.
7737 * target.h (struct target_ops) <to_trace_stop>: Use
7738 TARGET_DEFAULT_NORETURN.
7739
6fea14cd
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_get_tracepoint_status.
7745 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7746 TARGET_DEFAULT_NORETURN.
7747
4072d4ff
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_get_trace_status.
7753 * target.h (struct target_ops) <to_get_trace_status>: Use
7754 TARGET_DEFAULT_RETURN.
7755
25da2e80
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_start.
7761 * target.h (struct target_ops) <to_trace_start>: Use
7762 TARGET_DEFAULT_NORETURN.
7763
86dd181d
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_trace_set_readonly_regions.
7769 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7770 Use TARGET_DEFAULT_NORETURN.
7771
05c41993
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_disable_tracepoint.
7777 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7778 TARGET_DEFAULT_NORETURN.
7779
151f70f1
TT
77802014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target-delegates.c: Rebuild.
7783 * target.c (update_current_target): Don't inherit or default
7784 to_enable_tracepoint.
7785 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7786 TARGET_DEFAULT_NORETURN.
7787
94eb98b9
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target-delegates.c: Rebuild.
7791 * target.c (update_current_target): Don't inherit or default
7792 to_download_trace_state_variable.
7793 * target.h (struct target_ops) <to_download_trace_state_variable>:
7794 Use TARGET_DEFAULT_NORETURN.
7795
719acc4a
TT
77962014-02-19 Tom Tromey <tromey@redhat.com>
7797
7798 * target-delegates.c: Rebuild.
7799 * target.c (update_current_target): Don't inherit or default
7800 to_can_download_tracepoint.
7801 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7802 TARGET_DEFAULT_RETURN.
7803
9a980a22
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (update_current_target): Don't inherit or default
7808 to_download_tracepoint.
7809 * target.h (struct target_ops) <to_download_tracepoint>: Use
7810 TARGET_DEFAULT_NORETURN.
7811
5536135b
TT
78122014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target-delegates.c: Rebuild.
7815 * target.c (update_current_target): Don't inherit or default
7816 to_trace_init.
7817 * target.h (struct target_ops) <to_trace_init>: Use
7818 TARGET_DEFAULT_RETURN.
7819
9409d39e
TT
78202014-02-19 Tom Tromey <tromey@redhat.com>
7821
7822 * target-delegates.c: Rebuild.
7823 * target.c (update_current_target): Don't inherit or default
7824 to_supports_string_tracing.
7825 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7826 TARGET_DEFAULT_RETURN.
7827
aab1b22d
TT
78282014-02-19 Tom Tromey <tromey@redhat.com>
7829
7830 * target-delegates.c: Rebuild.
7831 * target.c (update_current_target): Don't inherit or default
7832 to_supports_enable_disable_tracepoint.
7833 * target.h (struct target_ops)
7834 <to_supports_enable_disable_tracepoint>: Use
7835 TARGET_DEFAULT_RETURN.
7836
a7304748
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (update_current_target): Don't inherit or default
7841 to_supports_multi_process.
7842 * target.h (struct target_ops) <to_supports_multi_process>: Use
7843 TARGET_DEFAULT_RETURN.
7844
4229b31d
TT
78452014-02-19 Tom Tromey <tromey@redhat.com>
7846
7847 * target-delegates.c: Rebuild.
7848 * target.c (update_current_target): Don't inherit or default
7849 to_get_ada_task_ptid.
7850 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7851 TARGET_DEFAULT_FUNC.
7852
43eba180
TT
78532014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.c (update_current_target): Don't inherit or default
7857 to_thread_architecture.
7858 * target.h (struct target_ops) <to_thread_architecture>: Use
7859 TARGET_DEFAULT_FUNC.
7860
fe31bf5b
TT
78612014-02-19 Tom Tromey <tromey@redhat.com>
7862
7863 * target-delegates.c: Rebuild.
7864 * target.c (update_current_target): Don't inherit or default
7865 to_execution_direction.
7866 * target.h (struct target_ops) <to_execution_direction>: Use
7867 TARGET_DEFAULT_FUNC.
7868
53e1cfc7
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_can_execute_reverse.
7874 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7875 TARGET_DEFAULT_RETURN.
7876 (target_can_execute_reverse): Unconditionally delegate.
7877
9bb9d61d
TT
78782014-02-19 Tom Tromey <tromey@redhat.com>
7879
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7882 to_goto_bookmark.
7883 (dummy_goto_bookmark): Remove.
7884 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7885 * target.h (struct target_ops) <to_goto_bookmark>: Use
7886 TARGET_DEFAULT_NORETURN.
7887
3dbafbbb
TT
78882014-02-19 Tom Tromey <tromey@redhat.com>
7889
7890 * target-delegates.c: Rebuild.
7891 * target.c (update_current_target): Don't inherit or default
7892 to_get_bookmark.
7893 (dummy_get_bookmark): Remove.
7894 (init_dummy_target): Don't inherit or default to_get_bookmark.
7895 * target.h (struct target_ops) <to_get_bookmark>: Use
7896 TARGET_DEFAULT_NORETURN
7897
16f796b1
TT
78982014-02-19 Tom Tromey <tromey@redhat.com>
7899
7900 * target-delegates.c: Rebuild.
7901 * target.c (update_current_target): Don't inherit or default
7902 to_make_corefile_notes.
7903 (init_dummy_target): Don't initialize to_make_corefile_notes.
7904 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7905 TARGET_DEFAULT_FUNC.
7906
0b5a2719
TT
79072014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_find_memory_regions.
7912 (init_dummy_target): Don't initialize to_find_memory_regions.
7913 * target.h (struct target_ops) <to_find_memory_regions>: Use
7914 TARGET_DEFAULT_FUNC.
7915
d9cb0195
TT
79162014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7920 to_log_command.
7921 * target.h (struct target_ops) <to_log_command>: Use
7922 TARGET_DEFAULT_IGNORE.
7923 (target_log_command): Unconditionally delegate.
7924
830ca330
TT
79252014-02-19 Tom Tromey <tromey@redhat.com>
7926
7927 * target-delegates.c: Rebuild.
7928 * target.c (update_current_target): Don't inherit or default
7929 to_pid_to_exec_file.
7930 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7931 TARGET_DEFAULT_RETURN.
7932
825828fc
TT
79332014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target-delegates.c: Rebuild.
7936 * target.c (update_current_target): Don't inherit or default
7937 to_thread_name.
7938 (target_thread_name): Unconditionally delegate.
7939 * target.h (struct target_ops) <to_thread_name>: Use
7940 TARGET_DEFAULT_RETURN.
7941
4a7e6dda
TT
79422014-02-19 Tom Tromey <tromey@redhat.com>
7943
7944 * target-delegates.c: Rebuild.
7945 * target.c (update_current_target): Don't inherit or default
7946 to_extra_thread_info.
7947 * target.h (struct target_ops) <to_extra_thread_info>: Use
7948 TARGET_DEFAULT_RETURN.
7949
0db88c1d
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target-delegates.c: Rebuild.
7953 * target.c (update_current_target): Don't inherit or default
7954 to_has_exited.
7955 * target.h (struct target_ops) <to_has_exited>: Use
7956 TARGET_DEFAULT_RETURN..
7957
6a9fa051
TT
79582014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target-delegates.c: Rebuild.
7961 * target.c (update_current_target): Don't inherit or default
7962 to_set_syscall_catchpoint.
7963 (return_one): Remove.
7964 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7965 TARGET_DEFAULT_RETURN.
7966
62f64d7a
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_insert_exec_catchpoint.
7972 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7973 TARGET_DEFAULT_RETURN.
7974
cda0f38c
TT
79752014-01-08 Tom Tromey <tromey@redhat.com>
7976
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_insert_exec_catchpoint.
7980 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7981 TARGET_DEFAULT_RETURN.
7982
95c3375e
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_remove_vfork_catchpoint.
7988 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7989 TARGET_DEFAULT_RETURN.
7990
7e18a8dc
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_insert_vfork_catchpoint.
7996 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7997 TARGET_DEFAULT_RETURN.
7998
e1a21fb7
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_remove_fork_catchpoint.
8004 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8005 TARGET_DEFAULT_RETURN.
8006
5958ebeb
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_insert_fork_catchpoint.
8012 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8013 TARGET_DEFAULT_RETURN.
8014
340ba4bf
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_post_startup_inferior.
8020 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8021 TARGET_DEFAULT_IGNORE.
8022
7634da87
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_load.
8028 * target.h (struct target_ops) <to_load>: Use
8029 TARGET_DEFAULT_NORETURN.
8030
e19e919f
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_terminal_info.
8036 * target.h (struct target_ops) <to_terminal_info>: Use
8037 TARGET_DEFAULT_FUNC.
8038
c6ea8f79
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_terminal_save_ours.
8044 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8045 TARGET_DEFAULT_IGNORE.
8046
e4a733f1
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_terminal_ours.
8052 * target.h (struct target_ops) <to_terminal_ours>: Use
8053 TARGET_DEFAULT_IGNORE.
8054
74fcbef9
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_terminal_ours_for_output.
8060 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8061 TARGET_DEFAULT_IGNORE.
8062
ddeaacc9
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_terminal_inferior.
8068 * target.h (struct target_ops) <to_terminal_inferior>: Use
8069 TARGET_DEFAULT_IGNORE.
8070
0343661d
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_terminal_init.
8076 * target.h (struct target_ops) <to_terminal_init>: Use
8077 TARGET_DEFAULT_IGNORE.
8078
77cdffe9
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_accel_watchpoint_condition.
8084 * target.h (struct target_ops)
8085 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8086
d03655e4
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_region_ok_for_hw_watchpoint.
8092 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8093 Use TARGET_DEFAULT_FUNC.
8094
65f160a9
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_watchpoint_addr_within_range.
8100 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8101 Use TARGET_DEFAULT_FUNC.
8102
61dd109f
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_remove_watchpoint.
8108 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8109 TARGET_DEFAULT_NORETURN.
8110
016facd4
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_insert_watchpoint.
8116 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8117 TARGET_DEFAULT_RETURN.
8118
418dabac
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_remove_hw_breakpoint.
8124 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8125 TARGET_DEFAULT_RETURN.
8126
61b371f9
TT
81272014-02-19 Tom Tromey <tromey@redhat.com>
8128
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8131 to_insert_hw_breakpoint.
8132 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8133 TARGET_DEFAULT_RETURN.
8134
52b51d06
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_can_use_hw_breakpoint.
8140 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8141 TARGET_DEFAULT_RETURN.
8142
f86e59b2
TT
81432014-02-19 Tom Tromey <tromey@redhat.com>
8144
8145 * target-delegates.c: Rebuild.
8146 * target.c (update_current_target): Don't inherit or default
8147 to_files_info.
8148 * target.h (struct target_ops) <to_files_info>: Use
8149 TARGET_DEFAULT_IGNORE.
8150
6c628163
TT
81512014-02-19 Tom Tromey <tromey@redhat.com>
8152
8153 * target-delegates.c: Rebuild.
8154 * target.c (update_current_target): Don't inherit or default
8155 to_store.
8156 * target.h (struct target_ops) <to_store>: Use
8157 TARGET_DEFAULT_NORETURN.
8158
bebd3233
TT
81592014-02-19 Tom Tromey <tromey@redhat.com>
8160
8161 * target-delegates.c: Rebuild.
8162 * target.c (update_current_target): Don't inherit or default
8163 to_post_attach.
8164 * target.h (struct target_ops) <to_post_attach>: Use
8165 TARGET_DEFAULT_IGNORE.
8166
a53f3625
TT
81672014-02-19 Tom Tromey <tromey@redhat.com>
8168
8169 * target-delegates.c: Rebuild.
8170 * target.c (update_current_target): Don't inherit or default
8171 to_rcmd.
8172 (default_rcmd): New function.
8173 (do_monitor_command): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_rmcd>: Use
8175 TARGET_DEFAULT_FUNC.
8176
e9a29200
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (init_dummy_target): Don't initialize to_attach.
8181 (target_attach): Unconditionally delegate.
8182 * target.h (struct target_ops) <to_attach>: Use
8183 TARGET_DEFAULT_FUNC.
8184
09da0d0a
TT
81852014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_detach): Unconditionally delegate.
8189 (init_dummy_target): Don't initialize to_detach.
8190 * target.h (struct target_ops) <to_detach>: Use
8191 TARGET_DEFAULT_IGNORE.
8192
5436ff03
TT
81932014-02-19 Tom Tromey <tromey@redhat.com>
8194
8195 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8196 Add argument.
8197 (target_augmented_libraries_svr4_read): Add argument.
8198 * target.c (update_current_target): Update.
8199 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8200 argument.
8201
f0d960ea
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target.h (struct target_ops) <to_call_history_range>: Add
8205 argument.
8206 * target.c (target_call_history_range): Add argument.
8207 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8208 argument.
8209 (record_btrace_call_history_from): Update.
8210
ec0aea04
TT
82112014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target.h (struct target_ops) <to_call_history_from>: Add
8214 argument.
8215 * target.c (target_call_history_from): Add argument.
8216 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8217 argument.
8218
5df2fcba
TT
82192014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target.h (struct target_ops) <to_call_history>: Add argument.
8222 * target.c (target_call_history): Add argument.
8223 * record-btrace.c (record_btrace_call_history): Add 'self'
8224 argument.
8225
4e99c6b7
TT
82262014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target.h (struct target_ops) <to_insn_history_range>: Add
8229 argument.
8230 * target.c (target_insn_history_range): Add argument.
8231 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8232 argument.
8233 (record_btrace_insn_history_from): Update.
8234
9abc3ff3
TT
82352014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target.h (struct target_ops) <to_insn_history_from>: Add
8238 argument.
8239 * target.c (target_insn_history_from): Add argument.
8240 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8241 argument.
8242
7a6c5609
TT
82432014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target.h (struct target_ops) <to_insn_history>: Add argument.
8246 * target.c (target_insn_history): Add argument.
8247 * record-btrace.c (record_btrace_insn_history): Add 'self'
8248 argument.
8249
606183ac
TT
82502014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target.h (struct target_ops) <to_goto_record>: Add argument.
8253 * target.c (target_goto_record): Add argument.
8254 * record-full.c (record_full_goto): Add 'self' argument.
8255 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8256
307a1b91
TT
82572014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8260 * target.c (target_goto_record_end): Add argument.
8261 * record-full.c (record_full_goto_end): Add 'self' argument.
8262 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8263
08475817
TT
82642014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target.h (struct target_ops) <to_goto_record_begin>: Add
8267 argument.
8268 * target.c (target_goto_record_begin): Add argument.
8269 * record-full.c (record_full_goto_begin): Add 'self' argument.
8270 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8271 argument.
8272
1c63c994
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target.h (struct target_ops) <to_record_is_replaying>: Add
8276 argument.
8277 * target.c (target_record_is_replaying): Add argument.
8278 * record-full.c (record_full_is_replaying): Add 'self' argument.
8279 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8280 argument.
8281 (record_btrace_xfer_partial, record_btrace_store_registers)
8282 (record_btrace_prepare_to_store, record_btrace_resume)
8283 (record_btrace_wait, record_btrace_decr_pc_after_break)
8284 (record_btrace_find_new_threads, record_btrace_thread_alive):
8285 Update.
8286
d1b55219
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target.h (struct target_ops) <to_delete_record>: Add argument.
8290 * target.c (target_delete_record): Add argument.
8291 * record-full.c (record_full_delete): Add 'self' argument.
8292
1390f529
TT
82932014-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * target.h (struct target_ops) <to_save_record>: Add argument.
8296 * target.c (target_save_record): Add argument.
8297 * record-full.c (record_full_save): Add 'self' argument.
8298 (record_full_save): Add 'self' argument.
8299
630d6a4a
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target.h (struct target_ops) <to_info_record>: Add argument.
8303 * target.c (target_info_record): Add argument.
8304 * record.c (info_record_command): Add argument.
8305 * record-full.c (record_full_info): Add 'self' argument.
8306 * record-btrace.c (record_btrace_info): Add 'self' argument.
8307
c6cd7c02
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8311 * target.c (target_stop_recording): Add argument.
8312 * record.c (record_stop): Add argument.
8313 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8314 argument.
8315
39c49f83
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8319 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8320 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8321 argument.
8322 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8323 (_initialize_amd64_linux_nat): Use it.
8324 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8325 (_initialize_i386_linux_nat): Use it.
8326
1777056d
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8330 * target.c (target_teardown_btrace): Add argument.
8331 * remote.c (remote_teardown_btrace): Add 'self' argument.
8332 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8333 argument.
8334 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8335 argument.
8336
25e95349
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8340 * target.c (target_disable_btrace): Add argument.
8341 * remote.c (remote_disable_btrace): Add 'self' argument.
8342 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8343 argument.
8344 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8345 argument.
8346
e3c49f88
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8350 * target.c (target_enable_btrace): Add argument.
8351 * remote.c (remote_enable_btrace): Add 'self' argument.
8352 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8353 argument.
8354 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8355 argument.
8356
fe38f897
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8360 (target_can_use_agent): Add argument.
8361 * target.c (update_current_target): Update.
8362 * remote.c (remote_can_use_agent): Add 'self' argument.
8363 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8364
2c152180
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target.h (struct target_ops) <to_use_agent>: Add argument.
8368 (target_use_agent): Add argument.
8369 * target.c (update_current_target): Update.
8370 * remote.c (remote_use_agent): Add 'self' argument.
8371 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8372
a893e81f
TT
83732014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8376 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8377 (target_traceframe_info): Add argument.
8378 * target.c (update_current_target): Update.
8379 * remote.c (remote_traceframe_info): Add 'self' argument.
8380 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8381
c686c57f
TT
83822014-02-19 Tom Tromey <tromey@redhat.com>
8383
8384 * target.h (target_static_tracepoint_markers_by_strid): Add
8385 argument.
8386 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8387 'self' argument.
8388 * target.c (update_current_target): Update.
8389 * remote.c (struct target_ops)
8390 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8391 * linux-nat.c (struct target_ops)
8392 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8393
61fc905d
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8397 Add argument.
8398 (target_static_tracepoint_marker_at): Add argument.
8399 * target.c (update_current_target): Update.
8400 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8401 argument.
8402
c378d69d
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8406 (target_set_permissions): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_set_permissions): Add 'self' argument.
8409 (remote_start_remote): Update.
8410
bd7ae0f5
TT
84112014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8414 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8415 (target_get_tib_address): Add argument.
8416 * target.c (update_current_target): Update.
8417 * remote.c (remote_get_tib_address): Add 'self' argument.
8418
d9e68a2c
TT
84192014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8422 (target_set_trace_notes): Add argument.
8423 * target.c (update_current_target): Update.
8424 * remote.c (remote_set_trace_notes): Add 'self' argument.
8425
4da384be
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8429 argument.
8430 (target_set_trace_buffer_size): Add argument.
8431 * target.c (update_current_target): Update.
8432 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8433
736d5b1f
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8437 argument.
8438 (target_set_circular_trace_buffer): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8441 argument.
8442
37b25738
TT
84432014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8446 argument.
8447 (target_set_disconnected_tracing): Add argument.
8448 * target.c (update_current_target): Update.
8449 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8450
0e67620a
TT
84512014-02-19 Tom Tromey <tromey@redhat.com>
8452
8453 * target.h (struct target_ops)
8454 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8455 (target_get_min_fast_tracepoint_insn_len): Add argument.
8456 * target.c (update_current_target): Update.
8457 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8458 argument.
8459
88ee6f45
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8463 argument.
8464 (target_get_raw_trace_data): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8467
181e3713
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8471 Add argument.
8472 (target_upload_trace_state_variables): Add argument.
8473 * target.c (update_current_target): Update.
8474 * remote.c (remote_upload_trace_state_variables): Add 'self'
8475 argument.
8476 (remote_start_remote): Update.
8477
ab6617cc
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8481 argument.
8482 (target_upload_tracepoints): Add argument.
8483 * target.c (update_current_target): Update.
8484 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8485 (remote_start_remote): Update.
8486
dc3decaf
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8490 (target_save_trace_data): Add argument.
8491 * target.c (update_current_target): Update.
8492 * remote.c (remote_save_trace_data): Add 'self' argument.
8493
4011015b
TT
84942014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8497 argument.
8498 * target.h (struct target_ops)
8499 <to_get_trace_state_variable_value>: Add argument.
8500 (target_get_trace_state_variable_value): Add argument.
8501 * target.c (update_current_target): Update.
8502 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8503 argument.
8504 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8505
bd4c6793
TT
85062014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8509 * target.h (struct target_ops) <to_trace_find>: Add argument.
8510 (target_trace_find): Add argument.
8511 * target.c (update_current_target): Update.
8512 * remote.c (remote_trace_find): Add 'self' argument.
8513 * ctf.c (ctf_trace_find): Add 'self' argument.
8514
74499f1b
TT
85152014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8518 (target_trace_stop): Add argument.
8519 * target.c (update_current_target): Update.
8520 * remote.c (remote_trace_stop): Add 'self' argument.
8521
db90e85c
TT
85222014-02-19 Tom Tromey <tromey@redhat.com>
8523
8524 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8525 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8526 argument.
8527 (target_get_tracepoint_status): Add argument.
8528 * target.c (update_current_target): Update.
8529 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8530
8bd200f1
TT
85312014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8534 * target.h (struct target_ops) <to_get_trace_status>: Add
8535 argument.
8536 (target_get_trace_status): Add argument.
8537 * target.c (update_current_target): Update.
8538 * remote.c (remote_get_trace_status): Add 'self' argument.
8539 (remote_start_remote, remote_can_download_tracepoint): Update.
8540 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8541
e2d1aae3
TT
85422014-02-19 Tom Tromey <tromey@redhat.com>
8543
8544 * target.h (struct target_ops) <to_trace_start>: Add argument.
8545 (target_trace_start): Add argument.
8546 * target.c (update_current_target): Update.
8547 * remote.c (remote_trace_start): Add 'self' argument.
8548
583f9a86
TT
85492014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8552 Add argument.
8553 (target_trace_set_readonly_regions): Add argument.
8554 * target.c (update_current_target): Update.
8555 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8556 argument.
8557
780b049c
TT
85582014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8561 argument.
8562 (target_disable_tracepoint): Add argument.
8563 * target.c (update_current_target): Update.
8564 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8565
46670d57
TT
85662014-02-19 Tom Tromey <tromey@redhat.com>
8567
8568 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8569 argument.
8570 (target_enable_tracepoint): Add argument.
8571 * target.c (update_current_target): Update.
8572 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8573
559d2b81
TT
85742014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target.h (struct target_ops) <to_download_trace_state_variable>:
8577 Add argument.
8578 (target_download_trace_state_variable): Add argument.
8579 * target.c (update_current_target): Update.
8580 * remote.c (remote_download_trace_state_variable): Add 'self'
8581 argument.
8582
a52a8357
TT
85832014-02-19 Tom Tromey <tromey@redhat.com>
8584
8585 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8586 argument.
8587 (target_can_download_tracepoint): Add argument.
8588 * target.c (update_current_target): Update.
8589 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8590
548f7808
TT
85912014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target.h (struct target_ops) <to_download_tracepoint>: Add
8594 argument.
8595 (target_download_tracepoint): Add argument.
8596 * target.c (update_current_target): Update.
8597 * remote.c (remote_download_tracepoint): Add 'self' argument.
8598
ecae04e1
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * target.h (struct target_ops) <to_trace_init>: Add argument.
8602 (target_trace_init): Add argument.
8603 * target.c (update_current_target): Update.
8604 * remote.c (remote_trace_init): Add 'self' argument.
8605
fab5aa7c
TT
86062014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8609 * target.c (target_fileio_readlink): Add argument.
8610 * remote.c (remote_hostio_readlink): Add 'self' argument.
8611 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8612
dbbca37d
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8616 * target.c (target_fileio_unlink): Add argument.
8617 * remote.c (remote_hostio_unlink): Add 'self' argument.
8618 (remote_file_delete): Update.
8619 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8620
df39ea25
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8624 * target.c (target_fileio_close): Add argument.
8625 * remote.c (remote_hostio_close): Add 'self' argument.
8626 (remote_hostio_close_cleanup): Update.
8627 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8628 Update.
8629 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8630
a3be983c
TT
86312014-02-19 Tom Tromey <tromey@redhat.com>
8632
8633 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8634 * target.c (target_fileio_pread): Add argument.
8635 * remote.c (remote_hostio_pread): Add 'self' argument.
8636 (remote_bfd_iovec_pread, remote_file_get): Update.
8637 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8638
0d866f62
TT
86392014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8642 * target.c (target_fileio_pwrite): Add argument.
8643 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8644 (remote_file_put): Update.
8645 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8646
cd897586
TT
86472014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8650 * target.c (target_fileio_open): Add argument.
8651 * remote.c (remote_hostio_open): Add 'self' argument.
8652 (remote_bfd_iovec_open): Add 'self' argument.
8653 (remote_file_put): Add 'self' argument.
8654 (remote_file_get): Add 'self' argument.
8655 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8656
78eff0ec
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8660 Add argument.
8661 (target_can_run_breakpoint_commands): Add argument.
8662 * target.c (update_current_target): Update.
8663 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8664 argument.
8665 (remote_insert_breakpoint): Add 'self' argument.
8666 (remote_insert_hw_breakpoint): Add 'self' argument.
8667 (remote_can_run_breakpoint_commands): Add 'self' argument.
8668
efcc2da7
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target.h (struct target_ops)
8672 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8673 (target_supports_evaluation_of_breakpoint_conditions): Add
8674 argument.
8675 * target.c (update_current_target): Update.
8676 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8677 argument.
8678 (remote_insert_breakpoint): Add 'self' argument.
8679 (remote_insert_hw_breakpoint): Add 'self' argument.
8680 (remote_supports_cond_breakpoints): Add 'self' argument.
8681
6de37a3a
TT
86822014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8685 argument.
8686 (target_supports_string_tracing): Add argument.
8687 * target.c (update_current_target): Update.
8688 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8689
2bfc0540
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops)
8693 <to_supports_disable_randomization>: Add argument.
8694 * target.c (find_default_supports_disable_randomization): Add
8695 argument.
8696 (target_supports_disable_randomization): Add argument.
8697 (find_default_supports_disable_randomization): Add 'self'
8698 argument.
8699 * remote.c (extended_remote_supports_disable_randomization): Add
8700 'self' argument.
8701 (remote_supports_disable_randomization): Add 'self' argument.
8702 (extended_remote_create_inferior): Update.
8703 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8704 'self' argument.
8705
7d178d6a
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target.h (struct target_ops)
8709 <to_supports_enable_disable_tracepoint>: Add argument.
8710 (target_supports_enable_disable_tracepoint): Add argument.
8711 * target.c (update_current_target): Update.
8712 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8713 argument.
8714
86ce2668
TT
87152014-02-19 Tom Tromey <tromey@redhat.com>
8716
8717 * target.h (struct target_ops) <to_supports_multi_process>: Add
8718 argument.
8719 (target_supports_multi_process): Add argument.
8720 * target.c (update_current_target): Update.
8721 * remote.c (remote_supports_multi_process): Add 'self' argument.
8722 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8723 argument.
8724 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8725 argument.
8726
4c612759
TT
87272014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target.h (struct target_ops) <to_execution_direction>: Add
8730 argument.
8731 (target_execution_direction): Add argument.
8732 * target.c (default_execution_direction): Add 'self' argument.
8733 * record-full.c (record_full_execution_direction): Add 'self'
8734 argument.
8735
19db3e69
TT
87362014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8739 argument.
8740 (target_can_execute_reverse): Add argument.
8741 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8742 * record-full.c (record_full_can_execute_reverse): Add 'self'
8743 argument.
8744 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8745 argument.
8746
1e6b91a4
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8750 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8751 argument.
8752 (target_get_ada_task_ptid): Add argument.
8753 * target.c (update_current_target): Update.
8754 (default_get_ada_task_ptid): Add 'self' argument.
8755 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8756 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8757 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8758 argument.
8759 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8760 argument.
8761 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8762 argument.
8763 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8764 argument.
8765 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8766 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8767 argument.
8768
3c80fb48
TT
87692014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8772 (target_goto_bookmark): Add argument.
8773 * target.c (dummy_goto_bookmark): Add 'self' argument.
8774 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8775
dd0e2830
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8779 (target_get_bookmark): Add argument.
8780 * target.c (dummy_get_bookmark): Add 'self' argument.
8781 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8782
fc6691b2
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8786 argument.
8787 (target_make_corefile_notes): Add argument.
8788 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8789 * procfs.c (procfs_make_note_section): Add 'self' argument.
8790 (procfs_make_note_section): Add 'self' argument.
8791 (procfs_make_note_section): Add 'self' argument.
8792 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8793 argument.
8794 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8795 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8796 * exec.c (exec_make_note_section): Add 'self' argument.
8797 (exec_make_note_section): Add 'self' argument.
8798
2e73927c
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target.h (struct target_ops) <to_find_memory_regions>: Add
8802 argument.
8803 (target_find_memory_regions): Add argument.
8804 * target.c (dummy_find_memory_regions): Add 'self' argument.
8805 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8806 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8807 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8808 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8809 * exec. (exec_do_find_memory_regions): New global.
8810 (exec_set_find_memory_regions): Rewrite.
8811 (exec_find_memory_regions): New function.
8812 (init_exec_ops): Use exec_find_memory_regions.
8813
2a9a2795
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops) <to_supports_non_stop>: Add
8817 argument.
8818 * target.c (find_default_supports_non_stop): Add argument.
8819 (target_supports_non_stop): Add argument.
8820 (find_default_supports_non_stop): Add 'self' argument.
8821 * remote.c (remote_supports_non_stop): Add 'self' argument.
8822 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8823
4ab76ea3
TT
88242014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target.h (struct target_ops) <to_log_command>: Add argument.
8827 (target_log_command): Add argument.
8828 * serial.h (serial_log_command): Add 'self' argument.
8829 * serial.c (serial_log_command): Add 'self' argument.
8830
8dd27370
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8834 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8835 argument.
8836 (target_pid_to_exec_file): Add argument.
8837 * target.c (debug_to_pid_to_exec_file): Add argument.
8838 (update_current_target): Update.
8839 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8840 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8841 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8842 (linux_handle_extended_wait): Update.
8843 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8844 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8845 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8846 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8847
1aac633b
TT
88482014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target.h (struct target_ops) <to_rcmd>: Add argument.
8851 (target_rcmd): Add argument.
8852 * target.c (debug_to_rcmd): Add argument.
8853 (update_current_target, do_monitor_command): Update.
8854 * remote.c (remote_rcmd): Add 'self' argument.
8855 * monitor.c (monitor_rcmd): Add 'self' argument.
8856
1eab8a48
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * windows-nat.c (windows_stop): Add 'self' argument.
8860 * target.h (struct target_ops) <to_stop>: Add argument.
8861 * target.c (target_stop): Add argument.
8862 (debug_to_stop): Add argument.
8863 (update_current_target): Update.
8864 * remote.c (remote_stop): Add 'self' argument.
8865 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8866 (gdbsim_cntrl_c): Update.
8867 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8868 * procfs.c (procfs_stop): Add 'self' argument.
8869 * nto-procfs.c (procfs_stop): Add 'self' argument.
8870 * monitor.c (monitor_stop): Add 'self' argument.
8871 (monitor_open): Update.
8872 * linux-nat.c (linux_nat_stop): Add argument.
8873 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8874 * gnu-nat.c (gnu_stop): Add 'self' argument.
8875 * darwin-nat.c (darwin_stop): Add 'self' argument.
8876
503a628d
TT
88772014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * target.h (struct target_ops) <to_thread_name>: Add argument.
8880 * target.c (target_thread_name): Add argument.
8881 (update_current_target): Update.
8882 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8883
c15906d8
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target.h (struct target_ops) <to_extra_thread_info>: Add
8887 argument.
8888 (target_extra_thread_info): Add argument.
8889 * target.c (update_current_target): Update.
8890 * remote.c (remote_threads_extra_info): Add 'self' argument.
8891 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8892 argument.
8893 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8894 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8895 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8896 argument.
8897 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8898 argument.
8899 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8900 argument.
8901 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8902 argument.
8903
daf5e9b6
TT
89042014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target.h (struct target_ops) <to_program_signals>: Add argument.
8907 * target.c (target_program_signals): Add argument.
8908 * remote.c (remote_program_signals): Add 'self' argument.
8909
94bedb42
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8913 * target.c (target_pass_signals): Add argument.
8914 * remote.c (remote_pass_signals): Add 'self' argument.
8915 (remote_start_remote): Update.
8916 * procfs.c (procfs_pass_signals): Add 'self' argument.
8917 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8918 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8919 (linux_nat_create_inferior, linux_nat_attach): Update.
8920
da82bd6b
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * windows-nat.c (windows_can_run): Add 'self' argument.
8924 * target.h (struct target_ops) <to_can_run>: Add argument.
8925 (target_can_run): Add argument.
8926 * target.c (debug_to_can_run): Add argument.
8927 (update_current_target): Update.
8928 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8929 * inf-child.c (inf_child_can_run): Add 'self' argument.
8930 * go32-nat.c (go32_can_run): Add 'self' argument.
8931
d796e1d6
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target.h (struct target_ops) <to_has_exited>: Add argument.
8935 (target_has_exited): Add argument.
8936 * target.c (debug_to_has_exited): Add argument.
8937 (update_current_target): Update.
8938
ff214e67
TT
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8942 argument.
8943 (target_set_syscall_catchpoint): Add argument.
8944 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8945 argument.
8946 * target.c (update_current_target): Update.
8947
758e29d2
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8951 argument.
8952 (target_remove_exec_catchpoint): Add argument.
8953 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8954 (update_current_target): Update.
8955 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8956 argument.
8957
ba025e51
TT
89582014-02-19 Tom Tromey <tromey@redhat.com>
8959
8960 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8961 argument.
8962 (target_insert_exec_catchpoint): Add argument.
8963 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8964 (update_current_target): Update.
8965 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8966 argument.
8967
e98cf0cd
TT
89682014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8971 argument.
8972 (target_remove_vfork_catchpoint): Add argument.
8973 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8974 (update_current_target): Update.
8975 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8976 argument.
8977
3ecc7da0
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8981 argument.
8982 (target_insert_vfork_catchpoint): Add argument.
8983 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8984 (update_current_target): Update.
8985 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8986 argument.
8987
973fc227
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8991 argument.
8992 (target_remove_fork_catchpoint): Add argument.
8993 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8994 (update_current_target): Update.
8995 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8996 argument.
8997
a863b201
TT
89982014-02-19 Tom Tromey <tromey@redhat.com>
8999
9000 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9001 argument.
9002 (target_insert_fork_catchpoint): Add argument.
9003 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9004 (update_current_target): Update.
9005 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9006 argument.
9007
2e97a79e
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9011 argument.
9012 (target_post_startup_inferior): Add argument.
9013 * target.c (debug_to_post_startup_inferior): Add argument.
9014 (update_current_target): Update.
9015 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9016 argument.
9017 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9018 argument.
9019 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9020 argument.
9021 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9022 argument.
9023 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9024 'self' argument.
9025 (super_post_startup_inferior): Likewise.
9026 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9027 'self' argument.
9028 (super_post_startup_inferior): Likewise.
9029 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9030 Add 'self' argument.
9031 (super_post_startup_inferior): Likewise.
9032
71a9f134
TT
90332014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target.h (struct target_ops) <to_load>: Add argument.
9036 * target.c (target_load): Add argument.
9037 (debug_to_load): Add argument.
9038 (update_current_target): Update.
9039 * remote.c (remote_load): Add 'self' argument.
9040 * remote-sim.c (gdbsim_load): Add 'self' argument.
9041 * remote-mips.c (mips_load): Add 'self' argument.
9042 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9043 * monitor.c (monitor_load): Add 'self' argument.
9044 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9045
0a4f40a2
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9049 (target_terminal_info): Add argument.
9050 * target.c (debug_to_terminal_info): Add argument.
9051 (default_terminal_info): Likewise.
9052 * inflow.c (child_terminal_info): Add 'self' argument.
9053 * inferior.h (child_terminal_info): Add 'self' argument.
9054 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9055
ae3bd431
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9059 argument.
9060 (target_terminal_save_ours): Add argument.
9061 * target.c (debug_to_terminal_save_ours): Add argument.
9062 (update_current_target): Update.
9063 * inflow.c (terminal_save_ours): Add 'self' argument.
9064 * inferior.h (terminal_save_ours): Add 'self' argument.
9065
e3594fd1
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9069 (target_terminal_ours): Add argument.
9070 * target.c (debug_to_terminal_ours): Add argument.
9071 (update_current_target): Update.
9072 * remote.c (remote_terminal_ours): Add 'self' argument.
9073 (remote_close): Update.
9074 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9075 * inflow.c (terminal_ours): Add 'self' argument.
9076 * inferior.h (terminal_ours): Add 'self' argument.
9077 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9078
2e1e1a19
TT
90792014-02-19 Pedro Alves <palves@redhat.com>
9080 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9083 argument.
9084 (target_terminal_ours_for_output): Add argument.
9085 * target.c (debug_to_terminal_ours_for_output): Add argument.
9086 (update_current_target): Update.
9087 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9088 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9089 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9090
d2f640d4
TT
90912014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_terminal_inferior>: Add
9094 argument.
9095 * target.c (target_terminal_inferior): Add argument.
9096 (update_current_target): Update.
9097 * remote.c (remote_terminal_inferior): Add 'self' argument.
9098 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9099 * inflow.c (terminal_inferior): Add 'self' argument.
9100 * inferior.h (terminal_inferior): Add 'self' argument.
9101 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9102 (go32_terminal_inferior): Add 'self' argument.
9103
c42bf286
TT
91042014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9107 (target_terminal_init): Add argument.
9108 * target.c (debug_to_terminal_init): Add argument.
9109 (update_current_target): Update.
9110 * inflow.c (terminal_init_inferior): Add 'self' argument.
9111 * inferior.h (terminal_init_inferior): Add 'self' argument.
9112 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9113 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9114
c3a5ff89
TT
91152014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target.h (struct target_ops)
9118 <to_can_accel_watchpoint_condition>: Add argument.
9119 (target_can_accel_watchpoint_condition): Add argument.
9120 * target.c (debug_to_can_accel_watchpoint_condition): Add
9121 argument.
9122 (update_current_target): Update.
9123 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9124 'self' argument.
9125
31568a15
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9129 Add argument.
9130 (target_region_ok_for_hw_watchpoint): Add argument.
9131 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9132 (default_region_ok_for_hw_watchpoint): Add argument.
9133 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9134 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9135 argument.
9136 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9137 argument.
9138 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9139 argument.
9140 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9141 'self' argument.
9142 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9143 'self' argument.
9144 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9145 'self' argument.
9146 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9147 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9148 'self' argument.
9149 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9150 Add 'self' argument.
9151
7bb99c53
TT
91522014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9155 argument.
9156 (target_insert_watchpoint): Add argument.
9157 * target.c (debug_to_insert_watchpoint): Add argument.
9158 (update_current_target): Update.
9159 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9160 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9161 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9162 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9163 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9164 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9165 argument.
9166 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9167 (procfs_insert_hw_watchpoint): Add 'self' argument.
9168 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9169 argument.
9170 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9171 argument.
9172 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9173 argument.
9174 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9175 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9176 argument.
9177 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9178 'self' argument.
9179
11b5219a
TT
91802014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9183 argument.
9184 (target_remove_watchpoint): Add argument.
9185 * target.c (debug_to_remove_watchpoint): Add argument.
9186 (update_current_target): Update.
9187 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9188 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9189 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9190 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9191 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9192 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9193 argument.
9194 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9195 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9196 argument.
9197 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9198 argument.
9199 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9200 argument.
9201 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9202 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9203 argument.
9204 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9205 'self' argument.
9206
a64dc96c
TT
92072014-02-19 Tom Tromey <tromey@redhat.com>
9208
9209 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9210 argument.
9211 (target_remove_hw_breakpoint): Add argument.
9212 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9213 (update_current_target): Update.
9214 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9215 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9216 argument.
9217 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9218 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9219 argument.
9220 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9221 'self' argument.
9222
23a26771
TT
92232014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9226 argument.
9227 (target_insert_hw_breakpoint): Add argument.
9228 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9229 (update_current_target): Update.
9230 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9231 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9232 argument.
9233 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9234 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9235 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9236 argument.
9237 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9238 'self' argument.
9239
5461485a
TT
92402014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9243 argument.
9244 (target_can_use_hardware_watchpoint): Add argument.
9245 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9246 (update_current_target): Update.
9247 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9248 argument.
9249 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9250 argument.
9251 * remote.c (remote_check_watch_resources): Add 'self' argument.
9252 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9253 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9254 argument.
9255 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9256 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9257 argument.
9258 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9259 argument.
9260 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9261 argument.
9262 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9263 argument.
9264 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9265 argument.
9266 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9267 argument.
9268 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9269 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9270 argument.
9271 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9272 'self' argument.
9273
f045800c
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target.h (struct target_ops) <to_post_attach>: Add argument.
9277 (target_post_attach): Add argument.
9278 * target.c (debug_to_post_attach): Add argument.
9279 (update_current_target): Update.
9280 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9281 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9282 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9283 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9284 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9285
de90e03d
TT
92862014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * windows-nat.c (windows_close): Add 'self' argument.
9289 * tracepoint.c (tfile_close): Add 'self' argument.
9290 * target.h (struct target_ops) <to_close>: Add argument.
9291 * target.c (target_close): Add argument.
9292 (update_current_target): Update.
9293 * remote.c (remote_close): Add 'self' argument.
9294 * remote-sim.c (gdbsim_close): Add 'self' argument.
9295 * remote-mips.c (mips_close): Add 'self' argument.
9296 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9297 * record-full.c (record_full_close): Add 'self' argument.
9298 * record-btrace.c (record_btrace_close): Add 'self' argument.
9299 * monitor.h (monitor_close): Add 'self' argument.
9300 * monitor.c (monitor_close): Add 'self' argument.
9301 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9302 * linux-nat.c (linux_nat_close): Add argument.
9303 * go32-nat.c (go32_close): Add 'self' argument.
9304 * exec.c (exec_close_1): Add 'self' argument.
9305 * ctf.c (ctf_close): Add 'self' argument.
9306 * corelow.c (core_close): Add 'self' argument.
9307 (core_close_cleanup): Update.
9308 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9309 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9310
9dd130a0
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * remote.c (remote_load): New function.
9314 (init_remote_ops): Use it.
9315
46917d26
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9319 argument.
9320 * common/linux-btrace.h (linux_supports_btrace): Update.
9321 * remote.c (remote_supports_btrace): Add "self" argument.
9322 * target-delegates.c: Rebuild.
9323 * target.c (target_supports_btrace): Remove.
9324 * target.h (struct target_ops) <to_supports_btrace>: Add
9325 target_ops argument.
9326 (target_supports_btrace): New define.
9327
6b84065d
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * record-full.c (record_full_beneath_to_resume_ops)
9331 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9332 (record_full_beneath_to_wait)
9333 (record_full_beneath_to_store_registers_ops)
9334 (record_full_beneath_to_store_registers)
9335 (record_full_beneath_to_xfer_partial_ops)
9336 (record_full_beneath_to_xfer_partial)
9337 (record_full_beneath_to_insert_breakpoint_ops)
9338 (record_full_beneath_to_insert_breakpoint)
9339 (record_full_beneath_to_remove_breakpoint_ops)
9340 (record_full_beneath_to_remove_breakpoint)
9341 (record_full_beneath_to_stopped_by_watchpoint)
9342 (record_full_beneath_to_stopped_data_address)
9343 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9344 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9345 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9346 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9347 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9348 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9349 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9350 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9351 (record_full_resume, record_full_wait_1)
9352 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9353 (record_full_store_registers, record_full_xfer_partial)
9354 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9355 (record_full_async, record_full_core_xfer_partial): Use target
9356 delegation.
9357 * target-delegates.c: Rebuild.
9358 * target.c (current_xfer_partial): Remove.
9359 (update_current_target): Do not INHERIT or de_fault
9360 to_insert_breakpoint, to_remove_breakpoint,
9361 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9362 to_is_async_p, to_async. Do not set to_xfer_partial field.
9363 (default_xfer_partial): Simplify.
9364 (current_xfer_partial): Remove.
9365 (target_wait, target_resume): Simplify.
9366 (find_default_can_async_p, find_default_is_async_p): Update.
9367 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9368 to_xfer_partial, to_stopped_by_watchpoint,
9369 to_stopped_data_address.
9370 (target_store_registers): Simplify.
9371 (forward_target_remove_breakpoint)
9372 (forward_target_insert_breakpoint): Remove.
9373 (target_remove_breakpoint, target_insert_breakpoint)
9374 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9375 * target.h (struct target_ops) <to_resume, to_wait,
9376 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9377 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9378 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9379 markup.
9380 (forward_target_remove_breakpoint)
9381 (forward_target_insert_breakpoint): Remove.
9382 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9383 directly.
9384 (record_btrace_insert_breakpoint): Delegate directly.
9385
1101cb7b
TT
93862014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 PR build/7701:
9389 * target-delegates.c: New file.
9390 * target.c: Include target-delegates.c.
9391 (init_dummy_target): Call install_dummy_methods.
9392 (complete_target_initialization): Call install_delegators.
9393 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9394 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9395 * make-target-delegates: New file.
9396
8b06beed
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * record.c (find_record_target): Use find_target_at.
9400 * target.c (find_target_at): New function.
9401 * target.h (find_target_at): Declare.
9402
6a109b6b
TT
94032014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9406 Add 'ops' argument.
9407 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9408 'ops' argument.
9409 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9410 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9411 'ops' argument.
9412 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9413 argument.
9414 * linux-nat.c (save_sigtrap): Update.
9415 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9416 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9417 (linux_nat_close): Update.
9418 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9419 argument.
9420 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9421 argument.
9422 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9423 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9424 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9425 (tmp_to_async): Add 'ops' argument.
9426 (record_full_stopped_by_watchpoint, record_full_async)
9427 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9428 argument.
9429 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9430 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9431 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9432 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9433 (remote_is_async_p, remote_async): Add 'ops' argument.
9434 (remote_stopped_data_address): Update.
9435 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9436 * target.c (update_current_target)
9437 (find_default_can_async_p, find_default_is_async_p): Update.
9438 (init_dummy_target): Update.
9439 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9440 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9441 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9442 (target_can_async_p, target_is_async_p, target_async)
9443 (target_stopped_by_watchpoint): Update.
9444
e095146b
YQ
94452014-02-19 Yao Qi <yao@codesourcery.com>
9446
9447 PR gdb/16220
9448 * gdbarch.sh: Remove startup_gdbarch.
9449 * gdbarch.c: Regenerated.
9450 * gdbarch.h: Likewise.
9451
bc3c6b36
KB
94522014-02-17 Kevin Buettner <kevinb@redhat.com>
9453
9454 * rl78-tdep.c (rl78_g10_register_name): New function.
9455 (rl78_return_value): Add g10 support.
9456 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9457 g10.
9458
98dc0167 94592014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9460
9461 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9462 (SUBDIR_GUILE_SRCS): Ditto.
9463 (scm-gsmob.o): Ditto.
9464
842c05cd
YQ
94652014-02-17 Yao Qi <yao@codesourcery.com>
9466
9467 * gnu-nat.c (ILL_RPC): Declare defined function.
9468
25c0bd04
YQ
94692014-02-17 Yao Qi <yao@codesourcery.com>
9470
9471 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9472 mach_msg_type_number_t.
9473 (gnu_write_inferior): Likewise.
9474
a9a758e3
YQ
94752014-02-17 Yao Qi <yao@codesourcery.com>
9476
9477 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9478 in format string.
9479 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9480 (inf_validate_procs, inf_signal): Likewise.
9481 (S_exception_raise_request): Likewise.
9482 (do_mach_notify_dead_name): Likewise.
9483 (steal_exc_port): Likewise.
9484 (gnu_read_inferior): Change 'copy_count''s type to
9485 mach_msg_type_number_t.
9486 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9487 format string.
9488
bae8023e
TS
94892014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9490
c82f56d9
TS
9491 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9492 flag. Adjust all users; in particular...
9493 (gnu_wait): ..., don't decrement its value in here...
9494 (gnu_create_inferior): ..., and instead set the flag in here,
9495 around the startup_inferior call, and call that one with
9496 START_INFERIOR_TRAPS_EXPECTED.
9497
3398af6a
TS
9498 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9499 (ILL_RPC): ... new macro.
9500 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9501 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9502 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9503 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9504 functions with ILL_RPC macro.
9505 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9506 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9507 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9508 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9509 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9510 (S_proc_getlogin_reply, S_proc_getsid_reply)
9511 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9512 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9513 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9514 (S_proc_getnports_reply, S_proc_is_important_reply)
9515 (S_proc_get_code_reply): New stub functions, generated with
9516 ILL_RPC macro.
9517
d47642c9
TS
9518 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9519 collected the type check structures.
9520
bae8023e
TS
9521 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9522
8a55ffb0
DE
95232014-02-14 Doug Evans <dje@google.com>
9524
9525 * target.c (target_write_partial): Fix result type.
9526
c2853f3d
JM
95272014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9528
9529 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9530 the proper offsets to access fpregset_t.
9531
ac61d2db
SA
95322014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9533
9534 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9535 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9536 * h8300-tdep.c (setmachinelist): Remove global.
9537 * hppa-tdep.c (hppa_sigtramp): Remove global.
9538 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9539 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9540 * ravenscar-thread.c (update_target_observer): Remove global.
9541 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9542
9d2d0b8b
TT
95432014-02-12 Tom Tromey <tromey@redhat.com>
9544
9545 * common/rsp-low.c: Update comments.
9546 * common/rsp-low.h: Update comments.
9547
a7191e8b
TT
95482014-02-12 Tom Tromey <tromey@redhat.com>
9549
9550 * common/rsp-low.c (convert_ascii_to_int): Remove.
9551 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9552
ff0e980e
TT
95532014-02-12 Tom Tromey <tromey@redhat.com>
9554
9555 * common/rsp-low.h (unhexify): Don't declare.
9556 * common/rsp-low.c (unhexify): Remove.
9557
e9371aff
TT
95582014-02-12 Tom Tromey <tromey@redhat.com>
9559
9560 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9561 * common/rsp-low.c (convert_int_to_ascii): Remove.
9562
971dc0b8
TT
95632014-02-12 Tom Tromey <tromey@redhat.com>
9564
9565 * common/rsp-low.h (hexify): Don't declare.
9566 * common/rsp-low.c (hexify): Remove.
9567
0a822afb
TT
95682014-02-12 Tom Tromey <tromey@redhat.com>
9569
9570 * common/rsp-low.c (hexify): Never take strlen of argument.
9571
9f1b45b0
TT
95722014-02-12 Tom Tromey <tromey@redhat.com>
9573
9574 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9575 * remote.c (extended_remote_run, remote_rcmd)
9576 (remote_download_trace_state_variable, remote_save_trace_data)
9577 (remote_set_trace_notes): Update.
9578 * tracepoint.c (encode_source_string, tfile_write_status)
9579 (tfile_write_uploaded_tsv): Update.
9580
9c3d6531
TT
95812014-02-12 Tom Tromey <tromey@redhat.com>
9582
9583 * tracepoint.c: Include rsp-low.h.
9584 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9585 * remote.c: Include rsp-low.h.
9586 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9587 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9588 (remote_unescape_input): Move to common/rsp-low.c.
9589 * common/rsp-low.h: New file.
9590 * common/rsp-low.c: New file.
9591 * Makefile.in (SFILES): Add common/rsp-low.c.
9592 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9593 (COMMON_OBS): Add rsp-low.o.
9594 (rsp-low.o): New target.
9595
01fd3ea5
TT
95962014-02-12 Tom Tromey <tromey@redhat.com>
9597
9598 * utils.h: Include print-utils.h.
9599 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9600 (int_string, core_addr_to_string, core_addr_to_string_nz)
9601 (hex_string, hex_string_custom): Don't declare.
9602 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9603 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9604 (hex_string_custom, int_string, core_addr_to_string)
9605 (core_addr_to_string_nz, host_address_to_string): Move to
9606 common/print-utils.c.
9607 * common/print-utils.h: New file.
9608 * common/print-utils.c: New file
9609 * Makefile.in (SFILES): Add common/print-utils.c.
9610 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9611 (COMMON_OBS): Add print-utils.o.
9612 (print-utils.o): New target.
9613
9fb50108
TT
96142014-02-12 Tom Tromey <tromey@redhat.com>
9615
9616 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9617
0548b5db
MK
96182014-02-12 Mark Kettenis <kettenis@gnu.org>
9619
9620 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9621
493443a4
MK
96222014-02-12 Mark Kettenis <kettenis@gnu.org>
9623
9624 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9625 if a PT_IO ptrace request returns sucessfully but indicates that 0
9626 bytes were transferred.
9627
706d0883
PA
96282014-02-12 Pedro Alves <palves@redhat.com>
9629 Kevin Buettner <kevinb@redhat.com>
9630
9631 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9632 TYPE_INSTANCE_FLAG_CODE_SPACE.
9633
5caa2f0b
PA
96342014-02-12 Pedro Alves <palves@redhat.com>
9635
9636 * h8300-tdep.c (pseudo_from_raw_register)
9637 (raw_from_pseudo_register): New functions.
9638 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9639 them.
9640
76fd5f74
PA
96412014-02-12 Pedro Alves <palves@redhat.com>
9642
9643 * h8300-tdep.c (h8300_register_sim_regno): New function.
9644 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9645 gdbarch_register_sim_regno hook.
9646
8f008406
SA
96472014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9648
9649 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9650
195abc10
SA
96512014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9652
9653 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9654
93ffa5b9
MK
96552014-02-12 Mark Kettenis <kettenis@gnu.org>
9656
9657 * obsd-tdep.h (obsd_init_abi): New prototype.
9658 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9659 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9660 (obsd_init_abi): New functions.
9661 * i386obsd-tdep.c: Include "obsd-tdep.h".
9662 (i386obsd_init_abi): Call obsd_init_abi.
9663 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9664 (amd64obsd_init_abi): Call obsd_init_abi.
9665 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9666 obsd-tdep.c to gdb_target_obs.
9667
49caec94
JM
96682014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9669
9670 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9671 double float arguments to 16-byte in the argument slots.
9672
e1402065
DE
96732014-02-11 Doug Evans <xdje42@gmail.com>
9674
9675 * configure.ac: Don't crash if pkg-config is not found and guile
9676 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9677 in guile checks.
9678 * configure: Regenerate.
9679
edcc890f
YQ
96802014-02-11 Yao Qi <yao@codesourcery.com>
9681
9682 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9683 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9684 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9685 * gnu-nat.c (gnu_xfer_memory): Likewise.
9686 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9687 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9688 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9689 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9690
9b409511
YQ
96912014-02-11 Yao Qi <yao@codesourcery.com>
9692
9693 * target.h (enum target_xfer_error): Rename to ...
9694 (enum target_xfer_status): ... it. New. All users updated.
9695 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9696 New.
9697 (TARGET_XFER_STATUS_ERROR_P): New macro.
9698 (target_xfer_error_to_string): Remove declaration.
9699 (target_xfer_status_to_string): Declare.
9700 (target_xfer_partial_ftype): Adjust it.
9701 (struct target_ops) <to_xfer_partial>: Return
9702 target_xfer_status. Add argument xfered_len. Update
9703 comments.
9704 * target.c (target_xfer_error_to_string): Rename to ...
9705 (target_xfer_status_to_string): ... it. New. All callers
9706 updated.
9707 (target_read_live_memory): Likewise. Call target_xfer_partial
9708 instead of target_read.
9709 (memory_xfer_live_readonly_partial): Return
9710 target_xfer_status. Add argument xfered_len.
9711 (raw_memory_xfer_partial): Likewise.
9712 (memory_xfer_partial_1): Likewise.
9713 (memory_xfer_partial): Likewise.
9714 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9715 properly. Update debug message.
9716 (default_xfer_partial, current_xfer_partial): Likewise.
9717 (target_write_partial): Likewise.
9718 (target_read_partial): Likewise. All callers updated.
9719 (read_whatever_is_readable): Likewise.
9720 (target_write_with_progress): Likewise.
9721 (target_read_alloc_1): Likewise.
9722
9723 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9724 * auxv.c (procfs_xfer_auxv): Likewise.
9725 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9726 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9727 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9728 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9729 * corefile.c (read_memory): Adjust.
9730 * corelow.c (core_xfer_partial): Likewise.
9731 * ctf.c (ctf_xfer_partial): Likewise.
9732 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9733 updated.
9734 (darwin_xfer_partial): Likewise.
9735 * exec.c (section_table_xfer_memory_partial): Likewise. All
9736 callers updated.
9737 (exec_xfer_partial): Likewise.
9738 * exec.h (section_table_xfer_memory_partial): Update
9739 declaration.
9740 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9741 negative.
9742 (gnu_xfer_partial): Likewise.
9743 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9744 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9745 (ia64_hpux_xfer_solib_got): Likewise.
9746 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9747 type of 'partial_len' to ULONGEST.
9748 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9749 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9750 (linux_nat_xfer_partial): Likewise.
9751 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9752 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9753 * monitor.c (monitor_xfer_memory): Likewise.
9754 (monitor_xfer_partial): Likewise.
9755 * procfs.c (procfs_xfer_partial): Likewise.
9756 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9757 * record-full.c (record_full_xfer_partial): Likewise.
9758 (record_full_core_xfer_partial): Likewise.
9759 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9760 (gdbsim_xfer_partial): Likewise.
9761 * remote.c (remote_write_bytes_aux): Likewise. All callers
9762 updated.
9763 (remote_write_bytes, remote_read_bytes): Likewise. All
9764 callers updated.
9765 (remote_flash_erase): Likewise. All callers updated.
9766 (remote_write_qxfer): Likewise. All callers updated.
9767 (remote_read_qxfer): Likewise. All callers updated.
9768 (remote_xfer_partial): Likewise.
9769 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9770 (rs6000_xfer_shared_libraries): Likewise.
9771 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9772 (sol_thread_xfer_partial): Likewise.
9773 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9774 (sparc_xfer_partial): Likewise.
9775 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9776 updated.
9777 (spu_xfer_partial): Likewise.
9778 * spu-multiarch.c (spu_xfer_partial): Likewise.
9779 * tracepoint.c (tfile_xfer_partial): Likewise.
9780 * windows-nat.c (windows_xfer_memory): Likewise.
9781 (windows_xfer_shared_libraries): Likewise.
9782 (windows_xfer_partial): Likewise.
9783 * valprint.c: Replace 'target_xfer_error' with
9784 'target_xfer_status' in comments.
9785
a8e63083
JB
97862014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9787
9788 Checked in by Joel Brobecker <brobecker@adacore.com>.
9789 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9790
e86b67d3
JB
97912014-02-11 Joel Brobecker <brobecker@adacore.com>
9792
9793 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9794 function parameters.
9795
4b7d1f7f
WN
97962014-02-10 Will Newton <will.newton@linaro.org>
9797
9798 * elfread.c (elf_rel_plt_read): Look for a .got section if
9799 looking up .got.plt fails.
9800 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9801 on address passed to elf_gnu_ifunc_record_cache.
9802 (elf_gnu_ifunc_resolve_addr): Likewise.
9803 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9804
961842b2
JM
98052014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9806
9807 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9808 (X_RETTURN): New macro.
9809 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9810
9811 * sparc64-tdep.c (sparc64_init_abi): Hook
9812 sparc_in_function_epilogue_p.
9813
3f03e7b1
GB
98142014-02-10 Gary Benson <gbenson@redhat.com>
9815
9816 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9817 Rename name_matcher to symbol_matcher.
9818
96f861ef
GB
98192014-02-10 Gary Benson <gbenson@redhat.com>
9820
9821 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9822 Use expand_symtabs_file_matcher_ftype and
9823 expand_symtabs_symbol_matcher_ftype.
9824
ee01b665
JB
98252014-02-10 Joel Brobecker <brobecker@adacore.com>
9826
9827 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9828 (struct ada_symbol_cache): New.
9829 (ada_free_symbol_cache): Forward declare.
9830 (struct ada_pspace_data): New.
9831 (ada_pspace_data_handle): New static global.
9832 (get_ada_pspace_data, ada_pspace_data_cleanup)
9833 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9834 (cache_space, cache): Delete, now folded inside struct
9835 ada_pspace_data.
9836 (ada_get_symbol_cache): New function.
9837 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9838 implementation.
9839 (_initialize_ada_language): Remove initialization of cache_space.
9840 Move call to observer_attach_inferior_exit up, grouping it
9841 with the other observer registrations inside this function.
9842 Rename command to be more general. Add call to
9843 register_program_space_data_with_cleanup.
9844
143adbbf
JB
98452014-02-10 Joel Brobecker <brobecker@adacore.com>
9846
9847 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9848 ada_new_objfile_observer.
9849 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9850 (_initialize_tasks): Update uses of ada_new_objfile_observer
9851 and ada_tasks_normal_stop_observer.
9852
aa4fb036
JB
98532014-02-10 Joel Brobecker <brobecker@adacore.com>
9854
9855 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9856 returned by the 'Length attribute to integer.
9857
9dee8cc6
JB
98582014-02-10 Joel Brobecker <brobecker@adacore.com>
9859
9860 * ada-lang.c (_initialize_ada_language): Initialize
9861 cache_space obstack.
9862
3d9434b5
JB
98632014-02-10 Joel Brobecker <brobecker@adacore.com>
9864
9865 * ada-lang.c (HASH_SIZE): New macro.
9866 (struct cache_entry): New type.
9867 (cache_space, cache): New static globals.
9868 (ada_clear_symbol_cache, find_entry): New functions.
9869 (lookup_cached_symbol, cache_symbol): Implement.
9870 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9871 (_initialize_ada_language): Attach ada_new_objfile_observer
9872 and ada_free_objfile_observer.
9873
f0c5f9b2
JB
98742014-02-10 Joel Brobecker <brobecker@adacore.com>
9875
9876 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9877 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9878 struct block * parameter.
9879 (ada_lookup_symbol_list_worker): Constify local variable "block".
9880 Remove cast which is no longer necessary.
9881
ed3ef339
DE
98822014-02-10 Doug Evans <xdje42@gmail.com>
9883
9884 Add Guile as an extension language.
9885 * NEWS: Mention Guile scripting.
9886 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9887 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9888 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9889 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9890 (CLIBS): Add GUILE_LIBS.
9891 (install-guile): New rule.
9892 (guile.o): New rule.
9893 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9894 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9895 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9896 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9897 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9898 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9899 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9900 * configure.ac: New option --with-guile.
9901 * configure: Regenerate.
9902 * config.in: Regenerate.
9903 * auto-load.c: Remove #include "python/python.h". Add #include
9904 "gdb/section-scripts.h".
9905 (source_section_scripts): Handle Guile scripts.
9906 (_initialize_auto_load): Add name of Guile objfile script to
9907 scripts-directory help text.
9908 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9909 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9910 (struct breakpoint): New member scm_bp_object.
9911 * defs.h (enum command_control_type): New value guile_control.
9912 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9913 "extension.h".
9914 (show_user): Update comment.
9915 (_initialize_cli_cmds): Update help text for "show user". Update help
9916 text for max-user-call-depth.
9917 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9918 "extension.h".
9919 (multi_line_command_p): Add guile_control.
9920 (print_command_lines): Handle guile_control.
9921 (execute_control_command, recurse_read_control_structure): Ditto.
9922 (process_next_line): Recognize "guile" commands.
9923 * disasm.c (gdb_disassemble_info): Make non-static.
9924 * disasm.h: #include "dis-asm.h".
9925 (struct gdbarch): Add forward decl.
9926 (gdb_disassemble_info): Declare.
9927 * extension.c: #include "guile/guile.h".
9928 (extension_languages): Add guile.
9929 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9930 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9931 * gdbtypes.c (get_unsigned_type_max): New function.
9932 (get_signed_type_minmax): New function.
9933 * gdbtypes.h (get_unsigned_type_max): Declare.
9934 (get_signed_type_minmax): Declare.
9935 * guile/README: New file.
9936 * guile/guile-internal.h: New file.
9937 * guile/guile.c: New file.
9938 * guile/guile.h: New file.
9939 * guile/scm-arch.c: New file.
9940 * guile/scm-auto-load.c: New file.
9941 * guile/scm-block.c: New file.
9942 * guile/scm-breakpoint.c: New file.
9943 * guile/scm-disasm.c: New file.
9944 * guile/scm-exception.c: New file.
9945 * guile/scm-frame.c: New file.
9946 * guile/scm-gsmob.c: New file.
9947 * guile/scm-iterator.c: New file.
9948 * guile/scm-lazy-string.c: New file.
9949 * guile/scm-math.c: New file.
9950 * guile/scm-objfile.c: New file.
9951 * guile/scm-ports.c: New file.
9952 * guile/scm-pretty-print.c: New file.
9953 * guile/scm-safe-call.c: New file.
9954 * guile/scm-string.c: New file.
9955 * guile/scm-symbol.c: New file.
9956 * guile/scm-symtab.c: New file.
9957 * guile/scm-type.c: New file.
9958 * guile/scm-utils.c: New file.
9959 * guile/scm-value.c: New file.
9960 * guile/lib/gdb.scm: New file.
9961 * guile/lib/gdb/boot.scm: New file.
9962 * guile/lib/gdb/experimental.scm: New file.
9963 * guile/lib/gdb/init.scm: New file.
9964 * guile/lib/gdb/iterator.scm: New file.
9965 * guile/lib/gdb/printing.scm: New file.
9966 * guile/lib/gdb/types.scm: New file.
9967 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9968 (VPATH): Add $(GUILE_SRCDIR).
9969 (GUILE_DIR): New variable.
9970 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9971 (all): Add stamp-guile dependency.
9972 (stamp-guile): New rule.
9973 (clean-guile, install-guile, uninstall-guile): New rules.
9974 (install-only): Add install-guile dependency.
9975 (uninstall): Add uninstall-guile dependency.
9976 (clean): Add clean-guile dependency.
9977
ac020ec5
DE
99782014-02-09 Doug Evans <xdje42@gmail.com>
9979
9980 Revert this patch (which I approved, mea culpa).
9981
9982 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9983
9984 * Makefile.in (all-lib): Remove.
9985 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9986
2a081c59
JK
99872014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9988
9989 Fix Python stack corruption.
9990 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9991 gdb_py_longest.
9992
0a6bd22d
MK
99932014-02-08 Mark Kettenis <kettenis@gnu.org>
9994
9995 * Makefile.in (all-lib): Remove.
9996 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9997
1a860409
DE
99982014-02-07 Doug Evans <dje@google.com>
9999
10000 * extension-priv.h (extension_language_script_ops): Add comment.
10001 (extension_language_ops): Add comment.
caf5a491 10002 (active_ext_lang_state): Fix typo in comment.
1a860409 10003
d137e6dc
PA
100042014-02-07 Pedro Alves <palves@redhat.com>
10005
0dcb32c3 10006 PR breakpoints/16292
d137e6dc
PA
10007 * infrun.c (handle_signal_stop) <signal arrives while stepping
10008 over a breakpoint>: Switch back to the stepping thread.
10009
ce6d0892
YQ
100102014-02-07 Yao Qi <yao@codesourcery.com>
10011
10012 * target.c (target_xfer_partial): Return zero if LEN is zero.
10013
2ed4b548
YQ
100142014-02-07 Yao Qi <yao@codesourcery.com>
10015
10016 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10017 (ld_so_xfer_auxv): Likewise.
10018 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10019 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10020 * corelow.c (core_xfer_partial): Likewise.
10021 * ctf.c (ctf_xfer_partial): Likewise.
10022 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10023 (darwin_xfer_partial): Likewise.
10024 * exec.c (exec_xfer_partial): Likewise.
10025 * gnu-nat.c (gnu_xfer_partial): Likewise.
10026 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10027 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10028 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10029 * linux-nat.c (linux_xfer_siginfo): Likewise.
10030 (linux_proc_xfer_spu): Likewise.
10031 * procfs.c (procfs_xfer_partial): Likewise.
10032 * record-full.c (record_full_xfer_partial): Likewise.
10033 (record_full_core_xfer_partial): Likewise.
10034 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10035 * remote.c (remote_write_qxfer): Likewise.
10036 (remote_write_qxfer, remote_read_qxfer): Likewise.
10037 (remote_xfer_partial): Likewise.
10038 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10039 (rs6000_xfer_shared_libraries): Likewise.
10040 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10041 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10042 (spu_xfer_partial): Likewise.
10043 * target.c (memory_xfer_partial_1): Likewise.
10044 * tracepoint.c (tfile_xfer_partial): Likewise.
10045 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10046 (windows_xfer_partial): Likewise.
10047
c09f20e4
YQ
100482014-02-07 Yao Qi <yao@codesourcery.com>
10049
10050 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10051 comments.
10052 (core_xfer_shared_libraries_aix): Likewise.
10053 * gdbarch.c, gdbarch.h: Regenerated.
10054 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10055 ULONGEST. Change 'len_avail' type to ULONGEST.
10056 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10057 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10058 declaration.
10059 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10060
8635b3bf
YQ
100612014-02-07 Yao Qi <yao@codesourcery.com>
10062
10063 * corefile.c (memory_error): Get 'exception' from ERR and pass
10064 'exception' to throw_error.
10065
6dddc817
DE
100662014-02-06 Doug Evans <xdje42@gmail.com>
10067
10068 * configure.ac (libpython checking): Remove all but python.o from
10069 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10070 * configure: Regenerate.
10071
10072 * Makefile.in (SFILES): Add extension.c.
10073 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10074 (COMMON_OBS): Add extension.o.
10075 * extension.h: New file.
10076 * extension-priv.h: New file.
10077 * extension.c: New file.
10078
10079 * python/python-internal.h: #include "extension.h".
10080 (gdbpy_auto_load_enabled): Declare.
10081 (gdbpy_apply_val_pretty_printer): Declare.
10082 (gdbpy_apply_frame_filter): Declare.
10083 (gdbpy_preserve_values): Declare.
10084 (gdbpy_breakpoint_cond_says_stop): Declare.
10085 (gdbpy_breakpoint_has_cond): Declare.
10086 (void source_python_script_for_objfile): Delete.
10087 * python/python.c: #include "extension-priv.h".
10088 Delete inclusion of "observer.h".
10089 (extension_language_python): Moved here and renamed from
10090 script_language_python in py-auto-load.c.
10091 Redefined to be of type extension_language_defn.
10092 (python_extension_script_ops): New global.
10093 (python_extension_ops): New global.
10094 (struct python_env): New member previous_active.
10095 (restore_python_env): Call restore_active_ext_lang.
10096 (ensure_python_env): Call set_active_ext_lang.
10097 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10098 New arg extlang.
10099 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10100 New arg extlang.
10101 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10102 New arg extlang.
10103 (gdbpy_eval_from_control_command): Renamed from
10104 eval_python_from_control_command, made static. New arg extlang.
10105 (gdbpy_source_script) Renamed from source_python_script, made static.
10106 New arg extlang.
10107 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10108 result to int. New arg extlang.
10109 (gdbpy_source_objfile_script): Renamed from
10110 source_python_script_for_objfile, made static. New arg extlang.
10111 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10112 static. New args extlang, extlang_printers. Change result type to
10113 "void".
10114 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10115 static. New arg extlang. Rename arg printers to extlang_printers
10116 and change type to ext_lang_type_printers *.
10117 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10118 static. Replace argument arg with extlang, extlang_printers.
10119 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10120 (!HAVE_PYTHON, source_python_script): Delete.
10121 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10122 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10123 (!HAVE_PYTHON, start_type_printers): Delete.
10124 (!HAVE_PYTHON, apply_type_printers): Delete.
10125 (!HAVE_PYTHON, free_type_printers): Delete.
10126 (_initialize_python): Delete call to observer_attach_before_prompt.
10127 (finalize_python): Set/restore active extension language.
10128 (gdbpy_finish_initialization) Renamed from
10129 finish_python_initialization, made static. New arg extlang.
10130 (gdbpy_initialized): New function.
10131 * python/python.h: #include "extension.h". Delete #include
10132 "value.h", "mi/mi-cmds.h".
10133 (extension_language_python): Declare.
10134 (GDBPY_AUTO_FILE_NAME): Delete.
10135 (enum py_bt_status): Moved to extension.h and renamed to
10136 ext_lang_bt_status.
10137 (enum frame_filter_flags): Moved to extension.h.
10138 (enum py_frame_args): Moved to extension.h and renamed to
10139 ext_lang_frame_args.
10140 (finish_python_initialization): Delete.
10141 (eval_python_from_control_command): Delete.
10142 (source_python_script): Delete.
10143 (apply_val_pretty_printer): Delete.
10144 (apply_frame_filter): Delete.
10145 (preserve_python_values): Delete.
10146 (gdbpy_script_language_defn): Delete.
10147 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10148 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10149
10150 * auto-load.c: #include "extension.h".
10151 (GDB_AUTO_FILE_NAME): Delete.
10152 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10153 (script_language_gdb): Delete, moved to extension.c and renamed to
10154 extension_language_gdb.
10155 (source_gdb_script_for_objfile): Delete.
10156 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10157 (loaded_script): Change type of language member to
10158 struct extension_language_defn *.
10159 (init_loaded_scripts_info): Initialize
10160 unsupported_script_warning_printed.
10161 (maybe_add_script): Make static. Change type of language arg to
10162 struct extension_language_defn *.
10163 (clear_section_scripts): Reset unsupported_script_warning_printed.
10164 (auto_load_objfile_script_1): Rewrite to use extension language API.
10165 (auto_load_objfile_script): Make public. Remove support-compiled-in
10166 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10167 (source_section_scripts): Rewrite to use extension language API.
10168 (load_auto_scripts_for_objfile): Rewrite to use
10169 auto_load_scripts_for_objfile.
10170 (collect_matching_scripts_data): Change type of language member to
10171 struct extension_language_defn *.
10172 (auto_load_info_scripts): Change type of language arg to
10173 struct extension_language_defn *.
10174 (unsupported_script_warning_print): New function.
10175 (script_not_found_warning_print): Make static.
10176 (_initialize_auto_load): Rewrite construction of scripts-directory
10177 help.
10178 * auto-load.h (struct objfile): Add forward decl.
10179 (struct script_language): Delete.
10180 (struct auto_load_pspace_info): Add forward decl.
10181 (struct extension_language_defn): Add forward decl.
10182 (maybe_add_script): Delete.
10183 (auto_load_objfile_script): Declare.
10184 (script_not_found_warning_print): Delete.
10185 (auto_load_info_scripts): Update prototype.
10186 (auto_load_gdb_scripts_enabled): Declare.
10187 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10188 auto_load_python_scripts_enabled and made public.
10189 (script_language_python): Delete, moved to python.c.
10190 (gdbpy_script_language_defn): Delete.
10191 (info_auto_load_python_scripts): Update to use
10192 extension_language_python.
10193
10194 * breakpoint.c (condition_command): Replace call to
10195 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10196 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10197 with call to breakpoint_ext_lang_cond_says_stop.
10198 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10199 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10200 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10201 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10202 New arg slang.
10203 (local_setattro): Print name of extension language with existing
10204 stop condition.
10205
10206 * valprint.c (val_print, value_print): Update to call
10207 apply_ext_lang_val_pretty_printer.
10208 * cp-valprint.c (cp_print_value): Update call to
10209 apply_ext_lang_val_pretty_printer.
10210 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10211 (gdbpy_apply_val_pretty_printer): Renamed from
10212 apply_val_pretty_printer. New arg extlang.
10213 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10214
10215 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10216 extension language API.
10217 * cli/cli-script.c (execute_control_command): Update to call
10218 eval_ext_lang_from_control_command.
10219
10220 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10221 enum ext_lang_bt_status values. Update call to
10222 apply_ext_lang_frame_filter.
10223 (mi_cmd_stack_list_locals): Ditto.
10224 (mi_cmd_stack_list_args): Ditto.
10225 (mi_cmd_stack_list_variables): Ditto.
10226 * mi/mi-main.c: Delete #include "python/python-internal.h".
10227 Add #include "extension.h".
10228 (mi_cmd_list_features): Replace reference to python internal variable
10229 gdb_python_initialized with call to ext_lang_initialized_p.
10230
10231 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10232 Update to use enum ext_lang_frame_args. Update to call
10233 apply_ext_lang_frame_filter.
10234 * python/py-framefilter.c (extract_sym): Update to use enum
10235 ext_lang_bt_status.
10236 (extract_value, py_print_type, py_print_value): Ditto.
10237 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10238 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10239 (py_print_frame): Ditto.
10240 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10241 New arg extlang. Update to use enum ext_lang_bt_status.
10242
10243 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10244 finish_python_initialization. Replace with call to
10245 finish_ext_lang_initialization.
10246
10247 * typeprint.c (do_free_global_table): Update to call
10248 free_ext_lang_type_printers.
10249 (create_global_typedef_table): Update to call
10250 start_ext_lang_type_printers.
10251 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10252 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10253 (type_print_options): Change type of global_printers from "void *"
10254 to "struct ext_lang_type_printers *".
10255
10256 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10257 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10258 (gdbpy_preserve_values): Renamed from preserve_python_values.
10259 New arg extlang.
10260 (!HAVE_PYTHON, preserve_python_values): Delete.
10261
10262 * utils.c (quit_flag): Delete, moved to extension.c.
10263 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10264 extension.c.
10265
10266 * eval.c: Delete #include "python/python.h".
10267 * main.c: Delete #include "python/python.h".
10268
10269 * defs.h: Update comment.
10270
6af79985
JB
102712014-02-06 Joel Brobecker <brobecker@adacore.com>
10272
10273 GDB 7.7 released.
10274
12c5175d
MK
102752014-02-05 Mark Kettenis <kettenis@gnu.org>
10276
10277 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10278 defined.
10279
8dc5b319
YQ
102802014-02-05 Yao Qi <yao@codesourcery.com>
10281
10282 * remote.c (remote_pass_signals): Remove local 'buf' and use
10283 rs->buf.
10284 (remote_program_signals): Likewise.
10285
de7b2893
YQ
102862014-02-05 Yao Qi <yao@codesourcery.com>
10287
10288 * ctf.c: Include "inferior.h" and "gdbthread.h".
10289 (CTF_PID): A new macro.
10290 (ctf_open): Call inferior_appeared and add_thread_silent.
10291 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10292 (ctf_thread_alive): New function.
10293 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10294
66d032ac
YQ
102952014-02-05 Yao Qi <yao@codesourcery.com>
10296
10297 Revert this patch:
10298
10299 2013-05-24 Yao Qi <yao@codesourcery.com>
10300
10301 * tracepoint.c (TFILE_PID): Remove.
10302 (tfile_open): Don't add thread and inferior.
10303 (tfile_close): Don't set 'inferior_ptid'. Don't call
10304 exit_inferior_silent.
10305 (tfile_thread_alive): Remove.
10306 (init_tfile_ops): Don't set field 'to_thread_alive' of
10307 tfile_ops.
10308
f4ccffad
CE
103092014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10310
10311 * remote.c (remote_start_remote): Call remote_check_symbols even
10312 if only symbol-file (not file) has been given.
10313
591a12a1
UW
103142014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10315
10316 * gdbarch.sh (skip_entrypoint): New callback.
10317 * gdbarch.c, gdbarch.h: Regenerate.
10318 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10319 * infrun.c (fill_in_stop_func): Likewise.
10320 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10321 (ppc_elfv2_elf_make_msymbol_special): New function.
10322 (ppc_elfv2_skip_entrypoint): Likewise.
10323 (ppc_linux_init_abi): Install them for ELFv2.
10324
cc0e89c5
UW
103252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10326
10327 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10328 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10329 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10330 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10331 structures returned in GPRs.
10332
52f548e4
UW
103332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10334
10335 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10336 offset to the stack parameter list for the ELFv2 ABI.
10337
d4094b6a
UW
103382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10339
10340 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10341 set_gdbarch_convert_from_func_ptr_addr and
10342 set_gdbarch_elf_make_msymbol_special for ELFv1.
10343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10344 function descriptors on ELFv1.
10345 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10346 set up r12 at function entry.
10347
cd453cd0
UW
103482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10349
10350 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10351 (struct gdbarch_tdep): New member elf_abi.
10352
10353 * rs6000-tdep.c: Include "elf/ppc64.h".
10354 (rs6000_gdbarch_init): Detect ELF ABI version.
10355
0ff3e01f
UW
103562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10357
10358 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10359 within a register pair holding a DFP 128-bit value on little-endian.
10360 (ppc64_sysv_abi_return_value_base): Likewise.
10361 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10362 (dfp_pseudo_register_write): Likewise.
10363
5b757e5d
UW
103642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10365
10366 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10367 offset on little-endian when passing _Decimal32.
10368 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10369
084ee545
UW
103702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10371
10372 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10373 of the overlapped FP register within the VSX register on little-
10374 endian platforms.
10375 (efpr_pseudo_register_write): Likewise.
10376
d63167af
UW
103772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10378
10379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10380 offset on little-endian when passing small structures.
10381
e765b44c
UW
103822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10383
10384 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10385 (struct ppc64_sysv_argpos): New data structure.
10386 (ppc64_sysv_abi_push_float): Remove.
10387 (ppc64_sysv_abi_push_val): New function.
10388 (ppc64_sysv_abi_push_integer): Likewise.
10389 (ppc64_sysv_abi_push_freg): Likewise.
10390 (ppc64_sysv_abi_push_vreg): Likewise.
10391 (ppc64_sysv_abi_push_param): Likewise.
10392 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10393 (ppc64_sysv_abi_return_value_base): New function.
10394 (ppc64_sysv_abi_return_value): Refactor to use it.
10395
36c24d95
UW
103962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10397
10398 * NEWS: Document new target powerpc64le-*-linux*.
10399
26fd9228
MK
104002014-02-04 Mark Kettenis <kettenis@gnu.org>
10401
10402 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10403 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10404 core dumps.
10405 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10406 register set used in ELF core dumps. Add floating-point register set.
10407
c5bb7362
KB
104082014-02-03 Kevin Buettner <kevinb@redhat.com>
10409
74228e77 10410 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10411 dwarf2_to_gdb[] table using symbolic constants. Adjust
10412 penultimate entry from number representing the PC register
10413 to symbolic constant representing the MDR register. Add
10414 constant for the PC register to the end of the table.
10415
af09351e
MK
104162014-02-03 Mark Kettenis <kettenis@gnu.org>
10417
10418 * bsd-kvm.c: Include <sys/param.h>
10419
8507e05d
MK
104202014-02-03 Mark Kettenis <kettenis@gnu.org>
10421
10422 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10423
ae56bfb8
JB
104242014-01-31 Joel Brobecker <brobecker@adacore.com>
10425
10426 * ada-lang.h (clear_ada_sym_cache): Delete.
10427
718ee4dc
UW
104282014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10429
10430 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10431
401e27fd
JM
104322014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10433
10434 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10435 the sigreturn register save area only if the syscall is
10436 sigreturn.
10437
a7c88acd
JB
104382014-01-29 Joel Brobecker <brobecker@adacore.com>
10439
10440 * valops.c (value_slice): Minor reformatting.
10441
fa0079ea
UW
104422014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10443
10444 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10445
c6044dd1
JB
104462014-01-28 Joel Brobecker <brobecker@adacore.com>
10447
10448 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10449 New static globals.
10450 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10451 (ada_ignore_descriptive_types_p): New static global.
10452 (find_parallel_type_by_descriptive_type): Return immediately
10453 if ada_ignore_descriptive_types_p is set.
10454 (_initialize_ada_language): Register new commands "maintenance
10455 set ada", "maintenance show ada", "maintenance set ada
10456 ignore-descriptive-types" and "maintenance show ada
10457 ignore-descriptive-types".
10458 * NEWS: Add entry for new "maint ada set/show
10459 ignore-descriptive-types" commands.
10460
568e808b
MM
104612014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10462
10463 * record-btrace.c (record_btrace_close): Call btrace_teardown
10464 for all threads.
10465
467d141b
JB
104662014-01-27 Joel Brobecker <brobecker@adacore.com>
10467
10468 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10469 "ui-out.h".
10470
fb151210
JB
104712014-01-27 Joel Brobecker <brobecker@adacore.com>
10472
10473 * ada-typeprint (type_is_full_subrange_of_target_type):
10474 New function.
10475 (print_range): Add parameter bounds_prefered_p. If not set,
10476 try printing range types using the name of their base type.
10477 (print_range_type): Add parameter bounds_prefered_p.
10478 Use it in call to print_range.
10479 (print_array_type, ada_print_type): Update calls to print_range
10480 and print_range_type.
10481
aba02109
JB
104822014-01-27 Joel Brobecker <brobecker@adacore.com>
10483
10484 * ada-typeprint.c (print_array_type, print_choices, print_range)
10485 (print_range_bound, print_dynamic_range_bound, print_range_type):
10486 Remove declaration.
10487
e62e21fd
JB
104882014-01-27 Joel Brobecker <brobecker@adacore.com>
10489
10490 * ada-typeprint.c (print_range): Add missing empty line
10491 after local declaration.
10492
859cf5d1
JB
104932014-01-27 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-valprint.c (print_optional_low_bound): Get index_type's
10496 target type for as long as it is a TYPE_CODE_RANGE.
10497
25790f6f
JB
104982014-01-27 Joel Brobecker <brobecker@adacore.com>
10499
10500 * procfs.c (procfs_make_note_section): Remove assertion and
10501 associated comment.
10502
6b6aa828
YQ
105032014-01-24 Yao Qi <yao@codesourcery.com>
10504
10505 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10506 * corelow.c (get_core_siginfo): Likewise.
10507
5d6df423
YQ
105082014-01-24 Yao Qi <yao@codesourcery.com>
10509
10510 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10511 ULONGEST. Don't check 'len' is negative.
10512 (remote_write_bytes): Change type of 'len' to ULONGEST.
10513
83b645b8
TT
105142014-01-23 Tom Tromey <tromey@redhat.com>
10515
10516 PR python/16485:
10517 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10518 Handle exception from frame.block.
10519 (FrameVars.fetch_frame_locals): Likewise.
10520
0740f8d8
TT
105212014-01-23 Tom Tromey <tromey@redhat.com>
10522
10523 PR python/16487:
10524 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10525 on a NULL pointer. Move "goto error" to correct place.
10526
21909fa1
TT
105272014-01-23 Tom Tromey <tromey@redhat.com>
10528
10529 PR python/16491:
10530 * python/py-framefilter.c (apply_frame_filter): Call
10531 ensure_python_env after computing gdbarch.
10532
17fde6d0
YQ
105332014-01-23 Yao Qi <yao@codesourcery.com>
10534
10535 * target.c (raw_memory_xfer_partial): Change argument type
10536 from void * to gdb_byte *.
10537 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10538
87ce2a04
DE
105392014-01-22 Doug Evans <dje@google.com>
10540
10541 New gdbserver option --debug-format=timestamp.
10542 * NEWS: Mention it.
10543
237b092b
AA
105442014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10545
10546 * syscalls/s390x-linux.xml: New file.
10547 * syscalls/s390-linux.xml: New file.
10548 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10549 (XML_SYSCALL_FILENAME_S390X): Likewise.
10550 (op_svc): New enum value for SVC opcode.
10551 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10552 (s390_linux_get_syscall_number): New function.
10553 (s390_gdbarch_init): Register '*get_syscall_number' and the
10554 syscall xml file name.
10555 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10556 "s390-linux.xml" and "s390x-linux.xml".
10557 * NEWS: Announce new feature.
10558
54bff650
BS
105592014-01-22 Baruch Siach <baruch@tkos.co.il>
10560
10561 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10562
14e361d7
PA
105632014-01-22 Pedro Alves <palves@redhat.com>
10564
10565 * xtensa-config.c: Include defs.h.
10566
46bbb3ed
JB
105672014-01-22 Joel Brobecker <brobecker@adacore.com>
10568
10569 * common/common-utils.h: Add "ARI:" comment beside __func__
10570 reference.
10571
3a80edfc
JB
105722014-01-22 Joel Brobecker <brobecker@adacore.com>
10573
10574 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10575 documentation a bit.
10576
4869db5e
RM
105772014-01-21 Roland McGrath <mcgrathr@google.com>
10578
10579 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10580 * configure: Regenerate.
10581 * aclocal.m4: Regenerate.
10582 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10583 New substituted variables.
10584 (install-strip): New target.
10585 (INSTALL_SCRIPT): New substituted variable.
10586 (FLAGS_TO_PASS): Add it.
10587 (install-only): Use $(INSTALL_SCRIPT) rather than
10588 $(INSTALL_PROGRAM) for gcore.
10589
9ea4267d
TT
105902014-01-20 Tom Tromey <tromey@redhat.com>
10591
10592 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10593 together.
10594
1f2bdf09
TT
105952014-01-20 Tom Tromey <tromey@redhat.com>
10596
10597 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10598 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10599 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10600 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10601 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10602 (struct cmd_list_element) <flags>: Remove.
10603 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10604 doc_allocated>: New fields.
10605 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10606 bitfields.
10607 * maint.c (maintenance_do_deprecate): Update.
10608 * top.c (execute_command): Update.
10609
e671835b
BS
106102014-01-20 Baruch Siach <baruch@tkos.co.il>
10611
10612 * xtensa-linux-nat.c: Include asm/ptrace.h.
10613
50367cd2
IB
106142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10615
10616 * Makefile.in (SFILES): Add d-support.c.
10617 (COMMON_OBS): Add d-support.o.
10618 * d-lang.h (d_parse_symbol): Add comment, now defined in
10619 d-support.c.
10620 * d-lang.c (parse_call_convention)
10621 (parse_attributes, parse_function_types)
10622 (parse_function_args, parse_type, parse_identifier)
10623 (call_convention_p, d_parse_symbol): Move functions to ...
10624 * d-support.c: ... New file.
10625
ec9f644a
IB
106262014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10627
10628 * d-lang.h (d_parse_symbol): Add declaration.
10629 * d-lang.c (extract_identifiers)
10630 (extract_type_info): Remove functions.
10631 (parse_call_convention, parse_attributes)
10632 (parse_function_types, parse_function_args)
10633 (parse_type, parse_identifier, call_convention_p)
10634 (d_parse_symbol): New functions.
10635 (d_demangle): Use d_parse_symbol to demangle D symbols.
10636
94b1b47e
IB
106372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10638
10639 * d-lang.h (struct builtin_d_type): New data type.
10640 (builtin_d_type): Add declaration.
10641 * d-lang.c (d_language_arch_info, build_d_types)
10642 (builtin_d_type): New functions.
10643 (enum d_primitive_types): New data type.
10644 (d_language_defn): Change c_language_arch_info to
10645 d_language_arch_info.
10646 (d_type_data): New static variable.
10647 (_initialize_d_language): Initialize d_type_data.
10648
63778547
IB
106492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10650
10651 * d-lang.h (d_main_name): Add declaration.
10652 * d-lang.c (d_main_name): New function.
10653 * symtab.c (find_main_name): Add call to d_main_name.
10654
3271ba66
IB
106552014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10656
10657 * d-lang.c (d_language_defn): Change macro_expansion_c to
10658 macro_expansion_no.
10659
d36b3012
IB
106602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10661
10662 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10663
c90a6fb7
SDJ
106642014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10665
10666 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10667 gdb_exception" declaration.
10668 * remote.c (getpkt_or_notif_sane): Likewise.
10669
749234e5
DE
106702014-01-17 Doug Evans <dje@google.com>
10671
10672 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10673 function, contents of dirnames_to_char_ptr_vec_append moved here.
10674 (delim_string_to_char_ptr_vec): New function.
10675 (dirnames_to_char_ptr_vec_append): Rewrite.
10676 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10677
df049a58
DE
106782014-01-17 Doug Evans <dje@google.com>
10679
10680 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10681 and moved here ...
10682 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10683 #include "common-utils.h".
10684 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10685 * common/vec.h (VEC_ASSERT_PASS): Update.
10686 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10687 (MACH_CHECK_ERROR): Update.
10688
69f97648
SM
106892014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10690
10691 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10692 comments.
10693 * gdbarch.h: Regenerate.
10694
98b1cfdc
TT
106952014-01-16 Tom Tromey <tromey@redhat.com>
10696
10697 * value.c (struct value) <regnum>: Move earlier.
10698
77a19445
TT
106992014-01-16 Tom Tromey <tromey@redhat.com>
10700
10701 * remote.c (extended_remote_create_inferior): Rename from
10702 extended_remote_create_inferior_1. Add "ops" argument. Remove
10703 old implementation.
10704
62261490
PA
107052014-01-16 Pedro Alves <palves@redhat.com>
10706
10707 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10708 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10709 the backchain.
10710
4d65956b
DE
107112014-01-16 Doug Evans <dje@google.com>
10712
10713 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10714
52834460
MM
107152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10716
10717 * btrace.h (btrace_thread_flag): New.
10718 (struct btrace_thread_info) <flags>: New.
10719 * record-btrace.c (record_btrace_resume_thread)
10720 (record_btrace_find_thread_to_move, btrace_step_no_history)
10721 (btrace_step_stopped, record_btrace_start_replaying)
10722 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10723 (record_btrace_find_resume_thread): New.
10724 (record_btrace_resume, record_btrace_wait): Extend.
10725 (record_btrace_can_execute_reverse): New.
10726 (record_btrace_open): Fail in non-stop mode.
10727 (record_btrace_set_replay): Split into this, ...
10728 (record_btrace_stop_replaying): ... this, ...
10729 (record_btrace_clear_histories): ... and this.
10730 (init_record_btrace_ops): Init to_can_execute_reverse.
10731 * NEWS: Announce it.
10732
118e6252
MM
107332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10734
10735 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10736 (forward_target_decr_pc_after_break)
10737 (target_decr_pc_after_break): New.
10738 * target.c (forward_target_decr_pc_after_break)
10739 (target_decr_pc_after_break): New.
10740 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10741 instead of gdbarch_decr_pc_after_break.
10742 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10743 instead of gdbarch_decr_pc_after_break.
10744 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10745 instead of gdbarch_decr_pc_after_break.
10746 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10747 instead of gdbarch_decr_pc_after_break.
10748 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10749 instead of gdbarch_decr_pc_after_break.
10750 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10751 instead of gdbarch_decr_pc_after_break.
10752
6e07b1d2
MM
107532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10754
10755 * btrace.c: Include regcache.h.
10756 (btrace_add_pc): New.
10757 (btrace_enable): Call btrace_add_pc.
10758 (btrace_is_empty): New.
10759 * btrace.h (btrace_is_empty): New.
10760 * record-btrace.c (require_btrace, record_btrace_info): Call
10761 btrace_is_empty.
10762
969c39fb
MM
107632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10764
10765 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10766 Support delta reads.
10767 (linux_disable_btrace): Change return type.
10768 * common/linux-btrace.h (linux_read_btrace): Change parameters
10769 and return type to allow error reporting. Update users.
10770 (linux_disable_btrace): Change return type. Update users.
10771 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10772 New.
10773 (btrace_error): New.
10774 (btrace_block) <begin>: Comment on BEGIN == 0.
10775 * btrace.c (btrace_compute_ftrace): Start from the end of
10776 the current trace.
10777 (btrace_stitch_trace, btrace_clear_history): New.
10778 (btrace_fetch): Read delta trace, return if replaying.
10779 (btrace_clear): Move clear history code to btrace_clear_history.
10780 (parse_xml_btrace): Throw an error if parsing failed.
10781 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10782 and return type to allow error reporting.
10783 (target_read_btrace): Change parameters and return type to allow
10784 error reporting.
10785 * target.c (target_read_btrace): Update.
10786 * remote.c (remote_read_btrace): Support delta reads. Pass
10787 errors on.
10788 * NEWS: Announce it.
10789
0b722aec
MM
107902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10791
10792 * record.h (record_btrace_frame_unwind)
10793 (record_btrace_tailcall_frame_unwind): New declarations.
10794 * dwarf2-frame: Include record.h
10795 (dwarf2_frame_cfa): Throw an error for btrace frames.
10796 * record-btrace.c: Include hashtab.h.
10797 (btrace_get_bfun_name): New.
10798 (btrace_call_history): Call btrace_get_bfun_name.
10799 (struct btrace_frame_cache): New.
10800 (bfcache): New.
10801 (bfcache_hash, bfcache_eq, bfcache_new): New.
10802 (btrace_get_frame_function): New.
10803 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10804 (record_btrace_frame_this_id): Compute own id.
10805 (record_btrace_frame_prev_register): Provide PC, throw_error
10806 for all other registers.
10807 (record_btrace_frame_sniffer): Detect btrace frames.
10808 (record_btrace_tailcall_frame_sniffer): New.
10809 (record_btrace_frame_dealloc_cache): New.
10810 (record_btrace_frame_unwind): Add new functions.
10811 (record_btrace_tailcall_frame_unwind): New.
10812 (_initialize_record_btrace): Allocate cache.
10813 * btrace.c (btrace_clear): Call reinit_frame_cache.
10814 * NEWS: Announce it.
10815
066ce621
MM
108162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10817
10818 * record-btrace.c (record_btrace_set_replay)
10819 (record_btrace_goto_begin, record_btrace_goto_end)
10820 (record_btrace_goto): New.
10821 (init_record_btrace_ops): Initialize them.
10822 * NEWS: Announce it.
10823
e2887aa3
MM
108242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10825
10826 * record-btrace.c (record_btrace_find_new_threads)
10827 (record_btrace_thread_alive): New.
10828 (init_record_btrace_ops): Initialize to_find_new_threads and
10829 to_thread_alive.
10830
b2f4cfde
MM
108312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10832
10833 * record-btrace.c (record_btrace_resume): New.
10834 (record_btrace_wait): New.
10835 (init_record_btrace_ops): Initialize to_wait and to_resume.
10836
633785ff
MM
108372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10838
10839 * record-btrace.c (record_btrace_xfer_partial)
10840 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10841 (record_btrace_allow_memory_access): New.
10842 (init_record_btrace_ops): Initialize new methods.
10843 * target.c (raw_memory_xfer_partial): Bail out if target reports
10844 that this memory is not available.
10845
3db08215
MM
108462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10847
10848 * target.h (target_ops) <to_insert_breakpoint>
10849 <to_remove_breakpoint>: Add target_ops parameter.
10850 (forward_target_insert_breakpoint): New.
10851 (forward_target_remove_breakpoint): New.
10852 (memory_remove_breakpoint, memory_insert_breakpoint):
10853 Add target_ops parameter.
10854 * target.c (target_insert_breakpoint): Split into this and ...
10855 (forward_target_insert_breakpoint): ... this.
10856 (target_remove_breakpoint): Split into this and ...
10857 (forward_target_remove_breakpoint): ... this.
10858 (debug_to_insert_breakpoint): Add target_ops parameter.
10859 Call forward_target_insert_breakpoint.
10860 (debug_to_remove_breakpoint): Add target_ops parameter.
10861 Call forward_target_remove_breakpoint.
10862 (update_current_target): Do not inherit or default to_insert_breakpoint
10863 and to_remove_breakpoint.
10864 * corelow.c (ignore): Add target_ops parameter.
10865 * exec.c (ignore): Add target_ops parameter.
10866 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10867 Add target_ops parameter.
10868 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10869 Add target_ops parameter.
10870 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10871 Add target_ops parameter.
10872 * record-full.c (record_full_beneath_to_insert_breakpoint)
10873 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10874 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10875 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10876 (record_full_core_remove_breakpoint): Add target_ops parameter.
10877 Update users.
10878 (record_full_beneath_to_insert_breakpoint_ops)
10879 (record_full_beneath_to_remove_breakpoint_ops)
10880 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10881 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10882 tmp_to_remove_breakpoint_ops,
10883 record_full_beneath_to_insert_breakpoint_ops, and
10884 record_full_beneath_to_remove_breakpoint_ops.
10885 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10886 (m32r_remove_breakpoint): Add target_ops parameter.
10887 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10888 Add target_ops parameter.
10889 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10890 Add target_ops parameter.
10891
cecac1ab
MM
108922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10893 Markus Metzger <markus.t.metzger@intel.com>
10894
10895 * record-btrace.c: Include frame-unwind.h.
10896 (record_btrace_frame_unwind_stop_reason)
10897 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10898 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10899 New.
10900 (init_record_btrace_ops): Install it.
10901
824344ca
MM
109022014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10903
10904 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10905 get_prev_frame_1.
10906
32261e52
MM
109072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10908
10909 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10910 earlier.
10911
ea001bdc
MM
109122014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10913
10914 * frame-unwind.c: Include target.h.
10915 (frame_unwind_try_unwinder): New function with code from ...
10916 (frame_unwind_find_by_frame): ... here. New variable
10917 unwinder_from_target, call also target_get_unwinder)
10918 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10919 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10920 * target.h (struct target_ops): New fields to_get_unwinder and
10921 to_get_tailcall_unwinder.
10922 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10923
1f3ef581
MM
109242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10925
10926 * record-btrace.c (record_btrace_fetch_registers)
10927 (record_btrace_store_registers)
10928 (record_btrace_to_prepare_to_store): New.
10929 (init_record_btrace_ops): Add the above.
10930
f32dbf8c
MM
109312014-01-16 Tom Tromey <tromey@redhat.com>
10932
10933 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10934 * target.h (struct target_ops) <to_prepare_to_store>: Add
10935 argument.
10936 (target_prepare_to_store): Add argument.
10937 * target.c (debug_to_prepare_to_store): Add argument.
10938 (update_current_target): Update.
10939 * remote.c (remote_prepare_to_store): Add 'self' argument.
10940 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10941 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10942 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10943 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10944 argument.
10945 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10946 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10947 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10948 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10949 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10950
07bbe694
MM
109512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10952
10953 * btrace.h (replay) <replay>: New.
10954 (btrace_is_replaying): New.
10955 * btrace.c (btrace_clear): Free replay iterator.
10956 (btrace_is_replaying): New.
10957 * record-btrace.c (record_btrace_is_replaying): New.
10958 (record_btrace_info): Print insn number if replaying.
10959 (record_btrace_insn_history): Start at replay position.
10960 (record_btrace_call_history): Start at replay position.
10961 (init_record_btrace_ops): Init to_record_is_replaying.
10962
0688d04e
MM
109632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10964
10965 * record-btrace.c (record_btrace_insn_history_range): Include
10966 end.
10967 (record_btrace_insn_history_from): Adjust range.
10968 (record_btrace_call_history_range): Include
10969 end.
10970 (record_btrace_call_history_from): Adjust range.
10971 * NEWS: Announce changes.
10972
8710b709
MM
109732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10974
10975 * record.h (enum record_print_flag)
10976 <record_print_indent_calls>: New.
10977 * record.c (get_call_history_modifiers): Recognize /c modifier.
10978 (_initialize_record): Document /c modifier.
10979 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10980 Reorder fields. Optionally indent the function name. Update
10981 all users.
10982 * NEWS: Announce changes.
10983
d0fa7535
MM
109842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10985
10986 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10987
5de9129b
MM
109882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10989
10990 * btrace.c (ftrace_new_function): Start counting at one.
10991 * record-btrace.c (record_btrace_info): Adjust number of calls
10992 and insns.
10993 * NEWS: Announce it.
10994
7acbe133
MM
109952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10996
10997 * record-btrace.c (btrace_call_history_insn_range): Print
10998 insn range as [begin, end].
10999
23a7fe75
MM
110002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11001
11002 * btrace.h (struct btrace_func_link): New.
11003 (enum btrace_function_flag): New.
11004 (struct btrace_inst): Rename to ...
11005 (struct btrace_insn): ...this. Update all users.
11006 (struct btrace_func) <ibegin, iend>: Remove.
11007 (struct btrace_func_link): New.
11008 (struct btrace_func): Rename to ...
11009 (struct btrace_function): ...this. Update all users.
11010 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11011 (number, level, flags>: New.
11012 (struct btrace_insn_iterator): Rename to ...
11013 (struct btrace_insn_history): ...this.
11014 Update all users.
11015 (struct btrace_insn_iterator, btrace_call_iterator): New.
11016 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11017 (struct btrace_target_info) <begin, end, level>
11018 <insn_history, call_history>: New.
11019 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11020 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11021 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11022 (btrace_call_number, btrace_call_begin, btrace_call_end)
11023 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11024 (btrace_find_function_by_number, btrace_set_insn_history)
11025 (btrace_set_call_history): New.
11026 * btrace.c (btrace_init_insn_iterator)
11027 (btrace_init_func_iterator, compute_itrace): Remove.
11028 (ftrace_print_function_name, ftrace_print_filename)
11029 (ftrace_skip_file): Change
11030 parameter to const.
11031 (ftrace_init_func): Remove.
11032 (ftrace_debug): Use new btrace_function fields.
11033 (ftrace_function_switched): Also consider gaining and
11034 losing symbol information).
11035 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11036 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11037 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11038 New.
11039 (ftrace_new_function): Move. Remove debug print.
11040 (ftrace_update_lines, ftrace_update_insns): New.
11041 (ftrace_update_function): Check for call, ret, and jump.
11042 (compute_ftrace): Renamed to ...
11043 (btrace_compute_ftrace): ...this. Rewritten to compute call
11044 stack.
11045 (btrace_fetch, btrace_clear): Updated.
11046 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11047 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11048 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11049 (btrace_call_number, btrace_call_begin, btrace_call_end)
11050 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11051 (btrace_find_function_by_number, btrace_set_insn_history)
11052 (btrace_set_call_history): New.
11053 * record-btrace.c (require_btrace): Use new btrace thread
11054 info fields.
11055 (record_btrace_info, btrace_insn_history)
11056 (record_btrace_insn_history, record_btrace_insn_history_range):
11057 Use new btrace thread info fields and new iterator.
11058 (btrace_func_history_src_line): Rename to ...
11059 (btrace_call_history_src_line): ...this. Use new btrace
11060 thread info fields.
11061 (btrace_func_history): Rename to ...
11062 (btrace_call_history): ...this. Use new btrace thread info
11063 fields and new iterator.
11064 (record_btrace_call_history, record_btrace_call_history_range):
11065 Use new btrace thread info fields and new iterator.
11066
8372a7cb
MM
110672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11068
11069 * frame.h (frame_id_build_unavailable_stack_special): New.
11070 * frame.c (frame_id_build_unavailable_stack_special): New.
11071
c2170eef
MM
110722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11073
11074 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11075 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11076 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11077 to gdbarch.
11078 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11079 (i386_insn_is_jump, i386_jmp_p): New.
11080 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11081 insn_is_jump to gdbarch.
11082 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11083 * gdbarch.h: Regenerated.
11084 * gdbarch.c: Regenerated.
11085 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11086 (default_insn_is_jump): New.
11087 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11088 (default_insn_is_jump): New.
11089
864089d2
MM
110902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11091
11092 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11093 Change to ...
11094 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11095 (btrace_read_type) <btrace_read_new>: Change to ...
11096 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11097
ed9edfb5
MM
110982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11099
11100 * common/linux-btrace.c (linux_read_btrace): Free trace from
11101 previous iteration.
11102
fbcbc3fd
DE
111032014-01-15 Doug Evans <dje@google.com>
11104
11105 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11106 uint32_t.
11107
3d548a53
TT
111082014-01-15 Tom Tromey <tromey@redhat.com>
11109
11110 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11111 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11112 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11113 (set_objfile_main_name): New function.
11114 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11115 language_of_main>: New fields.
11116 (set_objfile_main_name): Declare.
11117 * symtab.c (find_main_name): Loop over objfiles to find the main
11118 name and language.
11119 (set_main_name): Now static.
11120 (get_main_info): Add comment.
11121 * symtab.h (set_main_name): Don't declare.
11122
32ac0d11
TT
111232014-01-15 Tom Tromey <tromey@redhat.com>
11124
11125 * symtab.c (main_progspace_key): New global.
11126 (struct main_info): New.
11127 (name_of_main, language_of_main): Remove.
11128 (get_main_info, main_info_cleanup): New function.
11129 (set_main_name, main_name, main_language): Use get_main_info.
11130 (_initialize_symtab): Initialize main_progspace_key.
11131
9e6c82ad
TT
111322014-01-15 Tom Tromey <tromey@redhat.com>
11133
11134 * dbxread.c (process_one_symbol): Update.
11135 * dwarf2read.c (read_partial_die): Update.
11136 * symfile.c (set_initial_language): Call main_language.
11137 * symtab.c (language_of_main): Now static.
11138 (set_main_name): Add 'lang' parameter.
11139 (find_main_name): Update.
11140 (main_language): New function.
11141 (symtab_observer_executable_changed): Update.
11142 * symtab.h (set_main_name): Update.
11143 (language_of_main): Remove.
11144 (main_language): Declare.
11145
6ef55de7
TT
111462014-01-15 Tom Tromey <tromey@redhat.com>
11147
11148 * symfile.c (init_entry_point_info): Use new "initialized" field.
11149 Update.
11150 * objfiles.h (struct entry_point) <initialized>: New field.
11151 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11152 (struct objfile) <ei>: ...here. Remove.
11153 * objfiles.c (entry_point_address_query): Update.
11154
53eddfa6
TT
111552014-01-15 Tom Tromey <tromey@redhat.com>
11156
11157 * objfiles.c (entry_point_address_query): Relocate entry point
11158 address.
11159 (objfile_relocate1): Do not relocate entry point address.
11160 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11161 <the_bfd_section_index>: New field.
11162 * symfile.c (init_entry_point_info): Find the entry point's
11163 section.
11164
d56e56aa
TT
111652014-01-15 Tom Tromey <tromey@redhat.com>
11166
11167 * solib-frv.c (enable_break): Use entry_point_address_query.
11168
33a97bbe
OJ
111692014-01-15 Omair Javaid <omair.javaid@linaro.org>
11170
11171 * NEWS: Add note on improved process record-replay on
11172 arm*-linux* targets.
11173
c6ec2b30
OJ
111742014-01-15 Omair Javaid <omair.javaid@linaro.org>
11175
11176 * arm-tdep.c (enum arm_record_result): New enum.
11177 (arm_record_unsupported_insn): New function.
11178 (arm_record_coproc_data_proc): Removed.
11179 (thumb2_record_ld_st_multiple): New function.
11180 (thumb2_record_ld_st_dual_ex_tbb): New function.
11181 (thumb2_record_data_proc_sreg_mimm): New function.
11182 (thumb2_record_ps_dest_generic): New function.
11183 (thumb2_record_branch_misc_cntrl): New function.
11184 (thumb2_record_str_single_data): New function.
11185 (thumb2_record_ld_mem_hints): New function.
11186 (thumb2_record_ld_word): New function.
11187 (thumb2_record_lmul_lmla_div): New function.
11188 (thumb2_record_decode_insn_handler): New function.
11189 (decode_insn): Add thumb32 instruction handlers.
11190
97dfe206
OJ
111912014-01-15 Omair Javaid <omair.javaid@linaro.org>
11192
11193 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11194 (struct arm_linux_record_tdep): Declare.
11195 (arm_canonicalize_syscall): New function.
11196 (arm_all_but_pc_registers_record): New function.
11197 (arm_linux_syscall_record): New function.
11198 (arm_linux_init_abi): Add syscall recording constructs.
11199 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11200 decoding. (arm_record_coproc_data_proc): Update arm syscall
11201 decoding.
11202 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11203 <arm_syscall_record>: New field.
11204 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11205 gdb_target_obs.
11206
9904a494
OJ
112072014-01-15 Omair Javaid <omair.javaid@linaro.org>
11208
11209 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11210 register for push instruction recording.
11211
f969241e
OJ
112122014-01-15 Omair Javaid <omair.javaid@linaro.org>
11213
11214 * arm-tdep.c (thumb_record_misc): Update to correct logical
11215 error while recording ldm, ldmia and pop instructions.
11216
bfbbec00
OJ
112172014-01-15 Omair Javaid <omair.javaid@linaro.org>
11218
11219 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11220
e40adcc9
PA
112212014-01-15 Pedro Alves <palves@redhat.com>
11222
11223 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11224 (go32_resume, go32_fetch_registers, store_register)
11225 (go32_store_registers, go32_prepare_to_store)
11226 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11227 (go32_create_inferior, go32_can_run, go32_terminal_init)
11228 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11229 declarations.
11230
b0a16e66
TT
112312014-01-15 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (async_callback_ftype): New typedef.
11234 (struct target_ops) <to_async>: Use it.
11235
bf7105a4
JB
112362014-01-15 Joel Brobecker <brobecker@adacore.com>
11237
11238 * python/py-value.c (get_field_type): Remove unnecessary curly
11239 braces for single-statement if block.
11240
a8f35c2e
JB
112412014-01-15 Joel Brobecker <brobecker@adacore.com>
11242
11243 * python/py-type.c (convert_field): Add missing empty line
11244 after declarations.
11245
bb4142cf
DE
112462014-01-14 Doug Evans <dje@google.com>
11247
11248 * symfile.h (expand_symtabs_matching): Renamed from
11249 expand_partial_symbol_names. Update prototype.
11250 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11251 * symfile.c (expand_symtabs_matching): Renamed from
11252 expand_partial_symbol_names. New args file_matcher, kind.
11253 Rename arg fun to symbol_matcher.
11254 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11255 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11256 ada_expand_partial_symbol_name.
11257 (ada_make_symbol_completion_list): Update to call
11258 expand_symtabs_matching.
11259 (ada_add_global_exceptions): Call expand_symtabs_matching.
11260 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11261 call map_symbol_filenames.
11262 * symtab.c (sources_info): Update to call map_symbol_filenames.
11263 (search_symbols): Call expand_symtabs_matching.
11264 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11265 (default_make_symbol_completion_list_break_on): Update to call
11266 expand_symtabs_matching.
11267 (make_source_files_completion_list): Update to call
11268 map_symbol_filenames.
11269
206f2a57
DE
112702014-01-14 Doug Evans <dje@google.com>
11271
11272 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11273 (expand_symtabs_symbol_matcher_ftype): New typedef.
11274 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11275 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11276 * symfile.c (expand_partial_symbol_names): Update to use
11277 expand_symtabs_symbol_matcher_ftype.
11278 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11279 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11280 Arg name_matcher renamed to symbol_matcher.
11281 * psymtab.c (recursively_search_psymtabs): Update to use
11282 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11283 sym_matcher.
11284 (expand_symtabs_matching_via_partial): Update to use
11285 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11286 Arg name_matcher renamed to symbol_matcher.
11287
540c2971
DE
112882014-01-14 Doug Evans <dje@google.com>
11289
11290 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11291 (map_partial_symbol_filenames): Ditto.
11292 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11293 (map_partial_symbol_filenames): Ditto.
11294 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11295 (map_partial_symbol_filenames): Ditto.
11296 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11297 (map_partial_symbol_filenames): Ditto.
11298 * symtab.c: Delete #include "psymtab.h".
11299
8213266a
PA
113002014-01-14 Pedro Alves <palves@redhat.com>
11301 Tom Tromey <tromey@redhat.com>
11302
11303 * infrun.c (use_displaced_stepping): Use find_record_target
11304 instead of RECORD_IS_USED.
11305 (adjust_pc_after_break): Use record_full_is_used instead of
11306 RECORD_IS_USED.
11307 * record-btrace.c (record_btrace_open): Call record_preopen
11308 instead of checking RECORD_IS_USED.
11309 * record-full.c (record_full_shortname)
11310 (record_full_core_shortname): New globals.
11311 (record_full_is_used): New function.
11312 (find_full_open): Call record_preopen instead of checking
11313 RECORD_IS_USED.
11314 (init_record_full_ops): Set the target's shortname to
11315 record_full_shortname.
11316 (init_record_full_core_ops): Set the target's shortname to
11317 record_full_core_shortname.
11318 * record-full.h (record_full_is_used): Declare.
11319 * record.c (find_record_target): Make extern.
11320 (record_preopen): New function.
11321 * record.h (RECORD_IS_USED): Delete macro.
11322 (find_record_target, record_preopen): Declare functions.
11323
7ec1862d
YQ
113242014-01-14 Yao Qi <yao@codesourcery.com>
11325
11326 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11327 'len''s type to ULONGEST.
11328 (core_xfer_shared_libraries_aix): Likewise.
11329 * gdbarch.c, gdbarch.h: Regenerated.
11330 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11331 Change type of 'len' to ULONGEST.
11332 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11333 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11334
dea80a27
YQ
113352014-01-14 Yao Qi <yao@codesourcery.com>
11336
11337 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11338 type of 'len' to ULONGEST.
11339 (linux_xfer_osdata_processgroups): Likewise.
11340 (linux_xfer_osdata_threads): Likewise.
11341 (linux_xfer_osdata_fds): Likewise.
11342 (linux_xfer_osdata_isockets): Likewise.
11343 (linux_xfer_osdata_shm): Likewise.
11344 (linux_xfer_osdata_sem): Likewise.
11345 (linux_xfer_osdata_msg): Likewise.
11346 (linux_common_xfer_osdata): Likewise.
11347 (struct osdata_type) <getter>: Likewise.
11348 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11349 the declaration.
11350
b55e14c7
YQ
113512014-01-14 Yao Qi <yao@codesourcery.com>
11352
11353 * target.h (target_xfer_partial_ftype): Update.
11354 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11355 ULONGEST.
11356 * aix-thread.c (aix_thread_xfer_partial): Change type of
11357 argument 'len' to ULONGEST.
11358 * auxv.c (procfs_xfer_auxv): Likewise.
11359 (ld_so_xfer_auxv): Likewise.
11360 (memory_xfer_auxv): Likewise.
11361 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11362 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11363 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11364 * corelow.c (core_xfer_partial): Likewise.
11365 * ctf.c (ctf_xfer_partial): Likewise.
11366 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11367 '%u'.
11368 (darwin_read_dyld_info): Likewise.
11369 (darwin_xfer_partial): Likewise.
11370 * exec.c (section_table_xfer_memory_partial): Likewise.
11371 (exec_xfer_partial): Likewise.
11372 * exec.h (section_table_xfer_memory_partial): Update
11373 declaration.
11374 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11375 instead of plongest.
11376 (gnu_xfer_partial): Likewise.
11377 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11378 (ia64_hpux_xfer_solib_got): Likewise.
11379 (ia64_hpux_xfer_partial): Likewise.
11380 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11381 * inf-ptrace.c (inf_ptrace_xfer_partial):
11382 * inf-ttrace.c (inf_ttrace_xfer_partial):
11383 * linux-nat.c (linux_xfer_siginfo): Likewise.
11384 (linux_nat_xfer_partial): Likewise.
11385 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11386 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11387 * monitor.c (monitor_xfer_memory): Likewise.
11388 (monitor_xfer_partial): Likewise.
11389 * procfs.c (procfs_xfer_partial): Likewise.
11390 * record-full.c (record_full_xfer_partial): Likewise.
11391 (record_full_core_xfer_partial): Likewise.
11392 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11393 instead of plongest.
11394 (gdbsim_xfer_partial): Likewise.
11395 * remote.c (remote_xfer_partial): Likewise.
11396 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11397 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11398 declaration.
11399 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11400 (rs6000_xfer_shared_libraries): Likewise.
11401 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11402 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11403 (sparc_xfer_partial): Likewise.
11404 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11405 (spu_xfer_partial): Likewise.
11406 * spu-multiarch.c (spu_xfer_partial): Likewise.
11407 * target.c (target_read_live_memory): Likewise.
11408 (memory_xfer_live_readonly_partial): Likewise.
11409 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11410 (target_xfer_partial, default_xfer_partial): Likewise.
11411 (current_xfer_partial): Likewise.
11412 * tracepoint.c (tfile_xfer_partial): Likewise.
11413 * windows-nat.c (windows_xfer_memory): Likewise. Call
11414 pulongest instead of plongest.
11415 (windows_xfer_partial): Likewise.
11416 (windows_xfer_shared_libraries): Likewise.
11417
05804640
YQ
114182014-01-14 Yao Qi <yao@codesourcery.com>
11419
11420 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11421 target_xfer_partial_ftype.
11422
b5b08fb4
SC
114232014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11424
11425 PR python/15464
11426 PR python/16113
11427 * valops.c (value_struct_elt_bitpos): New function
11428 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11429 object to 'None' if the field name is an empty string ("").
11430 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11431 attribute to look for a field when 'name' is 'None'.
11432 (get_field_type): New function
11433
13aaf454
DE
114342014-01-13 Doug Evans <dje@google.com>
11435
11436 PR symtab/16426
11437 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11438 (try_open_dwop_file): Ditto.
11439 * gdb_bfd.c: #include "vec.h".
11440 (bfdp): New typedef.
11441 (struct gdb_bfd_data): New member included_bfds.
11442 (gdb_bfd_unref): Unref all included bfds.
11443 (gdb_bfd_record_inclusion): New function.
11444 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11445
c2cec97c
TT
114462014-01-13 Tom Tromey <tromey@redhat.com>
11447
11448 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11449
78e5999d
TT
114502014-01-13 Tom Tromey <tromey@redhat.com>
11451
11452 * defs.h (use_windows): Remove.
11453 * gdb.c (main): Update.
11454 * main.c (captured_main, gdb_main): Update.
11455 * main.h (struct captured_main_args) <use_windows>: Remove.
11456 * top.c (use_windows): Remove.
11457
f2052bbe
TT
114582014-01-13 Tom Tromey <tromey@redhat.com>
11459
11460 * defs.h (deprecated_flush_hook): Remove.
11461
fde4f8ed
JK
114622014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11463
11464 PR threads/16216
11465 * linux-thread-db.c (try_thread_db_load): Add parameter
11466 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11467 (try_thread_db_load_from_pdir_1): Move it there from here.
11468 (try_thread_db_load_from_sdir): Update caller.
11469 (try_thread_db_load_from_dir): Move it there from here.
11470
bdf61915
PP
114712014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11472
11473 * regformats/regdat.sh: Always rewrite the register file.
11474
f71e1a8d
PA
114752014-01-13 Pedro Alves <palves@redhat.com>
11476
11477 * Makefile.in (CHECK_HEADERS): New variable.
11478 (check-headers:): New rule.
11479
42c85435
TT
114802014-01-13 Tom Tromey <tromey@redhat.com>
11481
11482 * cli/cli-setshow.c (do_set_command): Update.
11483 * defs.h (deprecated_set_hook): Remove.
11484 * top.c (deprecated_set_hook): Remove.
11485
f8de5129
PA
114862014-01-13 Pedro Alves <palves@redhat.com>
11487
11488 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11489 the tracepoint if the PC is a pseudo-register.
11490
fc270c35
TT
114912014-01-13 Tom Tromey <tromey@redhat.com>
11492
11493 * defs.h (XCALLOC): Remove.
11494 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11495 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11496 * dwarf2loc.c (allocate_piece_closure): Likewise.
11497 * elfread.c (elf_symfile_segments): Likewise.
11498 (elf_symfile_segments): Likewise.
11499 * gdbtypes.c (copy_type_recursive): Likewise.
11500 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11501 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11502 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11503 XCALLOC.
11504 * mt-tdep.c (mt_gdbarch_init): Likewise.
11505 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11506 XCALLOC.
11507 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11508 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11509 * registry.c (registry_alloc_data): Likewise.
11510 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11511 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11512 * serial.c (serial_fdopen_ops): Likewise.
11513 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11514 XCALLOC.
11515 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11516 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11517 not XCALLOC.
11518
70ba0933
TT
115192014-01-13 Tom Tromey <tromey@redhat.com>
11520
11521 * defs.h (XMALLOC): Remove.
11522 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11523 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11524 * cli-out.c (struct ui_out *): Likewise.
11525 * cli/cli-dump.c (add_dump_command): Likewise.
11526 (add_dump_command): Likewise.
11527 * complaints.c (get_complaints): Likewise.
11528 (find_complaint): Likewise.
11529 * dwarf2-frame.c (execute_cfa_program): Likewise.
11530 * dwarf2read.c (abbrev_table_read_table): Likewise.
11531 * gdbarch.sh: Likewise.
11532 * gdbarch.c: Rebuild.
11533 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11534 * interps.c (interp_new): Likewise.
11535 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11536 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11537 * mi/mi-console.c (mi_console_file_new): Likewise.
11538 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11539 * mi/mi-out.c (mi_out_new): Likewise.
11540 * mi/mi-parse.c (mi_parse): Likewise.
11541 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11542 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11543 * observer.c (xalloc_observer_list_node): Likewise.
11544 * regcache.c (regcache_xmalloc_1): Likewise.
11545 * reggroups.c (reggroup_new): Likewise.
11546 (_initialize_reggroup): Likewise.
11547 * registry.c (register_data_with_cleanup): Likewise.
11548 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11549 * ser-base.c (serial_ttystate): Likewise.
11550 * ser-mingw.c (make_pipe_state): Likewise.
11551 * ser-pipe.c (pipe_open): Likewise.
11552 * serial.c (serial_open): Likewise.
11553 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11554 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11555 (tui_alloc_win_info): Likewise.
11556 (tui_add_content_elements): Likewise.
11557 * tui/tui-file.c (tui_file_new): Likewise.
11558 * tui/tui-out.c (tui_out_new): Likewise.
11559 * ui-file.c (mem_file_new): Likewise.
11560 * ui-out.c (push_level): Likewise.
11561 (make_cleanup_ui_out_end): Likewise.
11562 (append_header_to_list): Likewise.
11563 (ui_out_new): Likewise.
11564 * user-regs.c (user_reg_add_builtin): Likewise.
11565
41bf6aca
TT
115662014-01-13 Tom Tromey <tromey@redhat.com>
11567
11568 * defs.h (XZALLOC): Remove.
11569 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11570 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11571 (get_ada_tasks_inferior_data): Likewise.
11572 * auto-load.c (get_auto_load_pspace_data): Likewise.
11573 * auxv.c (get_auxv_inferior_data): Likewise.
11574 * bfd-target.c (target_bfd_reopen): Likewise.
11575 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11576 (deprecated_insert_raw_breakpoint): Likewise.
11577 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11578 * corelow.c (core_open): Likewise.
11579 * darwin-nat.c (darwin_check_new_threads): Likewise.
11580 (darwin_attach_pid): Likewise.
11581 * dummy-frame.c (dummy_frame_push): Likewise.
11582 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11583 * dwarf2loc.c (allocate_piece_closure): Likewise.
11584 * elfread.c (elf_symfile_segments): Likewise.
11585 * eval.c (ptrmath_type_p): Likewise.
11586 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11587 * gdbtypes.c (alloc_type_arch): Likewise.
11588 (alloc_type_instance): Likewise.
11589 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11590 * inf-child.c (inf_child_can_use_agent): Likewise.
11591 * inflow.c (get_inflow_inferior_data): Likewise.
11592 * infrun.c (save_infcall_suspend_state): Likewise.
11593 * jit.c (jit_reader_load): Likewise.
11594 (get_jit_objfile_data): Likewise.
11595 (get_jit_program_space_data): Likewise.
11596 (jit_object_open_impl): Likewise.
11597 (jit_symtab_open_impl): Likewise.
11598 (jit_block_open_impl): Likewise.
11599 (jit_frame_sniffer): Likewise.
11600 * linux-fork.c (add_fork): Likewise.
11601 * maint.c (make_command_stats_cleanup): Likewise.
11602 * objfiles.c (get_objfile_pspace_data): Likewise.
11603 * opencl-lang.c (struct lval_closure): Likewise.
11604 * osdata.c (osdata_start_osdata): Likewise.
11605 * progspace.c (new_address_space): Likewise.
11606 (add_program_space): Likewise.
11607 * remote-sim.c (get_sim_inferior_data): Likewise.
11608 * sh-tdep.c (sh_gdbarch_init): Likewise.
11609 * skip.c (Ignore): Likewise.
11610 (skip_delete_command): Likewise.
11611 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11612 (library_list_start_library): Likewise.
11613 (solib_aix_current_sos): Likewise.
11614 * solib-darwin.c (get_darwin_info): Likewise.
11615 (darwin_current_sos): Likewise.
11616 * solib-dsbt.c (get_dsbt_info): Likewise.
11617 * solib-ia64-hpux.c (new_so_list): Likewise.
11618 (ia64_hpux_get_solib_linkage_addr): Likewise.
11619 * solib-spu.c (append_ocl_sos): Likewise.
11620 (spu_current_sos): Likewise.
11621 * solib-svr4.c (get_svr4_info): Likewise.
11622 (svr4_keep_data_in_core): Likewise.
11623 (library_list_start_library): Likewise.
11624 (svr4_default_sos): Likewise.
11625 (svr4_read_so_list): Likewise.
11626 * solib-target.c (library_list_start_library): Likewise.
11627 (solib_target_current_sos): Likewise.
11628 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11629 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11630 * symfile.c (default_symfile_segments): Likewise.
11631 * target-descriptions.c (tdesc_data_init): Likewise.
11632 (tdesc_create_reg): Likewise.
11633 (struct tdesc_type *): Likewise.
11634 (tdesc_create_vector): Likewise.
11635 (tdesc_set_struct_size): Likewise.
11636 (struct tdesc_type *): Likewise.
11637 (tdesc_free_feature): Likewise.
11638 (tdesc_create_feature): Likewise.
11639 * windows-nat.c (windows_add_thread): Likewise.
11640 (windows_make_so): Likewise.
11641 * xml-support.c (gdb_xml_body_text): Likewise.
11642 (gdb_xml_create_parser_and_cleanup): Likewise.
11643 (xml_process_xincludes): Likewise.
11644 * xml-syscall.c (allocate_syscalls_info): Likewise.
11645 (syscall_create_syscall_desc): Likewise.
11646
5acfdbae
SDJ
116472014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11648
11649 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11650 function, with code from i386_stap_parse_special_token.
11651 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11652 (i386_stap_parse_special_token): Move code to the two functions
11653 above; simplify it.
11654
0000e5cc
PA
116552014-01-09 Pedro Alves <palves@redhat.com>
11656 Hui Zhu <hui@codesourcery.com>
11657
11658 PR gdb/16101
11659 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11660 bp_err_string. Don't mark the location shlib_disabled if the
11661 error thrown wasn't a generic or memory error. Catch errors
11662 thrown while inserting breakpoints in overlayed code. Output
11663 error message of software breakpoints.
11664 * remote.c (remote_insert_breakpoint): If this breakpoint has
11665 target-side commands but this stub doesn't support Z0 packets,
11666 throw NOT_SUPPORTED_ERROR error.
11667 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11668 * target.h (target_insert_breakpoint): Extend comment.
11669 (target_insert_hw_breakpoint): Add comment.
11670
b7ea362b
PA
116712014-01-08 Pedro Alves <palves@redhat.com>
11672
11673 * remote.c (remote_add_thread): Add threads silently if starting
11674 up.
11675 (remote_notice_new_inferior): If in all-stop, and starting up,
11676 don't call notice_new_inferior.
11677 (get_current_thread): New function, factored out from ...
11678 (add_current_inferior_and_thread): ... this. Adjust.
11679 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11680 found any thread, then select the remote's current thread as GDB's
11681 current thread too.
11682
b7bba001
JB
116832014-01-08 Joel Brobecker <brobecker@adacore.com>
11684
11685 * NEWS: Create a new section for the next release branch.
11686 Rename the section of the current branch, now that it has
11687 been cut.
11688
16dfbded
JB
116892014-01-08 Joel Brobecker <brobecker@adacore.com>
11690
11691 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11692 * version.in: Bump version to 7.7.50.DATE-cvs.
11693
22c90ac1
YQ
116942014-01-08 Yao Qi <yao@codesourcery.com>
11695
11696 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11697 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11698 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11699
d64ad97c
YQ
117002014-01-08 Yao Qi <yao@codesourcery.com>
11701
11702 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11703 return value of bfd_get_filename to symbol_file_add_from_bfd.
11704
f93ba80c
PM
117052014-01-08 Pierre Muller <muller@sourceware.org>
11706
11707 Fix PR16201.
11708 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11709 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11710 to prim_record_mininal_symbol_and_info.
11711 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11712 in call to prim_record_minimal_symbol_and_info.
11713 (read_pe_exported_syms): Set index field of section_data.
11714
a4d9ba85
AP
117152014-01-07 Andrew Pinski <apinski@cavium.com>
11716
11717 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11718 * features/aarch64.c: Regenerate.
11719
1b67eb02
AS
117202014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11721
11722 * target.c (return_null): Define.
11723 (update_current_target): Use it instead of return_zero for
11724 functions that return a pointer.
11725
5e3f4fab
EBM
117262014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11727
11728 * source.c (add_path): Fix check for duplicated paths in the previously
11729 included paths.
11730
e2616788
HK
117312014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11732
11733 * ada-lang.c: Remove duplicated include statements.
11734 * alphabsd-nat.c: Ditto.
11735 * amd64-darwin-tdep.c: Ditto.
11736 * amd64fbsd-nat.c: Ditto.
11737 * auto-load.c: Ditto.
11738 * ax-gdb.c: Ditto.
11739 * breakpoint.c: Ditto.
11740 * dbxread.c: Ditto.
11741 * fork-child.c: Ditto.
11742 * gdb_usleep.c: Ditto.
11743 * i386-darwin-tdep.c: Ditto.
11744 * i386fbsd-nat.c: Ditto.
11745 * infcmd.c: Ditto.
11746 * inferior.c: Ditto.
11747 * jv-lang.c: Ditto.
11748 * linux-nat.c: Ditto.
11749 * linux-tdep.c: Ditto.
11750 * m68kbsd-nat.c: Ditto.
11751 * m68klinux-nat.c: Ditto.
11752 * microblaze-tdep.c: Ditto.
11753 * mips-linux-tdep.c: Ditto.
11754 * mn10300-tdep.c: Ditto.
11755 * nto-tdep.c: Ditto.
11756 * opencl-lang.c: Ditto.
11757 * osdata.c: Ditto.
11758 * printcmd.c: Ditto.
11759 * regcache.c: Ditto.
11760 * remote-m32r-sdi.c: Ditto.
11761 * remote.c: Ditto.
11762 * symfile.c: Ditto.
11763 * symtab.c: Ditto.
11764 * tilegx-linux-nat.c: Ditto.
11765 * tilegx-tdep.c: Ditto.
11766 * tracepoint.c: Ditto.
11767 * valops.c: Ditto.
11768 * vaxbsd-nat.c: Ditto.
11769 * windows-nat.c: Ditto.
11770 * xtensa-tdep.c: Ditto.
11771
bd1f7788
YQ
117722014-01-07 Yao Qi <yao@codesourcery.com>
11773
11774 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11775
79301218
JB
117762014-01-07 Yao Qi <yao@codesourcery.com>
11777 Joel Brobecker <brobecker@adacore.com>
11778
11779 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11780 (pdc_write_regs): Likewise.
11781 (fetch_regs_kernel_thread): Likewise.
11782 (store_regs_kernel_thread): Likewise.
11783
117842014-01-07 Joel Brobecker <brobecker@adacore.com>
11785
11786 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11787 tagged type objects to their actual type.
11788
8e355c5d
JB
117892014-01-07 Joel Brobecker <brobecker@adacore.com>
11790
11791 * ada-valprint.c (print_field_values): Add "language" parameter.
11792 Update calls to print_field_values and print_variant_part.
11793 Pass new parameter "language" in call to val_print instead
11794 of "current_language". Replace call to ada_val_print by call
11795 to val_print.
11796 (print_variant_part): Add "language" parameter.
11797 (ada_val_print_struct_union): Update call to print_field_values.
11798
4fbf5aa5
JB
117992014-01-07 Joel Brobecker <brobecker@adacore.com>
11800
11801 * ada-valprint.c (ui_memcpy): Delete.
11802 (ada_print_floating): Update documentation. Add empty line
11803 between between function documentation and implementation.
11804 Delete variable "buffer". Use ui_file_xstrdup in place of
11805 ui_file_put. Minor adjustments following this change.
11806
71855601
JB
118072014-01-07 Joel Brobecker <brobecker@adacore.com>
11808
11809 * ada-valprint.c (ada_val_print_string): New function,
11810 extracted from ada_val_print_array.
11811 (ada_val_print_array): Replace extracted code by call
11812 to ada_val_print_string followed by a return. Move
11813 "else" branch to the function's top block.
11814
4eb27a30
JB
118152014-01-07 Joel Brobecker <brobecker@adacore.com>
11816
11817 * ada-valprint.c (ada_val_print_array): Move implementation
11818 down. Rename parameter "offset" and "val" into "offset_aligned"
11819 and "original_value" respectively. Add parameter "offset".
11820
34b27950
JB
118212014-01-07 Joel Brobecker <brobecker@adacore.com>
11822
11823 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11824 re-organizing the code. Change the "???" message printed
11825 when target type is a TYPE_CODE_UNDEF into
11826 "<ref to undefined type>".
11827
079e4591
JB
118282014-01-07 Joel Brobecker <brobecker@adacore.com>
11829
11830 * ada-valprint.c (print_record): Delete, implementation inlined...
11831 (ada_val_print_struct_union): ... here. Remove call to
11832 ada_check_typedef in inlined implementation.
11833
8004dfd1
JB
118342014-01-07 Joel Brobecker <brobecker@adacore.com>
11835
11836 * ada-valprint.c (ada_val_print_gnat_array): New function,
11837 extracted from ada_val_print_1;
11838 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11839 (ada_val_print_flt, ada_val_print_struct_union)
11840 (ada_val_print_ref): Likewise.
11841 (ada_val_print_1): Delete variables i and elttype.
11842 Replace extracted-out code by call to corresponding
11843 new functions.
11844
760a2db0
JB
118452014-01-07 Joel Brobecker <brobecker@adacore.com>
11846
11847 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11848
3a92c861
JB
118492014-01-07 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-valprint.c (ada_val_print_1): Replace calls to
11852 ada_val_print_1 by calls to val_print.
11853
cd1630f9
JB
118542014-01-07 Joel Brobecker <brobecker@adacore.com>
11855
11856 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11857 Update calls to self accordingly. Replace calls to c_val_print
11858 by calls to val_print.
11859
bdf779a0
JB
118602014-01-07 Joel Brobecker <brobecker@adacore.com>
11861
11862 * ada-valprint.c (print_record): Delete declaration.
11863 (adjust_type_signedness, ada_val_print_1): Likewise.
11864 (ada_val_print): Move function implementation down.
11865 (print_variant_part, print_field_values, print_record):
11866 Move function implementation up.
11867
c0d48811
JB
118682014-01-07 Joel Brobecker <brobecker@adacore.com>
11869
11870 * python/py-type.c (typy_get_name): New function.
11871 (type_object_getset): Add entry for attribute "name".
11872 * NEWS: Add entry mentioning this new attribute.
11873
c26e9cbb
YQ
118742014-01-07 Yao Qi <yao@codesourcery.com>
11875
11876 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11877 statement.
11878
0cc6f43d
YQ
118792014-01-07 Yao Qi <yao@codesourcery.com>
11880
11881 * gnu-nat.c (info_port_rights): Add qualifier const to
11882 argument args.
11883
eec03155
YQ
118842014-01-07 Yao Qi <yao@codesourcery.com>
11885
11886 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11887
f04a82ef
YQ
118882014-01-07 Yao Qi <yao@codesourcery.com>
11889
11890 * gnu-nat.c (make_inf) Update declaration.
11891 (make_inf): Make it static.
11892 (inf_set_traced): Likewise.
11893 (inf_port_to_thread, inf_task_died_status): Likewise.
11894
d57dda0a
YQ
118952014-01-07 Yao Qi <yao@codesourcery.com>
11896
11897 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11898
3aa8c969
YQ
118992014-01-07 Yao Qi <yao@codesourcery.com>
11900
11901 * gnu-nat.c (_initialize_gnu_nat): Declare.
11902
94123b4f
YQ
119032014-01-07 Yao Qi <yao@codesourcery.com>
11904
11905 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11906 'enum bfd_endian'.
11907 (struct gdbarch_info) <byte_order>: Change type to
11908 'enum bfd_endian'.
11909 <byte_order_for_code>: Likewise.
11910 * gdbarch.c, gdbarch.h: Regenerated.
11911
dc81d70a
TT
119122014-01-06 Sasha Smundak <asmundak@google.com>
11913
11914 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11915
cc2f3c35
TT
119162014-01-06 Tom Tromey <tromey@redhat.com>
11917
11918 * doublest.c (convert_doublest_to_floatformat): Use const, not
11919 CONST.
11920 * somread.c (som_symtab_read): Likewise.
11921
adcf2eed
HZ
119222014-01-07 Hui Zhu <hui@codesourcery.com>
11923
11924 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11925 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11926 (gdb_bfd_fopen): Ditto.
11927 (gdb_bfd_openr): Ditto.
11928 (gdb_bfd_openw): Ditto.
11929 (gdb_bfd_openr_iovec): Ditto.
11930 (gdb_bfd_fdopenr): Ditto.
11931 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11932 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11933 with xstrdup.
11934 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11935 with xstrdup.
11936 * symfile-mem.c (symbol_file_add_from_memory): Removed
11937 gdb_bfd_stash_filename.
11938
50722198
DE
119392014-01-03 Doug Evans <dje@google.com>
11940
11941 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11942 output.
11943
2fa4b862
JB
119442014-01-01 Joel Brobecker <brobecker@adacore.com>
11945
11946 Update year range in copyright notice of all files.
11947
28498c42
JB
119482014-01-01 Joel Brobecker <brobecker@adacore.com>
11949
11950 * top.c (print_gdb_version): Set copyright year to 2014.
11951
7b6e1046
JB
119522014-01-01 Joel Brobecker <brobecker@adacore.com>
11953
11954 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11955
df96af55 11956For older changes see ChangeLog-2013.
c906108c
SS
11957\f
11958Local Variables:
11959mode: change-log
11960left-margin: 8
11961fill-column: 74
11962version-control: never
57da7796 11963coding: utf-8
c906108c 11964End: