1 2014-08-19 Alan Modra <amodra@gmail.com>
3 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4 * config.in: Regenerate.
5 * configure: Regenerate.
7 2014-08-19 Tom Tromey <tromey@redhat.com>
8 Gary Benson <gbenson@redhat.com>
10 * common/common-debug.h: New file.
11 * common/common-debug.c: Likewise.
13 * Makefile.in (SFILES): Add common/common-debug.c.
14 (HFILES_NO_SRCDIR): Add common/common-debug.h.
15 (COMMON_OBS): Add common-debug.o and debug.o.
16 (common-debug.o): New rule.
17 * common/common-defs.h: Include common-debug.h.
18 * common/agent.c (debug_agent_printf): New function.
19 (DEBUG_AGENT): Redefine.
20 * nat/i386-dregs.c (debug_printf): Undefine.
22 2014-08-19 Gary Benson <gbenson@redhat.com>
24 * common/common-defs.h: Include print-utils.h.
25 * utils.h: Do not include print-utils.h.
27 2014-08-19 Tom Tromey <tromey@redhat.com>
28 Gary Benson <gbenson@redhat.com>
30 * common/common-types.h: New file.
31 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
32 * common/common-defs.h: Include common-types.h.
33 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
36 2014-08-19 Tom Tromey <tromey@redhat.com>
37 Gary Benson <gbenson@redhat.com>
39 * common/errors.h: New file.
40 * common/errors.c: Likewise.
41 * Makefile.in (SFILES): Add common/errors.c.
42 (HFILES_NO_SRCDIR): Add common/errors.h.
43 (COMMON_OBS): Add errors.o.
45 * common/common-defs.h: Include errors.h.
46 * utils.h (perror_with_name, error, verror, warning, vwarning):
48 * common/common-utils.h: (malloc_failure, internal_error):
51 2014-08-19 Gary Benson <gbenson@redhat.com>
53 * utils.c (internal_vproblem): Always print the message.
55 2014-08-18 Doug Evans <dje@google.com>
57 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
59 2014-08-18 Joel Brobecker <brobecker@adacore.com>
61 * ada-typeprint.c (type_is_full_subrange_of_target_type):
62 Return 0 if TYPE is dynamic.
63 (print_range): Add handling of dynamic ranges.
65 2014-08-18 Keven Boell <keven.boell@intel.com>
66 Joel Brobecker <brobecker@adacore.com>
68 * gdbtypes.h (struct main_type): Add field "data_location".
69 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
70 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
71 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
72 a dynamic data location.
73 (resolve_dynamic_type): Add DW_AT_data_location handling.
74 (copy_recursive, copy_type): Copy the data_location information
76 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
77 * value.c (value_from_contents_and_address): Add
78 DW_AT_data_location handling.
80 2014-08-18 Keven Boell <keven.boell@intel.com>
81 Joel Brobecker <brobecker@adacore.com>
83 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
84 field "get_object_address".
85 * dwarf2expr.c (execute_stack_op): Add handling for
86 DW_OP_push_object_address.
87 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
88 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
89 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
90 (dwarf_expr_get_obj_addr): New function.
91 (dwarf_expr_ctx_funcs): Add get_object_address field.
92 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
93 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
94 (dwarf2_evaluate_property): Add parameter "address". Use it.
95 (needs_get_obj_addr): New function.
96 (needs_frame_ctx_funcs): Add get_object_address field.
97 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
98 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
99 (resolve_dynamic_array): Likewise.
101 2014-08-18 Joel Brobecker <brobecker@adacore.com>
103 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
104 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
105 fixed value for records and unions for which some GNAT encodings
108 2014-08-18 Joel Brobecker <brobecker@adacore.com>
110 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
111 rewrite to avoid "else if" and "else" constructs. Should be
114 2014-08-18 Joel Brobecker <brobecker@adacore.com>
116 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
119 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
122 * eval.c: Update all calls to find_overload_match.
123 * valarith.c: Likewise.
124 (value_user_defined_cpp_op, value_user_defined_op): New
125 argument NOSIDE. Update all callers.
126 * valops.c (find_overload_match): New argument NOSIDE.
127 * value.h (find_overload_match): Update signature.
129 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
131 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
132 'items' methods instead of 'iteritems' method on dictionaries.
134 2014-08-15 Doug Evans <dje@google.com>
136 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
139 2014-08-15 Doug Evans <dje@google.com>
141 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
143 2014-08-15 Doug Evans <dje@google.com>
145 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
147 2014-08-15 Doug Evans <dje@google.com>
149 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
152 2014-08-15 Eli Zaretskii <eliz@gnu.org>
154 * dcache.h: Include target.h, to avoid compile time warnings.
156 2014-08-15 Joel Brobecker <brobecker@adacore.com>
158 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
159 frame_info" partial declaration.
160 * gdbarch.h: Regenerate.
162 2014-08-15 Yao Qi <yao@codesourcery.com>
164 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
165 Add parameter 'decode_for_pst_p'. Callers update.
167 2014-08-13 Yao Qi <yao@codesourcery.com>
170 * configure.ac: Use local variable 'pos'.
171 * configure: Regenerated.
173 2014-08-11 Doug Evans <dje@google.com>
175 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
176 message, it is redundant with "Reading symbols from ..." message.
178 2014-08-10 Doug Evans <xdje42@gmail.com>
180 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
182 2014-08-09 Yao Qi <yao@codesourcery.com>
185 * remote.c (remote_xfer_partial): Remove dead code.
187 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
189 * ia64-linux-tdep.c: Include "regset.h".
190 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
191 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
192 (ia64_linux_supply_fpregset): New function.
193 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
194 (ia64_linux_regset_from_core_section): New function.
195 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
198 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
200 * m68klinux-tdep.c: Include "regset.h".
201 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
202 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
203 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
204 (m68k_linux_regset_from_core_section): New function.
205 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
208 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
210 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
211 function. Move logic to...
212 (tilegx_linux_regmap): ... this new register map.
213 (tilegx_linux_regset): Refer to register map, replace supply
214 method by regcache_supply_regset, and add collect method.
215 * tilegx-tdep.h (enum tilegx_regnum): New enum value
216 TILEGX_FIRST_EASY_REGNUM.
218 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
220 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
221 that calls regcache_supply_regset and handles the EPC register
222 separately. Move main logic to...
223 (score7_linux_gregmap): ... this new register map.
224 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
225 (score7_linux_gregset): Refer to register map. Add collect method.
226 (score7_linux_regset_from_core_section): Replace
227 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
228 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
229 (struct regset): Delete unused forward declaraction.
230 (struct pt_regs): Delete structure definition.
231 (elf_gregset_t): Delete typedef.
233 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
235 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
236 (nios2_core_regset): Add collect method.
238 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
240 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
241 platform-independent and don't write to read-only input buffer.
242 (m32r_linux_collect_gregset): New function.
243 (m32r_linux_gregset): Add collect method.
245 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
247 * hppa-linux-tdep.c (greg_map): Rename to...
248 (hppa_linux_gregmap): ... this. Also convert to
249 regcache_map_entry format.
250 (hppa_linux_supply_regset): Delete function.
251 (hppa_linux_supply_fpregset): Delete function. Move logic to...
252 (hppa_linux_fpregmap): ... this new register map.
253 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
254 register map, replace supply method by regcache_supply_regset, and
255 add collect method regcache_collect_regset.
257 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
259 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
260 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
261 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
262 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
263 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
264 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
265 (frv_linux_supply_gregset): Replace main logic by call to
266 regcache_supply_regset, but keep clearing gr32-gr63.
267 (frv_linux_supply_fpregset): Delete function.
268 (frv_linux_gregset): Refer to appropriate register map and add
269 regcache_collect_regset as the collect method.
270 (frv_linux_fpregset): Likewise. Also exchange the supply method
271 by regcache_supply_regset.
273 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
275 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
276 by call to alpha_supply_int_regs.
277 (alpha_linux_collect_gregset): New function.
278 (alpha_linux_supply_fpregset): Replace logic by call to
279 alpha_supply_fp_regs.
280 (alpha_linux_collect_fpregset): New function.
281 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
283 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
285 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
286 by call to regcache_collect_regset.
287 (supply_gregset, supply_fpregset): Call regcache_supply_regset
288 instead of aarch64_linux_supply_gregset/_fpregset.
289 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
290 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
292 (aarch64_linux_supply_gregset, supply_gregset_from_core)
293 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
294 functions. Move logic to ...
295 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
297 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
298 refer to new register maps, replace *_regset_from_core by
299 regcache_supply_regset, and also use regcache_collect_regset.
300 * aarch64-linux-tdep.h: Include "regset.h".
301 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
303 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
304 macros, moved from C source file.
305 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
306 variable declarations.
308 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
310 * s390-linux-nat.c: Include "regset.h".
311 (regmap_gregset): Delete macro.
312 (s390_64_regmap_gregset): New register map for
313 regcache_supply/_collect_regset.
314 (s390_64_gregset): New regset.
315 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
316 (regmap_fpregset): Delete macro.
317 (s390_native_supply, s390_native_collect): Delete functions.
318 (supply_gregset, fill_gregset): Replace s390-specific regmap
319 handling by a call to regcache_supply/_collect_regset.
320 (supply_fpregset, fill_fpregset): Call regcache_supply/
321 _collect_regset instead of s390_native_supply/_collect.
322 (fetch_regset, store_regset): Likewise. Also change the last
323 parameter to a regset instead of a regmap.
324 (s390_linux_fetch_inferior_registers)
325 (390_linux_store_inferior_registers): Adjust last parameter in
326 calls to fetch_regset and store_regset.
327 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
328 (s390_gregmap): ... this. Also make static const and convert to
329 regcache_map_entry format.
330 (s390x_regmap_gregset): Delete.
331 (s390_regmap_fpregset): Rename to...
332 (s390_fpregmap): ... this. Make static const and convert to
333 regcache_map_entry format.
334 (s390_regmap_upper, s390_regmap_last_break)
335 (s390x_regmap_last_break, s390_regmap_system_call)
336 (s390_regmap_tdb): Likewise.
337 (s390_supply_regset, s390_collect_regset): Remove functions.
338 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
340 (s390_gregset, s390_fpregset, s390_upper_regset)
341 (s390_last_break_regset, s390x_last_break_regset)
342 (s390_system_call_regset, s390_tdb_regset): Make global and
343 replace s390_supply/_collect_regset by regcache_supply/
345 (s390x_gregset): Delete.
346 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
347 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
348 (s390_regmap_fpregset, s390_regmap_last_break)
349 (s390x_regmap_last_break, s390_regmap_system_call)
350 (s390_regmap_tdb): Delete global variable declarations.
351 (s390_gregset, s390_fpregset, s390_last_break_regset)
352 (s390x_last_break_regset, s390_system_call_regset)
353 (s390_tdb_regset): New global variable declarations.
355 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
357 * regcache.c: Include "regset.h".
358 (regcache_transfer_regset): New local function.
359 (regcache_supply_regset, regcache_collect_regset): New functions.
360 * regcache.h (struct regcache_map_entry): New structure.
361 (REGCACHE_MAP_SKIP): New enum value.
362 (regcache_supply_regset, regcache_collect_regset): New prototypes.
364 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
366 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
367 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
368 (ppc_linux_collect_gregset ): Likewise.
369 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
370 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
371 (ppc_collect_vrregset): Likewise.
372 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
375 2014-08-07 Yao Qi <yao@codesourcery.com>
377 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
378 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
379 * remote.c (remote_read_bytes): Likewise.
381 2014-08-07 Yao Qi <yao@codesourcery.com>
383 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
385 2014-08-07 Yao Qi <yao@codesourcery.com>
388 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
389 TARGET_XFER_OK instead of 0.
391 2014-08-07 Gary Benson <gbenson@redhat.com>
393 * common/common-defs.h: Include errno.h.
394 * defs.h: Do not include errno.h.
395 * ada-typeprint.c: Likewise.
396 * c-typeprint.c: Likewise.
397 * core-regset.c: Likewise.
398 * corefile.c: Likewise.
399 * corelow.c: Likewise.
400 * event-loop.c: Likewise.
401 * f-typeprint.c: Likewise.
402 * gnu-nat.c: Likewise.
403 * go32-nat.c: Likewise.
404 * i386gnu-nat.c: Likewise.
405 * m2-typeprint.c: Likewise.
406 * nat/linux-btrace.c: Likewise.
407 * p-typeprint.c: Likewise.
408 * procfs.c: Likewise.
409 * remote-sim.c: Likewise.
410 * rs6000-nat.c: Likewise.
411 * target.c: Likewise.
412 * typeprint.c: Likewise.
413 * ui-file.c: Likewise.
414 * valops.c: Likewise.
415 * valprint.c: Likewise.
417 2014-08-07 Gary Benson <gbenson@redhat.com>
419 * common/common-defs.h: Include string.h.
420 * aarch64-tdep.c: Do not include string.h.
421 * ada-exp.y: Likewise.
422 * ada-lang.c: Likewise.
423 * ada-lex.l: Likewise.
424 * ada-typeprint.c: Likewise.
425 * ada-valprint.c: Likewise.
426 * aix-thread.c: Likewise.
427 * alpha-linux-tdep.c: Likewise.
428 * alpha-mdebug-tdep.c: Likewise.
429 * alpha-nat.c: Likewise.
430 * alpha-osf1-tdep.c: Likewise.
431 * alpha-tdep.c: Likewise.
432 * alphanbsd-tdep.c: Likewise.
433 * amd64-dicos-tdep.c: Likewise.
434 * amd64-linux-tdep.c: Likewise.
435 * amd64-nat.c: Likewise.
436 * amd64-sol2-tdep.c: Likewise.
437 * amd64fbsd-tdep.c: Likewise.
438 * amd64obsd-tdep.c: Likewise.
439 * arch-utils.c: Likewise.
440 * arm-linux-nat.c: Likewise.
441 * arm-linux-tdep.c: Likewise.
442 * arm-tdep.c: Likewise.
443 * arm-wince-tdep.c: Likewise.
444 * armbsd-tdep.c: Likewise.
445 * armnbsd-nat.c: Likewise.
446 * armnbsd-tdep.c: Likewise.
447 * armobsd-tdep.c: Likewise.
448 * avr-tdep.c: Likewise.
449 * ax-gdb.c: Likewise.
450 * ax-general.c: Likewise.
451 * bcache.c: Likewise.
452 * bfin-tdep.c: Likewise.
453 * breakpoint.c: Likewise.
454 * build-id.c: Likewise.
455 * buildsym.c: Likewise.
457 * c-lang.c: Likewise.
458 * c-typeprint.c: Likewise.
459 * c-valprint.c: Likewise.
460 * charset.c: Likewise.
461 * cli-out.c: Likewise.
462 * cli/cli-cmds.c: Likewise.
463 * cli/cli-decode.c: Likewise.
464 * cli/cli-dump.c: Likewise.
465 * cli/cli-interp.c: Likewise.
466 * cli/cli-logging.c: Likewise.
467 * cli/cli-script.c: Likewise.
468 * cli/cli-setshow.c: Likewise.
469 * cli/cli-utils.c: Likewise.
470 * coffread.c: Likewise.
471 * common/agent.c: Likewise.
472 * common/buffer.c: Likewise.
473 * common/buffer.h: Likewise.
474 * common/common-utils.c: Likewise.
475 * common/filestuff.c: Likewise.
476 * common/filestuff.c: Likewise.
477 * common/format.c: Likewise.
478 * common/print-utils.c: Likewise.
479 * common/rsp-low.c: Likewise.
480 * common/signals.c: Likewise.
481 * common/vec.h: Likewise.
482 * common/xml-utils.c: Likewise.
483 * core-regset.c: Likewise.
484 * corefile.c: Likewise.
485 * corelow.c: Likewise.
486 * cp-abi.c: Likewise.
487 * cp-name-parser.y: Likewise.
488 * cp-support.c: Likewise.
489 * cp-valprint.c: Likewise.
490 * cris-tdep.c: Likewise.
492 * darwin-nat.c: Likewise.
493 * dbxread.c: Likewise.
494 * dcache.c: Likewise.
495 * demangle.c: Likewise.
496 * dicos-tdep.c: Likewise.
497 * disasm.c: Likewise.
498 * doublest.c: Likewise.
500 * dummy-frame.c: Likewise.
501 * dwarf2-frame.c: Likewise.
502 * dwarf2loc.c: Likewise.
503 * dwarf2read.c: Likewise.
504 * elfread.c: Likewise.
505 * environ.c: Likewise.
507 * event-loop.c: Likewise.
508 * exceptions.c: Likewise.
510 * expprint.c: Likewise.
512 * f-lang.c: Likewise.
513 * f-typeprint.c: Likewise.
514 * f-valprint.c: Likewise.
515 * fbsd-nat.c: Likewise.
516 * findcmd.c: Likewise.
517 * findvar.c: Likewise.
518 * fork-child.c: Likewise.
520 * frv-linux-tdep.c: Likewise.
521 * frv-tdep.c: Likewise.
523 * gdb_bfd.c: Likewise.
524 * gdbarch.c: Likewise.
525 * gdbarch.sh: Likewise.
526 * gdbtypes.c: Likewise.
527 * gnu-nat.c: Likewise.
528 * gnu-v2-abi.c: Likewise.
529 * gnu-v3-abi.c: Likewise.
530 * go-exp.y: Likewise.
531 * go-lang.c: Likewise.
532 * go32-nat.c: Likewise.
533 * guile/guile.c: Likewise.
534 * guile/scm-auto-load.c: Likewise.
535 * hppa-hpux-tdep.c: Likewise.
536 * hppa-linux-nat.c: Likewise.
537 * hppanbsd-tdep.c: Likewise.
538 * hppaobsd-tdep.c: Likewise.
539 * i386-cygwin-tdep.c: Likewise.
540 * i386-dicos-tdep.c: Likewise.
541 * i386-linux-tdep.c: Likewise.
542 * i386-nto-tdep.c: Likewise.
543 * i386-sol2-tdep.c: Likewise.
544 * i386-tdep.c: Likewise.
545 * i386bsd-tdep.c: Likewise.
546 * i386gnu-nat.c: Likewise.
547 * i386nbsd-tdep.c: Likewise.
548 * i386obsd-tdep.c: Likewise.
549 * i387-tdep.c: Likewise.
550 * ia64-libunwind-tdep.c: Likewise.
551 * ia64-linux-nat.c: Likewise.
552 * inf-child.c: Likewise.
553 * inf-ptrace.c: Likewise.
554 * inf-ttrace.c: Likewise.
555 * infcall.c: Likewise.
556 * infcmd.c: Likewise.
557 * inflow.c: Likewise.
558 * infrun.c: Likewise.
559 * interps.c: Likewise.
560 * iq2000-tdep.c: Likewise.
561 * irix5-nat.c: Likewise.
562 * jv-exp.y: Likewise.
563 * jv-lang.c: Likewise.
564 * jv-typeprint.c: Likewise.
565 * jv-valprint.c: Likewise.
566 * language.c: Likewise.
567 * linux-fork.c: Likewise.
568 * linux-nat.c: Likewise.
569 * lm32-tdep.c: Likewise.
570 * m2-exp.y: Likewise.
571 * m2-typeprint.c: Likewise.
572 * m32c-tdep.c: Likewise.
573 * m32r-linux-nat.c: Likewise.
574 * m32r-linux-tdep.c: Likewise.
575 * m32r-rom.c: Likewise.
576 * m32r-tdep.c: Likewise.
577 * m68hc11-tdep.c: Likewise.
578 * m68k-tdep.c: Likewise.
579 * m68kbsd-tdep.c: Likewise.
580 * m68klinux-nat.c: Likewise.
581 * m68klinux-tdep.c: Likewise.
582 * m88k-tdep.c: Likewise.
583 * machoread.c: Likewise.
584 * macrocmd.c: Likewise.
586 * mdebugread.c: Likewise.
587 * mem-break.c: Likewise.
588 * memattr.c: Likewise.
589 * memory-map.c: Likewise.
590 * mep-tdep.c: Likewise.
591 * mi/mi-cmd-break.c: Likewise.
592 * mi/mi-cmd-disas.c: Likewise.
593 * mi/mi-cmd-env.c: Likewise.
594 * mi/mi-cmd-stack.c: Likewise.
595 * mi/mi-cmd-var.c: Likewise.
596 * mi/mi-cmds.c: Likewise.
597 * mi/mi-console.c: Likewise.
598 * mi/mi-getopt.c: Likewise.
599 * mi/mi-interp.c: Likewise.
600 * mi/mi-main.c: Likewise.
601 * mi/mi-parse.c: Likewise.
602 * microblaze-rom.c: Likewise.
603 * microblaze-tdep.c: Likewise.
604 * mingw-hdep.c: Likewise.
605 * minidebug.c: Likewise.
606 * minsyms.c: Likewise.
607 * mips-irix-tdep.c: Likewise.
608 * mips-linux-tdep.c: Likewise.
609 * mips-tdep.c: Likewise.
610 * mips64obsd-tdep.c: Likewise.
611 * mipsnbsd-tdep.c: Likewise.
612 * mipsread.c: Likewise.
613 * mn10300-linux-tdep.c: Likewise.
614 * mn10300-tdep.c: Likewise.
615 * monitor.c: Likewise.
616 * moxie-tdep.c: Likewise.
617 * mt-tdep.c: Likewise.
618 * nat/linux-btrace.c: Likewise.
619 * nat/linux-osdata.c: Likewise.
620 * nat/linux-procfs.c: Likewise.
621 * nat/linux-ptrace.c: Likewise.
622 * nat/linux-waitpid.c: Likewise.
623 * nbsd-tdep.c: Likewise.
624 * nios2-linux-tdep.c: Likewise.
625 * nto-procfs.c: Likewise.
626 * nto-tdep.c: Likewise.
627 * objc-lang.c: Likewise.
628 * objfiles.c: Likewise.
629 * opencl-lang.c: Likewise.
631 * osdata.c: Likewise.
633 * p-lang.c: Likewise.
634 * p-typeprint.c: Likewise.
636 * posix-hdep.c: Likewise.
637 * ppc-linux-nat.c: Likewise.
638 * ppc-sysv-tdep.c: Likewise.
639 * ppcfbsd-tdep.c: Likewise.
640 * ppcnbsd-tdep.c: Likewise.
641 * ppcobsd-tdep.c: Likewise.
642 * printcmd.c: Likewise.
643 * procfs.c: Likewise.
644 * prologue-value.c: Likewise.
645 * python/py-auto-load.c: Likewise.
646 * python/py-gdb-readline.c: Likewise.
647 * ravenscar-thread.c: Likewise.
648 * regcache.c: Likewise.
649 * registry.c: Likewise.
650 * remote-fileio.c: Likewise.
651 * remote-m32r-sdi.c: Likewise.
652 * remote-mips.c: Likewise.
653 * remote-notif.c: Likewise.
654 * remote-sim.c: Likewise.
655 * remote.c: Likewise.
656 * reverse.c: Likewise.
657 * rs6000-aix-tdep.c: Likewise.
658 * ser-base.c: Likewise.
659 * ser-go32.c: Likewise.
660 * ser-mingw.c: Likewise.
661 * ser-pipe.c: Likewise.
662 * ser-tcp.c: Likewise.
663 * ser-unix.c: Likewise.
664 * serial.c: Likewise.
665 * sh-tdep.c: Likewise.
666 * sh64-tdep.c: Likewise.
667 * shnbsd-tdep.c: Likewise.
669 * sol-thread.c: Likewise.
670 * solib-dsbt.c: Likewise.
671 * solib-frv.c: Likewise.
672 * solib-osf.c: Likewise.
673 * solib-som.c: Likewise.
674 * solib-spu.c: Likewise.
675 * solib-target.c: Likewise.
677 * somread.c: Likewise.
678 * source.c: Likewise.
679 * sparc-nat.c: Likewise.
680 * sparc-sol2-tdep.c: Likewise.
681 * sparc-tdep.c: Likewise.
682 * sparc64-tdep.c: Likewise.
683 * sparc64fbsd-tdep.c: Likewise.
684 * sparc64nbsd-tdep.c: Likewise.
685 * sparcnbsd-tdep.c: Likewise.
686 * spu-linux-nat.c: Likewise.
687 * spu-multiarch.c: Likewise.
688 * spu-tdep.c: Likewise.
689 * stabsread.c: Likewise.
691 * std-regs.c: Likewise.
692 * symfile.c: Likewise.
693 * symmisc.c: Likewise.
694 * symtab.c: Likewise.
695 * target.c: Likewise.
696 * thread.c: Likewise.
697 * tilegx-linux-nat.c: Likewise.
698 * tilegx-tdep.c: Likewise.
700 * tracepoint.c: Likewise.
701 * tui/tui-command.c: Likewise.
702 * tui/tui-data.c: Likewise.
703 * tui/tui-disasm.c: Likewise.
704 * tui/tui-file.c: Likewise.
705 * tui/tui-layout.c: Likewise.
706 * tui/tui-out.c: Likewise.
707 * tui/tui-regs.c: Likewise.
708 * tui/tui-source.c: Likewise.
709 * tui/tui-stack.c: Likewise.
710 * tui/tui-win.c: Likewise.
711 * tui/tui-windata.c: Likewise.
712 * tui/tui-winsource.c: Likewise.
713 * typeprint.c: Likewise.
714 * ui-file.c: Likewise.
715 * ui-out.c: Likewise.
716 * user-regs.c: Likewise.
718 * v850-tdep.c: Likewise.
719 * valarith.c: Likewise.
720 * valops.c: Likewise.
721 * valprint.c: Likewise.
723 * varobj.c: Likewise.
724 * vax-tdep.c: Likewise.
725 * vaxnbsd-tdep.c: Likewise.
726 * vaxobsd-tdep.c: Likewise.
727 * windows-nat.c: Likewise.
728 * xcoffread.c: Likewise.
729 * xml-support.c: Likewise.
730 * xstormy16-tdep.c: Likewise.
731 * xtensa-linux-nat.c: Likewise.
733 2014-08-07 Gary Benson <gbenson@redhat.com>
735 * common/common-defs.h: Include gdb_assert.h.
736 * aarch64-tdep.c: Do not include gdb_assert.h.
737 * addrmap.c: Likewise.
738 * aix-thread.c: Likewise.
739 * alpha-linux-tdep.c: Likewise.
740 * alpha-mdebug-tdep.c: Likewise.
741 * alphanbsd-tdep.c: Likewise.
742 * amd64-nat.c: Likewise.
743 * amd64-tdep.c: Likewise.
744 * amd64bsd-nat.c: Likewise.
745 * amd64fbsd-nat.c: Likewise.
746 * amd64fbsd-tdep.c: Likewise.
747 * amd64nbsd-nat.c: Likewise.
748 * amd64nbsd-tdep.c: Likewise.
749 * amd64obsd-nat.c: Likewise.
750 * amd64obsd-tdep.c: Likewise.
751 * arch-utils.c: Likewise.
752 * arm-tdep.c: Likewise.
753 * armbsd-tdep.c: Likewise.
755 * bcache.c: Likewise.
756 * bfin-tdep.c: Likewise.
757 * blockframe.c: Likewise.
758 * breakpoint.c: Likewise.
759 * bsd-kvm.c: Likewise.
760 * bsd-uthread.c: Likewise.
761 * buildsym.c: Likewise.
763 * c-lang.c: Likewise.
764 * charset.c: Likewise.
765 * cleanups.c: Likewise.
766 * cli-out.c: Likewise.
767 * cli/cli-decode.c: Likewise.
768 * cli/cli-dump.c: Likewise.
769 * cli/cli-logging.c: Likewise.
770 * cli/cli-script.c: Likewise.
771 * cli/cli-utils.c: Likewise.
772 * coffread.c: Likewise.
773 * common/common-utils.c: Likewise.
774 * common/queue.h: Likewise.
775 * common/signals.c: Likewise.
776 * common/vec.h: Likewise.
777 * complaints.c: Likewise.
778 * completer.c: Likewise.
779 * corelow.c: Likewise.
780 * cp-abi.c: Likewise.
781 * cp-name-parser.y: Likewise.
782 * cp-namespace.c: Likewise.
783 * cp-support.c: Likewise.
784 * cris-tdep.c: Likewise.
785 * dbxread.c: Likewise.
786 * dictionary.c: Likewise.
787 * doublest.c: Likewise.
789 * dummy-frame.c: Likewise.
790 * dwarf2-frame-tailcall.c: Likewise.
791 * dwarf2-frame.c: Likewise.
792 * dwarf2expr.c: Likewise.
793 * dwarf2loc.c: Likewise.
794 * dwarf2read.c: Likewise.
796 * event-loop.c: Likewise.
797 * exceptions.c: Likewise.
798 * expprint.c: Likewise.
799 * f-valprint.c: Likewise.
800 * fbsd-nat.c: Likewise.
801 * findvar.c: Likewise.
802 * frame-unwind.c: Likewise.
804 * frv-tdep.c: Likewise.
806 * gdb-dlfcn.c: Likewise.
807 * gdb_bfd.c: Likewise.
808 * gdbarch.c: Likewise.
809 * gdbarch.sh: Likewise.
810 * gdbtypes.c: Likewise.
811 * gnu-nat.c: Likewise.
812 * gnu-v3-abi.c: Likewise.
813 * go-lang.c: Likewise.
814 * guile/scm-exception.c: Likewise.
815 * guile/scm-gsmob.c: Likewise.
816 * guile/scm-lazy-string.c: Likewise.
817 * guile/scm-math.c: Likewise.
818 * guile/scm-pretty-print.c: Likewise.
819 * guile/scm-safe-call.c: Likewise.
820 * guile/scm-utils.c: Likewise.
821 * guile/scm-value.c: Likewise.
822 * h8300-tdep.c: Likewise.
823 * hppa-hpux-nat.c: Likewise.
824 * hppa-tdep.c: Likewise.
825 * hppanbsd-tdep.c: Likewise.
826 * hppaobsd-tdep.c: Likewise.
827 * i386-darwin-nat.c: Likewise.
828 * i386-darwin-tdep.c: Likewise.
829 * i386-nto-tdep.c: Likewise.
830 * i386-tdep.c: Likewise.
831 * i386bsd-nat.c: Likewise.
832 * i386fbsd-tdep.c: Likewise.
833 * i386gnu-nat.c: Likewise.
834 * i386nbsd-tdep.c: Likewise.
835 * i386obsd-tdep.c: Likewise.
836 * i387-tdep.c: Likewise.
837 * ia64-libunwind-tdep.c: Likewise.
838 * ia64-tdep.c: Likewise.
839 * inf-ptrace.c: Likewise.
840 * inf-ttrace.c: Likewise.
841 * infcall.c: Likewise.
842 * infcmd.c: Likewise.
843 * infrun.c: Likewise.
844 * inline-frame.c: Likewise.
845 * interps.c: Likewise.
846 * jv-lang.c: Likewise.
847 * jv-typeprint.c: Likewise.
848 * linux-fork.c: Likewise.
849 * linux-nat.c: Likewise.
850 * linux-thread-db.c: Likewise.
851 * m32c-tdep.c: Likewise.
852 * m32r-linux-nat.c: Likewise.
853 * m32r-tdep.c: Likewise.
854 * m68k-tdep.c: Likewise.
855 * m68kbsd-nat.c: Likewise.
856 * m68kbsd-tdep.c: Likewise.
857 * m88k-tdep.c: Likewise.
858 * machoread.c: Likewise.
859 * macroexp.c: Likewise.
860 * macrotab.c: Likewise.
862 * mdebugread.c: Likewise.
863 * memory-map.c: Likewise.
864 * mep-tdep.c: Likewise.
865 * mi/mi-common.c: Likewise.
866 * microblaze-tdep.c: Likewise.
867 * mingw-hdep.c: Likewise.
868 * mips-linux-nat.c: Likewise.
869 * mips-linux-tdep.c: Likewise.
870 * mips-tdep.c: Likewise.
871 * mips64obsd-tdep.c: Likewise.
872 * mipsnbsd-tdep.c: Likewise.
873 * mn10300-linux-tdep.c: Likewise.
874 * mn10300-tdep.c: Likewise.
875 * moxie-tdep.c: Likewise.
876 * mt-tdep.c: Likewise.
877 * nat/linux-btrace.c: Likewise.
878 * nat/linux-osdata.c: Likewise.
879 * nat/linux-ptrace.c: Likewise.
880 * nat/mips-linux-watch.c: Likewise.
881 * nios2-linux-tdep.c: Likewise.
882 * nios2-tdep.c: Likewise.
883 * objc-lang.c: Likewise.
884 * objfiles.c: Likewise.
885 * obsd-nat.c: Likewise.
886 * opencl-lang.c: Likewise.
889 * ppc-linux-nat.c: Likewise.
890 * ppc-sysv-tdep.c: Likewise.
891 * ppcfbsd-nat.c: Likewise.
892 * ppcfbsd-tdep.c: Likewise.
893 * ppcnbsd-nat.c: Likewise.
894 * ppcnbsd-tdep.c: Likewise.
895 * ppcobsd-nat.c: Likewise.
896 * ppcobsd-tdep.c: Likewise.
897 * printcmd.c: Likewise.
898 * procfs.c: Likewise.
899 * prologue-value.c: Likewise.
900 * psymtab.c: Likewise.
901 * python/py-lazy-string.c: Likewise.
902 * python/py-value.c: Likewise.
903 * regcache.c: Likewise.
904 * reggroups.c: Likewise.
905 * registry.c: Likewise.
906 * remote-sim.c: Likewise.
907 * remote.c: Likewise.
908 * rs6000-aix-tdep.c: Likewise.
909 * rs6000-tdep.c: Likewise.
910 * s390-linux-tdep.c: Likewise.
911 * score-tdep.c: Likewise.
912 * ser-base.c: Likewise.
913 * ser-mingw.c: Likewise.
914 * sh-tdep.c: Likewise.
915 * sh64-tdep.c: Likewise.
916 * solib-darwin.c: Likewise.
917 * solib-spu.c: Likewise.
918 * solib-svr4.c: Likewise.
919 * source.c: Likewise.
920 * sparc-nat.c: Likewise.
921 * sparc-sol2-tdep.c: Likewise.
922 * sparc-tdep.c: Likewise.
923 * sparc64-sol2-tdep.c: Likewise.
924 * sparc64-tdep.c: Likewise.
925 * sparc64fbsd-tdep.c: Likewise.
926 * sparc64nbsd-tdep.c: Likewise.
927 * sparc64obsd-tdep.c: Likewise.
928 * sparcnbsd-tdep.c: Likewise.
929 * sparcobsd-tdep.c: Likewise.
930 * spu-multiarch.c: Likewise.
931 * spu-tdep.c: Likewise.
932 * stabsread.c: Likewise.
934 * symfile.c: Likewise.
935 * symtab.c: Likewise.
936 * target-descriptions.c: Likewise.
937 * target-memory.c: Likewise.
938 * target.c: Likewise.
939 * tic6x-linux-tdep.c: Likewise.
940 * tic6x-tdep.c: Likewise.
941 * tilegx-linux-nat.c: Likewise.
942 * tilegx-tdep.c: Likewise.
944 * tramp-frame.c: Likewise.
945 * tui/tui-out.c: Likewise.
946 * tui/tui-winsource.c: Likewise.
947 * ui-out.c: Likewise.
948 * user-regs.c: Likewise.
950 * v850-tdep.c: Likewise.
951 * valops.c: Likewise.
953 * varobj.c: Likewise.
954 * vax-nat.c: Likewise.
955 * xml-syscall.c: Likewise.
956 * xml-tdesc.c: Likewise.
957 * xstormy16-tdep.c: Likewise.
958 * xtensa-linux-nat.c: Likewise.
959 * xtensa-tdep.c: Likewise.
961 2014-08-07 Gary Benson <gbenson@redhat.com>
963 * common/common-defs.h: Include common-utils.h.
964 * defs.h: Do not include common-utils.h.
965 * common/gdb_assert.h: Likewise.
966 * darwin-nat.h: Likewise.
967 * nat/linux-btrace.c: Likewise.
968 * target/waitstatus.h: Likewise.
970 2014-08-07 Gary Benson <gbenson@redhat.com>
972 * common/common-defs.h: Include ptid.h.
973 * defs.h: Do not include ptid.h.
974 * inferior.h: Likewise.
975 * infrun.h: Likewise.
976 * nat/linux-btrace.h: Likewise.
977 * nat/linux-osdata.h: Likewise.
978 * target/waitstatus.h: Likewise.
980 2014-08-07 Gary Benson <gbenson@redhat.com>
982 * common/common-defs.h: Include gdb_locale.h.
983 * defs.h: Do not include gdb_locale.h.
985 2014-08-07 Gary Benson <gbenson@redhat.com>
987 * common/common-defs.h: Include gdb/signals.h.
988 * defs.h: Do not include gdb/signals.h.
990 2014-08-07 Gary Benson <gbenson@redhat.com>
992 * common/common-defs.h: Include pathmax.h.
993 * defs.h: Do not include pathmax.h.
995 2014-08-07 Gary Benson <gbenson@redhat.com>
997 * common/common-defs.h: Include libiberty.h.
998 * defs.h: Do not include libiberty.h.
999 * common/queue.h: Likewise.
1000 * cp-name-parser.y: Likewise.
1001 * mi/mi-cmd-catch.c: Likewise.
1002 * python/python.c: Likewise.
1004 2014-08-07 Gary Benson <gbenson@redhat.com>
1006 * common/common-defs.h: Include ansidecl.h.
1007 * defs.h: Do not include ansidecl.h.
1008 * common/buffer.h: Likewise.
1009 * common/common-utils.h: Likewise.
1011 2014-08-07 Gary Benson <gbenson@redhat.com>
1013 * common/common-defs.h: Include stddef.h.
1014 * defs.h: Do not include stddef.h.
1015 * common/common-utils.h: Likewise.
1016 * amd64fbsd-nat.c: Likewise.
1017 * bcache.c: Likewise.
1018 * charset.c: Likewise.
1019 * common/buffer.h: Likewise.
1020 * common/vec.h: Likewise.
1021 * i386bsd-nat.c: Likewise.
1022 * nat/linux-btrace.h: Likewise.
1023 * ppcfbsd-nat.c: Likewise.
1024 * ppcnbsd-tdep.h: Likewise.
1025 * ppcobsd-nat.c: Likewise.
1026 * ppcobsd-tdep.h: Likewise.
1027 * python/py-gdb-readline.c: Likewise.
1029 2014-08-07 Gary Benson <gbenson@redhat.com>
1031 * common/common-defs.h: Include stdarg.h.
1032 * defs.h: Do not include stdarg.h.
1033 * ada-lang.c: Likewise.
1034 * common/common-utils.h: Likewise.
1035 * guile/scm-string.c: Likewise.
1036 * guile/scm-utils.c: Likewise.
1037 * m32c-tdep.c: Likewise.
1039 2014-08-07 Gary Benson <gbenson@redhat.com>
1041 * common/common-defs.h: Include stdlib.h.
1042 * defs.h: Do not include stdlib.h.
1043 * addrmap.c: Likewise.
1044 * bcache.c: Likewise.
1045 * common/buffer.c: Likewise.
1046 * common/common-utils.c: Likewise.
1047 * cp-name-parser.y: Likewise.
1048 * go32-nat.c: Likewise.
1049 * mn10300-linux-tdep.c: Likewise.
1050 * nat/linux-osdata.c: Likewise.
1051 * tui/tui.c: Likewise.
1052 * windows-nat.c: Likewise.
1054 2014-08-07 Gary Benson <gbenson@redhat.com>
1056 * common/common-defs.h: Include stdio.h.
1057 * defs.h: Do not include stdio.h.
1058 * ada-lang.c: Likewise.
1059 * common/buffer.c: Likewise.
1060 * common/common-utils.c: Likewise.
1061 * cp-name-parser.y: Likewise.
1062 * gnu-nat.c: Likewise.
1063 * go32-nat.c: Likewise.
1064 * i386gnu-nat.c: Likewise.
1065 * proc-api.c: Likewise.
1066 * proc-events.c: Likewise.
1067 * proc-flags.c: Likewise.
1068 * proc-why.c: Likewise.
1069 * python/python-internal.h: Likewise.
1070 * target-memory.c: Likewise.
1071 * tui/tui-io.c: Likewise.
1072 * tui/tui.c: Likewise.
1074 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1076 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1077 (scan_dyntag_auxv): Same.
1079 2014-08-06 Yao Qi <yao@codesourcery.com>
1081 * amd64-linux-nat.c: Remove duplicated include
1083 * i386-linux-nat.c: Likewise.
1085 2014-08-06 Yao Qi <yao@codesourcery.com>
1087 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1088 operand" with "Special opcode" in comments.
1090 2014-08-05 Gary Benson <gbenson@redhat.com>
1092 * interps.c (initialize_interps): Remove prototype.
1093 (interpreter_initialized): Remove static global.
1094 (interp_add): Do not call initialize_interps.
1095 (initialize_interps): Remove function.
1097 2014-08-05 Gary Benson <gbenson@redhat.com>
1099 * utils.c (vwarning): Remove spurious va_end.
1101 2014-08-05 Alan Modra <amodra@gmail.com>
1103 * charset.c (convert_between_encodings): Cast result of obstack_base.
1104 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1105 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1106 (read_unwind_info): Use size_t for some locals.
1107 * jit.c (finalize_symtab): Likewise.
1108 * utils.c (hashtab_obstack_allocate): Likewise.
1109 * symmisc.c (print_objfile_statistics): Update format strings.
1111 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1113 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1114 (Changes in GDB 7.8): ... here.
1116 2014-08-04 Tom Tromey <tromey@redhat.com>
1118 * target.c (set_targetdebug): New function.
1119 (initialize_targets): Pass set_targetdebug when creating "set
1122 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1124 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1125 if detecting a variable-sized field that is not the last field.
1126 Fix struct type length computation.
1128 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1130 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1133 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1135 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1136 Remove "+ 8" offset in computation of CHAIN_VMA.
1138 2014-07-31 Doug Evans <dje@google.com>
1140 * inflow.c (child_terminal_inferior): Add comment.
1141 (child_terminal_ours_for_output): Add comment.
1142 (child_terminal_ours): Add comment.
1143 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1144 (linux_nat_terminal_ours): Add comment.
1146 2014-07-31 Gary Benson <gbenson@redhat.com>
1148 * common/btrace-common.h: Do not include defs.h or server.h.
1149 * nat/mips-linux-watch.h: Likewise.
1150 * gdb-dlfcn.h: Do not include defs.h.
1151 * tracefile.h: Likewise.
1153 2014-07-30 Roland McGrath <mcgrathr@google.com>
1155 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1157 2014-07-30 Tom Tromey <tromey@redhat.com>
1159 * bsd-kvm.c (bsd_kvm_open): Constify.
1160 * corelow.c (core_open): Constify.
1161 * ctf.c (ctf_open): Constify.
1162 * dbug-rom.c (dbug_open): Constify.
1163 * exec.c (exec_open): Constify.
1164 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1165 * microblaze-rom.c (picobug_open): Constify.
1166 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1168 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1169 * record-btrace.c (record_btrace_open): Constify.
1170 * record-full.c (record_full_core_open_1, record_full_open_1)
1171 (record_full_open): Constify.
1172 * remote-m32r-sdi.c (m32r_open): Constify.
1173 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1174 (rockhopper_open, lsi_open): Constify.
1175 * remote-sim.c (gdbsim_open): Constify.
1176 * remote.c (remote_open, extended_remote_open, remote_open_1):
1178 * target.h (struct target_ops) <to_open>: Make "arg" const.
1179 * tracefile-tfile.c (tfile_open): Constify.
1181 2014-07-30 Tom Tromey <tromey@redhat.com>
1183 * breakpoint.c (map_breakpoint_numbers): Update.
1184 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1185 (get_number_const): New function.
1186 (get_number): Rewrite using get_number_const.
1187 (init_number_or_range): Make "string" const.
1188 (number_is_in_list): Make "list" const.
1189 * cli/cli-utils.h (get_number_const): Declare.
1190 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1191 (init_number_or_range, number_is_in_list): Update.
1192 * printcmd.c (map_display_numbers): Update.
1193 * value.c (value_from_history_ref): Constify.
1194 * value.h (value_from_history_ref): Update.
1196 2014-07-30 Tom Tromey <tromey@redhat.com>
1198 * corefile.c (hook_type, call_extra_exec_file_hooks)
1199 (specify_exec_file_hook): Constify.
1200 * exec.c (exec_file_attach): Make "filename" const.
1201 * gdbcore.h (deprecated_exec_file_display_hook)
1202 (specify_exec_file_hook, exec_file_attach): Constify.
1203 * main.c (captured_main): Use catch_command_errors_const.
1205 2014-07-30 Tom Tromey <tromey@redhat.com>
1207 * target.c (open_target): New function.
1208 (add_target_with_completer, add_deprecated_target_alias): Use
1209 set_cmd_sfunc, set_cmd_context.
1210 (debug_to_open): Remove.
1211 (setup_target_debug): Update.
1213 2014-07-30 Yao Qi <yao@codesourcery.com>
1215 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1217 * parse.c (exp_iterate): Update comments.
1219 2014-07-30 Gary Benson <gbenson@redhat.com>
1221 * common/common-defs.h: New file.
1222 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1223 * defs.h: Include common-defs.h.
1224 Do not include config.h or build-gnulib/config.h.
1226 2014-07-30 Gary Benson <gbenson@redhat.com>
1228 * common/common-utils.h: Do not include config.h.
1229 * nat/linux-btrace.h: Likewise.
1231 2014-07-30 Gary Benson <gbenson@redhat.com>
1233 * btrace.c: Include defs.h.
1234 * common/ptid.c: Include defs.h or server.h as appropriate.
1235 * nat/mips-linux-watch.c: Likewise.
1237 2014-07-29 Tom Tromey <tromey@redhat.com>
1239 * target.c (target_is_pushed): Simplify.
1241 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1245 2014-07-29 Yao Qi <yao@codesourcery.com>
1248 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1250 2014-07-28 Doug Evans <xdje42@gmail.com>
1253 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1254 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1257 2014-07-28 Will Newton <will.newton@linaro.org>
1259 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1260 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1261 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1262 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1263 (THUMB2_EABI_SYSCALL): Likewise.
1264 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1266 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1267 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1269 2014-07-27 Doug Evans <xdje42@gmail.com>
1271 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1273 2014-07-27 Doug Evans <xdje42@gmail.com>
1275 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1277 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1278 Doug Evans <xdje42@gmail.com>
1281 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1282 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1283 * configure.ac: Try to use guild to compile an scm file, if it fails
1284 then disable guile support.
1285 * configure: Regenerate.
1286 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1288 (GUILE_COMPILED_FILES): New variable.
1289 (GUILE_FILES) Update.
1290 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1291 (stamp-guile): Compile scm files.
1292 * guile/guile.c (boot_guile_support): New function.
1293 (standard_throw_args_p): New function.
1294 (print_standard_throw_error, print_throw_error): New functions.
1295 (handle_boot_error): New function.
1296 (initialize_scheme_side): Rewrite to call boot_guile_support.
1297 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1298 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1300 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1301 Doug Evans <xdje42@gmail.com>
1304 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1305 * guile/lib/gdb/support.scm: New file.
1306 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1307 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1309 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1311 (%assert-type): Ditto, and renamed to assert-type.
1312 (%exception-print-style): Delete.
1314 2014-07-26 Doug Evans <xdje42@gmail.com>
1317 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1318 * configure: Regenerate.
1319 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1321 (PYTHON_FILES): New variable.
1322 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1323 (GUILE_FILES): New variable.
1324 (stamp-python, install-python, uninstall-python): Handle empty
1326 (stamp-guile, install-guile, uninstall-guile): Ditto.
1328 2014-07-26 Doug Evans <xdje42@gmail.com>
1331 * guile/lib/gdb.scm (pretty-printers): Export.
1332 (set-pretty-printers!): Export.
1333 * guile/lib/gdb/printing.scm (gdb module): Update.
1334 (prepend-pretty-printer!, append-pretty-printer!): Update.
1335 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1336 (pretty_printer_list_var): Delete.
1337 (pretty_printer_list): New static global.
1338 (gdbscm_pretty_printers): New function.
1339 (gdbscm_set_pretty_printers_x): New function.
1340 (ppscm_find_pretty_printer_from_gdb): Update.
1341 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1342 (gdbscm_initialize_pretty_printers): Update.
1344 2014-07-26 Doug Evans <xdje42@gmail.com>
1347 * configure.ac: Add check for header gc/gc.h.
1348 Add check for function setenv.
1349 * configure: Regenerate.
1350 * config.in: Regenerate.
1351 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1353 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1355 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1356 variation in gdbarch matching.
1358 2014-07-25 Tom Tromey <tromey@redhat.com>
1360 * exec.c (using_exec_ops): Remove.
1361 (exec_close_1): Update. Remove extraneous block, reindent.
1362 (add_target_sections): Use target_is_pushed.
1364 2014-07-25 Pedro Alves <palves@redhat.com>
1366 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1367 * monitor.c (monitor_create_inferior): Likewise.
1368 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1369 * remote-sim.c (gdbsim_create_inferior): Likewise.
1370 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1371 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1372 * windows-nat.c (do_initial_windows_stuff): Likewise.
1374 2014-07-25 Pedro Alves <palves@redhat.com>
1376 * NEWS: Mention signal passing and "signal" command changes.
1377 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1379 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1381 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1382 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1383 (jump_command): Adjust clear_proceed_status call.
1384 (signal_command): Warn if other thread that are resumed have
1385 signals that will be delivered. Adjust clear_proceed_status call.
1386 (until_next_command, finish_command)
1387 (proceed_after_attach_callback, attach_command_post_wait)
1388 (attach_command): Adjust clear_proceed_status call.
1389 * infrun.c (proceed_after_vfork_done): Likewise.
1390 (proceed_after_attach_callback): Adjust comment.
1391 (clear_proceed_status_thread): Clear stop_signal if not in pass
1393 (clear_proceed_status_callback): Delete.
1394 (clear_proceed_status): New 'step' parameter. Only clear the
1395 proceed status of threads the command being prepared is about to
1397 (proceed): If passed in an explicit signal, override stop_signal
1398 with it. Don't pass the last stop signal to the thread we're
1400 (init_wait_for_inferior): Adjust clear_proceed_status call.
1401 (switch_back_to_stepped_thread): Clear the signal if it should not
1403 * infrun.h (clear_proceed_status): New 'step' parameter.
1404 (user_visible_resume_ptid): Add comment.
1405 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1406 signal is in pass state.
1407 * remote.c (append_pending_thread_resumptions): Likewise.
1408 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1410 2014-07-25 Tom Tromey <tromey@redhat.com>
1412 * target.h (target_stopped_data_address)
1413 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1416 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1418 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1420 (avr_pointer_to_address): Likewise.
1422 2014-07-24 Tom Tromey <tromey@redhat.com>
1424 * monitor.c (compile_pattern): Update.
1425 * target.h (struct target_ops) <to_shortname, to_longname,
1428 2014-07-24 Tom Tromey <tromey@redhat.com>
1430 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1431 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1432 (add_info_alias, add_com): Make "doc" const.
1433 (print_doc_line): Make "str" const.
1434 (delete_cmd): Update.
1435 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1436 (print_doc_line): Update.
1437 * cli/cli-script.c (document_command): Update.
1438 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1439 (add_com, add_info, add_info_alias): Update.
1440 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1441 * python/py-cmd.c (cmdpy_destroyer): Update.
1443 2014-07-24 Tom Tromey <tromey@redhat.com>
1445 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1446 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1447 (help_cmd_list): Constify.
1448 (lookup_cmd): Update.
1449 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1451 (help_cmd_list, apropos_cmd): Update.
1452 * cli/cli-script.c (show_user): Update.
1453 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1454 * cli/cli-setshow.h (cmd_show_list): Update.
1455 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1456 (cmd_show_list): Update.
1457 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1458 * python/py-cmd.c (cmdpy_destroyer): Update.
1460 2014-07-24 Tom Tromey <tromey@redhat.com>
1462 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1463 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1465 * command.h (deprecate_cmd): Update.
1466 * maint.c (maintenance_do_deprecate): Add casts.
1468 2014-07-24 Tom Tromey <tromey@redhat.com>
1470 * cli/cli-decode.c (help_cmd): Make parameter "const".
1471 * cli/cli-decode.h (help_cmd): Update.
1473 2014-07-24 Tom Tromey <tromey@redhat.com>
1475 * stack.c (up_silently_base, down_silently_base): Make argument
1478 2014-07-24 Tom Tromey <tromey@redhat.com>
1480 * solib.c (solib_add): Make "pattern" const.
1481 * solib.h (solib_add): Update.
1483 2014-07-24 Tom Tromey <tromey@redhat.com>
1485 * remote.c (remote_serial_open, print_packet, putpkt)
1486 (putpkt_binary): Constify.
1487 * remote.h (putpkt): Update.
1489 2014-07-24 Tom Tromey <tromey@redhat.com>
1491 * monitor.c (monitor_open): Make "args" const.
1492 * monitor.h (monitor_open): Update.
1494 2014-07-24 Tom Tromey <tromey@redhat.com>
1496 * maint.c (match_bfd_flags): Make "string" const.
1497 (print_bfd_section_info): Remove casts.
1498 (print_objfile_section_info): Make "string" const.
1500 2014-07-24 Tom Tromey <tromey@redhat.com>
1502 * inf-child.c (inf_child_open_target): Make "arg" const.
1503 * inf-child.h (inf_child_open_target): Update.
1505 2014-07-24 Tom Tromey <tromey@redhat.com>
1507 * environ.c (unset_in_environ): Make "var" const.
1508 * environ.h (unset_in_environ): Update.
1510 2014-07-24 Tom Tromey <tromey@redhat.com>
1512 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1514 (scan_filename_with_cleanup): Likewise.
1515 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1516 Make arguments const.
1517 (restore_command): Update.
1519 2014-07-24 Pedro Alves <palves@redhat.com>
1521 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1523 2014-07-24 Tom Tromey <tromey@redhat.com>
1524 Gary Benson <gbenson@redhat.com>
1526 * nat/linux-ptrace.c (additional_flags): New global.
1527 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1528 additional_flags; don't check GDBSERVER.
1529 (linux_ptrace_set_additional_flags): New function.
1530 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1532 * linux-nat.c (_initialize_linux_nat): Call
1533 linux_ptrace_set_additional_flags.
1535 2014-07-24 Tom Tromey <tromey@redhat.com>
1537 * make-target-delegates (munge_type, write_debugmethod): New
1539 (debug_names): New global.
1540 ($TARGET_DEBUG_PRINTER): New global.
1541 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1543 Write debug methods. Generate init_debug_target.
1544 * target-debug.h: New file.
1545 * target-delegates.c: Rebuild.
1546 * target.c: Include target-debug.h.
1547 (debug_target): Hoist definition.
1548 (target_kill, target_get_section_table, target_memory_map)
1549 (target_flash_erase, target_flash_done, target_detach)
1550 (target_disconnect, target_wait, target_resume)
1551 (target_pass_signals, target_program_signals, target_follow_fork)
1552 (target_mourn_inferior, target_search_memory)
1553 (target_thread_address_space, target_close)
1554 (target_find_new_threads, target_core_of_thread)
1555 (target_verify_memory, target_insert_mask_watchpoint)
1556 (target_remove_mask_watchpoint): Remove targetdebug code.
1557 (debug_to_post_attach, debug_to_prepare_to_store)
1558 (debug_to_files_info, debug_to_insert_breakpoint)
1559 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1560 (debug_to_region_ok_for_hw_watchpoint)
1561 (debug_to_can_accel_watchpoint_condition)
1562 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1563 (debug_to_watchpoint_addr_within_range)
1564 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1565 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1566 (debug_to_terminal_init, debug_to_terminal_inferior)
1567 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1568 (debug_to_terminal_save_ours, debug_to_terminal_info)
1569 (debug_to_load, debug_to_post_startup_inferior)
1570 (debug_to_insert_fork_catchpoint)
1571 (debug_to_remove_fork_catchpoint)
1572 (debug_to_insert_vfork_catchpoint)
1573 (debug_to_remove_vfork_catchpoint)
1574 (debug_to_insert_exec_catchpoint)
1575 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1576 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1577 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1578 (setup_target_debug): Call init_debug_target.
1579 * target.h (TARGET_DEBUG_PRINTER): New macro.
1580 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1581 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1583 2014-07-24 Gary Benson <gbenson@redhat.com>
1585 * exceptions.h (throw_vfatal): Renamed to...
1586 (throw_vquit): New declaration.
1587 (throw_quit): Likewise.
1588 * exceptions.c (throw_vfatal): Renamed to...
1589 (throw_vquit): New function.
1590 (throw_quit): Likewise.
1591 (throw_error): Call throw_verror rather than throw_it.
1592 * utils.h (vfatal): Removed.
1594 * utils.c (vfatal): Removed.
1596 (internal_verror): Replaced call to fatal with call to throw_quit.
1597 (quit): Replaced calls to fatal with calls to throw_quit.
1599 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1601 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1604 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1606 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1607 less than zero in conditional expression.
1609 2014-07-23 Tom Tromey <tromey@redhat.com>
1611 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1612 ($INTRO_PART): Don't match whitespace.
1613 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1615 ($METHOD): Add $METHOD_TRAILER.
1617 (scan_target_h): New sub.
1618 Change main loop not to collect state.
1619 * target-delegates.c: Rebuild.
1621 2014-07-23 Gary Benson <gbenson@redhat.com>
1623 * cp-support.c (gdb_demangle): Fix build on systems without
1626 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1629 for reference entry value target data value.
1631 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1633 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1634 value_available_contents_eq.
1636 2014-07-22 Pedro Alves <palves@redhat.com>
1638 * value.c (allocate_optimized_out_value): Don't mark value as
1641 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1643 * MAINTAINERS (Write After Approval): Update my email address.
1645 2014-07-20 Doug Evans <dje@google.com>
1648 * remote.c (putpkt_binary): Add text to error message.
1650 2014-07-20 Yao Qi <yao@codesourcery.com>
1652 * eval.c: Remove "Chill" from comments.
1653 * gdbtypes.h: Likewise.
1654 * symtab.h: Likewise.
1656 2014-07-20 Yao Qi <yao@codesourcery.com>
1658 * std-operator.def: Update comments to TERNOP_SLICE.
1660 2014-07-20 Yao Qi <yao@codesourcery.com>
1662 * std-operator.def: Remove BINOP_RANGE.
1663 * breakpoint.c (watchpoint_exp_is_const): Update.
1664 * expprint.c (dump_subexp_body_standard): Likewise.
1665 * eval.c (init_array_element): Remove dead code.
1666 (evaluate_subexp_standard): Likewise.
1668 2014-07-20 Yao Qi <yao@codesourcery.com>
1670 * std-operator.def: Remove BINOP_IN.
1671 * breakpoint.c (watchpoint_exp_is_const): Update.
1672 * eval.c (evaluate_subexp_standard): Likewise.
1673 * expprint.c (dump_subexp_body_standard): Likewise.
1675 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1677 * microblaze-tdep.c (microblaze_register_names): Add
1678 the rshr and rslr register names.
1679 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1680 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1681 Use of tdesc_numbered_register. Use of
1682 microblaze_register_g_packet_guesses. Use of
1683 tdesc_use_registers. Use of set_gdbarch_register_type.
1684 (microblaze_register_g_packet_guesses): New.
1685 * microblaze-tdep.h (microblaze_reg_num): Add
1686 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1687 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1688 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1689 * features/microblaze-core.xml: New file.
1690 * features/microblaze-stack-protect.xml: New file.
1691 * features/microblaze-with-stack-protect.c: New file.
1692 * features/microblaze-with-stack-protect.xml: New file.
1693 * features/microblaze.xml: New file.
1694 * features/microblaze.c: New file.
1695 * features/Makefile (microblaze-with-stack-protect): Add
1696 microblaze-with-stack-protect microblaze and microblaze-expedite.
1697 * regformats/microblaze-with-stack-protect.dat: New file.
1698 * regformats/microblaze.dat: New file.
1699 * doc/gdb.texinfo (MicroBlaze Features): Added.
1701 2014-07-18 Tom Tromey <tromey@redhat.com>
1703 * exec.c (exec_ops): Now static.
1704 * exec.h (exec_ops): Don't declare.
1706 2014-07-18 Tom Tromey <tromey@redhat.com>
1708 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1709 to find_target_beneath.
1710 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1711 find_target_beneath.
1712 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1714 2014-07-18 Tom Tromey <tromey@redhat.com>
1717 * utils.c (quit): Use target_supports_terminal_ours.
1718 * target.h (target_supports_terminal_ours): Declare.
1719 * target.c (target_supports_delete_record): Don't check
1720 to_delete_record against NULL.
1721 (target_supports_terminal_ours): New function.
1723 2014-07-18 Tom Tromey <tromey@redhat.com>
1726 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1727 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1728 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1729 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1730 * windows-nat.c (windows_xfer_partial): Always delegate.
1731 * record-btrace.c (record_btrace_xfer_partial): Simplify
1733 (record_btrace_fetch_registers, record_btrace_store_registers)
1734 (record_btrace_prepare_to_store, record_btrace_resume)
1735 (record_btrace_wait, record_btrace_find_new_threads)
1736 (record_btrace_thread_alive): Likewise.
1737 * procfs.c (procfs_xfer_partial): Always delegate.
1738 * corelow.c (core_xfer_partial): Always delegate.
1739 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1741 2014-07-18 Tom Tromey <tromey@redhat.com>
1743 * exec.c (exec_make_note_section): Move earlier.
1745 2014-07-17 Doug Evans <dje@google.com>
1748 * maint.c (count_symtabs_and_blocks): Handle NULL
1749 current_program_space.
1750 (report_command_stats): Check global enabled flag in addition to
1751 recorded enabled flag.
1752 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1754 2014-07-16 Pedro Alves <palves@redhat.com>
1756 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1758 2014-07-16 Tom Tromey <tromey@redhat.com>
1760 * target.h (struct target_ops) <to_delete_record>: Reformat
1763 2014-07-16 Tom Tromey <tromey@redhat.com>
1765 * target-delegates.c: Rebuild.
1767 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1769 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1770 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1771 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1772 (avr_pointer_to_address): Likewise.
1773 (avr_address_class_type_flags): New function.
1774 (avr_address_class_type_flags_to_name): Likewise.
1775 (avr_address_class_name_to_type_flags): Likewise.
1776 (avr_gdbarch_init): Set address_class_type_flags,
1777 address_class_type_flags_to_name and
1778 address_class_name_to_type_flags.
1780 2014-07-15 Pedro Alves <palves@redhat.com>
1782 * linux-nat.c (kill_callback): Save errno and work with saved
1785 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1787 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1789 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1791 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1792 breakpoint support correctly.
1794 2014-07-14 Pedro Alves <palves@redhat.com>
1796 * utils.c (prompt_for_continue): Call target_terminal_ours.
1798 2014-07-14 Pedro Alves <palves@redhat.com>
1800 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1801 catch_errors. Don't re-enable stdin or notify observers where,
1803 (fetch_inferior_event_wrapper): Delete.
1805 2014-07-14 Pedro Alves <palves@redhat.com>
1808 * top.c: Include "inf-loop.h".
1809 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1811 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1813 (gdb_readline_wrapper): Store whether the target is async, and
1816 2014-07-14 Pedro Alves <palves@redhat.com>
1819 * top.c (gdb_readline_wrapper_line): Tweak comment.
1820 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1821 the input handler callback.
1823 2014-07-14 Pedro Alves <palves@redhat.com>
1826 * main.c: Include event-top.h.
1827 (handle_command_errors): New function.
1828 (catch_command_errors, catch_command_errors_const): Use it.
1830 2014-07-14 Pedro Alves <palves@redhat.com>
1832 * exceptions.c (catch_command_errors, catch_command_errors_const):
1834 * exceptions.h (catch_command_errors_ftype)
1835 (catch_command_errors_const_ftype): Moved to main.c.
1836 (catch_command_errors, catch_command_errors_const): Delete
1838 * main.c (catch_command_errors_ftype)
1839 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1840 (catch_command_errors, catch_command_errors_const)): Moved here
1841 from exceptions.c and make static.
1843 2014-07-14 Pedro Alves <palves@redhat.com>
1845 * exceptions.c (print_any_exception): Delete.
1846 (catch_exceptions_with_msg): Use exception_print instead of
1847 print_any_exception.
1848 (catch_errors): Use exception_fprintf instead of
1849 print_any_exception.
1850 (catch_command_errors, catch_command_errors_const): Use
1851 exception_print instead of print_any_exception.
1853 2014-07-14 Pedro Alves <palves@redhat.com>
1855 * infcall.c (run_inferior_call): Set 'sync_execution' while
1856 running the inferior call.
1858 2014-07-14 Pedro Alves <palves@redhat.com>
1860 * value.c (value_contents_equal): Delete function.
1861 * value.h (value_contents_equal): Delete declaration.
1863 2014-07-14 Tom Tromey <tromey@redhat.com>
1866 * gdbtypes.c (is_dynamic_type_internal): New function, from
1868 (is_dynamic_type): Rewrite.
1869 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1870 (resolve_dynamic_struct): Likewise.
1871 (resolve_dynamic_type_internal): New function, from
1872 resolve_dynamic_type.
1873 (resolve_dynamic_type): Rewrite.
1875 2014-07-14 Tom Tromey <tromey@redhat.com>
1877 * target.c (target_require_runnable): Also check record_stratum.
1880 2014-07-11 Yao Qi <yao@codesourcery.com>
1882 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1883 thumb_instruction_restores_sp return true.
1885 2014-07-11 Yao Qi <yao@codesourcery.com>
1887 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1888 (thumb_in_function_epilogue_p): Call
1889 thumb_instruction_restores_sp.
1891 2014-07-11 Yao Qi <yao@codesourcery.com>
1893 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1895 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1897 2014-07-11 Gary Benson <gbenson@redhat.com>
1899 * amd64-linux-nat.c (gdbcore.h): Remove include.
1900 (regset.h): Likewise.
1901 (nat/linux-btrace.h): Likewise.
1902 (btrace.h): Likewise.
1903 (gdb_assert.h): Likewise.
1904 (string.h): Likewise.
1905 (sys/uio.h): Likewise.
1906 (sys/debugreg.h): Likewise.
1907 (sys/syscall.h): Likewise.
1908 (sys/procfs.h): Likewise.
1909 (sys/user.h): Likewise.
1910 (asm/ptrace.h): Likewise.
1911 (i386-nat.h): Likewise.
1912 * i386-linux-nat.c (i386-nat.h): Likewise.
1913 (regset.h): Likewise.
1914 (target.h): Likewise.
1915 (linux-nat.h): Likewise.
1916 (nat/linux-btrace.h): Likewise.
1917 (btrace.h): Likewise.
1918 (gdb_assert.h): Likewise.
1919 (string.h): Likewise.
1920 (sys/uio.h): Likewise.
1921 (sys/user.h): Likewise.
1922 (sys/procfs.h): Likewise.
1923 (sys/reg.h): Likewise.
1924 (sys/debugreg.h): Likewise.
1925 (ORIG_EAX): Remove definition.
1927 2014-07-11 Gary Benson <gbenson@redhat.com>
1929 * i386-linux-nat.h: New file.
1930 * x86-linux-nat.h: Likewise.
1931 * x86-linux-nat.c: Likewise.
1932 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1933 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1934 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1935 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1936 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1937 (PTRACE_SETREGSET): Likewise.
1938 (arch_lwp_info): Now in x86-linux-nat.c.
1939 (have_ptrace_getregset): Now in x86-linux-nat.h.
1940 (x86_linux_dr_get): Now in x86-linux-nat.c.
1941 (x86_linux_dr_set): Likewise.
1942 (x86_linux_dr_get_addr): Likewise.
1943 (x86_linux_dr_get_control): Likewise.
1944 (x86_linux_dr_get_status): Likewise.
1945 (update_debug_registers_callback): Likewise.
1946 (x86_linux_dr_set_control): Likewise.
1947 (x86_linux_dr_set_addr): Likewise.
1948 (x86_linux_prepare_to_resume): Likewise.
1949 (x86_linux_new_thread): Likewise.
1950 (x86_linux_new_fork): Likewise.
1951 (x86_linux_get_thread_area): Likewise.
1952 (super_post_startup_inferior): Likewise.
1953 (x86_linux_child_post_startup_inferior): Likewise.
1954 (AMD64_LINUX_USER64_CS): Likewise.
1955 (AMD64_LINUX_X32_DS): Likewise.
1956 (x86_linux_read_description): Likewise.
1957 (x86_linux_enable_btrace): Likewise.
1958 (x86_linux_disable_btrace): Likewise.
1959 (x86_linux_teardown_btrace): Likewise.
1960 (x86_linux_read_btrace): Likewise.
1961 (x86_linux_create_target): Likewise.
1962 (x86_linux_add_target): Likewise.
1963 * i386-linux-nat.c (x86-linux-nat.h): New include.
1964 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1965 (PTRACE_SETREGSET): Likewise.
1966 (arch_lwp_info): Now in x86-linux-nat.c.
1967 (have_ptrace_getregset): Now in x86-linux-nat.h.
1968 (x86_linux_dr_get): Now in x86-linux-nat.c.
1969 (x86_linux_dr_set): Likewise.
1970 (x86_linux_dr_get_addr): Likewise.
1971 (x86_linux_dr_get_control): Likewise.
1972 (x86_linux_dr_get_status): Likewise.
1973 (update_debug_registers_callback): Likewise.
1974 (x86_linux_dr_set_control): Likewise.
1975 (x86_linux_dr_set_addr): Likewise.
1976 (x86_linux_prepare_to_resume): Likewise.
1977 (x86_linux_new_thread): Likewise.
1978 (x86_linux_new_fork): Likewise.
1979 (x86_linux_get_thread_area): Likewise.
1980 (super_post_startup_inferior): Likewise.
1981 (x86_linux_child_post_startup_inferior): Likewise.
1982 (AMD64_LINUX_USER64_CS): Likewise.
1983 (AMD64_LINUX_X32_DS): Likewise.
1984 (x86_linux_read_description): Likewise.
1985 (x86_linux_enable_btrace): Likewise.
1986 (x86_linux_disable_btrace): Likewise.
1987 (x86_linux_teardown_btrace): Likewise.
1988 (x86_linux_read_btrace): Likewise.
1989 (x86_linux_create_target): Likewise.
1990 (x86_linux_add_target): Likewise.
1992 2014-07-11 Gary Benson <gbenson@redhat.com>
1994 * amd64-linux-nat.c: Comment and whitespace changes.
1995 * i386-linux-nat.c: Comment and whitespace changes.
1997 2014-07-11 Gary Benson <gbenson@redhat.com>
1999 * amd64-linux-nat.c (x86_linux_create_target): New function.
2000 (x86_linux_add_target): Likewise.
2001 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2002 * i386-linux-nat.c (x86_linux_create_target): New function.
2003 (x86_linux_add_target): Likewise.
2004 (_initialize_i386_linux_nat): Delegate to the above new functions.
2006 2014-07-11 Gary Benson <gbenson@redhat.com>
2008 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2009 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2010 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2011 (ps_get_thread_area): Delegate to the above.
2013 2014-07-11 Gary Benson <gbenson@redhat.com>
2015 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2016 x86_linux_read_description. All uses updated. amd64-specific
2017 code conditionalized. Conditionalized i386-specific code added.
2018 Redundant cast removed.
2019 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2020 x86_linux_read_description. All uses updated. i386-specific
2021 code conditionalized. Conditionalized amd64-specific code added.
2022 One sizeof replaced with the actual type it is describing.
2024 2014-07-11 Gary Benson <gbenson@redhat.com>
2026 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2027 x86_linux_dr_get. All uses updated.
2028 (amd64_linux_dr_set): Renamed to
2029 x86_linux_dr_set. All uses updated.
2030 (amd64_linux_dr_get_addr): Renamed to
2031 x86_linux_dr_get_addr. All uses updated.
2032 (amd64_linux_dr_get_control): Renamed to
2033 x86_linux_dr_get_control. All uses updated.
2034 (amd64_linux_dr_get_status): Renamed to
2035 x86_linux_dr_get_status. All uses updated.
2036 (amd64_linux_dr_set_control): Renamed to
2037 x86_linux_dr_set_control. All uses updated.
2038 (amd64_linux_dr_set_addr): Renamed to
2039 x86_linux_dr_set_addr. All uses updated.
2040 (amd64_linux_prepare_to_resume): Renamed to
2041 x86_linux_prepare_to_resume. All uses updated.
2042 (amd64_linux_new_thread): Renamed to
2043 x86_linux_new_thread. All uses updated.
2044 (amd64_linux_new_fork): Renamed to
2045 x86_linux_new_fork. All uses updated.
2046 (amd64_linux_child_post_startup_inferior): Renamed to
2047 x86_linux_child_post_startup_inferior. All uses updated.
2048 (amd64_linux_enable_btrace): Renamed to
2049 x86_linux_enable_btrace. All uses updated.
2050 (amd64_linux_disable_btrace): Renamed to
2051 x86_linux_disable_btrace. All uses updated.
2052 (amd64_linux_teardown_btrace): Renamed to
2053 x86_linux_teardown_btrace. All uses updated.
2054 (amd64_linux_read_btrace): Renamed to
2055 x86_linux_read_btrace. All uses updated.
2056 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2057 x86_linux_dr_get. All uses updated.
2058 (i386_linux_dr_set): Renamed to
2059 x86_linux_dr_set. All uses updated.
2060 (i386_linux_dr_get_addr): Renamed to
2061 x86_linux_dr_get_addr. All uses updated.
2062 (i386_linux_dr_get_control): Renamed to
2063 x86_linux_dr_get_control. All uses updated.
2064 (i386_linux_dr_get_status): Renamed to
2065 x86_linux_dr_get_status. All uses updated.
2066 (i386_linux_dr_set_control): Renamed to
2067 x86_linux_dr_set_control. All uses updated.
2068 (i386_linux_dr_set_addr): Renamed to
2069 x86_linux_dr_set_addr. All uses updated.
2070 (i386_linux_prepare_to_resume): Renamed to
2071 x86_linux_prepare_to_resume. All uses updated.
2072 (i386_linux_new_thread): Renamed to
2073 x86_linux_new_thread. All uses updated.
2074 (i386_linux_new_fork): Renamed to
2075 x86_linux_new_fork. All uses updated.
2076 (i386_linux_child_post_startup_inferior): Renamed to
2077 x86_linux_child_post_startup_inferior. All uses updated.
2078 (i386_linux_enable_btrace): Renamed to
2079 x86_linux_enable_btrace. All uses updated.
2080 (i386_linux_disable_btrace): Renamed to
2081 x86_linux_disable_btrace. All uses updated.
2082 (i386_linux_teardown_btrace): Renamed to
2083 x86_linux_teardown_btrace. All uses updated.
2084 (i386_linux_read_btrace): Renamed to
2085 x86_linux_read_btrace. All uses updated.
2087 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2089 * remote.c (extended_remote_post_attach): New function.
2090 (init_extended_remote_ops): Install it as to_post_attach method.
2092 2014-07-09 Pedro Alves <palves@redhat.com>
2094 * infcmd.c (attach_command_post_wait): Don't call
2095 target_terminal_inferior here.
2096 (attach_command): Call it here instead.
2098 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2100 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2102 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2103 from varobj.c, with additional checks.
2104 (c_varobj_ops): Fill in is_path_expr_parent field.
2105 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2106 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2108 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2110 (varobj_default_is_path_expr_parent): New function.
2111 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2112 (varobj_default_is_path_expr_parent): Declare new function.
2114 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2116 * infcmd.c (finish_backward): Turn internal error into normal error.
2118 2014-07-07 Pedro Alves <palves@redhat.com>
2121 * remote.c (async_handle_remote_sigint)
2122 (async_handle_remote_sigint_twice): Call
2123 gdb_call_async_signal_handler instead of
2124 mark_async_signal_handler.
2126 2014-07-07 Tom Tromey <tromey@redhat.com>
2128 * target-delegates.c: Rebuild.
2129 * target.c (target_info_record): Remove.
2130 * record.c (info_record_command): Unconditionally call
2132 * target.h (struct target_ops) <to_info_record>: Use
2133 TARGET_DEFAULT_IGNORE.
2134 (target_info_record): Remove.
2136 2014-07-07 Tom Tromey <tromey@redhat.com>
2138 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2139 TARGET_DEFAULT_NORETURN.
2140 * target.c (generic_tls_error): New function.
2141 (target_translate_tls_address): Don't search target stack.
2142 * target-delegates.c: Rebuild.
2143 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2145 * linux-thread-db.c (thread_db_get_thread_local_address):
2146 Unconditionally call beneath target.
2148 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2150 * cli/cli-logging.c (pop_output_files): Assign targerr to
2153 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2155 * MAINTAINERS (Write After Approval): Update my email address.
2157 2014-07-02 Gary Benson <gbenson@redhat.com>
2159 * proc-service.c (ps_xfer_memory): Update comment.
2160 (ps_pstop): Remove unused function.
2161 (ps_pcontinue): Likewise.
2162 (ps_lstop): Likewise.
2163 (ps_lcontinue): Likewise.
2164 (ps_lgetxregsize): Likewise.
2165 (ps_lgetxregs): Likewise.
2166 (ps_lsetxregs): Likewise.
2167 (ps_plog): Likewise.
2168 (ps_ptread): Likewise.
2169 (ps_ptwrite): Likewise.
2171 2014-07-01 Mark Wielaard <mjw@redhat.com>
2173 * dwarf2read.c (add_array_cv_type): New function.
2174 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2175 (read_tag_volatile_type): Likewise.
2177 2014-07-01 Tom Tromey <tromey@redhat.com>
2179 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2180 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2181 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2182 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2183 * command.h (cmd_cfunc_ftype): Move earlier.
2184 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2185 (add_com, add_info): Use cmd_cfunc_ftype.
2187 2014-06-30 Tom Tromey <tromey@redhat.com>
2189 * symtab.c (operator_chars): Make parameters and return type
2191 (file_matches): Make "files" const.
2192 (struct search_symbols_data) <files>: Now const.
2193 (search_symbols): Make "regexp" and "files" parameters const.
2195 (symtab_symbol_info): Remove cast.
2196 (rbreak_command): Update.
2197 * symtab.h (search_symbols): Update.
2199 2014-06-27 Yao Qi <yao@codesourcery.com>
2201 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2202 Change parameter type to 'struct thread_info *'. Caller
2204 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2206 * dummy-frame.c (struct dummy_frame_id): New.
2207 (dummy_frame_id_eq): New function.
2208 (struct dummy_frame) <id>: Change its type to 'struct
2210 (dummy_frame_push): Add parameter ptid and save it in
2212 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2214 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2216 (lookup_dummy_frame): Change parameter type to 'struct
2217 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2218 instead of frame_id_eq.
2219 (dummy_frame_pop): Add parameter ptid. Callers updated.
2220 Update comments. Compose dummy_frame_id and pass it to
2222 (dummy_frame_discard): Add parameter ptid.
2223 (dummy_frame_sniffer): Compose dummy_frame_id and call
2224 dummy_frame_id_eq instead of frame_id_eq.
2225 (fprint_dummy_frames): Print ptid.
2226 * dummy-frame.h: Remove comments.
2227 (dummy_frame_push): Add ptid in declaration.
2228 (dummy_frame_pop, dummy_frame_discard): Likewise.
2230 2014-06-26 Tom Tromey <tromey@redhat.com>
2232 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2233 * command.h (error_no_arg): Update.
2235 2014-06-26 Tom Tromey <tromey@redhat.com>
2237 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2238 (do_show_command): Make "arg" const.
2239 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2241 2014-06-26 Tom Tromey <tromey@redhat.com>
2243 * record-full.c (record_full_get_bookmark): Make "args" const.
2244 (record_full_goto_bookmark): Make "raw_bookmark" const.
2245 * record.c (record_goto): New function.
2246 (cmd_record_goto): Use it. Now static.
2247 * record.h (record_goto): Declare.
2248 (cmd_record_goto): Remove declaration.
2249 * target-delegates.c: Rebuild.
2250 * target.h (struct target_ops) <to_get_bookmark,
2251 to_goto_bookmark>: Make parameter const.
2253 2014-06-26 Tom Tromey <tromey@redhat.com>
2255 * defs.h (generic_load): Update.
2256 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2257 * monitor.c (monitor_load): Make "args" const.
2258 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2259 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2261 (mips_load): Make "file" const.
2262 * remote-sim.c (gdbsim_load): Make "args" const.
2263 * remote.c (remote_load): Make "name" const.
2264 * symfile.c (generic_load): Make "args" const.
2265 * target-delegates.c: Rebuild.
2266 * target.c (target_load): Make "arg" const.
2267 (debug_to_load): Make "args" const.
2268 * target.h (struct target_ops) <to_load>: Make parameter const.
2269 (target_load): Update.
2271 2014-06-26 Tom Tromey <tromey@redhat.com>
2274 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2275 (dwarf2_physname, read_partial_die)
2276 (guess_partial_die_structure_name, fixup_partial_die)
2277 (guess_full_die_structure_name, anonymous_struct_prefix)
2278 (dwarf2_name): Use per-BFD obstack.
2280 2014-06-26 Yao Qi <yao@codesourcery.com>
2282 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2283 dummyframe and this_id into inner block below.
2285 2014-06-26 Yao Qi <yao@codesourcery.com>
2287 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2288 with "signal_pass[0]" in the initialization of signal_pass.
2290 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2292 * record-btrace.c (record_btrace_generating_corefile)
2293 (record_btrace_prepare_to_generate_core)
2294 (record_btrace_done_generating_core): New.
2295 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2296 (record_btrace_store_registers, record_btrace_prepare_to_store):
2297 Forward request when generating a core file.
2298 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2299 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2300 to_done_generating_core.
2302 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2304 * target.h (target_ops) <to_prepare_to_generate_core>
2305 <to_done_generating_core>: New.
2306 (target_prepare_to_generate_core, target_done_generating_core): New.
2307 * target.c (target_prepare_to_generate_core)
2308 (target_done_generating_core): New.
2309 * target-delegates.c: Regenerate.
2310 * gcore.c: (write_gcore_file): Rename to ...
2311 (write_gcore_file_1): ...this.
2312 (write_gcore_file): Call target_prepare_to_generate_core
2313 and target_done_generating_core.
2315 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2317 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2318 * gcore.c (write_gcore_file): Free memory returned from
2319 make_corefile_notes.
2320 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2321 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2323 2014-06-24 Yao Qi <yao@codesourcery.com>
2325 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2326 (arm_linux_init_abi): Set skip_trampoline_code with
2327 gdbarch_skip_trampoline_code instead of
2328 find_solib_trampoline_target.
2330 2014-06-24 Yao Qi <yao@codesourcery.com>
2332 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2333 arm_skip_bx_reg returns non-zero.
2335 2014-06-24 Yao Qi <yao@codesourcery.com>
2337 * arm-tdep.c (arm_skip_bx_reg): New function.
2338 (arm_skip_stub): Call arm_skip_bx_reg.
2340 2014-06-23 Don Breazeal <donb@codesourcery.com>
2342 * MAINTAINERS: Add myself as write-after-approval maintainer.
2344 2014-06-23 Pedro Alves <palves@redhat.com>
2346 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2347 DR_CONTROL before setting DR0..DR3.
2348 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2349 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2350 bits of DR_CONTROL related to the debug register slot being
2351 disabled. If all slots are vacant, clear local slowdown as well,
2352 and assert DR_CONTROL is 0.
2354 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2356 * python/lib/gdb/command/xmethods.py
2357 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2358 current progspace only if the string "progspace" matches LOCUS_RE.
2360 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Fix --with-system-readline with readline-6.3 patch 5.
2363 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2364 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2367 2014-06-20 Tom Tromey <tromey@redhat.com>
2369 * dwarf2read.c (dw2_get_real_path): Use correct type in
2371 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2373 2014-06-20 Gary Benson <gbenson@redhat.com>
2375 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2376 * common/glibc_thread_db.h: Likewise.
2377 * common/i386-cpuid.h: Likewise.
2378 * common/i386-gcc-cpuid.h: Likewise.
2379 * common/linux-btrace.h: Likewise.
2380 * common/linux-osdata.h: Likewise.
2381 * common/linux-procfs.h: Likewise.
2382 * common/linux-ptrace.h: Likewise.
2383 * common/mips-linux-watch.h: Likewise.
2384 * common/linux-btrace.c: Moved to nat.
2385 * common/linux-osdata.c: Likewise.
2386 * common/linux-procfs.c: Likewise.
2387 * common/linux-ptrace.c: Likewise.
2388 * common/mips-linux-watch.c: Likewise.
2389 * nat/gdb_thread_db.h: Moved from common.
2390 * nat/glibc_thread_db.h: Likewise.
2391 * nat/i386-cpuid.h: Likewise.
2392 * nat/i386-gcc-cpuid.h: Likewise.
2393 * nat/linux-btrace.c: Likewise.
2394 * nat/linux-btrace.h: Likewise.
2395 * nat/linux-osdata.c: Likewise.
2396 * nat/linux-osdata.h: Likewise.
2397 * nat/linux-procfs.c: Likewise.
2398 * nat/linux-procfs.h: Likewise.
2399 * nat/linux-ptrace.c: Likewise.
2400 * nat/linux-ptrace.h: Likewise.
2401 * nat/mips-linux-watch.c: Likewise.
2402 * nat/mips-linux-watch.h: Likewise.
2403 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2404 (object file files): Reordered.
2405 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2406 of glibc_thread_db.h.
2408 2014-06-20 Gary Benson <gbenson@redhat.com>
2410 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2411 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2412 (i386_dr_low): Likewise.
2413 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2414 (i386_dr_low_set_addr): Likewise.
2415 (i386_dr_low_get_addr): Likewise.
2416 (i386_dr_low_can_set_control): Likewise.
2417 (i386_dr_low_set_control): Likewise.
2418 (i386_dr_low_get_control): Likewise.
2419 (i386_dr_low_get_status): Likewise.
2420 (i386_get_debug_register_length): Likewise.
2421 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2422 (i386_dr_low): Likewise.
2423 * nat/i386-dregs.c (i386-low.h): Remove include.
2424 (i386-nat.h): Likewise.
2425 (nat/i386-dregs.h): New include.
2426 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2427 (i386_dr_low_set_addr): Likewise.
2428 (i386_dr_low_get_addr): Likewise.
2429 (i386_dr_low_can_set_control): Likewise.
2430 (i386_dr_low_set_control): Likewise.
2431 (i386_dr_low_get_control): Likewise.
2432 (i386_dr_low_get_status): Likewise.
2433 (i386_get_debug_register_length): Likewise.
2434 (debug_hw_points): Likewise.
2436 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2438 * Makefile.in (SFILES): Add d-exp.y.
2439 (YYFILES): Add d-exp.c.
2440 (YYOBJ): Add d-exp.o.
2441 (local-maintainer-clean): Delete d-exp.c.
2442 * d-exp.y: New file.
2443 * d-lang.h (d_parse): New declaration.
2444 (d_error): New declaration.
2445 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2446 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2447 PREC_ORDER operators.
2448 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2450 2014-06-19 Yao Qi <yao@codesourcery.com>
2452 * gdbthread.h (any_running): Remove the declaration.
2453 * thread.c (any_running): Remove.
2455 2014-06-19 Yao Qi <yao@codesourcery.com>
2457 * gdbthread.h (struct thread_info) <state>: Change its type to
2458 'enum thread_state'. Update comments.
2460 2014-06-19 Pedro Alves <palves@redhat.com>
2462 * gdbthread.h (ALL_THREADS): Delete.
2463 (ALL_NON_EXITED_THREADS): New macro.
2464 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2465 instead of ALL_THREADS.
2466 * infrun.c (find_thread_needs_step_over)
2467 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2468 instead of ALL_THREADS.
2469 * record-btrace.c (record_btrace_open)
2470 (record_btrace_stop_recording, record_btrace_close)
2471 (record_btrace_is_replaying, record_btrace_resume)
2472 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2473 * remote.c (append_pending_thread_resumptions): Likewise.
2474 * thread.c (thread_apply_all_command): Likewise.
2476 2014-06-19 Gary Benson <gbenson@redhat.com>
2478 * i386-nat.c (i386_stopped_by_watchpoint):
2479 Use i386_dr_stopped_by_watchpoint.
2480 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2481 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2483 2014-06-19 Gary Benson <gbenson@redhat.com>
2485 * nat/i386-dregs.c: New file.
2486 * Makefile.in (i386-dregs.o): New rule.
2487 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2488 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2489 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2490 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2491 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2492 * config/i386/go32.mh (NATDEPFILES): Likewise.
2493 * config/i386/linux.mh (NATDEPFILES): Likewise.
2494 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2495 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2496 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2497 * i386-nat.h (debug_hw_points): New declaration.
2498 * i386-nat.c (breakpoint.h): Remove include.
2499 (command.h): Likewise.
2500 (target.h): Likewise.
2501 (gdb_assert.h): Likewise.
2502 (debug_hw_points): Made nonstatic.
2503 (debug_printf): Now in i386-dregs.c.
2504 (TARGET_HAS_DR_LEN_8): Likewise.
2505 (DR_CONTROL_SHIFT): Likewise.
2506 (DR_CONTROL_SIZE): Likewise.
2507 (DR_RW_EXECUTE): Likewise.
2508 (DR_RW_WRITE): Likewise.
2509 (DR_RW_READ): Likewise.
2510 (DR_RW_IORW): Likewise.
2511 (DR_LEN_1): Likewise.
2512 (DR_LEN_2): Likewise.
2513 (DR_LEN_4): Likewise.
2514 (DR_LEN_8): Likewise.
2515 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2516 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2517 (DR_ENABLE_SIZE): Likewise.
2518 (DR_LOCAL_SLOWDOWN): Likewise.
2519 (DR_GLOBAL_SLOWDOWN): Likewise.
2520 (DR_CONTROL_RESERVED): Likewise.
2521 (I386_DR_CONTROL_MASK): Likewise.
2522 (I386_DR_VACANT): Likewise.
2523 (I386_DR_LOCAL_ENABLE): Likewise.
2524 (I386_DR_GLOBAL_ENABLE): Likewise.
2525 (I386_DR_DISABLE): Likewise.
2526 (I386_DR_SET_RW_LEN): Likewise.
2527 (I386_DR_GET_RW_LEN): Likewise.
2528 (I386_DR_WATCH_HIT): Likewise.
2529 (i386_wp_op_t): Likewise.
2530 (i386_show_dr): Likewise.
2531 (i386_length_and_rw_bits): Likewise.
2532 (i386_insert_aligned_watchpoint): Likewise.
2533 (i386_remove_aligned_watchpoint): Likewise.
2534 (i386_handle_nonaligned_watchpoint): Likewise.
2535 (i386_update_inferior_debug_regs): Likewise.
2536 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2537 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2538 (i386_region_ok_for_watchpoint):
2539 Use i386_dr_region_ok_for_watchpoint.
2540 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2542 2014-06-19 Gary Benson <gbenson@redhat.com>
2544 * i386-nat.c (i386_insert_hw_breakpoint): Use
2545 i386_insert_watchpoint.
2546 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2548 2014-06-19 Gary Benson <gbenson@redhat.com>
2550 * i386-nat.c (i386_dr_show): Renamed to
2551 i386_show_dr and made static. All uses updated.
2552 (i386_dr_length_and_rw_bits): Renamed to
2553 i386_length_and_rw_bits and made static.
2555 (i386_dr_insert_aligned_watchpoint): Renamed to
2556 i386_insert_aligned_watchpoint and made static.
2558 (i386_dr_remove_aligned_watchpoint): Renamed to
2559 i386_remove_aligned_watchpoint and made static.
2561 (i386_dr_update_inferior_debug_regs): Renamed to
2562 i386_update_inferior_debug_regs and made static.
2564 * nat/i386-dregs.h (i386_dr_show): Removed.
2565 (i386_dr_length_and_rw_bits): Likewise.
2566 (i386_dr_insert_aligned_watchpoint): Likewise.
2567 (i386_dr_remove_aligned_watchpoint): Likewise.
2568 (i386_dr_update_inferior_debug_regs): Likewise.
2570 2014-06-19 Gary Benson <gbenson@redhat.com>
2572 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2573 * configure: Regenerate.
2574 * config.in: Likewise.
2575 * main.c (signal.h): New include.
2576 (setup_alternate_signal_stack): New function.
2577 (captured_main): Call the above.
2578 * cp-support.c (signal.h): New include.
2579 (catch_demangler_crashes): New flag.
2580 (SIGJMP_BUF): New define.
2581 (SIGSETJMP): Likewise.
2582 (SIGLONGJMP): Likewise.
2583 (gdb_demangle_jmp_buf): New static global.
2584 (gdb_demangle_attempt_core_dump): Likewise.
2585 (gdb_demangle_signal_handler): New function.
2586 (gdb_demangle): If catch_demangler_crashes is set, install the
2587 above signal handler before calling bfd_demangle, and restore
2588 the original signal handler afterwards. Display the offending
2589 symbol and call demangler_warning the first time a segmentation
2591 (_initialize_cp_support): New maint set/show command.
2593 2014-06-19 Gary Benson <gbenson@redhat.com>
2595 * utils.h (resource_limit_kind): New enum.
2596 (can_dump_core): New declaration.
2597 (warn_cant_dump_core): Likewise.
2598 (dump_core): Likewise.
2599 * utils.c (dump_core): Made nonstatic. Added new
2600 parameter "limit_kind".
2601 (can_dump_core): Made nonstatic. Moved printing code to...
2602 (warn_cant_dump_core): New function.
2603 (can_dump_core_warn): Likewise.
2604 (internal_vproblem): Replace calls to can_dump_core with
2605 calls to can_dump_core_warn. Supply new argument to each.
2607 2014-06-19 Gary Benson <gbenson@redhat.com>
2609 * utils.h (demangler_vwarning): New declaration.
2610 (demangler_warning): Likewise.
2611 * utils.c (struct internal_problem)
2612 <user_settable_should_quit>: New field.
2613 <user_settable_should_dump_core>: Likewise
2614 (internal_error_problem): Add values for above new fields.
2615 (internal_warning_problem): Likewise.
2616 (demangler_warning_problem): New static global.
2617 (demangler_vwarning): New function.
2618 (demangler_warning): Likewise.
2619 (add_internal_problem_command): Selectively add commands.
2620 (_initialize_utils): New internal problem command.
2621 * maint.c (maintenance_demangler_warning): New function.
2622 (_initialize_maint_cmds): New command.
2624 2014-06-18 Tom Tromey <tromey@redhat.com>
2626 * f-valprint.c (info_common_command_for_block): Update.
2627 * symtab.h (struct general_symbol_info) <common_block>: Now
2630 2014-06-18 Tom Tromey <tromey@redhat.com>
2632 * symtab.h (struct symtab) <blockvector>: Now const.
2633 * ada-lang.c (ada_add_global_exceptions): Update.
2634 * buildsym.c (augment_type_symtab): Update.
2635 * dwarf2read.c (dw2_lookup_symbol): Update.
2636 * jit.c (finalize_symtab): Update.
2637 * jv-lang.c (add_class_symtab_symbol): Update.
2638 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2640 * objfiles.c (objfile_relocate1): Update.
2641 * psymtab.c (lookup_symbol_aux_psymtabs)
2642 (maintenance_check_psymtabs): Update.
2643 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2645 * spu-tdep.c (spu_catch_start): Update.
2646 * symmisc.c (dump_symtab_1): Update.
2647 * symtab.c (lookup_global_symbol_from_objfile)
2648 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2649 (basic_lookup_transparent_type_quick)
2650 (basic_lookup_transparent_type, find_pc_sect_symtab)
2651 (find_pc_sect_line, search_symbols): Update.
2652 * block.c (find_block_in_blockvector): Make "bl" const.
2653 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2655 (blockvector_contains_pc): Make "bv" const.
2656 (block_for_pc_sect): Update.
2657 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2658 (blockvector_contains_pc): Update.
2659 * breakpoint.c (resolve_sal_pc): Update.
2660 * inline-frame.c (block_starting_point_at): Update.
2662 2014-06-18 Tom Tromey <tromey@redhat.com>
2664 * completer.c (complete_line): Make "line_buffer" const.
2665 * completer.h (complete_line): Update.
2667 2014-06-18 Tom Tromey <tromey@redhat.com>
2669 * symtab.c (add_macro_name): Remove unneeded cast.
2671 2014-06-18 Tom Tromey <tromey@redhat.com>
2673 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2674 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2676 2014-06-18 Tom Tromey <tromey@redhat.com>
2678 * probe.c (info_probes_for_ops): Make "arg" const.
2679 * probe.h (info_probes_for_ops): Update.
2681 2014-06-18 Tom Tromey <tromey@redhat.com>
2683 * varobj.c (varobj_create): Update.
2684 * valops.c (value_of_this): Update.
2685 * tracepoint.c (add_local_symbols, scope_info): Update.
2686 * symtab.h (struct general_symbol_info) <block>: Now const.
2687 * symtab.c (skip_prologue_sal)
2688 (default_make_symbol_completion_list_break_on)
2689 (skip_prologue_using_sal): Update.
2690 * stack.h (iterate_over_block_locals)
2691 (iterate_over_block_local_vars): Update.
2692 * stack.c (print_frame_args): Update.
2693 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2695 (get_selected_block): Make return type const.
2696 * python/py-frame.c (frapy_block): Update.
2697 * python/py-block.c (gdbpy_block_for_pc): Update.
2698 * p-exp.y (%union) <bval>: Now const.
2699 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2700 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2701 * m2-exp.y (%union) <bval>: Now const.
2702 * linespec.c (get_current_search_block): Make return type const.
2703 (create_sals_line_offset, find_label_symbols): Update.
2704 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2706 (block_starting_point_at): Make "block" const.
2707 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2708 (check_exception_resume): Update.
2709 * guile/scm-frame.c (gdbscm_frame_block): Update.
2710 * guile/scm-block.c (gdbscm_lookup_block): Update.
2711 * frame.h (get_frame_block): Update.
2712 (get_selected_block): Make return type const.
2713 * frame.c (frame_id_inner): Update.
2714 * f-valprint.c (info_common_command_for_block)
2715 (info_common_command): Update.
2716 * dwarf2loc.c (dwarf2_find_location_expression)
2717 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2718 (locexpr_describe_location_piece): Update.
2719 * c-exp.y (%union) <bval>: Now const.
2720 * breakpoint.c (resolve_sal_pc): Update.
2721 * blockframe.c (get_frame_block):Make return type const.
2722 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2723 (block_innermost_frame): Update.
2724 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2725 (block_for_pc, block_for_pc_sect): Update.
2726 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2728 (block_for_pc_sect, block_for_pc): Make return type const.
2729 * ax-gdb.c (gen_expr): Update.
2730 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2731 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2732 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2733 (ada_read_var_value): Update.
2734 * ada-exp.y (struct name_info) <block>: Now const.
2736 (block_lookup): Constify.
2738 2014-06-18 Gary Benson <gbenson@redhat.com>
2740 * nat/i386-dregs.h: New file.
2741 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2742 * i386-nat.h (i386-dregs.h): New include.
2743 (DR_FIRSTADDR): Now in i386-dregs.h.
2744 (DR_LASTADDR): Likewise.
2745 (DR_NADDR): Likewise.
2746 (DR_STATUS): Likewise.
2747 (DR_CONTROL): Likewise.
2748 (i386_debug_reg_state): Likewise.
2749 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2751 2014-06-18 Don Breazeal <donb@codesourcery.com>
2753 * breakpoint.c (set_longjmp_breakpoint): Call
2754 momentary_breakpoint_from_master with additional argument.
2755 (set_longjmp_breakpoint_for_call_dummy): Call
2756 momentary_breakpoint_from_master with additional argument.
2757 (set_std_terminate_breakpoint): Call
2758 momentary_breakpoint_from_master with additional argument.
2759 (momentary_breakpoint_from_master): Add argument to function
2760 definition and use it to initialize structure member flag.
2761 (clone_momentary_breakpoint): Call
2762 momentary_breakpoint_from_master with additional argument.
2763 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2764 member flags set in momentary_breakpoint_from_master.
2766 2014-06-18 Gary Benson <gbenson@redhat.com>
2768 * i386-nat.c (i386_show_dr): Renamed to
2769 i386_dr_show and made nonstatic. All uses updated.
2770 (i386_length_and_rw_bits): Renamed to
2771 i386_dr_length_and_rw_bits and made nonstatic.
2773 (i386_insert_aligned_watchpoint): Renamed to
2774 i386_dr_insert_aligned_watchpoint and made nonstatic.
2776 (i386_remove_aligned_watchpoint): Renamed to
2777 i386_dr_remove_aligned_watchpoint and made nonstatic.
2779 (i386_update_inferior_debug_regs): Renamed to
2780 i386_dr_update_inferior_debug_regs and made nonstatic.
2783 2014-06-18 Gary Benson <gbenson@redhat.com>
2785 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2786 (i386_dr_low_can_set_control): Likewise.
2787 (i386_dr_low_set_addr): Likewise.
2788 (i386_dr_low_set_control): Likewise.
2789 (i386_dr_low_get_addr): Likewise.
2790 (i386_dr_low_get_status): Likewise.
2791 (i386_dr_low_get_control): Likewise.
2792 (i386_insert_aligned_watchpoint): Use new macros.
2793 (i386_update_inferior_debug_regs): Likewise.
2794 (i386_stopped_data_address): Likewise.
2796 2014-06-18 Gary Benson <gbenson@redhat.com>
2798 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2799 New parameter. All uses updated.
2801 2014-06-18 Gary Benson <gbenson@redhat.com>
2803 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2806 2014-06-18 Gary Benson <gbenson@redhat.com>
2808 * i386-nat.c (debug_printf): New macro.
2809 (i386_get_debug_register_length): Likewise.
2810 (TARGET_HAS_DR_LEN_8): Use above macro.
2811 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2812 and printf_unfiltered. Use phex to format values.
2814 2014-06-18 Gary Benson <gbenson@redhat.com>
2816 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2819 2014-06-18 Gary Benson <gbenson@redhat.com>
2821 * i386-nat.c: Comment changes.
2823 2014-06-18 Gary Benson <gbenson@redhat.com>
2825 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2827 2014-06-18 Gary Benson <gbenson@redhat.com>
2829 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2830 (i386_insert_aligned_watchpoint): Likewise.
2831 (i386_remove_aligned_watchpoint): Likewise.
2832 (i386_handle_nonaligned_watchpoint): Likewise.
2834 2014-06-18 Gary Benson <gbenson@redhat.com>
2836 * i386-nat.c: Whitespace changes.
2838 2014-06-17 Samuel Bronson <naesten@gmail.com>
2840 * MAINTAINERS: Update Roland McGrath's email address.
2841 Thanks to Sergio Durigan Junior for pointing out that he left
2842 Red Hat a while ago, and giving me a current address.
2844 2014-06-17 Tom Tromey <tromey@redhat.com>
2846 * utils.h (savestring): Remove declaration.
2848 2014-06-17 Tom Tromey <tromey@redhat.com>
2850 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2852 2014-06-16 Keith Seitz <keiths@redhat.com>
2855 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2856 to update the varobj if inferior_ptid is null_ptid.
2858 2014-06-16 Tom Tromey <tromey@redhat.com>
2860 * target.h (struct target_ops) <to_info_proc>: Make parameter
2862 (target_info_proc): Update.
2863 * target.c (target_info_proc): Make "args" const.
2864 * procfs.c (procfs_info_proc): Update.
2865 * linux-tdep.c (linux_info_proc): Update.
2866 (linux_core_info_proc_mappings): Make "args" const.
2867 (linux_core_info_proc): Update.
2868 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2869 * gdbarch.c: Rebuild.
2870 * gdbarch.h: Rebuild.
2871 * corelow.c (core_info_proc): Update.
2873 2014-06-16 Tom Tromey <tromey@redhat.com>
2875 * target.h (struct target_ops) <to_disconnect>: Make parameter
2877 (target_disconnect): Update.
2878 * target.c (target_disconnect): Make "args" const.
2879 * target-delegates.c: Rebuild.
2880 * remote.c (remote_disconnect): Update.
2881 * record.h (record_disconnect): Update.
2882 * record.c (record_disconnect): Update.
2883 * inf-child.c (inf_child_disconnect): Update.
2885 2014-06-16 Tom Tromey <tromey@redhat.com>
2887 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2888 * target.c (debug_to_rcmd, default_rcmd): Update.
2889 * target-delegates.c: Rebuild.
2890 * remote.c (remote_rcmd): Update.
2891 * monitor.c (monitor_rcmd): Update.
2893 2014-06-16 Pedro Alves <palves@redhat.com>
2895 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2896 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2897 have OBJF_SHARED set.
2898 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2899 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2900 instead of OBJF_USERLOADED.
2901 * objfiles.h (OBJF_SHARED): Update comment.
2902 (userloaded_objfile_contains_address_p): Rename to ...
2903 (shared_objfile_contains_address_p): ... this, and update
2905 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2907 (remove_symbol_file_command): Skip objfiles that don't have
2910 2014-06-16 Tom Tromey <tromey@redhat.com>
2912 * minsyms.h (prim_record_minimal_symbol)
2913 (prim_record_minimal_symbol_and_info): Update comments.
2915 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2917 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2918 or --without-guile, according to how GDB was built.
2920 2014-06-13 Tom Tromey <tromey@redhat.com>
2922 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2924 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2926 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2928 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2929 help_list.Pass all_commands, not -1, to help_list.
2930 * cli/cli-dump.c (dump_command, append_command)
2931 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2932 (binary_dump_command, binary_append_command): Pass all_commands,
2933 not -1, to help_list.
2934 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2936 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2938 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2940 * top.c (set_history): Pass all_commands, not -1, to help_list.
2941 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2942 all_commands, not -1, to help_list.
2943 * symfile.c (overlay_command): Pass all_commands, not -1, to
2945 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2947 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2949 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2951 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2952 not -1, to help_list.
2953 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2954 not -1, to help_list.
2955 * maint.c (maintenance_command, maintenance_info_command)
2956 (maintenance_print_command, maintenance_set_cmd): Pass
2957 all_commands, not -1, to help_list.
2958 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2960 * language.c (set_check): Pass all_commands, not -1, to help_list.
2961 * infcmd.c (unset_command): Pass all_commands, not -1, to
2963 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2965 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2967 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2969 * breakpoint.c (save_command): Pass all_commands, not -1, to
2971 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2972 all_commands, not -1, to help_list.
2974 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2976 * regcache.c (struct register_to_invalidate): New structure.
2977 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2979 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2981 2014-06-12 Yao Qi <yao@codesourcery.com>
2983 * varobj.c (varobj_get_num_children): Call
2984 varobj_is_dynamic_p.
2985 (varobj_list_children): Likewise.
2986 (varobj_update): Likewise. Update comments.
2988 2014-06-12 Yao Qi <yao@codesourcery.com>
2990 * varobj.c (varobj_pretty_printed_p): Rename to ...
2991 (varobj_is_dynamic_p): ... this. New function.
2992 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2993 (varobj_is_dynamic_p): Declare.
2994 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2995 (mi_print_value_p, varobj_update_one): Likewise.
2997 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2998 Yao Qi <yao@codesourcery.com>
3000 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3001 (varobj_get_iterator): Wrap up code for pretty-printer by
3002 "#if HAVE_PYTHON" and "#endif".
3003 (update_dynamic_varobj_children): Likewise.
3005 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3006 Yao Qi <yao@codesourcery.com>
3008 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3009 gdb_python_initialized is false. Move some code from varobj.c.
3010 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3011 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3012 (struct varobj_item): Moved to varobj-iter.h".
3013 (varobj_clear_saved_item): New function.
3014 (update_dynamic_varobj_children): Move python-related code to
3016 (free_variable): Call varobj_clear_saved_item and
3019 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3020 Yao Qi <yao@codesourcery.com>
3022 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3023 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3024 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3025 (py-varobj.o): New rule.
3026 * python/py-varobj.c: New file.
3027 * python/python-internal.h (py_varobj_get_iterator): Declare.
3028 * varobj-iter.h: New file.
3029 * varobj.c: Include "varobj-iter.h"
3030 (struct varobj) <child_iter>: Change its type from "PyObject *"
3031 to "struct varobj_iter *".
3032 <saved_item>: Likewise.
3033 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3034 [HAVE_PYTHON] (varobj_get_iterator): New function.
3035 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3036 python-specific code to python/py-varobj.c.
3037 (install_visualizer): Call varobj_iter_delete instead of
3039 * varobj.h (varobj_ensure_python_env): Declare.
3041 2014-06-12 Yao Qi <yao@codesourcery.com>
3043 * varobj.c (struct varobj_item): New structure.
3044 (create_child_with_value): Update declaration.
3045 (varobj_add_child): Replace arguments 'name' and 'value' with
3046 'item'. All callers updated.
3047 (install_dynamic_child): Likewise.
3048 (update_dynamic_varobj_children): Likewise.
3049 (varobj_add_child): Likewise.
3050 (create_child_with_value): Likewise.
3052 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3054 * NEWS: Create a new section for the next release branch.
3055 Rename the section of the current branch, now that it has
3058 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3060 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3061 * version.in: Bump version to 7.8.50.DATE-cvs.
3063 2014-06-11 Pedro Alves <palves@redhat.com>
3066 * ser-mingw.c (net_windows_socket_check_pending): New function.
3067 (net_windows_select_thread): Ignore spurious wakeups. Use
3068 net_windows_socket_check_pending.
3069 (net_windows_wait_handle): Check for pending events with
3070 ioctlsocket, through net_windows_socket_check_pending, instead of
3071 checking the socket's event.
3073 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3075 * python/python-internal.h (gdb_PyObject_GetAttrString)
3076 (gdb_PyObject_HasAttrString): New inline function definitions.
3077 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3078 char * of the second argument to PyObject_GetAttrString.
3080 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3082 * serial.c (serial_write): Fix index of character to be printed
3083 in call to serial_logchar when serial debug traces are enabled.
3085 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3087 * gdbtypes (resolve_dynamic_range): Add function description.
3089 2014-06-09 Pedro Alves <palves@redhat.com>
3091 * linux-nat.c (linux_child_follow_fork): Initialize status with
3092 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3093 inner block. Only pass the signal to PTRACE_DETACH if in pass
3096 2014-06-09 Gary Benson <gbenson@redhat.com>
3098 * common/signals.c (gdb_signal_from_host): Reorder to separate
3099 the always-available ANSI-standard signals from the signals that
3101 (do_gdb_signal_to_host): Likewise.
3102 * proc-events.c (signal_table): Likewise.
3104 2014-06-08 Hui Zhu <hui@codesourcery.com>
3106 * common/linux-ptrace.c (linux_disable_event_reporting): New
3108 * common/linux-ptrace.h (linux_disable_event_reporting): New
3110 * linux-nat.c (linux_child_follow_fork): Do a single step before
3113 2014-06-07 Keith Seitz <keiths@redhat.com>
3117 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3118 from symbol_matches_domain in symtab.c. All local callers
3119 of symbol_matches_domain updated.
3120 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3121 search STRUCT_DOMAIN.
3122 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3123 independently. standard_lookup will do that automatically.
3124 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3125 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3126 (cp_lookup_symbol_in_namespace): Likewise.
3127 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3128 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3129 may return a STRUCT_DOMAIN match.
3130 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3131 * cp-support.c: Include language.h.
3132 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3134 * psymtab.c (match_partial_symbol): Compare the requested
3135 domain with the symbol's domain directly.
3136 (lookup_partial_symbol): Likewise.
3137 * symtab.c (lookup_symbol_in_language): Explain when/why
3138 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3139 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3140 appropriate languages.
3141 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3142 and moved to ada-lang.c
3143 (lookup_block_symbol): Explain that this function only returns
3144 symbol matching the requested DOMAIN.
3145 Compare the requested domain with the symbol's domain directly.
3146 (iterate_over_symbols): Compare the requested domain with the
3147 symbol's domain directly.
3148 * symtab.h (symbol_matches_domain): Remove.
3150 2014-06-06 Doug Evans <xdje42@gmail.com>
3152 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3153 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3154 (gdbscm_guile_version_is_at_least): Declare.
3155 (gdbscm_scm_string_to_int): Declare.
3156 * guile/guile.c (gdbscm_guile_major_version): New global.
3157 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3158 (guile_datadir): New static global.
3159 (gdbscm_guile_data_directory): New function.
3160 (initialize_scheme_side): Update.
3161 (misc_guile_functions): Add guile-data-directory.
3162 (initialize_gdb_module): Fetch guile version number.
3163 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3164 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3165 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3166 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3168 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3169 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3170 * guile/scm-value.c (gdbscm_value_to_string): Only call
3171 scm_port_conversion_strategy if Guile version >= 2.0.6.
3173 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3175 * main.c (print_gdb_help): Add -q and --silent.
3177 2014-06-06 Gary Benson <gbenson@redhat.com>
3179 * common/signals.c: Remove preprocessor conditionals for
3180 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3181 SIGSEGV and SIGTERM.
3182 * proc-events.c: Likewise.
3184 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3186 * symfile.c (symfile_free_objfile): Remove restriction to
3188 * symfile-mem.c (symbol_file_add_from_memory): Call
3189 add_target_sections_of_objfile.
3191 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3193 * guile/scm-value.c (gdbscm_history_append_x): Use
3194 'vlscm_get_value_smob_arg_unsafe' instead of
3195 'vlscm_scm_to_value'.
3197 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3200 * utils.c (printchar): Don't escape at all if quoter is NUL.
3201 Update function documentation to clarify effect of parameter
3203 * remote.c (escape_buffer): Pass '\\' as the quoter to
3204 fputstrn_unfiltered.
3205 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3206 generate the output.
3207 (mi_solib_unloaded): Same.
3209 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3211 * development.sh: Delete.
3212 * Makefile.in (config.status): Adjust dependency on development.sh.
3213 * configure.ac: Adjust development.sh source call.
3214 * configure: Regenerate.
3216 2014-06-04 Doug Evans <xdje42@gmail.com>
3218 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3219 is_scheme_bkpt, spec.
3220 (bpscm_make_breakpoint_smob): Initialize new members.
3221 (gdbscm_create_breakpoint_x): Split into two ...
3222 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3223 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3224 (scheme_function breakpoint_functions): Update.
3225 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3226 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3227 register-breakpoint!.
3229 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3232 * mem-break.c (z_type_supported): Return zero if
3233 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3235 2014-06-04 Tom Tromey <tromey@redhat.com>
3237 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3238 value_from_contents_and_address_unresolved.
3239 (ada_template_to_fixed_record_type_1): Likewise.
3240 (ada_which_variant_applies): Likewise.
3241 * value.h (value_from_contents_and_address_unresolved): Declare.
3242 * value.c (value_from_contents_and_address_unresolved): New
3244 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3245 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3246 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3248 2014-06-04 Tom Tromey <tromey@redhat.com>
3250 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3252 2014-06-04 Tom Tromey <tromey@redhat.com>
3254 * procfs.c (procfs_attach): Make "args" const.
3255 * windows-nat.c (windows_attach): Make "args" const.
3256 * nto-procfs.c (procfs_attach): Make "args" const.
3257 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3258 * go32-nat.c (go32_attach): Make "args" const.
3259 * gnu-nat.c (gnu_attach): Make "args" const.
3260 * darwin-nat.c (darwin_attach): Make "args" const.
3261 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3262 * linux-nat.c (linux_nat_attach): Make "args" const.
3263 * remote.c (extended_remote_attach_1, extended_remote_attach):
3265 * target.h (struct target_ops) <to_attach>: Make "args" const.
3266 (find_default_attach): Likewise.
3267 * utils.c (parse_pid_to_attach): Make "args" const.
3268 * utils.h (parse_pid_to_attach): Update.
3270 2014-06-04 Tom Tromey <tromey@redhat.com>
3272 * target-delegates.c: Rebuild.
3273 * target.c (default_thread_address_space): New function.
3274 (target_thread_address_space): Simplify.
3275 * target.h (struct target_ops) <to_thread_address_space>: Add
3276 TARGET_DEFAULT_FUNC.
3278 2014-06-04 Doug Evans <xdje42@gmail.com>
3280 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3282 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3284 * record-btrace.c: Include event-loop.h and inf-loop.h.
3285 (record_btrace_resume_exec_dir)
3286 (record_btrace_async_inferior_event_handler)
3287 (record_btrace_handle_async_inferior_event): New.
3288 (record_btrace_open): Create async event handler.
3289 (record_btrace_close): Delete async event handler.
3290 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3291 Mark async event handler.
3292 (record_btrace_execution_direction): New.
3293 (init_record_btrace_ops): Initialize to_execution_direction.
3295 2014-06-03 Doug Evans <xdje42@gmail.com>
3297 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3298 (gdbscm_make_parameter): Ditto.
3300 2014-06-03 Doug Evans <dje@google.com>
3302 * exec.c (exec_close_1): Call clear_section_table instead of
3303 resize_section_table.
3304 (clear_section_table): New function.
3305 (resize_section_table): Make static. Rename arg num_added to
3307 * exec.h (clear_section_table): Declare.
3308 (resize_section_table): Delete.
3309 * progspace.c (release_program_space): Call clear_section_table
3310 instead of resize_section_table.
3312 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3314 * NEWS (Python Scripting): Add entry about the new xmethods
3317 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3319 * python/py-xmethods.c: New file.
3320 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3321 (objfpy_dealloc): XDECREF on the new xmethods field.
3322 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3324 (objfpy_get_xmethods): New function.
3325 (objfile_getset): New entry 'xmethods'.
3326 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3327 (pspy_dealloc): XDECREF on the new xmethods field.
3328 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3330 (pspy_get_xmethods): New function.
3331 (pspace_getset): New entry 'xmethods'.
3332 * python/python-internal.h: Add declarations for new functions.
3333 * python/python.c (_initialize_python): Invoke
3334 gdbpy_initialize_xmethods.
3335 * python/lib/gdb/__init__.py (xmethods): New
3337 * python/lib/gdb/xmethod.py: New file.
3338 * python/lib/gdb/command/xmethods.py: New file.
3340 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3342 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3343 best match method returned by find_overload_match is an xmethod.
3344 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3345 the best matching operator returned by find_overload_match is an
3347 * valops.c: #include "extension.h".
3348 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3349 Return void. The list of matching source methods is returned in
3350 "fn_list" and a vector of matching debug method workers is
3351 returned in "xm_worker_vec". Update all callers.
3352 (value_find_oload_method_list): Likewise.
3353 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3354 non-NULL, then the index of the best matching method in this
3355 vector is returned. Update all callers.
3356 (find_overload_match): Include xmethods while performing overload
3359 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3361 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3362 * extension-priv.h (struct extension_language_ops): Add the
3364 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3365 get_matching_xmethod_workers, get_xmethod_argtypes,
3366 invoke_xmethod, free_xmethod_worker,
3367 free_xmethod_worker_vec): New functions.
3368 * extension.h: #include "common/vec.h".
3369 New function declarations.
3370 (struct xmethod_worker): New struct.
3371 (VEC (xmethod_worker_ptr)): New vector type.
3372 (xmethod_worker_ptr): New typedef.
3373 (xmethod_worker_vec): Likewise.
3374 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3376 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3377 (struct builtin_type): New field "xmethod".
3378 * valarith.c (value_ptradd): Assert that the value argument is not
3380 * valops.c (value_must_coerce_to_target): Return 0 for
3381 lval_xcallable values.
3382 * value.c (struct value): New field XM_WORKER in the field
3384 (value_address, value_raw_address): Return 0 for lval_xcallable
3386 (set_value_address): Assert that the value is not an
3388 (value_free): Free the associated xmethod worker when freeing
3389 lval_xcallable values.
3390 (set_value_component_location): Assert that the WHOLE value is not
3392 (value_of_xmethod, call_xmethod): New functions.
3393 * value.h: Declare "struct xmethod_worker".
3394 Declare new functions value_of_xmethod, call_xmethod.
3396 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3397 Pedro Alves <palves@redhat.com>
3399 PR breakpoints/17000
3400 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3401 New function, extracted from software_breakpoint_inserted_here_p.
3402 (software_breakpoint_inserted_here_p): Replace factored out code
3403 by call to find_non_raw_software_breakpoint_inserted_here.
3404 (bp_target_info_copy_insertion_state): New function.
3405 (bkpt_insert_location): Handle the case of a single-step
3406 breakpoint already inserted at the same address.
3407 (bkpt_remove_location): Handle the case of a single-step
3408 breakpoint still inserted at the same address.
3409 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3410 breakpoint already inserted at the same address.
3411 (deprecated_remove_raw_breakpoint): Handle the case of a
3412 non-raw breakpoint still inserted at the same address.
3413 (find_single_step_breakpoint): New function, extracted from
3414 single_step_breakpoint_inserted_here_p.
3415 (find_single_step_breakpoint): New function,
3416 factored out from single_step_breakpoint_inserted_here_p.
3417 (single_step_breakpoint_inserted_here_p): Reimplement.
3419 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3421 Pushed by Joel Brobecker <brobecker@adacore.com>
3422 * source.c (show_substitute_path_command): Fix display of matching
3425 2014-06-03 Gary Benson <gbenson@redhat.com>
3427 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3429 2014-06-02 Doug Evans <xdje42@gmail.com>
3431 Add parameter support for Guile.
3432 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3433 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3434 (scm-param.o): New rule.
3435 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3436 (gdbscm_misc_error): Declare.
3437 (gdbscm_canonicalize_command_name): Declare.
3438 (gdbscm_scm_to_host_string): Declare.
3439 (gdbscm_scm_from_host_string): Declare.
3440 (gdbscm_initialize_parameters): Declare.
3441 * guile/guile.c (initialize_gdb_module): Call
3442 gdbscm_initialize_parameters.
3443 * guile/lib/gdb.scm: Export parameter symbols.
3444 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3445 cmdscm_canonicalize_name and made public. All callers updated.
3446 * guile/scm-exception.c (gdbscm_misc_error): New function.
3447 * guile/scm-param.c: New file.
3448 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3449 (gdbscm_scm_to_host_string): New function.
3450 (gdbscm_scm_from_host_string): New function.
3451 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3453 2014-06-02 Doug Evans <xdje42@gmail.com>
3455 Add command support for Guile.
3456 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3457 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3458 (scm-cmd.o): New rule.
3459 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3460 (gdbscm_user_error_p): Declare.
3461 (gdbscm_parse_command_name): Declare.
3462 (gdbscm_valid_command_class_p): Declare.
3463 (gdbscm_initialize_commands): Declare.
3464 * guile/guile.c (initialize_gdb_module): Call
3465 gdbscm_initialize_commands.
3466 * guile/lib/gdb.scm: Export command symbols.
3467 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3468 (throw-user-error): New function.
3469 * guile/scm-cmd.c: New file.
3470 * guile/scm-exception.c (user_error_symbol): New static global.
3471 (gdbscm_user_error_p): New function.
3472 (gdbscm_initialize_exceptions): Set user_error_symbol.
3473 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3475 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3477 * top.c (command_loop): Handle comments here...
3478 (command_line_input): ... not here.
3480 2014-06-02 Doug Evans <xdje42@gmail.com>
3482 Add progspace support for Guile.
3483 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3484 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3485 (scm-progspace.o): New rule.
3486 * guile/guile-internal.h (pspace_smob): New typedef.
3487 (psscm_pspace_smob_pretty_printers): Declare.
3488 (psscm_pspace_smob_from_pspace): Declare.
3489 (psscm_scm_from_pspace): Declare.
3490 * guile/guile.c (initialize_gdb_module): Call
3491 gdbscm_initialize_pspaces.
3492 * guile/lib/gdb.scm: Export progspace symbols.
3493 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3495 (append-pretty-printer!): Ditto.
3496 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3498 * guile/scm-progspace.c: New file.
3500 2014-06-03 Alan Modra <amodra@gmail.com>
3502 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3503 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3505 2014-06-02 Doug Evans <dje@google.com>
3507 Add support for skeletonless type units.
3508 * dwarf2read.c (struct dwarf2_per_objfile): New member
3509 n_allocated_type_units.
3510 (struct dwarf2_per_objfile) <tu_stats>: New member
3511 nr_all_type_units_reallocs.
3512 (create_signatured_type_table_from_index): Initialize
3513 n_allocated_type_units
3514 (create_all_type_units): Ditto.
3515 (add_type_unit): Move up in file. New arg slot.
3516 All callers updated. Increase space for all_type_units more
3518 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3519 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3520 (lookup_dwp_signatured_type): Ditto.
3521 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3522 All callers updated.
3523 (build_type_psymtabs_1): Leave type_unit_groups as
3524 NULL if no TUs present.
3525 (print_tu_stats): New function.
3526 (process_skeletonless_type_unit): New function.
3527 (process_dwo_file_for_skeletonless_type_units): New
3529 (process_skeletonless_type_units): New function.
3530 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3531 Call print tu_stats if debugging enabled.
3533 2014-06-02 Pedro Alves <palves@redhat.com>
3535 * breakpoint.c (build_target_command_list): Don't build a command
3536 list if we have any duplicate location that isn't a dprintf.
3538 2014-06-02 Pedro Alves <palves@redhat.com>
3540 * breakpoint.c (dprintf_breakpoint_hit): New function.
3541 (initialize_breakpoint_ops): Install it as dprintf's
3542 breakpoint_hit method.
3544 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3546 * source.c (substitute_path_rule_matches): Simplify using
3547 filename_ncmp instead of FILENAME_CMP.
3549 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3551 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3553 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3555 * configure.ac: When Guile is available, check for the
3556 availability of 'scm_new_smob'.
3557 * configure, config.h.in: Regenerate.
3558 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3561 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3563 * frame.c (struct frame_info): Add stop_string field.
3564 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3565 (get_prev_frame_always): Old content moved into
3566 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3567 TRY_CATCH, handle MEMORY_ERROR exceptions.
3568 (frame_stop_reason_string): New function definition.
3569 * frame.h (unwind_stop_reason_to_string): Extend comment to
3570 mention frame_stop_reason_string.
3571 (frame_stop_reason_string): New function declaration.
3572 * stack.c (frame_info): Switch to frame_stop_reason_string.
3573 (backtrace_command_1): Switch to frame_stop_reason_string.
3574 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3575 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3576 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3578 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3580 * frame.c (frame_stop_reason_string): Rename to ...
3581 (unwind_stop_reason_to_string): this.
3582 * frame.h (frame_stop_reason_string): Rename to ...
3583 (unwind_stop_reason_to_string): this.
3584 * stack.c (frame_info): Update call to frame_stop_reason_string.
3585 (backtrace_command_1): Likewise.
3586 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3587 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3589 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3591 * frame.c (remove_prev_frame): New function.
3592 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3595 2014-05-29 Pedro Alves <palves@redhat.com>
3597 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3598 and make it const. When a single-step decays to a continue,
3599 clear 'step', not 'hw_step'. Pass whether the caller wanted
3600 to step to user_visible_resume_ptid, not what we ask the
3603 2014-05-29 Pedro Alves <palves@redhat.com>
3605 * infrun.c (process_event_stop_test, handle_step_into_function)
3606 (handle_step_into_function_backward): Adjust.
3607 Don't set the even thread's stop_step and call stop_waiting before
3608 calling end_stepping_range. Instead do that ...
3609 (end_stepping_range): ... here. Take an ecs pointer parameter.
3611 2014-05-29 Pedro Alves <palves@redhat.com>
3613 * infrun.c (stop_stepping): Rename to ...
3614 (stop_waiting): ... this.
3615 (proceed): Update comment.
3616 (process_event_stop_test, handle_inferior_event)
3617 (handle_signal_stop, handle_step_into_function)
3618 (handle_step_into_function_backward): Update.
3620 2014-05-29 Pedro Alves <palves@redhat.com>
3622 * infcall.c (run_inferior_call): Don't check whether the current
3623 thread is running after the proceed call.
3625 2014-05-29 Pedro Alves <palves@redhat.com>
3626 Tom Tromey <tromey@redhat.com>
3628 * NEWS: Mention "maint set target-async", "set mi-async", and that
3629 background execution commands are now always available.
3630 * target.h (target_async_permitted): Update comment.
3631 * target.c (target_async_permitted, target_async_permitted_1):
3633 (set_target_async_command): Rename to ...
3634 (maint_set_target_async_command): ... this.
3635 (show_target_async_command): Rename to ...
3636 (maint_show_target_async_command): ... this.
3637 (_initialize_target): Adjust.
3638 * infcmd.c (prepare_execution_command): Make extern.
3639 * inferior.h (prepare_execution_command): Declare.
3640 * infrun.c (set_observer_mode): Leave target async alone.
3641 * mi/mi-interp.c (mi_interpreter_init): Install
3642 mi_on_sync_execution_done as sync_execution_done observer.
3643 (mi_on_sync_execution_done): New function.
3644 (mi_execute_command_input_handler): Don't print the prompt if we
3645 just started a synchronous command with an async target.
3646 (mi_on_resume): Check sync_execution before printing prompt.
3647 * mi/mi-main.h (mi_async_p): Declare.
3648 * mi/mi-main.c: Include gdbcmd.h.
3649 (mi_async_p): New function.
3650 (mi_async, mi_async_1): New globals.
3651 (set_mi_async_command, show_mi_async_command, mi_async): New
3653 (exec_continue): Call prepare_execution_command.
3654 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3655 (mi_execute_async_cli_command): Use mi_async_p.
3656 (_initialize_mi_main): Install "set mi-async". Make
3657 "target-async" a deprecated alias.
3659 2014-05-29 Pedro Alves <palves@redhat.com>
3661 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3662 (_initialize_cli_interp): Adjust.
3663 * event-loop.c: Include "observer.h".
3664 (start_event_loop): Notify 'command_error' observers instead of
3665 calling display_gdb_prompt. Remove FIXME comment.
3666 * event-top.c (display_gdb_prompt): Remove call into the
3668 * inf-loop.c: Include "observer.h".
3669 (inferior_event_handler): Notify 'command_error' observers instead
3670 of calling display_gdb_prompt.
3671 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3672 observers instead of calling display_gdb_prompt.
3673 * interps.c (interp_set): Don't call display_gdb_prompt.
3674 (current_interp_display_prompt_p): Delete.
3675 * interps.h (interp_prompt_p): Delete declaration.
3676 (interp_prompt_p_ftype): Delete.
3677 (struct interp_procs) <prompt_proc_p>: Delete field.
3678 (current_interp_display_prompt_p): Delete declaration.
3679 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3680 (_initialize_mi_interp): Adjust.
3681 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3682 'command_error' observers.
3683 (tui_on_sync_execution_done, tui_on_command_error): New
3685 (tui_display_prompt_p): Delete.
3686 (_initialize_tui_interp): Adjust.
3688 2014-05-29 Pedro Alves <palves@redhat.com>
3691 * cli/cli-interp.c: Include infrun.h and observer.h.
3692 (cli_uiout, cli_interp): New globals.
3693 (cli_on_signal_received, cli_on_end_stepping_range)
3694 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3696 (cli_interpreter_init): Install them as 'end_stepping_range',
3697 'signal_received' 'signal_exited', 'exited' and 'no_history'
3699 (_initialize_cli_interp): Remove cli_interp local.
3700 * infrun.c (handle_inferior_event): Call the several stop reason
3701 observers instead of printing the stop reason directly.
3702 (end_stepping_range): New function.
3703 (print_end_stepping_range_reason, print_signal_exited_reason)
3704 (print_exited_reason, print_signal_received_reason)
3705 (print_no_history_reason): Make static, and add an uiout
3706 parameter. Print to that instead of to CURRENT_UIOUT.
3707 * infrun.h (print_end_stepping_range_reason)
3708 (print_signal_exited_reason, print_exited_reason)
3709 (print_signal_received_reason print_no_history_reason): New
3711 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3713 <cli_uiout>: New field.
3714 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3715 uiout for CLI output. Install 'signal_received',
3716 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3718 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3719 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3720 (mi_on_no_history): New functions.
3721 (ui_out_free_cleanup): Delete function.
3722 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3723 instead use the one already stored in the MI interpreter data.
3724 (mi_ui_out): Adjust.
3725 * tui/tui-interp.c: Include infrun.h and observer.h.
3726 (tui_interp): New global.
3727 (tui_on_signal_received, tui_on_end_stepping_range)
3728 (tui_on_signal_exited, tui_on_exited)
3729 (tui_on_no_history): New functions.
3730 (tui_init): Install them as 'end_stepping_range',
3731 'signal_received' 'signal_exited', 'exited' and 'no_history'
3733 (_initialize_tui_interp): Delete tui_interp local.
3735 2014-05-29 Pedro Alves <palves@redhat.com>
3738 * linux-nat.c (linux_nat_resume_callback): Rename the second
3739 parameter to 'except'. Skip LP if it points to EXCEPT.
3740 (linux_nat_resume): Don't mark the event lwp as not stopped
3741 before resuming sibling lwps. Instead ask
3742 linux_nat_resume_callback to skip the event lwp. Mark it as not
3743 stopped after actually resuming it.
3744 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3746 (wait_lwp): Mark the lwp as stopped here.
3747 (stop_wait_callback): Mark the lwp as not stopped right after
3748 resuming it. Don't mark lwps as stopped here.
3749 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3750 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3752 2014-05-29 Pedro Alves <palves@redhat.com>
3755 * infrun.c (resume): Determine how much to resume depending on
3756 whether the caller wanted a step, not whether we can hardware step
3757 the target. Mark all threads that we intend to run as running,
3758 unless we're calling an inferior function.
3759 (normal_stop): If the thread is running an infcall, don't finish
3761 * target.c (target_resume): Don't mark threads as running here.
3763 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3765 * serial.c (_initialize_serial): Remove support for
3766 the "set remotebaud" and "show remotebaud" commands.
3767 * NEWS: Add entry documenting the removal of that command.
3769 2014-05-28 Yao Qi <yao@codesourcery.com>
3771 * charset.c: Fix typo in comments.
3773 2014-05-27 Gary Benson <gbenson@redhat.com>
3775 * utils.c (internal_vproblem): Prompt for a bug report.
3777 2014-05-26 Andy Wingo <wingo@igalia.com>
3779 * guile/scm-arch.c (arscm_mark_arch_smob):
3780 * guile/scm-block.c (bkscm_mark_block_smob)
3781 (bkscm_mark_block_syms_progress_smob):
3782 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3783 * guile/scm-exception.c (exscm_mark_exception_smob):
3784 * guile/scm-frame.c (frscm_mark_frame_smob):
3785 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3786 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3787 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3788 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3789 (ppscm_mark_pretty_printer_worker_smob):
3790 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3791 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3792 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3793 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3795 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3798 2014-05-26 Andy Wingo <wingo@igalia.com>
3799 Doug Evans <xdje42@gmail.com>
3801 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3802 empty_base_class. All uses updated.
3803 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3804 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3806 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3807 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3808 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3809 (gdbscm_gsmob_has_property_p, add_property_name)
3810 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3811 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3812 (gdb-object-has-property?, gdb-object-properties): Remove.
3813 (gdb-object-kind): Renamed from gsmob-kind.
3815 2014-05-26 Andy Wingo <wingo@igalia.com>
3817 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3818 * configure: Regenerate.
3820 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3822 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3824 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3826 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3827 (replay_memory_access_read_only, replay_memory_access_read_write)
3828 (replay_memory_access_types, replay_memory_access)
3829 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3830 (cmd_set_record_btrace, cmd_show_record_btrace)
3831 (cmd_show_replay_memory_access): New.
3832 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3833 (record_btrace_remove_breakpoint): Replace
3834 record_btrace_allow_memory_access with replay_memory_access.
3835 (_initialize_record_btrace): Add commands.
3836 * NEWS: Announce it.
3838 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3840 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3842 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3844 * MAINTAINERS (Write After Approval): Move self back from
3847 2014-05-22 Pedro Alves <palves@redhat.com>
3849 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3850 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3851 (disable_randomization, enum exec_direction_kind)
3852 (execution_direction, stop_registers, start_remote)
3853 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3854 (wait_for_inferior, normal_stop, get_last_target_status)
3855 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3856 (insert_step_resume_breakpoint_at_sal)
3857 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3858 (set_step_info, print_stop_event, signal_stop_state)
3859 (signal_print_state, signal_pass_state, signal_stop_update)
3860 (signal_print_update, signal_pass_update)
3861 (update_signals_program_target, clear_exit_convenience_vars)
3862 (displaced_step_dump_bytes, update_observer_mode)
3863 (signal_catch_update, gdb_signal_from_command): Move
3865 * infrun.h: ... to this new file.
3866 * amd64-tdep.c: Include infrun.h.
3867 * annotate.c: Include infrun.h.
3868 * arch-utils.c: Include infrun.h.
3869 * arm-linux-tdep.c: Include infrun.h.
3870 * arm-tdep.c: Include infrun.h.
3871 * break-catch-sig.c: Include infrun.h.
3872 * breakpoint.c: Include infrun.h.
3873 * common/agent.c: Include infrun.h instead of inferior.h.
3874 * corelow.c: Include infrun.h.
3875 * event-top.c: Include infrun.h.
3876 * go32-nat.c: Include infrun.h.
3877 * i386-tdep.c: Include infrun.h.
3878 * inf-loop.c: Include infrun.h.
3879 * infcall.c: Include infrun.h.
3880 * infcmd.c: Include infrun.h.
3881 * infrun.c: Include infrun.h.
3882 * linux-fork.c: Include infrun.h.
3883 * linux-nat.c: Include infrun.h.
3884 * linux-thread-db.c: Include infrun.h.
3885 * monitor.c: Include infrun.h.
3886 * nto-tdep.c: Include infrun.h.
3887 * procfs.c: Include infrun.h.
3888 * record-btrace.c: Include infrun.h.
3889 * record-full.c: Include infrun.h.
3890 * remote-m32r-sdi.c: Include infrun.h.
3891 * remote-mips.c: Include infrun.h.
3892 * remote-notif.c: Include infrun.h.
3893 * remote-sim.c: Include infrun.h.
3894 * remote.c: Include infrun.h.
3895 * reverse.c: Include infrun.h.
3896 * rs6000-tdep.c: Include infrun.h.
3897 * s390-linux-tdep.c: Include infrun.h.
3898 * solib-irix.c: Include infrun.h.
3899 * solib-osf.c: Include infrun.h.
3900 * solib-svr4.c: Include infrun.h.
3901 * target.c: Include infrun.h.
3902 * top.c: Include infrun.h.
3903 * windows-nat.c: Include infrun.h.
3904 * mi/mi-interp.c: Include infrun.h.
3905 * mi/mi-main.c: Include infrun.h.
3906 * python/py-threadevent.c: Include infrun.h.
3908 2014-05-22 Pedro Alves <palves@redhat.com>
3910 * infrun.c (handle_inferior_event): Store the exit code for
3911 --return-child-result here, instead of ...
3912 (print_exited_reason): ... here.
3914 2014-05-21 Pedro Alves <palves@redhat.com>
3917 * gdbthread.h (struct thread_control_state): New field
3919 * infrun.c (follow_fork): Copy the new thread control field to the
3921 (clear_proceed_status_thread): Clear the new thread control field.
3922 (proceed): Set the new thread control field.
3923 * interps.h (command_interp): Declare.
3924 * interps.c (command_interpreter): New global.
3925 (command_interp): New function.
3926 (interp_exec): Set `command_interpreter' while here.
3927 * cli-out.c (cli_uiout_dtor): New function.
3928 (cli_ui_out_impl): Install it.
3929 * mi/mi-interp.c: Include cli-out.h.
3930 (mi_cmd_interpreter_exec): Add comment.
3931 (restore_current_uiout_cleanup): New function.
3932 (ui_out_free_cleanup): New function.
3933 (mi_on_normal_stop): If finishing an execution command started by
3934 a CLI command, or any kind of breakpoint-like event triggered,
3935 print the stop event to the output (CLI) stream.
3936 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3938 2014-05-21 Pedro Alves <palves@redhat.com>
3940 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3941 current source line having changed.
3942 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3943 * infrun.c (normal_stop): Adjust call to
3944 set_current_sal_from_frame.
3945 * source.c (clear_lines_listed_range): New function.
3946 (set_current_source_symtab_and_line, identify_source_line): Clear
3947 the lines listed range.
3948 (line_info): Handle the first "info line" after the current source
3949 line having changed.
3950 * stack.c (print_stack_frame): Remove center handling.
3951 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3954 2014-05-21 Pedro Alves <palves@redhat.com>
3956 * inf-child.c (inf_child_mourn_inferior): New function.
3957 * inf-child.h (inf_child_mourn_inferior): New declaration.
3958 * darwin-nat.c (darwin_mourn_inferior): Use
3959 inf_child_mourn_inferior.
3960 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3961 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3962 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3963 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3964 * windows-nat.c (windows_mourn_inferior): Likewise.
3966 2014-05-21 Doug Evans <xdje42@gmail.com>
3968 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3970 2014-05-21 Doug Evans <xdje42@gmail.com>
3972 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3973 (gdbscm_out_of_range_error): Ditto.
3974 (gdbscm_memory_error): Ditto.
3975 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3976 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3977 (gdbscm_out_of_range_error): Update.
3978 (gdbscm_memory_error): Update.
3979 (gdbscm_scm_to_target_string_unsafe): Delete.
3981 2014-05-21 Pedro Alves <palves@redhat.com>
3983 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3985 (inf_child_open_target): New function.
3986 (inf_child_open): Use inf_child_open_target to push the target
3987 instead of erroring out.
3988 (inf_child_disconnect, inf_child_close)
3989 (inf_child_maybe_unpush_target): New functions.
3990 (inf_child_target): Install inf_child_disconnect and
3991 inf_child_close. Store a pointer to the returned object.
3992 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3994 * target.c (auto_connect_native_target): New global.
3995 (show_default_run_target): New function.
3996 (find_default_run_target): Return NULL if automatically connecting
3997 to the native target is disabled.
3998 (_initialize_target): Install set/show auto-connect-native-target.
3999 * NEWS: Mention "set auto-connect-native-target", and "target
4001 * linux-nat.c (super_close): New global.
4002 (linux_nat_close): Call super_close.
4003 (linux_nat_add_target): Store a pointer to the base class's
4005 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4006 inf_child_maybe_unpush.
4007 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4009 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4010 the inferior. Use inf_child_maybe_unpush_target.
4011 (inf_ttrace_attach): Don't push the target if it is already
4013 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4014 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4015 after mourning the inferior. Use inf_child_maybe_unpush_target.
4016 (darwin_attach_pid): Don't push the target if it is already
4018 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4019 mourning the inferior. Use inf_child_maybe_unpush_target.
4020 (gnu_detach): Use inf_child_maybe_unpush_target.
4021 * go32-nat.c (go32_create_inferior): Don't push the target if it
4023 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4024 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4025 (procfs_open): Rename to ...
4026 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4027 comments. Can target_preopen before changing node. Call
4028 inf_child_open_target to push the target explicitly.
4029 (procfs_attach): Don't push the target if it is already pushed.
4030 (procfs_detach): Use inf_child_maybe_unpush_target.
4031 (procfs_create_inferior): Don't push the target if it is already
4033 (nto_native_ops): New global.
4034 (procfs_open): Reimplement.
4035 (procfs_native_open): New function.
4036 (init_procfs_targets): Install procfs_native_open as to_open of
4037 "target native". Store a pointer to the "native" target in
4039 * procfs.c (procfs_attach): Don't push the target if it is already
4041 (procfs_detach): Use inf_child_maybe_unpush_target.
4042 (procfs_mourn_inferior): Only unpush the target after mourning the
4043 inferior. Use inf_child_maybe_unpush_target.
4044 (procfs_init_inferior): Don't push the target if it is already
4046 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4047 if it is already pushed.
4049 2014-05-21 Pedro Alves <palves@redhat.com>
4051 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4052 and "procfs" targets are now called "native" instead.
4054 2014-05-21 Pedro Alves <palves@redhat.com>
4056 * go32-nat.c (go32_open): Delete.
4057 (go32_target): Don't override the to_open method.
4059 2014-05-21 Pedro Alves <palves@redhat.com>
4061 * nto-procfs.c (procfs_can_run): New function.
4062 (nto_procfs_ops): New global.
4063 (init_procfs_targets): New, based on procfs_target. Install
4064 "target native" in addition to "target procfs".
4065 (_initialize_procfs): Call init_procfs_targets instead of adding
4068 2014-05-21 Pedro Alves <palves@redhat.com>
4070 * windows-nat.c (windows_target): Don't override to_shortname,
4071 to_longname or to_doc.
4073 2014-05-21 Pedro Alves <palves@redhat.com>
4075 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4078 2014-05-21 Pedro Alves <palves@redhat.com>
4080 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4081 to_shortname, to_longname or to_doc.
4083 2014-05-21 Pedro Alves <palves@redhat.com>
4085 * go32-nat.c (go32_target): Don't override to_shortname,
4086 to_longname or to_doc.
4088 2014-05-21 Pedro Alves <palves@redhat.com>
4090 * inf-child.c (inf_child_open): Remove mention of "child".
4091 (inf_child_target): Rename target to "native" instead of "child".
4093 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4095 * Makefile.in (SFILES): Delete "regset.c".
4096 (COMMON_OBS): Delete "regset.o".
4098 * regset.h (regset_alloc): Delete prototype.
4100 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4102 * sparc-linux-tdep.c (sparc32_linux_gregset)
4103 (sparc32_linux_fpregset): New static regset structures.
4104 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4105 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4107 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4108 (sparc64_linux_fpregset): New static regset structures.
4109 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4110 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4111 New static regset structures.
4112 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4113 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4114 New static regset structures.
4115 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4116 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4117 New static regset structures.
4118 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4119 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4120 New static regset structures.
4121 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4123 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4125 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4126 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4127 register maps ("regmaps") from "*regset" to "*regmap". Do this
4128 for all regmap types and variables.
4129 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4130 (sparc32_linux_supply_core_gregset)
4131 (sparc32_linux_collect_core_gregset)
4132 (sparc32_linux_supply_core_fpregset)
4133 (sparc32_linux_collect_core_fpregset): Likewise.
4134 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4135 (sparc_gregmap, sparc_fpregmap): ... these.
4136 (sparc_supply_gregset, sparc_collect_gregset)
4137 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4138 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4139 (_initialize_sparc_nat): Rename regmaps.
4140 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4141 (sparc_gregmap, sparc_fpregmap): ... these.
4142 (sparc_supply_gregset, sparc_collect_gregset)
4143 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4144 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4146 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4147 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4149 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4151 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4152 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4153 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4155 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4156 (sparc32_bsd_fpregset): Rename to...
4157 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4158 (sparc32_bsd_fpregmap): ... these.
4159 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4160 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4161 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4162 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4163 (struct sparc_gregmap, struct sparc_fpregmap)
4164 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4165 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4166 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4167 (sparc32_supply_regset, sparc32_collect_gregset)
4168 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4170 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4171 (sparc64_linux_ptrace_gregmap): ... this.
4172 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4173 (_initialize_sparc64_linux_nat): Rename regmaps.
4174 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4175 (sparc64_linux_core_gregmap): ... this.
4176 (sparc64_linux_supply_core_gregset)
4177 (sparc64_linux_collect_core_gregset)
4178 (sparc64_linux_supply_core_fpregset)
4179 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4180 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4181 (sparc64_sol2_fpregset): Rename to...
4182 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4183 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4184 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4186 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4187 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4188 (sparc64_bsd_fpregset): Rename to...
4189 (struct sparc_gregmap, sparc64_sol2_gregmap)
4190 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4191 (sparc64_bsd_fpregmap): ... these.
4192 (sparc64_supply_gregset, sparc64_collect_gregset)
4193 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4195 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4196 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4197 (sparc64fbsd_gregmap): ... this.
4198 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4199 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4201 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4202 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4203 (sparc64nbsd_collect_fpregset): Likewise.
4204 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4205 (sparc64nbsd_gregmap): ... this.
4206 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4208 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4209 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4210 (sparc64obsd_gregmap): ... this.
4211 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4213 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4214 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4215 (sparc32nbsd_gregmap): ... this.
4216 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4219 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4221 * score-tdep.c (score7_linux_gregset): New static regset
4223 (score7_linux_regset_from_core_section): Remove dynamic regset
4225 (score_gdbarch_init): Drop allocation of tdep structure.
4226 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4228 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4230 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4232 (am33_regset_from_core_section): Remove dynamic regset
4235 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4237 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4238 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4240 (mips_linux_regset_from_core_section): Remove dynamic regset
4242 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4243 'gregset64', 'fpregset', and 'fpregset64'.
4244 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4245 deleted tdep fields.
4247 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4249 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4251 (amd64_regset_from_core_section): Remove dynamic regset
4253 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4255 (amd64obsd_regset_from_core_section): Remove dynamic regset
4257 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4259 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4260 x86-common regset supply function.
4261 * i386-tdep.c (i386_collect_gregset): Make static.
4262 (i386_gregset): New global regset structure.
4263 (i386_fpregset, i386_xstateregset): New static regset structures.
4264 (i386_regset_from_core_section): Remove dynamic regset
4266 (i386_gdbarch_init): Remove initialization of tdep fields
4267 'gregset', 'fpregset', and 'xstateregset'.
4268 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4269 'fpregset', and 'xstateregset'.
4270 (i386_collect_gregset): Remove prototype.
4271 (i386_gregset): New declaration.
4272 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4274 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4277 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4279 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4280 (arm_linux_vfpregset): New static regset structures.
4281 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4283 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4284 and 'vfpregset' fields.
4286 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4288 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4289 (aarch64_linux_fpregset): New static regset structures.
4290 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4291 of regset structures.
4292 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4295 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4297 * regset.h (struct regset): Remove gdbarch field.
4298 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4299 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4300 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4302 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4303 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4304 (ppc32_linux_vsxregset): Likewise.
4305 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4306 via the regcache instead of the regset.
4307 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4308 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4309 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4310 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4313 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4315 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4316 Constify structures.
4317 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4318 (alphanbsd_aout_gregset): Likewise.
4319 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4320 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4322 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4323 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4325 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4326 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4327 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4328 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4329 * m88k-tdep.c (m88k_gregset): Likewise.
4330 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4331 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4332 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4333 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4334 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4335 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4336 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4337 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4338 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4340 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4341 * sh-tdep.h (sh_corefile_gregset): Likewise.
4342 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4343 * vax-tdep.c (vax_gregset): Likewise.
4345 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4347 Fix TLS access for -static -pthread.
4348 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4349 (try_thread_db_load_1): Initialize it.
4350 (thread_db_get_thread_local_address): Call it if LM is zero.
4351 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4352 * target.h (struct target_ops) (to_get_thread_local_address): Add
4353 load_module_addr comment.
4355 2014-05-21 Pedro Alves <palves@redhat.com>
4357 * dcache.c (dcache_read_memory_partial): If reading the cache line
4358 fails, fallback to reading just the memory the caller wanted.
4360 2014-05-20 Doug Evans <dje@google.com>
4362 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4363 instead of get_current_arch.
4365 2014-05-20 Pedro Alves <palves@redhat.com>
4367 * NEWS: Mention that compare-sections now works with all targets.
4369 * remote.c (PACKET_qCRC): New enum value.
4370 (remote_verify_memory): Don't send qCRC if the target has no
4371 execution. Use packet_support/packet_ok. If the target doesn't
4372 support the qCRC packet, fallback to a deep memory copy.
4373 (compare_sections_command): Say "target image" instead of "remote
4375 (_initialize_remote): Add PACKET_qCRC to the list of config
4376 packets that have no associated command. Extend comment.
4377 * target.c (simple_verify_memory, default_verify_memory): New
4379 * target.h (struct target_ops) <to_verify_memory>: Default to
4380 default_verify_memory.
4381 (simple_verify_memory): New declaration.
4382 * target-delegates.c: Regenerate.
4384 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4386 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4388 2014-05-20 Hui Zhu <hui@codesourcery.com>
4389 Yao Qi <yao@codesourcery.com>
4392 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4393 and change address of sp and pc.
4395 2014-05-19 Tom Tromey <tromey@redhat.com>
4397 * gdbtypes.c (rank_function): Use XNEWVEC.
4398 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4400 2014-05-19 Doug Evans <dje@google.com>
4402 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4403 build_type_unit_groups and moved closer to only caller. Remove
4404 arguments. All references updated. Remove outdated .gdb_index
4406 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4407 build_type_psymtabs_1.
4409 2014-05-19 Doug Evans <dje@google.com>
4411 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4412 n_type_unit_groups, all_type_unit_groups. All uses removed.
4413 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4414 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4415 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4416 (add_type_unit_group_to_table): Delete.
4418 2014-05-19 Doug Evans <dje@google.com>
4420 * eval.c (evaluate_subexp_standard): Add some comments.
4422 2014-05-17 Doug Evans <xdje42@gmail.com>
4424 * progspace.c (remove_program_space): Delete, unused.
4425 * progspace.h (remove_program_space): Ditto.
4427 2014-05-17 Doug Evans <xdje42@gmail.com>
4429 * inferior.c (prune_inferiors): Fix comment.
4430 (remove_inferior_command): Call prune_program_spaces.
4432 2014-05-16 Doug Evans <dje@google.com>
4434 New command line option -D.
4436 * main.c (set_gdb_data_directory): New function.
4437 (captured_main): Recognize -D. Flag error for --data-directory "".
4438 Call set_gdb_data_directory.
4439 (print_gdb_help): Print --data-directory, -D.
4440 * main.h (set_gdb_data_directory): Declare.
4441 * top.c (staged_gdb_datadir): New static global.
4442 (set_gdb_datadir): Call set_gdb_data_directory
4443 (show_gdb_datadir): New function.
4444 (init_main): Update init of data-directory parameter.
4446 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4448 Import the "dirfd" gnulib module.
4449 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4450 * gnulib/aclocal.m4: Update.
4451 * gnulib/config.in: Update.
4452 * gnulib/configure: Update.
4453 * gnulib/import/Makefile.am: Update.
4454 * gnulib/import/Makefile.in: Update.
4455 * gnulib/import/dirfd.c: New.
4456 * gnulib/import/m4/dirfd.m4: New.
4457 * gnulib/import/m4/gnulib-cache.m4: Update.
4458 * gnulib/import/m4/gnulib-comp.m4: Update.
4460 2014-05-16 Pierre Muller <muller@sourceware.org>
4461 Yao Qi <yao@codesourcery.com>
4463 * valprint.c (print_wchar): Move the code on checking whether
4464 W is a printable wide char to the default branch of switch
4465 statement below. Call wchar_printable instead of gdb_iswprint.
4467 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4469 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4470 ldr.w and ldrd instructions.
4472 2014-05-15 Doug Evans <dje@google.com>
4474 * dwarf2read.c (read_structure_type): Delete outdated comments.
4476 2014-05-14 Tom Tromey <tromey@redhat.com>
4478 * macrocmd.c (print_macro_definition): Reindent.
4480 2014-05-13 Doug Evans <xdje42@gmail.com>
4482 * python/py-cmd.c (cmdpy_completer): Add comment.
4483 (completers): Make const.
4485 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4487 * infrun.c (resume): Remove should_resume (unused). Move up
4488 declaration of resume_ptid.
4490 2014-05-13 Tom Tromey <tromey@redhat.com>
4492 * language.h (unop_type_check): Remove.
4493 (binop_type_check): Don't declare.
4495 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4497 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4498 call to regcache_raw_collect.
4500 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4502 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4503 mi_console->quote as the quoting character.
4505 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4507 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4509 2014-04-29 Tom Tromey <tromey@redhat.com>
4511 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4512 "show debug varobj".
4514 2014-05-07 Kyle McMartin <kyle@redhat.com>
4516 Pushed by Joel Brobecker <brobecker@adacore.com>.
4517 * aarch64-tdep.c (aarch64_software_single_step): New function.
4518 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4519 with aarch64_software_single_step.
4521 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4525 2014-05-05 Keith Seitz <keiths@redhat.com>
4527 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4528 variable or history value is successfully parsed.
4530 2014-05-05 Yao Qi <yao@codesourcery.com>
4531 Pedro Alves <palves@redhat.com>
4533 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4534 address of blocks that intersects the requested range. Trim
4535 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4537 * ctf.c (ctf_xfer_partial): Likewise.
4539 2014-05-05 Yao Qi <yao@codesourcery.com>
4541 * printcmd.c (display_command): Remove the check to
4542 target_has_execution.
4544 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4546 * ppcobsd-nat.c: Include "obsd-nat.h".
4547 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4549 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4551 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4553 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4554 and 16-bit signed and unsigned arguments. Update comment.
4555 (stap_parse_probe_arguments): Extend code to handle such
4556 arguments. Use warning instead of complaint to notify about
4557 unrecognized bitness.
4559 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4561 PR breakpoints/16889
4562 * stap-probe.c (stap_parse_probe_arguments): Simplify
4563 check for non-prefixed probes (i.e., probes whose
4564 arguments do not start with "N@"). Always set the
4565 argument type to a sane value.
4567 2014-05-01 David Taylor <dtaylor@emc.com>
4569 * remote.c (compare_sections_command): Add -r option to compare
4570 all loadable read-only sections.
4572 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4574 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4575 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4577 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4578 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4579 Remove unused CORE_ADDR argument. Update all callers.
4581 2014-04-29 Pedro Alves <palves@redhat.com>
4583 * remote.c (struct packet_config) <detect>: Extend comment.
4584 (add_packet_config_cmd): Don't set the config's detect or support
4586 (init_all_packet_configs): Also initialize the config's 'detect'
4588 (reset_all_packet_configs_support): New function.
4589 (remote_open_1): Call reset_all_packet_configs_support instead of
4590 init_all_packet_configs.
4591 (_initialize_remote): Initialize all packet configs. Assert that
4592 all packets have an associated command, except a few known
4595 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4597 * dwarf2read.c (read_subrange_type): Handle dynamic
4598 DW_AT_lower_bound attributes.
4600 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4602 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4603 dynamic bounds before computing its upper bound.
4604 (ada_discrete_type_low_bound): Same as above with the lower bound.
4606 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4608 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4609 range types. Adjust the array handling implementation to
4610 take advantage of this change.
4611 (resolve_dynamic_range): New function, mostly extracted from
4612 resolve_dynamic_bounds.
4613 (resolve_dynamic_array): New function, mostly extracted from
4614 resolve_dynamic_bounds.
4615 (resolve_dynamic_bounds): Delete.
4616 (resolve_dynamic_type): Reimplement. Add handling of
4617 TYPE_CODE_RANGE types.
4619 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4621 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4622 handling of parallel ___XA types.
4624 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4626 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4627 unnecessary second call to static_unwrap_type.
4629 2014-04-27 Hui Zhu <hui@codesourcery.com>
4631 * stack.c (print_frame_info): Call do_gdb_disassembly with
4632 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4634 2014-04-26 Doug Evans <xdje42@gmail.com>
4636 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4638 2014-04-25 Pedro Alves <palves@redhat.com>
4641 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4642 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4643 and newline from built string.
4644 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4645 (linux_ptrace_attach_fail_reason): ... this.
4646 * linux-nat.c (linux_nat_attach): Adjust to use
4647 linux_ptrace_attach_fail_reason.
4649 2014-04-25 Pedro Alves <palves@redhat.com>
4651 * remote.c (struct remote_state): Remove multi_process_aware,
4652 non_stop_aware, cond_tracepoints, cond_breakpoints,
4653 breakpoint_commands, fast_tracepoints, static_tracepoints,
4654 install_in_trace, disconnected_tracing,
4655 enable_disable_tracepoints, string_tracing, and
4656 augmented_libraries_svr4_read fields.
4657 (remote_multi_process_p): Move further below in the file.
4658 (struct packet_config): Add comments.
4659 (update_packet_config): Delete function.
4660 (show_packet_config_cmd): Use packet_config_support.
4661 (add_packet_config_cmd): Use NULL as set callback.
4662 (packet_ok): "set remote foo-packet"-style commands no longer
4663 change config->supported -- adjust.
4664 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4665 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4666 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4667 (PACKET_QNonStop, PACKET_multiprocess_feature)
4668 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4669 (PACKET_DisconnectedTracing_feature)
4670 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4671 (set_remote_protocol_packet_cmd): Delete function.
4672 (packet_config_support, packet_support): New functions.
4673 (set_remote_protocol_Z_packet_cmd): Don't call
4674 update_packet_config.
4675 (remote_query_attached, remote_pass_signals)
4676 (remote_program_signals, remote_threads_info)
4677 (remote_threads_extra_info, remote_start_remote): Use
4679 (remote_start_remote): Use packet_config_support and
4681 (init_all_packet_configs): Set all packets to unknown support,
4682 instead of calling update_packet_config.
4683 (remote_check_symbols): Use packet_support.
4684 (remote_supported_packet): Unconditionally set the packet config's
4686 (remote_multi_process_feature, remote_non_stop_feature)
4687 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4688 (remote_breakpoint_commands_feature)
4689 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4690 (remote_install_in_trace_feature)
4691 (remote_disconnected_tracing_feature)
4692 (remote_enable_disable_tracepoint_feature)
4693 (remote_string_tracing_feature)
4694 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4695 (remote_protocol_features): Adjust to use remote_supported_packet
4696 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4697 "ConditionalTracepoints", "ConditionalBreakpoints",
4698 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4699 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4700 "EnableDisableTracepoints", and "tracenz".
4701 (remote_query_supported): Use packet_support.
4702 (remote_open_1): Adjust.
4703 (extended_remote_attach_1): Use packet_support. Switch on the
4704 result of packet_ok instead of checking whether the packet ended
4706 (remote_vcont_resume): Use packet_support.
4707 (remote_resume, remote_stop_ns, fetch_register_using_p)
4708 (remote_prepare_to_store, store_register_using_P)
4709 (check_binary_download, remote_write_bytes): Use packet_support.
4710 (remote_vkill): Use packet_support. Switch on the result of
4711 packet_ok instead of checking whether the packet ended up
4713 (extended_remote_supports_disable_randomization): Use
4715 (extended_remote_run): Switch on the result of packet_ok instead
4716 of checking whether the packet ended up disabled.
4717 (remote_insert_breakpoint, remote_remove_breakpoint)
4718 (remote_insert_watchpoint, remote_remove_watchpoint)
4719 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4721 (remote_search_memory): Use packet_config_support.
4722 (remote_get_thread_local_address, remote_get_tib_address)
4723 (remote_hostio_send_command, remote_can_execute_reverse): Use
4725 (remote_supports_cond_tracepoints)
4726 (remote_supports_cond_breakpoints)
4727 (remote_supports_fast_tracepoints)
4728 (remote_supports_static_tracepoints)
4729 (remote_supports_install_in_trace)
4730 (remote_supports_enable_disable_tracepoint)
4731 (remote_supports_string_tracing)
4732 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4733 the packet config says the feature is enabled or disabled.
4734 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4735 (remote_get_trace_status): Use packet_support.
4736 (remote_set_disconnected_tracing): Adjust to check whether the
4737 feature is enabled with packet_support.
4738 (remote_set_trace_buffer_size, remote_use_agent)
4739 (remote_can_use_agent, remote_supports_btrace): Use
4741 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4742 Use packet_config_support.
4743 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4744 the packet config says the feature is enabled or disabled.
4745 (set_range_stepping): Use packet_support.
4747 2014-04-25 Tom Tromey <tromey@redhat.com>
4749 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4752 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4754 * NEWS: Mention support for C99 variable length arrays.
4756 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4758 * ada-lang.c (standard_exc): Expand introductory comment.
4760 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4761 Walfred Tedeschi <walfred.tedeschi@intel.com>
4763 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4765 (amd64_linux_read_description): Add code to handle AVX512 xstate
4766 mask and return respective tdesc.
4767 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4768 and features/i386/x32-avx512-linux.c.
4769 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4770 (amd64_linux_core_read_description): Add code to handle AVX512
4771 xstate mask and return respective tdesc.
4772 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4773 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4775 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4776 (tdesc_amd64_avx512_linux): New prototype.
4777 (tdesc_x32_avx512_linux): Likewise.
4778 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4779 features/i386/x32-avx512.c.
4780 (amd64_ymm_avx512_names): New register names for pseudo
4782 (amd64_ymmh_avx512_names): New register names for raw registers
4784 (amd64_k_names): New register names for K registers.
4785 (amd64_zmmh_names): New register names for ZMM raw registers.
4786 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4787 (amd64_xmm_avx512_names): New register names for XMM16-31
4789 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4791 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4792 if feature is present.
4793 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4794 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4795 (AMD64_NUM_REGS): Adjust to new number of registers.
4796 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4797 registers supplied via XSTATE by AVX512 registers.
4798 (i386_linux_read_description): Add case for AVX512.
4799 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4800 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4801 (i386_linux_core_read_description): Add case for AVX512.
4802 (i386_linux_init_abi): Install supported register note section
4804 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4806 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4807 registers to be number of zmm7h + 1.
4808 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4809 * i386-tdep.c: Include features/i386/i386-avx512.c.
4810 (i386_zmm_names): Add ZMM pseudo register names array.
4811 (i386_zmmh_names): Add ZMM raw register names array.
4812 (i386_k_names): Add K raw register names array.
4813 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4814 registers. AVX512 has 16 more ZMM registers than there are YMM
4816 (i386_zmmh_regnum_p): Add function to look up register number of
4818 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4819 (i386_k_regnum_p): Likewise for K raw registers.
4820 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4821 registers added by AVX512.
4822 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4823 registers added by AVX512.
4824 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4826 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4827 (i386_pseudo_register_name): Add ZMM pseudo registers.
4828 (i386_zmm_type): Construct and return vector registers type for ZMM
4830 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4831 ZMM0-31 pseudo registers and K registers.
4832 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4833 and YMM16-31 registers from register cache.
4834 (i386_pseudo_register_write): Add code to write K, ZMM and
4836 (i386_register_reggroup_p): Add code to include/exclude AVX512
4837 registers in/from respective register groups.
4838 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4839 registers if feature is present in xcr0.
4840 (i386_gdbarch_init): Add code to initialize AVX512 feature
4841 variables in tdep structure, wire in pseudo registers and call
4842 initialize_tdesc_i386_avx512.
4843 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4845 (i386_regnum): Add AVX512 registers.
4846 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4847 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4848 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4849 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4851 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4852 (i386_ymm_avx512_regnum_p): Likewise.
4853 (i386_k_regnum_p): Likewise.
4854 (i386_zmm_regnum_p): Likewise.
4855 (i386_zmmh_regnum_p): Likewise.
4856 * i387-tdep.c : Update year in copyright notice.
4857 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4859 (XSAVE_YMM_AVX512_ADDR): New macro.
4860 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4862 (XSAVE_XMM_AVX512_ADDR): New macro.
4863 (xsave_avx512_k_offset): New table for K register offsets in
4865 (XSAVE_AVX512_K_ADDR): New macro.
4866 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4868 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4869 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4871 (i387_collect_xsave): Add code to collect AVX512 registers from
4873 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4874 of XMM16-31 registers.
4875 (I387_NUM_K_REGS): New define for number of K registers.
4876 (I387_K0_REGNUM): New define for K0 register number.
4877 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4878 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4879 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4881 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4882 (I387_XMM16_REGNUM): New define for XMM16 register number.
4883 (I387_YMM0_REGNUM): New define for YMM0 register number.
4884 (I387_KEND_REGNUM): New define for last K register number.
4885 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4886 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4888 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4890 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4892 * features/Makefile: Add AVX512 related files.
4893 * features/i386/32bit-avx512.xml: New file.
4894 * features/i386/64bit-avx512.xml: Likewise.
4895 * features/i386/amd64-avx512-linux.c: Likewise.
4896 * features/i386/amd64-avx512-linux.xml: Likewise.
4897 * features/i386/amd64-avx512.c: Likewise.
4898 * features/i386/amd64-avx512.xml: Likewise.
4899 * features/i386/i386-avx512-linux.c: Likewise.
4900 * features/i386/i386-avx512-linux.xml: Likewise.
4901 * features/i386/i386-avx512.c: Likewise.
4902 * features/i386/i386-avx512.xml: Likewise.
4903 * features/i386/x32-avx512-linux.c: Likewise.
4904 * features/i386/x32-avx512-linux.xml: Likewise.
4905 * features/i386/x32-avx512.c: Likewise.
4906 * features/i386/x32-avx512.xml: Likewise.
4907 * regformats/i386/amd64-avx512-linux.dat: New file.
4908 * regformats/i386/amd64-avx512.dat: Likewise.
4909 * regformats/i386/i386-avx512-linux.dat: Likewise.
4910 * regformats/i386/i386-avx512.dat: Likewise.
4911 * regformats/i386/x32-avx512-linux.dat: Likewise.
4912 * regformats/i386/x32-avx512.dat: Likewise.
4913 * NEWS: Add note about new support for AVX512.
4916 2014-04-23 Pedro Alves <palves@redhat.com>
4918 * breakpoint.c (insert_bp_location): Tolerate errors if the
4919 breakpoint is set in a user-loaded objfile.
4920 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4921 location is marked shlib_disabled. If the breakpoint is set in a
4922 user-loaded objfile is a GDB-side memory breakpoint, validate it
4923 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4924 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4926 * mem-break.c (memory_validate_breakpoint): New function.
4927 * objfiles.c (userloaded_objfile_contains_address_p): New
4929 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4930 * target.h (memory_validate_breakpoint): New declaration.
4932 2014-04-23 Pedro Alves <palves@redhat.com>
4934 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4935 the breakpoint is set in a shared library, only suppress
4936 errors for software breakpoints, not hardware breakpoints.
4938 2014-04-22 Pedro Alves <palves@redhat.com>
4940 * infrun.c (schedlock_applies): New function, factored out from
4941 find_thread_needs_step_over.
4942 (find_thread_needs_step_over): Use it.
4943 (switch_back_to_stepped_thread): Always clear trap_expected if the
4944 step over is finished. Return early if scheduler locking applies.
4945 Look for the stepping thread and a potential step-over thread with
4947 (currently_stepping_or_nexting_callback): Delete.
4949 2014-04-22 Nick Clifton <nickc@redhat.com>
4951 * NEWS: Mention that ARM sim now supports tracing.
4953 2014-04-22 Yao Qi <yao@codesourcery.com>
4955 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4957 * tracefile.c (tracefile_fetch_registers): ... it. New
4959 * tracefile.h (tracefile_fetch_registers): Declare.
4960 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4961 tracefile_fetch_registers.
4963 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4966 * windows-nat.c (thread_rec): Don't display a warning when
4967 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4968 fails for any reason, set th->suspended to -1, so that we don't
4969 try to resume such a thread. Also, don't return NULL in these
4970 cases, to avoid completely ruin the session due to "PC register is
4971 not available" error.
4972 (do_windows_fetch_inferior_registers): Check errors in
4973 GetThreadContext call.
4974 (windows_continue): Accept an additional argument KILLED; if not
4975 zero, ignore errors in the SetThreadContext call, since the
4976 inferior was killed and is shutting down.
4977 (windows_resume, get_windows_debug_event)
4978 (windows_create_inferior, windows_mourn_inferior)
4979 (windows_kill_inferior): All callers of windows_continue changed
4980 to adjust to its new calling sequence.
4982 2014-04-19 Yao Qi <yao@codesourcery.com>
4984 * ctf.c (ctf_open): Call post_create_inferior.
4986 2014-04-19 Yao Qi <yao@codesourcery.com>
4988 * ctf.c (handle_id): New static variable.
4989 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4990 value. Get the declaration of event "register" and get length
4991 of field "contents".
4993 2014-04-19 Yao Qi <yao@codesourcery.com>
4995 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4997 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4999 * valops.c (oload_method_static): Remove unnecessary argument
5000 METHOD. Update all callers.
5002 2014-04-18 Pedro alves <palves@redhat.com>
5003 Tom Tromey <tromey@redhat.com>
5006 * frame.c (get_prev_frame_1): Rename to ...
5007 (get_prev_frame_always): ... this, and make extern. Adjust.
5008 (skip_artificial_frames): Use get_prev_frame_always.
5009 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5010 (get_frame_unwind_stop_reason): Adjust to rename.
5011 * frame.h (get_prev_frame_always): Declare.
5012 * inline-frame.c: Include frame.h.
5013 (inline_frame_this_id): Use get_prev_frame_always.
5015 2014-04-18 Tristan Gingold <gingold@adacore.com>
5017 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5018 code by using bfd_mach_o_get_base_address.
5020 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5022 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5023 (spu_ax_pseudo_register_collect): New function.
5024 (spu_ax_pseudo_register_push_stack): Likewise.
5025 (spu_dwarf_reg_to_regnum): Likewise.
5026 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5028 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5030 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5031 Replace FRAME argument with FRAME_ID.
5032 * gdbarch.c, gdbarch.h: Regenerate.
5033 * findvar.c (default_value_from_register): Add GDBARCH argument;
5034 replace FRAME by FRAME_ID. No longer call get_frame_id.
5035 (value_from_register): Update call to gdbarch_value_from_register.
5036 * value.h (default_value_from_register): Update prototype.
5037 * s390-linux-tdep.c (s390_value_from_register): Update interface
5038 and call to default_value_from_register.
5039 * spu-tdep.c (spu_value_from_register): Likewise.
5041 * findvar.c (address_from_register): Remove TYPE argument.
5042 Do not call value_from_register; use gdbarch_value_from_register
5043 with null_frame_id instead.
5044 * value.h (address_from_register): Update prototype.
5045 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5046 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5047 address_from_register interface change.
5049 2014-04-17 Yao Qi <yao@codesourcery.com>
5051 * gdbtypes.h: Update comments to link to types and macros'
5054 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5056 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5058 2014-04-16 Keith Seitz <keiths@redhat.com>
5061 * dwarf2read.c (skip_one_die): Check that all relative-offset
5062 sibling DIEs fall within range of the current reader's buffer.
5063 (read_partial_die): Likewise.
5065 2014-04-16 Keith Seitz <keiths@redhat.com>
5068 * cp-namespace.c (lookup_symbol_file): If the type name of
5069 `this' is NULL, return immediately.
5071 2014-04-14 Keith Seitz <keiths@redhat.com>
5074 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5075 from symbol_matches_domain in symtab.c. All local callers
5076 of symbol_matches_domain updated.
5077 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5078 search STRUCT_DOMAIN.
5079 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5080 independently. standard_lookup will do that automatically.
5081 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5082 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5083 (cp_lookup_symbol_in_namespace): Likewise.
5084 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5085 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5086 may return a STRUCT_DOMAIN match.
5087 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5088 * cp-support.c: Include language.h.
5089 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5091 * psymtab.c (match_partial_symbol): Compare the requested
5092 domain with the symbol's domain directly.
5093 (lookup_partial_symbol): Likewise.
5094 * symtab.c (lookup_symbol_in_language): Explain when/why
5095 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5096 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5097 appropriate languages.
5098 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5099 and moved to ada-lang.c
5100 (lookup_block_symbol): Explain that this function only returns
5101 symbol matching the requested DOMAIN.
5102 Compare the requested domain with the symbol's domain directly.
5103 (iterate_over_symbols): Compare the requested domain with the
5104 symbol's domain directly.
5105 * symtab.h (symbol_matches_domain): Remove.
5107 2014-04-14 Tom Tromey <tromey@redhat.com>
5110 * c-exp.y (type_aggregate_p): New function.
5111 (qualified_name, classify_inner_name): Use it.
5112 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5113 and TYPE_TARGET_TYPE of an enum type.
5114 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5116 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5117 handle TYPE_DECLARED_CLASS.
5118 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5120 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5121 * valops.c (enum_constant_from_type): New function.
5122 (value_aggregate_elt): Use it.
5123 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5126 2014-04-14 Tom Tromey <tromey@redhat.com>
5128 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5129 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5131 * value.h (value_aggregate_elt): Update.
5133 2014-04-14 Tom Tromey <tromey@redhat.com>
5135 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5137 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5139 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5140 (evaluate_subexp_standard): Pass noside argument.
5141 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5142 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5143 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5144 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5145 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5147 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5149 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5150 points to a constant blob.
5152 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5154 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5155 property and store it as the high bound and flag the range accordingly.
5156 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5157 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5158 * gdbtypes.h (enum range_flags): New enum.
5159 (struct range_bounds): Add flags member.
5161 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5163 * c-typeprint.c (c_type_print_varspec_suffix): Added
5164 check for not yet resolved high bound. If unresolved, print
5165 "variable length" string to the console instead of random
5168 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5170 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5172 (ada_template_to_fixed_record_type_1): Likewise.
5173 (ada_to_fixed_type_1): Likewise.
5174 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5175 (cp_print_value): Likewise.
5176 * d-valprint.c (dynamic_array_type): Likewise.
5177 * findvar.c (address_of_variable): Likewise.
5178 * jv-valprint.c (java_value_print): Likewise.
5179 * valops.c (value_ind): Likewise.
5180 * value.c (coerce_ref): Likewise.
5182 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5184 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5185 value and retrieve the dynamic type size.
5187 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5189 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5190 passed to sizeof is dynamic evaluate the argument to compute the length.
5192 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5193 Joel Brobecker <brobecker@adacore.com>
5195 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5196 (dwarf2_evaluate_property): New function.
5197 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5198 * dwarf2read.c (attr_to_dynamic_prop): New function.
5199 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5201 * gdbtypes.c: Include dwarf2loc.h.
5202 (is_dynamic_type): New function.
5203 (resolve_dynamic_type): New function.
5204 (resolve_dynamic_bounds): New function.
5205 (get_type_length): New function.
5206 (check_typedef): Use get_type_length to compute type length.
5207 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5208 (TYPE_LOW_BOUND_KIND): New macro.
5209 (is_dynamic_type): New function prototype.
5210 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5211 to resolve dynamic properties of the type. Update comment.
5212 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5214 2014-04-14 Richard Henderson <rth@redhat.com>
5216 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5218 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5219 Doug Evans <xdje42@gmail.com>
5221 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5222 dereference TYPE_CODE_REF values.
5224 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5226 Revert the following changes due to regressions:
5228 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5229 (dwarf2_evaluate_property): New function.
5230 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5231 * dwarf2read.c (attr_to_dynamic_prop): New function.
5232 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5234 * gdbtypes.c: Include dwarf2loc.h.
5235 (is_dynamic_type): New function.
5236 (resolve_dynamic_type): New function.
5237 (resolve_dynamic_bounds): New function.
5238 (get_type_length): New function.
5239 (check_typedef): Use get_type_length to compute type length.
5240 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5241 (TYPE_LOW_BOUND_KIND): New macro.
5242 (is_dynamic_type): New function prototype.
5243 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5244 to resolve dynamic properties of the type. Update comment.
5245 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5247 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5248 passed to sizeof is dynamic evaluate the argument to compute the length.
5250 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5251 value and retrieve the dynamic type size.
5253 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5254 (ada_template_to_fixed_record_type_1): Likewise.
5255 (ada_to_fixed_type_1): Likewise.
5256 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5257 (cp_print_value): Likewise.
5258 * d-valprint.c (dynamic_array_type): Likewise.
5259 * eval.c (evaluate_subexp_with_coercion): Likewise.
5260 * findvar.c (address_of_variable): Likewise.
5261 * jv-valprint.c (java_value_print): Likewise.
5262 * valops.c (value_ind): Likewise.
5263 * value.c (coerce_ref): Likewise.
5265 * c-typeprint.c (c_type_print_varspec_suffix): Added
5266 check for not yet resolved high bound. If unresolved, print
5267 "variable length" string to the console instead of random
5270 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5271 property and store it as the high bound and flag the range accordingly.
5272 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5273 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5274 * gdbtypes.h (enum range_flags): New enum.
5275 (struct range_bounds): Add flags member.
5277 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5278 points to a constant blob.
5280 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5281 (evaluate_subexp_standard): Pass noside argument.
5282 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5283 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5284 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5285 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5286 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5288 2014-04-11 Keith Seitz <keiths@redhat.com>
5291 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5292 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5295 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5297 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5298 (evaluate_subexp_standard): Pass noside argument.
5299 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5300 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5301 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5302 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5303 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5305 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5307 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5308 points to a constant blob.
5310 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5312 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5313 property and store it as the high bound and flag the range accordingly.
5314 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5315 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5316 * gdbtypes.h (enum range_flags): New enum.
5317 (struct range_bounds): Add flags member.
5319 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5321 * c-typeprint.c (c_type_print_varspec_suffix): Added
5322 check for not yet resolved high bound. If unresolved, print
5323 "variable length" string to the console instead of random
5326 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5328 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5329 (ada_template_to_fixed_record_type_1): Likewise.
5330 (ada_to_fixed_type_1): Likewise.
5331 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5332 (cp_print_value): Likewise.
5333 * d-valprint.c (dynamic_array_type): Likewise.
5334 * eval.c (evaluate_subexp_with_coercion): Likewise.
5335 * findvar.c (address_of_variable): Likewise.
5336 * jv-valprint.c (java_value_print): Likewise.
5337 * valops.c (value_ind): Likewise.
5338 * value.c (coerce_ref): Likewise.
5340 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5342 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5343 value and retrieve the dynamic type size.
5345 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5347 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5348 passed to sizeof is dynamic evaluate the argument to compute the length.
5350 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5352 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5353 (dwarf2_evaluate_property): New function.
5354 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5355 * dwarf2read.c (attr_to_dynamic_prop): New function.
5356 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5358 * gdbtypes.c: Include dwarf2loc.h.
5359 (is_dynamic_type): New function.
5360 (resolve_dynamic_type): New function.
5361 (resolve_dynamic_bounds): New function.
5362 (get_type_length): New function.
5363 (check_typedef): Use get_type_length to compute type length.
5364 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5365 (TYPE_LOW_BOUND_KIND): New macro.
5366 (is_dynamic_type): New function prototype.
5367 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5368 to resolve dynamic properties of the type. Update comment.
5369 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5371 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5373 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5374 declaring high/low bounds and change uses accordingly. Call
5375 create_range_type instead of create_static_range_type.
5376 * gdbtypes.c (create_range_type): New function.
5377 (create_range_type): Convert bounds into struct bound_prop and pass
5378 them to create_range_type.
5379 * gdbtypes.h (struct bound_prop): New struct.
5380 (create_range_type): New function prototype.
5381 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5382 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5383 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5385 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5387 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5389 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5390 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5391 * ada-lang.c: All uses of create_range_type updated.
5392 * coffread.c: All uses of create_range_type updated.
5393 * dwarf2read.c: All uses of create_range_type updated.
5394 * f-exp.y: All uses of create_range_type updated.
5395 * m2-valprint.c: All uses of create_range_type updated.
5396 * mdebugread.c: All uses of create_range_type updated.
5397 * stabsread.c: All uses of create_range_type updated.
5398 * valops.c: All uses of create_range_type updated.
5399 * valprint.c: All uses of create_range_type updated.
5401 2014-04-10 Pedro Alves <palves@redhat.com>
5403 * breakpoint.c (single_step_breakpoints)
5404 (single_step_gdbarch): Move up in the file.
5405 (one_breakpoint_xfer_memory): New function, factored out from ...
5406 (breakpoint_xfer_memory): ... here. Also process single-step
5409 2014-04-09 Tristan Gingold <gingold@adacore.com>
5411 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5413 (darwin_decode_exception_message): Free port only after use.
5415 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5417 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5418 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5419 when setting the size of call_length.
5421 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5423 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5424 dereference TYPE_CODE_REF values.
5426 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5428 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5429 end of warning message.
5431 2014-04-03 Doug Evans <dje@google.com>
5433 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5434 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5436 2014-04-02 Alan Modra <amodra@gmail.com>
5438 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5439 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5440 (struct symbol_file_add_from_memory_args): Add size field.
5441 (find_vdso_size): New function.
5442 (add_vsyscall_page): Attempt to find vdso size.
5444 2014-04-01 Doug Evans <dje@google.com>
5446 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5448 2014-04-01 Tristan Gingold <gingold@adacore.com>
5450 * darwin-nat.c (darwin_encode_reply): Add prototype.
5451 (darwin_decode_exception_message): Reply to unknown inferiors.
5452 (darwin_decode_message): Handle message by id. Ignore message
5453 to unknown inferior.
5454 (darwin_wait): Discard unknown messages, add debug trace.
5456 2014-03-31 Doug Evans <dje@google.com>
5458 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5461 2014-03-31 Doug Evans <dje@google.com>
5463 New option "set print symbol-loading".
5465 * solib.c (solib_read_symbols): Only print symbol loading messages
5467 (solib_add): If symbol loading is in "brief" mode, notify user
5468 symbols are being loaded.
5469 (reload_shared_libraries_1): Ditto.
5470 * symfile.c (print_symbol_loading_off): New static global.
5471 (print_symbol_loading_brief): New static global.
5472 (print_symbol_loading_full): New static global.
5473 (print_symbol_loading_enums): New static global.
5474 (print_symbol_loading): New static global.
5475 (print_symbol_loading_p): New function.
5476 (symbol_file_add_with_addrs): Only print symbol loading messages
5478 (_initialize_symfile): Register "print symbol-loading" set/show
5480 * symfile.h (print_symbol_loading_p): Declare.
5482 2014-03-30 Doug Evans <xdje42@gmail.com>
5484 * infrun.c (set_last_target_status): New function.
5485 (handle_inferior_event): Call it.
5487 2014-03-30 Doug Evans <xdje42@gmail.com>
5489 * inferior.h (enum stop_kind): Improve comment.
5491 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5493 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5494 a reference, strip the reference layer before calling
5495 the lang_ops value_has_mutated callback.
5497 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5499 Remove some globals from our parser.
5500 * language.c (unk_lang_parser): Add "struct parser_state"
5502 * language.h (struct language_defn) <la_parser>: Likewise.
5503 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5504 (initialize_expout): Add "struct parser_state" argument.
5505 Rewrite function to use the parser state.
5506 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5507 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5508 write_exp_elt_longcst, write_exp_elt_dblcst,
5509 write_exp_elt_decfloatcst, write_exp_elt_type,
5510 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5511 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5512 write_dollar_variable): Likewise.
5513 (parse_exp_in_context_1): Use parser state.
5514 (insert_type_address_space): Add "struct parser_state" argument.
5516 (increase_expout_size): New function.
5517 * parser-defs.h: Forward declare "struct language_defn" and
5518 "struct parser_state".
5519 (expout, expout_size, expout_ptr): Remove extern declarations.
5520 (parse_gdbarch, parse_language): Rewrite macro declarations to
5521 accept the parser state.
5522 (struct parser_state): New struct.
5523 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5524 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5525 write_exp_elt_decfloatcst, write_exp_elt_type,
5526 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5527 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5528 write_exp_msymbol, write_dollar_variable,
5529 mark_struct_expression, insert_type_address_space): Add "struct
5530 parser_state" argument.
5531 (increase_expout_size): New function.
5532 * utils.c (do_clear_parser_state): New function.
5533 (make_cleanup_clear_parser_state): Likewise.
5534 * utils.h (make_cleanup_clear_parser_state): New function
5536 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5537 Update calls to write_exp* in order to pass the parser state.
5538 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5539 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5540 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5541 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5542 * stap-probe.c (stap_parse_register_operand): Likewise.
5543 (stap_parse_single_operand): Likewise.
5544 (stap_parse_argument_1): Likewise.
5545 (stap_parse_argument): Use parser state.
5546 * stap-probe.h: Include "parser-defs.h".
5547 (struct stap_parse_info) <pstate>: New field.
5548 * c-exp.y (parse_type): Rewrite to use parser state.
5549 (yyparse): Redefine to c_parse_internal.
5550 (pstate): New global variable.
5551 (parse_number): Add "struct parser_state" argument.
5552 (write_destructor_name): Likewise.
5553 (type_exp): Update calls to write_exp* and similars in order to
5555 (exp1, exp, variable, qualified_name, space_identifier,
5556 typename, typebase): Likewise.
5557 (write_destructor_name, parse_number, lex_one_token,
5558 classify_name, classify_inner_name, c_parse): Add "struct
5559 parser_state" argument. Update function to use parser state.
5560 * c-lang.h: Forward declare "struct parser_state".
5561 (c_parse): Add "struct parser_state" argument.
5562 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5563 (yyparse): Redefine macro to ada_parse_internal.
5564 (pstate): New variable.
5565 (write_int, write_object_renaming, write_var_or_type,
5566 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5567 type_int, type_long, type_long_long, type_float, type_double,
5568 type_long_double, type_char, type_boolean, type_system_address):
5569 Add "struct parser_state" argument.
5570 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5571 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5572 var_or_type, aggregate, aggregate_component_list,
5573 positional_list, others, component_group,
5574 component_associations): Update calls to write_exp* and similar
5575 functions in order to use parser state.
5576 (ada_parse, write_var_from_sym, write_int,
5577 write_exp_op_with_string, write_object_renaming,
5578 find_primitive_type, write_selectors, write_ambiguous_var,
5579 write_var_or_type, write_name_assoc, type_int, type_long,
5580 type_long_long, type_float, type_double, type_long_double,
5581 type_char, type_boolean, type_system_address): Add "struct
5582 parser_state" argument. Adjust function to use parser state.
5583 * ada-lang.c (parse): Likewise.
5584 * ada-lang.h: Forward declare "struct parser_state".
5585 (ada_parse): Add "struct parser_state" argument.
5586 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5587 calls to both functions.
5588 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5590 (yyparse): Redefine macro to f_parse_internal.
5591 (pstate): New variable.
5592 (parse_number): Add "struct parser_state" argument.
5593 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5594 and similars in order to use parser state.
5595 (parse_number): Adjust code to use parser state.
5597 (f_parse): New function.
5598 * f-lang.h: Forward declare "struct parser_state".
5599 (f_parse): Add "struct parser_state" argument.
5600 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5602 (yyparse): Redefine macro for java_parse_internal.
5603 (pstate): New variable.
5604 (push_expression_name, push_expression_name, insert_exp): Add
5605 "struct parser_state" argument.
5606 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5607 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5608 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5609 PostIncrementExpression, PostDecrementExpression,
5610 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5611 UnaryExpressionNotPlusMinus, CastExpression,
5612 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5613 RelationalExpression, EqualityExpression, AndExpression,
5614 ExclusiveOrExpression, InclusiveOrExpression,
5615 ConditionalAndExpression, ConditionalOrExpression,
5616 ConditionalExpression, Assignment, LeftHandSide): Update
5617 calls to write_exp* and similars in order to use parser state.
5618 (parse_number): Ajust code to use parser state.
5620 (java_parse): New function.
5621 (push_variable): Add "struct parser_state" argument. Adjust
5622 code to user parser state.
5623 (push_fieldnames, push_qualified_expression_name,
5624 push_expression_name, insert_exp): Likewise.
5625 * jv-lang.h: Forward declare "struct parser_state".
5626 (java_parse): Add "struct parser_state" argument.
5627 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5629 (yyparse): Redefine macro to m2_parse_internal.
5630 (pstate): New variable.
5631 (type_exp, exp, fblock, variable, type): Update calls to
5632 write_exp* and similars to use parser state.
5634 (m2_parse): New function.
5635 * m2-lang.h: Forward declare "struct parser_state".
5636 (m2_parse): Add "struct parser_state" argument.
5637 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5638 * objc-lang.h: Forward declare "struct parser_state".
5639 (end_msglist): Add "struct parser_state" argument.
5640 * p-exp.y (parse_type): Rewrite macro to use parser state.
5641 (yyparse): Redefine macro to pascal_parse_internal.
5642 (pstate): New variable.
5643 (parse_number): Add "struct parser_state" argument.
5644 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5645 write_exp* and similars in order to use parser state.
5646 (parse_number, yylex): Adjust code to use parser state.
5647 (pascal_parse): New function.
5648 * p-lang.h: Forward declare "struct parser_state".
5649 (pascal_parse): Add "struct parser_state" argument.
5650 * go-exp.y (parse_type): Rewrite macro to use parser state.
5651 (yyparse): Redefine macro to go_parse_internal.
5652 (pstate): New variable.
5653 (parse_number): Add "struct parser_state" argument.
5654 (type_exp, exp1, exp, variable, type): Update calls to
5655 write_exp* and similars in order to use parser state.
5656 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5657 to use parser state.
5658 (go_parse): Likewise.
5659 * go-lang.h: Forward declare "struct parser_state".
5660 (go_parse): Add "struct parser_state" argument.
5662 2014-03-27 Doug Evans <dje@google.com>
5664 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5666 2014-03-27 Doug Evans <dje@google.com>
5668 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5669 Remove argument abbrev_section. All callers updated.
5671 2014-03-27 Doug Evans <dje@google.com>
5673 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5674 addr_base, ranges_base.
5676 2014-03-26 Keith Seitz <keiths@redhat.com>
5678 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5679 types, not VAR_DOMAIN.
5681 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5683 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5685 * features/nios2-linux.c: Regenerated.
5686 * features/nios2.c: Regenerated.
5688 2014-03-25 Pedro Alves <palves@redhat.com>
5690 * cli/cli-script.c (script_from_file): Force the interpreter to
5693 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5695 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5696 small stack allocation.
5698 2014-03-24 Tristan Gingold <gingold@adacore.com>
5700 * darwin-nat.c (exc_server): Remove unused prototype.
5701 (darwin_dump_message): Correctly display data on x86_64.
5702 (darwin_encode_reply): Fix style.
5703 Add comments and fix indentation.
5705 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5707 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5709 2014-03-22 Doug Evans <xdje42@gmail.com>
5711 * infcmd.c: Whitespace fixes.
5712 (interrupt_command): Merge two function comments into one.
5714 2014-03-22 Doug Evans <xdje42@gmail.com>
5716 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5719 2014-03-22 Yao Qi <yao@codesourcery.com>
5721 * remote.c (target_read_live_memory): Remove.
5722 (memory_xfer_live_readonly_partial): Rename it to
5723 remote_xfer_live_readonly_partial. Remove argument 'object'.
5724 All callers updated. Call remote_read_bytes_1
5725 instead of target_read_live_memory.
5726 * tracepoint.c (set_traceframe_number): Remove.
5727 (make_cleanup_restore_traceframe_number): Likewise .
5728 * tracepoint.h (set_traceframe_number): Remove declaration.
5729 (make_cleanup_restore_traceframe_number): Likewise.
5731 2014-03-22 Yao Qi <yao@codesourcery.com>
5733 * remote.c (remote_read_bytes): Move code on reading from the
5735 (remote_read_bytes_1): ... here. New function.
5737 2014-03-22 Yao Qi <yao@codesourcery.com>
5739 * ctf.c (ctf_xfer_partial): Check the return value of
5740 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5741 return TARGET_XFER_UNAVAILABLE.
5742 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5743 * target.c (target_read_live_memory): Move it to remote.c.
5744 (memory_xfer_live_readonly_partial): Likewise.
5745 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5746 * remote.c (target_read_live_memory): Moved from target.c.
5747 (memory_xfer_live_readonly_partial): Likewise.
5748 (remote_read_bytes): Factored out from
5749 memory_xfer_partial_1.
5751 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5753 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5756 2014-03-21 Pedro Alves <palves@redhat.com>
5758 * infrun.c (normal_stop): Extend comment.
5760 2014-03-21 Hui Zhu <hui@codesourcery.com>
5761 Pedro Alves <palves@redhat.com>
5763 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5765 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5766 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5767 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5769 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5771 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5772 `z' formatted output modifier.
5774 2014-03-20 Tom Tromey <tromey@redhat.com>
5775 Sergio Durigan Junior <sergiodj@redhat.com>
5777 * probe.c (parse_probes): Turn assert into an ordinary error.
5778 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5779 exceptions when parsing probes. Rearrange the code for clarity.
5781 2014-03-20 Tom Tromey <tromey@redhat.com>
5784 * top.c (execute_command): Only dispatch events if the command
5787 2014-03-20 Tom Tromey <tromey@redhat.com>
5790 * infcall.c: Include event-top.h.
5791 (run_inferior_call): Call async_disable_stdin if needed.
5793 2014-03-20 Pedro Alves <palves@redhat.com>
5795 * infrun.c (prepare_to_proceed): Delete.
5796 (thread_still_needs_step_over): New function.
5797 (find_thread_needs_step_over): New function.
5798 (proceed): If the current thread needs a step-over, set its
5799 steping_over_breakpoint flag. Adjust to use
5800 find_thread_needs_step_over instead of prepare_to_proceed.
5801 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5802 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5804 (switch_back_to_stepped_thread): Step over breakpoints of all
5805 threads not the stepping thread, before switching back to the
5808 2014-03-20 Pedro Alves <palves@redhat.com>
5810 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5812 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5813 * infrun.c (saved_singlestep_ptid)
5814 (stepping_past_singlestep_breakpoint): Delete.
5815 (resume): Remove stepping_past_singlestep_breakpoint handling.
5816 (proceed): Store the prev_pc of the stepping thread too.
5817 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5819 (enum infwait_states): Delete infwait_thread_hop_state.
5820 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5822 (handle_inferior_event): Adjust.
5823 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5824 handling and the thread-hop code. Before removing single-step
5825 breakpoints, check whether the thread hit a single-step breakpoint
5826 of another thread. If it did, the trap is not a random signal.
5827 (switch_back_to_stepped_thread): If the event thread hit a
5828 single-step breakpoint, unblock it before switching to the
5829 stepping thread. Handle the case of the stepped thread having
5831 (keep_going): Handle the case of the current thread moving past a
5832 single-step breakpoint.
5834 2014-03-20 Pedro Alves <palves@redhat.com>
5837 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5838 are being stepped over.
5839 (breakpoint_address_match): Make extern.
5840 * breakpoint.h (breakpoint_address_match): New declaration.
5841 * inferior.h (stepping_past_instruction_at): New declaration.
5842 * infrun.c (struct step_over_info): New type.
5843 (step_over_info): New global.
5844 (set_step_over_info, clear_step_over_info)
5845 (stepping_past_instruction_at): New functions.
5846 (handle_inferior_event): Clear the step-over info when
5847 trap_expected is cleared.
5848 (resume): Remove now stale comment.
5849 (clear_proceed_status): Clear step-over info.
5850 (proceed): Adjust step-over handling to set or clear the step-over
5851 info instead of removing all breakpoints.
5852 (handle_signal_stop): When setting up a thread-hop, don't remove
5854 (stop_stepping): Clear step-over info.
5855 (keep_going): Adjust step-over handling to set or clear step-over
5856 info and then always inserting breakpoints, instead of removing
5857 all breakpoints when stepping over one.
5859 2014-03-20 Pedro Alves <palves@redhat.com>
5861 * infrun.c (previous_inferior_ptid): Adjust comment.
5862 (deferred_step_ptid): Delete.
5863 (infrun_thread_ptid_changed, prepare_to_proceed)
5864 (init_wait_for_inferior): Adjust.
5865 (handle_signal_stop): Delete deferred_step_ptid handling.
5867 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5870 * defs.h (sync_quit_force_run): New declaration.
5871 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5872 * event-top.c (async_sigterm_handler): New declaration.
5873 (async_sigterm_token): New variable.
5874 (async_init_signals): Create also async_sigterm_token.
5875 (async_sigterm_handler): New function.
5876 (sync_quit_force_run): New variable.
5877 (handle_sigterm): Replace quit_force call by other calls.
5878 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5880 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5882 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5883 offset into SPE pseudo registers.
5885 2014-03-18 Pedro Alves <palves@redhat.com>
5888 * inferior.h (print_stop_event): Declare.
5889 * infrun.c (print_stop_event): New, factored out from ...
5890 (normal_stop): ... this.
5891 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5892 of bpstat_print/print_stack_frame.
5894 2014-03-17 Tom Tromey <tromey@redhat.com>
5896 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5898 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5900 * ada-lang.c (decode_constrained_packed_array): Perform a
5901 minimal coercion for reference with coerce_ref instead of
5904 2014-03-17 Tristan Gingold <gingold@adacore.com>
5906 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5907 (darwin_solib_create_inferior_hook): Emit a warning if version
5910 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5912 * python/py-value.c (get_field_flag): Cast flag_name argument to
5913 PyObject_GetAttrString to support Python 2.4.
5915 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5917 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5918 (Global Maintainers): Remove Jan Kratochvil.
5920 2014-03-14 Pedro Alves <palves@redhat.com>
5922 * inferior.h (terminal_ours_for_output): Rename to ...
5923 (child_terminal_ours_for_output): ... this.
5924 (terminal_save_ours): Rename to ...
5925 (child_terminal_save_ours): ... this.
5926 (terminal_ours): Rename to ...
5927 (child_terminal_ours): ... this.
5928 (terminal_inferior): Rename to ...
5929 (child_terminal_inferior): ... this.
5930 (terminal_init_inferior): Rename to ...
5931 (child_terminal_init_inferior): ... this.
5932 (terminal_init_inferior_with_pgrp): Rename to ...
5933 (child_terminal_init_inferior_with_pgrp): ... this.
5934 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5935 (child_terminal_init_with_pgrp): ... this.
5936 (terminal_save_ours): Rename to ...
5937 (child_terminal_save_ours): ... this.
5938 (terminal_init_inferior): Rename to ...
5939 (child_terminal_init): ... this. Adjust.
5940 (terminal_inferior): Rename to ...
5941 (child_terminal_inferior): ... this.
5942 (terminal_ours_for_output): Rename to ...
5943 (child_terminal_ours_for_output): ... this. Adjust.
5944 (terminal_ours): Rename to ...
5945 (child_terminal_ours): ... this.
5946 (terminal_ours_1): Rename to ...
5947 (child_terminal_ours_1): ... this. Adjust.
5948 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5949 * windows-nat.c (do_initial_windows_stuff): Adjust.
5950 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5951 (gnu_terminal_init): ... this. Adjust.
5952 (gnu_target): Adjust.
5953 * inf-child.c (inf_child_target): Adjust.
5955 2014-03-13 Doug Evans <xdje42@gmail.com>
5958 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5961 2014-03-13 Doug Evans <xdje42@gmail.com>
5963 * value.c (record_latest_value): Call release_value_or_incref
5964 instead of release_value.
5966 2014-03-13 Pedro Alves <palves@redhat.com>
5968 * procfs.c (procfs_target): Don't override to_shortname,
5969 to_longname or to_doc.
5971 2014-03-13 Pedro Alves <palves@redhat.com>
5973 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5974 Unix in user visible strings.
5976 2014-03-12 Stan Shebs <stan@codesourcery.com>
5978 * gdbtypes.h: Annotate comments for Doxygen, add a page
5979 block comment with some general info.
5981 2014-03-12 Pedro Alves <palves@redhat.com>
5983 * infcmd.c (prepare_execution_command): New function, factored out
5984 from several execution commands.
5985 (run_command_1, continue_command, step_1, jump_command)
5986 (signal_command, until_command, advance_command, finish_command)
5987 (attach_command): Use prepare_execution_command.
5989 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5991 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5994 (struct arm_linux_thread_points): Removed.
5995 (struct arm_linux_process_info): New.
5996 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5997 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5998 (arm_linux_find_breakpoints_by_tid): Removed.
5999 (struct arch_lwp_info): New.
6000 (arm_linux_find_process_pid): New functions.
6001 (arm_linux_add_process): New functions.
6002 (arm_linux_process_info_get): New functions.
6003 (arm_linux_forget_process): New function.
6004 (arm_linux_get_debug_reg_state): New function.
6005 (struct update_registers_data): New.
6006 (update_registers_callback): New function.
6007 (arm_linux_insert_hw_breakpoint1): Updated.
6008 (arm_linux_remove_hw_breakpoint1): Updated.
6009 (arm_linux_insert_hw_breakpoint): Updated.
6010 (arm_linux_remove_hw_breakpoint): Updated.
6011 (arm_linux_insert_watchpoint): Updated.
6012 (arm_linux_remove_watchpoint): Updated.
6013 (arm_linux_new_thread): Updated.
6014 (arm_linux_prepare_to_resume): New function.
6015 (arm_linux_new_fork): New function.
6016 (_initialize_arm_linux_nat): Updated.
6018 2014-03-12 Pedro Alves <palves@redhat.com>
6020 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6022 2014-03-12 Tom Tromey <tromey@redhat.com>
6024 * inf-child.c (return_zero): New function.
6025 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6026 * aix-thread.c (aix_thread_inferior_created): New function.
6027 (aix_thread_attach): Remove.
6028 (init_aix_thread_ops): Don't set to_attach.
6029 (_initialize_aix_thread): Register inferior_created observer.
6030 * corelow.c (init_core_ops): Don't set to_attach or
6032 * exec.c (init_exec_ops): Don't set to_attach or
6034 * infcmd.c (run_command_1): Use find_run_target. Make direct
6036 (attach_command): Use find_attach_target. Make direct target
6038 * record-btrace.c (init_record_btrace_ops): Don't set
6040 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6042 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6043 set to_create_inferior.
6044 * target.c (complete_target_initialization): Add assertion.
6045 (target_create_inferior): Remove.
6046 (find_default_attach, find_default_create_inferior): Remove.
6047 (find_attach_target, find_run_target): New functions.
6048 (find_default_is_async_p, find_default_can_async_p)
6049 (target_supports_non_stop, target_attach): Remove.
6050 (init_dummy_target): Don't set to_create_inferior or
6051 to_supports_non_stop.
6052 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6053 TARGET_DEFAULT_FUNC.
6054 <to_create_inferior>: Add comment.
6055 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6056 TARGET_DEFAULT_RETURN.
6057 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6058 (find_attach_target, find_run_target): Declare.
6059 (target_create_inferior): Remove.
6060 (target_has_execution_1): Update comment.
6061 (target_supports_non_stop): Remove.
6062 * target-delegates.c: Rebuild.
6064 2014-03-12 Pedro Alves <palves@redhat.com>
6066 * inf-child.h: Update comment to not mention Unix.
6068 2014-03-12 Pedro Alves <palves@redhat.com>
6070 * inf-child.c: Update top comment to not mention Unix. Add
6071 generic comment describing how this target is meant to be used.
6072 (inf_child_post_attach, inf_child_post_startup_inferior)
6073 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6076 2014-03-12 Pedro Alves <palves@redhat.com>
6078 * nto-procfs.c: Include inf-child.h.
6079 (procfs_ops): Delete global.
6080 (procfs_can_run): Delete method.
6081 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6082 target pointer instead of referencing procfs_ops.
6083 (procfs_prepare_to_store): Delete.
6084 (init_procfs_ops): Delete function.
6085 (procfs_target): New function, based on init_procfs_ops, but
6086 inherit inf_child_target.
6087 (_initialize_procfs): Use procfs_target.
6089 2014-03-12 Pedro Alves <palves@redhat.com>
6091 * windows-nat.c: Include inf-child.h.
6092 (windows_ops): Delete global.
6093 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6095 (init_windows_ops): Delete function.
6096 (windows_target): New function, based on init_windows_ops, but
6097 inherit inf_child_target.
6098 (_initialize_windows_nat): Use windows_target. Install x86
6099 specific target methods here.
6101 2014-03-10 Doug Evans <xdje42@gmail.com>
6103 * guile/guile.c (call_initialize_gdb_module): New function.
6104 (initialize_guile): Replace call to scm_init_guile with call to
6107 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6109 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6110 in call to TYPE_CODE macro.
6112 2014-03-10 Jerome Guitton <guitton@adacore.com>
6114 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6115 Resolve tagged types to full view.
6117 2014-03-10 Hui Zhu <hui@codesourcery.com>
6119 * target.h (target_insert_breakpoint): Remove "hardware" from its
6122 2014-03-07 Doug Evans <dje@google.com>
6124 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6126 2014-03-07 Doug Evans <dje@google.com>
6128 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6129 Remove unused local comp_dir_attr. Assert exactly one of
6130 stub_comp_unit_die, stub_comp_dir is non-NULL.
6132 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6134 * target.h (complete_target_initialization, add_target):
6137 2014-03-07 Pedro Alves <palves@redhat.com>
6139 * go32-nat.c: Include inf-child.h.
6140 (go32_ops): Delete global.
6141 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6143 (go32_create_inferior): Push the passed in target pointer instead
6144 of referencing go32_ops.
6145 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6146 (go32_target): New function, based on init_go32_ops, but inherit
6148 (_initialize_go32_nat): Use go32_target. Move parts of
6151 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6153 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6154 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6155 SYMBOL_VALUE_ADDRESS.
6156 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6158 2014-03-06 Yao Qi <yao@codesourcery.com>
6160 * breakpoint.c (get_tracepoint_by_number): Remove argument
6161 optional_p. All callers updated. Adjust comments. Update
6163 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6165 2014-03-06 Yao Qi <yao@codesourcery.com>
6167 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6168 early if get_number returns zero. Use 'p' instead of 'args'.
6170 2014-03-06 Yao Qi <yao@codesourcery.com>
6172 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6175 2014-03-06 Yao Qi <yao@codesourcery.com>
6177 PR breakpoints/16508
6178 * tracepoint.c (check_trace_running): New function.
6179 (trace_find_command): Move code to check_trace_running and
6180 call check_trace_running.
6181 (trace_find_pc_command): Likewise.
6182 (trace_find_tracepoint_command): Likewise.
6183 (trace_find_line_command): Likewise.
6184 (trace_find_range_command): Likewise.
6185 * tracepoint.h (check_trace_running): Likewise.
6186 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6188 2014-03-06 Yao Qi <yao@codesourcery.com>
6190 * target.h (struct target_ops) <to_traceframe_info>: Use
6191 TARGET_DEFAULT_NORETURN (tcomplain ()).
6192 * target-delegates.c: Regenerated.
6194 2014-03-05 Pedro Alves <palves@redhat.com>
6197 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6198 void. Update comment.
6199 (dcache_xfer_memory): Delete.
6200 (dcache_read_memory_partial): New, based on the read bits of
6202 (dcache_update): Add status parameter. Use ULONGEST for len, and
6203 adjust. Discard cache lines if the reason for the update was
6205 * dcache.h (dcache_xfer_memory): Delete declaration.
6206 (dcache_read_memory_partial): New declaration.
6207 (dcache_update): Update prototype.
6208 * target.c (raw_memory_xfer_partial): Update the dcache here.
6209 (memory_xfer_partial_1): Don't handle dcache writes here.
6211 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6213 * remote-sim.c (gdbsim_load): Add const to prog.
6215 2014-03-03 Tom Tromey <tromey@redhat.com>
6217 * elfread.c (probe_key): Change to bfd_data.
6218 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6219 now per-BFD, not per-objfile.
6220 * stap-probe.c (stap_probe_destroy): Update comment.
6221 (handle_stap_probe): Allocate on the per-BFD obstack.
6223 2014-03-03 Tom Tromey <tromey@redhat.com>
6225 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6226 * breakpoint.c (create_longjmp_master_breakpoint): Use
6228 (add_location_to_breakpoint, bkpt_probe_insert_location)
6229 (bkpt_probe_remove_location): Update.
6230 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6231 * elfread.c (elf_symfile_relocate_probe): Remove.
6232 (elf_probe_fns): Update.
6233 (insert_exception_resume_breakpoint): Change type of "probe"
6234 parameter to bound_probe.
6235 (check_exception_resume): Update.
6236 * objfiles.c (objfile_relocate1): Don't relocate probes.
6237 * probe.c (bound_probe_s): New typedef.
6238 (parse_probes): Use get_probe_address. Set sal's objfile.
6239 (find_probe_by_pc): Return a bound_probe.
6240 (collect_probes): Return a VEC(bound_probe_s).
6241 (compare_probes): Update.
6242 (gen_ui_out_table_header_info): Change type of "probes"
6244 (info_probes_for_ops): Update.
6245 (get_probe_address): New function.
6246 (probe_safe_evaluate_at_pc): Update.
6247 * probe.h (struct probe_ops) <get_probe_address>: New field.
6248 <set_semaphore, clear_semaphore>: Add objfile parameter.
6249 (struct probe) <objfile>: Remove field.
6251 <address>: Update comment.
6252 (struct bound_probe): New.
6253 (find_probe_by_pc): Return a bound_probe.
6254 (get_probe_address): Declare.
6255 * solib-svr4.c (struct probe_and_action) <address>: New field.
6256 (hash_probe_and_action, equal_probe_and_action): Update.
6257 (register_solib_event_probe): Add address parameter.
6258 (solib_event_probe_at): Update.
6259 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6261 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6262 (stap_get_probe_address): New function.
6263 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6264 (compile_probe_arg): Update.
6265 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6267 (handle_stap_probe): Don't relocate the probe.
6268 (stap_relocate): Remove.
6269 (stap_gen_info_probes_table_values): Update.
6270 (stap_probe_ops): Remove stap_relocate.
6271 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6272 (debug_sym_probe_fns): Update.
6273 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6274 * symtab.c (init_sal): Use memset.
6275 * symtab.h (struct symtab_and_line) <objfile>: New field.
6276 * tracepoint.c (start_tracing, stop_tracing): Update.
6278 2014-03-03 Tom Tromey <tromey@redhat.com>
6280 * probe.h (parse_probes, find_probe_by_pc)
6281 (find_probes_in_objfile): Fix comments.
6283 2014-03-02 Doug Evans <xdje42@gmail.com>
6285 * infrun.c (handle_signal_stop): Replace test for
6286 TARGET_WAITKIND_STOPPED with an assert.
6288 2014-03-02 Doug Evans <xdje42@gmail.com>
6290 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6292 2014-03-02 Doug Evans <xdje42@gmail.com>
6294 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6296 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6298 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6300 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6302 * i386obsd-nat.c: Include "obsd-nat.h".
6303 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6305 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6307 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6309 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6311 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6313 * mips64obsd-nat.c: Include "obsd-nath".
6314 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6316 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6318 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6320 * amd64obsd-nat.c: Include "obsd-nat,h.
6321 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6323 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6325 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6327 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6328 (find_overload_match): Update call to find_oload_champ.
6329 (find_oload_champ_namespace_loop): Likewise
6331 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6333 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6335 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6336 * config/sparc/obsd64.mh: New file.
6337 * sparc64obsd-nat.c: New file.
6339 * obsd-nat.h: New file.
6340 * obsd-nat.c: New file.
6341 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6342 (ALLDEPFILES): Add obsd-nat.c.
6344 2014-02-28 Tom Tromey <tromey@redhat.com>
6346 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6347 * cli-out.h (cli_ui_out_impl): Now const.
6348 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6349 * ui-out.c (struct ui_out) <impl>: Now const.
6350 (default_ui_out_impl): Now const.
6351 (ui_out_new): Make 'impl' parameter const.
6352 * ui-out.h (ui_out_new): Update.
6354 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6356 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6358 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6360 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6362 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6364 Additional PR 8882 fix.
6365 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6367 2014-02-27 Pedro Alves <palves@redhat.com>
6369 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6372 2014-02-27 Pedro Alves <palves@redhat.com>
6375 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6376 * nat/linux-waitpid.c: Include string.h.
6377 (status_to_str): Moved here and made extern.
6378 * nat/linux-waitpid.h (status_to_str): New declaration.
6380 2014-02-27 Hui Zhu <hui@codesourcery.com>
6383 * infrun.c (ptid_match): Move ...
6384 * common/ptid.c (ptid_match): ... here.
6385 * inferior.h (ptid_match): Move ...
6386 * common/ptid.h (ptid_match): ... here.
6388 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6390 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6391 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6394 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6396 * obsd-tdep.c (obsd_auxv_parse): New function.
6397 (obsd_init_abi): Set auxv_parse.
6399 * gdbarch.sh (auxv_parse): New.
6400 * gdbarch.h: Regenerated.
6401 * gdbarch.c: Regenerated.
6402 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6404 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6406 * guile/scm-value.c (gdbscm_history_append_x): New function.
6407 (value_functions): Add it.
6409 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6411 * dwarf2read.c (attr_value_as_address): New function.
6412 (dwarf2_find_base_address, read_call_site_scope): Use
6413 attr_value_as_address in place of DW_ADDR.
6414 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6415 the low and high addresses. Slight rework of the handling
6416 of the high pc being a constant form, and limit it to
6417 DWARF verson 4 or higher.
6418 (dwarf2_record_block_ranges): Likewise.
6419 (read_partial_die): Likewise.
6420 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6422 2014-02-26 Tom Tromey <tromey@redhat.com>
6424 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6426 2014-02-26 Tom Tromey <tromey@redhat.com>
6428 * elfread.c (elf_read_minimal_symbols): Return early if
6429 minimal symbols have already been read. Add "ei" parameter.
6430 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6431 * minsyms.c (prim_record_minimal_symbol_full): Update.
6432 * objfiles.h (struct objstats) <n_minsyms>: Move...
6433 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6434 * symmisc.c (print_objfile_statistics): Update.
6436 2014-02-26 Tom Tromey <tromey@redhat.com>
6438 * elfread.c (elf_read_minimal_symbols): New function, from
6440 (elf_symfile_read): Call it.
6442 2014-02-26 Tom Tromey <tromey@redhat.com>
6444 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6445 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6446 (lookup_minimal_symbol_solib_trampoline)
6447 (lookup_minimal_symbol_by_pc_section_1)
6448 (lookup_minimal_symbol_and_objfile): Update.
6449 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6450 Don't allocate a minimal symbol if minsyms have already been read.
6451 (build_minimal_symbol_hash_tables): Update.
6452 (install_minimal_symbols): Do nothing if minsyms already read.
6453 Use the per-BFD obstack.
6454 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6455 * objfiles.c (allocate_objfile): Call
6456 terminate_minimal_symbol_table later.
6457 (have_minimal_symbols): Update.
6458 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6459 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6460 Move from struct objfile.
6461 <minsyms_read>: New field.
6462 (struct objfile) <msymbols, minimal_symbol_count,
6463 msymbol_hash, msymbol_demangled_hash>: Move.
6464 (ALL_OBJFILE_MSYMBOLS): Update.
6465 * symfile.c (read_symbols): Set minsyms_read.
6466 (reread_symbols): Update.
6467 * symmisc.c (dump_objfile, dump_msymbols): Update.
6469 2014-02-26 Tom Tromey <tromey@redhat.com>
6471 * minsyms.c (msymbols_sort): Remove.
6472 * minsyms.h (msymbols_sort): Remove.
6473 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6474 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6475 * elfread.c (elf_symtab_read): Don't add section offsets.
6476 * xcoffread.c (record_minimal_symbol): Don't add section offset
6477 to minimal symbol address.
6478 * somread.c (text_offset, data_offset): Remove.
6479 (som_symtab_read): Don't add section offsets to minimal symbol
6481 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6482 Don't add section offsets to minimal symbols.
6483 * coffread.c (coff_symtab_read): Don't add section offsets
6484 to minimal symbol addresses.
6485 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6486 to minimal symbol addresses.
6487 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6488 section offset to minimal symbol addresses.
6489 * mdebugread.c (parse_partial_symbols): Don't add section
6490 offset to minimal symbol addresses.
6491 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6492 offset to minimal symbol addresses.
6494 2014-02-26 Tom Tromey <tromey@redhat.com>
6496 * ada-lang.c (ada_main_name): Update.
6497 (ada_add_standard_exceptions): Update.
6498 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6499 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6500 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6501 * auxv.c (ld_so_xfer_auxv): Update.
6502 * avr-tdep.c (avr_scan_prologue): Update.
6503 * ax-gdb.c (gen_var_ref): Update.
6504 * blockframe.c (get_pc_function_start)
6505 (find_pc_partial_function_gnu_ifunc): Update.
6506 * breakpoint.c (create_overlay_event_breakpoint)
6507 (create_longjmp_master_breakpoint)
6508 (create_std_terminate_master_breakpoint)
6509 (create_exception_master_breakpoint): Update.
6510 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6511 * c-valprint.c (c_val_print): Update.
6512 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6513 * common/agent.c (agent_look_up_symbols): Update.
6514 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6515 * dwarf2loc.c (call_site_to_target_addr): Update.
6516 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6517 * elfread.c (elf_gnu_ifunc_record_cache)
6518 (elf_gnu_ifunc_resolve_by_got): Update.
6519 * findvar.c (default_read_var_value): Update.
6520 * frame.c (inside_main_func): Update.
6521 * frv-tdep.c (frv_frame_this_id): Update.
6522 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6523 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6525 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6526 (hppa_hpux_find_dummy_bpaddr): Update.
6527 * hppa-tdep.c (hppa_symbol_address): Update.
6528 * infcmd.c (until_next_command): Update.
6529 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6531 * linespec.c (minsym_found, add_minsym): Update.
6532 * linux-nat.c (get_signo): Update.
6533 * linux-thread-db.c (inferior_has_bug): Update.
6534 * m32c-tdep.c (m32c_return_value)
6535 (m32c_m16c_address_to_pointer): Update.
6536 * m32r-tdep.c (m32r_frame_this_id): Update.
6537 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6538 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6539 * maint.c (maintenance_translate_address): Update.
6540 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6541 (frob_address): New function.
6542 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6543 frob_address. Rename parameter to "pc_in".
6544 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6546 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6548 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6549 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6550 * objc-lang.c (find_objc_msgsend): Update.
6551 * objfiles.c (objfile_relocate1): Update.
6552 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6553 * p-valprint.c (pascal_val_print): Update.
6554 * parse.c (write_exp_msymbol): Update.
6555 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6556 (ppc_elfv2_skip_entrypoint): Update.
6557 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6558 * printcmd.c (build_address_symbolic, msym_info)
6559 (address_info): Update.
6560 * proc-service.c (ps_pglobal_lookup): Update.
6561 * psymtab.c (find_pc_sect_psymtab_closer)
6562 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6563 Change msymbol parameter to bound_minimal_symbol.
6564 * ravenscar-thread.c (get_running_thread_id): Update.
6565 * remote.c (remote_check_symbols): Update.
6566 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6568 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6569 * solib-dsbt.c (lm_base): Update.
6570 * solib-frv.c (lm_base, main_got): Update.
6571 * solib-irix.c (locate_base): Update.
6572 * solib-som.c (som_solib_create_inferior_hook)
6573 (link_map_start): Update.
6574 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6575 * solib-svr4.c (elf_locate_base, enable_break): Update.
6576 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6577 (flush_ea_cache): Update.
6578 * stabsread.c (define_symbol, scan_file_globals): Update.
6579 * stack.c (find_frame_funname): Update.
6580 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6581 (debug_qf_find_pc_sect_symtab): Update.
6582 * symfile.c (simple_read_overlay_table)
6583 (simple_overlay_update): Update.
6584 * symfile.h (struct quick_symbol_functions)
6585 <find_pc_sect_symtab>: Change type of msymbol to
6586 bound_minimal_symbol.
6587 * symmisc.c (dump_msymbols): Update.
6588 * symtab.c (find_pc_sect_symtab_via_partial)
6589 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6590 (search_symbols, print_msymbol_info): Update.
6591 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6592 (MSYMBOL_VALUE_ADDRESS): Redefine.
6593 (BMSYMBOL_VALUE_ADDRESS): New macro.
6594 * tracepoint.c (scope_info): Update.
6595 * tui/tui-disasm.c (tui_find_disassembly_address)
6596 (tui_get_begin_asm_address): Update.
6597 * valops.c (find_function_in_inferior): Update.
6598 * value.c (value_static_field, value_fn_field): Update.
6600 2014-02-26 Tom Tromey <tromey@redhat.com>
6602 * ada-lang.c (ada_update_initial_language): Update.
6603 (ada_main_name, ada_has_this_exception_support): Update.
6604 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6605 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6606 * arm-tdep.c (arm_skip_stub): Update.
6607 * auxv.c (ld_so_xfer_auxv): Update.
6608 * avr-tdep.c (avr_scan_prologue): Update.
6609 * ax-gdb.c (gen_var_ref): Update.
6610 * breakpoint.c (struct breakpoint_objfile_data)
6611 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6612 type to bound_minimal_symbol.
6613 (create_overlay_event_breakpoint)
6614 (create_longjmp_master_breakpoint)
6615 (create_std_terminate_master_breakpoint)
6616 (create_exception_master_breakpoint): Update.
6617 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6618 * c-exp.y (classify_name): Update.
6619 * coffread.c (coff_symfile_read): Update.
6620 * common/agent.c (agent_look_up_symbols): Update.
6621 * d-lang.c (d_main_name): Update.
6622 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6623 * dec-thread.c (enable_dec_thread): Update.
6624 * dwarf2loc.c (call_site_to_target_addr): Update.
6625 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6626 * eval.c (evaluate_subexp_standard): Update.
6627 * findvar.c (struct minsym_lookup_data) <result>: Change type
6628 to bound_minimal_symbol.
6630 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6631 * frame.c (inside_main_func): Update.
6632 * frv-tdep.c (frv_frame_this_id): Update.
6633 * gcore.c (call_target_sbrk): Update.
6634 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6635 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6637 * go-lang.c (go_main_name): Update.
6638 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6639 (hppa_hpux_find_import_stub_for_addr): Update.
6640 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6641 Update. Change return type.
6642 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6644 * jit.c (jit_breakpoint_re_set_internal): Update.
6645 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6647 * linux-nat.c (get_signo): Update.
6648 * linux-thread-db.c (inferior_has_bug): Update
6649 * m32c-tdep.c (m32c_return_value)
6650 (m32c_m16c_address_to_pointer): Update.
6651 * m32r-tdep.c (m32r_frame_this_id): Update.
6652 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6653 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6654 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6655 lookup_minimal_symbol. Change return type.
6656 (lookup_minimal_symbol): Remove.
6657 (lookup_bound_minimal_symbol): Update.
6658 (lookup_minimal_symbol_text): Change return type.
6659 (lookup_minimal_symbol_solib_trampoline): Change return type.
6660 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6661 (lookup_minimal_symbol_solib_trampoline): Change return type.
6662 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6663 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6664 (value_nsstring, find_imps): Update.
6665 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6666 * p-lang.c (pascal_main_name): Update.
6667 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6668 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6669 * proc-service.c (ps_pglobal_lookup): Update.
6670 * ravenscar-thread.c (get_running_thread_msymbol): Change
6672 (has_ravenscar_runtime, get_running_thread_id): Update.
6673 * remote.c (remote_check_symbols): Update.
6674 * sol-thread.c (ps_pglobal_lookup): Update.
6675 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6676 * solib-dsbt.c (lm_base): Update.
6677 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6679 * solib-irix.c (locate_base): Update.
6680 * solib-som.c (som_solib_create_inferior_hook)
6681 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6683 * solib-spu.c (spu_enable_break): Update.
6684 * solib-svr4.c (elf_locate_base, enable_break): Update.
6685 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6686 (flush_ea_cache): Update.
6687 * stabsread.c (define_symbol): Update.
6688 * symfile.c (simple_read_overlay_table): Update.
6689 * symtab.c (find_pc_sect_line): Update.
6690 * tracepoint.c (scope_info): Update.
6691 * tui-disasm.c (tui_get_begin_asm_address): Update.
6692 * value.c (value_static_field): Update.
6694 2014-02-26 Tom Tromey <tromey@redhat.com>
6696 * minsyms.c (prim_record_minimal_symbol_full): Use
6697 SET_MSYMBOL_VALUE_ADDRESS.
6698 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6699 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6700 SET_MSYMBOL_VALUE_ADDRESS.
6701 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6702 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6704 2014-02-26 Tom Tromey <tromey@redhat.com>
6706 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6707 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6708 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6709 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6710 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6711 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6712 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6713 * ada-lang.c (ada_main_name): Update.
6714 (ada_lookup_simple_minsym): Update.
6715 (ada_make_symbol_completion_list): Update.
6716 (ada_add_standard_exceptions): Update.
6717 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6718 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6719 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6720 * arm-tdep.c (skip_prologue_function): Update.
6721 (arm_skip_stack_protector, arm_skip_stub): Update.
6722 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6723 (arm_wince_skip_main_prologue): Update.
6724 * auxv.c (ld_so_xfer_auxv): Update.
6725 * avr-tdep.c (avr_scan_prologue): Update.
6726 * ax-gdb.c (gen_var_ref): Update.
6727 * block.c (call_site_for_pc): Update.
6728 * blockframe.c (get_pc_function_start): Update.
6729 (find_pc_partial_function_gnu_ifunc): Update.
6730 * breakpoint.c (create_overlay_event_breakpoint): Update.
6731 (create_longjmp_master_breakpoint): Update.
6732 (create_std_terminate_master_breakpoint): Update.
6733 (create_exception_master_breakpoint): Update.
6734 (resolve_sal_pc): Update.
6735 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6736 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6738 * c-valprint.c (c_val_print): Update.
6739 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6740 * coffread.c (coff_symfile_read): Update.
6741 * common/agent.c (agent_look_up_symbols): Update.
6742 * dbxread.c (find_stab_function_addr): Update.
6743 (end_psymtab): Update.
6744 * dwarf2loc.c (call_site_to_target_addr): Update.
6745 (func_verify_no_selftailcall): Update.
6746 (tailcall_dump): Update.
6747 (call_site_find_chain_1): Update.
6748 (dwarf_expr_reg_to_entry_parameter): Update.
6749 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6750 (elf_gnu_ifunc_resolve_by_got): Update.
6751 * f-valprint.c (info_common_command): Update.
6752 * findvar.c (read_var_value): Update.
6753 * frame.c (get_prev_frame_1): Update.
6754 (inside_main_func): Update.
6755 * frv-tdep.c (frv_skip_main_prologue): Update.
6756 (frv_frame_this_id): Update.
6757 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6758 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6759 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6760 (gnuv3_skip_trampoline): Update.
6761 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6762 (hppa64_hpux_in_solib_call_trampoline): Update.
6763 (hppa_hpux_skip_trampoline_code): Update.
6764 (hppa64_hpux_search_dummy_call_sequence): Update.
6765 (hppa_hpux_find_import_stub_for_addr): Update.
6766 (hppa_hpux_find_dummy_bpaddr): Update.
6767 * hppa-tdep.c (hppa_symbol_address)
6768 (hppa_lookup_stub_minimal_symbol): Update.
6769 * i386-tdep.c (i386_skip_main_prologue): Update.
6770 (i386_pe_skip_trampoline_code): Update.
6771 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6772 * infcall.c (get_function_name): Update.
6773 * infcmd.c (until_next_command): Update.
6774 * jit.c (jit_breakpoint_re_set_internal): Update.
6775 (jit_inferior_init): Update.
6776 * linespec.c (minsym_found): Update.
6777 (add_minsym): Update.
6778 * linux-fork.c (info_checkpoints_command): Update.
6779 * linux-nat.c (get_signo): Update.
6780 * linux-thread-db.c (inferior_has_bug): Update.
6781 * m32c-tdep.c (m32c_return_value): Update.
6782 (m32c_m16c_address_to_pointer): Update.
6783 (m32c_m16c_pointer_to_address): Update.
6784 * m32r-tdep.c (m32r_frame_this_id): Update.
6785 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6786 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6787 * maint.c (maintenance_translate_address): Update.
6788 * minsyms.c (add_minsym_to_hash_table): Update.
6789 (add_minsym_to_demangled_hash_table): Update.
6790 (msymbol_objfile): Update.
6791 (lookup_minimal_symbol): Update.
6792 (iterate_over_minimal_symbols): Update.
6793 (lookup_minimal_symbol_text): Update.
6794 (lookup_minimal_symbol_by_pc_name): Update.
6795 (lookup_minimal_symbol_solib_trampoline): Update.
6796 (lookup_minimal_symbol_by_pc_section_1): Update.
6797 (lookup_minimal_symbol_and_objfile): Update.
6798 (prim_record_minimal_symbol_full): Update.
6799 (compare_minimal_symbols): Update.
6800 (compact_minimal_symbols): Update.
6801 (build_minimal_symbol_hash_tables): Update.
6802 (install_minimal_symbols): Update.
6803 (terminate_minimal_symbol_table): Update.
6804 (find_solib_trampoline_target): Update.
6805 (minimal_symbol_upper_bound): Update.
6806 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6807 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6808 (mips_skip_pic_trampoline_code): Update.
6809 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6810 * objc-lang.c (selectors_info): Update.
6811 (classes_info): Update.
6812 (find_methods): Update.
6813 (find_imps): Update.
6814 (find_objc_msgsend): Update.
6815 * objfiles.c (objfile_relocate1): Update.
6816 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6817 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6818 * p-valprint.c (pascal_val_print): Update.
6819 * parse.c (write_exp_msymbol): Update.
6820 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6821 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6822 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6823 * printcmd.c (build_address_symbolic): Update.
6825 (address_info): Update.
6826 * proc-service.c (ps_pglobal_lookup): Update.
6827 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6828 (find_pc_sect_psymtab): Update.
6829 * python/py-framefilter.c (py_print_frame): Update.
6830 * ravenscar-thread.c (get_running_thread_id): Update.
6831 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6833 * remote.c (remote_check_symbols): Update.
6834 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6835 (rs6000_skip_trampoline_code): Update.
6836 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6837 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6838 * solib-dsbt.c (lm_base): Update.
6839 * solib-frv.c (lm_base): Update.
6841 * solib-irix.c (locate_base): Update.
6842 * solib-som.c (som_solib_create_inferior_hook): Update.
6843 (som_solib_desire_dynamic_linker_symbols): Update.
6844 (link_map_start): Update.
6845 * solib-spu.c (spu_enable_break): Update.
6846 (ocl_enable_break): Update.
6847 * solib-svr4.c (elf_locate_base): Update.
6848 (enable_break): Update.
6849 * spu-tdep.c (spu_get_overlay_table): Update.
6850 (spu_catch_start): Update.
6851 (flush_ea_cache): Update.
6852 * stabsread.c (define_symbol): Update.
6853 (scan_file_globals): Update.
6854 * stack.c (find_frame_funname): Update.
6855 (frame_info): Update.
6856 * symfile.c (simple_read_overlay_table): Update.
6857 (simple_overlay_update): Update.
6858 * symmisc.c (dump_msymbols): Update.
6859 * symtab.c (fixup_section): Update.
6860 (find_pc_sect_line): Update.
6861 (skip_prologue_sal): Update.
6862 (search_symbols): Update.
6863 (print_msymbol_info): Update.
6864 (rbreak_command): Update.
6865 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6866 (completion_list_objc_symbol): Update.
6867 (default_make_symbol_completion_list_break_on): Update.
6868 * tracepoint.c (scope_info): Update.
6869 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6870 (tui_get_begin_asm_address): Update.
6871 * valops.c (find_function_in_inferior): Update.
6872 * value.c (value_static_field): Update.
6873 (value_fn_field): Update.
6875 2014-02-26 Tom Tromey <tromey@redhat.com>
6877 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6878 bound minimal symbols. Move code that knows about minsym
6880 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6882 * minsyms.h (minimal_symbol_upper_bound): Declare.
6883 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6884 minimal_symbol_upper_bound.
6886 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6888 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6889 Use the type's name if its basic type does not have a tag.
6891 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6893 * dwarf2read.c (read_subrange_type): Add comment.
6895 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6897 * dwarf2read.c (update_enumeration_type_from_children): New
6898 function, mostly extracted from process_structure_scope.
6899 (read_enumeration_type): Call update_enumeration_type_from_children.
6900 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6901 and flag_flag_enum fields.
6903 2014-02-26 Pedro Alves <palves@redhat.com>
6905 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6906 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6907 to_xfer_partial method.
6909 2014-02-26 Pedro Alves <palves@redhat.com>
6911 * target.c (complete_target_initialization): Don't install
6912 default_xfer_partial as to_xfer_partial hook.
6914 (update_current_target): Don't INHERIT nor de_fault
6915 deprecated_xfer_memory. Delete de_fault macro.
6916 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6917 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6918 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6921 2014-02-26 Pedro Alves <palves@redhat.com>
6923 * go32-nat.c (my_write_child): New function.
6924 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6925 (go32_xfer_partial): New function.
6926 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6927 Instead install a to_xfer_partial hook.
6929 2014-02-26 Pedro Alves <palves@redhat.com>
6931 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6932 to_xfer_partial helper. Rewrite.
6933 (procfs_xfer_partial): New function.
6934 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6935 Install a to_xfer_partial hook.
6937 2014-02-26 Pedro Alves <palves@redhat.com>
6939 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6940 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6941 (m32r_xfer_partial): New function.
6942 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6943 Install a to_xfer_partial hook.
6945 2014-02-26 Pedro Alves <palves@redhat.com>
6947 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6949 (mips_xfer_partial): New function.
6950 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6951 hook. Install a to_xfer_partial hook.
6953 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6955 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6956 * gdbtypes.c (create_array_type_with_stride): New function,
6957 renaming create_array_type, but with an added parameter
6958 called "bit_stride".
6959 (create_array_type): Re-implement using
6960 create_array_type_with_stride.
6961 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6962 and DW_AT_bit_stride attributes.
6964 2014-02-26 Pedro Alves <palves@redhat.com>
6966 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6967 task-specific breakpoints.
6969 2014-02-25 Pedro Alves <palves@redhat.com>
6971 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6972 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6974 2014-02-25 Stan Shebs <stan@codesourcery.com>
6976 * defs.h: Annotate comments for Doxygen.
6978 2014-02-25 Tom Tromey <tromey@redhat.com>
6980 * target.h (target_ignore): Don't declare.
6981 * target.c (target_ignore): Remove.
6983 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6986 * auto-load.c (auto_load_objfile_script_1): Change filename to
6989 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6991 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6992 documentation. Adjust prototype to match the target_ops
6993 to_xfer_partial method. Adjust implementation accordingly.
6995 2014-02-25 Hui Zhu <hui@codesourcery.com>
6997 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7000 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7002 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7003 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7004 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7005 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7006 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7007 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7008 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7009 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7011 (rl78_register_type): Use a data pointer type for SP and
7012 new pseudo registers mentioned above. Use a 16 bit integer
7013 type for all other register pairs.
7014 (rl78_register_name, rl78_g10_register_name): Update for
7015 new pseudo registers.
7016 (rl78_pseudo_register_read): Likewise.
7017 (rl78_pseudo_register_write): Likewise.
7018 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7019 to the newly added pseudo registers.
7021 2014-02-24 Doug Evans <dje@google.com>
7023 * value.c (record_latest_value): Fix comment.
7024 * printcmd.c (print_command_1): Remove code to handle -1 return from
7025 record_latest_value.
7027 2014-02-24 Pedro Alves <palves@redhat.com>
7029 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7030 deprecated_xfer_memory hook.
7031 (procfs_xfer_partial): Call procfs_xfer_memory instead
7032 of the deprecated_xfer_memory target hook.
7033 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7036 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7038 * windows-nat.c (windows_xfer_shared_libraries): Return
7039 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7040 requested object is TARGET_OBJECT_LIBRARIES.
7042 2014-02-24 Yao Qi <yao@codesourcery.com>
7044 * target.h (enum target_xfer_status)
7045 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7046 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7048 * corefile.c (memory_error_message): User updated.
7049 * exec.c (section_table_read_available_memory): Likewise.
7050 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7051 * target.c (target_xfer_status_to_string): Likewise.
7052 (raw_memory_xfer_partial): Likewise.
7053 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7054 * valops.c (read_value_memory): Likewise.
7055 * exec.h: Update comments.
7057 2014-02-24 Yao Qi <yao@codesourcery.com>
7059 * target.c (target_xfer_status_to_string): Rename argument err
7061 * target.h (target_xfer_status_to_string): Update declaration.
7062 Replace target_xfer_error_to_string with
7063 target_xfer_status_to_string in comment.
7065 2014-02-24 Yao Qi <yao@codesourcery.com>
7067 * mips-linux-nat.c (super_close): Update its type.
7068 (mips_linux_close): Pass 'self' to super_close.
7070 2014-02-24 Yao Qi <yao@codesourcery.com>
7072 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7073 * corefile.c (read_memory): Adjusted.
7074 * target.c (target_write_with_progress): Adjusted.
7076 2014-02-23 Yao Qi <yao@codesourcery.com>
7080 2013-10-25 Yao Qi <yao@codesourcery.com>
7082 * remote.c (remote_traceframe_info): Return early if
7083 traceframe is not selected.
7085 2013-07-19 Yao Qi <yao@codesourcery.com>
7087 * target.c (update_current_target): Change the default action
7088 of 'to_traceframe_info' from tcomplain to return_zero.
7089 * target.h (struct target_ops) <to_traceframe_info>: Add more
7092 2014-02-23 Yao Qi <yao@codesourcery.com>
7094 * valops.c (read_value_memory): Rewrite it. Call
7095 target_xfer_partial in a loop.
7096 * exec.h (section_table_available_memory): Remove declaration.
7097 Move comments to ...
7098 * exec.c (section_table_available_memory): ... here. Make it
7101 2014-02-23 Yao Qi <yao@codesourcery.com>
7103 * exec.c (section_table_read_available_memory): New function.
7104 * exec.h (section_table_read_available_memory): Declare.
7105 * ctf.c (ctf_xfer_partial): Call
7106 section_table_read_available_memory.
7107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7109 2014-02-23 Yao Qi <yao@codesourcery.com>
7111 * ctf.c (ctf_xfer_partial): Move code to ...
7112 * exec.c (exec_read_partial_read_only): ... it. New function.
7113 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7114 * tracefile.c: Include "exec.h".
7115 * exec.h (exec_read_partial_read_only): Declare.
7117 2014-02-23 Yao Qi <yao@codesourcery.com>
7119 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7120 (tfile_has_memory): Remove.
7121 (init_tfile_ops): Don't set fields to_has_all_memory and
7122 to_has_memory of tfile_ops.
7123 * tracefile.c (tracefile_has_all_memory): New function.
7124 (tracefile_has_memory): New function.
7125 (init_tracefile_ops): Initialize fields to_has_all_memory and
7126 to_has_memory of 'ops'.
7128 2014-02-23 Yao Qi <yao@codesourcery.com>
7130 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7131 (ctf_thread_alive, ctf_get_trace_status): Remove.
7132 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7134 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7135 (tfile_has_stack, tfile_has_registers): Remove.
7136 (tfile_thread_alive): Remove.
7137 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7139 * tracefile.c (tracefile_has_stack): New function.
7140 (tracefile_has_registers): New function.
7141 (tracefile_thread_alive): New function.
7142 (tracefile_get_trace_status): New function.
7143 (init_tracefile_ops): New function.
7144 * tracefile.h (init_tracefile_ops): Declare.
7146 2014-02-23 Yao Qi <yao@codesourcery.com>
7148 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7149 (O_LARGEFILE): Likewise.
7150 (tfile_ops): Likewise.
7151 (TRACE_HEADER_SIZE): Likewise.
7152 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7153 (cur_data_size): Likewise.
7154 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7155 (tfile_close, tfile_files_info): Likewise.
7156 (tfile_get_trace_status): Likewise.
7157 (tfile_get_tracepoint_status): Likewise.
7158 (tfile_get_traceframe_address): Likewise.
7159 (tfile_trace_find, match_blocktype): Likewise.
7160 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7161 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7162 (tfile_get_trace_state_variable_value): Likewise.
7163 (tfile_has_all_memory, tfile_has_memory): Likewise.
7164 (tfile_has_stack, tfile_has_registers): Likewise.
7165 (tfile_thread_alive, build_traceframe_info): Likewise.
7166 (tfile_traceframe_info, init_tfile_ops): Likewise.
7167 (_initialize_tracepoint): Don't call init_tfile_ops
7168 and add_target_with_completer.
7169 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7170 exec.h, completer.h and filenames.h.
7171 (_initialize_tracefile_tfile): New function.
7173 2014-02-23 Yao Qi <yao@codesourcery.com>
7175 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7177 (HFILES_NO_SRCDIR): Add tracefile.h.
7178 * ctf.c: Include "tracefile.h".
7179 * tracefile.h: New file.
7180 * tracefile.c: New file
7181 * tracefile-tfile.c: New file.
7182 * tracepoint.c: Include "tracefile.h".
7183 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7184 (stop_reason_names): Add const.
7185 (trace_file_writer_xfree): Move it to tracefile.c.
7186 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7187 (trace_save_ctf): Likewise.
7188 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7189 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7190 (tfile_write_header, tfile_write_regblock_type): Likewise.
7191 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7192 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7193 (tfile_write_raw_data, tfile_end): Likewise.
7194 (tfile_trace_file_writer_new): Likewise.
7195 (free_uploaded_tp): Make it extern.
7196 (free_uploaded_tsv): Make it extern.
7197 (_initialize_tracepoint): Move code to register command 'tsave'
7199 * tracepoint.h (stop_reason_names): Declare.
7200 (struct trace_frame_write_ops): Move it to tracefile.h.
7201 (struct trace_file_write_ops): Likewise.
7202 (struct trace_file_writer): Likewise.
7203 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7205 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7208 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7210 (get_cores_used_by_process): New parameter num_cores, use it.
7211 (linux_xfer_osdata_processes): Pass num_cores to it.
7212 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7215 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7217 * target.c (memory_xfer_partial): Fix length arg in call to
7218 breakpoint_xfer_memory.
7220 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7223 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7224 number comes after the + or - signs. Adjust length of register
7225 name to be extracted.
7227 2014-02-20 Tom Tromey <tromey@redhat.com>
7229 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7230 (ada_varobj_ops): Mark "extern".
7232 2014-02-20 Tom Tromey <tromey@redhat.com>
7234 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7236 2014-02-20 Doug Evans <xdje42@gmail.com>
7238 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7239 All callers updated.
7240 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7241 All callers updated.
7242 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7243 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7245 2014-02-20 lin zuojian <manjian2006@gmail.com>
7246 Joel Brobecker <brobecker@adacore.com>
7247 Doug Evans <xdje42@gmail.com>
7250 * dwarf2read.c (struct die_info): New member in_process.
7251 (reset_die_in_process): New function.
7252 (process_die): Set it at the start, reset when returning.
7253 (inherit_abstract_dies): Only call process_die if origin_child_die
7254 not already being processed.
7256 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7258 * windows-nat.c (handle_unload_dll): Add function documentation.
7259 (do_initial_windows_stuff): Add comment explaining why we wait
7260 until after inferior initialization has finished before
7261 processing all DLLs.
7263 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7265 * windows-nat.c (get_module_name): Delete.
7266 (windows_get_exec_module_filename): New function, mostly
7267 inspired from get_module_name.
7268 (windows_pid_to_exec_file): Replace call to get_module_name
7269 by call to windows_get_exec_module_filename.
7271 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7273 * windows-nat.c (handle_load_dll): Rewrite this function's
7274 introductory comment. Remove code using get_module_name
7275 to get the DLL's name.
7277 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7279 * windows-nat.c (get_windows_debug_event): Ignore
7280 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7281 if windows_initialization_done == 0.
7282 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7283 Adjust implementation to always load all DLLs.
7284 (do_initial_windows_stuff): Replace call to
7285 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7287 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7289 * windows-nat.c (_initialize_windows_nat): Deprecate the
7290 "dll-symbols" command. Turn the "add-shared-symbol-files"
7291 and "assf" aliases into commands, and deprecate them as well.
7292 * NEWS: Add entry explaining that "dll-symbols" and its two
7293 aliases are now deprecated.
7295 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7297 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7298 new-line in debug string. Remove trailing spaces.
7300 2014-02-19 Stan Shebs <stan@codesourcery.com>
7302 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7304 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7306 * NEWS: Add entry for the new feature
7307 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7310 2014-02-19 Stan Shebs <stan@codesourcery.com>
7312 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7314 2014-02-19 Pedro Alves <palves@redhat.com>
7316 * common/ptid.h (struct ptid): Mention that process_stratum
7317 targets should prefer ptid.lwp.
7319 2014-02-19 Pedro Alves <palves@redhat.com>
7321 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7322 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7323 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7324 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7325 store remote thread ids rather than ptid.tid.
7326 (_initialize_remote): Adjust.
7328 2014-02-19 Tom Tromey <tromey@redhat.com>
7330 * target.c (target_get_unwinder): Rewrite.
7331 (target_get_tailcall_unwinder): Rewrite.
7332 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7333 (record_btrace_to_get_tailcall_unwinder): New function.
7334 (init_record_btrace_ops): Update.
7335 * target.h (struct target_ops) <to_get_unwinder,
7336 to_get_tailcall_unwinder>: Now function pointers. Use
7337 TARGET_DEFAULT_RETURN.
7339 2014-02-19 Tom Tromey <tromey@redhat.com>
7341 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7343 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7349 * target-delegates.c: Rebuild.
7350 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7351 TARGET_DEFAULT_FUNC.
7352 * target.c (default_target_decr_pc_after_break): Rename from
7353 forward_target_decr_pc_after_break. Simplify.
7354 (target_decr_pc_after_break): Rely on delegation.
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7358 * target.c (update_current_target): Do not INHERIT to_doc or
7359 to_magic. Do not de_fault to_open or to_close.
7361 2014-02-19 Tom Tromey <tromey@redhat.com>
7363 * gcore.h (objfile_find_memory_regions): Declare.
7364 * gcore.c (objfile_find_memory_regions): No longer static. Add
7366 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7367 * exec.c: Include gcore.h.
7368 (exec_set_find_memory_regions): Remove.
7369 (exec_find_memory_regions): Remove.
7370 (exec_do_find_memory_regions): Remove.
7371 (init_exec_ops): Update.
7372 * defs.h (exec_set_find_memory_regions): Remove.
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7376 * target-delegates.c: Rebuild.
7377 * target.h (struct target_ops) <to_extra_thread_info,
7378 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7379 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7380 not 0, in TARGET_DEFAULT_RETURN.
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7384 * target.c (complete_target_initialization): Remove casts. Use
7385 return_zero_has_execution.
7386 (return_zero): Add "ignore" argument.
7387 (return_zero_has_execution): New function.
7388 (init_dummy_target): Remove casts. Use
7389 return_zero_has_execution.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target.c (update_current_target): Update comments. Do not
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7398 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7400 * corelow.c (core_read_description): Delegate when needed.
7401 * remote.c (remote_read_description): Delegate when needed.
7402 * target-delegates.c: Rebuild.
7403 * target.c (target_read_description): Rewrite.
7404 * target.h (struct target_ops) <to_read_description>: Update
7405 comment. Use TARGET_DEFAULT_RETURN.
7407 2014-02-19 Tom Tromey <tromey@redhat.com>
7409 * target-delegates.c: Rebuild.
7410 * target.c (update_current_target): Don't inherit or default
7412 (find_default_run_target): Check against delegate_can_run.
7413 * target.h (struct target_ops) <to_can_run>: Use
7414 TARGET_DEFAULT_RETURN.
7416 2014-02-19 Tom Tromey <tromey@redhat.com>
7418 * target-delegates.c: Rebuild.
7419 * target.c (target_disconnect): Unconditionally delegate.
7420 * target.h (struct target_ops) <to_disconnect>: Use
7421 TARGET_DEFAULT_NORETURN.
7423 2014-02-19 Tom Tromey <tromey@redhat.com>
7425 * record.c (record_stop): Unconditionally delegate.
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_stop_recording): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_stop_recording>: Use
7429 TARGET_DEFAULT_IGNORE.
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_enable_btrace): Unconditionally delegate.
7435 * target.h (struct target_ops) <to_enable_btrace>: Use
7436 TARGET_DEFAULT_NORETURN.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target-delegates.c: Rebuild.
7441 * target.c (target_read_btrace): Unconditionally delegate.
7442 * target.h (struct target_ops) <to_read_btrace>: Use
7443 TARGET_DEFAULT_NORETURN.
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7447 * target-delegates.c: Rebuild.
7448 * target.c (target_teardown_btrace): Unconditionally delegate.
7449 * target.h (struct target_ops) <to_teardown_btrace>: Use
7450 TARGET_DEFAULT_NORETURN.
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7454 * target-delegates.c: Rebuild.
7455 * target.c (target_disable_btrace): Unconditionally delegate.
7456 * target.h (struct target_ops) <to_disable_btrace>: Use
7457 TARGET_DEFAULT_NORETURN.
7459 2014-02-19 Tom Tromey <tromey@redhat.com>
7461 * target-delegates.c: Rebuild.
7462 * target.c (default_search_memory): New function.
7463 (simple_search_memory): Update comment.
7464 (target_search_memory): Unconditionally delegate.
7465 * target.h (struct target_ops) <to_search_memory>: Use
7466 TARGET_DEFAULT_FUNC.
7468 2014-02-19 Tom Tromey <tromey@redhat.com>
7470 * auxv.c (default_auxv_parse): No longer static.
7471 (target_auxv_parse): Unconditionally delegate.
7472 * auxv.h (default_auxv_parse): Declare.
7473 * target-delegates.c: Rebuild.
7474 * target.c: Include auxv.h.
7475 * target.h (struct target_ops) <to_auxv_parse>: Use
7476 TARGET_DEFAULT_FUNC.
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7480 * target-delegates.c: Rebuild.
7481 * target.c (target_memory_map): Unconditionally delegate.
7482 * target.h (struct target_ops) <to_memory_map>: Use
7483 TARGET_DEFAULT_RETURN.
7485 2014-02-19 Tom Tromey <tromey@redhat.com>
7487 * target-delegates.c: Rebuild.
7488 * target.c (target_thread_alive): Unconditionally delegate.
7489 * target.h (struct target_ops) <to_thread_alive>: Use
7490 TARGET_DEFAULT_RETURN.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_save_record): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_save_record>: Use
7497 TARGET_DEFAULT_NORETURN.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target-delegates.c: Rebuild.
7502 * target.c (target_delete_record): Unconditionally delegate.
7503 * target.h (struct target_ops) <to_delete_record>: Use
7504 TARGET_DEFAULT_NORETURN.
7506 2014-02-19 Tom Tromey <tromey@redhat.com>
7508 * target-delegates.c: Rebuild.
7509 * target.c (target_record_is_replaying): Unconditionally
7511 * target.h (struct target_ops) <to_record_is_replaying>: Use
7512 TARGET_DEFAULT_RETURN.
7514 2014-02-19 Tom Tromey <tromey@redhat.com>
7516 * target-delegates.c: Rebuild.
7517 * target.c (target_goto_record_begin): Unconditionally delegate.
7518 * target.h (struct target_ops) <to_goto_record_begin>: Use
7519 TARGET_DEFAULT_NORETURN.
7521 2014-02-19 Tom Tromey <tromey@redhat.com>
7523 * target-delegates.c: Rebuild.
7524 * target.c (target_goto_record_end): Unconditionally delegate.
7525 * target.h (struct target_ops) <to_goto_record_end>: Use
7526 TARGET_DEFAULT_NORETURN.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target-delegates.c: Rebuild.
7531 * target.c (target_goto_record): Unconditionally delegate.
7532 * target.h (struct target_ops) <to_goto_record>: Use
7533 TARGET_DEFAULT_NORETURN.
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7537 * target-delegates.c: Rebuild.
7538 * target.c (target_insn_history): Unconditionally delegate.
7539 * target.h (struct target_ops) <to_insn_history>: Use
7540 TARGET_DEFAULT_NORETURN.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * target-delegates.c: Rebuild.
7545 * target.c (target_insn_history_from): Unconditionally delegate.
7546 * target.h (struct target_ops) <to_insn_history_from>: Use
7547 TARGET_DEFAULT_NORETURN.
7549 2014-02-19 Tom Tromey <tromey@redhat.com>
7551 * target-delegates.c: Rebuild.
7552 * target.c (target_insn_history_range): Unconditionally delegate.
7553 * target.h (struct target_ops) <to_insn_history_range>: Use
7554 TARGET_DEFAULT_NORETURN.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target-delegates.c: Rebuild.
7559 * target.c (target_call_history): Unconditionally delegate.
7560 * target.h (struct target_ops) <to_call_history>: Use
7561 TARGET_DEFAULT_NORETURN.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * target-delegates.c: Rebuild.
7566 * target.c (target_call_history_from): Unconditionally delegate.
7567 * target.h (struct target_ops) <to_call_history_from>: Use
7568 TARGET_DEFAULT_NORETURN.
7570 2014-02-19 Tom Tromey <tromey@redhat.com>
7572 * target-delegates.c: Rebuild.
7573 * target.c (target_call_history_range): Unconditionally delegate.
7574 * target.h (struct target_ops) <to_call_history_range>: Use
7575 TARGET_DEFAULT_NORETURN.
7577 2014-02-19 Tom Tromey <tromey@redhat.com>
7579 * target-delegates.c: Rebuild.
7580 * target.c (target_verify_memory): Unconditionally delegate.
7581 * target.h (struct target_ops) <to_verify_memory>: Use
7582 TARGET_DEFAULT_NORETURN.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * target-delegates.c: Rebuild.
7587 * target.c (target_core_of_thread): Unconditionally delegate.
7588 * target.h (struct target_ops) <to_core_of_thread>: Use
7589 TARGET_DEFAULT_RETURN.
7591 2014-02-19 Tom Tromey <tromey@redhat.com>
7593 * target-delegates.c: Rebuild.
7594 * target.c (target_flash_done): Unconditionally delegate.
7595 * target.h (struct target_ops) <to_flash_done>: Use
7596 TARGET_DEFAULT_NORETURN.
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * target-delegates.c: Rebuild.
7601 * target.c (target_flash_erase): Unconditionally delegate.
7602 * target.h (struct target_ops) <to_flash_erase>: Use
7603 TARGET_DEFAULT_NORETURN.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target-delegates.c: Rebuild.
7608 * target.c (target_get_section_table): Unconditionally delegate.
7609 * target.h (struct target_ops) <to_get_section_table>: Use
7610 TARGET_DEFAULT_RETURN.
7612 2014-02-19 Tom Tromey <tromey@redhat.com>
7614 * target-delegates.c: Rebuild.
7615 * target.c (target_pid_to_str): Unconditionally delegate.
7616 (init_dummy_target): Don't initialize to_pid_to_str.
7617 (default_pid_to_str): Rename from dummy_pid_to_str.
7618 * target.h (struct target_ops) <to_pid_to_str>: Use
7619 TARGET_DEFAULT_FUNC.
7621 2014-02-19 Tom Tromey <tromey@redhat.com>
7623 * target-delegates.c: Rebuild.
7624 * target.c (target_find_new_threads): Unconditionally delegate.
7625 * target.h (struct target_ops) <to_find_new_threads>: Use
7626 TARGET_DEFAULT_RETURN.
7628 2014-02-19 Tom Tromey <tromey@redhat.com>
7630 * target-delegates.c: Rebuild.
7631 * target.c (target_program_signals): Unconditionally delegate.
7632 * target.h (struct target_ops) <to_program_signals>: Use
7633 TARGET_DEFAULT_IGNORE.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * target-delegates.c: Rebuild.
7638 * target.c (target_pass_signals): Unconditionally delegate.
7639 * target.h (struct target_ops) <to_pass_signals>: Use
7640 TARGET_DEFAULT_IGNORE.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target-delegates.c: Rebuild.
7645 * target.c (default_mourn_inferior): New function.
7646 (target_mourn_inferior): Unconditionally delegate.
7647 * target.h (struct target_ops) <to_mourn_inferior>: Use
7648 TARGET_DEFAULT_FUNC.
7650 2014-02-19 Tom Tromey <tromey@redhat.com>
7652 * target-delegates.c: Rebuild.
7653 * target.c (default_follow_fork): New function.
7654 (target_follow_fork): Unconditionally delegate.
7655 * target.h (struct target_ops) <to_follow_fork>: Use
7656 TARGET_DEFAULT_FUNC.
7658 2014-02-19 Tom Tromey <tromey@redhat.com>
7660 * target-delegates.c: Rebuild.
7661 * target.c (target_kill): Unconditionally delegate.
7662 * target.h (struct target_ops) <to_kill>: Use
7663 TARGET_DEFAULT_NORETURN.
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7667 * target-delegates.c: Rebuild.
7668 * target.c (target_masked_watch_num_registers): Unconditionally
7670 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7671 Use TARGET_DEFAULT_RETURN.
7673 2014-02-19 Tom Tromey <tromey@redhat.com>
7675 * target-delegates.c: Rebuild.
7676 * target.c (target_remove_mask_watchpoint): Unconditionally
7678 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7679 TARGET_DEFAULT_RETURN.
7681 2014-02-19 Tom Tromey <tromey@redhat.com>
7683 * target-delegates.c: Rebuild.
7684 * target.c (target_insert_mask_watchpoint): Unconditionally
7686 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7687 TARGET_DEFAULT_RETURN.
7689 2014-02-19 Tom Tromey <tromey@redhat.com>
7691 * target-delegates.c: Rebuild.
7692 * target.c (target_ranged_break_num_registers): Unconditionally
7694 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7695 Use TARGET_DEFAULT_RETURN.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * target-delegates.c: Rebuild.
7700 * target.c (target_fetch_registers): Unconditionally delegate.
7701 * target.h (struct target_ops) <to_fetch_registers>: Use
7702 TARGET_DEFAULT_NORETURN.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7709 * target.h (struct target_ops) <to_stop>: Use
7710 TARGET_DEFAULT_IGNORE.
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target-delegates.c: Rebuild.
7715 * target.c (update_current_target): Don't inherit or default
7716 to_can_run_breakpoint_commands.
7717 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7718 Use TARGET_DEFAULT_RETURN.
7720 2014-02-19 Tom Tromey <tromey@redhat.com>
7722 * target-delegates.c: Rebuild.
7723 * target.c (update_current_target): Don't inherit or default
7724 to_supports_evaluation_of_breakpoint_conditions.
7725 * target.h (struct target_ops)
7726 <to_supports_evaluation_of_breakpoint_conditions>: Use
7727 TARGET_DEFAULT_RETURN.
7729 2014-02-19 Tom Tromey <tromey@redhat.com>
7731 * target-delegates.c: Rebuild.
7732 * target.c (update_current_target): Don't inherit or default
7733 to_augmented_libraries_svr4_read.
7734 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7735 Use TARGET_DEFAULT_RETURN.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * target-delegates.c: Rebuild.
7740 * target.c (update_current_target): Don't inherit or default
7742 * target.h (struct target_ops) <to_can_use_agent>: Use
7743 TARGET_DEFAULT_RETURN.
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7747 * target-delegates.c: Rebuild.
7748 * target.c (update_current_target): Don't inherit or default
7750 * target.h (struct target_ops) <to_use_agent>: Use
7751 TARGET_DEFAULT_NORETURN.
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7755 * target-delegates.c: Rebuild.
7756 * target.c (update_current_target): Don't inherit or default
7758 (return_null): Remove.
7759 * target.h (struct target_ops) <to_traceframe_info>: Use
7760 TARGET_DEFAULT_RETURN.
7762 2014-02-19 Tom Tromey <tromey@redhat.com>
7764 * target-delegates.c: Rebuild.
7765 * target.c (update_current_target): Don't inherit or default
7766 to_static_tracepoint_markers_by_strid.
7767 * target.h (struct target_ops)
7768 <to_static_tracepoint_markers_by_strid>: Use
7769 TARGET_DEFAULT_NORETURN.
7771 2014-02-19 Tom Tromey <tromey@redhat.com>
7773 * target-delegates.c: Rebuild.
7774 * target.c (update_current_target): Don't inherit or default
7775 to_static_tracepoint_marker_at.
7776 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7777 Use TARGET_DEFAULT_RETURN.
7779 2014-02-19 Tom Tromey <tromey@redhat.com>
7781 * target-delegates.c: Rebuild.
7782 * target.c (update_current_target): Don't inherit or default
7784 * target.h (struct target_ops) <to_set_permissions>: Use
7785 TARGET_DEFAULT_IGNORE.
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7789 * target-delegates.c: Rebuild.
7790 * target.c (update_current_target): Don't inherit or default
7792 * target.h (struct target_ops) <to_get_tib_address>: Use
7793 TARGET_DEFAULT_NORETURN.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target-delegates.c: Rebuild.
7798 * target.c (update_current_target): Don't inherit or default
7800 * target.h (struct target_ops) <to_set_trace_notes>: Use
7801 TARGET_DEFAULT_RETURN.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * target-delegates.c: Rebuild.
7806 * target.c (update_current_target): Don't initialize
7807 to_set_trace_buffer_size.
7808 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7809 TARGET_DEFAULT_IGNORE.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target-delegates.c: Rebuild.
7814 * target.c (update_current_target): Don't inherit or default
7815 to_set_circular_trace_buffer.
7816 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7817 TARGET_DEFAULT_IGNORE.
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7823 to_set_disconnected_tracing.
7824 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7825 TARGET_DEFAULT_IGNORE.
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7831 to_get_min_fast_tracepoint_insn_len.
7832 (return_minus_one): Remove.
7833 * target.h (struct target_ops)
7834 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7836 2014-02-19 Tom Tromey <tromey@redhat.com>
7838 * target-delegates.c: Rebuild.
7839 * target.c (update_current_target): Don't inherit or default
7840 to_get_raw_trace_data.
7841 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7842 TARGET_DEFAULT_NORETURN.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (update_current_target): Don't inherit or default
7848 to_upload_trace_state_variables.
7849 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7850 Use TARGET_DEFAULT_RETURN.
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_upload_tracepoints.
7857 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7858 TARGET_DEFAULT_RETURN.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target-delegates.c: Rebuild.
7863 * target.c (update_current_target): Don't inherit or default
7865 * target.h (struct target_ops) <to_save_trace_data>: Use
7866 TARGET_DEFAULT_NORETURN.
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7872 to_get_trace_state_variable_value.
7873 * target.h (struct target_ops)
7874 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7881 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7888 * target.h (struct target_ops) <to_trace_stop>: Use
7889 TARGET_DEFAULT_NORETURN.
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_get_tracepoint_status.
7896 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7897 TARGET_DEFAULT_NORETURN.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_get_trace_status.
7904 * target.h (struct target_ops) <to_get_trace_status>: Use
7905 TARGET_DEFAULT_RETURN.
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7912 * target.h (struct target_ops) <to_trace_start>: Use
7913 TARGET_DEFAULT_NORETURN.
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7917 * target-delegates.c: Rebuild.
7918 * target.c (update_current_target): Don't inherit or default
7919 to_trace_set_readonly_regions.
7920 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7921 Use TARGET_DEFAULT_NORETURN.
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target-delegates.c: Rebuild.
7926 * target.c (update_current_target): Don't inherit or default
7927 to_disable_tracepoint.
7928 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7929 TARGET_DEFAULT_NORETURN.
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7935 to_enable_tracepoint.
7936 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7937 TARGET_DEFAULT_NORETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7943 to_download_trace_state_variable.
7944 * target.h (struct target_ops) <to_download_trace_state_variable>:
7945 Use TARGET_DEFAULT_NORETURN.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7951 to_can_download_tracepoint.
7952 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7953 TARGET_DEFAULT_RETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_download_tracepoint.
7960 * target.h (struct target_ops) <to_download_tracepoint>: Use
7961 TARGET_DEFAULT_NORETURN.
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7968 * target.h (struct target_ops) <to_trace_init>: Use
7969 TARGET_DEFAULT_RETURN.
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_supports_string_tracing.
7976 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7977 TARGET_DEFAULT_RETURN.
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target-delegates.c: Rebuild.
7982 * target.c (update_current_target): Don't inherit or default
7983 to_supports_enable_disable_tracepoint.
7984 * target.h (struct target_ops)
7985 <to_supports_enable_disable_tracepoint>: Use
7986 TARGET_DEFAULT_RETURN.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_supports_multi_process.
7993 * target.h (struct target_ops) <to_supports_multi_process>: Use
7994 TARGET_DEFAULT_RETURN.
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_get_ada_task_ptid.
8001 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8002 TARGET_DEFAULT_FUNC.
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8006 * target-delegates.c: Rebuild.
8007 * target.c (update_current_target): Don't inherit or default
8008 to_thread_architecture.
8009 * target.h (struct target_ops) <to_thread_architecture>: Use
8010 TARGET_DEFAULT_FUNC.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_execution_direction.
8017 * target.h (struct target_ops) <to_execution_direction>: Use
8018 TARGET_DEFAULT_FUNC.
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_can_execute_reverse.
8025 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8026 TARGET_DEFAULT_RETURN.
8027 (target_can_execute_reverse): Unconditionally delegate.
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8034 (dummy_goto_bookmark): Remove.
8035 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8036 * target.h (struct target_ops) <to_goto_bookmark>: Use
8037 TARGET_DEFAULT_NORETURN.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target-delegates.c: Rebuild.
8042 * target.c (update_current_target): Don't inherit or default
8044 (dummy_get_bookmark): Remove.
8045 (init_dummy_target): Don't inherit or default to_get_bookmark.
8046 * target.h (struct target_ops) <to_get_bookmark>: Use
8047 TARGET_DEFAULT_NORETURN
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_make_corefile_notes.
8054 (init_dummy_target): Don't initialize to_make_corefile_notes.
8055 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8056 TARGET_DEFAULT_FUNC.
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8060 * target-delegates.c: Rebuild.
8061 * target.c (update_current_target): Don't inherit or default
8062 to_find_memory_regions.
8063 (init_dummy_target): Don't initialize to_find_memory_regions.
8064 * target.h (struct target_ops) <to_find_memory_regions>: Use
8065 TARGET_DEFAULT_FUNC.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8072 * target.h (struct target_ops) <to_log_command>: Use
8073 TARGET_DEFAULT_IGNORE.
8074 (target_log_command): Unconditionally delegate.
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8080 to_pid_to_exec_file.
8081 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8082 TARGET_DEFAULT_RETURN.
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8089 (target_thread_name): Unconditionally delegate.
8090 * target.h (struct target_ops) <to_thread_name>: Use
8091 TARGET_DEFAULT_RETURN.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_extra_thread_info.
8098 * target.h (struct target_ops) <to_extra_thread_info>: Use
8099 TARGET_DEFAULT_RETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8106 * target.h (struct target_ops) <to_has_exited>: Use
8107 TARGET_DEFAULT_RETURN..
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_set_syscall_catchpoint.
8114 (return_one): Remove.
8115 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8116 TARGET_DEFAULT_RETURN.
8118 2014-02-19 Tom Tromey <tromey@redhat.com>
8120 * target-delegates.c: Rebuild.
8121 * target.c (update_current_target): Don't inherit or default
8122 to_insert_exec_catchpoint.
8123 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8124 TARGET_DEFAULT_RETURN.
8126 2014-01-08 Tom Tromey <tromey@redhat.com>
8128 * target-delegates.c: Rebuild.
8129 * target.c (update_current_target): Don't inherit or default
8130 to_insert_exec_catchpoint.
8131 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8132 TARGET_DEFAULT_RETURN.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target-delegates.c: Rebuild.
8137 * target.c (update_current_target): Don't inherit or default
8138 to_remove_vfork_catchpoint.
8139 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8140 TARGET_DEFAULT_RETURN.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target-delegates.c: Rebuild.
8145 * target.c (update_current_target): Don't inherit or default
8146 to_insert_vfork_catchpoint.
8147 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8148 TARGET_DEFAULT_RETURN.
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8152 * target-delegates.c: Rebuild.
8153 * target.c (update_current_target): Don't inherit or default
8154 to_remove_fork_catchpoint.
8155 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8156 TARGET_DEFAULT_RETURN.
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8160 * target-delegates.c: Rebuild.
8161 * target.c (update_current_target): Don't inherit or default
8162 to_insert_fork_catchpoint.
8163 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8164 TARGET_DEFAULT_RETURN.
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target-delegates.c: Rebuild.
8169 * target.c (update_current_target): Don't inherit or default
8170 to_post_startup_inferior.
8171 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8172 TARGET_DEFAULT_IGNORE.
8174 2014-02-19 Tom Tromey <tromey@redhat.com>
8176 * target-delegates.c: Rebuild.
8177 * target.c (update_current_target): Don't inherit or default
8179 * target.h (struct target_ops) <to_load>: Use
8180 TARGET_DEFAULT_NORETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (update_current_target): Don't inherit or default
8187 * target.h (struct target_ops) <to_terminal_info>: Use
8188 TARGET_DEFAULT_FUNC.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_terminal_save_ours.
8195 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8196 TARGET_DEFAULT_IGNORE.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8203 * target.h (struct target_ops) <to_terminal_ours>: Use
8204 TARGET_DEFAULT_IGNORE.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_terminal_ours_for_output.
8211 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8212 TARGET_DEFAULT_IGNORE.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't inherit or default
8218 to_terminal_inferior.
8219 * target.h (struct target_ops) <to_terminal_inferior>: Use
8220 TARGET_DEFAULT_IGNORE.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8227 * target.h (struct target_ops) <to_terminal_init>: Use
8228 TARGET_DEFAULT_IGNORE.
8230 2014-02-19 Tom Tromey <tromey@redhat.com>
8232 * target-delegates.c: Rebuild.
8233 * target.c (update_current_target): Don't inherit or default
8234 to_can_accel_watchpoint_condition.
8235 * target.h (struct target_ops)
8236 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * target-delegates.c: Rebuild.
8241 * target.c (update_current_target): Don't inherit or default
8242 to_region_ok_for_hw_watchpoint.
8243 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8244 Use TARGET_DEFAULT_FUNC.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (update_current_target): Don't inherit or default
8250 to_watchpoint_addr_within_range.
8251 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8252 Use TARGET_DEFAULT_FUNC.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * target-delegates.c: Rebuild.
8257 * target.c (update_current_target): Don't inherit or default
8258 to_remove_watchpoint.
8259 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8260 TARGET_DEFAULT_NORETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8266 to_insert_watchpoint.
8267 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8268 TARGET_DEFAULT_RETURN.
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_remove_hw_breakpoint.
8275 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8276 TARGET_DEFAULT_RETURN.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_insert_hw_breakpoint.
8283 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8284 TARGET_DEFAULT_RETURN.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8290 to_can_use_hw_breakpoint.
8291 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8292 TARGET_DEFAULT_RETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (update_current_target): Don't inherit or default
8299 * target.h (struct target_ops) <to_files_info>: Use
8300 TARGET_DEFAULT_IGNORE.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (update_current_target): Don't inherit or default
8307 * target.h (struct target_ops) <to_store>: Use
8308 TARGET_DEFAULT_NORETURN.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (update_current_target): Don't inherit or default
8315 * target.h (struct target_ops) <to_post_attach>: Use
8316 TARGET_DEFAULT_IGNORE.
8318 2014-02-19 Tom Tromey <tromey@redhat.com>
8320 * target-delegates.c: Rebuild.
8321 * target.c (update_current_target): Don't inherit or default
8323 (default_rcmd): New function.
8324 (do_monitor_command): Unconditionally delegate.
8325 * target.h (struct target_ops) <to_rmcd>: Use
8326 TARGET_DEFAULT_FUNC.
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8330 * target-delegates.c: Rebuild.
8331 * target.c (init_dummy_target): Don't initialize to_attach.
8332 (target_attach): Unconditionally delegate.
8333 * target.h (struct target_ops) <to_attach>: Use
8334 TARGET_DEFAULT_FUNC.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target-delegates.c: Rebuild.
8339 * target.c (target_detach): Unconditionally delegate.
8340 (init_dummy_target): Don't initialize to_detach.
8341 * target.h (struct target_ops) <to_detach>: Use
8342 TARGET_DEFAULT_IGNORE.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8348 (target_augmented_libraries_svr4_read): Add argument.
8349 * target.c (update_current_target): Update.
8350 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8355 * target.h (struct target_ops) <to_call_history_range>: Add
8357 * target.c (target_call_history_range): Add argument.
8358 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8360 (record_btrace_call_history_from): Update.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target.h (struct target_ops) <to_call_history_from>: Add
8366 * target.c (target_call_history_from): Add argument.
8367 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target.h (struct target_ops) <to_call_history>: Add argument.
8373 * target.c (target_call_history): Add argument.
8374 * record-btrace.c (record_btrace_call_history): Add 'self'
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * target.h (struct target_ops) <to_insn_history_range>: Add
8381 * target.c (target_insn_history_range): Add argument.
8382 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8384 (record_btrace_insn_history_from): Update.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target.h (struct target_ops) <to_insn_history_from>: Add
8390 * target.c (target_insn_history_from): Add argument.
8391 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target.h (struct target_ops) <to_insn_history>: Add argument.
8397 * target.c (target_insn_history): Add argument.
8398 * record-btrace.c (record_btrace_insn_history): Add 'self'
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target.h (struct target_ops) <to_goto_record>: Add argument.
8404 * target.c (target_goto_record): Add argument.
8405 * record-full.c (record_full_goto): Add 'self' argument.
8406 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8411 * target.c (target_goto_record_end): Add argument.
8412 * record-full.c (record_full_goto_end): Add 'self' argument.
8413 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target.h (struct target_ops) <to_goto_record_begin>: Add
8419 * target.c (target_goto_record_begin): Add argument.
8420 * record-full.c (record_full_goto_begin): Add 'self' argument.
8421 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target.h (struct target_ops) <to_record_is_replaying>: Add
8428 * target.c (target_record_is_replaying): Add argument.
8429 * record-full.c (record_full_is_replaying): Add 'self' argument.
8430 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8432 (record_btrace_xfer_partial, record_btrace_store_registers)
8433 (record_btrace_prepare_to_store, record_btrace_resume)
8434 (record_btrace_wait, record_btrace_decr_pc_after_break)
8435 (record_btrace_find_new_threads, record_btrace_thread_alive):
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target.h (struct target_ops) <to_delete_record>: Add argument.
8441 * target.c (target_delete_record): Add argument.
8442 * record-full.c (record_full_delete): Add 'self' argument.
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8446 * target.h (struct target_ops) <to_save_record>: Add argument.
8447 * target.c (target_save_record): Add argument.
8448 * record-full.c (record_full_save): Add 'self' argument.
8449 (record_full_save): Add 'self' argument.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target.h (struct target_ops) <to_info_record>: Add argument.
8454 * target.c (target_info_record): Add argument.
8455 * record.c (info_record_command): Add argument.
8456 * record-full.c (record_full_info): Add 'self' argument.
8457 * record-btrace.c (record_btrace_info): Add 'self' argument.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8462 * target.c (target_stop_recording): Add argument.
8463 * record.c (record_stop): Add argument.
8464 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8470 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8471 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8473 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8474 (_initialize_amd64_linux_nat): Use it.
8475 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8476 (_initialize_i386_linux_nat): Use it.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8481 * target.c (target_teardown_btrace): Add argument.
8482 * remote.c (remote_teardown_btrace): Add 'self' argument.
8483 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8485 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8491 * target.c (target_disable_btrace): Add argument.
8492 * remote.c (remote_disable_btrace): Add 'self' argument.
8493 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8495 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8500 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8501 * target.c (target_enable_btrace): Add argument.
8502 * remote.c (remote_enable_btrace): Add 'self' argument.
8503 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8505 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8511 (target_can_use_agent): Add argument.
8512 * target.c (update_current_target): Update.
8513 * remote.c (remote_can_use_agent): Add 'self' argument.
8514 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * target.h (struct target_ops) <to_use_agent>: Add argument.
8519 (target_use_agent): Add argument.
8520 * target.c (update_current_target): Update.
8521 * remote.c (remote_use_agent): Add 'self' argument.
8522 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8527 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8528 (target_traceframe_info): Add argument.
8529 * target.c (update_current_target): Update.
8530 * remote.c (remote_traceframe_info): Add 'self' argument.
8531 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target.h (target_static_tracepoint_markers_by_strid): Add
8537 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8539 * target.c (update_current_target): Update.
8540 * remote.c (struct target_ops)
8541 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8542 * linux-nat.c (struct target_ops)
8543 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8549 (target_static_tracepoint_marker_at): Add argument.
8550 * target.c (update_current_target): Update.
8551 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8557 (target_set_permissions): Add argument.
8558 * target.c (update_current_target): Update.
8559 * remote.c (remote_set_permissions): Add 'self' argument.
8560 (remote_start_remote): Update.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8565 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8566 (target_get_tib_address): Add argument.
8567 * target.c (update_current_target): Update.
8568 * remote.c (remote_get_tib_address): Add 'self' argument.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8573 (target_set_trace_notes): Add argument.
8574 * target.c (update_current_target): Update.
8575 * remote.c (remote_set_trace_notes): Add 'self' argument.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8581 (target_set_trace_buffer_size): Add argument.
8582 * target.c (update_current_target): Update.
8583 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8589 (target_set_circular_trace_buffer): Add argument.
8590 * target.c (update_current_target): Update.
8591 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8598 (target_set_disconnected_tracing): Add argument.
8599 * target.c (update_current_target): Update.
8600 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target.h (struct target_ops)
8605 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8606 (target_get_min_fast_tracepoint_insn_len): Add argument.
8607 * target.c (update_current_target): Update.
8608 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8615 (target_get_raw_trace_data): Add argument.
8616 * target.c (update_current_target): Update.
8617 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8623 (target_upload_trace_state_variables): Add argument.
8624 * target.c (update_current_target): Update.
8625 * remote.c (remote_upload_trace_state_variables): Add 'self'
8627 (remote_start_remote): Update.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8633 (target_upload_tracepoints): Add argument.
8634 * target.c (update_current_target): Update.
8635 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8636 (remote_start_remote): Update.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8641 (target_save_trace_data): Add argument.
8642 * target.c (update_current_target): Update.
8643 * remote.c (remote_save_trace_data): Add 'self' argument.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8649 * target.h (struct target_ops)
8650 <to_get_trace_state_variable_value>: Add argument.
8651 (target_get_trace_state_variable_value): Add argument.
8652 * target.c (update_current_target): Update.
8653 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8655 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8660 * target.h (struct target_ops) <to_trace_find>: Add argument.
8661 (target_trace_find): Add argument.
8662 * target.c (update_current_target): Update.
8663 * remote.c (remote_trace_find): Add 'self' argument.
8664 * ctf.c (ctf_trace_find): Add 'self' argument.
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8669 (target_trace_stop): Add argument.
8670 * target.c (update_current_target): Update.
8671 * remote.c (remote_trace_stop): Add 'self' argument.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8676 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8678 (target_get_tracepoint_status): Add argument.
8679 * target.c (update_current_target): Update.
8680 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8685 * target.h (struct target_ops) <to_get_trace_status>: Add
8687 (target_get_trace_status): Add argument.
8688 * target.c (update_current_target): Update.
8689 * remote.c (remote_get_trace_status): Add 'self' argument.
8690 (remote_start_remote, remote_can_download_tracepoint): Update.
8691 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target.h (struct target_ops) <to_trace_start>: Add argument.
8696 (target_trace_start): Add argument.
8697 * target.c (update_current_target): Update.
8698 * remote.c (remote_trace_start): Add 'self' argument.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8704 (target_trace_set_readonly_regions): Add argument.
8705 * target.c (update_current_target): Update.
8706 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8713 (target_disable_tracepoint): Add argument.
8714 * target.c (update_current_target): Update.
8715 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8721 (target_enable_tracepoint): Add argument.
8722 * target.c (update_current_target): Update.
8723 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target.h (struct target_ops) <to_download_trace_state_variable>:
8729 (target_download_trace_state_variable): Add argument.
8730 * target.c (update_current_target): Update.
8731 * remote.c (remote_download_trace_state_variable): Add 'self'
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8738 (target_can_download_tracepoint): Add argument.
8739 * target.c (update_current_target): Update.
8740 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target.h (struct target_ops) <to_download_tracepoint>: Add
8746 (target_download_tracepoint): Add argument.
8747 * target.c (update_current_target): Update.
8748 * remote.c (remote_download_tracepoint): Add 'self' argument.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target.h (struct target_ops) <to_trace_init>: Add argument.
8753 (target_trace_init): Add argument.
8754 * target.c (update_current_target): Update.
8755 * remote.c (remote_trace_init): Add 'self' argument.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8760 * target.c (target_fileio_readlink): Add argument.
8761 * remote.c (remote_hostio_readlink): Add 'self' argument.
8762 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8767 * target.c (target_fileio_unlink): Add argument.
8768 * remote.c (remote_hostio_unlink): Add 'self' argument.
8769 (remote_file_delete): Update.
8770 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8775 * target.c (target_fileio_close): Add argument.
8776 * remote.c (remote_hostio_close): Add 'self' argument.
8777 (remote_hostio_close_cleanup): Update.
8778 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8780 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8785 * target.c (target_fileio_pread): Add argument.
8786 * remote.c (remote_hostio_pread): Add 'self' argument.
8787 (remote_bfd_iovec_pread, remote_file_get): Update.
8788 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8793 * target.c (target_fileio_pwrite): Add argument.
8794 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8795 (remote_file_put): Update.
8796 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8801 * target.c (target_fileio_open): Add argument.
8802 * remote.c (remote_hostio_open): Add 'self' argument.
8803 (remote_bfd_iovec_open): Add 'self' argument.
8804 (remote_file_put): Add 'self' argument.
8805 (remote_file_get): Add 'self' argument.
8806 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8812 (target_can_run_breakpoint_commands): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8816 (remote_insert_breakpoint): Add 'self' argument.
8817 (remote_insert_hw_breakpoint): Add 'self' argument.
8818 (remote_can_run_breakpoint_commands): Add 'self' argument.
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8822 * target.h (struct target_ops)
8823 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8824 (target_supports_evaluation_of_breakpoint_conditions): Add
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8829 (remote_insert_breakpoint): Add 'self' argument.
8830 (remote_insert_hw_breakpoint): Add 'self' argument.
8831 (remote_supports_cond_breakpoints): Add 'self' argument.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8837 (target_supports_string_tracing): Add argument.
8838 * target.c (update_current_target): Update.
8839 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8843 * target.h (struct target_ops)
8844 <to_supports_disable_randomization>: Add argument.
8845 * target.c (find_default_supports_disable_randomization): Add
8847 (target_supports_disable_randomization): Add argument.
8848 (find_default_supports_disable_randomization): Add 'self'
8850 * remote.c (extended_remote_supports_disable_randomization): Add
8852 (remote_supports_disable_randomization): Add 'self' argument.
8853 (extended_remote_create_inferior): Update.
8854 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops)
8860 <to_supports_enable_disable_tracepoint>: Add argument.
8861 (target_supports_enable_disable_tracepoint): Add argument.
8862 * target.c (update_current_target): Update.
8863 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target.h (struct target_ops) <to_supports_multi_process>: Add
8870 (target_supports_multi_process): Add argument.
8871 * target.c (update_current_target): Update.
8872 * remote.c (remote_supports_multi_process): Add 'self' argument.
8873 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8875 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target.h (struct target_ops) <to_execution_direction>: Add
8882 (target_execution_direction): Add argument.
8883 * target.c (default_execution_direction): Add 'self' argument.
8884 * record-full.c (record_full_execution_direction): Add 'self'
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8891 (target_can_execute_reverse): Add argument.
8892 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8893 * record-full.c (record_full_can_execute_reverse): Add 'self'
8895 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8901 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8903 (target_get_ada_task_ptid): Add argument.
8904 * target.c (update_current_target): Update.
8905 (default_get_ada_task_ptid): Add 'self' argument.
8906 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8907 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8908 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8910 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8912 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8914 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8916 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8917 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8920 2014-02-19 Tom Tromey <tromey@redhat.com>
8922 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8923 (target_goto_bookmark): Add argument.
8924 * target.c (dummy_goto_bookmark): Add 'self' argument.
8925 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8930 (target_get_bookmark): Add argument.
8931 * target.c (dummy_get_bookmark): Add 'self' argument.
8932 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8934 2014-02-19 Tom Tromey <tromey@redhat.com>
8936 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8938 (target_make_corefile_notes): Add argument.
8939 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8940 * procfs.c (procfs_make_note_section): Add 'self' argument.
8941 (procfs_make_note_section): Add 'self' argument.
8942 (procfs_make_note_section): Add 'self' argument.
8943 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8945 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8946 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8947 * exec.c (exec_make_note_section): Add 'self' argument.
8948 (exec_make_note_section): Add 'self' argument.
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8952 * target.h (struct target_ops) <to_find_memory_regions>: Add
8954 (target_find_memory_regions): Add argument.
8955 * target.c (dummy_find_memory_regions): Add 'self' argument.
8956 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8957 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8958 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8959 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8960 * exec. (exec_do_find_memory_regions): New global.
8961 (exec_set_find_memory_regions): Rewrite.
8962 (exec_find_memory_regions): New function.
8963 (init_exec_ops): Use exec_find_memory_regions.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_supports_non_stop>: Add
8969 * target.c (find_default_supports_non_stop): Add argument.
8970 (target_supports_non_stop): Add argument.
8971 (find_default_supports_non_stop): Add 'self' argument.
8972 * remote.c (remote_supports_non_stop): Add 'self' argument.
8973 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target.h (struct target_ops) <to_log_command>: Add argument.
8978 (target_log_command): Add argument.
8979 * serial.h (serial_log_command): Add 'self' argument.
8980 * serial.c (serial_log_command): Add 'self' argument.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8985 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8987 (target_pid_to_exec_file): Add argument.
8988 * target.c (debug_to_pid_to_exec_file): Add argument.
8989 (update_current_target): Update.
8990 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8991 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8992 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8993 (linux_handle_extended_wait): Update.
8994 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8995 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8996 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8997 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target.h (struct target_ops) <to_rcmd>: Add argument.
9002 (target_rcmd): Add argument.
9003 * target.c (debug_to_rcmd): Add argument.
9004 (update_current_target, do_monitor_command): Update.
9005 * remote.c (remote_rcmd): Add 'self' argument.
9006 * monitor.c (monitor_rcmd): Add 'self' argument.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * windows-nat.c (windows_stop): Add 'self' argument.
9011 * target.h (struct target_ops) <to_stop>: Add argument.
9012 * target.c (target_stop): Add argument.
9013 (debug_to_stop): Add argument.
9014 (update_current_target): Update.
9015 * remote.c (remote_stop): Add 'self' argument.
9016 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9017 (gdbsim_cntrl_c): Update.
9018 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9019 * procfs.c (procfs_stop): Add 'self' argument.
9020 * nto-procfs.c (procfs_stop): Add 'self' argument.
9021 * monitor.c (monitor_stop): Add 'self' argument.
9022 (monitor_open): Update.
9023 * linux-nat.c (linux_nat_stop): Add argument.
9024 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9025 * gnu-nat.c (gnu_stop): Add 'self' argument.
9026 * darwin-nat.c (darwin_stop): Add 'self' argument.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target.h (struct target_ops) <to_thread_name>: Add argument.
9031 * target.c (target_thread_name): Add argument.
9032 (update_current_target): Update.
9033 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target.h (struct target_ops) <to_extra_thread_info>: Add
9039 (target_extra_thread_info): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_threads_extra_info): Add 'self' argument.
9042 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9044 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9045 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9046 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9048 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9050 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9052 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target.h (struct target_ops) <to_program_signals>: Add argument.
9058 * target.c (target_program_signals): Add argument.
9059 * remote.c (remote_program_signals): Add 'self' argument.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9064 * target.c (target_pass_signals): Add argument.
9065 * remote.c (remote_pass_signals): Add 'self' argument.
9066 (remote_start_remote): Update.
9067 * procfs.c (procfs_pass_signals): Add 'self' argument.
9068 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9069 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9070 (linux_nat_create_inferior, linux_nat_attach): Update.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * windows-nat.c (windows_can_run): Add 'self' argument.
9075 * target.h (struct target_ops) <to_can_run>: Add argument.
9076 (target_can_run): Add argument.
9077 * target.c (debug_to_can_run): Add argument.
9078 (update_current_target): Update.
9079 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9080 * inf-child.c (inf_child_can_run): Add 'self' argument.
9081 * go32-nat.c (go32_can_run): Add 'self' argument.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * target.h (struct target_ops) <to_has_exited>: Add argument.
9086 (target_has_exited): Add argument.
9087 * target.c (debug_to_has_exited): Add argument.
9088 (update_current_target): Update.
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9092 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9094 (target_set_syscall_catchpoint): Add argument.
9095 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9097 * target.c (update_current_target): Update.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9103 (target_remove_exec_catchpoint): Add argument.
9104 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9105 (update_current_target): Update.
9106 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9111 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9113 (target_insert_exec_catchpoint): Add argument.
9114 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9115 (update_current_target): Update.
9116 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9123 (target_remove_vfork_catchpoint): Add argument.
9124 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9125 (update_current_target): Update.
9126 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9133 (target_insert_vfork_catchpoint): Add argument.
9134 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9135 (update_current_target): Update.
9136 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9143 (target_remove_fork_catchpoint): Add argument.
9144 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9145 (update_current_target): Update.
9146 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9153 (target_insert_fork_catchpoint): Add argument.
9154 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9155 (update_current_target): Update.
9156 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9163 (target_post_startup_inferior): Add argument.
9164 * target.c (debug_to_post_startup_inferior): Add argument.
9165 (update_current_target): Update.
9166 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9168 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9170 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9172 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9174 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9176 (super_post_startup_inferior): Likewise.
9177 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9179 (super_post_startup_inferior): Likewise.
9180 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9181 Add 'self' argument.
9182 (super_post_startup_inferior): Likewise.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_load>: Add argument.
9187 * target.c (target_load): Add argument.
9188 (debug_to_load): Add argument.
9189 (update_current_target): Update.
9190 * remote.c (remote_load): Add 'self' argument.
9191 * remote-sim.c (gdbsim_load): Add 'self' argument.
9192 * remote-mips.c (mips_load): Add 'self' argument.
9193 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9194 * monitor.c (monitor_load): Add 'self' argument.
9195 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9200 (target_terminal_info): Add argument.
9201 * target.c (debug_to_terminal_info): Add argument.
9202 (default_terminal_info): Likewise.
9203 * inflow.c (child_terminal_info): Add 'self' argument.
9204 * inferior.h (child_terminal_info): Add 'self' argument.
9205 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9209 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9211 (target_terminal_save_ours): Add argument.
9212 * target.c (debug_to_terminal_save_ours): Add argument.
9213 (update_current_target): Update.
9214 * inflow.c (terminal_save_ours): Add 'self' argument.
9215 * inferior.h (terminal_save_ours): Add 'self' argument.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9220 (target_terminal_ours): Add argument.
9221 * target.c (debug_to_terminal_ours): Add argument.
9222 (update_current_target): Update.
9223 * remote.c (remote_terminal_ours): Add 'self' argument.
9224 (remote_close): Update.
9225 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9226 * inflow.c (terminal_ours): Add 'self' argument.
9227 * inferior.h (terminal_ours): Add 'self' argument.
9228 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9230 2014-02-19 Pedro Alves <palves@redhat.com>
9231 Tom Tromey <tromey@redhat.com>
9233 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9235 (target_terminal_ours_for_output): Add argument.
9236 * target.c (debug_to_terminal_ours_for_output): Add argument.
9237 (update_current_target): Update.
9238 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9239 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9240 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target.h (struct target_ops) <to_terminal_inferior>: Add
9246 * target.c (target_terminal_inferior): Add argument.
9247 (update_current_target): Update.
9248 * remote.c (remote_terminal_inferior): Add 'self' argument.
9249 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9250 * inflow.c (terminal_inferior): Add 'self' argument.
9251 * inferior.h (terminal_inferior): Add 'self' argument.
9252 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9253 (go32_terminal_inferior): Add 'self' argument.
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9257 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9258 (target_terminal_init): Add argument.
9259 * target.c (debug_to_terminal_init): Add argument.
9260 (update_current_target): Update.
9261 * inflow.c (terminal_init_inferior): Add 'self' argument.
9262 * inferior.h (terminal_init_inferior): Add 'self' argument.
9263 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9264 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target.h (struct target_ops)
9269 <to_can_accel_watchpoint_condition>: Add argument.
9270 (target_can_accel_watchpoint_condition): Add argument.
9271 * target.c (debug_to_can_accel_watchpoint_condition): Add
9273 (update_current_target): Update.
9274 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9281 (target_region_ok_for_hw_watchpoint): Add argument.
9282 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9283 (default_region_ok_for_hw_watchpoint): Add argument.
9284 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9285 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9287 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9289 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9291 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9293 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9295 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9297 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9298 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9300 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9301 Add 'self' argument.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9307 (target_insert_watchpoint): Add argument.
9308 * target.c (debug_to_insert_watchpoint): Add argument.
9309 (update_current_target): Update.
9310 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9311 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9312 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9313 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9314 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9315 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9317 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9318 (procfs_insert_hw_watchpoint): Add 'self' argument.
9319 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9321 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9323 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9325 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9326 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9328 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9335 (target_remove_watchpoint): Add argument.
9336 * target.c (debug_to_remove_watchpoint): Add argument.
9337 (update_current_target): Update.
9338 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9339 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9340 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9341 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9342 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9343 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9345 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9346 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9348 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9350 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9352 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9353 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9355 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9362 (target_remove_hw_breakpoint): Add argument.
9363 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9364 (update_current_target): Update.
9365 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9366 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9368 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9369 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9371 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9378 (target_insert_hw_breakpoint): Add argument.
9379 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9380 (update_current_target): Update.
9381 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9382 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9384 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9385 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9386 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9388 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9395 (target_can_use_hardware_watchpoint): Add argument.
9396 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9397 (update_current_target): Update.
9398 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9400 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9402 * remote.c (remote_check_watch_resources): Add 'self' argument.
9403 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9404 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9406 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9407 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9409 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9411 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9413 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9415 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9417 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9419 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9420 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9422 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9425 2014-02-19 Tom Tromey <tromey@redhat.com>
9427 * target.h (struct target_ops) <to_post_attach>: Add argument.
9428 (target_post_attach): Add argument.
9429 * target.c (debug_to_post_attach): Add argument.
9430 (update_current_target): Update.
9431 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9432 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9433 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9434 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9435 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * windows-nat.c (windows_close): Add 'self' argument.
9440 * tracepoint.c (tfile_close): Add 'self' argument.
9441 * target.h (struct target_ops) <to_close>: Add argument.
9442 * target.c (target_close): Add argument.
9443 (update_current_target): Update.
9444 * remote.c (remote_close): Add 'self' argument.
9445 * remote-sim.c (gdbsim_close): Add 'self' argument.
9446 * remote-mips.c (mips_close): Add 'self' argument.
9447 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9448 * record-full.c (record_full_close): Add 'self' argument.
9449 * record-btrace.c (record_btrace_close): Add 'self' argument.
9450 * monitor.h (monitor_close): Add 'self' argument.
9451 * monitor.c (monitor_close): Add 'self' argument.
9452 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9453 * linux-nat.c (linux_nat_close): Add argument.
9454 * go32-nat.c (go32_close): Add 'self' argument.
9455 * exec.c (exec_close_1): Add 'self' argument.
9456 * ctf.c (ctf_close): Add 'self' argument.
9457 * corelow.c (core_close): Add 'self' argument.
9458 (core_close_cleanup): Update.
9459 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9460 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * remote.c (remote_load): New function.
9465 (init_remote_ops): Use it.
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9471 * common/linux-btrace.h (linux_supports_btrace): Update.
9472 * remote.c (remote_supports_btrace): Add "self" argument.
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_supports_btrace): Remove.
9475 * target.h (struct target_ops) <to_supports_btrace>: Add
9476 target_ops argument.
9477 (target_supports_btrace): New define.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * record-full.c (record_full_beneath_to_resume_ops)
9482 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9483 (record_full_beneath_to_wait)
9484 (record_full_beneath_to_store_registers_ops)
9485 (record_full_beneath_to_store_registers)
9486 (record_full_beneath_to_xfer_partial_ops)
9487 (record_full_beneath_to_xfer_partial)
9488 (record_full_beneath_to_insert_breakpoint_ops)
9489 (record_full_beneath_to_insert_breakpoint)
9490 (record_full_beneath_to_remove_breakpoint_ops)
9491 (record_full_beneath_to_remove_breakpoint)
9492 (record_full_beneath_to_stopped_by_watchpoint)
9493 (record_full_beneath_to_stopped_data_address)
9494 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9495 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9496 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9497 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9498 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9499 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9500 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9501 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9502 (record_full_resume, record_full_wait_1)
9503 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9504 (record_full_store_registers, record_full_xfer_partial)
9505 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9506 (record_full_async, record_full_core_xfer_partial): Use target
9508 * target-delegates.c: Rebuild.
9509 * target.c (current_xfer_partial): Remove.
9510 (update_current_target): Do not INHERIT or de_fault
9511 to_insert_breakpoint, to_remove_breakpoint,
9512 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9513 to_is_async_p, to_async. Do not set to_xfer_partial field.
9514 (default_xfer_partial): Simplify.
9515 (current_xfer_partial): Remove.
9516 (target_wait, target_resume): Simplify.
9517 (find_default_can_async_p, find_default_is_async_p): Update.
9518 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9519 to_xfer_partial, to_stopped_by_watchpoint,
9520 to_stopped_data_address.
9521 (target_store_registers): Simplify.
9522 (forward_target_remove_breakpoint)
9523 (forward_target_insert_breakpoint): Remove.
9524 (target_remove_breakpoint, target_insert_breakpoint)
9525 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9526 * target.h (struct target_ops) <to_resume, to_wait,
9527 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9528 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9529 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9531 (forward_target_remove_breakpoint)
9532 (forward_target_insert_breakpoint): Remove.
9533 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9535 (record_btrace_insert_breakpoint): Delegate directly.
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target-delegates.c: New file.
9541 * target.c: Include target-delegates.c.
9542 (init_dummy_target): Call install_dummy_methods.
9543 (complete_target_initialization): Call install_delegators.
9544 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9545 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9546 * make-target-delegates: New file.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * record.c (find_record_target): Use find_target_at.
9551 * target.c (find_target_at): New function.
9552 * target.h (find_target_at): Declare.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9558 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9560 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9561 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9563 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9565 * linux-nat.c (save_sigtrap): Update.
9566 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9567 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9568 (linux_nat_close): Update.
9569 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9571 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9573 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9574 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9575 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9576 (tmp_to_async): Add 'ops' argument.
9577 (record_full_stopped_by_watchpoint, record_full_async)
9578 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9580 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9581 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9582 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9583 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9584 (remote_is_async_p, remote_async): Add 'ops' argument.
9585 (remote_stopped_data_address): Update.
9586 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9587 * target.c (update_current_target)
9588 (find_default_can_async_p, find_default_is_async_p): Update.
9589 (init_dummy_target): Update.
9590 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9591 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9592 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9593 (target_can_async_p, target_is_async_p, target_async)
9594 (target_stopped_by_watchpoint): Update.
9596 2014-02-19 Yao Qi <yao@codesourcery.com>
9599 * gdbarch.sh: Remove startup_gdbarch.
9600 * gdbarch.c: Regenerated.
9601 * gdbarch.h: Likewise.
9603 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9605 * rl78-tdep.c (rl78_g10_register_name): New function.
9606 (rl78_return_value): Add g10 support.
9607 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9610 2014-02-17 Doug Evans <xdje42@gmail.com>
9612 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9613 (SUBDIR_GUILE_SRCS): Ditto.
9614 (scm-gsmob.o): Ditto.
9616 2014-02-17 Yao Qi <yao@codesourcery.com>
9618 * gnu-nat.c (ILL_RPC): Declare defined function.
9620 2014-02-17 Yao Qi <yao@codesourcery.com>
9622 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9623 mach_msg_type_number_t.
9624 (gnu_write_inferior): Likewise.
9626 2014-02-17 Yao Qi <yao@codesourcery.com>
9628 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9630 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9631 (inf_validate_procs, inf_signal): Likewise.
9632 (S_exception_raise_request): Likewise.
9633 (do_mach_notify_dead_name): Likewise.
9634 (steal_exc_port): Likewise.
9635 (gnu_read_inferior): Change 'copy_count''s type to
9636 mach_msg_type_number_t.
9637 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9640 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9642 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9643 flag. Adjust all users; in particular...
9644 (gnu_wait): ..., don't decrement its value in here...
9645 (gnu_create_inferior): ..., and instead set the flag in here,
9646 around the startup_inferior call, and call that one with
9647 START_INFERIOR_TRAPS_EXPECTED.
9649 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9650 (ILL_RPC): ... new macro.
9651 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9652 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9653 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9654 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9655 functions with ILL_RPC macro.
9656 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9657 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9658 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9659 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9660 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9661 (S_proc_getlogin_reply, S_proc_getsid_reply)
9662 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9663 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9664 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9665 (S_proc_getnports_reply, S_proc_is_important_reply)
9666 (S_proc_get_code_reply): New stub functions, generated with
9669 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9670 collected the type check structures.
9672 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9674 2014-02-14 Doug Evans <dje@google.com>
9676 * target.c (target_write_partial): Fix result type.
9678 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9680 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9681 the proper offsets to access fpregset_t.
9683 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9685 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9686 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9687 * h8300-tdep.c (setmachinelist): Remove global.
9688 * hppa-tdep.c (hppa_sigtramp): Remove global.
9689 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9690 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9691 * ravenscar-thread.c (update_target_observer): Remove global.
9692 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9694 2014-02-12 Tom Tromey <tromey@redhat.com>
9696 * common/rsp-low.c: Update comments.
9697 * common/rsp-low.h: Update comments.
9699 2014-02-12 Tom Tromey <tromey@redhat.com>
9701 * common/rsp-low.c (convert_ascii_to_int): Remove.
9702 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9704 2014-02-12 Tom Tromey <tromey@redhat.com>
9706 * common/rsp-low.h (unhexify): Don't declare.
9707 * common/rsp-low.c (unhexify): Remove.
9709 2014-02-12 Tom Tromey <tromey@redhat.com>
9711 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9712 * common/rsp-low.c (convert_int_to_ascii): Remove.
9714 2014-02-12 Tom Tromey <tromey@redhat.com>
9716 * common/rsp-low.h (hexify): Don't declare.
9717 * common/rsp-low.c (hexify): Remove.
9719 2014-02-12 Tom Tromey <tromey@redhat.com>
9721 * common/rsp-low.c (hexify): Never take strlen of argument.
9723 2014-02-12 Tom Tromey <tromey@redhat.com>
9725 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9726 * remote.c (extended_remote_run, remote_rcmd)
9727 (remote_download_trace_state_variable, remote_save_trace_data)
9728 (remote_set_trace_notes): Update.
9729 * tracepoint.c (encode_source_string, tfile_write_status)
9730 (tfile_write_uploaded_tsv): Update.
9732 2014-02-12 Tom Tromey <tromey@redhat.com>
9734 * tracepoint.c: Include rsp-low.h.
9735 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9736 * remote.c: Include rsp-low.h.
9737 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9738 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9739 (remote_unescape_input): Move to common/rsp-low.c.
9740 * common/rsp-low.h: New file.
9741 * common/rsp-low.c: New file.
9742 * Makefile.in (SFILES): Add common/rsp-low.c.
9743 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9744 (COMMON_OBS): Add rsp-low.o.
9745 (rsp-low.o): New target.
9747 2014-02-12 Tom Tromey <tromey@redhat.com>
9749 * utils.h: Include print-utils.h.
9750 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9751 (int_string, core_addr_to_string, core_addr_to_string_nz)
9752 (hex_string, hex_string_custom): Don't declare.
9753 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9754 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9755 (hex_string_custom, int_string, core_addr_to_string)
9756 (core_addr_to_string_nz, host_address_to_string): Move to
9757 common/print-utils.c.
9758 * common/print-utils.h: New file.
9759 * common/print-utils.c: New file
9760 * Makefile.in (SFILES): Add common/print-utils.c.
9761 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9762 (COMMON_OBS): Add print-utils.o.
9763 (print-utils.o): New target.
9765 2014-02-12 Tom Tromey <tromey@redhat.com>
9767 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9769 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9771 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9773 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9775 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9776 if a PT_IO ptrace request returns sucessfully but indicates that 0
9777 bytes were transferred.
9779 2014-02-12 Pedro Alves <palves@redhat.com>
9780 Kevin Buettner <kevinb@redhat.com>
9782 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9783 TYPE_INSTANCE_FLAG_CODE_SPACE.
9785 2014-02-12 Pedro Alves <palves@redhat.com>
9787 * h8300-tdep.c (pseudo_from_raw_register)
9788 (raw_from_pseudo_register): New functions.
9789 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9792 2014-02-12 Pedro Alves <palves@redhat.com>
9794 * h8300-tdep.c (h8300_register_sim_regno): New function.
9795 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9796 gdbarch_register_sim_regno hook.
9798 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9800 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9802 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9804 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9806 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9808 * obsd-tdep.h (obsd_init_abi): New prototype.
9809 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9810 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9811 (obsd_init_abi): New functions.
9812 * i386obsd-tdep.c: Include "obsd-tdep.h".
9813 (i386obsd_init_abi): Call obsd_init_abi.
9814 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9815 (amd64obsd_init_abi): Call obsd_init_abi.
9816 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9817 obsd-tdep.c to gdb_target_obs.
9819 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9821 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9822 double float arguments to 16-byte in the argument slots.
9824 2014-02-11 Doug Evans <xdje42@gmail.com>
9826 * configure.ac: Don't crash if pkg-config is not found and guile
9827 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9829 * configure: Regenerate.
9831 2014-02-11 Yao Qi <yao@codesourcery.com>
9833 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9834 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9835 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9836 * gnu-nat.c (gnu_xfer_memory): Likewise.
9837 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9838 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9839 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9840 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9842 2014-02-11 Yao Qi <yao@codesourcery.com>
9844 * target.h (enum target_xfer_error): Rename to ...
9845 (enum target_xfer_status): ... it. New. All users updated.
9846 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9848 (TARGET_XFER_STATUS_ERROR_P): New macro.
9849 (target_xfer_error_to_string): Remove declaration.
9850 (target_xfer_status_to_string): Declare.
9851 (target_xfer_partial_ftype): Adjust it.
9852 (struct target_ops) <to_xfer_partial>: Return
9853 target_xfer_status. Add argument xfered_len. Update
9855 * target.c (target_xfer_error_to_string): Rename to ...
9856 (target_xfer_status_to_string): ... it. New. All callers
9858 (target_read_live_memory): Likewise. Call target_xfer_partial
9859 instead of target_read.
9860 (memory_xfer_live_readonly_partial): Return
9861 target_xfer_status. Add argument xfered_len.
9862 (raw_memory_xfer_partial): Likewise.
9863 (memory_xfer_partial_1): Likewise.
9864 (memory_xfer_partial): Likewise.
9865 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9866 properly. Update debug message.
9867 (default_xfer_partial, current_xfer_partial): Likewise.
9868 (target_write_partial): Likewise.
9869 (target_read_partial): Likewise. All callers updated.
9870 (read_whatever_is_readable): Likewise.
9871 (target_write_with_progress): Likewise.
9872 (target_read_alloc_1): Likewise.
9874 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9875 * auxv.c (procfs_xfer_auxv): Likewise.
9876 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9877 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9878 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9879 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9880 * corefile.c (read_memory): Adjust.
9881 * corelow.c (core_xfer_partial): Likewise.
9882 * ctf.c (ctf_xfer_partial): Likewise.
9883 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9885 (darwin_xfer_partial): Likewise.
9886 * exec.c (section_table_xfer_memory_partial): Likewise. All
9888 (exec_xfer_partial): Likewise.
9889 * exec.h (section_table_xfer_memory_partial): Update
9891 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9893 (gnu_xfer_partial): Likewise.
9894 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9895 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9896 (ia64_hpux_xfer_solib_got): Likewise.
9897 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9898 type of 'partial_len' to ULONGEST.
9899 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9900 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9901 (linux_nat_xfer_partial): Likewise.
9902 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9903 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9904 * monitor.c (monitor_xfer_memory): Likewise.
9905 (monitor_xfer_partial): Likewise.
9906 * procfs.c (procfs_xfer_partial): Likewise.
9907 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9908 * record-full.c (record_full_xfer_partial): Likewise.
9909 (record_full_core_xfer_partial): Likewise.
9910 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9911 (gdbsim_xfer_partial): Likewise.
9912 * remote.c (remote_write_bytes_aux): Likewise. All callers
9914 (remote_write_bytes, remote_read_bytes): Likewise. All
9916 (remote_flash_erase): Likewise. All callers updated.
9917 (remote_write_qxfer): Likewise. All callers updated.
9918 (remote_read_qxfer): Likewise. All callers updated.
9919 (remote_xfer_partial): Likewise.
9920 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9921 (rs6000_xfer_shared_libraries): Likewise.
9922 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9923 (sol_thread_xfer_partial): Likewise.
9924 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9925 (sparc_xfer_partial): Likewise.
9926 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9928 (spu_xfer_partial): Likewise.
9929 * spu-multiarch.c (spu_xfer_partial): Likewise.
9930 * tracepoint.c (tfile_xfer_partial): Likewise.
9931 * windows-nat.c (windows_xfer_memory): Likewise.
9932 (windows_xfer_shared_libraries): Likewise.
9933 (windows_xfer_partial): Likewise.
9934 * valprint.c: Replace 'target_xfer_error' with
9935 'target_xfer_status' in comments.
9937 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9939 Checked in by Joel Brobecker <brobecker@adacore.com>.
9940 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9942 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9944 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9945 function parameters.
9947 2014-02-10 Will Newton <will.newton@linaro.org>
9949 * elfread.c (elf_rel_plt_read): Look for a .got section if
9950 looking up .got.plt fails.
9951 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9952 on address passed to elf_gnu_ifunc_record_cache.
9953 (elf_gnu_ifunc_resolve_addr): Likewise.
9954 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9956 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9958 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9959 (X_RETTURN): New macro.
9960 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9962 * sparc64-tdep.c (sparc64_init_abi): Hook
9963 sparc_in_function_epilogue_p.
9965 2014-02-10 Gary Benson <gbenson@redhat.com>
9967 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9968 Rename name_matcher to symbol_matcher.
9970 2014-02-10 Gary Benson <gbenson@redhat.com>
9972 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9973 Use expand_symtabs_file_matcher_ftype and
9974 expand_symtabs_symbol_matcher_ftype.
9976 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9978 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9979 (struct ada_symbol_cache): New.
9980 (ada_free_symbol_cache): Forward declare.
9981 (struct ada_pspace_data): New.
9982 (ada_pspace_data_handle): New static global.
9983 (get_ada_pspace_data, ada_pspace_data_cleanup)
9984 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9985 (cache_space, cache): Delete, now folded inside struct
9987 (ada_get_symbol_cache): New function.
9988 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9990 (_initialize_ada_language): Remove initialization of cache_space.
9991 Move call to observer_attach_inferior_exit up, grouping it
9992 with the other observer registrations inside this function.
9993 Rename command to be more general. Add call to
9994 register_program_space_data_with_cleanup.
9996 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9998 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9999 ada_new_objfile_observer.
10000 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10001 (_initialize_tasks): Update uses of ada_new_objfile_observer
10002 and ada_tasks_normal_stop_observer.
10004 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10006 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10007 returned by the 'Length attribute to integer.
10009 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10011 * ada-lang.c (_initialize_ada_language): Initialize
10012 cache_space obstack.
10014 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10016 * ada-lang.c (HASH_SIZE): New macro.
10017 (struct cache_entry): New type.
10018 (cache_space, cache): New static globals.
10019 (ada_clear_symbol_cache, find_entry): New functions.
10020 (lookup_cached_symbol, cache_symbol): Implement.
10021 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10022 (_initialize_ada_language): Attach ada_new_objfile_observer
10023 and ada_free_objfile_observer.
10025 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10027 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10028 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10029 struct block * parameter.
10030 (ada_lookup_symbol_list_worker): Constify local variable "block".
10031 Remove cast which is no longer necessary.
10033 2014-02-10 Doug Evans <xdje42@gmail.com>
10035 Add Guile as an extension language.
10036 * NEWS: Mention Guile scripting.
10037 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10038 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10039 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10040 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10041 (CLIBS): Add GUILE_LIBS.
10042 (install-guile): New rule.
10043 (guile.o): New rule.
10044 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10045 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10046 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10047 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10048 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10049 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10050 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10051 * configure.ac: New option --with-guile.
10052 * configure: Regenerate.
10053 * config.in: Regenerate.
10054 * auto-load.c: Remove #include "python/python.h". Add #include
10055 "gdb/section-scripts.h".
10056 (source_section_scripts): Handle Guile scripts.
10057 (_initialize_auto_load): Add name of Guile objfile script to
10058 scripts-directory help text.
10059 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10060 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10061 (struct breakpoint): New member scm_bp_object.
10062 * defs.h (enum command_control_type): New value guile_control.
10063 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10065 (show_user): Update comment.
10066 (_initialize_cli_cmds): Update help text for "show user". Update help
10067 text for max-user-call-depth.
10068 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10070 (multi_line_command_p): Add guile_control.
10071 (print_command_lines): Handle guile_control.
10072 (execute_control_command, recurse_read_control_structure): Ditto.
10073 (process_next_line): Recognize "guile" commands.
10074 * disasm.c (gdb_disassemble_info): Make non-static.
10075 * disasm.h: #include "dis-asm.h".
10076 (struct gdbarch): Add forward decl.
10077 (gdb_disassemble_info): Declare.
10078 * extension.c: #include "guile/guile.h".
10079 (extension_languages): Add guile.
10080 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10081 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10082 * gdbtypes.c (get_unsigned_type_max): New function.
10083 (get_signed_type_minmax): New function.
10084 * gdbtypes.h (get_unsigned_type_max): Declare.
10085 (get_signed_type_minmax): Declare.
10086 * guile/README: New file.
10087 * guile/guile-internal.h: New file.
10088 * guile/guile.c: New file.
10089 * guile/guile.h: New file.
10090 * guile/scm-arch.c: New file.
10091 * guile/scm-auto-load.c: New file.
10092 * guile/scm-block.c: New file.
10093 * guile/scm-breakpoint.c: New file.
10094 * guile/scm-disasm.c: New file.
10095 * guile/scm-exception.c: New file.
10096 * guile/scm-frame.c: New file.
10097 * guile/scm-gsmob.c: New file.
10098 * guile/scm-iterator.c: New file.
10099 * guile/scm-lazy-string.c: New file.
10100 * guile/scm-math.c: New file.
10101 * guile/scm-objfile.c: New file.
10102 * guile/scm-ports.c: New file.
10103 * guile/scm-pretty-print.c: New file.
10104 * guile/scm-safe-call.c: New file.
10105 * guile/scm-string.c: New file.
10106 * guile/scm-symbol.c: New file.
10107 * guile/scm-symtab.c: New file.
10108 * guile/scm-type.c: New file.
10109 * guile/scm-utils.c: New file.
10110 * guile/scm-value.c: New file.
10111 * guile/lib/gdb.scm: New file.
10112 * guile/lib/gdb/boot.scm: New file.
10113 * guile/lib/gdb/experimental.scm: New file.
10114 * guile/lib/gdb/init.scm: New file.
10115 * guile/lib/gdb/iterator.scm: New file.
10116 * guile/lib/gdb/printing.scm: New file.
10117 * guile/lib/gdb/types.scm: New file.
10118 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10119 (VPATH): Add $(GUILE_SRCDIR).
10120 (GUILE_DIR): New variable.
10121 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10122 (all): Add stamp-guile dependency.
10123 (stamp-guile): New rule.
10124 (clean-guile, install-guile, uninstall-guile): New rules.
10125 (install-only): Add install-guile dependency.
10126 (uninstall): Add uninstall-guile dependency.
10127 (clean): Add clean-guile dependency.
10129 2014-02-09 Doug Evans <xdje42@gmail.com>
10131 Revert this patch (which I approved, mea culpa).
10133 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10135 * Makefile.in (all-lib): Remove.
10136 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10138 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10140 Fix Python stack corruption.
10141 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10144 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10146 * Makefile.in (all-lib): Remove.
10147 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10149 2014-02-07 Doug Evans <dje@google.com>
10151 * extension-priv.h (extension_language_script_ops): Add comment.
10152 (extension_language_ops): Add comment.
10153 (active_ext_lang_state): Fix typo in comment.
10155 2014-02-07 Pedro Alves <palves@redhat.com>
10157 PR breakpoints/16292
10158 * infrun.c (handle_signal_stop) <signal arrives while stepping
10159 over a breakpoint>: Switch back to the stepping thread.
10161 2014-02-07 Yao Qi <yao@codesourcery.com>
10163 * target.c (target_xfer_partial): Return zero if LEN is zero.
10165 2014-02-07 Yao Qi <yao@codesourcery.com>
10167 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10168 (ld_so_xfer_auxv): Likewise.
10169 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10170 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10171 * corelow.c (core_xfer_partial): Likewise.
10172 * ctf.c (ctf_xfer_partial): Likewise.
10173 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10174 (darwin_xfer_partial): Likewise.
10175 * exec.c (exec_xfer_partial): Likewise.
10176 * gnu-nat.c (gnu_xfer_partial): Likewise.
10177 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10178 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10179 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10180 * linux-nat.c (linux_xfer_siginfo): Likewise.
10181 (linux_proc_xfer_spu): Likewise.
10182 * procfs.c (procfs_xfer_partial): Likewise.
10183 * record-full.c (record_full_xfer_partial): Likewise.
10184 (record_full_core_xfer_partial): Likewise.
10185 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10186 * remote.c (remote_write_qxfer): Likewise.
10187 (remote_write_qxfer, remote_read_qxfer): Likewise.
10188 (remote_xfer_partial): Likewise.
10189 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10190 (rs6000_xfer_shared_libraries): Likewise.
10191 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10192 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10193 (spu_xfer_partial): Likewise.
10194 * target.c (memory_xfer_partial_1): Likewise.
10195 * tracepoint.c (tfile_xfer_partial): Likewise.
10196 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10197 (windows_xfer_partial): Likewise.
10199 2014-02-07 Yao Qi <yao@codesourcery.com>
10201 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10203 (core_xfer_shared_libraries_aix): Likewise.
10204 * gdbarch.c, gdbarch.h: Regenerated.
10205 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10206 ULONGEST. Change 'len_avail' type to ULONGEST.
10207 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10208 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10210 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10212 2014-02-07 Yao Qi <yao@codesourcery.com>
10214 * corefile.c (memory_error): Get 'exception' from ERR and pass
10215 'exception' to throw_error.
10217 2014-02-06 Doug Evans <xdje42@gmail.com>
10219 * configure.ac (libpython checking): Remove all but python.o from
10220 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10221 * configure: Regenerate.
10223 * Makefile.in (SFILES): Add extension.c.
10224 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10225 (COMMON_OBS): Add extension.o.
10226 * extension.h: New file.
10227 * extension-priv.h: New file.
10228 * extension.c: New file.
10230 * python/python-internal.h: #include "extension.h".
10231 (gdbpy_auto_load_enabled): Declare.
10232 (gdbpy_apply_val_pretty_printer): Declare.
10233 (gdbpy_apply_frame_filter): Declare.
10234 (gdbpy_preserve_values): Declare.
10235 (gdbpy_breakpoint_cond_says_stop): Declare.
10236 (gdbpy_breakpoint_has_cond): Declare.
10237 (void source_python_script_for_objfile): Delete.
10238 * python/python.c: #include "extension-priv.h".
10239 Delete inclusion of "observer.h".
10240 (extension_language_python): Moved here and renamed from
10241 script_language_python in py-auto-load.c.
10242 Redefined to be of type extension_language_defn.
10243 (python_extension_script_ops): New global.
10244 (python_extension_ops): New global.
10245 (struct python_env): New member previous_active.
10246 (restore_python_env): Call restore_active_ext_lang.
10247 (ensure_python_env): Call set_active_ext_lang.
10248 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10250 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10252 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10254 (gdbpy_eval_from_control_command): Renamed from
10255 eval_python_from_control_command, made static. New arg extlang.
10256 (gdbpy_source_script) Renamed from source_python_script, made static.
10258 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10259 result to int. New arg extlang.
10260 (gdbpy_source_objfile_script): Renamed from
10261 source_python_script_for_objfile, made static. New arg extlang.
10262 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10263 static. New args extlang, extlang_printers. Change result type to
10265 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10266 static. New arg extlang. Rename arg printers to extlang_printers
10267 and change type to ext_lang_type_printers *.
10268 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10269 static. Replace argument arg with extlang, extlang_printers.
10270 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10271 (!HAVE_PYTHON, source_python_script): Delete.
10272 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10273 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10274 (!HAVE_PYTHON, start_type_printers): Delete.
10275 (!HAVE_PYTHON, apply_type_printers): Delete.
10276 (!HAVE_PYTHON, free_type_printers): Delete.
10277 (_initialize_python): Delete call to observer_attach_before_prompt.
10278 (finalize_python): Set/restore active extension language.
10279 (gdbpy_finish_initialization) Renamed from
10280 finish_python_initialization, made static. New arg extlang.
10281 (gdbpy_initialized): New function.
10282 * python/python.h: #include "extension.h". Delete #include
10283 "value.h", "mi/mi-cmds.h".
10284 (extension_language_python): Declare.
10285 (GDBPY_AUTO_FILE_NAME): Delete.
10286 (enum py_bt_status): Moved to extension.h and renamed to
10287 ext_lang_bt_status.
10288 (enum frame_filter_flags): Moved to extension.h.
10289 (enum py_frame_args): Moved to extension.h and renamed to
10290 ext_lang_frame_args.
10291 (finish_python_initialization): Delete.
10292 (eval_python_from_control_command): Delete.
10293 (source_python_script): Delete.
10294 (apply_val_pretty_printer): Delete.
10295 (apply_frame_filter): Delete.
10296 (preserve_python_values): Delete.
10297 (gdbpy_script_language_defn): Delete.
10298 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10299 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10301 * auto-load.c: #include "extension.h".
10302 (GDB_AUTO_FILE_NAME): Delete.
10303 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10304 (script_language_gdb): Delete, moved to extension.c and renamed to
10305 extension_language_gdb.
10306 (source_gdb_script_for_objfile): Delete.
10307 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10308 (loaded_script): Change type of language member to
10309 struct extension_language_defn *.
10310 (init_loaded_scripts_info): Initialize
10311 unsupported_script_warning_printed.
10312 (maybe_add_script): Make static. Change type of language arg to
10313 struct extension_language_defn *.
10314 (clear_section_scripts): Reset unsupported_script_warning_printed.
10315 (auto_load_objfile_script_1): Rewrite to use extension language API.
10316 (auto_load_objfile_script): Make public. Remove support-compiled-in
10317 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10318 (source_section_scripts): Rewrite to use extension language API.
10319 (load_auto_scripts_for_objfile): Rewrite to use
10320 auto_load_scripts_for_objfile.
10321 (collect_matching_scripts_data): Change type of language member to
10322 struct extension_language_defn *.
10323 (auto_load_info_scripts): Change type of language arg to
10324 struct extension_language_defn *.
10325 (unsupported_script_warning_print): New function.
10326 (script_not_found_warning_print): Make static.
10327 (_initialize_auto_load): Rewrite construction of scripts-directory
10329 * auto-load.h (struct objfile): Add forward decl.
10330 (struct script_language): Delete.
10331 (struct auto_load_pspace_info): Add forward decl.
10332 (struct extension_language_defn): Add forward decl.
10333 (maybe_add_script): Delete.
10334 (auto_load_objfile_script): Declare.
10335 (script_not_found_warning_print): Delete.
10336 (auto_load_info_scripts): Update prototype.
10337 (auto_load_gdb_scripts_enabled): Declare.
10338 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10339 auto_load_python_scripts_enabled and made public.
10340 (script_language_python): Delete, moved to python.c.
10341 (gdbpy_script_language_defn): Delete.
10342 (info_auto_load_python_scripts): Update to use
10343 extension_language_python.
10345 * breakpoint.c (condition_command): Replace call to
10346 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10347 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10348 with call to breakpoint_ext_lang_cond_says_stop.
10349 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10350 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10351 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10352 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10354 (local_setattro): Print name of extension language with existing
10357 * valprint.c (val_print, value_print): Update to call
10358 apply_ext_lang_val_pretty_printer.
10359 * cp-valprint.c (cp_print_value): Update call to
10360 apply_ext_lang_val_pretty_printer.
10361 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10362 (gdbpy_apply_val_pretty_printer): Renamed from
10363 apply_val_pretty_printer. New arg extlang.
10364 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10366 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10367 extension language API.
10368 * cli/cli-script.c (execute_control_command): Update to call
10369 eval_ext_lang_from_control_command.
10371 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10372 enum ext_lang_bt_status values. Update call to
10373 apply_ext_lang_frame_filter.
10374 (mi_cmd_stack_list_locals): Ditto.
10375 (mi_cmd_stack_list_args): Ditto.
10376 (mi_cmd_stack_list_variables): Ditto.
10377 * mi/mi-main.c: Delete #include "python/python-internal.h".
10378 Add #include "extension.h".
10379 (mi_cmd_list_features): Replace reference to python internal variable
10380 gdb_python_initialized with call to ext_lang_initialized_p.
10382 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10383 Update to use enum ext_lang_frame_args. Update to call
10384 apply_ext_lang_frame_filter.
10385 * python/py-framefilter.c (extract_sym): Update to use enum
10386 ext_lang_bt_status.
10387 (extract_value, py_print_type, py_print_value): Ditto.
10388 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10389 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10390 (py_print_frame): Ditto.
10391 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10392 New arg extlang. Update to use enum ext_lang_bt_status.
10394 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10395 finish_python_initialization. Replace with call to
10396 finish_ext_lang_initialization.
10398 * typeprint.c (do_free_global_table): Update to call
10399 free_ext_lang_type_printers.
10400 (create_global_typedef_table): Update to call
10401 start_ext_lang_type_printers.
10402 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10403 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10404 (type_print_options): Change type of global_printers from "void *"
10405 to "struct ext_lang_type_printers *".
10407 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10408 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10409 (gdbpy_preserve_values): Renamed from preserve_python_values.
10411 (!HAVE_PYTHON, preserve_python_values): Delete.
10413 * utils.c (quit_flag): Delete, moved to extension.c.
10414 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10417 * eval.c: Delete #include "python/python.h".
10418 * main.c: Delete #include "python/python.h".
10420 * defs.h: Update comment.
10422 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10426 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10428 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10431 2014-02-05 Yao Qi <yao@codesourcery.com>
10433 * remote.c (remote_pass_signals): Remove local 'buf' and use
10435 (remote_program_signals): Likewise.
10437 2014-02-05 Yao Qi <yao@codesourcery.com>
10439 * ctf.c: Include "inferior.h" and "gdbthread.h".
10440 (CTF_PID): A new macro.
10441 (ctf_open): Call inferior_appeared and add_thread_silent.
10442 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10443 (ctf_thread_alive): New function.
10444 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10446 2014-02-05 Yao Qi <yao@codesourcery.com>
10450 2013-05-24 Yao Qi <yao@codesourcery.com>
10452 * tracepoint.c (TFILE_PID): Remove.
10453 (tfile_open): Don't add thread and inferior.
10454 (tfile_close): Don't set 'inferior_ptid'. Don't call
10455 exit_inferior_silent.
10456 (tfile_thread_alive): Remove.
10457 (init_tfile_ops): Don't set field 'to_thread_alive' of
10460 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10462 * remote.c (remote_start_remote): Call remote_check_symbols even
10463 if only symbol-file (not file) has been given.
10465 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10467 * gdbarch.sh (skip_entrypoint): New callback.
10468 * gdbarch.c, gdbarch.h: Regenerate.
10469 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10470 * infrun.c (fill_in_stop_func): Likewise.
10471 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10472 (ppc_elfv2_elf_make_msymbol_special): New function.
10473 (ppc_elfv2_skip_entrypoint): Likewise.
10474 (ppc_linux_init_abi): Install them for ELFv2.
10476 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10478 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10479 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10480 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10481 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10482 structures returned in GPRs.
10484 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10486 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10487 offset to the stack parameter list for the ELFv2 ABI.
10489 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10491 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10492 set_gdbarch_convert_from_func_ptr_addr and
10493 set_gdbarch_elf_make_msymbol_special for ELFv1.
10494 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10495 function descriptors on ELFv1.
10496 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10497 set up r12 at function entry.
10499 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10501 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10502 (struct gdbarch_tdep): New member elf_abi.
10504 * rs6000-tdep.c: Include "elf/ppc64.h".
10505 (rs6000_gdbarch_init): Detect ELF ABI version.
10507 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10509 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10510 within a register pair holding a DFP 128-bit value on little-endian.
10511 (ppc64_sysv_abi_return_value_base): Likewise.
10512 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10513 (dfp_pseudo_register_write): Likewise.
10515 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10517 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10518 offset on little-endian when passing _Decimal32.
10519 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10521 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10523 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10524 of the overlapped FP register within the VSX register on little-
10526 (efpr_pseudo_register_write): Likewise.
10528 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10530 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10531 offset on little-endian when passing small structures.
10533 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10535 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10536 (struct ppc64_sysv_argpos): New data structure.
10537 (ppc64_sysv_abi_push_float): Remove.
10538 (ppc64_sysv_abi_push_val): New function.
10539 (ppc64_sysv_abi_push_integer): Likewise.
10540 (ppc64_sysv_abi_push_freg): Likewise.
10541 (ppc64_sysv_abi_push_vreg): Likewise.
10542 (ppc64_sysv_abi_push_param): Likewise.
10543 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10544 (ppc64_sysv_abi_return_value_base): New function.
10545 (ppc64_sysv_abi_return_value): Refactor to use it.
10547 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10549 * NEWS: Document new target powerpc64le-*-linux*.
10551 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10553 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10554 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10556 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10557 register set used in ELF core dumps. Add floating-point register set.
10559 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10561 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10562 dwarf2_to_gdb[] table using symbolic constants. Adjust
10563 penultimate entry from number representing the PC register
10564 to symbolic constant representing the MDR register. Add
10565 constant for the PC register to the end of the table.
10567 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10569 * bsd-kvm.c: Include <sys/param.h>
10571 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10573 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10575 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10577 * ada-lang.h (clear_ada_sym_cache): Delete.
10579 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10581 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10583 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10585 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10586 the sigreturn register save area only if the syscall is
10589 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10591 * valops.c (value_slice): Minor reformatting.
10593 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10595 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10597 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10599 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10600 New static globals.
10601 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10602 (ada_ignore_descriptive_types_p): New static global.
10603 (find_parallel_type_by_descriptive_type): Return immediately
10604 if ada_ignore_descriptive_types_p is set.
10605 (_initialize_ada_language): Register new commands "maintenance
10606 set ada", "maintenance show ada", "maintenance set ada
10607 ignore-descriptive-types" and "maintenance show ada
10608 ignore-descriptive-types".
10609 * NEWS: Add entry for new "maint ada set/show
10610 ignore-descriptive-types" commands.
10612 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10614 * record-btrace.c (record_btrace_close): Call btrace_teardown
10617 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10619 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10622 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10624 * ada-typeprint (type_is_full_subrange_of_target_type):
10626 (print_range): Add parameter bounds_prefered_p. If not set,
10627 try printing range types using the name of their base type.
10628 (print_range_type): Add parameter bounds_prefered_p.
10629 Use it in call to print_range.
10630 (print_array_type, ada_print_type): Update calls to print_range
10631 and print_range_type.
10633 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10635 * ada-typeprint.c (print_array_type, print_choices, print_range)
10636 (print_range_bound, print_dynamic_range_bound, print_range_type):
10637 Remove declaration.
10639 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10641 * ada-typeprint.c (print_range): Add missing empty line
10642 after local declaration.
10644 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10646 * ada-valprint.c (print_optional_low_bound): Get index_type's
10647 target type for as long as it is a TYPE_CODE_RANGE.
10649 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10651 * procfs.c (procfs_make_note_section): Remove assertion and
10652 associated comment.
10654 2014-01-24 Yao Qi <yao@codesourcery.com>
10656 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10657 * corelow.c (get_core_siginfo): Likewise.
10659 2014-01-24 Yao Qi <yao@codesourcery.com>
10661 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10662 ULONGEST. Don't check 'len' is negative.
10663 (remote_write_bytes): Change type of 'len' to ULONGEST.
10665 2014-01-23 Tom Tromey <tromey@redhat.com>
10668 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10669 Handle exception from frame.block.
10670 (FrameVars.fetch_frame_locals): Likewise.
10672 2014-01-23 Tom Tromey <tromey@redhat.com>
10675 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10676 on a NULL pointer. Move "goto error" to correct place.
10678 2014-01-23 Tom Tromey <tromey@redhat.com>
10681 * python/py-framefilter.c (apply_frame_filter): Call
10682 ensure_python_env after computing gdbarch.
10684 2014-01-23 Yao Qi <yao@codesourcery.com>
10686 * target.c (raw_memory_xfer_partial): Change argument type
10687 from void * to gdb_byte *.
10688 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10690 2014-01-22 Doug Evans <dje@google.com>
10692 New gdbserver option --debug-format=timestamp.
10693 * NEWS: Mention it.
10695 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10697 * syscalls/s390x-linux.xml: New file.
10698 * syscalls/s390-linux.xml: New file.
10699 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10700 (XML_SYSCALL_FILENAME_S390X): Likewise.
10701 (op_svc): New enum value for SVC opcode.
10702 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10703 (s390_linux_get_syscall_number): New function.
10704 (s390_gdbarch_init): Register '*get_syscall_number' and the
10705 syscall xml file name.
10706 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10707 "s390-linux.xml" and "s390x-linux.xml".
10708 * NEWS: Announce new feature.
10710 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10712 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10714 2014-01-22 Pedro Alves <palves@redhat.com>
10716 * xtensa-config.c: Include defs.h.
10718 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10720 * common/common-utils.h: Add "ARI:" comment beside __func__
10723 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10725 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10726 documentation a bit.
10728 2014-01-21 Roland McGrath <mcgrathr@google.com>
10730 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10731 * configure: Regenerate.
10732 * aclocal.m4: Regenerate.
10733 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10734 New substituted variables.
10735 (install-strip): New target.
10736 (INSTALL_SCRIPT): New substituted variable.
10737 (FLAGS_TO_PASS): Add it.
10738 (install-only): Use $(INSTALL_SCRIPT) rather than
10739 $(INSTALL_PROGRAM) for gcore.
10741 2014-01-20 Tom Tromey <tromey@redhat.com>
10743 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10746 2014-01-20 Tom Tromey <tromey@redhat.com>
10748 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10749 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10750 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10751 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10752 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10753 (struct cmd_list_element) <flags>: Remove.
10754 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10755 doc_allocated>: New fields.
10756 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10758 * maint.c (maintenance_do_deprecate): Update.
10759 * top.c (execute_command): Update.
10761 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10763 * xtensa-linux-nat.c: Include asm/ptrace.h.
10765 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10767 * Makefile.in (SFILES): Add d-support.c.
10768 (COMMON_OBS): Add d-support.o.
10769 * d-lang.h (d_parse_symbol): Add comment, now defined in
10771 * d-lang.c (parse_call_convention)
10772 (parse_attributes, parse_function_types)
10773 (parse_function_args, parse_type, parse_identifier)
10774 (call_convention_p, d_parse_symbol): Move functions to ...
10775 * d-support.c: ... New file.
10777 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10779 * d-lang.h (d_parse_symbol): Add declaration.
10780 * d-lang.c (extract_identifiers)
10781 (extract_type_info): Remove functions.
10782 (parse_call_convention, parse_attributes)
10783 (parse_function_types, parse_function_args)
10784 (parse_type, parse_identifier, call_convention_p)
10785 (d_parse_symbol): New functions.
10786 (d_demangle): Use d_parse_symbol to demangle D symbols.
10788 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10790 * d-lang.h (struct builtin_d_type): New data type.
10791 (builtin_d_type): Add declaration.
10792 * d-lang.c (d_language_arch_info, build_d_types)
10793 (builtin_d_type): New functions.
10794 (enum d_primitive_types): New data type.
10795 (d_language_defn): Change c_language_arch_info to
10796 d_language_arch_info.
10797 (d_type_data): New static variable.
10798 (_initialize_d_language): Initialize d_type_data.
10800 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10802 * d-lang.h (d_main_name): Add declaration.
10803 * d-lang.c (d_main_name): New function.
10804 * symtab.c (find_main_name): Add call to d_main_name.
10806 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10808 * d-lang.c (d_language_defn): Change macro_expansion_c to
10809 macro_expansion_no.
10811 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10813 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10815 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10817 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10818 gdb_exception" declaration.
10819 * remote.c (getpkt_or_notif_sane): Likewise.
10821 2014-01-17 Doug Evans <dje@google.com>
10823 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10824 function, contents of dirnames_to_char_ptr_vec_append moved here.
10825 (delim_string_to_char_ptr_vec): New function.
10826 (dirnames_to_char_ptr_vec_append): Rewrite.
10827 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10829 2014-01-17 Doug Evans <dje@google.com>
10831 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10833 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10834 #include "common-utils.h".
10835 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10836 * common/vec.h (VEC_ASSERT_PASS): Update.
10837 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10838 (MACH_CHECK_ERROR): Update.
10840 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10842 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10844 * gdbarch.h: Regenerate.
10846 2014-01-16 Tom Tromey <tromey@redhat.com>
10848 * value.c (struct value) <regnum>: Move earlier.
10850 2014-01-16 Tom Tromey <tromey@redhat.com>
10852 * remote.c (extended_remote_create_inferior): Rename from
10853 extended_remote_create_inferior_1. Add "ops" argument. Remove
10854 old implementation.
10856 2014-01-16 Pedro Alves <palves@redhat.com>
10858 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10859 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10862 2014-01-16 Doug Evans <dje@google.com>
10864 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10868 * btrace.h (btrace_thread_flag): New.
10869 (struct btrace_thread_info) <flags>: New.
10870 * record-btrace.c (record_btrace_resume_thread)
10871 (record_btrace_find_thread_to_move, btrace_step_no_history)
10872 (btrace_step_stopped, record_btrace_start_replaying)
10873 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10874 (record_btrace_find_resume_thread): New.
10875 (record_btrace_resume, record_btrace_wait): Extend.
10876 (record_btrace_can_execute_reverse): New.
10877 (record_btrace_open): Fail in non-stop mode.
10878 (record_btrace_set_replay): Split into this, ...
10879 (record_btrace_stop_replaying): ... this, ...
10880 (record_btrace_clear_histories): ... and this.
10881 (init_record_btrace_ops): Init to_can_execute_reverse.
10882 * NEWS: Announce it.
10884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10886 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10887 (forward_target_decr_pc_after_break)
10888 (target_decr_pc_after_break): New.
10889 * target.c (forward_target_decr_pc_after_break)
10890 (target_decr_pc_after_break): New.
10891 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10892 instead of gdbarch_decr_pc_after_break.
10893 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10894 instead of gdbarch_decr_pc_after_break.
10895 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10896 instead of gdbarch_decr_pc_after_break.
10897 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10898 instead of gdbarch_decr_pc_after_break.
10899 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10900 instead of gdbarch_decr_pc_after_break.
10901 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10902 instead of gdbarch_decr_pc_after_break.
10904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10906 * btrace.c: Include regcache.h.
10907 (btrace_add_pc): New.
10908 (btrace_enable): Call btrace_add_pc.
10909 (btrace_is_empty): New.
10910 * btrace.h (btrace_is_empty): New.
10911 * record-btrace.c (require_btrace, record_btrace_info): Call
10914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10916 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10917 Support delta reads.
10918 (linux_disable_btrace): Change return type.
10919 * common/linux-btrace.h (linux_read_btrace): Change parameters
10920 and return type to allow error reporting. Update users.
10921 (linux_disable_btrace): Change return type. Update users.
10922 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10924 (btrace_error): New.
10925 (btrace_block) <begin>: Comment on BEGIN == 0.
10926 * btrace.c (btrace_compute_ftrace): Start from the end of
10928 (btrace_stitch_trace, btrace_clear_history): New.
10929 (btrace_fetch): Read delta trace, return if replaying.
10930 (btrace_clear): Move clear history code to btrace_clear_history.
10931 (parse_xml_btrace): Throw an error if parsing failed.
10932 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10933 and return type to allow error reporting.
10934 (target_read_btrace): Change parameters and return type to allow
10936 * target.c (target_read_btrace): Update.
10937 * remote.c (remote_read_btrace): Support delta reads. Pass
10939 * NEWS: Announce it.
10941 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10943 * record.h (record_btrace_frame_unwind)
10944 (record_btrace_tailcall_frame_unwind): New declarations.
10945 * dwarf2-frame: Include record.h
10946 (dwarf2_frame_cfa): Throw an error for btrace frames.
10947 * record-btrace.c: Include hashtab.h.
10948 (btrace_get_bfun_name): New.
10949 (btrace_call_history): Call btrace_get_bfun_name.
10950 (struct btrace_frame_cache): New.
10952 (bfcache_hash, bfcache_eq, bfcache_new): New.
10953 (btrace_get_frame_function): New.
10954 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10955 (record_btrace_frame_this_id): Compute own id.
10956 (record_btrace_frame_prev_register): Provide PC, throw_error
10957 for all other registers.
10958 (record_btrace_frame_sniffer): Detect btrace frames.
10959 (record_btrace_tailcall_frame_sniffer): New.
10960 (record_btrace_frame_dealloc_cache): New.
10961 (record_btrace_frame_unwind): Add new functions.
10962 (record_btrace_tailcall_frame_unwind): New.
10963 (_initialize_record_btrace): Allocate cache.
10964 * btrace.c (btrace_clear): Call reinit_frame_cache.
10965 * NEWS: Announce it.
10967 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10969 * record-btrace.c (record_btrace_set_replay)
10970 (record_btrace_goto_begin, record_btrace_goto_end)
10971 (record_btrace_goto): New.
10972 (init_record_btrace_ops): Initialize them.
10973 * NEWS: Announce it.
10975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10977 * record-btrace.c (record_btrace_find_new_threads)
10978 (record_btrace_thread_alive): New.
10979 (init_record_btrace_ops): Initialize to_find_new_threads and
10982 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10984 * record-btrace.c (record_btrace_resume): New.
10985 (record_btrace_wait): New.
10986 (init_record_btrace_ops): Initialize to_wait and to_resume.
10988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10990 * record-btrace.c (record_btrace_xfer_partial)
10991 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10992 (record_btrace_allow_memory_access): New.
10993 (init_record_btrace_ops): Initialize new methods.
10994 * target.c (raw_memory_xfer_partial): Bail out if target reports
10995 that this memory is not available.
10997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10999 * target.h (target_ops) <to_insert_breakpoint>
11000 <to_remove_breakpoint>: Add target_ops parameter.
11001 (forward_target_insert_breakpoint): New.
11002 (forward_target_remove_breakpoint): New.
11003 (memory_remove_breakpoint, memory_insert_breakpoint):
11004 Add target_ops parameter.
11005 * target.c (target_insert_breakpoint): Split into this and ...
11006 (forward_target_insert_breakpoint): ... this.
11007 (target_remove_breakpoint): Split into this and ...
11008 (forward_target_remove_breakpoint): ... this.
11009 (debug_to_insert_breakpoint): Add target_ops parameter.
11010 Call forward_target_insert_breakpoint.
11011 (debug_to_remove_breakpoint): Add target_ops parameter.
11012 Call forward_target_remove_breakpoint.
11013 (update_current_target): Do not inherit or default to_insert_breakpoint
11014 and to_remove_breakpoint.
11015 * corelow.c (ignore): Add target_ops parameter.
11016 * exec.c (ignore): Add target_ops parameter.
11017 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11018 Add target_ops parameter.
11019 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11020 Add target_ops parameter.
11021 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11022 Add target_ops parameter.
11023 * record-full.c (record_full_beneath_to_insert_breakpoint)
11024 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11025 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11026 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11027 (record_full_core_remove_breakpoint): Add target_ops parameter.
11029 (record_full_beneath_to_insert_breakpoint_ops)
11030 (record_full_beneath_to_remove_breakpoint_ops)
11031 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11032 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11033 tmp_to_remove_breakpoint_ops,
11034 record_full_beneath_to_insert_breakpoint_ops, and
11035 record_full_beneath_to_remove_breakpoint_ops.
11036 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11037 (m32r_remove_breakpoint): Add target_ops parameter.
11038 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11039 Add target_ops parameter.
11040 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11041 Add target_ops parameter.
11043 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11044 Markus Metzger <markus.t.metzger@intel.com>
11046 * record-btrace.c: Include frame-unwind.h.
11047 (record_btrace_frame_unwind_stop_reason)
11048 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11049 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11051 (init_record_btrace_ops): Install it.
11053 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11055 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11058 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11060 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11063 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11065 * frame-unwind.c: Include target.h.
11066 (frame_unwind_try_unwinder): New function with code from ...
11067 (frame_unwind_find_by_frame): ... here. New variable
11068 unwinder_from_target, call also target_get_unwinder)
11069 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11070 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11071 * target.h (struct target_ops): New fields to_get_unwinder and
11072 to_get_tailcall_unwinder.
11073 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11077 * record-btrace.c (record_btrace_fetch_registers)
11078 (record_btrace_store_registers)
11079 (record_btrace_to_prepare_to_store): New.
11080 (init_record_btrace_ops): Add the above.
11082 2014-01-16 Tom Tromey <tromey@redhat.com>
11084 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11085 * target.h (struct target_ops) <to_prepare_to_store>: Add
11087 (target_prepare_to_store): Add argument.
11088 * target.c (debug_to_prepare_to_store): Add argument.
11089 (update_current_target): Update.
11090 * remote.c (remote_prepare_to_store): Add 'self' argument.
11091 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11092 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11093 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11094 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11096 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11097 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11098 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11099 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11100 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11104 * btrace.h (replay) <replay>: New.
11105 (btrace_is_replaying): New.
11106 * btrace.c (btrace_clear): Free replay iterator.
11107 (btrace_is_replaying): New.
11108 * record-btrace.c (record_btrace_is_replaying): New.
11109 (record_btrace_info): Print insn number if replaying.
11110 (record_btrace_insn_history): Start at replay position.
11111 (record_btrace_call_history): Start at replay position.
11112 (init_record_btrace_ops): Init to_record_is_replaying.
11114 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11116 * record-btrace.c (record_btrace_insn_history_range): Include
11118 (record_btrace_insn_history_from): Adjust range.
11119 (record_btrace_call_history_range): Include
11121 (record_btrace_call_history_from): Adjust range.
11122 * NEWS: Announce changes.
11124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11126 * record.h (enum record_print_flag)
11127 <record_print_indent_calls>: New.
11128 * record.c (get_call_history_modifiers): Recognize /c modifier.
11129 (_initialize_record): Document /c modifier.
11130 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11131 Reorder fields. Optionally indent the function name. Update
11133 * NEWS: Announce changes.
11135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11137 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11141 * btrace.c (ftrace_new_function): Start counting at one.
11142 * record-btrace.c (record_btrace_info): Adjust number of calls
11144 * NEWS: Announce it.
11146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11148 * record-btrace.c (btrace_call_history_insn_range): Print
11149 insn range as [begin, end].
11151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11153 * btrace.h (struct btrace_func_link): New.
11154 (enum btrace_function_flag): New.
11155 (struct btrace_inst): Rename to ...
11156 (struct btrace_insn): ...this. Update all users.
11157 (struct btrace_func) <ibegin, iend>: Remove.
11158 (struct btrace_func_link): New.
11159 (struct btrace_func): Rename to ...
11160 (struct btrace_function): ...this. Update all users.
11161 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11162 (number, level, flags>: New.
11163 (struct btrace_insn_iterator): Rename to ...
11164 (struct btrace_insn_history): ...this.
11166 (struct btrace_insn_iterator, btrace_call_iterator): New.
11167 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11168 (struct btrace_target_info) <begin, end, level>
11169 <insn_history, call_history>: New.
11170 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11171 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11172 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11173 (btrace_call_number, btrace_call_begin, btrace_call_end)
11174 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11175 (btrace_find_function_by_number, btrace_set_insn_history)
11176 (btrace_set_call_history): New.
11177 * btrace.c (btrace_init_insn_iterator)
11178 (btrace_init_func_iterator, compute_itrace): Remove.
11179 (ftrace_print_function_name, ftrace_print_filename)
11180 (ftrace_skip_file): Change
11181 parameter to const.
11182 (ftrace_init_func): Remove.
11183 (ftrace_debug): Use new btrace_function fields.
11184 (ftrace_function_switched): Also consider gaining and
11185 losing symbol information).
11186 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11187 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11188 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11190 (ftrace_new_function): Move. Remove debug print.
11191 (ftrace_update_lines, ftrace_update_insns): New.
11192 (ftrace_update_function): Check for call, ret, and jump.
11193 (compute_ftrace): Renamed to ...
11194 (btrace_compute_ftrace): ...this. Rewritten to compute call
11196 (btrace_fetch, btrace_clear): Updated.
11197 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11198 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11199 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11200 (btrace_call_number, btrace_call_begin, btrace_call_end)
11201 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11202 (btrace_find_function_by_number, btrace_set_insn_history)
11203 (btrace_set_call_history): New.
11204 * record-btrace.c (require_btrace): Use new btrace thread
11206 (record_btrace_info, btrace_insn_history)
11207 (record_btrace_insn_history, record_btrace_insn_history_range):
11208 Use new btrace thread info fields and new iterator.
11209 (btrace_func_history_src_line): Rename to ...
11210 (btrace_call_history_src_line): ...this. Use new btrace
11211 thread info fields.
11212 (btrace_func_history): Rename to ...
11213 (btrace_call_history): ...this. Use new btrace thread info
11214 fields and new iterator.
11215 (record_btrace_call_history, record_btrace_call_history_range):
11216 Use new btrace thread info fields and new iterator.
11218 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11220 * frame.h (frame_id_build_unavailable_stack_special): New.
11221 * frame.c (frame_id_build_unavailable_stack_special): New.
11223 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11225 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11226 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11227 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11229 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11230 (i386_insn_is_jump, i386_jmp_p): New.
11231 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11232 insn_is_jump to gdbarch.
11233 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11234 * gdbarch.h: Regenerated.
11235 * gdbarch.c: Regenerated.
11236 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11237 (default_insn_is_jump): New.
11238 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11239 (default_insn_is_jump): New.
11241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11243 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11245 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11246 (btrace_read_type) <btrace_read_new>: Change to ...
11247 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11251 * common/linux-btrace.c (linux_read_btrace): Free trace from
11252 previous iteration.
11254 2014-01-15 Doug Evans <dje@google.com>
11256 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11259 2014-01-15 Tom Tromey <tromey@redhat.com>
11261 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11262 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11263 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11264 (set_objfile_main_name): New function.
11265 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11266 language_of_main>: New fields.
11267 (set_objfile_main_name): Declare.
11268 * symtab.c (find_main_name): Loop over objfiles to find the main
11270 (set_main_name): Now static.
11271 (get_main_info): Add comment.
11272 * symtab.h (set_main_name): Don't declare.
11274 2014-01-15 Tom Tromey <tromey@redhat.com>
11276 * symtab.c (main_progspace_key): New global.
11277 (struct main_info): New.
11278 (name_of_main, language_of_main): Remove.
11279 (get_main_info, main_info_cleanup): New function.
11280 (set_main_name, main_name, main_language): Use get_main_info.
11281 (_initialize_symtab): Initialize main_progspace_key.
11283 2014-01-15 Tom Tromey <tromey@redhat.com>
11285 * dbxread.c (process_one_symbol): Update.
11286 * dwarf2read.c (read_partial_die): Update.
11287 * symfile.c (set_initial_language): Call main_language.
11288 * symtab.c (language_of_main): Now static.
11289 (set_main_name): Add 'lang' parameter.
11290 (find_main_name): Update.
11291 (main_language): New function.
11292 (symtab_observer_executable_changed): Update.
11293 * symtab.h (set_main_name): Update.
11294 (language_of_main): Remove.
11295 (main_language): Declare.
11297 2014-01-15 Tom Tromey <tromey@redhat.com>
11299 * symfile.c (init_entry_point_info): Use new "initialized" field.
11301 * objfiles.h (struct entry_point) <initialized>: New field.
11302 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11303 (struct objfile) <ei>: ...here. Remove.
11304 * objfiles.c (entry_point_address_query): Update.
11306 2014-01-15 Tom Tromey <tromey@redhat.com>
11308 * objfiles.c (entry_point_address_query): Relocate entry point
11310 (objfile_relocate1): Do not relocate entry point address.
11311 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11312 <the_bfd_section_index>: New field.
11313 * symfile.c (init_entry_point_info): Find the entry point's
11316 2014-01-15 Tom Tromey <tromey@redhat.com>
11318 * solib-frv.c (enable_break): Use entry_point_address_query.
11320 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11322 * NEWS: Add note on improved process record-replay on
11323 arm*-linux* targets.
11325 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11327 * arm-tdep.c (enum arm_record_result): New enum.
11328 (arm_record_unsupported_insn): New function.
11329 (arm_record_coproc_data_proc): Removed.
11330 (thumb2_record_ld_st_multiple): New function.
11331 (thumb2_record_ld_st_dual_ex_tbb): New function.
11332 (thumb2_record_data_proc_sreg_mimm): New function.
11333 (thumb2_record_ps_dest_generic): New function.
11334 (thumb2_record_branch_misc_cntrl): New function.
11335 (thumb2_record_str_single_data): New function.
11336 (thumb2_record_ld_mem_hints): New function.
11337 (thumb2_record_ld_word): New function.
11338 (thumb2_record_lmul_lmla_div): New function.
11339 (thumb2_record_decode_insn_handler): New function.
11340 (decode_insn): Add thumb32 instruction handlers.
11342 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11344 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11345 (struct arm_linux_record_tdep): Declare.
11346 (arm_canonicalize_syscall): New function.
11347 (arm_all_but_pc_registers_record): New function.
11348 (arm_linux_syscall_record): New function.
11349 (arm_linux_init_abi): Add syscall recording constructs.
11350 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11351 decoding. (arm_record_coproc_data_proc): Update arm syscall
11353 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11354 <arm_syscall_record>: New field.
11355 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11358 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11360 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11361 register for push instruction recording.
11363 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11365 * arm-tdep.c (thumb_record_misc): Update to correct logical
11366 error while recording ldm, ldmia and pop instructions.
11368 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11370 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11372 2014-01-15 Pedro Alves <palves@redhat.com>
11374 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11375 (go32_resume, go32_fetch_registers, store_register)
11376 (go32_store_registers, go32_prepare_to_store)
11377 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11378 (go32_create_inferior, go32_can_run, go32_terminal_init)
11379 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11382 2014-01-15 Tom Tromey <tromey@redhat.com>
11384 * target.h (async_callback_ftype): New typedef.
11385 (struct target_ops) <to_async>: Use it.
11387 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11389 * python/py-value.c (get_field_type): Remove unnecessary curly
11390 braces for single-statement if block.
11392 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11394 * python/py-type.c (convert_field): Add missing empty line
11395 after declarations.
11397 2014-01-14 Doug Evans <dje@google.com>
11399 * symfile.h (expand_symtabs_matching): Renamed from
11400 expand_partial_symbol_names. Update prototype.
11401 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11402 * symfile.c (expand_symtabs_matching): Renamed from
11403 expand_partial_symbol_names. New args file_matcher, kind.
11404 Rename arg fun to symbol_matcher.
11405 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11406 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11407 ada_expand_partial_symbol_name.
11408 (ada_make_symbol_completion_list): Update to call
11409 expand_symtabs_matching.
11410 (ada_add_global_exceptions): Call expand_symtabs_matching.
11411 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11412 call map_symbol_filenames.
11413 * symtab.c (sources_info): Update to call map_symbol_filenames.
11414 (search_symbols): Call expand_symtabs_matching.
11415 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11416 (default_make_symbol_completion_list_break_on): Update to call
11417 expand_symtabs_matching.
11418 (make_source_files_completion_list): Update to call
11419 map_symbol_filenames.
11421 2014-01-14 Doug Evans <dje@google.com>
11423 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11424 (expand_symtabs_symbol_matcher_ftype): New typedef.
11425 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11426 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11427 * symfile.c (expand_partial_symbol_names): Update to use
11428 expand_symtabs_symbol_matcher_ftype.
11429 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11430 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11431 Arg name_matcher renamed to symbol_matcher.
11432 * psymtab.c (recursively_search_psymtabs): Update to use
11433 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11435 (expand_symtabs_matching_via_partial): Update to use
11436 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11437 Arg name_matcher renamed to symbol_matcher.
11439 2014-01-14 Doug Evans <dje@google.com>
11441 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11442 (map_partial_symbol_filenames): Ditto.
11443 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11444 (map_partial_symbol_filenames): Ditto.
11445 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11446 (map_partial_symbol_filenames): Ditto.
11447 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11448 (map_partial_symbol_filenames): Ditto.
11449 * symtab.c: Delete #include "psymtab.h".
11451 2014-01-14 Pedro Alves <palves@redhat.com>
11452 Tom Tromey <tromey@redhat.com>
11454 * infrun.c (use_displaced_stepping): Use find_record_target
11455 instead of RECORD_IS_USED.
11456 (adjust_pc_after_break): Use record_full_is_used instead of
11458 * record-btrace.c (record_btrace_open): Call record_preopen
11459 instead of checking RECORD_IS_USED.
11460 * record-full.c (record_full_shortname)
11461 (record_full_core_shortname): New globals.
11462 (record_full_is_used): New function.
11463 (find_full_open): Call record_preopen instead of checking
11465 (init_record_full_ops): Set the target's shortname to
11466 record_full_shortname.
11467 (init_record_full_core_ops): Set the target's shortname to
11468 record_full_core_shortname.
11469 * record-full.h (record_full_is_used): Declare.
11470 * record.c (find_record_target): Make extern.
11471 (record_preopen): New function.
11472 * record.h (RECORD_IS_USED): Delete macro.
11473 (find_record_target, record_preopen): Declare functions.
11475 2014-01-14 Yao Qi <yao@codesourcery.com>
11477 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11478 'len''s type to ULONGEST.
11479 (core_xfer_shared_libraries_aix): Likewise.
11480 * gdbarch.c, gdbarch.h: Regenerated.
11481 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11482 Change type of 'len' to ULONGEST.
11483 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11484 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11486 2014-01-14 Yao Qi <yao@codesourcery.com>
11488 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11489 type of 'len' to ULONGEST.
11490 (linux_xfer_osdata_processgroups): Likewise.
11491 (linux_xfer_osdata_threads): Likewise.
11492 (linux_xfer_osdata_fds): Likewise.
11493 (linux_xfer_osdata_isockets): Likewise.
11494 (linux_xfer_osdata_shm): Likewise.
11495 (linux_xfer_osdata_sem): Likewise.
11496 (linux_xfer_osdata_msg): Likewise.
11497 (linux_common_xfer_osdata): Likewise.
11498 (struct osdata_type) <getter>: Likewise.
11499 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11502 2014-01-14 Yao Qi <yao@codesourcery.com>
11504 * target.h (target_xfer_partial_ftype): Update.
11505 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11507 * aix-thread.c (aix_thread_xfer_partial): Change type of
11508 argument 'len' to ULONGEST.
11509 * auxv.c (procfs_xfer_auxv): Likewise.
11510 (ld_so_xfer_auxv): Likewise.
11511 (memory_xfer_auxv): Likewise.
11512 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11513 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11514 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11515 * corelow.c (core_xfer_partial): Likewise.
11516 * ctf.c (ctf_xfer_partial): Likewise.
11517 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11519 (darwin_read_dyld_info): Likewise.
11520 (darwin_xfer_partial): Likewise.
11521 * exec.c (section_table_xfer_memory_partial): Likewise.
11522 (exec_xfer_partial): Likewise.
11523 * exec.h (section_table_xfer_memory_partial): Update
11525 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11526 instead of plongest.
11527 (gnu_xfer_partial): Likewise.
11528 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11529 (ia64_hpux_xfer_solib_got): Likewise.
11530 (ia64_hpux_xfer_partial): Likewise.
11531 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11532 * inf-ptrace.c (inf_ptrace_xfer_partial):
11533 * inf-ttrace.c (inf_ttrace_xfer_partial):
11534 * linux-nat.c (linux_xfer_siginfo): Likewise.
11535 (linux_nat_xfer_partial): Likewise.
11536 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11537 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11538 * monitor.c (monitor_xfer_memory): Likewise.
11539 (monitor_xfer_partial): Likewise.
11540 * procfs.c (procfs_xfer_partial): Likewise.
11541 * record-full.c (record_full_xfer_partial): Likewise.
11542 (record_full_core_xfer_partial): Likewise.
11543 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11544 instead of plongest.
11545 (gdbsim_xfer_partial): Likewise.
11546 * remote.c (remote_xfer_partial): Likewise.
11547 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11548 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11550 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11551 (rs6000_xfer_shared_libraries): Likewise.
11552 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11553 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11554 (sparc_xfer_partial): Likewise.
11555 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11556 (spu_xfer_partial): Likewise.
11557 * spu-multiarch.c (spu_xfer_partial): Likewise.
11558 * target.c (target_read_live_memory): Likewise.
11559 (memory_xfer_live_readonly_partial): Likewise.
11560 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11561 (target_xfer_partial, default_xfer_partial): Likewise.
11562 (current_xfer_partial): Likewise.
11563 * tracepoint.c (tfile_xfer_partial): Likewise.
11564 * windows-nat.c (windows_xfer_memory): Likewise. Call
11565 pulongest instead of plongest.
11566 (windows_xfer_partial): Likewise.
11567 (windows_xfer_shared_libraries): Likewise.
11569 2014-01-14 Yao Qi <yao@codesourcery.com>
11571 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11572 target_xfer_partial_ftype.
11574 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11578 * valops.c (value_struct_elt_bitpos): New function
11579 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11580 object to 'None' if the field name is an empty string ("").
11581 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11582 attribute to look for a field when 'name' is 'None'.
11583 (get_field_type): New function
11585 2014-01-13 Doug Evans <dje@google.com>
11588 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11589 (try_open_dwop_file): Ditto.
11590 * gdb_bfd.c: #include "vec.h".
11591 (bfdp): New typedef.
11592 (struct gdb_bfd_data): New member included_bfds.
11593 (gdb_bfd_unref): Unref all included bfds.
11594 (gdb_bfd_record_inclusion): New function.
11595 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11597 2014-01-13 Tom Tromey <tromey@redhat.com>
11599 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11601 2014-01-13 Tom Tromey <tromey@redhat.com>
11603 * defs.h (use_windows): Remove.
11604 * gdb.c (main): Update.
11605 * main.c (captured_main, gdb_main): Update.
11606 * main.h (struct captured_main_args) <use_windows>: Remove.
11607 * top.c (use_windows): Remove.
11609 2014-01-13 Tom Tromey <tromey@redhat.com>
11611 * defs.h (deprecated_flush_hook): Remove.
11613 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11616 * linux-thread-db.c (try_thread_db_load): Add parameter
11617 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11618 (try_thread_db_load_from_pdir_1): Move it there from here.
11619 (try_thread_db_load_from_sdir): Update caller.
11620 (try_thread_db_load_from_dir): Move it there from here.
11622 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11624 * regformats/regdat.sh: Always rewrite the register file.
11626 2014-01-13 Pedro Alves <palves@redhat.com>
11628 * Makefile.in (CHECK_HEADERS): New variable.
11629 (check-headers:): New rule.
11631 2014-01-13 Tom Tromey <tromey@redhat.com>
11633 * cli/cli-setshow.c (do_set_command): Update.
11634 * defs.h (deprecated_set_hook): Remove.
11635 * top.c (deprecated_set_hook): Remove.
11637 2014-01-13 Pedro Alves <palves@redhat.com>
11639 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11640 the tracepoint if the PC is a pseudo-register.
11642 2014-01-13 Tom Tromey <tromey@redhat.com>
11644 * defs.h (XCALLOC): Remove.
11645 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11646 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11647 * dwarf2loc.c (allocate_piece_closure): Likewise.
11648 * elfread.c (elf_symfile_segments): Likewise.
11649 (elf_symfile_segments): Likewise.
11650 * gdbtypes.c (copy_type_recursive): Likewise.
11651 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11652 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11653 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11655 * mt-tdep.c (mt_gdbarch_init): Likewise.
11656 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11658 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11659 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11660 * registry.c (registry_alloc_data): Likewise.
11661 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11662 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11663 * serial.c (serial_fdopen_ops): Likewise.
11664 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11666 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11667 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11670 2014-01-13 Tom Tromey <tromey@redhat.com>
11672 * defs.h (XMALLOC): Remove.
11673 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11674 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11675 * cli-out.c (struct ui_out *): Likewise.
11676 * cli/cli-dump.c (add_dump_command): Likewise.
11677 (add_dump_command): Likewise.
11678 * complaints.c (get_complaints): Likewise.
11679 (find_complaint): Likewise.
11680 * dwarf2-frame.c (execute_cfa_program): Likewise.
11681 * dwarf2read.c (abbrev_table_read_table): Likewise.
11682 * gdbarch.sh: Likewise.
11683 * gdbarch.c: Rebuild.
11684 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11685 * interps.c (interp_new): Likewise.
11686 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11687 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11688 * mi/mi-console.c (mi_console_file_new): Likewise.
11689 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11690 * mi/mi-out.c (mi_out_new): Likewise.
11691 * mi/mi-parse.c (mi_parse): Likewise.
11692 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11693 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11694 * observer.c (xalloc_observer_list_node): Likewise.
11695 * regcache.c (regcache_xmalloc_1): Likewise.
11696 * reggroups.c (reggroup_new): Likewise.
11697 (_initialize_reggroup): Likewise.
11698 * registry.c (register_data_with_cleanup): Likewise.
11699 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11700 * ser-base.c (serial_ttystate): Likewise.
11701 * ser-mingw.c (make_pipe_state): Likewise.
11702 * ser-pipe.c (pipe_open): Likewise.
11703 * serial.c (serial_open): Likewise.
11704 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11705 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11706 (tui_alloc_win_info): Likewise.
11707 (tui_add_content_elements): Likewise.
11708 * tui/tui-file.c (tui_file_new): Likewise.
11709 * tui/tui-out.c (tui_out_new): Likewise.
11710 * ui-file.c (mem_file_new): Likewise.
11711 * ui-out.c (push_level): Likewise.
11712 (make_cleanup_ui_out_end): Likewise.
11713 (append_header_to_list): Likewise.
11714 (ui_out_new): Likewise.
11715 * user-regs.c (user_reg_add_builtin): Likewise.
11717 2014-01-13 Tom Tromey <tromey@redhat.com>
11719 * defs.h (XZALLOC): Remove.
11720 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11721 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11722 (get_ada_tasks_inferior_data): Likewise.
11723 * auto-load.c (get_auto_load_pspace_data): Likewise.
11724 * auxv.c (get_auxv_inferior_data): Likewise.
11725 * bfd-target.c (target_bfd_reopen): Likewise.
11726 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11727 (deprecated_insert_raw_breakpoint): Likewise.
11728 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11729 * corelow.c (core_open): Likewise.
11730 * darwin-nat.c (darwin_check_new_threads): Likewise.
11731 (darwin_attach_pid): Likewise.
11732 * dummy-frame.c (dummy_frame_push): Likewise.
11733 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11734 * dwarf2loc.c (allocate_piece_closure): Likewise.
11735 * elfread.c (elf_symfile_segments): Likewise.
11736 * eval.c (ptrmath_type_p): Likewise.
11737 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11738 * gdbtypes.c (alloc_type_arch): Likewise.
11739 (alloc_type_instance): Likewise.
11740 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11741 * inf-child.c (inf_child_can_use_agent): Likewise.
11742 * inflow.c (get_inflow_inferior_data): Likewise.
11743 * infrun.c (save_infcall_suspend_state): Likewise.
11744 * jit.c (jit_reader_load): Likewise.
11745 (get_jit_objfile_data): Likewise.
11746 (get_jit_program_space_data): Likewise.
11747 (jit_object_open_impl): Likewise.
11748 (jit_symtab_open_impl): Likewise.
11749 (jit_block_open_impl): Likewise.
11750 (jit_frame_sniffer): Likewise.
11751 * linux-fork.c (add_fork): Likewise.
11752 * maint.c (make_command_stats_cleanup): Likewise.
11753 * objfiles.c (get_objfile_pspace_data): Likewise.
11754 * opencl-lang.c (struct lval_closure): Likewise.
11755 * osdata.c (osdata_start_osdata): Likewise.
11756 * progspace.c (new_address_space): Likewise.
11757 (add_program_space): Likewise.
11758 * remote-sim.c (get_sim_inferior_data): Likewise.
11759 * sh-tdep.c (sh_gdbarch_init): Likewise.
11760 * skip.c (Ignore): Likewise.
11761 (skip_delete_command): Likewise.
11762 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11763 (library_list_start_library): Likewise.
11764 (solib_aix_current_sos): Likewise.
11765 * solib-darwin.c (get_darwin_info): Likewise.
11766 (darwin_current_sos): Likewise.
11767 * solib-dsbt.c (get_dsbt_info): Likewise.
11768 * solib-ia64-hpux.c (new_so_list): Likewise.
11769 (ia64_hpux_get_solib_linkage_addr): Likewise.
11770 * solib-spu.c (append_ocl_sos): Likewise.
11771 (spu_current_sos): Likewise.
11772 * solib-svr4.c (get_svr4_info): Likewise.
11773 (svr4_keep_data_in_core): Likewise.
11774 (library_list_start_library): Likewise.
11775 (svr4_default_sos): Likewise.
11776 (svr4_read_so_list): Likewise.
11777 * solib-target.c (library_list_start_library): Likewise.
11778 (solib_target_current_sos): Likewise.
11779 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11780 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11781 * symfile.c (default_symfile_segments): Likewise.
11782 * target-descriptions.c (tdesc_data_init): Likewise.
11783 (tdesc_create_reg): Likewise.
11784 (struct tdesc_type *): Likewise.
11785 (tdesc_create_vector): Likewise.
11786 (tdesc_set_struct_size): Likewise.
11787 (struct tdesc_type *): Likewise.
11788 (tdesc_free_feature): Likewise.
11789 (tdesc_create_feature): Likewise.
11790 * windows-nat.c (windows_add_thread): Likewise.
11791 (windows_make_so): Likewise.
11792 * xml-support.c (gdb_xml_body_text): Likewise.
11793 (gdb_xml_create_parser_and_cleanup): Likewise.
11794 (xml_process_xincludes): Likewise.
11795 * xml-syscall.c (allocate_syscalls_info): Likewise.
11796 (syscall_create_syscall_desc): Likewise.
11798 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11800 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11801 function, with code from i386_stap_parse_special_token.
11802 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11803 (i386_stap_parse_special_token): Move code to the two functions
11804 above; simplify it.
11806 2014-01-09 Pedro Alves <palves@redhat.com>
11807 Hui Zhu <hui@codesourcery.com>
11810 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11811 bp_err_string. Don't mark the location shlib_disabled if the
11812 error thrown wasn't a generic or memory error. Catch errors
11813 thrown while inserting breakpoints in overlayed code. Output
11814 error message of software breakpoints.
11815 * remote.c (remote_insert_breakpoint): If this breakpoint has
11816 target-side commands but this stub doesn't support Z0 packets,
11817 throw NOT_SUPPORTED_ERROR error.
11818 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11819 * target.h (target_insert_breakpoint): Extend comment.
11820 (target_insert_hw_breakpoint): Add comment.
11822 2014-01-08 Pedro Alves <palves@redhat.com>
11824 * remote.c (remote_add_thread): Add threads silently if starting
11826 (remote_notice_new_inferior): If in all-stop, and starting up,
11827 don't call notice_new_inferior.
11828 (get_current_thread): New function, factored out from ...
11829 (add_current_inferior_and_thread): ... this. Adjust.
11830 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11831 found any thread, then select the remote's current thread as GDB's
11832 current thread too.
11834 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11836 * NEWS: Create a new section for the next release branch.
11837 Rename the section of the current branch, now that it has
11840 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11842 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11843 * version.in: Bump version to 7.7.50.DATE-cvs.
11845 2014-01-08 Yao Qi <yao@codesourcery.com>
11847 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11848 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11849 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11851 2014-01-08 Yao Qi <yao@codesourcery.com>
11853 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11854 return value of bfd_get_filename to symbol_file_add_from_bfd.
11856 2014-01-08 Pierre Muller <muller@sourceware.org>
11859 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11860 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11861 to prim_record_mininal_symbol_and_info.
11862 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11863 in call to prim_record_minimal_symbol_and_info.
11864 (read_pe_exported_syms): Set index field of section_data.
11866 2014-01-07 Andrew Pinski <apinski@cavium.com>
11868 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11869 * features/aarch64.c: Regenerate.
11871 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11873 * target.c (return_null): Define.
11874 (update_current_target): Use it instead of return_zero for
11875 functions that return a pointer.
11877 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11879 * source.c (add_path): Fix check for duplicated paths in the previously
11882 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11884 * ada-lang.c: Remove duplicated include statements.
11885 * alphabsd-nat.c: Ditto.
11886 * amd64-darwin-tdep.c: Ditto.
11887 * amd64fbsd-nat.c: Ditto.
11888 * auto-load.c: Ditto.
11890 * breakpoint.c: Ditto.
11891 * dbxread.c: Ditto.
11892 * fork-child.c: Ditto.
11893 * gdb_usleep.c: Ditto.
11894 * i386-darwin-tdep.c: Ditto.
11895 * i386fbsd-nat.c: Ditto.
11897 * inferior.c: Ditto.
11898 * jv-lang.c: Ditto.
11899 * linux-nat.c: Ditto.
11900 * linux-tdep.c: Ditto.
11901 * m68kbsd-nat.c: Ditto.
11902 * m68klinux-nat.c: Ditto.
11903 * microblaze-tdep.c: Ditto.
11904 * mips-linux-tdep.c: Ditto.
11905 * mn10300-tdep.c: Ditto.
11906 * nto-tdep.c: Ditto.
11907 * opencl-lang.c: Ditto.
11909 * printcmd.c: Ditto.
11910 * regcache.c: Ditto.
11911 * remote-m32r-sdi.c: Ditto.
11913 * symfile.c: Ditto.
11915 * tilegx-linux-nat.c: Ditto.
11916 * tilegx-tdep.c: Ditto.
11917 * tracepoint.c: Ditto.
11919 * vaxbsd-nat.c: Ditto.
11920 * windows-nat.c: Ditto.
11921 * xtensa-tdep.c: Ditto.
11923 2014-01-07 Yao Qi <yao@codesourcery.com>
11925 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11927 2014-01-07 Yao Qi <yao@codesourcery.com>
11928 Joel Brobecker <brobecker@adacore.com>
11930 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11931 (pdc_write_regs): Likewise.
11932 (fetch_regs_kernel_thread): Likewise.
11933 (store_regs_kernel_thread): Likewise.
11935 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11937 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11938 tagged type objects to their actual type.
11940 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11942 * ada-valprint.c (print_field_values): Add "language" parameter.
11943 Update calls to print_field_values and print_variant_part.
11944 Pass new parameter "language" in call to val_print instead
11945 of "current_language". Replace call to ada_val_print by call
11947 (print_variant_part): Add "language" parameter.
11948 (ada_val_print_struct_union): Update call to print_field_values.
11950 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11952 * ada-valprint.c (ui_memcpy): Delete.
11953 (ada_print_floating): Update documentation. Add empty line
11954 between between function documentation and implementation.
11955 Delete variable "buffer". Use ui_file_xstrdup in place of
11956 ui_file_put. Minor adjustments following this change.
11958 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11960 * ada-valprint.c (ada_val_print_string): New function,
11961 extracted from ada_val_print_array.
11962 (ada_val_print_array): Replace extracted code by call
11963 to ada_val_print_string followed by a return. Move
11964 "else" branch to the function's top block.
11966 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11968 * ada-valprint.c (ada_val_print_array): Move implementation
11969 down. Rename parameter "offset" and "val" into "offset_aligned"
11970 and "original_value" respectively. Add parameter "offset".
11972 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11974 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11975 re-organizing the code. Change the "???" message printed
11976 when target type is a TYPE_CODE_UNDEF into
11977 "<ref to undefined type>".
11979 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11981 * ada-valprint.c (print_record): Delete, implementation inlined...
11982 (ada_val_print_struct_union): ... here. Remove call to
11983 ada_check_typedef in inlined implementation.
11985 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11987 * ada-valprint.c (ada_val_print_gnat_array): New function,
11988 extracted from ada_val_print_1;
11989 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11990 (ada_val_print_flt, ada_val_print_struct_union)
11991 (ada_val_print_ref): Likewise.
11992 (ada_val_print_1): Delete variables i and elttype.
11993 Replace extracted-out code by call to corresponding
11996 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11998 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12000 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12002 * ada-valprint.c (ada_val_print_1): Replace calls to
12003 ada_val_print_1 by calls to val_print.
12005 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12007 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12008 Update calls to self accordingly. Replace calls to c_val_print
12009 by calls to val_print.
12011 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12013 * ada-valprint.c (print_record): Delete declaration.
12014 (adjust_type_signedness, ada_val_print_1): Likewise.
12015 (ada_val_print): Move function implementation down.
12016 (print_variant_part, print_field_values, print_record):
12017 Move function implementation up.
12019 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12021 * python/py-type.c (typy_get_name): New function.
12022 (type_object_getset): Add entry for attribute "name".
12023 * NEWS: Add entry mentioning this new attribute.
12025 2014-01-07 Yao Qi <yao@codesourcery.com>
12027 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12030 2014-01-07 Yao Qi <yao@codesourcery.com>
12032 * gnu-nat.c (info_port_rights): Add qualifier const to
12035 2014-01-07 Yao Qi <yao@codesourcery.com>
12037 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12039 2014-01-07 Yao Qi <yao@codesourcery.com>
12041 * gnu-nat.c (make_inf) Update declaration.
12042 (make_inf): Make it static.
12043 (inf_set_traced): Likewise.
12044 (inf_port_to_thread, inf_task_died_status): Likewise.
12046 2014-01-07 Yao Qi <yao@codesourcery.com>
12048 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12050 2014-01-07 Yao Qi <yao@codesourcery.com>
12052 * gnu-nat.c (_initialize_gnu_nat): Declare.
12054 2014-01-07 Yao Qi <yao@codesourcery.com>
12056 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12058 (struct gdbarch_info) <byte_order>: Change type to
12060 <byte_order_for_code>: Likewise.
12061 * gdbarch.c, gdbarch.h: Regenerated.
12063 2014-01-06 Sasha Smundak <asmundak@google.com>
12065 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12067 2014-01-06 Tom Tromey <tromey@redhat.com>
12069 * doublest.c (convert_doublest_to_floatformat): Use const, not
12071 * somread.c (som_symtab_read): Likewise.
12073 2014-01-07 Hui Zhu <hui@codesourcery.com>
12075 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12076 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12077 (gdb_bfd_fopen): Ditto.
12078 (gdb_bfd_openr): Ditto.
12079 (gdb_bfd_openw): Ditto.
12080 (gdb_bfd_openr_iovec): Ditto.
12081 (gdb_bfd_fdopenr): Ditto.
12082 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12083 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12085 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12087 * symfile-mem.c (symbol_file_add_from_memory): Removed
12088 gdb_bfd_stash_filename.
12090 2014-01-03 Doug Evans <dje@google.com>
12092 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12095 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12097 Update year range in copyright notice of all files.
12099 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12101 * top.c (print_gdb_version): Set copyright year to 2014.
12103 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12105 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12107 For older changes see ChangeLog-2013.
12113 version-control: never