1 2014-08-20 Pedro Alves <palves@redhat.com>
3 * Makefile.in (check-read1): New rule.
5 2014-08-20 Joel Brobecker <brobecker@adacore.com>
7 * value.c (value_from_contents_and_address): Strip resolved_type's
8 typedef layers before checking its TYPE_DATA_LOCATION.
10 2014-08-20 Pedro Alves <palves@redhat.com>
12 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
14 2014-08-20 Yao Qi <yao@codesourcery.com>
16 * amd64-tdep.c (amd64_classify): Add a blank line after the
17 example. Move "*/" to a new line.
18 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
19 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
20 * dwarf2read.c (psymtab_include_file_name): Likewise.
22 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
23 Pedro Alves <palves@redhat.com>
27 * ada-lang.c (coerce_unspec_val_to_type): Use
28 value_contents_copy_raw.
29 * ada-valprint.c (val_print_packed_array_elements): Adjust.
30 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
31 * cp-valprint.c (cp_print_value_fields): Let the common printing
32 code handle optimized out values.
33 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
34 * d-valprint.c (dynamic_array_type): Use
35 value_bits_any_optimized_out.
36 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
37 check_any_valid fields.
38 (check_pieced_value_bits): Delete and inline ...
39 (check_pieced_synthetic_pointer): ... here.
40 (check_pieced_value_validity): Delete.
41 (check_pieced_value_invalid): Delete.
42 (pieced_value_funcs): Remove check_validity and check_any_valid
44 (read_pieced_value): Use mark_value_bits_optimized_out.
45 (write_pieced_value): Switch to use
46 mark_value_bytes_optimized_out.
47 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
48 of assuming the whole value is optimized out.
49 * findvar.c (read_frame_register_value): Remove special handling
50 of optimized out registers.
51 (value_from_register): Use mark_value_bytes_optimized_out.
52 * frame-unwind.c (frame_unwind_got_optimized): Use
53 mark_value_bytes_optimized_out.
54 * jv-valprint.c (java_value_print): Adjust.
55 (java_print_value_fields): Let the common printing code handle
57 * mips-tdep.c (mips_print_register): Remove special handling of
58 optimized out registers.
59 * opencl-lang.c (lval_func_check_validity): Delete.
60 (lval_func_check_any_valid): Delete.
61 (opencl_value_funcs): Remove check_validity and check_any_valid
63 * p-valprint.c (pascal_object_print_value_fields): Let the common
64 printing code handle optimized out values.
65 * stack.c (read_frame_arg): Remove special handling of optimized
66 out values. Fetch both VAL and ENTRYVAL before comparing
67 contents. Adjust to value_available_contents_eq rename.
68 * valprint.c (valprint_check_validity)
69 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
70 (val_print_array_elements): Adjust.
71 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
72 (value_bits_any_optimized_out): New function.
73 (value_entirely_covered_by_range_vector): New function, factored
74 out from value_entirely_unavailable.
75 (value_entirely_unavailable): Reimplement.
76 (value_entirely_optimized_out): New function.
77 (insert_into_bit_range_vector): New function, factored out from
78 mark_value_bits_unavailable.
79 (mark_value_bits_unavailable): Reimplement.
80 (struct ranges_and_idx): New struct.
81 (find_first_range_overlap_and_match): New function, factored out
82 from value_available_contents_bits_eq.
83 (value_available_contents_bits_eq): Rename to ...
84 (value_contents_bits_eq): ... this. Check both unavailable
85 contents and optimized out contents.
86 (value_available_contents_eq): Rename to ...
87 (value_contents_eq): ... this.
88 (allocate_value_lazy): Remove reference to the old optimized_out
90 (allocate_optimized_out_value): Use
91 mark_value_bytes_optimized_out.
92 (require_not_optimized_out): Adjust to check whether the
93 optimized_out vec is empty.
94 (ranges_copy_adjusted): New function, factored out from
95 value_contents_copy_raw.
96 (value_contents_copy_raw): Also copy the optimized out ranges.
97 Assert the destination ranges aren't optimized out.
98 (value_contents_copy): Update comment, remove call to
99 require_not_optimized_out.
100 (value_contents_equal): Adjust to check whether the optimized_out
102 (set_value_optimized_out, value_optimized_out_const): Delete.
103 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
105 (value_entirely_optimized_out, value_bits_valid): Delete.
106 (value_copy): Take a VEC copy of the 'optimized_out' field.
107 (value_primitive_field): Remove special handling of optimized out.
108 (value_fetch_lazy): Assert that lazy values have no unavailable
109 regions. Use value_bits_any_optimized_out. Remove some special
110 handling for optimized out values.
111 * value.h: Add intro comment about <optimized out> and
113 (struct lval_funcs): Remove check_validity and check_any_valid
115 (set_value_optimized_out, value_optimized_out_const): Remove.
116 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
118 (value_bits_any_optimized_out): New declaration.
119 (value_bits_valid): Delete declaration.
120 (value_available_contents_eq): Rename to ...
121 (value_contents_eq): ... this, and extend comments.
123 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
125 Fix -fsanitize=address on unreadable inferior strings.
126 * valprint.c (val_print_string): Fix access before BUFFER.
128 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
130 * target.c (target_struct_size): Remove.
131 (target_struct_allocsize): Remove.
132 (DEFAULT_ALLOCSIZE): Remove.
133 (target_ops_p): New typedef.
134 (DEF_VEC_P (target_ops_p)): New vector type.
135 (target_structs): Change type to VEC (target_ops_p).
136 (add_target_with_completer): Replace "push" code by VEC_safe_push.
137 (find_default_run_target): Rewrite for loop following changes to
140 2014-08-19 Joel Brobecker <brobecker@adacore.com>
142 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
143 Adjust code accordingly. Adjust function description comment.
145 2014-08-19 Yao Qi <yao@codesourcery.com>
147 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
150 2014-08-19 Alan Modra <amodra@gmail.com>
152 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
153 * config.in: Regenerate.
154 * configure: Regenerate.
156 2014-08-19 Tom Tromey <tromey@redhat.com>
157 Gary Benson <gbenson@redhat.com>
159 * common/common-debug.h: New file.
160 * common/common-debug.c: Likewise.
162 * Makefile.in (SFILES): Add common/common-debug.c.
163 (HFILES_NO_SRCDIR): Add common/common-debug.h.
164 (COMMON_OBS): Add common-debug.o and debug.o.
165 (common-debug.o): New rule.
166 * common/common-defs.h: Include common-debug.h.
167 * common/agent.c (debug_agent_printf): New function.
168 (DEBUG_AGENT): Redefine.
169 * nat/i386-dregs.c (debug_printf): Undefine.
171 2014-08-19 Gary Benson <gbenson@redhat.com>
173 * common/common-defs.h: Include print-utils.h.
174 * utils.h: Do not include print-utils.h.
176 2014-08-19 Tom Tromey <tromey@redhat.com>
177 Gary Benson <gbenson@redhat.com>
179 * common/common-types.h: New file.
180 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
181 * common/common-defs.h: Include common-types.h.
182 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
185 2014-08-19 Tom Tromey <tromey@redhat.com>
186 Gary Benson <gbenson@redhat.com>
188 * common/errors.h: New file.
189 * common/errors.c: Likewise.
190 * Makefile.in (SFILES): Add common/errors.c.
191 (HFILES_NO_SRCDIR): Add common/errors.h.
192 (COMMON_OBS): Add errors.o.
193 (errors.o): New rule.
194 * common/common-defs.h: Include errors.h.
195 * utils.h (perror_with_name, error, verror, warning, vwarning):
197 * common/common-utils.h: (malloc_failure, internal_error):
200 2014-08-19 Gary Benson <gbenson@redhat.com>
202 * utils.c (internal_vproblem): Always print the message.
204 2014-08-18 Doug Evans <dje@google.com>
206 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
208 2014-08-18 Joel Brobecker <brobecker@adacore.com>
210 * ada-typeprint.c (type_is_full_subrange_of_target_type):
211 Return 0 if TYPE is dynamic.
212 (print_range): Add handling of dynamic ranges.
214 2014-08-18 Keven Boell <keven.boell@intel.com>
215 Joel Brobecker <brobecker@adacore.com>
217 * gdbtypes.h (struct main_type): Add field "data_location".
218 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
219 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
220 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
221 a dynamic data location.
222 (resolve_dynamic_type): Add DW_AT_data_location handling.
223 (copy_recursive, copy_type): Copy the data_location information
225 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
226 * value.c (value_from_contents_and_address): Add
227 DW_AT_data_location handling.
229 2014-08-18 Keven Boell <keven.boell@intel.com>
230 Joel Brobecker <brobecker@adacore.com>
232 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
233 field "get_object_address".
234 * dwarf2expr.c (execute_stack_op): Add handling for
235 DW_OP_push_object_address.
236 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
237 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
238 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
239 (dwarf_expr_get_obj_addr): New function.
240 (dwarf_expr_ctx_funcs): Add get_object_address field.
241 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
242 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
243 (dwarf2_evaluate_property): Add parameter "address". Use it.
244 (needs_get_obj_addr): New function.
245 (needs_frame_ctx_funcs): Add get_object_address field.
246 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
247 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
248 (resolve_dynamic_array): Likewise.
250 2014-08-18 Joel Brobecker <brobecker@adacore.com>
252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
253 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
254 fixed value for records and unions for which some GNAT encodings
257 2014-08-18 Joel Brobecker <brobecker@adacore.com>
259 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
260 rewrite to avoid "else if" and "else" constructs. Should be
263 2014-08-18 Joel Brobecker <brobecker@adacore.com>
265 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
268 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
271 * eval.c: Update all calls to find_overload_match.
272 * valarith.c: Likewise.
273 (value_user_defined_cpp_op, value_user_defined_op): New
274 argument NOSIDE. Update all callers.
275 * valops.c (find_overload_match): New argument NOSIDE.
276 * value.h (find_overload_match): Update signature.
278 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
280 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
281 'items' methods instead of 'iteritems' method on dictionaries.
283 2014-08-15 Doug Evans <dje@google.com>
285 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
288 2014-08-15 Doug Evans <dje@google.com>
290 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
292 2014-08-15 Doug Evans <dje@google.com>
294 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
296 2014-08-15 Doug Evans <dje@google.com>
298 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
301 2014-08-15 Eli Zaretskii <eliz@gnu.org>
303 * dcache.h: Include target.h, to avoid compile time warnings.
305 2014-08-15 Joel Brobecker <brobecker@adacore.com>
307 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
308 frame_info" partial declaration.
309 * gdbarch.h: Regenerate.
311 2014-08-15 Yao Qi <yao@codesourcery.com>
313 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
314 Add parameter 'decode_for_pst_p'. Callers update.
316 2014-08-13 Yao Qi <yao@codesourcery.com>
319 * configure.ac: Use local variable 'pos'.
320 * configure: Regenerated.
322 2014-08-11 Doug Evans <dje@google.com>
324 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
325 message, it is redundant with "Reading symbols from ..." message.
327 2014-08-10 Doug Evans <xdje42@gmail.com>
329 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
331 2014-08-09 Yao Qi <yao@codesourcery.com>
334 * remote.c (remote_xfer_partial): Remove dead code.
336 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
338 * ia64-linux-tdep.c: Include "regset.h".
339 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
340 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
341 (ia64_linux_supply_fpregset): New function.
342 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
343 (ia64_linux_regset_from_core_section): New function.
344 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
347 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
349 * m68klinux-tdep.c: Include "regset.h".
350 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
351 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
352 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
353 (m68k_linux_regset_from_core_section): New function.
354 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
357 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
359 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
360 function. Move logic to...
361 (tilegx_linux_regmap): ... this new register map.
362 (tilegx_linux_regset): Refer to register map, replace supply
363 method by regcache_supply_regset, and add collect method.
364 * tilegx-tdep.h (enum tilegx_regnum): New enum value
365 TILEGX_FIRST_EASY_REGNUM.
367 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
369 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
370 that calls regcache_supply_regset and handles the EPC register
371 separately. Move main logic to...
372 (score7_linux_gregmap): ... this new register map.
373 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
374 (score7_linux_gregset): Refer to register map. Add collect method.
375 (score7_linux_regset_from_core_section): Replace
376 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
377 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
378 (struct regset): Delete unused forward declaraction.
379 (struct pt_regs): Delete structure definition.
380 (elf_gregset_t): Delete typedef.
382 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
384 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
385 (nios2_core_regset): Add collect method.
387 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
389 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
390 platform-independent and don't write to read-only input buffer.
391 (m32r_linux_collect_gregset): New function.
392 (m32r_linux_gregset): Add collect method.
394 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
396 * hppa-linux-tdep.c (greg_map): Rename to...
397 (hppa_linux_gregmap): ... this. Also convert to
398 regcache_map_entry format.
399 (hppa_linux_supply_regset): Delete function.
400 (hppa_linux_supply_fpregset): Delete function. Move logic to...
401 (hppa_linux_fpregmap): ... this new register map.
402 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
403 register map, replace supply method by regcache_supply_regset, and
404 add collect method regcache_collect_regset.
406 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
408 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
409 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
410 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
411 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
412 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
413 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
414 (frv_linux_supply_gregset): Replace main logic by call to
415 regcache_supply_regset, but keep clearing gr32-gr63.
416 (frv_linux_supply_fpregset): Delete function.
417 (frv_linux_gregset): Refer to appropriate register map and add
418 regcache_collect_regset as the collect method.
419 (frv_linux_fpregset): Likewise. Also exchange the supply method
420 by regcache_supply_regset.
422 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
424 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
425 by call to alpha_supply_int_regs.
426 (alpha_linux_collect_gregset): New function.
427 (alpha_linux_supply_fpregset): Replace logic by call to
428 alpha_supply_fp_regs.
429 (alpha_linux_collect_fpregset): New function.
430 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
434 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
435 by call to regcache_collect_regset.
436 (supply_gregset, supply_fpregset): Call regcache_supply_regset
437 instead of aarch64_linux_supply_gregset/_fpregset.
438 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
439 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
441 (aarch64_linux_supply_gregset, supply_gregset_from_core)
442 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
443 functions. Move logic to ...
444 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
446 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
447 refer to new register maps, replace *_regset_from_core by
448 regcache_supply_regset, and also use regcache_collect_regset.
449 * aarch64-linux-tdep.h: Include "regset.h".
450 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
452 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
453 macros, moved from C source file.
454 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
455 variable declarations.
457 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
459 * s390-linux-nat.c: Include "regset.h".
460 (regmap_gregset): Delete macro.
461 (s390_64_regmap_gregset): New register map for
462 regcache_supply/_collect_regset.
463 (s390_64_gregset): New regset.
464 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
465 (regmap_fpregset): Delete macro.
466 (s390_native_supply, s390_native_collect): Delete functions.
467 (supply_gregset, fill_gregset): Replace s390-specific regmap
468 handling by a call to regcache_supply/_collect_regset.
469 (supply_fpregset, fill_fpregset): Call regcache_supply/
470 _collect_regset instead of s390_native_supply/_collect.
471 (fetch_regset, store_regset): Likewise. Also change the last
472 parameter to a regset instead of a regmap.
473 (s390_linux_fetch_inferior_registers)
474 (390_linux_store_inferior_registers): Adjust last parameter in
475 calls to fetch_regset and store_regset.
476 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
477 (s390_gregmap): ... this. Also make static const and convert to
478 regcache_map_entry format.
479 (s390x_regmap_gregset): Delete.
480 (s390_regmap_fpregset): Rename to...
481 (s390_fpregmap): ... this. Make static const and convert to
482 regcache_map_entry format.
483 (s390_regmap_upper, s390_regmap_last_break)
484 (s390x_regmap_last_break, s390_regmap_system_call)
485 (s390_regmap_tdb): Likewise.
486 (s390_supply_regset, s390_collect_regset): Remove functions.
487 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
489 (s390_gregset, s390_fpregset, s390_upper_regset)
490 (s390_last_break_regset, s390x_last_break_regset)
491 (s390_system_call_regset, s390_tdb_regset): Make global and
492 replace s390_supply/_collect_regset by regcache_supply/
494 (s390x_gregset): Delete.
495 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
496 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
497 (s390_regmap_fpregset, s390_regmap_last_break)
498 (s390x_regmap_last_break, s390_regmap_system_call)
499 (s390_regmap_tdb): Delete global variable declarations.
500 (s390_gregset, s390_fpregset, s390_last_break_regset)
501 (s390x_last_break_regset, s390_system_call_regset)
502 (s390_tdb_regset): New global variable declarations.
504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
506 * regcache.c: Include "regset.h".
507 (regcache_transfer_regset): New local function.
508 (regcache_supply_regset, regcache_collect_regset): New functions.
509 * regcache.h (struct regcache_map_entry): New structure.
510 (REGCACHE_MAP_SKIP): New enum value.
511 (regcache_supply_regset, regcache_collect_regset): New prototypes.
513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
515 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
516 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
517 (ppc_linux_collect_gregset ): Likewise.
518 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
519 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
520 (ppc_collect_vrregset): Likewise.
521 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
524 2014-08-07 Yao Qi <yao@codesourcery.com>
526 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
527 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
528 * remote.c (remote_read_bytes): Likewise.
530 2014-08-07 Yao Qi <yao@codesourcery.com>
532 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
534 2014-08-07 Yao Qi <yao@codesourcery.com>
537 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
538 TARGET_XFER_OK instead of 0.
540 2014-08-07 Gary Benson <gbenson@redhat.com>
542 * common/common-defs.h: Include errno.h.
543 * defs.h: Do not include errno.h.
544 * ada-typeprint.c: Likewise.
545 * c-typeprint.c: Likewise.
546 * core-regset.c: Likewise.
547 * corefile.c: Likewise.
548 * corelow.c: Likewise.
549 * event-loop.c: Likewise.
550 * f-typeprint.c: Likewise.
551 * gnu-nat.c: Likewise.
552 * go32-nat.c: Likewise.
553 * i386gnu-nat.c: Likewise.
554 * m2-typeprint.c: Likewise.
555 * nat/linux-btrace.c: Likewise.
556 * p-typeprint.c: Likewise.
557 * procfs.c: Likewise.
558 * remote-sim.c: Likewise.
559 * rs6000-nat.c: Likewise.
560 * target.c: Likewise.
561 * typeprint.c: Likewise.
562 * ui-file.c: Likewise.
563 * valops.c: Likewise.
564 * valprint.c: Likewise.
566 2014-08-07 Gary Benson <gbenson@redhat.com>
568 * common/common-defs.h: Include string.h.
569 * aarch64-tdep.c: Do not include string.h.
570 * ada-exp.y: Likewise.
571 * ada-lang.c: Likewise.
572 * ada-lex.l: Likewise.
573 * ada-typeprint.c: Likewise.
574 * ada-valprint.c: Likewise.
575 * aix-thread.c: Likewise.
576 * alpha-linux-tdep.c: Likewise.
577 * alpha-mdebug-tdep.c: Likewise.
578 * alpha-nat.c: Likewise.
579 * alpha-osf1-tdep.c: Likewise.
580 * alpha-tdep.c: Likewise.
581 * alphanbsd-tdep.c: Likewise.
582 * amd64-dicos-tdep.c: Likewise.
583 * amd64-linux-tdep.c: Likewise.
584 * amd64-nat.c: Likewise.
585 * amd64-sol2-tdep.c: Likewise.
586 * amd64fbsd-tdep.c: Likewise.
587 * amd64obsd-tdep.c: Likewise.
588 * arch-utils.c: Likewise.
589 * arm-linux-nat.c: Likewise.
590 * arm-linux-tdep.c: Likewise.
591 * arm-tdep.c: Likewise.
592 * arm-wince-tdep.c: Likewise.
593 * armbsd-tdep.c: Likewise.
594 * armnbsd-nat.c: Likewise.
595 * armnbsd-tdep.c: Likewise.
596 * armobsd-tdep.c: Likewise.
597 * avr-tdep.c: Likewise.
598 * ax-gdb.c: Likewise.
599 * ax-general.c: Likewise.
600 * bcache.c: Likewise.
601 * bfin-tdep.c: Likewise.
602 * breakpoint.c: Likewise.
603 * build-id.c: Likewise.
604 * buildsym.c: Likewise.
606 * c-lang.c: Likewise.
607 * c-typeprint.c: Likewise.
608 * c-valprint.c: Likewise.
609 * charset.c: Likewise.
610 * cli-out.c: Likewise.
611 * cli/cli-cmds.c: Likewise.
612 * cli/cli-decode.c: Likewise.
613 * cli/cli-dump.c: Likewise.
614 * cli/cli-interp.c: Likewise.
615 * cli/cli-logging.c: Likewise.
616 * cli/cli-script.c: Likewise.
617 * cli/cli-setshow.c: Likewise.
618 * cli/cli-utils.c: Likewise.
619 * coffread.c: Likewise.
620 * common/agent.c: Likewise.
621 * common/buffer.c: Likewise.
622 * common/buffer.h: Likewise.
623 * common/common-utils.c: Likewise.
624 * common/filestuff.c: Likewise.
625 * common/filestuff.c: Likewise.
626 * common/format.c: Likewise.
627 * common/print-utils.c: Likewise.
628 * common/rsp-low.c: Likewise.
629 * common/signals.c: Likewise.
630 * common/vec.h: Likewise.
631 * common/xml-utils.c: Likewise.
632 * core-regset.c: Likewise.
633 * corefile.c: Likewise.
634 * corelow.c: Likewise.
635 * cp-abi.c: Likewise.
636 * cp-name-parser.y: Likewise.
637 * cp-support.c: Likewise.
638 * cp-valprint.c: Likewise.
639 * cris-tdep.c: Likewise.
641 * darwin-nat.c: Likewise.
642 * dbxread.c: Likewise.
643 * dcache.c: Likewise.
644 * demangle.c: Likewise.
645 * dicos-tdep.c: Likewise.
646 * disasm.c: Likewise.
647 * doublest.c: Likewise.
649 * dummy-frame.c: Likewise.
650 * dwarf2-frame.c: Likewise.
651 * dwarf2loc.c: Likewise.
652 * dwarf2read.c: Likewise.
653 * elfread.c: Likewise.
654 * environ.c: Likewise.
656 * event-loop.c: Likewise.
657 * exceptions.c: Likewise.
659 * expprint.c: Likewise.
661 * f-lang.c: Likewise.
662 * f-typeprint.c: Likewise.
663 * f-valprint.c: Likewise.
664 * fbsd-nat.c: Likewise.
665 * findcmd.c: Likewise.
666 * findvar.c: Likewise.
667 * fork-child.c: Likewise.
669 * frv-linux-tdep.c: Likewise.
670 * frv-tdep.c: Likewise.
672 * gdb_bfd.c: Likewise.
673 * gdbarch.c: Likewise.
674 * gdbarch.sh: Likewise.
675 * gdbtypes.c: Likewise.
676 * gnu-nat.c: Likewise.
677 * gnu-v2-abi.c: Likewise.
678 * gnu-v3-abi.c: Likewise.
679 * go-exp.y: Likewise.
680 * go-lang.c: Likewise.
681 * go32-nat.c: Likewise.
682 * guile/guile.c: Likewise.
683 * guile/scm-auto-load.c: Likewise.
684 * hppa-hpux-tdep.c: Likewise.
685 * hppa-linux-nat.c: Likewise.
686 * hppanbsd-tdep.c: Likewise.
687 * hppaobsd-tdep.c: Likewise.
688 * i386-cygwin-tdep.c: Likewise.
689 * i386-dicos-tdep.c: Likewise.
690 * i386-linux-tdep.c: Likewise.
691 * i386-nto-tdep.c: Likewise.
692 * i386-sol2-tdep.c: Likewise.
693 * i386-tdep.c: Likewise.
694 * i386bsd-tdep.c: Likewise.
695 * i386gnu-nat.c: Likewise.
696 * i386nbsd-tdep.c: Likewise.
697 * i386obsd-tdep.c: Likewise.
698 * i387-tdep.c: Likewise.
699 * ia64-libunwind-tdep.c: Likewise.
700 * ia64-linux-nat.c: Likewise.
701 * inf-child.c: Likewise.
702 * inf-ptrace.c: Likewise.
703 * inf-ttrace.c: Likewise.
704 * infcall.c: Likewise.
705 * infcmd.c: Likewise.
706 * inflow.c: Likewise.
707 * infrun.c: Likewise.
708 * interps.c: Likewise.
709 * iq2000-tdep.c: Likewise.
710 * irix5-nat.c: Likewise.
711 * jv-exp.y: Likewise.
712 * jv-lang.c: Likewise.
713 * jv-typeprint.c: Likewise.
714 * jv-valprint.c: Likewise.
715 * language.c: Likewise.
716 * linux-fork.c: Likewise.
717 * linux-nat.c: Likewise.
718 * lm32-tdep.c: Likewise.
719 * m2-exp.y: Likewise.
720 * m2-typeprint.c: Likewise.
721 * m32c-tdep.c: Likewise.
722 * m32r-linux-nat.c: Likewise.
723 * m32r-linux-tdep.c: Likewise.
724 * m32r-rom.c: Likewise.
725 * m32r-tdep.c: Likewise.
726 * m68hc11-tdep.c: Likewise.
727 * m68k-tdep.c: Likewise.
728 * m68kbsd-tdep.c: Likewise.
729 * m68klinux-nat.c: Likewise.
730 * m68klinux-tdep.c: Likewise.
731 * m88k-tdep.c: Likewise.
732 * machoread.c: Likewise.
733 * macrocmd.c: Likewise.
735 * mdebugread.c: Likewise.
736 * mem-break.c: Likewise.
737 * memattr.c: Likewise.
738 * memory-map.c: Likewise.
739 * mep-tdep.c: Likewise.
740 * mi/mi-cmd-break.c: Likewise.
741 * mi/mi-cmd-disas.c: Likewise.
742 * mi/mi-cmd-env.c: Likewise.
743 * mi/mi-cmd-stack.c: Likewise.
744 * mi/mi-cmd-var.c: Likewise.
745 * mi/mi-cmds.c: Likewise.
746 * mi/mi-console.c: Likewise.
747 * mi/mi-getopt.c: Likewise.
748 * mi/mi-interp.c: Likewise.
749 * mi/mi-main.c: Likewise.
750 * mi/mi-parse.c: Likewise.
751 * microblaze-rom.c: Likewise.
752 * microblaze-tdep.c: Likewise.
753 * mingw-hdep.c: Likewise.
754 * minidebug.c: Likewise.
755 * minsyms.c: Likewise.
756 * mips-irix-tdep.c: Likewise.
757 * mips-linux-tdep.c: Likewise.
758 * mips-tdep.c: Likewise.
759 * mips64obsd-tdep.c: Likewise.
760 * mipsnbsd-tdep.c: Likewise.
761 * mipsread.c: Likewise.
762 * mn10300-linux-tdep.c: Likewise.
763 * mn10300-tdep.c: Likewise.
764 * monitor.c: Likewise.
765 * moxie-tdep.c: Likewise.
766 * mt-tdep.c: Likewise.
767 * nat/linux-btrace.c: Likewise.
768 * nat/linux-osdata.c: Likewise.
769 * nat/linux-procfs.c: Likewise.
770 * nat/linux-ptrace.c: Likewise.
771 * nat/linux-waitpid.c: Likewise.
772 * nbsd-tdep.c: Likewise.
773 * nios2-linux-tdep.c: Likewise.
774 * nto-procfs.c: Likewise.
775 * nto-tdep.c: Likewise.
776 * objc-lang.c: Likewise.
777 * objfiles.c: Likewise.
778 * opencl-lang.c: Likewise.
780 * osdata.c: Likewise.
782 * p-lang.c: Likewise.
783 * p-typeprint.c: Likewise.
785 * posix-hdep.c: Likewise.
786 * ppc-linux-nat.c: Likewise.
787 * ppc-sysv-tdep.c: Likewise.
788 * ppcfbsd-tdep.c: Likewise.
789 * ppcnbsd-tdep.c: Likewise.
790 * ppcobsd-tdep.c: Likewise.
791 * printcmd.c: Likewise.
792 * procfs.c: Likewise.
793 * prologue-value.c: Likewise.
794 * python/py-auto-load.c: Likewise.
795 * python/py-gdb-readline.c: Likewise.
796 * ravenscar-thread.c: Likewise.
797 * regcache.c: Likewise.
798 * registry.c: Likewise.
799 * remote-fileio.c: Likewise.
800 * remote-m32r-sdi.c: Likewise.
801 * remote-mips.c: Likewise.
802 * remote-notif.c: Likewise.
803 * remote-sim.c: Likewise.
804 * remote.c: Likewise.
805 * reverse.c: Likewise.
806 * rs6000-aix-tdep.c: Likewise.
807 * ser-base.c: Likewise.
808 * ser-go32.c: Likewise.
809 * ser-mingw.c: Likewise.
810 * ser-pipe.c: Likewise.
811 * ser-tcp.c: Likewise.
812 * ser-unix.c: Likewise.
813 * serial.c: Likewise.
814 * sh-tdep.c: Likewise.
815 * sh64-tdep.c: Likewise.
816 * shnbsd-tdep.c: Likewise.
818 * sol-thread.c: Likewise.
819 * solib-dsbt.c: Likewise.
820 * solib-frv.c: Likewise.
821 * solib-osf.c: Likewise.
822 * solib-som.c: Likewise.
823 * solib-spu.c: Likewise.
824 * solib-target.c: Likewise.
826 * somread.c: Likewise.
827 * source.c: Likewise.
828 * sparc-nat.c: Likewise.
829 * sparc-sol2-tdep.c: Likewise.
830 * sparc-tdep.c: Likewise.
831 * sparc64-tdep.c: Likewise.
832 * sparc64fbsd-tdep.c: Likewise.
833 * sparc64nbsd-tdep.c: Likewise.
834 * sparcnbsd-tdep.c: Likewise.
835 * spu-linux-nat.c: Likewise.
836 * spu-multiarch.c: Likewise.
837 * spu-tdep.c: Likewise.
838 * stabsread.c: Likewise.
840 * std-regs.c: Likewise.
841 * symfile.c: Likewise.
842 * symmisc.c: Likewise.
843 * symtab.c: Likewise.
844 * target.c: Likewise.
845 * thread.c: Likewise.
846 * tilegx-linux-nat.c: Likewise.
847 * tilegx-tdep.c: Likewise.
849 * tracepoint.c: Likewise.
850 * tui/tui-command.c: Likewise.
851 * tui/tui-data.c: Likewise.
852 * tui/tui-disasm.c: Likewise.
853 * tui/tui-file.c: Likewise.
854 * tui/tui-layout.c: Likewise.
855 * tui/tui-out.c: Likewise.
856 * tui/tui-regs.c: Likewise.
857 * tui/tui-source.c: Likewise.
858 * tui/tui-stack.c: Likewise.
859 * tui/tui-win.c: Likewise.
860 * tui/tui-windata.c: Likewise.
861 * tui/tui-winsource.c: Likewise.
862 * typeprint.c: Likewise.
863 * ui-file.c: Likewise.
864 * ui-out.c: Likewise.
865 * user-regs.c: Likewise.
867 * v850-tdep.c: Likewise.
868 * valarith.c: Likewise.
869 * valops.c: Likewise.
870 * valprint.c: Likewise.
872 * varobj.c: Likewise.
873 * vax-tdep.c: Likewise.
874 * vaxnbsd-tdep.c: Likewise.
875 * vaxobsd-tdep.c: Likewise.
876 * windows-nat.c: Likewise.
877 * xcoffread.c: Likewise.
878 * xml-support.c: Likewise.
879 * xstormy16-tdep.c: Likewise.
880 * xtensa-linux-nat.c: Likewise.
882 2014-08-07 Gary Benson <gbenson@redhat.com>
884 * common/common-defs.h: Include gdb_assert.h.
885 * aarch64-tdep.c: Do not include gdb_assert.h.
886 * addrmap.c: Likewise.
887 * aix-thread.c: Likewise.
888 * alpha-linux-tdep.c: Likewise.
889 * alpha-mdebug-tdep.c: Likewise.
890 * alphanbsd-tdep.c: Likewise.
891 * amd64-nat.c: Likewise.
892 * amd64-tdep.c: Likewise.
893 * amd64bsd-nat.c: Likewise.
894 * amd64fbsd-nat.c: Likewise.
895 * amd64fbsd-tdep.c: Likewise.
896 * amd64nbsd-nat.c: Likewise.
897 * amd64nbsd-tdep.c: Likewise.
898 * amd64obsd-nat.c: Likewise.
899 * amd64obsd-tdep.c: Likewise.
900 * arch-utils.c: Likewise.
901 * arm-tdep.c: Likewise.
902 * armbsd-tdep.c: Likewise.
904 * bcache.c: Likewise.
905 * bfin-tdep.c: Likewise.
906 * blockframe.c: Likewise.
907 * breakpoint.c: Likewise.
908 * bsd-kvm.c: Likewise.
909 * bsd-uthread.c: Likewise.
910 * buildsym.c: Likewise.
912 * c-lang.c: Likewise.
913 * charset.c: Likewise.
914 * cleanups.c: Likewise.
915 * cli-out.c: Likewise.
916 * cli/cli-decode.c: Likewise.
917 * cli/cli-dump.c: Likewise.
918 * cli/cli-logging.c: Likewise.
919 * cli/cli-script.c: Likewise.
920 * cli/cli-utils.c: Likewise.
921 * coffread.c: Likewise.
922 * common/common-utils.c: Likewise.
923 * common/queue.h: Likewise.
924 * common/signals.c: Likewise.
925 * common/vec.h: Likewise.
926 * complaints.c: Likewise.
927 * completer.c: Likewise.
928 * corelow.c: Likewise.
929 * cp-abi.c: Likewise.
930 * cp-name-parser.y: Likewise.
931 * cp-namespace.c: Likewise.
932 * cp-support.c: Likewise.
933 * cris-tdep.c: Likewise.
934 * dbxread.c: Likewise.
935 * dictionary.c: Likewise.
936 * doublest.c: Likewise.
938 * dummy-frame.c: Likewise.
939 * dwarf2-frame-tailcall.c: Likewise.
940 * dwarf2-frame.c: Likewise.
941 * dwarf2expr.c: Likewise.
942 * dwarf2loc.c: Likewise.
943 * dwarf2read.c: Likewise.
945 * event-loop.c: Likewise.
946 * exceptions.c: Likewise.
947 * expprint.c: Likewise.
948 * f-valprint.c: Likewise.
949 * fbsd-nat.c: Likewise.
950 * findvar.c: Likewise.
951 * frame-unwind.c: Likewise.
953 * frv-tdep.c: Likewise.
955 * gdb-dlfcn.c: Likewise.
956 * gdb_bfd.c: Likewise.
957 * gdbarch.c: Likewise.
958 * gdbarch.sh: Likewise.
959 * gdbtypes.c: Likewise.
960 * gnu-nat.c: Likewise.
961 * gnu-v3-abi.c: Likewise.
962 * go-lang.c: Likewise.
963 * guile/scm-exception.c: Likewise.
964 * guile/scm-gsmob.c: Likewise.
965 * guile/scm-lazy-string.c: Likewise.
966 * guile/scm-math.c: Likewise.
967 * guile/scm-pretty-print.c: Likewise.
968 * guile/scm-safe-call.c: Likewise.
969 * guile/scm-utils.c: Likewise.
970 * guile/scm-value.c: Likewise.
971 * h8300-tdep.c: Likewise.
972 * hppa-hpux-nat.c: Likewise.
973 * hppa-tdep.c: Likewise.
974 * hppanbsd-tdep.c: Likewise.
975 * hppaobsd-tdep.c: Likewise.
976 * i386-darwin-nat.c: Likewise.
977 * i386-darwin-tdep.c: Likewise.
978 * i386-nto-tdep.c: Likewise.
979 * i386-tdep.c: Likewise.
980 * i386bsd-nat.c: Likewise.
981 * i386fbsd-tdep.c: Likewise.
982 * i386gnu-nat.c: Likewise.
983 * i386nbsd-tdep.c: Likewise.
984 * i386obsd-tdep.c: Likewise.
985 * i387-tdep.c: Likewise.
986 * ia64-libunwind-tdep.c: Likewise.
987 * ia64-tdep.c: Likewise.
988 * inf-ptrace.c: Likewise.
989 * inf-ttrace.c: Likewise.
990 * infcall.c: Likewise.
991 * infcmd.c: Likewise.
992 * infrun.c: Likewise.
993 * inline-frame.c: Likewise.
994 * interps.c: Likewise.
995 * jv-lang.c: Likewise.
996 * jv-typeprint.c: Likewise.
997 * linux-fork.c: Likewise.
998 * linux-nat.c: Likewise.
999 * linux-thread-db.c: Likewise.
1000 * m32c-tdep.c: Likewise.
1001 * m32r-linux-nat.c: Likewise.
1002 * m32r-tdep.c: Likewise.
1003 * m68k-tdep.c: Likewise.
1004 * m68kbsd-nat.c: Likewise.
1005 * m68kbsd-tdep.c: Likewise.
1006 * m88k-tdep.c: Likewise.
1007 * machoread.c: Likewise.
1008 * macroexp.c: Likewise.
1009 * macrotab.c: Likewise.
1010 * maint.c: Likewise.
1011 * mdebugread.c: Likewise.
1012 * memory-map.c: Likewise.
1013 * mep-tdep.c: Likewise.
1014 * mi/mi-common.c: Likewise.
1015 * microblaze-tdep.c: Likewise.
1016 * mingw-hdep.c: Likewise.
1017 * mips-linux-nat.c: Likewise.
1018 * mips-linux-tdep.c: Likewise.
1019 * mips-tdep.c: Likewise.
1020 * mips64obsd-tdep.c: Likewise.
1021 * mipsnbsd-tdep.c: Likewise.
1022 * mn10300-linux-tdep.c: Likewise.
1023 * mn10300-tdep.c: Likewise.
1024 * moxie-tdep.c: Likewise.
1025 * mt-tdep.c: Likewise.
1026 * nat/linux-btrace.c: Likewise.
1027 * nat/linux-osdata.c: Likewise.
1028 * nat/linux-ptrace.c: Likewise.
1029 * nat/mips-linux-watch.c: Likewise.
1030 * nios2-linux-tdep.c: Likewise.
1031 * nios2-tdep.c: Likewise.
1032 * objc-lang.c: Likewise.
1033 * objfiles.c: Likewise.
1034 * obsd-nat.c: Likewise.
1035 * opencl-lang.c: Likewise.
1036 * osabi.c: Likewise.
1037 * parse.c: Likewise.
1038 * ppc-linux-nat.c: Likewise.
1039 * ppc-sysv-tdep.c: Likewise.
1040 * ppcfbsd-nat.c: Likewise.
1041 * ppcfbsd-tdep.c: Likewise.
1042 * ppcnbsd-nat.c: Likewise.
1043 * ppcnbsd-tdep.c: Likewise.
1044 * ppcobsd-nat.c: Likewise.
1045 * ppcobsd-tdep.c: Likewise.
1046 * printcmd.c: Likewise.
1047 * procfs.c: Likewise.
1048 * prologue-value.c: Likewise.
1049 * psymtab.c: Likewise.
1050 * python/py-lazy-string.c: Likewise.
1051 * python/py-value.c: Likewise.
1052 * regcache.c: Likewise.
1053 * reggroups.c: Likewise.
1054 * registry.c: Likewise.
1055 * remote-sim.c: Likewise.
1056 * remote.c: Likewise.
1057 * rs6000-aix-tdep.c: Likewise.
1058 * rs6000-tdep.c: Likewise.
1059 * s390-linux-tdep.c: Likewise.
1060 * score-tdep.c: Likewise.
1061 * ser-base.c: Likewise.
1062 * ser-mingw.c: Likewise.
1063 * sh-tdep.c: Likewise.
1064 * sh64-tdep.c: Likewise.
1065 * solib-darwin.c: Likewise.
1066 * solib-spu.c: Likewise.
1067 * solib-svr4.c: Likewise.
1068 * source.c: Likewise.
1069 * sparc-nat.c: Likewise.
1070 * sparc-sol2-tdep.c: Likewise.
1071 * sparc-tdep.c: Likewise.
1072 * sparc64-sol2-tdep.c: Likewise.
1073 * sparc64-tdep.c: Likewise.
1074 * sparc64fbsd-tdep.c: Likewise.
1075 * sparc64nbsd-tdep.c: Likewise.
1076 * sparc64obsd-tdep.c: Likewise.
1077 * sparcnbsd-tdep.c: Likewise.
1078 * sparcobsd-tdep.c: Likewise.
1079 * spu-multiarch.c: Likewise.
1080 * spu-tdep.c: Likewise.
1081 * stabsread.c: Likewise.
1082 * stack.c: Likewise.
1083 * symfile.c: Likewise.
1084 * symtab.c: Likewise.
1085 * target-descriptions.c: Likewise.
1086 * target-memory.c: Likewise.
1087 * target.c: Likewise.
1088 * tic6x-linux-tdep.c: Likewise.
1089 * tic6x-tdep.c: Likewise.
1090 * tilegx-linux-nat.c: Likewise.
1091 * tilegx-tdep.c: Likewise.
1093 * tramp-frame.c: Likewise.
1094 * tui/tui-out.c: Likewise.
1095 * tui/tui-winsource.c: Likewise.
1096 * ui-out.c: Likewise.
1097 * user-regs.c: Likewise.
1098 * utils.c: Likewise.
1099 * v850-tdep.c: Likewise.
1100 * valops.c: Likewise.
1101 * value.c: Likewise.
1102 * varobj.c: Likewise.
1103 * vax-nat.c: Likewise.
1104 * xml-syscall.c: Likewise.
1105 * xml-tdesc.c: Likewise.
1106 * xstormy16-tdep.c: Likewise.
1107 * xtensa-linux-nat.c: Likewise.
1108 * xtensa-tdep.c: Likewise.
1110 2014-08-07 Gary Benson <gbenson@redhat.com>
1112 * common/common-defs.h: Include common-utils.h.
1113 * defs.h: Do not include common-utils.h.
1114 * common/gdb_assert.h: Likewise.
1115 * darwin-nat.h: Likewise.
1116 * nat/linux-btrace.c: Likewise.
1117 * target/waitstatus.h: Likewise.
1119 2014-08-07 Gary Benson <gbenson@redhat.com>
1121 * common/common-defs.h: Include ptid.h.
1122 * defs.h: Do not include ptid.h.
1123 * inferior.h: Likewise.
1124 * infrun.h: Likewise.
1125 * nat/linux-btrace.h: Likewise.
1126 * nat/linux-osdata.h: Likewise.
1127 * target/waitstatus.h: Likewise.
1129 2014-08-07 Gary Benson <gbenson@redhat.com>
1131 * common/common-defs.h: Include gdb_locale.h.
1132 * defs.h: Do not include gdb_locale.h.
1134 2014-08-07 Gary Benson <gbenson@redhat.com>
1136 * common/common-defs.h: Include gdb/signals.h.
1137 * defs.h: Do not include gdb/signals.h.
1139 2014-08-07 Gary Benson <gbenson@redhat.com>
1141 * common/common-defs.h: Include pathmax.h.
1142 * defs.h: Do not include pathmax.h.
1144 2014-08-07 Gary Benson <gbenson@redhat.com>
1146 * common/common-defs.h: Include libiberty.h.
1147 * defs.h: Do not include libiberty.h.
1148 * common/queue.h: Likewise.
1149 * cp-name-parser.y: Likewise.
1150 * mi/mi-cmd-catch.c: Likewise.
1151 * python/python.c: Likewise.
1153 2014-08-07 Gary Benson <gbenson@redhat.com>
1155 * common/common-defs.h: Include ansidecl.h.
1156 * defs.h: Do not include ansidecl.h.
1157 * common/buffer.h: Likewise.
1158 * common/common-utils.h: Likewise.
1160 2014-08-07 Gary Benson <gbenson@redhat.com>
1162 * common/common-defs.h: Include stddef.h.
1163 * defs.h: Do not include stddef.h.
1164 * common/common-utils.h: Likewise.
1165 * amd64fbsd-nat.c: Likewise.
1166 * bcache.c: Likewise.
1167 * charset.c: Likewise.
1168 * common/buffer.h: Likewise.
1169 * common/vec.h: Likewise.
1170 * i386bsd-nat.c: Likewise.
1171 * nat/linux-btrace.h: Likewise.
1172 * ppcfbsd-nat.c: Likewise.
1173 * ppcnbsd-tdep.h: Likewise.
1174 * ppcobsd-nat.c: Likewise.
1175 * ppcobsd-tdep.h: Likewise.
1176 * python/py-gdb-readline.c: Likewise.
1178 2014-08-07 Gary Benson <gbenson@redhat.com>
1180 * common/common-defs.h: Include stdarg.h.
1181 * defs.h: Do not include stdarg.h.
1182 * ada-lang.c: Likewise.
1183 * common/common-utils.h: Likewise.
1184 * guile/scm-string.c: Likewise.
1185 * guile/scm-utils.c: Likewise.
1186 * m32c-tdep.c: Likewise.
1188 2014-08-07 Gary Benson <gbenson@redhat.com>
1190 * common/common-defs.h: Include stdlib.h.
1191 * defs.h: Do not include stdlib.h.
1192 * addrmap.c: Likewise.
1193 * bcache.c: Likewise.
1194 * common/buffer.c: Likewise.
1195 * common/common-utils.c: Likewise.
1196 * cp-name-parser.y: Likewise.
1197 * go32-nat.c: Likewise.
1198 * mn10300-linux-tdep.c: Likewise.
1199 * nat/linux-osdata.c: Likewise.
1200 * tui/tui.c: Likewise.
1201 * windows-nat.c: Likewise.
1203 2014-08-07 Gary Benson <gbenson@redhat.com>
1205 * common/common-defs.h: Include stdio.h.
1206 * defs.h: Do not include stdio.h.
1207 * ada-lang.c: Likewise.
1208 * common/buffer.c: Likewise.
1209 * common/common-utils.c: Likewise.
1210 * cp-name-parser.y: Likewise.
1211 * gnu-nat.c: Likewise.
1212 * go32-nat.c: Likewise.
1213 * i386gnu-nat.c: Likewise.
1214 * proc-api.c: Likewise.
1215 * proc-events.c: Likewise.
1216 * proc-flags.c: Likewise.
1217 * proc-why.c: Likewise.
1218 * python/python-internal.h: Likewise.
1219 * target-memory.c: Likewise.
1220 * tui/tui-io.c: Likewise.
1221 * tui/tui.c: Likewise.
1223 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1225 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1226 (scan_dyntag_auxv): Same.
1228 2014-08-06 Yao Qi <yao@codesourcery.com>
1230 * amd64-linux-nat.c: Remove duplicated include
1232 * i386-linux-nat.c: Likewise.
1234 2014-08-06 Yao Qi <yao@codesourcery.com>
1236 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1237 operand" with "Special opcode" in comments.
1239 2014-08-05 Gary Benson <gbenson@redhat.com>
1241 * interps.c (initialize_interps): Remove prototype.
1242 (interpreter_initialized): Remove static global.
1243 (interp_add): Do not call initialize_interps.
1244 (initialize_interps): Remove function.
1246 2014-08-05 Gary Benson <gbenson@redhat.com>
1248 * utils.c (vwarning): Remove spurious va_end.
1250 2014-08-05 Alan Modra <amodra@gmail.com>
1252 * charset.c (convert_between_encodings): Cast result of obstack_base.
1253 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1254 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1255 (read_unwind_info): Use size_t for some locals.
1256 * jit.c (finalize_symtab): Likewise.
1257 * utils.c (hashtab_obstack_allocate): Likewise.
1258 * symmisc.c (print_objfile_statistics): Update format strings.
1260 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1263 (Changes in GDB 7.8): ... here.
1265 2014-08-04 Tom Tromey <tromey@redhat.com>
1267 * target.c (set_targetdebug): New function.
1268 (initialize_targets): Pass set_targetdebug when creating "set
1271 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1273 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1274 if detecting a variable-sized field that is not the last field.
1275 Fix struct type length computation.
1277 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1279 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1282 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1284 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1285 Remove "+ 8" offset in computation of CHAIN_VMA.
1287 2014-07-31 Doug Evans <dje@google.com>
1289 * inflow.c (child_terminal_inferior): Add comment.
1290 (child_terminal_ours_for_output): Add comment.
1291 (child_terminal_ours): Add comment.
1292 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1293 (linux_nat_terminal_ours): Add comment.
1295 2014-07-31 Gary Benson <gbenson@redhat.com>
1297 * common/btrace-common.h: Do not include defs.h or server.h.
1298 * nat/mips-linux-watch.h: Likewise.
1299 * gdb-dlfcn.h: Do not include defs.h.
1300 * tracefile.h: Likewise.
1302 2014-07-30 Roland McGrath <mcgrathr@google.com>
1304 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1306 2014-07-30 Tom Tromey <tromey@redhat.com>
1308 * bsd-kvm.c (bsd_kvm_open): Constify.
1309 * corelow.c (core_open): Constify.
1310 * ctf.c (ctf_open): Constify.
1311 * dbug-rom.c (dbug_open): Constify.
1312 * exec.c (exec_open): Constify.
1313 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1314 * microblaze-rom.c (picobug_open): Constify.
1315 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1317 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1318 * record-btrace.c (record_btrace_open): Constify.
1319 * record-full.c (record_full_core_open_1, record_full_open_1)
1320 (record_full_open): Constify.
1321 * remote-m32r-sdi.c (m32r_open): Constify.
1322 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1323 (rockhopper_open, lsi_open): Constify.
1324 * remote-sim.c (gdbsim_open): Constify.
1325 * remote.c (remote_open, extended_remote_open, remote_open_1):
1327 * target.h (struct target_ops) <to_open>: Make "arg" const.
1328 * tracefile-tfile.c (tfile_open): Constify.
1330 2014-07-30 Tom Tromey <tromey@redhat.com>
1332 * breakpoint.c (map_breakpoint_numbers): Update.
1333 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1334 (get_number_const): New function.
1335 (get_number): Rewrite using get_number_const.
1336 (init_number_or_range): Make "string" const.
1337 (number_is_in_list): Make "list" const.
1338 * cli/cli-utils.h (get_number_const): Declare.
1339 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1340 (init_number_or_range, number_is_in_list): Update.
1341 * printcmd.c (map_display_numbers): Update.
1342 * value.c (value_from_history_ref): Constify.
1343 * value.h (value_from_history_ref): Update.
1345 2014-07-30 Tom Tromey <tromey@redhat.com>
1347 * corefile.c (hook_type, call_extra_exec_file_hooks)
1348 (specify_exec_file_hook): Constify.
1349 * exec.c (exec_file_attach): Make "filename" const.
1350 * gdbcore.h (deprecated_exec_file_display_hook)
1351 (specify_exec_file_hook, exec_file_attach): Constify.
1352 * main.c (captured_main): Use catch_command_errors_const.
1354 2014-07-30 Tom Tromey <tromey@redhat.com>
1356 * target.c (open_target): New function.
1357 (add_target_with_completer, add_deprecated_target_alias): Use
1358 set_cmd_sfunc, set_cmd_context.
1359 (debug_to_open): Remove.
1360 (setup_target_debug): Update.
1362 2014-07-30 Yao Qi <yao@codesourcery.com>
1364 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1366 * parse.c (exp_iterate): Update comments.
1368 2014-07-30 Gary Benson <gbenson@redhat.com>
1370 * common/common-defs.h: New file.
1371 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1372 * defs.h: Include common-defs.h.
1373 Do not include config.h or build-gnulib/config.h.
1375 2014-07-30 Gary Benson <gbenson@redhat.com>
1377 * common/common-utils.h: Do not include config.h.
1378 * nat/linux-btrace.h: Likewise.
1380 2014-07-30 Gary Benson <gbenson@redhat.com>
1382 * btrace.c: Include defs.h.
1383 * common/ptid.c: Include defs.h or server.h as appropriate.
1384 * nat/mips-linux-watch.c: Likewise.
1386 2014-07-29 Tom Tromey <tromey@redhat.com>
1388 * target.c (target_is_pushed): Simplify.
1390 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1394 2014-07-29 Yao Qi <yao@codesourcery.com>
1397 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1399 2014-07-28 Doug Evans <xdje42@gmail.com>
1402 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1403 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1406 2014-07-28 Will Newton <will.newton@linaro.org>
1408 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1409 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1410 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1411 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1412 (THUMB2_EABI_SYSCALL): Likewise.
1413 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1415 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1416 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1418 2014-07-27 Doug Evans <xdje42@gmail.com>
1420 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1422 2014-07-27 Doug Evans <xdje42@gmail.com>
1424 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1426 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1427 Doug Evans <xdje42@gmail.com>
1430 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1431 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1432 * configure.ac: Try to use guild to compile an scm file, if it fails
1433 then disable guile support.
1434 * configure: Regenerate.
1435 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1437 (GUILE_COMPILED_FILES): New variable.
1438 (GUILE_FILES) Update.
1439 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1440 (stamp-guile): Compile scm files.
1441 * guile/guile.c (boot_guile_support): New function.
1442 (standard_throw_args_p): New function.
1443 (print_standard_throw_error, print_throw_error): New functions.
1444 (handle_boot_error): New function.
1445 (initialize_scheme_side): Rewrite to call boot_guile_support.
1446 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1447 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1449 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1450 Doug Evans <xdje42@gmail.com>
1453 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1454 * guile/lib/gdb/support.scm: New file.
1455 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1456 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1458 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1460 (%assert-type): Ditto, and renamed to assert-type.
1461 (%exception-print-style): Delete.
1463 2014-07-26 Doug Evans <xdje42@gmail.com>
1466 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1467 * configure: Regenerate.
1468 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1470 (PYTHON_FILES): New variable.
1471 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1472 (GUILE_FILES): New variable.
1473 (stamp-python, install-python, uninstall-python): Handle empty
1475 (stamp-guile, install-guile, uninstall-guile): Ditto.
1477 2014-07-26 Doug Evans <xdje42@gmail.com>
1480 * guile/lib/gdb.scm (pretty-printers): Export.
1481 (set-pretty-printers!): Export.
1482 * guile/lib/gdb/printing.scm (gdb module): Update.
1483 (prepend-pretty-printer!, append-pretty-printer!): Update.
1484 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1485 (pretty_printer_list_var): Delete.
1486 (pretty_printer_list): New static global.
1487 (gdbscm_pretty_printers): New function.
1488 (gdbscm_set_pretty_printers_x): New function.
1489 (ppscm_find_pretty_printer_from_gdb): Update.
1490 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1491 (gdbscm_initialize_pretty_printers): Update.
1493 2014-07-26 Doug Evans <xdje42@gmail.com>
1496 * configure.ac: Add check for header gc/gc.h.
1497 Add check for function setenv.
1498 * configure: Regenerate.
1499 * config.in: Regenerate.
1500 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1502 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1504 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1505 variation in gdbarch matching.
1507 2014-07-25 Tom Tromey <tromey@redhat.com>
1509 * exec.c (using_exec_ops): Remove.
1510 (exec_close_1): Update. Remove extraneous block, reindent.
1511 (add_target_sections): Use target_is_pushed.
1513 2014-07-25 Pedro Alves <palves@redhat.com>
1515 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1516 * monitor.c (monitor_create_inferior): Likewise.
1517 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1518 * remote-sim.c (gdbsim_create_inferior): Likewise.
1519 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1520 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1521 * windows-nat.c (do_initial_windows_stuff): Likewise.
1523 2014-07-25 Pedro Alves <palves@redhat.com>
1525 * NEWS: Mention signal passing and "signal" command changes.
1526 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1528 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1530 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1531 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1532 (jump_command): Adjust clear_proceed_status call.
1533 (signal_command): Warn if other thread that are resumed have
1534 signals that will be delivered. Adjust clear_proceed_status call.
1535 (until_next_command, finish_command)
1536 (proceed_after_attach_callback, attach_command_post_wait)
1537 (attach_command): Adjust clear_proceed_status call.
1538 * infrun.c (proceed_after_vfork_done): Likewise.
1539 (proceed_after_attach_callback): Adjust comment.
1540 (clear_proceed_status_thread): Clear stop_signal if not in pass
1542 (clear_proceed_status_callback): Delete.
1543 (clear_proceed_status): New 'step' parameter. Only clear the
1544 proceed status of threads the command being prepared is about to
1546 (proceed): If passed in an explicit signal, override stop_signal
1547 with it. Don't pass the last stop signal to the thread we're
1549 (init_wait_for_inferior): Adjust clear_proceed_status call.
1550 (switch_back_to_stepped_thread): Clear the signal if it should not
1552 * infrun.h (clear_proceed_status): New 'step' parameter.
1553 (user_visible_resume_ptid): Add comment.
1554 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1555 signal is in pass state.
1556 * remote.c (append_pending_thread_resumptions): Likewise.
1557 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1559 2014-07-25 Tom Tromey <tromey@redhat.com>
1561 * target.h (target_stopped_data_address)
1562 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1565 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1567 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1569 (avr_pointer_to_address): Likewise.
1571 2014-07-24 Tom Tromey <tromey@redhat.com>
1573 * monitor.c (compile_pattern): Update.
1574 * target.h (struct target_ops) <to_shortname, to_longname,
1577 2014-07-24 Tom Tromey <tromey@redhat.com>
1579 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1580 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1581 (add_info_alias, add_com): Make "doc" const.
1582 (print_doc_line): Make "str" const.
1583 (delete_cmd): Update.
1584 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1585 (print_doc_line): Update.
1586 * cli/cli-script.c (document_command): Update.
1587 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1588 (add_com, add_info, add_info_alias): Update.
1589 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1590 * python/py-cmd.c (cmdpy_destroyer): Update.
1592 2014-07-24 Tom Tromey <tromey@redhat.com>
1594 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1595 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1596 (help_cmd_list): Constify.
1597 (lookup_cmd): Update.
1598 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1600 (help_cmd_list, apropos_cmd): Update.
1601 * cli/cli-script.c (show_user): Update.
1602 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1603 * cli/cli-setshow.h (cmd_show_list): Update.
1604 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1605 (cmd_show_list): Update.
1606 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1607 * python/py-cmd.c (cmdpy_destroyer): Update.
1609 2014-07-24 Tom Tromey <tromey@redhat.com>
1611 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1612 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1614 * command.h (deprecate_cmd): Update.
1615 * maint.c (maintenance_do_deprecate): Add casts.
1617 2014-07-24 Tom Tromey <tromey@redhat.com>
1619 * cli/cli-decode.c (help_cmd): Make parameter "const".
1620 * cli/cli-decode.h (help_cmd): Update.
1622 2014-07-24 Tom Tromey <tromey@redhat.com>
1624 * stack.c (up_silently_base, down_silently_base): Make argument
1627 2014-07-24 Tom Tromey <tromey@redhat.com>
1629 * solib.c (solib_add): Make "pattern" const.
1630 * solib.h (solib_add): Update.
1632 2014-07-24 Tom Tromey <tromey@redhat.com>
1634 * remote.c (remote_serial_open, print_packet, putpkt)
1635 (putpkt_binary): Constify.
1636 * remote.h (putpkt): Update.
1638 2014-07-24 Tom Tromey <tromey@redhat.com>
1640 * monitor.c (monitor_open): Make "args" const.
1641 * monitor.h (monitor_open): Update.
1643 2014-07-24 Tom Tromey <tromey@redhat.com>
1645 * maint.c (match_bfd_flags): Make "string" const.
1646 (print_bfd_section_info): Remove casts.
1647 (print_objfile_section_info): Make "string" const.
1649 2014-07-24 Tom Tromey <tromey@redhat.com>
1651 * inf-child.c (inf_child_open_target): Make "arg" const.
1652 * inf-child.h (inf_child_open_target): Update.
1654 2014-07-24 Tom Tromey <tromey@redhat.com>
1656 * environ.c (unset_in_environ): Make "var" const.
1657 * environ.h (unset_in_environ): Update.
1659 2014-07-24 Tom Tromey <tromey@redhat.com>
1661 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1663 (scan_filename_with_cleanup): Likewise.
1664 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1665 Make arguments const.
1666 (restore_command): Update.
1668 2014-07-24 Pedro Alves <palves@redhat.com>
1670 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1672 2014-07-24 Tom Tromey <tromey@redhat.com>
1673 Gary Benson <gbenson@redhat.com>
1675 * nat/linux-ptrace.c (additional_flags): New global.
1676 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1677 additional_flags; don't check GDBSERVER.
1678 (linux_ptrace_set_additional_flags): New function.
1679 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1681 * linux-nat.c (_initialize_linux_nat): Call
1682 linux_ptrace_set_additional_flags.
1684 2014-07-24 Tom Tromey <tromey@redhat.com>
1686 * make-target-delegates (munge_type, write_debugmethod): New
1688 (debug_names): New global.
1689 ($TARGET_DEBUG_PRINTER): New global.
1690 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1692 Write debug methods. Generate init_debug_target.
1693 * target-debug.h: New file.
1694 * target-delegates.c: Rebuild.
1695 * target.c: Include target-debug.h.
1696 (debug_target): Hoist definition.
1697 (target_kill, target_get_section_table, target_memory_map)
1698 (target_flash_erase, target_flash_done, target_detach)
1699 (target_disconnect, target_wait, target_resume)
1700 (target_pass_signals, target_program_signals, target_follow_fork)
1701 (target_mourn_inferior, target_search_memory)
1702 (target_thread_address_space, target_close)
1703 (target_find_new_threads, target_core_of_thread)
1704 (target_verify_memory, target_insert_mask_watchpoint)
1705 (target_remove_mask_watchpoint): Remove targetdebug code.
1706 (debug_to_post_attach, debug_to_prepare_to_store)
1707 (debug_to_files_info, debug_to_insert_breakpoint)
1708 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1709 (debug_to_region_ok_for_hw_watchpoint)
1710 (debug_to_can_accel_watchpoint_condition)
1711 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1712 (debug_to_watchpoint_addr_within_range)
1713 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1714 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1715 (debug_to_terminal_init, debug_to_terminal_inferior)
1716 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1717 (debug_to_terminal_save_ours, debug_to_terminal_info)
1718 (debug_to_load, debug_to_post_startup_inferior)
1719 (debug_to_insert_fork_catchpoint)
1720 (debug_to_remove_fork_catchpoint)
1721 (debug_to_insert_vfork_catchpoint)
1722 (debug_to_remove_vfork_catchpoint)
1723 (debug_to_insert_exec_catchpoint)
1724 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1725 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1726 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1727 (setup_target_debug): Call init_debug_target.
1728 * target.h (TARGET_DEBUG_PRINTER): New macro.
1729 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1730 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1732 2014-07-24 Gary Benson <gbenson@redhat.com>
1734 * exceptions.h (throw_vfatal): Renamed to...
1735 (throw_vquit): New declaration.
1736 (throw_quit): Likewise.
1737 * exceptions.c (throw_vfatal): Renamed to...
1738 (throw_vquit): New function.
1739 (throw_quit): Likewise.
1740 (throw_error): Call throw_verror rather than throw_it.
1741 * utils.h (vfatal): Removed.
1743 * utils.c (vfatal): Removed.
1745 (internal_verror): Replaced call to fatal with call to throw_quit.
1746 (quit): Replaced calls to fatal with calls to throw_quit.
1748 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1750 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1753 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1755 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1756 less than zero in conditional expression.
1758 2014-07-23 Tom Tromey <tromey@redhat.com>
1760 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1761 ($INTRO_PART): Don't match whitespace.
1762 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1764 ($METHOD): Add $METHOD_TRAILER.
1766 (scan_target_h): New sub.
1767 Change main loop not to collect state.
1768 * target-delegates.c: Rebuild.
1770 2014-07-23 Gary Benson <gbenson@redhat.com>
1772 * cp-support.c (gdb_demangle): Fix build on systems without
1775 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1777 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1778 for reference entry value target data value.
1780 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1782 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1783 value_available_contents_eq.
1785 2014-07-22 Pedro Alves <palves@redhat.com>
1787 * value.c (allocate_optimized_out_value): Don't mark value as
1790 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1792 * MAINTAINERS (Write After Approval): Update my email address.
1794 2014-07-20 Doug Evans <dje@google.com>
1797 * remote.c (putpkt_binary): Add text to error message.
1799 2014-07-20 Yao Qi <yao@codesourcery.com>
1801 * eval.c: Remove "Chill" from comments.
1802 * gdbtypes.h: Likewise.
1803 * symtab.h: Likewise.
1805 2014-07-20 Yao Qi <yao@codesourcery.com>
1807 * std-operator.def: Update comments to TERNOP_SLICE.
1809 2014-07-20 Yao Qi <yao@codesourcery.com>
1811 * std-operator.def: Remove BINOP_RANGE.
1812 * breakpoint.c (watchpoint_exp_is_const): Update.
1813 * expprint.c (dump_subexp_body_standard): Likewise.
1814 * eval.c (init_array_element): Remove dead code.
1815 (evaluate_subexp_standard): Likewise.
1817 2014-07-20 Yao Qi <yao@codesourcery.com>
1819 * std-operator.def: Remove BINOP_IN.
1820 * breakpoint.c (watchpoint_exp_is_const): Update.
1821 * eval.c (evaluate_subexp_standard): Likewise.
1822 * expprint.c (dump_subexp_body_standard): Likewise.
1824 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1826 * microblaze-tdep.c (microblaze_register_names): Add
1827 the rshr and rslr register names.
1828 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1829 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1830 Use of tdesc_numbered_register. Use of
1831 microblaze_register_g_packet_guesses. Use of
1832 tdesc_use_registers. Use of set_gdbarch_register_type.
1833 (microblaze_register_g_packet_guesses): New.
1834 * microblaze-tdep.h (microblaze_reg_num): Add
1835 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1836 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1837 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1838 * features/microblaze-core.xml: New file.
1839 * features/microblaze-stack-protect.xml: New file.
1840 * features/microblaze-with-stack-protect.c: New file.
1841 * features/microblaze-with-stack-protect.xml: New file.
1842 * features/microblaze.xml: New file.
1843 * features/microblaze.c: New file.
1844 * features/Makefile (microblaze-with-stack-protect): Add
1845 microblaze-with-stack-protect microblaze and microblaze-expedite.
1846 * regformats/microblaze-with-stack-protect.dat: New file.
1847 * regformats/microblaze.dat: New file.
1848 * doc/gdb.texinfo (MicroBlaze Features): Added.
1850 2014-07-18 Tom Tromey <tromey@redhat.com>
1852 * exec.c (exec_ops): Now static.
1853 * exec.h (exec_ops): Don't declare.
1855 2014-07-18 Tom Tromey <tromey@redhat.com>
1857 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1858 to find_target_beneath.
1859 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1860 find_target_beneath.
1861 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1863 2014-07-18 Tom Tromey <tromey@redhat.com>
1866 * utils.c (quit): Use target_supports_terminal_ours.
1867 * target.h (target_supports_terminal_ours): Declare.
1868 * target.c (target_supports_delete_record): Don't check
1869 to_delete_record against NULL.
1870 (target_supports_terminal_ours): New function.
1872 2014-07-18 Tom Tromey <tromey@redhat.com>
1875 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1876 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1877 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1878 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1879 * windows-nat.c (windows_xfer_partial): Always delegate.
1880 * record-btrace.c (record_btrace_xfer_partial): Simplify
1882 (record_btrace_fetch_registers, record_btrace_store_registers)
1883 (record_btrace_prepare_to_store, record_btrace_resume)
1884 (record_btrace_wait, record_btrace_find_new_threads)
1885 (record_btrace_thread_alive): Likewise.
1886 * procfs.c (procfs_xfer_partial): Always delegate.
1887 * corelow.c (core_xfer_partial): Always delegate.
1888 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1890 2014-07-18 Tom Tromey <tromey@redhat.com>
1892 * exec.c (exec_make_note_section): Move earlier.
1894 2014-07-17 Doug Evans <dje@google.com>
1897 * maint.c (count_symtabs_and_blocks): Handle NULL
1898 current_program_space.
1899 (report_command_stats): Check global enabled flag in addition to
1900 recorded enabled flag.
1901 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1903 2014-07-16 Pedro Alves <palves@redhat.com>
1905 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1907 2014-07-16 Tom Tromey <tromey@redhat.com>
1909 * target.h (struct target_ops) <to_delete_record>: Reformat
1912 2014-07-16 Tom Tromey <tromey@redhat.com>
1914 * target-delegates.c: Rebuild.
1916 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1918 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1919 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1920 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1921 (avr_pointer_to_address): Likewise.
1922 (avr_address_class_type_flags): New function.
1923 (avr_address_class_type_flags_to_name): Likewise.
1924 (avr_address_class_name_to_type_flags): Likewise.
1925 (avr_gdbarch_init): Set address_class_type_flags,
1926 address_class_type_flags_to_name and
1927 address_class_name_to_type_flags.
1929 2014-07-15 Pedro Alves <palves@redhat.com>
1931 * linux-nat.c (kill_callback): Save errno and work with saved
1934 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1936 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1938 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1940 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1941 breakpoint support correctly.
1943 2014-07-14 Pedro Alves <palves@redhat.com>
1945 * utils.c (prompt_for_continue): Call target_terminal_ours.
1947 2014-07-14 Pedro Alves <palves@redhat.com>
1949 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1950 catch_errors. Don't re-enable stdin or notify observers where,
1952 (fetch_inferior_event_wrapper): Delete.
1954 2014-07-14 Pedro Alves <palves@redhat.com>
1957 * top.c: Include "inf-loop.h".
1958 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1960 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1962 (gdb_readline_wrapper): Store whether the target is async, and
1965 2014-07-14 Pedro Alves <palves@redhat.com>
1968 * top.c (gdb_readline_wrapper_line): Tweak comment.
1969 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1970 the input handler callback.
1972 2014-07-14 Pedro Alves <palves@redhat.com>
1975 * main.c: Include event-top.h.
1976 (handle_command_errors): New function.
1977 (catch_command_errors, catch_command_errors_const): Use it.
1979 2014-07-14 Pedro Alves <palves@redhat.com>
1981 * exceptions.c (catch_command_errors, catch_command_errors_const):
1983 * exceptions.h (catch_command_errors_ftype)
1984 (catch_command_errors_const_ftype): Moved to main.c.
1985 (catch_command_errors, catch_command_errors_const): Delete
1987 * main.c (catch_command_errors_ftype)
1988 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1989 (catch_command_errors, catch_command_errors_const)): Moved here
1990 from exceptions.c and make static.
1992 2014-07-14 Pedro Alves <palves@redhat.com>
1994 * exceptions.c (print_any_exception): Delete.
1995 (catch_exceptions_with_msg): Use exception_print instead of
1996 print_any_exception.
1997 (catch_errors): Use exception_fprintf instead of
1998 print_any_exception.
1999 (catch_command_errors, catch_command_errors_const): Use
2000 exception_print instead of print_any_exception.
2002 2014-07-14 Pedro Alves <palves@redhat.com>
2004 * infcall.c (run_inferior_call): Set 'sync_execution' while
2005 running the inferior call.
2007 2014-07-14 Pedro Alves <palves@redhat.com>
2009 * value.c (value_contents_equal): Delete function.
2010 * value.h (value_contents_equal): Delete declaration.
2012 2014-07-14 Tom Tromey <tromey@redhat.com>
2015 * gdbtypes.c (is_dynamic_type_internal): New function, from
2017 (is_dynamic_type): Rewrite.
2018 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2019 (resolve_dynamic_struct): Likewise.
2020 (resolve_dynamic_type_internal): New function, from
2021 resolve_dynamic_type.
2022 (resolve_dynamic_type): Rewrite.
2024 2014-07-14 Tom Tromey <tromey@redhat.com>
2026 * target.c (target_require_runnable): Also check record_stratum.
2029 2014-07-11 Yao Qi <yao@codesourcery.com>
2031 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2032 thumb_instruction_restores_sp return true.
2034 2014-07-11 Yao Qi <yao@codesourcery.com>
2036 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2037 (thumb_in_function_epilogue_p): Call
2038 thumb_instruction_restores_sp.
2040 2014-07-11 Yao Qi <yao@codesourcery.com>
2042 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2044 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2046 2014-07-11 Gary Benson <gbenson@redhat.com>
2048 * amd64-linux-nat.c (gdbcore.h): Remove include.
2049 (regset.h): Likewise.
2050 (nat/linux-btrace.h): Likewise.
2051 (btrace.h): Likewise.
2052 (gdb_assert.h): Likewise.
2053 (string.h): Likewise.
2054 (sys/uio.h): Likewise.
2055 (sys/debugreg.h): Likewise.
2056 (sys/syscall.h): Likewise.
2057 (sys/procfs.h): Likewise.
2058 (sys/user.h): Likewise.
2059 (asm/ptrace.h): Likewise.
2060 (i386-nat.h): Likewise.
2061 * i386-linux-nat.c (i386-nat.h): Likewise.
2062 (regset.h): Likewise.
2063 (target.h): Likewise.
2064 (linux-nat.h): Likewise.
2065 (nat/linux-btrace.h): Likewise.
2066 (btrace.h): Likewise.
2067 (gdb_assert.h): Likewise.
2068 (string.h): Likewise.
2069 (sys/uio.h): Likewise.
2070 (sys/user.h): Likewise.
2071 (sys/procfs.h): Likewise.
2072 (sys/reg.h): Likewise.
2073 (sys/debugreg.h): Likewise.
2074 (ORIG_EAX): Remove definition.
2076 2014-07-11 Gary Benson <gbenson@redhat.com>
2078 * i386-linux-nat.h: New file.
2079 * x86-linux-nat.h: Likewise.
2080 * x86-linux-nat.c: Likewise.
2081 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2082 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2083 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2084 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2085 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2086 (PTRACE_SETREGSET): Likewise.
2087 (arch_lwp_info): Now in x86-linux-nat.c.
2088 (have_ptrace_getregset): Now in x86-linux-nat.h.
2089 (x86_linux_dr_get): Now in x86-linux-nat.c.
2090 (x86_linux_dr_set): Likewise.
2091 (x86_linux_dr_get_addr): Likewise.
2092 (x86_linux_dr_get_control): Likewise.
2093 (x86_linux_dr_get_status): Likewise.
2094 (update_debug_registers_callback): Likewise.
2095 (x86_linux_dr_set_control): Likewise.
2096 (x86_linux_dr_set_addr): Likewise.
2097 (x86_linux_prepare_to_resume): Likewise.
2098 (x86_linux_new_thread): Likewise.
2099 (x86_linux_new_fork): Likewise.
2100 (x86_linux_get_thread_area): Likewise.
2101 (super_post_startup_inferior): Likewise.
2102 (x86_linux_child_post_startup_inferior): Likewise.
2103 (AMD64_LINUX_USER64_CS): Likewise.
2104 (AMD64_LINUX_X32_DS): Likewise.
2105 (x86_linux_read_description): Likewise.
2106 (x86_linux_enable_btrace): Likewise.
2107 (x86_linux_disable_btrace): Likewise.
2108 (x86_linux_teardown_btrace): Likewise.
2109 (x86_linux_read_btrace): Likewise.
2110 (x86_linux_create_target): Likewise.
2111 (x86_linux_add_target): Likewise.
2112 * i386-linux-nat.c (x86-linux-nat.h): New include.
2113 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2114 (PTRACE_SETREGSET): Likewise.
2115 (arch_lwp_info): Now in x86-linux-nat.c.
2116 (have_ptrace_getregset): Now in x86-linux-nat.h.
2117 (x86_linux_dr_get): Now in x86-linux-nat.c.
2118 (x86_linux_dr_set): Likewise.
2119 (x86_linux_dr_get_addr): Likewise.
2120 (x86_linux_dr_get_control): Likewise.
2121 (x86_linux_dr_get_status): Likewise.
2122 (update_debug_registers_callback): Likewise.
2123 (x86_linux_dr_set_control): Likewise.
2124 (x86_linux_dr_set_addr): Likewise.
2125 (x86_linux_prepare_to_resume): Likewise.
2126 (x86_linux_new_thread): Likewise.
2127 (x86_linux_new_fork): Likewise.
2128 (x86_linux_get_thread_area): Likewise.
2129 (super_post_startup_inferior): Likewise.
2130 (x86_linux_child_post_startup_inferior): Likewise.
2131 (AMD64_LINUX_USER64_CS): Likewise.
2132 (AMD64_LINUX_X32_DS): Likewise.
2133 (x86_linux_read_description): Likewise.
2134 (x86_linux_enable_btrace): Likewise.
2135 (x86_linux_disable_btrace): Likewise.
2136 (x86_linux_teardown_btrace): Likewise.
2137 (x86_linux_read_btrace): Likewise.
2138 (x86_linux_create_target): Likewise.
2139 (x86_linux_add_target): Likewise.
2141 2014-07-11 Gary Benson <gbenson@redhat.com>
2143 * amd64-linux-nat.c: Comment and whitespace changes.
2144 * i386-linux-nat.c: Comment and whitespace changes.
2146 2014-07-11 Gary Benson <gbenson@redhat.com>
2148 * amd64-linux-nat.c (x86_linux_create_target): New function.
2149 (x86_linux_add_target): Likewise.
2150 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2151 * i386-linux-nat.c (x86_linux_create_target): New function.
2152 (x86_linux_add_target): Likewise.
2153 (_initialize_i386_linux_nat): Delegate to the above new functions.
2155 2014-07-11 Gary Benson <gbenson@redhat.com>
2157 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2158 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2159 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2160 (ps_get_thread_area): Delegate to the above.
2162 2014-07-11 Gary Benson <gbenson@redhat.com>
2164 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2165 x86_linux_read_description. All uses updated. amd64-specific
2166 code conditionalized. Conditionalized i386-specific code added.
2167 Redundant cast removed.
2168 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2169 x86_linux_read_description. All uses updated. i386-specific
2170 code conditionalized. Conditionalized amd64-specific code added.
2171 One sizeof replaced with the actual type it is describing.
2173 2014-07-11 Gary Benson <gbenson@redhat.com>
2175 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2176 x86_linux_dr_get. All uses updated.
2177 (amd64_linux_dr_set): Renamed to
2178 x86_linux_dr_set. All uses updated.
2179 (amd64_linux_dr_get_addr): Renamed to
2180 x86_linux_dr_get_addr. All uses updated.
2181 (amd64_linux_dr_get_control): Renamed to
2182 x86_linux_dr_get_control. All uses updated.
2183 (amd64_linux_dr_get_status): Renamed to
2184 x86_linux_dr_get_status. All uses updated.
2185 (amd64_linux_dr_set_control): Renamed to
2186 x86_linux_dr_set_control. All uses updated.
2187 (amd64_linux_dr_set_addr): Renamed to
2188 x86_linux_dr_set_addr. All uses updated.
2189 (amd64_linux_prepare_to_resume): Renamed to
2190 x86_linux_prepare_to_resume. All uses updated.
2191 (amd64_linux_new_thread): Renamed to
2192 x86_linux_new_thread. All uses updated.
2193 (amd64_linux_new_fork): Renamed to
2194 x86_linux_new_fork. All uses updated.
2195 (amd64_linux_child_post_startup_inferior): Renamed to
2196 x86_linux_child_post_startup_inferior. All uses updated.
2197 (amd64_linux_enable_btrace): Renamed to
2198 x86_linux_enable_btrace. All uses updated.
2199 (amd64_linux_disable_btrace): Renamed to
2200 x86_linux_disable_btrace. All uses updated.
2201 (amd64_linux_teardown_btrace): Renamed to
2202 x86_linux_teardown_btrace. All uses updated.
2203 (amd64_linux_read_btrace): Renamed to
2204 x86_linux_read_btrace. All uses updated.
2205 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2206 x86_linux_dr_get. All uses updated.
2207 (i386_linux_dr_set): Renamed to
2208 x86_linux_dr_set. All uses updated.
2209 (i386_linux_dr_get_addr): Renamed to
2210 x86_linux_dr_get_addr. All uses updated.
2211 (i386_linux_dr_get_control): Renamed to
2212 x86_linux_dr_get_control. All uses updated.
2213 (i386_linux_dr_get_status): Renamed to
2214 x86_linux_dr_get_status. All uses updated.
2215 (i386_linux_dr_set_control): Renamed to
2216 x86_linux_dr_set_control. All uses updated.
2217 (i386_linux_dr_set_addr): Renamed to
2218 x86_linux_dr_set_addr. All uses updated.
2219 (i386_linux_prepare_to_resume): Renamed to
2220 x86_linux_prepare_to_resume. All uses updated.
2221 (i386_linux_new_thread): Renamed to
2222 x86_linux_new_thread. All uses updated.
2223 (i386_linux_new_fork): Renamed to
2224 x86_linux_new_fork. All uses updated.
2225 (i386_linux_child_post_startup_inferior): Renamed to
2226 x86_linux_child_post_startup_inferior. All uses updated.
2227 (i386_linux_enable_btrace): Renamed to
2228 x86_linux_enable_btrace. All uses updated.
2229 (i386_linux_disable_btrace): Renamed to
2230 x86_linux_disable_btrace. All uses updated.
2231 (i386_linux_teardown_btrace): Renamed to
2232 x86_linux_teardown_btrace. All uses updated.
2233 (i386_linux_read_btrace): Renamed to
2234 x86_linux_read_btrace. All uses updated.
2236 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2238 * remote.c (extended_remote_post_attach): New function.
2239 (init_extended_remote_ops): Install it as to_post_attach method.
2241 2014-07-09 Pedro Alves <palves@redhat.com>
2243 * infcmd.c (attach_command_post_wait): Don't call
2244 target_terminal_inferior here.
2245 (attach_command): Call it here instead.
2247 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2249 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2251 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2252 from varobj.c, with additional checks.
2253 (c_varobj_ops): Fill in is_path_expr_parent field.
2254 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2255 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2257 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2259 (varobj_default_is_path_expr_parent): New function.
2260 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2261 (varobj_default_is_path_expr_parent): Declare new function.
2263 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2265 * infcmd.c (finish_backward): Turn internal error into normal error.
2267 2014-07-07 Pedro Alves <palves@redhat.com>
2270 * remote.c (async_handle_remote_sigint)
2271 (async_handle_remote_sigint_twice): Call
2272 gdb_call_async_signal_handler instead of
2273 mark_async_signal_handler.
2275 2014-07-07 Tom Tromey <tromey@redhat.com>
2277 * target-delegates.c: Rebuild.
2278 * target.c (target_info_record): Remove.
2279 * record.c (info_record_command): Unconditionally call
2281 * target.h (struct target_ops) <to_info_record>: Use
2282 TARGET_DEFAULT_IGNORE.
2283 (target_info_record): Remove.
2285 2014-07-07 Tom Tromey <tromey@redhat.com>
2287 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2288 TARGET_DEFAULT_NORETURN.
2289 * target.c (generic_tls_error): New function.
2290 (target_translate_tls_address): Don't search target stack.
2291 * target-delegates.c: Rebuild.
2292 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2294 * linux-thread-db.c (thread_db_get_thread_local_address):
2295 Unconditionally call beneath target.
2297 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2299 * cli/cli-logging.c (pop_output_files): Assign targerr to
2302 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2304 * MAINTAINERS (Write After Approval): Update my email address.
2306 2014-07-02 Gary Benson <gbenson@redhat.com>
2308 * proc-service.c (ps_xfer_memory): Update comment.
2309 (ps_pstop): Remove unused function.
2310 (ps_pcontinue): Likewise.
2311 (ps_lstop): Likewise.
2312 (ps_lcontinue): Likewise.
2313 (ps_lgetxregsize): Likewise.
2314 (ps_lgetxregs): Likewise.
2315 (ps_lsetxregs): Likewise.
2316 (ps_plog): Likewise.
2317 (ps_ptread): Likewise.
2318 (ps_ptwrite): Likewise.
2320 2014-07-01 Mark Wielaard <mjw@redhat.com>
2322 * dwarf2read.c (add_array_cv_type): New function.
2323 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2324 (read_tag_volatile_type): Likewise.
2326 2014-07-01 Tom Tromey <tromey@redhat.com>
2328 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2329 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2330 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2331 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2332 * command.h (cmd_cfunc_ftype): Move earlier.
2333 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2334 (add_com, add_info): Use cmd_cfunc_ftype.
2336 2014-06-30 Tom Tromey <tromey@redhat.com>
2338 * symtab.c (operator_chars): Make parameters and return type
2340 (file_matches): Make "files" const.
2341 (struct search_symbols_data) <files>: Now const.
2342 (search_symbols): Make "regexp" and "files" parameters const.
2344 (symtab_symbol_info): Remove cast.
2345 (rbreak_command): Update.
2346 * symtab.h (search_symbols): Update.
2348 2014-06-27 Yao Qi <yao@codesourcery.com>
2350 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2351 Change parameter type to 'struct thread_info *'. Caller
2353 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2355 * dummy-frame.c (struct dummy_frame_id): New.
2356 (dummy_frame_id_eq): New function.
2357 (struct dummy_frame) <id>: Change its type to 'struct
2359 (dummy_frame_push): Add parameter ptid and save it in
2361 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2363 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2365 (lookup_dummy_frame): Change parameter type to 'struct
2366 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2367 instead of frame_id_eq.
2368 (dummy_frame_pop): Add parameter ptid. Callers updated.
2369 Update comments. Compose dummy_frame_id and pass it to
2371 (dummy_frame_discard): Add parameter ptid.
2372 (dummy_frame_sniffer): Compose dummy_frame_id and call
2373 dummy_frame_id_eq instead of frame_id_eq.
2374 (fprint_dummy_frames): Print ptid.
2375 * dummy-frame.h: Remove comments.
2376 (dummy_frame_push): Add ptid in declaration.
2377 (dummy_frame_pop, dummy_frame_discard): Likewise.
2379 2014-06-26 Tom Tromey <tromey@redhat.com>
2381 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2382 * command.h (error_no_arg): Update.
2384 2014-06-26 Tom Tromey <tromey@redhat.com>
2386 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2387 (do_show_command): Make "arg" const.
2388 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2390 2014-06-26 Tom Tromey <tromey@redhat.com>
2392 * record-full.c (record_full_get_bookmark): Make "args" const.
2393 (record_full_goto_bookmark): Make "raw_bookmark" const.
2394 * record.c (record_goto): New function.
2395 (cmd_record_goto): Use it. Now static.
2396 * record.h (record_goto): Declare.
2397 (cmd_record_goto): Remove declaration.
2398 * target-delegates.c: Rebuild.
2399 * target.h (struct target_ops) <to_get_bookmark,
2400 to_goto_bookmark>: Make parameter const.
2402 2014-06-26 Tom Tromey <tromey@redhat.com>
2404 * defs.h (generic_load): Update.
2405 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2406 * monitor.c (monitor_load): Make "args" const.
2407 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2408 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2410 (mips_load): Make "file" const.
2411 * remote-sim.c (gdbsim_load): Make "args" const.
2412 * remote.c (remote_load): Make "name" const.
2413 * symfile.c (generic_load): Make "args" const.
2414 * target-delegates.c: Rebuild.
2415 * target.c (target_load): Make "arg" const.
2416 (debug_to_load): Make "args" const.
2417 * target.h (struct target_ops) <to_load>: Make parameter const.
2418 (target_load): Update.
2420 2014-06-26 Tom Tromey <tromey@redhat.com>
2423 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2424 (dwarf2_physname, read_partial_die)
2425 (guess_partial_die_structure_name, fixup_partial_die)
2426 (guess_full_die_structure_name, anonymous_struct_prefix)
2427 (dwarf2_name): Use per-BFD obstack.
2429 2014-06-26 Yao Qi <yao@codesourcery.com>
2431 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2432 dummyframe and this_id into inner block below.
2434 2014-06-26 Yao Qi <yao@codesourcery.com>
2436 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2437 with "signal_pass[0]" in the initialization of signal_pass.
2439 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2441 * record-btrace.c (record_btrace_generating_corefile)
2442 (record_btrace_prepare_to_generate_core)
2443 (record_btrace_done_generating_core): New.
2444 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2445 (record_btrace_store_registers, record_btrace_prepare_to_store):
2446 Forward request when generating a core file.
2447 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2448 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2449 to_done_generating_core.
2451 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2453 * target.h (target_ops) <to_prepare_to_generate_core>
2454 <to_done_generating_core>: New.
2455 (target_prepare_to_generate_core, target_done_generating_core): New.
2456 * target.c (target_prepare_to_generate_core)
2457 (target_done_generating_core): New.
2458 * target-delegates.c: Regenerate.
2459 * gcore.c: (write_gcore_file): Rename to ...
2460 (write_gcore_file_1): ...this.
2461 (write_gcore_file): Call target_prepare_to_generate_core
2462 and target_done_generating_core.
2464 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2466 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2467 * gcore.c (write_gcore_file): Free memory returned from
2468 make_corefile_notes.
2469 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2470 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2472 2014-06-24 Yao Qi <yao@codesourcery.com>
2474 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2475 (arm_linux_init_abi): Set skip_trampoline_code with
2476 gdbarch_skip_trampoline_code instead of
2477 find_solib_trampoline_target.
2479 2014-06-24 Yao Qi <yao@codesourcery.com>
2481 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2482 arm_skip_bx_reg returns non-zero.
2484 2014-06-24 Yao Qi <yao@codesourcery.com>
2486 * arm-tdep.c (arm_skip_bx_reg): New function.
2487 (arm_skip_stub): Call arm_skip_bx_reg.
2489 2014-06-23 Don Breazeal <donb@codesourcery.com>
2491 * MAINTAINERS: Add myself as write-after-approval maintainer.
2493 2014-06-23 Pedro Alves <palves@redhat.com>
2495 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2496 DR_CONTROL before setting DR0..DR3.
2497 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2498 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2499 bits of DR_CONTROL related to the debug register slot being
2500 disabled. If all slots are vacant, clear local slowdown as well,
2501 and assert DR_CONTROL is 0.
2503 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2505 * python/lib/gdb/command/xmethods.py
2506 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2507 current progspace only if the string "progspace" matches LOCUS_RE.
2509 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Fix --with-system-readline with readline-6.3 patch 5.
2512 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2513 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2516 2014-06-20 Tom Tromey <tromey@redhat.com>
2518 * dwarf2read.c (dw2_get_real_path): Use correct type in
2520 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2522 2014-06-20 Gary Benson <gbenson@redhat.com>
2524 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2525 * common/glibc_thread_db.h: Likewise.
2526 * common/i386-cpuid.h: Likewise.
2527 * common/i386-gcc-cpuid.h: Likewise.
2528 * common/linux-btrace.h: Likewise.
2529 * common/linux-osdata.h: Likewise.
2530 * common/linux-procfs.h: Likewise.
2531 * common/linux-ptrace.h: Likewise.
2532 * common/mips-linux-watch.h: Likewise.
2533 * common/linux-btrace.c: Moved to nat.
2534 * common/linux-osdata.c: Likewise.
2535 * common/linux-procfs.c: Likewise.
2536 * common/linux-ptrace.c: Likewise.
2537 * common/mips-linux-watch.c: Likewise.
2538 * nat/gdb_thread_db.h: Moved from common.
2539 * nat/glibc_thread_db.h: Likewise.
2540 * nat/i386-cpuid.h: Likewise.
2541 * nat/i386-gcc-cpuid.h: Likewise.
2542 * nat/linux-btrace.c: Likewise.
2543 * nat/linux-btrace.h: Likewise.
2544 * nat/linux-osdata.c: Likewise.
2545 * nat/linux-osdata.h: Likewise.
2546 * nat/linux-procfs.c: Likewise.
2547 * nat/linux-procfs.h: Likewise.
2548 * nat/linux-ptrace.c: Likewise.
2549 * nat/linux-ptrace.h: Likewise.
2550 * nat/mips-linux-watch.c: Likewise.
2551 * nat/mips-linux-watch.h: Likewise.
2552 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2553 (object file files): Reordered.
2554 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2555 of glibc_thread_db.h.
2557 2014-06-20 Gary Benson <gbenson@redhat.com>
2559 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2560 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2561 (i386_dr_low): Likewise.
2562 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2563 (i386_dr_low_set_addr): Likewise.
2564 (i386_dr_low_get_addr): Likewise.
2565 (i386_dr_low_can_set_control): Likewise.
2566 (i386_dr_low_set_control): Likewise.
2567 (i386_dr_low_get_control): Likewise.
2568 (i386_dr_low_get_status): Likewise.
2569 (i386_get_debug_register_length): Likewise.
2570 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2571 (i386_dr_low): Likewise.
2572 * nat/i386-dregs.c (i386-low.h): Remove include.
2573 (i386-nat.h): Likewise.
2574 (nat/i386-dregs.h): New include.
2575 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2576 (i386_dr_low_set_addr): Likewise.
2577 (i386_dr_low_get_addr): Likewise.
2578 (i386_dr_low_can_set_control): Likewise.
2579 (i386_dr_low_set_control): Likewise.
2580 (i386_dr_low_get_control): Likewise.
2581 (i386_dr_low_get_status): Likewise.
2582 (i386_get_debug_register_length): Likewise.
2583 (debug_hw_points): Likewise.
2585 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2587 * Makefile.in (SFILES): Add d-exp.y.
2588 (YYFILES): Add d-exp.c.
2589 (YYOBJ): Add d-exp.o.
2590 (local-maintainer-clean): Delete d-exp.c.
2591 * d-exp.y: New file.
2592 * d-lang.h (d_parse): New declaration.
2593 (d_error): New declaration.
2594 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2595 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2596 PREC_ORDER operators.
2597 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2599 2014-06-19 Yao Qi <yao@codesourcery.com>
2601 * gdbthread.h (any_running): Remove the declaration.
2602 * thread.c (any_running): Remove.
2604 2014-06-19 Yao Qi <yao@codesourcery.com>
2606 * gdbthread.h (struct thread_info) <state>: Change its type to
2607 'enum thread_state'. Update comments.
2609 2014-06-19 Pedro Alves <palves@redhat.com>
2611 * gdbthread.h (ALL_THREADS): Delete.
2612 (ALL_NON_EXITED_THREADS): New macro.
2613 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2614 instead of ALL_THREADS.
2615 * infrun.c (find_thread_needs_step_over)
2616 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2617 instead of ALL_THREADS.
2618 * record-btrace.c (record_btrace_open)
2619 (record_btrace_stop_recording, record_btrace_close)
2620 (record_btrace_is_replaying, record_btrace_resume)
2621 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2622 * remote.c (append_pending_thread_resumptions): Likewise.
2623 * thread.c (thread_apply_all_command): Likewise.
2625 2014-06-19 Gary Benson <gbenson@redhat.com>
2627 * i386-nat.c (i386_stopped_by_watchpoint):
2628 Use i386_dr_stopped_by_watchpoint.
2629 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2630 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2632 2014-06-19 Gary Benson <gbenson@redhat.com>
2634 * nat/i386-dregs.c: New file.
2635 * Makefile.in (i386-dregs.o): New rule.
2636 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2637 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2638 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2639 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2640 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2641 * config/i386/go32.mh (NATDEPFILES): Likewise.
2642 * config/i386/linux.mh (NATDEPFILES): Likewise.
2643 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2644 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2645 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2646 * i386-nat.h (debug_hw_points): New declaration.
2647 * i386-nat.c (breakpoint.h): Remove include.
2648 (command.h): Likewise.
2649 (target.h): Likewise.
2650 (gdb_assert.h): Likewise.
2651 (debug_hw_points): Made nonstatic.
2652 (debug_printf): Now in i386-dregs.c.
2653 (TARGET_HAS_DR_LEN_8): Likewise.
2654 (DR_CONTROL_SHIFT): Likewise.
2655 (DR_CONTROL_SIZE): Likewise.
2656 (DR_RW_EXECUTE): Likewise.
2657 (DR_RW_WRITE): Likewise.
2658 (DR_RW_READ): Likewise.
2659 (DR_RW_IORW): Likewise.
2660 (DR_LEN_1): Likewise.
2661 (DR_LEN_2): Likewise.
2662 (DR_LEN_4): Likewise.
2663 (DR_LEN_8): Likewise.
2664 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2665 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2666 (DR_ENABLE_SIZE): Likewise.
2667 (DR_LOCAL_SLOWDOWN): Likewise.
2668 (DR_GLOBAL_SLOWDOWN): Likewise.
2669 (DR_CONTROL_RESERVED): Likewise.
2670 (I386_DR_CONTROL_MASK): Likewise.
2671 (I386_DR_VACANT): Likewise.
2672 (I386_DR_LOCAL_ENABLE): Likewise.
2673 (I386_DR_GLOBAL_ENABLE): Likewise.
2674 (I386_DR_DISABLE): Likewise.
2675 (I386_DR_SET_RW_LEN): Likewise.
2676 (I386_DR_GET_RW_LEN): Likewise.
2677 (I386_DR_WATCH_HIT): Likewise.
2678 (i386_wp_op_t): Likewise.
2679 (i386_show_dr): Likewise.
2680 (i386_length_and_rw_bits): Likewise.
2681 (i386_insert_aligned_watchpoint): Likewise.
2682 (i386_remove_aligned_watchpoint): Likewise.
2683 (i386_handle_nonaligned_watchpoint): Likewise.
2684 (i386_update_inferior_debug_regs): Likewise.
2685 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2686 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2687 (i386_region_ok_for_watchpoint):
2688 Use i386_dr_region_ok_for_watchpoint.
2689 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2691 2014-06-19 Gary Benson <gbenson@redhat.com>
2693 * i386-nat.c (i386_insert_hw_breakpoint): Use
2694 i386_insert_watchpoint.
2695 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2697 2014-06-19 Gary Benson <gbenson@redhat.com>
2699 * i386-nat.c (i386_dr_show): Renamed to
2700 i386_show_dr and made static. All uses updated.
2701 (i386_dr_length_and_rw_bits): Renamed to
2702 i386_length_and_rw_bits and made static.
2704 (i386_dr_insert_aligned_watchpoint): Renamed to
2705 i386_insert_aligned_watchpoint and made static.
2707 (i386_dr_remove_aligned_watchpoint): Renamed to
2708 i386_remove_aligned_watchpoint and made static.
2710 (i386_dr_update_inferior_debug_regs): Renamed to
2711 i386_update_inferior_debug_regs and made static.
2713 * nat/i386-dregs.h (i386_dr_show): Removed.
2714 (i386_dr_length_and_rw_bits): Likewise.
2715 (i386_dr_insert_aligned_watchpoint): Likewise.
2716 (i386_dr_remove_aligned_watchpoint): Likewise.
2717 (i386_dr_update_inferior_debug_regs): Likewise.
2719 2014-06-19 Gary Benson <gbenson@redhat.com>
2721 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2722 * configure: Regenerate.
2723 * config.in: Likewise.
2724 * main.c (signal.h): New include.
2725 (setup_alternate_signal_stack): New function.
2726 (captured_main): Call the above.
2727 * cp-support.c (signal.h): New include.
2728 (catch_demangler_crashes): New flag.
2729 (SIGJMP_BUF): New define.
2730 (SIGSETJMP): Likewise.
2731 (SIGLONGJMP): Likewise.
2732 (gdb_demangle_jmp_buf): New static global.
2733 (gdb_demangle_attempt_core_dump): Likewise.
2734 (gdb_demangle_signal_handler): New function.
2735 (gdb_demangle): If catch_demangler_crashes is set, install the
2736 above signal handler before calling bfd_demangle, and restore
2737 the original signal handler afterwards. Display the offending
2738 symbol and call demangler_warning the first time a segmentation
2740 (_initialize_cp_support): New maint set/show command.
2742 2014-06-19 Gary Benson <gbenson@redhat.com>
2744 * utils.h (resource_limit_kind): New enum.
2745 (can_dump_core): New declaration.
2746 (warn_cant_dump_core): Likewise.
2747 (dump_core): Likewise.
2748 * utils.c (dump_core): Made nonstatic. Added new
2749 parameter "limit_kind".
2750 (can_dump_core): Made nonstatic. Moved printing code to...
2751 (warn_cant_dump_core): New function.
2752 (can_dump_core_warn): Likewise.
2753 (internal_vproblem): Replace calls to can_dump_core with
2754 calls to can_dump_core_warn. Supply new argument to each.
2756 2014-06-19 Gary Benson <gbenson@redhat.com>
2758 * utils.h (demangler_vwarning): New declaration.
2759 (demangler_warning): Likewise.
2760 * utils.c (struct internal_problem)
2761 <user_settable_should_quit>: New field.
2762 <user_settable_should_dump_core>: Likewise
2763 (internal_error_problem): Add values for above new fields.
2764 (internal_warning_problem): Likewise.
2765 (demangler_warning_problem): New static global.
2766 (demangler_vwarning): New function.
2767 (demangler_warning): Likewise.
2768 (add_internal_problem_command): Selectively add commands.
2769 (_initialize_utils): New internal problem command.
2770 * maint.c (maintenance_demangler_warning): New function.
2771 (_initialize_maint_cmds): New command.
2773 2014-06-18 Tom Tromey <tromey@redhat.com>
2775 * f-valprint.c (info_common_command_for_block): Update.
2776 * symtab.h (struct general_symbol_info) <common_block>: Now
2779 2014-06-18 Tom Tromey <tromey@redhat.com>
2781 * symtab.h (struct symtab) <blockvector>: Now const.
2782 * ada-lang.c (ada_add_global_exceptions): Update.
2783 * buildsym.c (augment_type_symtab): Update.
2784 * dwarf2read.c (dw2_lookup_symbol): Update.
2785 * jit.c (finalize_symtab): Update.
2786 * jv-lang.c (add_class_symtab_symbol): Update.
2787 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2789 * objfiles.c (objfile_relocate1): Update.
2790 * psymtab.c (lookup_symbol_aux_psymtabs)
2791 (maintenance_check_psymtabs): Update.
2792 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2794 * spu-tdep.c (spu_catch_start): Update.
2795 * symmisc.c (dump_symtab_1): Update.
2796 * symtab.c (lookup_global_symbol_from_objfile)
2797 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2798 (basic_lookup_transparent_type_quick)
2799 (basic_lookup_transparent_type, find_pc_sect_symtab)
2800 (find_pc_sect_line, search_symbols): Update.
2801 * block.c (find_block_in_blockvector): Make "bl" const.
2802 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2804 (blockvector_contains_pc): Make "bv" const.
2805 (block_for_pc_sect): Update.
2806 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2807 (blockvector_contains_pc): Update.
2808 * breakpoint.c (resolve_sal_pc): Update.
2809 * inline-frame.c (block_starting_point_at): Update.
2811 2014-06-18 Tom Tromey <tromey@redhat.com>
2813 * completer.c (complete_line): Make "line_buffer" const.
2814 * completer.h (complete_line): Update.
2816 2014-06-18 Tom Tromey <tromey@redhat.com>
2818 * symtab.c (add_macro_name): Remove unneeded cast.
2820 2014-06-18 Tom Tromey <tromey@redhat.com>
2822 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2823 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2825 2014-06-18 Tom Tromey <tromey@redhat.com>
2827 * probe.c (info_probes_for_ops): Make "arg" const.
2828 * probe.h (info_probes_for_ops): Update.
2830 2014-06-18 Tom Tromey <tromey@redhat.com>
2832 * varobj.c (varobj_create): Update.
2833 * valops.c (value_of_this): Update.
2834 * tracepoint.c (add_local_symbols, scope_info): Update.
2835 * symtab.h (struct general_symbol_info) <block>: Now const.
2836 * symtab.c (skip_prologue_sal)
2837 (default_make_symbol_completion_list_break_on)
2838 (skip_prologue_using_sal): Update.
2839 * stack.h (iterate_over_block_locals)
2840 (iterate_over_block_local_vars): Update.
2841 * stack.c (print_frame_args): Update.
2842 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2844 (get_selected_block): Make return type const.
2845 * python/py-frame.c (frapy_block): Update.
2846 * python/py-block.c (gdbpy_block_for_pc): Update.
2847 * p-exp.y (%union) <bval>: Now const.
2848 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2849 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2850 * m2-exp.y (%union) <bval>: Now const.
2851 * linespec.c (get_current_search_block): Make return type const.
2852 (create_sals_line_offset, find_label_symbols): Update.
2853 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2855 (block_starting_point_at): Make "block" const.
2856 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2857 (check_exception_resume): Update.
2858 * guile/scm-frame.c (gdbscm_frame_block): Update.
2859 * guile/scm-block.c (gdbscm_lookup_block): Update.
2860 * frame.h (get_frame_block): Update.
2861 (get_selected_block): Make return type const.
2862 * frame.c (frame_id_inner): Update.
2863 * f-valprint.c (info_common_command_for_block)
2864 (info_common_command): Update.
2865 * dwarf2loc.c (dwarf2_find_location_expression)
2866 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2867 (locexpr_describe_location_piece): Update.
2868 * c-exp.y (%union) <bval>: Now const.
2869 * breakpoint.c (resolve_sal_pc): Update.
2870 * blockframe.c (get_frame_block):Make return type const.
2871 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2872 (block_innermost_frame): Update.
2873 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2874 (block_for_pc, block_for_pc_sect): Update.
2875 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2877 (block_for_pc_sect, block_for_pc): Make return type const.
2878 * ax-gdb.c (gen_expr): Update.
2879 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2880 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2881 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2882 (ada_read_var_value): Update.
2883 * ada-exp.y (struct name_info) <block>: Now const.
2885 (block_lookup): Constify.
2887 2014-06-18 Gary Benson <gbenson@redhat.com>
2889 * nat/i386-dregs.h: New file.
2890 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2891 * i386-nat.h (i386-dregs.h): New include.
2892 (DR_FIRSTADDR): Now in i386-dregs.h.
2893 (DR_LASTADDR): Likewise.
2894 (DR_NADDR): Likewise.
2895 (DR_STATUS): Likewise.
2896 (DR_CONTROL): Likewise.
2897 (i386_debug_reg_state): Likewise.
2898 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2900 2014-06-18 Don Breazeal <donb@codesourcery.com>
2902 * breakpoint.c (set_longjmp_breakpoint): Call
2903 momentary_breakpoint_from_master with additional argument.
2904 (set_longjmp_breakpoint_for_call_dummy): Call
2905 momentary_breakpoint_from_master with additional argument.
2906 (set_std_terminate_breakpoint): Call
2907 momentary_breakpoint_from_master with additional argument.
2908 (momentary_breakpoint_from_master): Add argument to function
2909 definition and use it to initialize structure member flag.
2910 (clone_momentary_breakpoint): Call
2911 momentary_breakpoint_from_master with additional argument.
2912 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2913 member flags set in momentary_breakpoint_from_master.
2915 2014-06-18 Gary Benson <gbenson@redhat.com>
2917 * i386-nat.c (i386_show_dr): Renamed to
2918 i386_dr_show and made nonstatic. All uses updated.
2919 (i386_length_and_rw_bits): Renamed to
2920 i386_dr_length_and_rw_bits and made nonstatic.
2922 (i386_insert_aligned_watchpoint): Renamed to
2923 i386_dr_insert_aligned_watchpoint and made nonstatic.
2925 (i386_remove_aligned_watchpoint): Renamed to
2926 i386_dr_remove_aligned_watchpoint and made nonstatic.
2928 (i386_update_inferior_debug_regs): Renamed to
2929 i386_dr_update_inferior_debug_regs and made nonstatic.
2932 2014-06-18 Gary Benson <gbenson@redhat.com>
2934 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2935 (i386_dr_low_can_set_control): Likewise.
2936 (i386_dr_low_set_addr): Likewise.
2937 (i386_dr_low_set_control): Likewise.
2938 (i386_dr_low_get_addr): Likewise.
2939 (i386_dr_low_get_status): Likewise.
2940 (i386_dr_low_get_control): Likewise.
2941 (i386_insert_aligned_watchpoint): Use new macros.
2942 (i386_update_inferior_debug_regs): Likewise.
2943 (i386_stopped_data_address): Likewise.
2945 2014-06-18 Gary Benson <gbenson@redhat.com>
2947 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2948 New parameter. All uses updated.
2950 2014-06-18 Gary Benson <gbenson@redhat.com>
2952 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2955 2014-06-18 Gary Benson <gbenson@redhat.com>
2957 * i386-nat.c (debug_printf): New macro.
2958 (i386_get_debug_register_length): Likewise.
2959 (TARGET_HAS_DR_LEN_8): Use above macro.
2960 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2961 and printf_unfiltered. Use phex to format values.
2963 2014-06-18 Gary Benson <gbenson@redhat.com>
2965 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2968 2014-06-18 Gary Benson <gbenson@redhat.com>
2970 * i386-nat.c: Comment changes.
2972 2014-06-18 Gary Benson <gbenson@redhat.com>
2974 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2976 2014-06-18 Gary Benson <gbenson@redhat.com>
2978 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2979 (i386_insert_aligned_watchpoint): Likewise.
2980 (i386_remove_aligned_watchpoint): Likewise.
2981 (i386_handle_nonaligned_watchpoint): Likewise.
2983 2014-06-18 Gary Benson <gbenson@redhat.com>
2985 * i386-nat.c: Whitespace changes.
2987 2014-06-17 Samuel Bronson <naesten@gmail.com>
2989 * MAINTAINERS: Update Roland McGrath's email address.
2990 Thanks to Sergio Durigan Junior for pointing out that he left
2991 Red Hat a while ago, and giving me a current address.
2993 2014-06-17 Tom Tromey <tromey@redhat.com>
2995 * utils.h (savestring): Remove declaration.
2997 2014-06-17 Tom Tromey <tromey@redhat.com>
2999 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3001 2014-06-16 Keith Seitz <keiths@redhat.com>
3004 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3005 to update the varobj if inferior_ptid is null_ptid.
3007 2014-06-16 Tom Tromey <tromey@redhat.com>
3009 * target.h (struct target_ops) <to_info_proc>: Make parameter
3011 (target_info_proc): Update.
3012 * target.c (target_info_proc): Make "args" const.
3013 * procfs.c (procfs_info_proc): Update.
3014 * linux-tdep.c (linux_info_proc): Update.
3015 (linux_core_info_proc_mappings): Make "args" const.
3016 (linux_core_info_proc): Update.
3017 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3018 * gdbarch.c: Rebuild.
3019 * gdbarch.h: Rebuild.
3020 * corelow.c (core_info_proc): Update.
3022 2014-06-16 Tom Tromey <tromey@redhat.com>
3024 * target.h (struct target_ops) <to_disconnect>: Make parameter
3026 (target_disconnect): Update.
3027 * target.c (target_disconnect): Make "args" const.
3028 * target-delegates.c: Rebuild.
3029 * remote.c (remote_disconnect): Update.
3030 * record.h (record_disconnect): Update.
3031 * record.c (record_disconnect): Update.
3032 * inf-child.c (inf_child_disconnect): Update.
3034 2014-06-16 Tom Tromey <tromey@redhat.com>
3036 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3037 * target.c (debug_to_rcmd, default_rcmd): Update.
3038 * target-delegates.c: Rebuild.
3039 * remote.c (remote_rcmd): Update.
3040 * monitor.c (monitor_rcmd): Update.
3042 2014-06-16 Pedro Alves <palves@redhat.com>
3044 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3045 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3046 have OBJF_SHARED set.
3047 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3048 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3049 instead of OBJF_USERLOADED.
3050 * objfiles.h (OBJF_SHARED): Update comment.
3051 (userloaded_objfile_contains_address_p): Rename to ...
3052 (shared_objfile_contains_address_p): ... this, and update
3054 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3056 (remove_symbol_file_command): Skip objfiles that don't have
3059 2014-06-16 Tom Tromey <tromey@redhat.com>
3061 * minsyms.h (prim_record_minimal_symbol)
3062 (prim_record_minimal_symbol_and_info): Update comments.
3064 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3066 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3067 or --without-guile, according to how GDB was built.
3069 2014-06-13 Tom Tromey <tromey@redhat.com>
3071 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3073 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3075 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3077 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3078 help_list.Pass all_commands, not -1, to help_list.
3079 * cli/cli-dump.c (dump_command, append_command)
3080 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3081 (binary_dump_command, binary_append_command): Pass all_commands,
3082 not -1, to help_list.
3083 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3085 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3087 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3089 * top.c (set_history): Pass all_commands, not -1, to help_list.
3090 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3091 all_commands, not -1, to help_list.
3092 * symfile.c (overlay_command): Pass all_commands, not -1, to
3094 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3096 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3098 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3100 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3101 not -1, to help_list.
3102 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3103 not -1, to help_list.
3104 * maint.c (maintenance_command, maintenance_info_command)
3105 (maintenance_print_command, maintenance_set_cmd): Pass
3106 all_commands, not -1, to help_list.
3107 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3109 * language.c (set_check): Pass all_commands, not -1, to help_list.
3110 * infcmd.c (unset_command): Pass all_commands, not -1, to
3112 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3114 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3116 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3118 * breakpoint.c (save_command): Pass all_commands, not -1, to
3120 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3121 all_commands, not -1, to help_list.
3123 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3125 * regcache.c (struct register_to_invalidate): New structure.
3126 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3128 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3130 2014-06-12 Yao Qi <yao@codesourcery.com>
3132 * varobj.c (varobj_get_num_children): Call
3133 varobj_is_dynamic_p.
3134 (varobj_list_children): Likewise.
3135 (varobj_update): Likewise. Update comments.
3137 2014-06-12 Yao Qi <yao@codesourcery.com>
3139 * varobj.c (varobj_pretty_printed_p): Rename to ...
3140 (varobj_is_dynamic_p): ... this. New function.
3141 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3142 (varobj_is_dynamic_p): Declare.
3143 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3144 (mi_print_value_p, varobj_update_one): Likewise.
3146 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3147 Yao Qi <yao@codesourcery.com>
3149 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3150 (varobj_get_iterator): Wrap up code for pretty-printer by
3151 "#if HAVE_PYTHON" and "#endif".
3152 (update_dynamic_varobj_children): Likewise.
3154 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3155 Yao Qi <yao@codesourcery.com>
3157 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3158 gdb_python_initialized is false. Move some code from varobj.c.
3159 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3160 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3161 (struct varobj_item): Moved to varobj-iter.h".
3162 (varobj_clear_saved_item): New function.
3163 (update_dynamic_varobj_children): Move python-related code to
3165 (free_variable): Call varobj_clear_saved_item and
3168 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3169 Yao Qi <yao@codesourcery.com>
3171 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3172 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3173 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3174 (py-varobj.o): New rule.
3175 * python/py-varobj.c: New file.
3176 * python/python-internal.h (py_varobj_get_iterator): Declare.
3177 * varobj-iter.h: New file.
3178 * varobj.c: Include "varobj-iter.h"
3179 (struct varobj) <child_iter>: Change its type from "PyObject *"
3180 to "struct varobj_iter *".
3181 <saved_item>: Likewise.
3182 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3183 [HAVE_PYTHON] (varobj_get_iterator): New function.
3184 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3185 python-specific code to python/py-varobj.c.
3186 (install_visualizer): Call varobj_iter_delete instead of
3188 * varobj.h (varobj_ensure_python_env): Declare.
3190 2014-06-12 Yao Qi <yao@codesourcery.com>
3192 * varobj.c (struct varobj_item): New structure.
3193 (create_child_with_value): Update declaration.
3194 (varobj_add_child): Replace arguments 'name' and 'value' with
3195 'item'. All callers updated.
3196 (install_dynamic_child): Likewise.
3197 (update_dynamic_varobj_children): Likewise.
3198 (varobj_add_child): Likewise.
3199 (create_child_with_value): Likewise.
3201 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3203 * NEWS: Create a new section for the next release branch.
3204 Rename the section of the current branch, now that it has
3207 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3209 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3210 * version.in: Bump version to 7.8.50.DATE-cvs.
3212 2014-06-11 Pedro Alves <palves@redhat.com>
3215 * ser-mingw.c (net_windows_socket_check_pending): New function.
3216 (net_windows_select_thread): Ignore spurious wakeups. Use
3217 net_windows_socket_check_pending.
3218 (net_windows_wait_handle): Check for pending events with
3219 ioctlsocket, through net_windows_socket_check_pending, instead of
3220 checking the socket's event.
3222 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3224 * python/python-internal.h (gdb_PyObject_GetAttrString)
3225 (gdb_PyObject_HasAttrString): New inline function definitions.
3226 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3227 char * of the second argument to PyObject_GetAttrString.
3229 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3231 * serial.c (serial_write): Fix index of character to be printed
3232 in call to serial_logchar when serial debug traces are enabled.
3234 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3236 * gdbtypes (resolve_dynamic_range): Add function description.
3238 2014-06-09 Pedro Alves <palves@redhat.com>
3240 * linux-nat.c (linux_child_follow_fork): Initialize status with
3241 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3242 inner block. Only pass the signal to PTRACE_DETACH if in pass
3245 2014-06-09 Gary Benson <gbenson@redhat.com>
3247 * common/signals.c (gdb_signal_from_host): Reorder to separate
3248 the always-available ANSI-standard signals from the signals that
3250 (do_gdb_signal_to_host): Likewise.
3251 * proc-events.c (signal_table): Likewise.
3253 2014-06-08 Hui Zhu <hui@codesourcery.com>
3255 * common/linux-ptrace.c (linux_disable_event_reporting): New
3257 * common/linux-ptrace.h (linux_disable_event_reporting): New
3259 * linux-nat.c (linux_child_follow_fork): Do a single step before
3262 2014-06-07 Keith Seitz <keiths@redhat.com>
3266 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3267 from symbol_matches_domain in symtab.c. All local callers
3268 of symbol_matches_domain updated.
3269 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3270 search STRUCT_DOMAIN.
3271 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3272 independently. standard_lookup will do that automatically.
3273 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3274 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3275 (cp_lookup_symbol_in_namespace): Likewise.
3276 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3277 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3278 may return a STRUCT_DOMAIN match.
3279 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3280 * cp-support.c: Include language.h.
3281 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3283 * psymtab.c (match_partial_symbol): Compare the requested
3284 domain with the symbol's domain directly.
3285 (lookup_partial_symbol): Likewise.
3286 * symtab.c (lookup_symbol_in_language): Explain when/why
3287 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3288 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3289 appropriate languages.
3290 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3291 and moved to ada-lang.c
3292 (lookup_block_symbol): Explain that this function only returns
3293 symbol matching the requested DOMAIN.
3294 Compare the requested domain with the symbol's domain directly.
3295 (iterate_over_symbols): Compare the requested domain with the
3296 symbol's domain directly.
3297 * symtab.h (symbol_matches_domain): Remove.
3299 2014-06-06 Doug Evans <xdje42@gmail.com>
3301 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3302 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3303 (gdbscm_guile_version_is_at_least): Declare.
3304 (gdbscm_scm_string_to_int): Declare.
3305 * guile/guile.c (gdbscm_guile_major_version): New global.
3306 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3307 (guile_datadir): New static global.
3308 (gdbscm_guile_data_directory): New function.
3309 (initialize_scheme_side): Update.
3310 (misc_guile_functions): Add guile-data-directory.
3311 (initialize_gdb_module): Fetch guile version number.
3312 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3313 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3314 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3315 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3317 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3318 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3319 * guile/scm-value.c (gdbscm_value_to_string): Only call
3320 scm_port_conversion_strategy if Guile version >= 2.0.6.
3322 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3324 * main.c (print_gdb_help): Add -q and --silent.
3326 2014-06-06 Gary Benson <gbenson@redhat.com>
3328 * common/signals.c: Remove preprocessor conditionals for
3329 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3330 SIGSEGV and SIGTERM.
3331 * proc-events.c: Likewise.
3333 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3335 * symfile.c (symfile_free_objfile): Remove restriction to
3337 * symfile-mem.c (symbol_file_add_from_memory): Call
3338 add_target_sections_of_objfile.
3340 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3342 * guile/scm-value.c (gdbscm_history_append_x): Use
3343 'vlscm_get_value_smob_arg_unsafe' instead of
3344 'vlscm_scm_to_value'.
3346 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3349 * utils.c (printchar): Don't escape at all if quoter is NUL.
3350 Update function documentation to clarify effect of parameter
3352 * remote.c (escape_buffer): Pass '\\' as the quoter to
3353 fputstrn_unfiltered.
3354 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3355 generate the output.
3356 (mi_solib_unloaded): Same.
3358 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3360 * development.sh: Delete.
3361 * Makefile.in (config.status): Adjust dependency on development.sh.
3362 * configure.ac: Adjust development.sh source call.
3363 * configure: Regenerate.
3365 2014-06-04 Doug Evans <xdje42@gmail.com>
3367 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3368 is_scheme_bkpt, spec.
3369 (bpscm_make_breakpoint_smob): Initialize new members.
3370 (gdbscm_create_breakpoint_x): Split into two ...
3371 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3372 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3373 (scheme_function breakpoint_functions): Update.
3374 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3375 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3376 register-breakpoint!.
3378 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3381 * mem-break.c (z_type_supported): Return zero if
3382 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3384 2014-06-04 Tom Tromey <tromey@redhat.com>
3386 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3387 value_from_contents_and_address_unresolved.
3388 (ada_template_to_fixed_record_type_1): Likewise.
3389 (ada_which_variant_applies): Likewise.
3390 * value.h (value_from_contents_and_address_unresolved): Declare.
3391 * value.c (value_from_contents_and_address_unresolved): New
3393 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3394 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3395 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3397 2014-06-04 Tom Tromey <tromey@redhat.com>
3399 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3401 2014-06-04 Tom Tromey <tromey@redhat.com>
3403 * procfs.c (procfs_attach): Make "args" const.
3404 * windows-nat.c (windows_attach): Make "args" const.
3405 * nto-procfs.c (procfs_attach): Make "args" const.
3406 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3407 * go32-nat.c (go32_attach): Make "args" const.
3408 * gnu-nat.c (gnu_attach): Make "args" const.
3409 * darwin-nat.c (darwin_attach): Make "args" const.
3410 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3411 * linux-nat.c (linux_nat_attach): Make "args" const.
3412 * remote.c (extended_remote_attach_1, extended_remote_attach):
3414 * target.h (struct target_ops) <to_attach>: Make "args" const.
3415 (find_default_attach): Likewise.
3416 * utils.c (parse_pid_to_attach): Make "args" const.
3417 * utils.h (parse_pid_to_attach): Update.
3419 2014-06-04 Tom Tromey <tromey@redhat.com>
3421 * target-delegates.c: Rebuild.
3422 * target.c (default_thread_address_space): New function.
3423 (target_thread_address_space): Simplify.
3424 * target.h (struct target_ops) <to_thread_address_space>: Add
3425 TARGET_DEFAULT_FUNC.
3427 2014-06-04 Doug Evans <xdje42@gmail.com>
3429 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3431 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3433 * record-btrace.c: Include event-loop.h and inf-loop.h.
3434 (record_btrace_resume_exec_dir)
3435 (record_btrace_async_inferior_event_handler)
3436 (record_btrace_handle_async_inferior_event): New.
3437 (record_btrace_open): Create async event handler.
3438 (record_btrace_close): Delete async event handler.
3439 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3440 Mark async event handler.
3441 (record_btrace_execution_direction): New.
3442 (init_record_btrace_ops): Initialize to_execution_direction.
3444 2014-06-03 Doug Evans <xdje42@gmail.com>
3446 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3447 (gdbscm_make_parameter): Ditto.
3449 2014-06-03 Doug Evans <dje@google.com>
3451 * exec.c (exec_close_1): Call clear_section_table instead of
3452 resize_section_table.
3453 (clear_section_table): New function.
3454 (resize_section_table): Make static. Rename arg num_added to
3456 * exec.h (clear_section_table): Declare.
3457 (resize_section_table): Delete.
3458 * progspace.c (release_program_space): Call clear_section_table
3459 instead of resize_section_table.
3461 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3463 * NEWS (Python Scripting): Add entry about the new xmethods
3466 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3468 * python/py-xmethods.c: New file.
3469 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3470 (objfpy_dealloc): XDECREF on the new xmethods field.
3471 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3473 (objfpy_get_xmethods): New function.
3474 (objfile_getset): New entry 'xmethods'.
3475 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3476 (pspy_dealloc): XDECREF on the new xmethods field.
3477 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3479 (pspy_get_xmethods): New function.
3480 (pspace_getset): New entry 'xmethods'.
3481 * python/python-internal.h: Add declarations for new functions.
3482 * python/python.c (_initialize_python): Invoke
3483 gdbpy_initialize_xmethods.
3484 * python/lib/gdb/__init__.py (xmethods): New
3486 * python/lib/gdb/xmethod.py: New file.
3487 * python/lib/gdb/command/xmethods.py: New file.
3489 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3491 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3492 best match method returned by find_overload_match is an xmethod.
3493 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3494 the best matching operator returned by find_overload_match is an
3496 * valops.c: #include "extension.h".
3497 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3498 Return void. The list of matching source methods is returned in
3499 "fn_list" and a vector of matching debug method workers is
3500 returned in "xm_worker_vec". Update all callers.
3501 (value_find_oload_method_list): Likewise.
3502 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3503 non-NULL, then the index of the best matching method in this
3504 vector is returned. Update all callers.
3505 (find_overload_match): Include xmethods while performing overload
3508 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3510 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3511 * extension-priv.h (struct extension_language_ops): Add the
3513 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3514 get_matching_xmethod_workers, get_xmethod_argtypes,
3515 invoke_xmethod, free_xmethod_worker,
3516 free_xmethod_worker_vec): New functions.
3517 * extension.h: #include "common/vec.h".
3518 New function declarations.
3519 (struct xmethod_worker): New struct.
3520 (VEC (xmethod_worker_ptr)): New vector type.
3521 (xmethod_worker_ptr): New typedef.
3522 (xmethod_worker_vec): Likewise.
3523 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3525 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3526 (struct builtin_type): New field "xmethod".
3527 * valarith.c (value_ptradd): Assert that the value argument is not
3529 * valops.c (value_must_coerce_to_target): Return 0 for
3530 lval_xcallable values.
3531 * value.c (struct value): New field XM_WORKER in the field
3533 (value_address, value_raw_address): Return 0 for lval_xcallable
3535 (set_value_address): Assert that the value is not an
3537 (value_free): Free the associated xmethod worker when freeing
3538 lval_xcallable values.
3539 (set_value_component_location): Assert that the WHOLE value is not
3541 (value_of_xmethod, call_xmethod): New functions.
3542 * value.h: Declare "struct xmethod_worker".
3543 Declare new functions value_of_xmethod, call_xmethod.
3545 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3546 Pedro Alves <palves@redhat.com>
3548 PR breakpoints/17000
3549 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3550 New function, extracted from software_breakpoint_inserted_here_p.
3551 (software_breakpoint_inserted_here_p): Replace factored out code
3552 by call to find_non_raw_software_breakpoint_inserted_here.
3553 (bp_target_info_copy_insertion_state): New function.
3554 (bkpt_insert_location): Handle the case of a single-step
3555 breakpoint already inserted at the same address.
3556 (bkpt_remove_location): Handle the case of a single-step
3557 breakpoint still inserted at the same address.
3558 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3559 breakpoint already inserted at the same address.
3560 (deprecated_remove_raw_breakpoint): Handle the case of a
3561 non-raw breakpoint still inserted at the same address.
3562 (find_single_step_breakpoint): New function, extracted from
3563 single_step_breakpoint_inserted_here_p.
3564 (find_single_step_breakpoint): New function,
3565 factored out from single_step_breakpoint_inserted_here_p.
3566 (single_step_breakpoint_inserted_here_p): Reimplement.
3568 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3570 Pushed by Joel Brobecker <brobecker@adacore.com>
3571 * source.c (show_substitute_path_command): Fix display of matching
3574 2014-06-03 Gary Benson <gbenson@redhat.com>
3576 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3578 2014-06-02 Doug Evans <xdje42@gmail.com>
3580 Add parameter support for Guile.
3581 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3582 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3583 (scm-param.o): New rule.
3584 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3585 (gdbscm_misc_error): Declare.
3586 (gdbscm_canonicalize_command_name): Declare.
3587 (gdbscm_scm_to_host_string): Declare.
3588 (gdbscm_scm_from_host_string): Declare.
3589 (gdbscm_initialize_parameters): Declare.
3590 * guile/guile.c (initialize_gdb_module): Call
3591 gdbscm_initialize_parameters.
3592 * guile/lib/gdb.scm: Export parameter symbols.
3593 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3594 cmdscm_canonicalize_name and made public. All callers updated.
3595 * guile/scm-exception.c (gdbscm_misc_error): New function.
3596 * guile/scm-param.c: New file.
3597 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3598 (gdbscm_scm_to_host_string): New function.
3599 (gdbscm_scm_from_host_string): New function.
3600 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3602 2014-06-02 Doug Evans <xdje42@gmail.com>
3604 Add command support for Guile.
3605 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3606 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3607 (scm-cmd.o): New rule.
3608 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3609 (gdbscm_user_error_p): Declare.
3610 (gdbscm_parse_command_name): Declare.
3611 (gdbscm_valid_command_class_p): Declare.
3612 (gdbscm_initialize_commands): Declare.
3613 * guile/guile.c (initialize_gdb_module): Call
3614 gdbscm_initialize_commands.
3615 * guile/lib/gdb.scm: Export command symbols.
3616 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3617 (throw-user-error): New function.
3618 * guile/scm-cmd.c: New file.
3619 * guile/scm-exception.c (user_error_symbol): New static global.
3620 (gdbscm_user_error_p): New function.
3621 (gdbscm_initialize_exceptions): Set user_error_symbol.
3622 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3624 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3626 * top.c (command_loop): Handle comments here...
3627 (command_line_input): ... not here.
3629 2014-06-02 Doug Evans <xdje42@gmail.com>
3631 Add progspace support for Guile.
3632 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3633 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3634 (scm-progspace.o): New rule.
3635 * guile/guile-internal.h (pspace_smob): New typedef.
3636 (psscm_pspace_smob_pretty_printers): Declare.
3637 (psscm_pspace_smob_from_pspace): Declare.
3638 (psscm_scm_from_pspace): Declare.
3639 * guile/guile.c (initialize_gdb_module): Call
3640 gdbscm_initialize_pspaces.
3641 * guile/lib/gdb.scm: Export progspace symbols.
3642 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3644 (append-pretty-printer!): Ditto.
3645 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3647 * guile/scm-progspace.c: New file.
3649 2014-06-03 Alan Modra <amodra@gmail.com>
3651 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3652 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3654 2014-06-02 Doug Evans <dje@google.com>
3656 Add support for skeletonless type units.
3657 * dwarf2read.c (struct dwarf2_per_objfile): New member
3658 n_allocated_type_units.
3659 (struct dwarf2_per_objfile) <tu_stats>: New member
3660 nr_all_type_units_reallocs.
3661 (create_signatured_type_table_from_index): Initialize
3662 n_allocated_type_units
3663 (create_all_type_units): Ditto.
3664 (add_type_unit): Move up in file. New arg slot.
3665 All callers updated. Increase space for all_type_units more
3667 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3668 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3669 (lookup_dwp_signatured_type): Ditto.
3670 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3671 All callers updated.
3672 (build_type_psymtabs_1): Leave type_unit_groups as
3673 NULL if no TUs present.
3674 (print_tu_stats): New function.
3675 (process_skeletonless_type_unit): New function.
3676 (process_dwo_file_for_skeletonless_type_units): New
3678 (process_skeletonless_type_units): New function.
3679 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3680 Call print tu_stats if debugging enabled.
3682 2014-06-02 Pedro Alves <palves@redhat.com>
3684 * breakpoint.c (build_target_command_list): Don't build a command
3685 list if we have any duplicate location that isn't a dprintf.
3687 2014-06-02 Pedro Alves <palves@redhat.com>
3689 * breakpoint.c (dprintf_breakpoint_hit): New function.
3690 (initialize_breakpoint_ops): Install it as dprintf's
3691 breakpoint_hit method.
3693 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3695 * source.c (substitute_path_rule_matches): Simplify using
3696 filename_ncmp instead of FILENAME_CMP.
3698 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3700 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3702 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3704 * configure.ac: When Guile is available, check for the
3705 availability of 'scm_new_smob'.
3706 * configure, config.h.in: Regenerate.
3707 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3710 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3712 * frame.c (struct frame_info): Add stop_string field.
3713 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3714 (get_prev_frame_always): Old content moved into
3715 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3716 TRY_CATCH, handle MEMORY_ERROR exceptions.
3717 (frame_stop_reason_string): New function definition.
3718 * frame.h (unwind_stop_reason_to_string): Extend comment to
3719 mention frame_stop_reason_string.
3720 (frame_stop_reason_string): New function declaration.
3721 * stack.c (frame_info): Switch to frame_stop_reason_string.
3722 (backtrace_command_1): Switch to frame_stop_reason_string.
3723 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3724 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3725 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3727 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3729 * frame.c (frame_stop_reason_string): Rename to ...
3730 (unwind_stop_reason_to_string): this.
3731 * frame.h (frame_stop_reason_string): Rename to ...
3732 (unwind_stop_reason_to_string): this.
3733 * stack.c (frame_info): Update call to frame_stop_reason_string.
3734 (backtrace_command_1): Likewise.
3735 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3736 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3738 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3740 * frame.c (remove_prev_frame): New function.
3741 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3744 2014-05-29 Pedro Alves <palves@redhat.com>
3746 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3747 and make it const. When a single-step decays to a continue,
3748 clear 'step', not 'hw_step'. Pass whether the caller wanted
3749 to step to user_visible_resume_ptid, not what we ask the
3752 2014-05-29 Pedro Alves <palves@redhat.com>
3754 * infrun.c (process_event_stop_test, handle_step_into_function)
3755 (handle_step_into_function_backward): Adjust.
3756 Don't set the even thread's stop_step and call stop_waiting before
3757 calling end_stepping_range. Instead do that ...
3758 (end_stepping_range): ... here. Take an ecs pointer parameter.
3760 2014-05-29 Pedro Alves <palves@redhat.com>
3762 * infrun.c (stop_stepping): Rename to ...
3763 (stop_waiting): ... this.
3764 (proceed): Update comment.
3765 (process_event_stop_test, handle_inferior_event)
3766 (handle_signal_stop, handle_step_into_function)
3767 (handle_step_into_function_backward): Update.
3769 2014-05-29 Pedro Alves <palves@redhat.com>
3771 * infcall.c (run_inferior_call): Don't check whether the current
3772 thread is running after the proceed call.
3774 2014-05-29 Pedro Alves <palves@redhat.com>
3775 Tom Tromey <tromey@redhat.com>
3777 * NEWS: Mention "maint set target-async", "set mi-async", and that
3778 background execution commands are now always available.
3779 * target.h (target_async_permitted): Update comment.
3780 * target.c (target_async_permitted, target_async_permitted_1):
3782 (set_target_async_command): Rename to ...
3783 (maint_set_target_async_command): ... this.
3784 (show_target_async_command): Rename to ...
3785 (maint_show_target_async_command): ... this.
3786 (_initialize_target): Adjust.
3787 * infcmd.c (prepare_execution_command): Make extern.
3788 * inferior.h (prepare_execution_command): Declare.
3789 * infrun.c (set_observer_mode): Leave target async alone.
3790 * mi/mi-interp.c (mi_interpreter_init): Install
3791 mi_on_sync_execution_done as sync_execution_done observer.
3792 (mi_on_sync_execution_done): New function.
3793 (mi_execute_command_input_handler): Don't print the prompt if we
3794 just started a synchronous command with an async target.
3795 (mi_on_resume): Check sync_execution before printing prompt.
3796 * mi/mi-main.h (mi_async_p): Declare.
3797 * mi/mi-main.c: Include gdbcmd.h.
3798 (mi_async_p): New function.
3799 (mi_async, mi_async_1): New globals.
3800 (set_mi_async_command, show_mi_async_command, mi_async): New
3802 (exec_continue): Call prepare_execution_command.
3803 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3804 (mi_execute_async_cli_command): Use mi_async_p.
3805 (_initialize_mi_main): Install "set mi-async". Make
3806 "target-async" a deprecated alias.
3808 2014-05-29 Pedro Alves <palves@redhat.com>
3810 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3811 (_initialize_cli_interp): Adjust.
3812 * event-loop.c: Include "observer.h".
3813 (start_event_loop): Notify 'command_error' observers instead of
3814 calling display_gdb_prompt. Remove FIXME comment.
3815 * event-top.c (display_gdb_prompt): Remove call into the
3817 * inf-loop.c: Include "observer.h".
3818 (inferior_event_handler): Notify 'command_error' observers instead
3819 of calling display_gdb_prompt.
3820 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3821 observers instead of calling display_gdb_prompt.
3822 * interps.c (interp_set): Don't call display_gdb_prompt.
3823 (current_interp_display_prompt_p): Delete.
3824 * interps.h (interp_prompt_p): Delete declaration.
3825 (interp_prompt_p_ftype): Delete.
3826 (struct interp_procs) <prompt_proc_p>: Delete field.
3827 (current_interp_display_prompt_p): Delete declaration.
3828 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3829 (_initialize_mi_interp): Adjust.
3830 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3831 'command_error' observers.
3832 (tui_on_sync_execution_done, tui_on_command_error): New
3834 (tui_display_prompt_p): Delete.
3835 (_initialize_tui_interp): Adjust.
3837 2014-05-29 Pedro Alves <palves@redhat.com>
3840 * cli/cli-interp.c: Include infrun.h and observer.h.
3841 (cli_uiout, cli_interp): New globals.
3842 (cli_on_signal_received, cli_on_end_stepping_range)
3843 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3845 (cli_interpreter_init): Install them as 'end_stepping_range',
3846 'signal_received' 'signal_exited', 'exited' and 'no_history'
3848 (_initialize_cli_interp): Remove cli_interp local.
3849 * infrun.c (handle_inferior_event): Call the several stop reason
3850 observers instead of printing the stop reason directly.
3851 (end_stepping_range): New function.
3852 (print_end_stepping_range_reason, print_signal_exited_reason)
3853 (print_exited_reason, print_signal_received_reason)
3854 (print_no_history_reason): Make static, and add an uiout
3855 parameter. Print to that instead of to CURRENT_UIOUT.
3856 * infrun.h (print_end_stepping_range_reason)
3857 (print_signal_exited_reason, print_exited_reason)
3858 (print_signal_received_reason print_no_history_reason): New
3860 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3862 <cli_uiout>: New field.
3863 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3864 uiout for CLI output. Install 'signal_received',
3865 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3867 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3868 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3869 (mi_on_no_history): New functions.
3870 (ui_out_free_cleanup): Delete function.
3871 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3872 instead use the one already stored in the MI interpreter data.
3873 (mi_ui_out): Adjust.
3874 * tui/tui-interp.c: Include infrun.h and observer.h.
3875 (tui_interp): New global.
3876 (tui_on_signal_received, tui_on_end_stepping_range)
3877 (tui_on_signal_exited, tui_on_exited)
3878 (tui_on_no_history): New functions.
3879 (tui_init): Install them as 'end_stepping_range',
3880 'signal_received' 'signal_exited', 'exited' and 'no_history'
3882 (_initialize_tui_interp): Delete tui_interp local.
3884 2014-05-29 Pedro Alves <palves@redhat.com>
3887 * linux-nat.c (linux_nat_resume_callback): Rename the second
3888 parameter to 'except'. Skip LP if it points to EXCEPT.
3889 (linux_nat_resume): Don't mark the event lwp as not stopped
3890 before resuming sibling lwps. Instead ask
3891 linux_nat_resume_callback to skip the event lwp. Mark it as not
3892 stopped after actually resuming it.
3893 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3895 (wait_lwp): Mark the lwp as stopped here.
3896 (stop_wait_callback): Mark the lwp as not stopped right after
3897 resuming it. Don't mark lwps as stopped here.
3898 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3899 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3901 2014-05-29 Pedro Alves <palves@redhat.com>
3904 * infrun.c (resume): Determine how much to resume depending on
3905 whether the caller wanted a step, not whether we can hardware step
3906 the target. Mark all threads that we intend to run as running,
3907 unless we're calling an inferior function.
3908 (normal_stop): If the thread is running an infcall, don't finish
3910 * target.c (target_resume): Don't mark threads as running here.
3912 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3914 * serial.c (_initialize_serial): Remove support for
3915 the "set remotebaud" and "show remotebaud" commands.
3916 * NEWS: Add entry documenting the removal of that command.
3918 2014-05-28 Yao Qi <yao@codesourcery.com>
3920 * charset.c: Fix typo in comments.
3922 2014-05-27 Gary Benson <gbenson@redhat.com>
3924 * utils.c (internal_vproblem): Prompt for a bug report.
3926 2014-05-26 Andy Wingo <wingo@igalia.com>
3928 * guile/scm-arch.c (arscm_mark_arch_smob):
3929 * guile/scm-block.c (bkscm_mark_block_smob)
3930 (bkscm_mark_block_syms_progress_smob):
3931 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3932 * guile/scm-exception.c (exscm_mark_exception_smob):
3933 * guile/scm-frame.c (frscm_mark_frame_smob):
3934 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3935 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3936 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3937 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3938 (ppscm_mark_pretty_printer_worker_smob):
3939 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3940 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3941 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3942 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3944 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3947 2014-05-26 Andy Wingo <wingo@igalia.com>
3948 Doug Evans <xdje42@gmail.com>
3950 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3951 empty_base_class. All uses updated.
3952 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3953 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3955 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3956 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3957 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3958 (gdbscm_gsmob_has_property_p, add_property_name)
3959 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3960 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3961 (gdb-object-has-property?, gdb-object-properties): Remove.
3962 (gdb-object-kind): Renamed from gsmob-kind.
3964 2014-05-26 Andy Wingo <wingo@igalia.com>
3966 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3967 * configure: Regenerate.
3969 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3971 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3973 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3975 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3976 (replay_memory_access_read_only, replay_memory_access_read_write)
3977 (replay_memory_access_types, replay_memory_access)
3978 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3979 (cmd_set_record_btrace, cmd_show_record_btrace)
3980 (cmd_show_replay_memory_access): New.
3981 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3982 (record_btrace_remove_breakpoint): Replace
3983 record_btrace_allow_memory_access with replay_memory_access.
3984 (_initialize_record_btrace): Add commands.
3985 * NEWS: Announce it.
3987 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3989 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3991 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3993 * MAINTAINERS (Write After Approval): Move self back from
3996 2014-05-22 Pedro Alves <palves@redhat.com>
3998 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3999 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4000 (disable_randomization, enum exec_direction_kind)
4001 (execution_direction, stop_registers, start_remote)
4002 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4003 (wait_for_inferior, normal_stop, get_last_target_status)
4004 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4005 (insert_step_resume_breakpoint_at_sal)
4006 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4007 (set_step_info, print_stop_event, signal_stop_state)
4008 (signal_print_state, signal_pass_state, signal_stop_update)
4009 (signal_print_update, signal_pass_update)
4010 (update_signals_program_target, clear_exit_convenience_vars)
4011 (displaced_step_dump_bytes, update_observer_mode)
4012 (signal_catch_update, gdb_signal_from_command): Move
4014 * infrun.h: ... to this new file.
4015 * amd64-tdep.c: Include infrun.h.
4016 * annotate.c: Include infrun.h.
4017 * arch-utils.c: Include infrun.h.
4018 * arm-linux-tdep.c: Include infrun.h.
4019 * arm-tdep.c: Include infrun.h.
4020 * break-catch-sig.c: Include infrun.h.
4021 * breakpoint.c: Include infrun.h.
4022 * common/agent.c: Include infrun.h instead of inferior.h.
4023 * corelow.c: Include infrun.h.
4024 * event-top.c: Include infrun.h.
4025 * go32-nat.c: Include infrun.h.
4026 * i386-tdep.c: Include infrun.h.
4027 * inf-loop.c: Include infrun.h.
4028 * infcall.c: Include infrun.h.
4029 * infcmd.c: Include infrun.h.
4030 * infrun.c: Include infrun.h.
4031 * linux-fork.c: Include infrun.h.
4032 * linux-nat.c: Include infrun.h.
4033 * linux-thread-db.c: Include infrun.h.
4034 * monitor.c: Include infrun.h.
4035 * nto-tdep.c: Include infrun.h.
4036 * procfs.c: Include infrun.h.
4037 * record-btrace.c: Include infrun.h.
4038 * record-full.c: Include infrun.h.
4039 * remote-m32r-sdi.c: Include infrun.h.
4040 * remote-mips.c: Include infrun.h.
4041 * remote-notif.c: Include infrun.h.
4042 * remote-sim.c: Include infrun.h.
4043 * remote.c: Include infrun.h.
4044 * reverse.c: Include infrun.h.
4045 * rs6000-tdep.c: Include infrun.h.
4046 * s390-linux-tdep.c: Include infrun.h.
4047 * solib-irix.c: Include infrun.h.
4048 * solib-osf.c: Include infrun.h.
4049 * solib-svr4.c: Include infrun.h.
4050 * target.c: Include infrun.h.
4051 * top.c: Include infrun.h.
4052 * windows-nat.c: Include infrun.h.
4053 * mi/mi-interp.c: Include infrun.h.
4054 * mi/mi-main.c: Include infrun.h.
4055 * python/py-threadevent.c: Include infrun.h.
4057 2014-05-22 Pedro Alves <palves@redhat.com>
4059 * infrun.c (handle_inferior_event): Store the exit code for
4060 --return-child-result here, instead of ...
4061 (print_exited_reason): ... here.
4063 2014-05-21 Pedro Alves <palves@redhat.com>
4066 * gdbthread.h (struct thread_control_state): New field
4068 * infrun.c (follow_fork): Copy the new thread control field to the
4070 (clear_proceed_status_thread): Clear the new thread control field.
4071 (proceed): Set the new thread control field.
4072 * interps.h (command_interp): Declare.
4073 * interps.c (command_interpreter): New global.
4074 (command_interp): New function.
4075 (interp_exec): Set `command_interpreter' while here.
4076 * cli-out.c (cli_uiout_dtor): New function.
4077 (cli_ui_out_impl): Install it.
4078 * mi/mi-interp.c: Include cli-out.h.
4079 (mi_cmd_interpreter_exec): Add comment.
4080 (restore_current_uiout_cleanup): New function.
4081 (ui_out_free_cleanup): New function.
4082 (mi_on_normal_stop): If finishing an execution command started by
4083 a CLI command, or any kind of breakpoint-like event triggered,
4084 print the stop event to the output (CLI) stream.
4085 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4087 2014-05-21 Pedro Alves <palves@redhat.com>
4089 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4090 current source line having changed.
4091 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4092 * infrun.c (normal_stop): Adjust call to
4093 set_current_sal_from_frame.
4094 * source.c (clear_lines_listed_range): New function.
4095 (set_current_source_symtab_and_line, identify_source_line): Clear
4096 the lines listed range.
4097 (line_info): Handle the first "info line" after the current source
4098 line having changed.
4099 * stack.c (print_stack_frame): Remove center handling.
4100 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4103 2014-05-21 Pedro Alves <palves@redhat.com>
4105 * inf-child.c (inf_child_mourn_inferior): New function.
4106 * inf-child.h (inf_child_mourn_inferior): New declaration.
4107 * darwin-nat.c (darwin_mourn_inferior): Use
4108 inf_child_mourn_inferior.
4109 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4110 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4111 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4112 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4113 * windows-nat.c (windows_mourn_inferior): Likewise.
4115 2014-05-21 Doug Evans <xdje42@gmail.com>
4117 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4119 2014-05-21 Doug Evans <xdje42@gmail.com>
4121 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4122 (gdbscm_out_of_range_error): Ditto.
4123 (gdbscm_memory_error): Ditto.
4124 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4125 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4126 (gdbscm_out_of_range_error): Update.
4127 (gdbscm_memory_error): Update.
4128 (gdbscm_scm_to_target_string_unsafe): Delete.
4130 2014-05-21 Pedro Alves <palves@redhat.com>
4132 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4134 (inf_child_open_target): New function.
4135 (inf_child_open): Use inf_child_open_target to push the target
4136 instead of erroring out.
4137 (inf_child_disconnect, inf_child_close)
4138 (inf_child_maybe_unpush_target): New functions.
4139 (inf_child_target): Install inf_child_disconnect and
4140 inf_child_close. Store a pointer to the returned object.
4141 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4143 * target.c (auto_connect_native_target): New global.
4144 (show_default_run_target): New function.
4145 (find_default_run_target): Return NULL if automatically connecting
4146 to the native target is disabled.
4147 (_initialize_target): Install set/show auto-connect-native-target.
4148 * NEWS: Mention "set auto-connect-native-target", and "target
4150 * linux-nat.c (super_close): New global.
4151 (linux_nat_close): Call super_close.
4152 (linux_nat_add_target): Store a pointer to the base class's
4154 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4155 inf_child_maybe_unpush.
4156 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4158 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4159 the inferior. Use inf_child_maybe_unpush_target.
4160 (inf_ttrace_attach): Don't push the target if it is already
4162 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4163 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4164 after mourning the inferior. Use inf_child_maybe_unpush_target.
4165 (darwin_attach_pid): Don't push the target if it is already
4167 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4168 mourning the inferior. Use inf_child_maybe_unpush_target.
4169 (gnu_detach): Use inf_child_maybe_unpush_target.
4170 * go32-nat.c (go32_create_inferior): Don't push the target if it
4172 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4173 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4174 (procfs_open): Rename to ...
4175 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4176 comments. Can target_preopen before changing node. Call
4177 inf_child_open_target to push the target explicitly.
4178 (procfs_attach): Don't push the target if it is already pushed.
4179 (procfs_detach): Use inf_child_maybe_unpush_target.
4180 (procfs_create_inferior): Don't push the target if it is already
4182 (nto_native_ops): New global.
4183 (procfs_open): Reimplement.
4184 (procfs_native_open): New function.
4185 (init_procfs_targets): Install procfs_native_open as to_open of
4186 "target native". Store a pointer to the "native" target in
4188 * procfs.c (procfs_attach): Don't push the target if it is already
4190 (procfs_detach): Use inf_child_maybe_unpush_target.
4191 (procfs_mourn_inferior): Only unpush the target after mourning the
4192 inferior. Use inf_child_maybe_unpush_target.
4193 (procfs_init_inferior): Don't push the target if it is already
4195 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4196 if it is already pushed.
4198 2014-05-21 Pedro Alves <palves@redhat.com>
4200 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4201 and "procfs" targets are now called "native" instead.
4203 2014-05-21 Pedro Alves <palves@redhat.com>
4205 * go32-nat.c (go32_open): Delete.
4206 (go32_target): Don't override the to_open method.
4208 2014-05-21 Pedro Alves <palves@redhat.com>
4210 * nto-procfs.c (procfs_can_run): New function.
4211 (nto_procfs_ops): New global.
4212 (init_procfs_targets): New, based on procfs_target. Install
4213 "target native" in addition to "target procfs".
4214 (_initialize_procfs): Call init_procfs_targets instead of adding
4217 2014-05-21 Pedro Alves <palves@redhat.com>
4219 * windows-nat.c (windows_target): Don't override to_shortname,
4220 to_longname or to_doc.
4222 2014-05-21 Pedro Alves <palves@redhat.com>
4224 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4227 2014-05-21 Pedro Alves <palves@redhat.com>
4229 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4230 to_shortname, to_longname or to_doc.
4232 2014-05-21 Pedro Alves <palves@redhat.com>
4234 * go32-nat.c (go32_target): Don't override to_shortname,
4235 to_longname or to_doc.
4237 2014-05-21 Pedro Alves <palves@redhat.com>
4239 * inf-child.c (inf_child_open): Remove mention of "child".
4240 (inf_child_target): Rename target to "native" instead of "child".
4242 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4244 * Makefile.in (SFILES): Delete "regset.c".
4245 (COMMON_OBS): Delete "regset.o".
4247 * regset.h (regset_alloc): Delete prototype.
4249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4251 * sparc-linux-tdep.c (sparc32_linux_gregset)
4252 (sparc32_linux_fpregset): New static regset structures.
4253 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4254 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4256 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4257 (sparc64_linux_fpregset): New static regset structures.
4258 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4259 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4260 New static regset structures.
4261 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4262 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4263 New static regset structures.
4264 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4265 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4266 New static regset structures.
4267 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4268 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4269 New static regset structures.
4270 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4272 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4274 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4275 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4276 register maps ("regmaps") from "*regset" to "*regmap". Do this
4277 for all regmap types and variables.
4278 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4279 (sparc32_linux_supply_core_gregset)
4280 (sparc32_linux_collect_core_gregset)
4281 (sparc32_linux_supply_core_fpregset)
4282 (sparc32_linux_collect_core_fpregset): Likewise.
4283 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4284 (sparc_gregmap, sparc_fpregmap): ... these.
4285 (sparc_supply_gregset, sparc_collect_gregset)
4286 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4287 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4288 (_initialize_sparc_nat): Rename regmaps.
4289 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4290 (sparc_gregmap, sparc_fpregmap): ... these.
4291 (sparc_supply_gregset, sparc_collect_gregset)
4292 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4293 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4295 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4296 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4298 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4300 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4301 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4302 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4304 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4305 (sparc32_bsd_fpregset): Rename to...
4306 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4307 (sparc32_bsd_fpregmap): ... these.
4308 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4309 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4310 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4311 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4312 (struct sparc_gregmap, struct sparc_fpregmap)
4313 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4314 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4315 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4316 (sparc32_supply_regset, sparc32_collect_gregset)
4317 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4319 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4320 (sparc64_linux_ptrace_gregmap): ... this.
4321 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4322 (_initialize_sparc64_linux_nat): Rename regmaps.
4323 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4324 (sparc64_linux_core_gregmap): ... this.
4325 (sparc64_linux_supply_core_gregset)
4326 (sparc64_linux_collect_core_gregset)
4327 (sparc64_linux_supply_core_fpregset)
4328 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4329 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4330 (sparc64_sol2_fpregset): Rename to...
4331 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4332 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4333 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4335 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4336 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4337 (sparc64_bsd_fpregset): Rename to...
4338 (struct sparc_gregmap, sparc64_sol2_gregmap)
4339 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4340 (sparc64_bsd_fpregmap): ... these.
4341 (sparc64_supply_gregset, sparc64_collect_gregset)
4342 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4344 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4345 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4346 (sparc64fbsd_gregmap): ... this.
4347 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4348 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4350 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4351 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4352 (sparc64nbsd_collect_fpregset): Likewise.
4353 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4354 (sparc64nbsd_gregmap): ... this.
4355 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4357 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4358 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4359 (sparc64obsd_gregmap): ... this.
4360 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4362 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4363 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4364 (sparc32nbsd_gregmap): ... this.
4365 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4368 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4370 * score-tdep.c (score7_linux_gregset): New static regset
4372 (score7_linux_regset_from_core_section): Remove dynamic regset
4374 (score_gdbarch_init): Drop allocation of tdep structure.
4375 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4377 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4379 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4381 (am33_regset_from_core_section): Remove dynamic regset
4384 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4386 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4387 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4389 (mips_linux_regset_from_core_section): Remove dynamic regset
4391 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4392 'gregset64', 'fpregset', and 'fpregset64'.
4393 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4394 deleted tdep fields.
4396 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4398 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4400 (amd64_regset_from_core_section): Remove dynamic regset
4402 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4404 (amd64obsd_regset_from_core_section): Remove dynamic regset
4406 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4408 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4409 x86-common regset supply function.
4410 * i386-tdep.c (i386_collect_gregset): Make static.
4411 (i386_gregset): New global regset structure.
4412 (i386_fpregset, i386_xstateregset): New static regset structures.
4413 (i386_regset_from_core_section): Remove dynamic regset
4415 (i386_gdbarch_init): Remove initialization of tdep fields
4416 'gregset', 'fpregset', and 'xstateregset'.
4417 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4418 'fpregset', and 'xstateregset'.
4419 (i386_collect_gregset): Remove prototype.
4420 (i386_gregset): New declaration.
4421 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4423 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4426 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4428 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4429 (arm_linux_vfpregset): New static regset structures.
4430 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4432 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4433 and 'vfpregset' fields.
4435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4437 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4438 (aarch64_linux_fpregset): New static regset structures.
4439 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4440 of regset structures.
4441 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4446 * regset.h (struct regset): Remove gdbarch field.
4447 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4448 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4449 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4451 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4452 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4453 (ppc32_linux_vsxregset): Likewise.
4454 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4455 via the regcache instead of the regset.
4456 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4457 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4458 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4459 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4462 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4464 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4465 Constify structures.
4466 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4467 (alphanbsd_aout_gregset): Likewise.
4468 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4469 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4471 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4472 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4474 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4475 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4476 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4477 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4478 * m88k-tdep.c (m88k_gregset): Likewise.
4479 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4480 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4481 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4482 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4483 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4484 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4485 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4486 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4487 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4489 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4490 * sh-tdep.h (sh_corefile_gregset): Likewise.
4491 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4492 * vax-tdep.c (vax_gregset): Likewise.
4494 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4496 Fix TLS access for -static -pthread.
4497 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4498 (try_thread_db_load_1): Initialize it.
4499 (thread_db_get_thread_local_address): Call it if LM is zero.
4500 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4501 * target.h (struct target_ops) (to_get_thread_local_address): Add
4502 load_module_addr comment.
4504 2014-05-21 Pedro Alves <palves@redhat.com>
4506 * dcache.c (dcache_read_memory_partial): If reading the cache line
4507 fails, fallback to reading just the memory the caller wanted.
4509 2014-05-20 Doug Evans <dje@google.com>
4511 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4512 instead of get_current_arch.
4514 2014-05-20 Pedro Alves <palves@redhat.com>
4516 * NEWS: Mention that compare-sections now works with all targets.
4518 * remote.c (PACKET_qCRC): New enum value.
4519 (remote_verify_memory): Don't send qCRC if the target has no
4520 execution. Use packet_support/packet_ok. If the target doesn't
4521 support the qCRC packet, fallback to a deep memory copy.
4522 (compare_sections_command): Say "target image" instead of "remote
4524 (_initialize_remote): Add PACKET_qCRC to the list of config
4525 packets that have no associated command. Extend comment.
4526 * target.c (simple_verify_memory, default_verify_memory): New
4528 * target.h (struct target_ops) <to_verify_memory>: Default to
4529 default_verify_memory.
4530 (simple_verify_memory): New declaration.
4531 * target-delegates.c: Regenerate.
4533 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4535 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4537 2014-05-20 Hui Zhu <hui@codesourcery.com>
4538 Yao Qi <yao@codesourcery.com>
4541 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4542 and change address of sp and pc.
4544 2014-05-19 Tom Tromey <tromey@redhat.com>
4546 * gdbtypes.c (rank_function): Use XNEWVEC.
4547 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4549 2014-05-19 Doug Evans <dje@google.com>
4551 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4552 build_type_unit_groups and moved closer to only caller. Remove
4553 arguments. All references updated. Remove outdated .gdb_index
4555 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4556 build_type_psymtabs_1.
4558 2014-05-19 Doug Evans <dje@google.com>
4560 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4561 n_type_unit_groups, all_type_unit_groups. All uses removed.
4562 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4563 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4564 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4565 (add_type_unit_group_to_table): Delete.
4567 2014-05-19 Doug Evans <dje@google.com>
4569 * eval.c (evaluate_subexp_standard): Add some comments.
4571 2014-05-17 Doug Evans <xdje42@gmail.com>
4573 * progspace.c (remove_program_space): Delete, unused.
4574 * progspace.h (remove_program_space): Ditto.
4576 2014-05-17 Doug Evans <xdje42@gmail.com>
4578 * inferior.c (prune_inferiors): Fix comment.
4579 (remove_inferior_command): Call prune_program_spaces.
4581 2014-05-16 Doug Evans <dje@google.com>
4583 New command line option -D.
4585 * main.c (set_gdb_data_directory): New function.
4586 (captured_main): Recognize -D. Flag error for --data-directory "".
4587 Call set_gdb_data_directory.
4588 (print_gdb_help): Print --data-directory, -D.
4589 * main.h (set_gdb_data_directory): Declare.
4590 * top.c (staged_gdb_datadir): New static global.
4591 (set_gdb_datadir): Call set_gdb_data_directory
4592 (show_gdb_datadir): New function.
4593 (init_main): Update init of data-directory parameter.
4595 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4597 Import the "dirfd" gnulib module.
4598 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4599 * gnulib/aclocal.m4: Update.
4600 * gnulib/config.in: Update.
4601 * gnulib/configure: Update.
4602 * gnulib/import/Makefile.am: Update.
4603 * gnulib/import/Makefile.in: Update.
4604 * gnulib/import/dirfd.c: New.
4605 * gnulib/import/m4/dirfd.m4: New.
4606 * gnulib/import/m4/gnulib-cache.m4: Update.
4607 * gnulib/import/m4/gnulib-comp.m4: Update.
4609 2014-05-16 Pierre Muller <muller@sourceware.org>
4610 Yao Qi <yao@codesourcery.com>
4612 * valprint.c (print_wchar): Move the code on checking whether
4613 W is a printable wide char to the default branch of switch
4614 statement below. Call wchar_printable instead of gdb_iswprint.
4616 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4618 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4619 ldr.w and ldrd instructions.
4621 2014-05-15 Doug Evans <dje@google.com>
4623 * dwarf2read.c (read_structure_type): Delete outdated comments.
4625 2014-05-14 Tom Tromey <tromey@redhat.com>
4627 * macrocmd.c (print_macro_definition): Reindent.
4629 2014-05-13 Doug Evans <xdje42@gmail.com>
4631 * python/py-cmd.c (cmdpy_completer): Add comment.
4632 (completers): Make const.
4634 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4636 * infrun.c (resume): Remove should_resume (unused). Move up
4637 declaration of resume_ptid.
4639 2014-05-13 Tom Tromey <tromey@redhat.com>
4641 * language.h (unop_type_check): Remove.
4642 (binop_type_check): Don't declare.
4644 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4646 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4647 call to regcache_raw_collect.
4649 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4651 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4652 mi_console->quote as the quoting character.
4654 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4656 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4658 2014-04-29 Tom Tromey <tromey@redhat.com>
4660 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4661 "show debug varobj".
4663 2014-05-07 Kyle McMartin <kyle@redhat.com>
4665 Pushed by Joel Brobecker <brobecker@adacore.com>.
4666 * aarch64-tdep.c (aarch64_software_single_step): New function.
4667 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4668 with aarch64_software_single_step.
4670 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4674 2014-05-05 Keith Seitz <keiths@redhat.com>
4676 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4677 variable or history value is successfully parsed.
4679 2014-05-05 Yao Qi <yao@codesourcery.com>
4680 Pedro Alves <palves@redhat.com>
4682 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4683 address of blocks that intersects the requested range. Trim
4684 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4686 * ctf.c (ctf_xfer_partial): Likewise.
4688 2014-05-05 Yao Qi <yao@codesourcery.com>
4690 * printcmd.c (display_command): Remove the check to
4691 target_has_execution.
4693 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4695 * ppcobsd-nat.c: Include "obsd-nat.h".
4696 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4698 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4700 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4702 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4703 and 16-bit signed and unsigned arguments. Update comment.
4704 (stap_parse_probe_arguments): Extend code to handle such
4705 arguments. Use warning instead of complaint to notify about
4706 unrecognized bitness.
4708 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4710 PR breakpoints/16889
4711 * stap-probe.c (stap_parse_probe_arguments): Simplify
4712 check for non-prefixed probes (i.e., probes whose
4713 arguments do not start with "N@"). Always set the
4714 argument type to a sane value.
4716 2014-05-01 David Taylor <dtaylor@emc.com>
4718 * remote.c (compare_sections_command): Add -r option to compare
4719 all loadable read-only sections.
4721 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4723 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4724 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4726 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4727 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4728 Remove unused CORE_ADDR argument. Update all callers.
4730 2014-04-29 Pedro Alves <palves@redhat.com>
4732 * remote.c (struct packet_config) <detect>: Extend comment.
4733 (add_packet_config_cmd): Don't set the config's detect or support
4735 (init_all_packet_configs): Also initialize the config's 'detect'
4737 (reset_all_packet_configs_support): New function.
4738 (remote_open_1): Call reset_all_packet_configs_support instead of
4739 init_all_packet_configs.
4740 (_initialize_remote): Initialize all packet configs. Assert that
4741 all packets have an associated command, except a few known
4744 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4746 * dwarf2read.c (read_subrange_type): Handle dynamic
4747 DW_AT_lower_bound attributes.
4749 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4751 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4752 dynamic bounds before computing its upper bound.
4753 (ada_discrete_type_low_bound): Same as above with the lower bound.
4755 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4757 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4758 range types. Adjust the array handling implementation to
4759 take advantage of this change.
4760 (resolve_dynamic_range): New function, mostly extracted from
4761 resolve_dynamic_bounds.
4762 (resolve_dynamic_array): New function, mostly extracted from
4763 resolve_dynamic_bounds.
4764 (resolve_dynamic_bounds): Delete.
4765 (resolve_dynamic_type): Reimplement. Add handling of
4766 TYPE_CODE_RANGE types.
4768 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4770 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4771 handling of parallel ___XA types.
4773 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4775 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4776 unnecessary second call to static_unwrap_type.
4778 2014-04-27 Hui Zhu <hui@codesourcery.com>
4780 * stack.c (print_frame_info): Call do_gdb_disassembly with
4781 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4783 2014-04-26 Doug Evans <xdje42@gmail.com>
4785 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4787 2014-04-25 Pedro Alves <palves@redhat.com>
4790 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4791 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4792 and newline from built string.
4793 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4794 (linux_ptrace_attach_fail_reason): ... this.
4795 * linux-nat.c (linux_nat_attach): Adjust to use
4796 linux_ptrace_attach_fail_reason.
4798 2014-04-25 Pedro Alves <palves@redhat.com>
4800 * remote.c (struct remote_state): Remove multi_process_aware,
4801 non_stop_aware, cond_tracepoints, cond_breakpoints,
4802 breakpoint_commands, fast_tracepoints, static_tracepoints,
4803 install_in_trace, disconnected_tracing,
4804 enable_disable_tracepoints, string_tracing, and
4805 augmented_libraries_svr4_read fields.
4806 (remote_multi_process_p): Move further below in the file.
4807 (struct packet_config): Add comments.
4808 (update_packet_config): Delete function.
4809 (show_packet_config_cmd): Use packet_config_support.
4810 (add_packet_config_cmd): Use NULL as set callback.
4811 (packet_ok): "set remote foo-packet"-style commands no longer
4812 change config->supported -- adjust.
4813 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4814 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4815 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4816 (PACKET_QNonStop, PACKET_multiprocess_feature)
4817 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4818 (PACKET_DisconnectedTracing_feature)
4819 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4820 (set_remote_protocol_packet_cmd): Delete function.
4821 (packet_config_support, packet_support): New functions.
4822 (set_remote_protocol_Z_packet_cmd): Don't call
4823 update_packet_config.
4824 (remote_query_attached, remote_pass_signals)
4825 (remote_program_signals, remote_threads_info)
4826 (remote_threads_extra_info, remote_start_remote): Use
4828 (remote_start_remote): Use packet_config_support and
4830 (init_all_packet_configs): Set all packets to unknown support,
4831 instead of calling update_packet_config.
4832 (remote_check_symbols): Use packet_support.
4833 (remote_supported_packet): Unconditionally set the packet config's
4835 (remote_multi_process_feature, remote_non_stop_feature)
4836 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4837 (remote_breakpoint_commands_feature)
4838 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4839 (remote_install_in_trace_feature)
4840 (remote_disconnected_tracing_feature)
4841 (remote_enable_disable_tracepoint_feature)
4842 (remote_string_tracing_feature)
4843 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4844 (remote_protocol_features): Adjust to use remote_supported_packet
4845 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4846 "ConditionalTracepoints", "ConditionalBreakpoints",
4847 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4848 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4849 "EnableDisableTracepoints", and "tracenz".
4850 (remote_query_supported): Use packet_support.
4851 (remote_open_1): Adjust.
4852 (extended_remote_attach_1): Use packet_support. Switch on the
4853 result of packet_ok instead of checking whether the packet ended
4855 (remote_vcont_resume): Use packet_support.
4856 (remote_resume, remote_stop_ns, fetch_register_using_p)
4857 (remote_prepare_to_store, store_register_using_P)
4858 (check_binary_download, remote_write_bytes): Use packet_support.
4859 (remote_vkill): Use packet_support. Switch on the result of
4860 packet_ok instead of checking whether the packet ended up
4862 (extended_remote_supports_disable_randomization): Use
4864 (extended_remote_run): Switch on the result of packet_ok instead
4865 of checking whether the packet ended up disabled.
4866 (remote_insert_breakpoint, remote_remove_breakpoint)
4867 (remote_insert_watchpoint, remote_remove_watchpoint)
4868 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4870 (remote_search_memory): Use packet_config_support.
4871 (remote_get_thread_local_address, remote_get_tib_address)
4872 (remote_hostio_send_command, remote_can_execute_reverse): Use
4874 (remote_supports_cond_tracepoints)
4875 (remote_supports_cond_breakpoints)
4876 (remote_supports_fast_tracepoints)
4877 (remote_supports_static_tracepoints)
4878 (remote_supports_install_in_trace)
4879 (remote_supports_enable_disable_tracepoint)
4880 (remote_supports_string_tracing)
4881 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4882 the packet config says the feature is enabled or disabled.
4883 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4884 (remote_get_trace_status): Use packet_support.
4885 (remote_set_disconnected_tracing): Adjust to check whether the
4886 feature is enabled with packet_support.
4887 (remote_set_trace_buffer_size, remote_use_agent)
4888 (remote_can_use_agent, remote_supports_btrace): Use
4890 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4891 Use packet_config_support.
4892 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4893 the packet config says the feature is enabled or disabled.
4894 (set_range_stepping): Use packet_support.
4896 2014-04-25 Tom Tromey <tromey@redhat.com>
4898 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4901 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4903 * NEWS: Mention support for C99 variable length arrays.
4905 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4907 * ada-lang.c (standard_exc): Expand introductory comment.
4909 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4910 Walfred Tedeschi <walfred.tedeschi@intel.com>
4912 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4914 (amd64_linux_read_description): Add code to handle AVX512 xstate
4915 mask and return respective tdesc.
4916 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4917 and features/i386/x32-avx512-linux.c.
4918 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4919 (amd64_linux_core_read_description): Add code to handle AVX512
4920 xstate mask and return respective tdesc.
4921 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4922 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4924 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4925 (tdesc_amd64_avx512_linux): New prototype.
4926 (tdesc_x32_avx512_linux): Likewise.
4927 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4928 features/i386/x32-avx512.c.
4929 (amd64_ymm_avx512_names): New register names for pseudo
4931 (amd64_ymmh_avx512_names): New register names for raw registers
4933 (amd64_k_names): New register names for K registers.
4934 (amd64_zmmh_names): New register names for ZMM raw registers.
4935 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4936 (amd64_xmm_avx512_names): New register names for XMM16-31
4938 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4940 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4941 if feature is present.
4942 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4943 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4944 (AMD64_NUM_REGS): Adjust to new number of registers.
4945 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4946 registers supplied via XSTATE by AVX512 registers.
4947 (i386_linux_read_description): Add case for AVX512.
4948 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4949 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4950 (i386_linux_core_read_description): Add case for AVX512.
4951 (i386_linux_init_abi): Install supported register note section
4953 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4955 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4956 registers to be number of zmm7h + 1.
4957 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4958 * i386-tdep.c: Include features/i386/i386-avx512.c.
4959 (i386_zmm_names): Add ZMM pseudo register names array.
4960 (i386_zmmh_names): Add ZMM raw register names array.
4961 (i386_k_names): Add K raw register names array.
4962 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4963 registers. AVX512 has 16 more ZMM registers than there are YMM
4965 (i386_zmmh_regnum_p): Add function to look up register number of
4967 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4968 (i386_k_regnum_p): Likewise for K raw registers.
4969 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4970 registers added by AVX512.
4971 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4972 registers added by AVX512.
4973 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4975 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4976 (i386_pseudo_register_name): Add ZMM pseudo registers.
4977 (i386_zmm_type): Construct and return vector registers type for ZMM
4979 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4980 ZMM0-31 pseudo registers and K registers.
4981 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4982 and YMM16-31 registers from register cache.
4983 (i386_pseudo_register_write): Add code to write K, ZMM and
4985 (i386_register_reggroup_p): Add code to include/exclude AVX512
4986 registers in/from respective register groups.
4987 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4988 registers if feature is present in xcr0.
4989 (i386_gdbarch_init): Add code to initialize AVX512 feature
4990 variables in tdep structure, wire in pseudo registers and call
4991 initialize_tdesc_i386_avx512.
4992 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4994 (i386_regnum): Add AVX512 registers.
4995 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4996 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4997 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4998 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5000 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5001 (i386_ymm_avx512_regnum_p): Likewise.
5002 (i386_k_regnum_p): Likewise.
5003 (i386_zmm_regnum_p): Likewise.
5004 (i386_zmmh_regnum_p): Likewise.
5005 * i387-tdep.c : Update year in copyright notice.
5006 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5008 (XSAVE_YMM_AVX512_ADDR): New macro.
5009 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5011 (XSAVE_XMM_AVX512_ADDR): New macro.
5012 (xsave_avx512_k_offset): New table for K register offsets in
5014 (XSAVE_AVX512_K_ADDR): New macro.
5015 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5017 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5018 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5020 (i387_collect_xsave): Add code to collect AVX512 registers from
5022 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5023 of XMM16-31 registers.
5024 (I387_NUM_K_REGS): New define for number of K registers.
5025 (I387_K0_REGNUM): New define for K0 register number.
5026 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5027 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5028 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5030 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5031 (I387_XMM16_REGNUM): New define for XMM16 register number.
5032 (I387_YMM0_REGNUM): New define for YMM0 register number.
5033 (I387_KEND_REGNUM): New define for last K register number.
5034 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5035 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5037 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5039 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5041 * features/Makefile: Add AVX512 related files.
5042 * features/i386/32bit-avx512.xml: New file.
5043 * features/i386/64bit-avx512.xml: Likewise.
5044 * features/i386/amd64-avx512-linux.c: Likewise.
5045 * features/i386/amd64-avx512-linux.xml: Likewise.
5046 * features/i386/amd64-avx512.c: Likewise.
5047 * features/i386/amd64-avx512.xml: Likewise.
5048 * features/i386/i386-avx512-linux.c: Likewise.
5049 * features/i386/i386-avx512-linux.xml: Likewise.
5050 * features/i386/i386-avx512.c: Likewise.
5051 * features/i386/i386-avx512.xml: Likewise.
5052 * features/i386/x32-avx512-linux.c: Likewise.
5053 * features/i386/x32-avx512-linux.xml: Likewise.
5054 * features/i386/x32-avx512.c: Likewise.
5055 * features/i386/x32-avx512.xml: Likewise.
5056 * regformats/i386/amd64-avx512-linux.dat: New file.
5057 * regformats/i386/amd64-avx512.dat: Likewise.
5058 * regformats/i386/i386-avx512-linux.dat: Likewise.
5059 * regformats/i386/i386-avx512.dat: Likewise.
5060 * regformats/i386/x32-avx512-linux.dat: Likewise.
5061 * regformats/i386/x32-avx512.dat: Likewise.
5062 * NEWS: Add note about new support for AVX512.
5065 2014-04-23 Pedro Alves <palves@redhat.com>
5067 * breakpoint.c (insert_bp_location): Tolerate errors if the
5068 breakpoint is set in a user-loaded objfile.
5069 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5070 location is marked shlib_disabled. If the breakpoint is set in a
5071 user-loaded objfile is a GDB-side memory breakpoint, validate it
5072 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5073 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5075 * mem-break.c (memory_validate_breakpoint): New function.
5076 * objfiles.c (userloaded_objfile_contains_address_p): New
5078 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5079 * target.h (memory_validate_breakpoint): New declaration.
5081 2014-04-23 Pedro Alves <palves@redhat.com>
5083 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5084 the breakpoint is set in a shared library, only suppress
5085 errors for software breakpoints, not hardware breakpoints.
5087 2014-04-22 Pedro Alves <palves@redhat.com>
5089 * infrun.c (schedlock_applies): New function, factored out from
5090 find_thread_needs_step_over.
5091 (find_thread_needs_step_over): Use it.
5092 (switch_back_to_stepped_thread): Always clear trap_expected if the
5093 step over is finished. Return early if scheduler locking applies.
5094 Look for the stepping thread and a potential step-over thread with
5096 (currently_stepping_or_nexting_callback): Delete.
5098 2014-04-22 Nick Clifton <nickc@redhat.com>
5100 * NEWS: Mention that ARM sim now supports tracing.
5102 2014-04-22 Yao Qi <yao@codesourcery.com>
5104 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5106 * tracefile.c (tracefile_fetch_registers): ... it. New
5108 * tracefile.h (tracefile_fetch_registers): Declare.
5109 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5110 tracefile_fetch_registers.
5112 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5115 * windows-nat.c (thread_rec): Don't display a warning when
5116 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5117 fails for any reason, set th->suspended to -1, so that we don't
5118 try to resume such a thread. Also, don't return NULL in these
5119 cases, to avoid completely ruin the session due to "PC register is
5120 not available" error.
5121 (do_windows_fetch_inferior_registers): Check errors in
5122 GetThreadContext call.
5123 (windows_continue): Accept an additional argument KILLED; if not
5124 zero, ignore errors in the SetThreadContext call, since the
5125 inferior was killed and is shutting down.
5126 (windows_resume, get_windows_debug_event)
5127 (windows_create_inferior, windows_mourn_inferior)
5128 (windows_kill_inferior): All callers of windows_continue changed
5129 to adjust to its new calling sequence.
5131 2014-04-19 Yao Qi <yao@codesourcery.com>
5133 * ctf.c (ctf_open): Call post_create_inferior.
5135 2014-04-19 Yao Qi <yao@codesourcery.com>
5137 * ctf.c (handle_id): New static variable.
5138 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5139 value. Get the declaration of event "register" and get length
5140 of field "contents".
5142 2014-04-19 Yao Qi <yao@codesourcery.com>
5144 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5146 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5148 * valops.c (oload_method_static): Remove unnecessary argument
5149 METHOD. Update all callers.
5151 2014-04-18 Pedro alves <palves@redhat.com>
5152 Tom Tromey <tromey@redhat.com>
5155 * frame.c (get_prev_frame_1): Rename to ...
5156 (get_prev_frame_always): ... this, and make extern. Adjust.
5157 (skip_artificial_frames): Use get_prev_frame_always.
5158 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5159 (get_frame_unwind_stop_reason): Adjust to rename.
5160 * frame.h (get_prev_frame_always): Declare.
5161 * inline-frame.c: Include frame.h.
5162 (inline_frame_this_id): Use get_prev_frame_always.
5164 2014-04-18 Tristan Gingold <gingold@adacore.com>
5166 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5167 code by using bfd_mach_o_get_base_address.
5169 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5171 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5172 (spu_ax_pseudo_register_collect): New function.
5173 (spu_ax_pseudo_register_push_stack): Likewise.
5174 (spu_dwarf_reg_to_regnum): Likewise.
5175 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5177 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5179 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5180 Replace FRAME argument with FRAME_ID.
5181 * gdbarch.c, gdbarch.h: Regenerate.
5182 * findvar.c (default_value_from_register): Add GDBARCH argument;
5183 replace FRAME by FRAME_ID. No longer call get_frame_id.
5184 (value_from_register): Update call to gdbarch_value_from_register.
5185 * value.h (default_value_from_register): Update prototype.
5186 * s390-linux-tdep.c (s390_value_from_register): Update interface
5187 and call to default_value_from_register.
5188 * spu-tdep.c (spu_value_from_register): Likewise.
5190 * findvar.c (address_from_register): Remove TYPE argument.
5191 Do not call value_from_register; use gdbarch_value_from_register
5192 with null_frame_id instead.
5193 * value.h (address_from_register): Update prototype.
5194 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5195 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5196 address_from_register interface change.
5198 2014-04-17 Yao Qi <yao@codesourcery.com>
5200 * gdbtypes.h: Update comments to link to types and macros'
5203 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5205 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5207 2014-04-16 Keith Seitz <keiths@redhat.com>
5210 * dwarf2read.c (skip_one_die): Check that all relative-offset
5211 sibling DIEs fall within range of the current reader's buffer.
5212 (read_partial_die): Likewise.
5214 2014-04-16 Keith Seitz <keiths@redhat.com>
5217 * cp-namespace.c (lookup_symbol_file): If the type name of
5218 `this' is NULL, return immediately.
5220 2014-04-14 Keith Seitz <keiths@redhat.com>
5223 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5224 from symbol_matches_domain in symtab.c. All local callers
5225 of symbol_matches_domain updated.
5226 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5227 search STRUCT_DOMAIN.
5228 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5229 independently. standard_lookup will do that automatically.
5230 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5231 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5232 (cp_lookup_symbol_in_namespace): Likewise.
5233 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5234 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5235 may return a STRUCT_DOMAIN match.
5236 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5237 * cp-support.c: Include language.h.
5238 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5240 * psymtab.c (match_partial_symbol): Compare the requested
5241 domain with the symbol's domain directly.
5242 (lookup_partial_symbol): Likewise.
5243 * symtab.c (lookup_symbol_in_language): Explain when/why
5244 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5245 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5246 appropriate languages.
5247 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5248 and moved to ada-lang.c
5249 (lookup_block_symbol): Explain that this function only returns
5250 symbol matching the requested DOMAIN.
5251 Compare the requested domain with the symbol's domain directly.
5252 (iterate_over_symbols): Compare the requested domain with the
5253 symbol's domain directly.
5254 * symtab.h (symbol_matches_domain): Remove.
5256 2014-04-14 Tom Tromey <tromey@redhat.com>
5259 * c-exp.y (type_aggregate_p): New function.
5260 (qualified_name, classify_inner_name): Use it.
5261 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5262 and TYPE_TARGET_TYPE of an enum type.
5263 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5265 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5266 handle TYPE_DECLARED_CLASS.
5267 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5269 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5270 * valops.c (enum_constant_from_type): New function.
5271 (value_aggregate_elt): Use it.
5272 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5275 2014-04-14 Tom Tromey <tromey@redhat.com>
5277 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5278 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5280 * value.h (value_aggregate_elt): Update.
5282 2014-04-14 Tom Tromey <tromey@redhat.com>
5284 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5286 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5288 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5289 (evaluate_subexp_standard): Pass noside argument.
5290 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5291 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5292 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5293 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5294 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5296 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5298 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5299 points to a constant blob.
5301 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5303 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5304 property and store it as the high bound and flag the range accordingly.
5305 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5306 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5307 * gdbtypes.h (enum range_flags): New enum.
5308 (struct range_bounds): Add flags member.
5310 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5312 * c-typeprint.c (c_type_print_varspec_suffix): Added
5313 check for not yet resolved high bound. If unresolved, print
5314 "variable length" string to the console instead of random
5317 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5319 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5321 (ada_template_to_fixed_record_type_1): Likewise.
5322 (ada_to_fixed_type_1): Likewise.
5323 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5324 (cp_print_value): Likewise.
5325 * d-valprint.c (dynamic_array_type): Likewise.
5326 * findvar.c (address_of_variable): Likewise.
5327 * jv-valprint.c (java_value_print): Likewise.
5328 * valops.c (value_ind): Likewise.
5329 * value.c (coerce_ref): Likewise.
5331 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5333 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5334 value and retrieve the dynamic type size.
5336 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5338 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5339 passed to sizeof is dynamic evaluate the argument to compute the length.
5341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5342 Joel Brobecker <brobecker@adacore.com>
5344 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5345 (dwarf2_evaluate_property): New function.
5346 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5347 * dwarf2read.c (attr_to_dynamic_prop): New function.
5348 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5350 * gdbtypes.c: Include dwarf2loc.h.
5351 (is_dynamic_type): New function.
5352 (resolve_dynamic_type): New function.
5353 (resolve_dynamic_bounds): New function.
5354 (get_type_length): New function.
5355 (check_typedef): Use get_type_length to compute type length.
5356 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5357 (TYPE_LOW_BOUND_KIND): New macro.
5358 (is_dynamic_type): New function prototype.
5359 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5360 to resolve dynamic properties of the type. Update comment.
5361 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5363 2014-04-14 Richard Henderson <rth@redhat.com>
5365 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5367 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5368 Doug Evans <xdje42@gmail.com>
5370 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5371 dereference TYPE_CODE_REF values.
5373 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5375 Revert the following changes due to regressions:
5377 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5378 (dwarf2_evaluate_property): New function.
5379 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5380 * dwarf2read.c (attr_to_dynamic_prop): New function.
5381 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5383 * gdbtypes.c: Include dwarf2loc.h.
5384 (is_dynamic_type): New function.
5385 (resolve_dynamic_type): New function.
5386 (resolve_dynamic_bounds): New function.
5387 (get_type_length): New function.
5388 (check_typedef): Use get_type_length to compute type length.
5389 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5390 (TYPE_LOW_BOUND_KIND): New macro.
5391 (is_dynamic_type): New function prototype.
5392 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5393 to resolve dynamic properties of the type. Update comment.
5394 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5396 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5397 passed to sizeof is dynamic evaluate the argument to compute the length.
5399 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5400 value and retrieve the dynamic type size.
5402 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5403 (ada_template_to_fixed_record_type_1): Likewise.
5404 (ada_to_fixed_type_1): Likewise.
5405 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5406 (cp_print_value): Likewise.
5407 * d-valprint.c (dynamic_array_type): Likewise.
5408 * eval.c (evaluate_subexp_with_coercion): Likewise.
5409 * findvar.c (address_of_variable): Likewise.
5410 * jv-valprint.c (java_value_print): Likewise.
5411 * valops.c (value_ind): Likewise.
5412 * value.c (coerce_ref): Likewise.
5414 * c-typeprint.c (c_type_print_varspec_suffix): Added
5415 check for not yet resolved high bound. If unresolved, print
5416 "variable length" string to the console instead of random
5419 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5420 property and store it as the high bound and flag the range accordingly.
5421 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5422 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5423 * gdbtypes.h (enum range_flags): New enum.
5424 (struct range_bounds): Add flags member.
5426 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5427 points to a constant blob.
5429 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5430 (evaluate_subexp_standard): Pass noside argument.
5431 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5432 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5433 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5434 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5435 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5437 2014-04-11 Keith Seitz <keiths@redhat.com>
5440 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5441 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5444 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5446 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5447 (evaluate_subexp_standard): Pass noside argument.
5448 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5449 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5450 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5451 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5452 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5454 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5456 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5457 points to a constant blob.
5459 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5461 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5462 property and store it as the high bound and flag the range accordingly.
5463 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5464 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5465 * gdbtypes.h (enum range_flags): New enum.
5466 (struct range_bounds): Add flags member.
5468 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5470 * c-typeprint.c (c_type_print_varspec_suffix): Added
5471 check for not yet resolved high bound. If unresolved, print
5472 "variable length" string to the console instead of random
5475 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5477 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5478 (ada_template_to_fixed_record_type_1): Likewise.
5479 (ada_to_fixed_type_1): Likewise.
5480 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5481 (cp_print_value): Likewise.
5482 * d-valprint.c (dynamic_array_type): Likewise.
5483 * eval.c (evaluate_subexp_with_coercion): Likewise.
5484 * findvar.c (address_of_variable): Likewise.
5485 * jv-valprint.c (java_value_print): Likewise.
5486 * valops.c (value_ind): Likewise.
5487 * value.c (coerce_ref): Likewise.
5489 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5492 value and retrieve the dynamic type size.
5494 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5496 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5497 passed to sizeof is dynamic evaluate the argument to compute the length.
5499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5501 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5502 (dwarf2_evaluate_property): New function.
5503 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5504 * dwarf2read.c (attr_to_dynamic_prop): New function.
5505 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5507 * gdbtypes.c: Include dwarf2loc.h.
5508 (is_dynamic_type): New function.
5509 (resolve_dynamic_type): New function.
5510 (resolve_dynamic_bounds): New function.
5511 (get_type_length): New function.
5512 (check_typedef): Use get_type_length to compute type length.
5513 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5514 (TYPE_LOW_BOUND_KIND): New macro.
5515 (is_dynamic_type): New function prototype.
5516 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5517 to resolve dynamic properties of the type. Update comment.
5518 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5522 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5523 declaring high/low bounds and change uses accordingly. Call
5524 create_range_type instead of create_static_range_type.
5525 * gdbtypes.c (create_range_type): New function.
5526 (create_range_type): Convert bounds into struct bound_prop and pass
5527 them to create_range_type.
5528 * gdbtypes.h (struct bound_prop): New struct.
5529 (create_range_type): New function prototype.
5530 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5531 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5532 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5534 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5536 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5538 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5539 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5540 * ada-lang.c: All uses of create_range_type updated.
5541 * coffread.c: All uses of create_range_type updated.
5542 * dwarf2read.c: All uses of create_range_type updated.
5543 * f-exp.y: All uses of create_range_type updated.
5544 * m2-valprint.c: All uses of create_range_type updated.
5545 * mdebugread.c: All uses of create_range_type updated.
5546 * stabsread.c: All uses of create_range_type updated.
5547 * valops.c: All uses of create_range_type updated.
5548 * valprint.c: All uses of create_range_type updated.
5550 2014-04-10 Pedro Alves <palves@redhat.com>
5552 * breakpoint.c (single_step_breakpoints)
5553 (single_step_gdbarch): Move up in the file.
5554 (one_breakpoint_xfer_memory): New function, factored out from ...
5555 (breakpoint_xfer_memory): ... here. Also process single-step
5558 2014-04-09 Tristan Gingold <gingold@adacore.com>
5560 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5562 (darwin_decode_exception_message): Free port only after use.
5564 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5566 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5567 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5568 when setting the size of call_length.
5570 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5572 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5573 dereference TYPE_CODE_REF values.
5575 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5577 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5578 end of warning message.
5580 2014-04-03 Doug Evans <dje@google.com>
5582 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5583 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5585 2014-04-02 Alan Modra <amodra@gmail.com>
5587 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5588 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5589 (struct symbol_file_add_from_memory_args): Add size field.
5590 (find_vdso_size): New function.
5591 (add_vsyscall_page): Attempt to find vdso size.
5593 2014-04-01 Doug Evans <dje@google.com>
5595 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5597 2014-04-01 Tristan Gingold <gingold@adacore.com>
5599 * darwin-nat.c (darwin_encode_reply): Add prototype.
5600 (darwin_decode_exception_message): Reply to unknown inferiors.
5601 (darwin_decode_message): Handle message by id. Ignore message
5602 to unknown inferior.
5603 (darwin_wait): Discard unknown messages, add debug trace.
5605 2014-03-31 Doug Evans <dje@google.com>
5607 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5610 2014-03-31 Doug Evans <dje@google.com>
5612 New option "set print symbol-loading".
5614 * solib.c (solib_read_symbols): Only print symbol loading messages
5616 (solib_add): If symbol loading is in "brief" mode, notify user
5617 symbols are being loaded.
5618 (reload_shared_libraries_1): Ditto.
5619 * symfile.c (print_symbol_loading_off): New static global.
5620 (print_symbol_loading_brief): New static global.
5621 (print_symbol_loading_full): New static global.
5622 (print_symbol_loading_enums): New static global.
5623 (print_symbol_loading): New static global.
5624 (print_symbol_loading_p): New function.
5625 (symbol_file_add_with_addrs): Only print symbol loading messages
5627 (_initialize_symfile): Register "print symbol-loading" set/show
5629 * symfile.h (print_symbol_loading_p): Declare.
5631 2014-03-30 Doug Evans <xdje42@gmail.com>
5633 * infrun.c (set_last_target_status): New function.
5634 (handle_inferior_event): Call it.
5636 2014-03-30 Doug Evans <xdje42@gmail.com>
5638 * inferior.h (enum stop_kind): Improve comment.
5640 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5642 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5643 a reference, strip the reference layer before calling
5644 the lang_ops value_has_mutated callback.
5646 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5648 Remove some globals from our parser.
5649 * language.c (unk_lang_parser): Add "struct parser_state"
5651 * language.h (struct language_defn) <la_parser>: Likewise.
5652 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5653 (initialize_expout): Add "struct parser_state" argument.
5654 Rewrite function to use the parser state.
5655 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5656 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5657 write_exp_elt_longcst, write_exp_elt_dblcst,
5658 write_exp_elt_decfloatcst, write_exp_elt_type,
5659 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5660 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5661 write_dollar_variable): Likewise.
5662 (parse_exp_in_context_1): Use parser state.
5663 (insert_type_address_space): Add "struct parser_state" argument.
5665 (increase_expout_size): New function.
5666 * parser-defs.h: Forward declare "struct language_defn" and
5667 "struct parser_state".
5668 (expout, expout_size, expout_ptr): Remove extern declarations.
5669 (parse_gdbarch, parse_language): Rewrite macro declarations to
5670 accept the parser state.
5671 (struct parser_state): New struct.
5672 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5673 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5674 write_exp_elt_decfloatcst, write_exp_elt_type,
5675 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5676 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5677 write_exp_msymbol, write_dollar_variable,
5678 mark_struct_expression, insert_type_address_space): Add "struct
5679 parser_state" argument.
5680 (increase_expout_size): New function.
5681 * utils.c (do_clear_parser_state): New function.
5682 (make_cleanup_clear_parser_state): Likewise.
5683 * utils.h (make_cleanup_clear_parser_state): New function
5685 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5686 Update calls to write_exp* in order to pass the parser state.
5687 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5688 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5689 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5690 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5691 * stap-probe.c (stap_parse_register_operand): Likewise.
5692 (stap_parse_single_operand): Likewise.
5693 (stap_parse_argument_1): Likewise.
5694 (stap_parse_argument): Use parser state.
5695 * stap-probe.h: Include "parser-defs.h".
5696 (struct stap_parse_info) <pstate>: New field.
5697 * c-exp.y (parse_type): Rewrite to use parser state.
5698 (yyparse): Redefine to c_parse_internal.
5699 (pstate): New global variable.
5700 (parse_number): Add "struct parser_state" argument.
5701 (write_destructor_name): Likewise.
5702 (type_exp): Update calls to write_exp* and similars in order to
5704 (exp1, exp, variable, qualified_name, space_identifier,
5705 typename, typebase): Likewise.
5706 (write_destructor_name, parse_number, lex_one_token,
5707 classify_name, classify_inner_name, c_parse): Add "struct
5708 parser_state" argument. Update function to use parser state.
5709 * c-lang.h: Forward declare "struct parser_state".
5710 (c_parse): Add "struct parser_state" argument.
5711 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5712 (yyparse): Redefine macro to ada_parse_internal.
5713 (pstate): New variable.
5714 (write_int, write_object_renaming, write_var_or_type,
5715 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5716 type_int, type_long, type_long_long, type_float, type_double,
5717 type_long_double, type_char, type_boolean, type_system_address):
5718 Add "struct parser_state" argument.
5719 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5720 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5721 var_or_type, aggregate, aggregate_component_list,
5722 positional_list, others, component_group,
5723 component_associations): Update calls to write_exp* and similar
5724 functions in order to use parser state.
5725 (ada_parse, write_var_from_sym, write_int,
5726 write_exp_op_with_string, write_object_renaming,
5727 find_primitive_type, write_selectors, write_ambiguous_var,
5728 write_var_or_type, write_name_assoc, type_int, type_long,
5729 type_long_long, type_float, type_double, type_long_double,
5730 type_char, type_boolean, type_system_address): Add "struct
5731 parser_state" argument. Adjust function to use parser state.
5732 * ada-lang.c (parse): Likewise.
5733 * ada-lang.h: Forward declare "struct parser_state".
5734 (ada_parse): Add "struct parser_state" argument.
5735 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5736 calls to both functions.
5737 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5739 (yyparse): Redefine macro to f_parse_internal.
5740 (pstate): New variable.
5741 (parse_number): Add "struct parser_state" argument.
5742 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5743 and similars in order to use parser state.
5744 (parse_number): Adjust code to use parser state.
5746 (f_parse): New function.
5747 * f-lang.h: Forward declare "struct parser_state".
5748 (f_parse): Add "struct parser_state" argument.
5749 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5751 (yyparse): Redefine macro for java_parse_internal.
5752 (pstate): New variable.
5753 (push_expression_name, push_expression_name, insert_exp): Add
5754 "struct parser_state" argument.
5755 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5756 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5757 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5758 PostIncrementExpression, PostDecrementExpression,
5759 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5760 UnaryExpressionNotPlusMinus, CastExpression,
5761 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5762 RelationalExpression, EqualityExpression, AndExpression,
5763 ExclusiveOrExpression, InclusiveOrExpression,
5764 ConditionalAndExpression, ConditionalOrExpression,
5765 ConditionalExpression, Assignment, LeftHandSide): Update
5766 calls to write_exp* and similars in order to use parser state.
5767 (parse_number): Ajust code to use parser state.
5769 (java_parse): New function.
5770 (push_variable): Add "struct parser_state" argument. Adjust
5771 code to user parser state.
5772 (push_fieldnames, push_qualified_expression_name,
5773 push_expression_name, insert_exp): Likewise.
5774 * jv-lang.h: Forward declare "struct parser_state".
5775 (java_parse): Add "struct parser_state" argument.
5776 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5778 (yyparse): Redefine macro to m2_parse_internal.
5779 (pstate): New variable.
5780 (type_exp, exp, fblock, variable, type): Update calls to
5781 write_exp* and similars to use parser state.
5783 (m2_parse): New function.
5784 * m2-lang.h: Forward declare "struct parser_state".
5785 (m2_parse): Add "struct parser_state" argument.
5786 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5787 * objc-lang.h: Forward declare "struct parser_state".
5788 (end_msglist): Add "struct parser_state" argument.
5789 * p-exp.y (parse_type): Rewrite macro to use parser state.
5790 (yyparse): Redefine macro to pascal_parse_internal.
5791 (pstate): New variable.
5792 (parse_number): Add "struct parser_state" argument.
5793 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5794 write_exp* and similars in order to use parser state.
5795 (parse_number, yylex): Adjust code to use parser state.
5796 (pascal_parse): New function.
5797 * p-lang.h: Forward declare "struct parser_state".
5798 (pascal_parse): Add "struct parser_state" argument.
5799 * go-exp.y (parse_type): Rewrite macro to use parser state.
5800 (yyparse): Redefine macro to go_parse_internal.
5801 (pstate): New variable.
5802 (parse_number): Add "struct parser_state" argument.
5803 (type_exp, exp1, exp, variable, type): Update calls to
5804 write_exp* and similars in order to use parser state.
5805 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5806 to use parser state.
5807 (go_parse): Likewise.
5808 * go-lang.h: Forward declare "struct parser_state".
5809 (go_parse): Add "struct parser_state" argument.
5811 2014-03-27 Doug Evans <dje@google.com>
5813 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5815 2014-03-27 Doug Evans <dje@google.com>
5817 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5818 Remove argument abbrev_section. All callers updated.
5820 2014-03-27 Doug Evans <dje@google.com>
5822 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5823 addr_base, ranges_base.
5825 2014-03-26 Keith Seitz <keiths@redhat.com>
5827 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5828 types, not VAR_DOMAIN.
5830 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5832 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5834 * features/nios2-linux.c: Regenerated.
5835 * features/nios2.c: Regenerated.
5837 2014-03-25 Pedro Alves <palves@redhat.com>
5839 * cli/cli-script.c (script_from_file): Force the interpreter to
5842 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5844 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5845 small stack allocation.
5847 2014-03-24 Tristan Gingold <gingold@adacore.com>
5849 * darwin-nat.c (exc_server): Remove unused prototype.
5850 (darwin_dump_message): Correctly display data on x86_64.
5851 (darwin_encode_reply): Fix style.
5852 Add comments and fix indentation.
5854 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5856 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5858 2014-03-22 Doug Evans <xdje42@gmail.com>
5860 * infcmd.c: Whitespace fixes.
5861 (interrupt_command): Merge two function comments into one.
5863 2014-03-22 Doug Evans <xdje42@gmail.com>
5865 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5868 2014-03-22 Yao Qi <yao@codesourcery.com>
5870 * remote.c (target_read_live_memory): Remove.
5871 (memory_xfer_live_readonly_partial): Rename it to
5872 remote_xfer_live_readonly_partial. Remove argument 'object'.
5873 All callers updated. Call remote_read_bytes_1
5874 instead of target_read_live_memory.
5875 * tracepoint.c (set_traceframe_number): Remove.
5876 (make_cleanup_restore_traceframe_number): Likewise .
5877 * tracepoint.h (set_traceframe_number): Remove declaration.
5878 (make_cleanup_restore_traceframe_number): Likewise.
5880 2014-03-22 Yao Qi <yao@codesourcery.com>
5882 * remote.c (remote_read_bytes): Move code on reading from the
5884 (remote_read_bytes_1): ... here. New function.
5886 2014-03-22 Yao Qi <yao@codesourcery.com>
5888 * ctf.c (ctf_xfer_partial): Check the return value of
5889 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5890 return TARGET_XFER_UNAVAILABLE.
5891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5892 * target.c (target_read_live_memory): Move it to remote.c.
5893 (memory_xfer_live_readonly_partial): Likewise.
5894 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5895 * remote.c (target_read_live_memory): Moved from target.c.
5896 (memory_xfer_live_readonly_partial): Likewise.
5897 (remote_read_bytes): Factored out from
5898 memory_xfer_partial_1.
5900 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5902 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5905 2014-03-21 Pedro Alves <palves@redhat.com>
5907 * infrun.c (normal_stop): Extend comment.
5909 2014-03-21 Hui Zhu <hui@codesourcery.com>
5910 Pedro Alves <palves@redhat.com>
5912 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5914 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5915 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5916 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5918 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5920 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5921 `z' formatted output modifier.
5923 2014-03-20 Tom Tromey <tromey@redhat.com>
5924 Sergio Durigan Junior <sergiodj@redhat.com>
5926 * probe.c (parse_probes): Turn assert into an ordinary error.
5927 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5928 exceptions when parsing probes. Rearrange the code for clarity.
5930 2014-03-20 Tom Tromey <tromey@redhat.com>
5933 * top.c (execute_command): Only dispatch events if the command
5936 2014-03-20 Tom Tromey <tromey@redhat.com>
5939 * infcall.c: Include event-top.h.
5940 (run_inferior_call): Call async_disable_stdin if needed.
5942 2014-03-20 Pedro Alves <palves@redhat.com>
5944 * infrun.c (prepare_to_proceed): Delete.
5945 (thread_still_needs_step_over): New function.
5946 (find_thread_needs_step_over): New function.
5947 (proceed): If the current thread needs a step-over, set its
5948 steping_over_breakpoint flag. Adjust to use
5949 find_thread_needs_step_over instead of prepare_to_proceed.
5950 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5951 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5953 (switch_back_to_stepped_thread): Step over breakpoints of all
5954 threads not the stepping thread, before switching back to the
5957 2014-03-20 Pedro Alves <palves@redhat.com>
5959 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5961 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5962 * infrun.c (saved_singlestep_ptid)
5963 (stepping_past_singlestep_breakpoint): Delete.
5964 (resume): Remove stepping_past_singlestep_breakpoint handling.
5965 (proceed): Store the prev_pc of the stepping thread too.
5966 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5968 (enum infwait_states): Delete infwait_thread_hop_state.
5969 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5971 (handle_inferior_event): Adjust.
5972 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5973 handling and the thread-hop code. Before removing single-step
5974 breakpoints, check whether the thread hit a single-step breakpoint
5975 of another thread. If it did, the trap is not a random signal.
5976 (switch_back_to_stepped_thread): If the event thread hit a
5977 single-step breakpoint, unblock it before switching to the
5978 stepping thread. Handle the case of the stepped thread having
5980 (keep_going): Handle the case of the current thread moving past a
5981 single-step breakpoint.
5983 2014-03-20 Pedro Alves <palves@redhat.com>
5986 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5987 are being stepped over.
5988 (breakpoint_address_match): Make extern.
5989 * breakpoint.h (breakpoint_address_match): New declaration.
5990 * inferior.h (stepping_past_instruction_at): New declaration.
5991 * infrun.c (struct step_over_info): New type.
5992 (step_over_info): New global.
5993 (set_step_over_info, clear_step_over_info)
5994 (stepping_past_instruction_at): New functions.
5995 (handle_inferior_event): Clear the step-over info when
5996 trap_expected is cleared.
5997 (resume): Remove now stale comment.
5998 (clear_proceed_status): Clear step-over info.
5999 (proceed): Adjust step-over handling to set or clear the step-over
6000 info instead of removing all breakpoints.
6001 (handle_signal_stop): When setting up a thread-hop, don't remove
6003 (stop_stepping): Clear step-over info.
6004 (keep_going): Adjust step-over handling to set or clear step-over
6005 info and then always inserting breakpoints, instead of removing
6006 all breakpoints when stepping over one.
6008 2014-03-20 Pedro Alves <palves@redhat.com>
6010 * infrun.c (previous_inferior_ptid): Adjust comment.
6011 (deferred_step_ptid): Delete.
6012 (infrun_thread_ptid_changed, prepare_to_proceed)
6013 (init_wait_for_inferior): Adjust.
6014 (handle_signal_stop): Delete deferred_step_ptid handling.
6016 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6019 * defs.h (sync_quit_force_run): New declaration.
6020 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6021 * event-top.c (async_sigterm_handler): New declaration.
6022 (async_sigterm_token): New variable.
6023 (async_init_signals): Create also async_sigterm_token.
6024 (async_sigterm_handler): New function.
6025 (sync_quit_force_run): New variable.
6026 (handle_sigterm): Replace quit_force call by other calls.
6027 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6029 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6031 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6032 offset into SPE pseudo registers.
6034 2014-03-18 Pedro Alves <palves@redhat.com>
6037 * inferior.h (print_stop_event): Declare.
6038 * infrun.c (print_stop_event): New, factored out from ...
6039 (normal_stop): ... this.
6040 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6041 of bpstat_print/print_stack_frame.
6043 2014-03-17 Tom Tromey <tromey@redhat.com>
6045 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6047 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6049 * ada-lang.c (decode_constrained_packed_array): Perform a
6050 minimal coercion for reference with coerce_ref instead of
6053 2014-03-17 Tristan Gingold <gingold@adacore.com>
6055 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6056 (darwin_solib_create_inferior_hook): Emit a warning if version
6059 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6061 * python/py-value.c (get_field_flag): Cast flag_name argument to
6062 PyObject_GetAttrString to support Python 2.4.
6064 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6066 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6067 (Global Maintainers): Remove Jan Kratochvil.
6069 2014-03-14 Pedro Alves <palves@redhat.com>
6071 * inferior.h (terminal_ours_for_output): Rename to ...
6072 (child_terminal_ours_for_output): ... this.
6073 (terminal_save_ours): Rename to ...
6074 (child_terminal_save_ours): ... this.
6075 (terminal_ours): Rename to ...
6076 (child_terminal_ours): ... this.
6077 (terminal_inferior): Rename to ...
6078 (child_terminal_inferior): ... this.
6079 (terminal_init_inferior): Rename to ...
6080 (child_terminal_init_inferior): ... this.
6081 (terminal_init_inferior_with_pgrp): Rename to ...
6082 (child_terminal_init_inferior_with_pgrp): ... this.
6083 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6084 (child_terminal_init_with_pgrp): ... this.
6085 (terminal_save_ours): Rename to ...
6086 (child_terminal_save_ours): ... this.
6087 (terminal_init_inferior): Rename to ...
6088 (child_terminal_init): ... this. Adjust.
6089 (terminal_inferior): Rename to ...
6090 (child_terminal_inferior): ... this.
6091 (terminal_ours_for_output): Rename to ...
6092 (child_terminal_ours_for_output): ... this. Adjust.
6093 (terminal_ours): Rename to ...
6094 (child_terminal_ours): ... this.
6095 (terminal_ours_1): Rename to ...
6096 (child_terminal_ours_1): ... this. Adjust.
6097 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6098 * windows-nat.c (do_initial_windows_stuff): Adjust.
6099 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6100 (gnu_terminal_init): ... this. Adjust.
6101 (gnu_target): Adjust.
6102 * inf-child.c (inf_child_target): Adjust.
6104 2014-03-13 Doug Evans <xdje42@gmail.com>
6107 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6110 2014-03-13 Doug Evans <xdje42@gmail.com>
6112 * value.c (record_latest_value): Call release_value_or_incref
6113 instead of release_value.
6115 2014-03-13 Pedro Alves <palves@redhat.com>
6117 * procfs.c (procfs_target): Don't override to_shortname,
6118 to_longname or to_doc.
6120 2014-03-13 Pedro Alves <palves@redhat.com>
6122 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6123 Unix in user visible strings.
6125 2014-03-12 Stan Shebs <stan@codesourcery.com>
6127 * gdbtypes.h: Annotate comments for Doxygen, add a page
6128 block comment with some general info.
6130 2014-03-12 Pedro Alves <palves@redhat.com>
6132 * infcmd.c (prepare_execution_command): New function, factored out
6133 from several execution commands.
6134 (run_command_1, continue_command, step_1, jump_command)
6135 (signal_command, until_command, advance_command, finish_command)
6136 (attach_command): Use prepare_execution_command.
6138 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6140 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6143 (struct arm_linux_thread_points): Removed.
6144 (struct arm_linux_process_info): New.
6145 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6146 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6147 (arm_linux_find_breakpoints_by_tid): Removed.
6148 (struct arch_lwp_info): New.
6149 (arm_linux_find_process_pid): New functions.
6150 (arm_linux_add_process): New functions.
6151 (arm_linux_process_info_get): New functions.
6152 (arm_linux_forget_process): New function.
6153 (arm_linux_get_debug_reg_state): New function.
6154 (struct update_registers_data): New.
6155 (update_registers_callback): New function.
6156 (arm_linux_insert_hw_breakpoint1): Updated.
6157 (arm_linux_remove_hw_breakpoint1): Updated.
6158 (arm_linux_insert_hw_breakpoint): Updated.
6159 (arm_linux_remove_hw_breakpoint): Updated.
6160 (arm_linux_insert_watchpoint): Updated.
6161 (arm_linux_remove_watchpoint): Updated.
6162 (arm_linux_new_thread): Updated.
6163 (arm_linux_prepare_to_resume): New function.
6164 (arm_linux_new_fork): New function.
6165 (_initialize_arm_linux_nat): Updated.
6167 2014-03-12 Pedro Alves <palves@redhat.com>
6169 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6171 2014-03-12 Tom Tromey <tromey@redhat.com>
6173 * inf-child.c (return_zero): New function.
6174 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6175 * aix-thread.c (aix_thread_inferior_created): New function.
6176 (aix_thread_attach): Remove.
6177 (init_aix_thread_ops): Don't set to_attach.
6178 (_initialize_aix_thread): Register inferior_created observer.
6179 * corelow.c (init_core_ops): Don't set to_attach or
6181 * exec.c (init_exec_ops): Don't set to_attach or
6183 * infcmd.c (run_command_1): Use find_run_target. Make direct
6185 (attach_command): Use find_attach_target. Make direct target
6187 * record-btrace.c (init_record_btrace_ops): Don't set
6189 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6191 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6192 set to_create_inferior.
6193 * target.c (complete_target_initialization): Add assertion.
6194 (target_create_inferior): Remove.
6195 (find_default_attach, find_default_create_inferior): Remove.
6196 (find_attach_target, find_run_target): New functions.
6197 (find_default_is_async_p, find_default_can_async_p)
6198 (target_supports_non_stop, target_attach): Remove.
6199 (init_dummy_target): Don't set to_create_inferior or
6200 to_supports_non_stop.
6201 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6202 TARGET_DEFAULT_FUNC.
6203 <to_create_inferior>: Add comment.
6204 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6205 TARGET_DEFAULT_RETURN.
6206 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6207 (find_attach_target, find_run_target): Declare.
6208 (target_create_inferior): Remove.
6209 (target_has_execution_1): Update comment.
6210 (target_supports_non_stop): Remove.
6211 * target-delegates.c: Rebuild.
6213 2014-03-12 Pedro Alves <palves@redhat.com>
6215 * inf-child.h: Update comment to not mention Unix.
6217 2014-03-12 Pedro Alves <palves@redhat.com>
6219 * inf-child.c: Update top comment to not mention Unix. Add
6220 generic comment describing how this target is meant to be used.
6221 (inf_child_post_attach, inf_child_post_startup_inferior)
6222 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6225 2014-03-12 Pedro Alves <palves@redhat.com>
6227 * nto-procfs.c: Include inf-child.h.
6228 (procfs_ops): Delete global.
6229 (procfs_can_run): Delete method.
6230 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6231 target pointer instead of referencing procfs_ops.
6232 (procfs_prepare_to_store): Delete.
6233 (init_procfs_ops): Delete function.
6234 (procfs_target): New function, based on init_procfs_ops, but
6235 inherit inf_child_target.
6236 (_initialize_procfs): Use procfs_target.
6238 2014-03-12 Pedro Alves <palves@redhat.com>
6240 * windows-nat.c: Include inf-child.h.
6241 (windows_ops): Delete global.
6242 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6244 (init_windows_ops): Delete function.
6245 (windows_target): New function, based on init_windows_ops, but
6246 inherit inf_child_target.
6247 (_initialize_windows_nat): Use windows_target. Install x86
6248 specific target methods here.
6250 2014-03-10 Doug Evans <xdje42@gmail.com>
6252 * guile/guile.c (call_initialize_gdb_module): New function.
6253 (initialize_guile): Replace call to scm_init_guile with call to
6256 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6258 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6259 in call to TYPE_CODE macro.
6261 2014-03-10 Jerome Guitton <guitton@adacore.com>
6263 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6264 Resolve tagged types to full view.
6266 2014-03-10 Hui Zhu <hui@codesourcery.com>
6268 * target.h (target_insert_breakpoint): Remove "hardware" from its
6271 2014-03-07 Doug Evans <dje@google.com>
6273 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6275 2014-03-07 Doug Evans <dje@google.com>
6277 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6278 Remove unused local comp_dir_attr. Assert exactly one of
6279 stub_comp_unit_die, stub_comp_dir is non-NULL.
6281 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6283 * target.h (complete_target_initialization, add_target):
6286 2014-03-07 Pedro Alves <palves@redhat.com>
6288 * go32-nat.c: Include inf-child.h.
6289 (go32_ops): Delete global.
6290 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6292 (go32_create_inferior): Push the passed in target pointer instead
6293 of referencing go32_ops.
6294 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6295 (go32_target): New function, based on init_go32_ops, but inherit
6297 (_initialize_go32_nat): Use go32_target. Move parts of
6300 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6302 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6303 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6304 SYMBOL_VALUE_ADDRESS.
6305 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6307 2014-03-06 Yao Qi <yao@codesourcery.com>
6309 * breakpoint.c (get_tracepoint_by_number): Remove argument
6310 optional_p. All callers updated. Adjust comments. Update
6312 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6314 2014-03-06 Yao Qi <yao@codesourcery.com>
6316 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6317 early if get_number returns zero. Use 'p' instead of 'args'.
6319 2014-03-06 Yao Qi <yao@codesourcery.com>
6321 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6324 2014-03-06 Yao Qi <yao@codesourcery.com>
6326 PR breakpoints/16508
6327 * tracepoint.c (check_trace_running): New function.
6328 (trace_find_command): Move code to check_trace_running and
6329 call check_trace_running.
6330 (trace_find_pc_command): Likewise.
6331 (trace_find_tracepoint_command): Likewise.
6332 (trace_find_line_command): Likewise.
6333 (trace_find_range_command): Likewise.
6334 * tracepoint.h (check_trace_running): Likewise.
6335 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6337 2014-03-06 Yao Qi <yao@codesourcery.com>
6339 * target.h (struct target_ops) <to_traceframe_info>: Use
6340 TARGET_DEFAULT_NORETURN (tcomplain ()).
6341 * target-delegates.c: Regenerated.
6343 2014-03-05 Pedro Alves <palves@redhat.com>
6346 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6347 void. Update comment.
6348 (dcache_xfer_memory): Delete.
6349 (dcache_read_memory_partial): New, based on the read bits of
6351 (dcache_update): Add status parameter. Use ULONGEST for len, and
6352 adjust. Discard cache lines if the reason for the update was
6354 * dcache.h (dcache_xfer_memory): Delete declaration.
6355 (dcache_read_memory_partial): New declaration.
6356 (dcache_update): Update prototype.
6357 * target.c (raw_memory_xfer_partial): Update the dcache here.
6358 (memory_xfer_partial_1): Don't handle dcache writes here.
6360 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6362 * remote-sim.c (gdbsim_load): Add const to prog.
6364 2014-03-03 Tom Tromey <tromey@redhat.com>
6366 * elfread.c (probe_key): Change to bfd_data.
6367 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6368 now per-BFD, not per-objfile.
6369 * stap-probe.c (stap_probe_destroy): Update comment.
6370 (handle_stap_probe): Allocate on the per-BFD obstack.
6372 2014-03-03 Tom Tromey <tromey@redhat.com>
6374 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6375 * breakpoint.c (create_longjmp_master_breakpoint): Use
6377 (add_location_to_breakpoint, bkpt_probe_insert_location)
6378 (bkpt_probe_remove_location): Update.
6379 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6380 * elfread.c (elf_symfile_relocate_probe): Remove.
6381 (elf_probe_fns): Update.
6382 (insert_exception_resume_breakpoint): Change type of "probe"
6383 parameter to bound_probe.
6384 (check_exception_resume): Update.
6385 * objfiles.c (objfile_relocate1): Don't relocate probes.
6386 * probe.c (bound_probe_s): New typedef.
6387 (parse_probes): Use get_probe_address. Set sal's objfile.
6388 (find_probe_by_pc): Return a bound_probe.
6389 (collect_probes): Return a VEC(bound_probe_s).
6390 (compare_probes): Update.
6391 (gen_ui_out_table_header_info): Change type of "probes"
6393 (info_probes_for_ops): Update.
6394 (get_probe_address): New function.
6395 (probe_safe_evaluate_at_pc): Update.
6396 * probe.h (struct probe_ops) <get_probe_address>: New field.
6397 <set_semaphore, clear_semaphore>: Add objfile parameter.
6398 (struct probe) <objfile>: Remove field.
6400 <address>: Update comment.
6401 (struct bound_probe): New.
6402 (find_probe_by_pc): Return a bound_probe.
6403 (get_probe_address): Declare.
6404 * solib-svr4.c (struct probe_and_action) <address>: New field.
6405 (hash_probe_and_action, equal_probe_and_action): Update.
6406 (register_solib_event_probe): Add address parameter.
6407 (solib_event_probe_at): Update.
6408 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6410 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6411 (stap_get_probe_address): New function.
6412 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6413 (compile_probe_arg): Update.
6414 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6416 (handle_stap_probe): Don't relocate the probe.
6417 (stap_relocate): Remove.
6418 (stap_gen_info_probes_table_values): Update.
6419 (stap_probe_ops): Remove stap_relocate.
6420 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6421 (debug_sym_probe_fns): Update.
6422 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6423 * symtab.c (init_sal): Use memset.
6424 * symtab.h (struct symtab_and_line) <objfile>: New field.
6425 * tracepoint.c (start_tracing, stop_tracing): Update.
6427 2014-03-03 Tom Tromey <tromey@redhat.com>
6429 * probe.h (parse_probes, find_probe_by_pc)
6430 (find_probes_in_objfile): Fix comments.
6432 2014-03-02 Doug Evans <xdje42@gmail.com>
6434 * infrun.c (handle_signal_stop): Replace test for
6435 TARGET_WAITKIND_STOPPED with an assert.
6437 2014-03-02 Doug Evans <xdje42@gmail.com>
6439 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6441 2014-03-02 Doug Evans <xdje42@gmail.com>
6443 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6445 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6447 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6449 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6451 * i386obsd-nat.c: Include "obsd-nat.h".
6452 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6454 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6456 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6458 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6460 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6462 * mips64obsd-nat.c: Include "obsd-nath".
6463 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6465 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6467 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6469 * amd64obsd-nat.c: Include "obsd-nat,h.
6470 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6472 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6474 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6476 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6477 (find_overload_match): Update call to find_oload_champ.
6478 (find_oload_champ_namespace_loop): Likewise
6480 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6482 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6484 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6485 * config/sparc/obsd64.mh: New file.
6486 * sparc64obsd-nat.c: New file.
6488 * obsd-nat.h: New file.
6489 * obsd-nat.c: New file.
6490 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6491 (ALLDEPFILES): Add obsd-nat.c.
6493 2014-02-28 Tom Tromey <tromey@redhat.com>
6495 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6496 * cli-out.h (cli_ui_out_impl): Now const.
6497 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6498 * ui-out.c (struct ui_out) <impl>: Now const.
6499 (default_ui_out_impl): Now const.
6500 (ui_out_new): Make 'impl' parameter const.
6501 * ui-out.h (ui_out_new): Update.
6503 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6505 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6507 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6509 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6511 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6513 Additional PR 8882 fix.
6514 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6516 2014-02-27 Pedro Alves <palves@redhat.com>
6518 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6521 2014-02-27 Pedro Alves <palves@redhat.com>
6524 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6525 * nat/linux-waitpid.c: Include string.h.
6526 (status_to_str): Moved here and made extern.
6527 * nat/linux-waitpid.h (status_to_str): New declaration.
6529 2014-02-27 Hui Zhu <hui@codesourcery.com>
6532 * infrun.c (ptid_match): Move ...
6533 * common/ptid.c (ptid_match): ... here.
6534 * inferior.h (ptid_match): Move ...
6535 * common/ptid.h (ptid_match): ... here.
6537 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6539 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6540 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6543 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6545 * obsd-tdep.c (obsd_auxv_parse): New function.
6546 (obsd_init_abi): Set auxv_parse.
6548 * gdbarch.sh (auxv_parse): New.
6549 * gdbarch.h: Regenerated.
6550 * gdbarch.c: Regenerated.
6551 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6553 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6555 * guile/scm-value.c (gdbscm_history_append_x): New function.
6556 (value_functions): Add it.
6558 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6560 * dwarf2read.c (attr_value_as_address): New function.
6561 (dwarf2_find_base_address, read_call_site_scope): Use
6562 attr_value_as_address in place of DW_ADDR.
6563 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6564 the low and high addresses. Slight rework of the handling
6565 of the high pc being a constant form, and limit it to
6566 DWARF verson 4 or higher.
6567 (dwarf2_record_block_ranges): Likewise.
6568 (read_partial_die): Likewise.
6569 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6571 2014-02-26 Tom Tromey <tromey@redhat.com>
6573 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6575 2014-02-26 Tom Tromey <tromey@redhat.com>
6577 * elfread.c (elf_read_minimal_symbols): Return early if
6578 minimal symbols have already been read. Add "ei" parameter.
6579 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6580 * minsyms.c (prim_record_minimal_symbol_full): Update.
6581 * objfiles.h (struct objstats) <n_minsyms>: Move...
6582 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6583 * symmisc.c (print_objfile_statistics): Update.
6585 2014-02-26 Tom Tromey <tromey@redhat.com>
6587 * elfread.c (elf_read_minimal_symbols): New function, from
6589 (elf_symfile_read): Call it.
6591 2014-02-26 Tom Tromey <tromey@redhat.com>
6593 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6594 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6595 (lookup_minimal_symbol_solib_trampoline)
6596 (lookup_minimal_symbol_by_pc_section_1)
6597 (lookup_minimal_symbol_and_objfile): Update.
6598 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6599 Don't allocate a minimal symbol if minsyms have already been read.
6600 (build_minimal_symbol_hash_tables): Update.
6601 (install_minimal_symbols): Do nothing if minsyms already read.
6602 Use the per-BFD obstack.
6603 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6604 * objfiles.c (allocate_objfile): Call
6605 terminate_minimal_symbol_table later.
6606 (have_minimal_symbols): Update.
6607 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6608 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6609 Move from struct objfile.
6610 <minsyms_read>: New field.
6611 (struct objfile) <msymbols, minimal_symbol_count,
6612 msymbol_hash, msymbol_demangled_hash>: Move.
6613 (ALL_OBJFILE_MSYMBOLS): Update.
6614 * symfile.c (read_symbols): Set minsyms_read.
6615 (reread_symbols): Update.
6616 * symmisc.c (dump_objfile, dump_msymbols): Update.
6618 2014-02-26 Tom Tromey <tromey@redhat.com>
6620 * minsyms.c (msymbols_sort): Remove.
6621 * minsyms.h (msymbols_sort): Remove.
6622 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6623 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6624 * elfread.c (elf_symtab_read): Don't add section offsets.
6625 * xcoffread.c (record_minimal_symbol): Don't add section offset
6626 to minimal symbol address.
6627 * somread.c (text_offset, data_offset): Remove.
6628 (som_symtab_read): Don't add section offsets to minimal symbol
6630 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6631 Don't add section offsets to minimal symbols.
6632 * coffread.c (coff_symtab_read): Don't add section offsets
6633 to minimal symbol addresses.
6634 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6635 to minimal symbol addresses.
6636 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6637 section offset to minimal symbol addresses.
6638 * mdebugread.c (parse_partial_symbols): Don't add section
6639 offset to minimal symbol addresses.
6640 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6641 offset to minimal symbol addresses.
6643 2014-02-26 Tom Tromey <tromey@redhat.com>
6645 * ada-lang.c (ada_main_name): Update.
6646 (ada_add_standard_exceptions): Update.
6647 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6648 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6649 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6650 * auxv.c (ld_so_xfer_auxv): Update.
6651 * avr-tdep.c (avr_scan_prologue): Update.
6652 * ax-gdb.c (gen_var_ref): Update.
6653 * blockframe.c (get_pc_function_start)
6654 (find_pc_partial_function_gnu_ifunc): Update.
6655 * breakpoint.c (create_overlay_event_breakpoint)
6656 (create_longjmp_master_breakpoint)
6657 (create_std_terminate_master_breakpoint)
6658 (create_exception_master_breakpoint): Update.
6659 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6660 * c-valprint.c (c_val_print): Update.
6661 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6662 * common/agent.c (agent_look_up_symbols): Update.
6663 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6664 * dwarf2loc.c (call_site_to_target_addr): Update.
6665 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6666 * elfread.c (elf_gnu_ifunc_record_cache)
6667 (elf_gnu_ifunc_resolve_by_got): Update.
6668 * findvar.c (default_read_var_value): Update.
6669 * frame.c (inside_main_func): Update.
6670 * frv-tdep.c (frv_frame_this_id): Update.
6671 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6672 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6674 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6675 (hppa_hpux_find_dummy_bpaddr): Update.
6676 * hppa-tdep.c (hppa_symbol_address): Update.
6677 * infcmd.c (until_next_command): Update.
6678 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6680 * linespec.c (minsym_found, add_minsym): Update.
6681 * linux-nat.c (get_signo): Update.
6682 * linux-thread-db.c (inferior_has_bug): Update.
6683 * m32c-tdep.c (m32c_return_value)
6684 (m32c_m16c_address_to_pointer): Update.
6685 * m32r-tdep.c (m32r_frame_this_id): Update.
6686 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6687 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6688 * maint.c (maintenance_translate_address): Update.
6689 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6690 (frob_address): New function.
6691 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6692 frob_address. Rename parameter to "pc_in".
6693 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6695 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6697 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6698 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6699 * objc-lang.c (find_objc_msgsend): Update.
6700 * objfiles.c (objfile_relocate1): Update.
6701 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6702 * p-valprint.c (pascal_val_print): Update.
6703 * parse.c (write_exp_msymbol): Update.
6704 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6705 (ppc_elfv2_skip_entrypoint): Update.
6706 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6707 * printcmd.c (build_address_symbolic, msym_info)
6708 (address_info): Update.
6709 * proc-service.c (ps_pglobal_lookup): Update.
6710 * psymtab.c (find_pc_sect_psymtab_closer)
6711 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6712 Change msymbol parameter to bound_minimal_symbol.
6713 * ravenscar-thread.c (get_running_thread_id): Update.
6714 * remote.c (remote_check_symbols): Update.
6715 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6717 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6718 * solib-dsbt.c (lm_base): Update.
6719 * solib-frv.c (lm_base, main_got): Update.
6720 * solib-irix.c (locate_base): Update.
6721 * solib-som.c (som_solib_create_inferior_hook)
6722 (link_map_start): Update.
6723 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6724 * solib-svr4.c (elf_locate_base, enable_break): Update.
6725 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6726 (flush_ea_cache): Update.
6727 * stabsread.c (define_symbol, scan_file_globals): Update.
6728 * stack.c (find_frame_funname): Update.
6729 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6730 (debug_qf_find_pc_sect_symtab): Update.
6731 * symfile.c (simple_read_overlay_table)
6732 (simple_overlay_update): Update.
6733 * symfile.h (struct quick_symbol_functions)
6734 <find_pc_sect_symtab>: Change type of msymbol to
6735 bound_minimal_symbol.
6736 * symmisc.c (dump_msymbols): Update.
6737 * symtab.c (find_pc_sect_symtab_via_partial)
6738 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6739 (search_symbols, print_msymbol_info): Update.
6740 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6741 (MSYMBOL_VALUE_ADDRESS): Redefine.
6742 (BMSYMBOL_VALUE_ADDRESS): New macro.
6743 * tracepoint.c (scope_info): Update.
6744 * tui/tui-disasm.c (tui_find_disassembly_address)
6745 (tui_get_begin_asm_address): Update.
6746 * valops.c (find_function_in_inferior): Update.
6747 * value.c (value_static_field, value_fn_field): Update.
6749 2014-02-26 Tom Tromey <tromey@redhat.com>
6751 * ada-lang.c (ada_update_initial_language): Update.
6752 (ada_main_name, ada_has_this_exception_support): Update.
6753 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6754 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6755 * arm-tdep.c (arm_skip_stub): Update.
6756 * auxv.c (ld_so_xfer_auxv): Update.
6757 * avr-tdep.c (avr_scan_prologue): Update.
6758 * ax-gdb.c (gen_var_ref): Update.
6759 * breakpoint.c (struct breakpoint_objfile_data)
6760 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6761 type to bound_minimal_symbol.
6762 (create_overlay_event_breakpoint)
6763 (create_longjmp_master_breakpoint)
6764 (create_std_terminate_master_breakpoint)
6765 (create_exception_master_breakpoint): Update.
6766 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6767 * c-exp.y (classify_name): Update.
6768 * coffread.c (coff_symfile_read): Update.
6769 * common/agent.c (agent_look_up_symbols): Update.
6770 * d-lang.c (d_main_name): Update.
6771 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6772 * dec-thread.c (enable_dec_thread): Update.
6773 * dwarf2loc.c (call_site_to_target_addr): Update.
6774 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6775 * eval.c (evaluate_subexp_standard): Update.
6776 * findvar.c (struct minsym_lookup_data) <result>: Change type
6777 to bound_minimal_symbol.
6779 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6780 * frame.c (inside_main_func): Update.
6781 * frv-tdep.c (frv_frame_this_id): Update.
6782 * gcore.c (call_target_sbrk): Update.
6783 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6784 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6786 * go-lang.c (go_main_name): Update.
6787 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6788 (hppa_hpux_find_import_stub_for_addr): Update.
6789 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6790 Update. Change return type.
6791 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6793 * jit.c (jit_breakpoint_re_set_internal): Update.
6794 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6796 * linux-nat.c (get_signo): Update.
6797 * linux-thread-db.c (inferior_has_bug): Update
6798 * m32c-tdep.c (m32c_return_value)
6799 (m32c_m16c_address_to_pointer): Update.
6800 * m32r-tdep.c (m32r_frame_this_id): Update.
6801 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6802 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6803 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6804 lookup_minimal_symbol. Change return type.
6805 (lookup_minimal_symbol): Remove.
6806 (lookup_bound_minimal_symbol): Update.
6807 (lookup_minimal_symbol_text): Change return type.
6808 (lookup_minimal_symbol_solib_trampoline): Change return type.
6809 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6810 (lookup_minimal_symbol_solib_trampoline): Change return type.
6811 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6812 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6813 (value_nsstring, find_imps): Update.
6814 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6815 * p-lang.c (pascal_main_name): Update.
6816 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6817 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6818 * proc-service.c (ps_pglobal_lookup): Update.
6819 * ravenscar-thread.c (get_running_thread_msymbol): Change
6821 (has_ravenscar_runtime, get_running_thread_id): Update.
6822 * remote.c (remote_check_symbols): Update.
6823 * sol-thread.c (ps_pglobal_lookup): Update.
6824 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6825 * solib-dsbt.c (lm_base): Update.
6826 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6828 * solib-irix.c (locate_base): Update.
6829 * solib-som.c (som_solib_create_inferior_hook)
6830 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6832 * solib-spu.c (spu_enable_break): Update.
6833 * solib-svr4.c (elf_locate_base, enable_break): Update.
6834 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6835 (flush_ea_cache): Update.
6836 * stabsread.c (define_symbol): Update.
6837 * symfile.c (simple_read_overlay_table): Update.
6838 * symtab.c (find_pc_sect_line): Update.
6839 * tracepoint.c (scope_info): Update.
6840 * tui-disasm.c (tui_get_begin_asm_address): Update.
6841 * value.c (value_static_field): Update.
6843 2014-02-26 Tom Tromey <tromey@redhat.com>
6845 * minsyms.c (prim_record_minimal_symbol_full): Use
6846 SET_MSYMBOL_VALUE_ADDRESS.
6847 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6848 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6849 SET_MSYMBOL_VALUE_ADDRESS.
6850 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6851 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6853 2014-02-26 Tom Tromey <tromey@redhat.com>
6855 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6856 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6857 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6858 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6859 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6860 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6861 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6862 * ada-lang.c (ada_main_name): Update.
6863 (ada_lookup_simple_minsym): Update.
6864 (ada_make_symbol_completion_list): Update.
6865 (ada_add_standard_exceptions): Update.
6866 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6867 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6868 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6869 * arm-tdep.c (skip_prologue_function): Update.
6870 (arm_skip_stack_protector, arm_skip_stub): Update.
6871 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6872 (arm_wince_skip_main_prologue): Update.
6873 * auxv.c (ld_so_xfer_auxv): Update.
6874 * avr-tdep.c (avr_scan_prologue): Update.
6875 * ax-gdb.c (gen_var_ref): Update.
6876 * block.c (call_site_for_pc): Update.
6877 * blockframe.c (get_pc_function_start): Update.
6878 (find_pc_partial_function_gnu_ifunc): Update.
6879 * breakpoint.c (create_overlay_event_breakpoint): Update.
6880 (create_longjmp_master_breakpoint): Update.
6881 (create_std_terminate_master_breakpoint): Update.
6882 (create_exception_master_breakpoint): Update.
6883 (resolve_sal_pc): Update.
6884 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6885 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6887 * c-valprint.c (c_val_print): Update.
6888 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6889 * coffread.c (coff_symfile_read): Update.
6890 * common/agent.c (agent_look_up_symbols): Update.
6891 * dbxread.c (find_stab_function_addr): Update.
6892 (end_psymtab): Update.
6893 * dwarf2loc.c (call_site_to_target_addr): Update.
6894 (func_verify_no_selftailcall): Update.
6895 (tailcall_dump): Update.
6896 (call_site_find_chain_1): Update.
6897 (dwarf_expr_reg_to_entry_parameter): Update.
6898 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6899 (elf_gnu_ifunc_resolve_by_got): Update.
6900 * f-valprint.c (info_common_command): Update.
6901 * findvar.c (read_var_value): Update.
6902 * frame.c (get_prev_frame_1): Update.
6903 (inside_main_func): Update.
6904 * frv-tdep.c (frv_skip_main_prologue): Update.
6905 (frv_frame_this_id): Update.
6906 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6907 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6908 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6909 (gnuv3_skip_trampoline): Update.
6910 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6911 (hppa64_hpux_in_solib_call_trampoline): Update.
6912 (hppa_hpux_skip_trampoline_code): Update.
6913 (hppa64_hpux_search_dummy_call_sequence): Update.
6914 (hppa_hpux_find_import_stub_for_addr): Update.
6915 (hppa_hpux_find_dummy_bpaddr): Update.
6916 * hppa-tdep.c (hppa_symbol_address)
6917 (hppa_lookup_stub_minimal_symbol): Update.
6918 * i386-tdep.c (i386_skip_main_prologue): Update.
6919 (i386_pe_skip_trampoline_code): Update.
6920 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6921 * infcall.c (get_function_name): Update.
6922 * infcmd.c (until_next_command): Update.
6923 * jit.c (jit_breakpoint_re_set_internal): Update.
6924 (jit_inferior_init): Update.
6925 * linespec.c (minsym_found): Update.
6926 (add_minsym): Update.
6927 * linux-fork.c (info_checkpoints_command): Update.
6928 * linux-nat.c (get_signo): Update.
6929 * linux-thread-db.c (inferior_has_bug): Update.
6930 * m32c-tdep.c (m32c_return_value): Update.
6931 (m32c_m16c_address_to_pointer): Update.
6932 (m32c_m16c_pointer_to_address): Update.
6933 * m32r-tdep.c (m32r_frame_this_id): Update.
6934 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6935 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6936 * maint.c (maintenance_translate_address): Update.
6937 * minsyms.c (add_minsym_to_hash_table): Update.
6938 (add_minsym_to_demangled_hash_table): Update.
6939 (msymbol_objfile): Update.
6940 (lookup_minimal_symbol): Update.
6941 (iterate_over_minimal_symbols): Update.
6942 (lookup_minimal_symbol_text): Update.
6943 (lookup_minimal_symbol_by_pc_name): Update.
6944 (lookup_minimal_symbol_solib_trampoline): Update.
6945 (lookup_minimal_symbol_by_pc_section_1): Update.
6946 (lookup_minimal_symbol_and_objfile): Update.
6947 (prim_record_minimal_symbol_full): Update.
6948 (compare_minimal_symbols): Update.
6949 (compact_minimal_symbols): Update.
6950 (build_minimal_symbol_hash_tables): Update.
6951 (install_minimal_symbols): Update.
6952 (terminate_minimal_symbol_table): Update.
6953 (find_solib_trampoline_target): Update.
6954 (minimal_symbol_upper_bound): Update.
6955 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6956 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6957 (mips_skip_pic_trampoline_code): Update.
6958 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6959 * objc-lang.c (selectors_info): Update.
6960 (classes_info): Update.
6961 (find_methods): Update.
6962 (find_imps): Update.
6963 (find_objc_msgsend): Update.
6964 * objfiles.c (objfile_relocate1): Update.
6965 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6966 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6967 * p-valprint.c (pascal_val_print): Update.
6968 * parse.c (write_exp_msymbol): Update.
6969 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6970 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6971 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6972 * printcmd.c (build_address_symbolic): Update.
6974 (address_info): Update.
6975 * proc-service.c (ps_pglobal_lookup): Update.
6976 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6977 (find_pc_sect_psymtab): Update.
6978 * python/py-framefilter.c (py_print_frame): Update.
6979 * ravenscar-thread.c (get_running_thread_id): Update.
6980 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6982 * remote.c (remote_check_symbols): Update.
6983 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6984 (rs6000_skip_trampoline_code): Update.
6985 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6986 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6987 * solib-dsbt.c (lm_base): Update.
6988 * solib-frv.c (lm_base): Update.
6990 * solib-irix.c (locate_base): Update.
6991 * solib-som.c (som_solib_create_inferior_hook): Update.
6992 (som_solib_desire_dynamic_linker_symbols): Update.
6993 (link_map_start): Update.
6994 * solib-spu.c (spu_enable_break): Update.
6995 (ocl_enable_break): Update.
6996 * solib-svr4.c (elf_locate_base): Update.
6997 (enable_break): Update.
6998 * spu-tdep.c (spu_get_overlay_table): Update.
6999 (spu_catch_start): Update.
7000 (flush_ea_cache): Update.
7001 * stabsread.c (define_symbol): Update.
7002 (scan_file_globals): Update.
7003 * stack.c (find_frame_funname): Update.
7004 (frame_info): Update.
7005 * symfile.c (simple_read_overlay_table): Update.
7006 (simple_overlay_update): Update.
7007 * symmisc.c (dump_msymbols): Update.
7008 * symtab.c (fixup_section): Update.
7009 (find_pc_sect_line): Update.
7010 (skip_prologue_sal): Update.
7011 (search_symbols): Update.
7012 (print_msymbol_info): Update.
7013 (rbreak_command): Update.
7014 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7015 (completion_list_objc_symbol): Update.
7016 (default_make_symbol_completion_list_break_on): Update.
7017 * tracepoint.c (scope_info): Update.
7018 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7019 (tui_get_begin_asm_address): Update.
7020 * valops.c (find_function_in_inferior): Update.
7021 * value.c (value_static_field): Update.
7022 (value_fn_field): Update.
7024 2014-02-26 Tom Tromey <tromey@redhat.com>
7026 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7027 bound minimal symbols. Move code that knows about minsym
7029 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7031 * minsyms.h (minimal_symbol_upper_bound): Declare.
7032 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7033 minimal_symbol_upper_bound.
7035 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7037 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7038 Use the type's name if its basic type does not have a tag.
7040 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7042 * dwarf2read.c (read_subrange_type): Add comment.
7044 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7046 * dwarf2read.c (update_enumeration_type_from_children): New
7047 function, mostly extracted from process_structure_scope.
7048 (read_enumeration_type): Call update_enumeration_type_from_children.
7049 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7050 and flag_flag_enum fields.
7052 2014-02-26 Pedro Alves <palves@redhat.com>
7054 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7055 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7056 to_xfer_partial method.
7058 2014-02-26 Pedro Alves <palves@redhat.com>
7060 * target.c (complete_target_initialization): Don't install
7061 default_xfer_partial as to_xfer_partial hook.
7063 (update_current_target): Don't INHERIT nor de_fault
7064 deprecated_xfer_memory. Delete de_fault macro.
7065 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7066 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7067 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7070 2014-02-26 Pedro Alves <palves@redhat.com>
7072 * go32-nat.c (my_write_child): New function.
7073 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7074 (go32_xfer_partial): New function.
7075 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7076 Instead install a to_xfer_partial hook.
7078 2014-02-26 Pedro Alves <palves@redhat.com>
7080 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7081 to_xfer_partial helper. Rewrite.
7082 (procfs_xfer_partial): New function.
7083 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7084 Install a to_xfer_partial hook.
7086 2014-02-26 Pedro Alves <palves@redhat.com>
7088 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7089 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7090 (m32r_xfer_partial): New function.
7091 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7092 Install a to_xfer_partial hook.
7094 2014-02-26 Pedro Alves <palves@redhat.com>
7096 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7098 (mips_xfer_partial): New function.
7099 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7100 hook. Install a to_xfer_partial hook.
7102 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7104 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7105 * gdbtypes.c (create_array_type_with_stride): New function,
7106 renaming create_array_type, but with an added parameter
7107 called "bit_stride".
7108 (create_array_type): Re-implement using
7109 create_array_type_with_stride.
7110 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7111 and DW_AT_bit_stride attributes.
7113 2014-02-26 Pedro Alves <palves@redhat.com>
7115 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7116 task-specific breakpoints.
7118 2014-02-25 Pedro Alves <palves@redhat.com>
7120 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7121 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7123 2014-02-25 Stan Shebs <stan@codesourcery.com>
7125 * defs.h: Annotate comments for Doxygen.
7127 2014-02-25 Tom Tromey <tromey@redhat.com>
7129 * target.h (target_ignore): Don't declare.
7130 * target.c (target_ignore): Remove.
7132 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 * auto-load.c (auto_load_objfile_script_1): Change filename to
7138 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7140 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7141 documentation. Adjust prototype to match the target_ops
7142 to_xfer_partial method. Adjust implementation accordingly.
7144 2014-02-25 Hui Zhu <hui@codesourcery.com>
7146 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7149 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7151 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7152 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7153 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7154 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7155 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7156 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7157 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7158 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7160 (rl78_register_type): Use a data pointer type for SP and
7161 new pseudo registers mentioned above. Use a 16 bit integer
7162 type for all other register pairs.
7163 (rl78_register_name, rl78_g10_register_name): Update for
7164 new pseudo registers.
7165 (rl78_pseudo_register_read): Likewise.
7166 (rl78_pseudo_register_write): Likewise.
7167 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7168 to the newly added pseudo registers.
7170 2014-02-24 Doug Evans <dje@google.com>
7172 * value.c (record_latest_value): Fix comment.
7173 * printcmd.c (print_command_1): Remove code to handle -1 return from
7174 record_latest_value.
7176 2014-02-24 Pedro Alves <palves@redhat.com>
7178 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7179 deprecated_xfer_memory hook.
7180 (procfs_xfer_partial): Call procfs_xfer_memory instead
7181 of the deprecated_xfer_memory target hook.
7182 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7185 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7187 * windows-nat.c (windows_xfer_shared_libraries): Return
7188 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7189 requested object is TARGET_OBJECT_LIBRARIES.
7191 2014-02-24 Yao Qi <yao@codesourcery.com>
7193 * target.h (enum target_xfer_status)
7194 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7195 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7197 * corefile.c (memory_error_message): User updated.
7198 * exec.c (section_table_read_available_memory): Likewise.
7199 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7200 * target.c (target_xfer_status_to_string): Likewise.
7201 (raw_memory_xfer_partial): Likewise.
7202 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7203 * valops.c (read_value_memory): Likewise.
7204 * exec.h: Update comments.
7206 2014-02-24 Yao Qi <yao@codesourcery.com>
7208 * target.c (target_xfer_status_to_string): Rename argument err
7210 * target.h (target_xfer_status_to_string): Update declaration.
7211 Replace target_xfer_error_to_string with
7212 target_xfer_status_to_string in comment.
7214 2014-02-24 Yao Qi <yao@codesourcery.com>
7216 * mips-linux-nat.c (super_close): Update its type.
7217 (mips_linux_close): Pass 'self' to super_close.
7219 2014-02-24 Yao Qi <yao@codesourcery.com>
7221 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7222 * corefile.c (read_memory): Adjusted.
7223 * target.c (target_write_with_progress): Adjusted.
7225 2014-02-23 Yao Qi <yao@codesourcery.com>
7229 2013-10-25 Yao Qi <yao@codesourcery.com>
7231 * remote.c (remote_traceframe_info): Return early if
7232 traceframe is not selected.
7234 2013-07-19 Yao Qi <yao@codesourcery.com>
7236 * target.c (update_current_target): Change the default action
7237 of 'to_traceframe_info' from tcomplain to return_zero.
7238 * target.h (struct target_ops) <to_traceframe_info>: Add more
7241 2014-02-23 Yao Qi <yao@codesourcery.com>
7243 * valops.c (read_value_memory): Rewrite it. Call
7244 target_xfer_partial in a loop.
7245 * exec.h (section_table_available_memory): Remove declaration.
7246 Move comments to ...
7247 * exec.c (section_table_available_memory): ... here. Make it
7250 2014-02-23 Yao Qi <yao@codesourcery.com>
7252 * exec.c (section_table_read_available_memory): New function.
7253 * exec.h (section_table_read_available_memory): Declare.
7254 * ctf.c (ctf_xfer_partial): Call
7255 section_table_read_available_memory.
7256 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7258 2014-02-23 Yao Qi <yao@codesourcery.com>
7260 * ctf.c (ctf_xfer_partial): Move code to ...
7261 * exec.c (exec_read_partial_read_only): ... it. New function.
7262 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7263 * tracefile.c: Include "exec.h".
7264 * exec.h (exec_read_partial_read_only): Declare.
7266 2014-02-23 Yao Qi <yao@codesourcery.com>
7268 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7269 (tfile_has_memory): Remove.
7270 (init_tfile_ops): Don't set fields to_has_all_memory and
7271 to_has_memory of tfile_ops.
7272 * tracefile.c (tracefile_has_all_memory): New function.
7273 (tracefile_has_memory): New function.
7274 (init_tracefile_ops): Initialize fields to_has_all_memory and
7275 to_has_memory of 'ops'.
7277 2014-02-23 Yao Qi <yao@codesourcery.com>
7279 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7280 (ctf_thread_alive, ctf_get_trace_status): Remove.
7281 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7283 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7284 (tfile_has_stack, tfile_has_registers): Remove.
7285 (tfile_thread_alive): Remove.
7286 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7288 * tracefile.c (tracefile_has_stack): New function.
7289 (tracefile_has_registers): New function.
7290 (tracefile_thread_alive): New function.
7291 (tracefile_get_trace_status): New function.
7292 (init_tracefile_ops): New function.
7293 * tracefile.h (init_tracefile_ops): Declare.
7295 2014-02-23 Yao Qi <yao@codesourcery.com>
7297 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7298 (O_LARGEFILE): Likewise.
7299 (tfile_ops): Likewise.
7300 (TRACE_HEADER_SIZE): Likewise.
7301 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7302 (cur_data_size): Likewise.
7303 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7304 (tfile_close, tfile_files_info): Likewise.
7305 (tfile_get_trace_status): Likewise.
7306 (tfile_get_tracepoint_status): Likewise.
7307 (tfile_get_traceframe_address): Likewise.
7308 (tfile_trace_find, match_blocktype): Likewise.
7309 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7310 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7311 (tfile_get_trace_state_variable_value): Likewise.
7312 (tfile_has_all_memory, tfile_has_memory): Likewise.
7313 (tfile_has_stack, tfile_has_registers): Likewise.
7314 (tfile_thread_alive, build_traceframe_info): Likewise.
7315 (tfile_traceframe_info, init_tfile_ops): Likewise.
7316 (_initialize_tracepoint): Don't call init_tfile_ops
7317 and add_target_with_completer.
7318 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7319 exec.h, completer.h and filenames.h.
7320 (_initialize_tracefile_tfile): New function.
7322 2014-02-23 Yao Qi <yao@codesourcery.com>
7324 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7326 (HFILES_NO_SRCDIR): Add tracefile.h.
7327 * ctf.c: Include "tracefile.h".
7328 * tracefile.h: New file.
7329 * tracefile.c: New file
7330 * tracefile-tfile.c: New file.
7331 * tracepoint.c: Include "tracefile.h".
7332 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7333 (stop_reason_names): Add const.
7334 (trace_file_writer_xfree): Move it to tracefile.c.
7335 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7336 (trace_save_ctf): Likewise.
7337 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7338 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7339 (tfile_write_header, tfile_write_regblock_type): Likewise.
7340 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7341 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7342 (tfile_write_raw_data, tfile_end): Likewise.
7343 (tfile_trace_file_writer_new): Likewise.
7344 (free_uploaded_tp): Make it extern.
7345 (free_uploaded_tsv): Make it extern.
7346 (_initialize_tracepoint): Move code to register command 'tsave'
7348 * tracepoint.h (stop_reason_names): Declare.
7349 (struct trace_frame_write_ops): Move it to tracefile.h.
7350 (struct trace_file_write_ops): Likewise.
7351 (struct trace_file_writer): Likewise.
7352 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7354 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7359 (get_cores_used_by_process): New parameter num_cores, use it.
7360 (linux_xfer_osdata_processes): Pass num_cores to it.
7361 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7364 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7366 * target.c (memory_xfer_partial): Fix length arg in call to
7367 breakpoint_xfer_memory.
7369 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7372 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7373 number comes after the + or - signs. Adjust length of register
7374 name to be extracted.
7376 2014-02-20 Tom Tromey <tromey@redhat.com>
7378 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7379 (ada_varobj_ops): Mark "extern".
7381 2014-02-20 Tom Tromey <tromey@redhat.com>
7383 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7385 2014-02-20 Doug Evans <xdje42@gmail.com>
7387 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7388 All callers updated.
7389 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7390 All callers updated.
7391 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7392 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7394 2014-02-20 lin zuojian <manjian2006@gmail.com>
7395 Joel Brobecker <brobecker@adacore.com>
7396 Doug Evans <xdje42@gmail.com>
7399 * dwarf2read.c (struct die_info): New member in_process.
7400 (reset_die_in_process): New function.
7401 (process_die): Set it at the start, reset when returning.
7402 (inherit_abstract_dies): Only call process_die if origin_child_die
7403 not already being processed.
7405 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7407 * windows-nat.c (handle_unload_dll): Add function documentation.
7408 (do_initial_windows_stuff): Add comment explaining why we wait
7409 until after inferior initialization has finished before
7410 processing all DLLs.
7412 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7414 * windows-nat.c (get_module_name): Delete.
7415 (windows_get_exec_module_filename): New function, mostly
7416 inspired from get_module_name.
7417 (windows_pid_to_exec_file): Replace call to get_module_name
7418 by call to windows_get_exec_module_filename.
7420 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7422 * windows-nat.c (handle_load_dll): Rewrite this function's
7423 introductory comment. Remove code using get_module_name
7424 to get the DLL's name.
7426 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7428 * windows-nat.c (get_windows_debug_event): Ignore
7429 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7430 if windows_initialization_done == 0.
7431 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7432 Adjust implementation to always load all DLLs.
7433 (do_initial_windows_stuff): Replace call to
7434 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7436 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7438 * windows-nat.c (_initialize_windows_nat): Deprecate the
7439 "dll-symbols" command. Turn the "add-shared-symbol-files"
7440 and "assf" aliases into commands, and deprecate them as well.
7441 * NEWS: Add entry explaining that "dll-symbols" and its two
7442 aliases are now deprecated.
7444 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7446 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7447 new-line in debug string. Remove trailing spaces.
7449 2014-02-19 Stan Shebs <stan@codesourcery.com>
7451 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7453 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7455 * NEWS: Add entry for the new feature
7456 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7459 2014-02-19 Stan Shebs <stan@codesourcery.com>
7461 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7463 2014-02-19 Pedro Alves <palves@redhat.com>
7465 * common/ptid.h (struct ptid): Mention that process_stratum
7466 targets should prefer ptid.lwp.
7468 2014-02-19 Pedro Alves <palves@redhat.com>
7470 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7471 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7472 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7473 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7474 store remote thread ids rather than ptid.tid.
7475 (_initialize_remote): Adjust.
7477 2014-02-19 Tom Tromey <tromey@redhat.com>
7479 * target.c (target_get_unwinder): Rewrite.
7480 (target_get_tailcall_unwinder): Rewrite.
7481 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7482 (record_btrace_to_get_tailcall_unwinder): New function.
7483 (init_record_btrace_ops): Update.
7484 * target.h (struct target_ops) <to_get_unwinder,
7485 to_get_tailcall_unwinder>: Now function pointers. Use
7486 TARGET_DEFAULT_RETURN.
7488 2014-02-19 Tom Tromey <tromey@redhat.com>
7490 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7492 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7494 2014-02-19 Tom Tromey <tromey@redhat.com>
7496 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7498 * target-delegates.c: Rebuild.
7499 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7500 TARGET_DEFAULT_FUNC.
7501 * target.c (default_target_decr_pc_after_break): Rename from
7502 forward_target_decr_pc_after_break. Simplify.
7503 (target_decr_pc_after_break): Rely on delegation.
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target.c (update_current_target): Do not INHERIT to_doc or
7508 to_magic. Do not de_fault to_open or to_close.
7510 2014-02-19 Tom Tromey <tromey@redhat.com>
7512 * gcore.h (objfile_find_memory_regions): Declare.
7513 * gcore.c (objfile_find_memory_regions): No longer static. Add
7515 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7516 * exec.c: Include gcore.h.
7517 (exec_set_find_memory_regions): Remove.
7518 (exec_find_memory_regions): Remove.
7519 (exec_do_find_memory_regions): Remove.
7520 (init_exec_ops): Update.
7521 * defs.h (exec_set_find_memory_regions): Remove.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target-delegates.c: Rebuild.
7526 * target.h (struct target_ops) <to_extra_thread_info,
7527 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7528 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7529 not 0, in TARGET_DEFAULT_RETURN.
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target.c (complete_target_initialization): Remove casts. Use
7534 return_zero_has_execution.
7535 (return_zero): Add "ignore" argument.
7536 (return_zero_has_execution): New function.
7537 (init_dummy_target): Remove casts. Use
7538 return_zero_has_execution.
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7542 * target.c (update_current_target): Update comments. Do not
7545 2014-02-19 Tom Tromey <tromey@redhat.com>
7547 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7549 * corelow.c (core_read_description): Delegate when needed.
7550 * remote.c (remote_read_description): Delegate when needed.
7551 * target-delegates.c: Rebuild.
7552 * target.c (target_read_description): Rewrite.
7553 * target.h (struct target_ops) <to_read_description>: Update
7554 comment. Use TARGET_DEFAULT_RETURN.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target-delegates.c: Rebuild.
7559 * target.c (update_current_target): Don't inherit or default
7561 (find_default_run_target): Check against delegate_can_run.
7562 * target.h (struct target_ops) <to_can_run>: Use
7563 TARGET_DEFAULT_RETURN.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target-delegates.c: Rebuild.
7568 * target.c (target_disconnect): Unconditionally delegate.
7569 * target.h (struct target_ops) <to_disconnect>: Use
7570 TARGET_DEFAULT_NORETURN.
7572 2014-02-19 Tom Tromey <tromey@redhat.com>
7574 * record.c (record_stop): Unconditionally delegate.
7575 * target-delegates.c: Rebuild.
7576 * target.c (target_stop_recording): Unconditionally delegate.
7577 * target.h (struct target_ops) <to_stop_recording>: Use
7578 TARGET_DEFAULT_IGNORE.
7580 2014-02-19 Tom Tromey <tromey@redhat.com>
7582 * target-delegates.c: Rebuild.
7583 * target.c (target_enable_btrace): Unconditionally delegate.
7584 * target.h (struct target_ops) <to_enable_btrace>: Use
7585 TARGET_DEFAULT_NORETURN.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target-delegates.c: Rebuild.
7590 * target.c (target_read_btrace): Unconditionally delegate.
7591 * target.h (struct target_ops) <to_read_btrace>: Use
7592 TARGET_DEFAULT_NORETURN.
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7596 * target-delegates.c: Rebuild.
7597 * target.c (target_teardown_btrace): Unconditionally delegate.
7598 * target.h (struct target_ops) <to_teardown_btrace>: Use
7599 TARGET_DEFAULT_NORETURN.
7601 2014-02-19 Tom Tromey <tromey@redhat.com>
7603 * target-delegates.c: Rebuild.
7604 * target.c (target_disable_btrace): Unconditionally delegate.
7605 * target.h (struct target_ops) <to_disable_btrace>: Use
7606 TARGET_DEFAULT_NORETURN.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * target-delegates.c: Rebuild.
7611 * target.c (default_search_memory): New function.
7612 (simple_search_memory): Update comment.
7613 (target_search_memory): Unconditionally delegate.
7614 * target.h (struct target_ops) <to_search_memory>: Use
7615 TARGET_DEFAULT_FUNC.
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7619 * auxv.c (default_auxv_parse): No longer static.
7620 (target_auxv_parse): Unconditionally delegate.
7621 * auxv.h (default_auxv_parse): Declare.
7622 * target-delegates.c: Rebuild.
7623 * target.c: Include auxv.h.
7624 * target.h (struct target_ops) <to_auxv_parse>: Use
7625 TARGET_DEFAULT_FUNC.
7627 2014-02-19 Tom Tromey <tromey@redhat.com>
7629 * target-delegates.c: Rebuild.
7630 * target.c (target_memory_map): Unconditionally delegate.
7631 * target.h (struct target_ops) <to_memory_map>: Use
7632 TARGET_DEFAULT_RETURN.
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target-delegates.c: Rebuild.
7637 * target.c (target_thread_alive): Unconditionally delegate.
7638 * target.h (struct target_ops) <to_thread_alive>: Use
7639 TARGET_DEFAULT_RETURN.
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7643 * target-delegates.c: Rebuild.
7644 * target.c (target_save_record): Unconditionally delegate.
7645 * target.h (struct target_ops) <to_save_record>: Use
7646 TARGET_DEFAULT_NORETURN.
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7650 * target-delegates.c: Rebuild.
7651 * target.c (target_delete_record): Unconditionally delegate.
7652 * target.h (struct target_ops) <to_delete_record>: Use
7653 TARGET_DEFAULT_NORETURN.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target-delegates.c: Rebuild.
7658 * target.c (target_record_is_replaying): Unconditionally
7660 * target.h (struct target_ops) <to_record_is_replaying>: Use
7661 TARGET_DEFAULT_RETURN.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target-delegates.c: Rebuild.
7666 * target.c (target_goto_record_begin): Unconditionally delegate.
7667 * target.h (struct target_ops) <to_goto_record_begin>: Use
7668 TARGET_DEFAULT_NORETURN.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * target-delegates.c: Rebuild.
7673 * target.c (target_goto_record_end): Unconditionally delegate.
7674 * target.h (struct target_ops) <to_goto_record_end>: Use
7675 TARGET_DEFAULT_NORETURN.
7677 2014-02-19 Tom Tromey <tromey@redhat.com>
7679 * target-delegates.c: Rebuild.
7680 * target.c (target_goto_record): Unconditionally delegate.
7681 * target.h (struct target_ops) <to_goto_record>: Use
7682 TARGET_DEFAULT_NORETURN.
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7686 * target-delegates.c: Rebuild.
7687 * target.c (target_insn_history): Unconditionally delegate.
7688 * target.h (struct target_ops) <to_insn_history>: Use
7689 TARGET_DEFAULT_NORETURN.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * target-delegates.c: Rebuild.
7694 * target.c (target_insn_history_from): Unconditionally delegate.
7695 * target.h (struct target_ops) <to_insn_history_from>: Use
7696 TARGET_DEFAULT_NORETURN.
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7700 * target-delegates.c: Rebuild.
7701 * target.c (target_insn_history_range): Unconditionally delegate.
7702 * target.h (struct target_ops) <to_insn_history_range>: Use
7703 TARGET_DEFAULT_NORETURN.
7705 2014-02-19 Tom Tromey <tromey@redhat.com>
7707 * target-delegates.c: Rebuild.
7708 * target.c (target_call_history): Unconditionally delegate.
7709 * target.h (struct target_ops) <to_call_history>: Use
7710 TARGET_DEFAULT_NORETURN.
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target-delegates.c: Rebuild.
7715 * target.c (target_call_history_from): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_call_history_from>: Use
7717 TARGET_DEFAULT_NORETURN.
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_call_history_range): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_call_history_range>: Use
7724 TARGET_DEFAULT_NORETURN.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_verify_memory): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_verify_memory>: Use
7731 TARGET_DEFAULT_NORETURN.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target-delegates.c: Rebuild.
7736 * target.c (target_core_of_thread): Unconditionally delegate.
7737 * target.h (struct target_ops) <to_core_of_thread>: Use
7738 TARGET_DEFAULT_RETURN.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target-delegates.c: Rebuild.
7743 * target.c (target_flash_done): Unconditionally delegate.
7744 * target.h (struct target_ops) <to_flash_done>: Use
7745 TARGET_DEFAULT_NORETURN.
7747 2014-02-19 Tom Tromey <tromey@redhat.com>
7749 * target-delegates.c: Rebuild.
7750 * target.c (target_flash_erase): Unconditionally delegate.
7751 * target.h (struct target_ops) <to_flash_erase>: Use
7752 TARGET_DEFAULT_NORETURN.
7754 2014-02-19 Tom Tromey <tromey@redhat.com>
7756 * target-delegates.c: Rebuild.
7757 * target.c (target_get_section_table): Unconditionally delegate.
7758 * target.h (struct target_ops) <to_get_section_table>: Use
7759 TARGET_DEFAULT_RETURN.
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7763 * target-delegates.c: Rebuild.
7764 * target.c (target_pid_to_str): Unconditionally delegate.
7765 (init_dummy_target): Don't initialize to_pid_to_str.
7766 (default_pid_to_str): Rename from dummy_pid_to_str.
7767 * target.h (struct target_ops) <to_pid_to_str>: Use
7768 TARGET_DEFAULT_FUNC.
7770 2014-02-19 Tom Tromey <tromey@redhat.com>
7772 * target-delegates.c: Rebuild.
7773 * target.c (target_find_new_threads): Unconditionally delegate.
7774 * target.h (struct target_ops) <to_find_new_threads>: Use
7775 TARGET_DEFAULT_RETURN.
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7779 * target-delegates.c: Rebuild.
7780 * target.c (target_program_signals): Unconditionally delegate.
7781 * target.h (struct target_ops) <to_program_signals>: Use
7782 TARGET_DEFAULT_IGNORE.
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target-delegates.c: Rebuild.
7787 * target.c (target_pass_signals): Unconditionally delegate.
7788 * target.h (struct target_ops) <to_pass_signals>: Use
7789 TARGET_DEFAULT_IGNORE.
7791 2014-02-19 Tom Tromey <tromey@redhat.com>
7793 * target-delegates.c: Rebuild.
7794 * target.c (default_mourn_inferior): New function.
7795 (target_mourn_inferior): Unconditionally delegate.
7796 * target.h (struct target_ops) <to_mourn_inferior>: Use
7797 TARGET_DEFAULT_FUNC.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target-delegates.c: Rebuild.
7802 * target.c (default_follow_fork): New function.
7803 (target_follow_fork): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_follow_fork>: Use
7805 TARGET_DEFAULT_FUNC.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_kill): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_kill>: Use
7812 TARGET_DEFAULT_NORETURN.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_masked_watch_num_registers): Unconditionally
7819 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7820 Use TARGET_DEFAULT_RETURN.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_remove_mask_watchpoint): Unconditionally
7827 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7828 TARGET_DEFAULT_RETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_insert_mask_watchpoint): Unconditionally
7835 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7836 TARGET_DEFAULT_RETURN.
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target-delegates.c: Rebuild.
7841 * target.c (target_ranged_break_num_registers): Unconditionally
7843 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7844 Use TARGET_DEFAULT_RETURN.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (target_fetch_registers): Unconditionally delegate.
7850 * target.h (struct target_ops) <to_fetch_registers>: Use
7851 TARGET_DEFAULT_NORETURN.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.c (update_current_target): Don't inherit or default
7858 * target.h (struct target_ops) <to_stop>: Use
7859 TARGET_DEFAULT_IGNORE.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (update_current_target): Don't inherit or default
7865 to_can_run_breakpoint_commands.
7866 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7867 Use TARGET_DEFAULT_RETURN.
7869 2014-02-19 Tom Tromey <tromey@redhat.com>
7871 * target-delegates.c: Rebuild.
7872 * target.c (update_current_target): Don't inherit or default
7873 to_supports_evaluation_of_breakpoint_conditions.
7874 * target.h (struct target_ops)
7875 <to_supports_evaluation_of_breakpoint_conditions>: Use
7876 TARGET_DEFAULT_RETURN.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (update_current_target): Don't inherit or default
7882 to_augmented_libraries_svr4_read.
7883 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7884 Use TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7891 * target.h (struct target_ops) <to_can_use_agent>: Use
7892 TARGET_DEFAULT_RETURN.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (update_current_target): Don't inherit or default
7899 * target.h (struct target_ops) <to_use_agent>: Use
7900 TARGET_DEFAULT_NORETURN.
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7904 * target-delegates.c: Rebuild.
7905 * target.c (update_current_target): Don't inherit or default
7907 (return_null): Remove.
7908 * target.h (struct target_ops) <to_traceframe_info>: Use
7909 TARGET_DEFAULT_RETURN.
7911 2014-02-19 Tom Tromey <tromey@redhat.com>
7913 * target-delegates.c: Rebuild.
7914 * target.c (update_current_target): Don't inherit or default
7915 to_static_tracepoint_markers_by_strid.
7916 * target.h (struct target_ops)
7917 <to_static_tracepoint_markers_by_strid>: Use
7918 TARGET_DEFAULT_NORETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (update_current_target): Don't inherit or default
7924 to_static_tracepoint_marker_at.
7925 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7926 Use TARGET_DEFAULT_RETURN.
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7933 * target.h (struct target_ops) <to_set_permissions>: Use
7934 TARGET_DEFAULT_IGNORE.
7936 2014-02-19 Tom Tromey <tromey@redhat.com>
7938 * target-delegates.c: Rebuild.
7939 * target.c (update_current_target): Don't inherit or default
7941 * target.h (struct target_ops) <to_get_tib_address>: Use
7942 TARGET_DEFAULT_NORETURN.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * target-delegates.c: Rebuild.
7947 * target.c (update_current_target): Don't inherit or default
7949 * target.h (struct target_ops) <to_set_trace_notes>: Use
7950 TARGET_DEFAULT_RETURN.
7952 2014-02-19 Tom Tromey <tromey@redhat.com>
7954 * target-delegates.c: Rebuild.
7955 * target.c (update_current_target): Don't initialize
7956 to_set_trace_buffer_size.
7957 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7958 TARGET_DEFAULT_IGNORE.
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (update_current_target): Don't inherit or default
7964 to_set_circular_trace_buffer.
7965 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7966 TARGET_DEFAULT_IGNORE.
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7970 * target-delegates.c: Rebuild.
7971 * target.c (update_current_target): Don't inherit or default
7972 to_set_disconnected_tracing.
7973 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7974 TARGET_DEFAULT_IGNORE.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (update_current_target): Don't inherit or default
7980 to_get_min_fast_tracepoint_insn_len.
7981 (return_minus_one): Remove.
7982 * target.h (struct target_ops)
7983 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_get_raw_trace_data.
7990 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7991 TARGET_DEFAULT_NORETURN.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_upload_trace_state_variables.
7998 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7999 Use TARGET_DEFAULT_RETURN.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8005 to_upload_tracepoints.
8006 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8007 TARGET_DEFAULT_RETURN.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8014 * target.h (struct target_ops) <to_save_trace_data>: Use
8015 TARGET_DEFAULT_NORETURN.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_get_trace_state_variable_value.
8022 * target.h (struct target_ops)
8023 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8030 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (update_current_target): Don't inherit or default
8037 * target.h (struct target_ops) <to_trace_stop>: Use
8038 TARGET_DEFAULT_NORETURN.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target-delegates.c: Rebuild.
8043 * target.c (update_current_target): Don't inherit or default
8044 to_get_tracepoint_status.
8045 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8046 TARGET_DEFAULT_NORETURN.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * target-delegates.c: Rebuild.
8051 * target.c (update_current_target): Don't inherit or default
8052 to_get_trace_status.
8053 * target.h (struct target_ops) <to_get_trace_status>: Use
8054 TARGET_DEFAULT_RETURN.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (update_current_target): Don't inherit or default
8061 * target.h (struct target_ops) <to_trace_start>: Use
8062 TARGET_DEFAULT_NORETURN.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (update_current_target): Don't inherit or default
8068 to_trace_set_readonly_regions.
8069 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8070 Use TARGET_DEFAULT_NORETURN.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target-delegates.c: Rebuild.
8075 * target.c (update_current_target): Don't inherit or default
8076 to_disable_tracepoint.
8077 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8078 TARGET_DEFAULT_NORETURN.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_enable_tracepoint.
8085 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8086 TARGET_DEFAULT_NORETURN.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_download_trace_state_variable.
8093 * target.h (struct target_ops) <to_download_trace_state_variable>:
8094 Use TARGET_DEFAULT_NORETURN.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_can_download_tracepoint.
8101 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8102 TARGET_DEFAULT_RETURN.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (update_current_target): Don't inherit or default
8108 to_download_tracepoint.
8109 * target.h (struct target_ops) <to_download_tracepoint>: Use
8110 TARGET_DEFAULT_NORETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (update_current_target): Don't inherit or default
8117 * target.h (struct target_ops) <to_trace_init>: Use
8118 TARGET_DEFAULT_RETURN.
8120 2014-02-19 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (update_current_target): Don't inherit or default
8124 to_supports_string_tracing.
8125 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8126 TARGET_DEFAULT_RETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (update_current_target): Don't inherit or default
8132 to_supports_enable_disable_tracepoint.
8133 * target.h (struct target_ops)
8134 <to_supports_enable_disable_tracepoint>: Use
8135 TARGET_DEFAULT_RETURN.
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8139 * target-delegates.c: Rebuild.
8140 * target.c (update_current_target): Don't inherit or default
8141 to_supports_multi_process.
8142 * target.h (struct target_ops) <to_supports_multi_process>: Use
8143 TARGET_DEFAULT_RETURN.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target-delegates.c: Rebuild.
8148 * target.c (update_current_target): Don't inherit or default
8149 to_get_ada_task_ptid.
8150 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8151 TARGET_DEFAULT_FUNC.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target-delegates.c: Rebuild.
8156 * target.c (update_current_target): Don't inherit or default
8157 to_thread_architecture.
8158 * target.h (struct target_ops) <to_thread_architecture>: Use
8159 TARGET_DEFAULT_FUNC.
8161 2014-02-19 Tom Tromey <tromey@redhat.com>
8163 * target-delegates.c: Rebuild.
8164 * target.c (update_current_target): Don't inherit or default
8165 to_execution_direction.
8166 * target.h (struct target_ops) <to_execution_direction>: Use
8167 TARGET_DEFAULT_FUNC.
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target-delegates.c: Rebuild.
8172 * target.c (update_current_target): Don't inherit or default
8173 to_can_execute_reverse.
8174 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8175 TARGET_DEFAULT_RETURN.
8176 (target_can_execute_reverse): Unconditionally delegate.
8178 2014-02-19 Tom Tromey <tromey@redhat.com>
8180 * target-delegates.c: Rebuild.
8181 * target.c (update_current_target): Don't inherit or default
8183 (dummy_goto_bookmark): Remove.
8184 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8185 * target.h (struct target_ops) <to_goto_bookmark>: Use
8186 TARGET_DEFAULT_NORETURN.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8193 (dummy_get_bookmark): Remove.
8194 (init_dummy_target): Don't inherit or default to_get_bookmark.
8195 * target.h (struct target_ops) <to_get_bookmark>: Use
8196 TARGET_DEFAULT_NORETURN
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
8202 to_make_corefile_notes.
8203 (init_dummy_target): Don't initialize to_make_corefile_notes.
8204 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8205 TARGET_DEFAULT_FUNC.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_find_memory_regions.
8212 (init_dummy_target): Don't initialize to_find_memory_regions.
8213 * target.h (struct target_ops) <to_find_memory_regions>: Use
8214 TARGET_DEFAULT_FUNC.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8221 * target.h (struct target_ops) <to_log_command>: Use
8222 TARGET_DEFAULT_IGNORE.
8223 (target_log_command): Unconditionally delegate.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_pid_to_exec_file.
8230 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8231 TARGET_DEFAULT_RETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8238 (target_thread_name): Unconditionally delegate.
8239 * target.h (struct target_ops) <to_thread_name>: Use
8240 TARGET_DEFAULT_RETURN.
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * target-delegates.c: Rebuild.
8245 * target.c (update_current_target): Don't inherit or default
8246 to_extra_thread_info.
8247 * target.h (struct target_ops) <to_extra_thread_info>: Use
8248 TARGET_DEFAULT_RETURN.
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8255 * target.h (struct target_ops) <to_has_exited>: Use
8256 TARGET_DEFAULT_RETURN..
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8262 to_set_syscall_catchpoint.
8263 (return_one): Remove.
8264 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8265 TARGET_DEFAULT_RETURN.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (update_current_target): Don't inherit or default
8271 to_insert_exec_catchpoint.
8272 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8273 TARGET_DEFAULT_RETURN.
8275 2014-01-08 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (update_current_target): Don't inherit or default
8279 to_insert_exec_catchpoint.
8280 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8281 TARGET_DEFAULT_RETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8287 to_remove_vfork_catchpoint.
8288 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8289 TARGET_DEFAULT_RETURN.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target-delegates.c: Rebuild.
8294 * target.c (update_current_target): Don't inherit or default
8295 to_insert_vfork_catchpoint.
8296 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8297 TARGET_DEFAULT_RETURN.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_remove_fork_catchpoint.
8304 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8305 TARGET_DEFAULT_RETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't inherit or default
8311 to_insert_fork_catchpoint.
8312 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8313 TARGET_DEFAULT_RETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_post_startup_inferior.
8320 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8321 TARGET_DEFAULT_IGNORE.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8328 * target.h (struct target_ops) <to_load>: Use
8329 TARGET_DEFAULT_NORETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8336 * target.h (struct target_ops) <to_terminal_info>: Use
8337 TARGET_DEFAULT_FUNC.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_terminal_save_ours.
8344 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8345 TARGET_DEFAULT_IGNORE.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8352 * target.h (struct target_ops) <to_terminal_ours>: Use
8353 TARGET_DEFAULT_IGNORE.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_terminal_ours_for_output.
8360 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8361 TARGET_DEFAULT_IGNORE.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_terminal_inferior.
8368 * target.h (struct target_ops) <to_terminal_inferior>: Use
8369 TARGET_DEFAULT_IGNORE.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8376 * target.h (struct target_ops) <to_terminal_init>: Use
8377 TARGET_DEFAULT_IGNORE.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8383 to_can_accel_watchpoint_condition.
8384 * target.h (struct target_ops)
8385 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_region_ok_for_hw_watchpoint.
8392 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8393 Use TARGET_DEFAULT_FUNC.
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_watchpoint_addr_within_range.
8400 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8401 Use TARGET_DEFAULT_FUNC.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_remove_watchpoint.
8408 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8409 TARGET_DEFAULT_NORETURN.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_insert_watchpoint.
8416 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8417 TARGET_DEFAULT_RETURN.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_remove_hw_breakpoint.
8424 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8425 TARGET_DEFAULT_RETURN.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_insert_hw_breakpoint.
8432 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8433 TARGET_DEFAULT_RETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_can_use_hw_breakpoint.
8440 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8441 TARGET_DEFAULT_RETURN.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8448 * target.h (struct target_ops) <to_files_info>: Use
8449 TARGET_DEFAULT_IGNORE.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8456 * target.h (struct target_ops) <to_store>: Use
8457 TARGET_DEFAULT_NORETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8464 * target.h (struct target_ops) <to_post_attach>: Use
8465 TARGET_DEFAULT_IGNORE.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8472 (default_rcmd): New function.
8473 (do_monitor_command): Unconditionally delegate.
8474 * target.h (struct target_ops) <to_rmcd>: Use
8475 TARGET_DEFAULT_FUNC.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (init_dummy_target): Don't initialize to_attach.
8481 (target_attach): Unconditionally delegate.
8482 * target.h (struct target_ops) <to_attach>: Use
8483 TARGET_DEFAULT_FUNC.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (target_detach): Unconditionally delegate.
8489 (init_dummy_target): Don't initialize to_detach.
8490 * target.h (struct target_ops) <to_detach>: Use
8491 TARGET_DEFAULT_IGNORE.
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8495 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8497 (target_augmented_libraries_svr4_read): Add argument.
8498 * target.c (update_current_target): Update.
8499 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target.h (struct target_ops) <to_call_history_range>: Add
8506 * target.c (target_call_history_range): Add argument.
8507 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8509 (record_btrace_call_history_from): Update.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target.h (struct target_ops) <to_call_history_from>: Add
8515 * target.c (target_call_history_from): Add argument.
8516 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target.h (struct target_ops) <to_call_history>: Add argument.
8522 * target.c (target_call_history): Add argument.
8523 * record-btrace.c (record_btrace_call_history): Add 'self'
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target.h (struct target_ops) <to_insn_history_range>: Add
8530 * target.c (target_insn_history_range): Add argument.
8531 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8533 (record_btrace_insn_history_from): Update.
8535 2014-02-19 Tom Tromey <tromey@redhat.com>
8537 * target.h (struct target_ops) <to_insn_history_from>: Add
8539 * target.c (target_insn_history_from): Add argument.
8540 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * target.h (struct target_ops) <to_insn_history>: Add argument.
8546 * target.c (target_insn_history): Add argument.
8547 * record-btrace.c (record_btrace_insn_history): Add 'self'
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target.h (struct target_ops) <to_goto_record>: Add argument.
8553 * target.c (target_goto_record): Add argument.
8554 * record-full.c (record_full_goto): Add 'self' argument.
8555 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8559 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8560 * target.c (target_goto_record_end): Add argument.
8561 * record-full.c (record_full_goto_end): Add 'self' argument.
8562 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target.h (struct target_ops) <to_goto_record_begin>: Add
8568 * target.c (target_goto_record_begin): Add argument.
8569 * record-full.c (record_full_goto_begin): Add 'self' argument.
8570 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8573 2014-02-19 Tom Tromey <tromey@redhat.com>
8575 * target.h (struct target_ops) <to_record_is_replaying>: Add
8577 * target.c (target_record_is_replaying): Add argument.
8578 * record-full.c (record_full_is_replaying): Add 'self' argument.
8579 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8581 (record_btrace_xfer_partial, record_btrace_store_registers)
8582 (record_btrace_prepare_to_store, record_btrace_resume)
8583 (record_btrace_wait, record_btrace_decr_pc_after_break)
8584 (record_btrace_find_new_threads, record_btrace_thread_alive):
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target.h (struct target_ops) <to_delete_record>: Add argument.
8590 * target.c (target_delete_record): Add argument.
8591 * record-full.c (record_full_delete): Add 'self' argument.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target.h (struct target_ops) <to_save_record>: Add argument.
8596 * target.c (target_save_record): Add argument.
8597 * record-full.c (record_full_save): Add 'self' argument.
8598 (record_full_save): Add 'self' argument.
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target.h (struct target_ops) <to_info_record>: Add argument.
8603 * target.c (target_info_record): Add argument.
8604 * record.c (info_record_command): Add argument.
8605 * record-full.c (record_full_info): Add 'self' argument.
8606 * record-btrace.c (record_btrace_info): Add 'self' argument.
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8610 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8611 * target.c (target_stop_recording): Add argument.
8612 * record.c (record_stop): Add argument.
8613 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8619 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8620 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8622 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8623 (_initialize_amd64_linux_nat): Use it.
8624 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8625 (_initialize_i386_linux_nat): Use it.
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8630 * target.c (target_teardown_btrace): Add argument.
8631 * remote.c (remote_teardown_btrace): Add 'self' argument.
8632 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8634 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8640 * target.c (target_disable_btrace): Add argument.
8641 * remote.c (remote_disable_btrace): Add 'self' argument.
8642 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8644 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8650 * target.c (target_enable_btrace): Add argument.
8651 * remote.c (remote_enable_btrace): Add 'self' argument.
8652 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8654 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8660 (target_can_use_agent): Add argument.
8661 * target.c (update_current_target): Update.
8662 * remote.c (remote_can_use_agent): Add 'self' argument.
8663 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target.h (struct target_ops) <to_use_agent>: Add argument.
8668 (target_use_agent): Add argument.
8669 * target.c (update_current_target): Update.
8670 * remote.c (remote_use_agent): Add 'self' argument.
8671 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8676 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8677 (target_traceframe_info): Add argument.
8678 * target.c (update_current_target): Update.
8679 * remote.c (remote_traceframe_info): Add 'self' argument.
8680 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target.h (target_static_tracepoint_markers_by_strid): Add
8686 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8688 * target.c (update_current_target): Update.
8689 * remote.c (struct target_ops)
8690 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8691 * linux-nat.c (struct target_ops)
8692 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8698 (target_static_tracepoint_marker_at): Add argument.
8699 * target.c (update_current_target): Update.
8700 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8706 (target_set_permissions): Add argument.
8707 * target.c (update_current_target): Update.
8708 * remote.c (remote_set_permissions): Add 'self' argument.
8709 (remote_start_remote): Update.
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8714 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8715 (target_get_tib_address): Add argument.
8716 * target.c (update_current_target): Update.
8717 * remote.c (remote_get_tib_address): Add 'self' argument.
8719 2014-02-19 Tom Tromey <tromey@redhat.com>
8721 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8722 (target_set_trace_notes): Add argument.
8723 * target.c (update_current_target): Update.
8724 * remote.c (remote_set_trace_notes): Add 'self' argument.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8730 (target_set_trace_buffer_size): Add argument.
8731 * target.c (update_current_target): Update.
8732 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8738 (target_set_circular_trace_buffer): Add argument.
8739 * target.c (update_current_target): Update.
8740 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8745 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8747 (target_set_disconnected_tracing): Add argument.
8748 * target.c (update_current_target): Update.
8749 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target.h (struct target_ops)
8754 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8755 (target_get_min_fast_tracepoint_insn_len): Add argument.
8756 * target.c (update_current_target): Update.
8757 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8762 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8764 (target_get_raw_trace_data): Add argument.
8765 * target.c (update_current_target): Update.
8766 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8772 (target_upload_trace_state_variables): Add argument.
8773 * target.c (update_current_target): Update.
8774 * remote.c (remote_upload_trace_state_variables): Add 'self'
8776 (remote_start_remote): Update.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8782 (target_upload_tracepoints): Add argument.
8783 * target.c (update_current_target): Update.
8784 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8785 (remote_start_remote): Update.
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8789 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8790 (target_save_trace_data): Add argument.
8791 * target.c (update_current_target): Update.
8792 * remote.c (remote_save_trace_data): Add 'self' argument.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8798 * target.h (struct target_ops)
8799 <to_get_trace_state_variable_value>: Add argument.
8800 (target_get_trace_state_variable_value): Add argument.
8801 * target.c (update_current_target): Update.
8802 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8804 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8809 * target.h (struct target_ops) <to_trace_find>: Add argument.
8810 (target_trace_find): Add argument.
8811 * target.c (update_current_target): Update.
8812 * remote.c (remote_trace_find): Add 'self' argument.
8813 * ctf.c (ctf_trace_find): Add 'self' argument.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8818 (target_trace_stop): Add argument.
8819 * target.c (update_current_target): Update.
8820 * remote.c (remote_trace_stop): Add 'self' argument.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8825 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8827 (target_get_tracepoint_status): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8834 * target.h (struct target_ops) <to_get_trace_status>: Add
8836 (target_get_trace_status): Add argument.
8837 * target.c (update_current_target): Update.
8838 * remote.c (remote_get_trace_status): Add 'self' argument.
8839 (remote_start_remote, remote_can_download_tracepoint): Update.
8840 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target.h (struct target_ops) <to_trace_start>: Add argument.
8845 (target_trace_start): Add argument.
8846 * target.c (update_current_target): Update.
8847 * remote.c (remote_trace_start): Add 'self' argument.
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8853 (target_trace_set_readonly_regions): Add argument.
8854 * target.c (update_current_target): Update.
8855 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8862 (target_disable_tracepoint): Add argument.
8863 * target.c (update_current_target): Update.
8864 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8870 (target_enable_tracepoint): Add argument.
8871 * target.c (update_current_target): Update.
8872 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target.h (struct target_ops) <to_download_trace_state_variable>:
8878 (target_download_trace_state_variable): Add argument.
8879 * target.c (update_current_target): Update.
8880 * remote.c (remote_download_trace_state_variable): Add 'self'
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8887 (target_can_download_tracepoint): Add argument.
8888 * target.c (update_current_target): Update.
8889 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target.h (struct target_ops) <to_download_tracepoint>: Add
8895 (target_download_tracepoint): Add argument.
8896 * target.c (update_current_target): Update.
8897 * remote.c (remote_download_tracepoint): Add 'self' argument.
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8901 * target.h (struct target_ops) <to_trace_init>: Add argument.
8902 (target_trace_init): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_trace_init): Add 'self' argument.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8909 * target.c (target_fileio_readlink): Add argument.
8910 * remote.c (remote_hostio_readlink): Add 'self' argument.
8911 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8915 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8916 * target.c (target_fileio_unlink): Add argument.
8917 * remote.c (remote_hostio_unlink): Add 'self' argument.
8918 (remote_file_delete): Update.
8919 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8924 * target.c (target_fileio_close): Add argument.
8925 * remote.c (remote_hostio_close): Add 'self' argument.
8926 (remote_hostio_close_cleanup): Update.
8927 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8929 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8934 * target.c (target_fileio_pread): Add argument.
8935 * remote.c (remote_hostio_pread): Add 'self' argument.
8936 (remote_bfd_iovec_pread, remote_file_get): Update.
8937 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8942 * target.c (target_fileio_pwrite): Add argument.
8943 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8944 (remote_file_put): Update.
8945 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8950 * target.c (target_fileio_open): Add argument.
8951 * remote.c (remote_hostio_open): Add 'self' argument.
8952 (remote_bfd_iovec_open): Add 'self' argument.
8953 (remote_file_put): Add 'self' argument.
8954 (remote_file_get): Add 'self' argument.
8955 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8961 (target_can_run_breakpoint_commands): Add argument.
8962 * target.c (update_current_target): Update.
8963 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8965 (remote_insert_breakpoint): Add 'self' argument.
8966 (remote_insert_hw_breakpoint): Add 'self' argument.
8967 (remote_can_run_breakpoint_commands): Add 'self' argument.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops)
8972 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8973 (target_supports_evaluation_of_breakpoint_conditions): Add
8975 * target.c (update_current_target): Update.
8976 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8978 (remote_insert_breakpoint): Add 'self' argument.
8979 (remote_insert_hw_breakpoint): Add 'self' argument.
8980 (remote_supports_cond_breakpoints): Add 'self' argument.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8986 (target_supports_string_tracing): Add argument.
8987 * target.c (update_current_target): Update.
8988 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target.h (struct target_ops)
8993 <to_supports_disable_randomization>: Add argument.
8994 * target.c (find_default_supports_disable_randomization): Add
8996 (target_supports_disable_randomization): Add argument.
8997 (find_default_supports_disable_randomization): Add 'self'
8999 * remote.c (extended_remote_supports_disable_randomization): Add
9001 (remote_supports_disable_randomization): Add 'self' argument.
9002 (extended_remote_create_inferior): Update.
9003 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target.h (struct target_ops)
9009 <to_supports_enable_disable_tracepoint>: Add argument.
9010 (target_supports_enable_disable_tracepoint): Add argument.
9011 * target.c (update_current_target): Update.
9012 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * target.h (struct target_ops) <to_supports_multi_process>: Add
9019 (target_supports_multi_process): Add argument.
9020 * target.c (update_current_target): Update.
9021 * remote.c (remote_supports_multi_process): Add 'self' argument.
9022 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9024 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * target.h (struct target_ops) <to_execution_direction>: Add
9031 (target_execution_direction): Add argument.
9032 * target.c (default_execution_direction): Add 'self' argument.
9033 * record-full.c (record_full_execution_direction): Add 'self'
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9040 (target_can_execute_reverse): Add argument.
9041 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9042 * record-full.c (record_full_can_execute_reverse): Add 'self'
9044 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9050 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9052 (target_get_ada_task_ptid): Add argument.
9053 * target.c (update_current_target): Update.
9054 (default_get_ada_task_ptid): Add 'self' argument.
9055 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9056 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9057 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9059 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9061 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9063 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9065 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9066 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9071 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9072 (target_goto_bookmark): Add argument.
9073 * target.c (dummy_goto_bookmark): Add 'self' argument.
9074 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9079 (target_get_bookmark): Add argument.
9080 * target.c (dummy_get_bookmark): Add 'self' argument.
9081 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9087 (target_make_corefile_notes): Add argument.
9088 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9089 * procfs.c (procfs_make_note_section): Add 'self' argument.
9090 (procfs_make_note_section): Add 'self' argument.
9091 (procfs_make_note_section): Add 'self' argument.
9092 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9094 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9095 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9096 * exec.c (exec_make_note_section): Add 'self' argument.
9097 (exec_make_note_section): Add 'self' argument.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * target.h (struct target_ops) <to_find_memory_regions>: Add
9103 (target_find_memory_regions): Add argument.
9104 * target.c (dummy_find_memory_regions): Add 'self' argument.
9105 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9106 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9107 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9108 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9109 * exec. (exec_do_find_memory_regions): New global.
9110 (exec_set_find_memory_regions): Rewrite.
9111 (exec_find_memory_regions): New function.
9112 (init_exec_ops): Use exec_find_memory_regions.
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_supports_non_stop>: Add
9118 * target.c (find_default_supports_non_stop): Add argument.
9119 (target_supports_non_stop): Add argument.
9120 (find_default_supports_non_stop): Add 'self' argument.
9121 * remote.c (remote_supports_non_stop): Add 'self' argument.
9122 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target.h (struct target_ops) <to_log_command>: Add argument.
9127 (target_log_command): Add argument.
9128 * serial.h (serial_log_command): Add 'self' argument.
9129 * serial.c (serial_log_command): Add 'self' argument.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9134 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9136 (target_pid_to_exec_file): Add argument.
9137 * target.c (debug_to_pid_to_exec_file): Add argument.
9138 (update_current_target): Update.
9139 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9140 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9141 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9142 (linux_handle_extended_wait): Update.
9143 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9144 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9145 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9146 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target.h (struct target_ops) <to_rcmd>: Add argument.
9151 (target_rcmd): Add argument.
9152 * target.c (debug_to_rcmd): Add argument.
9153 (update_current_target, do_monitor_command): Update.
9154 * remote.c (remote_rcmd): Add 'self' argument.
9155 * monitor.c (monitor_rcmd): Add 'self' argument.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * windows-nat.c (windows_stop): Add 'self' argument.
9160 * target.h (struct target_ops) <to_stop>: Add argument.
9161 * target.c (target_stop): Add argument.
9162 (debug_to_stop): Add argument.
9163 (update_current_target): Update.
9164 * remote.c (remote_stop): Add 'self' argument.
9165 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9166 (gdbsim_cntrl_c): Update.
9167 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9168 * procfs.c (procfs_stop): Add 'self' argument.
9169 * nto-procfs.c (procfs_stop): Add 'self' argument.
9170 * monitor.c (monitor_stop): Add 'self' argument.
9171 (monitor_open): Update.
9172 * linux-nat.c (linux_nat_stop): Add argument.
9173 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9174 * gnu-nat.c (gnu_stop): Add 'self' argument.
9175 * darwin-nat.c (darwin_stop): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_thread_name>: Add argument.
9180 * target.c (target_thread_name): Add argument.
9181 (update_current_target): Update.
9182 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target.h (struct target_ops) <to_extra_thread_info>: Add
9188 (target_extra_thread_info): Add argument.
9189 * target.c (update_current_target): Update.
9190 * remote.c (remote_threads_extra_info): Add 'self' argument.
9191 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9193 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9194 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9195 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9197 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9199 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9201 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_program_signals>: Add argument.
9207 * target.c (target_program_signals): Add argument.
9208 * remote.c (remote_program_signals): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9213 * target.c (target_pass_signals): Add argument.
9214 * remote.c (remote_pass_signals): Add 'self' argument.
9215 (remote_start_remote): Update.
9216 * procfs.c (procfs_pass_signals): Add 'self' argument.
9217 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9218 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9219 (linux_nat_create_inferior, linux_nat_attach): Update.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * windows-nat.c (windows_can_run): Add 'self' argument.
9224 * target.h (struct target_ops) <to_can_run>: Add argument.
9225 (target_can_run): Add argument.
9226 * target.c (debug_to_can_run): Add argument.
9227 (update_current_target): Update.
9228 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9229 * inf-child.c (inf_child_can_run): Add 'self' argument.
9230 * go32-nat.c (go32_can_run): Add 'self' argument.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target.h (struct target_ops) <to_has_exited>: Add argument.
9235 (target_has_exited): Add argument.
9236 * target.c (debug_to_has_exited): Add argument.
9237 (update_current_target): Update.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9243 (target_set_syscall_catchpoint): Add argument.
9244 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9246 * target.c (update_current_target): Update.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9252 (target_remove_exec_catchpoint): Add argument.
9253 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9254 (update_current_target): Update.
9255 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9262 (target_insert_exec_catchpoint): Add argument.
9263 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9264 (update_current_target): Update.
9265 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9272 (target_remove_vfork_catchpoint): Add argument.
9273 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9274 (update_current_target): Update.
9275 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9282 (target_insert_vfork_catchpoint): Add argument.
9283 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9284 (update_current_target): Update.
9285 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9292 (target_remove_fork_catchpoint): Add argument.
9293 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9294 (update_current_target): Update.
9295 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9302 (target_insert_fork_catchpoint): Add argument.
9303 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9304 (update_current_target): Update.
9305 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9312 (target_post_startup_inferior): Add argument.
9313 * target.c (debug_to_post_startup_inferior): Add argument.
9314 (update_current_target): Update.
9315 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9317 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9319 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9321 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9323 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9325 (super_post_startup_inferior): Likewise.
9326 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9328 (super_post_startup_inferior): Likewise.
9329 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9330 Add 'self' argument.
9331 (super_post_startup_inferior): Likewise.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target.h (struct target_ops) <to_load>: Add argument.
9336 * target.c (target_load): Add argument.
9337 (debug_to_load): Add argument.
9338 (update_current_target): Update.
9339 * remote.c (remote_load): Add 'self' argument.
9340 * remote-sim.c (gdbsim_load): Add 'self' argument.
9341 * remote-mips.c (mips_load): Add 'self' argument.
9342 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9343 * monitor.c (monitor_load): Add 'self' argument.
9344 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9349 (target_terminal_info): Add argument.
9350 * target.c (debug_to_terminal_info): Add argument.
9351 (default_terminal_info): Likewise.
9352 * inflow.c (child_terminal_info): Add 'self' argument.
9353 * inferior.h (child_terminal_info): Add 'self' argument.
9354 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9360 (target_terminal_save_ours): Add argument.
9361 * target.c (debug_to_terminal_save_ours): Add argument.
9362 (update_current_target): Update.
9363 * inflow.c (terminal_save_ours): Add 'self' argument.
9364 * inferior.h (terminal_save_ours): Add 'self' argument.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9369 (target_terminal_ours): Add argument.
9370 * target.c (debug_to_terminal_ours): Add argument.
9371 (update_current_target): Update.
9372 * remote.c (remote_terminal_ours): Add 'self' argument.
9373 (remote_close): Update.
9374 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9375 * inflow.c (terminal_ours): Add 'self' argument.
9376 * inferior.h (terminal_ours): Add 'self' argument.
9377 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9379 2014-02-19 Pedro Alves <palves@redhat.com>
9380 Tom Tromey <tromey@redhat.com>
9382 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9384 (target_terminal_ours_for_output): Add argument.
9385 * target.c (debug_to_terminal_ours_for_output): Add argument.
9386 (update_current_target): Update.
9387 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9388 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9389 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_terminal_inferior>: Add
9395 * target.c (target_terminal_inferior): Add argument.
9396 (update_current_target): Update.
9397 * remote.c (remote_terminal_inferior): Add 'self' argument.
9398 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9399 * inflow.c (terminal_inferior): Add 'self' argument.
9400 * inferior.h (terminal_inferior): Add 'self' argument.
9401 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9402 (go32_terminal_inferior): Add 'self' argument.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9407 (target_terminal_init): Add argument.
9408 * target.c (debug_to_terminal_init): Add argument.
9409 (update_current_target): Update.
9410 * inflow.c (terminal_init_inferior): Add 'self' argument.
9411 * inferior.h (terminal_init_inferior): Add 'self' argument.
9412 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9413 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target.h (struct target_ops)
9418 <to_can_accel_watchpoint_condition>: Add argument.
9419 (target_can_accel_watchpoint_condition): Add argument.
9420 * target.c (debug_to_can_accel_watchpoint_condition): Add
9422 (update_current_target): Update.
9423 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9430 (target_region_ok_for_hw_watchpoint): Add argument.
9431 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9432 (default_region_ok_for_hw_watchpoint): Add argument.
9433 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9434 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9436 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9438 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9440 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9442 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9444 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9446 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9447 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9449 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9450 Add 'self' argument.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9456 (target_insert_watchpoint): Add argument.
9457 * target.c (debug_to_insert_watchpoint): Add argument.
9458 (update_current_target): Update.
9459 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9460 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9461 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9462 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9463 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9464 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9466 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9467 (procfs_insert_hw_watchpoint): Add 'self' argument.
9468 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9470 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9472 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9474 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9475 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9477 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9484 (target_remove_watchpoint): Add argument.
9485 * target.c (debug_to_remove_watchpoint): Add argument.
9486 (update_current_target): Update.
9487 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9488 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9489 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9490 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9491 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9492 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9494 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9495 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9497 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9499 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9501 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9502 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9504 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9511 (target_remove_hw_breakpoint): Add argument.
9512 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9513 (update_current_target): Update.
9514 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9515 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9517 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9518 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9520 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9527 (target_insert_hw_breakpoint): Add argument.
9528 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9529 (update_current_target): Update.
9530 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9531 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9533 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9534 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9535 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9537 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9544 (target_can_use_hardware_watchpoint): Add argument.
9545 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9546 (update_current_target): Update.
9547 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9549 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9551 * remote.c (remote_check_watch_resources): Add 'self' argument.
9552 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9553 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9555 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9556 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9558 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9560 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9562 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9564 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9566 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9568 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9569 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9571 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_post_attach>: Add argument.
9577 (target_post_attach): Add argument.
9578 * target.c (debug_to_post_attach): Add argument.
9579 (update_current_target): Update.
9580 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9581 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9582 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9583 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9584 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * windows-nat.c (windows_close): Add 'self' argument.
9589 * tracepoint.c (tfile_close): Add 'self' argument.
9590 * target.h (struct target_ops) <to_close>: Add argument.
9591 * target.c (target_close): Add argument.
9592 (update_current_target): Update.
9593 * remote.c (remote_close): Add 'self' argument.
9594 * remote-sim.c (gdbsim_close): Add 'self' argument.
9595 * remote-mips.c (mips_close): Add 'self' argument.
9596 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9597 * record-full.c (record_full_close): Add 'self' argument.
9598 * record-btrace.c (record_btrace_close): Add 'self' argument.
9599 * monitor.h (monitor_close): Add 'self' argument.
9600 * monitor.c (monitor_close): Add 'self' argument.
9601 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9602 * linux-nat.c (linux_nat_close): Add argument.
9603 * go32-nat.c (go32_close): Add 'self' argument.
9604 * exec.c (exec_close_1): Add 'self' argument.
9605 * ctf.c (ctf_close): Add 'self' argument.
9606 * corelow.c (core_close): Add 'self' argument.
9607 (core_close_cleanup): Update.
9608 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9609 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * remote.c (remote_load): New function.
9614 (init_remote_ops): Use it.
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9620 * common/linux-btrace.h (linux_supports_btrace): Update.
9621 * remote.c (remote_supports_btrace): Add "self" argument.
9622 * target-delegates.c: Rebuild.
9623 * target.c (target_supports_btrace): Remove.
9624 * target.h (struct target_ops) <to_supports_btrace>: Add
9625 target_ops argument.
9626 (target_supports_btrace): New define.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * record-full.c (record_full_beneath_to_resume_ops)
9631 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9632 (record_full_beneath_to_wait)
9633 (record_full_beneath_to_store_registers_ops)
9634 (record_full_beneath_to_store_registers)
9635 (record_full_beneath_to_xfer_partial_ops)
9636 (record_full_beneath_to_xfer_partial)
9637 (record_full_beneath_to_insert_breakpoint_ops)
9638 (record_full_beneath_to_insert_breakpoint)
9639 (record_full_beneath_to_remove_breakpoint_ops)
9640 (record_full_beneath_to_remove_breakpoint)
9641 (record_full_beneath_to_stopped_by_watchpoint)
9642 (record_full_beneath_to_stopped_data_address)
9643 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9644 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9645 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9646 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9647 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9648 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9649 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9650 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9651 (record_full_resume, record_full_wait_1)
9652 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9653 (record_full_store_registers, record_full_xfer_partial)
9654 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9655 (record_full_async, record_full_core_xfer_partial): Use target
9657 * target-delegates.c: Rebuild.
9658 * target.c (current_xfer_partial): Remove.
9659 (update_current_target): Do not INHERIT or de_fault
9660 to_insert_breakpoint, to_remove_breakpoint,
9661 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9662 to_is_async_p, to_async. Do not set to_xfer_partial field.
9663 (default_xfer_partial): Simplify.
9664 (current_xfer_partial): Remove.
9665 (target_wait, target_resume): Simplify.
9666 (find_default_can_async_p, find_default_is_async_p): Update.
9667 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9668 to_xfer_partial, to_stopped_by_watchpoint,
9669 to_stopped_data_address.
9670 (target_store_registers): Simplify.
9671 (forward_target_remove_breakpoint)
9672 (forward_target_insert_breakpoint): Remove.
9673 (target_remove_breakpoint, target_insert_breakpoint)
9674 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9675 * target.h (struct target_ops) <to_resume, to_wait,
9676 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9677 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9678 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9680 (forward_target_remove_breakpoint)
9681 (forward_target_insert_breakpoint): Remove.
9682 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9684 (record_btrace_insert_breakpoint): Delegate directly.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target-delegates.c: New file.
9690 * target.c: Include target-delegates.c.
9691 (init_dummy_target): Call install_dummy_methods.
9692 (complete_target_initialization): Call install_delegators.
9693 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9694 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9695 * make-target-delegates: New file.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * record.c (find_record_target): Use find_target_at.
9700 * target.c (find_target_at): New function.
9701 * target.h (find_target_at): Declare.
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9707 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9709 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9710 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9712 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9714 * linux-nat.c (save_sigtrap): Update.
9715 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9716 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9717 (linux_nat_close): Update.
9718 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9720 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9722 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9723 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9724 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9725 (tmp_to_async): Add 'ops' argument.
9726 (record_full_stopped_by_watchpoint, record_full_async)
9727 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9729 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9730 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9731 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9732 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9733 (remote_is_async_p, remote_async): Add 'ops' argument.
9734 (remote_stopped_data_address): Update.
9735 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9736 * target.c (update_current_target)
9737 (find_default_can_async_p, find_default_is_async_p): Update.
9738 (init_dummy_target): Update.
9739 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9740 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9741 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9742 (target_can_async_p, target_is_async_p, target_async)
9743 (target_stopped_by_watchpoint): Update.
9745 2014-02-19 Yao Qi <yao@codesourcery.com>
9748 * gdbarch.sh: Remove startup_gdbarch.
9749 * gdbarch.c: Regenerated.
9750 * gdbarch.h: Likewise.
9752 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9754 * rl78-tdep.c (rl78_g10_register_name): New function.
9755 (rl78_return_value): Add g10 support.
9756 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9759 2014-02-17 Doug Evans <xdje42@gmail.com>
9761 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9762 (SUBDIR_GUILE_SRCS): Ditto.
9763 (scm-gsmob.o): Ditto.
9765 2014-02-17 Yao Qi <yao@codesourcery.com>
9767 * gnu-nat.c (ILL_RPC): Declare defined function.
9769 2014-02-17 Yao Qi <yao@codesourcery.com>
9771 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9772 mach_msg_type_number_t.
9773 (gnu_write_inferior): Likewise.
9775 2014-02-17 Yao Qi <yao@codesourcery.com>
9777 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9779 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9780 (inf_validate_procs, inf_signal): Likewise.
9781 (S_exception_raise_request): Likewise.
9782 (do_mach_notify_dead_name): Likewise.
9783 (steal_exc_port): Likewise.
9784 (gnu_read_inferior): Change 'copy_count''s type to
9785 mach_msg_type_number_t.
9786 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9789 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9791 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9792 flag. Adjust all users; in particular...
9793 (gnu_wait): ..., don't decrement its value in here...
9794 (gnu_create_inferior): ..., and instead set the flag in here,
9795 around the startup_inferior call, and call that one with
9796 START_INFERIOR_TRAPS_EXPECTED.
9798 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9799 (ILL_RPC): ... new macro.
9800 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9801 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9802 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9803 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9804 functions with ILL_RPC macro.
9805 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9806 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9807 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9808 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9809 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9810 (S_proc_getlogin_reply, S_proc_getsid_reply)
9811 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9812 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9813 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9814 (S_proc_getnports_reply, S_proc_is_important_reply)
9815 (S_proc_get_code_reply): New stub functions, generated with
9818 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9819 collected the type check structures.
9821 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9823 2014-02-14 Doug Evans <dje@google.com>
9825 * target.c (target_write_partial): Fix result type.
9827 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9829 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9830 the proper offsets to access fpregset_t.
9832 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9834 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9835 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9836 * h8300-tdep.c (setmachinelist): Remove global.
9837 * hppa-tdep.c (hppa_sigtramp): Remove global.
9838 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9839 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9840 * ravenscar-thread.c (update_target_observer): Remove global.
9841 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9843 2014-02-12 Tom Tromey <tromey@redhat.com>
9845 * common/rsp-low.c: Update comments.
9846 * common/rsp-low.h: Update comments.
9848 2014-02-12 Tom Tromey <tromey@redhat.com>
9850 * common/rsp-low.c (convert_ascii_to_int): Remove.
9851 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9853 2014-02-12 Tom Tromey <tromey@redhat.com>
9855 * common/rsp-low.h (unhexify): Don't declare.
9856 * common/rsp-low.c (unhexify): Remove.
9858 2014-02-12 Tom Tromey <tromey@redhat.com>
9860 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9861 * common/rsp-low.c (convert_int_to_ascii): Remove.
9863 2014-02-12 Tom Tromey <tromey@redhat.com>
9865 * common/rsp-low.h (hexify): Don't declare.
9866 * common/rsp-low.c (hexify): Remove.
9868 2014-02-12 Tom Tromey <tromey@redhat.com>
9870 * common/rsp-low.c (hexify): Never take strlen of argument.
9872 2014-02-12 Tom Tromey <tromey@redhat.com>
9874 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9875 * remote.c (extended_remote_run, remote_rcmd)
9876 (remote_download_trace_state_variable, remote_save_trace_data)
9877 (remote_set_trace_notes): Update.
9878 * tracepoint.c (encode_source_string, tfile_write_status)
9879 (tfile_write_uploaded_tsv): Update.
9881 2014-02-12 Tom Tromey <tromey@redhat.com>
9883 * tracepoint.c: Include rsp-low.h.
9884 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9885 * remote.c: Include rsp-low.h.
9886 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9887 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9888 (remote_unescape_input): Move to common/rsp-low.c.
9889 * common/rsp-low.h: New file.
9890 * common/rsp-low.c: New file.
9891 * Makefile.in (SFILES): Add common/rsp-low.c.
9892 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9893 (COMMON_OBS): Add rsp-low.o.
9894 (rsp-low.o): New target.
9896 2014-02-12 Tom Tromey <tromey@redhat.com>
9898 * utils.h: Include print-utils.h.
9899 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9900 (int_string, core_addr_to_string, core_addr_to_string_nz)
9901 (hex_string, hex_string_custom): Don't declare.
9902 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9903 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9904 (hex_string_custom, int_string, core_addr_to_string)
9905 (core_addr_to_string_nz, host_address_to_string): Move to
9906 common/print-utils.c.
9907 * common/print-utils.h: New file.
9908 * common/print-utils.c: New file
9909 * Makefile.in (SFILES): Add common/print-utils.c.
9910 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9911 (COMMON_OBS): Add print-utils.o.
9912 (print-utils.o): New target.
9914 2014-02-12 Tom Tromey <tromey@redhat.com>
9916 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9918 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9920 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9922 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9924 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9925 if a PT_IO ptrace request returns sucessfully but indicates that 0
9926 bytes were transferred.
9928 2014-02-12 Pedro Alves <palves@redhat.com>
9929 Kevin Buettner <kevinb@redhat.com>
9931 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9932 TYPE_INSTANCE_FLAG_CODE_SPACE.
9934 2014-02-12 Pedro Alves <palves@redhat.com>
9936 * h8300-tdep.c (pseudo_from_raw_register)
9937 (raw_from_pseudo_register): New functions.
9938 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9941 2014-02-12 Pedro Alves <palves@redhat.com>
9943 * h8300-tdep.c (h8300_register_sim_regno): New function.
9944 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9945 gdbarch_register_sim_regno hook.
9947 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9949 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9951 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9953 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9955 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9957 * obsd-tdep.h (obsd_init_abi): New prototype.
9958 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9959 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9960 (obsd_init_abi): New functions.
9961 * i386obsd-tdep.c: Include "obsd-tdep.h".
9962 (i386obsd_init_abi): Call obsd_init_abi.
9963 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9964 (amd64obsd_init_abi): Call obsd_init_abi.
9965 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9966 obsd-tdep.c to gdb_target_obs.
9968 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9970 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9971 double float arguments to 16-byte in the argument slots.
9973 2014-02-11 Doug Evans <xdje42@gmail.com>
9975 * configure.ac: Don't crash if pkg-config is not found and guile
9976 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9978 * configure: Regenerate.
9980 2014-02-11 Yao Qi <yao@codesourcery.com>
9982 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9983 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9984 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9985 * gnu-nat.c (gnu_xfer_memory): Likewise.
9986 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9987 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9988 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9989 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9991 2014-02-11 Yao Qi <yao@codesourcery.com>
9993 * target.h (enum target_xfer_error): Rename to ...
9994 (enum target_xfer_status): ... it. New. All users updated.
9995 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9997 (TARGET_XFER_STATUS_ERROR_P): New macro.
9998 (target_xfer_error_to_string): Remove declaration.
9999 (target_xfer_status_to_string): Declare.
10000 (target_xfer_partial_ftype): Adjust it.
10001 (struct target_ops) <to_xfer_partial>: Return
10002 target_xfer_status. Add argument xfered_len. Update
10004 * target.c (target_xfer_error_to_string): Rename to ...
10005 (target_xfer_status_to_string): ... it. New. All callers
10007 (target_read_live_memory): Likewise. Call target_xfer_partial
10008 instead of target_read.
10009 (memory_xfer_live_readonly_partial): Return
10010 target_xfer_status. Add argument xfered_len.
10011 (raw_memory_xfer_partial): Likewise.
10012 (memory_xfer_partial_1): Likewise.
10013 (memory_xfer_partial): Likewise.
10014 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10015 properly. Update debug message.
10016 (default_xfer_partial, current_xfer_partial): Likewise.
10017 (target_write_partial): Likewise.
10018 (target_read_partial): Likewise. All callers updated.
10019 (read_whatever_is_readable): Likewise.
10020 (target_write_with_progress): Likewise.
10021 (target_read_alloc_1): Likewise.
10023 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10024 * auxv.c (procfs_xfer_auxv): Likewise.
10025 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10028 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10029 * corefile.c (read_memory): Adjust.
10030 * corelow.c (core_xfer_partial): Likewise.
10031 * ctf.c (ctf_xfer_partial): Likewise.
10032 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10034 (darwin_xfer_partial): Likewise.
10035 * exec.c (section_table_xfer_memory_partial): Likewise. All
10037 (exec_xfer_partial): Likewise.
10038 * exec.h (section_table_xfer_memory_partial): Update
10040 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10042 (gnu_xfer_partial): Likewise.
10043 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10044 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10045 (ia64_hpux_xfer_solib_got): Likewise.
10046 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10047 type of 'partial_len' to ULONGEST.
10048 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10049 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10050 (linux_nat_xfer_partial): Likewise.
10051 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10052 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10053 * monitor.c (monitor_xfer_memory): Likewise.
10054 (monitor_xfer_partial): Likewise.
10055 * procfs.c (procfs_xfer_partial): Likewise.
10056 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10057 * record-full.c (record_full_xfer_partial): Likewise.
10058 (record_full_core_xfer_partial): Likewise.
10059 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10060 (gdbsim_xfer_partial): Likewise.
10061 * remote.c (remote_write_bytes_aux): Likewise. All callers
10063 (remote_write_bytes, remote_read_bytes): Likewise. All
10065 (remote_flash_erase): Likewise. All callers updated.
10066 (remote_write_qxfer): Likewise. All callers updated.
10067 (remote_read_qxfer): Likewise. All callers updated.
10068 (remote_xfer_partial): Likewise.
10069 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10070 (rs6000_xfer_shared_libraries): Likewise.
10071 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10072 (sol_thread_xfer_partial): Likewise.
10073 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10074 (sparc_xfer_partial): Likewise.
10075 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10077 (spu_xfer_partial): Likewise.
10078 * spu-multiarch.c (spu_xfer_partial): Likewise.
10079 * tracepoint.c (tfile_xfer_partial): Likewise.
10080 * windows-nat.c (windows_xfer_memory): Likewise.
10081 (windows_xfer_shared_libraries): Likewise.
10082 (windows_xfer_partial): Likewise.
10083 * valprint.c: Replace 'target_xfer_error' with
10084 'target_xfer_status' in comments.
10086 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10088 Checked in by Joel Brobecker <brobecker@adacore.com>.
10089 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10091 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10093 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10094 function parameters.
10096 2014-02-10 Will Newton <will.newton@linaro.org>
10098 * elfread.c (elf_rel_plt_read): Look for a .got section if
10099 looking up .got.plt fails.
10100 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10101 on address passed to elf_gnu_ifunc_record_cache.
10102 (elf_gnu_ifunc_resolve_addr): Likewise.
10103 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10105 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10107 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10108 (X_RETTURN): New macro.
10109 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10111 * sparc64-tdep.c (sparc64_init_abi): Hook
10112 sparc_in_function_epilogue_p.
10114 2014-02-10 Gary Benson <gbenson@redhat.com>
10116 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10117 Rename name_matcher to symbol_matcher.
10119 2014-02-10 Gary Benson <gbenson@redhat.com>
10121 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10122 Use expand_symtabs_file_matcher_ftype and
10123 expand_symtabs_symbol_matcher_ftype.
10125 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10127 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10128 (struct ada_symbol_cache): New.
10129 (ada_free_symbol_cache): Forward declare.
10130 (struct ada_pspace_data): New.
10131 (ada_pspace_data_handle): New static global.
10132 (get_ada_pspace_data, ada_pspace_data_cleanup)
10133 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10134 (cache_space, cache): Delete, now folded inside struct
10136 (ada_get_symbol_cache): New function.
10137 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10139 (_initialize_ada_language): Remove initialization of cache_space.
10140 Move call to observer_attach_inferior_exit up, grouping it
10141 with the other observer registrations inside this function.
10142 Rename command to be more general. Add call to
10143 register_program_space_data_with_cleanup.
10145 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10147 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10148 ada_new_objfile_observer.
10149 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10150 (_initialize_tasks): Update uses of ada_new_objfile_observer
10151 and ada_tasks_normal_stop_observer.
10153 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10155 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10156 returned by the 'Length attribute to integer.
10158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10160 * ada-lang.c (_initialize_ada_language): Initialize
10161 cache_space obstack.
10163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10165 * ada-lang.c (HASH_SIZE): New macro.
10166 (struct cache_entry): New type.
10167 (cache_space, cache): New static globals.
10168 (ada_clear_symbol_cache, find_entry): New functions.
10169 (lookup_cached_symbol, cache_symbol): Implement.
10170 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10171 (_initialize_ada_language): Attach ada_new_objfile_observer
10172 and ada_free_objfile_observer.
10174 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10176 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10177 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10178 struct block * parameter.
10179 (ada_lookup_symbol_list_worker): Constify local variable "block".
10180 Remove cast which is no longer necessary.
10182 2014-02-10 Doug Evans <xdje42@gmail.com>
10184 Add Guile as an extension language.
10185 * NEWS: Mention Guile scripting.
10186 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10187 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10188 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10189 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10190 (CLIBS): Add GUILE_LIBS.
10191 (install-guile): New rule.
10192 (guile.o): New rule.
10193 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10194 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10195 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10196 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10197 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10198 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10199 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10200 * configure.ac: New option --with-guile.
10201 * configure: Regenerate.
10202 * config.in: Regenerate.
10203 * auto-load.c: Remove #include "python/python.h". Add #include
10204 "gdb/section-scripts.h".
10205 (source_section_scripts): Handle Guile scripts.
10206 (_initialize_auto_load): Add name of Guile objfile script to
10207 scripts-directory help text.
10208 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10209 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10210 (struct breakpoint): New member scm_bp_object.
10211 * defs.h (enum command_control_type): New value guile_control.
10212 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10214 (show_user): Update comment.
10215 (_initialize_cli_cmds): Update help text for "show user". Update help
10216 text for max-user-call-depth.
10217 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10219 (multi_line_command_p): Add guile_control.
10220 (print_command_lines): Handle guile_control.
10221 (execute_control_command, recurse_read_control_structure): Ditto.
10222 (process_next_line): Recognize "guile" commands.
10223 * disasm.c (gdb_disassemble_info): Make non-static.
10224 * disasm.h: #include "dis-asm.h".
10225 (struct gdbarch): Add forward decl.
10226 (gdb_disassemble_info): Declare.
10227 * extension.c: #include "guile/guile.h".
10228 (extension_languages): Add guile.
10229 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10230 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10231 * gdbtypes.c (get_unsigned_type_max): New function.
10232 (get_signed_type_minmax): New function.
10233 * gdbtypes.h (get_unsigned_type_max): Declare.
10234 (get_signed_type_minmax): Declare.
10235 * guile/README: New file.
10236 * guile/guile-internal.h: New file.
10237 * guile/guile.c: New file.
10238 * guile/guile.h: New file.
10239 * guile/scm-arch.c: New file.
10240 * guile/scm-auto-load.c: New file.
10241 * guile/scm-block.c: New file.
10242 * guile/scm-breakpoint.c: New file.
10243 * guile/scm-disasm.c: New file.
10244 * guile/scm-exception.c: New file.
10245 * guile/scm-frame.c: New file.
10246 * guile/scm-gsmob.c: New file.
10247 * guile/scm-iterator.c: New file.
10248 * guile/scm-lazy-string.c: New file.
10249 * guile/scm-math.c: New file.
10250 * guile/scm-objfile.c: New file.
10251 * guile/scm-ports.c: New file.
10252 * guile/scm-pretty-print.c: New file.
10253 * guile/scm-safe-call.c: New file.
10254 * guile/scm-string.c: New file.
10255 * guile/scm-symbol.c: New file.
10256 * guile/scm-symtab.c: New file.
10257 * guile/scm-type.c: New file.
10258 * guile/scm-utils.c: New file.
10259 * guile/scm-value.c: New file.
10260 * guile/lib/gdb.scm: New file.
10261 * guile/lib/gdb/boot.scm: New file.
10262 * guile/lib/gdb/experimental.scm: New file.
10263 * guile/lib/gdb/init.scm: New file.
10264 * guile/lib/gdb/iterator.scm: New file.
10265 * guile/lib/gdb/printing.scm: New file.
10266 * guile/lib/gdb/types.scm: New file.
10267 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10268 (VPATH): Add $(GUILE_SRCDIR).
10269 (GUILE_DIR): New variable.
10270 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10271 (all): Add stamp-guile dependency.
10272 (stamp-guile): New rule.
10273 (clean-guile, install-guile, uninstall-guile): New rules.
10274 (install-only): Add install-guile dependency.
10275 (uninstall): Add uninstall-guile dependency.
10276 (clean): Add clean-guile dependency.
10278 2014-02-09 Doug Evans <xdje42@gmail.com>
10280 Revert this patch (which I approved, mea culpa).
10282 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10284 * Makefile.in (all-lib): Remove.
10285 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10287 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10289 Fix Python stack corruption.
10290 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10293 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10295 * Makefile.in (all-lib): Remove.
10296 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10298 2014-02-07 Doug Evans <dje@google.com>
10300 * extension-priv.h (extension_language_script_ops): Add comment.
10301 (extension_language_ops): Add comment.
10302 (active_ext_lang_state): Fix typo in comment.
10304 2014-02-07 Pedro Alves <palves@redhat.com>
10306 PR breakpoints/16292
10307 * infrun.c (handle_signal_stop) <signal arrives while stepping
10308 over a breakpoint>: Switch back to the stepping thread.
10310 2014-02-07 Yao Qi <yao@codesourcery.com>
10312 * target.c (target_xfer_partial): Return zero if LEN is zero.
10314 2014-02-07 Yao Qi <yao@codesourcery.com>
10316 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10317 (ld_so_xfer_auxv): Likewise.
10318 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10319 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10320 * corelow.c (core_xfer_partial): Likewise.
10321 * ctf.c (ctf_xfer_partial): Likewise.
10322 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10323 (darwin_xfer_partial): Likewise.
10324 * exec.c (exec_xfer_partial): Likewise.
10325 * gnu-nat.c (gnu_xfer_partial): Likewise.
10326 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10327 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10328 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10329 * linux-nat.c (linux_xfer_siginfo): Likewise.
10330 (linux_proc_xfer_spu): Likewise.
10331 * procfs.c (procfs_xfer_partial): Likewise.
10332 * record-full.c (record_full_xfer_partial): Likewise.
10333 (record_full_core_xfer_partial): Likewise.
10334 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10335 * remote.c (remote_write_qxfer): Likewise.
10336 (remote_write_qxfer, remote_read_qxfer): Likewise.
10337 (remote_xfer_partial): Likewise.
10338 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10339 (rs6000_xfer_shared_libraries): Likewise.
10340 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10341 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10342 (spu_xfer_partial): Likewise.
10343 * target.c (memory_xfer_partial_1): Likewise.
10344 * tracepoint.c (tfile_xfer_partial): Likewise.
10345 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10346 (windows_xfer_partial): Likewise.
10348 2014-02-07 Yao Qi <yao@codesourcery.com>
10350 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10352 (core_xfer_shared_libraries_aix): Likewise.
10353 * gdbarch.c, gdbarch.h: Regenerated.
10354 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10355 ULONGEST. Change 'len_avail' type to ULONGEST.
10356 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10357 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10359 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10361 2014-02-07 Yao Qi <yao@codesourcery.com>
10363 * corefile.c (memory_error): Get 'exception' from ERR and pass
10364 'exception' to throw_error.
10366 2014-02-06 Doug Evans <xdje42@gmail.com>
10368 * configure.ac (libpython checking): Remove all but python.o from
10369 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10370 * configure: Regenerate.
10372 * Makefile.in (SFILES): Add extension.c.
10373 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10374 (COMMON_OBS): Add extension.o.
10375 * extension.h: New file.
10376 * extension-priv.h: New file.
10377 * extension.c: New file.
10379 * python/python-internal.h: #include "extension.h".
10380 (gdbpy_auto_load_enabled): Declare.
10381 (gdbpy_apply_val_pretty_printer): Declare.
10382 (gdbpy_apply_frame_filter): Declare.
10383 (gdbpy_preserve_values): Declare.
10384 (gdbpy_breakpoint_cond_says_stop): Declare.
10385 (gdbpy_breakpoint_has_cond): Declare.
10386 (void source_python_script_for_objfile): Delete.
10387 * python/python.c: #include "extension-priv.h".
10388 Delete inclusion of "observer.h".
10389 (extension_language_python): Moved here and renamed from
10390 script_language_python in py-auto-load.c.
10391 Redefined to be of type extension_language_defn.
10392 (python_extension_script_ops): New global.
10393 (python_extension_ops): New global.
10394 (struct python_env): New member previous_active.
10395 (restore_python_env): Call restore_active_ext_lang.
10396 (ensure_python_env): Call set_active_ext_lang.
10397 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10399 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10401 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10403 (gdbpy_eval_from_control_command): Renamed from
10404 eval_python_from_control_command, made static. New arg extlang.
10405 (gdbpy_source_script) Renamed from source_python_script, made static.
10407 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10408 result to int. New arg extlang.
10409 (gdbpy_source_objfile_script): Renamed from
10410 source_python_script_for_objfile, made static. New arg extlang.
10411 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10412 static. New args extlang, extlang_printers. Change result type to
10414 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10415 static. New arg extlang. Rename arg printers to extlang_printers
10416 and change type to ext_lang_type_printers *.
10417 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10418 static. Replace argument arg with extlang, extlang_printers.
10419 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10420 (!HAVE_PYTHON, source_python_script): Delete.
10421 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10422 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10423 (!HAVE_PYTHON, start_type_printers): Delete.
10424 (!HAVE_PYTHON, apply_type_printers): Delete.
10425 (!HAVE_PYTHON, free_type_printers): Delete.
10426 (_initialize_python): Delete call to observer_attach_before_prompt.
10427 (finalize_python): Set/restore active extension language.
10428 (gdbpy_finish_initialization) Renamed from
10429 finish_python_initialization, made static. New arg extlang.
10430 (gdbpy_initialized): New function.
10431 * python/python.h: #include "extension.h". Delete #include
10432 "value.h", "mi/mi-cmds.h".
10433 (extension_language_python): Declare.
10434 (GDBPY_AUTO_FILE_NAME): Delete.
10435 (enum py_bt_status): Moved to extension.h and renamed to
10436 ext_lang_bt_status.
10437 (enum frame_filter_flags): Moved to extension.h.
10438 (enum py_frame_args): Moved to extension.h and renamed to
10439 ext_lang_frame_args.
10440 (finish_python_initialization): Delete.
10441 (eval_python_from_control_command): Delete.
10442 (source_python_script): Delete.
10443 (apply_val_pretty_printer): Delete.
10444 (apply_frame_filter): Delete.
10445 (preserve_python_values): Delete.
10446 (gdbpy_script_language_defn): Delete.
10447 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10448 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10450 * auto-load.c: #include "extension.h".
10451 (GDB_AUTO_FILE_NAME): Delete.
10452 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10453 (script_language_gdb): Delete, moved to extension.c and renamed to
10454 extension_language_gdb.
10455 (source_gdb_script_for_objfile): Delete.
10456 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10457 (loaded_script): Change type of language member to
10458 struct extension_language_defn *.
10459 (init_loaded_scripts_info): Initialize
10460 unsupported_script_warning_printed.
10461 (maybe_add_script): Make static. Change type of language arg to
10462 struct extension_language_defn *.
10463 (clear_section_scripts): Reset unsupported_script_warning_printed.
10464 (auto_load_objfile_script_1): Rewrite to use extension language API.
10465 (auto_load_objfile_script): Make public. Remove support-compiled-in
10466 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10467 (source_section_scripts): Rewrite to use extension language API.
10468 (load_auto_scripts_for_objfile): Rewrite to use
10469 auto_load_scripts_for_objfile.
10470 (collect_matching_scripts_data): Change type of language member to
10471 struct extension_language_defn *.
10472 (auto_load_info_scripts): Change type of language arg to
10473 struct extension_language_defn *.
10474 (unsupported_script_warning_print): New function.
10475 (script_not_found_warning_print): Make static.
10476 (_initialize_auto_load): Rewrite construction of scripts-directory
10478 * auto-load.h (struct objfile): Add forward decl.
10479 (struct script_language): Delete.
10480 (struct auto_load_pspace_info): Add forward decl.
10481 (struct extension_language_defn): Add forward decl.
10482 (maybe_add_script): Delete.
10483 (auto_load_objfile_script): Declare.
10484 (script_not_found_warning_print): Delete.
10485 (auto_load_info_scripts): Update prototype.
10486 (auto_load_gdb_scripts_enabled): Declare.
10487 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10488 auto_load_python_scripts_enabled and made public.
10489 (script_language_python): Delete, moved to python.c.
10490 (gdbpy_script_language_defn): Delete.
10491 (info_auto_load_python_scripts): Update to use
10492 extension_language_python.
10494 * breakpoint.c (condition_command): Replace call to
10495 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10496 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10497 with call to breakpoint_ext_lang_cond_says_stop.
10498 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10499 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10500 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10501 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10503 (local_setattro): Print name of extension language with existing
10506 * valprint.c (val_print, value_print): Update to call
10507 apply_ext_lang_val_pretty_printer.
10508 * cp-valprint.c (cp_print_value): Update call to
10509 apply_ext_lang_val_pretty_printer.
10510 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10511 (gdbpy_apply_val_pretty_printer): Renamed from
10512 apply_val_pretty_printer. New arg extlang.
10513 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10515 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10516 extension language API.
10517 * cli/cli-script.c (execute_control_command): Update to call
10518 eval_ext_lang_from_control_command.
10520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10521 enum ext_lang_bt_status values. Update call to
10522 apply_ext_lang_frame_filter.
10523 (mi_cmd_stack_list_locals): Ditto.
10524 (mi_cmd_stack_list_args): Ditto.
10525 (mi_cmd_stack_list_variables): Ditto.
10526 * mi/mi-main.c: Delete #include "python/python-internal.h".
10527 Add #include "extension.h".
10528 (mi_cmd_list_features): Replace reference to python internal variable
10529 gdb_python_initialized with call to ext_lang_initialized_p.
10531 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10532 Update to use enum ext_lang_frame_args. Update to call
10533 apply_ext_lang_frame_filter.
10534 * python/py-framefilter.c (extract_sym): Update to use enum
10535 ext_lang_bt_status.
10536 (extract_value, py_print_type, py_print_value): Ditto.
10537 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10538 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10539 (py_print_frame): Ditto.
10540 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10541 New arg extlang. Update to use enum ext_lang_bt_status.
10543 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10544 finish_python_initialization. Replace with call to
10545 finish_ext_lang_initialization.
10547 * typeprint.c (do_free_global_table): Update to call
10548 free_ext_lang_type_printers.
10549 (create_global_typedef_table): Update to call
10550 start_ext_lang_type_printers.
10551 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10552 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10553 (type_print_options): Change type of global_printers from "void *"
10554 to "struct ext_lang_type_printers *".
10556 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10557 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10558 (gdbpy_preserve_values): Renamed from preserve_python_values.
10560 (!HAVE_PYTHON, preserve_python_values): Delete.
10562 * utils.c (quit_flag): Delete, moved to extension.c.
10563 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10566 * eval.c: Delete #include "python/python.h".
10567 * main.c: Delete #include "python/python.h".
10569 * defs.h: Update comment.
10571 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10575 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10577 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10580 2014-02-05 Yao Qi <yao@codesourcery.com>
10582 * remote.c (remote_pass_signals): Remove local 'buf' and use
10584 (remote_program_signals): Likewise.
10586 2014-02-05 Yao Qi <yao@codesourcery.com>
10588 * ctf.c: Include "inferior.h" and "gdbthread.h".
10589 (CTF_PID): A new macro.
10590 (ctf_open): Call inferior_appeared and add_thread_silent.
10591 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10592 (ctf_thread_alive): New function.
10593 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10595 2014-02-05 Yao Qi <yao@codesourcery.com>
10599 2013-05-24 Yao Qi <yao@codesourcery.com>
10601 * tracepoint.c (TFILE_PID): Remove.
10602 (tfile_open): Don't add thread and inferior.
10603 (tfile_close): Don't set 'inferior_ptid'. Don't call
10604 exit_inferior_silent.
10605 (tfile_thread_alive): Remove.
10606 (init_tfile_ops): Don't set field 'to_thread_alive' of
10609 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10611 * remote.c (remote_start_remote): Call remote_check_symbols even
10612 if only symbol-file (not file) has been given.
10614 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10616 * gdbarch.sh (skip_entrypoint): New callback.
10617 * gdbarch.c, gdbarch.h: Regenerate.
10618 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10619 * infrun.c (fill_in_stop_func): Likewise.
10620 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10621 (ppc_elfv2_elf_make_msymbol_special): New function.
10622 (ppc_elfv2_skip_entrypoint): Likewise.
10623 (ppc_linux_init_abi): Install them for ELFv2.
10625 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10627 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10628 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10629 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10630 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10631 structures returned in GPRs.
10633 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10635 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10636 offset to the stack parameter list for the ELFv2 ABI.
10638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10640 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10641 set_gdbarch_convert_from_func_ptr_addr and
10642 set_gdbarch_elf_make_msymbol_special for ELFv1.
10643 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10644 function descriptors on ELFv1.
10645 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10646 set up r12 at function entry.
10648 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10650 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10651 (struct gdbarch_tdep): New member elf_abi.
10653 * rs6000-tdep.c: Include "elf/ppc64.h".
10654 (rs6000_gdbarch_init): Detect ELF ABI version.
10656 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10658 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10659 within a register pair holding a DFP 128-bit value on little-endian.
10660 (ppc64_sysv_abi_return_value_base): Likewise.
10661 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10662 (dfp_pseudo_register_write): Likewise.
10664 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10666 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10667 offset on little-endian when passing _Decimal32.
10668 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10672 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10673 of the overlapped FP register within the VSX register on little-
10675 (efpr_pseudo_register_write): Likewise.
10677 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10679 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10680 offset on little-endian when passing small structures.
10682 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10684 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10685 (struct ppc64_sysv_argpos): New data structure.
10686 (ppc64_sysv_abi_push_float): Remove.
10687 (ppc64_sysv_abi_push_val): New function.
10688 (ppc64_sysv_abi_push_integer): Likewise.
10689 (ppc64_sysv_abi_push_freg): Likewise.
10690 (ppc64_sysv_abi_push_vreg): Likewise.
10691 (ppc64_sysv_abi_push_param): Likewise.
10692 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10693 (ppc64_sysv_abi_return_value_base): New function.
10694 (ppc64_sysv_abi_return_value): Refactor to use it.
10696 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10698 * NEWS: Document new target powerpc64le-*-linux*.
10700 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10702 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10703 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10705 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10706 register set used in ELF core dumps. Add floating-point register set.
10708 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10710 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10711 dwarf2_to_gdb[] table using symbolic constants. Adjust
10712 penultimate entry from number representing the PC register
10713 to symbolic constant representing the MDR register. Add
10714 constant for the PC register to the end of the table.
10716 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10718 * bsd-kvm.c: Include <sys/param.h>
10720 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10722 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10724 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10726 * ada-lang.h (clear_ada_sym_cache): Delete.
10728 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10730 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10732 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10734 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10735 the sigreturn register save area only if the syscall is
10738 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10740 * valops.c (value_slice): Minor reformatting.
10742 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10744 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10746 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10748 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10749 New static globals.
10750 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10751 (ada_ignore_descriptive_types_p): New static global.
10752 (find_parallel_type_by_descriptive_type): Return immediately
10753 if ada_ignore_descriptive_types_p is set.
10754 (_initialize_ada_language): Register new commands "maintenance
10755 set ada", "maintenance show ada", "maintenance set ada
10756 ignore-descriptive-types" and "maintenance show ada
10757 ignore-descriptive-types".
10758 * NEWS: Add entry for new "maint ada set/show
10759 ignore-descriptive-types" commands.
10761 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10763 * record-btrace.c (record_btrace_close): Call btrace_teardown
10766 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10768 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10771 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10773 * ada-typeprint (type_is_full_subrange_of_target_type):
10775 (print_range): Add parameter bounds_prefered_p. If not set,
10776 try printing range types using the name of their base type.
10777 (print_range_type): Add parameter bounds_prefered_p.
10778 Use it in call to print_range.
10779 (print_array_type, ada_print_type): Update calls to print_range
10780 and print_range_type.
10782 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10784 * ada-typeprint.c (print_array_type, print_choices, print_range)
10785 (print_range_bound, print_dynamic_range_bound, print_range_type):
10786 Remove declaration.
10788 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10790 * ada-typeprint.c (print_range): Add missing empty line
10791 after local declaration.
10793 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10795 * ada-valprint.c (print_optional_low_bound): Get index_type's
10796 target type for as long as it is a TYPE_CODE_RANGE.
10798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10800 * procfs.c (procfs_make_note_section): Remove assertion and
10801 associated comment.
10803 2014-01-24 Yao Qi <yao@codesourcery.com>
10805 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10806 * corelow.c (get_core_siginfo): Likewise.
10808 2014-01-24 Yao Qi <yao@codesourcery.com>
10810 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10811 ULONGEST. Don't check 'len' is negative.
10812 (remote_write_bytes): Change type of 'len' to ULONGEST.
10814 2014-01-23 Tom Tromey <tromey@redhat.com>
10817 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10818 Handle exception from frame.block.
10819 (FrameVars.fetch_frame_locals): Likewise.
10821 2014-01-23 Tom Tromey <tromey@redhat.com>
10824 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10825 on a NULL pointer. Move "goto error" to correct place.
10827 2014-01-23 Tom Tromey <tromey@redhat.com>
10830 * python/py-framefilter.c (apply_frame_filter): Call
10831 ensure_python_env after computing gdbarch.
10833 2014-01-23 Yao Qi <yao@codesourcery.com>
10835 * target.c (raw_memory_xfer_partial): Change argument type
10836 from void * to gdb_byte *.
10837 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10839 2014-01-22 Doug Evans <dje@google.com>
10841 New gdbserver option --debug-format=timestamp.
10842 * NEWS: Mention it.
10844 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10846 * syscalls/s390x-linux.xml: New file.
10847 * syscalls/s390-linux.xml: New file.
10848 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10849 (XML_SYSCALL_FILENAME_S390X): Likewise.
10850 (op_svc): New enum value for SVC opcode.
10851 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10852 (s390_linux_get_syscall_number): New function.
10853 (s390_gdbarch_init): Register '*get_syscall_number' and the
10854 syscall xml file name.
10855 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10856 "s390-linux.xml" and "s390x-linux.xml".
10857 * NEWS: Announce new feature.
10859 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10861 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10863 2014-01-22 Pedro Alves <palves@redhat.com>
10865 * xtensa-config.c: Include defs.h.
10867 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10869 * common/common-utils.h: Add "ARI:" comment beside __func__
10872 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10874 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10875 documentation a bit.
10877 2014-01-21 Roland McGrath <mcgrathr@google.com>
10879 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10880 * configure: Regenerate.
10881 * aclocal.m4: Regenerate.
10882 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10883 New substituted variables.
10884 (install-strip): New target.
10885 (INSTALL_SCRIPT): New substituted variable.
10886 (FLAGS_TO_PASS): Add it.
10887 (install-only): Use $(INSTALL_SCRIPT) rather than
10888 $(INSTALL_PROGRAM) for gcore.
10890 2014-01-20 Tom Tromey <tromey@redhat.com>
10892 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10895 2014-01-20 Tom Tromey <tromey@redhat.com>
10897 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10898 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10899 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10900 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10901 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10902 (struct cmd_list_element) <flags>: Remove.
10903 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10904 doc_allocated>: New fields.
10905 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10907 * maint.c (maintenance_do_deprecate): Update.
10908 * top.c (execute_command): Update.
10910 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10912 * xtensa-linux-nat.c: Include asm/ptrace.h.
10914 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10916 * Makefile.in (SFILES): Add d-support.c.
10917 (COMMON_OBS): Add d-support.o.
10918 * d-lang.h (d_parse_symbol): Add comment, now defined in
10920 * d-lang.c (parse_call_convention)
10921 (parse_attributes, parse_function_types)
10922 (parse_function_args, parse_type, parse_identifier)
10923 (call_convention_p, d_parse_symbol): Move functions to ...
10924 * d-support.c: ... New file.
10926 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10928 * d-lang.h (d_parse_symbol): Add declaration.
10929 * d-lang.c (extract_identifiers)
10930 (extract_type_info): Remove functions.
10931 (parse_call_convention, parse_attributes)
10932 (parse_function_types, parse_function_args)
10933 (parse_type, parse_identifier, call_convention_p)
10934 (d_parse_symbol): New functions.
10935 (d_demangle): Use d_parse_symbol to demangle D symbols.
10937 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10939 * d-lang.h (struct builtin_d_type): New data type.
10940 (builtin_d_type): Add declaration.
10941 * d-lang.c (d_language_arch_info, build_d_types)
10942 (builtin_d_type): New functions.
10943 (enum d_primitive_types): New data type.
10944 (d_language_defn): Change c_language_arch_info to
10945 d_language_arch_info.
10946 (d_type_data): New static variable.
10947 (_initialize_d_language): Initialize d_type_data.
10949 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10951 * d-lang.h (d_main_name): Add declaration.
10952 * d-lang.c (d_main_name): New function.
10953 * symtab.c (find_main_name): Add call to d_main_name.
10955 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10957 * d-lang.c (d_language_defn): Change macro_expansion_c to
10958 macro_expansion_no.
10960 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10962 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10964 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10966 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10967 gdb_exception" declaration.
10968 * remote.c (getpkt_or_notif_sane): Likewise.
10970 2014-01-17 Doug Evans <dje@google.com>
10972 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10973 function, contents of dirnames_to_char_ptr_vec_append moved here.
10974 (delim_string_to_char_ptr_vec): New function.
10975 (dirnames_to_char_ptr_vec_append): Rewrite.
10976 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10978 2014-01-17 Doug Evans <dje@google.com>
10980 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10982 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10983 #include "common-utils.h".
10984 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10985 * common/vec.h (VEC_ASSERT_PASS): Update.
10986 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10987 (MACH_CHECK_ERROR): Update.
10989 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10991 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10993 * gdbarch.h: Regenerate.
10995 2014-01-16 Tom Tromey <tromey@redhat.com>
10997 * value.c (struct value) <regnum>: Move earlier.
10999 2014-01-16 Tom Tromey <tromey@redhat.com>
11001 * remote.c (extended_remote_create_inferior): Rename from
11002 extended_remote_create_inferior_1. Add "ops" argument. Remove
11003 old implementation.
11005 2014-01-16 Pedro Alves <palves@redhat.com>
11007 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11008 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11011 2014-01-16 Doug Evans <dje@google.com>
11013 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11017 * btrace.h (btrace_thread_flag): New.
11018 (struct btrace_thread_info) <flags>: New.
11019 * record-btrace.c (record_btrace_resume_thread)
11020 (record_btrace_find_thread_to_move, btrace_step_no_history)
11021 (btrace_step_stopped, record_btrace_start_replaying)
11022 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11023 (record_btrace_find_resume_thread): New.
11024 (record_btrace_resume, record_btrace_wait): Extend.
11025 (record_btrace_can_execute_reverse): New.
11026 (record_btrace_open): Fail in non-stop mode.
11027 (record_btrace_set_replay): Split into this, ...
11028 (record_btrace_stop_replaying): ... this, ...
11029 (record_btrace_clear_histories): ... and this.
11030 (init_record_btrace_ops): Init to_can_execute_reverse.
11031 * NEWS: Announce it.
11033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11035 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11036 (forward_target_decr_pc_after_break)
11037 (target_decr_pc_after_break): New.
11038 * target.c (forward_target_decr_pc_after_break)
11039 (target_decr_pc_after_break): New.
11040 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11041 instead of gdbarch_decr_pc_after_break.
11042 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11043 instead of gdbarch_decr_pc_after_break.
11044 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11045 instead of gdbarch_decr_pc_after_break.
11046 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11047 instead of gdbarch_decr_pc_after_break.
11048 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11049 instead of gdbarch_decr_pc_after_break.
11050 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11051 instead of gdbarch_decr_pc_after_break.
11053 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11055 * btrace.c: Include regcache.h.
11056 (btrace_add_pc): New.
11057 (btrace_enable): Call btrace_add_pc.
11058 (btrace_is_empty): New.
11059 * btrace.h (btrace_is_empty): New.
11060 * record-btrace.c (require_btrace, record_btrace_info): Call
11063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11065 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11066 Support delta reads.
11067 (linux_disable_btrace): Change return type.
11068 * common/linux-btrace.h (linux_read_btrace): Change parameters
11069 and return type to allow error reporting. Update users.
11070 (linux_disable_btrace): Change return type. Update users.
11071 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11073 (btrace_error): New.
11074 (btrace_block) <begin>: Comment on BEGIN == 0.
11075 * btrace.c (btrace_compute_ftrace): Start from the end of
11077 (btrace_stitch_trace, btrace_clear_history): New.
11078 (btrace_fetch): Read delta trace, return if replaying.
11079 (btrace_clear): Move clear history code to btrace_clear_history.
11080 (parse_xml_btrace): Throw an error if parsing failed.
11081 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11082 and return type to allow error reporting.
11083 (target_read_btrace): Change parameters and return type to allow
11085 * target.c (target_read_btrace): Update.
11086 * remote.c (remote_read_btrace): Support delta reads. Pass
11088 * NEWS: Announce it.
11090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11092 * record.h (record_btrace_frame_unwind)
11093 (record_btrace_tailcall_frame_unwind): New declarations.
11094 * dwarf2-frame: Include record.h
11095 (dwarf2_frame_cfa): Throw an error for btrace frames.
11096 * record-btrace.c: Include hashtab.h.
11097 (btrace_get_bfun_name): New.
11098 (btrace_call_history): Call btrace_get_bfun_name.
11099 (struct btrace_frame_cache): New.
11101 (bfcache_hash, bfcache_eq, bfcache_new): New.
11102 (btrace_get_frame_function): New.
11103 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11104 (record_btrace_frame_this_id): Compute own id.
11105 (record_btrace_frame_prev_register): Provide PC, throw_error
11106 for all other registers.
11107 (record_btrace_frame_sniffer): Detect btrace frames.
11108 (record_btrace_tailcall_frame_sniffer): New.
11109 (record_btrace_frame_dealloc_cache): New.
11110 (record_btrace_frame_unwind): Add new functions.
11111 (record_btrace_tailcall_frame_unwind): New.
11112 (_initialize_record_btrace): Allocate cache.
11113 * btrace.c (btrace_clear): Call reinit_frame_cache.
11114 * NEWS: Announce it.
11116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11118 * record-btrace.c (record_btrace_set_replay)
11119 (record_btrace_goto_begin, record_btrace_goto_end)
11120 (record_btrace_goto): New.
11121 (init_record_btrace_ops): Initialize them.
11122 * NEWS: Announce it.
11124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11126 * record-btrace.c (record_btrace_find_new_threads)
11127 (record_btrace_thread_alive): New.
11128 (init_record_btrace_ops): Initialize to_find_new_threads and
11131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11133 * record-btrace.c (record_btrace_resume): New.
11134 (record_btrace_wait): New.
11135 (init_record_btrace_ops): Initialize to_wait and to_resume.
11137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11139 * record-btrace.c (record_btrace_xfer_partial)
11140 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11141 (record_btrace_allow_memory_access): New.
11142 (init_record_btrace_ops): Initialize new methods.
11143 * target.c (raw_memory_xfer_partial): Bail out if target reports
11144 that this memory is not available.
11146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11148 * target.h (target_ops) <to_insert_breakpoint>
11149 <to_remove_breakpoint>: Add target_ops parameter.
11150 (forward_target_insert_breakpoint): New.
11151 (forward_target_remove_breakpoint): New.
11152 (memory_remove_breakpoint, memory_insert_breakpoint):
11153 Add target_ops parameter.
11154 * target.c (target_insert_breakpoint): Split into this and ...
11155 (forward_target_insert_breakpoint): ... this.
11156 (target_remove_breakpoint): Split into this and ...
11157 (forward_target_remove_breakpoint): ... this.
11158 (debug_to_insert_breakpoint): Add target_ops parameter.
11159 Call forward_target_insert_breakpoint.
11160 (debug_to_remove_breakpoint): Add target_ops parameter.
11161 Call forward_target_remove_breakpoint.
11162 (update_current_target): Do not inherit or default to_insert_breakpoint
11163 and to_remove_breakpoint.
11164 * corelow.c (ignore): Add target_ops parameter.
11165 * exec.c (ignore): Add target_ops parameter.
11166 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11167 Add target_ops parameter.
11168 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11169 Add target_ops parameter.
11170 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11171 Add target_ops parameter.
11172 * record-full.c (record_full_beneath_to_insert_breakpoint)
11173 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11174 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11175 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11176 (record_full_core_remove_breakpoint): Add target_ops parameter.
11178 (record_full_beneath_to_insert_breakpoint_ops)
11179 (record_full_beneath_to_remove_breakpoint_ops)
11180 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11181 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11182 tmp_to_remove_breakpoint_ops,
11183 record_full_beneath_to_insert_breakpoint_ops, and
11184 record_full_beneath_to_remove_breakpoint_ops.
11185 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11186 (m32r_remove_breakpoint): Add target_ops parameter.
11187 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11188 Add target_ops parameter.
11189 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11190 Add target_ops parameter.
11192 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11193 Markus Metzger <markus.t.metzger@intel.com>
11195 * record-btrace.c: Include frame-unwind.h.
11196 (record_btrace_frame_unwind_stop_reason)
11197 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11198 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11200 (init_record_btrace_ops): Install it.
11202 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11204 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11207 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11209 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11212 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11214 * frame-unwind.c: Include target.h.
11215 (frame_unwind_try_unwinder): New function with code from ...
11216 (frame_unwind_find_by_frame): ... here. New variable
11217 unwinder_from_target, call also target_get_unwinder)
11218 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11219 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11220 * target.h (struct target_ops): New fields to_get_unwinder and
11221 to_get_tailcall_unwinder.
11222 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11226 * record-btrace.c (record_btrace_fetch_registers)
11227 (record_btrace_store_registers)
11228 (record_btrace_to_prepare_to_store): New.
11229 (init_record_btrace_ops): Add the above.
11231 2014-01-16 Tom Tromey <tromey@redhat.com>
11233 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11234 * target.h (struct target_ops) <to_prepare_to_store>: Add
11236 (target_prepare_to_store): Add argument.
11237 * target.c (debug_to_prepare_to_store): Add argument.
11238 (update_current_target): Update.
11239 * remote.c (remote_prepare_to_store): Add 'self' argument.
11240 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11241 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11242 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11243 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11245 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11246 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11247 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11248 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11249 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11251 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11253 * btrace.h (replay) <replay>: New.
11254 (btrace_is_replaying): New.
11255 * btrace.c (btrace_clear): Free replay iterator.
11256 (btrace_is_replaying): New.
11257 * record-btrace.c (record_btrace_is_replaying): New.
11258 (record_btrace_info): Print insn number if replaying.
11259 (record_btrace_insn_history): Start at replay position.
11260 (record_btrace_call_history): Start at replay position.
11261 (init_record_btrace_ops): Init to_record_is_replaying.
11263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11265 * record-btrace.c (record_btrace_insn_history_range): Include
11267 (record_btrace_insn_history_from): Adjust range.
11268 (record_btrace_call_history_range): Include
11270 (record_btrace_call_history_from): Adjust range.
11271 * NEWS: Announce changes.
11273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11275 * record.h (enum record_print_flag)
11276 <record_print_indent_calls>: New.
11277 * record.c (get_call_history_modifiers): Recognize /c modifier.
11278 (_initialize_record): Document /c modifier.
11279 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11280 Reorder fields. Optionally indent the function name. Update
11282 * NEWS: Announce changes.
11284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11286 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11288 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11290 * btrace.c (ftrace_new_function): Start counting at one.
11291 * record-btrace.c (record_btrace_info): Adjust number of calls
11293 * NEWS: Announce it.
11295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11297 * record-btrace.c (btrace_call_history_insn_range): Print
11298 insn range as [begin, end].
11300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11302 * btrace.h (struct btrace_func_link): New.
11303 (enum btrace_function_flag): New.
11304 (struct btrace_inst): Rename to ...
11305 (struct btrace_insn): ...this. Update all users.
11306 (struct btrace_func) <ibegin, iend>: Remove.
11307 (struct btrace_func_link): New.
11308 (struct btrace_func): Rename to ...
11309 (struct btrace_function): ...this. Update all users.
11310 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11311 (number, level, flags>: New.
11312 (struct btrace_insn_iterator): Rename to ...
11313 (struct btrace_insn_history): ...this.
11315 (struct btrace_insn_iterator, btrace_call_iterator): New.
11316 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11317 (struct btrace_target_info) <begin, end, level>
11318 <insn_history, call_history>: New.
11319 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11320 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11321 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11322 (btrace_call_number, btrace_call_begin, btrace_call_end)
11323 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11324 (btrace_find_function_by_number, btrace_set_insn_history)
11325 (btrace_set_call_history): New.
11326 * btrace.c (btrace_init_insn_iterator)
11327 (btrace_init_func_iterator, compute_itrace): Remove.
11328 (ftrace_print_function_name, ftrace_print_filename)
11329 (ftrace_skip_file): Change
11330 parameter to const.
11331 (ftrace_init_func): Remove.
11332 (ftrace_debug): Use new btrace_function fields.
11333 (ftrace_function_switched): Also consider gaining and
11334 losing symbol information).
11335 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11336 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11337 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11339 (ftrace_new_function): Move. Remove debug print.
11340 (ftrace_update_lines, ftrace_update_insns): New.
11341 (ftrace_update_function): Check for call, ret, and jump.
11342 (compute_ftrace): Renamed to ...
11343 (btrace_compute_ftrace): ...this. Rewritten to compute call
11345 (btrace_fetch, btrace_clear): Updated.
11346 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11347 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11348 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11349 (btrace_call_number, btrace_call_begin, btrace_call_end)
11350 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11351 (btrace_find_function_by_number, btrace_set_insn_history)
11352 (btrace_set_call_history): New.
11353 * record-btrace.c (require_btrace): Use new btrace thread
11355 (record_btrace_info, btrace_insn_history)
11356 (record_btrace_insn_history, record_btrace_insn_history_range):
11357 Use new btrace thread info fields and new iterator.
11358 (btrace_func_history_src_line): Rename to ...
11359 (btrace_call_history_src_line): ...this. Use new btrace
11360 thread info fields.
11361 (btrace_func_history): Rename to ...
11362 (btrace_call_history): ...this. Use new btrace thread info
11363 fields and new iterator.
11364 (record_btrace_call_history, record_btrace_call_history_range):
11365 Use new btrace thread info fields and new iterator.
11367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11369 * frame.h (frame_id_build_unavailable_stack_special): New.
11370 * frame.c (frame_id_build_unavailable_stack_special): New.
11372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11374 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11375 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11376 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11378 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11379 (i386_insn_is_jump, i386_jmp_p): New.
11380 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11381 insn_is_jump to gdbarch.
11382 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11383 * gdbarch.h: Regenerated.
11384 * gdbarch.c: Regenerated.
11385 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11386 (default_insn_is_jump): New.
11387 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11388 (default_insn_is_jump): New.
11390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11392 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11394 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11395 (btrace_read_type) <btrace_read_new>: Change to ...
11396 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11400 * common/linux-btrace.c (linux_read_btrace): Free trace from
11401 previous iteration.
11403 2014-01-15 Doug Evans <dje@google.com>
11405 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11408 2014-01-15 Tom Tromey <tromey@redhat.com>
11410 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11411 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11412 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11413 (set_objfile_main_name): New function.
11414 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11415 language_of_main>: New fields.
11416 (set_objfile_main_name): Declare.
11417 * symtab.c (find_main_name): Loop over objfiles to find the main
11419 (set_main_name): Now static.
11420 (get_main_info): Add comment.
11421 * symtab.h (set_main_name): Don't declare.
11423 2014-01-15 Tom Tromey <tromey@redhat.com>
11425 * symtab.c (main_progspace_key): New global.
11426 (struct main_info): New.
11427 (name_of_main, language_of_main): Remove.
11428 (get_main_info, main_info_cleanup): New function.
11429 (set_main_name, main_name, main_language): Use get_main_info.
11430 (_initialize_symtab): Initialize main_progspace_key.
11432 2014-01-15 Tom Tromey <tromey@redhat.com>
11434 * dbxread.c (process_one_symbol): Update.
11435 * dwarf2read.c (read_partial_die): Update.
11436 * symfile.c (set_initial_language): Call main_language.
11437 * symtab.c (language_of_main): Now static.
11438 (set_main_name): Add 'lang' parameter.
11439 (find_main_name): Update.
11440 (main_language): New function.
11441 (symtab_observer_executable_changed): Update.
11442 * symtab.h (set_main_name): Update.
11443 (language_of_main): Remove.
11444 (main_language): Declare.
11446 2014-01-15 Tom Tromey <tromey@redhat.com>
11448 * symfile.c (init_entry_point_info): Use new "initialized" field.
11450 * objfiles.h (struct entry_point) <initialized>: New field.
11451 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11452 (struct objfile) <ei>: ...here. Remove.
11453 * objfiles.c (entry_point_address_query): Update.
11455 2014-01-15 Tom Tromey <tromey@redhat.com>
11457 * objfiles.c (entry_point_address_query): Relocate entry point
11459 (objfile_relocate1): Do not relocate entry point address.
11460 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11461 <the_bfd_section_index>: New field.
11462 * symfile.c (init_entry_point_info): Find the entry point's
11465 2014-01-15 Tom Tromey <tromey@redhat.com>
11467 * solib-frv.c (enable_break): Use entry_point_address_query.
11469 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11471 * NEWS: Add note on improved process record-replay on
11472 arm*-linux* targets.
11474 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11476 * arm-tdep.c (enum arm_record_result): New enum.
11477 (arm_record_unsupported_insn): New function.
11478 (arm_record_coproc_data_proc): Removed.
11479 (thumb2_record_ld_st_multiple): New function.
11480 (thumb2_record_ld_st_dual_ex_tbb): New function.
11481 (thumb2_record_data_proc_sreg_mimm): New function.
11482 (thumb2_record_ps_dest_generic): New function.
11483 (thumb2_record_branch_misc_cntrl): New function.
11484 (thumb2_record_str_single_data): New function.
11485 (thumb2_record_ld_mem_hints): New function.
11486 (thumb2_record_ld_word): New function.
11487 (thumb2_record_lmul_lmla_div): New function.
11488 (thumb2_record_decode_insn_handler): New function.
11489 (decode_insn): Add thumb32 instruction handlers.
11491 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11493 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11494 (struct arm_linux_record_tdep): Declare.
11495 (arm_canonicalize_syscall): New function.
11496 (arm_all_but_pc_registers_record): New function.
11497 (arm_linux_syscall_record): New function.
11498 (arm_linux_init_abi): Add syscall recording constructs.
11499 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11500 decoding. (arm_record_coproc_data_proc): Update arm syscall
11502 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11503 <arm_syscall_record>: New field.
11504 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11507 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11509 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11510 register for push instruction recording.
11512 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11514 * arm-tdep.c (thumb_record_misc): Update to correct logical
11515 error while recording ldm, ldmia and pop instructions.
11517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11519 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11521 2014-01-15 Pedro Alves <palves@redhat.com>
11523 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11524 (go32_resume, go32_fetch_registers, store_register)
11525 (go32_store_registers, go32_prepare_to_store)
11526 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11527 (go32_create_inferior, go32_can_run, go32_terminal_init)
11528 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11531 2014-01-15 Tom Tromey <tromey@redhat.com>
11533 * target.h (async_callback_ftype): New typedef.
11534 (struct target_ops) <to_async>: Use it.
11536 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11538 * python/py-value.c (get_field_type): Remove unnecessary curly
11539 braces for single-statement if block.
11541 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11543 * python/py-type.c (convert_field): Add missing empty line
11544 after declarations.
11546 2014-01-14 Doug Evans <dje@google.com>
11548 * symfile.h (expand_symtabs_matching): Renamed from
11549 expand_partial_symbol_names. Update prototype.
11550 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11551 * symfile.c (expand_symtabs_matching): Renamed from
11552 expand_partial_symbol_names. New args file_matcher, kind.
11553 Rename arg fun to symbol_matcher.
11554 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11555 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11556 ada_expand_partial_symbol_name.
11557 (ada_make_symbol_completion_list): Update to call
11558 expand_symtabs_matching.
11559 (ada_add_global_exceptions): Call expand_symtabs_matching.
11560 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11561 call map_symbol_filenames.
11562 * symtab.c (sources_info): Update to call map_symbol_filenames.
11563 (search_symbols): Call expand_symtabs_matching.
11564 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11565 (default_make_symbol_completion_list_break_on): Update to call
11566 expand_symtabs_matching.
11567 (make_source_files_completion_list): Update to call
11568 map_symbol_filenames.
11570 2014-01-14 Doug Evans <dje@google.com>
11572 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11573 (expand_symtabs_symbol_matcher_ftype): New typedef.
11574 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11575 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11576 * symfile.c (expand_partial_symbol_names): Update to use
11577 expand_symtabs_symbol_matcher_ftype.
11578 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11579 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11580 Arg name_matcher renamed to symbol_matcher.
11581 * psymtab.c (recursively_search_psymtabs): Update to use
11582 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11584 (expand_symtabs_matching_via_partial): Update to use
11585 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11586 Arg name_matcher renamed to symbol_matcher.
11588 2014-01-14 Doug Evans <dje@google.com>
11590 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11591 (map_partial_symbol_filenames): Ditto.
11592 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11593 (map_partial_symbol_filenames): Ditto.
11594 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11595 (map_partial_symbol_filenames): Ditto.
11596 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11597 (map_partial_symbol_filenames): Ditto.
11598 * symtab.c: Delete #include "psymtab.h".
11600 2014-01-14 Pedro Alves <palves@redhat.com>
11601 Tom Tromey <tromey@redhat.com>
11603 * infrun.c (use_displaced_stepping): Use find_record_target
11604 instead of RECORD_IS_USED.
11605 (adjust_pc_after_break): Use record_full_is_used instead of
11607 * record-btrace.c (record_btrace_open): Call record_preopen
11608 instead of checking RECORD_IS_USED.
11609 * record-full.c (record_full_shortname)
11610 (record_full_core_shortname): New globals.
11611 (record_full_is_used): New function.
11612 (find_full_open): Call record_preopen instead of checking
11614 (init_record_full_ops): Set the target's shortname to
11615 record_full_shortname.
11616 (init_record_full_core_ops): Set the target's shortname to
11617 record_full_core_shortname.
11618 * record-full.h (record_full_is_used): Declare.
11619 * record.c (find_record_target): Make extern.
11620 (record_preopen): New function.
11621 * record.h (RECORD_IS_USED): Delete macro.
11622 (find_record_target, record_preopen): Declare functions.
11624 2014-01-14 Yao Qi <yao@codesourcery.com>
11626 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11627 'len''s type to ULONGEST.
11628 (core_xfer_shared_libraries_aix): Likewise.
11629 * gdbarch.c, gdbarch.h: Regenerated.
11630 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11631 Change type of 'len' to ULONGEST.
11632 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11633 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11635 2014-01-14 Yao Qi <yao@codesourcery.com>
11637 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11638 type of 'len' to ULONGEST.
11639 (linux_xfer_osdata_processgroups): Likewise.
11640 (linux_xfer_osdata_threads): Likewise.
11641 (linux_xfer_osdata_fds): Likewise.
11642 (linux_xfer_osdata_isockets): Likewise.
11643 (linux_xfer_osdata_shm): Likewise.
11644 (linux_xfer_osdata_sem): Likewise.
11645 (linux_xfer_osdata_msg): Likewise.
11646 (linux_common_xfer_osdata): Likewise.
11647 (struct osdata_type) <getter>: Likewise.
11648 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11651 2014-01-14 Yao Qi <yao@codesourcery.com>
11653 * target.h (target_xfer_partial_ftype): Update.
11654 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11656 * aix-thread.c (aix_thread_xfer_partial): Change type of
11657 argument 'len' to ULONGEST.
11658 * auxv.c (procfs_xfer_auxv): Likewise.
11659 (ld_so_xfer_auxv): Likewise.
11660 (memory_xfer_auxv): Likewise.
11661 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11662 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11663 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11664 * corelow.c (core_xfer_partial): Likewise.
11665 * ctf.c (ctf_xfer_partial): Likewise.
11666 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11668 (darwin_read_dyld_info): Likewise.
11669 (darwin_xfer_partial): Likewise.
11670 * exec.c (section_table_xfer_memory_partial): Likewise.
11671 (exec_xfer_partial): Likewise.
11672 * exec.h (section_table_xfer_memory_partial): Update
11674 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11675 instead of plongest.
11676 (gnu_xfer_partial): Likewise.
11677 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11678 (ia64_hpux_xfer_solib_got): Likewise.
11679 (ia64_hpux_xfer_partial): Likewise.
11680 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11681 * inf-ptrace.c (inf_ptrace_xfer_partial):
11682 * inf-ttrace.c (inf_ttrace_xfer_partial):
11683 * linux-nat.c (linux_xfer_siginfo): Likewise.
11684 (linux_nat_xfer_partial): Likewise.
11685 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11686 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11687 * monitor.c (monitor_xfer_memory): Likewise.
11688 (monitor_xfer_partial): Likewise.
11689 * procfs.c (procfs_xfer_partial): Likewise.
11690 * record-full.c (record_full_xfer_partial): Likewise.
11691 (record_full_core_xfer_partial): Likewise.
11692 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11693 instead of plongest.
11694 (gdbsim_xfer_partial): Likewise.
11695 * remote.c (remote_xfer_partial): Likewise.
11696 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11697 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11699 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11700 (rs6000_xfer_shared_libraries): Likewise.
11701 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11702 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11703 (sparc_xfer_partial): Likewise.
11704 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11705 (spu_xfer_partial): Likewise.
11706 * spu-multiarch.c (spu_xfer_partial): Likewise.
11707 * target.c (target_read_live_memory): Likewise.
11708 (memory_xfer_live_readonly_partial): Likewise.
11709 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11710 (target_xfer_partial, default_xfer_partial): Likewise.
11711 (current_xfer_partial): Likewise.
11712 * tracepoint.c (tfile_xfer_partial): Likewise.
11713 * windows-nat.c (windows_xfer_memory): Likewise. Call
11714 pulongest instead of plongest.
11715 (windows_xfer_partial): Likewise.
11716 (windows_xfer_shared_libraries): Likewise.
11718 2014-01-14 Yao Qi <yao@codesourcery.com>
11720 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11721 target_xfer_partial_ftype.
11723 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11727 * valops.c (value_struct_elt_bitpos): New function
11728 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11729 object to 'None' if the field name is an empty string ("").
11730 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11731 attribute to look for a field when 'name' is 'None'.
11732 (get_field_type): New function
11734 2014-01-13 Doug Evans <dje@google.com>
11737 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11738 (try_open_dwop_file): Ditto.
11739 * gdb_bfd.c: #include "vec.h".
11740 (bfdp): New typedef.
11741 (struct gdb_bfd_data): New member included_bfds.
11742 (gdb_bfd_unref): Unref all included bfds.
11743 (gdb_bfd_record_inclusion): New function.
11744 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11746 2014-01-13 Tom Tromey <tromey@redhat.com>
11748 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11750 2014-01-13 Tom Tromey <tromey@redhat.com>
11752 * defs.h (use_windows): Remove.
11753 * gdb.c (main): Update.
11754 * main.c (captured_main, gdb_main): Update.
11755 * main.h (struct captured_main_args) <use_windows>: Remove.
11756 * top.c (use_windows): Remove.
11758 2014-01-13 Tom Tromey <tromey@redhat.com>
11760 * defs.h (deprecated_flush_hook): Remove.
11762 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11765 * linux-thread-db.c (try_thread_db_load): Add parameter
11766 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11767 (try_thread_db_load_from_pdir_1): Move it there from here.
11768 (try_thread_db_load_from_sdir): Update caller.
11769 (try_thread_db_load_from_dir): Move it there from here.
11771 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11773 * regformats/regdat.sh: Always rewrite the register file.
11775 2014-01-13 Pedro Alves <palves@redhat.com>
11777 * Makefile.in (CHECK_HEADERS): New variable.
11778 (check-headers:): New rule.
11780 2014-01-13 Tom Tromey <tromey@redhat.com>
11782 * cli/cli-setshow.c (do_set_command): Update.
11783 * defs.h (deprecated_set_hook): Remove.
11784 * top.c (deprecated_set_hook): Remove.
11786 2014-01-13 Pedro Alves <palves@redhat.com>
11788 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11789 the tracepoint if the PC is a pseudo-register.
11791 2014-01-13 Tom Tromey <tromey@redhat.com>
11793 * defs.h (XCALLOC): Remove.
11794 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11795 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11796 * dwarf2loc.c (allocate_piece_closure): Likewise.
11797 * elfread.c (elf_symfile_segments): Likewise.
11798 (elf_symfile_segments): Likewise.
11799 * gdbtypes.c (copy_type_recursive): Likewise.
11800 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11801 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11802 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11804 * mt-tdep.c (mt_gdbarch_init): Likewise.
11805 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11807 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11808 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11809 * registry.c (registry_alloc_data): Likewise.
11810 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11811 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11812 * serial.c (serial_fdopen_ops): Likewise.
11813 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11815 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11816 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11819 2014-01-13 Tom Tromey <tromey@redhat.com>
11821 * defs.h (XMALLOC): Remove.
11822 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11823 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11824 * cli-out.c (struct ui_out *): Likewise.
11825 * cli/cli-dump.c (add_dump_command): Likewise.
11826 (add_dump_command): Likewise.
11827 * complaints.c (get_complaints): Likewise.
11828 (find_complaint): Likewise.
11829 * dwarf2-frame.c (execute_cfa_program): Likewise.
11830 * dwarf2read.c (abbrev_table_read_table): Likewise.
11831 * gdbarch.sh: Likewise.
11832 * gdbarch.c: Rebuild.
11833 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11834 * interps.c (interp_new): Likewise.
11835 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11836 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11837 * mi/mi-console.c (mi_console_file_new): Likewise.
11838 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11839 * mi/mi-out.c (mi_out_new): Likewise.
11840 * mi/mi-parse.c (mi_parse): Likewise.
11841 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11842 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11843 * observer.c (xalloc_observer_list_node): Likewise.
11844 * regcache.c (regcache_xmalloc_1): Likewise.
11845 * reggroups.c (reggroup_new): Likewise.
11846 (_initialize_reggroup): Likewise.
11847 * registry.c (register_data_with_cleanup): Likewise.
11848 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11849 * ser-base.c (serial_ttystate): Likewise.
11850 * ser-mingw.c (make_pipe_state): Likewise.
11851 * ser-pipe.c (pipe_open): Likewise.
11852 * serial.c (serial_open): Likewise.
11853 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11854 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11855 (tui_alloc_win_info): Likewise.
11856 (tui_add_content_elements): Likewise.
11857 * tui/tui-file.c (tui_file_new): Likewise.
11858 * tui/tui-out.c (tui_out_new): Likewise.
11859 * ui-file.c (mem_file_new): Likewise.
11860 * ui-out.c (push_level): Likewise.
11861 (make_cleanup_ui_out_end): Likewise.
11862 (append_header_to_list): Likewise.
11863 (ui_out_new): Likewise.
11864 * user-regs.c (user_reg_add_builtin): Likewise.
11866 2014-01-13 Tom Tromey <tromey@redhat.com>
11868 * defs.h (XZALLOC): Remove.
11869 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11870 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11871 (get_ada_tasks_inferior_data): Likewise.
11872 * auto-load.c (get_auto_load_pspace_data): Likewise.
11873 * auxv.c (get_auxv_inferior_data): Likewise.
11874 * bfd-target.c (target_bfd_reopen): Likewise.
11875 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11876 (deprecated_insert_raw_breakpoint): Likewise.
11877 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11878 * corelow.c (core_open): Likewise.
11879 * darwin-nat.c (darwin_check_new_threads): Likewise.
11880 (darwin_attach_pid): Likewise.
11881 * dummy-frame.c (dummy_frame_push): Likewise.
11882 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11883 * dwarf2loc.c (allocate_piece_closure): Likewise.
11884 * elfread.c (elf_symfile_segments): Likewise.
11885 * eval.c (ptrmath_type_p): Likewise.
11886 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11887 * gdbtypes.c (alloc_type_arch): Likewise.
11888 (alloc_type_instance): Likewise.
11889 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11890 * inf-child.c (inf_child_can_use_agent): Likewise.
11891 * inflow.c (get_inflow_inferior_data): Likewise.
11892 * infrun.c (save_infcall_suspend_state): Likewise.
11893 * jit.c (jit_reader_load): Likewise.
11894 (get_jit_objfile_data): Likewise.
11895 (get_jit_program_space_data): Likewise.
11896 (jit_object_open_impl): Likewise.
11897 (jit_symtab_open_impl): Likewise.
11898 (jit_block_open_impl): Likewise.
11899 (jit_frame_sniffer): Likewise.
11900 * linux-fork.c (add_fork): Likewise.
11901 * maint.c (make_command_stats_cleanup): Likewise.
11902 * objfiles.c (get_objfile_pspace_data): Likewise.
11903 * opencl-lang.c (struct lval_closure): Likewise.
11904 * osdata.c (osdata_start_osdata): Likewise.
11905 * progspace.c (new_address_space): Likewise.
11906 (add_program_space): Likewise.
11907 * remote-sim.c (get_sim_inferior_data): Likewise.
11908 * sh-tdep.c (sh_gdbarch_init): Likewise.
11909 * skip.c (Ignore): Likewise.
11910 (skip_delete_command): Likewise.
11911 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11912 (library_list_start_library): Likewise.
11913 (solib_aix_current_sos): Likewise.
11914 * solib-darwin.c (get_darwin_info): Likewise.
11915 (darwin_current_sos): Likewise.
11916 * solib-dsbt.c (get_dsbt_info): Likewise.
11917 * solib-ia64-hpux.c (new_so_list): Likewise.
11918 (ia64_hpux_get_solib_linkage_addr): Likewise.
11919 * solib-spu.c (append_ocl_sos): Likewise.
11920 (spu_current_sos): Likewise.
11921 * solib-svr4.c (get_svr4_info): Likewise.
11922 (svr4_keep_data_in_core): Likewise.
11923 (library_list_start_library): Likewise.
11924 (svr4_default_sos): Likewise.
11925 (svr4_read_so_list): Likewise.
11926 * solib-target.c (library_list_start_library): Likewise.
11927 (solib_target_current_sos): Likewise.
11928 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11929 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11930 * symfile.c (default_symfile_segments): Likewise.
11931 * target-descriptions.c (tdesc_data_init): Likewise.
11932 (tdesc_create_reg): Likewise.
11933 (struct tdesc_type *): Likewise.
11934 (tdesc_create_vector): Likewise.
11935 (tdesc_set_struct_size): Likewise.
11936 (struct tdesc_type *): Likewise.
11937 (tdesc_free_feature): Likewise.
11938 (tdesc_create_feature): Likewise.
11939 * windows-nat.c (windows_add_thread): Likewise.
11940 (windows_make_so): Likewise.
11941 * xml-support.c (gdb_xml_body_text): Likewise.
11942 (gdb_xml_create_parser_and_cleanup): Likewise.
11943 (xml_process_xincludes): Likewise.
11944 * xml-syscall.c (allocate_syscalls_info): Likewise.
11945 (syscall_create_syscall_desc): Likewise.
11947 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11949 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11950 function, with code from i386_stap_parse_special_token.
11951 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11952 (i386_stap_parse_special_token): Move code to the two functions
11953 above; simplify it.
11955 2014-01-09 Pedro Alves <palves@redhat.com>
11956 Hui Zhu <hui@codesourcery.com>
11959 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11960 bp_err_string. Don't mark the location shlib_disabled if the
11961 error thrown wasn't a generic or memory error. Catch errors
11962 thrown while inserting breakpoints in overlayed code. Output
11963 error message of software breakpoints.
11964 * remote.c (remote_insert_breakpoint): If this breakpoint has
11965 target-side commands but this stub doesn't support Z0 packets,
11966 throw NOT_SUPPORTED_ERROR error.
11967 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11968 * target.h (target_insert_breakpoint): Extend comment.
11969 (target_insert_hw_breakpoint): Add comment.
11971 2014-01-08 Pedro Alves <palves@redhat.com>
11973 * remote.c (remote_add_thread): Add threads silently if starting
11975 (remote_notice_new_inferior): If in all-stop, and starting up,
11976 don't call notice_new_inferior.
11977 (get_current_thread): New function, factored out from ...
11978 (add_current_inferior_and_thread): ... this. Adjust.
11979 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11980 found any thread, then select the remote's current thread as GDB's
11981 current thread too.
11983 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11985 * NEWS: Create a new section for the next release branch.
11986 Rename the section of the current branch, now that it has
11989 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11991 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11992 * version.in: Bump version to 7.7.50.DATE-cvs.
11994 2014-01-08 Yao Qi <yao@codesourcery.com>
11996 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11997 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11998 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12000 2014-01-08 Yao Qi <yao@codesourcery.com>
12002 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12003 return value of bfd_get_filename to symbol_file_add_from_bfd.
12005 2014-01-08 Pierre Muller <muller@sourceware.org>
12008 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12009 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12010 to prim_record_mininal_symbol_and_info.
12011 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12012 in call to prim_record_minimal_symbol_and_info.
12013 (read_pe_exported_syms): Set index field of section_data.
12015 2014-01-07 Andrew Pinski <apinski@cavium.com>
12017 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12018 * features/aarch64.c: Regenerate.
12020 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12022 * target.c (return_null): Define.
12023 (update_current_target): Use it instead of return_zero for
12024 functions that return a pointer.
12026 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12028 * source.c (add_path): Fix check for duplicated paths in the previously
12031 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12033 * ada-lang.c: Remove duplicated include statements.
12034 * alphabsd-nat.c: Ditto.
12035 * amd64-darwin-tdep.c: Ditto.
12036 * amd64fbsd-nat.c: Ditto.
12037 * auto-load.c: Ditto.
12039 * breakpoint.c: Ditto.
12040 * dbxread.c: Ditto.
12041 * fork-child.c: Ditto.
12042 * gdb_usleep.c: Ditto.
12043 * i386-darwin-tdep.c: Ditto.
12044 * i386fbsd-nat.c: Ditto.
12046 * inferior.c: Ditto.
12047 * jv-lang.c: Ditto.
12048 * linux-nat.c: Ditto.
12049 * linux-tdep.c: Ditto.
12050 * m68kbsd-nat.c: Ditto.
12051 * m68klinux-nat.c: Ditto.
12052 * microblaze-tdep.c: Ditto.
12053 * mips-linux-tdep.c: Ditto.
12054 * mn10300-tdep.c: Ditto.
12055 * nto-tdep.c: Ditto.
12056 * opencl-lang.c: Ditto.
12058 * printcmd.c: Ditto.
12059 * regcache.c: Ditto.
12060 * remote-m32r-sdi.c: Ditto.
12062 * symfile.c: Ditto.
12064 * tilegx-linux-nat.c: Ditto.
12065 * tilegx-tdep.c: Ditto.
12066 * tracepoint.c: Ditto.
12068 * vaxbsd-nat.c: Ditto.
12069 * windows-nat.c: Ditto.
12070 * xtensa-tdep.c: Ditto.
12072 2014-01-07 Yao Qi <yao@codesourcery.com>
12074 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12076 2014-01-07 Yao Qi <yao@codesourcery.com>
12077 Joel Brobecker <brobecker@adacore.com>
12079 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12080 (pdc_write_regs): Likewise.
12081 (fetch_regs_kernel_thread): Likewise.
12082 (store_regs_kernel_thread): Likewise.
12084 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12086 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12087 tagged type objects to their actual type.
12089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12091 * ada-valprint.c (print_field_values): Add "language" parameter.
12092 Update calls to print_field_values and print_variant_part.
12093 Pass new parameter "language" in call to val_print instead
12094 of "current_language". Replace call to ada_val_print by call
12096 (print_variant_part): Add "language" parameter.
12097 (ada_val_print_struct_union): Update call to print_field_values.
12099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12101 * ada-valprint.c (ui_memcpy): Delete.
12102 (ada_print_floating): Update documentation. Add empty line
12103 between between function documentation and implementation.
12104 Delete variable "buffer". Use ui_file_xstrdup in place of
12105 ui_file_put. Minor adjustments following this change.
12107 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12109 * ada-valprint.c (ada_val_print_string): New function,
12110 extracted from ada_val_print_array.
12111 (ada_val_print_array): Replace extracted code by call
12112 to ada_val_print_string followed by a return. Move
12113 "else" branch to the function's top block.
12115 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12117 * ada-valprint.c (ada_val_print_array): Move implementation
12118 down. Rename parameter "offset" and "val" into "offset_aligned"
12119 and "original_value" respectively. Add parameter "offset".
12121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12123 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12124 re-organizing the code. Change the "???" message printed
12125 when target type is a TYPE_CODE_UNDEF into
12126 "<ref to undefined type>".
12128 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12130 * ada-valprint.c (print_record): Delete, implementation inlined...
12131 (ada_val_print_struct_union): ... here. Remove call to
12132 ada_check_typedef in inlined implementation.
12134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12136 * ada-valprint.c (ada_val_print_gnat_array): New function,
12137 extracted from ada_val_print_1;
12138 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12139 (ada_val_print_flt, ada_val_print_struct_union)
12140 (ada_val_print_ref): Likewise.
12141 (ada_val_print_1): Delete variables i and elttype.
12142 Replace extracted-out code by call to corresponding
12145 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12147 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12149 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12151 * ada-valprint.c (ada_val_print_1): Replace calls to
12152 ada_val_print_1 by calls to val_print.
12154 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12156 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12157 Update calls to self accordingly. Replace calls to c_val_print
12158 by calls to val_print.
12160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12162 * ada-valprint.c (print_record): Delete declaration.
12163 (adjust_type_signedness, ada_val_print_1): Likewise.
12164 (ada_val_print): Move function implementation down.
12165 (print_variant_part, print_field_values, print_record):
12166 Move function implementation up.
12168 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12170 * python/py-type.c (typy_get_name): New function.
12171 (type_object_getset): Add entry for attribute "name".
12172 * NEWS: Add entry mentioning this new attribute.
12174 2014-01-07 Yao Qi <yao@codesourcery.com>
12176 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12179 2014-01-07 Yao Qi <yao@codesourcery.com>
12181 * gnu-nat.c (info_port_rights): Add qualifier const to
12184 2014-01-07 Yao Qi <yao@codesourcery.com>
12186 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12188 2014-01-07 Yao Qi <yao@codesourcery.com>
12190 * gnu-nat.c (make_inf) Update declaration.
12191 (make_inf): Make it static.
12192 (inf_set_traced): Likewise.
12193 (inf_port_to_thread, inf_task_died_status): Likewise.
12195 2014-01-07 Yao Qi <yao@codesourcery.com>
12197 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12199 2014-01-07 Yao Qi <yao@codesourcery.com>
12201 * gnu-nat.c (_initialize_gnu_nat): Declare.
12203 2014-01-07 Yao Qi <yao@codesourcery.com>
12205 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12207 (struct gdbarch_info) <byte_order>: Change type to
12209 <byte_order_for_code>: Likewise.
12210 * gdbarch.c, gdbarch.h: Regenerated.
12212 2014-01-06 Sasha Smundak <asmundak@google.com>
12214 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12216 2014-01-06 Tom Tromey <tromey@redhat.com>
12218 * doublest.c (convert_doublest_to_floatformat): Use const, not
12220 * somread.c (som_symtab_read): Likewise.
12222 2014-01-07 Hui Zhu <hui@codesourcery.com>
12224 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12225 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12226 (gdb_bfd_fopen): Ditto.
12227 (gdb_bfd_openr): Ditto.
12228 (gdb_bfd_openw): Ditto.
12229 (gdb_bfd_openr_iovec): Ditto.
12230 (gdb_bfd_fdopenr): Ditto.
12231 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12232 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12234 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12236 * symfile-mem.c (symbol_file_add_from_memory): Removed
12237 gdb_bfd_stash_filename.
12239 2014-01-03 Doug Evans <dje@google.com>
12241 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12244 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12246 Update year range in copyright notice of all files.
12248 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12250 * top.c (print_gdb_version): Set copyright year to 2014.
12252 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12254 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12256 For older changes see ChangeLog-2013.
12262 version-control: never