Fix indentation level in ada-lang.c::ada_evaluate_subexp.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0d72a7c3
JB
12014-08-18 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4 of lexical block.
5
e66d4446
SC
62014-08-15 Siva Chandra Reddy <sivachandra@google.com>
7
8 PR c++/17132
9 * eval.c: Update all calls to find_overload_match.
10 * valarith.c: Likewise.
11 (value_user_defined_cpp_op, value_user_defined_op): New
12 argument NOSIDE. Update all callers.
13 * valops.c (find_overload_match): New argument NOSIDE.
14 * value.h (find_overload_match): Update signature.
15
940df408
SC
162014-08-15 Siva Chandra Reddy <sivachandra@google.com>
17
18 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
19 'items' methods instead of 'iteritems' method on dictionaries.
20
699ca60a
DE
212014-08-15 Doug Evans <dje@google.com>
22
23 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
24 closer to use.
25
37780ee5
DE
262014-08-15 Doug Evans <dje@google.com>
27
28 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
29
0ad93d4f
DE
302014-08-15 Doug Evans <dje@google.com>
31
32 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
33
20d8c372
DE
342014-08-15 Doug Evans <dje@google.com>
35
36 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
37 unused.
38
cb039ba4
EZ
392014-08-15 Eli Zaretskii <eliz@gnu.org>
40
41 * dcache.h: Include target.h, to avoid compile time warnings.
42
eb7a547a
JB
432014-08-15 Joel Brobecker <brobecker@adacore.com>
44
45 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
46 frame_info" partial declaration.
47 * gdbarch.h: Regenerate.
48
783cecc8
YQ
492014-08-15 Yao Qi <yao@codesourcery.com>
50
51 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
52 Add parameter 'decode_for_pst_p'. Callers update.
53
65c749e7
YQ
542014-08-13 Yao Qi <yao@codesourcery.com>
55
56 PR build/17104
57 * configure.ac: Use local variable 'pos'.
58 * configure: Regenerated.
59
d769e349
DE
602014-08-11 Doug Evans <dje@google.com>
61
62 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
63 message, it is redundant with "Reading symbols from ..." message.
64
24f1235e
DE
652014-08-10 Doug Evans <xdje42@gmail.com>
66
67 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
68
dcd2e6ef
YQ
692014-08-09 Yao Qi <yao@codesourcery.com>
70
71 PR remote/9053
72 * remote.c (remote_xfer_partial): Remove dead code.
73
070bdf0b
AA
742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
75
76 * ia64-linux-tdep.c: Include "regset.h".
77 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
78 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
79 (ia64_linux_supply_fpregset): New function.
80 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
81 (ia64_linux_regset_from_core_section): New function.
82 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
83 method.
84
08f9f542
AA
852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
86
87 * m68klinux-tdep.c: Include "regset.h".
88 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
89 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
90 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
91 (m68k_linux_regset_from_core_section): New function.
92 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
93 method.
94
8f1cee41
AA
952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
96
97 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
98 function. Move logic to...
99 (tilegx_linux_regmap): ... this new register map.
100 (tilegx_linux_regset): Refer to register map, replace supply
101 method by regcache_supply_regset, and add collect method.
102 * tilegx-tdep.h (enum tilegx_regnum): New enum value
103 TILEGX_FIRST_EASY_REGNUM.
104
c5741217
AA
1052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
106
107 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
108 that calls regcache_supply_regset and handles the EPC register
109 separately. Move main logic to...
110 (score7_linux_gregmap): ... this new register map.
111 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
112 (score7_linux_gregset): Refer to register map. Add collect method.
113 (score7_linux_regset_from_core_section): Replace
114 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
115 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
116 (struct regset): Delete unused forward declaraction.
117 (struct pt_regs): Delete structure definition.
118 (elf_gregset_t): Delete typedef.
119
81580573
AA
1202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
121
122 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
123 (nios2_core_regset): Add collect method.
124
ba199d7d
AA
1252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
126
127 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
128 platform-independent and don't write to read-only input buffer.
129 (m32r_linux_collect_gregset): New function.
130 (m32r_linux_gregset): Add collect method.
131
0006a9da
AA
1322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
133
134 * hppa-linux-tdep.c (greg_map): Rename to...
135 (hppa_linux_gregmap): ... this. Also convert to
136 regcache_map_entry format.
137 (hppa_linux_supply_regset): Delete function.
138 (hppa_linux_supply_fpregset): Delete function. Move logic to...
139 (hppa_linux_fpregmap): ... this new register map.
140 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
141 register map, replace supply method by regcache_supply_regset, and
142 add collect method regcache_collect_regset.
143
901e1b23
AA
1442014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
145
146 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
147 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
148 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
149 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
150 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
151 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
152 (frv_linux_supply_gregset): Replace main logic by call to
153 regcache_supply_regset, but keep clearing gr32-gr63.
154 (frv_linux_supply_fpregset): Delete function.
155 (frv_linux_gregset): Refer to appropriate register map and add
156 regcache_collect_regset as the collect method.
157 (frv_linux_fpregset): Likewise. Also exchange the supply method
158 by regcache_supply_regset.
159
1d6e7555
AA
1602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
161
162 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
163 by call to alpha_supply_int_regs.
164 (alpha_linux_collect_gregset): New function.
165 (alpha_linux_supply_fpregset): Replace logic by call to
166 alpha_supply_fp_regs.
167 (alpha_linux_collect_fpregset): New function.
168 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
169
d4d793bf
AA
1702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
171
172 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
173 by call to regcache_collect_regset.
174 (supply_gregset, supply_fpregset): Call regcache_supply_regset
175 instead of aarch64_linux_supply_gregset/_fpregset.
176 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
177 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
178 header file instead.
179 (aarch64_linux_supply_gregset, supply_gregset_from_core)
180 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
181 functions. Move logic to ...
182 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
183 register maps.
184 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
185 refer to new register maps, replace *_regset_from_core by
186 regcache_supply_regset, and also use regcache_collect_regset.
187 * aarch64-linux-tdep.h: Include "regset.h".
188 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
189 Delete prototypes.
190 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
191 macros, moved from C source file.
192 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
193 variable declarations.
194
99b7da5d
AA
1952014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
196
197 * s390-linux-nat.c: Include "regset.h".
198 (regmap_gregset): Delete macro.
199 (s390_64_regmap_gregset): New register map for
200 regcache_supply/_collect_regset.
201 (s390_64_gregset): New regset.
202 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
203 (regmap_fpregset): Delete macro.
204 (s390_native_supply, s390_native_collect): Delete functions.
205 (supply_gregset, fill_gregset): Replace s390-specific regmap
206 handling by a call to regcache_supply/_collect_regset.
207 (supply_fpregset, fill_fpregset): Call regcache_supply/
208 _collect_regset instead of s390_native_supply/_collect.
209 (fetch_regset, store_regset): Likewise. Also change the last
210 parameter to a regset instead of a regmap.
211 (s390_linux_fetch_inferior_registers)
212 (390_linux_store_inferior_registers): Adjust last parameter in
213 calls to fetch_regset and store_regset.
214 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
215 (s390_gregmap): ... this. Also make static const and convert to
216 regcache_map_entry format.
217 (s390x_regmap_gregset): Delete.
218 (s390_regmap_fpregset): Rename to...
219 (s390_fpregmap): ... this. Make static const and convert to
220 regcache_map_entry format.
221 (s390_regmap_upper, s390_regmap_last_break)
222 (s390x_regmap_last_break, s390_regmap_system_call)
223 (s390_regmap_tdb): Likewise.
224 (s390_supply_regset, s390_collect_regset): Remove functions.
225 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
226 s390_supply_regset.
227 (s390_gregset, s390_fpregset, s390_upper_regset)
228 (s390_last_break_regset, s390x_last_break_regset)
229 (s390_system_call_regset, s390_tdb_regset): Make global and
230 replace s390_supply/_collect_regset by regcache_supply/
231 _collect_regset.
232 (s390x_gregset): Delete.
233 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
234 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
235 (s390_regmap_fpregset, s390_regmap_last_break)
236 (s390x_regmap_last_break, s390_regmap_system_call)
237 (s390_regmap_tdb): Delete global variable declarations.
238 (s390_gregset, s390_fpregset, s390_last_break_regset)
239 (s390x_last_break_regset, s390_system_call_regset)
240 (s390_tdb_regset): New global variable declarations.
241
0b309272
AA
2422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
243
244 * regcache.c: Include "regset.h".
245 (regcache_transfer_regset): New local function.
246 (regcache_supply_regset, regcache_collect_regset): New functions.
247 * regcache.h (struct regcache_map_entry): New structure.
248 (REGCACHE_MAP_SKIP): New enum value.
249 (regcache_supply_regset, regcache_collect_regset): New prototypes.
250
7fefa8d7
AA
2512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
252
253 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
254 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
255 (ppc_linux_collect_gregset ): Likewise.
256 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
257 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
258 (ppc_collect_vrregset): Likewise.
259 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
260 Likewise.
261
96c4f946
YQ
2622014-08-07 Yao Qi <yao@codesourcery.com>
263
264 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
265 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
266 * remote.c (remote_read_bytes): Likewise.
267
fffbe6a8
YQ
2682014-08-07 Yao Qi <yao@codesourcery.com>
269
270 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
271
5ee8a82c
YQ
2722014-08-07 Yao Qi <yao@codesourcery.com>
273
274 PR remote/17230
275 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
276 TARGET_XFER_OK instead of 0.
277
bb974a24
GB
2782014-08-07 Gary Benson <gbenson@redhat.com>
279
280 * common/common-defs.h: Include errno.h.
281 * defs.h: Do not include errno.h.
282 * ada-typeprint.c: Likewise.
283 * c-typeprint.c: Likewise.
284 * core-regset.c: Likewise.
285 * corefile.c: Likewise.
286 * corelow.c: Likewise.
287 * event-loop.c: Likewise.
288 * f-typeprint.c: Likewise.
289 * gnu-nat.c: Likewise.
290 * go32-nat.c: Likewise.
291 * i386gnu-nat.c: Likewise.
292 * m2-typeprint.c: Likewise.
293 * nat/linux-btrace.c: Likewise.
294 * p-typeprint.c: Likewise.
295 * procfs.c: Likewise.
296 * remote-sim.c: Likewise.
297 * rs6000-nat.c: Likewise.
298 * target.c: Likewise.
299 * typeprint.c: Likewise.
300 * ui-file.c: Likewise.
301 * valops.c: Likewise.
302 * valprint.c: Likewise.
303
6d3d12eb
GB
3042014-08-07 Gary Benson <gbenson@redhat.com>
305
306 * common/common-defs.h: Include string.h.
307 * aarch64-tdep.c: Do not include string.h.
308 * ada-exp.y: Likewise.
309 * ada-lang.c: Likewise.
310 * ada-lex.l: Likewise.
311 * ada-typeprint.c: Likewise.
312 * ada-valprint.c: Likewise.
313 * aix-thread.c: Likewise.
314 * alpha-linux-tdep.c: Likewise.
315 * alpha-mdebug-tdep.c: Likewise.
316 * alpha-nat.c: Likewise.
317 * alpha-osf1-tdep.c: Likewise.
318 * alpha-tdep.c: Likewise.
319 * alphanbsd-tdep.c: Likewise.
320 * amd64-dicos-tdep.c: Likewise.
321 * amd64-linux-tdep.c: Likewise.
322 * amd64-nat.c: Likewise.
323 * amd64-sol2-tdep.c: Likewise.
324 * amd64fbsd-tdep.c: Likewise.
325 * amd64obsd-tdep.c: Likewise.
326 * arch-utils.c: Likewise.
327 * arm-linux-nat.c: Likewise.
328 * arm-linux-tdep.c: Likewise.
329 * arm-tdep.c: Likewise.
330 * arm-wince-tdep.c: Likewise.
331 * armbsd-tdep.c: Likewise.
332 * armnbsd-nat.c: Likewise.
333 * armnbsd-tdep.c: Likewise.
334 * armobsd-tdep.c: Likewise.
335 * avr-tdep.c: Likewise.
336 * ax-gdb.c: Likewise.
337 * ax-general.c: Likewise.
338 * bcache.c: Likewise.
339 * bfin-tdep.c: Likewise.
340 * breakpoint.c: Likewise.
341 * build-id.c: Likewise.
342 * buildsym.c: Likewise.
343 * c-exp.y: Likewise.
344 * c-lang.c: Likewise.
345 * c-typeprint.c: Likewise.
346 * c-valprint.c: Likewise.
347 * charset.c: Likewise.
348 * cli-out.c: Likewise.
349 * cli/cli-cmds.c: Likewise.
350 * cli/cli-decode.c: Likewise.
351 * cli/cli-dump.c: Likewise.
352 * cli/cli-interp.c: Likewise.
353 * cli/cli-logging.c: Likewise.
354 * cli/cli-script.c: Likewise.
355 * cli/cli-setshow.c: Likewise.
356 * cli/cli-utils.c: Likewise.
357 * coffread.c: Likewise.
358 * common/agent.c: Likewise.
359 * common/buffer.c: Likewise.
360 * common/buffer.h: Likewise.
361 * common/common-utils.c: Likewise.
362 * common/filestuff.c: Likewise.
363 * common/filestuff.c: Likewise.
364 * common/format.c: Likewise.
365 * common/print-utils.c: Likewise.
366 * common/rsp-low.c: Likewise.
367 * common/signals.c: Likewise.
368 * common/vec.h: Likewise.
369 * common/xml-utils.c: Likewise.
370 * core-regset.c: Likewise.
371 * corefile.c: Likewise.
372 * corelow.c: Likewise.
373 * cp-abi.c: Likewise.
374 * cp-name-parser.y: Likewise.
375 * cp-support.c: Likewise.
376 * cp-valprint.c: Likewise.
377 * cris-tdep.c: Likewise.
378 * d-exp.y: Likewise.
379 * darwin-nat.c: Likewise.
380 * dbxread.c: Likewise.
381 * dcache.c: Likewise.
382 * demangle.c: Likewise.
383 * dicos-tdep.c: Likewise.
384 * disasm.c: Likewise.
385 * doublest.c: Likewise.
386 * dsrec.c: Likewise.
387 * dummy-frame.c: Likewise.
388 * dwarf2-frame.c: Likewise.
389 * dwarf2loc.c: Likewise.
390 * dwarf2read.c: Likewise.
391 * elfread.c: Likewise.
392 * environ.c: Likewise.
393 * eval.c: Likewise.
394 * event-loop.c: Likewise.
395 * exceptions.c: Likewise.
396 * exec.c: Likewise.
397 * expprint.c: Likewise.
398 * f-exp.y: Likewise.
399 * f-lang.c: Likewise.
400 * f-typeprint.c: Likewise.
401 * f-valprint.c: Likewise.
402 * fbsd-nat.c: Likewise.
403 * findcmd.c: Likewise.
404 * findvar.c: Likewise.
405 * fork-child.c: Likewise.
406 * frame.c: Likewise.
407 * frv-linux-tdep.c: Likewise.
408 * frv-tdep.c: Likewise.
409 * gdb.c: Likewise.
410 * gdb_bfd.c: Likewise.
411 * gdbarch.c: Likewise.
412 * gdbarch.sh: Likewise.
413 * gdbtypes.c: Likewise.
414 * gnu-nat.c: Likewise.
415 * gnu-v2-abi.c: Likewise.
416 * gnu-v3-abi.c: Likewise.
417 * go-exp.y: Likewise.
418 * go-lang.c: Likewise.
419 * go32-nat.c: Likewise.
420 * guile/guile.c: Likewise.
421 * guile/scm-auto-load.c: Likewise.
422 * hppa-hpux-tdep.c: Likewise.
423 * hppa-linux-nat.c: Likewise.
424 * hppanbsd-tdep.c: Likewise.
425 * hppaobsd-tdep.c: Likewise.
426 * i386-cygwin-tdep.c: Likewise.
427 * i386-dicos-tdep.c: Likewise.
428 * i386-linux-tdep.c: Likewise.
429 * i386-nto-tdep.c: Likewise.
430 * i386-sol2-tdep.c: Likewise.
431 * i386-tdep.c: Likewise.
432 * i386bsd-tdep.c: Likewise.
433 * i386gnu-nat.c: Likewise.
434 * i386nbsd-tdep.c: Likewise.
435 * i386obsd-tdep.c: Likewise.
436 * i387-tdep.c: Likewise.
437 * ia64-libunwind-tdep.c: Likewise.
438 * ia64-linux-nat.c: Likewise.
439 * inf-child.c: Likewise.
440 * inf-ptrace.c: Likewise.
441 * inf-ttrace.c: Likewise.
442 * infcall.c: Likewise.
443 * infcmd.c: Likewise.
444 * inflow.c: Likewise.
445 * infrun.c: Likewise.
446 * interps.c: Likewise.
447 * iq2000-tdep.c: Likewise.
448 * irix5-nat.c: Likewise.
449 * jv-exp.y: Likewise.
450 * jv-lang.c: Likewise.
451 * jv-typeprint.c: Likewise.
452 * jv-valprint.c: Likewise.
453 * language.c: Likewise.
454 * linux-fork.c: Likewise.
455 * linux-nat.c: Likewise.
456 * lm32-tdep.c: Likewise.
457 * m2-exp.y: Likewise.
458 * m2-typeprint.c: Likewise.
459 * m32c-tdep.c: Likewise.
460 * m32r-linux-nat.c: Likewise.
461 * m32r-linux-tdep.c: Likewise.
462 * m32r-rom.c: Likewise.
463 * m32r-tdep.c: Likewise.
464 * m68hc11-tdep.c: Likewise.
465 * m68k-tdep.c: Likewise.
466 * m68kbsd-tdep.c: Likewise.
467 * m68klinux-nat.c: Likewise.
468 * m68klinux-tdep.c: Likewise.
469 * m88k-tdep.c: Likewise.
470 * machoread.c: Likewise.
471 * macrocmd.c: Likewise.
472 * main.c: Likewise.
473 * mdebugread.c: Likewise.
474 * mem-break.c: Likewise.
475 * memattr.c: Likewise.
476 * memory-map.c: Likewise.
477 * mep-tdep.c: Likewise.
478 * mi/mi-cmd-break.c: Likewise.
479 * mi/mi-cmd-disas.c: Likewise.
480 * mi/mi-cmd-env.c: Likewise.
481 * mi/mi-cmd-stack.c: Likewise.
482 * mi/mi-cmd-var.c: Likewise.
483 * mi/mi-cmds.c: Likewise.
484 * mi/mi-console.c: Likewise.
485 * mi/mi-getopt.c: Likewise.
486 * mi/mi-interp.c: Likewise.
487 * mi/mi-main.c: Likewise.
488 * mi/mi-parse.c: Likewise.
489 * microblaze-rom.c: Likewise.
490 * microblaze-tdep.c: Likewise.
491 * mingw-hdep.c: Likewise.
492 * minidebug.c: Likewise.
493 * minsyms.c: Likewise.
494 * mips-irix-tdep.c: Likewise.
495 * mips-linux-tdep.c: Likewise.
496 * mips-tdep.c: Likewise.
497 * mips64obsd-tdep.c: Likewise.
498 * mipsnbsd-tdep.c: Likewise.
499 * mipsread.c: Likewise.
500 * mn10300-linux-tdep.c: Likewise.
501 * mn10300-tdep.c: Likewise.
502 * monitor.c: Likewise.
503 * moxie-tdep.c: Likewise.
504 * mt-tdep.c: Likewise.
505 * nat/linux-btrace.c: Likewise.
506 * nat/linux-osdata.c: Likewise.
507 * nat/linux-procfs.c: Likewise.
508 * nat/linux-ptrace.c: Likewise.
509 * nat/linux-waitpid.c: Likewise.
510 * nbsd-tdep.c: Likewise.
511 * nios2-linux-tdep.c: Likewise.
512 * nto-procfs.c: Likewise.
513 * nto-tdep.c: Likewise.
514 * objc-lang.c: Likewise.
515 * objfiles.c: Likewise.
516 * opencl-lang.c: Likewise.
517 * osabi.c: Likewise.
518 * osdata.c: Likewise.
519 * p-exp.y: Likewise.
520 * p-lang.c: Likewise.
521 * p-typeprint.c: Likewise.
522 * parse.c: Likewise.
523 * posix-hdep.c: Likewise.
524 * ppc-linux-nat.c: Likewise.
525 * ppc-sysv-tdep.c: Likewise.
526 * ppcfbsd-tdep.c: Likewise.
527 * ppcnbsd-tdep.c: Likewise.
528 * ppcobsd-tdep.c: Likewise.
529 * printcmd.c: Likewise.
530 * procfs.c: Likewise.
531 * prologue-value.c: Likewise.
532 * python/py-auto-load.c: Likewise.
533 * python/py-gdb-readline.c: Likewise.
534 * ravenscar-thread.c: Likewise.
535 * regcache.c: Likewise.
536 * registry.c: Likewise.
537 * remote-fileio.c: Likewise.
538 * remote-m32r-sdi.c: Likewise.
539 * remote-mips.c: Likewise.
540 * remote-notif.c: Likewise.
541 * remote-sim.c: Likewise.
542 * remote.c: Likewise.
543 * reverse.c: Likewise.
544 * rs6000-aix-tdep.c: Likewise.
545 * ser-base.c: Likewise.
546 * ser-go32.c: Likewise.
547 * ser-mingw.c: Likewise.
548 * ser-pipe.c: Likewise.
549 * ser-tcp.c: Likewise.
550 * ser-unix.c: Likewise.
551 * serial.c: Likewise.
552 * sh-tdep.c: Likewise.
553 * sh64-tdep.c: Likewise.
554 * shnbsd-tdep.c: Likewise.
555 * skip.c: Likewise.
556 * sol-thread.c: Likewise.
557 * solib-dsbt.c: Likewise.
558 * solib-frv.c: Likewise.
559 * solib-osf.c: Likewise.
560 * solib-som.c: Likewise.
561 * solib-spu.c: Likewise.
562 * solib-target.c: Likewise.
563 * solib.c: Likewise.
564 * somread.c: Likewise.
565 * source.c: Likewise.
566 * sparc-nat.c: Likewise.
567 * sparc-sol2-tdep.c: Likewise.
568 * sparc-tdep.c: Likewise.
569 * sparc64-tdep.c: Likewise.
570 * sparc64fbsd-tdep.c: Likewise.
571 * sparc64nbsd-tdep.c: Likewise.
572 * sparcnbsd-tdep.c: Likewise.
573 * spu-linux-nat.c: Likewise.
574 * spu-multiarch.c: Likewise.
575 * spu-tdep.c: Likewise.
576 * stabsread.c: Likewise.
577 * stack.c: Likewise.
578 * std-regs.c: Likewise.
579 * symfile.c: Likewise.
580 * symmisc.c: Likewise.
581 * symtab.c: Likewise.
582 * target.c: Likewise.
583 * thread.c: Likewise.
584 * tilegx-linux-nat.c: Likewise.
585 * tilegx-tdep.c: Likewise.
586 * top.c: Likewise.
587 * tracepoint.c: Likewise.
588 * tui/tui-command.c: Likewise.
589 * tui/tui-data.c: Likewise.
590 * tui/tui-disasm.c: Likewise.
591 * tui/tui-file.c: Likewise.
592 * tui/tui-layout.c: Likewise.
593 * tui/tui-out.c: Likewise.
594 * tui/tui-regs.c: Likewise.
595 * tui/tui-source.c: Likewise.
596 * tui/tui-stack.c: Likewise.
597 * tui/tui-win.c: Likewise.
598 * tui/tui-windata.c: Likewise.
599 * tui/tui-winsource.c: Likewise.
600 * typeprint.c: Likewise.
601 * ui-file.c: Likewise.
602 * ui-out.c: Likewise.
603 * user-regs.c: Likewise.
604 * utils.c: Likewise.
605 * v850-tdep.c: Likewise.
606 * valarith.c: Likewise.
607 * valops.c: Likewise.
608 * valprint.c: Likewise.
609 * value.c: Likewise.
610 * varobj.c: Likewise.
611 * vax-tdep.c: Likewise.
612 * vaxnbsd-tdep.c: Likewise.
613 * vaxobsd-tdep.c: Likewise.
614 * windows-nat.c: Likewise.
615 * xcoffread.c: Likewise.
616 * xml-support.c: Likewise.
617 * xstormy16-tdep.c: Likewise.
618 * xtensa-linux-nat.c: Likewise.
619
dccbb609
GB
6202014-08-07 Gary Benson <gbenson@redhat.com>
621
622 * common/common-defs.h: Include gdb_assert.h.
623 * aarch64-tdep.c: Do not include gdb_assert.h.
624 * addrmap.c: Likewise.
625 * aix-thread.c: Likewise.
626 * alpha-linux-tdep.c: Likewise.
627 * alpha-mdebug-tdep.c: Likewise.
628 * alphanbsd-tdep.c: Likewise.
629 * amd64-nat.c: Likewise.
630 * amd64-tdep.c: Likewise.
631 * amd64bsd-nat.c: Likewise.
632 * amd64fbsd-nat.c: Likewise.
633 * amd64fbsd-tdep.c: Likewise.
634 * amd64nbsd-nat.c: Likewise.
635 * amd64nbsd-tdep.c: Likewise.
636 * amd64obsd-nat.c: Likewise.
637 * amd64obsd-tdep.c: Likewise.
638 * arch-utils.c: Likewise.
639 * arm-tdep.c: Likewise.
640 * armbsd-tdep.c: Likewise.
641 * auxv.c: Likewise.
642 * bcache.c: Likewise.
643 * bfin-tdep.c: Likewise.
644 * blockframe.c: Likewise.
645 * breakpoint.c: Likewise.
646 * bsd-kvm.c: Likewise.
647 * bsd-uthread.c: Likewise.
648 * buildsym.c: Likewise.
649 * c-exp.y: Likewise.
650 * c-lang.c: Likewise.
651 * charset.c: Likewise.
652 * cleanups.c: Likewise.
653 * cli-out.c: Likewise.
654 * cli/cli-decode.c: Likewise.
655 * cli/cli-dump.c: Likewise.
656 * cli/cli-logging.c: Likewise.
657 * cli/cli-script.c: Likewise.
658 * cli/cli-utils.c: Likewise.
659 * coffread.c: Likewise.
660 * common/common-utils.c: Likewise.
661 * common/queue.h: Likewise.
662 * common/signals.c: Likewise.
663 * common/vec.h: Likewise.
664 * complaints.c: Likewise.
665 * completer.c: Likewise.
666 * corelow.c: Likewise.
667 * cp-abi.c: Likewise.
668 * cp-name-parser.y: Likewise.
669 * cp-namespace.c: Likewise.
670 * cp-support.c: Likewise.
671 * cris-tdep.c: Likewise.
672 * dbxread.c: Likewise.
673 * dictionary.c: Likewise.
674 * doublest.c: Likewise.
675 * dsrec.c: Likewise.
676 * dummy-frame.c: Likewise.
677 * dwarf2-frame-tailcall.c: Likewise.
678 * dwarf2-frame.c: Likewise.
679 * dwarf2expr.c: Likewise.
680 * dwarf2loc.c: Likewise.
681 * dwarf2read.c: Likewise.
682 * eval.c: Likewise.
683 * event-loop.c: Likewise.
684 * exceptions.c: Likewise.
685 * expprint.c: Likewise.
686 * f-valprint.c: Likewise.
687 * fbsd-nat.c: Likewise.
688 * findvar.c: Likewise.
689 * frame-unwind.c: Likewise.
690 * frame.c: Likewise.
691 * frv-tdep.c: Likewise.
692 * gcore.c: Likewise.
693 * gdb-dlfcn.c: Likewise.
694 * gdb_bfd.c: Likewise.
695 * gdbarch.c: Likewise.
696 * gdbarch.sh: Likewise.
697 * gdbtypes.c: Likewise.
698 * gnu-nat.c: Likewise.
699 * gnu-v3-abi.c: Likewise.
700 * go-lang.c: Likewise.
701 * guile/scm-exception.c: Likewise.
702 * guile/scm-gsmob.c: Likewise.
703 * guile/scm-lazy-string.c: Likewise.
704 * guile/scm-math.c: Likewise.
705 * guile/scm-pretty-print.c: Likewise.
706 * guile/scm-safe-call.c: Likewise.
707 * guile/scm-utils.c: Likewise.
708 * guile/scm-value.c: Likewise.
709 * h8300-tdep.c: Likewise.
710 * hppa-hpux-nat.c: Likewise.
711 * hppa-tdep.c: Likewise.
712 * hppanbsd-tdep.c: Likewise.
713 * hppaobsd-tdep.c: Likewise.
714 * i386-darwin-nat.c: Likewise.
715 * i386-darwin-tdep.c: Likewise.
716 * i386-nto-tdep.c: Likewise.
717 * i386-tdep.c: Likewise.
718 * i386bsd-nat.c: Likewise.
719 * i386fbsd-tdep.c: Likewise.
720 * i386gnu-nat.c: Likewise.
721 * i386nbsd-tdep.c: Likewise.
722 * i386obsd-tdep.c: Likewise.
723 * i387-tdep.c: Likewise.
724 * ia64-libunwind-tdep.c: Likewise.
725 * ia64-tdep.c: Likewise.
726 * inf-ptrace.c: Likewise.
727 * inf-ttrace.c: Likewise.
728 * infcall.c: Likewise.
729 * infcmd.c: Likewise.
730 * infrun.c: Likewise.
731 * inline-frame.c: Likewise.
732 * interps.c: Likewise.
733 * jv-lang.c: Likewise.
734 * jv-typeprint.c: Likewise.
735 * linux-fork.c: Likewise.
736 * linux-nat.c: Likewise.
737 * linux-thread-db.c: Likewise.
738 * m32c-tdep.c: Likewise.
739 * m32r-linux-nat.c: Likewise.
740 * m32r-tdep.c: Likewise.
741 * m68k-tdep.c: Likewise.
742 * m68kbsd-nat.c: Likewise.
743 * m68kbsd-tdep.c: Likewise.
744 * m88k-tdep.c: Likewise.
745 * machoread.c: Likewise.
746 * macroexp.c: Likewise.
747 * macrotab.c: Likewise.
748 * maint.c: Likewise.
749 * mdebugread.c: Likewise.
750 * memory-map.c: Likewise.
751 * mep-tdep.c: Likewise.
752 * mi/mi-common.c: Likewise.
753 * microblaze-tdep.c: Likewise.
754 * mingw-hdep.c: Likewise.
755 * mips-linux-nat.c: Likewise.
756 * mips-linux-tdep.c: Likewise.
757 * mips-tdep.c: Likewise.
758 * mips64obsd-tdep.c: Likewise.
759 * mipsnbsd-tdep.c: Likewise.
760 * mn10300-linux-tdep.c: Likewise.
761 * mn10300-tdep.c: Likewise.
762 * moxie-tdep.c: Likewise.
763 * mt-tdep.c: Likewise.
764 * nat/linux-btrace.c: Likewise.
765 * nat/linux-osdata.c: Likewise.
766 * nat/linux-ptrace.c: Likewise.
767 * nat/mips-linux-watch.c: Likewise.
768 * nios2-linux-tdep.c: Likewise.
769 * nios2-tdep.c: Likewise.
770 * objc-lang.c: Likewise.
771 * objfiles.c: Likewise.
772 * obsd-nat.c: Likewise.
773 * opencl-lang.c: Likewise.
774 * osabi.c: Likewise.
775 * parse.c: Likewise.
776 * ppc-linux-nat.c: Likewise.
777 * ppc-sysv-tdep.c: Likewise.
778 * ppcfbsd-nat.c: Likewise.
779 * ppcfbsd-tdep.c: Likewise.
780 * ppcnbsd-nat.c: Likewise.
781 * ppcnbsd-tdep.c: Likewise.
782 * ppcobsd-nat.c: Likewise.
783 * ppcobsd-tdep.c: Likewise.
784 * printcmd.c: Likewise.
785 * procfs.c: Likewise.
786 * prologue-value.c: Likewise.
787 * psymtab.c: Likewise.
788 * python/py-lazy-string.c: Likewise.
789 * python/py-value.c: Likewise.
790 * regcache.c: Likewise.
791 * reggroups.c: Likewise.
792 * registry.c: Likewise.
793 * remote-sim.c: Likewise.
794 * remote.c: Likewise.
795 * rs6000-aix-tdep.c: Likewise.
796 * rs6000-tdep.c: Likewise.
797 * s390-linux-tdep.c: Likewise.
798 * score-tdep.c: Likewise.
799 * ser-base.c: Likewise.
800 * ser-mingw.c: Likewise.
801 * sh-tdep.c: Likewise.
802 * sh64-tdep.c: Likewise.
803 * solib-darwin.c: Likewise.
804 * solib-spu.c: Likewise.
805 * solib-svr4.c: Likewise.
806 * source.c: Likewise.
807 * sparc-nat.c: Likewise.
808 * sparc-sol2-tdep.c: Likewise.
809 * sparc-tdep.c: Likewise.
810 * sparc64-sol2-tdep.c: Likewise.
811 * sparc64-tdep.c: Likewise.
812 * sparc64fbsd-tdep.c: Likewise.
813 * sparc64nbsd-tdep.c: Likewise.
814 * sparc64obsd-tdep.c: Likewise.
815 * sparcnbsd-tdep.c: Likewise.
816 * sparcobsd-tdep.c: Likewise.
817 * spu-multiarch.c: Likewise.
818 * spu-tdep.c: Likewise.
819 * stabsread.c: Likewise.
820 * stack.c: Likewise.
821 * symfile.c: Likewise.
822 * symtab.c: Likewise.
823 * target-descriptions.c: Likewise.
824 * target-memory.c: Likewise.
825 * target.c: Likewise.
826 * tic6x-linux-tdep.c: Likewise.
827 * tic6x-tdep.c: Likewise.
828 * tilegx-linux-nat.c: Likewise.
829 * tilegx-tdep.c: Likewise.
830 * top.c: Likewise.
831 * tramp-frame.c: Likewise.
832 * tui/tui-out.c: Likewise.
833 * tui/tui-winsource.c: Likewise.
834 * ui-out.c: Likewise.
835 * user-regs.c: Likewise.
836 * utils.c: Likewise.
837 * v850-tdep.c: Likewise.
838 * valops.c: Likewise.
839 * value.c: Likewise.
840 * varobj.c: Likewise.
841 * vax-nat.c: Likewise.
842 * xml-syscall.c: Likewise.
843 * xml-tdesc.c: Likewise.
844 * xstormy16-tdep.c: Likewise.
845 * xtensa-linux-nat.c: Likewise.
846 * xtensa-tdep.c: Likewise.
847
e76df0d0
GB
8482014-08-07 Gary Benson <gbenson@redhat.com>
849
850 * common/common-defs.h: Include common-utils.h.
851 * defs.h: Do not include common-utils.h.
852 * common/gdb_assert.h: Likewise.
853 * darwin-nat.h: Likewise.
854 * nat/linux-btrace.c: Likewise.
855 * target/waitstatus.h: Likewise.
856
4cb9c816
GB
8572014-08-07 Gary Benson <gbenson@redhat.com>
858
859 * common/common-defs.h: Include ptid.h.
860 * defs.h: Do not include ptid.h.
861 * inferior.h: Likewise.
862 * infrun.h: Likewise.
863 * nat/linux-btrace.h: Likewise.
864 * nat/linux-osdata.h: Likewise.
865 * target/waitstatus.h: Likewise.
866
3995eeee
GB
8672014-08-07 Gary Benson <gbenson@redhat.com>
868
869 * common/common-defs.h: Include gdb_locale.h.
870 * defs.h: Do not include gdb_locale.h.
871
cb9f1a9b
GB
8722014-08-07 Gary Benson <gbenson@redhat.com>
873
874 * common/common-defs.h: Include gdb/signals.h.
875 * defs.h: Do not include gdb/signals.h.
876
a5fceff8
GB
8772014-08-07 Gary Benson <gbenson@redhat.com>
878
879 * common/common-defs.h: Include pathmax.h.
880 * defs.h: Do not include pathmax.h.
881
b9391142
GB
8822014-08-07 Gary Benson <gbenson@redhat.com>
883
884 * common/common-defs.h: Include libiberty.h.
885 * defs.h: Do not include libiberty.h.
886 * common/queue.h: Likewise.
887 * cp-name-parser.y: Likewise.
888 * mi/mi-cmd-catch.c: Likewise.
889 * python/python.c: Likewise.
890
0e443c87
GB
8912014-08-07 Gary Benson <gbenson@redhat.com>
892
893 * common/common-defs.h: Include ansidecl.h.
894 * defs.h: Do not include ansidecl.h.
895 * common/buffer.h: Likewise.
896 * common/common-utils.h: Likewise.
897
8ebb3f56
GB
8982014-08-07 Gary Benson <gbenson@redhat.com>
899
900 * common/common-defs.h: Include stddef.h.
901 * defs.h: Do not include stddef.h.
902 * common/common-utils.h: Likewise.
903 * amd64fbsd-nat.c: Likewise.
904 * bcache.c: Likewise.
905 * charset.c: Likewise.
906 * common/buffer.h: Likewise.
907 * common/vec.h: Likewise.
908 * i386bsd-nat.c: Likewise.
909 * nat/linux-btrace.h: Likewise.
910 * ppcfbsd-nat.c: Likewise.
911 * ppcnbsd-tdep.h: Likewise.
912 * ppcobsd-nat.c: Likewise.
913 * ppcobsd-tdep.h: Likewise.
914 * python/py-gdb-readline.c: Likewise.
915
8980bdf6
GB
9162014-08-07 Gary Benson <gbenson@redhat.com>
917
918 * common/common-defs.h: Include stdarg.h.
919 * defs.h: Do not include stdarg.h.
920 * ada-lang.c: Likewise.
921 * common/common-utils.h: Likewise.
922 * guile/scm-string.c: Likewise.
923 * guile/scm-utils.c: Likewise.
924 * m32c-tdep.c: Likewise.
925
d7096f71
GB
9262014-08-07 Gary Benson <gbenson@redhat.com>
927
928 * common/common-defs.h: Include stdlib.h.
929 * defs.h: Do not include stdlib.h.
930 * addrmap.c: Likewise.
931 * bcache.c: Likewise.
932 * common/buffer.c: Likewise.
933 * common/common-utils.c: Likewise.
934 * cp-name-parser.y: Likewise.
935 * go32-nat.c: Likewise.
936 * mn10300-linux-tdep.c: Likewise.
937 * nat/linux-osdata.c: Likewise.
938 * tui/tui.c: Likewise.
939 * windows-nat.c: Likewise.
940
d02f550d
GB
9412014-08-07 Gary Benson <gbenson@redhat.com>
942
943 * common/common-defs.h: Include stdio.h.
944 * defs.h: Do not include stdio.h.
945 * ada-lang.c: Likewise.
946 * common/buffer.c: Likewise.
947 * common/common-utils.c: Likewise.
948 * cp-name-parser.y: Likewise.
949 * gnu-nat.c: Likewise.
950 * go32-nat.c: Likewise.
951 * i386gnu-nat.c: Likewise.
952 * proc-api.c: Likewise.
953 * proc-events.c: Likewise.
954 * proc-flags.c: Likewise.
955 * proc-why.c: Likewise.
956 * python/python-internal.h: Likewise.
957 * target-memory.c: Likewise.
958 * tui/tui-io.c: Likewise.
959 * tui/tui.c: Likewise.
960
b6d7a4bf
SM
9612014-08-06 Simon Marchi <simon.marchi@ericsson.com>
962
963 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
964 (scan_dyntag_auxv): Same.
965
af19829b
YQ
9662014-08-06 Yao Qi <yao@codesourcery.com>
967
968 * amd64-linux-nat.c: Remove duplicated include
969 "x86-linux-nat.h".
970 * i386-linux-nat.c: Likewise.
971
8e07a239
YQ
9722014-08-06 Yao Qi <yao@codesourcery.com>
973
974 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
975 operand" with "Special opcode" in comments.
976
7bfe8241
GB
9772014-08-05 Gary Benson <gbenson@redhat.com>
978
979 * interps.c (initialize_interps): Remove prototype.
980 (interpreter_initialized): Remove static global.
981 (interp_add): Do not call initialize_interps.
982 (initialize_interps): Remove function.
983
d6c95504
GB
9842014-08-05 Gary Benson <gbenson@redhat.com>
985
986 * utils.c (vwarning): Remove spurious va_end.
987
241fd515
AM
9882014-08-05 Alan Modra <amodra@gmail.com>
989
990 * charset.c (convert_between_encodings): Cast result of obstack_base.
991 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
992 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
993 (read_unwind_info): Use size_t for some locals.
994 * jit.c (finalize_symtab): Likewise.
995 * utils.c (hashtab_obstack_allocate): Likewise.
996 * symmisc.c (print_objfile_statistics): Update format strings.
997
dc304a94
JK
9982014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
999
1000 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1001 (Changes in GDB 7.8): ... here.
1002
3cecbbbe
TT
10032014-08-04 Tom Tromey <tromey@redhat.com>
1004
1005 * target.c (set_targetdebug): New function.
1006 (initialize_targets): Pass set_targetdebug when creating "set
1007 debug target".
1008
6908c509
JB
10092014-08-01 Joel Brobecker <brobecker@adacore.com>
1010
1011 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1012 if detecting a variable-sized field that is not the last field.
1013 Fix struct type length computation.
1014
53e8f97d
JB
10152014-08-01 Joel Brobecker <brobecker@adacore.com>
1016
1017 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1018 Add debug trace.
1019
e068c55d
JB
10202014-08-01 Joel Brobecker <brobecker@adacore.com>
1021
1022 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1023 Remove "+ 8" offset in computation of CHAIN_VMA.
1024
4d4ca2a1
DE
10252014-07-31 Doug Evans <dje@google.com>
1026
1027 * inflow.c (child_terminal_inferior): Add comment.
1028 (child_terminal_ours_for_output): Add comment.
1029 (child_terminal_ours): Add comment.
1030 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1031 (linux_nat_terminal_ours): Add comment.
1032
462f517e
GB
10332014-07-31 Gary Benson <gbenson@redhat.com>
1034
1035 * common/btrace-common.h: Do not include defs.h or server.h.
1036 * nat/mips-linux-watch.h: Likewise.
1037 * gdb-dlfcn.h: Do not include defs.h.
1038 * tracefile.h: Likewise.
1039
74228e77
RM
10402014-07-30 Roland McGrath <mcgrathr@google.com>
1041
1042 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1043
014f9477
TT
10442014-07-30 Tom Tromey <tromey@redhat.com>
1045
1046 * bsd-kvm.c (bsd_kvm_open): Constify.
1047 * corelow.c (core_open): Constify.
1048 * ctf.c (ctf_open): Constify.
1049 * dbug-rom.c (dbug_open): Constify.
1050 * exec.c (exec_open): Constify.
1051 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1052 * microblaze-rom.c (picobug_open): Constify.
1053 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1054 Constify.
1055 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1056 * record-btrace.c (record_btrace_open): Constify.
1057 * record-full.c (record_full_core_open_1, record_full_open_1)
1058 (record_full_open): Constify.
1059 * remote-m32r-sdi.c (m32r_open): Constify.
1060 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1061 (rockhopper_open, lsi_open): Constify.
1062 * remote-sim.c (gdbsim_open): Constify.
1063 * remote.c (remote_open, extended_remote_open, remote_open_1):
1064 Constify.
1065 * target.h (struct target_ops) <to_open>: Make "arg" const.
1066 * tracefile-tfile.c (tfile_open): Constify.
1067
e799154c
TT
10682014-07-30 Tom Tromey <tromey@redhat.com>
1069
1070 * breakpoint.c (map_breakpoint_numbers): Update.
1071 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1072 (get_number_const): New function.
1073 (get_number): Rewrite using get_number_const.
1074 (init_number_or_range): Make "string" const.
1075 (number_is_in_list): Make "list" const.
1076 * cli/cli-utils.h (get_number_const): Declare.
1077 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1078 (init_number_or_range, number_is_in_list): Update.
1079 * printcmd.c (map_display_numbers): Update.
1080 * value.c (value_from_history_ref): Constify.
1081 * value.h (value_from_history_ref): Update.
1082
5f08566b
TT
10832014-07-30 Tom Tromey <tromey@redhat.com>
1084
1085 * corefile.c (hook_type, call_extra_exec_file_hooks)
1086 (specify_exec_file_hook): Constify.
1087 * exec.c (exec_file_attach): Make "filename" const.
1088 * gdbcore.h (deprecated_exec_file_display_hook)
1089 (specify_exec_file_hook, exec_file_attach): Constify.
1090 * main.c (captured_main): Use catch_command_errors_const.
1091
8981c758
TT
10922014-07-30 Tom Tromey <tromey@redhat.com>
1093
1094 * target.c (open_target): New function.
1095 (add_target_with_completer, add_deprecated_target_alias): Use
1096 set_cmd_sfunc, set_cmd_context.
1097 (debug_to_open): Remove.
1098 (setup_target_debug): Update.
1099
a1c7835a
YQ
11002014-07-30 Yao Qi <yao@codesourcery.com>
1101
1102 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1103 comments.
1104 * parse.c (exp_iterate): Update comments.
1105
976411d6
GB
11062014-07-30 Gary Benson <gbenson@redhat.com>
1107
1108 * common/common-defs.h: New file.
1109 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1110 * defs.h: Include common-defs.h.
1111 Do not include config.h or build-gnulib/config.h.
1112
5d4848a4
GB
11132014-07-30 Gary Benson <gbenson@redhat.com>
1114
1115 * common/common-utils.h: Do not include config.h.
1116 * nat/linux-btrace.h: Likewise.
1117
d41f6d8e
GB
11182014-07-30 Gary Benson <gbenson@redhat.com>
1119
1120 * btrace.c: Include defs.h.
1121 * common/ptid.c: Include defs.h or server.h as appropriate.
1122 * nat/mips-linux-watch.c: Likewise.
1123
84202f9c
TT
11242014-07-29 Tom Tromey <tromey@redhat.com>
1125
1126 * target.c (target_is_pushed): Simplify.
1127
2530441c
JB
11282014-07-29 Joel Brobecker <brobecker@adacore.com>
1129
1130 GDB 7.8 released.
1131
7e09a223
YQ
11322014-07-29 Yao Qi <yao@codesourcery.com>
1133
1134 PR gdb/17206
1135 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1136
7ebdbe92
DE
11372014-07-28 Doug Evans <xdje42@gmail.com>
1138
1139 PR guile/17203
1140 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1141 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1142 parameters.
1143
f347ffc9
WN
11442014-07-28 Will Newton <will.newton@linaro.org>
1145
1146 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1147 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1148 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1149 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1150 (THUMB2_EABI_SYSCALL): Likewise.
1151 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1152 struct tramp_frame.
1153 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1154 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1155
37c5f1f7
DE
11562014-07-27 Doug Evans <xdje42@gmail.com>
1157
1158 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1159
0c3abbc7
DE
11602014-07-27 Doug Evans <xdje42@gmail.com>
1161
1162 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1163
e76c5d17
DE
11642014-07-26 Ludovic Courtès <ludo@gnu.org>
1165 Doug Evans <xdje42@gmail.com>
1166
1167 PR guile/17146
1168 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1169 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1170 * configure.ac: Try to use guild to compile an scm file, if it fails
1171 then disable guile support.
1172 * configure: Regenerate.
1173 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1174 GUILE_FILE_LIST.
1175 (GUILE_COMPILED_FILES): New variable.
1176 (GUILE_FILES) Update.
1177 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1178 (stamp-guile): Compile scm files.
1179 * guile/guile.c (boot_guile_support): New function.
1180 (standard_throw_args_p): New function.
1181 (print_standard_throw_error, print_throw_error): New functions.
1182 (handle_boot_error): New function.
1183 (initialize_scheme_side): Rewrite to call boot_guile_support.
1184 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1185 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1186
186fcde0
DE
11872014-07-26 Ludovic Courtès <ludo@gnu.org>
1188 Doug Evans <xdje42@gmail.com>
1189
1190 PR guile/17146
1191 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1192 * guile/lib/gdb/support.scm: New file.
1193 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1194 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1195 All uses updated.
1196 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1197 All uses updated.
1198 (%assert-type): Ditto, and renamed to assert-type.
1199 (%exception-print-style): Delete.
1200
4df42755
DE
12012014-07-26 Doug Evans <xdje42@gmail.com>
1202
1203 PR build/17105
1204 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1205 * configure: Regenerate.
1206 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1207 PYTHON_FILES.
1208 (PYTHON_FILES): New variable.
1209 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1210 (GUILE_FILES): New variable.
1211 (stamp-python, install-python, uninstall-python): Handle empty
1212 file list.
1213 (stamp-guile, install-guile, uninstall-guile): Ditto.
1214
ee7333ae
DE
12152014-07-26 Doug Evans <xdje42@gmail.com>
1216
1217 PR guile/17177
1218 * guile/lib/gdb.scm (pretty-printers): Export.
1219 (set-pretty-printers!): Export.
1220 * guile/lib/gdb/printing.scm (gdb module): Update.
1221 (prepend-pretty-printer!, append-pretty-printer!): Update.
1222 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1223 (pretty_printer_list_var): Delete.
1224 (pretty_printer_list): New static global.
1225 (gdbscm_pretty_printers): New function.
1226 (gdbscm_set_pretty_printers_x): New function.
1227 (ppscm_find_pretty_printer_from_gdb): Update.
1228 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1229 (gdbscm_initialize_pretty_printers): Update.
1230
74edf516
DE
12312014-07-26 Doug Evans <xdje42@gmail.com>
1232
1233 PR 17185
1234 * configure.ac: Add check for header gc/gc.h.
1235 Add check for function setenv.
1236 * configure: Regenerate.
1237 * config.in: Regenerate.
1238 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1239
d54398a7
MR
12402014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1241
1242 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1243 variation in gdbarch matching.
1244
ab16fce8
TT
12452014-07-25 Tom Tromey <tromey@redhat.com>
1246
1247 * exec.c (using_exec_ops): Remove.
1248 (exec_close_1): Update. Remove extraneous block, reindent.
1249 (add_target_sections): Use target_is_pushed.
1250
88056fbb
PA
12512014-07-25 Pedro Alves <palves@redhat.com>
1252
1253 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1254 * monitor.c (monitor_create_inferior): Likewise.
1255 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1256 * remote-sim.c (gdbsim_create_inferior): Likewise.
1257 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1258 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1259 * windows-nat.c (do_initial_windows_stuff): Likewise.
1260
70509625
PA
12612014-07-25 Pedro Alves <palves@redhat.com>
1262
1263 * NEWS: Mention signal passing and "signal" command changes.
1264 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1265 comment.
1266 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1267 call.
1268 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1269 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1270 (jump_command): Adjust clear_proceed_status call.
1271 (signal_command): Warn if other thread that are resumed have
1272 signals that will be delivered. Adjust clear_proceed_status call.
1273 (until_next_command, finish_command)
1274 (proceed_after_attach_callback, attach_command_post_wait)
1275 (attach_command): Adjust clear_proceed_status call.
1276 * infrun.c (proceed_after_vfork_done): Likewise.
1277 (proceed_after_attach_callback): Adjust comment.
1278 (clear_proceed_status_thread): Clear stop_signal if not in pass
1279 state.
1280 (clear_proceed_status_callback): Delete.
1281 (clear_proceed_status): New 'step' parameter. Only clear the
1282 proceed status of threads the command being prepared is about to
1283 resume.
1284 (proceed): If passed in an explicit signal, override stop_signal
1285 with it. Don't pass the last stop signal to the thread we're
1286 resuming.
1287 (init_wait_for_inferior): Adjust clear_proceed_status call.
1288 (switch_back_to_stepped_thread): Clear the signal if it should not
1289 be passed.
1290 * infrun.h (clear_proceed_status): New 'step' parameter.
1291 (user_visible_resume_ptid): Add comment.
1292 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1293 signal is in pass state.
1294 * remote.c (append_pending_thread_resumptions): Likewise.
1295 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1296
d8be2939
TT
12972014-07-25 Tom Tromey <tromey@redhat.com>
1298
1299 * target.h (target_stopped_data_address)
1300 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1301 parentheses.
1302
7d0d9d2b
PL
13032014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1304
1305 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1306 comments.
1307 (avr_pointer_to_address): Likewise.
1308
e9e7f724
TT
13092014-07-24 Tom Tromey <tromey@redhat.com>
1310
1311 * monitor.c (compile_pattern): Update.
1312 * target.h (struct target_ops) <to_shortname, to_longname,
1313 to_doc>: Now const.
1314
1947513d
TT
13152014-07-24 Tom Tromey <tromey@redhat.com>
1316
1317 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1318 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1319 (add_info_alias, add_com): Make "doc" const.
1320 (print_doc_line): Make "str" const.
1321 (delete_cmd): Update.
1322 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1323 (print_doc_line): Update.
1324 * cli/cli-script.c (document_command): Update.
1325 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1326 (add_com, add_info, add_info_alias): Update.
1327 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1328 * python/py-cmd.c (cmdpy_destroyer): Update.
1329
64e61d29
TT
13302014-07-24 Tom Tromey <tromey@redhat.com>
1331
1332 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1333 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1334 (help_cmd_list): Constify.
1335 (lookup_cmd): Update.
1336 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1337 const.
1338 (help_cmd_list, apropos_cmd): Update.
1339 * cli/cli-script.c (show_user): Update.
1340 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1341 * cli/cli-setshow.h (cmd_show_list): Update.
1342 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1343 (cmd_show_list): Update.
1344 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1345 * python/py-cmd.c (cmdpy_destroyer): Update.
1346
429e55ea
TT
13472014-07-24 Tom Tromey <tromey@redhat.com>
1348
1349 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1350 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1351 const.
1352 * command.h (deprecate_cmd): Update.
1353 * maint.c (maintenance_do_deprecate): Add casts.
1354
64669f3b
TT
13552014-07-24 Tom Tromey <tromey@redhat.com>
1356
1357 * cli/cli-decode.c (help_cmd): Make parameter "const".
1358 * cli/cli-decode.h (help_cmd): Update.
1359
d3d3328b
TT
13602014-07-24 Tom Tromey <tromey@redhat.com>
1361
1362 * stack.c (up_silently_base, down_silently_base): Make argument
1363 const.
1364
414842dc
TT
13652014-07-24 Tom Tromey <tromey@redhat.com>
1366
1367 * solib.c (solib_add): Make "pattern" const.
1368 * solib.h (solib_add): Update.
1369
baa336ce
TT
13702014-07-24 Tom Tromey <tromey@redhat.com>
1371
1372 * remote.c (remote_serial_open, print_packet, putpkt)
1373 (putpkt_binary): Constify.
1374 * remote.h (putpkt): Update.
1375
5a19e2d0
TT
13762014-07-24 Tom Tromey <tromey@redhat.com>
1377
1378 * monitor.c (monitor_open): Make "args" const.
1379 * monitor.h (monitor_open): Update.
1380
fc4baa5e
TT
13812014-07-24 Tom Tromey <tromey@redhat.com>
1382
1383 * maint.c (match_bfd_flags): Make "string" const.
1384 (print_bfd_section_info): Remove casts.
1385 (print_objfile_section_info): Make "string" const.
1386
0d5f0dbe
TT
13872014-07-24 Tom Tromey <tromey@redhat.com>
1388
1389 * inf-child.c (inf_child_open_target): Make "arg" const.
1390 * inf-child.h (inf_child_open_target): Update.
1391
41c77899
TT
13922014-07-24 Tom Tromey <tromey@redhat.com>
1393
1394 * environ.c (unset_in_environ): Make "var" const.
1395 * environ.h (unset_in_environ): Update.
1396
93db0d79
TT
13972014-07-24 Tom Tromey <tromey@redhat.com>
1398
1399 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1400 Make "cmd" const.
1401 (scan_filename_with_cleanup): Likewise.
1402 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1403 Make arguments const.
1404 (restore_command): Update.
1405
36d6eb95
PA
14062014-07-24 Pedro Alves <palves@redhat.com>
1407
1408 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1409
8009206a
TT
14102014-07-24 Tom Tromey <tromey@redhat.com>
1411 Gary Benson <gbenson@redhat.com>
1412
1413 * nat/linux-ptrace.c (additional_flags): New global.
1414 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1415 additional_flags; don't check GDBSERVER.
1416 (linux_ptrace_set_additional_flags): New function.
1417 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1418 Declare.
1419 * linux-nat.c (_initialize_linux_nat): Call
1420 linux_ptrace_set_additional_flags.
1421
a7068b60
TT
14222014-07-24 Tom Tromey <tromey@redhat.com>
1423
1424 * make-target-delegates (munge_type, write_debugmethod): New
1425 functions.
1426 (debug_names): New global.
1427 ($TARGET_DEBUG_PRINTER): New global.
1428 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1429 name.
1430 Write debug methods. Generate init_debug_target.
1431 * target-debug.h: New file.
1432 * target-delegates.c: Rebuild.
1433 * target.c: Include target-debug.h.
1434 (debug_target): Hoist definition.
1435 (target_kill, target_get_section_table, target_memory_map)
1436 (target_flash_erase, target_flash_done, target_detach)
1437 (target_disconnect, target_wait, target_resume)
1438 (target_pass_signals, target_program_signals, target_follow_fork)
1439 (target_mourn_inferior, target_search_memory)
1440 (target_thread_address_space, target_close)
1441 (target_find_new_threads, target_core_of_thread)
1442 (target_verify_memory, target_insert_mask_watchpoint)
1443 (target_remove_mask_watchpoint): Remove targetdebug code.
1444 (debug_to_post_attach, debug_to_prepare_to_store)
1445 (debug_to_files_info, debug_to_insert_breakpoint)
1446 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1447 (debug_to_region_ok_for_hw_watchpoint)
1448 (debug_to_can_accel_watchpoint_condition)
1449 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1450 (debug_to_watchpoint_addr_within_range)
1451 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1452 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1453 (debug_to_terminal_init, debug_to_terminal_inferior)
1454 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1455 (debug_to_terminal_save_ours, debug_to_terminal_info)
1456 (debug_to_load, debug_to_post_startup_inferior)
1457 (debug_to_insert_fork_catchpoint)
1458 (debug_to_remove_fork_catchpoint)
1459 (debug_to_insert_vfork_catchpoint)
1460 (debug_to_remove_vfork_catchpoint)
1461 (debug_to_insert_exec_catchpoint)
1462 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1463 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1464 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1465 (setup_target_debug): Call init_debug_target.
1466 * target.h (TARGET_DEBUG_PRINTER): New macro.
1467 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1468 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1469
2c51604d
GB
14702014-07-24 Gary Benson <gbenson@redhat.com>
1471
1472 * exceptions.h (throw_vfatal): Renamed to...
1473 (throw_vquit): New declaration.
1474 (throw_quit): Likewise.
1475 * exceptions.c (throw_vfatal): Renamed to...
1476 (throw_vquit): New function.
1477 (throw_quit): Likewise.
1478 (throw_error): Call throw_verror rather than throw_it.
1479 * utils.h (vfatal): Removed.
1480 (fatal): Likewise.
1481 * utils.c (vfatal): Removed.
1482 (fatal): Likewise.
1483 (internal_verror): Replaced call to fatal with call to throw_quit.
1484 (quit): Replaced calls to fatal with calls to throw_quit.
1485
34211963
ME
14862014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1487
1488 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1489 target_read_code.
1490
a52b4d3e
ME
14912014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1492
1493 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1494 less than zero in conditional expression.
1495
a8bdc56b
TT
14962014-07-23 Tom Tromey <tromey@redhat.com>
1497
1498 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1499 ($INTRO_PART): Don't match whitespace.
1500 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1501 argument matching.
1502 ($METHOD): Add $METHOD_TRAILER.
1503 (trim): Rewrite.
1504 (scan_target_h): New sub.
1505 Change main loop not to collect state.
1506 * target-delegates.c: Rebuild.
1507
91b52240
GB
15082014-07-23 Gary Benson <gbenson@redhat.com>
1509
1510 * cp-support.c (gdb_demangle): Fix build on systems without
1511 sigaltstack.
1512
45326f6f
JK
15132014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1516 for reference entry value target data value.
1517
e214cf6c
JK
15182014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1519
1520 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1521 value_available_contents_eq.
1522
bddbbedd
PA
15232014-07-22 Pedro Alves <palves@redhat.com>
1524
1525 * value.c (allocate_optimized_out_value): Don't mark value as
1526 non-lazy.
1527
45c71484
JW
15282014-07-22 Jiong Wang <jiong.wang@arm.com>
1529
1530 * MAINTAINERS (Write After Approval): Update my email address.
1531
9597b22a
DE
15322014-07-20 Doug Evans <dje@google.com>
1533
1534 PR server/17147
1535 * remote.c (putpkt_binary): Add text to error message.
1536
91101fe5
YQ
15372014-07-20 Yao Qi <yao@codesourcery.com>
1538
1539 * eval.c: Remove "Chill" from comments.
1540 * gdbtypes.h: Likewise.
1541 * symtab.h: Likewise.
1542
c9402c95
YQ
15432014-07-20 Yao Qi <yao@codesourcery.com>
1544
1545 * std-operator.def: Update comments to TERNOP_SLICE.
1546
ae8fddda
YQ
15472014-07-20 Yao Qi <yao@codesourcery.com>
1548
1549 * std-operator.def: Remove BINOP_RANGE.
1550 * breakpoint.c (watchpoint_exp_is_const): Update.
1551 * expprint.c (dump_subexp_body_standard): Likewise.
1552 * eval.c (init_array_element): Remove dead code.
1553 (evaluate_subexp_standard): Likewise.
1554
9c816640
YQ
15552014-07-20 Yao Qi <yao@codesourcery.com>
1556
1557 * std-operator.def: Remove BINOP_IN.
1558 * breakpoint.c (watchpoint_exp_is_const): Update.
1559 * eval.c (evaluate_subexp_standard): Likewise.
1560 * expprint.c (dump_subexp_body_standard): Likewise.
1561
164224e9
ME
15622014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1563
1564 * microblaze-tdep.c (microblaze_register_names): Add
1565 the rshr and rslr register names.
1566 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1567 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1568 Use of tdesc_numbered_register. Use of
1569 microblaze_register_g_packet_guesses. Use of
1570 tdesc_use_registers. Use of set_gdbarch_register_type.
1571 (microblaze_register_g_packet_guesses): New.
1572 * microblaze-tdep.h (microblaze_reg_num): Add
1573 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1574 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1575 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1576 * features/microblaze-core.xml: New file.
1577 * features/microblaze-stack-protect.xml: New file.
1578 * features/microblaze-with-stack-protect.c: New file.
1579 * features/microblaze-with-stack-protect.xml: New file.
1580 * features/microblaze.xml: New file.
1581 * features/microblaze.c: New file.
1582 * features/Makefile (microblaze-with-stack-protect): Add
1583 microblaze-with-stack-protect microblaze and microblaze-expedite.
1584 * regformats/microblaze-with-stack-protect.dat: New file.
1585 * regformats/microblaze.dat: New file.
1586 * doc/gdb.texinfo (MicroBlaze Features): Added.
1587
e8b2341c
TT
15882014-07-18 Tom Tromey <tromey@redhat.com>
1589
1590 * exec.c (exec_ops): Now static.
1591 * exec.h (exec_ops): Don't declare.
1592
44e89118
TT
15932014-07-18 Tom Tromey <tromey@redhat.com>
1594
1595 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1596 to find_target_beneath.
1597 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1598 find_target_beneath.
1599 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1600
b0ed115f
TT
16012014-07-18 Tom Tromey <tromey@redhat.com>
1602
1603 PR gdb/17130:
1604 * utils.c (quit): Use target_supports_terminal_ours.
1605 * target.h (target_supports_terminal_ours): Declare.
1606 * target.c (target_supports_delete_record): Don't check
1607 to_delete_record against NULL.
1608 (target_supports_terminal_ours): New function.
1609
e75fdfca
TT
16102014-07-18 Tom Tromey <tromey@redhat.com>
1611
1612 PR gdb/17130:
1613 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1614 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1615 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1616 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1617 * windows-nat.c (windows_xfer_partial): Always delegate.
1618 * record-btrace.c (record_btrace_xfer_partial): Simplify
1619 delegation.
1620 (record_btrace_fetch_registers, record_btrace_store_registers)
1621 (record_btrace_prepare_to_store, record_btrace_resume)
1622 (record_btrace_wait, record_btrace_find_new_threads)
1623 (record_btrace_thread_alive): Likewise.
1624 * procfs.c (procfs_xfer_partial): Always delegate.
1625 * corelow.c (core_xfer_partial): Always delegate.
1626 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1627
83814951
TT
16282014-07-18 Tom Tromey <tromey@redhat.com>
1629
1630 * exec.c (exec_make_note_section): Move earlier.
1631
b8b8facf
DE
16322014-07-17 Doug Evans <dje@google.com>
1633
74b49205 1634 PR gdb/17170
b8b8facf
DE
1635 * maint.c (count_symtabs_and_blocks): Handle NULL
1636 current_program_space.
1637 (report_command_stats): Check global enabled flag in addition to
1638 recorded enabled flag.
1639 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1640
69ff6be5
PA
16412014-07-16 Pedro Alves <palves@redhat.com>
1642
1643 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1644
252db1b5
TT
16452014-07-16 Tom Tromey <tromey@redhat.com>
1646
1647 * target.h (struct target_ops) <to_delete_record>: Reformat
1648 comment.
1649
a432721e
TT
16502014-07-16 Tom Tromey <tromey@redhat.com>
1651
1652 * target-delegates.c: Rebuild.
1653
487d9753
PL
16542014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1655
1656 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1657 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1658 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1659 (avr_pointer_to_address): Likewise.
1660 (avr_address_class_type_flags): New function.
1661 (avr_address_class_type_flags_to_name): Likewise.
1662 (avr_address_class_name_to_type_flags): Likewise.
1663 (avr_gdbarch_init): Set address_class_type_flags,
1664 address_class_type_flags_to_name and
1665 address_class_name_to_type_flags.
1666
57745c90
PA
16672014-07-15 Pedro Alves <palves@redhat.com>
1668
1669 * linux-nat.c (kill_callback): Save errno and work with saved
1670 copy.
1671
2d40be18
SM
16722014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1673
1674 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1675
572f6555
EBM
16762014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1677
1678 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1679 breakpoint support correctly.
1680
cc1c52ad
PA
16812014-07-14 Pedro Alves <palves@redhat.com>
1682
1683 * utils.c (prompt_for_continue): Call target_terminal_ours.
1684
1e973570
PA
16852014-07-14 Pedro Alves <palves@redhat.com>
1686
1687 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1688 catch_errors. Don't re-enable stdin or notify observers where,
1689 and rethrow error.
1690 (fetch_inferior_event_wrapper): Delete.
1691
93d6eb10
PA
16922014-07-14 Pedro Alves <palves@redhat.com>
1693
1694 PR gdb/17072
1695 * top.c: Include "inf-loop.h".
1696 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1697 field.
1698 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1699 was async before.
1700 (gdb_readline_wrapper): Store whether the target is async, and
1701 make it sync.
1702
0017922d
PA
17032014-07-14 Pedro Alves <palves@redhat.com>
1704
1705 PR gdb/17072
1706 * top.c (gdb_readline_wrapper_line): Tweak comment.
1707 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1708 the input handler callback.
1709
94696ad3
PA
17102014-07-14 Pedro Alves <palves@redhat.com>
1711
1712 PR gdb/17072
1713 * main.c: Include event-top.h.
1714 (handle_command_errors): New function.
1715 (catch_command_errors, catch_command_errors_const): Use it.
1716
9d1e69a2
PA
17172014-07-14 Pedro Alves <palves@redhat.com>
1718
1719 * exceptions.c (catch_command_errors, catch_command_errors_const):
1720 Moved to main.c.
1721 * exceptions.h (catch_command_errors_ftype)
1722 (catch_command_errors_const_ftype): Moved to main.c.
1723 (catch_command_errors, catch_command_errors_const): Delete
1724 declarations.
1725 * main.c (catch_command_errors_ftype)
1726 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1727 (catch_command_errors, catch_command_errors_const)): Moved here
1728 from exceptions.c and make static.
1729
feefc97b
PA
17302014-07-14 Pedro Alves <palves@redhat.com>
1731
1732 * exceptions.c (print_any_exception): Delete.
1733 (catch_exceptions_with_msg): Use exception_print instead of
1734 print_any_exception.
1735 (catch_errors): Use exception_fprintf instead of
1736 print_any_exception.
1737 (catch_command_errors, catch_command_errors_const): Use
1738 exception_print instead of print_any_exception.
1739
c933f875
PA
17402014-07-14 Pedro Alves <palves@redhat.com>
1741
1742 * infcall.c (run_inferior_call): Set 'sync_execution' while
1743 running the inferior call.
1744
feb6f816
PA
17452014-07-14 Pedro Alves <palves@redhat.com>
1746
1747 * value.c (value_contents_equal): Delete function.
1748 * value.h (value_contents_equal): Delete declaration.
1749
d98b7a16
TT
17502014-07-14 Tom Tromey <tromey@redhat.com>
1751
1752 PR exp/17106:
1753 * gdbtypes.c (is_dynamic_type_internal): New function, from
1754 is_dynamic_type.
1755 (is_dynamic_type): Rewrite.
1756 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1757 (resolve_dynamic_struct): Likewise.
1758 (resolve_dynamic_type_internal): New function, from
1759 resolve_dynamic_type.
1760 (resolve_dynamic_type): Rewrite.
1761
548740d6
TT
17622014-07-14 Tom Tromey <tromey@redhat.com>
1763
1764 * target.c (target_require_runnable): Also check record_stratum.
1765 Update comment.
1766
808f7ab1
YQ
17672014-07-11 Yao Qi <yao@codesourcery.com>
1768
1769 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1770 thumb_instruction_restores_sp return true.
1771
540314bd
YQ
17722014-07-11 Yao Qi <yao@codesourcery.com>
1773
1774 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1775 (thumb_in_function_epilogue_p): Call
1776 thumb_instruction_restores_sp.
1777
1db01f22
YQ
17782014-07-11 Yao Qi <yao@codesourcery.com>
1779
1780 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1781 'add sp, #imm'.
1782 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1783
3116063b
GB
17842014-07-11 Gary Benson <gbenson@redhat.com>
1785
1786 * amd64-linux-nat.c (gdbcore.h): Remove include.
1787 (regset.h): Likewise.
1788 (nat/linux-btrace.h): Likewise.
1789 (btrace.h): Likewise.
1790 (gdb_assert.h): Likewise.
1791 (string.h): Likewise.
1792 (sys/uio.h): Likewise.
1793 (sys/debugreg.h): Likewise.
1794 (sys/syscall.h): Likewise.
1795 (sys/procfs.h): Likewise.
1796 (sys/user.h): Likewise.
1797 (asm/ptrace.h): Likewise.
1798 (i386-nat.h): Likewise.
1799 * i386-linux-nat.c (i386-nat.h): Likewise.
1800 (regset.h): Likewise.
1801 (target.h): Likewise.
1802 (linux-nat.h): Likewise.
1803 (nat/linux-btrace.h): Likewise.
1804 (btrace.h): Likewise.
1805 (gdb_assert.h): Likewise.
1806 (string.h): Likewise.
1807 (sys/uio.h): Likewise.
1808 (sys/user.h): Likewise.
1809 (sys/procfs.h): Likewise.
1810 (sys/reg.h): Likewise.
1811 (sys/debugreg.h): Likewise.
1812 (ORIG_EAX): Remove definition.
1813
040baaf6
GB
18142014-07-11 Gary Benson <gbenson@redhat.com>
1815
1816 * i386-linux-nat.h: New file.
1817 * x86-linux-nat.h: Likewise.
1818 * x86-linux-nat.c: Likewise.
1819 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1820 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1821 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1822 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1823 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1824 (PTRACE_SETREGSET): Likewise.
1825 (arch_lwp_info): Now in x86-linux-nat.c.
1826 (have_ptrace_getregset): Now in x86-linux-nat.h.
1827 (x86_linux_dr_get): Now in x86-linux-nat.c.
1828 (x86_linux_dr_set): Likewise.
1829 (x86_linux_dr_get_addr): Likewise.
1830 (x86_linux_dr_get_control): Likewise.
1831 (x86_linux_dr_get_status): Likewise.
1832 (update_debug_registers_callback): Likewise.
1833 (x86_linux_dr_set_control): Likewise.
1834 (x86_linux_dr_set_addr): Likewise.
1835 (x86_linux_prepare_to_resume): Likewise.
1836 (x86_linux_new_thread): Likewise.
1837 (x86_linux_new_fork): Likewise.
1838 (x86_linux_get_thread_area): Likewise.
1839 (super_post_startup_inferior): Likewise.
1840 (x86_linux_child_post_startup_inferior): Likewise.
1841 (AMD64_LINUX_USER64_CS): Likewise.
1842 (AMD64_LINUX_X32_DS): Likewise.
1843 (x86_linux_read_description): Likewise.
1844 (x86_linux_enable_btrace): Likewise.
1845 (x86_linux_disable_btrace): Likewise.
1846 (x86_linux_teardown_btrace): Likewise.
1847 (x86_linux_read_btrace): Likewise.
1848 (x86_linux_create_target): Likewise.
1849 (x86_linux_add_target): Likewise.
1850 * i386-linux-nat.c (x86-linux-nat.h): New include.
1851 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1852 (PTRACE_SETREGSET): Likewise.
1853 (arch_lwp_info): Now in x86-linux-nat.c.
1854 (have_ptrace_getregset): Now in x86-linux-nat.h.
1855 (x86_linux_dr_get): Now in x86-linux-nat.c.
1856 (x86_linux_dr_set): Likewise.
1857 (x86_linux_dr_get_addr): Likewise.
1858 (x86_linux_dr_get_control): Likewise.
1859 (x86_linux_dr_get_status): Likewise.
1860 (update_debug_registers_callback): Likewise.
1861 (x86_linux_dr_set_control): Likewise.
1862 (x86_linux_dr_set_addr): Likewise.
1863 (x86_linux_prepare_to_resume): Likewise.
1864 (x86_linux_new_thread): Likewise.
1865 (x86_linux_new_fork): Likewise.
1866 (x86_linux_get_thread_area): Likewise.
1867 (super_post_startup_inferior): Likewise.
1868 (x86_linux_child_post_startup_inferior): Likewise.
1869 (AMD64_LINUX_USER64_CS): Likewise.
1870 (AMD64_LINUX_X32_DS): Likewise.
1871 (x86_linux_read_description): Likewise.
1872 (x86_linux_enable_btrace): Likewise.
1873 (x86_linux_disable_btrace): Likewise.
1874 (x86_linux_teardown_btrace): Likewise.
1875 (x86_linux_read_btrace): Likewise.
1876 (x86_linux_create_target): Likewise.
1877 (x86_linux_add_target): Likewise.
1878
1aa7e42c
GB
18792014-07-11 Gary Benson <gbenson@redhat.com>
1880
1881 * amd64-linux-nat.c: Comment and whitespace changes.
1882 * i386-linux-nat.c: Comment and whitespace changes.
1883
c1e246a0
GB
18842014-07-11 Gary Benson <gbenson@redhat.com>
1885
1886 * amd64-linux-nat.c (x86_linux_create_target): New function.
1887 (x86_linux_add_target): Likewise.
1888 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1889 * i386-linux-nat.c (x86_linux_create_target): New function.
1890 (x86_linux_add_target): Likewise.
1891 (_initialize_i386_linux_nat): Delegate to the above new functions.
1892
8c420b8d
GB
18932014-07-11 Gary Benson <gbenson@redhat.com>
1894
1895 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1896 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1897 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1898 (ps_get_thread_area): Delegate to the above.
1899
cb1da100
GB
19002014-07-11 Gary Benson <gbenson@redhat.com>
1901
1902 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1903 x86_linux_read_description. All uses updated. amd64-specific
1904 code conditionalized. Conditionalized i386-specific code added.
1905 Redundant cast removed.
1906 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1907 x86_linux_read_description. All uses updated. i386-specific
1908 code conditionalized. Conditionalized amd64-specific code added.
1909 One sizeof replaced with the actual type it is describing.
1910
2acf3cd0
GB
19112014-07-11 Gary Benson <gbenson@redhat.com>
1912
1913 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1914 x86_linux_dr_get. All uses updated.
1915 (amd64_linux_dr_set): Renamed to
1916 x86_linux_dr_set. All uses updated.
1917 (amd64_linux_dr_get_addr): Renamed to
1918 x86_linux_dr_get_addr. All uses updated.
1919 (amd64_linux_dr_get_control): Renamed to
1920 x86_linux_dr_get_control. All uses updated.
1921 (amd64_linux_dr_get_status): Renamed to
1922 x86_linux_dr_get_status. All uses updated.
1923 (amd64_linux_dr_set_control): Renamed to
1924 x86_linux_dr_set_control. All uses updated.
1925 (amd64_linux_dr_set_addr): Renamed to
1926 x86_linux_dr_set_addr. All uses updated.
1927 (amd64_linux_prepare_to_resume): Renamed to
1928 x86_linux_prepare_to_resume. All uses updated.
1929 (amd64_linux_new_thread): Renamed to
1930 x86_linux_new_thread. All uses updated.
1931 (amd64_linux_new_fork): Renamed to
1932 x86_linux_new_fork. All uses updated.
1933 (amd64_linux_child_post_startup_inferior): Renamed to
1934 x86_linux_child_post_startup_inferior. All uses updated.
1935 (amd64_linux_enable_btrace): Renamed to
1936 x86_linux_enable_btrace. All uses updated.
1937 (amd64_linux_disable_btrace): Renamed to
1938 x86_linux_disable_btrace. All uses updated.
1939 (amd64_linux_teardown_btrace): Renamed to
1940 x86_linux_teardown_btrace. All uses updated.
1941 (amd64_linux_read_btrace): Renamed to
1942 x86_linux_read_btrace. All uses updated.
1943 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1944 x86_linux_dr_get. All uses updated.
1945 (i386_linux_dr_set): Renamed to
1946 x86_linux_dr_set. All uses updated.
1947 (i386_linux_dr_get_addr): Renamed to
1948 x86_linux_dr_get_addr. All uses updated.
1949 (i386_linux_dr_get_control): Renamed to
1950 x86_linux_dr_get_control. All uses updated.
1951 (i386_linux_dr_get_status): Renamed to
1952 x86_linux_dr_get_status. All uses updated.
1953 (i386_linux_dr_set_control): Renamed to
1954 x86_linux_dr_set_control. All uses updated.
1955 (i386_linux_dr_set_addr): Renamed to
1956 x86_linux_dr_set_addr. All uses updated.
1957 (i386_linux_prepare_to_resume): Renamed to
1958 x86_linux_prepare_to_resume. All uses updated.
1959 (i386_linux_new_thread): Renamed to
1960 x86_linux_new_thread. All uses updated.
1961 (i386_linux_new_fork): Renamed to
1962 x86_linux_new_fork. All uses updated.
1963 (i386_linux_child_post_startup_inferior): Renamed to
1964 x86_linux_child_post_startup_inferior. All uses updated.
1965 (i386_linux_enable_btrace): Renamed to
1966 x86_linux_enable_btrace. All uses updated.
1967 (i386_linux_disable_btrace): Renamed to
1968 x86_linux_disable_btrace. All uses updated.
1969 (i386_linux_teardown_btrace): Renamed to
1970 x86_linux_teardown_btrace. All uses updated.
1971 (i386_linux_read_btrace): Renamed to
1972 x86_linux_read_btrace. All uses updated.
1973
b9c1d481
AS
19742014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1975
1976 * remote.c (extended_remote_post_attach): New function.
1977 (init_extended_remote_ops): Install it as to_post_attach method.
1978
7180e04a
PA
19792014-07-09 Pedro Alves <palves@redhat.com>
1980
1981 * infcmd.c (attach_command_post_wait): Don't call
1982 target_terminal_inferior here.
1983 (attach_command): Call it here instead.
1984
9a9a7608
AB
19852014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1988 field.
1989 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1990 from varobj.c, with additional checks.
1991 (c_varobj_ops): Fill in is_path_expr_parent field.
1992 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1993 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1994 field.
1995 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1996 ops method.
1997 (varobj_default_is_path_expr_parent): New function.
1998 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1999 (varobj_default_is_path_expr_parent): Declare new function.
2000
1f267ae3
MM
20012014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2002
2003 * infcmd.c (finish_backward): Turn internal error into normal error.
2004
b2ee242b
PA
20052014-07-07 Pedro Alves <palves@redhat.com>
2006
8a869bca 2007 PR gdb/17096
b2ee242b
PA
2008 * remote.c (async_handle_remote_sigint)
2009 (async_handle_remote_sigint_twice): Call
2010 gdb_call_async_signal_handler instead of
2011 mark_async_signal_handler.
2012
38e229b2
TT
20132014-07-07 Tom Tromey <tromey@redhat.com>
2014
2015 * target-delegates.c: Rebuild.
2016 * target.c (target_info_record): Remove.
2017 * record.c (info_record_command): Unconditionally call
2018 to_info_record.
2019 * target.h (struct target_ops) <to_info_record>: Use
2020 TARGET_DEFAULT_IGNORE.
2021 (target_info_record): Remove.
2022
f0f9ff95
TT
20232014-07-07 Tom Tromey <tromey@redhat.com>
2024
2025 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2026 TARGET_DEFAULT_NORETURN.
2027 * target.c (generic_tls_error): New function.
2028 (target_translate_tls_address): Don't search target stack.
2029 * target-delegates.c: Rebuild.
2030 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2031 stack.
2032 * linux-thread-db.c (thread_db_get_thread_local_address):
2033 Unconditionally call beneath target.
2034
4a5be5ee
MK
20352014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2036
2037 * cli/cli-logging.c (pop_output_files): Assign targerr to
2038 gdb_stdtargerr.
2039
92c3b204
AB
20402014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * MAINTAINERS (Write After Approval): Update my email address.
2043
9b11e3a7
GB
20442014-07-02 Gary Benson <gbenson@redhat.com>
2045
2046 * proc-service.c (ps_xfer_memory): Update comment.
2047 (ps_pstop): Remove unused function.
2048 (ps_pcontinue): Likewise.
2049 (ps_lstop): Likewise.
2050 (ps_lcontinue): Likewise.
2051 (ps_lgetxregsize): Likewise.
2052 (ps_lgetxregs): Likewise.
2053 (ps_lsetxregs): Likewise.
2054 (ps_plog): Likewise.
2055 (ps_ptread): Likewise.
2056 (ps_ptwrite): Likewise.
2057
cf363f18
MW
20582014-07-01 Mark Wielaard <mjw@redhat.com>
2059
2060 * dwarf2read.c (add_array_cv_type): New function.
2061 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2062 (read_tag_volatile_type): Likewise.
2063
82ae6c8d
TT
20642014-07-01 Tom Tromey <tromey@redhat.com>
2065
2066 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2067 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2068 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2069 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2070 * command.h (cmd_cfunc_ftype): Move earlier.
2071 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2072 (add_com, add_info): Use cmd_cfunc_ftype.
2073
96142726
TT
20742014-06-30 Tom Tromey <tromey@redhat.com>
2075
2076 * symtab.c (operator_chars): Make parameters and return type
2077 const.
2078 (file_matches): Make "files" const.
2079 (struct search_symbols_data) <files>: Now const.
2080 (search_symbols): Make "regexp" and "files" parameters const.
2081 Update.
2082 (symtab_symbol_info): Remove cast.
2083 (rbreak_command): Update.
2084 * symtab.h (search_symbols): Update.
2085
b67a2c6f
YQ
20862014-06-27 Yao Qi <yao@codesourcery.com>
2087
2088 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2089 Change parameter type to 'struct thread_info *'. Caller
2090 updated.
2091 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2092 Update declaration.
2093 * dummy-frame.c (struct dummy_frame_id): New.
2094 (dummy_frame_id_eq): New function.
2095 (struct dummy_frame) <id>: Change its type to 'struct
2096 dummy_frame_id'.
2097 (dummy_frame_push): Add parameter ptid and save it in
2098 dummy_frame_id.
2099 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2100 inferior_ptid.
2101 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2102 to inferior_ptid.
2103 (lookup_dummy_frame): Change parameter type to 'struct
2104 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2105 instead of frame_id_eq.
2106 (dummy_frame_pop): Add parameter ptid. Callers updated.
2107 Update comments. Compose dummy_frame_id and pass it to
2108 lookup_dummy_frame.
2109 (dummy_frame_discard): Add parameter ptid.
2110 (dummy_frame_sniffer): Compose dummy_frame_id and call
2111 dummy_frame_id_eq instead of frame_id_eq.
2112 (fprint_dummy_frames): Print ptid.
2113 * dummy-frame.h: Remove comments.
2114 (dummy_frame_push): Add ptid in declaration.
2115 (dummy_frame_pop, dummy_frame_discard): Likewise.
2116
5b10184c
TT
21172014-06-26 Tom Tromey <tromey@redhat.com>
2118
2119 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2120 * command.h (error_no_arg): Update.
2121
06900326
TT
21222014-06-26 Tom Tromey <tromey@redhat.com>
2123
2124 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2125 (do_show_command): Make "arg" const.
2126 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2127
c2bcbb1d
TT
21282014-06-26 Tom Tromey <tromey@redhat.com>
2129
2130 * record-full.c (record_full_get_bookmark): Make "args" const.
2131 (record_full_goto_bookmark): Make "raw_bookmark" const.
2132 * record.c (record_goto): New function.
2133 (cmd_record_goto): Use it. Now static.
2134 * record.h (record_goto): Declare.
2135 (cmd_record_goto): Remove declaration.
2136 * target-delegates.c: Rebuild.
2137 * target.h (struct target_ops) <to_get_bookmark,
2138 to_goto_bookmark>: Make parameter const.
2139
9cbe5fff
TT
21402014-06-26 Tom Tromey <tromey@redhat.com>
2141
2142 * defs.h (generic_load): Update.
2143 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2144 * monitor.c (monitor_load): Make "args" const.
2145 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2146 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2147 const.
2148 (mips_load): Make "file" const.
2149 * remote-sim.c (gdbsim_load): Make "args" const.
2150 * remote.c (remote_load): Make "name" const.
2151 * symfile.c (generic_load): Make "args" const.
2152 * target-delegates.c: Rebuild.
2153 * target.c (target_load): Make "arg" const.
2154 (debug_to_load): Make "args" const.
2155 * target.h (struct target_ops) <to_load>: Make parameter const.
2156 (target_load): Update.
2157
34a68019
TT
21582014-06-26 Tom Tromey <tromey@redhat.com>
2159
2160 PR symtab/16902:
2161 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2162 (dwarf2_physname, read_partial_die)
2163 (guess_partial_die_structure_name, fixup_partial_die)
2164 (guess_full_die_structure_name, anonymous_struct_prefix)
2165 (dwarf2_name): Use per-BFD obstack.
2166
efc889c1
YQ
21672014-06-26 Yao Qi <yao@codesourcery.com>
2168
2169 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2170 dummyframe and this_id into inner block below.
2171
4395285e
YQ
21722014-06-26 Yao Qi <yao@codesourcery.com>
2173
2174 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2175 with "signal_pass[0]" in the initialization of signal_pass.
2176
aef92902
MM
21772014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2178
2179 * record-btrace.c (record_btrace_generating_corefile)
2180 (record_btrace_prepare_to_generate_core)
2181 (record_btrace_done_generating_core): New.
2182 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2183 (record_btrace_store_registers, record_btrace_prepare_to_store):
2184 Forward request when generating a core file.
2185 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2186 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2187 to_done_generating_core.
2188
5fff78c4
MM
21892014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2190
2191 * target.h (target_ops) <to_prepare_to_generate_core>
2192 <to_done_generating_core>: New.
2193 (target_prepare_to_generate_core, target_done_generating_core): New.
2194 * target.c (target_prepare_to_generate_core)
2195 (target_done_generating_core): New.
2196 * target-delegates.c: Regenerate.
2197 * gcore.c: (write_gcore_file): Rename to ...
2198 (write_gcore_file_1): ...this.
2199 (write_gcore_file): Call target_prepare_to_generate_core
2200 and target_done_generating_core.
2201
1d1f1ccb
MM
22022014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2203
2204 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2205 * gcore.c (write_gcore_file): Free memory returned from
2206 make_corefile_notes.
2207 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2208 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2209
3343ef86
YQ
22102014-06-24 Yao Qi <yao@codesourcery.com>
2211
2212 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2213 (arm_linux_init_abi): Set skip_trampoline_code with
2214 gdbarch_skip_trampoline_code instead of
2215 find_solib_trampoline_target.
2216
18d18ac8
YQ
22172014-06-24 Yao Qi <yao@codesourcery.com>
2218
2219 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2220 arm_skip_bx_reg returns non-zero.
2221
80d8d390
YQ
22222014-06-24 Yao Qi <yao@codesourcery.com>
2223
2224 * arm-tdep.c (arm_skip_bx_reg): New function.
2225 (arm_skip_stub): Call arm_skip_bx_reg.
2226
6a18a01c
DB
22272014-06-23 Don Breazeal <donb@codesourcery.com>
2228
2229 * MAINTAINERS: Add myself as write-after-approval maintainer.
2230
8e9db26e
PA
22312014-06-23 Pedro Alves <palves@redhat.com>
2232
2233 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2234 DR_CONTROL before setting DR0..DR3.
2235 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2236 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2237 bits of DR_CONTROL related to the debug register slot being
2238 disabled. If all slots are vacant, clear local slowdown as well,
2239 and assert DR_CONTROL is 0.
2240
70afc5b7
SC
22412014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2242
2243 * python/lib/gdb/command/xmethods.py
2244 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2245 current progspace only if the string "progspace" matches LOCUS_RE.
2246
840ed64d
JK
22472014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 Fix --with-system-readline with readline-6.3 patch 5.
2250 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2251 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2252 types.
2253
26f2dc30
TT
22542014-06-20 Tom Tromey <tromey@redhat.com>
2255
2256 * dwarf2read.c (dw2_get_real_path): Use correct type in
2257 OBSTACK_CALLOC.
2258 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2259
125f8a3d
GB
22602014-06-20 Gary Benson <gbenson@redhat.com>
2261
2262 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2263 * common/glibc_thread_db.h: Likewise.
2264 * common/i386-cpuid.h: Likewise.
2265 * common/i386-gcc-cpuid.h: Likewise.
2266 * common/linux-btrace.h: Likewise.
2267 * common/linux-osdata.h: Likewise.
2268 * common/linux-procfs.h: Likewise.
2269 * common/linux-ptrace.h: Likewise.
2270 * common/mips-linux-watch.h: Likewise.
2271 * common/linux-btrace.c: Moved to nat.
2272 * common/linux-osdata.c: Likewise.
2273 * common/linux-procfs.c: Likewise.
2274 * common/linux-ptrace.c: Likewise.
2275 * common/mips-linux-watch.c: Likewise.
2276 * nat/gdb_thread_db.h: Moved from common.
2277 * nat/glibc_thread_db.h: Likewise.
2278 * nat/i386-cpuid.h: Likewise.
2279 * nat/i386-gcc-cpuid.h: Likewise.
2280 * nat/linux-btrace.c: Likewise.
2281 * nat/linux-btrace.h: Likewise.
2282 * nat/linux-osdata.c: Likewise.
2283 * nat/linux-osdata.h: Likewise.
2284 * nat/linux-procfs.c: Likewise.
2285 * nat/linux-procfs.h: Likewise.
2286 * nat/linux-ptrace.c: Likewise.
2287 * nat/linux-ptrace.h: Likewise.
2288 * nat/mips-linux-watch.c: Likewise.
2289 * nat/mips-linux-watch.h: Likewise.
2290 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2291 (object file files): Reordered.
2292 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2293 of glibc_thread_db.h.
2294
42995dbd
GB
22952014-06-20 Gary Benson <gbenson@redhat.com>
2296
2297 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2298 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2299 (i386_dr_low): Likewise.
2300 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2301 (i386_dr_low_set_addr): Likewise.
2302 (i386_dr_low_get_addr): Likewise.
2303 (i386_dr_low_can_set_control): Likewise.
2304 (i386_dr_low_set_control): Likewise.
2305 (i386_dr_low_get_control): Likewise.
2306 (i386_dr_low_get_status): Likewise.
2307 (i386_get_debug_register_length): Likewise.
2308 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2309 (i386_dr_low): Likewise.
2310 * nat/i386-dregs.c (i386-low.h): Remove include.
2311 (i386-nat.h): Likewise.
2312 (nat/i386-dregs.h): New include.
2313 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2314 (i386_dr_low_set_addr): Likewise.
2315 (i386_dr_low_get_addr): Likewise.
2316 (i386_dr_low_can_set_control): Likewise.
2317 (i386_dr_low_set_control): Likewise.
2318 (i386_dr_low_get_control): Likewise.
2319 (i386_dr_low_get_status): Likewise.
2320 (i386_get_debug_register_length): Likewise.
2321 (debug_hw_points): Likewise.
2322
3ed9baed
IB
23232014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2324
2325 * Makefile.in (SFILES): Add d-exp.y.
2326 (YYFILES): Add d-exp.c.
2327 (YYOBJ): Add d-exp.o.
2328 (local-maintainer-clean): Delete d-exp.c.
2329 * d-exp.y: New file.
2330 * d-lang.h (d_parse): New declaration.
2331 (d_error): New declaration.
2332 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2333 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2334 PREC_ORDER operators.
2335 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2336
78c164b0
YQ
23372014-06-19 Yao Qi <yao@codesourcery.com>
2338
2339 * gdbthread.h (any_running): Remove the declaration.
2340 * thread.c (any_running): Remove.
2341
f6e29b6e
YQ
23422014-06-19 Yao Qi <yao@codesourcery.com>
2343
2344 * gdbthread.h (struct thread_info) <state>: Change its type to
2345 'enum thread_state'. Update comments.
2346
034f788c
PA
23472014-06-19 Pedro Alves <palves@redhat.com>
2348
2349 * gdbthread.h (ALL_THREADS): Delete.
2350 (ALL_NON_EXITED_THREADS): New macro.
2351 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2352 instead of ALL_THREADS.
2353 * infrun.c (find_thread_needs_step_over)
2354 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2355 instead of ALL_THREADS.
2356 * record-btrace.c (record_btrace_open)
2357 (record_btrace_stop_recording, record_btrace_close)
2358 (record_btrace_is_replaying, record_btrace_resume)
2359 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2360 * remote.c (append_pending_thread_resumptions): Likewise.
2361 * thread.c (thread_apply_all_command): Likewise.
2362
46e33252
GB
23632014-06-19 Gary Benson <gbenson@redhat.com>
2364
2365 * i386-nat.c (i386_stopped_by_watchpoint):
2366 Use i386_dr_stopped_by_watchpoint.
2367 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2368 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2369
3a8ee006
GB
23702014-06-19 Gary Benson <gbenson@redhat.com>
2371
2372 * nat/i386-dregs.c: New file.
2373 * Makefile.in (i386-dregs.o): New rule.
2374 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2375 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2376 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2377 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2378 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2379 * config/i386/go32.mh (NATDEPFILES): Likewise.
2380 * config/i386/linux.mh (NATDEPFILES): Likewise.
2381 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2382 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2383 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2384 * i386-nat.h (debug_hw_points): New declaration.
2385 * i386-nat.c (breakpoint.h): Remove include.
2386 (command.h): Likewise.
2387 (target.h): Likewise.
2388 (gdb_assert.h): Likewise.
2389 (debug_hw_points): Made nonstatic.
2390 (debug_printf): Now in i386-dregs.c.
2391 (TARGET_HAS_DR_LEN_8): Likewise.
2392 (DR_CONTROL_SHIFT): Likewise.
2393 (DR_CONTROL_SIZE): Likewise.
2394 (DR_RW_EXECUTE): Likewise.
2395 (DR_RW_WRITE): Likewise.
2396 (DR_RW_READ): Likewise.
2397 (DR_RW_IORW): Likewise.
2398 (DR_LEN_1): Likewise.
2399 (DR_LEN_2): Likewise.
2400 (DR_LEN_4): Likewise.
2401 (DR_LEN_8): Likewise.
2402 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2403 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2404 (DR_ENABLE_SIZE): Likewise.
2405 (DR_LOCAL_SLOWDOWN): Likewise.
2406 (DR_GLOBAL_SLOWDOWN): Likewise.
2407 (DR_CONTROL_RESERVED): Likewise.
2408 (I386_DR_CONTROL_MASK): Likewise.
2409 (I386_DR_VACANT): Likewise.
2410 (I386_DR_LOCAL_ENABLE): Likewise.
2411 (I386_DR_GLOBAL_ENABLE): Likewise.
2412 (I386_DR_DISABLE): Likewise.
2413 (I386_DR_SET_RW_LEN): Likewise.
2414 (I386_DR_GET_RW_LEN): Likewise.
2415 (I386_DR_WATCH_HIT): Likewise.
2416 (i386_wp_op_t): Likewise.
2417 (i386_show_dr): Likewise.
2418 (i386_length_and_rw_bits): Likewise.
2419 (i386_insert_aligned_watchpoint): Likewise.
2420 (i386_remove_aligned_watchpoint): Likewise.
2421 (i386_handle_nonaligned_watchpoint): Likewise.
2422 (i386_update_inferior_debug_regs): Likewise.
2423 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2424 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2425 (i386_region_ok_for_watchpoint):
2426 Use i386_dr_region_ok_for_watchpoint.
2427 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2428
322a8e06
GB
24292014-06-19 Gary Benson <gbenson@redhat.com>
2430
2431 * i386-nat.c (i386_insert_hw_breakpoint): Use
2432 i386_insert_watchpoint.
2433 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2434
8f26655c
GB
24352014-06-19 Gary Benson <gbenson@redhat.com>
2436
2437 * i386-nat.c (i386_dr_show): Renamed to
2438 i386_show_dr and made static. All uses updated.
2439 (i386_dr_length_and_rw_bits): Renamed to
2440 i386_length_and_rw_bits and made static.
2441 All uses updated.
2442 (i386_dr_insert_aligned_watchpoint): Renamed to
2443 i386_insert_aligned_watchpoint and made static.
2444 All uses updated.
2445 (i386_dr_remove_aligned_watchpoint): Renamed to
2446 i386_remove_aligned_watchpoint and made static.
2447 All uses updated.
2448 (i386_dr_update_inferior_debug_regs): Renamed to
2449 i386_update_inferior_debug_regs and made static.
2450 All uses updated.
2451 * nat/i386-dregs.h (i386_dr_show): Removed.
2452 (i386_dr_length_and_rw_bits): Likewise.
2453 (i386_dr_insert_aligned_watchpoint): Likewise.
2454 (i386_dr_remove_aligned_watchpoint): Likewise.
2455 (i386_dr_update_inferior_debug_regs): Likewise.
2456
992c7d70
GB
24572014-06-19 Gary Benson <gbenson@redhat.com>
2458
2459 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2460 * configure: Regenerate.
2461 * config.in: Likewise.
2462 * main.c (signal.h): New include.
2463 (setup_alternate_signal_stack): New function.
2464 (captured_main): Call the above.
2465 * cp-support.c (signal.h): New include.
2466 (catch_demangler_crashes): New flag.
2467 (SIGJMP_BUF): New define.
2468 (SIGSETJMP): Likewise.
2469 (SIGLONGJMP): Likewise.
2470 (gdb_demangle_jmp_buf): New static global.
2471 (gdb_demangle_attempt_core_dump): Likewise.
2472 (gdb_demangle_signal_handler): New function.
2473 (gdb_demangle): If catch_demangler_crashes is set, install the
2474 above signal handler before calling bfd_demangle, and restore
2475 the original signal handler afterwards. Display the offending
2476 symbol and call demangler_warning the first time a segmentation
2477 fault is caught.
2478 (_initialize_cp_support): New maint set/show command.
2479
eae7090b
GB
24802014-06-19 Gary Benson <gbenson@redhat.com>
2481
2482 * utils.h (resource_limit_kind): New enum.
2483 (can_dump_core): New declaration.
2484 (warn_cant_dump_core): Likewise.
2485 (dump_core): Likewise.
2486 * utils.c (dump_core): Made nonstatic. Added new
2487 parameter "limit_kind".
2488 (can_dump_core): Made nonstatic. Moved printing code to...
2489 (warn_cant_dump_core): New function.
2490 (can_dump_core_warn): Likewise.
2491 (internal_vproblem): Replace calls to can_dump_core with
2492 calls to can_dump_core_warn. Supply new argument to each.
2493
57fcfb1b
GB
24942014-06-19 Gary Benson <gbenson@redhat.com>
2495
2496 * utils.h (demangler_vwarning): New declaration.
2497 (demangler_warning): Likewise.
2498 * utils.c (struct internal_problem)
2499 <user_settable_should_quit>: New field.
2500 <user_settable_should_dump_core>: Likewise
2501 (internal_error_problem): Add values for above new fields.
2502 (internal_warning_problem): Likewise.
2503 (demangler_warning_problem): New static global.
2504 (demangler_vwarning): New function.
2505 (demangler_warning): Likewise.
2506 (add_internal_problem_command): Selectively add commands.
2507 (_initialize_utils): New internal problem command.
2508 * maint.c (maintenance_demangler_warning): New function.
2509 (_initialize_maint_cmds): New command.
2510
17a40b44
TT
25112014-06-18 Tom Tromey <tromey@redhat.com>
2512
2513 * f-valprint.c (info_common_command_for_block): Update.
2514 * symtab.h (struct general_symbol_info) <common_block>: Now
2515 const.
2516
346d1dfe
TT
25172014-06-18 Tom Tromey <tromey@redhat.com>
2518
2519 * symtab.h (struct symtab) <blockvector>: Now const.
2520 * ada-lang.c (ada_add_global_exceptions): Update.
2521 * buildsym.c (augment_type_symtab): Update.
2522 * dwarf2read.c (dw2_lookup_symbol): Update.
2523 * jit.c (finalize_symtab): Update.
2524 * jv-lang.c (add_class_symtab_symbol): Update.
2525 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2526 Update.
2527 * objfiles.c (objfile_relocate1): Update.
2528 * psymtab.c (lookup_symbol_aux_psymtabs)
2529 (maintenance_check_psymtabs): Update.
2530 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2531 Update.
2532 * spu-tdep.c (spu_catch_start): Update.
2533 * symmisc.c (dump_symtab_1): Update.
2534 * symtab.c (lookup_global_symbol_from_objfile)
2535 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2536 (basic_lookup_transparent_type_quick)
2537 (basic_lookup_transparent_type, find_pc_sect_symtab)
2538 (find_pc_sect_line, search_symbols): Update.
2539 * block.c (find_block_in_blockvector): Make "bl" const.
2540 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2541 const.
2542 (blockvector_contains_pc): Make "bv" const.
2543 (block_for_pc_sect): Update.
2544 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2545 (blockvector_contains_pc): Update.
2546 * breakpoint.c (resolve_sal_pc): Update.
2547 * inline-frame.c (block_starting_point_at): Update.
2548
1834676b
TT
25492014-06-18 Tom Tromey <tromey@redhat.com>
2550
2551 * completer.c (complete_line): Make "line_buffer" const.
2552 * completer.h (complete_line): Update.
2553
ac1a991b
TT
25542014-06-18 Tom Tromey <tromey@redhat.com>
2555
2556 * symtab.c (add_macro_name): Remove unneeded cast.
2557
5bc98e52
TT
25582014-06-18 Tom Tromey <tromey@redhat.com>
2559
2560 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2561 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2562
8236def8
TT
25632014-06-18 Tom Tromey <tromey@redhat.com>
2564
2565 * probe.c (info_probes_for_ops): Make "arg" const.
2566 * probe.h (info_probes_for_ops): Update.
2567
3977b71f
TT
25682014-06-18 Tom Tromey <tromey@redhat.com>
2569
2570 * varobj.c (varobj_create): Update.
2571 * valops.c (value_of_this): Update.
2572 * tracepoint.c (add_local_symbols, scope_info): Update.
2573 * symtab.h (struct general_symbol_info) <block>: Now const.
2574 * symtab.c (skip_prologue_sal)
2575 (default_make_symbol_completion_list_break_on)
2576 (skip_prologue_using_sal): Update.
2577 * stack.h (iterate_over_block_locals)
2578 (iterate_over_block_local_vars): Update.
2579 * stack.c (print_frame_args): Update.
2580 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2581 parameter const.
2582 (get_selected_block): Make return type const.
2583 * python/py-frame.c (frapy_block): Update.
2584 * python/py-block.c (gdbpy_block_for_pc): Update.
2585 * p-exp.y (%union) <bval>: Now const.
2586 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2587 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2588 * m2-exp.y (%union) <bval>: Now const.
2589 * linespec.c (get_current_search_block): Make return type const.
2590 (create_sals_line_offset, find_label_symbols): Update.
2591 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2592 Update.
2593 (block_starting_point_at): Make "block" const.
2594 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2595 (check_exception_resume): Update.
2596 * guile/scm-frame.c (gdbscm_frame_block): Update.
2597 * guile/scm-block.c (gdbscm_lookup_block): Update.
2598 * frame.h (get_frame_block): Update.
2599 (get_selected_block): Make return type const.
2600 * frame.c (frame_id_inner): Update.
2601 * f-valprint.c (info_common_command_for_block)
2602 (info_common_command): Update.
2603 * dwarf2loc.c (dwarf2_find_location_expression)
2604 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2605 (locexpr_describe_location_piece): Update.
2606 * c-exp.y (%union) <bval>: Now const.
2607 * breakpoint.c (resolve_sal_pc): Update.
2608 * blockframe.c (get_frame_block):Make return type const.
2609 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2610 (block_innermost_frame): Update.
2611 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2612 (block_for_pc, block_for_pc_sect): Update.
2613 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2614 'pblock' const.
2615 (block_for_pc_sect, block_for_pc): Make return type const.
2616 * ax-gdb.c (gen_expr): Update.
2617 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2618 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2619 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2620 (ada_read_var_value): Update.
2621 * ada-exp.y (struct name_info) <block>: Now const.
2622 (%union): Likewise.
2623 (block_lookup): Constify.
2624
b9228891
GB
26252014-06-18 Gary Benson <gbenson@redhat.com>
2626
2627 * nat/i386-dregs.h: New file.
2628 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2629 * i386-nat.h (i386-dregs.h): New include.
2630 (DR_FIRSTADDR): Now in i386-dregs.h.
2631 (DR_LASTADDR): Likewise.
2632 (DR_NADDR): Likewise.
2633 (DR_STATUS): Likewise.
2634 (DR_CONTROL): Likewise.
2635 (i386_debug_reg_state): Likewise.
2636 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2637
a1aa2221
LM
26382014-06-18 Don Breazeal <donb@codesourcery.com>
2639
2640 * breakpoint.c (set_longjmp_breakpoint): Call
2641 momentary_breakpoint_from_master with additional argument.
2642 (set_longjmp_breakpoint_for_call_dummy): Call
2643 momentary_breakpoint_from_master with additional argument.
2644 (set_std_terminate_breakpoint): Call
2645 momentary_breakpoint_from_master with additional argument.
2646 (momentary_breakpoint_from_master): Add argument to function
2647 definition and use it to initialize structure member flag.
74228e77 2648 (clone_momentary_breakpoint): Call
a1aa2221
LM
2649 momentary_breakpoint_from_master with additional argument.
2650 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2651 member flags set in momentary_breakpoint_from_master.
2652
4be83cc2
GB
26532014-06-18 Gary Benson <gbenson@redhat.com>
2654
2655 * i386-nat.c (i386_show_dr): Renamed to
2656 i386_dr_show and made nonstatic. All uses updated.
2657 (i386_length_and_rw_bits): Renamed to
2658 i386_dr_length_and_rw_bits and made nonstatic.
2659 All uses updated.
2660 (i386_insert_aligned_watchpoint): Renamed to
2661 i386_dr_insert_aligned_watchpoint and made nonstatic.
2662 All uses updated.
2663 (i386_remove_aligned_watchpoint): Renamed to
2664 i386_dr_remove_aligned_watchpoint and made nonstatic.
2665 All uses updated.
2666 (i386_update_inferior_debug_regs): Renamed to
2667 i386_dr_update_inferior_debug_regs and made nonstatic.
2668 All uses updated.
2669
131aa0d4
GB
26702014-06-18 Gary Benson <gbenson@redhat.com>
2671
2672 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2673 (i386_dr_low_can_set_control): Likewise.
2674 (i386_dr_low_set_addr): Likewise.
2675 (i386_dr_low_set_control): Likewise.
2676 (i386_dr_low_get_addr): Likewise.
2677 (i386_dr_low_get_status): Likewise.
2678 (i386_dr_low_get_control): Likewise.
2679 (i386_insert_aligned_watchpoint): Use new macros.
2680 (i386_update_inferior_debug_regs): Likewise.
2681 (i386_stopped_data_address): Likewise.
2682
d9305f7f
GB
26832014-06-18 Gary Benson <gbenson@redhat.com>
2684
2685 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2686 New parameter. All uses updated.
2687
ea008da4
GB
26882014-06-18 Gary Benson <gbenson@redhat.com>
2689
2690 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2691 All uses updated.
2692
1b6d4134
GB
26932014-06-18 Gary Benson <gbenson@redhat.com>
2694
2695 * i386-nat.c (debug_printf): New macro.
2696 (i386_get_debug_register_length): Likewise.
2697 (TARGET_HAS_DR_LEN_8): Use above macro.
2698 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2699 and printf_unfiltered. Use phex to format values.
2700
9b4550ef
GB
27012014-06-18 Gary Benson <gbenson@redhat.com>
2702
2703 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2704 Make const.
2705
6e62758f
GB
27062014-06-18 Gary Benson <gbenson@redhat.com>
2707
2708 * i386-nat.c: Comment changes.
2709
51c79e94
GB
27102014-06-18 Gary Benson <gbenson@redhat.com>
2711
2712 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2713
3e11889a
GB
27142014-06-18 Gary Benson <gbenson@redhat.com>
2715
2716 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2717 (i386_insert_aligned_watchpoint): Likewise.
2718 (i386_remove_aligned_watchpoint): Likewise.
2719 (i386_handle_nonaligned_watchpoint): Likewise.
2720
fc6e2f03
GB
27212014-06-18 Gary Benson <gbenson@redhat.com>
2722
2723 * i386-nat.c: Whitespace changes.
2724
2afe7d50
SB
27252014-06-17 Samuel Bronson <naesten@gmail.com>
2726
2727 * MAINTAINERS: Update Roland McGrath's email address.
2728 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2729 Red Hat a while ago, and giving me a current address.
2afe7d50 2730
3bca49ee
TT
27312014-06-17 Tom Tromey <tromey@redhat.com>
2732
2733 * utils.h (savestring): Remove declaration.
2734
6e366df1
TT
27352014-06-17 Tom Tromey <tromey@redhat.com>
2736
2737 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2738
6be47f0c
KS
27392014-06-16 Keith Seitz <keiths@redhat.com>
2740
2741 PR mi/15863
2742 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2743 to update the varobj if inferior_ptid is null_ptid.
2744
7bc112c1
TT
27452014-06-16 Tom Tromey <tromey@redhat.com>
2746
2747 * target.h (struct target_ops) <to_info_proc>: Make parameter
2748 const.
2749 (target_info_proc): Update.
2750 * target.c (target_info_proc): Make "args" const.
2751 * procfs.c (procfs_info_proc): Update.
2752 * linux-tdep.c (linux_info_proc): Update.
2753 (linux_core_info_proc_mappings): Make "args" const.
2754 (linux_core_info_proc): Update.
2755 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2756 * gdbarch.c: Rebuild.
2757 * gdbarch.h: Rebuild.
2758 * corelow.c (core_info_proc): Update.
2759
fee354ee
TT
27602014-06-16 Tom Tromey <tromey@redhat.com>
2761
2762 * target.h (struct target_ops) <to_disconnect>: Make parameter
2763 const.
2764 (target_disconnect): Update.
2765 * target.c (target_disconnect): Make "args" const.
2766 * target-delegates.c: Rebuild.
2767 * remote.c (remote_disconnect): Update.
2768 * record.h (record_disconnect): Update.
2769 * record.c (record_disconnect): Update.
2770 * inf-child.c (inf_child_disconnect): Update.
2771
a30bf1f1
TT
27722014-06-16 Tom Tromey <tromey@redhat.com>
2773
2774 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2775 * target.c (debug_to_rcmd, default_rcmd): Update.
2776 * target-delegates.c: Rebuild.
2777 * remote.c (remote_rcmd): Update.
2778 * monitor.c (monitor_rcmd): Update.
2779
d03de421
PA
27802014-06-16 Pedro Alves <palves@redhat.com>
2781
2782 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2783 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2784 have OBJF_SHARED set.
2785 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2786 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2787 instead of OBJF_USERLOADED.
2788 * objfiles.h (OBJF_SHARED): Update comment.
2789 (userloaded_objfile_contains_address_p): Rename to ...
2790 (shared_objfile_contains_address_p): ... this, and update
2791 comments.
2792 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2793 new objfile.
2794 (remove_symbol_file_command): Skip objfiles that don't have
2795 OBJF_SHARED set.
2796
99f4262f
TT
27972014-06-16 Tom Tromey <tromey@redhat.com>
2798
2799 * minsyms.h (prim_record_minimal_symbol)
2800 (prim_record_minimal_symbol_and_info): Update comments.
2801
97d66cc6
EZ
28022014-06-14 Eli Zaretskii <eliz@gnu.org>
2803
2804 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2805 or --without-guile, according to how GDB was built.
2806
635c7e8a
TT
28072014-06-13 Tom Tromey <tromey@redhat.com>
2808
2809 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2810 to help_list.
2811 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2812 to help_list.
2813 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2814 help_list.
2815 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2816 help_list.Pass all_commands, not -1, to help_list.
2817 * cli/cli-dump.c (dump_command, append_command)
2818 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2819 (binary_dump_command, binary_append_command): Pass all_commands,
2820 not -1, to help_list.
2821 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2822 -1, to help_list.
2823 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2824 -1, to help_list.
2825 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2826 help_list.
2827 * top.c (set_history): Pass all_commands, not -1, to help_list.
2828 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2829 all_commands, not -1, to help_list.
2830 * symfile.c (overlay_command): Pass all_commands, not -1, to
2831 help_list.
2832 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2833 help_list.
2834 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2835 help_list.
2836 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2837 -1, to help_list.
2838 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2839 not -1, to help_list.
2840 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2841 not -1, to help_list.
2842 * maint.c (maintenance_command, maintenance_info_command)
2843 (maintenance_print_command, maintenance_set_cmd): Pass
2844 all_commands, not -1, to help_list.
2845 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2846 help_list.
2847 * language.c (set_check): Pass all_commands, not -1, to help_list.
2848 * infcmd.c (unset_command): Pass all_commands, not -1, to
2849 help_list.
2850 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2851 help_list.
2852 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2853 help_list.
2854 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2855 help_list.
2856 * breakpoint.c (save_command): Pass all_commands, not -1, to
2857 help_list.
2858 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2859 all_commands, not -1, to help_list.
2860
b94ade42
PL
28612014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2862
2863 * regcache.c (struct register_to_invalidate): New structure.
2864 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2865 functions.
2866 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2867
31f628ae
YQ
28682014-06-12 Yao Qi <yao@codesourcery.com>
2869
2870 * varobj.c (varobj_get_num_children): Call
2871 varobj_is_dynamic_p.
2872 (varobj_list_children): Likewise.
2873 (varobj_update): Likewise. Update comments.
2874
cde5ef40
YQ
28752014-06-12 Yao Qi <yao@codesourcery.com>
2876
2877 * varobj.c (varobj_pretty_printed_p): Rename to ...
2878 (varobj_is_dynamic_p): ... this. New function.
2879 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2880 (varobj_is_dynamic_p): Declare.
2881 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2882 (mi_print_value_p, varobj_update_one): Likewise.
2883
576ea091
YQ
28842014-06-12 Pedro Alves <pedro@codesourcery.com>
2885 Yao Qi <yao@codesourcery.com>
2886
2887 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2888 (varobj_get_iterator): Wrap up code for pretty-printer by
2889 "#if HAVE_PYTHON" and "#endif".
2890 (update_dynamic_varobj_children): Likewise.
2891
827f100c
YQ
28922014-06-12 Pedro Alves <pedro@codesourcery.com>
2893 Yao Qi <yao@codesourcery.com>
2894
2895 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2896 gdb_python_initialized is false. Move some code from varobj.c.
2897 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2898 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2899 (struct varobj_item): Moved to varobj-iter.h".
2900 (varobj_clear_saved_item): New function.
2901 (update_dynamic_varobj_children): Move python-related code to
2902 py-varobj.c.
2903 (free_variable): Call varobj_clear_saved_item and
2904 varobj_iter_delete.
2905
e5250216
YQ
29062014-06-12 Pedro Alves <pedro@codesourcery.com>
2907 Yao Qi <yao@codesourcery.com>
2908
2909 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2910 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2911 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2912 (py-varobj.o): New rule.
2913 * python/py-varobj.c: New file.
2914 * python/python-internal.h (py_varobj_get_iterator): Declare.
2915 * varobj-iter.h: New file.
2916 * varobj.c: Include "varobj-iter.h"
2917 (struct varobj) <child_iter>: Change its type from "PyObject *"
2918 to "struct varobj_iter *".
2919 <saved_item>: Likewise.
2920 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2921 [HAVE_PYTHON] (varobj_get_iterator): New function.
2922 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2923 python-specific code to python/py-varobj.c.
2924 (install_visualizer): Call varobj_iter_delete instead of
2925 Py_XDECREF.
2926 * varobj.h (varobj_ensure_python_env): Declare.
2927
5a2e0d6e
YQ
29282014-06-12 Yao Qi <yao@codesourcery.com>
2929
2930 * varobj.c (struct varobj_item): New structure.
2931 (create_child_with_value): Update declaration.
2932 (varobj_add_child): Replace arguments 'name' and 'value' with
2933 'item'. All callers updated.
2934 (install_dynamic_child): Likewise.
2935 (update_dynamic_varobj_children): Likewise.
2936 (varobj_add_child): Likewise.
2937 (create_child_with_value): Likewise.
2938
919b9a93
JB
29392014-06-11 Joel Brobecker <brobecker@adacore.com>
2940
2941 * NEWS: Create a new section for the next release branch.
2942 Rename the section of the current branch, now that it has
2943 been cut.
2944
71a55bdf
JB
29452014-06-11 Joel Brobecker <brobecker@adacore.com>
2946
2947 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2948 * version.in: Bump version to 7.8.50.DATE-cvs.
2949
364fe1f7
PA
29502014-06-11 Pedro Alves <palves@redhat.com>
2951
2952 PR remote/17028
2953 * ser-mingw.c (net_windows_socket_check_pending): New function.
2954 (net_windows_select_thread): Ignore spurious wakeups. Use
2955 net_windows_socket_check_pending.
2956 (net_windows_wait_handle): Check for pending events with
2957 ioctlsocket, through net_windows_socket_check_pending, instead of
2958 checking the socket's event.
2959
5a6c7709
SC
29602014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2961
2962 * python/python-internal.h (gdb_PyObject_GetAttrString)
2963 (gdb_PyObject_HasAttrString): New inline function definitions.
2964 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2965 char * of the second argument to PyObject_GetAttrString.
74228e77 2966
0e58ee40
JB
29672014-06-10 Joel Brobecker <brobecker@adacore.com>
2968
2969 * serial.c (serial_write): Fix index of character to be printed
2970 in call to serial_logchar when serial debug traces are enabled.
2971
d190df30
JB
29722014-06-10 Joel Brobecker <brobecker@adacore.com>
2973
2974 * gdbtypes (resolve_dynamic_range): Add function description.
2975
b4b01d36
PA
29762014-06-09 Pedro Alves <palves@redhat.com>
2977
2978 * linux-nat.c (linux_child_follow_fork): Initialize status with
2979 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2980 inner block. Only pass the signal to PTRACE_DETACH if in pass
2981 state.
2982
3657956b
GB
29832014-06-09 Gary Benson <gbenson@redhat.com>
2984
2985 * common/signals.c (gdb_signal_from_host): Reorder to separate
2986 the always-available ANSI-standard signals from the signals that
2987 require checking.
2988 (do_gdb_signal_to_host): Likewise.
2989 * proc-events.c (signal_table): Likewise.
2990
c077881a
HZ
29912014-06-08 Hui Zhu <hui@codesourcery.com>
2992
2993 * common/linux-ptrace.c (linux_disable_event_reporting): New
2994 function.
2995 * common/linux-ptrace.h (linux_disable_event_reporting): New
2996 declaration.
2997 * linux-nat.c (linux_child_follow_fork): Do a single step before
2998 detach.
2999
4186eb54
KS
30002014-06-07 Keith Seitz <keiths@redhat.com>
3001
3002 Revert:
3003 PR c++/16253
3004 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3005 from symbol_matches_domain in symtab.c. All local callers
3006 of symbol_matches_domain updated.
3007 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3008 search STRUCT_DOMAIN.
3009 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3010 independently. standard_lookup will do that automatically.
3011 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3012 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3013 (cp_lookup_symbol_in_namespace): Likewise.
3014 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3015 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3016 may return a STRUCT_DOMAIN match.
3017 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3018 * cp-support.c: Include language.h.
3019 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3020 VAR_DOMAIN.
3021 * psymtab.c (match_partial_symbol): Compare the requested
3022 domain with the symbol's domain directly.
3023 (lookup_partial_symbol): Likewise.
3024 * symtab.c (lookup_symbol_in_language): Explain when/why
3025 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3026 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3027 appropriate languages.
3028 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3029 and moved to ada-lang.c
3030 (lookup_block_symbol): Explain that this function only returns
3031 symbol matching the requested DOMAIN.
3032 Compare the requested domain with the symbol's domain directly.
3033 (iterate_over_symbols): Compare the requested domain with the
3034 symbol's domain directly.
3035 * symtab.h (symbol_matches_domain): Remove.
3036
25326a28 30372014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3038
3039 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3040 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3041 (gdbscm_guile_version_is_at_least): Declare.
3042 (gdbscm_scm_string_to_int): Declare.
3043 * guile/guile.c (gdbscm_guile_major_version): New global.
3044 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3045 (guile_datadir): New static global.
3046 (gdbscm_guile_data_directory): New function.
3047 (initialize_scheme_side): Update.
3048 (misc_guile_functions): Add guile-data-directory.
3049 (initialize_gdb_module): Fetch guile version number.
3050 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3051 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3052 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3053 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3054 comments.
3055 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3056 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3057 * guile/scm-value.c (gdbscm_value_to_string): Only call
3058 scm_port_conversion_strategy if Guile version >= 2.0.6.
3059
0a770bb2 30602014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3061
3062 * main.c (print_gdb_help): Add -q and --silent.
3063
73ba372c
GB
30642014-06-06 Gary Benson <gbenson@redhat.com>
3065
3066 * common/signals.c: Remove preprocessor conditionals for
3067 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3068 SIGSEGV and SIGTERM.
3069 * proc-events.c: Likewise.
3070
c33b2f12
MM
30712014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3072
3073 * symfile.c (symfile_free_objfile): Remove restriction to
3074 OBJF_USERLOADED.
3075 * symfile-mem.c (symbol_file_add_from_memory): Call
3076 add_target_sections_of_objfile.
3077
fb934770
LC
30782014-06-05 Ludovic Courtès <ludo@gnu.org>
3079
3080 * guile/scm-value.c (gdbscm_history_append_x): Use
3081 'vlscm_get_value_smob_arg_unsafe' instead of
3082 'vlscm_scm_to_value'.
3083
6ef284bd
SM
30842014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3085
3086 PR mi/15806
3087 * utils.c (printchar): Don't escape at all if quoter is NUL.
3088 Update function documentation to clarify effect of parameter
3089 QUOTER.
3090 * remote.c (escape_buffer): Pass '\\' as the quoter to
3091 fputstrn_unfiltered.
3092 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3093 generate the output.
3094 (mi_solib_unloaded): Same.
3095
270c9937
JB
30962014-06-05 Joel Brobecker <brobecker@adacore.com>
3097
3098 * development.sh: Delete.
3099 * Makefile.in (config.status): Adjust dependency on development.sh.
3100 * configure.ac: Adjust development.sh source call.
3101 * configure: Regenerate.
3102
16f691fb
DE
31032014-06-04 Doug Evans <xdje42@gmail.com>
3104
3105 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3106 is_scheme_bkpt, spec.
3107 (bpscm_make_breakpoint_smob): Initialize new members.
3108 (gdbscm_create_breakpoint_x): Split into two ...
3109 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3110 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3111 (scheme_function breakpoint_functions): Update.
3112 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3113 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3114 register-breakpoint!.
3115
ef7cab6b
JB
31162014-06-04 Joel Brobecker <brobecker@adacorer.com>
3117
3118 PR server/17023
3119 * mem-break.c (z_type_supported): Return zero if
3120 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3121
012370f6
TT
31222014-06-04 Tom Tromey <tromey@redhat.com>
3123
3124 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3125 value_from_contents_and_address_unresolved.
3126 (ada_template_to_fixed_record_type_1): Likewise.
3127 (ada_which_variant_applies): Likewise.
3128 * value.h (value_from_contents_and_address_unresolved): Declare.
3129 * value.c (value_from_contents_and_address_unresolved): New
3130 function.
3131 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3132 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3133 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3134
92e2a17f
TT
31352014-06-04 Tom Tromey <tromey@redhat.com>
3136
3137 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3138
c0939df1
TT
31392014-06-04 Tom Tromey <tromey@redhat.com>
3140
3141 * procfs.c (procfs_attach): Make "args" const.
3142 * windows-nat.c (windows_attach): Make "args" const.
3143 * nto-procfs.c (procfs_attach): Make "args" const.
3144 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3145 * go32-nat.c (go32_attach): Make "args" const.
3146 * gnu-nat.c (gnu_attach): Make "args" const.
3147 * darwin-nat.c (darwin_attach): Make "args" const.
3148 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3149 * linux-nat.c (linux_nat_attach): Make "args" const.
3150 * remote.c (extended_remote_attach_1, extended_remote_attach):
3151 Make "args" const.
3152 * target.h (struct target_ops) <to_attach>: Make "args" const.
3153 (find_default_attach): Likewise.
3154 * utils.c (parse_pid_to_attach): Make "args" const.
3155 * utils.h (parse_pid_to_attach): Update.
3156
8eaff7cd
TT
31572014-06-04 Tom Tromey <tromey@redhat.com>
3158
3159 * target-delegates.c: Rebuild.
3160 * target.c (default_thread_address_space): New function.
3161 (target_thread_address_space): Simplify.
3162 * target.h (struct target_ops) <to_thread_address_space>: Add
3163 TARGET_DEFAULT_FUNC.
3164
1913f160
DE
31652014-06-04 Doug Evans <xdje42@gmail.com>
3166
3167 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3168
70ad5bff
MM
31692014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3170
3171 * record-btrace.c: Include event-loop.h and inf-loop.h.
3172 (record_btrace_resume_exec_dir)
3173 (record_btrace_async_inferior_event_handler)
3174 (record_btrace_handle_async_inferior_event): New.
3175 (record_btrace_open): Create async event handler.
3176 (record_btrace_close): Delete async event handler.
3177 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3178 Mark async event handler.
3179 (record_btrace_execution_direction): New.
3180 (init_record_btrace_ops): Initialize to_execution_direction.
3181
b6210538
DE
31822014-06-03 Doug Evans <xdje42@gmail.com>
3183
3184 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3185 (gdbscm_make_parameter): Ditto.
3186
a5b1fd27
DE
31872014-06-03 Doug Evans <dje@google.com>
3188
3189 * exec.c (exec_close_1): Call clear_section_table instead of
3190 resize_section_table.
3191 (clear_section_table): New function.
3192 (resize_section_table): Make static. Rename arg num_added to
3193 adjustment.
3194 * exec.h (clear_section_table): Declare.
3195 (resize_section_table): Delete.
3196 * progspace.c (release_program_space): Call clear_section_table
3197 instead of resize_section_table.
3198
0c6e92a5
SC
31992014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3200
3201 * NEWS (Python Scripting): Add entry about the new xmethods
3202 feature.
3203
883964a7
SC
32042014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3205
3206 * python/py-xmethods.c: New file.
3207 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3208 (objfpy_dealloc): XDECREF on the new xmethods field.
3209 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3210 field.
3211 (objfpy_get_xmethods): New function.
3212 (objfile_getset): New entry 'xmethods'.
3213 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3214 (pspy_dealloc): XDECREF on the new xmethods field.
3215 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3216 field.
3217 (pspy_get_xmethods): New function.
3218 (pspace_getset): New entry 'xmethods'.
3219 * python/python-internal.h: Add declarations for new functions.
3220 * python/python.c (_initialize_python): Invoke
3221 gdbpy_initialize_xmethods.
3222 * python/lib/gdb/__init__.py (xmethods): New
3223 attribute.
3224 * python/lib/gdb/xmethod.py: New file.
3225 * python/lib/gdb/command/xmethods.py: New file.
3226
58992dc5
SC
32272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3228
3229 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3230 best match method returned by find_overload_match is an xmethod.
3231 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3232 the best matching operator returned by find_overload_match is an
3233 xmethod.
3234 * valops.c: #include "extension.h".
3235 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3236 Return void. The list of matching source methods is returned in
3237 "fn_list" and a vector of matching debug method workers is
3238 returned in "xm_worker_vec". Update all callers.
3239 (value_find_oload_method_list): Likewise.
3240 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3241 non-NULL, then the index of the best matching method in this
3242 vector is returned. Update all callers.
3243 (find_overload_match): Include xmethods while performing overload
3244 resolution.
3245
e81e7f5e
SC
32462014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3247
3248 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3249 * extension-priv.h (struct extension_language_ops): Add the
3250 xmethod interface.
3251 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3252 get_matching_xmethod_workers, get_xmethod_argtypes,
3253 invoke_xmethod, free_xmethod_worker,
3254 free_xmethod_worker_vec): New functions.
3255 * extension.h: #include "common/vec.h".
3256 New function declarations.
3257 (struct xmethod_worker): New struct.
3258 (VEC (xmethod_worker_ptr)): New vector type.
3259 (xmethod_worker_ptr): New typedef.
3260 (xmethod_worker_vec): Likewise.
3261 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3262 builtin_type.
3263 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3264 (struct builtin_type): New field "xmethod".
3265 * valarith.c (value_ptradd): Assert that the value argument is not
3266 lval_xcallable.
3267 * valops.c (value_must_coerce_to_target): Return 0 for
3268 lval_xcallable values.
3269 * value.c (struct value): New field XM_WORKER in the field
3270 LOCATION.
3271 (value_address, value_raw_address): Return 0 for lval_xcallable
3272 values.
3273 (set_value_address): Assert that the value is not an
3274 lval_xcallable.
3275 (value_free): Free the associated xmethod worker when freeing
3276 lval_xcallable values.
3277 (set_value_component_location): Assert that the WHOLE value is not
3278 lval_xcallable.
3279 (value_of_xmethod, call_xmethod): New functions.
3280 * value.h: Declare "struct xmethod_worker".
3281 Declare new functions value_of_xmethod, call_xmethod.
3282
ef370185
JB
32832014-06-03 Joel Brobecker <brobecker@adacore.com>
3284 Pedro Alves <palves@redhat.com>
3285
3286 PR breakpoints/17000
3287 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3288 New function, extracted from software_breakpoint_inserted_here_p.
3289 (software_breakpoint_inserted_here_p): Replace factored out code
3290 by call to find_non_raw_software_breakpoint_inserted_here.
3291 (bp_target_info_copy_insertion_state): New function.
3292 (bkpt_insert_location): Handle the case of a single-step
3293 breakpoint already inserted at the same address.
3294 (bkpt_remove_location): Handle the case of a single-step
3295 breakpoint still inserted at the same address.
3296 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3297 breakpoint already inserted at the same address.
3298 (deprecated_remove_raw_breakpoint): Handle the case of a
3299 non-raw breakpoint still inserted at the same address.
3300 (find_single_step_breakpoint): New function, extracted from
3301 single_step_breakpoint_inserted_here_p.
3302 (find_single_step_breakpoint): New function,
3303 factored out from single_step_breakpoint_inserted_here_p.
3304 (single_step_breakpoint_inserted_here_p): Reimplement.
3305
1e2ccb61
BM
33062014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3307
3308 Pushed by Joel Brobecker <brobecker@adacore.com>
3309 * source.c (show_substitute_path_command): Fix display of matching
3310 substitution rules.
3311
d3448d85
GB
33122014-06-03 Gary Benson <gbenson@redhat.com>
3313
3314 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3315
06eb1586
DE
33162014-06-02 Doug Evans <xdje42@gmail.com>
3317
3318 Add parameter support for Guile.
3319 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3320 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3321 (scm-param.o): New rule.
3322 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3323 (gdbscm_misc_error): Declare.
3324 (gdbscm_canonicalize_command_name): Declare.
3325 (gdbscm_scm_to_host_string): Declare.
3326 (gdbscm_scm_from_host_string): Declare.
3327 (gdbscm_initialize_parameters): Declare.
3328 * guile/guile.c (initialize_gdb_module): Call
3329 gdbscm_initialize_parameters.
3330 * guile/lib/gdb.scm: Export parameter symbols.
3331 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3332 cmdscm_canonicalize_name and made public. All callers updated.
3333 * guile/scm-exception.c (gdbscm_misc_error): New function.
3334 * guile/scm-param.c: New file.
3335 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3336 (gdbscm_scm_to_host_string): New function.
3337 (gdbscm_scm_from_host_string): New function.
3338 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3339
e698b8c4
DE
33402014-06-02 Doug Evans <xdje42@gmail.com>
3341
3342 Add command support for Guile.
3343 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3344 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3345 (scm-cmd.o): New rule.
3346 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3347 (gdbscm_user_error_p): Declare.
3348 (gdbscm_parse_command_name): Declare.
3349 (gdbscm_valid_command_class_p): Declare.
3350 (gdbscm_initialize_commands): Declare.
3351 * guile/guile.c (initialize_gdb_module): Call
3352 gdbscm_initialize_commands.
3353 * guile/lib/gdb.scm: Export command symbols.
3354 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3355 (throw-user-error): New function.
3356 * guile/scm-cmd.c: New file.
3357 * guile/scm-exception.c (user_error_symbol): New static global.
3358 (gdbscm_user_error_p): New function.
3359 (gdbscm_initialize_exceptions): Set user_error_symbol.
3360 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3361
fb1f94b0
PM
33622014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3363
3364 * top.c (command_loop): Handle comments here...
3365 (command_line_input): ... not here.
3366
ded03782
DE
33672014-06-02 Doug Evans <xdje42@gmail.com>
3368
3369 Add progspace support for Guile.
3370 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3371 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3372 (scm-progspace.o): New rule.
3373 * guile/guile-internal.h (pspace_smob): New typedef.
3374 (psscm_pspace_smob_pretty_printers): Declare.
3375 (psscm_pspace_smob_from_pspace): Declare.
3376 (psscm_scm_from_pspace): Declare.
3377 * guile/guile.c (initialize_gdb_module): Call
3378 gdbscm_initialize_pspaces.
3379 * guile/lib/gdb.scm: Export progspace symbols.
3380 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3381 support.
3382 (append-pretty-printer!): Ditto.
3383 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3384 Implement.
3385 * guile/scm-progspace.c: New file.
3386
397998fc
AM
33872014-06-03 Alan Modra <amodra@gmail.com>
3388
3389 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3390 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3391
6aa5f3a6
DE
33922014-06-02 Doug Evans <dje@google.com>
3393
3394 Add support for skeletonless type units.
3395 * dwarf2read.c (struct dwarf2_per_objfile): New member
3396 n_allocated_type_units.
3397 (struct dwarf2_per_objfile) <tu_stats>: New member
3398 nr_all_type_units_reallocs.
3399 (create_signatured_type_table_from_index): Initialize
3400 n_allocated_type_units
3401 (create_all_type_units): Ditto.
3402 (add_type_unit): Move up in file. New arg slot.
3403 All callers updated. Increase space for all_type_units more
3404 efficiently.
3405 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3406 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3407 (lookup_dwp_signatured_type): Ditto.
3408 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3409 All callers updated.
3410 (build_type_psymtabs_1): Leave type_unit_groups as
3411 NULL if no TUs present.
3412 (print_tu_stats): New function.
3413 (process_skeletonless_type_unit): New function.
3414 (process_dwo_file_for_skeletonless_type_units): New
3415 function.
3416 (process_skeletonless_type_units): New function.
3417 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3418 Call print tu_stats if debugging enabled.
3419
41fac0cf
PA
34202014-06-02 Pedro Alves <palves@redhat.com>
3421
3422 * breakpoint.c (build_target_command_list): Don't build a command
3423 list if we have any duplicate location that isn't a dprintf.
3424
cd1608cc
PA
34252014-06-02 Pedro Alves <palves@redhat.com>
3426
3427 * breakpoint.c (dprintf_breakpoint_hit): New function.
3428 (initialize_breakpoint_ops): Install it as dprintf's
3429 breakpoint_hit method.
3430
486ef3b9
JB
34312014-06-02 Joel Brobecker <brobecker@adacore.com>
3432
3433 * source.c (substitute_path_rule_matches): Simplify using
3434 filename_ncmp instead of FILENAME_CMP.
3435
230cd560
JB
34362014-06-02 Joel Brobecker <brobecker@adacore.com>
3437
3438 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3439
16954d5d
LC
34402014-06-01 Ludovic Courtès <ludo@gnu.org>
3441
3442 * configure.ac: When Guile is available, check for the
3443 availability of 'scm_new_smob'.
3444 * configure, config.h.in: Regenerate.
3445 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3446 function.
3447
53e8a631
AB
34482014-05-30 Andrew Burgess <aburgess@broadcom.com>
3449
3450 * frame.c (struct frame_info): Add stop_string field.
3451 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3452 (get_prev_frame_always): Old content moved into
3453 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3454 TRY_CATCH, handle MEMORY_ERROR exceptions.
3455 (frame_stop_reason_string): New function definition.
3456 * frame.h (unwind_stop_reason_to_string): Extend comment to
3457 mention frame_stop_reason_string.
3458 (frame_stop_reason_string): New function declaration.
3459 * stack.c (frame_info): Switch to frame_stop_reason_string.
3460 (backtrace_command_1): Switch to frame_stop_reason_string.
3461 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3462 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3463 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3464
70e38b8e
AB
34652014-05-30 Andrew Burgess <aburgess@broadcom.com>
3466
3467 * frame.c (frame_stop_reason_string): Rename to ...
3468 (unwind_stop_reason_to_string): this.
3469 * frame.h (frame_stop_reason_string): Rename to ...
3470 (unwind_stop_reason_to_string): this.
3471 * stack.c (frame_info): Update call to frame_stop_reason_string.
3472 (backtrace_command_1): Likewise.
3473 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3474 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3475
938f0e2f
AB
34762014-05-30 Andrew Burgess <aburgess@broadcom.com>
3477
3478 * frame.c (remove_prev_frame): New function.
3479 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3480 remove_prev_frame.
3481
a09dd441
PA
34822014-05-29 Pedro Alves <palves@redhat.com>
3483
3484 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3485 and make it const. When a single-step decays to a continue,
3486 clear 'step', not 'hw_step'. Pass whether the caller wanted
3487 to step to user_visible_resume_ptid, not what we ask the
3488 target to do.
3489
bdc36728
PA
34902014-05-29 Pedro Alves <palves@redhat.com>
3491
3492 * infrun.c (process_event_stop_test, handle_step_into_function)
3493 (handle_step_into_function_backward): Adjust.
3494 Don't set the even thread's stop_step and call stop_waiting before
3495 calling end_stepping_range. Instead do that ...
3496 (end_stepping_range): ... here. Take an ecs pointer parameter.
3497
22bcd14b
PA
34982014-05-29 Pedro Alves <palves@redhat.com>
3499
3500 * infrun.c (stop_stepping): Rename to ...
3501 (stop_waiting): ... this.
3502 (proceed): Update comment.
3503 (process_event_stop_test, handle_inferior_event)
3504 (handle_signal_stop, handle_step_into_function)
3505 (handle_step_into_function_backward): Update.
3506
4ae57c05
PA
35072014-05-29 Pedro Alves <palves@redhat.com>
3508
3509 * infcall.c (run_inferior_call): Don't check whether the current
3510 thread is running after the proceed call.
3511
329ea579
PA
35122014-05-29 Pedro Alves <palves@redhat.com>
3513 Tom Tromey <tromey@redhat.com>
3514
3515 * NEWS: Mention "maint set target-async", "set mi-async", and that
3516 background execution commands are now always available.
3517 * target.h (target_async_permitted): Update comment.
3518 * target.c (target_async_permitted, target_async_permitted_1):
3519 Default to 1.
3520 (set_target_async_command): Rename to ...
3521 (maint_set_target_async_command): ... this.
3522 (show_target_async_command): Rename to ...
3523 (maint_show_target_async_command): ... this.
3524 (_initialize_target): Adjust.
3525 * infcmd.c (prepare_execution_command): Make extern.
3526 * inferior.h (prepare_execution_command): Declare.
3527 * infrun.c (set_observer_mode): Leave target async alone.
3528 * mi/mi-interp.c (mi_interpreter_init): Install
3529 mi_on_sync_execution_done as sync_execution_done observer.
3530 (mi_on_sync_execution_done): New function.
3531 (mi_execute_command_input_handler): Don't print the prompt if we
3532 just started a synchronous command with an async target.
3533 (mi_on_resume): Check sync_execution before printing prompt.
3534 * mi/mi-main.h (mi_async_p): Declare.
3535 * mi/mi-main.c: Include gdbcmd.h.
3536 (mi_async_p): New function.
3537 (mi_async, mi_async_1): New globals.
3538 (set_mi_async_command, show_mi_async_command, mi_async): New
3539 functions.
3540 (exec_continue): Call prepare_execution_command.
3541 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3542 (mi_execute_async_cli_command): Use mi_async_p.
3543 (_initialize_mi_main): Install "set mi-async". Make
3544 "target-async" a deprecated alias.
3545
92bcb5f9
PA
35462014-05-29 Pedro Alves <palves@redhat.com>
3547
3548 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3549 (_initialize_cli_interp): Adjust.
3550 * event-loop.c: Include "observer.h".
3551 (start_event_loop): Notify 'command_error' observers instead of
3552 calling display_gdb_prompt. Remove FIXME comment.
3553 * event-top.c (display_gdb_prompt): Remove call into the
3554 interpreters.
3555 * inf-loop.c: Include "observer.h".
3556 (inferior_event_handler): Notify 'command_error' observers instead
3557 of calling display_gdb_prompt.
3558 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3559 observers instead of calling display_gdb_prompt.
3560 * interps.c (interp_set): Don't call display_gdb_prompt.
3561 (current_interp_display_prompt_p): Delete.
3562 * interps.h (interp_prompt_p): Delete declaration.
3563 (interp_prompt_p_ftype): Delete.
3564 (struct interp_procs) <prompt_proc_p>: Delete field.
3565 (current_interp_display_prompt_p): Delete declaration.
3566 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3567 (_initialize_mi_interp): Adjust.
3568 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3569 'command_error' observers.
3570 (tui_on_sync_execution_done, tui_on_command_error): New
3571 functions.
3572 (tui_display_prompt_p): Delete.
3573 (_initialize_tui_interp): Adjust.
3574
fd664c91
PA
35752014-05-29 Pedro Alves <palves@redhat.com>
3576
3577 PR gdb/13860
3578 * cli/cli-interp.c: Include infrun.h and observer.h.
3579 (cli_uiout, cli_interp): New globals.
3580 (cli_on_signal_received, cli_on_end_stepping_range)
3581 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3582 functions.
3583 (cli_interpreter_init): Install them as 'end_stepping_range',
3584 'signal_received' 'signal_exited', 'exited' and 'no_history'
3585 observers.
3586 (_initialize_cli_interp): Remove cli_interp local.
3587 * infrun.c (handle_inferior_event): Call the several stop reason
3588 observers instead of printing the stop reason directly.
3589 (end_stepping_range): New function.
3590 (print_end_stepping_range_reason, print_signal_exited_reason)
3591 (print_exited_reason, print_signal_received_reason)
3592 (print_no_history_reason): Make static, and add an uiout
3593 parameter. Print to that instead of to CURRENT_UIOUT.
3594 * infrun.h (print_end_stepping_range_reason)
3595 (print_signal_exited_reason, print_exited_reason)
3596 (print_signal_received_reason print_no_history_reason): New
3597 declarations.
3598 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3599 'mi_uiout'.
3600 <cli_uiout>: New field.
3601 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3602 uiout for CLI output. Install 'signal_received',
3603 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3604 observers.
3605 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3606 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3607 (mi_on_no_history): New functions.
3608 (ui_out_free_cleanup): Delete function.
3609 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3610 instead use the one already stored in the MI interpreter data.
3611 (mi_ui_out): Adjust.
3612 * tui/tui-interp.c: Include infrun.h and observer.h.
3613 (tui_interp): New global.
3614 (tui_on_signal_received, tui_on_end_stepping_range)
3615 (tui_on_signal_exited, tui_on_exited)
3616 (tui_on_no_history): New functions.
3617 (tui_init): Install them as 'end_stepping_range',
3618 'signal_received' 'signal_exited', 'exited' and 'no_history'
3619 observers.
3620 (_initialize_tui_interp): Delete tui_interp local.
3621
8817a6f2
PA
36222014-05-29 Pedro Alves <palves@redhat.com>
3623
3624 PR gdb/15713
3625 * linux-nat.c (linux_nat_resume_callback): Rename the second
3626 parameter to 'except'. Skip LP if it points to EXCEPT.
3627 (linux_nat_resume): Don't mark the event lwp as not stopped
3628 before resuming sibling lwps. Instead ask
3629 linux_nat_resume_callback to skip the event lwp. Mark it as not
3630 stopped after actually resuming it.
3631 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3632 resuming it.
3633 (wait_lwp): Mark the lwp as stopped here.
3634 (stop_wait_callback): Mark the lwp as not stopped right after
3635 resuming it. Don't mark lwps as stopped here.
3636 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3637 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3638
251bde03
PA
36392014-05-29 Pedro Alves <palves@redhat.com>
3640
3641 PR PR15693
3642 * infrun.c (resume): Determine how much to resume depending on
3643 whether the caller wanted a step, not whether we can hardware step
3644 the target. Mark all threads that we intend to run as running,
3645 unless we're calling an inferior function.
3646 (normal_stop): If the thread is running an infcall, don't finish
3647 thread state.
3648 * target.c (target_resume): Don't mark threads as running here.
3649
7f3c0343
JB
36502014-05-28 Joel Brobecker <brobecker@adacore.com>
3651
3652 * serial.c (_initialize_serial): Remove support for
3653 the "set remotebaud" and "show remotebaud" commands.
3654 * NEWS: Add entry documenting the removal of that command.
3655
ee34b3f9
YQ
36562014-05-28 Yao Qi <yao@codesourcery.com>
3657
3658 * charset.c: Fix typo in comments.
3659
add6c04d
GB
36602014-05-27 Gary Benson <gbenson@redhat.com>
3661
3662 * utils.c (internal_vproblem): Prompt for a bug report.
3663
92c48fc5
AW
36642014-05-26 Andy Wingo <wingo@igalia.com>
3665
3666 * guile/scm-arch.c (arscm_mark_arch_smob):
3667 * guile/scm-block.c (bkscm_mark_block_smob)
3668 (bkscm_mark_block_syms_progress_smob):
3669 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3670 * guile/scm-exception.c (exscm_mark_exception_smob):
3671 * guile/scm-frame.c (frscm_mark_frame_smob):
3672 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3673 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3674 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3675 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3676 (ppscm_mark_pretty_printer_worker_smob):
3677 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3678 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3679 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3680 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3681 mark functions.
3682 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3683 function.
3684
b2715b27
AW
36852014-05-26 Andy Wingo <wingo@igalia.com>
3686 Doug Evans <xdje42@gmail.com>
3687
3688 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3689 empty_base_class. All uses updated.
3690 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3691 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3692 Adapt all callers.
3693 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3694 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3695 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3696 (gdbscm_gsmob_has_property_p, add_property_name)
3697 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3698 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3699 (gdb-object-has-property?, gdb-object-properties): Remove.
3700 (gdb-object-kind): Renamed from gsmob-kind.
3701
214ab2da
AW
37022014-05-26 Andy Wingo <wingo@igalia.com>
3703
3704 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3705 * configure: Regenerate.
3706
589fdceb
MM
37072014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3708
3709 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3710
67b5c0c1
MM
37112014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3712
3713 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3714 (replay_memory_access_read_only, replay_memory_access_read_write)
3715 (replay_memory_access_types, replay_memory_access)
3716 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3717 (cmd_set_record_btrace, cmd_show_record_btrace)
3718 (cmd_show_replay_memory_access): New.
3719 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3720 (record_btrace_remove_breakpoint): Replace
3721 record_btrace_allow_memory_access with replay_memory_access.
3722 (_initialize_record_btrace): Add commands.
3723 * NEWS: Announce it.
3724
036cd381
RR
37252014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3726
3727 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3728
c77c1e42
RR
37292014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3730
3731 * MAINTAINERS (Write After Approval): Move self back from
3732 paper trail.
3733
45741a9c
PA
37342014-05-22 Pedro Alves <palves@redhat.com>
3735
3736 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3737 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3738 (disable_randomization, enum exec_direction_kind)
3739 (execution_direction, stop_registers, start_remote)
3740 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3741 (wait_for_inferior, normal_stop, get_last_target_status)
3742 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3743 (insert_step_resume_breakpoint_at_sal)
3744 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3745 (set_step_info, print_stop_event, signal_stop_state)
3746 (signal_print_state, signal_pass_state, signal_stop_update)
3747 (signal_print_update, signal_pass_update)
3748 (update_signals_program_target, clear_exit_convenience_vars)
3749 (displaced_step_dump_bytes, update_observer_mode)
3750 (signal_catch_update, gdb_signal_from_command): Move
3751 declarations ...
3752 * infrun.h: ... to this new file.
3753 * amd64-tdep.c: Include infrun.h.
3754 * annotate.c: Include infrun.h.
3755 * arch-utils.c: Include infrun.h.
3756 * arm-linux-tdep.c: Include infrun.h.
3757 * arm-tdep.c: Include infrun.h.
3758 * break-catch-sig.c: Include infrun.h.
3759 * breakpoint.c: Include infrun.h.
3760 * common/agent.c: Include infrun.h instead of inferior.h.
3761 * corelow.c: Include infrun.h.
3762 * event-top.c: Include infrun.h.
3763 * go32-nat.c: Include infrun.h.
3764 * i386-tdep.c: Include infrun.h.
3765 * inf-loop.c: Include infrun.h.
3766 * infcall.c: Include infrun.h.
3767 * infcmd.c: Include infrun.h.
3768 * infrun.c: Include infrun.h.
3769 * linux-fork.c: Include infrun.h.
3770 * linux-nat.c: Include infrun.h.
3771 * linux-thread-db.c: Include infrun.h.
3772 * monitor.c: Include infrun.h.
3773 * nto-tdep.c: Include infrun.h.
3774 * procfs.c: Include infrun.h.
3775 * record-btrace.c: Include infrun.h.
3776 * record-full.c: Include infrun.h.
3777 * remote-m32r-sdi.c: Include infrun.h.
3778 * remote-mips.c: Include infrun.h.
3779 * remote-notif.c: Include infrun.h.
3780 * remote-sim.c: Include infrun.h.
3781 * remote.c: Include infrun.h.
3782 * reverse.c: Include infrun.h.
3783 * rs6000-tdep.c: Include infrun.h.
3784 * s390-linux-tdep.c: Include infrun.h.
3785 * solib-irix.c: Include infrun.h.
3786 * solib-osf.c: Include infrun.h.
3787 * solib-svr4.c: Include infrun.h.
3788 * target.c: Include infrun.h.
3789 * top.c: Include infrun.h.
3790 * windows-nat.c: Include infrun.h.
3791 * mi/mi-interp.c: Include infrun.h.
3792 * mi/mi-main.c: Include infrun.h.
3793 * python/py-threadevent.c: Include infrun.h.
3794
98eb56a4
PA
37952014-05-22 Pedro Alves <palves@redhat.com>
3796
3797 * infrun.c (handle_inferior_event): Store the exit code for
3798 --return-child-result here, instead of ...
3799 (print_exited_reason): ... here.
3800
17b2616c
PA
38012014-05-21 Pedro Alves <palves@redhat.com>
3802
3803 PR gdb/13860
3804 * gdbthread.h (struct thread_control_state): New field
3805 `command_interp'.
3806 * infrun.c (follow_fork): Copy the new thread control field to the
3807 child fork thread.
3808 (clear_proceed_status_thread): Clear the new thread control field.
3809 (proceed): Set the new thread control field.
3810 * interps.h (command_interp): Declare.
3811 * interps.c (command_interpreter): New global.
3812 (command_interp): New function.
3813 (interp_exec): Set `command_interpreter' while here.
3814 * cli-out.c (cli_uiout_dtor): New function.
3815 (cli_ui_out_impl): Install it.
3816 * mi/mi-interp.c: Include cli-out.h.
3817 (mi_cmd_interpreter_exec): Add comment.
3818 (restore_current_uiout_cleanup): New function.
3819 (ui_out_free_cleanup): New function.
3820 (mi_on_normal_stop): If finishing an execution command started by
3821 a CLI command, or any kind of breakpoint-like event triggered,
3822 print the stop event to the output (CLI) stream.
3823 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3824
5166082f
PA
38252014-05-21 Pedro Alves <palves@redhat.com>
3826
3827 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3828 current source line having changed.
3829 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3830 * infrun.c (normal_stop): Adjust call to
3831 set_current_sal_from_frame.
3832 * source.c (clear_lines_listed_range): New function.
3833 (set_current_source_symtab_and_line, identify_source_line): Clear
3834 the lines listed range.
3835 (line_info): Handle the first "info line" after the current source
3836 line having changed.
3837 * stack.c (print_stack_frame): Remove center handling.
3838 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3839 center sal.line.
3840
c1ee2fb3
PA
38412014-05-21 Pedro Alves <palves@redhat.com>
3842
3843 * inf-child.c (inf_child_mourn_inferior): New function.
3844 * inf-child.h (inf_child_mourn_inferior): New declaration.
3845 * darwin-nat.c (darwin_mourn_inferior): Use
3846 inf_child_mourn_inferior.
3847 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3848 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3849 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3850 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3851 * windows-nat.c (windows_mourn_inferior): Likewise.
3852
5c6d4fb2
DE
38532014-05-21 Doug Evans <xdje42@gmail.com>
3854
250748cb 3855 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3856
4a2722c5
DE
38572014-05-21 Doug Evans <xdje42@gmail.com>
3858
17292b30 3859 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3860 (gdbscm_out_of_range_error): Ditto.
3861 (gdbscm_memory_error): Ditto.
250748cb
DE
3862 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3863 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3864 (gdbscm_out_of_range_error): Update.
3865 (gdbscm_memory_error): Update.
3866 (gdbscm_scm_to_target_string_unsafe): Delete.
3867
6a3cb8e8
PA
38682014-05-21 Pedro Alves <palves@redhat.com>
3869
3870 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3871 globals.
3872 (inf_child_open_target): New function.
3873 (inf_child_open): Use inf_child_open_target to push the target
3874 instead of erroring out.
3875 (inf_child_disconnect, inf_child_close)
3876 (inf_child_maybe_unpush_target): New functions.
3877 (inf_child_target): Install inf_child_disconnect and
3878 inf_child_close. Store a pointer to the returned object.
3879 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3880 declarations.
3881 * target.c (auto_connect_native_target): New global.
3882 (show_default_run_target): New function.
3883 (find_default_run_target): Return NULL if automatically connecting
3884 to the native target is disabled.
3885 (_initialize_target): Install set/show auto-connect-native-target.
3886 * NEWS: Mention "set auto-connect-native-target", and "target
3887 native".
3888 * linux-nat.c (super_close): New global.
3889 (linux_nat_close): Call super_close.
3890 (linux_nat_add_target): Store a pointer to the base class's
3891 to_close method.
3892 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3893 inf_child_maybe_unpush.
3894 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3895 already pushed.
3896 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3897 the inferior. Use inf_child_maybe_unpush_target.
3898 (inf_ttrace_attach): Don't push the target if it is already
3899 pushed.
3900 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3901 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3902 after mourning the inferior. Use inf_child_maybe_unpush_target.
3903 (darwin_attach_pid): Don't push the target if it is already
3904 pushed.
3905 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3906 mourning the inferior. Use inf_child_maybe_unpush_target.
3907 (gnu_detach): Use inf_child_maybe_unpush_target.
3908 * go32-nat.c (go32_create_inferior): Don't push the target if it
3909 is already pushed.
3910 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3911 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3912 (procfs_open): Rename to ...
3913 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3914 comments. Can target_preopen before changing node. Call
3915 inf_child_open_target to push the target explicitly.
3916 (procfs_attach): Don't push the target if it is already pushed.
3917 (procfs_detach): Use inf_child_maybe_unpush_target.
3918 (procfs_create_inferior): Don't push the target if it is already
3919 pushed.
3920 (nto_native_ops): New global.
3921 (procfs_open): Reimplement.
3922 (procfs_native_open): New function.
3923 (init_procfs_targets): Install procfs_native_open as to_open of
3924 "target native". Store a pointer to the "native" target in
3925 nto_native_ops.
3926 * procfs.c (procfs_attach): Don't push the target if it is already
3927 pushed.
3928 (procfs_detach): Use inf_child_maybe_unpush_target.
3929 (procfs_mourn_inferior): Only unpush the target after mourning the
3930 inferior. Use inf_child_maybe_unpush_target.
3931 (procfs_init_inferior): Don't push the target if it is already
3932 pushed.
3933 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3934 if it is already pushed.
3935
930ee1b1
PA
39362014-05-21 Pedro Alves <palves@redhat.com>
3937
3938 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3939 and "procfs" targets are now called "native" instead.
3940
1f5d1b13
PA
39412014-05-21 Pedro Alves <palves@redhat.com>
3942
3943 * go32-nat.c (go32_open): Delete.
3944 (go32_target): Don't override the to_open method.
3945
132f8e03
PA
39462014-05-21 Pedro Alves <palves@redhat.com>
3947
3948 * nto-procfs.c (procfs_can_run): New function.
3949 (nto_procfs_ops): New global.
3950 (init_procfs_targets): New, based on procfs_target. Install
3951 "target native" in addition to "target procfs".
3952 (_initialize_procfs): Call init_procfs_targets instead of adding
3953 the target here.
3954
03c136c3
PA
39552014-05-21 Pedro Alves <palves@redhat.com>
3956
3957 * windows-nat.c (windows_target): Don't override to_shortname,
3958 to_longname or to_doc.
3959
a635d0f3
PA
39602014-05-21 Pedro Alves <palves@redhat.com>
3961
3962 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3963 to_doc.
3964
4f9b5133
PA
39652014-05-21 Pedro Alves <palves@redhat.com>
3966
3967 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3968 to_shortname, to_longname or to_doc.
3969
bc85afde
PA
39702014-05-21 Pedro Alves <palves@redhat.com>
3971
3972 * go32-nat.c (go32_target): Don't override to_shortname,
3973 to_longname or to_doc.
3974
4ebfc96e
PA
39752014-05-21 Pedro Alves <palves@redhat.com>
3976
3977 * inf-child.c (inf_child_open): Remove mention of "child".
3978 (inf_child_target): Rename target to "native" instead of "child".
3979
2648dfed
AA
39802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3981
3982 * Makefile.in (SFILES): Delete "regset.c".
3983 (COMMON_OBS): Delete "regset.o".
3984 * regset.c: Remove.
3985 * regset.h (regset_alloc): Delete prototype.
3986
b13feb94
AA
39872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3988
3989 * sparc-linux-tdep.c (sparc32_linux_gregset)
3990 (sparc32_linux_fpregset): New static regset structures.
3991 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3992 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3993 'fpregset' fields.
3994 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3995 (sparc64_linux_fpregset): New static regset structures.
3996 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3997 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3998 New static regset structures.
3999 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4000 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4001 New static regset structures.
4002 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4003 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4004 New static regset structures.
4005 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4006 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4007 New static regset structures.
4008 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4009
b4fd25c9
AA
40102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4011
4012 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4013 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4014 register maps ("regmaps") from "*regset" to "*regmap". Do this
4015 for all regmap types and variables.
4016 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4017 (sparc32_linux_supply_core_gregset)
4018 (sparc32_linux_collect_core_gregset)
4019 (sparc32_linux_supply_core_fpregset)
4020 (sparc32_linux_collect_core_fpregset): Likewise.
4021 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4022 (sparc_gregmap, sparc_fpregmap): ... these.
4023 (sparc_supply_gregset, sparc_collect_gregset)
4024 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4025 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4026 (_initialize_sparc_nat): Rename regmaps.
4027 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4028 (sparc_gregmap, sparc_fpregmap): ... these.
4029 (sparc_supply_gregset, sparc_collect_gregset)
4030 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4031 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4032 Rename macros to...
4033 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4034 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4035 Likewise.
4036 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4037 Rename to...
4038 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4039 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4040 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4041 regmaps.
4042 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4043 (sparc32_bsd_fpregset): Rename to...
4044 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4045 (sparc32_bsd_fpregmap): ... these.
4046 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4047 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4048 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4049 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4050 (struct sparc_gregmap, struct sparc_fpregmap)
4051 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4052 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4053 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4054 (sparc32_supply_regset, sparc32_collect_gregset)
4055 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4056 prototypes.
4057 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4058 (sparc64_linux_ptrace_gregmap): ... this.
4059 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4060 (_initialize_sparc64_linux_nat): Rename regmaps.
4061 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4062 (sparc64_linux_core_gregmap): ... this.
4063 (sparc64_linux_supply_core_gregset)
4064 (sparc64_linux_collect_core_gregset)
4065 (sparc64_linux_supply_core_fpregset)
4066 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4067 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4068 (sparc64_sol2_fpregset): Rename to...
4069 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4070 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4071 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4072 regmaps.
4073 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4074 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4075 (sparc64_bsd_fpregset): Rename to...
4076 (struct sparc_gregmap, sparc64_sol2_gregmap)
4077 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4078 (sparc64_bsd_fpregmap): ... these.
4079 (sparc64_supply_gregset, sparc64_collect_gregset)
4080 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4081 prototypes.
4082 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4083 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4084 (sparc64fbsd_gregmap): ... this.
4085 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4086 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4087 Rename regmaps.
4088 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4089 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4090 (sparc64nbsd_collect_fpregset): Likewise.
4091 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4092 (sparc64nbsd_gregmap): ... this.
4093 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4094 regmaps.
4095 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4096 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4097 (sparc64obsd_gregmap): ... this.
4098 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4099 regmaps.
4100 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4101 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4102 (sparc32nbsd_gregmap): ... this.
4103 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4104 regmaps.
4105
8fea3224
AA
41062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4107
4108 * score-tdep.c (score7_linux_gregset): New static regset
4109 structure.
4110 (score7_linux_regset_from_core_section): Remove dynamic regset
4111 allocation.
4112 (score_gdbarch_init): Drop allocation of tdep structure.
4113 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4114
24534243
AA
41152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116
4117 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4118 regset structures.
4119 (am33_regset_from_core_section): Remove dynamic regset
4120 allocations.
4121
b7195f27
AA
41222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4123
4124 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4125 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4126 structures.
4127 (mips_linux_regset_from_core_section): Remove dynamic regset
4128 allocations.
4129 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4130 'gregset64', 'fpregset', and 'fpregset64'.
4131 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4132 deleted tdep fields.
4133
ecc37a5a
AA
41342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4135
4136 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4137 regset structures.
4138 (amd64_regset_from_core_section): Remove dynamic regset
4139 allocations.
4140 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4141 structure.
4142 (amd64obsd_regset_from_core_section): Remove dynamic regset
4143 allocation.
4144 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4145 Likewise.
4146 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4147 x86-common regset supply function.
4148 * i386-tdep.c (i386_collect_gregset): Make static.
4149 (i386_gregset): New global regset structure.
4150 (i386_fpregset, i386_xstateregset): New static regset structures.
4151 (i386_regset_from_core_section): Remove dynamic regset
4152 allocations.
4153 (i386_gdbarch_init): Remove initialization of tdep fields
4154 'gregset', 'fpregset', and 'xstateregset'.
4155 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4156 'fpregset', and 'xstateregset'.
4157 (i386_collect_gregset): Remove prototype.
4158 (i386_gregset): New declaration.
4159 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4160 structure.
4161 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4162 allocation.
4163
b7611c43
AA
41642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4165
4166 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4167 (arm_linux_vfpregset): New static regset structures.
4168 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4169 regset structures.
4170 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4171 and 'vfpregset' fields.
4172
a069a2bd
AA
41732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4174
4175 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4176 (aarch64_linux_fpregset): New static regset structures.
4177 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4178 of regset structures.
4179 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4180 'fpregset' fields.
4181
09424cff
AA
41822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4183
4184 * regset.h (struct regset): Remove gdbarch field.
4185 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4186 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4187 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4188 Likewise.
4189 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4190 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4191 (ppc32_linux_vsxregset): Likewise.
4192 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4193 via the regcache instead of the regset.
4194 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4195 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4196 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4197 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4198 Likewise.
4199
3ca7dae4
AA
42002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4201
4202 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4203 Constify structures.
4204 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4205 (alphanbsd_aout_gregset): Likewise.
4206 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4207 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4208 Likewise.
4209 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4210 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4211 Likewise.
4212 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4213 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4214 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4215 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4216 * m88k-tdep.c (m88k_gregset): Likewise.
4217 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4218 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4219 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4220 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4221 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4222 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4223 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4224 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4225 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4226 Likewise.
4227 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4228 * sh-tdep.h (sh_corefile_gregset): Likewise.
4229 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4230 * vax-tdep.c (vax_gregset): Likewise.
4231
5876f503
JK
42322014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4233
4234 Fix TLS access for -static -pthread.
4235 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4236 (try_thread_db_load_1): Initialize it.
4237 (thread_db_get_thread_local_address): Call it if LM is zero.
4238 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4239 * target.h (struct target_ops) (to_get_thread_local_address): Add
4240 load_module_addr comment.
4241
0256a6ac
PA
42422014-05-21 Pedro Alves <palves@redhat.com>
4243
4244 * dcache.c (dcache_read_memory_partial): If reading the cache line
4245 fails, fallback to reading just the memory the caller wanted.
4246
227533ac
DE
42472014-05-20 Doug Evans <dje@google.com>
4248
4249 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4250 instead of get_current_arch.
4251
936d2992
PA
42522014-05-20 Pedro Alves <palves@redhat.com>
4253
4254 * NEWS: Mention that compare-sections now works with all targets.
4255
4256 * remote.c (PACKET_qCRC): New enum value.
4257 (remote_verify_memory): Don't send qCRC if the target has no
4258 execution. Use packet_support/packet_ok. If the target doesn't
4259 support the qCRC packet, fallback to a deep memory copy.
4260 (compare_sections_command): Say "target image" instead of "remote
4261 executable".
4262 (_initialize_remote): Add PACKET_qCRC to the list of config
4263 packets that have no associated command. Extend comment.
4264 * target.c (simple_verify_memory, default_verify_memory): New
4265 function.
4266 * target.h (struct target_ops) <to_verify_memory>: Default to
4267 default_verify_memory.
4268 (simple_verify_memory): New declaration.
4269 * target-delegates.c: Regenerate.
4270
e59fa00f
MM
42712014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4272
4273 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4274
f2205de0
HZ
42752014-05-20 Hui Zhu <hui@codesourcery.com>
4276 Yao Qi <yao@codesourcery.com>
4277
4278 PR backtrace/16558
4279 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4280 and change address of sp and pc.
4281
c4e54771
TT
42822014-05-19 Tom Tromey <tromey@redhat.com>
4283
4284 * gdbtypes.c (rank_function): Use XNEWVEC.
4285 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4286
73051182
DE
42872014-05-19 Doug Evans <dje@google.com>
4288
4289 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4290 build_type_unit_groups and moved closer to only caller. Remove
4291 arguments. All references updated. Remove outdated .gdb_index
4292 comment.
4293 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4294 build_type_psymtabs_1.
4295
8832e7e3
DE
42962014-05-19 Doug Evans <dje@google.com>
4297
4298 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4299 n_type_unit_groups, all_type_unit_groups. All uses removed.
4300 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4301 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4302 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4303 (add_type_unit_group_to_table): Delete.
4304
cd8ae15e
DE
43052014-05-19 Doug Evans <dje@google.com>
4306
4307 * eval.c (evaluate_subexp_standard): Add some comments.
4308
08f4850b
DE
43092014-05-17 Doug Evans <xdje42@gmail.com>
4310
4311 * progspace.c (remove_program_space): Delete, unused.
4312 * progspace.h (remove_program_space): Ditto.
4313
bed8455c
DE
43142014-05-17 Doug Evans <xdje42@gmail.com>
4315
4316 * inferior.c (prune_inferiors): Fix comment.
4317 (remove_inferior_command): Call prune_program_spaces.
4318
8d551b02
DE
43192014-05-16 Doug Evans <dje@google.com>
4320
4321 New command line option -D.
4322 * NEWS: Mention it.
4323 * main.c (set_gdb_data_directory): New function.
4324 (captured_main): Recognize -D. Flag error for --data-directory "".
4325 Call set_gdb_data_directory.
4326 (print_gdb_help): Print --data-directory, -D.
4327 * main.h (set_gdb_data_directory): Declare.
4328 * top.c (staged_gdb_datadir): New static global.
4329 (set_gdb_datadir): Call set_gdb_data_directory
4330 (show_gdb_datadir): New function.
4331 (init_main): Update init of data-directory parameter.
4332
18848e28
GF
43332014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4334
4335 Import the "dirfd" gnulib module.
4336 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4337 * gnulib/aclocal.m4: Update.
4338 * gnulib/config.in: Update.
4339 * gnulib/configure: Update.
4340 * gnulib/import/Makefile.am: Update.
4341 * gnulib/import/Makefile.in: Update.
4342 * gnulib/import/dirfd.c: New.
4343 * gnulib/import/m4/dirfd.m4: New.
4344 * gnulib/import/m4/gnulib-cache.m4: Update.
4345 * gnulib/import/m4/gnulib-comp.m4: Update.
4346
95c64f92
YQ
43472014-05-16 Pierre Muller <muller@sourceware.org>
4348 Yao Qi <yao@codesourcery.com>
4349
4350 * valprint.c (print_wchar): Move the code on checking whether
4351 W is a printable wide char to the default branch of switch
4352 statement below. Call wchar_printable instead of gdb_iswprint.
4353
cac395ea
TM
43542014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4355
19679eca 4356 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4357 ldr.w and ldrd instructions.
4358
83655187
DE
43592014-05-15 Doug Evans <dje@google.com>
4360
4361 * dwarf2read.c (read_structure_type): Delete outdated comments.
4362
dd756689
TT
43632014-05-14 Tom Tromey <tromey@redhat.com>
4364
4365 * macrocmd.c (print_macro_definition): Reindent.
4366
75ddda77
DE
43672014-05-13 Doug Evans <xdje42@gmail.com>
4368
4369 * python/py-cmd.c (cmdpy_completer): Add comment.
4370 (completers): Make const.
4371
b0f16a3e
SM
43722014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * infrun.c (resume): Remove should_resume (unused). Move up
4375 declaration of resume_ptid.
4376
033c3379
TT
43772014-05-13 Tom Tromey <tromey@redhat.com>
4378
4379 * language.h (unop_type_check): Remove.
4380 (binop_type_check): Don't declare.
4381
9b44a3a5
AA
43822014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4383
4384 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4385 call to regcache_raw_collect.
4386
303a33fa
SM
43872014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4388
4389 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4390 mi_console->quote as the quoting character.
4391
196100a0
SM
43922014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4393
4394 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4395
f989a1c8
TT
43962014-04-29 Tom Tromey <tromey@redhat.com>
4397
4398 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4399 "show debug varobj".
4400
9404b58f
KM
44012014-05-07 Kyle McMartin <kyle@redhat.com>
4402
4403 Pushed by Joel Brobecker <brobecker@adacore.com>.
4404 * aarch64-tdep.c (aarch64_software_single_step): New function.
4405 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4406 with aarch64_software_single_step.
4407
5e49ba57
JB
44082014-05-05 Joel Brobecker <brobecker@adacore.com>
4409
4410 GDB 7.7.1 released.
4411
c888a17d
KS
44122014-05-05 Keith Seitz <keiths@redhat.com>
4413
4414 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4415 variable or history value is successfully parsed.
4416
290a839c
YQ
44172014-05-05 Yao Qi <yao@codesourcery.com>
4418 Pedro Alves <palves@redhat.com>
4419
4420 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4421 address of blocks that intersects the requested range. Trim
4422 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4423 sections.
4424 * ctf.c (ctf_xfer_partial): Likewise.
4425
91256dc2
YQ
44262014-05-05 Yao Qi <yao@codesourcery.com>
4427
4428 * printcmd.c (display_command): Remove the check to
4429 target_has_execution.
4430
07284463
MK
44312014-05-03 Mark Kettenis <kettenis@gnu.org>
4432
4433 * ppcobsd-nat.c: Include "obsd-nat.h".
4434 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4435 add_target.
4436 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4437
30a1e6cc
SDJ
44382014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4439
4440 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4441 and 16-bit signed and unsigned arguments. Update comment.
4442 (stap_parse_probe_arguments): Extend code to handle such
4443 arguments. Use warning instead of complaint to notify about
4444 unrecognized bitness.
4445
f33da99a
SDJ
44462014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4447
4448 PR breakpoints/16889
4449 * stap-probe.c (stap_parse_probe_arguments): Simplify
4450 check for non-prefixed probes (i.e., probes whose
4451 arguments do not start with "N@"). Always set the
4452 argument type to a sane value.
4453
95cf3b38
DT
44542014-05-01 David Taylor <dtaylor@emc.com>
4455
4456 * remote.c (compare_sections_command): Add -r option to compare
4457 all loadable read-only sections.
4458
1cfdf534
SC
44592014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4460
4461 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4462 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4463 Update all callers.
4464 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4465 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4466 Remove unused CORE_ADDR argument. Update all callers.
4467
ca4f7f8b
PA
44682014-04-29 Pedro Alves <palves@redhat.com>
4469
4470 * remote.c (struct packet_config) <detect>: Extend comment.
4471 (add_packet_config_cmd): Don't set the config's detect or support
4472 fields here.
4473 (init_all_packet_configs): Also initialize the config's 'detect'
4474 field.
4475 (reset_all_packet_configs_support): New function.
4476 (remote_open_1): Call reset_all_packet_configs_support instead of
4477 init_all_packet_configs.
4478 (_initialize_remote): Initialize all packet configs. Assert that
4479 all packets have an associated command, except a few known
4480 outliers.
4481
11c1ba78
JB
44822014-04-28 Joel Brobecker <brobecker@adacore.com>
4483
4484 * dwarf2read.c (read_subrange_type): Handle dynamic
4485 DW_AT_lower_bound attributes.
4486
8739bc53
JB
44872014-04-28 Joel Brobecker <brobecker@adacore.com>
4488
4489 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4490 dynamic bounds before computing its upper bound.
4491 (ada_discrete_type_low_bound): Same as above with the lower bound.
4492
6f8a3220
JB
44932014-04-28 Joel Brobecker <brobecker@adacore.com>
4494
4495 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4496 range types. Adjust the array handling implementation to
4497 take advantage of this change.
4498 (resolve_dynamic_range): New function, mostly extracted from
4499 resolve_dynamic_bounds.
4500 (resolve_dynamic_array): New function, mostly extracted from
4501 resolve_dynamic_bounds.
4502 (resolve_dynamic_bounds): Delete.
4503 (resolve_dynamic_type): Reimplement. Add handling of
4504 TYPE_CODE_RANGE types.
4505
4d072ce4
JB
45062014-04-28 Joel Brobecker <brobecker@adacore.com>
4507
4508 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4509 handling of parallel ___XA types.
4510
52865325
JB
45112014-04-28 Joel Brobecker <brobecker@adacore.com>
4512
4513 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4514 unnecessary second call to static_unwrap_type.
4515
433e77fa
HZ
45162014-04-27 Hui Zhu <hui@codesourcery.com>
4517
4518 * stack.c (print_frame_info): Call do_gdb_disassembly with
4519 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4520
b51a69ee
DE
45212014-04-26 Doug Evans <xdje42@gmail.com>
4522
4523 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4524
7ae1a6a6
PA
45252014-04-25 Pedro Alves <palves@redhat.com>
4526
4527 PR server/16255
4528 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4529 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4530 and newline from built string.
4531 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4532 (linux_ptrace_attach_fail_reason): ... this.
4533 * linux-nat.c (linux_nat_attach): Adjust to use
4534 linux_ptrace_attach_fail_reason.
4535
4082afcc
PA
45362014-04-25 Pedro Alves <palves@redhat.com>
4537
4538 * remote.c (struct remote_state): Remove multi_process_aware,
4539 non_stop_aware, cond_tracepoints, cond_breakpoints,
4540 breakpoint_commands, fast_tracepoints, static_tracepoints,
4541 install_in_trace, disconnected_tracing,
4542 enable_disable_tracepoints, string_tracing, and
4543 augmented_libraries_svr4_read fields.
4544 (remote_multi_process_p): Move further below in the file.
4545 (struct packet_config): Add comments.
4546 (update_packet_config): Delete function.
4547 (show_packet_config_cmd): Use packet_config_support.
4548 (add_packet_config_cmd): Use NULL as set callback.
4549 (packet_ok): "set remote foo-packet"-style commands no longer
4550 change config->supported -- adjust.
4551 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4552 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4553 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4554 (PACKET_QNonStop, PACKET_multiprocess_feature)
4555 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4556 (PACKET_DisconnectedTracing_feature)
4557 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4558 (set_remote_protocol_packet_cmd): Delete function.
4559 (packet_config_support, packet_support): New functions.
4560 (set_remote_protocol_Z_packet_cmd): Don't call
4561 update_packet_config.
4562 (remote_query_attached, remote_pass_signals)
4563 (remote_program_signals, remote_threads_info)
4564 (remote_threads_extra_info, remote_start_remote): Use
4565 packet_support.
4566 (remote_start_remote): Use packet_config_support and
4567 packet_support.
4568 (init_all_packet_configs): Set all packets to unknown support,
4569 instead of calling update_packet_config.
4570 (remote_check_symbols): Use packet_support.
4571 (remote_supported_packet): Unconditionally set the packet config's
4572 support status.
4573 (remote_multi_process_feature, remote_non_stop_feature)
4574 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4575 (remote_breakpoint_commands_feature)
4576 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4577 (remote_install_in_trace_feature)
4578 (remote_disconnected_tracing_feature)
4579 (remote_enable_disable_tracepoint_feature)
4580 (remote_string_tracing_feature)
4581 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4582 (remote_protocol_features): Adjust to use remote_supported_packet
4583 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4584 "ConditionalTracepoints", "ConditionalBreakpoints",
4585 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4586 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4587 "EnableDisableTracepoints", and "tracenz".
4588 (remote_query_supported): Use packet_support.
4589 (remote_open_1): Adjust.
4590 (extended_remote_attach_1): Use packet_support. Switch on the
4591 result of packet_ok instead of checking whether the packet ended
4592 up disabled.
4593 (remote_vcont_resume): Use packet_support.
4594 (remote_resume, remote_stop_ns, fetch_register_using_p)
4595 (remote_prepare_to_store, store_register_using_P)
4596 (check_binary_download, remote_write_bytes): Use packet_support.
4597 (remote_vkill): Use packet_support. Switch on the result of
4598 packet_ok instead of checking whether the packet ended up
4599 disabled.
4600 (extended_remote_supports_disable_randomization): Use
4601 packet_support.
4602 (extended_remote_run): Switch on the result of packet_ok instead
4603 of checking whether the packet ended up disabled.
4604 (remote_insert_breakpoint, remote_remove_breakpoint)
4605 (remote_insert_watchpoint, remote_remove_watchpoint)
4606 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4607 packet_support.
4608 (remote_search_memory): Use packet_config_support.
4609 (remote_get_thread_local_address, remote_get_tib_address)
4610 (remote_hostio_send_command, remote_can_execute_reverse): Use
4611 packet_support.
4612 (remote_supports_cond_tracepoints)
4613 (remote_supports_cond_breakpoints)
4614 (remote_supports_fast_tracepoints)
4615 (remote_supports_static_tracepoints)
4616 (remote_supports_install_in_trace)
4617 (remote_supports_enable_disable_tracepoint)
4618 (remote_supports_string_tracing)
4619 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4620 the packet config says the feature is enabled or disabled.
4621 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4622 (remote_get_trace_status): Use packet_support.
4623 (remote_set_disconnected_tracing): Adjust to check whether the
4624 feature is enabled with packet_support.
4625 (remote_set_trace_buffer_size, remote_use_agent)
4626 (remote_can_use_agent, remote_supports_btrace): Use
4627 packet_support.
4628 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4629 Use packet_config_support.
4630 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4631 the packet config says the feature is enabled or disabled.
4632 (set_range_stepping): Use packet_support.
4633
bdb52a22
TT
46342014-04-25 Tom Tromey <tromey@redhat.com>
4635
4636 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4637 argument.
4638
e9475ead
SA
46392014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4640
4641 * NEWS: Mention support for C99 variable length arrays.
4642
82eacd52
JB
46432014-04-24 Joel Brobecker <brobecker@adacore.com>
4644
4645 * ada-lang.c (standard_exc): Expand introductory comment.
4646
01f9f808
MS
46472014-04-24 Michael Sturm <michael.sturm@mintel.com>
4648 Walfred Tedeschi <walfred.tedeschi@intel.com>
4649
4650 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4651 AVX512 registers.
4652 (amd64_linux_read_description): Add code to handle AVX512 xstate
4653 mask and return respective tdesc.
4654 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4655 and features/i386/x32-avx512-linux.c.
4656 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4657 (amd64_linux_core_read_description): Add code to handle AVX512
4658 xstate mask and return respective tdesc.
4659 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4660 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4661 calculation.
4662 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4663 (tdesc_amd64_avx512_linux): New prototype.
4664 (tdesc_x32_avx512_linux): Likewise.
4665 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4666 features/i386/x32-avx512.c.
4667 (amd64_ymm_avx512_names): New register names for pseudo
4668 registers YMM16-31.
4669 (amd64_ymmh_avx512_names): New register names for raw registers
4670 YMMH16-31.
4671 (amd64_k_names): New register names for K registers.
4672 (amd64_zmmh_names): New register names for ZMM raw registers.
4673 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4674 (amd64_xmm_avx512_names): New register names for XMM16-31
4675 registers.
4676 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4677 registers.
4678 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4679 if feature is present.
4680 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4681 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4682 (AMD64_NUM_REGS): Adjust to new number of registers.
4683 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4684 registers supplied via XSTATE by AVX512 registers.
4685 (i386_linux_read_description): Add case for AVX512.
4686 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4687 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4688 (i386_linux_core_read_description): Add case for AVX512.
4689 (i386_linux_init_abi): Install supported register note section
4690 for AVX512.
4691 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4692 AVX512.
4693 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4694 registers to be number of zmm7h + 1.
4695 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4696 * i386-tdep.c: Include features/i386/i386-avx512.c.
4697 (i386_zmm_names): Add ZMM pseudo register names array.
4698 (i386_zmmh_names): Add ZMM raw register names array.
4699 (i386_k_names): Add K raw register names array.
4700 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4701 registers. AVX512 has 16 more ZMM registers than there are YMM
4702 registers.
4703 (i386_zmmh_regnum_p): Add function to look up register number of
4704 ZMM raw registers.
4705 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4706 (i386_k_regnum_p): Likewise for K raw registers.
4707 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4708 registers added by AVX512.
4709 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4710 registers added by AVX512.
4711 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4712 added by AVX512.
4713 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4714 (i386_pseudo_register_name): Add ZMM pseudo registers.
4715 (i386_zmm_type): Construct and return vector registers type for ZMM
4716 registers.
4717 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4718 ZMM0-31 pseudo registers and K registers.
4719 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4720 and YMM16-31 registers from register cache.
4721 (i386_pseudo_register_write): Add code to write K, ZMM and
4722 YMM16-31 registers.
4723 (i386_register_reggroup_p): Add code to include/exclude AVX512
4724 registers in/from respective register groups.
4725 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4726 registers if feature is present in xcr0.
4727 (i386_gdbarch_init): Add code to initialize AVX512 feature
4728 variables in tdep structure, wire in pseudo registers and call
4729 initialize_tdesc_i386_avx512.
4730 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4731 variables.
4732 (i386_regnum): Add AVX512 registers.
4733 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4734 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4735 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4736 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4737 512 bits wide.
4738 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4739 (i386_ymm_avx512_regnum_p): Likewise.
4740 (i386_k_regnum_p): Likewise.
4741 (i386_zmm_regnum_p): Likewise.
4742 (i386_zmmh_regnum_p): Likewise.
4743 * i387-tdep.c : Update year in copyright notice.
4744 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4745 XSAVE buffer.
4746 (XSAVE_YMM_AVX512_ADDR): New macro.
4747 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4748 XSAVE buffer.
4749 (XSAVE_XMM_AVX512_ADDR): New macro.
4750 (xsave_avx512_k_offset): New table for K register offsets in
4751 XSAVE buffer.
4752 (XSAVE_AVX512_K_ADDR): New macro.
4753 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4754 in XSAVE buffer.
4755 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4756 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4757 buffer.
4758 (i387_collect_xsave): Add code to collect AVX512 registers from
4759 XSAVE buffer.
4760 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4761 of XMM16-31 registers.
4762 (I387_NUM_K_REGS): New define for number of K registers.
4763 (I387_K0_REGNUM): New define for K0 register number.
4764 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4765 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4766 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4767 registers.
4768 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4769 (I387_XMM16_REGNUM): New define for XMM16 register number.
4770 (I387_YMM0_REGNUM): New define for YMM0 register number.
4771 (I387_KEND_REGNUM): New define for last K register number.
4772 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4773 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4774 number.
4775 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4776 number.
4777 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4778 size.
4779 * features/Makefile: Add AVX512 related files.
4780 * features/i386/32bit-avx512.xml: New file.
4781 * features/i386/64bit-avx512.xml: Likewise.
4782 * features/i386/amd64-avx512-linux.c: Likewise.
4783 * features/i386/amd64-avx512-linux.xml: Likewise.
4784 * features/i386/amd64-avx512.c: Likewise.
4785 * features/i386/amd64-avx512.xml: Likewise.
4786 * features/i386/i386-avx512-linux.c: Likewise.
4787 * features/i386/i386-avx512-linux.xml: Likewise.
4788 * features/i386/i386-avx512.c: Likewise.
4789 * features/i386/i386-avx512.xml: Likewise.
4790 * features/i386/x32-avx512-linux.c: Likewise.
4791 * features/i386/x32-avx512-linux.xml: Likewise.
4792 * features/i386/x32-avx512.c: Likewise.
4793 * features/i386/x32-avx512.xml: Likewise.
4794 * regformats/i386/amd64-avx512-linux.dat: New file.
4795 * regformats/i386/amd64-avx512.dat: Likewise.
4796 * regformats/i386/i386-avx512-linux.dat: Likewise.
4797 * regformats/i386/i386-avx512.dat: Likewise.
4798 * regformats/i386/x32-avx512-linux.dat: Likewise.
4799 * regformats/i386/x32-avx512.dat: Likewise.
4800 * NEWS: Add note about new support for AVX512.
4801
4802
08351840
PA
48032014-04-23 Pedro Alves <palves@redhat.com>
4804
4805 * breakpoint.c (insert_bp_location): Tolerate errors if the
4806 breakpoint is set in a user-loaded objfile.
4807 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4808 location is marked shlib_disabled. If the breakpoint is set in a
4809 user-loaded objfile is a GDB-side memory breakpoint, validate it
4810 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4811 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4812 flag.
4813 * mem-break.c (memory_validate_breakpoint): New function.
4814 * objfiles.c (userloaded_objfile_contains_address_p): New
4815 function.
4816 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4817 * target.h (memory_validate_breakpoint): New declaration.
4818
076855f9
PA
48192014-04-23 Pedro Alves <palves@redhat.com>
4820
4821 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4822 the breakpoint is set in a shared library, only suppress
4823 errors for software breakpoints, not hardware breakpoints.
4824
483805cf
PA
48252014-04-22 Pedro Alves <palves@redhat.com>
4826
4827 * infrun.c (schedlock_applies): New function, factored out from
4828 find_thread_needs_step_over.
4829 (find_thread_needs_step_over): Use it.
4830 (switch_back_to_stepped_thread): Always clear trap_expected if the
4831 step over is finished. Return early if scheduler locking applies.
4832 Look for the stepping thread and a potential step-over thread with
4833 a single loop.
4834 (currently_stepping_or_nexting_callback): Delete.
4835
a75fef0e
NC
48362014-04-22 Nick Clifton <nickc@redhat.com>
4837
4838 * NEWS: Mention that ARM sim now supports tracing.
4839
48b6e87e
YQ
48402014-04-22 Yao Qi <yao@codesourcery.com>
4841
4842 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4843 to ...
4844 * tracefile.c (tracefile_fetch_registers): ... it. New
4845 function.
4846 * tracefile.h (tracefile_fetch_registers): Declare.
4847 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4848 tracefile_fetch_registers.
4849
17617f2d
EZ
48502014-04-19 Eli Zaretskii <eliz@gnu.org>
4851
4852 PR gdb/14018
4853 * windows-nat.c (thread_rec): Don't display a warning when
4854 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4855 fails for any reason, set th->suspended to -1, so that we don't
4856 try to resume such a thread. Also, don't return NULL in these
4857 cases, to avoid completely ruin the session due to "PC register is
4858 not available" error.
4859 (do_windows_fetch_inferior_registers): Check errors in
4860 GetThreadContext call.
4861 (windows_continue): Accept an additional argument KILLED; if not
4862 zero, ignore errors in the SetThreadContext call, since the
4863 inferior was killed and is shutting down.
4864 (windows_resume, get_windows_debug_event)
4865 (windows_create_inferior, windows_mourn_inferior)
4866 (windows_kill_inferior): All callers of windows_continue changed
4867 to adjust to its new calling sequence.
4868
5723a6fd
YQ
48692014-04-19 Yao Qi <yao@codesourcery.com>
4870
4871 * ctf.c (ctf_open): Call post_create_inferior.
4872
614d5099
YQ
48732014-04-19 Yao Qi <yao@codesourcery.com>
4874
4875 * ctf.c (handle_id): New static variable.
4876 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4877 value. Get the declaration of event "register" and get length
4878 of field "contents".
4879
dac3e710
YQ
48802014-04-19 Yao Qi <yao@codesourcery.com>
4881
4882 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4883
2bca57ba
SC
48842014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4885
4886 * valops.c (oload_method_static): Remove unnecessary argument
4887 METHOD. Update all callers.
4888
51d48146
PA
48892014-04-18 Pedro alves <palves@redhat.com>
4890 Tom Tromey <tromey@redhat.com>
4891
4892 PR backtrace/15558
4893 * frame.c (get_prev_frame_1): Rename to ...
4894 (get_prev_frame_always): ... this, and make extern. Adjust.
4895 (skip_artificial_frames): Use get_prev_frame_always.
4896 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4897 (get_frame_unwind_stop_reason): Adjust to rename.
4898 * frame.h (get_prev_frame_always): Declare.
4899 * inline-frame.c: Include frame.h.
4900 (inline_frame_this_id): Use get_prev_frame_always.
4901
1bdad2e0
TG
49022014-04-18 Tristan Gingold <gingold@adacore.com>
4903
4904 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4905 code by using bfd_mach_o_get_base_address.
4906
7ce16bd4
UW
49072014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4908
4909 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4910 (spu_ax_pseudo_register_collect): New function.
4911 (spu_ax_pseudo_register_push_stack): Likewise.
4912 (spu_dwarf_reg_to_regnum): Likewise.
4913 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4914
2ed3c037
UW
49152014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4916
4917 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4918 Replace FRAME argument with FRAME_ID.
4919 * gdbarch.c, gdbarch.h: Regenerate.
4920 * findvar.c (default_value_from_register): Add GDBARCH argument;
4921 replace FRAME by FRAME_ID. No longer call get_frame_id.
4922 (value_from_register): Update call to gdbarch_value_from_register.
4923 * value.h (default_value_from_register): Update prototype.
4924 * s390-linux-tdep.c (s390_value_from_register): Update interface
4925 and call to default_value_from_register.
4926 * spu-tdep.c (spu_value_from_register): Likewise.
4927
4928 * findvar.c (address_from_register): Remove TYPE argument.
4929 Do not call value_from_register; use gdbarch_value_from_register
4930 with null_frame_id instead.
4931 * value.h (address_from_register): Update prototype.
4932 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4933 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4934 address_from_register interface change.
4935
71e50e83
YQ
49362014-04-17 Yao Qi <yao@codesourcery.com>
4937
4938 * gdbtypes.h: Update comments to link to types and macros'
4939 definitions.
4940
7a23c549
SC
49412014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4942
4943 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4944
22869d73
KS
49452014-04-16 Keith Seitz <keiths@redhat.com>
4946
4947 PR gdb/15827
4948 * dwarf2read.c (skip_one_die): Check that all relative-offset
4949 sibling DIEs fall within range of the current reader's buffer.
4950 (read_partial_die): Likewise.
4951
c4f87ca6
KS
49522014-04-16 Keith Seitz <keiths@redhat.com>
4953
4954 PR c++/16597
4955 * cp-namespace.c (lookup_symbol_file): If the type name of
4956 `this' is NULL, return immediately.
4957
b50c8614
KS
49582014-04-14 Keith Seitz <keiths@redhat.com>
4959
4960 PR c++/16253
4961 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4962 from symbol_matches_domain in symtab.c. All local callers
4963 of symbol_matches_domain updated.
4964 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4965 search STRUCT_DOMAIN.
4966 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4967 independently. standard_lookup will do that automatically.
4968 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4969 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4970 (cp_lookup_symbol_in_namespace): Likewise.
4971 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4972 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4973 may return a STRUCT_DOMAIN match.
4974 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4975 * cp-support.c: Include language.h.
4976 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4977 VAR_DOMAIN.
4978 * psymtab.c (match_partial_symbol): Compare the requested
4979 domain with the symbol's domain directly.
4980 (lookup_partial_symbol): Likewise.
4981 * symtab.c (lookup_symbol_in_language): Explain when/why
4982 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4983 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4984 appropriate languages.
4985 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4986 and moved to ada-lang.c
4987 (lookup_block_symbol): Explain that this function only returns
4988 symbol matching the requested DOMAIN.
4989 Compare the requested domain with the symbol's domain directly.
4990 (iterate_over_symbols): Compare the requested domain with the
4991 symbol's domain directly.
4992 * symtab.h (symbol_matches_domain): Remove.
4993
3d567982
TT
49942014-04-14 Tom Tromey <tromey@redhat.com>
4995
4996 PR c++/15246:
4997 * c-exp.y (type_aggregate_p): New function.
4998 (qualified_name, classify_inner_name): Use it.
4999 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5000 and TYPE_TARGET_TYPE of an enum type.
5001 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5002 an enum type.
5003 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5004 handle TYPE_DECLARED_CLASS.
5005 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5006 types.
5007 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5008 * valops.c (enum_constant_from_type): New function.
5009 (value_aggregate_elt): Use it.
5010 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5011 TYPE_CODE_ENUM.
5012
c848d642
TT
50132014-04-14 Tom Tromey <tromey@redhat.com>
5014
5015 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5016 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5017 const.
5018 * value.h (value_aggregate_elt): Update.
5019
0626fc76
TT
50202014-04-14 Tom Tromey <tromey@redhat.com>
5021
5022 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5023
5ecaaa66
SA
50242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5025
5026 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5027 (evaluate_subexp_standard): Pass noside argument.
5028 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5029 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5030 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5031 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5032 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5033
1612e0c0
SA
50342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5035
5036 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5037 points to a constant blob.
5038
c451ebe5
SA
50392014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5040
5041 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5042 property and store it as the high bound and flag the range accordingly.
5043 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5044 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5045 * gdbtypes.h (enum range_flags): New enum.
5046 (struct range_bounds): Add flags member.
5047
1d42e4c4
SA
50482014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5049
5050 * c-typeprint.c (c_type_print_varspec_suffix): Added
5051 check for not yet resolved high bound. If unresolved, print
5052 "variable length" string to the console instead of random
5053 length.
5054
9f1f738a
SA
50552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5056
5057 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5058 value.
5059 (ada_template_to_fixed_record_type_1): Likewise.
5060 (ada_to_fixed_type_1): Likewise.
5061 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5062 (cp_print_value): Likewise.
5063 * d-valprint.c (dynamic_array_type): Likewise.
5064 * findvar.c (address_of_variable): Likewise.
5065 * jv-valprint.c (java_value_print): Likewise.
5066 * valops.c (value_ind): Likewise.
5067 * value.c (coerce_ref): Likewise.
5068
3c8452d4
SA
50692014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5070
5071 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5072 value and retrieve the dynamic type size.
5073
4ad88275
SA
50742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5075
5076 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5077 passed to sizeof is dynamic evaluate the argument to compute the length.
5078
80180f79
SA
50792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5080 Joel Brobecker <brobecker@adacore.com>
5081
5082 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5083 (dwarf2_evaluate_property): New function.
5084 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5085 * dwarf2read.c (attr_to_dynamic_prop): New function.
5086 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5087 attribute.
5088 * gdbtypes.c: Include dwarf2loc.h.
5089 (is_dynamic_type): New function.
5090 (resolve_dynamic_type): New function.
5091 (resolve_dynamic_bounds): New function.
5092 (get_type_length): New function.
5093 (check_typedef): Use get_type_length to compute type length.
5094 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5095 (TYPE_LOW_BOUND_KIND): New macro.
5096 (is_dynamic_type): New function prototype.
5097 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5098 to resolve dynamic properties of the type. Update comment.
5099 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5100
a1556843
RH
51012014-04-14 Richard Henderson <rth@redhat.com>
5102
5103 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5104
0be03e84
DE
51052014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5106 Doug Evans <xdje42@gmail.com>
5107
5108 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5109 dereference TYPE_CODE_REF values.
5110
6b662e19
JB
51112014-04-11 Joel Brobecker <brobecker@adacore.com>
5112
5113 Revert the following changes due to regressions:
5114
5115 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5116 (dwarf2_evaluate_property): New function.
5117 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5118 * dwarf2read.c (attr_to_dynamic_prop): New function.
5119 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5120 attribute.
5121 * gdbtypes.c: Include dwarf2loc.h.
5122 (is_dynamic_type): New function.
5123 (resolve_dynamic_type): New function.
5124 (resolve_dynamic_bounds): New function.
5125 (get_type_length): New function.
5126 (check_typedef): Use get_type_length to compute type length.
5127 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5128 (TYPE_LOW_BOUND_KIND): New macro.
5129 (is_dynamic_type): New function prototype.
5130 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5131 to resolve dynamic properties of the type. Update comment.
5132 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5133
5134 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5135 passed to sizeof is dynamic evaluate the argument to compute the length.
5136
5137 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5138 value and retrieve the dynamic type size.
5139
5140 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5141 (ada_template_to_fixed_record_type_1): Likewise.
5142 (ada_to_fixed_type_1): Likewise.
5143 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5144 (cp_print_value): Likewise.
5145 * d-valprint.c (dynamic_array_type): Likewise.
5146 * eval.c (evaluate_subexp_with_coercion): Likewise.
5147 * findvar.c (address_of_variable): Likewise.
5148 * jv-valprint.c (java_value_print): Likewise.
5149 * valops.c (value_ind): Likewise.
5150 * value.c (coerce_ref): Likewise.
5151
5152 * c-typeprint.c (c_type_print_varspec_suffix): Added
5153 check for not yet resolved high bound. If unresolved, print
5154 "variable length" string to the console instead of random
5155 length.
5156
5157 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5158 property and store it as the high bound and flag the range accordingly.
5159 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5160 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5161 * gdbtypes.h (enum range_flags): New enum.
5162 (struct range_bounds): Add flags member.
5163
5164 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5165 points to a constant blob.
5166
5167 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5168 (evaluate_subexp_standard): Pass noside argument.
5169 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5170 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5171 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5172 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5173 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5174
245a5f0b
KS
51752014-04-11 Keith Seitz <keiths@redhat.com>
5176
5177 PR c++/16675
5178 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5179 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5180 reference types.
5181
3bce8237
SA
51822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5183
5184 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5185 (evaluate_subexp_standard): Pass noside argument.
5186 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5187 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5188 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5189 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5190 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5191
92b09522
SA
51922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5193
5194 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5195 points to a constant blob.
5196
e1969afb
SA
51972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5198
5199 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5200 property and store it as the high bound and flag the range accordingly.
5201 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5202 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5203 * gdbtypes.h (enum range_flags): New enum.
5204 (struct range_bounds): Add flags member.
5205
b86138fb
SA
52062014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5207
5208 * c-typeprint.c (c_type_print_varspec_suffix): Added
5209 check for not yet resolved high bound. If unresolved, print
5210 "variable length" string to the console instead of random
5211 length.
5212
bcd629a4
SA
52132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5214
5215 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5216 (ada_template_to_fixed_record_type_1): Likewise.
5217 (ada_to_fixed_type_1): Likewise.
5218 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5219 (cp_print_value): Likewise.
5220 * d-valprint.c (dynamic_array_type): Likewise.
5221 * eval.c (evaluate_subexp_with_coercion): Likewise.
5222 * findvar.c (address_of_variable): Likewise.
5223 * jv-valprint.c (java_value_print): Likewise.
5224 * valops.c (value_ind): Likewise.
5225 * value.c (coerce_ref): Likewise.
5226
04b19544
SA
52272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5228
5229 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5230 value and retrieve the dynamic type size.
5231
26cb189f
SA
52322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5233
5234 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5235 passed to sizeof is dynamic evaluate the argument to compute the length.
5236
37c1ab67
SA
52372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5238
5239 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5240 (dwarf2_evaluate_property): New function.
5241 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5242 * dwarf2read.c (attr_to_dynamic_prop): New function.
5243 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5244 attribute.
5245 * gdbtypes.c: Include dwarf2loc.h.
5246 (is_dynamic_type): New function.
5247 (resolve_dynamic_type): New function.
5248 (resolve_dynamic_bounds): New function.
5249 (get_type_length): New function.
5250 (check_typedef): Use get_type_length to compute type length.
5251 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5252 (TYPE_LOW_BOUND_KIND): New macro.
5253 (is_dynamic_type): New function prototype.
5254 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5255 to resolve dynamic properties of the type. Update comment.
5256 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5257
729efb13
SA
52582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5259
5260 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5261 declaring high/low bounds and change uses accordingly. Call
5262 create_range_type instead of create_static_range_type.
5263 * gdbtypes.c (create_range_type): New function.
5264 (create_range_type): Convert bounds into struct bound_prop and pass
5265 them to create_range_type.
5266 * gdbtypes.h (struct bound_prop): New struct.
5267 (create_range_type): New function prototype.
5268 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5269 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5270 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5271 part of the bound.
5272 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5273
0c9c3474
SA
52742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5275
5276 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5277 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5278 * ada-lang.c: All uses of create_range_type updated.
5279 * coffread.c: All uses of create_range_type updated.
5280 * dwarf2read.c: All uses of create_range_type updated.
5281 * f-exp.y: All uses of create_range_type updated.
5282 * m2-valprint.c: All uses of create_range_type updated.
5283 * mdebugread.c: All uses of create_range_type updated.
5284 * stabsread.c: All uses of create_range_type updated.
5285 * valops.c: All uses of create_range_type updated.
5286 * valprint.c: All uses of create_range_type updated.
5287
9d497a19
PA
52882014-04-10 Pedro Alves <palves@redhat.com>
5289
5290 * breakpoint.c (single_step_breakpoints)
5291 (single_step_gdbarch): Move up in the file.
5292 (one_breakpoint_xfer_memory): New function, factored out from ...
5293 (breakpoint_xfer_memory): ... here. Also process single-step
5294 breakpoints.
5295
15a9128a
TG
52962014-04-09 Tristan Gingold <gingold@adacore.com>
5297
5298 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5299 comments.
5300 (darwin_decode_exception_message): Free port only after use.
5301
9c97a070
PL
53022014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5303
5304 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5305 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5306 when setting the size of call_length.
5307
7af389b8
SC
53082014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5309
5310 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5311 dereference TYPE_CODE_REF values.
5312
86ad98c3
JB
53132014-04-07 Joel Brobecker <brobecker@adacore.com>
5314
5315 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5316 end of warning message.
5317
b0aeadb3
DE
53182014-04-03 Doug Evans <dje@google.com>
5319
5320 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5321 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5322
5979d6b6
AM
53232014-04-02 Alan Modra <amodra@gmail.com>
5324
5325 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5326 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5327 (struct symbol_file_add_from_memory_args): Add size field.
5328 (find_vdso_size): New function.
5329 (add_vsyscall_page): Attempt to find vdso size.
5330
0d60c288
DE
53312014-04-01 Doug Evans <dje@google.com>
5332
5333 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5334
a41f2563
TG
53352014-04-01 Tristan Gingold <gingold@adacore.com>
5336
5337 * darwin-nat.c (darwin_encode_reply): Add prototype.
5338 (darwin_decode_exception_message): Reply to unknown inferiors.
5339 (darwin_decode_message): Handle message by id. Ignore message
5340 to unknown inferior.
5341 (darwin_wait): Discard unknown messages, add debug trace.
5342
11a865c8
DE
53432014-03-31 Doug Evans <dje@google.com>
5344
5345 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5346 comp_dir_string.
5347
770e7fc7
DE
53482014-03-31 Doug Evans <dje@google.com>
5349
5350 New option "set print symbol-loading".
5351 * NEWS: Mention it.
5352 * solib.c (solib_read_symbols): Only print symbol loading messages
5353 if requested.
5354 (solib_add): If symbol loading is in "brief" mode, notify user
5355 symbols are being loaded.
5356 (reload_shared_libraries_1): Ditto.
5357 * symfile.c (print_symbol_loading_off): New static global.
5358 (print_symbol_loading_brief): New static global.
5359 (print_symbol_loading_full): New static global.
5360 (print_symbol_loading_enums): New static global.
5361 (print_symbol_loading): New static global.
5362 (print_symbol_loading_p): New function.
5363 (symbol_file_add_with_addrs): Only print symbol loading messages
5364 if requested.
5365 (_initialize_symfile): Register "print symbol-loading" set/show
5366 command.
5367 * symfile.h (print_symbol_loading_p): Declare.
5368
c32c64b7
DE
53692014-03-30 Doug Evans <xdje42@gmail.com>
5370
5371 * infrun.c (set_last_target_status): New function.
5372 (handle_inferior_event): Call it.
5373
7c0bc051
DE
53742014-03-30 Doug Evans <xdje42@gmail.com>
5375
5376 * inferior.h (enum stop_kind): Improve comment.
5377
8776cfe9
JB
53782014-03-28 Joel Brobecker <brobecker@adacore.com>
5379
5380 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5381 a reference, strip the reference layer before calling
5382 the lang_ops value_has_mutated callback.
5383
410a0ff2
SDJ
53842014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5385
5386 Remove some globals from our parser.
5387 * language.c (unk_lang_parser): Add "struct parser_state"
5388 argument.
5389 * language.h (struct language_defn) <la_parser>: Likewise.
5390 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5391 (initialize_expout): Add "struct parser_state" argument.
5392 Rewrite function to use the parser state.
5393 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5394 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5395 write_exp_elt_longcst, write_exp_elt_dblcst,
5396 write_exp_elt_decfloatcst, write_exp_elt_type,
5397 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5398 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5399 write_dollar_variable): Likewise.
5400 (parse_exp_in_context_1): Use parser state.
5401 (insert_type_address_space): Add "struct parser_state" argument.
5402 Use parser state.
5403 (increase_expout_size): New function.
5404 * parser-defs.h: Forward declare "struct language_defn" and
5405 "struct parser_state".
5406 (expout, expout_size, expout_ptr): Remove extern declarations.
5407 (parse_gdbarch, parse_language): Rewrite macro declarations to
5408 accept the parser state.
5409 (struct parser_state): New struct.
5410 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5411 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5412 write_exp_elt_decfloatcst, write_exp_elt_type,
5413 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5414 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5415 write_exp_msymbol, write_dollar_variable,
5416 mark_struct_expression, insert_type_address_space): Add "struct
5417 parser_state" argument.
5418 (increase_expout_size): New function.
5419 * utils.c (do_clear_parser_state): New function.
5420 (make_cleanup_clear_parser_state): Likewise.
5421 * utils.h (make_cleanup_clear_parser_state): New function
5422 prototype.
5423 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5424 Update calls to write_exp* in order to pass the parser state.
5425 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5426 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5427 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5428 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5429 * stap-probe.c (stap_parse_register_operand): Likewise.
5430 (stap_parse_single_operand): Likewise.
5431 (stap_parse_argument_1): Likewise.
5432 (stap_parse_argument): Use parser state.
5433 * stap-probe.h: Include "parser-defs.h".
5434 (struct stap_parse_info) <pstate>: New field.
5435 * c-exp.y (parse_type): Rewrite to use parser state.
5436 (yyparse): Redefine to c_parse_internal.
5437 (pstate): New global variable.
5438 (parse_number): Add "struct parser_state" argument.
5439 (write_destructor_name): Likewise.
5440 (type_exp): Update calls to write_exp* and similars in order to
5441 use parser state.
5442 (exp1, exp, variable, qualified_name, space_identifier,
5443 typename, typebase): Likewise.
5444 (write_destructor_name, parse_number, lex_one_token,
5445 classify_name, classify_inner_name, c_parse): Add "struct
5446 parser_state" argument. Update function to use parser state.
5447 * c-lang.h: Forward declare "struct parser_state".
5448 (c_parse): Add "struct parser_state" argument.
5449 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5450 (yyparse): Redefine macro to ada_parse_internal.
5451 (pstate): New variable.
5452 (write_int, write_object_renaming, write_var_or_type,
5453 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5454 type_int, type_long, type_long_long, type_float, type_double,
5455 type_long_double, type_char, type_boolean, type_system_address):
5456 Add "struct parser_state" argument.
5457 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5458 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5459 var_or_type, aggregate, aggregate_component_list,
5460 positional_list, others, component_group,
5461 component_associations): Update calls to write_exp* and similar
5462 functions in order to use parser state.
5463 (ada_parse, write_var_from_sym, write_int,
5464 write_exp_op_with_string, write_object_renaming,
5465 find_primitive_type, write_selectors, write_ambiguous_var,
5466 write_var_or_type, write_name_assoc, type_int, type_long,
5467 type_long_long, type_float, type_double, type_long_double,
5468 type_char, type_boolean, type_system_address): Add "struct
5469 parser_state" argument. Adjust function to use parser state.
5470 * ada-lang.c (parse): Likewise.
5471 * ada-lang.h: Forward declare "struct parser_state".
5472 (ada_parse): Add "struct parser_state" argument.
5473 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5474 calls to both functions.
5475 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5476 parser state.
5477 (yyparse): Redefine macro to f_parse_internal.
5478 (pstate): New variable.
5479 (parse_number): Add "struct parser_state" argument.
5480 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5481 and similars in order to use parser state.
5482 (parse_number): Adjust code to use parser state.
5483 (yylex): Likewise.
5484 (f_parse): New function.
5485 * f-lang.h: Forward declare "struct parser_state".
5486 (f_parse): Add "struct parser_state" argument.
5487 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5488 parser state.
5489 (yyparse): Redefine macro for java_parse_internal.
5490 (pstate): New variable.
5491 (push_expression_name, push_expression_name, insert_exp): Add
5492 "struct parser_state" argument.
5493 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5494 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5495 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5496 PostIncrementExpression, PostDecrementExpression,
5497 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5498 UnaryExpressionNotPlusMinus, CastExpression,
5499 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5500 RelationalExpression, EqualityExpression, AndExpression,
5501 ExclusiveOrExpression, InclusiveOrExpression,
5502 ConditionalAndExpression, ConditionalOrExpression,
5503 ConditionalExpression, Assignment, LeftHandSide): Update
5504 calls to write_exp* and similars in order to use parser state.
5505 (parse_number): Ajust code to use parser state.
5506 (yylex): Likewise.
5507 (java_parse): New function.
5508 (push_variable): Add "struct parser_state" argument. Adjust
5509 code to user parser state.
5510 (push_fieldnames, push_qualified_expression_name,
5511 push_expression_name, insert_exp): Likewise.
5512 * jv-lang.h: Forward declare "struct parser_state".
5513 (java_parse): Add "struct parser_state" argument.
5514 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5515 parser state.
5516 (yyparse): Redefine macro to m2_parse_internal.
5517 (pstate): New variable.
5518 (type_exp, exp, fblock, variable, type): Update calls to
5519 write_exp* and similars to use parser state.
5520 (yylex): Likewise.
5521 (m2_parse): New function.
5522 * m2-lang.h: Forward declare "struct parser_state".
5523 (m2_parse): Add "struct parser_state" argument.
5524 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5525 * objc-lang.h: Forward declare "struct parser_state".
5526 (end_msglist): Add "struct parser_state" argument.
5527 * p-exp.y (parse_type): Rewrite macro to use parser state.
5528 (yyparse): Redefine macro to pascal_parse_internal.
5529 (pstate): New variable.
5530 (parse_number): Add "struct parser_state" argument.
5531 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5532 write_exp* and similars in order to use parser state.
5533 (parse_number, yylex): Adjust code to use parser state.
5534 (pascal_parse): New function.
5535 * p-lang.h: Forward declare "struct parser_state".
5536 (pascal_parse): Add "struct parser_state" argument.
5537 * go-exp.y (parse_type): Rewrite macro to use parser state.
5538 (yyparse): Redefine macro to go_parse_internal.
5539 (pstate): New variable.
5540 (parse_number): Add "struct parser_state" argument.
5541 (type_exp, exp1, exp, variable, type): Update calls to
5542 write_exp* and similars in order to use parser state.
5543 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5544 to use parser state.
5545 (go_parse): Likewise.
5546 * go-lang.h: Forward declare "struct parser_state".
5547 (go_parse): Add "struct parser_state" argument.
5548
342587c4
DE
55492014-03-27 Doug Evans <dje@google.com>
5550
5551 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5552
33e80786
DE
55532014-03-27 Doug Evans <dje@google.com>
5554
5555 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5556 Remove argument abbrev_section. All callers updated.
5557
1dbab08b
DE
55582014-03-27 Doug Evans <dje@google.com>
5559
5560 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5561 addr_base, ranges_base.
5562
318d3177
KS
55632014-03-26 Keith Seitz <keiths@redhat.com>
5564
5565 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5566 types, not VAR_DOMAIN.
5567
1e54db15
SL
55682014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5569
5570 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5571 "ra" registers.
5572 * features/nios2-linux.c: Regenerated.
5573 * features/nios2.c: Regenerated.
5574
d3839ede
PA
55752014-03-25 Pedro Alves <palves@redhat.com>
5576
5577 * cli/cli-script.c (script_from_file): Force the interpreter to
5578 sync mode.
5579
7588d2ec
PL
55802014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5581
5582 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5583 small stack allocation.
5584
a6290449
TG
55852014-03-24 Tristan Gingold <gingold@adacore.com>
5586
5587 * darwin-nat.c (exc_server): Remove unused prototype.
5588 (darwin_dump_message): Correctly display data on x86_64.
5589 (darwin_encode_reply): Fix style.
5590 Add comments and fix indentation.
5591
31ae9d24 55922014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5593
5594 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5595
6339bfc4
DE
55962014-03-22 Doug Evans <xdje42@gmail.com>
5597
5598 * infcmd.c: Whitespace fixes.
5599 (interrupt_command): Merge two function comments into one.
5600
0a07590b
DE
56012014-03-22 Doug Evans <xdje42@gmail.com>
5602
5603 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5604 All uses updated.
5605
b55fbac4
YQ
56062014-03-22 Yao Qi <yao@codesourcery.com>
5607
5608 * remote.c (target_read_live_memory): Remove.
5609 (memory_xfer_live_readonly_partial): Rename it to
5610 remote_xfer_live_readonly_partial. Remove argument 'object'.
5611 All callers updated. Call remote_read_bytes_1
5612 instead of target_read_live_memory.
5613 * tracepoint.c (set_traceframe_number): Remove.
5614 (make_cleanup_restore_traceframe_number): Likewise .
5615 * tracepoint.h (set_traceframe_number): Remove declaration.
5616 (make_cleanup_restore_traceframe_number): Likewise.
5617
9217e74e
YQ
56182014-03-22 Yao Qi <yao@codesourcery.com>
5619
5620 * remote.c (remote_read_bytes): Move code on reading from the
5621 remote stub to ...
5622 (remote_read_bytes_1): ... here. New function.
5623
8acf9577
YQ
56242014-03-22 Yao Qi <yao@codesourcery.com>
5625
5626 * ctf.c (ctf_xfer_partial): Check the return value of
5627 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5628 return TARGET_XFER_UNAVAILABLE.
5629 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5630 * target.c (target_read_live_memory): Move it to remote.c.
5631 (memory_xfer_live_readonly_partial): Likewise.
5632 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5633 * remote.c (target_read_live_memory): Moved from target.c.
5634 (memory_xfer_live_readonly_partial): Likewise.
5635 (remote_read_bytes): Factored out from
5636 memory_xfer_partial_1.
5637
feef67ab
DE
56382014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5639
5640 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5641 NULL pointer.
5642
b65dc60b
PA
56432014-03-21 Pedro Alves <palves@redhat.com>
5644
5645 * infrun.c (normal_stop): Extend comment.
5646
b4ab256d
HZ
56472014-03-21 Hui Zhu <hui@codesourcery.com>
5648 Pedro Alves <palves@redhat.com>
5649
5650 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5651 static buffer.
5652 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5653 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5654 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5655
deba7593
MR
56562014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5657
5658 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5659 `z' formatted output modifier.
5660
1bff71c3
SDJ
56612014-03-20 Tom Tromey <tromey@redhat.com>
5662 Sergio Durigan Junior <sergiodj@redhat.com>
5663
5664 * probe.c (parse_probes): Turn assert into an ordinary error.
5665 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5666 exceptions when parsing probes. Rearrange the code for clarity.
5667
90e28950
TT
56682014-03-20 Tom Tromey <tromey@redhat.com>
5669
5670 PR gdb/14135
5671 * top.c (execute_command): Only dispatch events if the command
5672 started the target.
5673
beb460e8
PA
56742014-03-20 Tom Tromey <tromey@redhat.com>
5675
5676 PR cli/15718
5677 * infcall.c: Include event-top.h.
5678 (run_inferior_call): Call async_disable_stdin if needed.
5679
99619bea
PA
56802014-03-20 Pedro Alves <palves@redhat.com>
5681
5682 * infrun.c (prepare_to_proceed): Delete.
5683 (thread_still_needs_step_over): New function.
5684 (find_thread_needs_step_over): New function.
5685 (proceed): If the current thread needs a step-over, set its
5686 steping_over_breakpoint flag. Adjust to use
5687 find_thread_needs_step_over instead of prepare_to_proceed.
5688 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5689 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5690 breakpoint.
5691 (switch_back_to_stepped_thread): Step over breakpoints of all
5692 threads not the stepping thread, before switching back to the
5693 stepping thread.
5694
2adfaa28
PA
56952014-03-20 Pedro Alves <palves@redhat.com>
5696
5697 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5698 extern.
5699 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5700 * infrun.c (saved_singlestep_ptid)
5701 (stepping_past_singlestep_breakpoint): Delete.
5702 (resume): Remove stepping_past_singlestep_breakpoint handling.
5703 (proceed): Store the prev_pc of the stepping thread too.
5704 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5705 singlestep_pc.
5706 (enum infwait_states): Delete infwait_thread_hop_state.
5707 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5708 field.
5709 (handle_inferior_event): Adjust.
5710 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5711 handling and the thread-hop code. Before removing single-step
5712 breakpoints, check whether the thread hit a single-step breakpoint
5713 of another thread. If it did, the trap is not a random signal.
5714 (switch_back_to_stepped_thread): If the event thread hit a
5715 single-step breakpoint, unblock it before switching to the
5716 stepping thread. Handle the case of the stepped thread having
5717 advanced already.
5718 (keep_going): Handle the case of the current thread moving past a
5719 single-step breakpoint.
5720
31e77af2
PA
57212014-03-20 Pedro Alves <palves@redhat.com>
5722
5723 PR breakpoints/7143
5724 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5725 are being stepped over.
5726 (breakpoint_address_match): Make extern.
5727 * breakpoint.h (breakpoint_address_match): New declaration.
5728 * inferior.h (stepping_past_instruction_at): New declaration.
5729 * infrun.c (struct step_over_info): New type.
5730 (step_over_info): New global.
5731 (set_step_over_info, clear_step_over_info)
5732 (stepping_past_instruction_at): New functions.
5733 (handle_inferior_event): Clear the step-over info when
5734 trap_expected is cleared.
5735 (resume): Remove now stale comment.
5736 (clear_proceed_status): Clear step-over info.
5737 (proceed): Adjust step-over handling to set or clear the step-over
5738 info instead of removing all breakpoints.
5739 (handle_signal_stop): When setting up a thread-hop, don't remove
5740 breakpoints here.
5741 (stop_stepping): Clear step-over info.
5742 (keep_going): Adjust step-over handling to set or clear step-over
5743 info and then always inserting breakpoints, instead of removing
5744 all breakpoints when stepping over one.
5745
b9f437de
PA
57462014-03-20 Pedro Alves <palves@redhat.com>
5747
5748 * infrun.c (previous_inferior_ptid): Adjust comment.
5749 (deferred_step_ptid): Delete.
5750 (infrun_thread_ptid_changed, prepare_to_proceed)
5751 (init_wait_for_inferior): Adjust.
5752 (handle_signal_stop): Delete deferred_step_ptid handling.
5753
06c868a8
JK
57542014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5755
5756 PR gdb/15358
5757 * defs.h (sync_quit_force_run): New declaration.
5758 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5759 * event-top.c (async_sigterm_handler): New declaration.
5760 (async_sigterm_token): New variable.
5761 (async_init_signals): Create also async_sigterm_token.
5762 (async_sigterm_handler): New function.
5763 (sync_quit_force_run): New variable.
5764 (handle_sigterm): Replace quit_force call by other calls.
5765 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5766
dea80df0
MR
57672014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5768
5769 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5770 offset into SPE pseudo registers.
5771
0c7e1a46
PA
57722014-03-18 Pedro Alves <palves@redhat.com>
5773
5774 PR gdb/13860
5775 * inferior.h (print_stop_event): Declare.
5776 * infrun.c (print_stop_event): New, factored out from ...
5777 (normal_stop): ... this.
5778 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5779 of bpstat_print/print_stack_frame.
5780
9c1fcd01
TT
57812014-03-17 Tom Tromey <tromey@redhat.com>
5782
5783 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5784
11aa919a
PMR
57852014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5786
5787 * ada-lang.c (decode_constrained_packed_array): Perform a
5788 minimal coercion for reference with coerce_ref instead of
5789 ada_coerce_ref.
5790
d4ccb5e0
TG
57912014-03-17 Tristan Gingold <gingold@adacore.com>
5792
5793 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5794 (darwin_solib_create_inferior_hook): Emit a warning if version
5795 is unhandled.
5796
49840f2a
UW
57972014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5798
5799 * python/py-value.c (get_field_flag): Cast flag_name argument to
5800 PyObject_GetAttrString to support Python 2.4.
5801
ed4123e5
JK
58022014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5803
5804 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5805 (Global Maintainers): Remove Jan Kratochvil.
5806
d6b64346
PA
58072014-03-14 Pedro Alves <palves@redhat.com>
5808
5809 * inferior.h (terminal_ours_for_output): Rename to ...
5810 (child_terminal_ours_for_output): ... this.
5811 (terminal_save_ours): Rename to ...
5812 (child_terminal_save_ours): ... this.
5813 (terminal_ours): Rename to ...
5814 (child_terminal_ours): ... this.
5815 (terminal_inferior): Rename to ...
5816 (child_terminal_inferior): ... this.
5817 (terminal_init_inferior): Rename to ...
5818 (child_terminal_init_inferior): ... this.
5819 (terminal_init_inferior_with_pgrp): Rename to ...
5820 (child_terminal_init_inferior_with_pgrp): ... this.
5821 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5822 (child_terminal_init_with_pgrp): ... this.
5823 (terminal_save_ours): Rename to ...
5824 (child_terminal_save_ours): ... this.
5825 (terminal_init_inferior): Rename to ...
5826 (child_terminal_init): ... this. Adjust.
5827 (terminal_inferior): Rename to ...
5828 (child_terminal_inferior): ... this.
5829 (terminal_ours_for_output): Rename to ...
5830 (child_terminal_ours_for_output): ... this. Adjust.
5831 (terminal_ours): Rename to ...
5832 (child_terminal_ours): ... this.
5833 (terminal_ours_1): Rename to ...
5834 (child_terminal_ours_1): ... this. Adjust.
5835 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5836 * windows-nat.c (do_initial_windows_stuff): Adjust.
5837 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5838 (gnu_terminal_init): ... this. Adjust.
5839 (gnu_target): Adjust.
5840 * inf-child.c (inf_child_target): Adjust.
5841
5a1e8c7a
DE
58422014-03-13 Doug Evans <xdje42@gmail.com>
5843
5844 PR guile/16612
5845 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5846 new eq?-hashtab.
5847
350e1a76
DE
58482014-03-13 Doug Evans <xdje42@gmail.com>
5849
5850 * value.c (record_latest_value): Call release_value_or_incref
5851 instead of release_value.
5852
a69900ae
PA
58532014-03-13 Pedro Alves <palves@redhat.com>
5854
5855 * procfs.c (procfs_target): Don't override to_shortname,
5856 to_longname or to_doc.
5857
5db9f0bd
PA
58582014-03-13 Pedro Alves <palves@redhat.com>
5859
5860 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5861 Unix in user visible strings.
5862
5e3a2c38
SS
58632014-03-12 Stan Shebs <stan@codesourcery.com>
5864
5865 * gdbtypes.h: Annotate comments for Doxygen, add a page
5866 block comment with some general info.
5867
8bc2fe48
PA
58682014-03-12 Pedro Alves <palves@redhat.com>
5869
5870 * infcmd.c (prepare_execution_command): New function, factored out
5871 from several execution commands.
5872 (run_command_1, continue_command, step_1, jump_command)
5873 (signal_command, until_command, advance_command, finish_command)
5874 (attach_command): Use prepare_execution_command.
5875
638c5f49
OJ
58762014-03-12 Omair Javaid <omair.javaid@linaro.org>
5877
5878 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5879 (MAX_BPTS): Define.
5880 (MAX_WPTS): Define.
5881 (struct arm_linux_thread_points): Removed.
5882 (struct arm_linux_process_info): New.
5883 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5884 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5885 (arm_linux_find_breakpoints_by_tid): Removed.
5886 (struct arch_lwp_info): New.
5887 (arm_linux_find_process_pid): New functions.
5888 (arm_linux_add_process): New functions.
5889 (arm_linux_process_info_get): New functions.
5890 (arm_linux_forget_process): New function.
5891 (arm_linux_get_debug_reg_state): New function.
5892 (struct update_registers_data): New.
5893 (update_registers_callback): New function.
5894 (arm_linux_insert_hw_breakpoint1): Updated.
5895 (arm_linux_remove_hw_breakpoint1): Updated.
5896 (arm_linux_insert_hw_breakpoint): Updated.
5897 (arm_linux_remove_hw_breakpoint): Updated.
5898 (arm_linux_insert_watchpoint): Updated.
5899 (arm_linux_remove_watchpoint): Updated.
5900 (arm_linux_new_thread): Updated.
5901 (arm_linux_prepare_to_resume): New function.
5902 (arm_linux_new_fork): New function.
5903 (_initialize_arm_linux_nat): Updated.
5904
6d03af93
PA
59052014-03-12 Pedro Alves <palves@redhat.com>
5906
5907 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5908
b3ccfe11
TT
59092014-03-12 Tom Tromey <tromey@redhat.com>
5910
5911 * inf-child.c (return_zero): New function.
5912 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5913 * aix-thread.c (aix_thread_inferior_created): New function.
5914 (aix_thread_attach): Remove.
5915 (init_aix_thread_ops): Don't set to_attach.
5916 (_initialize_aix_thread): Register inferior_created observer.
5917 * corelow.c (init_core_ops): Don't set to_attach or
5918 to_create_inferior.
5919 * exec.c (init_exec_ops): Don't set to_attach or
5920 to_create_inferior.
5921 * infcmd.c (run_command_1): Use find_run_target. Make direct
5922 target calls.
5923 (attach_command): Use find_attach_target. Make direct target
5924 calls.
5925 * record-btrace.c (init_record_btrace_ops): Don't set
5926 to_create_inferior.
5927 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5928 Remove.
5929 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5930 set to_create_inferior.
5931 * target.c (complete_target_initialization): Add assertion.
5932 (target_create_inferior): Remove.
5933 (find_default_attach, find_default_create_inferior): Remove.
5934 (find_attach_target, find_run_target): New functions.
5935 (find_default_is_async_p, find_default_can_async_p)
5936 (target_supports_non_stop, target_attach): Remove.
5937 (init_dummy_target): Don't set to_create_inferior or
5938 to_supports_non_stop.
5939 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5940 TARGET_DEFAULT_FUNC.
5941 <to_create_inferior>: Add comment.
5942 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5943 TARGET_DEFAULT_RETURN.
5944 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5945 (find_attach_target, find_run_target): Declare.
5946 (target_create_inferior): Remove.
5947 (target_has_execution_1): Update comment.
5948 (target_supports_non_stop): Remove.
5949 * target-delegates.c: Rebuild.
5950
91f83b02
PA
59512014-03-12 Pedro Alves <palves@redhat.com>
5952
5953 * inf-child.h: Update comment to not mention Unix.
5954
f1aea813
PA
59552014-03-12 Pedro Alves <palves@redhat.com>
5956
5957 * inf-child.c: Update top comment to not mention Unix. Add
5958 generic comment describing how this target is meant to be used.
5959 (inf_child_post_attach, inf_child_post_startup_inferior)
5960 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5961 Unix in comment.
5962
ee8e9165
PA
59632014-03-12 Pedro Alves <palves@redhat.com>
5964
5965 * nto-procfs.c: Include inf-child.h.
5966 (procfs_ops): Delete global.
5967 (procfs_can_run): Delete method.
5968 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5969 target pointer instead of referencing procfs_ops.
5970 (procfs_prepare_to_store): Delete.
5971 (init_procfs_ops): Delete function.
5972 (procfs_target): New function, based on init_procfs_ops, but
5973 inherit inf_child_target.
5974 (_initialize_procfs): Use procfs_target.
5975
51a9c8c5
PA
59762014-03-12 Pedro Alves <palves@redhat.com>
5977
5978 * windows-nat.c: Include inf-child.h.
5979 (windows_ops): Delete global.
5980 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5981 methods.
5982 (init_windows_ops): Delete function.
5983 (windows_target): New function, based on init_windows_ops, but
5984 inherit inf_child_target.
5985 (_initialize_windows_nat): Use windows_target. Install x86
5986 specific target methods here.
5987
c1966e26
DE
59882014-03-10 Doug Evans <xdje42@gmail.com>
5989
5990 * guile/guile.c (call_initialize_gdb_module): New function.
5991 (initialize_guile): Replace call to scm_init_guile with call to
5992 scm_with_guile.
5993
023db19c
JB
59942014-03-10 Joel Brobecker <brobecker@adacore.com>
5995
5996 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5997 in call to TYPE_CODE macro.
5998
5ec18f2b
JG
59992014-03-10 Jerome Guitton <guitton@adacore.com>
6000
8668be63
JB
6001 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6002 Resolve tagged types to full view.
5ec18f2b 6003
7d03f2eb
HZ
60042014-03-10 Hui Zhu <hui@codesourcery.com>
6005
6006 * target.h (target_insert_breakpoint): Remove "hardware" from its
6007 comments.
6008
c5164cbc
DE
60092014-03-07 Doug Evans <dje@google.com>
6010
6011 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6012
c4a3fee2
DE
60132014-03-07 Doug Evans <dje@google.com>
6014
6015 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6016 Remove unused local comp_dir_attr. Assert exactly one of
6017 stub_comp_unit_die, stub_comp_dir is non-NULL.
6018
3156469c
JB
60192014-03-07 Joel Brobecker <brobecker@adacore.com>
6020
6021 * target.h (complete_target_initialization, add_target):
6022 Add comment.
6023
c1a7b7c6
PA
60242014-03-07 Pedro Alves <palves@redhat.com>
6025
6026 * go32-nat.c: Include inf-child.h.
6027 (go32_ops): Delete global.
6028 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6029 Delete methods.
6030 (go32_create_inferior): Push the passed in target pointer instead
6031 of referencing go32_ops.
6032 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6033 (go32_target): New function, based on init_go32_ops, but inherit
6034 inf_child_target.
6035 (_initialize_go32_nat): Use go32_target. Move parts of
6036 init_go32_ops here.
6037
d3c1a85f
JB
60382014-03-06 Joel Brobecker <brobecker@adacore.com>
6039
6040 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6041 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6042 SYMBOL_VALUE_ADDRESS.
6043 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6044
5fa1d40e
YQ
60452014-03-06 Yao Qi <yao@codesourcery.com>
6046
6047 * breakpoint.c (get_tracepoint_by_number): Remove argument
6048 optional_p. All callers updated. Adjust comments. Update
6049 output message.
6050 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6051
0c13193f
YQ
60522014-03-06 Yao Qi <yao@codesourcery.com>
6053
6054 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6055 early if get_number returns zero. Use 'p' instead of 'args'.
6056
2217da06
YQ
60572014-03-06 Yao Qi <yao@codesourcery.com>
6058
6059 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6060 message.
6061
cc3da688
YQ
60622014-03-06 Yao Qi <yao@codesourcery.com>
6063
6064 PR breakpoints/16508
6065 * tracepoint.c (check_trace_running): New function.
6066 (trace_find_command): Move code to check_trace_running and
6067 call check_trace_running.
6068 (trace_find_pc_command): Likewise.
6069 (trace_find_tracepoint_command): Likewise.
6070 (trace_find_line_command): Likewise.
6071 (trace_find_range_command): Likewise.
6072 * tracepoint.h (check_trace_running): Likewise.
6073 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6074
6a5f844b
YQ
60752014-03-06 Yao Qi <yao@codesourcery.com>
6076
6077 * target.h (struct target_ops) <to_traceframe_info>: Use
6078 TARGET_DEFAULT_NORETURN (tcomplain ()).
6079 * target-delegates.c: Regenerated.
6080
0f26cec1
PA
60812014-03-05 Pedro Alves <palves@redhat.com>
6082
6083 PR gdb/16575
6084 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6085 void. Update comment.
6086 (dcache_xfer_memory): Delete.
6087 (dcache_read_memory_partial): New, based on the read bits of
6088 dcache_xfer_memory.
6089 (dcache_update): Add status parameter. Use ULONGEST for len, and
6090 adjust. Discard cache lines if the reason for the update was
6091 error.
6092 * dcache.h (dcache_xfer_memory): Delete declaration.
6093 (dcache_read_memory_partial): New declaration.
6094 (dcache_update): Update prototype.
6095 * target.c (raw_memory_xfer_partial): Update the dcache here.
6096 (memory_xfer_partial_1): Don't handle dcache writes here.
6097
b2b255bd
MF
60982014-03-05 Mike Frysinger <vapier@gentoo.org>
6099
6100 * remote-sim.c (gdbsim_load): Add const to prog.
6101
5d9cf8a4
TT
61022014-03-03 Tom Tromey <tromey@redhat.com>
6103
6104 * elfread.c (probe_key): Change to bfd_data.
6105 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6106 now per-BFD, not per-objfile.
6107 * stap-probe.c (stap_probe_destroy): Update comment.
6108 (handle_stap_probe): Allocate on the per-BFD obstack.
6109
729662a5
TT
61102014-03-03 Tom Tromey <tromey@redhat.com>
6111
6112 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6113 * breakpoint.c (create_longjmp_master_breakpoint): Use
6114 get_probe_address.
6115 (add_location_to_breakpoint, bkpt_probe_insert_location)
6116 (bkpt_probe_remove_location): Update.
6117 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6118 * elfread.c (elf_symfile_relocate_probe): Remove.
6119 (elf_probe_fns): Update.
6120 (insert_exception_resume_breakpoint): Change type of "probe"
6121 parameter to bound_probe.
6122 (check_exception_resume): Update.
6123 * objfiles.c (objfile_relocate1): Don't relocate probes.
6124 * probe.c (bound_probe_s): New typedef.
6125 (parse_probes): Use get_probe_address. Set sal's objfile.
6126 (find_probe_by_pc): Return a bound_probe.
6127 (collect_probes): Return a VEC(bound_probe_s).
6128 (compare_probes): Update.
6129 (gen_ui_out_table_header_info): Change type of "probes"
6130 parameter. Update.
6131 (info_probes_for_ops): Update.
6132 (get_probe_address): New function.
6133 (probe_safe_evaluate_at_pc): Update.
6134 * probe.h (struct probe_ops) <get_probe_address>: New field.
6135 <set_semaphore, clear_semaphore>: Add objfile parameter.
6136 (struct probe) <objfile>: Remove field.
6137 <arch>: New field.
6138 <address>: Update comment.
6139 (struct bound_probe): New.
6140 (find_probe_by_pc): Return a bound_probe.
6141 (get_probe_address): Declare.
6142 * solib-svr4.c (struct probe_and_action) <address>: New field.
6143 (hash_probe_and_action, equal_probe_and_action): Update.
6144 (register_solib_event_probe): Add address parameter.
6145 (solib_event_probe_at): Update.
6146 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6147 get_probe_address.
6148 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6149 (stap_get_probe_address): New function.
6150 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6151 (compile_probe_arg): Update.
6152 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6153 address.
6154 (handle_stap_probe): Don't relocate the probe.
6155 (stap_relocate): Remove.
6156 (stap_gen_info_probes_table_values): Update.
6157 (stap_probe_ops): Remove stap_relocate.
6158 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6159 (debug_sym_probe_fns): Update.
6160 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6161 * symtab.c (init_sal): Use memset.
6162 * symtab.h (struct symtab_and_line) <objfile>: New field.
6163 * tracepoint.c (start_tracing, stop_tracing): Update.
6164
ff887920
TT
61652014-03-03 Tom Tromey <tromey@redhat.com>
6166
6167 * probe.h (parse_probes, find_probe_by_pc)
6168 (find_probes_in_objfile): Fix comments.
6169
f0407826
DE
61702014-03-02 Doug Evans <xdje42@gmail.com>
6171
6172 * infrun.c (handle_signal_stop): Replace test for
6173 TARGET_WAITKIND_STOPPED with an assert.
6174
35e6a711
DE
61752014-03-02 Doug Evans <xdje42@gmail.com>
6176
6177 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6178
667f9d0b
DE
61792014-03-02 Doug Evans <xdje42@gmail.com>
6180
6181 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6182
dc92ace0
MK
61832014-03-01 Mark Kettenis <kettenis@gnu.org>
6184
6185 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6186
a900370f
MK
61872014-03-01 Mark Kettenis <kettenis@gnu.org>
6188
6189 * i386obsd-nat.c: Include "obsd-nat.h".
6190 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6191 add_target.
6192 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6193
b72a7981
MK
61942014-03-01 Mark Kettenis <kettenis@gnu.org>
6195
6196 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6197
96c70aba
MK
61982014-03-01 Mark Kettenis <kettenis@gnu.org>
6199
6200 * mips64obsd-nat.c: Include "obsd-nath".
6201 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6202 add_target
6203 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6204
874a80af
MK
62052014-03-01 Mark Kettenis <kettenis@gnu.org>
6206
8fd408f1
MK
6207 * amd64obsd-nat.c: Include "obsd-nat,h.
6208 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6209 add_target.
874a80af
MK
6210 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6211
9cf95373
SC
62122014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6213
6214 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6215 (find_overload_match): Update call to find_oload_champ.
6216 (find_oload_champ_namespace_loop): Likewise
6217
863e4da4
MK
62182014-02-28 Mark Kettenis <kettenis@gnu.org>
6219
025cac40
MK
6220 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6221
1ed586ce
MK
6222 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6223 * config/sparc/obsd64.mh: New file.
6224 * sparc64obsd-nat.c: New file.
6225
863e4da4
MK
6226 * obsd-nat.h: New file.
6227 * obsd-nat.c: New file.
6228 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6229 (ALLDEPFILES): Add obsd-nat.c.
6230
89de4da4
TT
62312014-02-28 Tom Tromey <tromey@redhat.com>
6232
6233 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6234 * cli-out.h (cli_ui_out_impl): Now const.
6235 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6236 * ui-out.c (struct ui_out) <impl>: Now const.
6237 (default_ui_out_impl): Now const.
6238 (ui_out_new): Make 'impl' parameter const.
6239 * ui-out.h (ui_out_new): Update.
6240
c725e7b6
MK
62412014-02-27 Mark Kettenis <kettenis@gnu.org>
6242
6243 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6244
670b46b3
MK
62452014-02-27 Mark Kettenis <kettenis@gnu.org>
6246
6247 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6248
c91550fc
JK
62492014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6250
6251 Additional PR 8882 fix.
6252 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6253
2fa0369e
PA
62542014-02-27 Pedro Alves <palves@redhat.com>
6255
6256 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6257 isn't set.
6258
d632a097
PA
62592014-02-27 Pedro Alves <palves@redhat.com>
6260
6261 PR 12702
6262 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6263 * nat/linux-waitpid.c: Include string.h.
6264 (status_to_str): Moved here and made extern.
6265 * nat/linux-waitpid.h (status_to_str): New declaration.
6266
2ebd5a35
HZ
62672014-02-27 Hui Zhu <hui@codesourcery.com>
6268
6269 PR 12702
6270 * infrun.c (ptid_match): Move ...
6271 * common/ptid.c (ptid_match): ... here.
6272 * inferior.h (ptid_match): Move ...
6273 * common/ptid.h (ptid_match): ... here.
6274
3cdd631f
MK
62752014-02-27 Mark Kettenis <kettenis@gnu.org>
6276
6277 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6278 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6279 gdb_target_obs.
6280
bee30a64
MK
62812014-02-27 Mark Kettenis <kettenis@gnu.org>
6282
6283 * obsd-tdep.c (obsd_auxv_parse): New function.
6284 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6285
6286 * gdbarch.sh (auxv_parse): New.
6287 * gdbarch.h: Regenerated.
6288 * gdbarch.c: Regenerated.
6289 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6290
7a5a839f
LC
62912014-02-26 Ludovic Courtès <ludo@gnu.org>
6292
6293 * guile/scm-value.c (gdbscm_history_append_x): New function.
6294 (value_functions): Add it.
6295
31aa7e4e
JB
62962014-02-27 Joel Brobecker <brobecker@adacore.com>
6297
6298 * dwarf2read.c (attr_value_as_address): New function.
6299 (dwarf2_find_base_address, read_call_site_scope): Use
6300 attr_value_as_address in place of DW_ADDR.
6301 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6302 the low and high addresses. Slight rework of the handling
6303 of the high pc being a constant form, and limit it to
6304 DWARF verson 4 or higher.
6305 (dwarf2_record_block_ranges): Likewise.
6306 (read_partial_die): Likewise.
6307 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6308
9b333ba3
TT
63092014-02-26 Tom Tromey <tromey@redhat.com>
6310
6311 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6312
5f6cac40
TT
63132014-02-26 Tom Tromey <tromey@redhat.com>
6314
6315 * elfread.c (elf_read_minimal_symbols): Return early if
6316 minimal symbols have already been read. Add "ei" parameter.
6317 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6318 * minsyms.c (prim_record_minimal_symbol_full): Update.
6319 * objfiles.h (struct objstats) <n_minsyms>: Move...
6320 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6321 * symmisc.c (print_objfile_statistics): Update.
6322
2750ef27
TT
63232014-02-26 Tom Tromey <tromey@redhat.com>
6324
6325 * elfread.c (elf_read_minimal_symbols): New function, from
6326 elf_symfile_read.
6327 (elf_symfile_read): Call it.
6328
34643a32
TT
63292014-02-26 Tom Tromey <tromey@redhat.com>
6330
6331 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6332 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6333 (lookup_minimal_symbol_solib_trampoline)
6334 (lookup_minimal_symbol_by_pc_section_1)
6335 (lookup_minimal_symbol_and_objfile): Update.
6336 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6337 Don't allocate a minimal symbol if minsyms have already been read.
6338 (build_minimal_symbol_hash_tables): Update.
6339 (install_minimal_symbols): Do nothing if minsyms already read.
6340 Use the per-BFD obstack.
6341 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6342 * objfiles.c (allocate_objfile): Call
6343 terminate_minimal_symbol_table later.
6344 (have_minimal_symbols): Update.
6345 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6346 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6347 Move from struct objfile.
6348 <minsyms_read>: New field.
6349 (struct objfile) <msymbols, minimal_symbol_count,
6350 msymbol_hash, msymbol_demangled_hash>: Move.
6351 (ALL_OBJFILE_MSYMBOLS): Update.
6352 * symfile.c (read_symbols): Set minsyms_read.
6353 (reread_symbols): Update.
6354 * symmisc.c (dump_objfile, dump_msymbols): Update.
6355
2273f0ac
TT
63562014-02-26 Tom Tromey <tromey@redhat.com>
6357
6358 * minsyms.c (msymbols_sort): Remove.
6359 * minsyms.h (msymbols_sort): Remove.
6360 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6361 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6362 * elfread.c (elf_symtab_read): Don't add section offsets.
6363 * xcoffread.c (record_minimal_symbol): Don't add section offset
6364 to minimal symbol address.
6365 * somread.c (text_offset, data_offset): Remove.
6366 (som_symtab_read): Don't add section offsets to minimal symbol
6367 addresses.
6368 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6369 Don't add section offsets to minimal symbols.
6370 * coffread.c (coff_symtab_read): Don't add section offsets
6371 to minimal symbol addresses.
6372 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6373 to minimal symbol addresses.
6374 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6375 section offset to minimal symbol addresses.
6376 * mdebugread.c (parse_partial_symbols): Don't add section
6377 offset to minimal symbol addresses.
6378 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6379 offset to minimal symbol addresses.
6380
77e371c0
TT
63812014-02-26 Tom Tromey <tromey@redhat.com>
6382
6383 * ada-lang.c (ada_main_name): Update.
6384 (ada_add_standard_exceptions): Update.
6385 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6386 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6387 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6388 * auxv.c (ld_so_xfer_auxv): Update.
6389 * avr-tdep.c (avr_scan_prologue): Update.
6390 * ax-gdb.c (gen_var_ref): Update.
6391 * blockframe.c (get_pc_function_start)
6392 (find_pc_partial_function_gnu_ifunc): Update.
6393 * breakpoint.c (create_overlay_event_breakpoint)
6394 (create_longjmp_master_breakpoint)
6395 (create_std_terminate_master_breakpoint)
6396 (create_exception_master_breakpoint): Update.
6397 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6398 * c-valprint.c (c_val_print): Update.
6399 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6400 * common/agent.c (agent_look_up_symbols): Update.
6401 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6402 * dwarf2loc.c (call_site_to_target_addr): Update.
6403 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6404 * elfread.c (elf_gnu_ifunc_record_cache)
6405 (elf_gnu_ifunc_resolve_by_got): Update.
6406 * findvar.c (default_read_var_value): Update.
6407 * frame.c (inside_main_func): Update.
6408 * frv-tdep.c (frv_frame_this_id): Update.
6409 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6410 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6411 Update.
6412 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6413 (hppa_hpux_find_dummy_bpaddr): Update.
6414 * hppa-tdep.c (hppa_symbol_address): Update.
6415 * infcmd.c (until_next_command): Update.
6416 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6417 Update.
6418 * linespec.c (minsym_found, add_minsym): Update.
6419 * linux-nat.c (get_signo): Update.
6420 * linux-thread-db.c (inferior_has_bug): Update.
6421 * m32c-tdep.c (m32c_return_value)
6422 (m32c_m16c_address_to_pointer): Update.
6423 * m32r-tdep.c (m32r_frame_this_id): Update.
6424 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6425 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6426 * maint.c (maintenance_translate_address): Update.
6427 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6428 (frob_address): New function.
6429 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6430 frob_address. Rename parameter to "pc_in".
6431 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6432 addresses.
6433 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6434 Update.
6435 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6436 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6437 * objc-lang.c (find_objc_msgsend): Update.
6438 * objfiles.c (objfile_relocate1): Update.
6439 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6440 * p-valprint.c (pascal_val_print): Update.
6441 * parse.c (write_exp_msymbol): Update.
6442 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6443 (ppc_elfv2_skip_entrypoint): Update.
6444 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6445 * printcmd.c (build_address_symbolic, msym_info)
6446 (address_info): Update.
6447 * proc-service.c (ps_pglobal_lookup): Update.
6448 * psymtab.c (find_pc_sect_psymtab_closer)
6449 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6450 Change msymbol parameter to bound_minimal_symbol.
6451 * ravenscar-thread.c (get_running_thread_id): Update.
6452 * remote.c (remote_check_symbols): Update.
6453 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6454 address.
6455 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6456 * solib-dsbt.c (lm_base): Update.
6457 * solib-frv.c (lm_base, main_got): Update.
6458 * solib-irix.c (locate_base): Update.
6459 * solib-som.c (som_solib_create_inferior_hook)
6460 (link_map_start): Update.
6461 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6462 * solib-svr4.c (elf_locate_base, enable_break): Update.
6463 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6464 (flush_ea_cache): Update.
6465 * stabsread.c (define_symbol, scan_file_globals): Update.
6466 * stack.c (find_frame_funname): Update.
6467 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6468 (debug_qf_find_pc_sect_symtab): Update.
6469 * symfile.c (simple_read_overlay_table)
6470 (simple_overlay_update): Update.
6471 * symfile.h (struct quick_symbol_functions)
6472 <find_pc_sect_symtab>: Change type of msymbol to
6473 bound_minimal_symbol.
6474 * symmisc.c (dump_msymbols): Update.
6475 * symtab.c (find_pc_sect_symtab_via_partial)
6476 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6477 (search_symbols, print_msymbol_info): Update.
6478 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6479 (MSYMBOL_VALUE_ADDRESS): Redefine.
6480 (BMSYMBOL_VALUE_ADDRESS): New macro.
6481 * tracepoint.c (scope_info): Update.
6482 * tui/tui-disasm.c (tui_find_disassembly_address)
6483 (tui_get_begin_asm_address): Update.
6484 * valops.c (find_function_in_inferior): Update.
6485 * value.c (value_static_field, value_fn_field): Update.
6486
3b7344d5
TT
64872014-02-26 Tom Tromey <tromey@redhat.com>
6488
6489 * ada-lang.c (ada_update_initial_language): Update.
6490 (ada_main_name, ada_has_this_exception_support): Update.
6491 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6492 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6493 * arm-tdep.c (arm_skip_stub): Update.
6494 * auxv.c (ld_so_xfer_auxv): Update.
6495 * avr-tdep.c (avr_scan_prologue): Update.
6496 * ax-gdb.c (gen_var_ref): Update.
6497 * breakpoint.c (struct breakpoint_objfile_data)
6498 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6499 type to bound_minimal_symbol.
6500 (create_overlay_event_breakpoint)
6501 (create_longjmp_master_breakpoint)
6502 (create_std_terminate_master_breakpoint)
6503 (create_exception_master_breakpoint): Update.
6504 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6505 * c-exp.y (classify_name): Update.
6506 * coffread.c (coff_symfile_read): Update.
6507 * common/agent.c (agent_look_up_symbols): Update.
6508 * d-lang.c (d_main_name): Update.
6509 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6510 * dec-thread.c (enable_dec_thread): Update.
6511 * dwarf2loc.c (call_site_to_target_addr): Update.
6512 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6513 * eval.c (evaluate_subexp_standard): Update.
6514 * findvar.c (struct minsym_lookup_data) <result>: Change type
6515 to bound_minimal_symbol.
6516 <objfile>: Remove.
6517 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6518 * frame.c (inside_main_func): Update.
6519 * frv-tdep.c (frv_frame_this_id): Update.
6520 * gcore.c (call_target_sbrk): Update.
6521 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6522 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6523 Update.
6524 * go-lang.c (go_main_name): Update.
6525 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6526 (hppa_hpux_find_import_stub_for_addr): Update.
6527 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6528 Update. Change return type.
6529 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6530 type.
6531 * jit.c (jit_breakpoint_re_set_internal): Update.
6532 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6533 Update.
6534 * linux-nat.c (get_signo): Update.
6535 * linux-thread-db.c (inferior_has_bug): Update
6536 * m32c-tdep.c (m32c_return_value)
6537 (m32c_m16c_address_to_pointer): Update.
6538 * m32r-tdep.c (m32r_frame_this_id): Update.
6539 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6540 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6541 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6542 lookup_minimal_symbol. Change return type.
6543 (lookup_minimal_symbol): Remove.
6544 (lookup_bound_minimal_symbol): Update.
6545 (lookup_minimal_symbol_text): Change return type.
6546 (lookup_minimal_symbol_solib_trampoline): Change return type.
6547 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6548 (lookup_minimal_symbol_solib_trampoline): Change return type.
6549 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6550 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6551 (value_nsstring, find_imps): Update.
6552 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6553 * p-lang.c (pascal_main_name): Update.
6554 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6555 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6556 * proc-service.c (ps_pglobal_lookup): Update.
6557 * ravenscar-thread.c (get_running_thread_msymbol): Change
6558 return type.
6559 (has_ravenscar_runtime, get_running_thread_id): Update.
6560 * remote.c (remote_check_symbols): Update.
6561 * sol-thread.c (ps_pglobal_lookup): Update.
6562 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6563 * solib-dsbt.c (lm_base): Update.
6564 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6565 Update.
6566 * solib-irix.c (locate_base): Update.
6567 * solib-som.c (som_solib_create_inferior_hook)
6568 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6569 Update.
6570 * solib-spu.c (spu_enable_break): Update.
6571 * solib-svr4.c (elf_locate_base, enable_break): Update.
6572 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6573 (flush_ea_cache): Update.
6574 * stabsread.c (define_symbol): Update.
6575 * symfile.c (simple_read_overlay_table): Update.
6576 * symtab.c (find_pc_sect_line): Update.
6577 * tracepoint.c (scope_info): Update.
6578 * tui-disasm.c (tui_get_begin_asm_address): Update.
6579 * value.c (value_static_field): Update.
6580
40c1a007
TT
65812014-02-26 Tom Tromey <tromey@redhat.com>
6582
6583 * minsyms.c (prim_record_minimal_symbol_full): Use
6584 SET_MSYMBOL_VALUE_ADDRESS.
6585 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6586 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6587 SET_MSYMBOL_VALUE_ADDRESS.
6588 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6589 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6590
efd66ac6
TT
65912014-02-26 Tom Tromey <tromey@redhat.com>
6592
6593 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6594 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6595 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6596 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6597 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6598 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6599 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6600 * ada-lang.c (ada_main_name): Update.
6601 (ada_lookup_simple_minsym): Update.
6602 (ada_make_symbol_completion_list): Update.
6603 (ada_add_standard_exceptions): Update.
6604 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6605 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6606 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6607 * arm-tdep.c (skip_prologue_function): Update.
6608 (arm_skip_stack_protector, arm_skip_stub): Update.
6609 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6610 (arm_wince_skip_main_prologue): Update.
6611 * auxv.c (ld_so_xfer_auxv): Update.
6612 * avr-tdep.c (avr_scan_prologue): Update.
6613 * ax-gdb.c (gen_var_ref): Update.
6614 * block.c (call_site_for_pc): Update.
6615 * blockframe.c (get_pc_function_start): Update.
6616 (find_pc_partial_function_gnu_ifunc): Update.
6617 * breakpoint.c (create_overlay_event_breakpoint): Update.
6618 (create_longjmp_master_breakpoint): Update.
6619 (create_std_terminate_master_breakpoint): Update.
6620 (create_exception_master_breakpoint): Update.
6621 (resolve_sal_pc): Update.
6622 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6623 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6624 Update.
6625 * c-valprint.c (c_val_print): Update.
6626 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6627 * coffread.c (coff_symfile_read): Update.
6628 * common/agent.c (agent_look_up_symbols): Update.
6629 * dbxread.c (find_stab_function_addr): Update.
6630 (end_psymtab): Update.
6631 * dwarf2loc.c (call_site_to_target_addr): Update.
6632 (func_verify_no_selftailcall): Update.
6633 (tailcall_dump): Update.
6634 (call_site_find_chain_1): Update.
6635 (dwarf_expr_reg_to_entry_parameter): Update.
6636 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6637 (elf_gnu_ifunc_resolve_by_got): Update.
6638 * f-valprint.c (info_common_command): Update.
6639 * findvar.c (read_var_value): Update.
6640 * frame.c (get_prev_frame_1): Update.
6641 (inside_main_func): Update.
6642 * frv-tdep.c (frv_skip_main_prologue): Update.
6643 (frv_frame_this_id): Update.
6644 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6645 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6646 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6647 (gnuv3_skip_trampoline): Update.
6648 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6649 (hppa64_hpux_in_solib_call_trampoline): Update.
6650 (hppa_hpux_skip_trampoline_code): Update.
6651 (hppa64_hpux_search_dummy_call_sequence): Update.
6652 (hppa_hpux_find_import_stub_for_addr): Update.
6653 (hppa_hpux_find_dummy_bpaddr): Update.
6654 * hppa-tdep.c (hppa_symbol_address)
6655 (hppa_lookup_stub_minimal_symbol): Update.
6656 * i386-tdep.c (i386_skip_main_prologue): Update.
6657 (i386_pe_skip_trampoline_code): Update.
6658 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6659 * infcall.c (get_function_name): Update.
6660 * infcmd.c (until_next_command): Update.
6661 * jit.c (jit_breakpoint_re_set_internal): Update.
6662 (jit_inferior_init): Update.
6663 * linespec.c (minsym_found): Update.
6664 (add_minsym): Update.
6665 * linux-fork.c (info_checkpoints_command): Update.
6666 * linux-nat.c (get_signo): Update.
6667 * linux-thread-db.c (inferior_has_bug): Update.
6668 * m32c-tdep.c (m32c_return_value): Update.
6669 (m32c_m16c_address_to_pointer): Update.
6670 (m32c_m16c_pointer_to_address): Update.
6671 * m32r-tdep.c (m32r_frame_this_id): Update.
6672 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6673 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6674 * maint.c (maintenance_translate_address): Update.
6675 * minsyms.c (add_minsym_to_hash_table): Update.
6676 (add_minsym_to_demangled_hash_table): Update.
6677 (msymbol_objfile): Update.
6678 (lookup_minimal_symbol): Update.
6679 (iterate_over_minimal_symbols): Update.
6680 (lookup_minimal_symbol_text): Update.
6681 (lookup_minimal_symbol_by_pc_name): Update.
6682 (lookup_minimal_symbol_solib_trampoline): Update.
6683 (lookup_minimal_symbol_by_pc_section_1): Update.
6684 (lookup_minimal_symbol_and_objfile): Update.
6685 (prim_record_minimal_symbol_full): Update.
6686 (compare_minimal_symbols): Update.
6687 (compact_minimal_symbols): Update.
6688 (build_minimal_symbol_hash_tables): Update.
6689 (install_minimal_symbols): Update.
6690 (terminate_minimal_symbol_table): Update.
6691 (find_solib_trampoline_target): Update.
6692 (minimal_symbol_upper_bound): Update.
6693 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6694 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6695 (mips_skip_pic_trampoline_code): Update.
6696 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6697 * objc-lang.c (selectors_info): Update.
6698 (classes_info): Update.
6699 (find_methods): Update.
6700 (find_imps): Update.
6701 (find_objc_msgsend): Update.
6702 * objfiles.c (objfile_relocate1): Update.
6703 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6704 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6705 * p-valprint.c (pascal_val_print): Update.
6706 * parse.c (write_exp_msymbol): Update.
6707 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6708 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6709 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6710 * printcmd.c (build_address_symbolic): Update.
6711 (sym_info): Update.
6712 (address_info): Update.
6713 * proc-service.c (ps_pglobal_lookup): Update.
6714 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6715 (find_pc_sect_psymtab): Update.
6716 * python/py-framefilter.c (py_print_frame): Update.
6717 * ravenscar-thread.c (get_running_thread_id): Update.
6718 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6719 Update.
6720 * remote.c (remote_check_symbols): Update.
6721 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6722 (rs6000_skip_trampoline_code): Update.
6723 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6724 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6725 * solib-dsbt.c (lm_base): Update.
6726 * solib-frv.c (lm_base): Update.
6727 (main_got): Update.
6728 * solib-irix.c (locate_base): Update.
6729 * solib-som.c (som_solib_create_inferior_hook): Update.
6730 (som_solib_desire_dynamic_linker_symbols): Update.
6731 (link_map_start): Update.
6732 * solib-spu.c (spu_enable_break): Update.
6733 (ocl_enable_break): Update.
6734 * solib-svr4.c (elf_locate_base): Update.
6735 (enable_break): Update.
6736 * spu-tdep.c (spu_get_overlay_table): Update.
6737 (spu_catch_start): Update.
6738 (flush_ea_cache): Update.
6739 * stabsread.c (define_symbol): Update.
6740 (scan_file_globals): Update.
6741 * stack.c (find_frame_funname): Update.
6742 (frame_info): Update.
6743 * symfile.c (simple_read_overlay_table): Update.
6744 (simple_overlay_update): Update.
6745 * symmisc.c (dump_msymbols): Update.
6746 * symtab.c (fixup_section): Update.
6747 (find_pc_sect_line): Update.
6748 (skip_prologue_sal): Update.
6749 (search_symbols): Update.
6750 (print_msymbol_info): Update.
6751 (rbreak_command): Update.
6752 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6753 (completion_list_objc_symbol): Update.
6754 (default_make_symbol_completion_list_break_on): Update.
6755 * tracepoint.c (scope_info): Update.
6756 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6757 (tui_get_begin_asm_address): Update.
6758 * valops.c (find_function_in_inferior): Update.
6759 * value.c (value_static_field): Update.
6760 (value_fn_field): Update.
6761
50e65b17
TT
67622014-02-26 Tom Tromey <tromey@redhat.com>
6763
6764 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6765 bound minimal symbols. Move code that knows about minsym
6766 table layout...
6767 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6768 function.
6769 * minsyms.h (minimal_symbol_upper_bound): Declare.
6770 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6771 minimal_symbol_upper_bound.
6772
1b588015
JB
67732014-02-27 Joel Brobecker <brobecker@adacore.com>
6774
6775 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6776 Use the type's name if its basic type does not have a tag.
6777
dbb9c2b1
JB
67782014-02-27 Joel Brobecker <brobecker@adacore.com>
6779
6780 * dwarf2read.c (read_subrange_type): Add comment.
6781
55426c9d
JB
67822014-02-27 Joel Brobecker <brobecker@adacore.com>
6783
6784 * dwarf2read.c (update_enumeration_type_from_children): New
6785 function, mostly extracted from process_structure_scope.
6786 (read_enumeration_type): Call update_enumeration_type_from_children.
6787 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6788 and flag_flag_enum fields.
6789
f2fce0ca
PA
67902014-02-26 Pedro Alves <palves@redhat.com>
6791
6792 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6793 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6794 to_xfer_partial method.
6795
7a44e40e
PA
67962014-02-26 Pedro Alves <palves@redhat.com>
6797
6798 * target.c (complete_target_initialization): Don't install
6799 default_xfer_partial as to_xfer_partial hook.
6800 (nomemory): Delete.
6801 (update_current_target): Don't INHERIT nor de_fault
6802 deprecated_xfer_memory. Delete de_fault macro.
6803 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6804 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6805 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6806 field.
6807
bd265cd0
PA
68082014-02-26 Pedro Alves <palves@redhat.com>
6809
6810 * go32-nat.c (my_write_child): New function.
6811 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6812 (go32_xfer_partial): New function.
6813 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6814 Instead install a to_xfer_partial hook.
6815
9d46c4e5
PA
68162014-02-26 Pedro Alves <palves@redhat.com>
6817
6818 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6819 to_xfer_partial helper. Rewrite.
6820 (procfs_xfer_partial): New function.
6821 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6822 Install a to_xfer_partial hook.
6823
a1583b1f
PA
68242014-02-26 Pedro Alves <palves@redhat.com>
6825
6826 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6827 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6828 (m32r_xfer_partial): New function.
6829 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6830 Install a to_xfer_partial hook.
6831
6df1b29f
PA
68322014-02-26 Pedro Alves <palves@redhat.com>
6833
6834 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6835 helper.
6836 (mips_xfer_partial): New function.
6837 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6838 hook. Install a to_xfer_partial hook.
6839
dc53a7ad
JB
68402014-02-26 Joel Brobecker <brobecker@adacore.com>
6841
6842 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6843 * gdbtypes.c (create_array_type_with_stride): New function,
6844 renaming create_array_type, but with an added parameter
6845 called "bit_stride".
6846 (create_array_type): Re-implement using
6847 create_array_type_with_stride.
6848 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6849 and DW_AT_bit_stride attributes.
6850
12ab52e9
PA
68512014-02-26 Pedro Alves <palves@redhat.com>
6852
6853 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6854 task-specific breakpoints.
6855
d16461ae
PA
68562014-02-25 Pedro Alves <palves@redhat.com>
6857
6858 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6859 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6860
a8b16220
SS
68612014-02-25 Stan Shebs <stan@codesourcery.com>
6862
6863 * defs.h: Annotate comments for Doxygen.
6864
b9e795ee
TT
68652014-02-25 Tom Tromey <tromey@redhat.com>
6866
6867 * target.h (target_ignore): Don't declare.
6868 * target.c (target_ignore): Remove.
6869
849c862e
JK
68702014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 PR gdb/16626
6873 * auto-load.c (auto_load_objfile_script_1): Change filename to
6874 debugfile.
6875
475109d8
JB
68762014-02-25 Joel Brobecker <brobecker@adacore.com>
6877
6878 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6879 documentation. Adjust prototype to match the target_ops
6880 to_xfer_partial method. Adjust implementation accordingly.
6881
e186c3bd
HZ
68822014-02-25 Hui Zhu <hui@codesourcery.com>
6883
6884 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6885 to_traceframe_info.
6886
6d451942
KB
68872014-02-25 Kevin Buettner <kevinb@redhat.com>
6888
041ab8b4 6889 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6890 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6891 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6892 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6893 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6894 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6895 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6896 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6897 New constants.
6898 (rl78_register_type): Use a data pointer type for SP and
6899 new pseudo registers mentioned above. Use a 16 bit integer
6900 type for all other register pairs.
6901 (rl78_register_name, rl78_g10_register_name): Update for
6902 new pseudo registers.
6903 (rl78_pseudo_register_read): Likewise.
6904 (rl78_pseudo_register_write): Likewise.
6905 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6906 to the newly added pseudo registers.
6907
eddf0bae
DE
69082014-02-24 Doug Evans <dje@google.com>
6909
6910 * value.c (record_latest_value): Fix comment.
6911 * printcmd.c (print_command_1): Remove code to handle -1 return from
6912 record_latest_value.
6913
e96027e0
PA
69142014-02-24 Pedro Alves <palves@redhat.com>
6915
6916 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6917 deprecated_xfer_memory hook.
6918 (procfs_xfer_partial): Call procfs_xfer_memory instead
6919 of the deprecated_xfer_memory target hook.
6920 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6921 helper.
6922
0837c976
YZ
69232014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6924
6925 * windows-nat.c (windows_xfer_shared_libraries): Return
6926 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6927 requested object is TARGET_OBJECT_LIBRARIES.
6928
bc113b4e
YQ
69292014-02-24 Yao Qi <yao@codesourcery.com>
6930
6931 * target.h (enum target_xfer_status)
6932 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6933 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6934 explicitly. New.
6935 * corefile.c (memory_error_message): User updated.
6936 * exec.c (section_table_read_available_memory): Likewise.
6937 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6938 * target.c (target_xfer_status_to_string): Likewise.
6939 (raw_memory_xfer_partial): Likewise.
6940 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6941 * valops.c (read_value_memory): Likewise.
6942 * exec.h: Update comments.
6943
01cb8804
YQ
69442014-02-24 Yao Qi <yao@codesourcery.com>
6945
6946 * target.c (target_xfer_status_to_string): Rename argument err
6947 to status.
6948 * target.h (target_xfer_status_to_string): Update declaration.
6949 Replace target_xfer_error_to_string with
6950 target_xfer_status_to_string in comment.
6951
93063aa6
YQ
69522014-02-24 Yao Qi <yao@codesourcery.com>
6953
6954 * mips-linux-nat.c (super_close): Update its type.
6955 (mips_linux_close): Pass 'self' to super_close.
6956
5c328c05
YQ
69572014-02-24 Yao Qi <yao@codesourcery.com>
6958
6959 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6960 * corefile.c (read_memory): Adjusted.
6961 * target.c (target_write_with_progress): Adjusted.
6962
f73023dd
YQ
69632014-02-23 Yao Qi <yao@codesourcery.com>
6964
6965 Revert two patches:
6966
6967 2013-10-25 Yao Qi <yao@codesourcery.com>
6968
6969 * remote.c (remote_traceframe_info): Return early if
6970 traceframe is not selected.
6971
6972 2013-07-19 Yao Qi <yao@codesourcery.com>
6973
6974 * target.c (update_current_target): Change the default action
6975 of 'to_traceframe_info' from tcomplain to return_zero.
6976 * target.h (struct target_ops) <to_traceframe_info>: Add more
6977 comments.
6978
5a2eb0ef
YQ
69792014-02-23 Yao Qi <yao@codesourcery.com>
6980
6981 * valops.c (read_value_memory): Rewrite it. Call
6982 target_xfer_partial in a loop.
6983 * exec.h (section_table_available_memory): Remove declaration.
6984 Move comments to ...
6985 * exec.c (section_table_available_memory): ... here. Make it
6986 static.
6987
1ee79381
YQ
69882014-02-23 Yao Qi <yao@codesourcery.com>
6989
6990 * exec.c (section_table_read_available_memory): New function.
6991 * exec.h (section_table_read_available_memory): Declare.
6992 * ctf.c (ctf_xfer_partial): Call
6993 section_table_read_available_memory.
6994 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6995
1ca49d37
YQ
69962014-02-23 Yao Qi <yao@codesourcery.com>
6997
6998 * ctf.c (ctf_xfer_partial): Move code to ...
6999 * exec.c (exec_read_partial_read_only): ... it. New function.
7000 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7001 * tracefile.c: Include "exec.h".
7002 * exec.h (exec_read_partial_read_only): Declare.
7003
a283690e
YQ
70042014-02-23 Yao Qi <yao@codesourcery.com>
7005
7006 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7007 (tfile_has_memory): Remove.
7008 (init_tfile_ops): Don't set fields to_has_all_memory and
7009 to_has_memory of tfile_ops.
7010 * tracefile.c (tracefile_has_all_memory): New function.
7011 (tracefile_has_memory): New function.
7012 (init_tracefile_ops): Initialize fields to_has_all_memory and
7013 to_has_memory of 'ops'.
7014
12e03cd0
YQ
70152014-02-23 Yao Qi <yao@codesourcery.com>
7016
7017 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7018 (ctf_thread_alive, ctf_get_trace_status): Remove.
7019 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7020 init_tracefile_ops.
7021 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7022 (tfile_has_stack, tfile_has_registers): Remove.
7023 (tfile_thread_alive): Remove.
7024 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7025 init_tracefile_ops.
7026 * tracefile.c (tracefile_has_stack): New function.
7027 (tracefile_has_registers): New function.
7028 (tracefile_thread_alive): New function.
7029 (tracefile_get_trace_status): New function.
7030 (init_tracefile_ops): New function.
7031 * tracefile.h (init_tracefile_ops): Declare.
7032
11395323
YQ
70332014-02-23 Yao Qi <yao@codesourcery.com>
7034
7035 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7036 (O_LARGEFILE): Likewise.
7037 (tfile_ops): Likewise.
7038 (TRACE_HEADER_SIZE): Likewise.
7039 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7040 (cur_data_size): Likewise.
7041 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7042 (tfile_close, tfile_files_info): Likewise.
7043 (tfile_get_trace_status): Likewise.
7044 (tfile_get_tracepoint_status): Likewise.
7045 (tfile_get_traceframe_address): Likewise.
7046 (tfile_trace_find, match_blocktype): Likewise.
7047 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7048 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7049 (tfile_get_trace_state_variable_value): Likewise.
7050 (tfile_has_all_memory, tfile_has_memory): Likewise.
7051 (tfile_has_stack, tfile_has_registers): Likewise.
7052 (tfile_thread_alive, build_traceframe_info): Likewise.
7053 (tfile_traceframe_info, init_tfile_ops): Likewise.
7054 (_initialize_tracepoint): Don't call init_tfile_ops
7055 and add_target_with_completer.
7056 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7057 exec.h, completer.h and filenames.h.
7058 (_initialize_tracefile_tfile): New function.
7059
7951c4eb
YQ
70602014-02-23 Yao Qi <yao@codesourcery.com>
7061
7062 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7063 tracefile-tfile.o.
7064 (HFILES_NO_SRCDIR): Add tracefile.h.
7065 * ctf.c: Include "tracefile.h".
7066 * tracefile.h: New file.
7067 * tracefile.c: New file
7068 * tracefile-tfile.c: New file.
7069 * tracepoint.c: Include "tracefile.h".
7070 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7071 (stop_reason_names): Add const.
7072 (trace_file_writer_xfree): Move it to tracefile.c.
7073 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7074 (trace_save_ctf): Likewise.
7075 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7076 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7077 (tfile_write_header, tfile_write_regblock_type): Likewise.
7078 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7079 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7080 (tfile_write_raw_data, tfile_end): Likewise.
7081 (tfile_trace_file_writer_new): Likewise.
7082 (free_uploaded_tp): Make it extern.
7083 (free_uploaded_tsv): Make it extern.
7084 (_initialize_tracepoint): Move code to register command 'tsave'
7085 to tracefile.c.
7086 * tracepoint.h (stop_reason_names): Declare.
7087 (struct trace_frame_write_ops): Move it to tracefile.h.
7088 (struct trace_file_write_ops): Likewise.
7089 (struct trace_file_writer): Likewise.
7090 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7091
184cd072
JK
70922014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7093
7094 PR gdb/16594
7095 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7096 process name.
7097 (get_cores_used_by_process): New parameter num_cores, use it.
7098 (linux_xfer_osdata_processes): Pass num_cores to it.
7099 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7100 process name.
7101
c63528fc
AK
71022014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7103
7104 * target.c (memory_xfer_partial): Fix length arg in call to
7105 breakpoint_xfer_memory.
7106
d7b30f67
SDJ
71072014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7108
7109 PR tdep/16397
7110 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7111 number comes after the + or - signs. Adjust length of register
7112 name to be extracted.
7113
8838afaf
TT
71142014-02-20 Tom Tromey <tromey@redhat.com>
7115
7116 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7117 (ada_varobj_ops): Mark "extern".
7118
05227d14
TT
71192014-02-20 Tom Tromey <tromey@redhat.com>
7120
7121 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7122
1254eefc
DE
71232014-02-20 Doug Evans <xdje42@gmail.com>
7124
7125 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7126 All callers updated.
7127 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7128 All callers updated.
7129 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7130 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7131
adde2bff
DE
71322014-02-20 lin zuojian <manjian2006@gmail.com>
7133 Joel Brobecker <brobecker@adacore.com>
7134 Doug Evans <xdje42@gmail.com>
7135
7136 PR symtab/16581
7137 * dwarf2read.c (struct die_info): New member in_process.
7138 (reset_die_in_process): New function.
7139 (process_die): Set it at the start, reset when returning.
7140 (inherit_abstract_dies): Only call process_die if origin_child_die
7141 not already being processed.
7142
3be75f87
JB
71432014-02-20 Joel Brobecker <brobecker@adacore.com>
7144
7145 * windows-nat.c (handle_unload_dll): Add function documentation.
7146 (do_initial_windows_stuff): Add comment explaining why we wait
7147 until after inferior initialization has finished before
7148 processing all DLLs.
7149
47f7ffdb
JB
71502014-02-20 Joel Brobecker <brobecker@adacore.com>
7151
7152 * windows-nat.c (get_module_name): Delete.
7153 (windows_get_exec_module_filename): New function, mostly
7154 inspired from get_module_name.
7155 (windows_pid_to_exec_file): Replace call to get_module_name
7156 by call to windows_get_exec_module_filename.
7157
1cd9feab
JB
71582014-02-20 Joel Brobecker <brobecker@adacore.com>
7159
7160 * windows-nat.c (handle_load_dll): Rewrite this function's
7161 introductory comment. Remove code using get_module_name
7162 to get the DLL's name.
7163
ea39ad35
JB
71642014-02-20 Joel Brobecker <brobecker@adacore.com>
7165
7166 * windows-nat.c (get_windows_debug_event): Ignore
7167 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7168 if windows_initialization_done == 0.
7169 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7170 Adjust implementation to always load all DLLs.
7171 (do_initial_windows_stuff): Replace call to
7172 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7173
95060284
JB
71742014-02-20 Joel Brobecker <brobecker@adacore.com>
7175
7176 * windows-nat.c (_initialize_windows_nat): Deprecate the
7177 "dll-symbols" command. Turn the "add-shared-symbol-files"
7178 and "assf" aliases into commands, and deprecate them as well.
7179 * NEWS: Add entry explaining that "dll-symbols" and its two
7180 aliases are now deprecated.
7181
8d4fdb12
JB
71822014-02-20 Joel Brobecker <brobecker@adacore.com>
7183
7184 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7185 new-line in debug string. Remove trailing spaces.
7186
1b281443
SS
71872014-02-19 Stan Shebs <stan@codesourcery.com>
7188
7189 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7190
f7bd0f78
SC
71912014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7192
7193 * NEWS: Add entry for the new feature
7194 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7195 and class values.
7196
399ebc3d
SS
71972014-02-19 Stan Shebs <stan@codesourcery.com>
7198
7199 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7200
c658158d
PA
72012014-02-19 Pedro Alves <palves@redhat.com>
7202
7203 * common/ptid.h (struct ptid): Mention that process_stratum
7204 targets should prefer ptid.lwp.
7205
ba348170
PA
72062014-02-19 Pedro Alves <palves@redhat.com>
7207
7208 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7209 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7210 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7211 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7212 store remote thread ids rather than ptid.tid.
7213 (_initialize_remote): Adjust.
7214
ac01945b
TT
72152014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * target.c (target_get_unwinder): Rewrite.
7218 (target_get_tailcall_unwinder): Rewrite.
7219 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7220 (record_btrace_to_get_tailcall_unwinder): New function.
7221 (init_record_btrace_ops): Update.
7222 * target.h (struct target_ops) <to_get_unwinder,
7223 to_get_tailcall_unwinder>: Now function pointers. Use
7224 TARGET_DEFAULT_RETURN.
7225
8476dc92
TT
72262014-02-19 Tom Tromey <tromey@redhat.com>
7227
7228 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7229 argument.
7230 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7231
c0eca49f
TT
72322014-02-19 Tom Tromey <tromey@redhat.com>
7233
7234 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7235 directly.
7236 * target-delegates.c: Rebuild.
7237 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7238 TARGET_DEFAULT_FUNC.
7239 * target.c (default_target_decr_pc_after_break): Rename from
7240 forward_target_decr_pc_after_break. Simplify.
7241 (target_decr_pc_after_break): Rely on delegation.
7242
596b6b39
TT
72432014-02-19 Tom Tromey <tromey@redhat.com>
7244
7245 * target.c (update_current_target): Do not INHERIT to_doc or
7246 to_magic. Do not de_fault to_open or to_close.
7247
b427c1bc
TT
72482014-02-19 Tom Tromey <tromey@redhat.com>
7249
7250 * gcore.h (objfile_find_memory_regions): Declare.
7251 * gcore.c (objfile_find_memory_regions): No longer static. Add
7252 "self" argument.
7253 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7254 * exec.c: Include gcore.h.
7255 (exec_set_find_memory_regions): Remove.
7256 (exec_find_memory_regions): Remove.
7257 (exec_do_find_memory_regions): Remove.
7258 (init_exec_ops): Update.
7259 * defs.h (exec_set_find_memory_regions): Remove.
7260
9b144037
TT
72612014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.h (struct target_ops) <to_extra_thread_info,
7265 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7266 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7267 not 0, in TARGET_DEFAULT_RETURN.
7268
555bbdeb
TT
72692014-02-19 Tom Tromey <tromey@redhat.com>
7270
7271 * target.c (complete_target_initialization): Remove casts. Use
7272 return_zero_has_execution.
7273 (return_zero): Add "ignore" argument.
7274 (return_zero_has_execution): New function.
7275 (init_dummy_target): Remove casts. Use
7276 return_zero_has_execution.
7277
be4ddd36
TT
72782014-02-19 Tom Tromey <tromey@redhat.com>
7279
7280 * target.c (update_current_target): Update comments. Do not
7281 INHERIT to_stratum.
7282
2117c711
TT
72832014-02-19 Tom Tromey <tromey@redhat.com>
7284
7285 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7286 needed.
7287 * corelow.c (core_read_description): Delegate when needed.
7288 * remote.c (remote_read_description): Delegate when needed.
7289 * target-delegates.c: Rebuild.
7290 * target.c (target_read_description): Rewrite.
7291 * target.h (struct target_ops) <to_read_description>: Update
7292 comment. Use TARGET_DEFAULT_RETURN.
7293
e88ef65c
TT
72942014-02-19 Tom Tromey <tromey@redhat.com>
7295
7296 * target-delegates.c: Rebuild.
7297 * target.c (update_current_target): Don't inherit or default
7298 to_can_run.
7299 (find_default_run_target): Check against delegate_can_run.
7300 * target.h (struct target_ops) <to_can_run>: Use
7301 TARGET_DEFAULT_RETURN.
7302
86a0854a
TT
73032014-02-19 Tom Tromey <tromey@redhat.com>
7304
7305 * target-delegates.c: Rebuild.
7306 * target.c (target_disconnect): Unconditionally delegate.
7307 * target.h (struct target_ops) <to_disconnect>: Use
7308 TARGET_DEFAULT_NORETURN.
7309
ee97f592
TT
73102014-02-19 Tom Tromey <tromey@redhat.com>
7311
7312 * record.c (record_stop): Unconditionally delegate.
7313 * target-delegates.c: Rebuild.
7314 * target.c (target_stop_recording): Unconditionally delegate.
7315 * target.h (struct target_ops) <to_stop_recording>: Use
7316 TARGET_DEFAULT_IGNORE.
7317
6dc7fcf4
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * target-delegates.c: Rebuild.
7321 * target.c (target_enable_btrace): Unconditionally delegate.
7322 * target.h (struct target_ops) <to_enable_btrace>: Use
7323 TARGET_DEFAULT_NORETURN.
7324
eb5b20d4
TT
73252014-02-19 Tom Tromey <tromey@redhat.com>
7326
7327 * target-delegates.c: Rebuild.
7328 * target.c (target_read_btrace): Unconditionally delegate.
7329 * target.h (struct target_ops) <to_read_btrace>: Use
7330 TARGET_DEFAULT_NORETURN.
7331
9ace480d
TT
73322014-02-19 Tom Tromey <tromey@redhat.com>
7333
7334 * target-delegates.c: Rebuild.
7335 * target.c (target_teardown_btrace): Unconditionally delegate.
7336 * target.h (struct target_ops) <to_teardown_btrace>: Use
7337 TARGET_DEFAULT_NORETURN.
7338
8dc292d3
TT
73392014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * target-delegates.c: Rebuild.
7342 * target.c (target_disable_btrace): Unconditionally delegate.
7343 * target.h (struct target_ops) <to_disable_btrace>: Use
7344 TARGET_DEFAULT_NORETURN.
7345
58a5184e
TT
73462014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target-delegates.c: Rebuild.
7349 * target.c (default_search_memory): New function.
7350 (simple_search_memory): Update comment.
7351 (target_search_memory): Unconditionally delegate.
7352 * target.h (struct target_ops) <to_search_memory>: Use
7353 TARGET_DEFAULT_FUNC.
7354
8de71aab
TT
73552014-02-19 Tom Tromey <tromey@redhat.com>
7356
7357 * auxv.c (default_auxv_parse): No longer static.
7358 (target_auxv_parse): Unconditionally delegate.
7359 * auxv.h (default_auxv_parse): Declare.
7360 * target-delegates.c: Rebuild.
7361 * target.c: Include auxv.h.
7362 * target.h (struct target_ops) <to_auxv_parse>: Use
7363 TARGET_DEFAULT_FUNC.
7364
6b2c5a57
TT
73652014-02-19 Tom Tromey <tromey@redhat.com>
7366
7367 * target-delegates.c: Rebuild.
7368 * target.c (target_memory_map): Unconditionally delegate.
7369 * target.h (struct target_ops) <to_memory_map>: Use
7370 TARGET_DEFAULT_RETURN.
7371
cbffc065
TT
73722014-02-19 Tom Tromey <tromey@redhat.com>
7373
7374 * target-delegates.c: Rebuild.
7375 * target.c (target_thread_alive): Unconditionally delegate.
7376 * target.h (struct target_ops) <to_thread_alive>: Use
7377 TARGET_DEFAULT_RETURN.
7378
f09e2107
TT
73792014-02-19 Tom Tromey <tromey@redhat.com>
7380
7381 * target-delegates.c: Rebuild.
7382 * target.c (target_save_record): Unconditionally delegate.
7383 * target.h (struct target_ops) <to_save_record>: Use
7384 TARGET_DEFAULT_NORETURN.
7385
07366925
TT
73862014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target-delegates.c: Rebuild.
7389 * target.c (target_delete_record): Unconditionally delegate.
7390 * target.h (struct target_ops) <to_delete_record>: Use
7391 TARGET_DEFAULT_NORETURN.
7392
dd2e9d25
TT
73932014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target-delegates.c: Rebuild.
7396 * target.c (target_record_is_replaying): Unconditionally
7397 delegate.
7398 * target.h (struct target_ops) <to_record_is_replaying>: Use
7399 TARGET_DEFAULT_RETURN.
7400
671e76cc
TT
74012014-02-19 Tom Tromey <tromey@redhat.com>
7402
7403 * target-delegates.c: Rebuild.
7404 * target.c (target_goto_record_begin): Unconditionally delegate.
7405 * target.h (struct target_ops) <to_goto_record_begin>: Use
7406 TARGET_DEFAULT_NORETURN.
7407
e9179bb3
TT
74082014-02-19 Tom Tromey <tromey@redhat.com>
7409
7410 * target-delegates.c: Rebuild.
7411 * target.c (target_goto_record_end): Unconditionally delegate.
7412 * target.h (struct target_ops) <to_goto_record_end>: Use
7413 TARGET_DEFAULT_NORETURN.
7414
05969c84
TT
74152014-02-19 Tom Tromey <tromey@redhat.com>
7416
7417 * target-delegates.c: Rebuild.
7418 * target.c (target_goto_record): Unconditionally delegate.
7419 * target.h (struct target_ops) <to_goto_record>: Use
7420 TARGET_DEFAULT_NORETURN.
7421
3679abfa
TT
74222014-02-19 Tom Tromey <tromey@redhat.com>
7423
7424 * target-delegates.c: Rebuild.
7425 * target.c (target_insn_history): Unconditionally delegate.
7426 * target.h (struct target_ops) <to_insn_history>: Use
7427 TARGET_DEFAULT_NORETURN.
7428
8444ab58
TT
74292014-02-19 Tom Tromey <tromey@redhat.com>
7430
7431 * target-delegates.c: Rebuild.
7432 * target.c (target_insn_history_from): Unconditionally delegate.
7433 * target.h (struct target_ops) <to_insn_history_from>: Use
7434 TARGET_DEFAULT_NORETURN.
7435
c29302cc
TT
74362014-02-19 Tom Tromey <tromey@redhat.com>
7437
7438 * target-delegates.c: Rebuild.
7439 * target.c (target_insn_history_range): Unconditionally delegate.
7440 * target.h (struct target_ops) <to_insn_history_range>: Use
7441 TARGET_DEFAULT_NORETURN.
7442
170049d4
TT
74432014-02-19 Tom Tromey <tromey@redhat.com>
7444
7445 * target-delegates.c: Rebuild.
7446 * target.c (target_call_history): Unconditionally delegate.
7447 * target.h (struct target_ops) <to_call_history>: Use
7448 TARGET_DEFAULT_NORETURN.
7449
16fc27d6
TT
74502014-02-19 Tom Tromey <tromey@redhat.com>
7451
7452 * target-delegates.c: Rebuild.
7453 * target.c (target_call_history_from): Unconditionally delegate.
7454 * target.h (struct target_ops) <to_call_history_from>: Use
7455 TARGET_DEFAULT_NORETURN.
7456
115d9817
TT
74572014-02-19 Tom Tromey <tromey@redhat.com>
7458
7459 * target-delegates.c: Rebuild.
7460 * target.c (target_call_history_range): Unconditionally delegate.
7461 * target.h (struct target_ops) <to_call_history_range>: Use
7462 TARGET_DEFAULT_NORETURN.
7463
eb276a6b
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (target_verify_memory): Unconditionally delegate.
7468 * target.h (struct target_ops) <to_verify_memory>: Use
7469 TARGET_DEFAULT_NORETURN.
7470
9e538d0d
TT
74712014-02-19 Tom Tromey <tromey@redhat.com>
7472
7473 * target-delegates.c: Rebuild.
7474 * target.c (target_core_of_thread): Unconditionally delegate.
7475 * target.h (struct target_ops) <to_core_of_thread>: Use
7476 TARGET_DEFAULT_RETURN.
7477
f6fb2925
TT
74782014-02-19 Tom Tromey <tromey@redhat.com>
7479
7480 * target-delegates.c: Rebuild.
7481 * target.c (target_flash_done): Unconditionally delegate.
7482 * target.h (struct target_ops) <to_flash_done>: Use
7483 TARGET_DEFAULT_NORETURN.
7484
e8a6c6ac
TT
74852014-02-19 Tom Tromey <tromey@redhat.com>
7486
7487 * target-delegates.c: Rebuild.
7488 * target.c (target_flash_erase): Unconditionally delegate.
7489 * target.h (struct target_ops) <to_flash_erase>: Use
7490 TARGET_DEFAULT_NORETURN.
7491
7e35c012
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_get_section_table): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_get_section_table>: Use
7497 TARGET_DEFAULT_RETURN.
7498
770234d3
TT
74992014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * target-delegates.c: Rebuild.
7502 * target.c (target_pid_to_str): Unconditionally delegate.
7503 (init_dummy_target): Don't initialize to_pid_to_str.
7504 (default_pid_to_str): Rename from dummy_pid_to_str.
7505 * target.h (struct target_ops) <to_pid_to_str>: Use
7506 TARGET_DEFAULT_FUNC.
7507
09b0dc2b
TT
75082014-02-19 Tom Tromey <tromey@redhat.com>
7509
7510 * target-delegates.c: Rebuild.
7511 * target.c (target_find_new_threads): Unconditionally delegate.
7512 * target.h (struct target_ops) <to_find_new_threads>: Use
7513 TARGET_DEFAULT_RETURN.
7514
7d4f8efa
TT
75152014-02-19 Tom Tromey <tromey@redhat.com>
7516
7517 * target-delegates.c: Rebuild.
7518 * target.c (target_program_signals): Unconditionally delegate.
7519 * target.h (struct target_ops) <to_program_signals>: Use
7520 TARGET_DEFAULT_IGNORE.
7521
035cad7f
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target-delegates.c: Rebuild.
7525 * target.c (target_pass_signals): Unconditionally delegate.
7526 * target.h (struct target_ops) <to_pass_signals>: Use
7527 TARGET_DEFAULT_IGNORE.
7528
8d657035
TT
75292014-02-19 Tom Tromey <tromey@redhat.com>
7530
7531 * target-delegates.c: Rebuild.
7532 * target.c (default_mourn_inferior): New function.
7533 (target_mourn_inferior): Unconditionally delegate.
7534 * target.h (struct target_ops) <to_mourn_inferior>: Use
7535 TARGET_DEFAULT_FUNC.
7536
098dba18
TT
75372014-02-19 Tom Tromey <tromey@redhat.com>
7538
7539 * target-delegates.c: Rebuild.
7540 * target.c (default_follow_fork): New function.
7541 (target_follow_fork): Unconditionally delegate.
7542 * target.h (struct target_ops) <to_follow_fork>: Use
7543 TARGET_DEFAULT_FUNC.
7544
423a4807
TT
75452014-02-19 Tom Tromey <tromey@redhat.com>
7546
7547 * target-delegates.c: Rebuild.
7548 * target.c (target_kill): Unconditionally delegate.
7549 * target.h (struct target_ops) <to_kill>: Use
7550 TARGET_DEFAULT_NORETURN.
7551
6c7e5e5c
TT
75522014-02-19 Tom Tromey <tromey@redhat.com>
7553
7554 * target-delegates.c: Rebuild.
7555 * target.c (target_masked_watch_num_registers): Unconditionally
7556 delegate.
7557 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7558 Use TARGET_DEFAULT_RETURN.
7559
8b1c364c
TT
75602014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * target-delegates.c: Rebuild.
7563 * target.c (target_remove_mask_watchpoint): Unconditionally
7564 delegate.
7565 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7566 TARGET_DEFAULT_RETURN.
7567
cd4ae029
TT
75682014-02-19 Tom Tromey <tromey@redhat.com>
7569
7570 * target-delegates.c: Rebuild.
7571 * target.c (target_insert_mask_watchpoint): Unconditionally
7572 delegate.
7573 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7574 TARGET_DEFAULT_RETURN.
7575
a134316b
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.c (target_ranged_break_num_registers): Unconditionally
7580 delegate.
7581 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7582 Use TARGET_DEFAULT_RETURN.
7583
ad5989bd
TT
75842014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target-delegates.c: Rebuild.
7587 * target.c (target_fetch_registers): Unconditionally delegate.
7588 * target.h (struct target_ops) <to_fetch_registers>: Use
7589 TARGET_DEFAULT_NORETURN.
7590
46ee7e8d
TT
75912014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target-delegates.c: Rebuild.
7594 * target.c (update_current_target): Don't inherit or default
7595 to_stop.
7596 * target.h (struct target_ops) <to_stop>: Use
7597 TARGET_DEFAULT_IGNORE.
7598
843f59ed
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (update_current_target): Don't inherit or default
7603 to_can_run_breakpoint_commands.
7604 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7605 Use TARGET_DEFAULT_RETURN.
7606
ccfde2a0
TT
76072014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (update_current_target): Don't inherit or default
7611 to_supports_evaluation_of_breakpoint_conditions.
7612 * target.h (struct target_ops)
7613 <to_supports_evaluation_of_breakpoint_conditions>: Use
7614 TARGET_DEFAULT_RETURN.
7615
0de91722
TT
76162014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target-delegates.c: Rebuild.
7619 * target.c (update_current_target): Don't inherit or default
7620 to_augmented_libraries_svr4_read.
7621 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7622 Use TARGET_DEFAULT_RETURN.
7623
9a7d8b48
TT
76242014-02-19 Tom Tromey <tromey@redhat.com>
7625
7626 * target-delegates.c: Rebuild.
7627 * target.c (update_current_target): Don't inherit or default
7628 to_can_use_agent.
7629 * target.h (struct target_ops) <to_can_use_agent>: Use
7630 TARGET_DEFAULT_RETURN.
7631
d9db5b21
TT
76322014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target-delegates.c: Rebuild.
7635 * target.c (update_current_target): Don't inherit or default
7636 to_use_agent.
7637 * target.h (struct target_ops) <to_use_agent>: Use
7638 TARGET_DEFAULT_NORETURN.
7639
92155eeb
TT
76402014-02-19 Tom Tromey <tromey@redhat.com>
7641
7642 * target-delegates.c: Rebuild.
7643 * target.c (update_current_target): Don't inherit or default
7644 to_traceframe_info.
7645 (return_null): Remove.
7646 * target.h (struct target_ops) <to_traceframe_info>: Use
7647 TARGET_DEFAULT_RETURN.
7648
d6522a22
TT
76492014-02-19 Tom Tromey <tromey@redhat.com>
7650
7651 * target-delegates.c: Rebuild.
7652 * target.c (update_current_target): Don't inherit or default
7653 to_static_tracepoint_markers_by_strid.
7654 * target.h (struct target_ops)
7655 <to_static_tracepoint_markers_by_strid>: Use
7656 TARGET_DEFAULT_NORETURN.
7657
4c3e4425
TT
76582014-02-19 Tom Tromey <tromey@redhat.com>
7659
7660 * target-delegates.c: Rebuild.
7661 * target.c (update_current_target): Don't inherit or default
7662 to_static_tracepoint_marker_at.
7663 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7664 Use TARGET_DEFAULT_RETURN.
7665
dcd6917f
TT
76662014-02-19 Tom Tromey <tromey@redhat.com>
7667
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7670 to_set_permissions.
7671 * target.h (struct target_ops) <to_set_permissions>: Use
7672 TARGET_DEFAULT_IGNORE.
7673
22bcceee
TT
76742014-02-19 Tom Tromey <tromey@redhat.com>
7675
7676 * target-delegates.c: Rebuild.
7677 * target.c (update_current_target): Don't inherit or default
7678 to_get_tib_address.
7679 * target.h (struct target_ops) <to_get_tib_address>: Use
7680 TARGET_DEFAULT_NORETURN.
7681
8586ccaa
TT
76822014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target-delegates.c: Rebuild.
7685 * target.c (update_current_target): Don't inherit or default
7686 to_set_trace_notes.
7687 * target.h (struct target_ops) <to_set_trace_notes>: Use
7688 TARGET_DEFAULT_RETURN.
7689
91df8d1d
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (update_current_target): Don't initialize
7694 to_set_trace_buffer_size.
7695 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7696 TARGET_DEFAULT_IGNORE.
7697
8d526939
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7702 to_set_circular_trace_buffer.
7703 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7704 TARGET_DEFAULT_IGNORE.
7705
0bcfeddf
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_set_disconnected_tracing.
7711 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7712 TARGET_DEFAULT_IGNORE.
7713
9249843f
TT
77142014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_get_min_fast_tracepoint_insn_len.
7719 (return_minus_one): Remove.
7720 * target.h (struct target_ops)
7721 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7722
ace92e7d
TT
77232014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target-delegates.c: Rebuild.
7726 * target.c (update_current_target): Don't inherit or default
7727 to_get_raw_trace_data.
7728 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7729 TARGET_DEFAULT_NORETURN.
7730
08120467
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target-delegates.c: Rebuild.
7734 * target.c (update_current_target): Don't inherit or default
7735 to_upload_trace_state_variables.
7736 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7737 Use TARGET_DEFAULT_RETURN.
7738
1e949b00
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target-delegates.c: Rebuild.
7742 * target.c (update_current_target): Don't inherit or default
7743 to_upload_tracepoints.
7744 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7745 TARGET_DEFAULT_RETURN.
7746
a2e6c147
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7751 to_save_trace_data.
7752 * target.h (struct target_ops) <to_save_trace_data>: Use
7753 TARGET_DEFAULT_NORETURN.
7754
959bcd0b
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target-delegates.c: Rebuild.
7758 * target.c (update_current_target): Don't inherit or default
7759 to_get_trace_state_variable_value.
7760 * target.h (struct target_ops)
7761 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7762
afc94e66
TT
77632014-02-19 Tom Tromey <tromey@redhat.com>
7764
7765 * target-delegates.c: Rebuild.
7766 * target.c (update_current_target): Don't inherit or default
7767 to_trace_find.
7768 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7769
e51c07ea
TT
77702014-02-19 Tom Tromey <tromey@redhat.com>
7771
7772 * target-delegates.c: Rebuild.
7773 * target.c (update_current_target): Don't inherit or default
7774 to_trace_stop.
7775 * target.h (struct target_ops) <to_trace_stop>: Use
7776 TARGET_DEFAULT_NORETURN.
7777
6fea14cd
TT
77782014-02-19 Tom Tromey <tromey@redhat.com>
7779
7780 * target-delegates.c: Rebuild.
7781 * target.c (update_current_target): Don't inherit or default
7782 to_get_tracepoint_status.
7783 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7784 TARGET_DEFAULT_NORETURN.
7785
4072d4ff
TT
77862014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (update_current_target): Don't inherit or default
7790 to_get_trace_status.
7791 * target.h (struct target_ops) <to_get_trace_status>: Use
7792 TARGET_DEFAULT_RETURN.
7793
25da2e80
TT
77942014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (update_current_target): Don't inherit or default
7798 to_trace_start.
7799 * target.h (struct target_ops) <to_trace_start>: Use
7800 TARGET_DEFAULT_NORETURN.
7801
86dd181d
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (update_current_target): Don't inherit or default
7806 to_trace_set_readonly_regions.
7807 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7808 Use TARGET_DEFAULT_NORETURN.
7809
05c41993
TT
78102014-02-19 Tom Tromey <tromey@redhat.com>
7811
7812 * target-delegates.c: Rebuild.
7813 * target.c (update_current_target): Don't inherit or default
7814 to_disable_tracepoint.
7815 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7816 TARGET_DEFAULT_NORETURN.
7817
151f70f1
TT
78182014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (update_current_target): Don't inherit or default
7822 to_enable_tracepoint.
7823 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7824 TARGET_DEFAULT_NORETURN.
7825
94eb98b9
TT
78262014-02-19 Tom Tromey <tromey@redhat.com>
7827
7828 * target-delegates.c: Rebuild.
7829 * target.c (update_current_target): Don't inherit or default
7830 to_download_trace_state_variable.
7831 * target.h (struct target_ops) <to_download_trace_state_variable>:
7832 Use TARGET_DEFAULT_NORETURN.
7833
719acc4a
TT
78342014-02-19 Tom Tromey <tromey@redhat.com>
7835
7836 * target-delegates.c: Rebuild.
7837 * target.c (update_current_target): Don't inherit or default
7838 to_can_download_tracepoint.
7839 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7840 TARGET_DEFAULT_RETURN.
7841
9a980a22
TT
78422014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * target-delegates.c: Rebuild.
7845 * target.c (update_current_target): Don't inherit or default
7846 to_download_tracepoint.
7847 * target.h (struct target_ops) <to_download_tracepoint>: Use
7848 TARGET_DEFAULT_NORETURN.
7849
5536135b
TT
78502014-02-19 Tom Tromey <tromey@redhat.com>
7851
7852 * target-delegates.c: Rebuild.
7853 * target.c (update_current_target): Don't inherit or default
7854 to_trace_init.
7855 * target.h (struct target_ops) <to_trace_init>: Use
7856 TARGET_DEFAULT_RETURN.
7857
9409d39e
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (update_current_target): Don't inherit or default
7862 to_supports_string_tracing.
7863 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7864 TARGET_DEFAULT_RETURN.
7865
aab1b22d
TT
78662014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (update_current_target): Don't inherit or default
7870 to_supports_enable_disable_tracepoint.
7871 * target.h (struct target_ops)
7872 <to_supports_enable_disable_tracepoint>: Use
7873 TARGET_DEFAULT_RETURN.
7874
a7304748
TT
78752014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target-delegates.c: Rebuild.
7878 * target.c (update_current_target): Don't inherit or default
7879 to_supports_multi_process.
7880 * target.h (struct target_ops) <to_supports_multi_process>: Use
7881 TARGET_DEFAULT_RETURN.
7882
4229b31d
TT
78832014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_get_ada_task_ptid.
7888 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7889 TARGET_DEFAULT_FUNC.
7890
43eba180
TT
78912014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_thread_architecture.
7896 * target.h (struct target_ops) <to_thread_architecture>: Use
7897 TARGET_DEFAULT_FUNC.
7898
fe31bf5b
TT
78992014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_execution_direction.
7904 * target.h (struct target_ops) <to_execution_direction>: Use
7905 TARGET_DEFAULT_FUNC.
7906
53e1cfc7
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_can_execute_reverse.
7912 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7913 TARGET_DEFAULT_RETURN.
7914 (target_can_execute_reverse): Unconditionally delegate.
7915
9bb9d61d
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_goto_bookmark.
7921 (dummy_goto_bookmark): Remove.
7922 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7923 * target.h (struct target_ops) <to_goto_bookmark>: Use
7924 TARGET_DEFAULT_NORETURN.
7925
3dbafbbb
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target-delegates.c: Rebuild.
7929 * target.c (update_current_target): Don't inherit or default
7930 to_get_bookmark.
7931 (dummy_get_bookmark): Remove.
7932 (init_dummy_target): Don't inherit or default to_get_bookmark.
7933 * target.h (struct target_ops) <to_get_bookmark>: Use
7934 TARGET_DEFAULT_NORETURN
7935
16f796b1
TT
79362014-02-19 Tom Tromey <tromey@redhat.com>
7937
7938 * target-delegates.c: Rebuild.
7939 * target.c (update_current_target): Don't inherit or default
7940 to_make_corefile_notes.
7941 (init_dummy_target): Don't initialize to_make_corefile_notes.
7942 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7943 TARGET_DEFAULT_FUNC.
7944
0b5a2719
TT
79452014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_find_memory_regions.
7950 (init_dummy_target): Don't initialize to_find_memory_regions.
7951 * target.h (struct target_ops) <to_find_memory_regions>: Use
7952 TARGET_DEFAULT_FUNC.
7953
d9cb0195
TT
79542014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * target-delegates.c: Rebuild.
7957 * target.c (update_current_target): Don't inherit or default
7958 to_log_command.
7959 * target.h (struct target_ops) <to_log_command>: Use
7960 TARGET_DEFAULT_IGNORE.
7961 (target_log_command): Unconditionally delegate.
7962
830ca330
TT
79632014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7967 to_pid_to_exec_file.
7968 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7969 TARGET_DEFAULT_RETURN.
7970
825828fc
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_thread_name.
7976 (target_thread_name): Unconditionally delegate.
7977 * target.h (struct target_ops) <to_thread_name>: Use
7978 TARGET_DEFAULT_RETURN.
7979
4a7e6dda
TT
79802014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (update_current_target): Don't inherit or default
7984 to_extra_thread_info.
7985 * target.h (struct target_ops) <to_extra_thread_info>: Use
7986 TARGET_DEFAULT_RETURN.
7987
0db88c1d
TT
79882014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_has_exited.
7993 * target.h (struct target_ops) <to_has_exited>: Use
7994 TARGET_DEFAULT_RETURN..
7995
6a9fa051
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_set_syscall_catchpoint.
8001 (return_one): Remove.
8002 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8003 TARGET_DEFAULT_RETURN.
8004
62f64d7a
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (update_current_target): Don't inherit or default
8009 to_insert_exec_catchpoint.
8010 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8011 TARGET_DEFAULT_RETURN.
8012
cda0f38c
TT
80132014-01-08 Tom Tromey <tromey@redhat.com>
8014
8015 * target-delegates.c: Rebuild.
8016 * target.c (update_current_target): Don't inherit or default
8017 to_insert_exec_catchpoint.
8018 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8019 TARGET_DEFAULT_RETURN.
8020
95c3375e
TT
80212014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_remove_vfork_catchpoint.
8026 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8027 TARGET_DEFAULT_RETURN.
8028
7e18a8dc
TT
80292014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_insert_vfork_catchpoint.
8034 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8035 TARGET_DEFAULT_RETURN.
8036
e1a21fb7
TT
80372014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target-delegates.c: Rebuild.
8040 * target.c (update_current_target): Don't inherit or default
8041 to_remove_fork_catchpoint.
8042 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8043 TARGET_DEFAULT_RETURN.
8044
5958ebeb
TT
80452014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (update_current_target): Don't inherit or default
8049 to_insert_fork_catchpoint.
8050 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8051 TARGET_DEFAULT_RETURN.
8052
340ba4bf
TT
80532014-02-19 Tom Tromey <tromey@redhat.com>
8054
8055 * target-delegates.c: Rebuild.
8056 * target.c (update_current_target): Don't inherit or default
8057 to_post_startup_inferior.
8058 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8059 TARGET_DEFAULT_IGNORE.
8060
7634da87
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (update_current_target): Don't inherit or default
8065 to_load.
8066 * target.h (struct target_ops) <to_load>: Use
8067 TARGET_DEFAULT_NORETURN.
8068
e19e919f
TT
80692014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * target-delegates.c: Rebuild.
8072 * target.c (update_current_target): Don't inherit or default
8073 to_terminal_info.
8074 * target.h (struct target_ops) <to_terminal_info>: Use
8075 TARGET_DEFAULT_FUNC.
8076
c6ea8f79
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't inherit or default
8081 to_terminal_save_ours.
8082 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8083 TARGET_DEFAULT_IGNORE.
8084
e4a733f1
TT
80852014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_terminal_ours.
8090 * target.h (struct target_ops) <to_terminal_ours>: Use
8091 TARGET_DEFAULT_IGNORE.
8092
74fcbef9
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_terminal_ours_for_output.
8098 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8099 TARGET_DEFAULT_IGNORE.
8100
ddeaacc9
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_terminal_inferior.
8106 * target.h (struct target_ops) <to_terminal_inferior>: Use
8107 TARGET_DEFAULT_IGNORE.
8108
0343661d
TT
81092014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_terminal_init.
8114 * target.h (struct target_ops) <to_terminal_init>: Use
8115 TARGET_DEFAULT_IGNORE.
8116
77cdffe9
TT
81172014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_can_accel_watchpoint_condition.
8122 * target.h (struct target_ops)
8123 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8124
d03655e4
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_region_ok_for_hw_watchpoint.
8130 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8131 Use TARGET_DEFAULT_FUNC.
8132
65f160a9
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_watchpoint_addr_within_range.
8138 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8139 Use TARGET_DEFAULT_FUNC.
8140
61dd109f
TT
81412014-02-19 Tom Tromey <tromey@redhat.com>
8142
8143 * target-delegates.c: Rebuild.
8144 * target.c (update_current_target): Don't inherit or default
8145 to_remove_watchpoint.
8146 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8147 TARGET_DEFAULT_NORETURN.
8148
016facd4
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (update_current_target): Don't inherit or default
8153 to_insert_watchpoint.
8154 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8155 TARGET_DEFAULT_RETURN.
8156
418dabac
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8161 to_remove_hw_breakpoint.
8162 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8163 TARGET_DEFAULT_RETURN.
8164
61b371f9
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8169 to_insert_hw_breakpoint.
8170 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8171 TARGET_DEFAULT_RETURN.
8172
52b51d06
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_can_use_hw_breakpoint.
8178 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8179 TARGET_DEFAULT_RETURN.
8180
f86e59b2
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8185 to_files_info.
8186 * target.h (struct target_ops) <to_files_info>: Use
8187 TARGET_DEFAULT_IGNORE.
8188
6c628163
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target-delegates.c: Rebuild.
8192 * target.c (update_current_target): Don't inherit or default
8193 to_store.
8194 * target.h (struct target_ops) <to_store>: Use
8195 TARGET_DEFAULT_NORETURN.
8196
bebd3233
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target-delegates.c: Rebuild.
8200 * target.c (update_current_target): Don't inherit or default
8201 to_post_attach.
8202 * target.h (struct target_ops) <to_post_attach>: Use
8203 TARGET_DEFAULT_IGNORE.
8204
a53f3625
TT
82052014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (update_current_target): Don't inherit or default
8209 to_rcmd.
8210 (default_rcmd): New function.
8211 (do_monitor_command): Unconditionally delegate.
8212 * target.h (struct target_ops) <to_rmcd>: Use
8213 TARGET_DEFAULT_FUNC.
8214
e9a29200
TT
82152014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (init_dummy_target): Don't initialize to_attach.
8219 (target_attach): Unconditionally delegate.
8220 * target.h (struct target_ops) <to_attach>: Use
8221 TARGET_DEFAULT_FUNC.
8222
09da0d0a
TT
82232014-02-19 Tom Tromey <tromey@redhat.com>
8224
8225 * target-delegates.c: Rebuild.
8226 * target.c (target_detach): Unconditionally delegate.
8227 (init_dummy_target): Don't initialize to_detach.
8228 * target.h (struct target_ops) <to_detach>: Use
8229 TARGET_DEFAULT_IGNORE.
8230
5436ff03
TT
82312014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8234 Add argument.
8235 (target_augmented_libraries_svr4_read): Add argument.
8236 * target.c (update_current_target): Update.
8237 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8238 argument.
8239
f0d960ea
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target.h (struct target_ops) <to_call_history_range>: Add
8243 argument.
8244 * target.c (target_call_history_range): Add argument.
8245 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8246 argument.
8247 (record_btrace_call_history_from): Update.
8248
ec0aea04
TT
82492014-02-19 Tom Tromey <tromey@redhat.com>
8250
8251 * target.h (struct target_ops) <to_call_history_from>: Add
8252 argument.
8253 * target.c (target_call_history_from): Add argument.
8254 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8255 argument.
8256
5df2fcba
TT
82572014-02-19 Tom Tromey <tromey@redhat.com>
8258
8259 * target.h (struct target_ops) <to_call_history>: Add argument.
8260 * target.c (target_call_history): Add argument.
8261 * record-btrace.c (record_btrace_call_history): Add 'self'
8262 argument.
8263
4e99c6b7
TT
82642014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target.h (struct target_ops) <to_insn_history_range>: Add
8267 argument.
8268 * target.c (target_insn_history_range): Add argument.
8269 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8270 argument.
8271 (record_btrace_insn_history_from): Update.
8272
9abc3ff3
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target.h (struct target_ops) <to_insn_history_from>: Add
8276 argument.
8277 * target.c (target_insn_history_from): Add argument.
8278 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8279 argument.
8280
7a6c5609
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target.h (struct target_ops) <to_insn_history>: Add argument.
8284 * target.c (target_insn_history): Add argument.
8285 * record-btrace.c (record_btrace_insn_history): Add 'self'
8286 argument.
8287
606183ac
TT
82882014-02-19 Tom Tromey <tromey@redhat.com>
8289
8290 * target.h (struct target_ops) <to_goto_record>: Add argument.
8291 * target.c (target_goto_record): Add argument.
8292 * record-full.c (record_full_goto): Add 'self' argument.
8293 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8294
307a1b91
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8298 * target.c (target_goto_record_end): Add argument.
8299 * record-full.c (record_full_goto_end): Add 'self' argument.
8300 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8301
08475817
TT
83022014-02-19 Tom Tromey <tromey@redhat.com>
8303
8304 * target.h (struct target_ops) <to_goto_record_begin>: Add
8305 argument.
8306 * target.c (target_goto_record_begin): Add argument.
8307 * record-full.c (record_full_goto_begin): Add 'self' argument.
8308 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8309 argument.
8310
1c63c994
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target.h (struct target_ops) <to_record_is_replaying>: Add
8314 argument.
8315 * target.c (target_record_is_replaying): Add argument.
8316 * record-full.c (record_full_is_replaying): Add 'self' argument.
8317 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8318 argument.
8319 (record_btrace_xfer_partial, record_btrace_store_registers)
8320 (record_btrace_prepare_to_store, record_btrace_resume)
8321 (record_btrace_wait, record_btrace_decr_pc_after_break)
8322 (record_btrace_find_new_threads, record_btrace_thread_alive):
8323 Update.
8324
d1b55219
TT
83252014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * target.h (struct target_ops) <to_delete_record>: Add argument.
8328 * target.c (target_delete_record): Add argument.
8329 * record-full.c (record_full_delete): Add 'self' argument.
8330
1390f529
TT
83312014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target.h (struct target_ops) <to_save_record>: Add argument.
8334 * target.c (target_save_record): Add argument.
8335 * record-full.c (record_full_save): Add 'self' argument.
8336 (record_full_save): Add 'self' argument.
8337
630d6a4a
TT
83382014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target.h (struct target_ops) <to_info_record>: Add argument.
8341 * target.c (target_info_record): Add argument.
8342 * record.c (info_record_command): Add argument.
8343 * record-full.c (record_full_info): Add 'self' argument.
8344 * record-btrace.c (record_btrace_info): Add 'self' argument.
8345
c6cd7c02
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8349 * target.c (target_stop_recording): Add argument.
8350 * record.c (record_stop): Add argument.
8351 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8352 argument.
8353
39c49f83
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8357 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8358 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8359 argument.
8360 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8361 (_initialize_amd64_linux_nat): Use it.
8362 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8363 (_initialize_i386_linux_nat): Use it.
8364
1777056d
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8368 * target.c (target_teardown_btrace): Add argument.
8369 * remote.c (remote_teardown_btrace): Add 'self' argument.
8370 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8371 argument.
8372 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8373 argument.
8374
25e95349
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8378 * target.c (target_disable_btrace): Add argument.
8379 * remote.c (remote_disable_btrace): Add 'self' argument.
8380 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8381 argument.
8382 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8383 argument.
8384
e3c49f88
TT
83852014-02-19 Tom Tromey <tromey@redhat.com>
8386
8387 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8388 * target.c (target_enable_btrace): Add argument.
8389 * remote.c (remote_enable_btrace): Add 'self' argument.
8390 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8391 argument.
8392 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8393 argument.
8394
fe38f897
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8398 (target_can_use_agent): Add argument.
8399 * target.c (update_current_target): Update.
8400 * remote.c (remote_can_use_agent): Add 'self' argument.
8401 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8402
2c152180
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target.h (struct target_ops) <to_use_agent>: Add argument.
8406 (target_use_agent): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_use_agent): Add 'self' argument.
8409 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8410
a893e81f
TT
84112014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8414 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8415 (target_traceframe_info): Add argument.
8416 * target.c (update_current_target): Update.
8417 * remote.c (remote_traceframe_info): Add 'self' argument.
8418 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8419
c686c57f
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target.h (target_static_tracepoint_markers_by_strid): Add
8423 argument.
8424 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8425 'self' argument.
8426 * target.c (update_current_target): Update.
8427 * remote.c (struct target_ops)
8428 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8429 * linux-nat.c (struct target_ops)
8430 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8431
61fc905d
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8435 Add argument.
8436 (target_static_tracepoint_marker_at): Add argument.
8437 * target.c (update_current_target): Update.
8438 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8439 argument.
8440
c378d69d
TT
84412014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8444 (target_set_permissions): Add argument.
8445 * target.c (update_current_target): Update.
8446 * remote.c (remote_set_permissions): Add 'self' argument.
8447 (remote_start_remote): Update.
8448
bd7ae0f5
TT
84492014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8452 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8453 (target_get_tib_address): Add argument.
8454 * target.c (update_current_target): Update.
8455 * remote.c (remote_get_tib_address): Add 'self' argument.
8456
d9e68a2c
TT
84572014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8460 (target_set_trace_notes): Add argument.
8461 * target.c (update_current_target): Update.
8462 * remote.c (remote_set_trace_notes): Add 'self' argument.
8463
4da384be
TT
84642014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8467 argument.
8468 (target_set_trace_buffer_size): Add argument.
8469 * target.c (update_current_target): Update.
8470 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8471
736d5b1f
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8475 argument.
8476 (target_set_circular_trace_buffer): Add argument.
8477 * target.c (update_current_target): Update.
8478 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8479 argument.
8480
37b25738
TT
84812014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8484 argument.
8485 (target_set_disconnected_tracing): Add argument.
8486 * target.c (update_current_target): Update.
8487 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8488
0e67620a
TT
84892014-02-19 Tom Tromey <tromey@redhat.com>
8490
8491 * target.h (struct target_ops)
8492 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8493 (target_get_min_fast_tracepoint_insn_len): Add argument.
8494 * target.c (update_current_target): Update.
8495 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8496 argument.
8497
88ee6f45
TT
84982014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8501 argument.
8502 (target_get_raw_trace_data): Add argument.
8503 * target.c (update_current_target): Update.
8504 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8505
181e3713
TT
85062014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8509 Add argument.
8510 (target_upload_trace_state_variables): Add argument.
8511 * target.c (update_current_target): Update.
8512 * remote.c (remote_upload_trace_state_variables): Add 'self'
8513 argument.
8514 (remote_start_remote): Update.
8515
ab6617cc
TT
85162014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8519 argument.
8520 (target_upload_tracepoints): Add argument.
8521 * target.c (update_current_target): Update.
8522 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8523 (remote_start_remote): Update.
8524
dc3decaf
TT
85252014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8528 (target_save_trace_data): Add argument.
8529 * target.c (update_current_target): Update.
8530 * remote.c (remote_save_trace_data): Add 'self' argument.
8531
4011015b
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8535 argument.
8536 * target.h (struct target_ops)
8537 <to_get_trace_state_variable_value>: Add argument.
8538 (target_get_trace_state_variable_value): Add argument.
8539 * target.c (update_current_target): Update.
8540 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8541 argument.
8542 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8543
bd4c6793
TT
85442014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8547 * target.h (struct target_ops) <to_trace_find>: Add argument.
8548 (target_trace_find): Add argument.
8549 * target.c (update_current_target): Update.
8550 * remote.c (remote_trace_find): Add 'self' argument.
8551 * ctf.c (ctf_trace_find): Add 'self' argument.
8552
74499f1b
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8556 (target_trace_stop): Add argument.
8557 * target.c (update_current_target): Update.
8558 * remote.c (remote_trace_stop): Add 'self' argument.
8559
db90e85c
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8563 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8564 argument.
8565 (target_get_tracepoint_status): Add argument.
8566 * target.c (update_current_target): Update.
8567 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8568
8bd200f1
TT
85692014-02-19 Tom Tromey <tromey@redhat.com>
8570
8571 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8572 * target.h (struct target_ops) <to_get_trace_status>: Add
8573 argument.
8574 (target_get_trace_status): Add argument.
8575 * target.c (update_current_target): Update.
8576 * remote.c (remote_get_trace_status): Add 'self' argument.
8577 (remote_start_remote, remote_can_download_tracepoint): Update.
8578 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8579
e2d1aae3
TT
85802014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target.h (struct target_ops) <to_trace_start>: Add argument.
8583 (target_trace_start): Add argument.
8584 * target.c (update_current_target): Update.
8585 * remote.c (remote_trace_start): Add 'self' argument.
8586
583f9a86
TT
85872014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8590 Add argument.
8591 (target_trace_set_readonly_regions): Add argument.
8592 * target.c (update_current_target): Update.
8593 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8594 argument.
8595
780b049c
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8599 argument.
8600 (target_disable_tracepoint): Add argument.
8601 * target.c (update_current_target): Update.
8602 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8603
46670d57
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8607 argument.
8608 (target_enable_tracepoint): Add argument.
8609 * target.c (update_current_target): Update.
8610 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8611
559d2b81
TT
86122014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target.h (struct target_ops) <to_download_trace_state_variable>:
8615 Add argument.
8616 (target_download_trace_state_variable): Add argument.
8617 * target.c (update_current_target): Update.
8618 * remote.c (remote_download_trace_state_variable): Add 'self'
8619 argument.
8620
a52a8357
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8624 argument.
8625 (target_can_download_tracepoint): Add argument.
8626 * target.c (update_current_target): Update.
8627 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8628
548f7808
TT
86292014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target.h (struct target_ops) <to_download_tracepoint>: Add
8632 argument.
8633 (target_download_tracepoint): Add argument.
8634 * target.c (update_current_target): Update.
8635 * remote.c (remote_download_tracepoint): Add 'self' argument.
8636
ecae04e1
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target.h (struct target_ops) <to_trace_init>: Add argument.
8640 (target_trace_init): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_trace_init): Add 'self' argument.
8643
fab5aa7c
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8647 * target.c (target_fileio_readlink): Add argument.
8648 * remote.c (remote_hostio_readlink): Add 'self' argument.
8649 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8650
dbbca37d
TT
86512014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8654 * target.c (target_fileio_unlink): Add argument.
8655 * remote.c (remote_hostio_unlink): Add 'self' argument.
8656 (remote_file_delete): Update.
8657 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8658
df39ea25
TT
86592014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8662 * target.c (target_fileio_close): Add argument.
8663 * remote.c (remote_hostio_close): Add 'self' argument.
8664 (remote_hostio_close_cleanup): Update.
8665 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8666 Update.
8667 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8668
a3be983c
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8672 * target.c (target_fileio_pread): Add argument.
8673 * remote.c (remote_hostio_pread): Add 'self' argument.
8674 (remote_bfd_iovec_pread, remote_file_get): Update.
8675 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8676
0d866f62
TT
86772014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8680 * target.c (target_fileio_pwrite): Add argument.
8681 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8682 (remote_file_put): Update.
8683 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8684
cd897586
TT
86852014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8688 * target.c (target_fileio_open): Add argument.
8689 * remote.c (remote_hostio_open): Add 'self' argument.
8690 (remote_bfd_iovec_open): Add 'self' argument.
8691 (remote_file_put): Add 'self' argument.
8692 (remote_file_get): Add 'self' argument.
8693 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8694
78eff0ec
TT
86952014-02-19 Tom Tromey <tromey@redhat.com>
8696
8697 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8698 Add argument.
8699 (target_can_run_breakpoint_commands): Add argument.
8700 * target.c (update_current_target): Update.
8701 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8702 argument.
8703 (remote_insert_breakpoint): Add 'self' argument.
8704 (remote_insert_hw_breakpoint): Add 'self' argument.
8705 (remote_can_run_breakpoint_commands): Add 'self' argument.
8706
efcc2da7
TT
87072014-02-19 Tom Tromey <tromey@redhat.com>
8708
8709 * target.h (struct target_ops)
8710 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8711 (target_supports_evaluation_of_breakpoint_conditions): Add
8712 argument.
8713 * target.c (update_current_target): Update.
8714 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8715 argument.
8716 (remote_insert_breakpoint): Add 'self' argument.
8717 (remote_insert_hw_breakpoint): Add 'self' argument.
8718 (remote_supports_cond_breakpoints): Add 'self' argument.
8719
6de37a3a
TT
87202014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8723 argument.
8724 (target_supports_string_tracing): Add argument.
8725 * target.c (update_current_target): Update.
8726 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8727
2bfc0540
TT
87282014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops)
8731 <to_supports_disable_randomization>: Add argument.
8732 * target.c (find_default_supports_disable_randomization): Add
8733 argument.
8734 (target_supports_disable_randomization): Add argument.
8735 (find_default_supports_disable_randomization): Add 'self'
8736 argument.
8737 * remote.c (extended_remote_supports_disable_randomization): Add
8738 'self' argument.
8739 (remote_supports_disable_randomization): Add 'self' argument.
8740 (extended_remote_create_inferior): Update.
8741 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8742 'self' argument.
8743
7d178d6a
TT
87442014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target.h (struct target_ops)
8747 <to_supports_enable_disable_tracepoint>: Add argument.
8748 (target_supports_enable_disable_tracepoint): Add argument.
8749 * target.c (update_current_target): Update.
8750 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8751 argument.
8752
86ce2668
TT
87532014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target.h (struct target_ops) <to_supports_multi_process>: Add
8756 argument.
8757 (target_supports_multi_process): Add argument.
8758 * target.c (update_current_target): Update.
8759 * remote.c (remote_supports_multi_process): Add 'self' argument.
8760 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8761 argument.
8762 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8763 argument.
8764
4c612759
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target.h (struct target_ops) <to_execution_direction>: Add
8768 argument.
8769 (target_execution_direction): Add argument.
8770 * target.c (default_execution_direction): Add 'self' argument.
8771 * record-full.c (record_full_execution_direction): Add 'self'
8772 argument.
8773
19db3e69
TT
87742014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8777 argument.
8778 (target_can_execute_reverse): Add argument.
8779 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8780 * record-full.c (record_full_can_execute_reverse): Add 'self'
8781 argument.
8782 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8783 argument.
8784
1e6b91a4
TT
87852014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8788 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8789 argument.
8790 (target_get_ada_task_ptid): Add argument.
8791 * target.c (update_current_target): Update.
8792 (default_get_ada_task_ptid): Add 'self' argument.
8793 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8794 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8795 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8796 argument.
8797 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8798 argument.
8799 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8800 argument.
8801 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8802 argument.
8803 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8804 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8805 argument.
8806
3c80fb48
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8810 (target_goto_bookmark): Add argument.
8811 * target.c (dummy_goto_bookmark): Add 'self' argument.
8812 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8813
dd0e2830
TT
88142014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8817 (target_get_bookmark): Add argument.
8818 * target.c (dummy_get_bookmark): Add 'self' argument.
8819 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8820
fc6691b2
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8824 argument.
8825 (target_make_corefile_notes): Add argument.
8826 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8827 * procfs.c (procfs_make_note_section): Add 'self' argument.
8828 (procfs_make_note_section): Add 'self' argument.
8829 (procfs_make_note_section): Add 'self' argument.
8830 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8831 argument.
8832 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8833 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8834 * exec.c (exec_make_note_section): Add 'self' argument.
8835 (exec_make_note_section): Add 'self' argument.
8836
2e73927c
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target.h (struct target_ops) <to_find_memory_regions>: Add
8840 argument.
8841 (target_find_memory_regions): Add argument.
8842 * target.c (dummy_find_memory_regions): Add 'self' argument.
8843 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8844 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8845 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8846 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8847 * exec. (exec_do_find_memory_regions): New global.
8848 (exec_set_find_memory_regions): Rewrite.
8849 (exec_find_memory_regions): New function.
8850 (init_exec_ops): Use exec_find_memory_regions.
8851
2a9a2795
TT
88522014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target.h (struct target_ops) <to_supports_non_stop>: Add
8855 argument.
8856 * target.c (find_default_supports_non_stop): Add argument.
8857 (target_supports_non_stop): Add argument.
8858 (find_default_supports_non_stop): Add 'self' argument.
8859 * remote.c (remote_supports_non_stop): Add 'self' argument.
8860 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8861
4ab76ea3
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target.h (struct target_ops) <to_log_command>: Add argument.
8865 (target_log_command): Add argument.
8866 * serial.h (serial_log_command): Add 'self' argument.
8867 * serial.c (serial_log_command): Add 'self' argument.
8868
8dd27370
TT
88692014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8872 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8873 argument.
8874 (target_pid_to_exec_file): Add argument.
8875 * target.c (debug_to_pid_to_exec_file): Add argument.
8876 (update_current_target): Update.
8877 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8878 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8879 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8880 (linux_handle_extended_wait): Update.
8881 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8882 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8883 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8884 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8885
1aac633b
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target.h (struct target_ops) <to_rcmd>: Add argument.
8889 (target_rcmd): Add argument.
8890 * target.c (debug_to_rcmd): Add argument.
8891 (update_current_target, do_monitor_command): Update.
8892 * remote.c (remote_rcmd): Add 'self' argument.
8893 * monitor.c (monitor_rcmd): Add 'self' argument.
8894
1eab8a48
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * windows-nat.c (windows_stop): Add 'self' argument.
8898 * target.h (struct target_ops) <to_stop>: Add argument.
8899 * target.c (target_stop): Add argument.
8900 (debug_to_stop): Add argument.
8901 (update_current_target): Update.
8902 * remote.c (remote_stop): Add 'self' argument.
8903 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8904 (gdbsim_cntrl_c): Update.
8905 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8906 * procfs.c (procfs_stop): Add 'self' argument.
8907 * nto-procfs.c (procfs_stop): Add 'self' argument.
8908 * monitor.c (monitor_stop): Add 'self' argument.
8909 (monitor_open): Update.
8910 * linux-nat.c (linux_nat_stop): Add argument.
8911 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8912 * gnu-nat.c (gnu_stop): Add 'self' argument.
8913 * darwin-nat.c (darwin_stop): Add 'self' argument.
8914
503a628d
TT
89152014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target.h (struct target_ops) <to_thread_name>: Add argument.
8918 * target.c (target_thread_name): Add argument.
8919 (update_current_target): Update.
8920 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8921
c15906d8
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_extra_thread_info>: Add
8925 argument.
8926 (target_extra_thread_info): Add argument.
8927 * target.c (update_current_target): Update.
8928 * remote.c (remote_threads_extra_info): Add 'self' argument.
8929 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8930 argument.
8931 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8932 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8933 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8934 argument.
8935 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8936 argument.
8937 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8938 argument.
8939 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8940 argument.
8941
daf5e9b6
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_program_signals>: Add argument.
8945 * target.c (target_program_signals): Add argument.
8946 * remote.c (remote_program_signals): Add 'self' argument.
8947
94bedb42
TT
89482014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8951 * target.c (target_pass_signals): Add argument.
8952 * remote.c (remote_pass_signals): Add 'self' argument.
8953 (remote_start_remote): Update.
8954 * procfs.c (procfs_pass_signals): Add 'self' argument.
8955 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8956 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8957 (linux_nat_create_inferior, linux_nat_attach): Update.
8958
da82bd6b
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * windows-nat.c (windows_can_run): Add 'self' argument.
8962 * target.h (struct target_ops) <to_can_run>: Add argument.
8963 (target_can_run): Add argument.
8964 * target.c (debug_to_can_run): Add argument.
8965 (update_current_target): Update.
8966 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8967 * inf-child.c (inf_child_can_run): Add 'self' argument.
8968 * go32-nat.c (go32_can_run): Add 'self' argument.
8969
d796e1d6
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_has_exited>: Add argument.
8973 (target_has_exited): Add argument.
8974 * target.c (debug_to_has_exited): Add argument.
8975 (update_current_target): Update.
8976
ff214e67
TT
89772014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8980 argument.
8981 (target_set_syscall_catchpoint): Add argument.
8982 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8983 argument.
8984 * target.c (update_current_target): Update.
8985
758e29d2
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8989 argument.
8990 (target_remove_exec_catchpoint): Add argument.
8991 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8992 (update_current_target): Update.
8993 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8994 argument.
8995
ba025e51
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8999 argument.
9000 (target_insert_exec_catchpoint): Add argument.
9001 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9002 (update_current_target): Update.
9003 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9004 argument.
9005
e98cf0cd
TT
90062014-02-19 Tom Tromey <tromey@redhat.com>
9007
9008 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9009 argument.
9010 (target_remove_vfork_catchpoint): Add argument.
9011 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9012 (update_current_target): Update.
9013 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9014 argument.
9015
3ecc7da0
TT
90162014-02-19 Tom Tromey <tromey@redhat.com>
9017
9018 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9019 argument.
9020 (target_insert_vfork_catchpoint): Add argument.
9021 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9022 (update_current_target): Update.
9023 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9024 argument.
9025
973fc227
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9029 argument.
9030 (target_remove_fork_catchpoint): Add argument.
9031 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9032 (update_current_target): Update.
9033 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9034 argument.
9035
a863b201
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9039 argument.
9040 (target_insert_fork_catchpoint): Add argument.
9041 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9042 (update_current_target): Update.
9043 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9044 argument.
9045
2e97a79e
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9049 argument.
9050 (target_post_startup_inferior): Add argument.
9051 * target.c (debug_to_post_startup_inferior): Add argument.
9052 (update_current_target): Update.
9053 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9054 argument.
9055 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9056 argument.
9057 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9058 argument.
9059 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9060 argument.
9061 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9062 'self' argument.
9063 (super_post_startup_inferior): Likewise.
9064 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9065 'self' argument.
9066 (super_post_startup_inferior): Likewise.
9067 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9068 Add 'self' argument.
9069 (super_post_startup_inferior): Likewise.
9070
71a9f134
TT
90712014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_load>: Add argument.
9074 * target.c (target_load): Add argument.
9075 (debug_to_load): Add argument.
9076 (update_current_target): Update.
9077 * remote.c (remote_load): Add 'self' argument.
9078 * remote-sim.c (gdbsim_load): Add 'self' argument.
9079 * remote-mips.c (mips_load): Add 'self' argument.
9080 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9081 * monitor.c (monitor_load): Add 'self' argument.
9082 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9083
0a4f40a2
TT
90842014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9087 (target_terminal_info): Add argument.
9088 * target.c (debug_to_terminal_info): Add argument.
9089 (default_terminal_info): Likewise.
9090 * inflow.c (child_terminal_info): Add 'self' argument.
9091 * inferior.h (child_terminal_info): Add 'self' argument.
9092 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9093
ae3bd431
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9097 argument.
9098 (target_terminal_save_ours): Add argument.
9099 * target.c (debug_to_terminal_save_ours): Add argument.
9100 (update_current_target): Update.
9101 * inflow.c (terminal_save_ours): Add 'self' argument.
9102 * inferior.h (terminal_save_ours): Add 'self' argument.
9103
e3594fd1
TT
91042014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9107 (target_terminal_ours): Add argument.
9108 * target.c (debug_to_terminal_ours): Add argument.
9109 (update_current_target): Update.
9110 * remote.c (remote_terminal_ours): Add 'self' argument.
9111 (remote_close): Update.
9112 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9113 * inflow.c (terminal_ours): Add 'self' argument.
9114 * inferior.h (terminal_ours): Add 'self' argument.
9115 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9116
2e1e1a19
TT
91172014-02-19 Pedro Alves <palves@redhat.com>
9118 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9121 argument.
9122 (target_terminal_ours_for_output): Add argument.
9123 * target.c (debug_to_terminal_ours_for_output): Add argument.
9124 (update_current_target): Update.
9125 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9126 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9127 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9128
d2f640d4
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops) <to_terminal_inferior>: Add
9132 argument.
9133 * target.c (target_terminal_inferior): Add argument.
9134 (update_current_target): Update.
9135 * remote.c (remote_terminal_inferior): Add 'self' argument.
9136 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9137 * inflow.c (terminal_inferior): Add 'self' argument.
9138 * inferior.h (terminal_inferior): Add 'self' argument.
9139 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9140 (go32_terminal_inferior): Add 'self' argument.
9141
c42bf286
TT
91422014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9145 (target_terminal_init): Add argument.
9146 * target.c (debug_to_terminal_init): Add argument.
9147 (update_current_target): Update.
9148 * inflow.c (terminal_init_inferior): Add 'self' argument.
9149 * inferior.h (terminal_init_inferior): Add 'self' argument.
9150 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9151 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9152
c3a5ff89
TT
91532014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target.h (struct target_ops)
9156 <to_can_accel_watchpoint_condition>: Add argument.
9157 (target_can_accel_watchpoint_condition): Add argument.
9158 * target.c (debug_to_can_accel_watchpoint_condition): Add
9159 argument.
9160 (update_current_target): Update.
9161 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9162 'self' argument.
9163
31568a15
TT
91642014-02-19 Tom Tromey <tromey@redhat.com>
9165
9166 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9167 Add argument.
9168 (target_region_ok_for_hw_watchpoint): Add argument.
9169 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9170 (default_region_ok_for_hw_watchpoint): Add argument.
9171 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9172 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9173 argument.
9174 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9175 argument.
9176 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9177 argument.
9178 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9179 'self' argument.
9180 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9181 'self' argument.
9182 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9183 'self' argument.
9184 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9185 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9186 'self' argument.
9187 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9188 Add 'self' argument.
9189
7bb99c53
TT
91902014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9193 argument.
9194 (target_insert_watchpoint): Add argument.
9195 * target.c (debug_to_insert_watchpoint): Add argument.
9196 (update_current_target): Update.
9197 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9198 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9199 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9200 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9201 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9202 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9203 argument.
9204 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9205 (procfs_insert_hw_watchpoint): Add 'self' argument.
9206 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9207 argument.
9208 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9209 argument.
9210 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9211 argument.
9212 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9213 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9214 argument.
9215 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9216 'self' argument.
9217
11b5219a
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9221 argument.
9222 (target_remove_watchpoint): Add argument.
9223 * target.c (debug_to_remove_watchpoint): Add argument.
9224 (update_current_target): Update.
9225 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9226 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9227 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9228 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9229 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9230 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9231 argument.
9232 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9233 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9234 argument.
9235 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9236 argument.
9237 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9238 argument.
9239 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9240 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9241 argument.
9242 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9243 'self' argument.
9244
a64dc96c
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9248 argument.
9249 (target_remove_hw_breakpoint): Add argument.
9250 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9251 (update_current_target): Update.
9252 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9253 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9254 argument.
9255 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9256 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9257 argument.
9258 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9259 'self' argument.
9260
23a26771
TT
92612014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9264 argument.
9265 (target_insert_hw_breakpoint): Add argument.
9266 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9267 (update_current_target): Update.
9268 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9269 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9270 argument.
9271 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9272 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9273 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9274 argument.
9275 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9276 'self' argument.
9277
5461485a
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9281 argument.
9282 (target_can_use_hardware_watchpoint): Add argument.
9283 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9284 (update_current_target): Update.
9285 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9286 argument.
9287 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9288 argument.
9289 * remote.c (remote_check_watch_resources): Add 'self' argument.
9290 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9291 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9292 argument.
9293 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9294 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9295 argument.
9296 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9297 argument.
9298 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9299 argument.
9300 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9301 argument.
9302 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9303 argument.
9304 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9305 argument.
9306 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9307 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9308 argument.
9309 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9310 'self' argument.
9311
f045800c
TT
93122014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target.h (struct target_ops) <to_post_attach>: Add argument.
9315 (target_post_attach): Add argument.
9316 * target.c (debug_to_post_attach): Add argument.
9317 (update_current_target): Update.
9318 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9319 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9320 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9321 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9322 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9323
de90e03d
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * windows-nat.c (windows_close): Add 'self' argument.
9327 * tracepoint.c (tfile_close): Add 'self' argument.
9328 * target.h (struct target_ops) <to_close>: Add argument.
9329 * target.c (target_close): Add argument.
9330 (update_current_target): Update.
9331 * remote.c (remote_close): Add 'self' argument.
9332 * remote-sim.c (gdbsim_close): Add 'self' argument.
9333 * remote-mips.c (mips_close): Add 'self' argument.
9334 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9335 * record-full.c (record_full_close): Add 'self' argument.
9336 * record-btrace.c (record_btrace_close): Add 'self' argument.
9337 * monitor.h (monitor_close): Add 'self' argument.
9338 * monitor.c (monitor_close): Add 'self' argument.
9339 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9340 * linux-nat.c (linux_nat_close): Add argument.
9341 * go32-nat.c (go32_close): Add 'self' argument.
9342 * exec.c (exec_close_1): Add 'self' argument.
9343 * ctf.c (ctf_close): Add 'self' argument.
9344 * corelow.c (core_close): Add 'self' argument.
9345 (core_close_cleanup): Update.
9346 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9347 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9348
9dd130a0
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * remote.c (remote_load): New function.
9352 (init_remote_ops): Use it.
9353
46917d26
TT
93542014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9357 argument.
9358 * common/linux-btrace.h (linux_supports_btrace): Update.
9359 * remote.c (remote_supports_btrace): Add "self" argument.
9360 * target-delegates.c: Rebuild.
9361 * target.c (target_supports_btrace): Remove.
9362 * target.h (struct target_ops) <to_supports_btrace>: Add
9363 target_ops argument.
9364 (target_supports_btrace): New define.
9365
6b84065d
TT
93662014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * record-full.c (record_full_beneath_to_resume_ops)
9369 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9370 (record_full_beneath_to_wait)
9371 (record_full_beneath_to_store_registers_ops)
9372 (record_full_beneath_to_store_registers)
9373 (record_full_beneath_to_xfer_partial_ops)
9374 (record_full_beneath_to_xfer_partial)
9375 (record_full_beneath_to_insert_breakpoint_ops)
9376 (record_full_beneath_to_insert_breakpoint)
9377 (record_full_beneath_to_remove_breakpoint_ops)
9378 (record_full_beneath_to_remove_breakpoint)
9379 (record_full_beneath_to_stopped_by_watchpoint)
9380 (record_full_beneath_to_stopped_data_address)
9381 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9382 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9383 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9384 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9385 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9386 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9387 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9388 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9389 (record_full_resume, record_full_wait_1)
9390 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9391 (record_full_store_registers, record_full_xfer_partial)
9392 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9393 (record_full_async, record_full_core_xfer_partial): Use target
9394 delegation.
9395 * target-delegates.c: Rebuild.
9396 * target.c (current_xfer_partial): Remove.
9397 (update_current_target): Do not INHERIT or de_fault
9398 to_insert_breakpoint, to_remove_breakpoint,
9399 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9400 to_is_async_p, to_async. Do not set to_xfer_partial field.
9401 (default_xfer_partial): Simplify.
9402 (current_xfer_partial): Remove.
9403 (target_wait, target_resume): Simplify.
9404 (find_default_can_async_p, find_default_is_async_p): Update.
9405 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9406 to_xfer_partial, to_stopped_by_watchpoint,
9407 to_stopped_data_address.
9408 (target_store_registers): Simplify.
9409 (forward_target_remove_breakpoint)
9410 (forward_target_insert_breakpoint): Remove.
9411 (target_remove_breakpoint, target_insert_breakpoint)
9412 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9413 * target.h (struct target_ops) <to_resume, to_wait,
9414 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9415 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9416 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9417 markup.
9418 (forward_target_remove_breakpoint)
9419 (forward_target_insert_breakpoint): Remove.
9420 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9421 directly.
9422 (record_btrace_insert_breakpoint): Delegate directly.
9423
1101cb7b
TT
94242014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 PR build/7701:
9427 * target-delegates.c: New file.
9428 * target.c: Include target-delegates.c.
9429 (init_dummy_target): Call install_dummy_methods.
9430 (complete_target_initialization): Call install_delegators.
9431 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9432 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9433 * make-target-delegates: New file.
9434
8b06beed
TT
94352014-02-19 Tom Tromey <tromey@redhat.com>
9436
9437 * record.c (find_record_target): Use find_target_at.
9438 * target.c (find_target_at): New function.
9439 * target.h (find_target_at): Declare.
9440
6a109b6b
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9444 Add 'ops' argument.
9445 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9446 'ops' argument.
9447 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9448 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9449 'ops' argument.
9450 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9451 argument.
9452 * linux-nat.c (save_sigtrap): Update.
9453 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9454 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9455 (linux_nat_close): Update.
9456 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9457 argument.
9458 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9459 argument.
9460 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9461 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9462 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9463 (tmp_to_async): Add 'ops' argument.
9464 (record_full_stopped_by_watchpoint, record_full_async)
9465 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9466 argument.
9467 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9468 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9469 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9470 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9471 (remote_is_async_p, remote_async): Add 'ops' argument.
9472 (remote_stopped_data_address): Update.
9473 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9474 * target.c (update_current_target)
9475 (find_default_can_async_p, find_default_is_async_p): Update.
9476 (init_dummy_target): Update.
9477 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9478 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9479 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9480 (target_can_async_p, target_is_async_p, target_async)
9481 (target_stopped_by_watchpoint): Update.
9482
e095146b
YQ
94832014-02-19 Yao Qi <yao@codesourcery.com>
9484
9485 PR gdb/16220
9486 * gdbarch.sh: Remove startup_gdbarch.
9487 * gdbarch.c: Regenerated.
9488 * gdbarch.h: Likewise.
9489
bc3c6b36
KB
94902014-02-17 Kevin Buettner <kevinb@redhat.com>
9491
9492 * rl78-tdep.c (rl78_g10_register_name): New function.
9493 (rl78_return_value): Add g10 support.
9494 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9495 g10.
9496
98dc0167 94972014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9498
9499 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9500 (SUBDIR_GUILE_SRCS): Ditto.
9501 (scm-gsmob.o): Ditto.
9502
842c05cd
YQ
95032014-02-17 Yao Qi <yao@codesourcery.com>
9504
9505 * gnu-nat.c (ILL_RPC): Declare defined function.
9506
25c0bd04
YQ
95072014-02-17 Yao Qi <yao@codesourcery.com>
9508
9509 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9510 mach_msg_type_number_t.
9511 (gnu_write_inferior): Likewise.
9512
a9a758e3
YQ
95132014-02-17 Yao Qi <yao@codesourcery.com>
9514
9515 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9516 in format string.
9517 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9518 (inf_validate_procs, inf_signal): Likewise.
9519 (S_exception_raise_request): Likewise.
9520 (do_mach_notify_dead_name): Likewise.
9521 (steal_exc_port): Likewise.
9522 (gnu_read_inferior): Change 'copy_count''s type to
9523 mach_msg_type_number_t.
9524 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9525 format string.
9526
bae8023e
TS
95272014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9528
c82f56d9
TS
9529 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9530 flag. Adjust all users; in particular...
9531 (gnu_wait): ..., don't decrement its value in here...
9532 (gnu_create_inferior): ..., and instead set the flag in here,
9533 around the startup_inferior call, and call that one with
9534 START_INFERIOR_TRAPS_EXPECTED.
9535
3398af6a
TS
9536 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9537 (ILL_RPC): ... new macro.
9538 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9539 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9540 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9541 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9542 functions with ILL_RPC macro.
9543 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9544 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9545 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9546 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9547 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9548 (S_proc_getlogin_reply, S_proc_getsid_reply)
9549 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9550 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9551 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9552 (S_proc_getnports_reply, S_proc_is_important_reply)
9553 (S_proc_get_code_reply): New stub functions, generated with
9554 ILL_RPC macro.
9555
d47642c9
TS
9556 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9557 collected the type check structures.
9558
bae8023e
TS
9559 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9560
8a55ffb0
DE
95612014-02-14 Doug Evans <dje@google.com>
9562
9563 * target.c (target_write_partial): Fix result type.
9564
c2853f3d
JM
95652014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9566
9567 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9568 the proper offsets to access fpregset_t.
9569
ac61d2db
SA
95702014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9571
9572 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9573 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9574 * h8300-tdep.c (setmachinelist): Remove global.
9575 * hppa-tdep.c (hppa_sigtramp): Remove global.
9576 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9577 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9578 * ravenscar-thread.c (update_target_observer): Remove global.
9579 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9580
9d2d0b8b
TT
95812014-02-12 Tom Tromey <tromey@redhat.com>
9582
9583 * common/rsp-low.c: Update comments.
9584 * common/rsp-low.h: Update comments.
9585
a7191e8b
TT
95862014-02-12 Tom Tromey <tromey@redhat.com>
9587
9588 * common/rsp-low.c (convert_ascii_to_int): Remove.
9589 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9590
ff0e980e
TT
95912014-02-12 Tom Tromey <tromey@redhat.com>
9592
9593 * common/rsp-low.h (unhexify): Don't declare.
9594 * common/rsp-low.c (unhexify): Remove.
9595
e9371aff
TT
95962014-02-12 Tom Tromey <tromey@redhat.com>
9597
9598 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9599 * common/rsp-low.c (convert_int_to_ascii): Remove.
9600
971dc0b8
TT
96012014-02-12 Tom Tromey <tromey@redhat.com>
9602
9603 * common/rsp-low.h (hexify): Don't declare.
9604 * common/rsp-low.c (hexify): Remove.
9605
0a822afb
TT
96062014-02-12 Tom Tromey <tromey@redhat.com>
9607
9608 * common/rsp-low.c (hexify): Never take strlen of argument.
9609
9f1b45b0
TT
96102014-02-12 Tom Tromey <tromey@redhat.com>
9611
9612 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9613 * remote.c (extended_remote_run, remote_rcmd)
9614 (remote_download_trace_state_variable, remote_save_trace_data)
9615 (remote_set_trace_notes): Update.
9616 * tracepoint.c (encode_source_string, tfile_write_status)
9617 (tfile_write_uploaded_tsv): Update.
9618
9c3d6531
TT
96192014-02-12 Tom Tromey <tromey@redhat.com>
9620
9621 * tracepoint.c: Include rsp-low.h.
9622 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9623 * remote.c: Include rsp-low.h.
9624 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9625 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9626 (remote_unescape_input): Move to common/rsp-low.c.
9627 * common/rsp-low.h: New file.
9628 * common/rsp-low.c: New file.
9629 * Makefile.in (SFILES): Add common/rsp-low.c.
9630 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9631 (COMMON_OBS): Add rsp-low.o.
9632 (rsp-low.o): New target.
9633
01fd3ea5
TT
96342014-02-12 Tom Tromey <tromey@redhat.com>
9635
9636 * utils.h: Include print-utils.h.
9637 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9638 (int_string, core_addr_to_string, core_addr_to_string_nz)
9639 (hex_string, hex_string_custom): Don't declare.
9640 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9641 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9642 (hex_string_custom, int_string, core_addr_to_string)
9643 (core_addr_to_string_nz, host_address_to_string): Move to
9644 common/print-utils.c.
9645 * common/print-utils.h: New file.
9646 * common/print-utils.c: New file
9647 * Makefile.in (SFILES): Add common/print-utils.c.
9648 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9649 (COMMON_OBS): Add print-utils.o.
9650 (print-utils.o): New target.
9651
9fb50108
TT
96522014-02-12 Tom Tromey <tromey@redhat.com>
9653
9654 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9655
0548b5db
MK
96562014-02-12 Mark Kettenis <kettenis@gnu.org>
9657
9658 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9659
493443a4
MK
96602014-02-12 Mark Kettenis <kettenis@gnu.org>
9661
9662 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9663 if a PT_IO ptrace request returns sucessfully but indicates that 0
9664 bytes were transferred.
9665
706d0883
PA
96662014-02-12 Pedro Alves <palves@redhat.com>
9667 Kevin Buettner <kevinb@redhat.com>
9668
9669 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9670 TYPE_INSTANCE_FLAG_CODE_SPACE.
9671
5caa2f0b
PA
96722014-02-12 Pedro Alves <palves@redhat.com>
9673
9674 * h8300-tdep.c (pseudo_from_raw_register)
9675 (raw_from_pseudo_register): New functions.
9676 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9677 them.
9678
76fd5f74
PA
96792014-02-12 Pedro Alves <palves@redhat.com>
9680
9681 * h8300-tdep.c (h8300_register_sim_regno): New function.
9682 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9683 gdbarch_register_sim_regno hook.
9684
8f008406
SA
96852014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9686
9687 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9688
195abc10
SA
96892014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9690
9691 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9692
93ffa5b9
MK
96932014-02-12 Mark Kettenis <kettenis@gnu.org>
9694
9695 * obsd-tdep.h (obsd_init_abi): New prototype.
9696 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9697 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9698 (obsd_init_abi): New functions.
9699 * i386obsd-tdep.c: Include "obsd-tdep.h".
9700 (i386obsd_init_abi): Call obsd_init_abi.
9701 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9702 (amd64obsd_init_abi): Call obsd_init_abi.
9703 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9704 obsd-tdep.c to gdb_target_obs.
9705
49caec94
JM
97062014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9707
9708 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9709 double float arguments to 16-byte in the argument slots.
9710
e1402065
DE
97112014-02-11 Doug Evans <xdje42@gmail.com>
9712
9713 * configure.ac: Don't crash if pkg-config is not found and guile
9714 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9715 in guile checks.
9716 * configure: Regenerate.
9717
edcc890f
YQ
97182014-02-11 Yao Qi <yao@codesourcery.com>
9719
9720 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9721 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9722 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9723 * gnu-nat.c (gnu_xfer_memory): Likewise.
9724 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9725 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9726 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9727 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9728
9b409511
YQ
97292014-02-11 Yao Qi <yao@codesourcery.com>
9730
9731 * target.h (enum target_xfer_error): Rename to ...
9732 (enum target_xfer_status): ... it. New. All users updated.
9733 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9734 New.
9735 (TARGET_XFER_STATUS_ERROR_P): New macro.
9736 (target_xfer_error_to_string): Remove declaration.
9737 (target_xfer_status_to_string): Declare.
9738 (target_xfer_partial_ftype): Adjust it.
9739 (struct target_ops) <to_xfer_partial>: Return
9740 target_xfer_status. Add argument xfered_len. Update
9741 comments.
9742 * target.c (target_xfer_error_to_string): Rename to ...
9743 (target_xfer_status_to_string): ... it. New. All callers
9744 updated.
9745 (target_read_live_memory): Likewise. Call target_xfer_partial
9746 instead of target_read.
9747 (memory_xfer_live_readonly_partial): Return
9748 target_xfer_status. Add argument xfered_len.
9749 (raw_memory_xfer_partial): Likewise.
9750 (memory_xfer_partial_1): Likewise.
9751 (memory_xfer_partial): Likewise.
9752 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9753 properly. Update debug message.
9754 (default_xfer_partial, current_xfer_partial): Likewise.
9755 (target_write_partial): Likewise.
9756 (target_read_partial): Likewise. All callers updated.
9757 (read_whatever_is_readable): Likewise.
9758 (target_write_with_progress): Likewise.
9759 (target_read_alloc_1): Likewise.
9760
9761 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9762 * auxv.c (procfs_xfer_auxv): Likewise.
9763 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9764 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9765 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9766 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9767 * corefile.c (read_memory): Adjust.
9768 * corelow.c (core_xfer_partial): Likewise.
9769 * ctf.c (ctf_xfer_partial): Likewise.
9770 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9771 updated.
9772 (darwin_xfer_partial): Likewise.
9773 * exec.c (section_table_xfer_memory_partial): Likewise. All
9774 callers updated.
9775 (exec_xfer_partial): Likewise.
9776 * exec.h (section_table_xfer_memory_partial): Update
9777 declaration.
9778 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9779 negative.
9780 (gnu_xfer_partial): Likewise.
9781 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9782 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9783 (ia64_hpux_xfer_solib_got): Likewise.
9784 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9785 type of 'partial_len' to ULONGEST.
9786 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9787 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9788 (linux_nat_xfer_partial): Likewise.
9789 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9790 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9791 * monitor.c (monitor_xfer_memory): Likewise.
9792 (monitor_xfer_partial): Likewise.
9793 * procfs.c (procfs_xfer_partial): Likewise.
9794 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9795 * record-full.c (record_full_xfer_partial): Likewise.
9796 (record_full_core_xfer_partial): Likewise.
9797 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9798 (gdbsim_xfer_partial): Likewise.
9799 * remote.c (remote_write_bytes_aux): Likewise. All callers
9800 updated.
9801 (remote_write_bytes, remote_read_bytes): Likewise. All
9802 callers updated.
9803 (remote_flash_erase): Likewise. All callers updated.
9804 (remote_write_qxfer): Likewise. All callers updated.
9805 (remote_read_qxfer): Likewise. All callers updated.
9806 (remote_xfer_partial): Likewise.
9807 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9808 (rs6000_xfer_shared_libraries): Likewise.
9809 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9810 (sol_thread_xfer_partial): Likewise.
9811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9812 (sparc_xfer_partial): Likewise.
9813 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9814 updated.
9815 (spu_xfer_partial): Likewise.
9816 * spu-multiarch.c (spu_xfer_partial): Likewise.
9817 * tracepoint.c (tfile_xfer_partial): Likewise.
9818 * windows-nat.c (windows_xfer_memory): Likewise.
9819 (windows_xfer_shared_libraries): Likewise.
9820 (windows_xfer_partial): Likewise.
9821 * valprint.c: Replace 'target_xfer_error' with
9822 'target_xfer_status' in comments.
9823
a8e63083
JB
98242014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9825
9826 Checked in by Joel Brobecker <brobecker@adacore.com>.
9827 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9828
e86b67d3
JB
98292014-02-11 Joel Brobecker <brobecker@adacore.com>
9830
9831 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9832 function parameters.
9833
4b7d1f7f
WN
98342014-02-10 Will Newton <will.newton@linaro.org>
9835
9836 * elfread.c (elf_rel_plt_read): Look for a .got section if
9837 looking up .got.plt fails.
9838 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9839 on address passed to elf_gnu_ifunc_record_cache.
9840 (elf_gnu_ifunc_resolve_addr): Likewise.
9841 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9842
961842b2
JM
98432014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9844
9845 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9846 (X_RETTURN): New macro.
9847 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9848
9849 * sparc64-tdep.c (sparc64_init_abi): Hook
9850 sparc_in_function_epilogue_p.
9851
3f03e7b1
GB
98522014-02-10 Gary Benson <gbenson@redhat.com>
9853
9854 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9855 Rename name_matcher to symbol_matcher.
9856
96f861ef
GB
98572014-02-10 Gary Benson <gbenson@redhat.com>
9858
9859 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9860 Use expand_symtabs_file_matcher_ftype and
9861 expand_symtabs_symbol_matcher_ftype.
9862
ee01b665
JB
98632014-02-10 Joel Brobecker <brobecker@adacore.com>
9864
9865 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9866 (struct ada_symbol_cache): New.
9867 (ada_free_symbol_cache): Forward declare.
9868 (struct ada_pspace_data): New.
9869 (ada_pspace_data_handle): New static global.
9870 (get_ada_pspace_data, ada_pspace_data_cleanup)
9871 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9872 (cache_space, cache): Delete, now folded inside struct
9873 ada_pspace_data.
9874 (ada_get_symbol_cache): New function.
9875 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9876 implementation.
9877 (_initialize_ada_language): Remove initialization of cache_space.
9878 Move call to observer_attach_inferior_exit up, grouping it
9879 with the other observer registrations inside this function.
9880 Rename command to be more general. Add call to
9881 register_program_space_data_with_cleanup.
9882
143adbbf
JB
98832014-02-10 Joel Brobecker <brobecker@adacore.com>
9884
9885 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9886 ada_new_objfile_observer.
9887 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9888 (_initialize_tasks): Update uses of ada_new_objfile_observer
9889 and ada_tasks_normal_stop_observer.
9890
aa4fb036
JB
98912014-02-10 Joel Brobecker <brobecker@adacore.com>
9892
9893 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9894 returned by the 'Length attribute to integer.
9895
9dee8cc6
JB
98962014-02-10 Joel Brobecker <brobecker@adacore.com>
9897
9898 * ada-lang.c (_initialize_ada_language): Initialize
9899 cache_space obstack.
9900
3d9434b5
JB
99012014-02-10 Joel Brobecker <brobecker@adacore.com>
9902
9903 * ada-lang.c (HASH_SIZE): New macro.
9904 (struct cache_entry): New type.
9905 (cache_space, cache): New static globals.
9906 (ada_clear_symbol_cache, find_entry): New functions.
9907 (lookup_cached_symbol, cache_symbol): Implement.
9908 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9909 (_initialize_ada_language): Attach ada_new_objfile_observer
9910 and ada_free_objfile_observer.
9911
f0c5f9b2
JB
99122014-02-10 Joel Brobecker <brobecker@adacore.com>
9913
9914 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9915 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9916 struct block * parameter.
9917 (ada_lookup_symbol_list_worker): Constify local variable "block".
9918 Remove cast which is no longer necessary.
9919
ed3ef339
DE
99202014-02-10 Doug Evans <xdje42@gmail.com>
9921
9922 Add Guile as an extension language.
9923 * NEWS: Mention Guile scripting.
9924 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9925 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9926 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9927 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9928 (CLIBS): Add GUILE_LIBS.
9929 (install-guile): New rule.
9930 (guile.o): New rule.
9931 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9932 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9933 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9934 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9935 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9936 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9937 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9938 * configure.ac: New option --with-guile.
9939 * configure: Regenerate.
9940 * config.in: Regenerate.
9941 * auto-load.c: Remove #include "python/python.h". Add #include
9942 "gdb/section-scripts.h".
9943 (source_section_scripts): Handle Guile scripts.
9944 (_initialize_auto_load): Add name of Guile objfile script to
9945 scripts-directory help text.
9946 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9947 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9948 (struct breakpoint): New member scm_bp_object.
9949 * defs.h (enum command_control_type): New value guile_control.
9950 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9951 "extension.h".
9952 (show_user): Update comment.
9953 (_initialize_cli_cmds): Update help text for "show user". Update help
9954 text for max-user-call-depth.
9955 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9956 "extension.h".
9957 (multi_line_command_p): Add guile_control.
9958 (print_command_lines): Handle guile_control.
9959 (execute_control_command, recurse_read_control_structure): Ditto.
9960 (process_next_line): Recognize "guile" commands.
9961 * disasm.c (gdb_disassemble_info): Make non-static.
9962 * disasm.h: #include "dis-asm.h".
9963 (struct gdbarch): Add forward decl.
9964 (gdb_disassemble_info): Declare.
9965 * extension.c: #include "guile/guile.h".
9966 (extension_languages): Add guile.
9967 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9968 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9969 * gdbtypes.c (get_unsigned_type_max): New function.
9970 (get_signed_type_minmax): New function.
9971 * gdbtypes.h (get_unsigned_type_max): Declare.
9972 (get_signed_type_minmax): Declare.
9973 * guile/README: New file.
9974 * guile/guile-internal.h: New file.
9975 * guile/guile.c: New file.
9976 * guile/guile.h: New file.
9977 * guile/scm-arch.c: New file.
9978 * guile/scm-auto-load.c: New file.
9979 * guile/scm-block.c: New file.
9980 * guile/scm-breakpoint.c: New file.
9981 * guile/scm-disasm.c: New file.
9982 * guile/scm-exception.c: New file.
9983 * guile/scm-frame.c: New file.
9984 * guile/scm-gsmob.c: New file.
9985 * guile/scm-iterator.c: New file.
9986 * guile/scm-lazy-string.c: New file.
9987 * guile/scm-math.c: New file.
9988 * guile/scm-objfile.c: New file.
9989 * guile/scm-ports.c: New file.
9990 * guile/scm-pretty-print.c: New file.
9991 * guile/scm-safe-call.c: New file.
9992 * guile/scm-string.c: New file.
9993 * guile/scm-symbol.c: New file.
9994 * guile/scm-symtab.c: New file.
9995 * guile/scm-type.c: New file.
9996 * guile/scm-utils.c: New file.
9997 * guile/scm-value.c: New file.
9998 * guile/lib/gdb.scm: New file.
9999 * guile/lib/gdb/boot.scm: New file.
10000 * guile/lib/gdb/experimental.scm: New file.
10001 * guile/lib/gdb/init.scm: New file.
10002 * guile/lib/gdb/iterator.scm: New file.
10003 * guile/lib/gdb/printing.scm: New file.
10004 * guile/lib/gdb/types.scm: New file.
10005 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10006 (VPATH): Add $(GUILE_SRCDIR).
10007 (GUILE_DIR): New variable.
10008 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10009 (all): Add stamp-guile dependency.
10010 (stamp-guile): New rule.
10011 (clean-guile, install-guile, uninstall-guile): New rules.
10012 (install-only): Add install-guile dependency.
10013 (uninstall): Add uninstall-guile dependency.
10014 (clean): Add clean-guile dependency.
10015
ac020ec5
DE
100162014-02-09 Doug Evans <xdje42@gmail.com>
10017
10018 Revert this patch (which I approved, mea culpa).
10019
10020 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10021
10022 * Makefile.in (all-lib): Remove.
10023 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10024
2a081c59
JK
100252014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10026
10027 Fix Python stack corruption.
10028 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10029 gdb_py_longest.
10030
0a6bd22d
MK
100312014-02-08 Mark Kettenis <kettenis@gnu.org>
10032
10033 * Makefile.in (all-lib): Remove.
10034 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10035
1a860409
DE
100362014-02-07 Doug Evans <dje@google.com>
10037
10038 * extension-priv.h (extension_language_script_ops): Add comment.
10039 (extension_language_ops): Add comment.
caf5a491 10040 (active_ext_lang_state): Fix typo in comment.
1a860409 10041
d137e6dc
PA
100422014-02-07 Pedro Alves <palves@redhat.com>
10043
0dcb32c3 10044 PR breakpoints/16292
d137e6dc
PA
10045 * infrun.c (handle_signal_stop) <signal arrives while stepping
10046 over a breakpoint>: Switch back to the stepping thread.
10047
ce6d0892
YQ
100482014-02-07 Yao Qi <yao@codesourcery.com>
10049
10050 * target.c (target_xfer_partial): Return zero if LEN is zero.
10051
2ed4b548
YQ
100522014-02-07 Yao Qi <yao@codesourcery.com>
10053
10054 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10055 (ld_so_xfer_auxv): Likewise.
10056 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10057 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10058 * corelow.c (core_xfer_partial): Likewise.
10059 * ctf.c (ctf_xfer_partial): Likewise.
10060 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10061 (darwin_xfer_partial): Likewise.
10062 * exec.c (exec_xfer_partial): Likewise.
10063 * gnu-nat.c (gnu_xfer_partial): Likewise.
10064 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10065 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10066 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10067 * linux-nat.c (linux_xfer_siginfo): Likewise.
10068 (linux_proc_xfer_spu): Likewise.
10069 * procfs.c (procfs_xfer_partial): Likewise.
10070 * record-full.c (record_full_xfer_partial): Likewise.
10071 (record_full_core_xfer_partial): Likewise.
10072 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10073 * remote.c (remote_write_qxfer): Likewise.
10074 (remote_write_qxfer, remote_read_qxfer): Likewise.
10075 (remote_xfer_partial): Likewise.
10076 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10077 (rs6000_xfer_shared_libraries): Likewise.
10078 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10079 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10080 (spu_xfer_partial): Likewise.
10081 * target.c (memory_xfer_partial_1): Likewise.
10082 * tracepoint.c (tfile_xfer_partial): Likewise.
10083 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10084 (windows_xfer_partial): Likewise.
10085
c09f20e4
YQ
100862014-02-07 Yao Qi <yao@codesourcery.com>
10087
10088 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10089 comments.
10090 (core_xfer_shared_libraries_aix): Likewise.
10091 * gdbarch.c, gdbarch.h: Regenerated.
10092 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10093 ULONGEST. Change 'len_avail' type to ULONGEST.
10094 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10095 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10096 declaration.
10097 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10098
8635b3bf
YQ
100992014-02-07 Yao Qi <yao@codesourcery.com>
10100
10101 * corefile.c (memory_error): Get 'exception' from ERR and pass
10102 'exception' to throw_error.
10103
6dddc817
DE
101042014-02-06 Doug Evans <xdje42@gmail.com>
10105
10106 * configure.ac (libpython checking): Remove all but python.o from
10107 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10108 * configure: Regenerate.
10109
10110 * Makefile.in (SFILES): Add extension.c.
10111 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10112 (COMMON_OBS): Add extension.o.
10113 * extension.h: New file.
10114 * extension-priv.h: New file.
10115 * extension.c: New file.
10116
10117 * python/python-internal.h: #include "extension.h".
10118 (gdbpy_auto_load_enabled): Declare.
10119 (gdbpy_apply_val_pretty_printer): Declare.
10120 (gdbpy_apply_frame_filter): Declare.
10121 (gdbpy_preserve_values): Declare.
10122 (gdbpy_breakpoint_cond_says_stop): Declare.
10123 (gdbpy_breakpoint_has_cond): Declare.
10124 (void source_python_script_for_objfile): Delete.
10125 * python/python.c: #include "extension-priv.h".
10126 Delete inclusion of "observer.h".
10127 (extension_language_python): Moved here and renamed from
10128 script_language_python in py-auto-load.c.
10129 Redefined to be of type extension_language_defn.
10130 (python_extension_script_ops): New global.
10131 (python_extension_ops): New global.
10132 (struct python_env): New member previous_active.
10133 (restore_python_env): Call restore_active_ext_lang.
10134 (ensure_python_env): Call set_active_ext_lang.
10135 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10136 New arg extlang.
10137 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10138 New arg extlang.
10139 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10140 New arg extlang.
10141 (gdbpy_eval_from_control_command): Renamed from
10142 eval_python_from_control_command, made static. New arg extlang.
10143 (gdbpy_source_script) Renamed from source_python_script, made static.
10144 New arg extlang.
10145 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10146 result to int. New arg extlang.
10147 (gdbpy_source_objfile_script): Renamed from
10148 source_python_script_for_objfile, made static. New arg extlang.
10149 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10150 static. New args extlang, extlang_printers. Change result type to
10151 "void".
10152 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10153 static. New arg extlang. Rename arg printers to extlang_printers
10154 and change type to ext_lang_type_printers *.
10155 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10156 static. Replace argument arg with extlang, extlang_printers.
10157 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10158 (!HAVE_PYTHON, source_python_script): Delete.
10159 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10160 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10161 (!HAVE_PYTHON, start_type_printers): Delete.
10162 (!HAVE_PYTHON, apply_type_printers): Delete.
10163 (!HAVE_PYTHON, free_type_printers): Delete.
10164 (_initialize_python): Delete call to observer_attach_before_prompt.
10165 (finalize_python): Set/restore active extension language.
10166 (gdbpy_finish_initialization) Renamed from
10167 finish_python_initialization, made static. New arg extlang.
10168 (gdbpy_initialized): New function.
10169 * python/python.h: #include "extension.h". Delete #include
10170 "value.h", "mi/mi-cmds.h".
10171 (extension_language_python): Declare.
10172 (GDBPY_AUTO_FILE_NAME): Delete.
10173 (enum py_bt_status): Moved to extension.h and renamed to
10174 ext_lang_bt_status.
10175 (enum frame_filter_flags): Moved to extension.h.
10176 (enum py_frame_args): Moved to extension.h and renamed to
10177 ext_lang_frame_args.
10178 (finish_python_initialization): Delete.
10179 (eval_python_from_control_command): Delete.
10180 (source_python_script): Delete.
10181 (apply_val_pretty_printer): Delete.
10182 (apply_frame_filter): Delete.
10183 (preserve_python_values): Delete.
10184 (gdbpy_script_language_defn): Delete.
10185 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10186 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10187
10188 * auto-load.c: #include "extension.h".
10189 (GDB_AUTO_FILE_NAME): Delete.
10190 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10191 (script_language_gdb): Delete, moved to extension.c and renamed to
10192 extension_language_gdb.
10193 (source_gdb_script_for_objfile): Delete.
10194 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10195 (loaded_script): Change type of language member to
10196 struct extension_language_defn *.
10197 (init_loaded_scripts_info): Initialize
10198 unsupported_script_warning_printed.
10199 (maybe_add_script): Make static. Change type of language arg to
10200 struct extension_language_defn *.
10201 (clear_section_scripts): Reset unsupported_script_warning_printed.
10202 (auto_load_objfile_script_1): Rewrite to use extension language API.
10203 (auto_load_objfile_script): Make public. Remove support-compiled-in
10204 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10205 (source_section_scripts): Rewrite to use extension language API.
10206 (load_auto_scripts_for_objfile): Rewrite to use
10207 auto_load_scripts_for_objfile.
10208 (collect_matching_scripts_data): Change type of language member to
10209 struct extension_language_defn *.
10210 (auto_load_info_scripts): Change type of language arg to
10211 struct extension_language_defn *.
10212 (unsupported_script_warning_print): New function.
10213 (script_not_found_warning_print): Make static.
10214 (_initialize_auto_load): Rewrite construction of scripts-directory
10215 help.
10216 * auto-load.h (struct objfile): Add forward decl.
10217 (struct script_language): Delete.
10218 (struct auto_load_pspace_info): Add forward decl.
10219 (struct extension_language_defn): Add forward decl.
10220 (maybe_add_script): Delete.
10221 (auto_load_objfile_script): Declare.
10222 (script_not_found_warning_print): Delete.
10223 (auto_load_info_scripts): Update prototype.
10224 (auto_load_gdb_scripts_enabled): Declare.
10225 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10226 auto_load_python_scripts_enabled and made public.
10227 (script_language_python): Delete, moved to python.c.
10228 (gdbpy_script_language_defn): Delete.
10229 (info_auto_load_python_scripts): Update to use
10230 extension_language_python.
10231
10232 * breakpoint.c (condition_command): Replace call to
10233 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10234 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10235 with call to breakpoint_ext_lang_cond_says_stop.
10236 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10237 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10238 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10239 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10240 New arg slang.
10241 (local_setattro): Print name of extension language with existing
10242 stop condition.
10243
10244 * valprint.c (val_print, value_print): Update to call
10245 apply_ext_lang_val_pretty_printer.
10246 * cp-valprint.c (cp_print_value): Update call to
10247 apply_ext_lang_val_pretty_printer.
10248 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10249 (gdbpy_apply_val_pretty_printer): Renamed from
10250 apply_val_pretty_printer. New arg extlang.
10251 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10252
10253 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10254 extension language API.
10255 * cli/cli-script.c (execute_control_command): Update to call
10256 eval_ext_lang_from_control_command.
10257
10258 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10259 enum ext_lang_bt_status values. Update call to
10260 apply_ext_lang_frame_filter.
10261 (mi_cmd_stack_list_locals): Ditto.
10262 (mi_cmd_stack_list_args): Ditto.
10263 (mi_cmd_stack_list_variables): Ditto.
10264 * mi/mi-main.c: Delete #include "python/python-internal.h".
10265 Add #include "extension.h".
10266 (mi_cmd_list_features): Replace reference to python internal variable
10267 gdb_python_initialized with call to ext_lang_initialized_p.
10268
10269 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10270 Update to use enum ext_lang_frame_args. Update to call
10271 apply_ext_lang_frame_filter.
10272 * python/py-framefilter.c (extract_sym): Update to use enum
10273 ext_lang_bt_status.
10274 (extract_value, py_print_type, py_print_value): Ditto.
10275 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10276 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10277 (py_print_frame): Ditto.
10278 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10279 New arg extlang. Update to use enum ext_lang_bt_status.
10280
10281 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10282 finish_python_initialization. Replace with call to
10283 finish_ext_lang_initialization.
10284
10285 * typeprint.c (do_free_global_table): Update to call
10286 free_ext_lang_type_printers.
10287 (create_global_typedef_table): Update to call
10288 start_ext_lang_type_printers.
10289 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10290 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10291 (type_print_options): Change type of global_printers from "void *"
10292 to "struct ext_lang_type_printers *".
10293
10294 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10295 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10296 (gdbpy_preserve_values): Renamed from preserve_python_values.
10297 New arg extlang.
10298 (!HAVE_PYTHON, preserve_python_values): Delete.
10299
10300 * utils.c (quit_flag): Delete, moved to extension.c.
10301 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10302 extension.c.
10303
10304 * eval.c: Delete #include "python/python.h".
10305 * main.c: Delete #include "python/python.h".
10306
10307 * defs.h: Update comment.
10308
6af79985
JB
103092014-02-06 Joel Brobecker <brobecker@adacore.com>
10310
10311 GDB 7.7 released.
10312
12c5175d
MK
103132014-02-05 Mark Kettenis <kettenis@gnu.org>
10314
10315 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10316 defined.
10317
8dc5b319
YQ
103182014-02-05 Yao Qi <yao@codesourcery.com>
10319
10320 * remote.c (remote_pass_signals): Remove local 'buf' and use
10321 rs->buf.
10322 (remote_program_signals): Likewise.
10323
de7b2893
YQ
103242014-02-05 Yao Qi <yao@codesourcery.com>
10325
10326 * ctf.c: Include "inferior.h" and "gdbthread.h".
10327 (CTF_PID): A new macro.
10328 (ctf_open): Call inferior_appeared and add_thread_silent.
10329 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10330 (ctf_thread_alive): New function.
10331 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10332
66d032ac
YQ
103332014-02-05 Yao Qi <yao@codesourcery.com>
10334
10335 Revert this patch:
10336
10337 2013-05-24 Yao Qi <yao@codesourcery.com>
10338
10339 * tracepoint.c (TFILE_PID): Remove.
10340 (tfile_open): Don't add thread and inferior.
10341 (tfile_close): Don't set 'inferior_ptid'. Don't call
10342 exit_inferior_silent.
10343 (tfile_thread_alive): Remove.
10344 (init_tfile_ops): Don't set field 'to_thread_alive' of
10345 tfile_ops.
10346
f4ccffad
CE
103472014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10348
10349 * remote.c (remote_start_remote): Call remote_check_symbols even
10350 if only symbol-file (not file) has been given.
10351
591a12a1
UW
103522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10353
10354 * gdbarch.sh (skip_entrypoint): New callback.
10355 * gdbarch.c, gdbarch.h: Regenerate.
10356 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10357 * infrun.c (fill_in_stop_func): Likewise.
10358 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10359 (ppc_elfv2_elf_make_msymbol_special): New function.
10360 (ppc_elfv2_skip_entrypoint): Likewise.
10361 (ppc_linux_init_abi): Install them for ELFv2.
10362
cc0e89c5
UW
103632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10364
10365 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10366 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10367 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10368 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10369 structures returned in GPRs.
10370
52f548e4
UW
103712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10372
10373 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10374 offset to the stack parameter list for the ELFv2 ABI.
10375
d4094b6a
UW
103762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10377
10378 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10379 set_gdbarch_convert_from_func_ptr_addr and
10380 set_gdbarch_elf_make_msymbol_special for ELFv1.
10381 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10382 function descriptors on ELFv1.
10383 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10384 set up r12 at function entry.
10385
cd453cd0
UW
103862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10387
10388 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10389 (struct gdbarch_tdep): New member elf_abi.
10390
10391 * rs6000-tdep.c: Include "elf/ppc64.h".
10392 (rs6000_gdbarch_init): Detect ELF ABI version.
10393
0ff3e01f
UW
103942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10395
10396 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10397 within a register pair holding a DFP 128-bit value on little-endian.
10398 (ppc64_sysv_abi_return_value_base): Likewise.
10399 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10400 (dfp_pseudo_register_write): Likewise.
10401
5b757e5d
UW
104022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10403
10404 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10405 offset on little-endian when passing _Decimal32.
10406 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10407
084ee545
UW
104082014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10409
10410 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10411 of the overlapped FP register within the VSX register on little-
10412 endian platforms.
10413 (efpr_pseudo_register_write): Likewise.
10414
d63167af
UW
104152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10416
10417 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10418 offset on little-endian when passing small structures.
10419
e765b44c
UW
104202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10421
10422 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10423 (struct ppc64_sysv_argpos): New data structure.
10424 (ppc64_sysv_abi_push_float): Remove.
10425 (ppc64_sysv_abi_push_val): New function.
10426 (ppc64_sysv_abi_push_integer): Likewise.
10427 (ppc64_sysv_abi_push_freg): Likewise.
10428 (ppc64_sysv_abi_push_vreg): Likewise.
10429 (ppc64_sysv_abi_push_param): Likewise.
10430 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10431 (ppc64_sysv_abi_return_value_base): New function.
10432 (ppc64_sysv_abi_return_value): Refactor to use it.
10433
36c24d95
UW
104342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10435
10436 * NEWS: Document new target powerpc64le-*-linux*.
10437
26fd9228
MK
104382014-02-04 Mark Kettenis <kettenis@gnu.org>
10439
10440 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10441 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10442 core dumps.
10443 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10444 register set used in ELF core dumps. Add floating-point register set.
10445
c5bb7362
KB
104462014-02-03 Kevin Buettner <kevinb@redhat.com>
10447
74228e77 10448 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10449 dwarf2_to_gdb[] table using symbolic constants. Adjust
10450 penultimate entry from number representing the PC register
10451 to symbolic constant representing the MDR register. Add
10452 constant for the PC register to the end of the table.
10453
af09351e
MK
104542014-02-03 Mark Kettenis <kettenis@gnu.org>
10455
10456 * bsd-kvm.c: Include <sys/param.h>
10457
8507e05d
MK
104582014-02-03 Mark Kettenis <kettenis@gnu.org>
10459
10460 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10461
ae56bfb8
JB
104622014-01-31 Joel Brobecker <brobecker@adacore.com>
10463
10464 * ada-lang.h (clear_ada_sym_cache): Delete.
10465
718ee4dc
UW
104662014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10467
10468 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10469
401e27fd
JM
104702014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10471
10472 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10473 the sigreturn register save area only if the syscall is
10474 sigreturn.
10475
a7c88acd
JB
104762014-01-29 Joel Brobecker <brobecker@adacore.com>
10477
10478 * valops.c (value_slice): Minor reformatting.
10479
fa0079ea
UW
104802014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10481
10482 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10483
c6044dd1
JB
104842014-01-28 Joel Brobecker <brobecker@adacore.com>
10485
10486 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10487 New static globals.
10488 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10489 (ada_ignore_descriptive_types_p): New static global.
10490 (find_parallel_type_by_descriptive_type): Return immediately
10491 if ada_ignore_descriptive_types_p is set.
10492 (_initialize_ada_language): Register new commands "maintenance
10493 set ada", "maintenance show ada", "maintenance set ada
10494 ignore-descriptive-types" and "maintenance show ada
10495 ignore-descriptive-types".
10496 * NEWS: Add entry for new "maint ada set/show
10497 ignore-descriptive-types" commands.
10498
568e808b
MM
104992014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10500
10501 * record-btrace.c (record_btrace_close): Call btrace_teardown
10502 for all threads.
10503
467d141b
JB
105042014-01-27 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10507 "ui-out.h".
10508
fb151210
JB
105092014-01-27 Joel Brobecker <brobecker@adacore.com>
10510
10511 * ada-typeprint (type_is_full_subrange_of_target_type):
10512 New function.
10513 (print_range): Add parameter bounds_prefered_p. If not set,
10514 try printing range types using the name of their base type.
10515 (print_range_type): Add parameter bounds_prefered_p.
10516 Use it in call to print_range.
10517 (print_array_type, ada_print_type): Update calls to print_range
10518 and print_range_type.
10519
aba02109
JB
105202014-01-27 Joel Brobecker <brobecker@adacore.com>
10521
10522 * ada-typeprint.c (print_array_type, print_choices, print_range)
10523 (print_range_bound, print_dynamic_range_bound, print_range_type):
10524 Remove declaration.
10525
e62e21fd
JB
105262014-01-27 Joel Brobecker <brobecker@adacore.com>
10527
10528 * ada-typeprint.c (print_range): Add missing empty line
10529 after local declaration.
10530
859cf5d1
JB
105312014-01-27 Joel Brobecker <brobecker@adacore.com>
10532
10533 * ada-valprint.c (print_optional_low_bound): Get index_type's
10534 target type for as long as it is a TYPE_CODE_RANGE.
10535
25790f6f
JB
105362014-01-27 Joel Brobecker <brobecker@adacore.com>
10537
10538 * procfs.c (procfs_make_note_section): Remove assertion and
10539 associated comment.
10540
6b6aa828
YQ
105412014-01-24 Yao Qi <yao@codesourcery.com>
10542
10543 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10544 * corelow.c (get_core_siginfo): Likewise.
10545
5d6df423
YQ
105462014-01-24 Yao Qi <yao@codesourcery.com>
10547
10548 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10549 ULONGEST. Don't check 'len' is negative.
10550 (remote_write_bytes): Change type of 'len' to ULONGEST.
10551
83b645b8
TT
105522014-01-23 Tom Tromey <tromey@redhat.com>
10553
10554 PR python/16485:
10555 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10556 Handle exception from frame.block.
10557 (FrameVars.fetch_frame_locals): Likewise.
10558
0740f8d8
TT
105592014-01-23 Tom Tromey <tromey@redhat.com>
10560
10561 PR python/16487:
10562 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10563 on a NULL pointer. Move "goto error" to correct place.
10564
21909fa1
TT
105652014-01-23 Tom Tromey <tromey@redhat.com>
10566
10567 PR python/16491:
10568 * python/py-framefilter.c (apply_frame_filter): Call
10569 ensure_python_env after computing gdbarch.
10570
17fde6d0
YQ
105712014-01-23 Yao Qi <yao@codesourcery.com>
10572
10573 * target.c (raw_memory_xfer_partial): Change argument type
10574 from void * to gdb_byte *.
10575 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10576
87ce2a04
DE
105772014-01-22 Doug Evans <dje@google.com>
10578
10579 New gdbserver option --debug-format=timestamp.
10580 * NEWS: Mention it.
10581
237b092b
AA
105822014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10583
10584 * syscalls/s390x-linux.xml: New file.
10585 * syscalls/s390-linux.xml: New file.
10586 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10587 (XML_SYSCALL_FILENAME_S390X): Likewise.
10588 (op_svc): New enum value for SVC opcode.
10589 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10590 (s390_linux_get_syscall_number): New function.
10591 (s390_gdbarch_init): Register '*get_syscall_number' and the
10592 syscall xml file name.
10593 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10594 "s390-linux.xml" and "s390x-linux.xml".
10595 * NEWS: Announce new feature.
10596
54bff650
BS
105972014-01-22 Baruch Siach <baruch@tkos.co.il>
10598
10599 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10600
14e361d7
PA
106012014-01-22 Pedro Alves <palves@redhat.com>
10602
10603 * xtensa-config.c: Include defs.h.
10604
46bbb3ed
JB
106052014-01-22 Joel Brobecker <brobecker@adacore.com>
10606
10607 * common/common-utils.h: Add "ARI:" comment beside __func__
10608 reference.
10609
3a80edfc
JB
106102014-01-22 Joel Brobecker <brobecker@adacore.com>
10611
10612 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10613 documentation a bit.
10614
4869db5e
RM
106152014-01-21 Roland McGrath <mcgrathr@google.com>
10616
10617 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10618 * configure: Regenerate.
10619 * aclocal.m4: Regenerate.
10620 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10621 New substituted variables.
10622 (install-strip): New target.
10623 (INSTALL_SCRIPT): New substituted variable.
10624 (FLAGS_TO_PASS): Add it.
10625 (install-only): Use $(INSTALL_SCRIPT) rather than
10626 $(INSTALL_PROGRAM) for gcore.
10627
9ea4267d
TT
106282014-01-20 Tom Tromey <tromey@redhat.com>
10629
10630 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10631 together.
10632
1f2bdf09
TT
106332014-01-20 Tom Tromey <tromey@redhat.com>
10634
10635 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10636 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10637 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10638 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10639 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10640 (struct cmd_list_element) <flags>: Remove.
10641 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10642 doc_allocated>: New fields.
10643 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10644 bitfields.
10645 * maint.c (maintenance_do_deprecate): Update.
10646 * top.c (execute_command): Update.
10647
e671835b
BS
106482014-01-20 Baruch Siach <baruch@tkos.co.il>
10649
10650 * xtensa-linux-nat.c: Include asm/ptrace.h.
10651
50367cd2
IB
106522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10653
10654 * Makefile.in (SFILES): Add d-support.c.
10655 (COMMON_OBS): Add d-support.o.
10656 * d-lang.h (d_parse_symbol): Add comment, now defined in
10657 d-support.c.
10658 * d-lang.c (parse_call_convention)
10659 (parse_attributes, parse_function_types)
10660 (parse_function_args, parse_type, parse_identifier)
10661 (call_convention_p, d_parse_symbol): Move functions to ...
10662 * d-support.c: ... New file.
10663
ec9f644a
IB
106642014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10665
10666 * d-lang.h (d_parse_symbol): Add declaration.
10667 * d-lang.c (extract_identifiers)
10668 (extract_type_info): Remove functions.
10669 (parse_call_convention, parse_attributes)
10670 (parse_function_types, parse_function_args)
10671 (parse_type, parse_identifier, call_convention_p)
10672 (d_parse_symbol): New functions.
10673 (d_demangle): Use d_parse_symbol to demangle D symbols.
10674
94b1b47e
IB
106752014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10676
10677 * d-lang.h (struct builtin_d_type): New data type.
10678 (builtin_d_type): Add declaration.
10679 * d-lang.c (d_language_arch_info, build_d_types)
10680 (builtin_d_type): New functions.
10681 (enum d_primitive_types): New data type.
10682 (d_language_defn): Change c_language_arch_info to
10683 d_language_arch_info.
10684 (d_type_data): New static variable.
10685 (_initialize_d_language): Initialize d_type_data.
10686
63778547
IB
106872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10688
10689 * d-lang.h (d_main_name): Add declaration.
10690 * d-lang.c (d_main_name): New function.
10691 * symtab.c (find_main_name): Add call to d_main_name.
10692
3271ba66
IB
106932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10694
10695 * d-lang.c (d_language_defn): Change macro_expansion_c to
10696 macro_expansion_no.
10697
d36b3012
IB
106982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10699
10700 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10701
c90a6fb7
SDJ
107022014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10703
10704 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10705 gdb_exception" declaration.
10706 * remote.c (getpkt_or_notif_sane): Likewise.
10707
749234e5
DE
107082014-01-17 Doug Evans <dje@google.com>
10709
10710 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10711 function, contents of dirnames_to_char_ptr_vec_append moved here.
10712 (delim_string_to_char_ptr_vec): New function.
10713 (dirnames_to_char_ptr_vec_append): Rewrite.
10714 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10715
df049a58
DE
107162014-01-17 Doug Evans <dje@google.com>
10717
10718 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10719 and moved here ...
10720 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10721 #include "common-utils.h".
10722 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10723 * common/vec.h (VEC_ASSERT_PASS): Update.
10724 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10725 (MACH_CHECK_ERROR): Update.
10726
69f97648
SM
107272014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10728
10729 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10730 comments.
10731 * gdbarch.h: Regenerate.
10732
98b1cfdc
TT
107332014-01-16 Tom Tromey <tromey@redhat.com>
10734
10735 * value.c (struct value) <regnum>: Move earlier.
10736
77a19445
TT
107372014-01-16 Tom Tromey <tromey@redhat.com>
10738
10739 * remote.c (extended_remote_create_inferior): Rename from
10740 extended_remote_create_inferior_1. Add "ops" argument. Remove
10741 old implementation.
10742
62261490
PA
107432014-01-16 Pedro Alves <palves@redhat.com>
10744
10745 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10746 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10747 the backchain.
10748
4d65956b
DE
107492014-01-16 Doug Evans <dje@google.com>
10750
10751 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10752
52834460
MM
107532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10754
10755 * btrace.h (btrace_thread_flag): New.
10756 (struct btrace_thread_info) <flags>: New.
10757 * record-btrace.c (record_btrace_resume_thread)
10758 (record_btrace_find_thread_to_move, btrace_step_no_history)
10759 (btrace_step_stopped, record_btrace_start_replaying)
10760 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10761 (record_btrace_find_resume_thread): New.
10762 (record_btrace_resume, record_btrace_wait): Extend.
10763 (record_btrace_can_execute_reverse): New.
10764 (record_btrace_open): Fail in non-stop mode.
10765 (record_btrace_set_replay): Split into this, ...
10766 (record_btrace_stop_replaying): ... this, ...
10767 (record_btrace_clear_histories): ... and this.
10768 (init_record_btrace_ops): Init to_can_execute_reverse.
10769 * NEWS: Announce it.
10770
118e6252
MM
107712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10772
10773 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10774 (forward_target_decr_pc_after_break)
10775 (target_decr_pc_after_break): New.
10776 * target.c (forward_target_decr_pc_after_break)
10777 (target_decr_pc_after_break): New.
10778 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10779 instead of gdbarch_decr_pc_after_break.
10780 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10781 instead of gdbarch_decr_pc_after_break.
10782 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10783 instead of gdbarch_decr_pc_after_break.
10784 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10785 instead of gdbarch_decr_pc_after_break.
10786 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10787 instead of gdbarch_decr_pc_after_break.
10788 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10789 instead of gdbarch_decr_pc_after_break.
10790
6e07b1d2
MM
107912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10792
10793 * btrace.c: Include regcache.h.
10794 (btrace_add_pc): New.
10795 (btrace_enable): Call btrace_add_pc.
10796 (btrace_is_empty): New.
10797 * btrace.h (btrace_is_empty): New.
10798 * record-btrace.c (require_btrace, record_btrace_info): Call
10799 btrace_is_empty.
10800
969c39fb
MM
108012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10802
10803 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10804 Support delta reads.
10805 (linux_disable_btrace): Change return type.
10806 * common/linux-btrace.h (linux_read_btrace): Change parameters
10807 and return type to allow error reporting. Update users.
10808 (linux_disable_btrace): Change return type. Update users.
10809 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10810 New.
10811 (btrace_error): New.
10812 (btrace_block) <begin>: Comment on BEGIN == 0.
10813 * btrace.c (btrace_compute_ftrace): Start from the end of
10814 the current trace.
10815 (btrace_stitch_trace, btrace_clear_history): New.
10816 (btrace_fetch): Read delta trace, return if replaying.
10817 (btrace_clear): Move clear history code to btrace_clear_history.
10818 (parse_xml_btrace): Throw an error if parsing failed.
10819 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10820 and return type to allow error reporting.
10821 (target_read_btrace): Change parameters and return type to allow
10822 error reporting.
10823 * target.c (target_read_btrace): Update.
10824 * remote.c (remote_read_btrace): Support delta reads. Pass
10825 errors on.
10826 * NEWS: Announce it.
10827
0b722aec
MM
108282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10829
10830 * record.h (record_btrace_frame_unwind)
10831 (record_btrace_tailcall_frame_unwind): New declarations.
10832 * dwarf2-frame: Include record.h
10833 (dwarf2_frame_cfa): Throw an error for btrace frames.
10834 * record-btrace.c: Include hashtab.h.
10835 (btrace_get_bfun_name): New.
10836 (btrace_call_history): Call btrace_get_bfun_name.
10837 (struct btrace_frame_cache): New.
10838 (bfcache): New.
10839 (bfcache_hash, bfcache_eq, bfcache_new): New.
10840 (btrace_get_frame_function): New.
10841 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10842 (record_btrace_frame_this_id): Compute own id.
10843 (record_btrace_frame_prev_register): Provide PC, throw_error
10844 for all other registers.
10845 (record_btrace_frame_sniffer): Detect btrace frames.
10846 (record_btrace_tailcall_frame_sniffer): New.
10847 (record_btrace_frame_dealloc_cache): New.
10848 (record_btrace_frame_unwind): Add new functions.
10849 (record_btrace_tailcall_frame_unwind): New.
10850 (_initialize_record_btrace): Allocate cache.
10851 * btrace.c (btrace_clear): Call reinit_frame_cache.
10852 * NEWS: Announce it.
10853
066ce621
MM
108542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10855
10856 * record-btrace.c (record_btrace_set_replay)
10857 (record_btrace_goto_begin, record_btrace_goto_end)
10858 (record_btrace_goto): New.
10859 (init_record_btrace_ops): Initialize them.
10860 * NEWS: Announce it.
10861
e2887aa3
MM
108622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10863
10864 * record-btrace.c (record_btrace_find_new_threads)
10865 (record_btrace_thread_alive): New.
10866 (init_record_btrace_ops): Initialize to_find_new_threads and
10867 to_thread_alive.
10868
b2f4cfde
MM
108692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10870
10871 * record-btrace.c (record_btrace_resume): New.
10872 (record_btrace_wait): New.
10873 (init_record_btrace_ops): Initialize to_wait and to_resume.
10874
633785ff
MM
108752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10876
10877 * record-btrace.c (record_btrace_xfer_partial)
10878 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10879 (record_btrace_allow_memory_access): New.
10880 (init_record_btrace_ops): Initialize new methods.
10881 * target.c (raw_memory_xfer_partial): Bail out if target reports
10882 that this memory is not available.
10883
3db08215
MM
108842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10885
10886 * target.h (target_ops) <to_insert_breakpoint>
10887 <to_remove_breakpoint>: Add target_ops parameter.
10888 (forward_target_insert_breakpoint): New.
10889 (forward_target_remove_breakpoint): New.
10890 (memory_remove_breakpoint, memory_insert_breakpoint):
10891 Add target_ops parameter.
10892 * target.c (target_insert_breakpoint): Split into this and ...
10893 (forward_target_insert_breakpoint): ... this.
10894 (target_remove_breakpoint): Split into this and ...
10895 (forward_target_remove_breakpoint): ... this.
10896 (debug_to_insert_breakpoint): Add target_ops parameter.
10897 Call forward_target_insert_breakpoint.
10898 (debug_to_remove_breakpoint): Add target_ops parameter.
10899 Call forward_target_remove_breakpoint.
10900 (update_current_target): Do not inherit or default to_insert_breakpoint
10901 and to_remove_breakpoint.
10902 * corelow.c (ignore): Add target_ops parameter.
10903 * exec.c (ignore): Add target_ops parameter.
10904 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10905 Add target_ops parameter.
10906 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10907 Add target_ops parameter.
10908 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10909 Add target_ops parameter.
10910 * record-full.c (record_full_beneath_to_insert_breakpoint)
10911 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10912 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10913 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10914 (record_full_core_remove_breakpoint): Add target_ops parameter.
10915 Update users.
10916 (record_full_beneath_to_insert_breakpoint_ops)
10917 (record_full_beneath_to_remove_breakpoint_ops)
10918 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10919 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10920 tmp_to_remove_breakpoint_ops,
10921 record_full_beneath_to_insert_breakpoint_ops, and
10922 record_full_beneath_to_remove_breakpoint_ops.
10923 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10924 (m32r_remove_breakpoint): Add target_ops parameter.
10925 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10926 Add target_ops parameter.
10927 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10928 Add target_ops parameter.
10929
cecac1ab
MM
109302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10931 Markus Metzger <markus.t.metzger@intel.com>
10932
10933 * record-btrace.c: Include frame-unwind.h.
10934 (record_btrace_frame_unwind_stop_reason)
10935 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10936 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10937 New.
10938 (init_record_btrace_ops): Install it.
10939
824344ca
MM
109402014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10943 get_prev_frame_1.
10944
32261e52
MM
109452014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10946
10947 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10948 earlier.
10949
ea001bdc
MM
109502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10951
10952 * frame-unwind.c: Include target.h.
10953 (frame_unwind_try_unwinder): New function with code from ...
10954 (frame_unwind_find_by_frame): ... here. New variable
10955 unwinder_from_target, call also target_get_unwinder)
10956 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10957 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10958 * target.h (struct target_ops): New fields to_get_unwinder and
10959 to_get_tailcall_unwinder.
10960 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10961
1f3ef581
MM
109622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10963
10964 * record-btrace.c (record_btrace_fetch_registers)
10965 (record_btrace_store_registers)
10966 (record_btrace_to_prepare_to_store): New.
10967 (init_record_btrace_ops): Add the above.
10968
f32dbf8c
MM
109692014-01-16 Tom Tromey <tromey@redhat.com>
10970
10971 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10972 * target.h (struct target_ops) <to_prepare_to_store>: Add
10973 argument.
10974 (target_prepare_to_store): Add argument.
10975 * target.c (debug_to_prepare_to_store): Add argument.
10976 (update_current_target): Update.
10977 * remote.c (remote_prepare_to_store): Add 'self' argument.
10978 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10979 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10980 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10981 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10982 argument.
10983 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10984 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10985 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10986 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10987 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10988
07bbe694
MM
109892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10990
10991 * btrace.h (replay) <replay>: New.
10992 (btrace_is_replaying): New.
10993 * btrace.c (btrace_clear): Free replay iterator.
10994 (btrace_is_replaying): New.
10995 * record-btrace.c (record_btrace_is_replaying): New.
10996 (record_btrace_info): Print insn number if replaying.
10997 (record_btrace_insn_history): Start at replay position.
10998 (record_btrace_call_history): Start at replay position.
10999 (init_record_btrace_ops): Init to_record_is_replaying.
11000
0688d04e
MM
110012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11002
11003 * record-btrace.c (record_btrace_insn_history_range): Include
11004 end.
11005 (record_btrace_insn_history_from): Adjust range.
11006 (record_btrace_call_history_range): Include
11007 end.
11008 (record_btrace_call_history_from): Adjust range.
11009 * NEWS: Announce changes.
11010
8710b709
MM
110112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * record.h (enum record_print_flag)
11014 <record_print_indent_calls>: New.
11015 * record.c (get_call_history_modifiers): Recognize /c modifier.
11016 (_initialize_record): Document /c modifier.
11017 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11018 Reorder fields. Optionally indent the function name. Update
11019 all users.
11020 * NEWS: Announce changes.
11021
d0fa7535
MM
110222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11023
11024 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11025
5de9129b
MM
110262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11027
11028 * btrace.c (ftrace_new_function): Start counting at one.
11029 * record-btrace.c (record_btrace_info): Adjust number of calls
11030 and insns.
11031 * NEWS: Announce it.
11032
7acbe133
MM
110332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11034
11035 * record-btrace.c (btrace_call_history_insn_range): Print
11036 insn range as [begin, end].
11037
23a7fe75
MM
110382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11039
11040 * btrace.h (struct btrace_func_link): New.
11041 (enum btrace_function_flag): New.
11042 (struct btrace_inst): Rename to ...
11043 (struct btrace_insn): ...this. Update all users.
11044 (struct btrace_func) <ibegin, iend>: Remove.
11045 (struct btrace_func_link): New.
11046 (struct btrace_func): Rename to ...
11047 (struct btrace_function): ...this. Update all users.
11048 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11049 (number, level, flags>: New.
11050 (struct btrace_insn_iterator): Rename to ...
11051 (struct btrace_insn_history): ...this.
11052 Update all users.
11053 (struct btrace_insn_iterator, btrace_call_iterator): New.
11054 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11055 (struct btrace_target_info) <begin, end, level>
11056 <insn_history, call_history>: New.
11057 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11058 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11059 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11060 (btrace_call_number, btrace_call_begin, btrace_call_end)
11061 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11062 (btrace_find_function_by_number, btrace_set_insn_history)
11063 (btrace_set_call_history): New.
11064 * btrace.c (btrace_init_insn_iterator)
11065 (btrace_init_func_iterator, compute_itrace): Remove.
11066 (ftrace_print_function_name, ftrace_print_filename)
11067 (ftrace_skip_file): Change
11068 parameter to const.
11069 (ftrace_init_func): Remove.
11070 (ftrace_debug): Use new btrace_function fields.
11071 (ftrace_function_switched): Also consider gaining and
11072 losing symbol information).
11073 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11074 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11075 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11076 New.
11077 (ftrace_new_function): Move. Remove debug print.
11078 (ftrace_update_lines, ftrace_update_insns): New.
11079 (ftrace_update_function): Check for call, ret, and jump.
11080 (compute_ftrace): Renamed to ...
11081 (btrace_compute_ftrace): ...this. Rewritten to compute call
11082 stack.
11083 (btrace_fetch, btrace_clear): Updated.
11084 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11085 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11086 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11087 (btrace_call_number, btrace_call_begin, btrace_call_end)
11088 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11089 (btrace_find_function_by_number, btrace_set_insn_history)
11090 (btrace_set_call_history): New.
11091 * record-btrace.c (require_btrace): Use new btrace thread
11092 info fields.
11093 (record_btrace_info, btrace_insn_history)
11094 (record_btrace_insn_history, record_btrace_insn_history_range):
11095 Use new btrace thread info fields and new iterator.
11096 (btrace_func_history_src_line): Rename to ...
11097 (btrace_call_history_src_line): ...this. Use new btrace
11098 thread info fields.
11099 (btrace_func_history): Rename to ...
11100 (btrace_call_history): ...this. Use new btrace thread info
11101 fields and new iterator.
11102 (record_btrace_call_history, record_btrace_call_history_range):
11103 Use new btrace thread info fields and new iterator.
11104
8372a7cb
MM
111052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11106
11107 * frame.h (frame_id_build_unavailable_stack_special): New.
11108 * frame.c (frame_id_build_unavailable_stack_special): New.
11109
c2170eef
MM
111102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11111
11112 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11113 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11114 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11115 to gdbarch.
11116 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11117 (i386_insn_is_jump, i386_jmp_p): New.
11118 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11119 insn_is_jump to gdbarch.
11120 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11121 * gdbarch.h: Regenerated.
11122 * gdbarch.c: Regenerated.
11123 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11124 (default_insn_is_jump): New.
11125 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11126 (default_insn_is_jump): New.
11127
864089d2
MM
111282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11129
11130 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11131 Change to ...
11132 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11133 (btrace_read_type) <btrace_read_new>: Change to ...
11134 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11135
ed9edfb5
MM
111362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * common/linux-btrace.c (linux_read_btrace): Free trace from
11139 previous iteration.
11140
fbcbc3fd
DE
111412014-01-15 Doug Evans <dje@google.com>
11142
11143 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11144 uint32_t.
11145
3d548a53
TT
111462014-01-15 Tom Tromey <tromey@redhat.com>
11147
11148 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11149 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11150 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11151 (set_objfile_main_name): New function.
11152 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11153 language_of_main>: New fields.
11154 (set_objfile_main_name): Declare.
11155 * symtab.c (find_main_name): Loop over objfiles to find the main
11156 name and language.
11157 (set_main_name): Now static.
11158 (get_main_info): Add comment.
11159 * symtab.h (set_main_name): Don't declare.
11160
32ac0d11
TT
111612014-01-15 Tom Tromey <tromey@redhat.com>
11162
11163 * symtab.c (main_progspace_key): New global.
11164 (struct main_info): New.
11165 (name_of_main, language_of_main): Remove.
11166 (get_main_info, main_info_cleanup): New function.
11167 (set_main_name, main_name, main_language): Use get_main_info.
11168 (_initialize_symtab): Initialize main_progspace_key.
11169
9e6c82ad
TT
111702014-01-15 Tom Tromey <tromey@redhat.com>
11171
11172 * dbxread.c (process_one_symbol): Update.
11173 * dwarf2read.c (read_partial_die): Update.
11174 * symfile.c (set_initial_language): Call main_language.
11175 * symtab.c (language_of_main): Now static.
11176 (set_main_name): Add 'lang' parameter.
11177 (find_main_name): Update.
11178 (main_language): New function.
11179 (symtab_observer_executable_changed): Update.
11180 * symtab.h (set_main_name): Update.
11181 (language_of_main): Remove.
11182 (main_language): Declare.
11183
6ef55de7
TT
111842014-01-15 Tom Tromey <tromey@redhat.com>
11185
11186 * symfile.c (init_entry_point_info): Use new "initialized" field.
11187 Update.
11188 * objfiles.h (struct entry_point) <initialized>: New field.
11189 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11190 (struct objfile) <ei>: ...here. Remove.
11191 * objfiles.c (entry_point_address_query): Update.
11192
53eddfa6
TT
111932014-01-15 Tom Tromey <tromey@redhat.com>
11194
11195 * objfiles.c (entry_point_address_query): Relocate entry point
11196 address.
11197 (objfile_relocate1): Do not relocate entry point address.
11198 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11199 <the_bfd_section_index>: New field.
11200 * symfile.c (init_entry_point_info): Find the entry point's
11201 section.
11202
d56e56aa
TT
112032014-01-15 Tom Tromey <tromey@redhat.com>
11204
11205 * solib-frv.c (enable_break): Use entry_point_address_query.
11206
33a97bbe
OJ
112072014-01-15 Omair Javaid <omair.javaid@linaro.org>
11208
11209 * NEWS: Add note on improved process record-replay on
11210 arm*-linux* targets.
11211
c6ec2b30
OJ
112122014-01-15 Omair Javaid <omair.javaid@linaro.org>
11213
11214 * arm-tdep.c (enum arm_record_result): New enum.
11215 (arm_record_unsupported_insn): New function.
11216 (arm_record_coproc_data_proc): Removed.
11217 (thumb2_record_ld_st_multiple): New function.
11218 (thumb2_record_ld_st_dual_ex_tbb): New function.
11219 (thumb2_record_data_proc_sreg_mimm): New function.
11220 (thumb2_record_ps_dest_generic): New function.
11221 (thumb2_record_branch_misc_cntrl): New function.
11222 (thumb2_record_str_single_data): New function.
11223 (thumb2_record_ld_mem_hints): New function.
11224 (thumb2_record_ld_word): New function.
11225 (thumb2_record_lmul_lmla_div): New function.
11226 (thumb2_record_decode_insn_handler): New function.
11227 (decode_insn): Add thumb32 instruction handlers.
11228
97dfe206
OJ
112292014-01-15 Omair Javaid <omair.javaid@linaro.org>
11230
11231 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11232 (struct arm_linux_record_tdep): Declare.
11233 (arm_canonicalize_syscall): New function.
11234 (arm_all_but_pc_registers_record): New function.
11235 (arm_linux_syscall_record): New function.
11236 (arm_linux_init_abi): Add syscall recording constructs.
11237 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11238 decoding. (arm_record_coproc_data_proc): Update arm syscall
11239 decoding.
11240 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11241 <arm_syscall_record>: New field.
11242 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11243 gdb_target_obs.
11244
9904a494
OJ
112452014-01-15 Omair Javaid <omair.javaid@linaro.org>
11246
11247 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11248 register for push instruction recording.
11249
f969241e
OJ
112502014-01-15 Omair Javaid <omair.javaid@linaro.org>
11251
11252 * arm-tdep.c (thumb_record_misc): Update to correct logical
11253 error while recording ldm, ldmia and pop instructions.
11254
bfbbec00
OJ
112552014-01-15 Omair Javaid <omair.javaid@linaro.org>
11256
11257 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11258
e40adcc9
PA
112592014-01-15 Pedro Alves <palves@redhat.com>
11260
11261 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11262 (go32_resume, go32_fetch_registers, store_register)
11263 (go32_store_registers, go32_prepare_to_store)
11264 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11265 (go32_create_inferior, go32_can_run, go32_terminal_init)
11266 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11267 declarations.
11268
b0a16e66
TT
112692014-01-15 Tom Tromey <tromey@redhat.com>
11270
11271 * target.h (async_callback_ftype): New typedef.
11272 (struct target_ops) <to_async>: Use it.
11273
bf7105a4
JB
112742014-01-15 Joel Brobecker <brobecker@adacore.com>
11275
11276 * python/py-value.c (get_field_type): Remove unnecessary curly
11277 braces for single-statement if block.
11278
a8f35c2e
JB
112792014-01-15 Joel Brobecker <brobecker@adacore.com>
11280
11281 * python/py-type.c (convert_field): Add missing empty line
11282 after declarations.
11283
bb4142cf
DE
112842014-01-14 Doug Evans <dje@google.com>
11285
11286 * symfile.h (expand_symtabs_matching): Renamed from
11287 expand_partial_symbol_names. Update prototype.
11288 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11289 * symfile.c (expand_symtabs_matching): Renamed from
11290 expand_partial_symbol_names. New args file_matcher, kind.
11291 Rename arg fun to symbol_matcher.
11292 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11293 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11294 ada_expand_partial_symbol_name.
11295 (ada_make_symbol_completion_list): Update to call
11296 expand_symtabs_matching.
11297 (ada_add_global_exceptions): Call expand_symtabs_matching.
11298 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11299 call map_symbol_filenames.
11300 * symtab.c (sources_info): Update to call map_symbol_filenames.
11301 (search_symbols): Call expand_symtabs_matching.
11302 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11303 (default_make_symbol_completion_list_break_on): Update to call
11304 expand_symtabs_matching.
11305 (make_source_files_completion_list): Update to call
11306 map_symbol_filenames.
11307
206f2a57
DE
113082014-01-14 Doug Evans <dje@google.com>
11309
11310 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11311 (expand_symtabs_symbol_matcher_ftype): New typedef.
11312 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11313 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11314 * symfile.c (expand_partial_symbol_names): Update to use
11315 expand_symtabs_symbol_matcher_ftype.
11316 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11317 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11318 Arg name_matcher renamed to symbol_matcher.
11319 * psymtab.c (recursively_search_psymtabs): Update to use
11320 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11321 sym_matcher.
11322 (expand_symtabs_matching_via_partial): Update to use
11323 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11324 Arg name_matcher renamed to symbol_matcher.
11325
540c2971
DE
113262014-01-14 Doug Evans <dje@google.com>
11327
11328 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11329 (map_partial_symbol_filenames): Ditto.
11330 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11331 (map_partial_symbol_filenames): Ditto.
11332 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11333 (map_partial_symbol_filenames): Ditto.
11334 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11335 (map_partial_symbol_filenames): Ditto.
11336 * symtab.c: Delete #include "psymtab.h".
11337
8213266a
PA
113382014-01-14 Pedro Alves <palves@redhat.com>
11339 Tom Tromey <tromey@redhat.com>
11340
11341 * infrun.c (use_displaced_stepping): Use find_record_target
11342 instead of RECORD_IS_USED.
11343 (adjust_pc_after_break): Use record_full_is_used instead of
11344 RECORD_IS_USED.
11345 * record-btrace.c (record_btrace_open): Call record_preopen
11346 instead of checking RECORD_IS_USED.
11347 * record-full.c (record_full_shortname)
11348 (record_full_core_shortname): New globals.
11349 (record_full_is_used): New function.
11350 (find_full_open): Call record_preopen instead of checking
11351 RECORD_IS_USED.
11352 (init_record_full_ops): Set the target's shortname to
11353 record_full_shortname.
11354 (init_record_full_core_ops): Set the target's shortname to
11355 record_full_core_shortname.
11356 * record-full.h (record_full_is_used): Declare.
11357 * record.c (find_record_target): Make extern.
11358 (record_preopen): New function.
11359 * record.h (RECORD_IS_USED): Delete macro.
11360 (find_record_target, record_preopen): Declare functions.
11361
7ec1862d
YQ
113622014-01-14 Yao Qi <yao@codesourcery.com>
11363
11364 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11365 'len''s type to ULONGEST.
11366 (core_xfer_shared_libraries_aix): Likewise.
11367 * gdbarch.c, gdbarch.h: Regenerated.
11368 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11369 Change type of 'len' to ULONGEST.
11370 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11371 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11372
dea80a27
YQ
113732014-01-14 Yao Qi <yao@codesourcery.com>
11374
11375 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11376 type of 'len' to ULONGEST.
11377 (linux_xfer_osdata_processgroups): Likewise.
11378 (linux_xfer_osdata_threads): Likewise.
11379 (linux_xfer_osdata_fds): Likewise.
11380 (linux_xfer_osdata_isockets): Likewise.
11381 (linux_xfer_osdata_shm): Likewise.
11382 (linux_xfer_osdata_sem): Likewise.
11383 (linux_xfer_osdata_msg): Likewise.
11384 (linux_common_xfer_osdata): Likewise.
11385 (struct osdata_type) <getter>: Likewise.
11386 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11387 the declaration.
11388
b55e14c7
YQ
113892014-01-14 Yao Qi <yao@codesourcery.com>
11390
11391 * target.h (target_xfer_partial_ftype): Update.
11392 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11393 ULONGEST.
11394 * aix-thread.c (aix_thread_xfer_partial): Change type of
11395 argument 'len' to ULONGEST.
11396 * auxv.c (procfs_xfer_auxv): Likewise.
11397 (ld_so_xfer_auxv): Likewise.
11398 (memory_xfer_auxv): Likewise.
11399 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11400 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11401 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11402 * corelow.c (core_xfer_partial): Likewise.
11403 * ctf.c (ctf_xfer_partial): Likewise.
11404 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11405 '%u'.
11406 (darwin_read_dyld_info): Likewise.
11407 (darwin_xfer_partial): Likewise.
11408 * exec.c (section_table_xfer_memory_partial): Likewise.
11409 (exec_xfer_partial): Likewise.
11410 * exec.h (section_table_xfer_memory_partial): Update
11411 declaration.
11412 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11413 instead of plongest.
11414 (gnu_xfer_partial): Likewise.
11415 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11416 (ia64_hpux_xfer_solib_got): Likewise.
11417 (ia64_hpux_xfer_partial): Likewise.
11418 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11419 * inf-ptrace.c (inf_ptrace_xfer_partial):
11420 * inf-ttrace.c (inf_ttrace_xfer_partial):
11421 * linux-nat.c (linux_xfer_siginfo): Likewise.
11422 (linux_nat_xfer_partial): Likewise.
11423 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11424 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11425 * monitor.c (monitor_xfer_memory): Likewise.
11426 (monitor_xfer_partial): Likewise.
11427 * procfs.c (procfs_xfer_partial): Likewise.
11428 * record-full.c (record_full_xfer_partial): Likewise.
11429 (record_full_core_xfer_partial): Likewise.
11430 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11431 instead of plongest.
11432 (gdbsim_xfer_partial): Likewise.
11433 * remote.c (remote_xfer_partial): Likewise.
11434 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11435 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11436 declaration.
11437 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11438 (rs6000_xfer_shared_libraries): Likewise.
11439 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11440 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11441 (sparc_xfer_partial): Likewise.
11442 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11443 (spu_xfer_partial): Likewise.
11444 * spu-multiarch.c (spu_xfer_partial): Likewise.
11445 * target.c (target_read_live_memory): Likewise.
11446 (memory_xfer_live_readonly_partial): Likewise.
11447 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11448 (target_xfer_partial, default_xfer_partial): Likewise.
11449 (current_xfer_partial): Likewise.
11450 * tracepoint.c (tfile_xfer_partial): Likewise.
11451 * windows-nat.c (windows_xfer_memory): Likewise. Call
11452 pulongest instead of plongest.
11453 (windows_xfer_partial): Likewise.
11454 (windows_xfer_shared_libraries): Likewise.
11455
05804640
YQ
114562014-01-14 Yao Qi <yao@codesourcery.com>
11457
11458 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11459 target_xfer_partial_ftype.
11460
b5b08fb4
SC
114612014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11462
11463 PR python/15464
11464 PR python/16113
11465 * valops.c (value_struct_elt_bitpos): New function
11466 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11467 object to 'None' if the field name is an empty string ("").
11468 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11469 attribute to look for a field when 'name' is 'None'.
11470 (get_field_type): New function
11471
13aaf454
DE
114722014-01-13 Doug Evans <dje@google.com>
11473
11474 PR symtab/16426
11475 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11476 (try_open_dwop_file): Ditto.
11477 * gdb_bfd.c: #include "vec.h".
11478 (bfdp): New typedef.
11479 (struct gdb_bfd_data): New member included_bfds.
11480 (gdb_bfd_unref): Unref all included bfds.
11481 (gdb_bfd_record_inclusion): New function.
11482 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11483
c2cec97c
TT
114842014-01-13 Tom Tromey <tromey@redhat.com>
11485
11486 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11487
78e5999d
TT
114882014-01-13 Tom Tromey <tromey@redhat.com>
11489
11490 * defs.h (use_windows): Remove.
11491 * gdb.c (main): Update.
11492 * main.c (captured_main, gdb_main): Update.
11493 * main.h (struct captured_main_args) <use_windows>: Remove.
11494 * top.c (use_windows): Remove.
11495
f2052bbe
TT
114962014-01-13 Tom Tromey <tromey@redhat.com>
11497
11498 * defs.h (deprecated_flush_hook): Remove.
11499
fde4f8ed
JK
115002014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11501
11502 PR threads/16216
11503 * linux-thread-db.c (try_thread_db_load): Add parameter
11504 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11505 (try_thread_db_load_from_pdir_1): Move it there from here.
11506 (try_thread_db_load_from_sdir): Update caller.
11507 (try_thread_db_load_from_dir): Move it there from here.
11508
bdf61915
PP
115092014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11510
11511 * regformats/regdat.sh: Always rewrite the register file.
11512
f71e1a8d
PA
115132014-01-13 Pedro Alves <palves@redhat.com>
11514
11515 * Makefile.in (CHECK_HEADERS): New variable.
11516 (check-headers:): New rule.
11517
42c85435
TT
115182014-01-13 Tom Tromey <tromey@redhat.com>
11519
11520 * cli/cli-setshow.c (do_set_command): Update.
11521 * defs.h (deprecated_set_hook): Remove.
11522 * top.c (deprecated_set_hook): Remove.
11523
f8de5129
PA
115242014-01-13 Pedro Alves <palves@redhat.com>
11525
11526 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11527 the tracepoint if the PC is a pseudo-register.
11528
fc270c35
TT
115292014-01-13 Tom Tromey <tromey@redhat.com>
11530
11531 * defs.h (XCALLOC): Remove.
11532 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11533 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11534 * dwarf2loc.c (allocate_piece_closure): Likewise.
11535 * elfread.c (elf_symfile_segments): Likewise.
11536 (elf_symfile_segments): Likewise.
11537 * gdbtypes.c (copy_type_recursive): Likewise.
11538 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11539 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11540 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11541 XCALLOC.
11542 * mt-tdep.c (mt_gdbarch_init): Likewise.
11543 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11544 XCALLOC.
11545 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11546 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11547 * registry.c (registry_alloc_data): Likewise.
11548 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11549 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11550 * serial.c (serial_fdopen_ops): Likewise.
11551 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11552 XCALLOC.
11553 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11554 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11555 not XCALLOC.
11556
70ba0933
TT
115572014-01-13 Tom Tromey <tromey@redhat.com>
11558
11559 * defs.h (XMALLOC): Remove.
11560 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11561 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11562 * cli-out.c (struct ui_out *): Likewise.
11563 * cli/cli-dump.c (add_dump_command): Likewise.
11564 (add_dump_command): Likewise.
11565 * complaints.c (get_complaints): Likewise.
11566 (find_complaint): Likewise.
11567 * dwarf2-frame.c (execute_cfa_program): Likewise.
11568 * dwarf2read.c (abbrev_table_read_table): Likewise.
11569 * gdbarch.sh: Likewise.
11570 * gdbarch.c: Rebuild.
11571 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11572 * interps.c (interp_new): Likewise.
11573 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11574 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11575 * mi/mi-console.c (mi_console_file_new): Likewise.
11576 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11577 * mi/mi-out.c (mi_out_new): Likewise.
11578 * mi/mi-parse.c (mi_parse): Likewise.
11579 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11580 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11581 * observer.c (xalloc_observer_list_node): Likewise.
11582 * regcache.c (regcache_xmalloc_1): Likewise.
11583 * reggroups.c (reggroup_new): Likewise.
11584 (_initialize_reggroup): Likewise.
11585 * registry.c (register_data_with_cleanup): Likewise.
11586 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11587 * ser-base.c (serial_ttystate): Likewise.
11588 * ser-mingw.c (make_pipe_state): Likewise.
11589 * ser-pipe.c (pipe_open): Likewise.
11590 * serial.c (serial_open): Likewise.
11591 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11592 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11593 (tui_alloc_win_info): Likewise.
11594 (tui_add_content_elements): Likewise.
11595 * tui/tui-file.c (tui_file_new): Likewise.
11596 * tui/tui-out.c (tui_out_new): Likewise.
11597 * ui-file.c (mem_file_new): Likewise.
11598 * ui-out.c (push_level): Likewise.
11599 (make_cleanup_ui_out_end): Likewise.
11600 (append_header_to_list): Likewise.
11601 (ui_out_new): Likewise.
11602 * user-regs.c (user_reg_add_builtin): Likewise.
11603
41bf6aca
TT
116042014-01-13 Tom Tromey <tromey@redhat.com>
11605
11606 * defs.h (XZALLOC): Remove.
11607 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11608 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11609 (get_ada_tasks_inferior_data): Likewise.
11610 * auto-load.c (get_auto_load_pspace_data): Likewise.
11611 * auxv.c (get_auxv_inferior_data): Likewise.
11612 * bfd-target.c (target_bfd_reopen): Likewise.
11613 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11614 (deprecated_insert_raw_breakpoint): Likewise.
11615 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11616 * corelow.c (core_open): Likewise.
11617 * darwin-nat.c (darwin_check_new_threads): Likewise.
11618 (darwin_attach_pid): Likewise.
11619 * dummy-frame.c (dummy_frame_push): Likewise.
11620 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11621 * dwarf2loc.c (allocate_piece_closure): Likewise.
11622 * elfread.c (elf_symfile_segments): Likewise.
11623 * eval.c (ptrmath_type_p): Likewise.
11624 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11625 * gdbtypes.c (alloc_type_arch): Likewise.
11626 (alloc_type_instance): Likewise.
11627 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11628 * inf-child.c (inf_child_can_use_agent): Likewise.
11629 * inflow.c (get_inflow_inferior_data): Likewise.
11630 * infrun.c (save_infcall_suspend_state): Likewise.
11631 * jit.c (jit_reader_load): Likewise.
11632 (get_jit_objfile_data): Likewise.
11633 (get_jit_program_space_data): Likewise.
11634 (jit_object_open_impl): Likewise.
11635 (jit_symtab_open_impl): Likewise.
11636 (jit_block_open_impl): Likewise.
11637 (jit_frame_sniffer): Likewise.
11638 * linux-fork.c (add_fork): Likewise.
11639 * maint.c (make_command_stats_cleanup): Likewise.
11640 * objfiles.c (get_objfile_pspace_data): Likewise.
11641 * opencl-lang.c (struct lval_closure): Likewise.
11642 * osdata.c (osdata_start_osdata): Likewise.
11643 * progspace.c (new_address_space): Likewise.
11644 (add_program_space): Likewise.
11645 * remote-sim.c (get_sim_inferior_data): Likewise.
11646 * sh-tdep.c (sh_gdbarch_init): Likewise.
11647 * skip.c (Ignore): Likewise.
11648 (skip_delete_command): Likewise.
11649 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11650 (library_list_start_library): Likewise.
11651 (solib_aix_current_sos): Likewise.
11652 * solib-darwin.c (get_darwin_info): Likewise.
11653 (darwin_current_sos): Likewise.
11654 * solib-dsbt.c (get_dsbt_info): Likewise.
11655 * solib-ia64-hpux.c (new_so_list): Likewise.
11656 (ia64_hpux_get_solib_linkage_addr): Likewise.
11657 * solib-spu.c (append_ocl_sos): Likewise.
11658 (spu_current_sos): Likewise.
11659 * solib-svr4.c (get_svr4_info): Likewise.
11660 (svr4_keep_data_in_core): Likewise.
11661 (library_list_start_library): Likewise.
11662 (svr4_default_sos): Likewise.
11663 (svr4_read_so_list): Likewise.
11664 * solib-target.c (library_list_start_library): Likewise.
11665 (solib_target_current_sos): Likewise.
11666 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11667 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11668 * symfile.c (default_symfile_segments): Likewise.
11669 * target-descriptions.c (tdesc_data_init): Likewise.
11670 (tdesc_create_reg): Likewise.
11671 (struct tdesc_type *): Likewise.
11672 (tdesc_create_vector): Likewise.
11673 (tdesc_set_struct_size): Likewise.
11674 (struct tdesc_type *): Likewise.
11675 (tdesc_free_feature): Likewise.
11676 (tdesc_create_feature): Likewise.
11677 * windows-nat.c (windows_add_thread): Likewise.
11678 (windows_make_so): Likewise.
11679 * xml-support.c (gdb_xml_body_text): Likewise.
11680 (gdb_xml_create_parser_and_cleanup): Likewise.
11681 (xml_process_xincludes): Likewise.
11682 * xml-syscall.c (allocate_syscalls_info): Likewise.
11683 (syscall_create_syscall_desc): Likewise.
11684
5acfdbae
SDJ
116852014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11686
11687 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11688 function, with code from i386_stap_parse_special_token.
11689 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11690 (i386_stap_parse_special_token): Move code to the two functions
11691 above; simplify it.
11692
0000e5cc
PA
116932014-01-09 Pedro Alves <palves@redhat.com>
11694 Hui Zhu <hui@codesourcery.com>
11695
11696 PR gdb/16101
11697 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11698 bp_err_string. Don't mark the location shlib_disabled if the
11699 error thrown wasn't a generic or memory error. Catch errors
11700 thrown while inserting breakpoints in overlayed code. Output
11701 error message of software breakpoints.
11702 * remote.c (remote_insert_breakpoint): If this breakpoint has
11703 target-side commands but this stub doesn't support Z0 packets,
11704 throw NOT_SUPPORTED_ERROR error.
11705 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11706 * target.h (target_insert_breakpoint): Extend comment.
11707 (target_insert_hw_breakpoint): Add comment.
11708
b7ea362b
PA
117092014-01-08 Pedro Alves <palves@redhat.com>
11710
11711 * remote.c (remote_add_thread): Add threads silently if starting
11712 up.
11713 (remote_notice_new_inferior): If in all-stop, and starting up,
11714 don't call notice_new_inferior.
11715 (get_current_thread): New function, factored out from ...
11716 (add_current_inferior_and_thread): ... this. Adjust.
11717 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11718 found any thread, then select the remote's current thread as GDB's
11719 current thread too.
11720
b7bba001
JB
117212014-01-08 Joel Brobecker <brobecker@adacore.com>
11722
11723 * NEWS: Create a new section for the next release branch.
11724 Rename the section of the current branch, now that it has
11725 been cut.
11726
16dfbded
JB
117272014-01-08 Joel Brobecker <brobecker@adacore.com>
11728
11729 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11730 * version.in: Bump version to 7.7.50.DATE-cvs.
11731
22c90ac1
YQ
117322014-01-08 Yao Qi <yao@codesourcery.com>
11733
11734 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11735 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11736 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11737
d64ad97c
YQ
117382014-01-08 Yao Qi <yao@codesourcery.com>
11739
11740 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11741 return value of bfd_get_filename to symbol_file_add_from_bfd.
11742
f93ba80c
PM
117432014-01-08 Pierre Muller <muller@sourceware.org>
11744
11745 Fix PR16201.
11746 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11747 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11748 to prim_record_mininal_symbol_and_info.
11749 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11750 in call to prim_record_minimal_symbol_and_info.
11751 (read_pe_exported_syms): Set index field of section_data.
11752
a4d9ba85
AP
117532014-01-07 Andrew Pinski <apinski@cavium.com>
11754
11755 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11756 * features/aarch64.c: Regenerate.
11757
1b67eb02
AS
117582014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11759
11760 * target.c (return_null): Define.
11761 (update_current_target): Use it instead of return_zero for
11762 functions that return a pointer.
11763
5e3f4fab
EBM
117642014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11765
11766 * source.c (add_path): Fix check for duplicated paths in the previously
11767 included paths.
11768
e2616788
HK
117692014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11770
11771 * ada-lang.c: Remove duplicated include statements.
11772 * alphabsd-nat.c: Ditto.
11773 * amd64-darwin-tdep.c: Ditto.
11774 * amd64fbsd-nat.c: Ditto.
11775 * auto-load.c: Ditto.
11776 * ax-gdb.c: Ditto.
11777 * breakpoint.c: Ditto.
11778 * dbxread.c: Ditto.
11779 * fork-child.c: Ditto.
11780 * gdb_usleep.c: Ditto.
11781 * i386-darwin-tdep.c: Ditto.
11782 * i386fbsd-nat.c: Ditto.
11783 * infcmd.c: Ditto.
11784 * inferior.c: Ditto.
11785 * jv-lang.c: Ditto.
11786 * linux-nat.c: Ditto.
11787 * linux-tdep.c: Ditto.
11788 * m68kbsd-nat.c: Ditto.
11789 * m68klinux-nat.c: Ditto.
11790 * microblaze-tdep.c: Ditto.
11791 * mips-linux-tdep.c: Ditto.
11792 * mn10300-tdep.c: Ditto.
11793 * nto-tdep.c: Ditto.
11794 * opencl-lang.c: Ditto.
11795 * osdata.c: Ditto.
11796 * printcmd.c: Ditto.
11797 * regcache.c: Ditto.
11798 * remote-m32r-sdi.c: Ditto.
11799 * remote.c: Ditto.
11800 * symfile.c: Ditto.
11801 * symtab.c: Ditto.
11802 * tilegx-linux-nat.c: Ditto.
11803 * tilegx-tdep.c: Ditto.
11804 * tracepoint.c: Ditto.
11805 * valops.c: Ditto.
11806 * vaxbsd-nat.c: Ditto.
11807 * windows-nat.c: Ditto.
11808 * xtensa-tdep.c: Ditto.
11809
bd1f7788
YQ
118102014-01-07 Yao Qi <yao@codesourcery.com>
11811
11812 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11813
79301218
JB
118142014-01-07 Yao Qi <yao@codesourcery.com>
11815 Joel Brobecker <brobecker@adacore.com>
11816
11817 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11818 (pdc_write_regs): Likewise.
11819 (fetch_regs_kernel_thread): Likewise.
11820 (store_regs_kernel_thread): Likewise.
11821
118222014-01-07 Joel Brobecker <brobecker@adacore.com>
11823
11824 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11825 tagged type objects to their actual type.
11826
8e355c5d
JB
118272014-01-07 Joel Brobecker <brobecker@adacore.com>
11828
11829 * ada-valprint.c (print_field_values): Add "language" parameter.
11830 Update calls to print_field_values and print_variant_part.
11831 Pass new parameter "language" in call to val_print instead
11832 of "current_language". Replace call to ada_val_print by call
11833 to val_print.
11834 (print_variant_part): Add "language" parameter.
11835 (ada_val_print_struct_union): Update call to print_field_values.
11836
4fbf5aa5
JB
118372014-01-07 Joel Brobecker <brobecker@adacore.com>
11838
11839 * ada-valprint.c (ui_memcpy): Delete.
11840 (ada_print_floating): Update documentation. Add empty line
11841 between between function documentation and implementation.
11842 Delete variable "buffer". Use ui_file_xstrdup in place of
11843 ui_file_put. Minor adjustments following this change.
11844
71855601
JB
118452014-01-07 Joel Brobecker <brobecker@adacore.com>
11846
11847 * ada-valprint.c (ada_val_print_string): New function,
11848 extracted from ada_val_print_array.
11849 (ada_val_print_array): Replace extracted code by call
11850 to ada_val_print_string followed by a return. Move
11851 "else" branch to the function's top block.
11852
4eb27a30
JB
118532014-01-07 Joel Brobecker <brobecker@adacore.com>
11854
11855 * ada-valprint.c (ada_val_print_array): Move implementation
11856 down. Rename parameter "offset" and "val" into "offset_aligned"
11857 and "original_value" respectively. Add parameter "offset".
11858
34b27950
JB
118592014-01-07 Joel Brobecker <brobecker@adacore.com>
11860
11861 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11862 re-organizing the code. Change the "???" message printed
11863 when target type is a TYPE_CODE_UNDEF into
11864 "<ref to undefined type>".
11865
079e4591
JB
118662014-01-07 Joel Brobecker <brobecker@adacore.com>
11867
11868 * ada-valprint.c (print_record): Delete, implementation inlined...
11869 (ada_val_print_struct_union): ... here. Remove call to
11870 ada_check_typedef in inlined implementation.
11871
8004dfd1
JB
118722014-01-07 Joel Brobecker <brobecker@adacore.com>
11873
11874 * ada-valprint.c (ada_val_print_gnat_array): New function,
11875 extracted from ada_val_print_1;
11876 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11877 (ada_val_print_flt, ada_val_print_struct_union)
11878 (ada_val_print_ref): Likewise.
11879 (ada_val_print_1): Delete variables i and elttype.
11880 Replace extracted-out code by call to corresponding
11881 new functions.
11882
760a2db0
JB
118832014-01-07 Joel Brobecker <brobecker@adacore.com>
11884
11885 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11886
3a92c861
JB
118872014-01-07 Joel Brobecker <brobecker@adacore.com>
11888
11889 * ada-valprint.c (ada_val_print_1): Replace calls to
11890 ada_val_print_1 by calls to val_print.
11891
cd1630f9
JB
118922014-01-07 Joel Brobecker <brobecker@adacore.com>
11893
11894 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11895 Update calls to self accordingly. Replace calls to c_val_print
11896 by calls to val_print.
11897
bdf779a0
JB
118982014-01-07 Joel Brobecker <brobecker@adacore.com>
11899
11900 * ada-valprint.c (print_record): Delete declaration.
11901 (adjust_type_signedness, ada_val_print_1): Likewise.
11902 (ada_val_print): Move function implementation down.
11903 (print_variant_part, print_field_values, print_record):
11904 Move function implementation up.
11905
c0d48811
JB
119062014-01-07 Joel Brobecker <brobecker@adacore.com>
11907
11908 * python/py-type.c (typy_get_name): New function.
11909 (type_object_getset): Add entry for attribute "name".
11910 * NEWS: Add entry mentioning this new attribute.
11911
c26e9cbb
YQ
119122014-01-07 Yao Qi <yao@codesourcery.com>
11913
11914 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11915 statement.
11916
0cc6f43d
YQ
119172014-01-07 Yao Qi <yao@codesourcery.com>
11918
11919 * gnu-nat.c (info_port_rights): Add qualifier const to
11920 argument args.
11921
eec03155
YQ
119222014-01-07 Yao Qi <yao@codesourcery.com>
11923
11924 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11925
f04a82ef
YQ
119262014-01-07 Yao Qi <yao@codesourcery.com>
11927
11928 * gnu-nat.c (make_inf) Update declaration.
11929 (make_inf): Make it static.
11930 (inf_set_traced): Likewise.
11931 (inf_port_to_thread, inf_task_died_status): Likewise.
11932
d57dda0a
YQ
119332014-01-07 Yao Qi <yao@codesourcery.com>
11934
11935 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11936
3aa8c969
YQ
119372014-01-07 Yao Qi <yao@codesourcery.com>
11938
11939 * gnu-nat.c (_initialize_gnu_nat): Declare.
11940
94123b4f
YQ
119412014-01-07 Yao Qi <yao@codesourcery.com>
11942
11943 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11944 'enum bfd_endian'.
11945 (struct gdbarch_info) <byte_order>: Change type to
11946 'enum bfd_endian'.
11947 <byte_order_for_code>: Likewise.
11948 * gdbarch.c, gdbarch.h: Regenerated.
11949
dc81d70a
TT
119502014-01-06 Sasha Smundak <asmundak@google.com>
11951
11952 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11953
cc2f3c35
TT
119542014-01-06 Tom Tromey <tromey@redhat.com>
11955
11956 * doublest.c (convert_doublest_to_floatformat): Use const, not
11957 CONST.
11958 * somread.c (som_symtab_read): Likewise.
11959
adcf2eed
HZ
119602014-01-07 Hui Zhu <hui@codesourcery.com>
11961
11962 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11963 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11964 (gdb_bfd_fopen): Ditto.
11965 (gdb_bfd_openr): Ditto.
11966 (gdb_bfd_openw): Ditto.
11967 (gdb_bfd_openr_iovec): Ditto.
11968 (gdb_bfd_fdopenr): Ditto.
11969 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11970 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11971 with xstrdup.
11972 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11973 with xstrdup.
11974 * symfile-mem.c (symbol_file_add_from_memory): Removed
11975 gdb_bfd_stash_filename.
11976
50722198
DE
119772014-01-03 Doug Evans <dje@google.com>
11978
11979 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11980 output.
11981
2fa4b862
JB
119822014-01-01 Joel Brobecker <brobecker@adacore.com>
11983
11984 Update year range in copyright notice of all files.
11985
28498c42
JB
119862014-01-01 Joel Brobecker <brobecker@adacore.com>
11987
11988 * top.c (print_gdb_version): Set copyright year to 2014.
11989
7b6e1046
JB
119902014-01-01 Joel Brobecker <brobecker@adacore.com>
11991
11992 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11993
df96af55 11994For older changes see ChangeLog-2013.
c906108c
SS
11995\f
11996Local Variables:
11997mode: change-log
11998left-margin: 8
11999fill-column: 74
12000version-control: never
57da7796 12001coding: utf-8
c906108c 12002End:
This page took 2.18457 seconds and 4 git commands to generate.