1 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4 (linux_make_corefile_notes): call update_thread_list, protected against
7 2014-08-21 Pedro Alves <palves@redhat.com>
9 * infcmd.c (attach_command): Remove comment.
11 2014-08-21 Bin Cheng <bin.cheng@arm.com>
13 * aarch64-linux-nat.c (dr_changed_t): Change the type from
14 unsigned LONGEST to ULONGEST.
16 2014-08-20 Pedro Alves <palves@redhat.com>
18 * Makefile.in (check-read1): New rule.
20 2014-08-20 Joel Brobecker <brobecker@adacore.com>
22 * value.c (value_from_contents_and_address): Strip resolved_type's
23 typedef layers before checking its TYPE_DATA_LOCATION.
25 2014-08-20 Pedro Alves <palves@redhat.com>
27 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
29 2014-08-20 Yao Qi <yao@codesourcery.com>
31 * amd64-tdep.c (amd64_classify): Add a blank line after the
32 example. Move "*/" to a new line.
33 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
34 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
35 * dwarf2read.c (psymtab_include_file_name): Likewise.
37 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
38 Pedro Alves <palves@redhat.com>
42 * ada-lang.c (coerce_unspec_val_to_type): Use
43 value_contents_copy_raw.
44 * ada-valprint.c (val_print_packed_array_elements): Adjust.
45 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
46 * cp-valprint.c (cp_print_value_fields): Let the common printing
47 code handle optimized out values.
48 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
49 * d-valprint.c (dynamic_array_type): Use
50 value_bits_any_optimized_out.
51 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
52 check_any_valid fields.
53 (check_pieced_value_bits): Delete and inline ...
54 (check_pieced_synthetic_pointer): ... here.
55 (check_pieced_value_validity): Delete.
56 (check_pieced_value_invalid): Delete.
57 (pieced_value_funcs): Remove check_validity and check_any_valid
59 (read_pieced_value): Use mark_value_bits_optimized_out.
60 (write_pieced_value): Switch to use
61 mark_value_bytes_optimized_out.
62 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
63 of assuming the whole value is optimized out.
64 * findvar.c (read_frame_register_value): Remove special handling
65 of optimized out registers.
66 (value_from_register): Use mark_value_bytes_optimized_out.
67 * frame-unwind.c (frame_unwind_got_optimized): Use
68 mark_value_bytes_optimized_out.
69 * jv-valprint.c (java_value_print): Adjust.
70 (java_print_value_fields): Let the common printing code handle
72 * mips-tdep.c (mips_print_register): Remove special handling of
73 optimized out registers.
74 * opencl-lang.c (lval_func_check_validity): Delete.
75 (lval_func_check_any_valid): Delete.
76 (opencl_value_funcs): Remove check_validity and check_any_valid
78 * p-valprint.c (pascal_object_print_value_fields): Let the common
79 printing code handle optimized out values.
80 * stack.c (read_frame_arg): Remove special handling of optimized
81 out values. Fetch both VAL and ENTRYVAL before comparing
82 contents. Adjust to value_available_contents_eq rename.
83 * valprint.c (valprint_check_validity)
84 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
85 (val_print_array_elements): Adjust.
86 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
87 (value_bits_any_optimized_out): New function.
88 (value_entirely_covered_by_range_vector): New function, factored
89 out from value_entirely_unavailable.
90 (value_entirely_unavailable): Reimplement.
91 (value_entirely_optimized_out): New function.
92 (insert_into_bit_range_vector): New function, factored out from
93 mark_value_bits_unavailable.
94 (mark_value_bits_unavailable): Reimplement.
95 (struct ranges_and_idx): New struct.
96 (find_first_range_overlap_and_match): New function, factored out
97 from value_available_contents_bits_eq.
98 (value_available_contents_bits_eq): Rename to ...
99 (value_contents_bits_eq): ... this. Check both unavailable
100 contents and optimized out contents.
101 (value_available_contents_eq): Rename to ...
102 (value_contents_eq): ... this.
103 (allocate_value_lazy): Remove reference to the old optimized_out
105 (allocate_optimized_out_value): Use
106 mark_value_bytes_optimized_out.
107 (require_not_optimized_out): Adjust to check whether the
108 optimized_out vec is empty.
109 (ranges_copy_adjusted): New function, factored out from
110 value_contents_copy_raw.
111 (value_contents_copy_raw): Also copy the optimized out ranges.
112 Assert the destination ranges aren't optimized out.
113 (value_contents_copy): Update comment, remove call to
114 require_not_optimized_out.
115 (value_contents_equal): Adjust to check whether the optimized_out
117 (set_value_optimized_out, value_optimized_out_const): Delete.
118 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
120 (value_entirely_optimized_out, value_bits_valid): Delete.
121 (value_copy): Take a VEC copy of the 'optimized_out' field.
122 (value_primitive_field): Remove special handling of optimized out.
123 (value_fetch_lazy): Assert that lazy values have no unavailable
124 regions. Use value_bits_any_optimized_out. Remove some special
125 handling for optimized out values.
126 * value.h: Add intro comment about <optimized out> and
128 (struct lval_funcs): Remove check_validity and check_any_valid
130 (set_value_optimized_out, value_optimized_out_const): Remove.
131 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
133 (value_bits_any_optimized_out): New declaration.
134 (value_bits_valid): Delete declaration.
135 (value_available_contents_eq): Rename to ...
136 (value_contents_eq): ... this, and extend comments.
138 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
140 Fix -fsanitize=address on unreadable inferior strings.
141 * valprint.c (val_print_string): Fix access before BUFFER.
143 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
145 * target.c (target_struct_size): Remove.
146 (target_struct_allocsize): Remove.
147 (DEFAULT_ALLOCSIZE): Remove.
148 (target_ops_p): New typedef.
149 (DEF_VEC_P (target_ops_p)): New vector type.
150 (target_structs): Change type to VEC (target_ops_p).
151 (add_target_with_completer): Replace "push" code by VEC_safe_push.
152 (find_default_run_target): Rewrite for loop following changes to
155 2014-08-19 Joel Brobecker <brobecker@adacore.com>
157 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
158 Adjust code accordingly. Adjust function description comment.
160 2014-08-19 Yao Qi <yao@codesourcery.com>
162 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
165 2014-08-19 Alan Modra <amodra@gmail.com>
167 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
168 * config.in: Regenerate.
169 * configure: Regenerate.
171 2014-08-19 Tom Tromey <tromey@redhat.com>
172 Gary Benson <gbenson@redhat.com>
174 * common/common-debug.h: New file.
175 * common/common-debug.c: Likewise.
177 * Makefile.in (SFILES): Add common/common-debug.c.
178 (HFILES_NO_SRCDIR): Add common/common-debug.h.
179 (COMMON_OBS): Add common-debug.o and debug.o.
180 (common-debug.o): New rule.
181 * common/common-defs.h: Include common-debug.h.
182 * common/agent.c (debug_agent_printf): New function.
183 (DEBUG_AGENT): Redefine.
184 * nat/i386-dregs.c (debug_printf): Undefine.
186 2014-08-19 Gary Benson <gbenson@redhat.com>
188 * common/common-defs.h: Include print-utils.h.
189 * utils.h: Do not include print-utils.h.
191 2014-08-19 Tom Tromey <tromey@redhat.com>
192 Gary Benson <gbenson@redhat.com>
194 * common/common-types.h: New file.
195 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
196 * common/common-defs.h: Include common-types.h.
197 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
200 2014-08-19 Tom Tromey <tromey@redhat.com>
201 Gary Benson <gbenson@redhat.com>
203 * common/errors.h: New file.
204 * common/errors.c: Likewise.
205 * Makefile.in (SFILES): Add common/errors.c.
206 (HFILES_NO_SRCDIR): Add common/errors.h.
207 (COMMON_OBS): Add errors.o.
208 (errors.o): New rule.
209 * common/common-defs.h: Include errors.h.
210 * utils.h (perror_with_name, error, verror, warning, vwarning):
212 * common/common-utils.h: (malloc_failure, internal_error):
215 2014-08-19 Gary Benson <gbenson@redhat.com>
217 * utils.c (internal_vproblem): Always print the message.
219 2014-08-18 Doug Evans <dje@google.com>
221 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
223 2014-08-18 Joel Brobecker <brobecker@adacore.com>
225 * ada-typeprint.c (type_is_full_subrange_of_target_type):
226 Return 0 if TYPE is dynamic.
227 (print_range): Add handling of dynamic ranges.
229 2014-08-18 Keven Boell <keven.boell@intel.com>
230 Joel Brobecker <brobecker@adacore.com>
232 * gdbtypes.h (struct main_type): Add field "data_location".
233 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
234 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
235 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
236 a dynamic data location.
237 (resolve_dynamic_type): Add DW_AT_data_location handling.
238 (copy_recursive, copy_type): Copy the data_location information
240 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
241 * value.c (value_from_contents_and_address): Add
242 DW_AT_data_location handling.
244 2014-08-18 Keven Boell <keven.boell@intel.com>
245 Joel Brobecker <brobecker@adacore.com>
247 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
248 field "get_object_address".
249 * dwarf2expr.c (execute_stack_op): Add handling for
250 DW_OP_push_object_address.
251 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
252 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
253 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
254 (dwarf_expr_get_obj_addr): New function.
255 (dwarf_expr_ctx_funcs): Add get_object_address field.
256 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
257 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
258 (dwarf2_evaluate_property): Add parameter "address". Use it.
259 (needs_get_obj_addr): New function.
260 (needs_frame_ctx_funcs): Add get_object_address field.
261 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
262 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
263 (resolve_dynamic_array): Likewise.
265 2014-08-18 Joel Brobecker <brobecker@adacore.com>
267 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
268 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
269 fixed value for records and unions for which some GNAT encodings
272 2014-08-18 Joel Brobecker <brobecker@adacore.com>
274 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
275 rewrite to avoid "else if" and "else" constructs. Should be
278 2014-08-18 Joel Brobecker <brobecker@adacore.com>
280 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
283 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
286 * eval.c: Update all calls to find_overload_match.
287 * valarith.c: Likewise.
288 (value_user_defined_cpp_op, value_user_defined_op): New
289 argument NOSIDE. Update all callers.
290 * valops.c (find_overload_match): New argument NOSIDE.
291 * value.h (find_overload_match): Update signature.
293 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
295 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
296 'items' methods instead of 'iteritems' method on dictionaries.
298 2014-08-15 Doug Evans <dje@google.com>
300 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
303 2014-08-15 Doug Evans <dje@google.com>
305 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
307 2014-08-15 Doug Evans <dje@google.com>
309 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
311 2014-08-15 Doug Evans <dje@google.com>
313 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
316 2014-08-15 Eli Zaretskii <eliz@gnu.org>
318 * dcache.h: Include target.h, to avoid compile time warnings.
320 2014-08-15 Joel Brobecker <brobecker@adacore.com>
322 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
323 frame_info" partial declaration.
324 * gdbarch.h: Regenerate.
326 2014-08-15 Yao Qi <yao@codesourcery.com>
328 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
329 Add parameter 'decode_for_pst_p'. Callers update.
331 2014-08-13 Yao Qi <yao@codesourcery.com>
334 * configure.ac: Use local variable 'pos'.
335 * configure: Regenerated.
337 2014-08-11 Doug Evans <dje@google.com>
339 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
340 message, it is redundant with "Reading symbols from ..." message.
342 2014-08-10 Doug Evans <xdje42@gmail.com>
344 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
346 2014-08-09 Yao Qi <yao@codesourcery.com>
349 * remote.c (remote_xfer_partial): Remove dead code.
351 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
353 * ia64-linux-tdep.c: Include "regset.h".
354 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
355 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
356 (ia64_linux_supply_fpregset): New function.
357 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
358 (ia64_linux_regset_from_core_section): New function.
359 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
362 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
364 * m68klinux-tdep.c: Include "regset.h".
365 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
366 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
367 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
368 (m68k_linux_regset_from_core_section): New function.
369 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
372 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
374 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
375 function. Move logic to...
376 (tilegx_linux_regmap): ... this new register map.
377 (tilegx_linux_regset): Refer to register map, replace supply
378 method by regcache_supply_regset, and add collect method.
379 * tilegx-tdep.h (enum tilegx_regnum): New enum value
380 TILEGX_FIRST_EASY_REGNUM.
382 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
384 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
385 that calls regcache_supply_regset and handles the EPC register
386 separately. Move main logic to...
387 (score7_linux_gregmap): ... this new register map.
388 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
389 (score7_linux_gregset): Refer to register map. Add collect method.
390 (score7_linux_regset_from_core_section): Replace
391 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
392 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
393 (struct regset): Delete unused forward declaraction.
394 (struct pt_regs): Delete structure definition.
395 (elf_gregset_t): Delete typedef.
397 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
399 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
400 (nios2_core_regset): Add collect method.
402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
404 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
405 platform-independent and don't write to read-only input buffer.
406 (m32r_linux_collect_gregset): New function.
407 (m32r_linux_gregset): Add collect method.
409 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
411 * hppa-linux-tdep.c (greg_map): Rename to...
412 (hppa_linux_gregmap): ... this. Also convert to
413 regcache_map_entry format.
414 (hppa_linux_supply_regset): Delete function.
415 (hppa_linux_supply_fpregset): Delete function. Move logic to...
416 (hppa_linux_fpregmap): ... this new register map.
417 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
418 register map, replace supply method by regcache_supply_regset, and
419 add collect method regcache_collect_regset.
421 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
423 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
424 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
425 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
426 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
427 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
428 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
429 (frv_linux_supply_gregset): Replace main logic by call to
430 regcache_supply_regset, but keep clearing gr32-gr63.
431 (frv_linux_supply_fpregset): Delete function.
432 (frv_linux_gregset): Refer to appropriate register map and add
433 regcache_collect_regset as the collect method.
434 (frv_linux_fpregset): Likewise. Also exchange the supply method
435 by regcache_supply_regset.
437 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
439 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
440 by call to alpha_supply_int_regs.
441 (alpha_linux_collect_gregset): New function.
442 (alpha_linux_supply_fpregset): Replace logic by call to
443 alpha_supply_fp_regs.
444 (alpha_linux_collect_fpregset): New function.
445 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
447 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
449 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
450 by call to regcache_collect_regset.
451 (supply_gregset, supply_fpregset): Call regcache_supply_regset
452 instead of aarch64_linux_supply_gregset/_fpregset.
453 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
454 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
456 (aarch64_linux_supply_gregset, supply_gregset_from_core)
457 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
458 functions. Move logic to ...
459 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
461 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
462 refer to new register maps, replace *_regset_from_core by
463 regcache_supply_regset, and also use regcache_collect_regset.
464 * aarch64-linux-tdep.h: Include "regset.h".
465 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
467 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
468 macros, moved from C source file.
469 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
470 variable declarations.
472 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
474 * s390-linux-nat.c: Include "regset.h".
475 (regmap_gregset): Delete macro.
476 (s390_64_regmap_gregset): New register map for
477 regcache_supply/_collect_regset.
478 (s390_64_gregset): New regset.
479 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
480 (regmap_fpregset): Delete macro.
481 (s390_native_supply, s390_native_collect): Delete functions.
482 (supply_gregset, fill_gregset): Replace s390-specific regmap
483 handling by a call to regcache_supply/_collect_regset.
484 (supply_fpregset, fill_fpregset): Call regcache_supply/
485 _collect_regset instead of s390_native_supply/_collect.
486 (fetch_regset, store_regset): Likewise. Also change the last
487 parameter to a regset instead of a regmap.
488 (s390_linux_fetch_inferior_registers)
489 (390_linux_store_inferior_registers): Adjust last parameter in
490 calls to fetch_regset and store_regset.
491 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
492 (s390_gregmap): ... this. Also make static const and convert to
493 regcache_map_entry format.
494 (s390x_regmap_gregset): Delete.
495 (s390_regmap_fpregset): Rename to...
496 (s390_fpregmap): ... this. Make static const and convert to
497 regcache_map_entry format.
498 (s390_regmap_upper, s390_regmap_last_break)
499 (s390x_regmap_last_break, s390_regmap_system_call)
500 (s390_regmap_tdb): Likewise.
501 (s390_supply_regset, s390_collect_regset): Remove functions.
502 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
504 (s390_gregset, s390_fpregset, s390_upper_regset)
505 (s390_last_break_regset, s390x_last_break_regset)
506 (s390_system_call_regset, s390_tdb_regset): Make global and
507 replace s390_supply/_collect_regset by regcache_supply/
509 (s390x_gregset): Delete.
510 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
511 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
512 (s390_regmap_fpregset, s390_regmap_last_break)
513 (s390x_regmap_last_break, s390_regmap_system_call)
514 (s390_regmap_tdb): Delete global variable declarations.
515 (s390_gregset, s390_fpregset, s390_last_break_regset)
516 (s390x_last_break_regset, s390_system_call_regset)
517 (s390_tdb_regset): New global variable declarations.
519 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
521 * regcache.c: Include "regset.h".
522 (regcache_transfer_regset): New local function.
523 (regcache_supply_regset, regcache_collect_regset): New functions.
524 * regcache.h (struct regcache_map_entry): New structure.
525 (REGCACHE_MAP_SKIP): New enum value.
526 (regcache_supply_regset, regcache_collect_regset): New prototypes.
528 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
530 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
531 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
532 (ppc_linux_collect_gregset ): Likewise.
533 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
534 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
535 (ppc_collect_vrregset): Likewise.
536 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
539 2014-08-07 Yao Qi <yao@codesourcery.com>
541 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
542 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
543 * remote.c (remote_read_bytes): Likewise.
545 2014-08-07 Yao Qi <yao@codesourcery.com>
547 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
549 2014-08-07 Yao Qi <yao@codesourcery.com>
552 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
553 TARGET_XFER_OK instead of 0.
555 2014-08-07 Gary Benson <gbenson@redhat.com>
557 * common/common-defs.h: Include errno.h.
558 * defs.h: Do not include errno.h.
559 * ada-typeprint.c: Likewise.
560 * c-typeprint.c: Likewise.
561 * core-regset.c: Likewise.
562 * corefile.c: Likewise.
563 * corelow.c: Likewise.
564 * event-loop.c: Likewise.
565 * f-typeprint.c: Likewise.
566 * gnu-nat.c: Likewise.
567 * go32-nat.c: Likewise.
568 * i386gnu-nat.c: Likewise.
569 * m2-typeprint.c: Likewise.
570 * nat/linux-btrace.c: Likewise.
571 * p-typeprint.c: Likewise.
572 * procfs.c: Likewise.
573 * remote-sim.c: Likewise.
574 * rs6000-nat.c: Likewise.
575 * target.c: Likewise.
576 * typeprint.c: Likewise.
577 * ui-file.c: Likewise.
578 * valops.c: Likewise.
579 * valprint.c: Likewise.
581 2014-08-07 Gary Benson <gbenson@redhat.com>
583 * common/common-defs.h: Include string.h.
584 * aarch64-tdep.c: Do not include string.h.
585 * ada-exp.y: Likewise.
586 * ada-lang.c: Likewise.
587 * ada-lex.l: Likewise.
588 * ada-typeprint.c: Likewise.
589 * ada-valprint.c: Likewise.
590 * aix-thread.c: Likewise.
591 * alpha-linux-tdep.c: Likewise.
592 * alpha-mdebug-tdep.c: Likewise.
593 * alpha-nat.c: Likewise.
594 * alpha-osf1-tdep.c: Likewise.
595 * alpha-tdep.c: Likewise.
596 * alphanbsd-tdep.c: Likewise.
597 * amd64-dicos-tdep.c: Likewise.
598 * amd64-linux-tdep.c: Likewise.
599 * amd64-nat.c: Likewise.
600 * amd64-sol2-tdep.c: Likewise.
601 * amd64fbsd-tdep.c: Likewise.
602 * amd64obsd-tdep.c: Likewise.
603 * arch-utils.c: Likewise.
604 * arm-linux-nat.c: Likewise.
605 * arm-linux-tdep.c: Likewise.
606 * arm-tdep.c: Likewise.
607 * arm-wince-tdep.c: Likewise.
608 * armbsd-tdep.c: Likewise.
609 * armnbsd-nat.c: Likewise.
610 * armnbsd-tdep.c: Likewise.
611 * armobsd-tdep.c: Likewise.
612 * avr-tdep.c: Likewise.
613 * ax-gdb.c: Likewise.
614 * ax-general.c: Likewise.
615 * bcache.c: Likewise.
616 * bfin-tdep.c: Likewise.
617 * breakpoint.c: Likewise.
618 * build-id.c: Likewise.
619 * buildsym.c: Likewise.
621 * c-lang.c: Likewise.
622 * c-typeprint.c: Likewise.
623 * c-valprint.c: Likewise.
624 * charset.c: Likewise.
625 * cli-out.c: Likewise.
626 * cli/cli-cmds.c: Likewise.
627 * cli/cli-decode.c: Likewise.
628 * cli/cli-dump.c: Likewise.
629 * cli/cli-interp.c: Likewise.
630 * cli/cli-logging.c: Likewise.
631 * cli/cli-script.c: Likewise.
632 * cli/cli-setshow.c: Likewise.
633 * cli/cli-utils.c: Likewise.
634 * coffread.c: Likewise.
635 * common/agent.c: Likewise.
636 * common/buffer.c: Likewise.
637 * common/buffer.h: Likewise.
638 * common/common-utils.c: Likewise.
639 * common/filestuff.c: Likewise.
640 * common/filestuff.c: Likewise.
641 * common/format.c: Likewise.
642 * common/print-utils.c: Likewise.
643 * common/rsp-low.c: Likewise.
644 * common/signals.c: Likewise.
645 * common/vec.h: Likewise.
646 * common/xml-utils.c: Likewise.
647 * core-regset.c: Likewise.
648 * corefile.c: Likewise.
649 * corelow.c: Likewise.
650 * cp-abi.c: Likewise.
651 * cp-name-parser.y: Likewise.
652 * cp-support.c: Likewise.
653 * cp-valprint.c: Likewise.
654 * cris-tdep.c: Likewise.
656 * darwin-nat.c: Likewise.
657 * dbxread.c: Likewise.
658 * dcache.c: Likewise.
659 * demangle.c: Likewise.
660 * dicos-tdep.c: Likewise.
661 * disasm.c: Likewise.
662 * doublest.c: Likewise.
664 * dummy-frame.c: Likewise.
665 * dwarf2-frame.c: Likewise.
666 * dwarf2loc.c: Likewise.
667 * dwarf2read.c: Likewise.
668 * elfread.c: Likewise.
669 * environ.c: Likewise.
671 * event-loop.c: Likewise.
672 * exceptions.c: Likewise.
674 * expprint.c: Likewise.
676 * f-lang.c: Likewise.
677 * f-typeprint.c: Likewise.
678 * f-valprint.c: Likewise.
679 * fbsd-nat.c: Likewise.
680 * findcmd.c: Likewise.
681 * findvar.c: Likewise.
682 * fork-child.c: Likewise.
684 * frv-linux-tdep.c: Likewise.
685 * frv-tdep.c: Likewise.
687 * gdb_bfd.c: Likewise.
688 * gdbarch.c: Likewise.
689 * gdbarch.sh: Likewise.
690 * gdbtypes.c: Likewise.
691 * gnu-nat.c: Likewise.
692 * gnu-v2-abi.c: Likewise.
693 * gnu-v3-abi.c: Likewise.
694 * go-exp.y: Likewise.
695 * go-lang.c: Likewise.
696 * go32-nat.c: Likewise.
697 * guile/guile.c: Likewise.
698 * guile/scm-auto-load.c: Likewise.
699 * hppa-hpux-tdep.c: Likewise.
700 * hppa-linux-nat.c: Likewise.
701 * hppanbsd-tdep.c: Likewise.
702 * hppaobsd-tdep.c: Likewise.
703 * i386-cygwin-tdep.c: Likewise.
704 * i386-dicos-tdep.c: Likewise.
705 * i386-linux-tdep.c: Likewise.
706 * i386-nto-tdep.c: Likewise.
707 * i386-sol2-tdep.c: Likewise.
708 * i386-tdep.c: Likewise.
709 * i386bsd-tdep.c: Likewise.
710 * i386gnu-nat.c: Likewise.
711 * i386nbsd-tdep.c: Likewise.
712 * i386obsd-tdep.c: Likewise.
713 * i387-tdep.c: Likewise.
714 * ia64-libunwind-tdep.c: Likewise.
715 * ia64-linux-nat.c: Likewise.
716 * inf-child.c: Likewise.
717 * inf-ptrace.c: Likewise.
718 * inf-ttrace.c: Likewise.
719 * infcall.c: Likewise.
720 * infcmd.c: Likewise.
721 * inflow.c: Likewise.
722 * infrun.c: Likewise.
723 * interps.c: Likewise.
724 * iq2000-tdep.c: Likewise.
725 * irix5-nat.c: Likewise.
726 * jv-exp.y: Likewise.
727 * jv-lang.c: Likewise.
728 * jv-typeprint.c: Likewise.
729 * jv-valprint.c: Likewise.
730 * language.c: Likewise.
731 * linux-fork.c: Likewise.
732 * linux-nat.c: Likewise.
733 * lm32-tdep.c: Likewise.
734 * m2-exp.y: Likewise.
735 * m2-typeprint.c: Likewise.
736 * m32c-tdep.c: Likewise.
737 * m32r-linux-nat.c: Likewise.
738 * m32r-linux-tdep.c: Likewise.
739 * m32r-rom.c: Likewise.
740 * m32r-tdep.c: Likewise.
741 * m68hc11-tdep.c: Likewise.
742 * m68k-tdep.c: Likewise.
743 * m68kbsd-tdep.c: Likewise.
744 * m68klinux-nat.c: Likewise.
745 * m68klinux-tdep.c: Likewise.
746 * m88k-tdep.c: Likewise.
747 * machoread.c: Likewise.
748 * macrocmd.c: Likewise.
750 * mdebugread.c: Likewise.
751 * mem-break.c: Likewise.
752 * memattr.c: Likewise.
753 * memory-map.c: Likewise.
754 * mep-tdep.c: Likewise.
755 * mi/mi-cmd-break.c: Likewise.
756 * mi/mi-cmd-disas.c: Likewise.
757 * mi/mi-cmd-env.c: Likewise.
758 * mi/mi-cmd-stack.c: Likewise.
759 * mi/mi-cmd-var.c: Likewise.
760 * mi/mi-cmds.c: Likewise.
761 * mi/mi-console.c: Likewise.
762 * mi/mi-getopt.c: Likewise.
763 * mi/mi-interp.c: Likewise.
764 * mi/mi-main.c: Likewise.
765 * mi/mi-parse.c: Likewise.
766 * microblaze-rom.c: Likewise.
767 * microblaze-tdep.c: Likewise.
768 * mingw-hdep.c: Likewise.
769 * minidebug.c: Likewise.
770 * minsyms.c: Likewise.
771 * mips-irix-tdep.c: Likewise.
772 * mips-linux-tdep.c: Likewise.
773 * mips-tdep.c: Likewise.
774 * mips64obsd-tdep.c: Likewise.
775 * mipsnbsd-tdep.c: Likewise.
776 * mipsread.c: Likewise.
777 * mn10300-linux-tdep.c: Likewise.
778 * mn10300-tdep.c: Likewise.
779 * monitor.c: Likewise.
780 * moxie-tdep.c: Likewise.
781 * mt-tdep.c: Likewise.
782 * nat/linux-btrace.c: Likewise.
783 * nat/linux-osdata.c: Likewise.
784 * nat/linux-procfs.c: Likewise.
785 * nat/linux-ptrace.c: Likewise.
786 * nat/linux-waitpid.c: Likewise.
787 * nbsd-tdep.c: Likewise.
788 * nios2-linux-tdep.c: Likewise.
789 * nto-procfs.c: Likewise.
790 * nto-tdep.c: Likewise.
791 * objc-lang.c: Likewise.
792 * objfiles.c: Likewise.
793 * opencl-lang.c: Likewise.
795 * osdata.c: Likewise.
797 * p-lang.c: Likewise.
798 * p-typeprint.c: Likewise.
800 * posix-hdep.c: Likewise.
801 * ppc-linux-nat.c: Likewise.
802 * ppc-sysv-tdep.c: Likewise.
803 * ppcfbsd-tdep.c: Likewise.
804 * ppcnbsd-tdep.c: Likewise.
805 * ppcobsd-tdep.c: Likewise.
806 * printcmd.c: Likewise.
807 * procfs.c: Likewise.
808 * prologue-value.c: Likewise.
809 * python/py-auto-load.c: Likewise.
810 * python/py-gdb-readline.c: Likewise.
811 * ravenscar-thread.c: Likewise.
812 * regcache.c: Likewise.
813 * registry.c: Likewise.
814 * remote-fileio.c: Likewise.
815 * remote-m32r-sdi.c: Likewise.
816 * remote-mips.c: Likewise.
817 * remote-notif.c: Likewise.
818 * remote-sim.c: Likewise.
819 * remote.c: Likewise.
820 * reverse.c: Likewise.
821 * rs6000-aix-tdep.c: Likewise.
822 * ser-base.c: Likewise.
823 * ser-go32.c: Likewise.
824 * ser-mingw.c: Likewise.
825 * ser-pipe.c: Likewise.
826 * ser-tcp.c: Likewise.
827 * ser-unix.c: Likewise.
828 * serial.c: Likewise.
829 * sh-tdep.c: Likewise.
830 * sh64-tdep.c: Likewise.
831 * shnbsd-tdep.c: Likewise.
833 * sol-thread.c: Likewise.
834 * solib-dsbt.c: Likewise.
835 * solib-frv.c: Likewise.
836 * solib-osf.c: Likewise.
837 * solib-som.c: Likewise.
838 * solib-spu.c: Likewise.
839 * solib-target.c: Likewise.
841 * somread.c: Likewise.
842 * source.c: Likewise.
843 * sparc-nat.c: Likewise.
844 * sparc-sol2-tdep.c: Likewise.
845 * sparc-tdep.c: Likewise.
846 * sparc64-tdep.c: Likewise.
847 * sparc64fbsd-tdep.c: Likewise.
848 * sparc64nbsd-tdep.c: Likewise.
849 * sparcnbsd-tdep.c: Likewise.
850 * spu-linux-nat.c: Likewise.
851 * spu-multiarch.c: Likewise.
852 * spu-tdep.c: Likewise.
853 * stabsread.c: Likewise.
855 * std-regs.c: Likewise.
856 * symfile.c: Likewise.
857 * symmisc.c: Likewise.
858 * symtab.c: Likewise.
859 * target.c: Likewise.
860 * thread.c: Likewise.
861 * tilegx-linux-nat.c: Likewise.
862 * tilegx-tdep.c: Likewise.
864 * tracepoint.c: Likewise.
865 * tui/tui-command.c: Likewise.
866 * tui/tui-data.c: Likewise.
867 * tui/tui-disasm.c: Likewise.
868 * tui/tui-file.c: Likewise.
869 * tui/tui-layout.c: Likewise.
870 * tui/tui-out.c: Likewise.
871 * tui/tui-regs.c: Likewise.
872 * tui/tui-source.c: Likewise.
873 * tui/tui-stack.c: Likewise.
874 * tui/tui-win.c: Likewise.
875 * tui/tui-windata.c: Likewise.
876 * tui/tui-winsource.c: Likewise.
877 * typeprint.c: Likewise.
878 * ui-file.c: Likewise.
879 * ui-out.c: Likewise.
880 * user-regs.c: Likewise.
882 * v850-tdep.c: Likewise.
883 * valarith.c: Likewise.
884 * valops.c: Likewise.
885 * valprint.c: Likewise.
887 * varobj.c: Likewise.
888 * vax-tdep.c: Likewise.
889 * vaxnbsd-tdep.c: Likewise.
890 * vaxobsd-tdep.c: Likewise.
891 * windows-nat.c: Likewise.
892 * xcoffread.c: Likewise.
893 * xml-support.c: Likewise.
894 * xstormy16-tdep.c: Likewise.
895 * xtensa-linux-nat.c: Likewise.
897 2014-08-07 Gary Benson <gbenson@redhat.com>
899 * common/common-defs.h: Include gdb_assert.h.
900 * aarch64-tdep.c: Do not include gdb_assert.h.
901 * addrmap.c: Likewise.
902 * aix-thread.c: Likewise.
903 * alpha-linux-tdep.c: Likewise.
904 * alpha-mdebug-tdep.c: Likewise.
905 * alphanbsd-tdep.c: Likewise.
906 * amd64-nat.c: Likewise.
907 * amd64-tdep.c: Likewise.
908 * amd64bsd-nat.c: Likewise.
909 * amd64fbsd-nat.c: Likewise.
910 * amd64fbsd-tdep.c: Likewise.
911 * amd64nbsd-nat.c: Likewise.
912 * amd64nbsd-tdep.c: Likewise.
913 * amd64obsd-nat.c: Likewise.
914 * amd64obsd-tdep.c: Likewise.
915 * arch-utils.c: Likewise.
916 * arm-tdep.c: Likewise.
917 * armbsd-tdep.c: Likewise.
919 * bcache.c: Likewise.
920 * bfin-tdep.c: Likewise.
921 * blockframe.c: Likewise.
922 * breakpoint.c: Likewise.
923 * bsd-kvm.c: Likewise.
924 * bsd-uthread.c: Likewise.
925 * buildsym.c: Likewise.
927 * c-lang.c: Likewise.
928 * charset.c: Likewise.
929 * cleanups.c: Likewise.
930 * cli-out.c: Likewise.
931 * cli/cli-decode.c: Likewise.
932 * cli/cli-dump.c: Likewise.
933 * cli/cli-logging.c: Likewise.
934 * cli/cli-script.c: Likewise.
935 * cli/cli-utils.c: Likewise.
936 * coffread.c: Likewise.
937 * common/common-utils.c: Likewise.
938 * common/queue.h: Likewise.
939 * common/signals.c: Likewise.
940 * common/vec.h: Likewise.
941 * complaints.c: Likewise.
942 * completer.c: Likewise.
943 * corelow.c: Likewise.
944 * cp-abi.c: Likewise.
945 * cp-name-parser.y: Likewise.
946 * cp-namespace.c: Likewise.
947 * cp-support.c: Likewise.
948 * cris-tdep.c: Likewise.
949 * dbxread.c: Likewise.
950 * dictionary.c: Likewise.
951 * doublest.c: Likewise.
953 * dummy-frame.c: Likewise.
954 * dwarf2-frame-tailcall.c: Likewise.
955 * dwarf2-frame.c: Likewise.
956 * dwarf2expr.c: Likewise.
957 * dwarf2loc.c: Likewise.
958 * dwarf2read.c: Likewise.
960 * event-loop.c: Likewise.
961 * exceptions.c: Likewise.
962 * expprint.c: Likewise.
963 * f-valprint.c: Likewise.
964 * fbsd-nat.c: Likewise.
965 * findvar.c: Likewise.
966 * frame-unwind.c: Likewise.
968 * frv-tdep.c: Likewise.
970 * gdb-dlfcn.c: Likewise.
971 * gdb_bfd.c: Likewise.
972 * gdbarch.c: Likewise.
973 * gdbarch.sh: Likewise.
974 * gdbtypes.c: Likewise.
975 * gnu-nat.c: Likewise.
976 * gnu-v3-abi.c: Likewise.
977 * go-lang.c: Likewise.
978 * guile/scm-exception.c: Likewise.
979 * guile/scm-gsmob.c: Likewise.
980 * guile/scm-lazy-string.c: Likewise.
981 * guile/scm-math.c: Likewise.
982 * guile/scm-pretty-print.c: Likewise.
983 * guile/scm-safe-call.c: Likewise.
984 * guile/scm-utils.c: Likewise.
985 * guile/scm-value.c: Likewise.
986 * h8300-tdep.c: Likewise.
987 * hppa-hpux-nat.c: Likewise.
988 * hppa-tdep.c: Likewise.
989 * hppanbsd-tdep.c: Likewise.
990 * hppaobsd-tdep.c: Likewise.
991 * i386-darwin-nat.c: Likewise.
992 * i386-darwin-tdep.c: Likewise.
993 * i386-nto-tdep.c: Likewise.
994 * i386-tdep.c: Likewise.
995 * i386bsd-nat.c: Likewise.
996 * i386fbsd-tdep.c: Likewise.
997 * i386gnu-nat.c: Likewise.
998 * i386nbsd-tdep.c: Likewise.
999 * i386obsd-tdep.c: Likewise.
1000 * i387-tdep.c: Likewise.
1001 * ia64-libunwind-tdep.c: Likewise.
1002 * ia64-tdep.c: Likewise.
1003 * inf-ptrace.c: Likewise.
1004 * inf-ttrace.c: Likewise.
1005 * infcall.c: Likewise.
1006 * infcmd.c: Likewise.
1007 * infrun.c: Likewise.
1008 * inline-frame.c: Likewise.
1009 * interps.c: Likewise.
1010 * jv-lang.c: Likewise.
1011 * jv-typeprint.c: Likewise.
1012 * linux-fork.c: Likewise.
1013 * linux-nat.c: Likewise.
1014 * linux-thread-db.c: Likewise.
1015 * m32c-tdep.c: Likewise.
1016 * m32r-linux-nat.c: Likewise.
1017 * m32r-tdep.c: Likewise.
1018 * m68k-tdep.c: Likewise.
1019 * m68kbsd-nat.c: Likewise.
1020 * m68kbsd-tdep.c: Likewise.
1021 * m88k-tdep.c: Likewise.
1022 * machoread.c: Likewise.
1023 * macroexp.c: Likewise.
1024 * macrotab.c: Likewise.
1025 * maint.c: Likewise.
1026 * mdebugread.c: Likewise.
1027 * memory-map.c: Likewise.
1028 * mep-tdep.c: Likewise.
1029 * mi/mi-common.c: Likewise.
1030 * microblaze-tdep.c: Likewise.
1031 * mingw-hdep.c: Likewise.
1032 * mips-linux-nat.c: Likewise.
1033 * mips-linux-tdep.c: Likewise.
1034 * mips-tdep.c: Likewise.
1035 * mips64obsd-tdep.c: Likewise.
1036 * mipsnbsd-tdep.c: Likewise.
1037 * mn10300-linux-tdep.c: Likewise.
1038 * mn10300-tdep.c: Likewise.
1039 * moxie-tdep.c: Likewise.
1040 * mt-tdep.c: Likewise.
1041 * nat/linux-btrace.c: Likewise.
1042 * nat/linux-osdata.c: Likewise.
1043 * nat/linux-ptrace.c: Likewise.
1044 * nat/mips-linux-watch.c: Likewise.
1045 * nios2-linux-tdep.c: Likewise.
1046 * nios2-tdep.c: Likewise.
1047 * objc-lang.c: Likewise.
1048 * objfiles.c: Likewise.
1049 * obsd-nat.c: Likewise.
1050 * opencl-lang.c: Likewise.
1051 * osabi.c: Likewise.
1052 * parse.c: Likewise.
1053 * ppc-linux-nat.c: Likewise.
1054 * ppc-sysv-tdep.c: Likewise.
1055 * ppcfbsd-nat.c: Likewise.
1056 * ppcfbsd-tdep.c: Likewise.
1057 * ppcnbsd-nat.c: Likewise.
1058 * ppcnbsd-tdep.c: Likewise.
1059 * ppcobsd-nat.c: Likewise.
1060 * ppcobsd-tdep.c: Likewise.
1061 * printcmd.c: Likewise.
1062 * procfs.c: Likewise.
1063 * prologue-value.c: Likewise.
1064 * psymtab.c: Likewise.
1065 * python/py-lazy-string.c: Likewise.
1066 * python/py-value.c: Likewise.
1067 * regcache.c: Likewise.
1068 * reggroups.c: Likewise.
1069 * registry.c: Likewise.
1070 * remote-sim.c: Likewise.
1071 * remote.c: Likewise.
1072 * rs6000-aix-tdep.c: Likewise.
1073 * rs6000-tdep.c: Likewise.
1074 * s390-linux-tdep.c: Likewise.
1075 * score-tdep.c: Likewise.
1076 * ser-base.c: Likewise.
1077 * ser-mingw.c: Likewise.
1078 * sh-tdep.c: Likewise.
1079 * sh64-tdep.c: Likewise.
1080 * solib-darwin.c: Likewise.
1081 * solib-spu.c: Likewise.
1082 * solib-svr4.c: Likewise.
1083 * source.c: Likewise.
1084 * sparc-nat.c: Likewise.
1085 * sparc-sol2-tdep.c: Likewise.
1086 * sparc-tdep.c: Likewise.
1087 * sparc64-sol2-tdep.c: Likewise.
1088 * sparc64-tdep.c: Likewise.
1089 * sparc64fbsd-tdep.c: Likewise.
1090 * sparc64nbsd-tdep.c: Likewise.
1091 * sparc64obsd-tdep.c: Likewise.
1092 * sparcnbsd-tdep.c: Likewise.
1093 * sparcobsd-tdep.c: Likewise.
1094 * spu-multiarch.c: Likewise.
1095 * spu-tdep.c: Likewise.
1096 * stabsread.c: Likewise.
1097 * stack.c: Likewise.
1098 * symfile.c: Likewise.
1099 * symtab.c: Likewise.
1100 * target-descriptions.c: Likewise.
1101 * target-memory.c: Likewise.
1102 * target.c: Likewise.
1103 * tic6x-linux-tdep.c: Likewise.
1104 * tic6x-tdep.c: Likewise.
1105 * tilegx-linux-nat.c: Likewise.
1106 * tilegx-tdep.c: Likewise.
1108 * tramp-frame.c: Likewise.
1109 * tui/tui-out.c: Likewise.
1110 * tui/tui-winsource.c: Likewise.
1111 * ui-out.c: Likewise.
1112 * user-regs.c: Likewise.
1113 * utils.c: Likewise.
1114 * v850-tdep.c: Likewise.
1115 * valops.c: Likewise.
1116 * value.c: Likewise.
1117 * varobj.c: Likewise.
1118 * vax-nat.c: Likewise.
1119 * xml-syscall.c: Likewise.
1120 * xml-tdesc.c: Likewise.
1121 * xstormy16-tdep.c: Likewise.
1122 * xtensa-linux-nat.c: Likewise.
1123 * xtensa-tdep.c: Likewise.
1125 2014-08-07 Gary Benson <gbenson@redhat.com>
1127 * common/common-defs.h: Include common-utils.h.
1128 * defs.h: Do not include common-utils.h.
1129 * common/gdb_assert.h: Likewise.
1130 * darwin-nat.h: Likewise.
1131 * nat/linux-btrace.c: Likewise.
1132 * target/waitstatus.h: Likewise.
1134 2014-08-07 Gary Benson <gbenson@redhat.com>
1136 * common/common-defs.h: Include ptid.h.
1137 * defs.h: Do not include ptid.h.
1138 * inferior.h: Likewise.
1139 * infrun.h: Likewise.
1140 * nat/linux-btrace.h: Likewise.
1141 * nat/linux-osdata.h: Likewise.
1142 * target/waitstatus.h: Likewise.
1144 2014-08-07 Gary Benson <gbenson@redhat.com>
1146 * common/common-defs.h: Include gdb_locale.h.
1147 * defs.h: Do not include gdb_locale.h.
1149 2014-08-07 Gary Benson <gbenson@redhat.com>
1151 * common/common-defs.h: Include gdb/signals.h.
1152 * defs.h: Do not include gdb/signals.h.
1154 2014-08-07 Gary Benson <gbenson@redhat.com>
1156 * common/common-defs.h: Include pathmax.h.
1157 * defs.h: Do not include pathmax.h.
1159 2014-08-07 Gary Benson <gbenson@redhat.com>
1161 * common/common-defs.h: Include libiberty.h.
1162 * defs.h: Do not include libiberty.h.
1163 * common/queue.h: Likewise.
1164 * cp-name-parser.y: Likewise.
1165 * mi/mi-cmd-catch.c: Likewise.
1166 * python/python.c: Likewise.
1168 2014-08-07 Gary Benson <gbenson@redhat.com>
1170 * common/common-defs.h: Include ansidecl.h.
1171 * defs.h: Do not include ansidecl.h.
1172 * common/buffer.h: Likewise.
1173 * common/common-utils.h: Likewise.
1175 2014-08-07 Gary Benson <gbenson@redhat.com>
1177 * common/common-defs.h: Include stddef.h.
1178 * defs.h: Do not include stddef.h.
1179 * common/common-utils.h: Likewise.
1180 * amd64fbsd-nat.c: Likewise.
1181 * bcache.c: Likewise.
1182 * charset.c: Likewise.
1183 * common/buffer.h: Likewise.
1184 * common/vec.h: Likewise.
1185 * i386bsd-nat.c: Likewise.
1186 * nat/linux-btrace.h: Likewise.
1187 * ppcfbsd-nat.c: Likewise.
1188 * ppcnbsd-tdep.h: Likewise.
1189 * ppcobsd-nat.c: Likewise.
1190 * ppcobsd-tdep.h: Likewise.
1191 * python/py-gdb-readline.c: Likewise.
1193 2014-08-07 Gary Benson <gbenson@redhat.com>
1195 * common/common-defs.h: Include stdarg.h.
1196 * defs.h: Do not include stdarg.h.
1197 * ada-lang.c: Likewise.
1198 * common/common-utils.h: Likewise.
1199 * guile/scm-string.c: Likewise.
1200 * guile/scm-utils.c: Likewise.
1201 * m32c-tdep.c: Likewise.
1203 2014-08-07 Gary Benson <gbenson@redhat.com>
1205 * common/common-defs.h: Include stdlib.h.
1206 * defs.h: Do not include stdlib.h.
1207 * addrmap.c: Likewise.
1208 * bcache.c: Likewise.
1209 * common/buffer.c: Likewise.
1210 * common/common-utils.c: Likewise.
1211 * cp-name-parser.y: Likewise.
1212 * go32-nat.c: Likewise.
1213 * mn10300-linux-tdep.c: Likewise.
1214 * nat/linux-osdata.c: Likewise.
1215 * tui/tui.c: Likewise.
1216 * windows-nat.c: Likewise.
1218 2014-08-07 Gary Benson <gbenson@redhat.com>
1220 * common/common-defs.h: Include stdio.h.
1221 * defs.h: Do not include stdio.h.
1222 * ada-lang.c: Likewise.
1223 * common/buffer.c: Likewise.
1224 * common/common-utils.c: Likewise.
1225 * cp-name-parser.y: Likewise.
1226 * gnu-nat.c: Likewise.
1227 * go32-nat.c: Likewise.
1228 * i386gnu-nat.c: Likewise.
1229 * proc-api.c: Likewise.
1230 * proc-events.c: Likewise.
1231 * proc-flags.c: Likewise.
1232 * proc-why.c: Likewise.
1233 * python/python-internal.h: Likewise.
1234 * target-memory.c: Likewise.
1235 * tui/tui-io.c: Likewise.
1236 * tui/tui.c: Likewise.
1238 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1240 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1241 (scan_dyntag_auxv): Same.
1243 2014-08-06 Yao Qi <yao@codesourcery.com>
1245 * amd64-linux-nat.c: Remove duplicated include
1247 * i386-linux-nat.c: Likewise.
1249 2014-08-06 Yao Qi <yao@codesourcery.com>
1251 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1252 operand" with "Special opcode" in comments.
1254 2014-08-05 Gary Benson <gbenson@redhat.com>
1256 * interps.c (initialize_interps): Remove prototype.
1257 (interpreter_initialized): Remove static global.
1258 (interp_add): Do not call initialize_interps.
1259 (initialize_interps): Remove function.
1261 2014-08-05 Gary Benson <gbenson@redhat.com>
1263 * utils.c (vwarning): Remove spurious va_end.
1265 2014-08-05 Alan Modra <amodra@gmail.com>
1267 * charset.c (convert_between_encodings): Cast result of obstack_base.
1268 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1269 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1270 (read_unwind_info): Use size_t for some locals.
1271 * jit.c (finalize_symtab): Likewise.
1272 * utils.c (hashtab_obstack_allocate): Likewise.
1273 * symmisc.c (print_objfile_statistics): Update format strings.
1275 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1277 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1278 (Changes in GDB 7.8): ... here.
1280 2014-08-04 Tom Tromey <tromey@redhat.com>
1282 * target.c (set_targetdebug): New function.
1283 (initialize_targets): Pass set_targetdebug when creating "set
1286 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1288 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1289 if detecting a variable-sized field that is not the last field.
1290 Fix struct type length computation.
1292 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1294 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1297 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1299 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1300 Remove "+ 8" offset in computation of CHAIN_VMA.
1302 2014-07-31 Doug Evans <dje@google.com>
1304 * inflow.c (child_terminal_inferior): Add comment.
1305 (child_terminal_ours_for_output): Add comment.
1306 (child_terminal_ours): Add comment.
1307 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1308 (linux_nat_terminal_ours): Add comment.
1310 2014-07-31 Gary Benson <gbenson@redhat.com>
1312 * common/btrace-common.h: Do not include defs.h or server.h.
1313 * nat/mips-linux-watch.h: Likewise.
1314 * gdb-dlfcn.h: Do not include defs.h.
1315 * tracefile.h: Likewise.
1317 2014-07-30 Roland McGrath <mcgrathr@google.com>
1319 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1321 2014-07-30 Tom Tromey <tromey@redhat.com>
1323 * bsd-kvm.c (bsd_kvm_open): Constify.
1324 * corelow.c (core_open): Constify.
1325 * ctf.c (ctf_open): Constify.
1326 * dbug-rom.c (dbug_open): Constify.
1327 * exec.c (exec_open): Constify.
1328 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1329 * microblaze-rom.c (picobug_open): Constify.
1330 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1332 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1333 * record-btrace.c (record_btrace_open): Constify.
1334 * record-full.c (record_full_core_open_1, record_full_open_1)
1335 (record_full_open): Constify.
1336 * remote-m32r-sdi.c (m32r_open): Constify.
1337 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1338 (rockhopper_open, lsi_open): Constify.
1339 * remote-sim.c (gdbsim_open): Constify.
1340 * remote.c (remote_open, extended_remote_open, remote_open_1):
1342 * target.h (struct target_ops) <to_open>: Make "arg" const.
1343 * tracefile-tfile.c (tfile_open): Constify.
1345 2014-07-30 Tom Tromey <tromey@redhat.com>
1347 * breakpoint.c (map_breakpoint_numbers): Update.
1348 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1349 (get_number_const): New function.
1350 (get_number): Rewrite using get_number_const.
1351 (init_number_or_range): Make "string" const.
1352 (number_is_in_list): Make "list" const.
1353 * cli/cli-utils.h (get_number_const): Declare.
1354 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1355 (init_number_or_range, number_is_in_list): Update.
1356 * printcmd.c (map_display_numbers): Update.
1357 * value.c (value_from_history_ref): Constify.
1358 * value.h (value_from_history_ref): Update.
1360 2014-07-30 Tom Tromey <tromey@redhat.com>
1362 * corefile.c (hook_type, call_extra_exec_file_hooks)
1363 (specify_exec_file_hook): Constify.
1364 * exec.c (exec_file_attach): Make "filename" const.
1365 * gdbcore.h (deprecated_exec_file_display_hook)
1366 (specify_exec_file_hook, exec_file_attach): Constify.
1367 * main.c (captured_main): Use catch_command_errors_const.
1369 2014-07-30 Tom Tromey <tromey@redhat.com>
1371 * target.c (open_target): New function.
1372 (add_target_with_completer, add_deprecated_target_alias): Use
1373 set_cmd_sfunc, set_cmd_context.
1374 (debug_to_open): Remove.
1375 (setup_target_debug): Update.
1377 2014-07-30 Yao Qi <yao@codesourcery.com>
1379 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1381 * parse.c (exp_iterate): Update comments.
1383 2014-07-30 Gary Benson <gbenson@redhat.com>
1385 * common/common-defs.h: New file.
1386 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1387 * defs.h: Include common-defs.h.
1388 Do not include config.h or build-gnulib/config.h.
1390 2014-07-30 Gary Benson <gbenson@redhat.com>
1392 * common/common-utils.h: Do not include config.h.
1393 * nat/linux-btrace.h: Likewise.
1395 2014-07-30 Gary Benson <gbenson@redhat.com>
1397 * btrace.c: Include defs.h.
1398 * common/ptid.c: Include defs.h or server.h as appropriate.
1399 * nat/mips-linux-watch.c: Likewise.
1401 2014-07-29 Tom Tromey <tromey@redhat.com>
1403 * target.c (target_is_pushed): Simplify.
1405 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1409 2014-07-29 Yao Qi <yao@codesourcery.com>
1412 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1414 2014-07-28 Doug Evans <xdje42@gmail.com>
1417 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1418 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1421 2014-07-28 Will Newton <will.newton@linaro.org>
1423 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1424 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1425 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1426 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1427 (THUMB2_EABI_SYSCALL): Likewise.
1428 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1430 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1431 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1433 2014-07-27 Doug Evans <xdje42@gmail.com>
1435 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1437 2014-07-27 Doug Evans <xdje42@gmail.com>
1439 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1441 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1442 Doug Evans <xdje42@gmail.com>
1445 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1446 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1447 * configure.ac: Try to use guild to compile an scm file, if it fails
1448 then disable guile support.
1449 * configure: Regenerate.
1450 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1452 (GUILE_COMPILED_FILES): New variable.
1453 (GUILE_FILES) Update.
1454 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1455 (stamp-guile): Compile scm files.
1456 * guile/guile.c (boot_guile_support): New function.
1457 (standard_throw_args_p): New function.
1458 (print_standard_throw_error, print_throw_error): New functions.
1459 (handle_boot_error): New function.
1460 (initialize_scheme_side): Rewrite to call boot_guile_support.
1461 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1462 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1464 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1465 Doug Evans <xdje42@gmail.com>
1468 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1469 * guile/lib/gdb/support.scm: New file.
1470 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1471 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1473 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1475 (%assert-type): Ditto, and renamed to assert-type.
1476 (%exception-print-style): Delete.
1478 2014-07-26 Doug Evans <xdje42@gmail.com>
1481 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1482 * configure: Regenerate.
1483 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1485 (PYTHON_FILES): New variable.
1486 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1487 (GUILE_FILES): New variable.
1488 (stamp-python, install-python, uninstall-python): Handle empty
1490 (stamp-guile, install-guile, uninstall-guile): Ditto.
1492 2014-07-26 Doug Evans <xdje42@gmail.com>
1495 * guile/lib/gdb.scm (pretty-printers): Export.
1496 (set-pretty-printers!): Export.
1497 * guile/lib/gdb/printing.scm (gdb module): Update.
1498 (prepend-pretty-printer!, append-pretty-printer!): Update.
1499 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1500 (pretty_printer_list_var): Delete.
1501 (pretty_printer_list): New static global.
1502 (gdbscm_pretty_printers): New function.
1503 (gdbscm_set_pretty_printers_x): New function.
1504 (ppscm_find_pretty_printer_from_gdb): Update.
1505 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1506 (gdbscm_initialize_pretty_printers): Update.
1508 2014-07-26 Doug Evans <xdje42@gmail.com>
1511 * configure.ac: Add check for header gc/gc.h.
1512 Add check for function setenv.
1513 * configure: Regenerate.
1514 * config.in: Regenerate.
1515 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1517 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1519 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1520 variation in gdbarch matching.
1522 2014-07-25 Tom Tromey <tromey@redhat.com>
1524 * exec.c (using_exec_ops): Remove.
1525 (exec_close_1): Update. Remove extraneous block, reindent.
1526 (add_target_sections): Use target_is_pushed.
1528 2014-07-25 Pedro Alves <palves@redhat.com>
1530 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1531 * monitor.c (monitor_create_inferior): Likewise.
1532 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1533 * remote-sim.c (gdbsim_create_inferior): Likewise.
1534 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1535 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1536 * windows-nat.c (do_initial_windows_stuff): Likewise.
1538 2014-07-25 Pedro Alves <palves@redhat.com>
1540 * NEWS: Mention signal passing and "signal" command changes.
1541 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1543 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1545 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1546 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1547 (jump_command): Adjust clear_proceed_status call.
1548 (signal_command): Warn if other thread that are resumed have
1549 signals that will be delivered. Adjust clear_proceed_status call.
1550 (until_next_command, finish_command)
1551 (proceed_after_attach_callback, attach_command_post_wait)
1552 (attach_command): Adjust clear_proceed_status call.
1553 * infrun.c (proceed_after_vfork_done): Likewise.
1554 (proceed_after_attach_callback): Adjust comment.
1555 (clear_proceed_status_thread): Clear stop_signal if not in pass
1557 (clear_proceed_status_callback): Delete.
1558 (clear_proceed_status): New 'step' parameter. Only clear the
1559 proceed status of threads the command being prepared is about to
1561 (proceed): If passed in an explicit signal, override stop_signal
1562 with it. Don't pass the last stop signal to the thread we're
1564 (init_wait_for_inferior): Adjust clear_proceed_status call.
1565 (switch_back_to_stepped_thread): Clear the signal if it should not
1567 * infrun.h (clear_proceed_status): New 'step' parameter.
1568 (user_visible_resume_ptid): Add comment.
1569 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1570 signal is in pass state.
1571 * remote.c (append_pending_thread_resumptions): Likewise.
1572 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1574 2014-07-25 Tom Tromey <tromey@redhat.com>
1576 * target.h (target_stopped_data_address)
1577 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1580 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1582 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1584 (avr_pointer_to_address): Likewise.
1586 2014-07-24 Tom Tromey <tromey@redhat.com>
1588 * monitor.c (compile_pattern): Update.
1589 * target.h (struct target_ops) <to_shortname, to_longname,
1592 2014-07-24 Tom Tromey <tromey@redhat.com>
1594 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1595 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1596 (add_info_alias, add_com): Make "doc" const.
1597 (print_doc_line): Make "str" const.
1598 (delete_cmd): Update.
1599 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1600 (print_doc_line): Update.
1601 * cli/cli-script.c (document_command): Update.
1602 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1603 (add_com, add_info, add_info_alias): Update.
1604 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1605 * python/py-cmd.c (cmdpy_destroyer): Update.
1607 2014-07-24 Tom Tromey <tromey@redhat.com>
1609 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1610 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1611 (help_cmd_list): Constify.
1612 (lookup_cmd): Update.
1613 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1615 (help_cmd_list, apropos_cmd): Update.
1616 * cli/cli-script.c (show_user): Update.
1617 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1618 * cli/cli-setshow.h (cmd_show_list): Update.
1619 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1620 (cmd_show_list): Update.
1621 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1622 * python/py-cmd.c (cmdpy_destroyer): Update.
1624 2014-07-24 Tom Tromey <tromey@redhat.com>
1626 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1627 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1629 * command.h (deprecate_cmd): Update.
1630 * maint.c (maintenance_do_deprecate): Add casts.
1632 2014-07-24 Tom Tromey <tromey@redhat.com>
1634 * cli/cli-decode.c (help_cmd): Make parameter "const".
1635 * cli/cli-decode.h (help_cmd): Update.
1637 2014-07-24 Tom Tromey <tromey@redhat.com>
1639 * stack.c (up_silently_base, down_silently_base): Make argument
1642 2014-07-24 Tom Tromey <tromey@redhat.com>
1644 * solib.c (solib_add): Make "pattern" const.
1645 * solib.h (solib_add): Update.
1647 2014-07-24 Tom Tromey <tromey@redhat.com>
1649 * remote.c (remote_serial_open, print_packet, putpkt)
1650 (putpkt_binary): Constify.
1651 * remote.h (putpkt): Update.
1653 2014-07-24 Tom Tromey <tromey@redhat.com>
1655 * monitor.c (monitor_open): Make "args" const.
1656 * monitor.h (monitor_open): Update.
1658 2014-07-24 Tom Tromey <tromey@redhat.com>
1660 * maint.c (match_bfd_flags): Make "string" const.
1661 (print_bfd_section_info): Remove casts.
1662 (print_objfile_section_info): Make "string" const.
1664 2014-07-24 Tom Tromey <tromey@redhat.com>
1666 * inf-child.c (inf_child_open_target): Make "arg" const.
1667 * inf-child.h (inf_child_open_target): Update.
1669 2014-07-24 Tom Tromey <tromey@redhat.com>
1671 * environ.c (unset_in_environ): Make "var" const.
1672 * environ.h (unset_in_environ): Update.
1674 2014-07-24 Tom Tromey <tromey@redhat.com>
1676 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1678 (scan_filename_with_cleanup): Likewise.
1679 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1680 Make arguments const.
1681 (restore_command): Update.
1683 2014-07-24 Pedro Alves <palves@redhat.com>
1685 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1687 2014-07-24 Tom Tromey <tromey@redhat.com>
1688 Gary Benson <gbenson@redhat.com>
1690 * nat/linux-ptrace.c (additional_flags): New global.
1691 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1692 additional_flags; don't check GDBSERVER.
1693 (linux_ptrace_set_additional_flags): New function.
1694 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1696 * linux-nat.c (_initialize_linux_nat): Call
1697 linux_ptrace_set_additional_flags.
1699 2014-07-24 Tom Tromey <tromey@redhat.com>
1701 * make-target-delegates (munge_type, write_debugmethod): New
1703 (debug_names): New global.
1704 ($TARGET_DEBUG_PRINTER): New global.
1705 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1707 Write debug methods. Generate init_debug_target.
1708 * target-debug.h: New file.
1709 * target-delegates.c: Rebuild.
1710 * target.c: Include target-debug.h.
1711 (debug_target): Hoist definition.
1712 (target_kill, target_get_section_table, target_memory_map)
1713 (target_flash_erase, target_flash_done, target_detach)
1714 (target_disconnect, target_wait, target_resume)
1715 (target_pass_signals, target_program_signals, target_follow_fork)
1716 (target_mourn_inferior, target_search_memory)
1717 (target_thread_address_space, target_close)
1718 (target_find_new_threads, target_core_of_thread)
1719 (target_verify_memory, target_insert_mask_watchpoint)
1720 (target_remove_mask_watchpoint): Remove targetdebug code.
1721 (debug_to_post_attach, debug_to_prepare_to_store)
1722 (debug_to_files_info, debug_to_insert_breakpoint)
1723 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1724 (debug_to_region_ok_for_hw_watchpoint)
1725 (debug_to_can_accel_watchpoint_condition)
1726 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1727 (debug_to_watchpoint_addr_within_range)
1728 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1729 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1730 (debug_to_terminal_init, debug_to_terminal_inferior)
1731 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1732 (debug_to_terminal_save_ours, debug_to_terminal_info)
1733 (debug_to_load, debug_to_post_startup_inferior)
1734 (debug_to_insert_fork_catchpoint)
1735 (debug_to_remove_fork_catchpoint)
1736 (debug_to_insert_vfork_catchpoint)
1737 (debug_to_remove_vfork_catchpoint)
1738 (debug_to_insert_exec_catchpoint)
1739 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1740 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1741 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1742 (setup_target_debug): Call init_debug_target.
1743 * target.h (TARGET_DEBUG_PRINTER): New macro.
1744 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1745 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1747 2014-07-24 Gary Benson <gbenson@redhat.com>
1749 * exceptions.h (throw_vfatal): Renamed to...
1750 (throw_vquit): New declaration.
1751 (throw_quit): Likewise.
1752 * exceptions.c (throw_vfatal): Renamed to...
1753 (throw_vquit): New function.
1754 (throw_quit): Likewise.
1755 (throw_error): Call throw_verror rather than throw_it.
1756 * utils.h (vfatal): Removed.
1758 * utils.c (vfatal): Removed.
1760 (internal_verror): Replaced call to fatal with call to throw_quit.
1761 (quit): Replaced calls to fatal with calls to throw_quit.
1763 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1765 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1768 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1770 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1771 less than zero in conditional expression.
1773 2014-07-23 Tom Tromey <tromey@redhat.com>
1775 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1776 ($INTRO_PART): Don't match whitespace.
1777 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1779 ($METHOD): Add $METHOD_TRAILER.
1781 (scan_target_h): New sub.
1782 Change main loop not to collect state.
1783 * target-delegates.c: Rebuild.
1785 2014-07-23 Gary Benson <gbenson@redhat.com>
1787 * cp-support.c (gdb_demangle): Fix build on systems without
1790 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1793 for reference entry value target data value.
1795 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1797 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1798 value_available_contents_eq.
1800 2014-07-22 Pedro Alves <palves@redhat.com>
1802 * value.c (allocate_optimized_out_value): Don't mark value as
1805 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1807 * MAINTAINERS (Write After Approval): Update my email address.
1809 2014-07-20 Doug Evans <dje@google.com>
1812 * remote.c (putpkt_binary): Add text to error message.
1814 2014-07-20 Yao Qi <yao@codesourcery.com>
1816 * eval.c: Remove "Chill" from comments.
1817 * gdbtypes.h: Likewise.
1818 * symtab.h: Likewise.
1820 2014-07-20 Yao Qi <yao@codesourcery.com>
1822 * std-operator.def: Update comments to TERNOP_SLICE.
1824 2014-07-20 Yao Qi <yao@codesourcery.com>
1826 * std-operator.def: Remove BINOP_RANGE.
1827 * breakpoint.c (watchpoint_exp_is_const): Update.
1828 * expprint.c (dump_subexp_body_standard): Likewise.
1829 * eval.c (init_array_element): Remove dead code.
1830 (evaluate_subexp_standard): Likewise.
1832 2014-07-20 Yao Qi <yao@codesourcery.com>
1834 * std-operator.def: Remove BINOP_IN.
1835 * breakpoint.c (watchpoint_exp_is_const): Update.
1836 * eval.c (evaluate_subexp_standard): Likewise.
1837 * expprint.c (dump_subexp_body_standard): Likewise.
1839 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1841 * microblaze-tdep.c (microblaze_register_names): Add
1842 the rshr and rslr register names.
1843 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1844 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1845 Use of tdesc_numbered_register. Use of
1846 microblaze_register_g_packet_guesses. Use of
1847 tdesc_use_registers. Use of set_gdbarch_register_type.
1848 (microblaze_register_g_packet_guesses): New.
1849 * microblaze-tdep.h (microblaze_reg_num): Add
1850 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1851 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1852 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1853 * features/microblaze-core.xml: New file.
1854 * features/microblaze-stack-protect.xml: New file.
1855 * features/microblaze-with-stack-protect.c: New file.
1856 * features/microblaze-with-stack-protect.xml: New file.
1857 * features/microblaze.xml: New file.
1858 * features/microblaze.c: New file.
1859 * features/Makefile (microblaze-with-stack-protect): Add
1860 microblaze-with-stack-protect microblaze and microblaze-expedite.
1861 * regformats/microblaze-with-stack-protect.dat: New file.
1862 * regformats/microblaze.dat: New file.
1863 * doc/gdb.texinfo (MicroBlaze Features): Added.
1865 2014-07-18 Tom Tromey <tromey@redhat.com>
1867 * exec.c (exec_ops): Now static.
1868 * exec.h (exec_ops): Don't declare.
1870 2014-07-18 Tom Tromey <tromey@redhat.com>
1872 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1873 to find_target_beneath.
1874 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1875 find_target_beneath.
1876 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1878 2014-07-18 Tom Tromey <tromey@redhat.com>
1881 * utils.c (quit): Use target_supports_terminal_ours.
1882 * target.h (target_supports_terminal_ours): Declare.
1883 * target.c (target_supports_delete_record): Don't check
1884 to_delete_record against NULL.
1885 (target_supports_terminal_ours): New function.
1887 2014-07-18 Tom Tromey <tromey@redhat.com>
1890 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1891 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1892 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1893 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1894 * windows-nat.c (windows_xfer_partial): Always delegate.
1895 * record-btrace.c (record_btrace_xfer_partial): Simplify
1897 (record_btrace_fetch_registers, record_btrace_store_registers)
1898 (record_btrace_prepare_to_store, record_btrace_resume)
1899 (record_btrace_wait, record_btrace_find_new_threads)
1900 (record_btrace_thread_alive): Likewise.
1901 * procfs.c (procfs_xfer_partial): Always delegate.
1902 * corelow.c (core_xfer_partial): Always delegate.
1903 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1905 2014-07-18 Tom Tromey <tromey@redhat.com>
1907 * exec.c (exec_make_note_section): Move earlier.
1909 2014-07-17 Doug Evans <dje@google.com>
1912 * maint.c (count_symtabs_and_blocks): Handle NULL
1913 current_program_space.
1914 (report_command_stats): Check global enabled flag in addition to
1915 recorded enabled flag.
1916 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1918 2014-07-16 Pedro Alves <palves@redhat.com>
1920 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1922 2014-07-16 Tom Tromey <tromey@redhat.com>
1924 * target.h (struct target_ops) <to_delete_record>: Reformat
1927 2014-07-16 Tom Tromey <tromey@redhat.com>
1929 * target-delegates.c: Rebuild.
1931 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1933 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1934 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1935 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1936 (avr_pointer_to_address): Likewise.
1937 (avr_address_class_type_flags): New function.
1938 (avr_address_class_type_flags_to_name): Likewise.
1939 (avr_address_class_name_to_type_flags): Likewise.
1940 (avr_gdbarch_init): Set address_class_type_flags,
1941 address_class_type_flags_to_name and
1942 address_class_name_to_type_flags.
1944 2014-07-15 Pedro Alves <palves@redhat.com>
1946 * linux-nat.c (kill_callback): Save errno and work with saved
1949 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1951 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1953 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1955 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1956 breakpoint support correctly.
1958 2014-07-14 Pedro Alves <palves@redhat.com>
1960 * utils.c (prompt_for_continue): Call target_terminal_ours.
1962 2014-07-14 Pedro Alves <palves@redhat.com>
1964 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1965 catch_errors. Don't re-enable stdin or notify observers where,
1967 (fetch_inferior_event_wrapper): Delete.
1969 2014-07-14 Pedro Alves <palves@redhat.com>
1972 * top.c: Include "inf-loop.h".
1973 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1975 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1977 (gdb_readline_wrapper): Store whether the target is async, and
1980 2014-07-14 Pedro Alves <palves@redhat.com>
1983 * top.c (gdb_readline_wrapper_line): Tweak comment.
1984 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1985 the input handler callback.
1987 2014-07-14 Pedro Alves <palves@redhat.com>
1990 * main.c: Include event-top.h.
1991 (handle_command_errors): New function.
1992 (catch_command_errors, catch_command_errors_const): Use it.
1994 2014-07-14 Pedro Alves <palves@redhat.com>
1996 * exceptions.c (catch_command_errors, catch_command_errors_const):
1998 * exceptions.h (catch_command_errors_ftype)
1999 (catch_command_errors_const_ftype): Moved to main.c.
2000 (catch_command_errors, catch_command_errors_const): Delete
2002 * main.c (catch_command_errors_ftype)
2003 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2004 (catch_command_errors, catch_command_errors_const)): Moved here
2005 from exceptions.c and make static.
2007 2014-07-14 Pedro Alves <palves@redhat.com>
2009 * exceptions.c (print_any_exception): Delete.
2010 (catch_exceptions_with_msg): Use exception_print instead of
2011 print_any_exception.
2012 (catch_errors): Use exception_fprintf instead of
2013 print_any_exception.
2014 (catch_command_errors, catch_command_errors_const): Use
2015 exception_print instead of print_any_exception.
2017 2014-07-14 Pedro Alves <palves@redhat.com>
2019 * infcall.c (run_inferior_call): Set 'sync_execution' while
2020 running the inferior call.
2022 2014-07-14 Pedro Alves <palves@redhat.com>
2024 * value.c (value_contents_equal): Delete function.
2025 * value.h (value_contents_equal): Delete declaration.
2027 2014-07-14 Tom Tromey <tromey@redhat.com>
2030 * gdbtypes.c (is_dynamic_type_internal): New function, from
2032 (is_dynamic_type): Rewrite.
2033 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2034 (resolve_dynamic_struct): Likewise.
2035 (resolve_dynamic_type_internal): New function, from
2036 resolve_dynamic_type.
2037 (resolve_dynamic_type): Rewrite.
2039 2014-07-14 Tom Tromey <tromey@redhat.com>
2041 * target.c (target_require_runnable): Also check record_stratum.
2044 2014-07-11 Yao Qi <yao@codesourcery.com>
2046 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2047 thumb_instruction_restores_sp return true.
2049 2014-07-11 Yao Qi <yao@codesourcery.com>
2051 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2052 (thumb_in_function_epilogue_p): Call
2053 thumb_instruction_restores_sp.
2055 2014-07-11 Yao Qi <yao@codesourcery.com>
2057 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2059 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2061 2014-07-11 Gary Benson <gbenson@redhat.com>
2063 * amd64-linux-nat.c (gdbcore.h): Remove include.
2064 (regset.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/debugreg.h): Likewise.
2071 (sys/syscall.h): Likewise.
2072 (sys/procfs.h): Likewise.
2073 (sys/user.h): Likewise.
2074 (asm/ptrace.h): Likewise.
2075 (i386-nat.h): Likewise.
2076 * i386-linux-nat.c (i386-nat.h): Likewise.
2077 (regset.h): Likewise.
2078 (target.h): Likewise.
2079 (linux-nat.h): Likewise.
2080 (nat/linux-btrace.h): Likewise.
2081 (btrace.h): Likewise.
2082 (gdb_assert.h): Likewise.
2083 (string.h): Likewise.
2084 (sys/uio.h): Likewise.
2085 (sys/user.h): Likewise.
2086 (sys/procfs.h): Likewise.
2087 (sys/reg.h): Likewise.
2088 (sys/debugreg.h): Likewise.
2089 (ORIG_EAX): Remove definition.
2091 2014-07-11 Gary Benson <gbenson@redhat.com>
2093 * i386-linux-nat.h: New file.
2094 * x86-linux-nat.h: Likewise.
2095 * x86-linux-nat.c: Likewise.
2096 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2097 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2098 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2099 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2100 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2101 (PTRACE_SETREGSET): Likewise.
2102 (arch_lwp_info): Now in x86-linux-nat.c.
2103 (have_ptrace_getregset): Now in x86-linux-nat.h.
2104 (x86_linux_dr_get): Now in x86-linux-nat.c.
2105 (x86_linux_dr_set): Likewise.
2106 (x86_linux_dr_get_addr): Likewise.
2107 (x86_linux_dr_get_control): Likewise.
2108 (x86_linux_dr_get_status): Likewise.
2109 (update_debug_registers_callback): Likewise.
2110 (x86_linux_dr_set_control): Likewise.
2111 (x86_linux_dr_set_addr): Likewise.
2112 (x86_linux_prepare_to_resume): Likewise.
2113 (x86_linux_new_thread): Likewise.
2114 (x86_linux_new_fork): Likewise.
2115 (x86_linux_get_thread_area): Likewise.
2116 (super_post_startup_inferior): Likewise.
2117 (x86_linux_child_post_startup_inferior): Likewise.
2118 (AMD64_LINUX_USER64_CS): Likewise.
2119 (AMD64_LINUX_X32_DS): Likewise.
2120 (x86_linux_read_description): Likewise.
2121 (x86_linux_enable_btrace): Likewise.
2122 (x86_linux_disable_btrace): Likewise.
2123 (x86_linux_teardown_btrace): Likewise.
2124 (x86_linux_read_btrace): Likewise.
2125 (x86_linux_create_target): Likewise.
2126 (x86_linux_add_target): Likewise.
2127 * i386-linux-nat.c (x86-linux-nat.h): New include.
2128 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2129 (PTRACE_SETREGSET): Likewise.
2130 (arch_lwp_info): Now in x86-linux-nat.c.
2131 (have_ptrace_getregset): Now in x86-linux-nat.h.
2132 (x86_linux_dr_get): Now in x86-linux-nat.c.
2133 (x86_linux_dr_set): Likewise.
2134 (x86_linux_dr_get_addr): Likewise.
2135 (x86_linux_dr_get_control): Likewise.
2136 (x86_linux_dr_get_status): Likewise.
2137 (update_debug_registers_callback): Likewise.
2138 (x86_linux_dr_set_control): Likewise.
2139 (x86_linux_dr_set_addr): Likewise.
2140 (x86_linux_prepare_to_resume): Likewise.
2141 (x86_linux_new_thread): Likewise.
2142 (x86_linux_new_fork): Likewise.
2143 (x86_linux_get_thread_area): Likewise.
2144 (super_post_startup_inferior): Likewise.
2145 (x86_linux_child_post_startup_inferior): Likewise.
2146 (AMD64_LINUX_USER64_CS): Likewise.
2147 (AMD64_LINUX_X32_DS): Likewise.
2148 (x86_linux_read_description): Likewise.
2149 (x86_linux_enable_btrace): Likewise.
2150 (x86_linux_disable_btrace): Likewise.
2151 (x86_linux_teardown_btrace): Likewise.
2152 (x86_linux_read_btrace): Likewise.
2153 (x86_linux_create_target): Likewise.
2154 (x86_linux_add_target): Likewise.
2156 2014-07-11 Gary Benson <gbenson@redhat.com>
2158 * amd64-linux-nat.c: Comment and whitespace changes.
2159 * i386-linux-nat.c: Comment and whitespace changes.
2161 2014-07-11 Gary Benson <gbenson@redhat.com>
2163 * amd64-linux-nat.c (x86_linux_create_target): New function.
2164 (x86_linux_add_target): Likewise.
2165 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2166 * i386-linux-nat.c (x86_linux_create_target): New function.
2167 (x86_linux_add_target): Likewise.
2168 (_initialize_i386_linux_nat): Delegate to the above new functions.
2170 2014-07-11 Gary Benson <gbenson@redhat.com>
2172 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2173 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2174 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2175 (ps_get_thread_area): Delegate to the above.
2177 2014-07-11 Gary Benson <gbenson@redhat.com>
2179 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2180 x86_linux_read_description. All uses updated. amd64-specific
2181 code conditionalized. Conditionalized i386-specific code added.
2182 Redundant cast removed.
2183 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2184 x86_linux_read_description. All uses updated. i386-specific
2185 code conditionalized. Conditionalized amd64-specific code added.
2186 One sizeof replaced with the actual type it is describing.
2188 2014-07-11 Gary Benson <gbenson@redhat.com>
2190 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2191 x86_linux_dr_get. All uses updated.
2192 (amd64_linux_dr_set): Renamed to
2193 x86_linux_dr_set. All uses updated.
2194 (amd64_linux_dr_get_addr): Renamed to
2195 x86_linux_dr_get_addr. All uses updated.
2196 (amd64_linux_dr_get_control): Renamed to
2197 x86_linux_dr_get_control. All uses updated.
2198 (amd64_linux_dr_get_status): Renamed to
2199 x86_linux_dr_get_status. All uses updated.
2200 (amd64_linux_dr_set_control): Renamed to
2201 x86_linux_dr_set_control. All uses updated.
2202 (amd64_linux_dr_set_addr): Renamed to
2203 x86_linux_dr_set_addr. All uses updated.
2204 (amd64_linux_prepare_to_resume): Renamed to
2205 x86_linux_prepare_to_resume. All uses updated.
2206 (amd64_linux_new_thread): Renamed to
2207 x86_linux_new_thread. All uses updated.
2208 (amd64_linux_new_fork): Renamed to
2209 x86_linux_new_fork. All uses updated.
2210 (amd64_linux_child_post_startup_inferior): Renamed to
2211 x86_linux_child_post_startup_inferior. All uses updated.
2212 (amd64_linux_enable_btrace): Renamed to
2213 x86_linux_enable_btrace. All uses updated.
2214 (amd64_linux_disable_btrace): Renamed to
2215 x86_linux_disable_btrace. All uses updated.
2216 (amd64_linux_teardown_btrace): Renamed to
2217 x86_linux_teardown_btrace. All uses updated.
2218 (amd64_linux_read_btrace): Renamed to
2219 x86_linux_read_btrace. All uses updated.
2220 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2221 x86_linux_dr_get. All uses updated.
2222 (i386_linux_dr_set): Renamed to
2223 x86_linux_dr_set. All uses updated.
2224 (i386_linux_dr_get_addr): Renamed to
2225 x86_linux_dr_get_addr. All uses updated.
2226 (i386_linux_dr_get_control): Renamed to
2227 x86_linux_dr_get_control. All uses updated.
2228 (i386_linux_dr_get_status): Renamed to
2229 x86_linux_dr_get_status. All uses updated.
2230 (i386_linux_dr_set_control): Renamed to
2231 x86_linux_dr_set_control. All uses updated.
2232 (i386_linux_dr_set_addr): Renamed to
2233 x86_linux_dr_set_addr. All uses updated.
2234 (i386_linux_prepare_to_resume): Renamed to
2235 x86_linux_prepare_to_resume. All uses updated.
2236 (i386_linux_new_thread): Renamed to
2237 x86_linux_new_thread. All uses updated.
2238 (i386_linux_new_fork): Renamed to
2239 x86_linux_new_fork. All uses updated.
2240 (i386_linux_child_post_startup_inferior): Renamed to
2241 x86_linux_child_post_startup_inferior. All uses updated.
2242 (i386_linux_enable_btrace): Renamed to
2243 x86_linux_enable_btrace. All uses updated.
2244 (i386_linux_disable_btrace): Renamed to
2245 x86_linux_disable_btrace. All uses updated.
2246 (i386_linux_teardown_btrace): Renamed to
2247 x86_linux_teardown_btrace. All uses updated.
2248 (i386_linux_read_btrace): Renamed to
2249 x86_linux_read_btrace. All uses updated.
2251 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2253 * remote.c (extended_remote_post_attach): New function.
2254 (init_extended_remote_ops): Install it as to_post_attach method.
2256 2014-07-09 Pedro Alves <palves@redhat.com>
2258 * infcmd.c (attach_command_post_wait): Don't call
2259 target_terminal_inferior here.
2260 (attach_command): Call it here instead.
2262 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2264 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2266 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2267 from varobj.c, with additional checks.
2268 (c_varobj_ops): Fill in is_path_expr_parent field.
2269 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2270 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2272 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2274 (varobj_default_is_path_expr_parent): New function.
2275 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2276 (varobj_default_is_path_expr_parent): Declare new function.
2278 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2280 * infcmd.c (finish_backward): Turn internal error into normal error.
2282 2014-07-07 Pedro Alves <palves@redhat.com>
2285 * remote.c (async_handle_remote_sigint)
2286 (async_handle_remote_sigint_twice): Call
2287 gdb_call_async_signal_handler instead of
2288 mark_async_signal_handler.
2290 2014-07-07 Tom Tromey <tromey@redhat.com>
2292 * target-delegates.c: Rebuild.
2293 * target.c (target_info_record): Remove.
2294 * record.c (info_record_command): Unconditionally call
2296 * target.h (struct target_ops) <to_info_record>: Use
2297 TARGET_DEFAULT_IGNORE.
2298 (target_info_record): Remove.
2300 2014-07-07 Tom Tromey <tromey@redhat.com>
2302 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2303 TARGET_DEFAULT_NORETURN.
2304 * target.c (generic_tls_error): New function.
2305 (target_translate_tls_address): Don't search target stack.
2306 * target-delegates.c: Rebuild.
2307 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2309 * linux-thread-db.c (thread_db_get_thread_local_address):
2310 Unconditionally call beneath target.
2312 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2314 * cli/cli-logging.c (pop_output_files): Assign targerr to
2317 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2319 * MAINTAINERS (Write After Approval): Update my email address.
2321 2014-07-02 Gary Benson <gbenson@redhat.com>
2323 * proc-service.c (ps_xfer_memory): Update comment.
2324 (ps_pstop): Remove unused function.
2325 (ps_pcontinue): Likewise.
2326 (ps_lstop): Likewise.
2327 (ps_lcontinue): Likewise.
2328 (ps_lgetxregsize): Likewise.
2329 (ps_lgetxregs): Likewise.
2330 (ps_lsetxregs): Likewise.
2331 (ps_plog): Likewise.
2332 (ps_ptread): Likewise.
2333 (ps_ptwrite): Likewise.
2335 2014-07-01 Mark Wielaard <mjw@redhat.com>
2337 * dwarf2read.c (add_array_cv_type): New function.
2338 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2339 (read_tag_volatile_type): Likewise.
2341 2014-07-01 Tom Tromey <tromey@redhat.com>
2343 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2344 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2345 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2346 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2347 * command.h (cmd_cfunc_ftype): Move earlier.
2348 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2349 (add_com, add_info): Use cmd_cfunc_ftype.
2351 2014-06-30 Tom Tromey <tromey@redhat.com>
2353 * symtab.c (operator_chars): Make parameters and return type
2355 (file_matches): Make "files" const.
2356 (struct search_symbols_data) <files>: Now const.
2357 (search_symbols): Make "regexp" and "files" parameters const.
2359 (symtab_symbol_info): Remove cast.
2360 (rbreak_command): Update.
2361 * symtab.h (search_symbols): Update.
2363 2014-06-27 Yao Qi <yao@codesourcery.com>
2365 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2366 Change parameter type to 'struct thread_info *'. Caller
2368 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2370 * dummy-frame.c (struct dummy_frame_id): New.
2371 (dummy_frame_id_eq): New function.
2372 (struct dummy_frame) <id>: Change its type to 'struct
2374 (dummy_frame_push): Add parameter ptid and save it in
2376 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2378 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2380 (lookup_dummy_frame): Change parameter type to 'struct
2381 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2382 instead of frame_id_eq.
2383 (dummy_frame_pop): Add parameter ptid. Callers updated.
2384 Update comments. Compose dummy_frame_id and pass it to
2386 (dummy_frame_discard): Add parameter ptid.
2387 (dummy_frame_sniffer): Compose dummy_frame_id and call
2388 dummy_frame_id_eq instead of frame_id_eq.
2389 (fprint_dummy_frames): Print ptid.
2390 * dummy-frame.h: Remove comments.
2391 (dummy_frame_push): Add ptid in declaration.
2392 (dummy_frame_pop, dummy_frame_discard): Likewise.
2394 2014-06-26 Tom Tromey <tromey@redhat.com>
2396 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2397 * command.h (error_no_arg): Update.
2399 2014-06-26 Tom Tromey <tromey@redhat.com>
2401 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2402 (do_show_command): Make "arg" const.
2403 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2405 2014-06-26 Tom Tromey <tromey@redhat.com>
2407 * record-full.c (record_full_get_bookmark): Make "args" const.
2408 (record_full_goto_bookmark): Make "raw_bookmark" const.
2409 * record.c (record_goto): New function.
2410 (cmd_record_goto): Use it. Now static.
2411 * record.h (record_goto): Declare.
2412 (cmd_record_goto): Remove declaration.
2413 * target-delegates.c: Rebuild.
2414 * target.h (struct target_ops) <to_get_bookmark,
2415 to_goto_bookmark>: Make parameter const.
2417 2014-06-26 Tom Tromey <tromey@redhat.com>
2419 * defs.h (generic_load): Update.
2420 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2421 * monitor.c (monitor_load): Make "args" const.
2422 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2423 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2425 (mips_load): Make "file" const.
2426 * remote-sim.c (gdbsim_load): Make "args" const.
2427 * remote.c (remote_load): Make "name" const.
2428 * symfile.c (generic_load): Make "args" const.
2429 * target-delegates.c: Rebuild.
2430 * target.c (target_load): Make "arg" const.
2431 (debug_to_load): Make "args" const.
2432 * target.h (struct target_ops) <to_load>: Make parameter const.
2433 (target_load): Update.
2435 2014-06-26 Tom Tromey <tromey@redhat.com>
2438 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2439 (dwarf2_physname, read_partial_die)
2440 (guess_partial_die_structure_name, fixup_partial_die)
2441 (guess_full_die_structure_name, anonymous_struct_prefix)
2442 (dwarf2_name): Use per-BFD obstack.
2444 2014-06-26 Yao Qi <yao@codesourcery.com>
2446 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2447 dummyframe and this_id into inner block below.
2449 2014-06-26 Yao Qi <yao@codesourcery.com>
2451 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2452 with "signal_pass[0]" in the initialization of signal_pass.
2454 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2456 * record-btrace.c (record_btrace_generating_corefile)
2457 (record_btrace_prepare_to_generate_core)
2458 (record_btrace_done_generating_core): New.
2459 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2460 (record_btrace_store_registers, record_btrace_prepare_to_store):
2461 Forward request when generating a core file.
2462 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2463 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2464 to_done_generating_core.
2466 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2468 * target.h (target_ops) <to_prepare_to_generate_core>
2469 <to_done_generating_core>: New.
2470 (target_prepare_to_generate_core, target_done_generating_core): New.
2471 * target.c (target_prepare_to_generate_core)
2472 (target_done_generating_core): New.
2473 * target-delegates.c: Regenerate.
2474 * gcore.c: (write_gcore_file): Rename to ...
2475 (write_gcore_file_1): ...this.
2476 (write_gcore_file): Call target_prepare_to_generate_core
2477 and target_done_generating_core.
2479 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2481 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2482 * gcore.c (write_gcore_file): Free memory returned from
2483 make_corefile_notes.
2484 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2485 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2487 2014-06-24 Yao Qi <yao@codesourcery.com>
2489 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2490 (arm_linux_init_abi): Set skip_trampoline_code with
2491 gdbarch_skip_trampoline_code instead of
2492 find_solib_trampoline_target.
2494 2014-06-24 Yao Qi <yao@codesourcery.com>
2496 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2497 arm_skip_bx_reg returns non-zero.
2499 2014-06-24 Yao Qi <yao@codesourcery.com>
2501 * arm-tdep.c (arm_skip_bx_reg): New function.
2502 (arm_skip_stub): Call arm_skip_bx_reg.
2504 2014-06-23 Don Breazeal <donb@codesourcery.com>
2506 * MAINTAINERS: Add myself as write-after-approval maintainer.
2508 2014-06-23 Pedro Alves <palves@redhat.com>
2510 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2511 DR_CONTROL before setting DR0..DR3.
2512 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2513 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2514 bits of DR_CONTROL related to the debug register slot being
2515 disabled. If all slots are vacant, clear local slowdown as well,
2516 and assert DR_CONTROL is 0.
2518 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2520 * python/lib/gdb/command/xmethods.py
2521 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2522 current progspace only if the string "progspace" matches LOCUS_RE.
2524 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2526 Fix --with-system-readline with readline-6.3 patch 5.
2527 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2528 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2531 2014-06-20 Tom Tromey <tromey@redhat.com>
2533 * dwarf2read.c (dw2_get_real_path): Use correct type in
2535 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2537 2014-06-20 Gary Benson <gbenson@redhat.com>
2539 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2540 * common/glibc_thread_db.h: Likewise.
2541 * common/i386-cpuid.h: Likewise.
2542 * common/i386-gcc-cpuid.h: Likewise.
2543 * common/linux-btrace.h: Likewise.
2544 * common/linux-osdata.h: Likewise.
2545 * common/linux-procfs.h: Likewise.
2546 * common/linux-ptrace.h: Likewise.
2547 * common/mips-linux-watch.h: Likewise.
2548 * common/linux-btrace.c: Moved to nat.
2549 * common/linux-osdata.c: Likewise.
2550 * common/linux-procfs.c: Likewise.
2551 * common/linux-ptrace.c: Likewise.
2552 * common/mips-linux-watch.c: Likewise.
2553 * nat/gdb_thread_db.h: Moved from common.
2554 * nat/glibc_thread_db.h: Likewise.
2555 * nat/i386-cpuid.h: Likewise.
2556 * nat/i386-gcc-cpuid.h: Likewise.
2557 * nat/linux-btrace.c: Likewise.
2558 * nat/linux-btrace.h: Likewise.
2559 * nat/linux-osdata.c: Likewise.
2560 * nat/linux-osdata.h: Likewise.
2561 * nat/linux-procfs.c: Likewise.
2562 * nat/linux-procfs.h: Likewise.
2563 * nat/linux-ptrace.c: Likewise.
2564 * nat/linux-ptrace.h: Likewise.
2565 * nat/mips-linux-watch.c: Likewise.
2566 * nat/mips-linux-watch.h: Likewise.
2567 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2568 (object file files): Reordered.
2569 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2570 of glibc_thread_db.h.
2572 2014-06-20 Gary Benson <gbenson@redhat.com>
2574 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2575 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2576 (i386_dr_low): Likewise.
2577 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2578 (i386_dr_low_set_addr): Likewise.
2579 (i386_dr_low_get_addr): Likewise.
2580 (i386_dr_low_can_set_control): Likewise.
2581 (i386_dr_low_set_control): Likewise.
2582 (i386_dr_low_get_control): Likewise.
2583 (i386_dr_low_get_status): Likewise.
2584 (i386_get_debug_register_length): Likewise.
2585 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2586 (i386_dr_low): Likewise.
2587 * nat/i386-dregs.c (i386-low.h): Remove include.
2588 (i386-nat.h): Likewise.
2589 (nat/i386-dregs.h): New include.
2590 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2591 (i386_dr_low_set_addr): Likewise.
2592 (i386_dr_low_get_addr): Likewise.
2593 (i386_dr_low_can_set_control): Likewise.
2594 (i386_dr_low_set_control): Likewise.
2595 (i386_dr_low_get_control): Likewise.
2596 (i386_dr_low_get_status): Likewise.
2597 (i386_get_debug_register_length): Likewise.
2598 (debug_hw_points): Likewise.
2600 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2602 * Makefile.in (SFILES): Add d-exp.y.
2603 (YYFILES): Add d-exp.c.
2604 (YYOBJ): Add d-exp.o.
2605 (local-maintainer-clean): Delete d-exp.c.
2606 * d-exp.y: New file.
2607 * d-lang.h (d_parse): New declaration.
2608 (d_error): New declaration.
2609 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2610 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2611 PREC_ORDER operators.
2612 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2614 2014-06-19 Yao Qi <yao@codesourcery.com>
2616 * gdbthread.h (any_running): Remove the declaration.
2617 * thread.c (any_running): Remove.
2619 2014-06-19 Yao Qi <yao@codesourcery.com>
2621 * gdbthread.h (struct thread_info) <state>: Change its type to
2622 'enum thread_state'. Update comments.
2624 2014-06-19 Pedro Alves <palves@redhat.com>
2626 * gdbthread.h (ALL_THREADS): Delete.
2627 (ALL_NON_EXITED_THREADS): New macro.
2628 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2629 instead of ALL_THREADS.
2630 * infrun.c (find_thread_needs_step_over)
2631 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2632 instead of ALL_THREADS.
2633 * record-btrace.c (record_btrace_open)
2634 (record_btrace_stop_recording, record_btrace_close)
2635 (record_btrace_is_replaying, record_btrace_resume)
2636 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2637 * remote.c (append_pending_thread_resumptions): Likewise.
2638 * thread.c (thread_apply_all_command): Likewise.
2640 2014-06-19 Gary Benson <gbenson@redhat.com>
2642 * i386-nat.c (i386_stopped_by_watchpoint):
2643 Use i386_dr_stopped_by_watchpoint.
2644 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2645 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2647 2014-06-19 Gary Benson <gbenson@redhat.com>
2649 * nat/i386-dregs.c: New file.
2650 * Makefile.in (i386-dregs.o): New rule.
2651 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2652 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2653 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2654 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2655 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2656 * config/i386/go32.mh (NATDEPFILES): Likewise.
2657 * config/i386/linux.mh (NATDEPFILES): Likewise.
2658 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2659 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2660 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2661 * i386-nat.h (debug_hw_points): New declaration.
2662 * i386-nat.c (breakpoint.h): Remove include.
2663 (command.h): Likewise.
2664 (target.h): Likewise.
2665 (gdb_assert.h): Likewise.
2666 (debug_hw_points): Made nonstatic.
2667 (debug_printf): Now in i386-dregs.c.
2668 (TARGET_HAS_DR_LEN_8): Likewise.
2669 (DR_CONTROL_SHIFT): Likewise.
2670 (DR_CONTROL_SIZE): Likewise.
2671 (DR_RW_EXECUTE): Likewise.
2672 (DR_RW_WRITE): Likewise.
2673 (DR_RW_READ): Likewise.
2674 (DR_RW_IORW): Likewise.
2675 (DR_LEN_1): Likewise.
2676 (DR_LEN_2): Likewise.
2677 (DR_LEN_4): Likewise.
2678 (DR_LEN_8): Likewise.
2679 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2680 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2681 (DR_ENABLE_SIZE): Likewise.
2682 (DR_LOCAL_SLOWDOWN): Likewise.
2683 (DR_GLOBAL_SLOWDOWN): Likewise.
2684 (DR_CONTROL_RESERVED): Likewise.
2685 (I386_DR_CONTROL_MASK): Likewise.
2686 (I386_DR_VACANT): Likewise.
2687 (I386_DR_LOCAL_ENABLE): Likewise.
2688 (I386_DR_GLOBAL_ENABLE): Likewise.
2689 (I386_DR_DISABLE): Likewise.
2690 (I386_DR_SET_RW_LEN): Likewise.
2691 (I386_DR_GET_RW_LEN): Likewise.
2692 (I386_DR_WATCH_HIT): Likewise.
2693 (i386_wp_op_t): Likewise.
2694 (i386_show_dr): Likewise.
2695 (i386_length_and_rw_bits): Likewise.
2696 (i386_insert_aligned_watchpoint): Likewise.
2697 (i386_remove_aligned_watchpoint): Likewise.
2698 (i386_handle_nonaligned_watchpoint): Likewise.
2699 (i386_update_inferior_debug_regs): Likewise.
2700 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2701 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2702 (i386_region_ok_for_watchpoint):
2703 Use i386_dr_region_ok_for_watchpoint.
2704 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2706 2014-06-19 Gary Benson <gbenson@redhat.com>
2708 * i386-nat.c (i386_insert_hw_breakpoint): Use
2709 i386_insert_watchpoint.
2710 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2712 2014-06-19 Gary Benson <gbenson@redhat.com>
2714 * i386-nat.c (i386_dr_show): Renamed to
2715 i386_show_dr and made static. All uses updated.
2716 (i386_dr_length_and_rw_bits): Renamed to
2717 i386_length_and_rw_bits and made static.
2719 (i386_dr_insert_aligned_watchpoint): Renamed to
2720 i386_insert_aligned_watchpoint and made static.
2722 (i386_dr_remove_aligned_watchpoint): Renamed to
2723 i386_remove_aligned_watchpoint and made static.
2725 (i386_dr_update_inferior_debug_regs): Renamed to
2726 i386_update_inferior_debug_regs and made static.
2728 * nat/i386-dregs.h (i386_dr_show): Removed.
2729 (i386_dr_length_and_rw_bits): Likewise.
2730 (i386_dr_insert_aligned_watchpoint): Likewise.
2731 (i386_dr_remove_aligned_watchpoint): Likewise.
2732 (i386_dr_update_inferior_debug_regs): Likewise.
2734 2014-06-19 Gary Benson <gbenson@redhat.com>
2736 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2737 * configure: Regenerate.
2738 * config.in: Likewise.
2739 * main.c (signal.h): New include.
2740 (setup_alternate_signal_stack): New function.
2741 (captured_main): Call the above.
2742 * cp-support.c (signal.h): New include.
2743 (catch_demangler_crashes): New flag.
2744 (SIGJMP_BUF): New define.
2745 (SIGSETJMP): Likewise.
2746 (SIGLONGJMP): Likewise.
2747 (gdb_demangle_jmp_buf): New static global.
2748 (gdb_demangle_attempt_core_dump): Likewise.
2749 (gdb_demangle_signal_handler): New function.
2750 (gdb_demangle): If catch_demangler_crashes is set, install the
2751 above signal handler before calling bfd_demangle, and restore
2752 the original signal handler afterwards. Display the offending
2753 symbol and call demangler_warning the first time a segmentation
2755 (_initialize_cp_support): New maint set/show command.
2757 2014-06-19 Gary Benson <gbenson@redhat.com>
2759 * utils.h (resource_limit_kind): New enum.
2760 (can_dump_core): New declaration.
2761 (warn_cant_dump_core): Likewise.
2762 (dump_core): Likewise.
2763 * utils.c (dump_core): Made nonstatic. Added new
2764 parameter "limit_kind".
2765 (can_dump_core): Made nonstatic. Moved printing code to...
2766 (warn_cant_dump_core): New function.
2767 (can_dump_core_warn): Likewise.
2768 (internal_vproblem): Replace calls to can_dump_core with
2769 calls to can_dump_core_warn. Supply new argument to each.
2771 2014-06-19 Gary Benson <gbenson@redhat.com>
2773 * utils.h (demangler_vwarning): New declaration.
2774 (demangler_warning): Likewise.
2775 * utils.c (struct internal_problem)
2776 <user_settable_should_quit>: New field.
2777 <user_settable_should_dump_core>: Likewise
2778 (internal_error_problem): Add values for above new fields.
2779 (internal_warning_problem): Likewise.
2780 (demangler_warning_problem): New static global.
2781 (demangler_vwarning): New function.
2782 (demangler_warning): Likewise.
2783 (add_internal_problem_command): Selectively add commands.
2784 (_initialize_utils): New internal problem command.
2785 * maint.c (maintenance_demangler_warning): New function.
2786 (_initialize_maint_cmds): New command.
2788 2014-06-18 Tom Tromey <tromey@redhat.com>
2790 * f-valprint.c (info_common_command_for_block): Update.
2791 * symtab.h (struct general_symbol_info) <common_block>: Now
2794 2014-06-18 Tom Tromey <tromey@redhat.com>
2796 * symtab.h (struct symtab) <blockvector>: Now const.
2797 * ada-lang.c (ada_add_global_exceptions): Update.
2798 * buildsym.c (augment_type_symtab): Update.
2799 * dwarf2read.c (dw2_lookup_symbol): Update.
2800 * jit.c (finalize_symtab): Update.
2801 * jv-lang.c (add_class_symtab_symbol): Update.
2802 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2804 * objfiles.c (objfile_relocate1): Update.
2805 * psymtab.c (lookup_symbol_aux_psymtabs)
2806 (maintenance_check_psymtabs): Update.
2807 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2809 * spu-tdep.c (spu_catch_start): Update.
2810 * symmisc.c (dump_symtab_1): Update.
2811 * symtab.c (lookup_global_symbol_from_objfile)
2812 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2813 (basic_lookup_transparent_type_quick)
2814 (basic_lookup_transparent_type, find_pc_sect_symtab)
2815 (find_pc_sect_line, search_symbols): Update.
2816 * block.c (find_block_in_blockvector): Make "bl" const.
2817 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2819 (blockvector_contains_pc): Make "bv" const.
2820 (block_for_pc_sect): Update.
2821 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2822 (blockvector_contains_pc): Update.
2823 * breakpoint.c (resolve_sal_pc): Update.
2824 * inline-frame.c (block_starting_point_at): Update.
2826 2014-06-18 Tom Tromey <tromey@redhat.com>
2828 * completer.c (complete_line): Make "line_buffer" const.
2829 * completer.h (complete_line): Update.
2831 2014-06-18 Tom Tromey <tromey@redhat.com>
2833 * symtab.c (add_macro_name): Remove unneeded cast.
2835 2014-06-18 Tom Tromey <tromey@redhat.com>
2837 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2838 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2840 2014-06-18 Tom Tromey <tromey@redhat.com>
2842 * probe.c (info_probes_for_ops): Make "arg" const.
2843 * probe.h (info_probes_for_ops): Update.
2845 2014-06-18 Tom Tromey <tromey@redhat.com>
2847 * varobj.c (varobj_create): Update.
2848 * valops.c (value_of_this): Update.
2849 * tracepoint.c (add_local_symbols, scope_info): Update.
2850 * symtab.h (struct general_symbol_info) <block>: Now const.
2851 * symtab.c (skip_prologue_sal)
2852 (default_make_symbol_completion_list_break_on)
2853 (skip_prologue_using_sal): Update.
2854 * stack.h (iterate_over_block_locals)
2855 (iterate_over_block_local_vars): Update.
2856 * stack.c (print_frame_args): Update.
2857 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2859 (get_selected_block): Make return type const.
2860 * python/py-frame.c (frapy_block): Update.
2861 * python/py-block.c (gdbpy_block_for_pc): Update.
2862 * p-exp.y (%union) <bval>: Now const.
2863 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2864 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2865 * m2-exp.y (%union) <bval>: Now const.
2866 * linespec.c (get_current_search_block): Make return type const.
2867 (create_sals_line_offset, find_label_symbols): Update.
2868 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2870 (block_starting_point_at): Make "block" const.
2871 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2872 (check_exception_resume): Update.
2873 * guile/scm-frame.c (gdbscm_frame_block): Update.
2874 * guile/scm-block.c (gdbscm_lookup_block): Update.
2875 * frame.h (get_frame_block): Update.
2876 (get_selected_block): Make return type const.
2877 * frame.c (frame_id_inner): Update.
2878 * f-valprint.c (info_common_command_for_block)
2879 (info_common_command): Update.
2880 * dwarf2loc.c (dwarf2_find_location_expression)
2881 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2882 (locexpr_describe_location_piece): Update.
2883 * c-exp.y (%union) <bval>: Now const.
2884 * breakpoint.c (resolve_sal_pc): Update.
2885 * blockframe.c (get_frame_block):Make return type const.
2886 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2887 (block_innermost_frame): Update.
2888 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2889 (block_for_pc, block_for_pc_sect): Update.
2890 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2892 (block_for_pc_sect, block_for_pc): Make return type const.
2893 * ax-gdb.c (gen_expr): Update.
2894 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2895 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2896 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2897 (ada_read_var_value): Update.
2898 * ada-exp.y (struct name_info) <block>: Now const.
2900 (block_lookup): Constify.
2902 2014-06-18 Gary Benson <gbenson@redhat.com>
2904 * nat/i386-dregs.h: New file.
2905 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2906 * i386-nat.h (i386-dregs.h): New include.
2907 (DR_FIRSTADDR): Now in i386-dregs.h.
2908 (DR_LASTADDR): Likewise.
2909 (DR_NADDR): Likewise.
2910 (DR_STATUS): Likewise.
2911 (DR_CONTROL): Likewise.
2912 (i386_debug_reg_state): Likewise.
2913 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2915 2014-06-18 Don Breazeal <donb@codesourcery.com>
2917 * breakpoint.c (set_longjmp_breakpoint): Call
2918 momentary_breakpoint_from_master with additional argument.
2919 (set_longjmp_breakpoint_for_call_dummy): Call
2920 momentary_breakpoint_from_master with additional argument.
2921 (set_std_terminate_breakpoint): Call
2922 momentary_breakpoint_from_master with additional argument.
2923 (momentary_breakpoint_from_master): Add argument to function
2924 definition and use it to initialize structure member flag.
2925 (clone_momentary_breakpoint): Call
2926 momentary_breakpoint_from_master with additional argument.
2927 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2928 member flags set in momentary_breakpoint_from_master.
2930 2014-06-18 Gary Benson <gbenson@redhat.com>
2932 * i386-nat.c (i386_show_dr): Renamed to
2933 i386_dr_show and made nonstatic. All uses updated.
2934 (i386_length_and_rw_bits): Renamed to
2935 i386_dr_length_and_rw_bits and made nonstatic.
2937 (i386_insert_aligned_watchpoint): Renamed to
2938 i386_dr_insert_aligned_watchpoint and made nonstatic.
2940 (i386_remove_aligned_watchpoint): Renamed to
2941 i386_dr_remove_aligned_watchpoint and made nonstatic.
2943 (i386_update_inferior_debug_regs): Renamed to
2944 i386_dr_update_inferior_debug_regs and made nonstatic.
2947 2014-06-18 Gary Benson <gbenson@redhat.com>
2949 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2950 (i386_dr_low_can_set_control): Likewise.
2951 (i386_dr_low_set_addr): Likewise.
2952 (i386_dr_low_set_control): Likewise.
2953 (i386_dr_low_get_addr): Likewise.
2954 (i386_dr_low_get_status): Likewise.
2955 (i386_dr_low_get_control): Likewise.
2956 (i386_insert_aligned_watchpoint): Use new macros.
2957 (i386_update_inferior_debug_regs): Likewise.
2958 (i386_stopped_data_address): Likewise.
2960 2014-06-18 Gary Benson <gbenson@redhat.com>
2962 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2963 New parameter. All uses updated.
2965 2014-06-18 Gary Benson <gbenson@redhat.com>
2967 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2970 2014-06-18 Gary Benson <gbenson@redhat.com>
2972 * i386-nat.c (debug_printf): New macro.
2973 (i386_get_debug_register_length): Likewise.
2974 (TARGET_HAS_DR_LEN_8): Use above macro.
2975 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2976 and printf_unfiltered. Use phex to format values.
2978 2014-06-18 Gary Benson <gbenson@redhat.com>
2980 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2983 2014-06-18 Gary Benson <gbenson@redhat.com>
2985 * i386-nat.c: Comment changes.
2987 2014-06-18 Gary Benson <gbenson@redhat.com>
2989 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2991 2014-06-18 Gary Benson <gbenson@redhat.com>
2993 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2994 (i386_insert_aligned_watchpoint): Likewise.
2995 (i386_remove_aligned_watchpoint): Likewise.
2996 (i386_handle_nonaligned_watchpoint): Likewise.
2998 2014-06-18 Gary Benson <gbenson@redhat.com>
3000 * i386-nat.c: Whitespace changes.
3002 2014-06-17 Samuel Bronson <naesten@gmail.com>
3004 * MAINTAINERS: Update Roland McGrath's email address.
3005 Thanks to Sergio Durigan Junior for pointing out that he left
3006 Red Hat a while ago, and giving me a current address.
3008 2014-06-17 Tom Tromey <tromey@redhat.com>
3010 * utils.h (savestring): Remove declaration.
3012 2014-06-17 Tom Tromey <tromey@redhat.com>
3014 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3016 2014-06-16 Keith Seitz <keiths@redhat.com>
3019 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3020 to update the varobj if inferior_ptid is null_ptid.
3022 2014-06-16 Tom Tromey <tromey@redhat.com>
3024 * target.h (struct target_ops) <to_info_proc>: Make parameter
3026 (target_info_proc): Update.
3027 * target.c (target_info_proc): Make "args" const.
3028 * procfs.c (procfs_info_proc): Update.
3029 * linux-tdep.c (linux_info_proc): Update.
3030 (linux_core_info_proc_mappings): Make "args" const.
3031 (linux_core_info_proc): Update.
3032 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3033 * gdbarch.c: Rebuild.
3034 * gdbarch.h: Rebuild.
3035 * corelow.c (core_info_proc): Update.
3037 2014-06-16 Tom Tromey <tromey@redhat.com>
3039 * target.h (struct target_ops) <to_disconnect>: Make parameter
3041 (target_disconnect): Update.
3042 * target.c (target_disconnect): Make "args" const.
3043 * target-delegates.c: Rebuild.
3044 * remote.c (remote_disconnect): Update.
3045 * record.h (record_disconnect): Update.
3046 * record.c (record_disconnect): Update.
3047 * inf-child.c (inf_child_disconnect): Update.
3049 2014-06-16 Tom Tromey <tromey@redhat.com>
3051 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3052 * target.c (debug_to_rcmd, default_rcmd): Update.
3053 * target-delegates.c: Rebuild.
3054 * remote.c (remote_rcmd): Update.
3055 * monitor.c (monitor_rcmd): Update.
3057 2014-06-16 Pedro Alves <palves@redhat.com>
3059 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3060 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3061 have OBJF_SHARED set.
3062 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3063 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3064 instead of OBJF_USERLOADED.
3065 * objfiles.h (OBJF_SHARED): Update comment.
3066 (userloaded_objfile_contains_address_p): Rename to ...
3067 (shared_objfile_contains_address_p): ... this, and update
3069 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3071 (remove_symbol_file_command): Skip objfiles that don't have
3074 2014-06-16 Tom Tromey <tromey@redhat.com>
3076 * minsyms.h (prim_record_minimal_symbol)
3077 (prim_record_minimal_symbol_and_info): Update comments.
3079 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3081 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3082 or --without-guile, according to how GDB was built.
3084 2014-06-13 Tom Tromey <tromey@redhat.com>
3086 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3088 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3090 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3092 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3093 help_list.Pass all_commands, not -1, to help_list.
3094 * cli/cli-dump.c (dump_command, append_command)
3095 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3096 (binary_dump_command, binary_append_command): Pass all_commands,
3097 not -1, to help_list.
3098 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3100 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3102 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3104 * top.c (set_history): Pass all_commands, not -1, to help_list.
3105 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3106 all_commands, not -1, to help_list.
3107 * symfile.c (overlay_command): Pass all_commands, not -1, to
3109 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3111 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3113 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3115 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3116 not -1, to help_list.
3117 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3118 not -1, to help_list.
3119 * maint.c (maintenance_command, maintenance_info_command)
3120 (maintenance_print_command, maintenance_set_cmd): Pass
3121 all_commands, not -1, to help_list.
3122 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3124 * language.c (set_check): Pass all_commands, not -1, to help_list.
3125 * infcmd.c (unset_command): Pass all_commands, not -1, to
3127 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3129 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3131 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3133 * breakpoint.c (save_command): Pass all_commands, not -1, to
3135 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3136 all_commands, not -1, to help_list.
3138 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3140 * regcache.c (struct register_to_invalidate): New structure.
3141 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3143 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3145 2014-06-12 Yao Qi <yao@codesourcery.com>
3147 * varobj.c (varobj_get_num_children): Call
3148 varobj_is_dynamic_p.
3149 (varobj_list_children): Likewise.
3150 (varobj_update): Likewise. Update comments.
3152 2014-06-12 Yao Qi <yao@codesourcery.com>
3154 * varobj.c (varobj_pretty_printed_p): Rename to ...
3155 (varobj_is_dynamic_p): ... this. New function.
3156 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3157 (varobj_is_dynamic_p): Declare.
3158 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3159 (mi_print_value_p, varobj_update_one): Likewise.
3161 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3162 Yao Qi <yao@codesourcery.com>
3164 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3165 (varobj_get_iterator): Wrap up code for pretty-printer by
3166 "#if HAVE_PYTHON" and "#endif".
3167 (update_dynamic_varobj_children): Likewise.
3169 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3170 Yao Qi <yao@codesourcery.com>
3172 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3173 gdb_python_initialized is false. Move some code from varobj.c.
3174 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3175 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3176 (struct varobj_item): Moved to varobj-iter.h".
3177 (varobj_clear_saved_item): New function.
3178 (update_dynamic_varobj_children): Move python-related code to
3180 (free_variable): Call varobj_clear_saved_item and
3183 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3184 Yao Qi <yao@codesourcery.com>
3186 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3187 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3188 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3189 (py-varobj.o): New rule.
3190 * python/py-varobj.c: New file.
3191 * python/python-internal.h (py_varobj_get_iterator): Declare.
3192 * varobj-iter.h: New file.
3193 * varobj.c: Include "varobj-iter.h"
3194 (struct varobj) <child_iter>: Change its type from "PyObject *"
3195 to "struct varobj_iter *".
3196 <saved_item>: Likewise.
3197 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3198 [HAVE_PYTHON] (varobj_get_iterator): New function.
3199 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3200 python-specific code to python/py-varobj.c.
3201 (install_visualizer): Call varobj_iter_delete instead of
3203 * varobj.h (varobj_ensure_python_env): Declare.
3205 2014-06-12 Yao Qi <yao@codesourcery.com>
3207 * varobj.c (struct varobj_item): New structure.
3208 (create_child_with_value): Update declaration.
3209 (varobj_add_child): Replace arguments 'name' and 'value' with
3210 'item'. All callers updated.
3211 (install_dynamic_child): Likewise.
3212 (update_dynamic_varobj_children): Likewise.
3213 (varobj_add_child): Likewise.
3214 (create_child_with_value): Likewise.
3216 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3218 * NEWS: Create a new section for the next release branch.
3219 Rename the section of the current branch, now that it has
3222 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3224 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3225 * version.in: Bump version to 7.8.50.DATE-cvs.
3227 2014-06-11 Pedro Alves <palves@redhat.com>
3230 * ser-mingw.c (net_windows_socket_check_pending): New function.
3231 (net_windows_select_thread): Ignore spurious wakeups. Use
3232 net_windows_socket_check_pending.
3233 (net_windows_wait_handle): Check for pending events with
3234 ioctlsocket, through net_windows_socket_check_pending, instead of
3235 checking the socket's event.
3237 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3239 * python/python-internal.h (gdb_PyObject_GetAttrString)
3240 (gdb_PyObject_HasAttrString): New inline function definitions.
3241 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3242 char * of the second argument to PyObject_GetAttrString.
3244 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3246 * serial.c (serial_write): Fix index of character to be printed
3247 in call to serial_logchar when serial debug traces are enabled.
3249 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3251 * gdbtypes (resolve_dynamic_range): Add function description.
3253 2014-06-09 Pedro Alves <palves@redhat.com>
3255 * linux-nat.c (linux_child_follow_fork): Initialize status with
3256 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3257 inner block. Only pass the signal to PTRACE_DETACH if in pass
3260 2014-06-09 Gary Benson <gbenson@redhat.com>
3262 * common/signals.c (gdb_signal_from_host): Reorder to separate
3263 the always-available ANSI-standard signals from the signals that
3265 (do_gdb_signal_to_host): Likewise.
3266 * proc-events.c (signal_table): Likewise.
3268 2014-06-08 Hui Zhu <hui@codesourcery.com>
3270 * common/linux-ptrace.c (linux_disable_event_reporting): New
3272 * common/linux-ptrace.h (linux_disable_event_reporting): New
3274 * linux-nat.c (linux_child_follow_fork): Do a single step before
3277 2014-06-07 Keith Seitz <keiths@redhat.com>
3281 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3282 from symbol_matches_domain in symtab.c. All local callers
3283 of symbol_matches_domain updated.
3284 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3285 search STRUCT_DOMAIN.
3286 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3287 independently. standard_lookup will do that automatically.
3288 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3290 (cp_lookup_symbol_in_namespace): Likewise.
3291 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3292 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3293 may return a STRUCT_DOMAIN match.
3294 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3295 * cp-support.c: Include language.h.
3296 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3298 * psymtab.c (match_partial_symbol): Compare the requested
3299 domain with the symbol's domain directly.
3300 (lookup_partial_symbol): Likewise.
3301 * symtab.c (lookup_symbol_in_language): Explain when/why
3302 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3303 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3304 appropriate languages.
3305 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3306 and moved to ada-lang.c
3307 (lookup_block_symbol): Explain that this function only returns
3308 symbol matching the requested DOMAIN.
3309 Compare the requested domain with the symbol's domain directly.
3310 (iterate_over_symbols): Compare the requested domain with the
3311 symbol's domain directly.
3312 * symtab.h (symbol_matches_domain): Remove.
3314 2014-06-06 Doug Evans <xdje42@gmail.com>
3316 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3317 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3318 (gdbscm_guile_version_is_at_least): Declare.
3319 (gdbscm_scm_string_to_int): Declare.
3320 * guile/guile.c (gdbscm_guile_major_version): New global.
3321 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3322 (guile_datadir): New static global.
3323 (gdbscm_guile_data_directory): New function.
3324 (initialize_scheme_side): Update.
3325 (misc_guile_functions): Add guile-data-directory.
3326 (initialize_gdb_module): Fetch guile version number.
3327 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3328 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3329 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3330 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3332 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3333 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3334 * guile/scm-value.c (gdbscm_value_to_string): Only call
3335 scm_port_conversion_strategy if Guile version >= 2.0.6.
3337 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3339 * main.c (print_gdb_help): Add -q and --silent.
3341 2014-06-06 Gary Benson <gbenson@redhat.com>
3343 * common/signals.c: Remove preprocessor conditionals for
3344 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3345 SIGSEGV and SIGTERM.
3346 * proc-events.c: Likewise.
3348 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3350 * symfile.c (symfile_free_objfile): Remove restriction to
3352 * symfile-mem.c (symbol_file_add_from_memory): Call
3353 add_target_sections_of_objfile.
3355 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3357 * guile/scm-value.c (gdbscm_history_append_x): Use
3358 'vlscm_get_value_smob_arg_unsafe' instead of
3359 'vlscm_scm_to_value'.
3361 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3364 * utils.c (printchar): Don't escape at all if quoter is NUL.
3365 Update function documentation to clarify effect of parameter
3367 * remote.c (escape_buffer): Pass '\\' as the quoter to
3368 fputstrn_unfiltered.
3369 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3370 generate the output.
3371 (mi_solib_unloaded): Same.
3373 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3375 * development.sh: Delete.
3376 * Makefile.in (config.status): Adjust dependency on development.sh.
3377 * configure.ac: Adjust development.sh source call.
3378 * configure: Regenerate.
3380 2014-06-04 Doug Evans <xdje42@gmail.com>
3382 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3383 is_scheme_bkpt, spec.
3384 (bpscm_make_breakpoint_smob): Initialize new members.
3385 (gdbscm_create_breakpoint_x): Split into two ...
3386 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3387 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3388 (scheme_function breakpoint_functions): Update.
3389 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3390 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3391 register-breakpoint!.
3393 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3396 * mem-break.c (z_type_supported): Return zero if
3397 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3399 2014-06-04 Tom Tromey <tromey@redhat.com>
3401 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3402 value_from_contents_and_address_unresolved.
3403 (ada_template_to_fixed_record_type_1): Likewise.
3404 (ada_which_variant_applies): Likewise.
3405 * value.h (value_from_contents_and_address_unresolved): Declare.
3406 * value.c (value_from_contents_and_address_unresolved): New
3408 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3409 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3410 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3412 2014-06-04 Tom Tromey <tromey@redhat.com>
3414 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3416 2014-06-04 Tom Tromey <tromey@redhat.com>
3418 * procfs.c (procfs_attach): Make "args" const.
3419 * windows-nat.c (windows_attach): Make "args" const.
3420 * nto-procfs.c (procfs_attach): Make "args" const.
3421 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3422 * go32-nat.c (go32_attach): Make "args" const.
3423 * gnu-nat.c (gnu_attach): Make "args" const.
3424 * darwin-nat.c (darwin_attach): Make "args" const.
3425 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3426 * linux-nat.c (linux_nat_attach): Make "args" const.
3427 * remote.c (extended_remote_attach_1, extended_remote_attach):
3429 * target.h (struct target_ops) <to_attach>: Make "args" const.
3430 (find_default_attach): Likewise.
3431 * utils.c (parse_pid_to_attach): Make "args" const.
3432 * utils.h (parse_pid_to_attach): Update.
3434 2014-06-04 Tom Tromey <tromey@redhat.com>
3436 * target-delegates.c: Rebuild.
3437 * target.c (default_thread_address_space): New function.
3438 (target_thread_address_space): Simplify.
3439 * target.h (struct target_ops) <to_thread_address_space>: Add
3440 TARGET_DEFAULT_FUNC.
3442 2014-06-04 Doug Evans <xdje42@gmail.com>
3444 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3446 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3448 * record-btrace.c: Include event-loop.h and inf-loop.h.
3449 (record_btrace_resume_exec_dir)
3450 (record_btrace_async_inferior_event_handler)
3451 (record_btrace_handle_async_inferior_event): New.
3452 (record_btrace_open): Create async event handler.
3453 (record_btrace_close): Delete async event handler.
3454 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3455 Mark async event handler.
3456 (record_btrace_execution_direction): New.
3457 (init_record_btrace_ops): Initialize to_execution_direction.
3459 2014-06-03 Doug Evans <xdje42@gmail.com>
3461 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3462 (gdbscm_make_parameter): Ditto.
3464 2014-06-03 Doug Evans <dje@google.com>
3466 * exec.c (exec_close_1): Call clear_section_table instead of
3467 resize_section_table.
3468 (clear_section_table): New function.
3469 (resize_section_table): Make static. Rename arg num_added to
3471 * exec.h (clear_section_table): Declare.
3472 (resize_section_table): Delete.
3473 * progspace.c (release_program_space): Call clear_section_table
3474 instead of resize_section_table.
3476 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3478 * NEWS (Python Scripting): Add entry about the new xmethods
3481 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3483 * python/py-xmethods.c: New file.
3484 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3485 (objfpy_dealloc): XDECREF on the new xmethods field.
3486 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3488 (objfpy_get_xmethods): New function.
3489 (objfile_getset): New entry 'xmethods'.
3490 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3491 (pspy_dealloc): XDECREF on the new xmethods field.
3492 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3494 (pspy_get_xmethods): New function.
3495 (pspace_getset): New entry 'xmethods'.
3496 * python/python-internal.h: Add declarations for new functions.
3497 * python/python.c (_initialize_python): Invoke
3498 gdbpy_initialize_xmethods.
3499 * python/lib/gdb/__init__.py (xmethods): New
3501 * python/lib/gdb/xmethod.py: New file.
3502 * python/lib/gdb/command/xmethods.py: New file.
3504 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3506 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3507 best match method returned by find_overload_match is an xmethod.
3508 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3509 the best matching operator returned by find_overload_match is an
3511 * valops.c: #include "extension.h".
3512 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3513 Return void. The list of matching source methods is returned in
3514 "fn_list" and a vector of matching debug method workers is
3515 returned in "xm_worker_vec". Update all callers.
3516 (value_find_oload_method_list): Likewise.
3517 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3518 non-NULL, then the index of the best matching method in this
3519 vector is returned. Update all callers.
3520 (find_overload_match): Include xmethods while performing overload
3523 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3525 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3526 * extension-priv.h (struct extension_language_ops): Add the
3528 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3529 get_matching_xmethod_workers, get_xmethod_argtypes,
3530 invoke_xmethod, free_xmethod_worker,
3531 free_xmethod_worker_vec): New functions.
3532 * extension.h: #include "common/vec.h".
3533 New function declarations.
3534 (struct xmethod_worker): New struct.
3535 (VEC (xmethod_worker_ptr)): New vector type.
3536 (xmethod_worker_ptr): New typedef.
3537 (xmethod_worker_vec): Likewise.
3538 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3540 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3541 (struct builtin_type): New field "xmethod".
3542 * valarith.c (value_ptradd): Assert that the value argument is not
3544 * valops.c (value_must_coerce_to_target): Return 0 for
3545 lval_xcallable values.
3546 * value.c (struct value): New field XM_WORKER in the field
3548 (value_address, value_raw_address): Return 0 for lval_xcallable
3550 (set_value_address): Assert that the value is not an
3552 (value_free): Free the associated xmethod worker when freeing
3553 lval_xcallable values.
3554 (set_value_component_location): Assert that the WHOLE value is not
3556 (value_of_xmethod, call_xmethod): New functions.
3557 * value.h: Declare "struct xmethod_worker".
3558 Declare new functions value_of_xmethod, call_xmethod.
3560 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3561 Pedro Alves <palves@redhat.com>
3563 PR breakpoints/17000
3564 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3565 New function, extracted from software_breakpoint_inserted_here_p.
3566 (software_breakpoint_inserted_here_p): Replace factored out code
3567 by call to find_non_raw_software_breakpoint_inserted_here.
3568 (bp_target_info_copy_insertion_state): New function.
3569 (bkpt_insert_location): Handle the case of a single-step
3570 breakpoint already inserted at the same address.
3571 (bkpt_remove_location): Handle the case of a single-step
3572 breakpoint still inserted at the same address.
3573 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3574 breakpoint already inserted at the same address.
3575 (deprecated_remove_raw_breakpoint): Handle the case of a
3576 non-raw breakpoint still inserted at the same address.
3577 (find_single_step_breakpoint): New function, extracted from
3578 single_step_breakpoint_inserted_here_p.
3579 (find_single_step_breakpoint): New function,
3580 factored out from single_step_breakpoint_inserted_here_p.
3581 (single_step_breakpoint_inserted_here_p): Reimplement.
3583 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3585 Pushed by Joel Brobecker <brobecker@adacore.com>
3586 * source.c (show_substitute_path_command): Fix display of matching
3589 2014-06-03 Gary Benson <gbenson@redhat.com>
3591 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3593 2014-06-02 Doug Evans <xdje42@gmail.com>
3595 Add parameter support for Guile.
3596 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3597 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3598 (scm-param.o): New rule.
3599 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3600 (gdbscm_misc_error): Declare.
3601 (gdbscm_canonicalize_command_name): Declare.
3602 (gdbscm_scm_to_host_string): Declare.
3603 (gdbscm_scm_from_host_string): Declare.
3604 (gdbscm_initialize_parameters): Declare.
3605 * guile/guile.c (initialize_gdb_module): Call
3606 gdbscm_initialize_parameters.
3607 * guile/lib/gdb.scm: Export parameter symbols.
3608 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3609 cmdscm_canonicalize_name and made public. All callers updated.
3610 * guile/scm-exception.c (gdbscm_misc_error): New function.
3611 * guile/scm-param.c: New file.
3612 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3613 (gdbscm_scm_to_host_string): New function.
3614 (gdbscm_scm_from_host_string): New function.
3615 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3617 2014-06-02 Doug Evans <xdje42@gmail.com>
3619 Add command support for Guile.
3620 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3621 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3622 (scm-cmd.o): New rule.
3623 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3624 (gdbscm_user_error_p): Declare.
3625 (gdbscm_parse_command_name): Declare.
3626 (gdbscm_valid_command_class_p): Declare.
3627 (gdbscm_initialize_commands): Declare.
3628 * guile/guile.c (initialize_gdb_module): Call
3629 gdbscm_initialize_commands.
3630 * guile/lib/gdb.scm: Export command symbols.
3631 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3632 (throw-user-error): New function.
3633 * guile/scm-cmd.c: New file.
3634 * guile/scm-exception.c (user_error_symbol): New static global.
3635 (gdbscm_user_error_p): New function.
3636 (gdbscm_initialize_exceptions): Set user_error_symbol.
3637 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3639 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3641 * top.c (command_loop): Handle comments here...
3642 (command_line_input): ... not here.
3644 2014-06-02 Doug Evans <xdje42@gmail.com>
3646 Add progspace support for Guile.
3647 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3648 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3649 (scm-progspace.o): New rule.
3650 * guile/guile-internal.h (pspace_smob): New typedef.
3651 (psscm_pspace_smob_pretty_printers): Declare.
3652 (psscm_pspace_smob_from_pspace): Declare.
3653 (psscm_scm_from_pspace): Declare.
3654 * guile/guile.c (initialize_gdb_module): Call
3655 gdbscm_initialize_pspaces.
3656 * guile/lib/gdb.scm: Export progspace symbols.
3657 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3659 (append-pretty-printer!): Ditto.
3660 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3662 * guile/scm-progspace.c: New file.
3664 2014-06-03 Alan Modra <amodra@gmail.com>
3666 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3667 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3669 2014-06-02 Doug Evans <dje@google.com>
3671 Add support for skeletonless type units.
3672 * dwarf2read.c (struct dwarf2_per_objfile): New member
3673 n_allocated_type_units.
3674 (struct dwarf2_per_objfile) <tu_stats>: New member
3675 nr_all_type_units_reallocs.
3676 (create_signatured_type_table_from_index): Initialize
3677 n_allocated_type_units
3678 (create_all_type_units): Ditto.
3679 (add_type_unit): Move up in file. New arg slot.
3680 All callers updated. Increase space for all_type_units more
3682 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3683 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3684 (lookup_dwp_signatured_type): Ditto.
3685 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3686 All callers updated.
3687 (build_type_psymtabs_1): Leave type_unit_groups as
3688 NULL if no TUs present.
3689 (print_tu_stats): New function.
3690 (process_skeletonless_type_unit): New function.
3691 (process_dwo_file_for_skeletonless_type_units): New
3693 (process_skeletonless_type_units): New function.
3694 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3695 Call print tu_stats if debugging enabled.
3697 2014-06-02 Pedro Alves <palves@redhat.com>
3699 * breakpoint.c (build_target_command_list): Don't build a command
3700 list if we have any duplicate location that isn't a dprintf.
3702 2014-06-02 Pedro Alves <palves@redhat.com>
3704 * breakpoint.c (dprintf_breakpoint_hit): New function.
3705 (initialize_breakpoint_ops): Install it as dprintf's
3706 breakpoint_hit method.
3708 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3710 * source.c (substitute_path_rule_matches): Simplify using
3711 filename_ncmp instead of FILENAME_CMP.
3713 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3715 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3717 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3719 * configure.ac: When Guile is available, check for the
3720 availability of 'scm_new_smob'.
3721 * configure, config.h.in: Regenerate.
3722 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3725 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3727 * frame.c (struct frame_info): Add stop_string field.
3728 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3729 (get_prev_frame_always): Old content moved into
3730 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3731 TRY_CATCH, handle MEMORY_ERROR exceptions.
3732 (frame_stop_reason_string): New function definition.
3733 * frame.h (unwind_stop_reason_to_string): Extend comment to
3734 mention frame_stop_reason_string.
3735 (frame_stop_reason_string): New function declaration.
3736 * stack.c (frame_info): Switch to frame_stop_reason_string.
3737 (backtrace_command_1): Switch to frame_stop_reason_string.
3738 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3739 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3740 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3742 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3744 * frame.c (frame_stop_reason_string): Rename to ...
3745 (unwind_stop_reason_to_string): this.
3746 * frame.h (frame_stop_reason_string): Rename to ...
3747 (unwind_stop_reason_to_string): this.
3748 * stack.c (frame_info): Update call to frame_stop_reason_string.
3749 (backtrace_command_1): Likewise.
3750 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3751 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3753 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3755 * frame.c (remove_prev_frame): New function.
3756 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3759 2014-05-29 Pedro Alves <palves@redhat.com>
3761 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3762 and make it const. When a single-step decays to a continue,
3763 clear 'step', not 'hw_step'. Pass whether the caller wanted
3764 to step to user_visible_resume_ptid, not what we ask the
3767 2014-05-29 Pedro Alves <palves@redhat.com>
3769 * infrun.c (process_event_stop_test, handle_step_into_function)
3770 (handle_step_into_function_backward): Adjust.
3771 Don't set the even thread's stop_step and call stop_waiting before
3772 calling end_stepping_range. Instead do that ...
3773 (end_stepping_range): ... here. Take an ecs pointer parameter.
3775 2014-05-29 Pedro Alves <palves@redhat.com>
3777 * infrun.c (stop_stepping): Rename to ...
3778 (stop_waiting): ... this.
3779 (proceed): Update comment.
3780 (process_event_stop_test, handle_inferior_event)
3781 (handle_signal_stop, handle_step_into_function)
3782 (handle_step_into_function_backward): Update.
3784 2014-05-29 Pedro Alves <palves@redhat.com>
3786 * infcall.c (run_inferior_call): Don't check whether the current
3787 thread is running after the proceed call.
3789 2014-05-29 Pedro Alves <palves@redhat.com>
3790 Tom Tromey <tromey@redhat.com>
3792 * NEWS: Mention "maint set target-async", "set mi-async", and that
3793 background execution commands are now always available.
3794 * target.h (target_async_permitted): Update comment.
3795 * target.c (target_async_permitted, target_async_permitted_1):
3797 (set_target_async_command): Rename to ...
3798 (maint_set_target_async_command): ... this.
3799 (show_target_async_command): Rename to ...
3800 (maint_show_target_async_command): ... this.
3801 (_initialize_target): Adjust.
3802 * infcmd.c (prepare_execution_command): Make extern.
3803 * inferior.h (prepare_execution_command): Declare.
3804 * infrun.c (set_observer_mode): Leave target async alone.
3805 * mi/mi-interp.c (mi_interpreter_init): Install
3806 mi_on_sync_execution_done as sync_execution_done observer.
3807 (mi_on_sync_execution_done): New function.
3808 (mi_execute_command_input_handler): Don't print the prompt if we
3809 just started a synchronous command with an async target.
3810 (mi_on_resume): Check sync_execution before printing prompt.
3811 * mi/mi-main.h (mi_async_p): Declare.
3812 * mi/mi-main.c: Include gdbcmd.h.
3813 (mi_async_p): New function.
3814 (mi_async, mi_async_1): New globals.
3815 (set_mi_async_command, show_mi_async_command, mi_async): New
3817 (exec_continue): Call prepare_execution_command.
3818 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3819 (mi_execute_async_cli_command): Use mi_async_p.
3820 (_initialize_mi_main): Install "set mi-async". Make
3821 "target-async" a deprecated alias.
3823 2014-05-29 Pedro Alves <palves@redhat.com>
3825 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3826 (_initialize_cli_interp): Adjust.
3827 * event-loop.c: Include "observer.h".
3828 (start_event_loop): Notify 'command_error' observers instead of
3829 calling display_gdb_prompt. Remove FIXME comment.
3830 * event-top.c (display_gdb_prompt): Remove call into the
3832 * inf-loop.c: Include "observer.h".
3833 (inferior_event_handler): Notify 'command_error' observers instead
3834 of calling display_gdb_prompt.
3835 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3836 observers instead of calling display_gdb_prompt.
3837 * interps.c (interp_set): Don't call display_gdb_prompt.
3838 (current_interp_display_prompt_p): Delete.
3839 * interps.h (interp_prompt_p): Delete declaration.
3840 (interp_prompt_p_ftype): Delete.
3841 (struct interp_procs) <prompt_proc_p>: Delete field.
3842 (current_interp_display_prompt_p): Delete declaration.
3843 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3844 (_initialize_mi_interp): Adjust.
3845 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3846 'command_error' observers.
3847 (tui_on_sync_execution_done, tui_on_command_error): New
3849 (tui_display_prompt_p): Delete.
3850 (_initialize_tui_interp): Adjust.
3852 2014-05-29 Pedro Alves <palves@redhat.com>
3855 * cli/cli-interp.c: Include infrun.h and observer.h.
3856 (cli_uiout, cli_interp): New globals.
3857 (cli_on_signal_received, cli_on_end_stepping_range)
3858 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3860 (cli_interpreter_init): Install them as 'end_stepping_range',
3861 'signal_received' 'signal_exited', 'exited' and 'no_history'
3863 (_initialize_cli_interp): Remove cli_interp local.
3864 * infrun.c (handle_inferior_event): Call the several stop reason
3865 observers instead of printing the stop reason directly.
3866 (end_stepping_range): New function.
3867 (print_end_stepping_range_reason, print_signal_exited_reason)
3868 (print_exited_reason, print_signal_received_reason)
3869 (print_no_history_reason): Make static, and add an uiout
3870 parameter. Print to that instead of to CURRENT_UIOUT.
3871 * infrun.h (print_end_stepping_range_reason)
3872 (print_signal_exited_reason, print_exited_reason)
3873 (print_signal_received_reason print_no_history_reason): New
3875 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3877 <cli_uiout>: New field.
3878 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3879 uiout for CLI output. Install 'signal_received',
3880 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3882 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3883 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3884 (mi_on_no_history): New functions.
3885 (ui_out_free_cleanup): Delete function.
3886 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3887 instead use the one already stored in the MI interpreter data.
3888 (mi_ui_out): Adjust.
3889 * tui/tui-interp.c: Include infrun.h and observer.h.
3890 (tui_interp): New global.
3891 (tui_on_signal_received, tui_on_end_stepping_range)
3892 (tui_on_signal_exited, tui_on_exited)
3893 (tui_on_no_history): New functions.
3894 (tui_init): Install them as 'end_stepping_range',
3895 'signal_received' 'signal_exited', 'exited' and 'no_history'
3897 (_initialize_tui_interp): Delete tui_interp local.
3899 2014-05-29 Pedro Alves <palves@redhat.com>
3902 * linux-nat.c (linux_nat_resume_callback): Rename the second
3903 parameter to 'except'. Skip LP if it points to EXCEPT.
3904 (linux_nat_resume): Don't mark the event lwp as not stopped
3905 before resuming sibling lwps. Instead ask
3906 linux_nat_resume_callback to skip the event lwp. Mark it as not
3907 stopped after actually resuming it.
3908 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3910 (wait_lwp): Mark the lwp as stopped here.
3911 (stop_wait_callback): Mark the lwp as not stopped right after
3912 resuming it. Don't mark lwps as stopped here.
3913 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3914 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3916 2014-05-29 Pedro Alves <palves@redhat.com>
3919 * infrun.c (resume): Determine how much to resume depending on
3920 whether the caller wanted a step, not whether we can hardware step
3921 the target. Mark all threads that we intend to run as running,
3922 unless we're calling an inferior function.
3923 (normal_stop): If the thread is running an infcall, don't finish
3925 * target.c (target_resume): Don't mark threads as running here.
3927 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3929 * serial.c (_initialize_serial): Remove support for
3930 the "set remotebaud" and "show remotebaud" commands.
3931 * NEWS: Add entry documenting the removal of that command.
3933 2014-05-28 Yao Qi <yao@codesourcery.com>
3935 * charset.c: Fix typo in comments.
3937 2014-05-27 Gary Benson <gbenson@redhat.com>
3939 * utils.c (internal_vproblem): Prompt for a bug report.
3941 2014-05-26 Andy Wingo <wingo@igalia.com>
3943 * guile/scm-arch.c (arscm_mark_arch_smob):
3944 * guile/scm-block.c (bkscm_mark_block_smob)
3945 (bkscm_mark_block_syms_progress_smob):
3946 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3947 * guile/scm-exception.c (exscm_mark_exception_smob):
3948 * guile/scm-frame.c (frscm_mark_frame_smob):
3949 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3950 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3951 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3952 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3953 (ppscm_mark_pretty_printer_worker_smob):
3954 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3955 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3956 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3957 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3959 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3962 2014-05-26 Andy Wingo <wingo@igalia.com>
3963 Doug Evans <xdje42@gmail.com>
3965 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3966 empty_base_class. All uses updated.
3967 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3968 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3970 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3971 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3972 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3973 (gdbscm_gsmob_has_property_p, add_property_name)
3974 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3975 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3976 (gdb-object-has-property?, gdb-object-properties): Remove.
3977 (gdb-object-kind): Renamed from gsmob-kind.
3979 2014-05-26 Andy Wingo <wingo@igalia.com>
3981 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3982 * configure: Regenerate.
3984 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3986 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3988 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3990 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3991 (replay_memory_access_read_only, replay_memory_access_read_write)
3992 (replay_memory_access_types, replay_memory_access)
3993 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3994 (cmd_set_record_btrace, cmd_show_record_btrace)
3995 (cmd_show_replay_memory_access): New.
3996 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3997 (record_btrace_remove_breakpoint): Replace
3998 record_btrace_allow_memory_access with replay_memory_access.
3999 (_initialize_record_btrace): Add commands.
4000 * NEWS: Announce it.
4002 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4004 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4006 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4008 * MAINTAINERS (Write After Approval): Move self back from
4011 2014-05-22 Pedro Alves <palves@redhat.com>
4013 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4014 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4015 (disable_randomization, enum exec_direction_kind)
4016 (execution_direction, stop_registers, start_remote)
4017 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4018 (wait_for_inferior, normal_stop, get_last_target_status)
4019 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4020 (insert_step_resume_breakpoint_at_sal)
4021 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4022 (set_step_info, print_stop_event, signal_stop_state)
4023 (signal_print_state, signal_pass_state, signal_stop_update)
4024 (signal_print_update, signal_pass_update)
4025 (update_signals_program_target, clear_exit_convenience_vars)
4026 (displaced_step_dump_bytes, update_observer_mode)
4027 (signal_catch_update, gdb_signal_from_command): Move
4029 * infrun.h: ... to this new file.
4030 * amd64-tdep.c: Include infrun.h.
4031 * annotate.c: Include infrun.h.
4032 * arch-utils.c: Include infrun.h.
4033 * arm-linux-tdep.c: Include infrun.h.
4034 * arm-tdep.c: Include infrun.h.
4035 * break-catch-sig.c: Include infrun.h.
4036 * breakpoint.c: Include infrun.h.
4037 * common/agent.c: Include infrun.h instead of inferior.h.
4038 * corelow.c: Include infrun.h.
4039 * event-top.c: Include infrun.h.
4040 * go32-nat.c: Include infrun.h.
4041 * i386-tdep.c: Include infrun.h.
4042 * inf-loop.c: Include infrun.h.
4043 * infcall.c: Include infrun.h.
4044 * infcmd.c: Include infrun.h.
4045 * infrun.c: Include infrun.h.
4046 * linux-fork.c: Include infrun.h.
4047 * linux-nat.c: Include infrun.h.
4048 * linux-thread-db.c: Include infrun.h.
4049 * monitor.c: Include infrun.h.
4050 * nto-tdep.c: Include infrun.h.
4051 * procfs.c: Include infrun.h.
4052 * record-btrace.c: Include infrun.h.
4053 * record-full.c: Include infrun.h.
4054 * remote-m32r-sdi.c: Include infrun.h.
4055 * remote-mips.c: Include infrun.h.
4056 * remote-notif.c: Include infrun.h.
4057 * remote-sim.c: Include infrun.h.
4058 * remote.c: Include infrun.h.
4059 * reverse.c: Include infrun.h.
4060 * rs6000-tdep.c: Include infrun.h.
4061 * s390-linux-tdep.c: Include infrun.h.
4062 * solib-irix.c: Include infrun.h.
4063 * solib-osf.c: Include infrun.h.
4064 * solib-svr4.c: Include infrun.h.
4065 * target.c: Include infrun.h.
4066 * top.c: Include infrun.h.
4067 * windows-nat.c: Include infrun.h.
4068 * mi/mi-interp.c: Include infrun.h.
4069 * mi/mi-main.c: Include infrun.h.
4070 * python/py-threadevent.c: Include infrun.h.
4072 2014-05-22 Pedro Alves <palves@redhat.com>
4074 * infrun.c (handle_inferior_event): Store the exit code for
4075 --return-child-result here, instead of ...
4076 (print_exited_reason): ... here.
4078 2014-05-21 Pedro Alves <palves@redhat.com>
4081 * gdbthread.h (struct thread_control_state): New field
4083 * infrun.c (follow_fork): Copy the new thread control field to the
4085 (clear_proceed_status_thread): Clear the new thread control field.
4086 (proceed): Set the new thread control field.
4087 * interps.h (command_interp): Declare.
4088 * interps.c (command_interpreter): New global.
4089 (command_interp): New function.
4090 (interp_exec): Set `command_interpreter' while here.
4091 * cli-out.c (cli_uiout_dtor): New function.
4092 (cli_ui_out_impl): Install it.
4093 * mi/mi-interp.c: Include cli-out.h.
4094 (mi_cmd_interpreter_exec): Add comment.
4095 (restore_current_uiout_cleanup): New function.
4096 (ui_out_free_cleanup): New function.
4097 (mi_on_normal_stop): If finishing an execution command started by
4098 a CLI command, or any kind of breakpoint-like event triggered,
4099 print the stop event to the output (CLI) stream.
4100 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4102 2014-05-21 Pedro Alves <palves@redhat.com>
4104 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4105 current source line having changed.
4106 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4107 * infrun.c (normal_stop): Adjust call to
4108 set_current_sal_from_frame.
4109 * source.c (clear_lines_listed_range): New function.
4110 (set_current_source_symtab_and_line, identify_source_line): Clear
4111 the lines listed range.
4112 (line_info): Handle the first "info line" after the current source
4113 line having changed.
4114 * stack.c (print_stack_frame): Remove center handling.
4115 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4118 2014-05-21 Pedro Alves <palves@redhat.com>
4120 * inf-child.c (inf_child_mourn_inferior): New function.
4121 * inf-child.h (inf_child_mourn_inferior): New declaration.
4122 * darwin-nat.c (darwin_mourn_inferior): Use
4123 inf_child_mourn_inferior.
4124 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4125 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4126 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4127 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4128 * windows-nat.c (windows_mourn_inferior): Likewise.
4130 2014-05-21 Doug Evans <xdje42@gmail.com>
4132 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4134 2014-05-21 Doug Evans <xdje42@gmail.com>
4136 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4137 (gdbscm_out_of_range_error): Ditto.
4138 (gdbscm_memory_error): Ditto.
4139 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4140 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4141 (gdbscm_out_of_range_error): Update.
4142 (gdbscm_memory_error): Update.
4143 (gdbscm_scm_to_target_string_unsafe): Delete.
4145 2014-05-21 Pedro Alves <palves@redhat.com>
4147 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4149 (inf_child_open_target): New function.
4150 (inf_child_open): Use inf_child_open_target to push the target
4151 instead of erroring out.
4152 (inf_child_disconnect, inf_child_close)
4153 (inf_child_maybe_unpush_target): New functions.
4154 (inf_child_target): Install inf_child_disconnect and
4155 inf_child_close. Store a pointer to the returned object.
4156 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4158 * target.c (auto_connect_native_target): New global.
4159 (show_default_run_target): New function.
4160 (find_default_run_target): Return NULL if automatically connecting
4161 to the native target is disabled.
4162 (_initialize_target): Install set/show auto-connect-native-target.
4163 * NEWS: Mention "set auto-connect-native-target", and "target
4165 * linux-nat.c (super_close): New global.
4166 (linux_nat_close): Call super_close.
4167 (linux_nat_add_target): Store a pointer to the base class's
4169 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4170 inf_child_maybe_unpush.
4171 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4173 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4174 the inferior. Use inf_child_maybe_unpush_target.
4175 (inf_ttrace_attach): Don't push the target if it is already
4177 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4178 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4179 after mourning the inferior. Use inf_child_maybe_unpush_target.
4180 (darwin_attach_pid): Don't push the target if it is already
4182 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4183 mourning the inferior. Use inf_child_maybe_unpush_target.
4184 (gnu_detach): Use inf_child_maybe_unpush_target.
4185 * go32-nat.c (go32_create_inferior): Don't push the target if it
4187 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4188 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4189 (procfs_open): Rename to ...
4190 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4191 comments. Can target_preopen before changing node. Call
4192 inf_child_open_target to push the target explicitly.
4193 (procfs_attach): Don't push the target if it is already pushed.
4194 (procfs_detach): Use inf_child_maybe_unpush_target.
4195 (procfs_create_inferior): Don't push the target if it is already
4197 (nto_native_ops): New global.
4198 (procfs_open): Reimplement.
4199 (procfs_native_open): New function.
4200 (init_procfs_targets): Install procfs_native_open as to_open of
4201 "target native". Store a pointer to the "native" target in
4203 * procfs.c (procfs_attach): Don't push the target if it is already
4205 (procfs_detach): Use inf_child_maybe_unpush_target.
4206 (procfs_mourn_inferior): Only unpush the target after mourning the
4207 inferior. Use inf_child_maybe_unpush_target.
4208 (procfs_init_inferior): Don't push the target if it is already
4210 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4211 if it is already pushed.
4213 2014-05-21 Pedro Alves <palves@redhat.com>
4215 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4216 and "procfs" targets are now called "native" instead.
4218 2014-05-21 Pedro Alves <palves@redhat.com>
4220 * go32-nat.c (go32_open): Delete.
4221 (go32_target): Don't override the to_open method.
4223 2014-05-21 Pedro Alves <palves@redhat.com>
4225 * nto-procfs.c (procfs_can_run): New function.
4226 (nto_procfs_ops): New global.
4227 (init_procfs_targets): New, based on procfs_target. Install
4228 "target native" in addition to "target procfs".
4229 (_initialize_procfs): Call init_procfs_targets instead of adding
4232 2014-05-21 Pedro Alves <palves@redhat.com>
4234 * windows-nat.c (windows_target): Don't override to_shortname,
4235 to_longname or to_doc.
4237 2014-05-21 Pedro Alves <palves@redhat.com>
4239 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4242 2014-05-21 Pedro Alves <palves@redhat.com>
4244 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4245 to_shortname, to_longname or to_doc.
4247 2014-05-21 Pedro Alves <palves@redhat.com>
4249 * go32-nat.c (go32_target): Don't override to_shortname,
4250 to_longname or to_doc.
4252 2014-05-21 Pedro Alves <palves@redhat.com>
4254 * inf-child.c (inf_child_open): Remove mention of "child".
4255 (inf_child_target): Rename target to "native" instead of "child".
4257 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4259 * Makefile.in (SFILES): Delete "regset.c".
4260 (COMMON_OBS): Delete "regset.o".
4262 * regset.h (regset_alloc): Delete prototype.
4264 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4266 * sparc-linux-tdep.c (sparc32_linux_gregset)
4267 (sparc32_linux_fpregset): New static regset structures.
4268 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4269 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4271 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4272 (sparc64_linux_fpregset): New static regset structures.
4273 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4274 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4275 New static regset structures.
4276 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4277 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4278 New static regset structures.
4279 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4280 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4281 New static regset structures.
4282 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4283 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4284 New static regset structures.
4285 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4287 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4289 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4290 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4291 register maps ("regmaps") from "*regset" to "*regmap". Do this
4292 for all regmap types and variables.
4293 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4294 (sparc32_linux_supply_core_gregset)
4295 (sparc32_linux_collect_core_gregset)
4296 (sparc32_linux_supply_core_fpregset)
4297 (sparc32_linux_collect_core_fpregset): Likewise.
4298 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4299 (sparc_gregmap, sparc_fpregmap): ... these.
4300 (sparc_supply_gregset, sparc_collect_gregset)
4301 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4302 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4303 (_initialize_sparc_nat): Rename regmaps.
4304 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4305 (sparc_gregmap, sparc_fpregmap): ... these.
4306 (sparc_supply_gregset, sparc_collect_gregset)
4307 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4308 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4310 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4311 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4313 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4315 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4316 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4317 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4319 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4320 (sparc32_bsd_fpregset): Rename to...
4321 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4322 (sparc32_bsd_fpregmap): ... these.
4323 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4324 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4325 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4326 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4327 (struct sparc_gregmap, struct sparc_fpregmap)
4328 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4329 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4330 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4331 (sparc32_supply_regset, sparc32_collect_gregset)
4332 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4334 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4335 (sparc64_linux_ptrace_gregmap): ... this.
4336 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4337 (_initialize_sparc64_linux_nat): Rename regmaps.
4338 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4339 (sparc64_linux_core_gregmap): ... this.
4340 (sparc64_linux_supply_core_gregset)
4341 (sparc64_linux_collect_core_gregset)
4342 (sparc64_linux_supply_core_fpregset)
4343 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4344 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4345 (sparc64_sol2_fpregset): Rename to...
4346 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4347 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4348 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4350 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4351 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4352 (sparc64_bsd_fpregset): Rename to...
4353 (struct sparc_gregmap, sparc64_sol2_gregmap)
4354 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4355 (sparc64_bsd_fpregmap): ... these.
4356 (sparc64_supply_gregset, sparc64_collect_gregset)
4357 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4359 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4360 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4361 (sparc64fbsd_gregmap): ... this.
4362 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4363 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4365 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4366 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4367 (sparc64nbsd_collect_fpregset): Likewise.
4368 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4369 (sparc64nbsd_gregmap): ... this.
4370 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4372 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4373 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4374 (sparc64obsd_gregmap): ... this.
4375 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4377 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4378 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4379 (sparc32nbsd_gregmap): ... this.
4380 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4383 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4385 * score-tdep.c (score7_linux_gregset): New static regset
4387 (score7_linux_regset_from_core_section): Remove dynamic regset
4389 (score_gdbarch_init): Drop allocation of tdep structure.
4390 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4392 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4394 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4396 (am33_regset_from_core_section): Remove dynamic regset
4399 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4401 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4402 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4404 (mips_linux_regset_from_core_section): Remove dynamic regset
4406 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4407 'gregset64', 'fpregset', and 'fpregset64'.
4408 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4409 deleted tdep fields.
4411 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4413 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4415 (amd64_regset_from_core_section): Remove dynamic regset
4417 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4419 (amd64obsd_regset_from_core_section): Remove dynamic regset
4421 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4423 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4424 x86-common regset supply function.
4425 * i386-tdep.c (i386_collect_gregset): Make static.
4426 (i386_gregset): New global regset structure.
4427 (i386_fpregset, i386_xstateregset): New static regset structures.
4428 (i386_regset_from_core_section): Remove dynamic regset
4430 (i386_gdbarch_init): Remove initialization of tdep fields
4431 'gregset', 'fpregset', and 'xstateregset'.
4432 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4433 'fpregset', and 'xstateregset'.
4434 (i386_collect_gregset): Remove prototype.
4435 (i386_gregset): New declaration.
4436 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4438 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4443 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4444 (arm_linux_vfpregset): New static regset structures.
4445 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4447 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4448 and 'vfpregset' fields.
4450 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4452 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4453 (aarch64_linux_fpregset): New static regset structures.
4454 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4455 of regset structures.
4456 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4459 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4461 * regset.h (struct regset): Remove gdbarch field.
4462 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4463 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4464 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4466 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4467 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4468 (ppc32_linux_vsxregset): Likewise.
4469 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4470 via the regcache instead of the regset.
4471 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4472 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4473 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4474 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4479 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4480 Constify structures.
4481 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4482 (alphanbsd_aout_gregset): Likewise.
4483 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4484 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4486 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4487 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4489 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4490 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4491 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4492 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4493 * m88k-tdep.c (m88k_gregset): Likewise.
4494 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4495 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4496 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4497 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4498 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4499 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4500 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4501 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4502 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4504 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4505 * sh-tdep.h (sh_corefile_gregset): Likewise.
4506 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4507 * vax-tdep.c (vax_gregset): Likewise.
4509 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4511 Fix TLS access for -static -pthread.
4512 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4513 (try_thread_db_load_1): Initialize it.
4514 (thread_db_get_thread_local_address): Call it if LM is zero.
4515 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4516 * target.h (struct target_ops) (to_get_thread_local_address): Add
4517 load_module_addr comment.
4519 2014-05-21 Pedro Alves <palves@redhat.com>
4521 * dcache.c (dcache_read_memory_partial): If reading the cache line
4522 fails, fallback to reading just the memory the caller wanted.
4524 2014-05-20 Doug Evans <dje@google.com>
4526 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4527 instead of get_current_arch.
4529 2014-05-20 Pedro Alves <palves@redhat.com>
4531 * NEWS: Mention that compare-sections now works with all targets.
4533 * remote.c (PACKET_qCRC): New enum value.
4534 (remote_verify_memory): Don't send qCRC if the target has no
4535 execution. Use packet_support/packet_ok. If the target doesn't
4536 support the qCRC packet, fallback to a deep memory copy.
4537 (compare_sections_command): Say "target image" instead of "remote
4539 (_initialize_remote): Add PACKET_qCRC to the list of config
4540 packets that have no associated command. Extend comment.
4541 * target.c (simple_verify_memory, default_verify_memory): New
4543 * target.h (struct target_ops) <to_verify_memory>: Default to
4544 default_verify_memory.
4545 (simple_verify_memory): New declaration.
4546 * target-delegates.c: Regenerate.
4548 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4550 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4552 2014-05-20 Hui Zhu <hui@codesourcery.com>
4553 Yao Qi <yao@codesourcery.com>
4556 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4557 and change address of sp and pc.
4559 2014-05-19 Tom Tromey <tromey@redhat.com>
4561 * gdbtypes.c (rank_function): Use XNEWVEC.
4562 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4564 2014-05-19 Doug Evans <dje@google.com>
4566 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4567 build_type_unit_groups and moved closer to only caller. Remove
4568 arguments. All references updated. Remove outdated .gdb_index
4570 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4571 build_type_psymtabs_1.
4573 2014-05-19 Doug Evans <dje@google.com>
4575 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4576 n_type_unit_groups, all_type_unit_groups. All uses removed.
4577 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4578 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4579 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4580 (add_type_unit_group_to_table): Delete.
4582 2014-05-19 Doug Evans <dje@google.com>
4584 * eval.c (evaluate_subexp_standard): Add some comments.
4586 2014-05-17 Doug Evans <xdje42@gmail.com>
4588 * progspace.c (remove_program_space): Delete, unused.
4589 * progspace.h (remove_program_space): Ditto.
4591 2014-05-17 Doug Evans <xdje42@gmail.com>
4593 * inferior.c (prune_inferiors): Fix comment.
4594 (remove_inferior_command): Call prune_program_spaces.
4596 2014-05-16 Doug Evans <dje@google.com>
4598 New command line option -D.
4600 * main.c (set_gdb_data_directory): New function.
4601 (captured_main): Recognize -D. Flag error for --data-directory "".
4602 Call set_gdb_data_directory.
4603 (print_gdb_help): Print --data-directory, -D.
4604 * main.h (set_gdb_data_directory): Declare.
4605 * top.c (staged_gdb_datadir): New static global.
4606 (set_gdb_datadir): Call set_gdb_data_directory
4607 (show_gdb_datadir): New function.
4608 (init_main): Update init of data-directory parameter.
4610 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4612 Import the "dirfd" gnulib module.
4613 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4614 * gnulib/aclocal.m4: Update.
4615 * gnulib/config.in: Update.
4616 * gnulib/configure: Update.
4617 * gnulib/import/Makefile.am: Update.
4618 * gnulib/import/Makefile.in: Update.
4619 * gnulib/import/dirfd.c: New.
4620 * gnulib/import/m4/dirfd.m4: New.
4621 * gnulib/import/m4/gnulib-cache.m4: Update.
4622 * gnulib/import/m4/gnulib-comp.m4: Update.
4624 2014-05-16 Pierre Muller <muller@sourceware.org>
4625 Yao Qi <yao@codesourcery.com>
4627 * valprint.c (print_wchar): Move the code on checking whether
4628 W is a printable wide char to the default branch of switch
4629 statement below. Call wchar_printable instead of gdb_iswprint.
4631 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4633 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4634 ldr.w and ldrd instructions.
4636 2014-05-15 Doug Evans <dje@google.com>
4638 * dwarf2read.c (read_structure_type): Delete outdated comments.
4640 2014-05-14 Tom Tromey <tromey@redhat.com>
4642 * macrocmd.c (print_macro_definition): Reindent.
4644 2014-05-13 Doug Evans <xdje42@gmail.com>
4646 * python/py-cmd.c (cmdpy_completer): Add comment.
4647 (completers): Make const.
4649 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4651 * infrun.c (resume): Remove should_resume (unused). Move up
4652 declaration of resume_ptid.
4654 2014-05-13 Tom Tromey <tromey@redhat.com>
4656 * language.h (unop_type_check): Remove.
4657 (binop_type_check): Don't declare.
4659 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4661 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4662 call to regcache_raw_collect.
4664 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4666 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4667 mi_console->quote as the quoting character.
4669 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4671 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4673 2014-04-29 Tom Tromey <tromey@redhat.com>
4675 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4676 "show debug varobj".
4678 2014-05-07 Kyle McMartin <kyle@redhat.com>
4680 Pushed by Joel Brobecker <brobecker@adacore.com>.
4681 * aarch64-tdep.c (aarch64_software_single_step): New function.
4682 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4683 with aarch64_software_single_step.
4685 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4689 2014-05-05 Keith Seitz <keiths@redhat.com>
4691 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4692 variable or history value is successfully parsed.
4694 2014-05-05 Yao Qi <yao@codesourcery.com>
4695 Pedro Alves <palves@redhat.com>
4697 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4698 address of blocks that intersects the requested range. Trim
4699 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4701 * ctf.c (ctf_xfer_partial): Likewise.
4703 2014-05-05 Yao Qi <yao@codesourcery.com>
4705 * printcmd.c (display_command): Remove the check to
4706 target_has_execution.
4708 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4710 * ppcobsd-nat.c: Include "obsd-nat.h".
4711 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4713 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4715 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4717 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4718 and 16-bit signed and unsigned arguments. Update comment.
4719 (stap_parse_probe_arguments): Extend code to handle such
4720 arguments. Use warning instead of complaint to notify about
4721 unrecognized bitness.
4723 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4725 PR breakpoints/16889
4726 * stap-probe.c (stap_parse_probe_arguments): Simplify
4727 check for non-prefixed probes (i.e., probes whose
4728 arguments do not start with "N@"). Always set the
4729 argument type to a sane value.
4731 2014-05-01 David Taylor <dtaylor@emc.com>
4733 * remote.c (compare_sections_command): Add -r option to compare
4734 all loadable read-only sections.
4736 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4738 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4739 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4741 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4742 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4743 Remove unused CORE_ADDR argument. Update all callers.
4745 2014-04-29 Pedro Alves <palves@redhat.com>
4747 * remote.c (struct packet_config) <detect>: Extend comment.
4748 (add_packet_config_cmd): Don't set the config's detect or support
4750 (init_all_packet_configs): Also initialize the config's 'detect'
4752 (reset_all_packet_configs_support): New function.
4753 (remote_open_1): Call reset_all_packet_configs_support instead of
4754 init_all_packet_configs.
4755 (_initialize_remote): Initialize all packet configs. Assert that
4756 all packets have an associated command, except a few known
4759 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4761 * dwarf2read.c (read_subrange_type): Handle dynamic
4762 DW_AT_lower_bound attributes.
4764 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4766 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4767 dynamic bounds before computing its upper bound.
4768 (ada_discrete_type_low_bound): Same as above with the lower bound.
4770 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4772 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4773 range types. Adjust the array handling implementation to
4774 take advantage of this change.
4775 (resolve_dynamic_range): New function, mostly extracted from
4776 resolve_dynamic_bounds.
4777 (resolve_dynamic_array): New function, mostly extracted from
4778 resolve_dynamic_bounds.
4779 (resolve_dynamic_bounds): Delete.
4780 (resolve_dynamic_type): Reimplement. Add handling of
4781 TYPE_CODE_RANGE types.
4783 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4785 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4786 handling of parallel ___XA types.
4788 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4790 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4791 unnecessary second call to static_unwrap_type.
4793 2014-04-27 Hui Zhu <hui@codesourcery.com>
4795 * stack.c (print_frame_info): Call do_gdb_disassembly with
4796 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4798 2014-04-26 Doug Evans <xdje42@gmail.com>
4800 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4802 2014-04-25 Pedro Alves <palves@redhat.com>
4805 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4806 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4807 and newline from built string.
4808 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4809 (linux_ptrace_attach_fail_reason): ... this.
4810 * linux-nat.c (linux_nat_attach): Adjust to use
4811 linux_ptrace_attach_fail_reason.
4813 2014-04-25 Pedro Alves <palves@redhat.com>
4815 * remote.c (struct remote_state): Remove multi_process_aware,
4816 non_stop_aware, cond_tracepoints, cond_breakpoints,
4817 breakpoint_commands, fast_tracepoints, static_tracepoints,
4818 install_in_trace, disconnected_tracing,
4819 enable_disable_tracepoints, string_tracing, and
4820 augmented_libraries_svr4_read fields.
4821 (remote_multi_process_p): Move further below in the file.
4822 (struct packet_config): Add comments.
4823 (update_packet_config): Delete function.
4824 (show_packet_config_cmd): Use packet_config_support.
4825 (add_packet_config_cmd): Use NULL as set callback.
4826 (packet_ok): "set remote foo-packet"-style commands no longer
4827 change config->supported -- adjust.
4828 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4829 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4830 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4831 (PACKET_QNonStop, PACKET_multiprocess_feature)
4832 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4833 (PACKET_DisconnectedTracing_feature)
4834 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4835 (set_remote_protocol_packet_cmd): Delete function.
4836 (packet_config_support, packet_support): New functions.
4837 (set_remote_protocol_Z_packet_cmd): Don't call
4838 update_packet_config.
4839 (remote_query_attached, remote_pass_signals)
4840 (remote_program_signals, remote_threads_info)
4841 (remote_threads_extra_info, remote_start_remote): Use
4843 (remote_start_remote): Use packet_config_support and
4845 (init_all_packet_configs): Set all packets to unknown support,
4846 instead of calling update_packet_config.
4847 (remote_check_symbols): Use packet_support.
4848 (remote_supported_packet): Unconditionally set the packet config's
4850 (remote_multi_process_feature, remote_non_stop_feature)
4851 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4852 (remote_breakpoint_commands_feature)
4853 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4854 (remote_install_in_trace_feature)
4855 (remote_disconnected_tracing_feature)
4856 (remote_enable_disable_tracepoint_feature)
4857 (remote_string_tracing_feature)
4858 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4859 (remote_protocol_features): Adjust to use remote_supported_packet
4860 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4861 "ConditionalTracepoints", "ConditionalBreakpoints",
4862 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4863 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4864 "EnableDisableTracepoints", and "tracenz".
4865 (remote_query_supported): Use packet_support.
4866 (remote_open_1): Adjust.
4867 (extended_remote_attach_1): Use packet_support. Switch on the
4868 result of packet_ok instead of checking whether the packet ended
4870 (remote_vcont_resume): Use packet_support.
4871 (remote_resume, remote_stop_ns, fetch_register_using_p)
4872 (remote_prepare_to_store, store_register_using_P)
4873 (check_binary_download, remote_write_bytes): Use packet_support.
4874 (remote_vkill): Use packet_support. Switch on the result of
4875 packet_ok instead of checking whether the packet ended up
4877 (extended_remote_supports_disable_randomization): Use
4879 (extended_remote_run): Switch on the result of packet_ok instead
4880 of checking whether the packet ended up disabled.
4881 (remote_insert_breakpoint, remote_remove_breakpoint)
4882 (remote_insert_watchpoint, remote_remove_watchpoint)
4883 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4885 (remote_search_memory): Use packet_config_support.
4886 (remote_get_thread_local_address, remote_get_tib_address)
4887 (remote_hostio_send_command, remote_can_execute_reverse): Use
4889 (remote_supports_cond_tracepoints)
4890 (remote_supports_cond_breakpoints)
4891 (remote_supports_fast_tracepoints)
4892 (remote_supports_static_tracepoints)
4893 (remote_supports_install_in_trace)
4894 (remote_supports_enable_disable_tracepoint)
4895 (remote_supports_string_tracing)
4896 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4897 the packet config says the feature is enabled or disabled.
4898 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4899 (remote_get_trace_status): Use packet_support.
4900 (remote_set_disconnected_tracing): Adjust to check whether the
4901 feature is enabled with packet_support.
4902 (remote_set_trace_buffer_size, remote_use_agent)
4903 (remote_can_use_agent, remote_supports_btrace): Use
4905 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4906 Use packet_config_support.
4907 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4908 the packet config says the feature is enabled or disabled.
4909 (set_range_stepping): Use packet_support.
4911 2014-04-25 Tom Tromey <tromey@redhat.com>
4913 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4916 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4918 * NEWS: Mention support for C99 variable length arrays.
4920 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4922 * ada-lang.c (standard_exc): Expand introductory comment.
4924 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4925 Walfred Tedeschi <walfred.tedeschi@intel.com>
4927 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4929 (amd64_linux_read_description): Add code to handle AVX512 xstate
4930 mask and return respective tdesc.
4931 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4932 and features/i386/x32-avx512-linux.c.
4933 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4934 (amd64_linux_core_read_description): Add code to handle AVX512
4935 xstate mask and return respective tdesc.
4936 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4937 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4939 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4940 (tdesc_amd64_avx512_linux): New prototype.
4941 (tdesc_x32_avx512_linux): Likewise.
4942 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4943 features/i386/x32-avx512.c.
4944 (amd64_ymm_avx512_names): New register names for pseudo
4946 (amd64_ymmh_avx512_names): New register names for raw registers
4948 (amd64_k_names): New register names for K registers.
4949 (amd64_zmmh_names): New register names for ZMM raw registers.
4950 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4951 (amd64_xmm_avx512_names): New register names for XMM16-31
4953 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4955 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4956 if feature is present.
4957 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4958 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4959 (AMD64_NUM_REGS): Adjust to new number of registers.
4960 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4961 registers supplied via XSTATE by AVX512 registers.
4962 (i386_linux_read_description): Add case for AVX512.
4963 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4964 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4965 (i386_linux_core_read_description): Add case for AVX512.
4966 (i386_linux_init_abi): Install supported register note section
4968 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4970 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4971 registers to be number of zmm7h + 1.
4972 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4973 * i386-tdep.c: Include features/i386/i386-avx512.c.
4974 (i386_zmm_names): Add ZMM pseudo register names array.
4975 (i386_zmmh_names): Add ZMM raw register names array.
4976 (i386_k_names): Add K raw register names array.
4977 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4978 registers. AVX512 has 16 more ZMM registers than there are YMM
4980 (i386_zmmh_regnum_p): Add function to look up register number of
4982 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4983 (i386_k_regnum_p): Likewise for K raw registers.
4984 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4985 registers added by AVX512.
4986 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4987 registers added by AVX512.
4988 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4990 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4991 (i386_pseudo_register_name): Add ZMM pseudo registers.
4992 (i386_zmm_type): Construct and return vector registers type for ZMM
4994 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4995 ZMM0-31 pseudo registers and K registers.
4996 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4997 and YMM16-31 registers from register cache.
4998 (i386_pseudo_register_write): Add code to write K, ZMM and
5000 (i386_register_reggroup_p): Add code to include/exclude AVX512
5001 registers in/from respective register groups.
5002 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5003 registers if feature is present in xcr0.
5004 (i386_gdbarch_init): Add code to initialize AVX512 feature
5005 variables in tdep structure, wire in pseudo registers and call
5006 initialize_tdesc_i386_avx512.
5007 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5009 (i386_regnum): Add AVX512 registers.
5010 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5011 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5012 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5013 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5015 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5016 (i386_ymm_avx512_regnum_p): Likewise.
5017 (i386_k_regnum_p): Likewise.
5018 (i386_zmm_regnum_p): Likewise.
5019 (i386_zmmh_regnum_p): Likewise.
5020 * i387-tdep.c : Update year in copyright notice.
5021 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5023 (XSAVE_YMM_AVX512_ADDR): New macro.
5024 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5026 (XSAVE_XMM_AVX512_ADDR): New macro.
5027 (xsave_avx512_k_offset): New table for K register offsets in
5029 (XSAVE_AVX512_K_ADDR): New macro.
5030 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5032 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5033 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5035 (i387_collect_xsave): Add code to collect AVX512 registers from
5037 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5038 of XMM16-31 registers.
5039 (I387_NUM_K_REGS): New define for number of K registers.
5040 (I387_K0_REGNUM): New define for K0 register number.
5041 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5042 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5043 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5045 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5046 (I387_XMM16_REGNUM): New define for XMM16 register number.
5047 (I387_YMM0_REGNUM): New define for YMM0 register number.
5048 (I387_KEND_REGNUM): New define for last K register number.
5049 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5050 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5052 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5054 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5056 * features/Makefile: Add AVX512 related files.
5057 * features/i386/32bit-avx512.xml: New file.
5058 * features/i386/64bit-avx512.xml: Likewise.
5059 * features/i386/amd64-avx512-linux.c: Likewise.
5060 * features/i386/amd64-avx512-linux.xml: Likewise.
5061 * features/i386/amd64-avx512.c: Likewise.
5062 * features/i386/amd64-avx512.xml: Likewise.
5063 * features/i386/i386-avx512-linux.c: Likewise.
5064 * features/i386/i386-avx512-linux.xml: Likewise.
5065 * features/i386/i386-avx512.c: Likewise.
5066 * features/i386/i386-avx512.xml: Likewise.
5067 * features/i386/x32-avx512-linux.c: Likewise.
5068 * features/i386/x32-avx512-linux.xml: Likewise.
5069 * features/i386/x32-avx512.c: Likewise.
5070 * features/i386/x32-avx512.xml: Likewise.
5071 * regformats/i386/amd64-avx512-linux.dat: New file.
5072 * regformats/i386/amd64-avx512.dat: Likewise.
5073 * regformats/i386/i386-avx512-linux.dat: Likewise.
5074 * regformats/i386/i386-avx512.dat: Likewise.
5075 * regformats/i386/x32-avx512-linux.dat: Likewise.
5076 * regformats/i386/x32-avx512.dat: Likewise.
5077 * NEWS: Add note about new support for AVX512.
5080 2014-04-23 Pedro Alves <palves@redhat.com>
5082 * breakpoint.c (insert_bp_location): Tolerate errors if the
5083 breakpoint is set in a user-loaded objfile.
5084 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5085 location is marked shlib_disabled. If the breakpoint is set in a
5086 user-loaded objfile is a GDB-side memory breakpoint, validate it
5087 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5088 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5090 * mem-break.c (memory_validate_breakpoint): New function.
5091 * objfiles.c (userloaded_objfile_contains_address_p): New
5093 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5094 * target.h (memory_validate_breakpoint): New declaration.
5096 2014-04-23 Pedro Alves <palves@redhat.com>
5098 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5099 the breakpoint is set in a shared library, only suppress
5100 errors for software breakpoints, not hardware breakpoints.
5102 2014-04-22 Pedro Alves <palves@redhat.com>
5104 * infrun.c (schedlock_applies): New function, factored out from
5105 find_thread_needs_step_over.
5106 (find_thread_needs_step_over): Use it.
5107 (switch_back_to_stepped_thread): Always clear trap_expected if the
5108 step over is finished. Return early if scheduler locking applies.
5109 Look for the stepping thread and a potential step-over thread with
5111 (currently_stepping_or_nexting_callback): Delete.
5113 2014-04-22 Nick Clifton <nickc@redhat.com>
5115 * NEWS: Mention that ARM sim now supports tracing.
5117 2014-04-22 Yao Qi <yao@codesourcery.com>
5119 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5121 * tracefile.c (tracefile_fetch_registers): ... it. New
5123 * tracefile.h (tracefile_fetch_registers): Declare.
5124 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5125 tracefile_fetch_registers.
5127 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5130 * windows-nat.c (thread_rec): Don't display a warning when
5131 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5132 fails for any reason, set th->suspended to -1, so that we don't
5133 try to resume such a thread. Also, don't return NULL in these
5134 cases, to avoid completely ruin the session due to "PC register is
5135 not available" error.
5136 (do_windows_fetch_inferior_registers): Check errors in
5137 GetThreadContext call.
5138 (windows_continue): Accept an additional argument KILLED; if not
5139 zero, ignore errors in the SetThreadContext call, since the
5140 inferior was killed and is shutting down.
5141 (windows_resume, get_windows_debug_event)
5142 (windows_create_inferior, windows_mourn_inferior)
5143 (windows_kill_inferior): All callers of windows_continue changed
5144 to adjust to its new calling sequence.
5146 2014-04-19 Yao Qi <yao@codesourcery.com>
5148 * ctf.c (ctf_open): Call post_create_inferior.
5150 2014-04-19 Yao Qi <yao@codesourcery.com>
5152 * ctf.c (handle_id): New static variable.
5153 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5154 value. Get the declaration of event "register" and get length
5155 of field "contents".
5157 2014-04-19 Yao Qi <yao@codesourcery.com>
5159 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5161 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5163 * valops.c (oload_method_static): Remove unnecessary argument
5164 METHOD. Update all callers.
5166 2014-04-18 Pedro alves <palves@redhat.com>
5167 Tom Tromey <tromey@redhat.com>
5170 * frame.c (get_prev_frame_1): Rename to ...
5171 (get_prev_frame_always): ... this, and make extern. Adjust.
5172 (skip_artificial_frames): Use get_prev_frame_always.
5173 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5174 (get_frame_unwind_stop_reason): Adjust to rename.
5175 * frame.h (get_prev_frame_always): Declare.
5176 * inline-frame.c: Include frame.h.
5177 (inline_frame_this_id): Use get_prev_frame_always.
5179 2014-04-18 Tristan Gingold <gingold@adacore.com>
5181 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5182 code by using bfd_mach_o_get_base_address.
5184 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5186 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5187 (spu_ax_pseudo_register_collect): New function.
5188 (spu_ax_pseudo_register_push_stack): Likewise.
5189 (spu_dwarf_reg_to_regnum): Likewise.
5190 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5192 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5194 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5195 Replace FRAME argument with FRAME_ID.
5196 * gdbarch.c, gdbarch.h: Regenerate.
5197 * findvar.c (default_value_from_register): Add GDBARCH argument;
5198 replace FRAME by FRAME_ID. No longer call get_frame_id.
5199 (value_from_register): Update call to gdbarch_value_from_register.
5200 * value.h (default_value_from_register): Update prototype.
5201 * s390-linux-tdep.c (s390_value_from_register): Update interface
5202 and call to default_value_from_register.
5203 * spu-tdep.c (spu_value_from_register): Likewise.
5205 * findvar.c (address_from_register): Remove TYPE argument.
5206 Do not call value_from_register; use gdbarch_value_from_register
5207 with null_frame_id instead.
5208 * value.h (address_from_register): Update prototype.
5209 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5210 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5211 address_from_register interface change.
5213 2014-04-17 Yao Qi <yao@codesourcery.com>
5215 * gdbtypes.h: Update comments to link to types and macros'
5218 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5220 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5222 2014-04-16 Keith Seitz <keiths@redhat.com>
5225 * dwarf2read.c (skip_one_die): Check that all relative-offset
5226 sibling DIEs fall within range of the current reader's buffer.
5227 (read_partial_die): Likewise.
5229 2014-04-16 Keith Seitz <keiths@redhat.com>
5232 * cp-namespace.c (lookup_symbol_file): If the type name of
5233 `this' is NULL, return immediately.
5235 2014-04-14 Keith Seitz <keiths@redhat.com>
5238 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5239 from symbol_matches_domain in symtab.c. All local callers
5240 of symbol_matches_domain updated.
5241 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5242 search STRUCT_DOMAIN.
5243 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5244 independently. standard_lookup will do that automatically.
5245 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5246 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5247 (cp_lookup_symbol_in_namespace): Likewise.
5248 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5249 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5250 may return a STRUCT_DOMAIN match.
5251 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5252 * cp-support.c: Include language.h.
5253 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5255 * psymtab.c (match_partial_symbol): Compare the requested
5256 domain with the symbol's domain directly.
5257 (lookup_partial_symbol): Likewise.
5258 * symtab.c (lookup_symbol_in_language): Explain when/why
5259 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5260 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5261 appropriate languages.
5262 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5263 and moved to ada-lang.c
5264 (lookup_block_symbol): Explain that this function only returns
5265 symbol matching the requested DOMAIN.
5266 Compare the requested domain with the symbol's domain directly.
5267 (iterate_over_symbols): Compare the requested domain with the
5268 symbol's domain directly.
5269 * symtab.h (symbol_matches_domain): Remove.
5271 2014-04-14 Tom Tromey <tromey@redhat.com>
5274 * c-exp.y (type_aggregate_p): New function.
5275 (qualified_name, classify_inner_name): Use it.
5276 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5277 and TYPE_TARGET_TYPE of an enum type.
5278 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5280 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5281 handle TYPE_DECLARED_CLASS.
5282 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5284 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5285 * valops.c (enum_constant_from_type): New function.
5286 (value_aggregate_elt): Use it.
5287 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5290 2014-04-14 Tom Tromey <tromey@redhat.com>
5292 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5293 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5295 * value.h (value_aggregate_elt): Update.
5297 2014-04-14 Tom Tromey <tromey@redhat.com>
5299 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5301 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5303 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5304 (evaluate_subexp_standard): Pass noside argument.
5305 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5306 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5307 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5308 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5309 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5311 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5313 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5314 points to a constant blob.
5316 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5318 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5319 property and store it as the high bound and flag the range accordingly.
5320 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5321 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5322 * gdbtypes.h (enum range_flags): New enum.
5323 (struct range_bounds): Add flags member.
5325 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5327 * c-typeprint.c (c_type_print_varspec_suffix): Added
5328 check for not yet resolved high bound. If unresolved, print
5329 "variable length" string to the console instead of random
5332 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5334 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5336 (ada_template_to_fixed_record_type_1): Likewise.
5337 (ada_to_fixed_type_1): Likewise.
5338 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5339 (cp_print_value): Likewise.
5340 * d-valprint.c (dynamic_array_type): Likewise.
5341 * findvar.c (address_of_variable): Likewise.
5342 * jv-valprint.c (java_value_print): Likewise.
5343 * valops.c (value_ind): Likewise.
5344 * value.c (coerce_ref): Likewise.
5346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5348 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5349 value and retrieve the dynamic type size.
5351 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5353 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5354 passed to sizeof is dynamic evaluate the argument to compute the length.
5356 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5357 Joel Brobecker <brobecker@adacore.com>
5359 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5360 (dwarf2_evaluate_property): New function.
5361 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5362 * dwarf2read.c (attr_to_dynamic_prop): New function.
5363 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5365 * gdbtypes.c: Include dwarf2loc.h.
5366 (is_dynamic_type): New function.
5367 (resolve_dynamic_type): New function.
5368 (resolve_dynamic_bounds): New function.
5369 (get_type_length): New function.
5370 (check_typedef): Use get_type_length to compute type length.
5371 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5372 (TYPE_LOW_BOUND_KIND): New macro.
5373 (is_dynamic_type): New function prototype.
5374 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5375 to resolve dynamic properties of the type. Update comment.
5376 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5378 2014-04-14 Richard Henderson <rth@redhat.com>
5380 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5382 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5383 Doug Evans <xdje42@gmail.com>
5385 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5386 dereference TYPE_CODE_REF values.
5388 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5390 Revert the following changes due to regressions:
5392 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5393 (dwarf2_evaluate_property): New function.
5394 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5395 * dwarf2read.c (attr_to_dynamic_prop): New function.
5396 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5398 * gdbtypes.c: Include dwarf2loc.h.
5399 (is_dynamic_type): New function.
5400 (resolve_dynamic_type): New function.
5401 (resolve_dynamic_bounds): New function.
5402 (get_type_length): New function.
5403 (check_typedef): Use get_type_length to compute type length.
5404 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5405 (TYPE_LOW_BOUND_KIND): New macro.
5406 (is_dynamic_type): New function prototype.
5407 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5408 to resolve dynamic properties of the type. Update comment.
5409 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5411 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5412 passed to sizeof is dynamic evaluate the argument to compute the length.
5414 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5415 value and retrieve the dynamic type size.
5417 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5418 (ada_template_to_fixed_record_type_1): Likewise.
5419 (ada_to_fixed_type_1): Likewise.
5420 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5421 (cp_print_value): Likewise.
5422 * d-valprint.c (dynamic_array_type): Likewise.
5423 * eval.c (evaluate_subexp_with_coercion): Likewise.
5424 * findvar.c (address_of_variable): Likewise.
5425 * jv-valprint.c (java_value_print): Likewise.
5426 * valops.c (value_ind): Likewise.
5427 * value.c (coerce_ref): Likewise.
5429 * c-typeprint.c (c_type_print_varspec_suffix): Added
5430 check for not yet resolved high bound. If unresolved, print
5431 "variable length" string to the console instead of random
5434 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5435 property and store it as the high bound and flag the range accordingly.
5436 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5437 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5438 * gdbtypes.h (enum range_flags): New enum.
5439 (struct range_bounds): Add flags member.
5441 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5442 points to a constant blob.
5444 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5445 (evaluate_subexp_standard): Pass noside argument.
5446 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5447 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5448 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5449 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5450 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5452 2014-04-11 Keith Seitz <keiths@redhat.com>
5455 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5456 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5459 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5461 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5462 (evaluate_subexp_standard): Pass noside argument.
5463 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5464 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5465 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5466 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5467 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5469 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5471 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5472 points to a constant blob.
5474 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5476 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5477 property and store it as the high bound and flag the range accordingly.
5478 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5479 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5480 * gdbtypes.h (enum range_flags): New enum.
5481 (struct range_bounds): Add flags member.
5483 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5485 * c-typeprint.c (c_type_print_varspec_suffix): Added
5486 check for not yet resolved high bound. If unresolved, print
5487 "variable length" string to the console instead of random
5490 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5492 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5493 (ada_template_to_fixed_record_type_1): Likewise.
5494 (ada_to_fixed_type_1): Likewise.
5495 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5496 (cp_print_value): Likewise.
5497 * d-valprint.c (dynamic_array_type): Likewise.
5498 * eval.c (evaluate_subexp_with_coercion): Likewise.
5499 * findvar.c (address_of_variable): Likewise.
5500 * jv-valprint.c (java_value_print): Likewise.
5501 * valops.c (value_ind): Likewise.
5502 * value.c (coerce_ref): Likewise.
5504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5506 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5507 value and retrieve the dynamic type size.
5509 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5511 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5512 passed to sizeof is dynamic evaluate the argument to compute the length.
5514 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5516 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5517 (dwarf2_evaluate_property): New function.
5518 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5519 * dwarf2read.c (attr_to_dynamic_prop): New function.
5520 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5522 * gdbtypes.c: Include dwarf2loc.h.
5523 (is_dynamic_type): New function.
5524 (resolve_dynamic_type): New function.
5525 (resolve_dynamic_bounds): New function.
5526 (get_type_length): New function.
5527 (check_typedef): Use get_type_length to compute type length.
5528 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5529 (TYPE_LOW_BOUND_KIND): New macro.
5530 (is_dynamic_type): New function prototype.
5531 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5532 to resolve dynamic properties of the type. Update comment.
5533 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5535 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5537 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5538 declaring high/low bounds and change uses accordingly. Call
5539 create_range_type instead of create_static_range_type.
5540 * gdbtypes.c (create_range_type): New function.
5541 (create_range_type): Convert bounds into struct bound_prop and pass
5542 them to create_range_type.
5543 * gdbtypes.h (struct bound_prop): New struct.
5544 (create_range_type): New function prototype.
5545 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5546 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5547 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5549 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5551 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5553 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5554 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5555 * ada-lang.c: All uses of create_range_type updated.
5556 * coffread.c: All uses of create_range_type updated.
5557 * dwarf2read.c: All uses of create_range_type updated.
5558 * f-exp.y: All uses of create_range_type updated.
5559 * m2-valprint.c: All uses of create_range_type updated.
5560 * mdebugread.c: All uses of create_range_type updated.
5561 * stabsread.c: All uses of create_range_type updated.
5562 * valops.c: All uses of create_range_type updated.
5563 * valprint.c: All uses of create_range_type updated.
5565 2014-04-10 Pedro Alves <palves@redhat.com>
5567 * breakpoint.c (single_step_breakpoints)
5568 (single_step_gdbarch): Move up in the file.
5569 (one_breakpoint_xfer_memory): New function, factored out from ...
5570 (breakpoint_xfer_memory): ... here. Also process single-step
5573 2014-04-09 Tristan Gingold <gingold@adacore.com>
5575 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5577 (darwin_decode_exception_message): Free port only after use.
5579 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5581 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5582 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5583 when setting the size of call_length.
5585 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5587 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5588 dereference TYPE_CODE_REF values.
5590 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5592 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5593 end of warning message.
5595 2014-04-03 Doug Evans <dje@google.com>
5597 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5598 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5600 2014-04-02 Alan Modra <amodra@gmail.com>
5602 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5603 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5604 (struct symbol_file_add_from_memory_args): Add size field.
5605 (find_vdso_size): New function.
5606 (add_vsyscall_page): Attempt to find vdso size.
5608 2014-04-01 Doug Evans <dje@google.com>
5610 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5612 2014-04-01 Tristan Gingold <gingold@adacore.com>
5614 * darwin-nat.c (darwin_encode_reply): Add prototype.
5615 (darwin_decode_exception_message): Reply to unknown inferiors.
5616 (darwin_decode_message): Handle message by id. Ignore message
5617 to unknown inferior.
5618 (darwin_wait): Discard unknown messages, add debug trace.
5620 2014-03-31 Doug Evans <dje@google.com>
5622 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5625 2014-03-31 Doug Evans <dje@google.com>
5627 New option "set print symbol-loading".
5629 * solib.c (solib_read_symbols): Only print symbol loading messages
5631 (solib_add): If symbol loading is in "brief" mode, notify user
5632 symbols are being loaded.
5633 (reload_shared_libraries_1): Ditto.
5634 * symfile.c (print_symbol_loading_off): New static global.
5635 (print_symbol_loading_brief): New static global.
5636 (print_symbol_loading_full): New static global.
5637 (print_symbol_loading_enums): New static global.
5638 (print_symbol_loading): New static global.
5639 (print_symbol_loading_p): New function.
5640 (symbol_file_add_with_addrs): Only print symbol loading messages
5642 (_initialize_symfile): Register "print symbol-loading" set/show
5644 * symfile.h (print_symbol_loading_p): Declare.
5646 2014-03-30 Doug Evans <xdje42@gmail.com>
5648 * infrun.c (set_last_target_status): New function.
5649 (handle_inferior_event): Call it.
5651 2014-03-30 Doug Evans <xdje42@gmail.com>
5653 * inferior.h (enum stop_kind): Improve comment.
5655 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5657 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5658 a reference, strip the reference layer before calling
5659 the lang_ops value_has_mutated callback.
5661 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5663 Remove some globals from our parser.
5664 * language.c (unk_lang_parser): Add "struct parser_state"
5666 * language.h (struct language_defn) <la_parser>: Likewise.
5667 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5668 (initialize_expout): Add "struct parser_state" argument.
5669 Rewrite function to use the parser state.
5670 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5671 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5672 write_exp_elt_longcst, write_exp_elt_dblcst,
5673 write_exp_elt_decfloatcst, write_exp_elt_type,
5674 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5675 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5676 write_dollar_variable): Likewise.
5677 (parse_exp_in_context_1): Use parser state.
5678 (insert_type_address_space): Add "struct parser_state" argument.
5680 (increase_expout_size): New function.
5681 * parser-defs.h: Forward declare "struct language_defn" and
5682 "struct parser_state".
5683 (expout, expout_size, expout_ptr): Remove extern declarations.
5684 (parse_gdbarch, parse_language): Rewrite macro declarations to
5685 accept the parser state.
5686 (struct parser_state): New struct.
5687 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5688 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5689 write_exp_elt_decfloatcst, write_exp_elt_type,
5690 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5691 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5692 write_exp_msymbol, write_dollar_variable,
5693 mark_struct_expression, insert_type_address_space): Add "struct
5694 parser_state" argument.
5695 (increase_expout_size): New function.
5696 * utils.c (do_clear_parser_state): New function.
5697 (make_cleanup_clear_parser_state): Likewise.
5698 * utils.h (make_cleanup_clear_parser_state): New function
5700 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5701 Update calls to write_exp* in order to pass the parser state.
5702 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5703 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5704 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5705 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5706 * stap-probe.c (stap_parse_register_operand): Likewise.
5707 (stap_parse_single_operand): Likewise.
5708 (stap_parse_argument_1): Likewise.
5709 (stap_parse_argument): Use parser state.
5710 * stap-probe.h: Include "parser-defs.h".
5711 (struct stap_parse_info) <pstate>: New field.
5712 * c-exp.y (parse_type): Rewrite to use parser state.
5713 (yyparse): Redefine to c_parse_internal.
5714 (pstate): New global variable.
5715 (parse_number): Add "struct parser_state" argument.
5716 (write_destructor_name): Likewise.
5717 (type_exp): Update calls to write_exp* and similars in order to
5719 (exp1, exp, variable, qualified_name, space_identifier,
5720 typename, typebase): Likewise.
5721 (write_destructor_name, parse_number, lex_one_token,
5722 classify_name, classify_inner_name, c_parse): Add "struct
5723 parser_state" argument. Update function to use parser state.
5724 * c-lang.h: Forward declare "struct parser_state".
5725 (c_parse): Add "struct parser_state" argument.
5726 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5727 (yyparse): Redefine macro to ada_parse_internal.
5728 (pstate): New variable.
5729 (write_int, write_object_renaming, write_var_or_type,
5730 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5731 type_int, type_long, type_long_long, type_float, type_double,
5732 type_long_double, type_char, type_boolean, type_system_address):
5733 Add "struct parser_state" argument.
5734 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5735 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5736 var_or_type, aggregate, aggregate_component_list,
5737 positional_list, others, component_group,
5738 component_associations): Update calls to write_exp* and similar
5739 functions in order to use parser state.
5740 (ada_parse, write_var_from_sym, write_int,
5741 write_exp_op_with_string, write_object_renaming,
5742 find_primitive_type, write_selectors, write_ambiguous_var,
5743 write_var_or_type, write_name_assoc, type_int, type_long,
5744 type_long_long, type_float, type_double, type_long_double,
5745 type_char, type_boolean, type_system_address): Add "struct
5746 parser_state" argument. Adjust function to use parser state.
5747 * ada-lang.c (parse): Likewise.
5748 * ada-lang.h: Forward declare "struct parser_state".
5749 (ada_parse): Add "struct parser_state" argument.
5750 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5751 calls to both functions.
5752 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5754 (yyparse): Redefine macro to f_parse_internal.
5755 (pstate): New variable.
5756 (parse_number): Add "struct parser_state" argument.
5757 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5758 and similars in order to use parser state.
5759 (parse_number): Adjust code to use parser state.
5761 (f_parse): New function.
5762 * f-lang.h: Forward declare "struct parser_state".
5763 (f_parse): Add "struct parser_state" argument.
5764 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5766 (yyparse): Redefine macro for java_parse_internal.
5767 (pstate): New variable.
5768 (push_expression_name, push_expression_name, insert_exp): Add
5769 "struct parser_state" argument.
5770 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5771 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5772 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5773 PostIncrementExpression, PostDecrementExpression,
5774 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5775 UnaryExpressionNotPlusMinus, CastExpression,
5776 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5777 RelationalExpression, EqualityExpression, AndExpression,
5778 ExclusiveOrExpression, InclusiveOrExpression,
5779 ConditionalAndExpression, ConditionalOrExpression,
5780 ConditionalExpression, Assignment, LeftHandSide): Update
5781 calls to write_exp* and similars in order to use parser state.
5782 (parse_number): Ajust code to use parser state.
5784 (java_parse): New function.
5785 (push_variable): Add "struct parser_state" argument. Adjust
5786 code to user parser state.
5787 (push_fieldnames, push_qualified_expression_name,
5788 push_expression_name, insert_exp): Likewise.
5789 * jv-lang.h: Forward declare "struct parser_state".
5790 (java_parse): Add "struct parser_state" argument.
5791 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5793 (yyparse): Redefine macro to m2_parse_internal.
5794 (pstate): New variable.
5795 (type_exp, exp, fblock, variable, type): Update calls to
5796 write_exp* and similars to use parser state.
5798 (m2_parse): New function.
5799 * m2-lang.h: Forward declare "struct parser_state".
5800 (m2_parse): Add "struct parser_state" argument.
5801 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5802 * objc-lang.h: Forward declare "struct parser_state".
5803 (end_msglist): Add "struct parser_state" argument.
5804 * p-exp.y (parse_type): Rewrite macro to use parser state.
5805 (yyparse): Redefine macro to pascal_parse_internal.
5806 (pstate): New variable.
5807 (parse_number): Add "struct parser_state" argument.
5808 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5809 write_exp* and similars in order to use parser state.
5810 (parse_number, yylex): Adjust code to use parser state.
5811 (pascal_parse): New function.
5812 * p-lang.h: Forward declare "struct parser_state".
5813 (pascal_parse): Add "struct parser_state" argument.
5814 * go-exp.y (parse_type): Rewrite macro to use parser state.
5815 (yyparse): Redefine macro to go_parse_internal.
5816 (pstate): New variable.
5817 (parse_number): Add "struct parser_state" argument.
5818 (type_exp, exp1, exp, variable, type): Update calls to
5819 write_exp* and similars in order to use parser state.
5820 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5821 to use parser state.
5822 (go_parse): Likewise.
5823 * go-lang.h: Forward declare "struct parser_state".
5824 (go_parse): Add "struct parser_state" argument.
5826 2014-03-27 Doug Evans <dje@google.com>
5828 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5830 2014-03-27 Doug Evans <dje@google.com>
5832 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5833 Remove argument abbrev_section. All callers updated.
5835 2014-03-27 Doug Evans <dje@google.com>
5837 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5838 addr_base, ranges_base.
5840 2014-03-26 Keith Seitz <keiths@redhat.com>
5842 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5843 types, not VAR_DOMAIN.
5845 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5847 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5849 * features/nios2-linux.c: Regenerated.
5850 * features/nios2.c: Regenerated.
5852 2014-03-25 Pedro Alves <palves@redhat.com>
5854 * cli/cli-script.c (script_from_file): Force the interpreter to
5857 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5859 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5860 small stack allocation.
5862 2014-03-24 Tristan Gingold <gingold@adacore.com>
5864 * darwin-nat.c (exc_server): Remove unused prototype.
5865 (darwin_dump_message): Correctly display data on x86_64.
5866 (darwin_encode_reply): Fix style.
5867 Add comments and fix indentation.
5869 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5871 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5873 2014-03-22 Doug Evans <xdje42@gmail.com>
5875 * infcmd.c: Whitespace fixes.
5876 (interrupt_command): Merge two function comments into one.
5878 2014-03-22 Doug Evans <xdje42@gmail.com>
5880 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5883 2014-03-22 Yao Qi <yao@codesourcery.com>
5885 * remote.c (target_read_live_memory): Remove.
5886 (memory_xfer_live_readonly_partial): Rename it to
5887 remote_xfer_live_readonly_partial. Remove argument 'object'.
5888 All callers updated. Call remote_read_bytes_1
5889 instead of target_read_live_memory.
5890 * tracepoint.c (set_traceframe_number): Remove.
5891 (make_cleanup_restore_traceframe_number): Likewise .
5892 * tracepoint.h (set_traceframe_number): Remove declaration.
5893 (make_cleanup_restore_traceframe_number): Likewise.
5895 2014-03-22 Yao Qi <yao@codesourcery.com>
5897 * remote.c (remote_read_bytes): Move code on reading from the
5899 (remote_read_bytes_1): ... here. New function.
5901 2014-03-22 Yao Qi <yao@codesourcery.com>
5903 * ctf.c (ctf_xfer_partial): Check the return value of
5904 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5905 return TARGET_XFER_UNAVAILABLE.
5906 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5907 * target.c (target_read_live_memory): Move it to remote.c.
5908 (memory_xfer_live_readonly_partial): Likewise.
5909 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5910 * remote.c (target_read_live_memory): Moved from target.c.
5911 (memory_xfer_live_readonly_partial): Likewise.
5912 (remote_read_bytes): Factored out from
5913 memory_xfer_partial_1.
5915 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5917 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5920 2014-03-21 Pedro Alves <palves@redhat.com>
5922 * infrun.c (normal_stop): Extend comment.
5924 2014-03-21 Hui Zhu <hui@codesourcery.com>
5925 Pedro Alves <palves@redhat.com>
5927 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5929 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5930 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5931 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5933 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5935 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5936 `z' formatted output modifier.
5938 2014-03-20 Tom Tromey <tromey@redhat.com>
5939 Sergio Durigan Junior <sergiodj@redhat.com>
5941 * probe.c (parse_probes): Turn assert into an ordinary error.
5942 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5943 exceptions when parsing probes. Rearrange the code for clarity.
5945 2014-03-20 Tom Tromey <tromey@redhat.com>
5948 * top.c (execute_command): Only dispatch events if the command
5951 2014-03-20 Tom Tromey <tromey@redhat.com>
5954 * infcall.c: Include event-top.h.
5955 (run_inferior_call): Call async_disable_stdin if needed.
5957 2014-03-20 Pedro Alves <palves@redhat.com>
5959 * infrun.c (prepare_to_proceed): Delete.
5960 (thread_still_needs_step_over): New function.
5961 (find_thread_needs_step_over): New function.
5962 (proceed): If the current thread needs a step-over, set its
5963 steping_over_breakpoint flag. Adjust to use
5964 find_thread_needs_step_over instead of prepare_to_proceed.
5965 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5966 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5968 (switch_back_to_stepped_thread): Step over breakpoints of all
5969 threads not the stepping thread, before switching back to the
5972 2014-03-20 Pedro Alves <palves@redhat.com>
5974 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5976 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5977 * infrun.c (saved_singlestep_ptid)
5978 (stepping_past_singlestep_breakpoint): Delete.
5979 (resume): Remove stepping_past_singlestep_breakpoint handling.
5980 (proceed): Store the prev_pc of the stepping thread too.
5981 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5983 (enum infwait_states): Delete infwait_thread_hop_state.
5984 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5986 (handle_inferior_event): Adjust.
5987 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5988 handling and the thread-hop code. Before removing single-step
5989 breakpoints, check whether the thread hit a single-step breakpoint
5990 of another thread. If it did, the trap is not a random signal.
5991 (switch_back_to_stepped_thread): If the event thread hit a
5992 single-step breakpoint, unblock it before switching to the
5993 stepping thread. Handle the case of the stepped thread having
5995 (keep_going): Handle the case of the current thread moving past a
5996 single-step breakpoint.
5998 2014-03-20 Pedro Alves <palves@redhat.com>
6001 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6002 are being stepped over.
6003 (breakpoint_address_match): Make extern.
6004 * breakpoint.h (breakpoint_address_match): New declaration.
6005 * inferior.h (stepping_past_instruction_at): New declaration.
6006 * infrun.c (struct step_over_info): New type.
6007 (step_over_info): New global.
6008 (set_step_over_info, clear_step_over_info)
6009 (stepping_past_instruction_at): New functions.
6010 (handle_inferior_event): Clear the step-over info when
6011 trap_expected is cleared.
6012 (resume): Remove now stale comment.
6013 (clear_proceed_status): Clear step-over info.
6014 (proceed): Adjust step-over handling to set or clear the step-over
6015 info instead of removing all breakpoints.
6016 (handle_signal_stop): When setting up a thread-hop, don't remove
6018 (stop_stepping): Clear step-over info.
6019 (keep_going): Adjust step-over handling to set or clear step-over
6020 info and then always inserting breakpoints, instead of removing
6021 all breakpoints when stepping over one.
6023 2014-03-20 Pedro Alves <palves@redhat.com>
6025 * infrun.c (previous_inferior_ptid): Adjust comment.
6026 (deferred_step_ptid): Delete.
6027 (infrun_thread_ptid_changed, prepare_to_proceed)
6028 (init_wait_for_inferior): Adjust.
6029 (handle_signal_stop): Delete deferred_step_ptid handling.
6031 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 * defs.h (sync_quit_force_run): New declaration.
6035 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6036 * event-top.c (async_sigterm_handler): New declaration.
6037 (async_sigterm_token): New variable.
6038 (async_init_signals): Create also async_sigterm_token.
6039 (async_sigterm_handler): New function.
6040 (sync_quit_force_run): New variable.
6041 (handle_sigterm): Replace quit_force call by other calls.
6042 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6044 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6046 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6047 offset into SPE pseudo registers.
6049 2014-03-18 Pedro Alves <palves@redhat.com>
6052 * inferior.h (print_stop_event): Declare.
6053 * infrun.c (print_stop_event): New, factored out from ...
6054 (normal_stop): ... this.
6055 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6056 of bpstat_print/print_stack_frame.
6058 2014-03-17 Tom Tromey <tromey@redhat.com>
6060 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6062 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6064 * ada-lang.c (decode_constrained_packed_array): Perform a
6065 minimal coercion for reference with coerce_ref instead of
6068 2014-03-17 Tristan Gingold <gingold@adacore.com>
6070 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6071 (darwin_solib_create_inferior_hook): Emit a warning if version
6074 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6076 * python/py-value.c (get_field_flag): Cast flag_name argument to
6077 PyObject_GetAttrString to support Python 2.4.
6079 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6081 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6082 (Global Maintainers): Remove Jan Kratochvil.
6084 2014-03-14 Pedro Alves <palves@redhat.com>
6086 * inferior.h (terminal_ours_for_output): Rename to ...
6087 (child_terminal_ours_for_output): ... this.
6088 (terminal_save_ours): Rename to ...
6089 (child_terminal_save_ours): ... this.
6090 (terminal_ours): Rename to ...
6091 (child_terminal_ours): ... this.
6092 (terminal_inferior): Rename to ...
6093 (child_terminal_inferior): ... this.
6094 (terminal_init_inferior): Rename to ...
6095 (child_terminal_init_inferior): ... this.
6096 (terminal_init_inferior_with_pgrp): Rename to ...
6097 (child_terminal_init_inferior_with_pgrp): ... this.
6098 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6099 (child_terminal_init_with_pgrp): ... this.
6100 (terminal_save_ours): Rename to ...
6101 (child_terminal_save_ours): ... this.
6102 (terminal_init_inferior): Rename to ...
6103 (child_terminal_init): ... this. Adjust.
6104 (terminal_inferior): Rename to ...
6105 (child_terminal_inferior): ... this.
6106 (terminal_ours_for_output): Rename to ...
6107 (child_terminal_ours_for_output): ... this. Adjust.
6108 (terminal_ours): Rename to ...
6109 (child_terminal_ours): ... this.
6110 (terminal_ours_1): Rename to ...
6111 (child_terminal_ours_1): ... this. Adjust.
6112 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6113 * windows-nat.c (do_initial_windows_stuff): Adjust.
6114 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6115 (gnu_terminal_init): ... this. Adjust.
6116 (gnu_target): Adjust.
6117 * inf-child.c (inf_child_target): Adjust.
6119 2014-03-13 Doug Evans <xdje42@gmail.com>
6122 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6125 2014-03-13 Doug Evans <xdje42@gmail.com>
6127 * value.c (record_latest_value): Call release_value_or_incref
6128 instead of release_value.
6130 2014-03-13 Pedro Alves <palves@redhat.com>
6132 * procfs.c (procfs_target): Don't override to_shortname,
6133 to_longname or to_doc.
6135 2014-03-13 Pedro Alves <palves@redhat.com>
6137 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6138 Unix in user visible strings.
6140 2014-03-12 Stan Shebs <stan@codesourcery.com>
6142 * gdbtypes.h: Annotate comments for Doxygen, add a page
6143 block comment with some general info.
6145 2014-03-12 Pedro Alves <palves@redhat.com>
6147 * infcmd.c (prepare_execution_command): New function, factored out
6148 from several execution commands.
6149 (run_command_1, continue_command, step_1, jump_command)
6150 (signal_command, until_command, advance_command, finish_command)
6151 (attach_command): Use prepare_execution_command.
6153 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6155 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6158 (struct arm_linux_thread_points): Removed.
6159 (struct arm_linux_process_info): New.
6160 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6161 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6162 (arm_linux_find_breakpoints_by_tid): Removed.
6163 (struct arch_lwp_info): New.
6164 (arm_linux_find_process_pid): New functions.
6165 (arm_linux_add_process): New functions.
6166 (arm_linux_process_info_get): New functions.
6167 (arm_linux_forget_process): New function.
6168 (arm_linux_get_debug_reg_state): New function.
6169 (struct update_registers_data): New.
6170 (update_registers_callback): New function.
6171 (arm_linux_insert_hw_breakpoint1): Updated.
6172 (arm_linux_remove_hw_breakpoint1): Updated.
6173 (arm_linux_insert_hw_breakpoint): Updated.
6174 (arm_linux_remove_hw_breakpoint): Updated.
6175 (arm_linux_insert_watchpoint): Updated.
6176 (arm_linux_remove_watchpoint): Updated.
6177 (arm_linux_new_thread): Updated.
6178 (arm_linux_prepare_to_resume): New function.
6179 (arm_linux_new_fork): New function.
6180 (_initialize_arm_linux_nat): Updated.
6182 2014-03-12 Pedro Alves <palves@redhat.com>
6184 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6186 2014-03-12 Tom Tromey <tromey@redhat.com>
6188 * inf-child.c (return_zero): New function.
6189 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6190 * aix-thread.c (aix_thread_inferior_created): New function.
6191 (aix_thread_attach): Remove.
6192 (init_aix_thread_ops): Don't set to_attach.
6193 (_initialize_aix_thread): Register inferior_created observer.
6194 * corelow.c (init_core_ops): Don't set to_attach or
6196 * exec.c (init_exec_ops): Don't set to_attach or
6198 * infcmd.c (run_command_1): Use find_run_target. Make direct
6200 (attach_command): Use find_attach_target. Make direct target
6202 * record-btrace.c (init_record_btrace_ops): Don't set
6204 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6206 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6207 set to_create_inferior.
6208 * target.c (complete_target_initialization): Add assertion.
6209 (target_create_inferior): Remove.
6210 (find_default_attach, find_default_create_inferior): Remove.
6211 (find_attach_target, find_run_target): New functions.
6212 (find_default_is_async_p, find_default_can_async_p)
6213 (target_supports_non_stop, target_attach): Remove.
6214 (init_dummy_target): Don't set to_create_inferior or
6215 to_supports_non_stop.
6216 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6217 TARGET_DEFAULT_FUNC.
6218 <to_create_inferior>: Add comment.
6219 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6220 TARGET_DEFAULT_RETURN.
6221 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6222 (find_attach_target, find_run_target): Declare.
6223 (target_create_inferior): Remove.
6224 (target_has_execution_1): Update comment.
6225 (target_supports_non_stop): Remove.
6226 * target-delegates.c: Rebuild.
6228 2014-03-12 Pedro Alves <palves@redhat.com>
6230 * inf-child.h: Update comment to not mention Unix.
6232 2014-03-12 Pedro Alves <palves@redhat.com>
6234 * inf-child.c: Update top comment to not mention Unix. Add
6235 generic comment describing how this target is meant to be used.
6236 (inf_child_post_attach, inf_child_post_startup_inferior)
6237 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6240 2014-03-12 Pedro Alves <palves@redhat.com>
6242 * nto-procfs.c: Include inf-child.h.
6243 (procfs_ops): Delete global.
6244 (procfs_can_run): Delete method.
6245 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6246 target pointer instead of referencing procfs_ops.
6247 (procfs_prepare_to_store): Delete.
6248 (init_procfs_ops): Delete function.
6249 (procfs_target): New function, based on init_procfs_ops, but
6250 inherit inf_child_target.
6251 (_initialize_procfs): Use procfs_target.
6253 2014-03-12 Pedro Alves <palves@redhat.com>
6255 * windows-nat.c: Include inf-child.h.
6256 (windows_ops): Delete global.
6257 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6259 (init_windows_ops): Delete function.
6260 (windows_target): New function, based on init_windows_ops, but
6261 inherit inf_child_target.
6262 (_initialize_windows_nat): Use windows_target. Install x86
6263 specific target methods here.
6265 2014-03-10 Doug Evans <xdje42@gmail.com>
6267 * guile/guile.c (call_initialize_gdb_module): New function.
6268 (initialize_guile): Replace call to scm_init_guile with call to
6271 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6273 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6274 in call to TYPE_CODE macro.
6276 2014-03-10 Jerome Guitton <guitton@adacore.com>
6278 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6279 Resolve tagged types to full view.
6281 2014-03-10 Hui Zhu <hui@codesourcery.com>
6283 * target.h (target_insert_breakpoint): Remove "hardware" from its
6286 2014-03-07 Doug Evans <dje@google.com>
6288 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6290 2014-03-07 Doug Evans <dje@google.com>
6292 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6293 Remove unused local comp_dir_attr. Assert exactly one of
6294 stub_comp_unit_die, stub_comp_dir is non-NULL.
6296 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6298 * target.h (complete_target_initialization, add_target):
6301 2014-03-07 Pedro Alves <palves@redhat.com>
6303 * go32-nat.c: Include inf-child.h.
6304 (go32_ops): Delete global.
6305 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6307 (go32_create_inferior): Push the passed in target pointer instead
6308 of referencing go32_ops.
6309 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6310 (go32_target): New function, based on init_go32_ops, but inherit
6312 (_initialize_go32_nat): Use go32_target. Move parts of
6315 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6317 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6318 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6319 SYMBOL_VALUE_ADDRESS.
6320 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6322 2014-03-06 Yao Qi <yao@codesourcery.com>
6324 * breakpoint.c (get_tracepoint_by_number): Remove argument
6325 optional_p. All callers updated. Adjust comments. Update
6327 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6329 2014-03-06 Yao Qi <yao@codesourcery.com>
6331 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6332 early if get_number returns zero. Use 'p' instead of 'args'.
6334 2014-03-06 Yao Qi <yao@codesourcery.com>
6336 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6339 2014-03-06 Yao Qi <yao@codesourcery.com>
6341 PR breakpoints/16508
6342 * tracepoint.c (check_trace_running): New function.
6343 (trace_find_command): Move code to check_trace_running and
6344 call check_trace_running.
6345 (trace_find_pc_command): Likewise.
6346 (trace_find_tracepoint_command): Likewise.
6347 (trace_find_line_command): Likewise.
6348 (trace_find_range_command): Likewise.
6349 * tracepoint.h (check_trace_running): Likewise.
6350 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6352 2014-03-06 Yao Qi <yao@codesourcery.com>
6354 * target.h (struct target_ops) <to_traceframe_info>: Use
6355 TARGET_DEFAULT_NORETURN (tcomplain ()).
6356 * target-delegates.c: Regenerated.
6358 2014-03-05 Pedro Alves <palves@redhat.com>
6361 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6362 void. Update comment.
6363 (dcache_xfer_memory): Delete.
6364 (dcache_read_memory_partial): New, based on the read bits of
6366 (dcache_update): Add status parameter. Use ULONGEST for len, and
6367 adjust. Discard cache lines if the reason for the update was
6369 * dcache.h (dcache_xfer_memory): Delete declaration.
6370 (dcache_read_memory_partial): New declaration.
6371 (dcache_update): Update prototype.
6372 * target.c (raw_memory_xfer_partial): Update the dcache here.
6373 (memory_xfer_partial_1): Don't handle dcache writes here.
6375 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6377 * remote-sim.c (gdbsim_load): Add const to prog.
6379 2014-03-03 Tom Tromey <tromey@redhat.com>
6381 * elfread.c (probe_key): Change to bfd_data.
6382 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6383 now per-BFD, not per-objfile.
6384 * stap-probe.c (stap_probe_destroy): Update comment.
6385 (handle_stap_probe): Allocate on the per-BFD obstack.
6387 2014-03-03 Tom Tromey <tromey@redhat.com>
6389 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6390 * breakpoint.c (create_longjmp_master_breakpoint): Use
6392 (add_location_to_breakpoint, bkpt_probe_insert_location)
6393 (bkpt_probe_remove_location): Update.
6394 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6395 * elfread.c (elf_symfile_relocate_probe): Remove.
6396 (elf_probe_fns): Update.
6397 (insert_exception_resume_breakpoint): Change type of "probe"
6398 parameter to bound_probe.
6399 (check_exception_resume): Update.
6400 * objfiles.c (objfile_relocate1): Don't relocate probes.
6401 * probe.c (bound_probe_s): New typedef.
6402 (parse_probes): Use get_probe_address. Set sal's objfile.
6403 (find_probe_by_pc): Return a bound_probe.
6404 (collect_probes): Return a VEC(bound_probe_s).
6405 (compare_probes): Update.
6406 (gen_ui_out_table_header_info): Change type of "probes"
6408 (info_probes_for_ops): Update.
6409 (get_probe_address): New function.
6410 (probe_safe_evaluate_at_pc): Update.
6411 * probe.h (struct probe_ops) <get_probe_address>: New field.
6412 <set_semaphore, clear_semaphore>: Add objfile parameter.
6413 (struct probe) <objfile>: Remove field.
6415 <address>: Update comment.
6416 (struct bound_probe): New.
6417 (find_probe_by_pc): Return a bound_probe.
6418 (get_probe_address): Declare.
6419 * solib-svr4.c (struct probe_and_action) <address>: New field.
6420 (hash_probe_and_action, equal_probe_and_action): Update.
6421 (register_solib_event_probe): Add address parameter.
6422 (solib_event_probe_at): Update.
6423 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6425 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6426 (stap_get_probe_address): New function.
6427 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6428 (compile_probe_arg): Update.
6429 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6431 (handle_stap_probe): Don't relocate the probe.
6432 (stap_relocate): Remove.
6433 (stap_gen_info_probes_table_values): Update.
6434 (stap_probe_ops): Remove stap_relocate.
6435 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6436 (debug_sym_probe_fns): Update.
6437 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6438 * symtab.c (init_sal): Use memset.
6439 * symtab.h (struct symtab_and_line) <objfile>: New field.
6440 * tracepoint.c (start_tracing, stop_tracing): Update.
6442 2014-03-03 Tom Tromey <tromey@redhat.com>
6444 * probe.h (parse_probes, find_probe_by_pc)
6445 (find_probes_in_objfile): Fix comments.
6447 2014-03-02 Doug Evans <xdje42@gmail.com>
6449 * infrun.c (handle_signal_stop): Replace test for
6450 TARGET_WAITKIND_STOPPED with an assert.
6452 2014-03-02 Doug Evans <xdje42@gmail.com>
6454 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6456 2014-03-02 Doug Evans <xdje42@gmail.com>
6458 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6460 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6462 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6464 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6466 * i386obsd-nat.c: Include "obsd-nat.h".
6467 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6469 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6471 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6473 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6475 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6477 * mips64obsd-nat.c: Include "obsd-nath".
6478 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6480 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6482 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6484 * amd64obsd-nat.c: Include "obsd-nat,h.
6485 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6487 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6489 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6491 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6492 (find_overload_match): Update call to find_oload_champ.
6493 (find_oload_champ_namespace_loop): Likewise
6495 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6497 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6499 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6500 * config/sparc/obsd64.mh: New file.
6501 * sparc64obsd-nat.c: New file.
6503 * obsd-nat.h: New file.
6504 * obsd-nat.c: New file.
6505 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6506 (ALLDEPFILES): Add obsd-nat.c.
6508 2014-02-28 Tom Tromey <tromey@redhat.com>
6510 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6511 * cli-out.h (cli_ui_out_impl): Now const.
6512 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6513 * ui-out.c (struct ui_out) <impl>: Now const.
6514 (default_ui_out_impl): Now const.
6515 (ui_out_new): Make 'impl' parameter const.
6516 * ui-out.h (ui_out_new): Update.
6518 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6520 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6522 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6524 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6526 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6528 Additional PR 8882 fix.
6529 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6531 2014-02-27 Pedro Alves <palves@redhat.com>
6533 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6536 2014-02-27 Pedro Alves <palves@redhat.com>
6539 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6540 * nat/linux-waitpid.c: Include string.h.
6541 (status_to_str): Moved here and made extern.
6542 * nat/linux-waitpid.h (status_to_str): New declaration.
6544 2014-02-27 Hui Zhu <hui@codesourcery.com>
6547 * infrun.c (ptid_match): Move ...
6548 * common/ptid.c (ptid_match): ... here.
6549 * inferior.h (ptid_match): Move ...
6550 * common/ptid.h (ptid_match): ... here.
6552 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6554 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6555 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6558 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6560 * obsd-tdep.c (obsd_auxv_parse): New function.
6561 (obsd_init_abi): Set auxv_parse.
6563 * gdbarch.sh (auxv_parse): New.
6564 * gdbarch.h: Regenerated.
6565 * gdbarch.c: Regenerated.
6566 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6568 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6570 * guile/scm-value.c (gdbscm_history_append_x): New function.
6571 (value_functions): Add it.
6573 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6575 * dwarf2read.c (attr_value_as_address): New function.
6576 (dwarf2_find_base_address, read_call_site_scope): Use
6577 attr_value_as_address in place of DW_ADDR.
6578 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6579 the low and high addresses. Slight rework of the handling
6580 of the high pc being a constant form, and limit it to
6581 DWARF verson 4 or higher.
6582 (dwarf2_record_block_ranges): Likewise.
6583 (read_partial_die): Likewise.
6584 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6586 2014-02-26 Tom Tromey <tromey@redhat.com>
6588 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6590 2014-02-26 Tom Tromey <tromey@redhat.com>
6592 * elfread.c (elf_read_minimal_symbols): Return early if
6593 minimal symbols have already been read. Add "ei" parameter.
6594 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6595 * minsyms.c (prim_record_minimal_symbol_full): Update.
6596 * objfiles.h (struct objstats) <n_minsyms>: Move...
6597 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6598 * symmisc.c (print_objfile_statistics): Update.
6600 2014-02-26 Tom Tromey <tromey@redhat.com>
6602 * elfread.c (elf_read_minimal_symbols): New function, from
6604 (elf_symfile_read): Call it.
6606 2014-02-26 Tom Tromey <tromey@redhat.com>
6608 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6609 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6610 (lookup_minimal_symbol_solib_trampoline)
6611 (lookup_minimal_symbol_by_pc_section_1)
6612 (lookup_minimal_symbol_and_objfile): Update.
6613 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6614 Don't allocate a minimal symbol if minsyms have already been read.
6615 (build_minimal_symbol_hash_tables): Update.
6616 (install_minimal_symbols): Do nothing if minsyms already read.
6617 Use the per-BFD obstack.
6618 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6619 * objfiles.c (allocate_objfile): Call
6620 terminate_minimal_symbol_table later.
6621 (have_minimal_symbols): Update.
6622 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6623 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6624 Move from struct objfile.
6625 <minsyms_read>: New field.
6626 (struct objfile) <msymbols, minimal_symbol_count,
6627 msymbol_hash, msymbol_demangled_hash>: Move.
6628 (ALL_OBJFILE_MSYMBOLS): Update.
6629 * symfile.c (read_symbols): Set minsyms_read.
6630 (reread_symbols): Update.
6631 * symmisc.c (dump_objfile, dump_msymbols): Update.
6633 2014-02-26 Tom Tromey <tromey@redhat.com>
6635 * minsyms.c (msymbols_sort): Remove.
6636 * minsyms.h (msymbols_sort): Remove.
6637 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6638 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6639 * elfread.c (elf_symtab_read): Don't add section offsets.
6640 * xcoffread.c (record_minimal_symbol): Don't add section offset
6641 to minimal symbol address.
6642 * somread.c (text_offset, data_offset): Remove.
6643 (som_symtab_read): Don't add section offsets to minimal symbol
6645 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6646 Don't add section offsets to minimal symbols.
6647 * coffread.c (coff_symtab_read): Don't add section offsets
6648 to minimal symbol addresses.
6649 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6650 to minimal symbol addresses.
6651 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6652 section offset to minimal symbol addresses.
6653 * mdebugread.c (parse_partial_symbols): Don't add section
6654 offset to minimal symbol addresses.
6655 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6656 offset to minimal symbol addresses.
6658 2014-02-26 Tom Tromey <tromey@redhat.com>
6660 * ada-lang.c (ada_main_name): Update.
6661 (ada_add_standard_exceptions): Update.
6662 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6663 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6664 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6665 * auxv.c (ld_so_xfer_auxv): Update.
6666 * avr-tdep.c (avr_scan_prologue): Update.
6667 * ax-gdb.c (gen_var_ref): Update.
6668 * blockframe.c (get_pc_function_start)
6669 (find_pc_partial_function_gnu_ifunc): Update.
6670 * breakpoint.c (create_overlay_event_breakpoint)
6671 (create_longjmp_master_breakpoint)
6672 (create_std_terminate_master_breakpoint)
6673 (create_exception_master_breakpoint): Update.
6674 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6675 * c-valprint.c (c_val_print): Update.
6676 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6677 * common/agent.c (agent_look_up_symbols): Update.
6678 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6679 * dwarf2loc.c (call_site_to_target_addr): Update.
6680 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6681 * elfread.c (elf_gnu_ifunc_record_cache)
6682 (elf_gnu_ifunc_resolve_by_got): Update.
6683 * findvar.c (default_read_var_value): Update.
6684 * frame.c (inside_main_func): Update.
6685 * frv-tdep.c (frv_frame_this_id): Update.
6686 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6687 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6689 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6690 (hppa_hpux_find_dummy_bpaddr): Update.
6691 * hppa-tdep.c (hppa_symbol_address): Update.
6692 * infcmd.c (until_next_command): Update.
6693 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6695 * linespec.c (minsym_found, add_minsym): Update.
6696 * linux-nat.c (get_signo): Update.
6697 * linux-thread-db.c (inferior_has_bug): Update.
6698 * m32c-tdep.c (m32c_return_value)
6699 (m32c_m16c_address_to_pointer): Update.
6700 * m32r-tdep.c (m32r_frame_this_id): Update.
6701 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6702 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6703 * maint.c (maintenance_translate_address): Update.
6704 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6705 (frob_address): New function.
6706 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6707 frob_address. Rename parameter to "pc_in".
6708 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6710 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6712 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6713 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6714 * objc-lang.c (find_objc_msgsend): Update.
6715 * objfiles.c (objfile_relocate1): Update.
6716 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6717 * p-valprint.c (pascal_val_print): Update.
6718 * parse.c (write_exp_msymbol): Update.
6719 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6720 (ppc_elfv2_skip_entrypoint): Update.
6721 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6722 * printcmd.c (build_address_symbolic, msym_info)
6723 (address_info): Update.
6724 * proc-service.c (ps_pglobal_lookup): Update.
6725 * psymtab.c (find_pc_sect_psymtab_closer)
6726 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6727 Change msymbol parameter to bound_minimal_symbol.
6728 * ravenscar-thread.c (get_running_thread_id): Update.
6729 * remote.c (remote_check_symbols): Update.
6730 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6732 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6733 * solib-dsbt.c (lm_base): Update.
6734 * solib-frv.c (lm_base, main_got): Update.
6735 * solib-irix.c (locate_base): Update.
6736 * solib-som.c (som_solib_create_inferior_hook)
6737 (link_map_start): Update.
6738 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6739 * solib-svr4.c (elf_locate_base, enable_break): Update.
6740 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6741 (flush_ea_cache): Update.
6742 * stabsread.c (define_symbol, scan_file_globals): Update.
6743 * stack.c (find_frame_funname): Update.
6744 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6745 (debug_qf_find_pc_sect_symtab): Update.
6746 * symfile.c (simple_read_overlay_table)
6747 (simple_overlay_update): Update.
6748 * symfile.h (struct quick_symbol_functions)
6749 <find_pc_sect_symtab>: Change type of msymbol to
6750 bound_minimal_symbol.
6751 * symmisc.c (dump_msymbols): Update.
6752 * symtab.c (find_pc_sect_symtab_via_partial)
6753 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6754 (search_symbols, print_msymbol_info): Update.
6755 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6756 (MSYMBOL_VALUE_ADDRESS): Redefine.
6757 (BMSYMBOL_VALUE_ADDRESS): New macro.
6758 * tracepoint.c (scope_info): Update.
6759 * tui/tui-disasm.c (tui_find_disassembly_address)
6760 (tui_get_begin_asm_address): Update.
6761 * valops.c (find_function_in_inferior): Update.
6762 * value.c (value_static_field, value_fn_field): Update.
6764 2014-02-26 Tom Tromey <tromey@redhat.com>
6766 * ada-lang.c (ada_update_initial_language): Update.
6767 (ada_main_name, ada_has_this_exception_support): Update.
6768 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6769 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6770 * arm-tdep.c (arm_skip_stub): Update.
6771 * auxv.c (ld_so_xfer_auxv): Update.
6772 * avr-tdep.c (avr_scan_prologue): Update.
6773 * ax-gdb.c (gen_var_ref): Update.
6774 * breakpoint.c (struct breakpoint_objfile_data)
6775 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6776 type to bound_minimal_symbol.
6777 (create_overlay_event_breakpoint)
6778 (create_longjmp_master_breakpoint)
6779 (create_std_terminate_master_breakpoint)
6780 (create_exception_master_breakpoint): Update.
6781 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6782 * c-exp.y (classify_name): Update.
6783 * coffread.c (coff_symfile_read): Update.
6784 * common/agent.c (agent_look_up_symbols): Update.
6785 * d-lang.c (d_main_name): Update.
6786 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6787 * dec-thread.c (enable_dec_thread): Update.
6788 * dwarf2loc.c (call_site_to_target_addr): Update.
6789 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6790 * eval.c (evaluate_subexp_standard): Update.
6791 * findvar.c (struct minsym_lookup_data) <result>: Change type
6792 to bound_minimal_symbol.
6794 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6795 * frame.c (inside_main_func): Update.
6796 * frv-tdep.c (frv_frame_this_id): Update.
6797 * gcore.c (call_target_sbrk): Update.
6798 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6799 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6801 * go-lang.c (go_main_name): Update.
6802 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6803 (hppa_hpux_find_import_stub_for_addr): Update.
6804 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6805 Update. Change return type.
6806 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6808 * jit.c (jit_breakpoint_re_set_internal): Update.
6809 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6811 * linux-nat.c (get_signo): Update.
6812 * linux-thread-db.c (inferior_has_bug): Update
6813 * m32c-tdep.c (m32c_return_value)
6814 (m32c_m16c_address_to_pointer): Update.
6815 * m32r-tdep.c (m32r_frame_this_id): Update.
6816 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6817 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6818 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6819 lookup_minimal_symbol. Change return type.
6820 (lookup_minimal_symbol): Remove.
6821 (lookup_bound_minimal_symbol): Update.
6822 (lookup_minimal_symbol_text): Change return type.
6823 (lookup_minimal_symbol_solib_trampoline): Change return type.
6824 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6825 (lookup_minimal_symbol_solib_trampoline): Change return type.
6826 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6827 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6828 (value_nsstring, find_imps): Update.
6829 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6830 * p-lang.c (pascal_main_name): Update.
6831 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6832 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6833 * proc-service.c (ps_pglobal_lookup): Update.
6834 * ravenscar-thread.c (get_running_thread_msymbol): Change
6836 (has_ravenscar_runtime, get_running_thread_id): Update.
6837 * remote.c (remote_check_symbols): Update.
6838 * sol-thread.c (ps_pglobal_lookup): Update.
6839 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6840 * solib-dsbt.c (lm_base): Update.
6841 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6843 * solib-irix.c (locate_base): Update.
6844 * solib-som.c (som_solib_create_inferior_hook)
6845 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6847 * solib-spu.c (spu_enable_break): Update.
6848 * solib-svr4.c (elf_locate_base, enable_break): Update.
6849 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6850 (flush_ea_cache): Update.
6851 * stabsread.c (define_symbol): Update.
6852 * symfile.c (simple_read_overlay_table): Update.
6853 * symtab.c (find_pc_sect_line): Update.
6854 * tracepoint.c (scope_info): Update.
6855 * tui-disasm.c (tui_get_begin_asm_address): Update.
6856 * value.c (value_static_field): Update.
6858 2014-02-26 Tom Tromey <tromey@redhat.com>
6860 * minsyms.c (prim_record_minimal_symbol_full): Use
6861 SET_MSYMBOL_VALUE_ADDRESS.
6862 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6863 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6864 SET_MSYMBOL_VALUE_ADDRESS.
6865 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6866 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6868 2014-02-26 Tom Tromey <tromey@redhat.com>
6870 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6871 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6872 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6873 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6874 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6875 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6876 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6877 * ada-lang.c (ada_main_name): Update.
6878 (ada_lookup_simple_minsym): Update.
6879 (ada_make_symbol_completion_list): Update.
6880 (ada_add_standard_exceptions): Update.
6881 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6882 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6883 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6884 * arm-tdep.c (skip_prologue_function): Update.
6885 (arm_skip_stack_protector, arm_skip_stub): Update.
6886 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6887 (arm_wince_skip_main_prologue): Update.
6888 * auxv.c (ld_so_xfer_auxv): Update.
6889 * avr-tdep.c (avr_scan_prologue): Update.
6890 * ax-gdb.c (gen_var_ref): Update.
6891 * block.c (call_site_for_pc): Update.
6892 * blockframe.c (get_pc_function_start): Update.
6893 (find_pc_partial_function_gnu_ifunc): Update.
6894 * breakpoint.c (create_overlay_event_breakpoint): Update.
6895 (create_longjmp_master_breakpoint): Update.
6896 (create_std_terminate_master_breakpoint): Update.
6897 (create_exception_master_breakpoint): Update.
6898 (resolve_sal_pc): Update.
6899 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6900 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6902 * c-valprint.c (c_val_print): Update.
6903 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6904 * coffread.c (coff_symfile_read): Update.
6905 * common/agent.c (agent_look_up_symbols): Update.
6906 * dbxread.c (find_stab_function_addr): Update.
6907 (end_psymtab): Update.
6908 * dwarf2loc.c (call_site_to_target_addr): Update.
6909 (func_verify_no_selftailcall): Update.
6910 (tailcall_dump): Update.
6911 (call_site_find_chain_1): Update.
6912 (dwarf_expr_reg_to_entry_parameter): Update.
6913 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6914 (elf_gnu_ifunc_resolve_by_got): Update.
6915 * f-valprint.c (info_common_command): Update.
6916 * findvar.c (read_var_value): Update.
6917 * frame.c (get_prev_frame_1): Update.
6918 (inside_main_func): Update.
6919 * frv-tdep.c (frv_skip_main_prologue): Update.
6920 (frv_frame_this_id): Update.
6921 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6922 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6923 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6924 (gnuv3_skip_trampoline): Update.
6925 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6926 (hppa64_hpux_in_solib_call_trampoline): Update.
6927 (hppa_hpux_skip_trampoline_code): Update.
6928 (hppa64_hpux_search_dummy_call_sequence): Update.
6929 (hppa_hpux_find_import_stub_for_addr): Update.
6930 (hppa_hpux_find_dummy_bpaddr): Update.
6931 * hppa-tdep.c (hppa_symbol_address)
6932 (hppa_lookup_stub_minimal_symbol): Update.
6933 * i386-tdep.c (i386_skip_main_prologue): Update.
6934 (i386_pe_skip_trampoline_code): Update.
6935 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6936 * infcall.c (get_function_name): Update.
6937 * infcmd.c (until_next_command): Update.
6938 * jit.c (jit_breakpoint_re_set_internal): Update.
6939 (jit_inferior_init): Update.
6940 * linespec.c (minsym_found): Update.
6941 (add_minsym): Update.
6942 * linux-fork.c (info_checkpoints_command): Update.
6943 * linux-nat.c (get_signo): Update.
6944 * linux-thread-db.c (inferior_has_bug): Update.
6945 * m32c-tdep.c (m32c_return_value): Update.
6946 (m32c_m16c_address_to_pointer): Update.
6947 (m32c_m16c_pointer_to_address): Update.
6948 * m32r-tdep.c (m32r_frame_this_id): Update.
6949 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6950 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6951 * maint.c (maintenance_translate_address): Update.
6952 * minsyms.c (add_minsym_to_hash_table): Update.
6953 (add_minsym_to_demangled_hash_table): Update.
6954 (msymbol_objfile): Update.
6955 (lookup_minimal_symbol): Update.
6956 (iterate_over_minimal_symbols): Update.
6957 (lookup_minimal_symbol_text): Update.
6958 (lookup_minimal_symbol_by_pc_name): Update.
6959 (lookup_minimal_symbol_solib_trampoline): Update.
6960 (lookup_minimal_symbol_by_pc_section_1): Update.
6961 (lookup_minimal_symbol_and_objfile): Update.
6962 (prim_record_minimal_symbol_full): Update.
6963 (compare_minimal_symbols): Update.
6964 (compact_minimal_symbols): Update.
6965 (build_minimal_symbol_hash_tables): Update.
6966 (install_minimal_symbols): Update.
6967 (terminate_minimal_symbol_table): Update.
6968 (find_solib_trampoline_target): Update.
6969 (minimal_symbol_upper_bound): Update.
6970 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6971 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6972 (mips_skip_pic_trampoline_code): Update.
6973 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6974 * objc-lang.c (selectors_info): Update.
6975 (classes_info): Update.
6976 (find_methods): Update.
6977 (find_imps): Update.
6978 (find_objc_msgsend): Update.
6979 * objfiles.c (objfile_relocate1): Update.
6980 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6981 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6982 * p-valprint.c (pascal_val_print): Update.
6983 * parse.c (write_exp_msymbol): Update.
6984 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6985 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6986 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6987 * printcmd.c (build_address_symbolic): Update.
6989 (address_info): Update.
6990 * proc-service.c (ps_pglobal_lookup): Update.
6991 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6992 (find_pc_sect_psymtab): Update.
6993 * python/py-framefilter.c (py_print_frame): Update.
6994 * ravenscar-thread.c (get_running_thread_id): Update.
6995 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6997 * remote.c (remote_check_symbols): Update.
6998 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6999 (rs6000_skip_trampoline_code): Update.
7000 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7001 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7002 * solib-dsbt.c (lm_base): Update.
7003 * solib-frv.c (lm_base): Update.
7005 * solib-irix.c (locate_base): Update.
7006 * solib-som.c (som_solib_create_inferior_hook): Update.
7007 (som_solib_desire_dynamic_linker_symbols): Update.
7008 (link_map_start): Update.
7009 * solib-spu.c (spu_enable_break): Update.
7010 (ocl_enable_break): Update.
7011 * solib-svr4.c (elf_locate_base): Update.
7012 (enable_break): Update.
7013 * spu-tdep.c (spu_get_overlay_table): Update.
7014 (spu_catch_start): Update.
7015 (flush_ea_cache): Update.
7016 * stabsread.c (define_symbol): Update.
7017 (scan_file_globals): Update.
7018 * stack.c (find_frame_funname): Update.
7019 (frame_info): Update.
7020 * symfile.c (simple_read_overlay_table): Update.
7021 (simple_overlay_update): Update.
7022 * symmisc.c (dump_msymbols): Update.
7023 * symtab.c (fixup_section): Update.
7024 (find_pc_sect_line): Update.
7025 (skip_prologue_sal): Update.
7026 (search_symbols): Update.
7027 (print_msymbol_info): Update.
7028 (rbreak_command): Update.
7029 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7030 (completion_list_objc_symbol): Update.
7031 (default_make_symbol_completion_list_break_on): Update.
7032 * tracepoint.c (scope_info): Update.
7033 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7034 (tui_get_begin_asm_address): Update.
7035 * valops.c (find_function_in_inferior): Update.
7036 * value.c (value_static_field): Update.
7037 (value_fn_field): Update.
7039 2014-02-26 Tom Tromey <tromey@redhat.com>
7041 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7042 bound minimal symbols. Move code that knows about minsym
7044 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7046 * minsyms.h (minimal_symbol_upper_bound): Declare.
7047 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7048 minimal_symbol_upper_bound.
7050 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7052 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7053 Use the type's name if its basic type does not have a tag.
7055 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7057 * dwarf2read.c (read_subrange_type): Add comment.
7059 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7061 * dwarf2read.c (update_enumeration_type_from_children): New
7062 function, mostly extracted from process_structure_scope.
7063 (read_enumeration_type): Call update_enumeration_type_from_children.
7064 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7065 and flag_flag_enum fields.
7067 2014-02-26 Pedro Alves <palves@redhat.com>
7069 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7070 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7071 to_xfer_partial method.
7073 2014-02-26 Pedro Alves <palves@redhat.com>
7075 * target.c (complete_target_initialization): Don't install
7076 default_xfer_partial as to_xfer_partial hook.
7078 (update_current_target): Don't INHERIT nor de_fault
7079 deprecated_xfer_memory. Delete de_fault macro.
7080 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7081 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7082 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7085 2014-02-26 Pedro Alves <palves@redhat.com>
7087 * go32-nat.c (my_write_child): New function.
7088 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7089 (go32_xfer_partial): New function.
7090 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7091 Instead install a to_xfer_partial hook.
7093 2014-02-26 Pedro Alves <palves@redhat.com>
7095 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7096 to_xfer_partial helper. Rewrite.
7097 (procfs_xfer_partial): New function.
7098 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7099 Install a to_xfer_partial hook.
7101 2014-02-26 Pedro Alves <palves@redhat.com>
7103 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7104 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7105 (m32r_xfer_partial): New function.
7106 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7107 Install a to_xfer_partial hook.
7109 2014-02-26 Pedro Alves <palves@redhat.com>
7111 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7113 (mips_xfer_partial): New function.
7114 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7115 hook. Install a to_xfer_partial hook.
7117 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7119 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7120 * gdbtypes.c (create_array_type_with_stride): New function,
7121 renaming create_array_type, but with an added parameter
7122 called "bit_stride".
7123 (create_array_type): Re-implement using
7124 create_array_type_with_stride.
7125 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7126 and DW_AT_bit_stride attributes.
7128 2014-02-26 Pedro Alves <palves@redhat.com>
7130 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7131 task-specific breakpoints.
7133 2014-02-25 Pedro Alves <palves@redhat.com>
7135 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7136 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7138 2014-02-25 Stan Shebs <stan@codesourcery.com>
7140 * defs.h: Annotate comments for Doxygen.
7142 2014-02-25 Tom Tromey <tromey@redhat.com>
7144 * target.h (target_ignore): Don't declare.
7145 * target.c (target_ignore): Remove.
7147 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7150 * auto-load.c (auto_load_objfile_script_1): Change filename to
7153 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7155 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7156 documentation. Adjust prototype to match the target_ops
7157 to_xfer_partial method. Adjust implementation accordingly.
7159 2014-02-25 Hui Zhu <hui@codesourcery.com>
7161 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7164 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7166 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7167 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7168 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7169 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7170 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7171 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7172 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7173 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7175 (rl78_register_type): Use a data pointer type for SP and
7176 new pseudo registers mentioned above. Use a 16 bit integer
7177 type for all other register pairs.
7178 (rl78_register_name, rl78_g10_register_name): Update for
7179 new pseudo registers.
7180 (rl78_pseudo_register_read): Likewise.
7181 (rl78_pseudo_register_write): Likewise.
7182 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7183 to the newly added pseudo registers.
7185 2014-02-24 Doug Evans <dje@google.com>
7187 * value.c (record_latest_value): Fix comment.
7188 * printcmd.c (print_command_1): Remove code to handle -1 return from
7189 record_latest_value.
7191 2014-02-24 Pedro Alves <palves@redhat.com>
7193 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7194 deprecated_xfer_memory hook.
7195 (procfs_xfer_partial): Call procfs_xfer_memory instead
7196 of the deprecated_xfer_memory target hook.
7197 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7200 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7202 * windows-nat.c (windows_xfer_shared_libraries): Return
7203 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7204 requested object is TARGET_OBJECT_LIBRARIES.
7206 2014-02-24 Yao Qi <yao@codesourcery.com>
7208 * target.h (enum target_xfer_status)
7209 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7210 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7212 * corefile.c (memory_error_message): User updated.
7213 * exec.c (section_table_read_available_memory): Likewise.
7214 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7215 * target.c (target_xfer_status_to_string): Likewise.
7216 (raw_memory_xfer_partial): Likewise.
7217 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7218 * valops.c (read_value_memory): Likewise.
7219 * exec.h: Update comments.
7221 2014-02-24 Yao Qi <yao@codesourcery.com>
7223 * target.c (target_xfer_status_to_string): Rename argument err
7225 * target.h (target_xfer_status_to_string): Update declaration.
7226 Replace target_xfer_error_to_string with
7227 target_xfer_status_to_string in comment.
7229 2014-02-24 Yao Qi <yao@codesourcery.com>
7231 * mips-linux-nat.c (super_close): Update its type.
7232 (mips_linux_close): Pass 'self' to super_close.
7234 2014-02-24 Yao Qi <yao@codesourcery.com>
7236 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7237 * corefile.c (read_memory): Adjusted.
7238 * target.c (target_write_with_progress): Adjusted.
7240 2014-02-23 Yao Qi <yao@codesourcery.com>
7244 2013-10-25 Yao Qi <yao@codesourcery.com>
7246 * remote.c (remote_traceframe_info): Return early if
7247 traceframe is not selected.
7249 2013-07-19 Yao Qi <yao@codesourcery.com>
7251 * target.c (update_current_target): Change the default action
7252 of 'to_traceframe_info' from tcomplain to return_zero.
7253 * target.h (struct target_ops) <to_traceframe_info>: Add more
7256 2014-02-23 Yao Qi <yao@codesourcery.com>
7258 * valops.c (read_value_memory): Rewrite it. Call
7259 target_xfer_partial in a loop.
7260 * exec.h (section_table_available_memory): Remove declaration.
7261 Move comments to ...
7262 * exec.c (section_table_available_memory): ... here. Make it
7265 2014-02-23 Yao Qi <yao@codesourcery.com>
7267 * exec.c (section_table_read_available_memory): New function.
7268 * exec.h (section_table_read_available_memory): Declare.
7269 * ctf.c (ctf_xfer_partial): Call
7270 section_table_read_available_memory.
7271 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7273 2014-02-23 Yao Qi <yao@codesourcery.com>
7275 * ctf.c (ctf_xfer_partial): Move code to ...
7276 * exec.c (exec_read_partial_read_only): ... it. New function.
7277 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7278 * tracefile.c: Include "exec.h".
7279 * exec.h (exec_read_partial_read_only): Declare.
7281 2014-02-23 Yao Qi <yao@codesourcery.com>
7283 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7284 (tfile_has_memory): Remove.
7285 (init_tfile_ops): Don't set fields to_has_all_memory and
7286 to_has_memory of tfile_ops.
7287 * tracefile.c (tracefile_has_all_memory): New function.
7288 (tracefile_has_memory): New function.
7289 (init_tracefile_ops): Initialize fields to_has_all_memory and
7290 to_has_memory of 'ops'.
7292 2014-02-23 Yao Qi <yao@codesourcery.com>
7294 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7295 (ctf_thread_alive, ctf_get_trace_status): Remove.
7296 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7298 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7299 (tfile_has_stack, tfile_has_registers): Remove.
7300 (tfile_thread_alive): Remove.
7301 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7303 * tracefile.c (tracefile_has_stack): New function.
7304 (tracefile_has_registers): New function.
7305 (tracefile_thread_alive): New function.
7306 (tracefile_get_trace_status): New function.
7307 (init_tracefile_ops): New function.
7308 * tracefile.h (init_tracefile_ops): Declare.
7310 2014-02-23 Yao Qi <yao@codesourcery.com>
7312 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7313 (O_LARGEFILE): Likewise.
7314 (tfile_ops): Likewise.
7315 (TRACE_HEADER_SIZE): Likewise.
7316 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7317 (cur_data_size): Likewise.
7318 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7319 (tfile_close, tfile_files_info): Likewise.
7320 (tfile_get_trace_status): Likewise.
7321 (tfile_get_tracepoint_status): Likewise.
7322 (tfile_get_traceframe_address): Likewise.
7323 (tfile_trace_find, match_blocktype): Likewise.
7324 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7325 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7326 (tfile_get_trace_state_variable_value): Likewise.
7327 (tfile_has_all_memory, tfile_has_memory): Likewise.
7328 (tfile_has_stack, tfile_has_registers): Likewise.
7329 (tfile_thread_alive, build_traceframe_info): Likewise.
7330 (tfile_traceframe_info, init_tfile_ops): Likewise.
7331 (_initialize_tracepoint): Don't call init_tfile_ops
7332 and add_target_with_completer.
7333 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7334 exec.h, completer.h and filenames.h.
7335 (_initialize_tracefile_tfile): New function.
7337 2014-02-23 Yao Qi <yao@codesourcery.com>
7339 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7341 (HFILES_NO_SRCDIR): Add tracefile.h.
7342 * ctf.c: Include "tracefile.h".
7343 * tracefile.h: New file.
7344 * tracefile.c: New file
7345 * tracefile-tfile.c: New file.
7346 * tracepoint.c: Include "tracefile.h".
7347 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7348 (stop_reason_names): Add const.
7349 (trace_file_writer_xfree): Move it to tracefile.c.
7350 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7351 (trace_save_ctf): Likewise.
7352 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7353 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7354 (tfile_write_header, tfile_write_regblock_type): Likewise.
7355 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7356 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7357 (tfile_write_raw_data, tfile_end): Likewise.
7358 (tfile_trace_file_writer_new): Likewise.
7359 (free_uploaded_tp): Make it extern.
7360 (free_uploaded_tsv): Make it extern.
7361 (_initialize_tracepoint): Move code to register command 'tsave'
7363 * tracepoint.h (stop_reason_names): Declare.
7364 (struct trace_frame_write_ops): Move it to tracefile.h.
7365 (struct trace_file_write_ops): Likewise.
7366 (struct trace_file_writer): Likewise.
7367 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7369 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7374 (get_cores_used_by_process): New parameter num_cores, use it.
7375 (linux_xfer_osdata_processes): Pass num_cores to it.
7376 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7379 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7381 * target.c (memory_xfer_partial): Fix length arg in call to
7382 breakpoint_xfer_memory.
7384 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7387 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7388 number comes after the + or - signs. Adjust length of register
7389 name to be extracted.
7391 2014-02-20 Tom Tromey <tromey@redhat.com>
7393 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7394 (ada_varobj_ops): Mark "extern".
7396 2014-02-20 Tom Tromey <tromey@redhat.com>
7398 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7400 2014-02-20 Doug Evans <xdje42@gmail.com>
7402 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7403 All callers updated.
7404 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7405 All callers updated.
7406 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7407 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7409 2014-02-20 lin zuojian <manjian2006@gmail.com>
7410 Joel Brobecker <brobecker@adacore.com>
7411 Doug Evans <xdje42@gmail.com>
7414 * dwarf2read.c (struct die_info): New member in_process.
7415 (reset_die_in_process): New function.
7416 (process_die): Set it at the start, reset when returning.
7417 (inherit_abstract_dies): Only call process_die if origin_child_die
7418 not already being processed.
7420 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7422 * windows-nat.c (handle_unload_dll): Add function documentation.
7423 (do_initial_windows_stuff): Add comment explaining why we wait
7424 until after inferior initialization has finished before
7425 processing all DLLs.
7427 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7429 * windows-nat.c (get_module_name): Delete.
7430 (windows_get_exec_module_filename): New function, mostly
7431 inspired from get_module_name.
7432 (windows_pid_to_exec_file): Replace call to get_module_name
7433 by call to windows_get_exec_module_filename.
7435 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7437 * windows-nat.c (handle_load_dll): Rewrite this function's
7438 introductory comment. Remove code using get_module_name
7439 to get the DLL's name.
7441 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7443 * windows-nat.c (get_windows_debug_event): Ignore
7444 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7445 if windows_initialization_done == 0.
7446 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7447 Adjust implementation to always load all DLLs.
7448 (do_initial_windows_stuff): Replace call to
7449 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7451 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7453 * windows-nat.c (_initialize_windows_nat): Deprecate the
7454 "dll-symbols" command. Turn the "add-shared-symbol-files"
7455 and "assf" aliases into commands, and deprecate them as well.
7456 * NEWS: Add entry explaining that "dll-symbols" and its two
7457 aliases are now deprecated.
7459 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7461 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7462 new-line in debug string. Remove trailing spaces.
7464 2014-02-19 Stan Shebs <stan@codesourcery.com>
7466 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7468 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7470 * NEWS: Add entry for the new feature
7471 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7474 2014-02-19 Stan Shebs <stan@codesourcery.com>
7476 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7478 2014-02-19 Pedro Alves <palves@redhat.com>
7480 * common/ptid.h (struct ptid): Mention that process_stratum
7481 targets should prefer ptid.lwp.
7483 2014-02-19 Pedro Alves <palves@redhat.com>
7485 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7486 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7487 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7488 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7489 store remote thread ids rather than ptid.tid.
7490 (_initialize_remote): Adjust.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target.c (target_get_unwinder): Rewrite.
7495 (target_get_tailcall_unwinder): Rewrite.
7496 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7497 (record_btrace_to_get_tailcall_unwinder): New function.
7498 (init_record_btrace_ops): Update.
7499 * target.h (struct target_ops) <to_get_unwinder,
7500 to_get_tailcall_unwinder>: Now function pointers. Use
7501 TARGET_DEFAULT_RETURN.
7503 2014-02-19 Tom Tromey <tromey@redhat.com>
7505 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7507 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7513 * target-delegates.c: Rebuild.
7514 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7515 TARGET_DEFAULT_FUNC.
7516 * target.c (default_target_decr_pc_after_break): Rename from
7517 forward_target_decr_pc_after_break. Simplify.
7518 (target_decr_pc_after_break): Rely on delegation.
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7522 * target.c (update_current_target): Do not INHERIT to_doc or
7523 to_magic. Do not de_fault to_open or to_close.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * gcore.h (objfile_find_memory_regions): Declare.
7528 * gcore.c (objfile_find_memory_regions): No longer static. Add
7530 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7531 * exec.c: Include gcore.h.
7532 (exec_set_find_memory_regions): Remove.
7533 (exec_find_memory_regions): Remove.
7534 (exec_do_find_memory_regions): Remove.
7535 (init_exec_ops): Update.
7536 * defs.h (exec_set_find_memory_regions): Remove.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target-delegates.c: Rebuild.
7541 * target.h (struct target_ops) <to_extra_thread_info,
7542 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7543 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7544 not 0, in TARGET_DEFAULT_RETURN.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target.c (complete_target_initialization): Remove casts. Use
7549 return_zero_has_execution.
7550 (return_zero): Add "ignore" argument.
7551 (return_zero_has_execution): New function.
7552 (init_dummy_target): Remove casts. Use
7553 return_zero_has_execution.
7555 2014-02-19 Tom Tromey <tromey@redhat.com>
7557 * target.c (update_current_target): Update comments. Do not
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7562 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7564 * corelow.c (core_read_description): Delegate when needed.
7565 * remote.c (remote_read_description): Delegate when needed.
7566 * target-delegates.c: Rebuild.
7567 * target.c (target_read_description): Rewrite.
7568 * target.h (struct target_ops) <to_read_description>: Update
7569 comment. Use TARGET_DEFAULT_RETURN.
7571 2014-02-19 Tom Tromey <tromey@redhat.com>
7573 * target-delegates.c: Rebuild.
7574 * target.c (update_current_target): Don't inherit or default
7576 (find_default_run_target): Check against delegate_can_run.
7577 * target.h (struct target_ops) <to_can_run>: Use
7578 TARGET_DEFAULT_RETURN.
7580 2014-02-19 Tom Tromey <tromey@redhat.com>
7582 * target-delegates.c: Rebuild.
7583 * target.c (target_disconnect): Unconditionally delegate.
7584 * target.h (struct target_ops) <to_disconnect>: Use
7585 TARGET_DEFAULT_NORETURN.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * record.c (record_stop): Unconditionally delegate.
7590 * target-delegates.c: Rebuild.
7591 * target.c (target_stop_recording): Unconditionally delegate.
7592 * target.h (struct target_ops) <to_stop_recording>: Use
7593 TARGET_DEFAULT_IGNORE.
7595 2014-02-19 Tom Tromey <tromey@redhat.com>
7597 * target-delegates.c: Rebuild.
7598 * target.c (target_enable_btrace): Unconditionally delegate.
7599 * target.h (struct target_ops) <to_enable_btrace>: Use
7600 TARGET_DEFAULT_NORETURN.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * target-delegates.c: Rebuild.
7605 * target.c (target_read_btrace): Unconditionally delegate.
7606 * target.h (struct target_ops) <to_read_btrace>: Use
7607 TARGET_DEFAULT_NORETURN.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target-delegates.c: Rebuild.
7612 * target.c (target_teardown_btrace): Unconditionally delegate.
7613 * target.h (struct target_ops) <to_teardown_btrace>: Use
7614 TARGET_DEFAULT_NORETURN.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target-delegates.c: Rebuild.
7619 * target.c (target_disable_btrace): Unconditionally delegate.
7620 * target.h (struct target_ops) <to_disable_btrace>: Use
7621 TARGET_DEFAULT_NORETURN.
7623 2014-02-19 Tom Tromey <tromey@redhat.com>
7625 * target-delegates.c: Rebuild.
7626 * target.c (default_search_memory): New function.
7627 (simple_search_memory): Update comment.
7628 (target_search_memory): Unconditionally delegate.
7629 * target.h (struct target_ops) <to_search_memory>: Use
7630 TARGET_DEFAULT_FUNC.
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7634 * auxv.c (default_auxv_parse): No longer static.
7635 (target_auxv_parse): Unconditionally delegate.
7636 * auxv.h (default_auxv_parse): Declare.
7637 * target-delegates.c: Rebuild.
7638 * target.c: Include auxv.h.
7639 * target.h (struct target_ops) <to_auxv_parse>: Use
7640 TARGET_DEFAULT_FUNC.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target-delegates.c: Rebuild.
7645 * target.c (target_memory_map): Unconditionally delegate.
7646 * target.h (struct target_ops) <to_memory_map>: Use
7647 TARGET_DEFAULT_RETURN.
7649 2014-02-19 Tom Tromey <tromey@redhat.com>
7651 * target-delegates.c: Rebuild.
7652 * target.c (target_thread_alive): Unconditionally delegate.
7653 * target.h (struct target_ops) <to_thread_alive>: Use
7654 TARGET_DEFAULT_RETURN.
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target-delegates.c: Rebuild.
7659 * target.c (target_save_record): Unconditionally delegate.
7660 * target.h (struct target_ops) <to_save_record>: Use
7661 TARGET_DEFAULT_NORETURN.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target-delegates.c: Rebuild.
7666 * target.c (target_delete_record): Unconditionally delegate.
7667 * target.h (struct target_ops) <to_delete_record>: Use
7668 TARGET_DEFAULT_NORETURN.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * target-delegates.c: Rebuild.
7673 * target.c (target_record_is_replaying): Unconditionally
7675 * target.h (struct target_ops) <to_record_is_replaying>: Use
7676 TARGET_DEFAULT_RETURN.
7678 2014-02-19 Tom Tromey <tromey@redhat.com>
7680 * target-delegates.c: Rebuild.
7681 * target.c (target_goto_record_begin): Unconditionally delegate.
7682 * target.h (struct target_ops) <to_goto_record_begin>: Use
7683 TARGET_DEFAULT_NORETURN.
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7687 * target-delegates.c: Rebuild.
7688 * target.c (target_goto_record_end): Unconditionally delegate.
7689 * target.h (struct target_ops) <to_goto_record_end>: Use
7690 TARGET_DEFAULT_NORETURN.
7692 2014-02-19 Tom Tromey <tromey@redhat.com>
7694 * target-delegates.c: Rebuild.
7695 * target.c (target_goto_record): Unconditionally delegate.
7696 * target.h (struct target_ops) <to_goto_record>: Use
7697 TARGET_DEFAULT_NORETURN.
7699 2014-02-19 Tom Tromey <tromey@redhat.com>
7701 * target-delegates.c: Rebuild.
7702 * target.c (target_insn_history): Unconditionally delegate.
7703 * target.h (struct target_ops) <to_insn_history>: Use
7704 TARGET_DEFAULT_NORETURN.
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7708 * target-delegates.c: Rebuild.
7709 * target.c (target_insn_history_from): Unconditionally delegate.
7710 * target.h (struct target_ops) <to_insn_history_from>: Use
7711 TARGET_DEFAULT_NORETURN.
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7715 * target-delegates.c: Rebuild.
7716 * target.c (target_insn_history_range): Unconditionally delegate.
7717 * target.h (struct target_ops) <to_insn_history_range>: Use
7718 TARGET_DEFAULT_NORETURN.
7720 2014-02-19 Tom Tromey <tromey@redhat.com>
7722 * target-delegates.c: Rebuild.
7723 * target.c (target_call_history): Unconditionally delegate.
7724 * target.h (struct target_ops) <to_call_history>: Use
7725 TARGET_DEFAULT_NORETURN.
7727 2014-02-19 Tom Tromey <tromey@redhat.com>
7729 * target-delegates.c: Rebuild.
7730 * target.c (target_call_history_from): Unconditionally delegate.
7731 * target.h (struct target_ops) <to_call_history_from>: Use
7732 TARGET_DEFAULT_NORETURN.
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target-delegates.c: Rebuild.
7737 * target.c (target_call_history_range): Unconditionally delegate.
7738 * target.h (struct target_ops) <to_call_history_range>: Use
7739 TARGET_DEFAULT_NORETURN.
7741 2014-02-19 Tom Tromey <tromey@redhat.com>
7743 * target-delegates.c: Rebuild.
7744 * target.c (target_verify_memory): Unconditionally delegate.
7745 * target.h (struct target_ops) <to_verify_memory>: Use
7746 TARGET_DEFAULT_NORETURN.
7748 2014-02-19 Tom Tromey <tromey@redhat.com>
7750 * target-delegates.c: Rebuild.
7751 * target.c (target_core_of_thread): Unconditionally delegate.
7752 * target.h (struct target_ops) <to_core_of_thread>: Use
7753 TARGET_DEFAULT_RETURN.
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target-delegates.c: Rebuild.
7758 * target.c (target_flash_done): Unconditionally delegate.
7759 * target.h (struct target_ops) <to_flash_done>: Use
7760 TARGET_DEFAULT_NORETURN.
7762 2014-02-19 Tom Tromey <tromey@redhat.com>
7764 * target-delegates.c: Rebuild.
7765 * target.c (target_flash_erase): Unconditionally delegate.
7766 * target.h (struct target_ops) <to_flash_erase>: Use
7767 TARGET_DEFAULT_NORETURN.
7769 2014-02-19 Tom Tromey <tromey@redhat.com>
7771 * target-delegates.c: Rebuild.
7772 * target.c (target_get_section_table): Unconditionally delegate.
7773 * target.h (struct target_ops) <to_get_section_table>: Use
7774 TARGET_DEFAULT_RETURN.
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target-delegates.c: Rebuild.
7779 * target.c (target_pid_to_str): Unconditionally delegate.
7780 (init_dummy_target): Don't initialize to_pid_to_str.
7781 (default_pid_to_str): Rename from dummy_pid_to_str.
7782 * target.h (struct target_ops) <to_pid_to_str>: Use
7783 TARGET_DEFAULT_FUNC.
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7787 * target-delegates.c: Rebuild.
7788 * target.c (target_find_new_threads): Unconditionally delegate.
7789 * target.h (struct target_ops) <to_find_new_threads>: Use
7790 TARGET_DEFAULT_RETURN.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7794 * target-delegates.c: Rebuild.
7795 * target.c (target_program_signals): Unconditionally delegate.
7796 * target.h (struct target_ops) <to_program_signals>: Use
7797 TARGET_DEFAULT_IGNORE.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target-delegates.c: Rebuild.
7802 * target.c (target_pass_signals): Unconditionally delegate.
7803 * target.h (struct target_ops) <to_pass_signals>: Use
7804 TARGET_DEFAULT_IGNORE.
7806 2014-02-19 Tom Tromey <tromey@redhat.com>
7808 * target-delegates.c: Rebuild.
7809 * target.c (default_mourn_inferior): New function.
7810 (target_mourn_inferior): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_mourn_inferior>: Use
7812 TARGET_DEFAULT_FUNC.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (default_follow_fork): New function.
7818 (target_follow_fork): Unconditionally delegate.
7819 * target.h (struct target_ops) <to_follow_fork>: Use
7820 TARGET_DEFAULT_FUNC.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (target_kill): Unconditionally delegate.
7826 * target.h (struct target_ops) <to_kill>: Use
7827 TARGET_DEFAULT_NORETURN.
7829 2014-02-19 Tom Tromey <tromey@redhat.com>
7831 * target-delegates.c: Rebuild.
7832 * target.c (target_masked_watch_num_registers): Unconditionally
7834 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7835 Use TARGET_DEFAULT_RETURN.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_remove_mask_watchpoint): Unconditionally
7842 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7843 TARGET_DEFAULT_RETURN.
7845 2014-02-19 Tom Tromey <tromey@redhat.com>
7847 * target-delegates.c: Rebuild.
7848 * target.c (target_insert_mask_watchpoint): Unconditionally
7850 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7851 TARGET_DEFAULT_RETURN.
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_ranged_break_num_registers): Unconditionally
7858 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7859 Use TARGET_DEFAULT_RETURN.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (target_fetch_registers): Unconditionally delegate.
7865 * target.h (struct target_ops) <to_fetch_registers>: Use
7866 TARGET_DEFAULT_NORETURN.
7868 2014-02-19 Tom Tromey <tromey@redhat.com>
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7873 * target.h (struct target_ops) <to_stop>: Use
7874 TARGET_DEFAULT_IGNORE.
7876 2014-02-19 Tom Tromey <tromey@redhat.com>
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_can_run_breakpoint_commands.
7881 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7882 Use TARGET_DEFAULT_RETURN.
7884 2014-02-19 Tom Tromey <tromey@redhat.com>
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_supports_evaluation_of_breakpoint_conditions.
7889 * target.h (struct target_ops)
7890 <to_supports_evaluation_of_breakpoint_conditions>: Use
7891 TARGET_DEFAULT_RETURN.
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7895 * target-delegates.c: Rebuild.
7896 * target.c (update_current_target): Don't inherit or default
7897 to_augmented_libraries_svr4_read.
7898 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7899 Use TARGET_DEFAULT_RETURN.
7901 2014-02-19 Tom Tromey <tromey@redhat.com>
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7906 * target.h (struct target_ops) <to_can_use_agent>: Use
7907 TARGET_DEFAULT_RETURN.
7909 2014-02-19 Tom Tromey <tromey@redhat.com>
7911 * target-delegates.c: Rebuild.
7912 * target.c (update_current_target): Don't inherit or default
7914 * target.h (struct target_ops) <to_use_agent>: Use
7915 TARGET_DEFAULT_NORETURN.
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7919 * target-delegates.c: Rebuild.
7920 * target.c (update_current_target): Don't inherit or default
7922 (return_null): Remove.
7923 * target.h (struct target_ops) <to_traceframe_info>: Use
7924 TARGET_DEFAULT_RETURN.
7926 2014-02-19 Tom Tromey <tromey@redhat.com>
7928 * target-delegates.c: Rebuild.
7929 * target.c (update_current_target): Don't inherit or default
7930 to_static_tracepoint_markers_by_strid.
7931 * target.h (struct target_ops)
7932 <to_static_tracepoint_markers_by_strid>: Use
7933 TARGET_DEFAULT_NORETURN.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7939 to_static_tracepoint_marker_at.
7940 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7941 Use TARGET_DEFAULT_RETURN.
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7948 * target.h (struct target_ops) <to_set_permissions>: Use
7949 TARGET_DEFAULT_IGNORE.
7951 2014-02-19 Tom Tromey <tromey@redhat.com>
7953 * target-delegates.c: Rebuild.
7954 * target.c (update_current_target): Don't inherit or default
7956 * target.h (struct target_ops) <to_get_tib_address>: Use
7957 TARGET_DEFAULT_NORETURN.
7959 2014-02-19 Tom Tromey <tromey@redhat.com>
7961 * target-delegates.c: Rebuild.
7962 * target.c (update_current_target): Don't inherit or default
7964 * target.h (struct target_ops) <to_set_trace_notes>: Use
7965 TARGET_DEFAULT_RETURN.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target-delegates.c: Rebuild.
7970 * target.c (update_current_target): Don't initialize
7971 to_set_trace_buffer_size.
7972 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7973 TARGET_DEFAULT_IGNORE.
7975 2014-02-19 Tom Tromey <tromey@redhat.com>
7977 * target-delegates.c: Rebuild.
7978 * target.c (update_current_target): Don't inherit or default
7979 to_set_circular_trace_buffer.
7980 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7981 TARGET_DEFAULT_IGNORE.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target-delegates.c: Rebuild.
7986 * target.c (update_current_target): Don't inherit or default
7987 to_set_disconnected_tracing.
7988 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7989 TARGET_DEFAULT_IGNORE.
7991 2014-02-19 Tom Tromey <tromey@redhat.com>
7993 * target-delegates.c: Rebuild.
7994 * target.c (update_current_target): Don't inherit or default
7995 to_get_min_fast_tracepoint_insn_len.
7996 (return_minus_one): Remove.
7997 * target.h (struct target_ops)
7998 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_get_raw_trace_data.
8005 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8006 TARGET_DEFAULT_NORETURN.
8008 2014-02-19 Tom Tromey <tromey@redhat.com>
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_upload_trace_state_variables.
8013 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8014 Use TARGET_DEFAULT_RETURN.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target-delegates.c: Rebuild.
8019 * target.c (update_current_target): Don't inherit or default
8020 to_upload_tracepoints.
8021 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8022 TARGET_DEFAULT_RETURN.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target-delegates.c: Rebuild.
8027 * target.c (update_current_target): Don't inherit or default
8029 * target.h (struct target_ops) <to_save_trace_data>: Use
8030 TARGET_DEFAULT_NORETURN.
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
8036 to_get_trace_state_variable_value.
8037 * target.h (struct target_ops)
8038 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
8045 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8047 2014-02-19 Tom Tromey <tromey@redhat.com>
8049 * target-delegates.c: Rebuild.
8050 * target.c (update_current_target): Don't inherit or default
8052 * target.h (struct target_ops) <to_trace_stop>: Use
8053 TARGET_DEFAULT_NORETURN.
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8057 * target-delegates.c: Rebuild.
8058 * target.c (update_current_target): Don't inherit or default
8059 to_get_tracepoint_status.
8060 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8061 TARGET_DEFAULT_NORETURN.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * target-delegates.c: Rebuild.
8066 * target.c (update_current_target): Don't inherit or default
8067 to_get_trace_status.
8068 * target.h (struct target_ops) <to_get_trace_status>: Use
8069 TARGET_DEFAULT_RETURN.
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target-delegates.c: Rebuild.
8074 * target.c (update_current_target): Don't inherit or default
8076 * target.h (struct target_ops) <to_trace_start>: Use
8077 TARGET_DEFAULT_NORETURN.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * target-delegates.c: Rebuild.
8082 * target.c (update_current_target): Don't inherit or default
8083 to_trace_set_readonly_regions.
8084 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8085 Use TARGET_DEFAULT_NORETURN.
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8089 * target-delegates.c: Rebuild.
8090 * target.c (update_current_target): Don't inherit or default
8091 to_disable_tracepoint.
8092 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8093 TARGET_DEFAULT_NORETURN.
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target-delegates.c: Rebuild.
8098 * target.c (update_current_target): Don't inherit or default
8099 to_enable_tracepoint.
8100 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8101 TARGET_DEFAULT_NORETURN.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target-delegates.c: Rebuild.
8106 * target.c (update_current_target): Don't inherit or default
8107 to_download_trace_state_variable.
8108 * target.h (struct target_ops) <to_download_trace_state_variable>:
8109 Use TARGET_DEFAULT_NORETURN.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * target-delegates.c: Rebuild.
8114 * target.c (update_current_target): Don't inherit or default
8115 to_can_download_tracepoint.
8116 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8117 TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8123 to_download_tracepoint.
8124 * target.h (struct target_ops) <to_download_tracepoint>: Use
8125 TARGET_DEFAULT_NORETURN.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * target-delegates.c: Rebuild.
8130 * target.c (update_current_target): Don't inherit or default
8132 * target.h (struct target_ops) <to_trace_init>: Use
8133 TARGET_DEFAULT_RETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.c (update_current_target): Don't inherit or default
8139 to_supports_string_tracing.
8140 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8141 TARGET_DEFAULT_RETURN.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target-delegates.c: Rebuild.
8146 * target.c (update_current_target): Don't inherit or default
8147 to_supports_enable_disable_tracepoint.
8148 * target.h (struct target_ops)
8149 <to_supports_enable_disable_tracepoint>: Use
8150 TARGET_DEFAULT_RETURN.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8156 to_supports_multi_process.
8157 * target.h (struct target_ops) <to_supports_multi_process>: Use
8158 TARGET_DEFAULT_RETURN.
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8162 * target-delegates.c: Rebuild.
8163 * target.c (update_current_target): Don't inherit or default
8164 to_get_ada_task_ptid.
8165 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8166 TARGET_DEFAULT_FUNC.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8172 to_thread_architecture.
8173 * target.h (struct target_ops) <to_thread_architecture>: Use
8174 TARGET_DEFAULT_FUNC.
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8178 * target-delegates.c: Rebuild.
8179 * target.c (update_current_target): Don't inherit or default
8180 to_execution_direction.
8181 * target.h (struct target_ops) <to_execution_direction>: Use
8182 TARGET_DEFAULT_FUNC.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.c (update_current_target): Don't inherit or default
8188 to_can_execute_reverse.
8189 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8190 TARGET_DEFAULT_RETURN.
8191 (target_can_execute_reverse): Unconditionally delegate.
8193 2014-02-19 Tom Tromey <tromey@redhat.com>
8195 * target-delegates.c: Rebuild.
8196 * target.c (update_current_target): Don't inherit or default
8198 (dummy_goto_bookmark): Remove.
8199 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8200 * target.h (struct target_ops) <to_goto_bookmark>: Use
8201 TARGET_DEFAULT_NORETURN.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8208 (dummy_get_bookmark): Remove.
8209 (init_dummy_target): Don't inherit or default to_get_bookmark.
8210 * target.h (struct target_ops) <to_get_bookmark>: Use
8211 TARGET_DEFAULT_NORETURN
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_make_corefile_notes.
8218 (init_dummy_target): Don't initialize to_make_corefile_notes.
8219 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8220 TARGET_DEFAULT_FUNC.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_find_memory_regions.
8227 (init_dummy_target): Don't initialize to_find_memory_regions.
8228 * target.h (struct target_ops) <to_find_memory_regions>: Use
8229 TARGET_DEFAULT_FUNC.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8236 * target.h (struct target_ops) <to_log_command>: Use
8237 TARGET_DEFAULT_IGNORE.
8238 (target_log_command): Unconditionally delegate.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_pid_to_exec_file.
8245 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8246 TARGET_DEFAULT_RETURN.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8253 (target_thread_name): Unconditionally delegate.
8254 * target.h (struct target_ops) <to_thread_name>: Use
8255 TARGET_DEFAULT_RETURN.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target-delegates.c: Rebuild.
8260 * target.c (update_current_target): Don't inherit or default
8261 to_extra_thread_info.
8262 * target.h (struct target_ops) <to_extra_thread_info>: Use
8263 TARGET_DEFAULT_RETURN.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8270 * target.h (struct target_ops) <to_has_exited>: Use
8271 TARGET_DEFAULT_RETURN..
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target-delegates.c: Rebuild.
8276 * target.c (update_current_target): Don't inherit or default
8277 to_set_syscall_catchpoint.
8278 (return_one): Remove.
8279 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8280 TARGET_DEFAULT_RETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8286 to_insert_exec_catchpoint.
8287 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8288 TARGET_DEFAULT_RETURN.
8290 2014-01-08 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_insert_exec_catchpoint.
8295 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8296 TARGET_DEFAULT_RETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_remove_vfork_catchpoint.
8303 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8304 TARGET_DEFAULT_RETURN.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_insert_vfork_catchpoint.
8311 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8312 TARGET_DEFAULT_RETURN.
8314 2014-02-19 Tom Tromey <tromey@redhat.com>
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_remove_fork_catchpoint.
8319 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8320 TARGET_DEFAULT_RETURN.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_insert_fork_catchpoint.
8327 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8328 TARGET_DEFAULT_RETURN.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_post_startup_inferior.
8335 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8336 TARGET_DEFAULT_IGNORE.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8343 * target.h (struct target_ops) <to_load>: Use
8344 TARGET_DEFAULT_NORETURN.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8351 * target.h (struct target_ops) <to_terminal_info>: Use
8352 TARGET_DEFAULT_FUNC.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8358 to_terminal_save_ours.
8359 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8360 TARGET_DEFAULT_IGNORE.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8367 * target.h (struct target_ops) <to_terminal_ours>: Use
8368 TARGET_DEFAULT_IGNORE.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_terminal_ours_for_output.
8375 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8376 TARGET_DEFAULT_IGNORE.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_terminal_inferior.
8383 * target.h (struct target_ops) <to_terminal_inferior>: Use
8384 TARGET_DEFAULT_IGNORE.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8391 * target.h (struct target_ops) <to_terminal_init>: Use
8392 TARGET_DEFAULT_IGNORE.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_can_accel_watchpoint_condition.
8399 * target.h (struct target_ops)
8400 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_region_ok_for_hw_watchpoint.
8407 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8408 Use TARGET_DEFAULT_FUNC.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_watchpoint_addr_within_range.
8415 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8416 Use TARGET_DEFAULT_FUNC.
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_remove_watchpoint.
8423 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8424 TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_insert_watchpoint.
8431 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8432 TARGET_DEFAULT_RETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_remove_hw_breakpoint.
8439 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8440 TARGET_DEFAULT_RETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_insert_hw_breakpoint.
8447 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8448 TARGET_DEFAULT_RETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_can_use_hw_breakpoint.
8455 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8456 TARGET_DEFAULT_RETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8463 * target.h (struct target_ops) <to_files_info>: Use
8464 TARGET_DEFAULT_IGNORE.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8471 * target.h (struct target_ops) <to_store>: Use
8472 TARGET_DEFAULT_NORETURN.
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8479 * target.h (struct target_ops) <to_post_attach>: Use
8480 TARGET_DEFAULT_IGNORE.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8487 (default_rcmd): New function.
8488 (do_monitor_command): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_rmcd>: Use
8490 TARGET_DEFAULT_FUNC.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target-delegates.c: Rebuild.
8495 * target.c (init_dummy_target): Don't initialize to_attach.
8496 (target_attach): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_attach>: Use
8498 TARGET_DEFAULT_FUNC.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_detach): Unconditionally delegate.
8504 (init_dummy_target): Don't initialize to_detach.
8505 * target.h (struct target_ops) <to_detach>: Use
8506 TARGET_DEFAULT_IGNORE.
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8510 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8512 (target_augmented_libraries_svr4_read): Add argument.
8513 * target.c (update_current_target): Update.
8514 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8519 * target.h (struct target_ops) <to_call_history_range>: Add
8521 * target.c (target_call_history_range): Add argument.
8522 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8524 (record_btrace_call_history_from): Update.
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target.h (struct target_ops) <to_call_history_from>: Add
8530 * target.c (target_call_history_from): Add argument.
8531 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target.h (struct target_ops) <to_call_history>: Add argument.
8537 * target.c (target_call_history): Add argument.
8538 * record-btrace.c (record_btrace_call_history): Add 'self'
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * target.h (struct target_ops) <to_insn_history_range>: Add
8545 * target.c (target_insn_history_range): Add argument.
8546 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8548 (record_btrace_insn_history_from): Update.
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target.h (struct target_ops) <to_insn_history_from>: Add
8554 * target.c (target_insn_history_from): Add argument.
8555 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target.h (struct target_ops) <to_insn_history>: Add argument.
8561 * target.c (target_insn_history): Add argument.
8562 * record-btrace.c (record_btrace_insn_history): Add 'self'
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target.h (struct target_ops) <to_goto_record>: Add argument.
8568 * target.c (target_goto_record): Add argument.
8569 * record-full.c (record_full_goto): Add 'self' argument.
8570 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8575 * target.c (target_goto_record_end): Add argument.
8576 * record-full.c (record_full_goto_end): Add 'self' argument.
8577 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target.h (struct target_ops) <to_goto_record_begin>: Add
8583 * target.c (target_goto_record_begin): Add argument.
8584 * record-full.c (record_full_goto_begin): Add 'self' argument.
8585 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target.h (struct target_ops) <to_record_is_replaying>: Add
8592 * target.c (target_record_is_replaying): Add argument.
8593 * record-full.c (record_full_is_replaying): Add 'self' argument.
8594 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8596 (record_btrace_xfer_partial, record_btrace_store_registers)
8597 (record_btrace_prepare_to_store, record_btrace_resume)
8598 (record_btrace_wait, record_btrace_decr_pc_after_break)
8599 (record_btrace_find_new_threads, record_btrace_thread_alive):
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target.h (struct target_ops) <to_delete_record>: Add argument.
8605 * target.c (target_delete_record): Add argument.
8606 * record-full.c (record_full_delete): Add 'self' argument.
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8610 * target.h (struct target_ops) <to_save_record>: Add argument.
8611 * target.c (target_save_record): Add argument.
8612 * record-full.c (record_full_save): Add 'self' argument.
8613 (record_full_save): Add 'self' argument.
8615 2014-02-19 Tom Tromey <tromey@redhat.com>
8617 * target.h (struct target_ops) <to_info_record>: Add argument.
8618 * target.c (target_info_record): Add argument.
8619 * record.c (info_record_command): Add argument.
8620 * record-full.c (record_full_info): Add 'self' argument.
8621 * record-btrace.c (record_btrace_info): Add 'self' argument.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8626 * target.c (target_stop_recording): Add argument.
8627 * record.c (record_stop): Add argument.
8628 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8634 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8635 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8637 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8638 (_initialize_amd64_linux_nat): Use it.
8639 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8640 (_initialize_i386_linux_nat): Use it.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8645 * target.c (target_teardown_btrace): Add argument.
8646 * remote.c (remote_teardown_btrace): Add 'self' argument.
8647 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8649 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8655 * target.c (target_disable_btrace): Add argument.
8656 * remote.c (remote_disable_btrace): Add 'self' argument.
8657 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8659 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8665 * target.c (target_enable_btrace): Add argument.
8666 * remote.c (remote_enable_btrace): Add 'self' argument.
8667 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8669 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8675 (target_can_use_agent): Add argument.
8676 * target.c (update_current_target): Update.
8677 * remote.c (remote_can_use_agent): Add 'self' argument.
8678 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target.h (struct target_ops) <to_use_agent>: Add argument.
8683 (target_use_agent): Add argument.
8684 * target.c (update_current_target): Update.
8685 * remote.c (remote_use_agent): Add 'self' argument.
8686 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8688 2014-02-19 Tom Tromey <tromey@redhat.com>
8690 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8691 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8692 (target_traceframe_info): Add argument.
8693 * target.c (update_current_target): Update.
8694 * remote.c (remote_traceframe_info): Add 'self' argument.
8695 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target.h (target_static_tracepoint_markers_by_strid): Add
8701 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8703 * target.c (update_current_target): Update.
8704 * remote.c (struct target_ops)
8705 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8706 * linux-nat.c (struct target_ops)
8707 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8713 (target_static_tracepoint_marker_at): Add argument.
8714 * target.c (update_current_target): Update.
8715 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8721 (target_set_permissions): Add argument.
8722 * target.c (update_current_target): Update.
8723 * remote.c (remote_set_permissions): Add 'self' argument.
8724 (remote_start_remote): Update.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8729 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8730 (target_get_tib_address): Add argument.
8731 * target.c (update_current_target): Update.
8732 * remote.c (remote_get_tib_address): Add 'self' argument.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8737 (target_set_trace_notes): Add argument.
8738 * target.c (update_current_target): Update.
8739 * remote.c (remote_set_trace_notes): Add 'self' argument.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8745 (target_set_trace_buffer_size): Add argument.
8746 * target.c (update_current_target): Update.
8747 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8753 (target_set_circular_trace_buffer): Add argument.
8754 * target.c (update_current_target): Update.
8755 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8762 (target_set_disconnected_tracing): Add argument.
8763 * target.c (update_current_target): Update.
8764 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target.h (struct target_ops)
8769 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8770 (target_get_min_fast_tracepoint_insn_len): Add argument.
8771 * target.c (update_current_target): Update.
8772 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8779 (target_get_raw_trace_data): Add argument.
8780 * target.c (update_current_target): Update.
8781 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8787 (target_upload_trace_state_variables): Add argument.
8788 * target.c (update_current_target): Update.
8789 * remote.c (remote_upload_trace_state_variables): Add 'self'
8791 (remote_start_remote): Update.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8797 (target_upload_tracepoints): Add argument.
8798 * target.c (update_current_target): Update.
8799 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8800 (remote_start_remote): Update.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8805 (target_save_trace_data): Add argument.
8806 * target.c (update_current_target): Update.
8807 * remote.c (remote_save_trace_data): Add 'self' argument.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8813 * target.h (struct target_ops)
8814 <to_get_trace_state_variable_value>: Add argument.
8815 (target_get_trace_state_variable_value): Add argument.
8816 * target.c (update_current_target): Update.
8817 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8819 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8824 * target.h (struct target_ops) <to_trace_find>: Add argument.
8825 (target_trace_find): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_trace_find): Add 'self' argument.
8828 * ctf.c (ctf_trace_find): Add 'self' argument.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8833 (target_trace_stop): Add argument.
8834 * target.c (update_current_target): Update.
8835 * remote.c (remote_trace_stop): Add 'self' argument.
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8839 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8840 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8842 (target_get_tracepoint_status): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8849 * target.h (struct target_ops) <to_get_trace_status>: Add
8851 (target_get_trace_status): Add argument.
8852 * target.c (update_current_target): Update.
8853 * remote.c (remote_get_trace_status): Add 'self' argument.
8854 (remote_start_remote, remote_can_download_tracepoint): Update.
8855 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8857 2014-02-19 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_trace_start>: Add argument.
8860 (target_trace_start): Add argument.
8861 * target.c (update_current_target): Update.
8862 * remote.c (remote_trace_start): Add 'self' argument.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8868 (target_trace_set_readonly_regions): Add argument.
8869 * target.c (update_current_target): Update.
8870 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8875 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8877 (target_disable_tracepoint): Add argument.
8878 * target.c (update_current_target): Update.
8879 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8885 (target_enable_tracepoint): Add argument.
8886 * target.c (update_current_target): Update.
8887 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_download_trace_state_variable>:
8893 (target_download_trace_state_variable): Add argument.
8894 * target.c (update_current_target): Update.
8895 * remote.c (remote_download_trace_state_variable): Add 'self'
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8902 (target_can_download_tracepoint): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_download_tracepoint>: Add
8910 (target_download_tracepoint): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_download_tracepoint): Add 'self' argument.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_trace_init>: Add argument.
8917 (target_trace_init): Add argument.
8918 * target.c (update_current_target): Update.
8919 * remote.c (remote_trace_init): Add 'self' argument.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8924 * target.c (target_fileio_readlink): Add argument.
8925 * remote.c (remote_hostio_readlink): Add 'self' argument.
8926 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8931 * target.c (target_fileio_unlink): Add argument.
8932 * remote.c (remote_hostio_unlink): Add 'self' argument.
8933 (remote_file_delete): Update.
8934 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8939 * target.c (target_fileio_close): Add argument.
8940 * remote.c (remote_hostio_close): Add 'self' argument.
8941 (remote_hostio_close_cleanup): Update.
8942 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8944 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8949 * target.c (target_fileio_pread): Add argument.
8950 * remote.c (remote_hostio_pread): Add 'self' argument.
8951 (remote_bfd_iovec_pread, remote_file_get): Update.
8952 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8957 * target.c (target_fileio_pwrite): Add argument.
8958 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8959 (remote_file_put): Update.
8960 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8965 * target.c (target_fileio_open): Add argument.
8966 * remote.c (remote_hostio_open): Add 'self' argument.
8967 (remote_bfd_iovec_open): Add 'self' argument.
8968 (remote_file_put): Add 'self' argument.
8969 (remote_file_get): Add 'self' argument.
8970 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8976 (target_can_run_breakpoint_commands): Add argument.
8977 * target.c (update_current_target): Update.
8978 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8980 (remote_insert_breakpoint): Add 'self' argument.
8981 (remote_insert_hw_breakpoint): Add 'self' argument.
8982 (remote_can_run_breakpoint_commands): Add 'self' argument.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target.h (struct target_ops)
8987 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8988 (target_supports_evaluation_of_breakpoint_conditions): Add
8990 * target.c (update_current_target): Update.
8991 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8993 (remote_insert_breakpoint): Add 'self' argument.
8994 (remote_insert_hw_breakpoint): Add 'self' argument.
8995 (remote_supports_cond_breakpoints): Add 'self' argument.
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8999 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9001 (target_supports_string_tracing): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops)
9008 <to_supports_disable_randomization>: Add argument.
9009 * target.c (find_default_supports_disable_randomization): Add
9011 (target_supports_disable_randomization): Add argument.
9012 (find_default_supports_disable_randomization): Add 'self'
9014 * remote.c (extended_remote_supports_disable_randomization): Add
9016 (remote_supports_disable_randomization): Add 'self' argument.
9017 (extended_remote_create_inferior): Update.
9018 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target.h (struct target_ops)
9024 <to_supports_enable_disable_tracepoint>: Add argument.
9025 (target_supports_enable_disable_tracepoint): Add argument.
9026 * target.c (update_current_target): Update.
9027 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target.h (struct target_ops) <to_supports_multi_process>: Add
9034 (target_supports_multi_process): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_supports_multi_process): Add 'self' argument.
9037 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9039 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target.h (struct target_ops) <to_execution_direction>: Add
9046 (target_execution_direction): Add argument.
9047 * target.c (default_execution_direction): Add 'self' argument.
9048 * record-full.c (record_full_execution_direction): Add 'self'
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9055 (target_can_execute_reverse): Add argument.
9056 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9057 * record-full.c (record_full_can_execute_reverse): Add 'self'
9059 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9064 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9065 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9067 (target_get_ada_task_ptid): Add argument.
9068 * target.c (update_current_target): Update.
9069 (default_get_ada_task_ptid): Add 'self' argument.
9070 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9071 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9072 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9074 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9076 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9078 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9080 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9081 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9087 (target_goto_bookmark): Add argument.
9088 * target.c (dummy_goto_bookmark): Add 'self' argument.
9089 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9093 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9094 (target_get_bookmark): Add argument.
9095 * target.c (dummy_get_bookmark): Add 'self' argument.
9096 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9102 (target_make_corefile_notes): Add argument.
9103 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9104 * procfs.c (procfs_make_note_section): Add 'self' argument.
9105 (procfs_make_note_section): Add 'self' argument.
9106 (procfs_make_note_section): Add 'self' argument.
9107 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9109 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9110 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9111 * exec.c (exec_make_note_section): Add 'self' argument.
9112 (exec_make_note_section): Add 'self' argument.
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_find_memory_regions>: Add
9118 (target_find_memory_regions): Add argument.
9119 * target.c (dummy_find_memory_regions): Add 'self' argument.
9120 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9121 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9122 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9123 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9124 * exec. (exec_do_find_memory_regions): New global.
9125 (exec_set_find_memory_regions): Rewrite.
9126 (exec_find_memory_regions): New function.
9127 (init_exec_ops): Use exec_find_memory_regions.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_supports_non_stop>: Add
9133 * target.c (find_default_supports_non_stop): Add argument.
9134 (target_supports_non_stop): Add argument.
9135 (find_default_supports_non_stop): Add 'self' argument.
9136 * remote.c (remote_supports_non_stop): Add 'self' argument.
9137 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9141 * target.h (struct target_ops) <to_log_command>: Add argument.
9142 (target_log_command): Add argument.
9143 * serial.h (serial_log_command): Add 'self' argument.
9144 * serial.c (serial_log_command): Add 'self' argument.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9149 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9151 (target_pid_to_exec_file): Add argument.
9152 * target.c (debug_to_pid_to_exec_file): Add argument.
9153 (update_current_target): Update.
9154 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9155 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9156 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9157 (linux_handle_extended_wait): Update.
9158 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9159 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9160 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9161 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_rcmd>: Add argument.
9166 (target_rcmd): Add argument.
9167 * target.c (debug_to_rcmd): Add argument.
9168 (update_current_target, do_monitor_command): Update.
9169 * remote.c (remote_rcmd): Add 'self' argument.
9170 * monitor.c (monitor_rcmd): Add 'self' argument.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * windows-nat.c (windows_stop): Add 'self' argument.
9175 * target.h (struct target_ops) <to_stop>: Add argument.
9176 * target.c (target_stop): Add argument.
9177 (debug_to_stop): Add argument.
9178 (update_current_target): Update.
9179 * remote.c (remote_stop): Add 'self' argument.
9180 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9181 (gdbsim_cntrl_c): Update.
9182 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9183 * procfs.c (procfs_stop): Add 'self' argument.
9184 * nto-procfs.c (procfs_stop): Add 'self' argument.
9185 * monitor.c (monitor_stop): Add 'self' argument.
9186 (monitor_open): Update.
9187 * linux-nat.c (linux_nat_stop): Add argument.
9188 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9189 * gnu-nat.c (gnu_stop): Add 'self' argument.
9190 * darwin-nat.c (darwin_stop): Add 'self' argument.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target.h (struct target_ops) <to_thread_name>: Add argument.
9195 * target.c (target_thread_name): Add argument.
9196 (update_current_target): Update.
9197 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * target.h (struct target_ops) <to_extra_thread_info>: Add
9203 (target_extra_thread_info): Add argument.
9204 * target.c (update_current_target): Update.
9205 * remote.c (remote_threads_extra_info): Add 'self' argument.
9206 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9208 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9209 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9210 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9212 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9214 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9216 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_program_signals>: Add argument.
9222 * target.c (target_program_signals): Add argument.
9223 * remote.c (remote_program_signals): Add 'self' argument.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9228 * target.c (target_pass_signals): Add argument.
9229 * remote.c (remote_pass_signals): Add 'self' argument.
9230 (remote_start_remote): Update.
9231 * procfs.c (procfs_pass_signals): Add 'self' argument.
9232 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9233 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9234 (linux_nat_create_inferior, linux_nat_attach): Update.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * windows-nat.c (windows_can_run): Add 'self' argument.
9239 * target.h (struct target_ops) <to_can_run>: Add argument.
9240 (target_can_run): Add argument.
9241 * target.c (debug_to_can_run): Add argument.
9242 (update_current_target): Update.
9243 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9244 * inf-child.c (inf_child_can_run): Add 'self' argument.
9245 * go32-nat.c (go32_can_run): Add 'self' argument.
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9249 * target.h (struct target_ops) <to_has_exited>: Add argument.
9250 (target_has_exited): Add argument.
9251 * target.c (debug_to_has_exited): Add argument.
9252 (update_current_target): Update.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9258 (target_set_syscall_catchpoint): Add argument.
9259 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9261 * target.c (update_current_target): Update.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9267 (target_remove_exec_catchpoint): Add argument.
9268 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9269 (update_current_target): Update.
9270 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9277 (target_insert_exec_catchpoint): Add argument.
9278 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9279 (update_current_target): Update.
9280 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9287 (target_remove_vfork_catchpoint): Add argument.
9288 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9289 (update_current_target): Update.
9290 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9297 (target_insert_vfork_catchpoint): Add argument.
9298 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9299 (update_current_target): Update.
9300 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9307 (target_remove_fork_catchpoint): Add argument.
9308 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9309 (update_current_target): Update.
9310 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9315 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9317 (target_insert_fork_catchpoint): Add argument.
9318 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9319 (update_current_target): Update.
9320 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9327 (target_post_startup_inferior): Add argument.
9328 * target.c (debug_to_post_startup_inferior): Add argument.
9329 (update_current_target): Update.
9330 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9332 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9334 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9336 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9338 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9340 (super_post_startup_inferior): Likewise.
9341 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9343 (super_post_startup_inferior): Likewise.
9344 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9345 Add 'self' argument.
9346 (super_post_startup_inferior): Likewise.
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target.h (struct target_ops) <to_load>: Add argument.
9351 * target.c (target_load): Add argument.
9352 (debug_to_load): Add argument.
9353 (update_current_target): Update.
9354 * remote.c (remote_load): Add 'self' argument.
9355 * remote-sim.c (gdbsim_load): Add 'self' argument.
9356 * remote-mips.c (mips_load): Add 'self' argument.
9357 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9358 * monitor.c (monitor_load): Add 'self' argument.
9359 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9364 (target_terminal_info): Add argument.
9365 * target.c (debug_to_terminal_info): Add argument.
9366 (default_terminal_info): Likewise.
9367 * inflow.c (child_terminal_info): Add 'self' argument.
9368 * inferior.h (child_terminal_info): Add 'self' argument.
9369 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9375 (target_terminal_save_ours): Add argument.
9376 * target.c (debug_to_terminal_save_ours): Add argument.
9377 (update_current_target): Update.
9378 * inflow.c (terminal_save_ours): Add 'self' argument.
9379 * inferior.h (terminal_save_ours): Add 'self' argument.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9384 (target_terminal_ours): Add argument.
9385 * target.c (debug_to_terminal_ours): Add argument.
9386 (update_current_target): Update.
9387 * remote.c (remote_terminal_ours): Add 'self' argument.
9388 (remote_close): Update.
9389 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9390 * inflow.c (terminal_ours): Add 'self' argument.
9391 * inferior.h (terminal_ours): Add 'self' argument.
9392 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9394 2014-02-19 Pedro Alves <palves@redhat.com>
9395 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9399 (target_terminal_ours_for_output): Add argument.
9400 * target.c (debug_to_terminal_ours_for_output): Add argument.
9401 (update_current_target): Update.
9402 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9403 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9404 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target.h (struct target_ops) <to_terminal_inferior>: Add
9410 * target.c (target_terminal_inferior): Add argument.
9411 (update_current_target): Update.
9412 * remote.c (remote_terminal_inferior): Add 'self' argument.
9413 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9414 * inflow.c (terminal_inferior): Add 'self' argument.
9415 * inferior.h (terminal_inferior): Add 'self' argument.
9416 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9417 (go32_terminal_inferior): Add 'self' argument.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9422 (target_terminal_init): Add argument.
9423 * target.c (debug_to_terminal_init): Add argument.
9424 (update_current_target): Update.
9425 * inflow.c (terminal_init_inferior): Add 'self' argument.
9426 * inferior.h (terminal_init_inferior): Add 'self' argument.
9427 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9428 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target.h (struct target_ops)
9433 <to_can_accel_watchpoint_condition>: Add argument.
9434 (target_can_accel_watchpoint_condition): Add argument.
9435 * target.c (debug_to_can_accel_watchpoint_condition): Add
9437 (update_current_target): Update.
9438 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9445 (target_region_ok_for_hw_watchpoint): Add argument.
9446 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9447 (default_region_ok_for_hw_watchpoint): Add argument.
9448 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9449 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9451 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9453 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9455 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9457 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9459 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9461 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9462 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9464 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9465 Add 'self' argument.
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9471 (target_insert_watchpoint): Add argument.
9472 * target.c (debug_to_insert_watchpoint): Add argument.
9473 (update_current_target): Update.
9474 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9475 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9476 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9477 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9478 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9479 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9481 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9482 (procfs_insert_hw_watchpoint): Add 'self' argument.
9483 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9485 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9487 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9489 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9490 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9492 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9499 (target_remove_watchpoint): Add argument.
9500 * target.c (debug_to_remove_watchpoint): Add argument.
9501 (update_current_target): Update.
9502 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9503 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9504 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9505 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9506 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9507 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9509 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9510 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9512 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9514 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9516 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9517 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9519 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9526 (target_remove_hw_breakpoint): Add argument.
9527 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9528 (update_current_target): Update.
9529 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9530 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9532 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9533 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9535 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9542 (target_insert_hw_breakpoint): Add argument.
9543 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9544 (update_current_target): Update.
9545 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9546 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9548 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9549 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9550 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9552 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9559 (target_can_use_hardware_watchpoint): Add argument.
9560 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9561 (update_current_target): Update.
9562 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9564 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9566 * remote.c (remote_check_watch_resources): Add 'self' argument.
9567 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9568 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9570 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9571 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9573 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9575 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9577 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9579 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9581 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9583 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9584 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9586 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9591 * target.h (struct target_ops) <to_post_attach>: Add argument.
9592 (target_post_attach): Add argument.
9593 * target.c (debug_to_post_attach): Add argument.
9594 (update_current_target): Update.
9595 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9596 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9597 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9598 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9599 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * windows-nat.c (windows_close): Add 'self' argument.
9604 * tracepoint.c (tfile_close): Add 'self' argument.
9605 * target.h (struct target_ops) <to_close>: Add argument.
9606 * target.c (target_close): Add argument.
9607 (update_current_target): Update.
9608 * remote.c (remote_close): Add 'self' argument.
9609 * remote-sim.c (gdbsim_close): Add 'self' argument.
9610 * remote-mips.c (mips_close): Add 'self' argument.
9611 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9612 * record-full.c (record_full_close): Add 'self' argument.
9613 * record-btrace.c (record_btrace_close): Add 'self' argument.
9614 * monitor.h (monitor_close): Add 'self' argument.
9615 * monitor.c (monitor_close): Add 'self' argument.
9616 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9617 * linux-nat.c (linux_nat_close): Add argument.
9618 * go32-nat.c (go32_close): Add 'self' argument.
9619 * exec.c (exec_close_1): Add 'self' argument.
9620 * ctf.c (ctf_close): Add 'self' argument.
9621 * corelow.c (core_close): Add 'self' argument.
9622 (core_close_cleanup): Update.
9623 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9624 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * remote.c (remote_load): New function.
9629 (init_remote_ops): Use it.
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9633 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9635 * common/linux-btrace.h (linux_supports_btrace): Update.
9636 * remote.c (remote_supports_btrace): Add "self" argument.
9637 * target-delegates.c: Rebuild.
9638 * target.c (target_supports_btrace): Remove.
9639 * target.h (struct target_ops) <to_supports_btrace>: Add
9640 target_ops argument.
9641 (target_supports_btrace): New define.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * record-full.c (record_full_beneath_to_resume_ops)
9646 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9647 (record_full_beneath_to_wait)
9648 (record_full_beneath_to_store_registers_ops)
9649 (record_full_beneath_to_store_registers)
9650 (record_full_beneath_to_xfer_partial_ops)
9651 (record_full_beneath_to_xfer_partial)
9652 (record_full_beneath_to_insert_breakpoint_ops)
9653 (record_full_beneath_to_insert_breakpoint)
9654 (record_full_beneath_to_remove_breakpoint_ops)
9655 (record_full_beneath_to_remove_breakpoint)
9656 (record_full_beneath_to_stopped_by_watchpoint)
9657 (record_full_beneath_to_stopped_data_address)
9658 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9659 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9660 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9661 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9662 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9663 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9664 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9665 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9666 (record_full_resume, record_full_wait_1)
9667 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9668 (record_full_store_registers, record_full_xfer_partial)
9669 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9670 (record_full_async, record_full_core_xfer_partial): Use target
9672 * target-delegates.c: Rebuild.
9673 * target.c (current_xfer_partial): Remove.
9674 (update_current_target): Do not INHERIT or de_fault
9675 to_insert_breakpoint, to_remove_breakpoint,
9676 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9677 to_is_async_p, to_async. Do not set to_xfer_partial field.
9678 (default_xfer_partial): Simplify.
9679 (current_xfer_partial): Remove.
9680 (target_wait, target_resume): Simplify.
9681 (find_default_can_async_p, find_default_is_async_p): Update.
9682 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9683 to_xfer_partial, to_stopped_by_watchpoint,
9684 to_stopped_data_address.
9685 (target_store_registers): Simplify.
9686 (forward_target_remove_breakpoint)
9687 (forward_target_insert_breakpoint): Remove.
9688 (target_remove_breakpoint, target_insert_breakpoint)
9689 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9690 * target.h (struct target_ops) <to_resume, to_wait,
9691 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9692 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9693 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9695 (forward_target_remove_breakpoint)
9696 (forward_target_insert_breakpoint): Remove.
9697 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9699 (record_btrace_insert_breakpoint): Delegate directly.
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target-delegates.c: New file.
9705 * target.c: Include target-delegates.c.
9706 (init_dummy_target): Call install_dummy_methods.
9707 (complete_target_initialization): Call install_delegators.
9708 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9709 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9710 * make-target-delegates: New file.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * record.c (find_record_target): Use find_target_at.
9715 * target.c (find_target_at): New function.
9716 * target.h (find_target_at): Declare.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9722 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9724 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9725 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9727 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9729 * linux-nat.c (save_sigtrap): Update.
9730 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9731 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9732 (linux_nat_close): Update.
9733 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9735 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9737 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9738 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9739 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9740 (tmp_to_async): Add 'ops' argument.
9741 (record_full_stopped_by_watchpoint, record_full_async)
9742 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9744 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9745 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9746 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9747 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9748 (remote_is_async_p, remote_async): Add 'ops' argument.
9749 (remote_stopped_data_address): Update.
9750 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9751 * target.c (update_current_target)
9752 (find_default_can_async_p, find_default_is_async_p): Update.
9753 (init_dummy_target): Update.
9754 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9755 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9756 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9757 (target_can_async_p, target_is_async_p, target_async)
9758 (target_stopped_by_watchpoint): Update.
9760 2014-02-19 Yao Qi <yao@codesourcery.com>
9763 * gdbarch.sh: Remove startup_gdbarch.
9764 * gdbarch.c: Regenerated.
9765 * gdbarch.h: Likewise.
9767 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9769 * rl78-tdep.c (rl78_g10_register_name): New function.
9770 (rl78_return_value): Add g10 support.
9771 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9774 2014-02-17 Doug Evans <xdje42@gmail.com>
9776 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9777 (SUBDIR_GUILE_SRCS): Ditto.
9778 (scm-gsmob.o): Ditto.
9780 2014-02-17 Yao Qi <yao@codesourcery.com>
9782 * gnu-nat.c (ILL_RPC): Declare defined function.
9784 2014-02-17 Yao Qi <yao@codesourcery.com>
9786 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9787 mach_msg_type_number_t.
9788 (gnu_write_inferior): Likewise.
9790 2014-02-17 Yao Qi <yao@codesourcery.com>
9792 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9794 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9795 (inf_validate_procs, inf_signal): Likewise.
9796 (S_exception_raise_request): Likewise.
9797 (do_mach_notify_dead_name): Likewise.
9798 (steal_exc_port): Likewise.
9799 (gnu_read_inferior): Change 'copy_count''s type to
9800 mach_msg_type_number_t.
9801 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9804 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9806 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9807 flag. Adjust all users; in particular...
9808 (gnu_wait): ..., don't decrement its value in here...
9809 (gnu_create_inferior): ..., and instead set the flag in here,
9810 around the startup_inferior call, and call that one with
9811 START_INFERIOR_TRAPS_EXPECTED.
9813 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9814 (ILL_RPC): ... new macro.
9815 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9816 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9817 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9818 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9819 functions with ILL_RPC macro.
9820 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9821 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9822 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9823 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9824 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9825 (S_proc_getlogin_reply, S_proc_getsid_reply)
9826 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9827 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9828 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9829 (S_proc_getnports_reply, S_proc_is_important_reply)
9830 (S_proc_get_code_reply): New stub functions, generated with
9833 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9834 collected the type check structures.
9836 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9838 2014-02-14 Doug Evans <dje@google.com>
9840 * target.c (target_write_partial): Fix result type.
9842 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9844 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9845 the proper offsets to access fpregset_t.
9847 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9849 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9850 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9851 * h8300-tdep.c (setmachinelist): Remove global.
9852 * hppa-tdep.c (hppa_sigtramp): Remove global.
9853 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9854 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9855 * ravenscar-thread.c (update_target_observer): Remove global.
9856 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9858 2014-02-12 Tom Tromey <tromey@redhat.com>
9860 * common/rsp-low.c: Update comments.
9861 * common/rsp-low.h: Update comments.
9863 2014-02-12 Tom Tromey <tromey@redhat.com>
9865 * common/rsp-low.c (convert_ascii_to_int): Remove.
9866 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9868 2014-02-12 Tom Tromey <tromey@redhat.com>
9870 * common/rsp-low.h (unhexify): Don't declare.
9871 * common/rsp-low.c (unhexify): Remove.
9873 2014-02-12 Tom Tromey <tromey@redhat.com>
9875 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9876 * common/rsp-low.c (convert_int_to_ascii): Remove.
9878 2014-02-12 Tom Tromey <tromey@redhat.com>
9880 * common/rsp-low.h (hexify): Don't declare.
9881 * common/rsp-low.c (hexify): Remove.
9883 2014-02-12 Tom Tromey <tromey@redhat.com>
9885 * common/rsp-low.c (hexify): Never take strlen of argument.
9887 2014-02-12 Tom Tromey <tromey@redhat.com>
9889 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9890 * remote.c (extended_remote_run, remote_rcmd)
9891 (remote_download_trace_state_variable, remote_save_trace_data)
9892 (remote_set_trace_notes): Update.
9893 * tracepoint.c (encode_source_string, tfile_write_status)
9894 (tfile_write_uploaded_tsv): Update.
9896 2014-02-12 Tom Tromey <tromey@redhat.com>
9898 * tracepoint.c: Include rsp-low.h.
9899 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9900 * remote.c: Include rsp-low.h.
9901 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9902 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9903 (remote_unescape_input): Move to common/rsp-low.c.
9904 * common/rsp-low.h: New file.
9905 * common/rsp-low.c: New file.
9906 * Makefile.in (SFILES): Add common/rsp-low.c.
9907 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9908 (COMMON_OBS): Add rsp-low.o.
9909 (rsp-low.o): New target.
9911 2014-02-12 Tom Tromey <tromey@redhat.com>
9913 * utils.h: Include print-utils.h.
9914 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9915 (int_string, core_addr_to_string, core_addr_to_string_nz)
9916 (hex_string, hex_string_custom): Don't declare.
9917 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9918 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9919 (hex_string_custom, int_string, core_addr_to_string)
9920 (core_addr_to_string_nz, host_address_to_string): Move to
9921 common/print-utils.c.
9922 * common/print-utils.h: New file.
9923 * common/print-utils.c: New file
9924 * Makefile.in (SFILES): Add common/print-utils.c.
9925 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9926 (COMMON_OBS): Add print-utils.o.
9927 (print-utils.o): New target.
9929 2014-02-12 Tom Tromey <tromey@redhat.com>
9931 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9933 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9935 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9937 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9939 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9940 if a PT_IO ptrace request returns sucessfully but indicates that 0
9941 bytes were transferred.
9943 2014-02-12 Pedro Alves <palves@redhat.com>
9944 Kevin Buettner <kevinb@redhat.com>
9946 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9947 TYPE_INSTANCE_FLAG_CODE_SPACE.
9949 2014-02-12 Pedro Alves <palves@redhat.com>
9951 * h8300-tdep.c (pseudo_from_raw_register)
9952 (raw_from_pseudo_register): New functions.
9953 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9956 2014-02-12 Pedro Alves <palves@redhat.com>
9958 * h8300-tdep.c (h8300_register_sim_regno): New function.
9959 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9960 gdbarch_register_sim_regno hook.
9962 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9964 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9966 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9968 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9970 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9972 * obsd-tdep.h (obsd_init_abi): New prototype.
9973 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9974 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9975 (obsd_init_abi): New functions.
9976 * i386obsd-tdep.c: Include "obsd-tdep.h".
9977 (i386obsd_init_abi): Call obsd_init_abi.
9978 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9979 (amd64obsd_init_abi): Call obsd_init_abi.
9980 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9981 obsd-tdep.c to gdb_target_obs.
9983 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9985 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9986 double float arguments to 16-byte in the argument slots.
9988 2014-02-11 Doug Evans <xdje42@gmail.com>
9990 * configure.ac: Don't crash if pkg-config is not found and guile
9991 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9993 * configure: Regenerate.
9995 2014-02-11 Yao Qi <yao@codesourcery.com>
9997 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9998 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9999 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10000 * gnu-nat.c (gnu_xfer_memory): Likewise.
10001 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10002 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10003 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10004 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10006 2014-02-11 Yao Qi <yao@codesourcery.com>
10008 * target.h (enum target_xfer_error): Rename to ...
10009 (enum target_xfer_status): ... it. New. All users updated.
10010 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10012 (TARGET_XFER_STATUS_ERROR_P): New macro.
10013 (target_xfer_error_to_string): Remove declaration.
10014 (target_xfer_status_to_string): Declare.
10015 (target_xfer_partial_ftype): Adjust it.
10016 (struct target_ops) <to_xfer_partial>: Return
10017 target_xfer_status. Add argument xfered_len. Update
10019 * target.c (target_xfer_error_to_string): Rename to ...
10020 (target_xfer_status_to_string): ... it. New. All callers
10022 (target_read_live_memory): Likewise. Call target_xfer_partial
10023 instead of target_read.
10024 (memory_xfer_live_readonly_partial): Return
10025 target_xfer_status. Add argument xfered_len.
10026 (raw_memory_xfer_partial): Likewise.
10027 (memory_xfer_partial_1): Likewise.
10028 (memory_xfer_partial): Likewise.
10029 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10030 properly. Update debug message.
10031 (default_xfer_partial, current_xfer_partial): Likewise.
10032 (target_write_partial): Likewise.
10033 (target_read_partial): Likewise. All callers updated.
10034 (read_whatever_is_readable): Likewise.
10035 (target_write_with_progress): Likewise.
10036 (target_read_alloc_1): Likewise.
10038 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10039 * auxv.c (procfs_xfer_auxv): Likewise.
10040 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10041 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10042 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10043 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10044 * corefile.c (read_memory): Adjust.
10045 * corelow.c (core_xfer_partial): Likewise.
10046 * ctf.c (ctf_xfer_partial): Likewise.
10047 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10049 (darwin_xfer_partial): Likewise.
10050 * exec.c (section_table_xfer_memory_partial): Likewise. All
10052 (exec_xfer_partial): Likewise.
10053 * exec.h (section_table_xfer_memory_partial): Update
10055 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10057 (gnu_xfer_partial): Likewise.
10058 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10059 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10060 (ia64_hpux_xfer_solib_got): Likewise.
10061 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10062 type of 'partial_len' to ULONGEST.
10063 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10064 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10065 (linux_nat_xfer_partial): Likewise.
10066 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10067 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10068 * monitor.c (monitor_xfer_memory): Likewise.
10069 (monitor_xfer_partial): Likewise.
10070 * procfs.c (procfs_xfer_partial): Likewise.
10071 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10072 * record-full.c (record_full_xfer_partial): Likewise.
10073 (record_full_core_xfer_partial): Likewise.
10074 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10075 (gdbsim_xfer_partial): Likewise.
10076 * remote.c (remote_write_bytes_aux): Likewise. All callers
10078 (remote_write_bytes, remote_read_bytes): Likewise. All
10080 (remote_flash_erase): Likewise. All callers updated.
10081 (remote_write_qxfer): Likewise. All callers updated.
10082 (remote_read_qxfer): Likewise. All callers updated.
10083 (remote_xfer_partial): Likewise.
10084 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10085 (rs6000_xfer_shared_libraries): Likewise.
10086 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10087 (sol_thread_xfer_partial): Likewise.
10088 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10089 (sparc_xfer_partial): Likewise.
10090 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10092 (spu_xfer_partial): Likewise.
10093 * spu-multiarch.c (spu_xfer_partial): Likewise.
10094 * tracepoint.c (tfile_xfer_partial): Likewise.
10095 * windows-nat.c (windows_xfer_memory): Likewise.
10096 (windows_xfer_shared_libraries): Likewise.
10097 (windows_xfer_partial): Likewise.
10098 * valprint.c: Replace 'target_xfer_error' with
10099 'target_xfer_status' in comments.
10101 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10103 Checked in by Joel Brobecker <brobecker@adacore.com>.
10104 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10106 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10108 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10109 function parameters.
10111 2014-02-10 Will Newton <will.newton@linaro.org>
10113 * elfread.c (elf_rel_plt_read): Look for a .got section if
10114 looking up .got.plt fails.
10115 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10116 on address passed to elf_gnu_ifunc_record_cache.
10117 (elf_gnu_ifunc_resolve_addr): Likewise.
10118 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10120 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10122 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10123 (X_RETTURN): New macro.
10124 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10126 * sparc64-tdep.c (sparc64_init_abi): Hook
10127 sparc_in_function_epilogue_p.
10129 2014-02-10 Gary Benson <gbenson@redhat.com>
10131 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10132 Rename name_matcher to symbol_matcher.
10134 2014-02-10 Gary Benson <gbenson@redhat.com>
10136 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10137 Use expand_symtabs_file_matcher_ftype and
10138 expand_symtabs_symbol_matcher_ftype.
10140 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10142 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10143 (struct ada_symbol_cache): New.
10144 (ada_free_symbol_cache): Forward declare.
10145 (struct ada_pspace_data): New.
10146 (ada_pspace_data_handle): New static global.
10147 (get_ada_pspace_data, ada_pspace_data_cleanup)
10148 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10149 (cache_space, cache): Delete, now folded inside struct
10151 (ada_get_symbol_cache): New function.
10152 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10154 (_initialize_ada_language): Remove initialization of cache_space.
10155 Move call to observer_attach_inferior_exit up, grouping it
10156 with the other observer registrations inside this function.
10157 Rename command to be more general. Add call to
10158 register_program_space_data_with_cleanup.
10160 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10162 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10163 ada_new_objfile_observer.
10164 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10165 (_initialize_tasks): Update uses of ada_new_objfile_observer
10166 and ada_tasks_normal_stop_observer.
10168 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10170 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10171 returned by the 'Length attribute to integer.
10173 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10175 * ada-lang.c (_initialize_ada_language): Initialize
10176 cache_space obstack.
10178 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10180 * ada-lang.c (HASH_SIZE): New macro.
10181 (struct cache_entry): New type.
10182 (cache_space, cache): New static globals.
10183 (ada_clear_symbol_cache, find_entry): New functions.
10184 (lookup_cached_symbol, cache_symbol): Implement.
10185 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10186 (_initialize_ada_language): Attach ada_new_objfile_observer
10187 and ada_free_objfile_observer.
10189 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10191 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10192 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10193 struct block * parameter.
10194 (ada_lookup_symbol_list_worker): Constify local variable "block".
10195 Remove cast which is no longer necessary.
10197 2014-02-10 Doug Evans <xdje42@gmail.com>
10199 Add Guile as an extension language.
10200 * NEWS: Mention Guile scripting.
10201 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10202 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10203 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10204 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10205 (CLIBS): Add GUILE_LIBS.
10206 (install-guile): New rule.
10207 (guile.o): New rule.
10208 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10209 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10210 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10211 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10212 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10213 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10214 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10215 * configure.ac: New option --with-guile.
10216 * configure: Regenerate.
10217 * config.in: Regenerate.
10218 * auto-load.c: Remove #include "python/python.h". Add #include
10219 "gdb/section-scripts.h".
10220 (source_section_scripts): Handle Guile scripts.
10221 (_initialize_auto_load): Add name of Guile objfile script to
10222 scripts-directory help text.
10223 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10224 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10225 (struct breakpoint): New member scm_bp_object.
10226 * defs.h (enum command_control_type): New value guile_control.
10227 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10229 (show_user): Update comment.
10230 (_initialize_cli_cmds): Update help text for "show user". Update help
10231 text for max-user-call-depth.
10232 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10234 (multi_line_command_p): Add guile_control.
10235 (print_command_lines): Handle guile_control.
10236 (execute_control_command, recurse_read_control_structure): Ditto.
10237 (process_next_line): Recognize "guile" commands.
10238 * disasm.c (gdb_disassemble_info): Make non-static.
10239 * disasm.h: #include "dis-asm.h".
10240 (struct gdbarch): Add forward decl.
10241 (gdb_disassemble_info): Declare.
10242 * extension.c: #include "guile/guile.h".
10243 (extension_languages): Add guile.
10244 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10245 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10246 * gdbtypes.c (get_unsigned_type_max): New function.
10247 (get_signed_type_minmax): New function.
10248 * gdbtypes.h (get_unsigned_type_max): Declare.
10249 (get_signed_type_minmax): Declare.
10250 * guile/README: New file.
10251 * guile/guile-internal.h: New file.
10252 * guile/guile.c: New file.
10253 * guile/guile.h: New file.
10254 * guile/scm-arch.c: New file.
10255 * guile/scm-auto-load.c: New file.
10256 * guile/scm-block.c: New file.
10257 * guile/scm-breakpoint.c: New file.
10258 * guile/scm-disasm.c: New file.
10259 * guile/scm-exception.c: New file.
10260 * guile/scm-frame.c: New file.
10261 * guile/scm-gsmob.c: New file.
10262 * guile/scm-iterator.c: New file.
10263 * guile/scm-lazy-string.c: New file.
10264 * guile/scm-math.c: New file.
10265 * guile/scm-objfile.c: New file.
10266 * guile/scm-ports.c: New file.
10267 * guile/scm-pretty-print.c: New file.
10268 * guile/scm-safe-call.c: New file.
10269 * guile/scm-string.c: New file.
10270 * guile/scm-symbol.c: New file.
10271 * guile/scm-symtab.c: New file.
10272 * guile/scm-type.c: New file.
10273 * guile/scm-utils.c: New file.
10274 * guile/scm-value.c: New file.
10275 * guile/lib/gdb.scm: New file.
10276 * guile/lib/gdb/boot.scm: New file.
10277 * guile/lib/gdb/experimental.scm: New file.
10278 * guile/lib/gdb/init.scm: New file.
10279 * guile/lib/gdb/iterator.scm: New file.
10280 * guile/lib/gdb/printing.scm: New file.
10281 * guile/lib/gdb/types.scm: New file.
10282 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10283 (VPATH): Add $(GUILE_SRCDIR).
10284 (GUILE_DIR): New variable.
10285 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10286 (all): Add stamp-guile dependency.
10287 (stamp-guile): New rule.
10288 (clean-guile, install-guile, uninstall-guile): New rules.
10289 (install-only): Add install-guile dependency.
10290 (uninstall): Add uninstall-guile dependency.
10291 (clean): Add clean-guile dependency.
10293 2014-02-09 Doug Evans <xdje42@gmail.com>
10295 Revert this patch (which I approved, mea culpa).
10297 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10299 * Makefile.in (all-lib): Remove.
10300 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10302 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10304 Fix Python stack corruption.
10305 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10308 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10310 * Makefile.in (all-lib): Remove.
10311 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10313 2014-02-07 Doug Evans <dje@google.com>
10315 * extension-priv.h (extension_language_script_ops): Add comment.
10316 (extension_language_ops): Add comment.
10317 (active_ext_lang_state): Fix typo in comment.
10319 2014-02-07 Pedro Alves <palves@redhat.com>
10321 PR breakpoints/16292
10322 * infrun.c (handle_signal_stop) <signal arrives while stepping
10323 over a breakpoint>: Switch back to the stepping thread.
10325 2014-02-07 Yao Qi <yao@codesourcery.com>
10327 * target.c (target_xfer_partial): Return zero if LEN is zero.
10329 2014-02-07 Yao Qi <yao@codesourcery.com>
10331 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10332 (ld_so_xfer_auxv): Likewise.
10333 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10334 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10335 * corelow.c (core_xfer_partial): Likewise.
10336 * ctf.c (ctf_xfer_partial): Likewise.
10337 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10338 (darwin_xfer_partial): Likewise.
10339 * exec.c (exec_xfer_partial): Likewise.
10340 * gnu-nat.c (gnu_xfer_partial): Likewise.
10341 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10342 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10343 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10344 * linux-nat.c (linux_xfer_siginfo): Likewise.
10345 (linux_proc_xfer_spu): Likewise.
10346 * procfs.c (procfs_xfer_partial): Likewise.
10347 * record-full.c (record_full_xfer_partial): Likewise.
10348 (record_full_core_xfer_partial): Likewise.
10349 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10350 * remote.c (remote_write_qxfer): Likewise.
10351 (remote_write_qxfer, remote_read_qxfer): Likewise.
10352 (remote_xfer_partial): Likewise.
10353 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10354 (rs6000_xfer_shared_libraries): Likewise.
10355 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10356 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10357 (spu_xfer_partial): Likewise.
10358 * target.c (memory_xfer_partial_1): Likewise.
10359 * tracepoint.c (tfile_xfer_partial): Likewise.
10360 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10361 (windows_xfer_partial): Likewise.
10363 2014-02-07 Yao Qi <yao@codesourcery.com>
10365 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10367 (core_xfer_shared_libraries_aix): Likewise.
10368 * gdbarch.c, gdbarch.h: Regenerated.
10369 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10370 ULONGEST. Change 'len_avail' type to ULONGEST.
10371 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10372 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10374 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10376 2014-02-07 Yao Qi <yao@codesourcery.com>
10378 * corefile.c (memory_error): Get 'exception' from ERR and pass
10379 'exception' to throw_error.
10381 2014-02-06 Doug Evans <xdje42@gmail.com>
10383 * configure.ac (libpython checking): Remove all but python.o from
10384 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10385 * configure: Regenerate.
10387 * Makefile.in (SFILES): Add extension.c.
10388 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10389 (COMMON_OBS): Add extension.o.
10390 * extension.h: New file.
10391 * extension-priv.h: New file.
10392 * extension.c: New file.
10394 * python/python-internal.h: #include "extension.h".
10395 (gdbpy_auto_load_enabled): Declare.
10396 (gdbpy_apply_val_pretty_printer): Declare.
10397 (gdbpy_apply_frame_filter): Declare.
10398 (gdbpy_preserve_values): Declare.
10399 (gdbpy_breakpoint_cond_says_stop): Declare.
10400 (gdbpy_breakpoint_has_cond): Declare.
10401 (void source_python_script_for_objfile): Delete.
10402 * python/python.c: #include "extension-priv.h".
10403 Delete inclusion of "observer.h".
10404 (extension_language_python): Moved here and renamed from
10405 script_language_python in py-auto-load.c.
10406 Redefined to be of type extension_language_defn.
10407 (python_extension_script_ops): New global.
10408 (python_extension_ops): New global.
10409 (struct python_env): New member previous_active.
10410 (restore_python_env): Call restore_active_ext_lang.
10411 (ensure_python_env): Call set_active_ext_lang.
10412 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10414 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10416 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10418 (gdbpy_eval_from_control_command): Renamed from
10419 eval_python_from_control_command, made static. New arg extlang.
10420 (gdbpy_source_script) Renamed from source_python_script, made static.
10422 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10423 result to int. New arg extlang.
10424 (gdbpy_source_objfile_script): Renamed from
10425 source_python_script_for_objfile, made static. New arg extlang.
10426 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10427 static. New args extlang, extlang_printers. Change result type to
10429 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10430 static. New arg extlang. Rename arg printers to extlang_printers
10431 and change type to ext_lang_type_printers *.
10432 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10433 static. Replace argument arg with extlang, extlang_printers.
10434 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10435 (!HAVE_PYTHON, source_python_script): Delete.
10436 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10437 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10438 (!HAVE_PYTHON, start_type_printers): Delete.
10439 (!HAVE_PYTHON, apply_type_printers): Delete.
10440 (!HAVE_PYTHON, free_type_printers): Delete.
10441 (_initialize_python): Delete call to observer_attach_before_prompt.
10442 (finalize_python): Set/restore active extension language.
10443 (gdbpy_finish_initialization) Renamed from
10444 finish_python_initialization, made static. New arg extlang.
10445 (gdbpy_initialized): New function.
10446 * python/python.h: #include "extension.h". Delete #include
10447 "value.h", "mi/mi-cmds.h".
10448 (extension_language_python): Declare.
10449 (GDBPY_AUTO_FILE_NAME): Delete.
10450 (enum py_bt_status): Moved to extension.h and renamed to
10451 ext_lang_bt_status.
10452 (enum frame_filter_flags): Moved to extension.h.
10453 (enum py_frame_args): Moved to extension.h and renamed to
10454 ext_lang_frame_args.
10455 (finish_python_initialization): Delete.
10456 (eval_python_from_control_command): Delete.
10457 (source_python_script): Delete.
10458 (apply_val_pretty_printer): Delete.
10459 (apply_frame_filter): Delete.
10460 (preserve_python_values): Delete.
10461 (gdbpy_script_language_defn): Delete.
10462 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10463 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10465 * auto-load.c: #include "extension.h".
10466 (GDB_AUTO_FILE_NAME): Delete.
10467 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10468 (script_language_gdb): Delete, moved to extension.c and renamed to
10469 extension_language_gdb.
10470 (source_gdb_script_for_objfile): Delete.
10471 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10472 (loaded_script): Change type of language member to
10473 struct extension_language_defn *.
10474 (init_loaded_scripts_info): Initialize
10475 unsupported_script_warning_printed.
10476 (maybe_add_script): Make static. Change type of language arg to
10477 struct extension_language_defn *.
10478 (clear_section_scripts): Reset unsupported_script_warning_printed.
10479 (auto_load_objfile_script_1): Rewrite to use extension language API.
10480 (auto_load_objfile_script): Make public. Remove support-compiled-in
10481 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10482 (source_section_scripts): Rewrite to use extension language API.
10483 (load_auto_scripts_for_objfile): Rewrite to use
10484 auto_load_scripts_for_objfile.
10485 (collect_matching_scripts_data): Change type of language member to
10486 struct extension_language_defn *.
10487 (auto_load_info_scripts): Change type of language arg to
10488 struct extension_language_defn *.
10489 (unsupported_script_warning_print): New function.
10490 (script_not_found_warning_print): Make static.
10491 (_initialize_auto_load): Rewrite construction of scripts-directory
10493 * auto-load.h (struct objfile): Add forward decl.
10494 (struct script_language): Delete.
10495 (struct auto_load_pspace_info): Add forward decl.
10496 (struct extension_language_defn): Add forward decl.
10497 (maybe_add_script): Delete.
10498 (auto_load_objfile_script): Declare.
10499 (script_not_found_warning_print): Delete.
10500 (auto_load_info_scripts): Update prototype.
10501 (auto_load_gdb_scripts_enabled): Declare.
10502 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10503 auto_load_python_scripts_enabled and made public.
10504 (script_language_python): Delete, moved to python.c.
10505 (gdbpy_script_language_defn): Delete.
10506 (info_auto_load_python_scripts): Update to use
10507 extension_language_python.
10509 * breakpoint.c (condition_command): Replace call to
10510 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10511 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10512 with call to breakpoint_ext_lang_cond_says_stop.
10513 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10514 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10515 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10516 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10518 (local_setattro): Print name of extension language with existing
10521 * valprint.c (val_print, value_print): Update to call
10522 apply_ext_lang_val_pretty_printer.
10523 * cp-valprint.c (cp_print_value): Update call to
10524 apply_ext_lang_val_pretty_printer.
10525 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10526 (gdbpy_apply_val_pretty_printer): Renamed from
10527 apply_val_pretty_printer. New arg extlang.
10528 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10530 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10531 extension language API.
10532 * cli/cli-script.c (execute_control_command): Update to call
10533 eval_ext_lang_from_control_command.
10535 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10536 enum ext_lang_bt_status values. Update call to
10537 apply_ext_lang_frame_filter.
10538 (mi_cmd_stack_list_locals): Ditto.
10539 (mi_cmd_stack_list_args): Ditto.
10540 (mi_cmd_stack_list_variables): Ditto.
10541 * mi/mi-main.c: Delete #include "python/python-internal.h".
10542 Add #include "extension.h".
10543 (mi_cmd_list_features): Replace reference to python internal variable
10544 gdb_python_initialized with call to ext_lang_initialized_p.
10546 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10547 Update to use enum ext_lang_frame_args. Update to call
10548 apply_ext_lang_frame_filter.
10549 * python/py-framefilter.c (extract_sym): Update to use enum
10550 ext_lang_bt_status.
10551 (extract_value, py_print_type, py_print_value): Ditto.
10552 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10553 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10554 (py_print_frame): Ditto.
10555 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10556 New arg extlang. Update to use enum ext_lang_bt_status.
10558 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10559 finish_python_initialization. Replace with call to
10560 finish_ext_lang_initialization.
10562 * typeprint.c (do_free_global_table): Update to call
10563 free_ext_lang_type_printers.
10564 (create_global_typedef_table): Update to call
10565 start_ext_lang_type_printers.
10566 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10567 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10568 (type_print_options): Change type of global_printers from "void *"
10569 to "struct ext_lang_type_printers *".
10571 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10572 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10573 (gdbpy_preserve_values): Renamed from preserve_python_values.
10575 (!HAVE_PYTHON, preserve_python_values): Delete.
10577 * utils.c (quit_flag): Delete, moved to extension.c.
10578 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10581 * eval.c: Delete #include "python/python.h".
10582 * main.c: Delete #include "python/python.h".
10584 * defs.h: Update comment.
10586 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10590 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10592 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10595 2014-02-05 Yao Qi <yao@codesourcery.com>
10597 * remote.c (remote_pass_signals): Remove local 'buf' and use
10599 (remote_program_signals): Likewise.
10601 2014-02-05 Yao Qi <yao@codesourcery.com>
10603 * ctf.c: Include "inferior.h" and "gdbthread.h".
10604 (CTF_PID): A new macro.
10605 (ctf_open): Call inferior_appeared and add_thread_silent.
10606 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10607 (ctf_thread_alive): New function.
10608 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10610 2014-02-05 Yao Qi <yao@codesourcery.com>
10614 2013-05-24 Yao Qi <yao@codesourcery.com>
10616 * tracepoint.c (TFILE_PID): Remove.
10617 (tfile_open): Don't add thread and inferior.
10618 (tfile_close): Don't set 'inferior_ptid'. Don't call
10619 exit_inferior_silent.
10620 (tfile_thread_alive): Remove.
10621 (init_tfile_ops): Don't set field 'to_thread_alive' of
10624 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10626 * remote.c (remote_start_remote): Call remote_check_symbols even
10627 if only symbol-file (not file) has been given.
10629 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10631 * gdbarch.sh (skip_entrypoint): New callback.
10632 * gdbarch.c, gdbarch.h: Regenerate.
10633 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10634 * infrun.c (fill_in_stop_func): Likewise.
10635 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10636 (ppc_elfv2_elf_make_msymbol_special): New function.
10637 (ppc_elfv2_skip_entrypoint): Likewise.
10638 (ppc_linux_init_abi): Install them for ELFv2.
10640 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10642 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10643 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10644 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10645 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10646 structures returned in GPRs.
10648 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10650 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10651 offset to the stack parameter list for the ELFv2 ABI.
10653 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10655 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10656 set_gdbarch_convert_from_func_ptr_addr and
10657 set_gdbarch_elf_make_msymbol_special for ELFv1.
10658 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10659 function descriptors on ELFv1.
10660 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10661 set up r12 at function entry.
10663 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10665 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10666 (struct gdbarch_tdep): New member elf_abi.
10668 * rs6000-tdep.c: Include "elf/ppc64.h".
10669 (rs6000_gdbarch_init): Detect ELF ABI version.
10671 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10673 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10674 within a register pair holding a DFP 128-bit value on little-endian.
10675 (ppc64_sysv_abi_return_value_base): Likewise.
10676 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10677 (dfp_pseudo_register_write): Likewise.
10679 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10681 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10682 offset on little-endian when passing _Decimal32.
10683 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10685 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10687 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10688 of the overlapped FP register within the VSX register on little-
10690 (efpr_pseudo_register_write): Likewise.
10692 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10695 offset on little-endian when passing small structures.
10697 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10699 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10700 (struct ppc64_sysv_argpos): New data structure.
10701 (ppc64_sysv_abi_push_float): Remove.
10702 (ppc64_sysv_abi_push_val): New function.
10703 (ppc64_sysv_abi_push_integer): Likewise.
10704 (ppc64_sysv_abi_push_freg): Likewise.
10705 (ppc64_sysv_abi_push_vreg): Likewise.
10706 (ppc64_sysv_abi_push_param): Likewise.
10707 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10708 (ppc64_sysv_abi_return_value_base): New function.
10709 (ppc64_sysv_abi_return_value): Refactor to use it.
10711 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10713 * NEWS: Document new target powerpc64le-*-linux*.
10715 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10717 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10718 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10720 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10721 register set used in ELF core dumps. Add floating-point register set.
10723 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10725 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10726 dwarf2_to_gdb[] table using symbolic constants. Adjust
10727 penultimate entry from number representing the PC register
10728 to symbolic constant representing the MDR register. Add
10729 constant for the PC register to the end of the table.
10731 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10733 * bsd-kvm.c: Include <sys/param.h>
10735 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10737 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10739 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10741 * ada-lang.h (clear_ada_sym_cache): Delete.
10743 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10745 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10747 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10749 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10750 the sigreturn register save area only if the syscall is
10753 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10755 * valops.c (value_slice): Minor reformatting.
10757 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10759 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10761 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10763 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10764 New static globals.
10765 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10766 (ada_ignore_descriptive_types_p): New static global.
10767 (find_parallel_type_by_descriptive_type): Return immediately
10768 if ada_ignore_descriptive_types_p is set.
10769 (_initialize_ada_language): Register new commands "maintenance
10770 set ada", "maintenance show ada", "maintenance set ada
10771 ignore-descriptive-types" and "maintenance show ada
10772 ignore-descriptive-types".
10773 * NEWS: Add entry for new "maint ada set/show
10774 ignore-descriptive-types" commands.
10776 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10778 * record-btrace.c (record_btrace_close): Call btrace_teardown
10781 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10783 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10786 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10788 * ada-typeprint (type_is_full_subrange_of_target_type):
10790 (print_range): Add parameter bounds_prefered_p. If not set,
10791 try printing range types using the name of their base type.
10792 (print_range_type): Add parameter bounds_prefered_p.
10793 Use it in call to print_range.
10794 (print_array_type, ada_print_type): Update calls to print_range
10795 and print_range_type.
10797 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10799 * ada-typeprint.c (print_array_type, print_choices, print_range)
10800 (print_range_bound, print_dynamic_range_bound, print_range_type):
10801 Remove declaration.
10803 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10805 * ada-typeprint.c (print_range): Add missing empty line
10806 after local declaration.
10808 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10810 * ada-valprint.c (print_optional_low_bound): Get index_type's
10811 target type for as long as it is a TYPE_CODE_RANGE.
10813 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10815 * procfs.c (procfs_make_note_section): Remove assertion and
10816 associated comment.
10818 2014-01-24 Yao Qi <yao@codesourcery.com>
10820 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10821 * corelow.c (get_core_siginfo): Likewise.
10823 2014-01-24 Yao Qi <yao@codesourcery.com>
10825 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10826 ULONGEST. Don't check 'len' is negative.
10827 (remote_write_bytes): Change type of 'len' to ULONGEST.
10829 2014-01-23 Tom Tromey <tromey@redhat.com>
10832 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10833 Handle exception from frame.block.
10834 (FrameVars.fetch_frame_locals): Likewise.
10836 2014-01-23 Tom Tromey <tromey@redhat.com>
10839 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10840 on a NULL pointer. Move "goto error" to correct place.
10842 2014-01-23 Tom Tromey <tromey@redhat.com>
10845 * python/py-framefilter.c (apply_frame_filter): Call
10846 ensure_python_env after computing gdbarch.
10848 2014-01-23 Yao Qi <yao@codesourcery.com>
10850 * target.c (raw_memory_xfer_partial): Change argument type
10851 from void * to gdb_byte *.
10852 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10854 2014-01-22 Doug Evans <dje@google.com>
10856 New gdbserver option --debug-format=timestamp.
10857 * NEWS: Mention it.
10859 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10861 * syscalls/s390x-linux.xml: New file.
10862 * syscalls/s390-linux.xml: New file.
10863 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10864 (XML_SYSCALL_FILENAME_S390X): Likewise.
10865 (op_svc): New enum value for SVC opcode.
10866 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10867 (s390_linux_get_syscall_number): New function.
10868 (s390_gdbarch_init): Register '*get_syscall_number' and the
10869 syscall xml file name.
10870 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10871 "s390-linux.xml" and "s390x-linux.xml".
10872 * NEWS: Announce new feature.
10874 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10876 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10878 2014-01-22 Pedro Alves <palves@redhat.com>
10880 * xtensa-config.c: Include defs.h.
10882 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10884 * common/common-utils.h: Add "ARI:" comment beside __func__
10887 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10889 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10890 documentation a bit.
10892 2014-01-21 Roland McGrath <mcgrathr@google.com>
10894 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10895 * configure: Regenerate.
10896 * aclocal.m4: Regenerate.
10897 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10898 New substituted variables.
10899 (install-strip): New target.
10900 (INSTALL_SCRIPT): New substituted variable.
10901 (FLAGS_TO_PASS): Add it.
10902 (install-only): Use $(INSTALL_SCRIPT) rather than
10903 $(INSTALL_PROGRAM) for gcore.
10905 2014-01-20 Tom Tromey <tromey@redhat.com>
10907 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10910 2014-01-20 Tom Tromey <tromey@redhat.com>
10912 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10913 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10914 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10915 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10916 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10917 (struct cmd_list_element) <flags>: Remove.
10918 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10919 doc_allocated>: New fields.
10920 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10922 * maint.c (maintenance_do_deprecate): Update.
10923 * top.c (execute_command): Update.
10925 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10927 * xtensa-linux-nat.c: Include asm/ptrace.h.
10929 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10931 * Makefile.in (SFILES): Add d-support.c.
10932 (COMMON_OBS): Add d-support.o.
10933 * d-lang.h (d_parse_symbol): Add comment, now defined in
10935 * d-lang.c (parse_call_convention)
10936 (parse_attributes, parse_function_types)
10937 (parse_function_args, parse_type, parse_identifier)
10938 (call_convention_p, d_parse_symbol): Move functions to ...
10939 * d-support.c: ... New file.
10941 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10943 * d-lang.h (d_parse_symbol): Add declaration.
10944 * d-lang.c (extract_identifiers)
10945 (extract_type_info): Remove functions.
10946 (parse_call_convention, parse_attributes)
10947 (parse_function_types, parse_function_args)
10948 (parse_type, parse_identifier, call_convention_p)
10949 (d_parse_symbol): New functions.
10950 (d_demangle): Use d_parse_symbol to demangle D symbols.
10952 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10954 * d-lang.h (struct builtin_d_type): New data type.
10955 (builtin_d_type): Add declaration.
10956 * d-lang.c (d_language_arch_info, build_d_types)
10957 (builtin_d_type): New functions.
10958 (enum d_primitive_types): New data type.
10959 (d_language_defn): Change c_language_arch_info to
10960 d_language_arch_info.
10961 (d_type_data): New static variable.
10962 (_initialize_d_language): Initialize d_type_data.
10964 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10966 * d-lang.h (d_main_name): Add declaration.
10967 * d-lang.c (d_main_name): New function.
10968 * symtab.c (find_main_name): Add call to d_main_name.
10970 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10972 * d-lang.c (d_language_defn): Change macro_expansion_c to
10973 macro_expansion_no.
10975 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10977 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10979 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10981 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10982 gdb_exception" declaration.
10983 * remote.c (getpkt_or_notif_sane): Likewise.
10985 2014-01-17 Doug Evans <dje@google.com>
10987 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10988 function, contents of dirnames_to_char_ptr_vec_append moved here.
10989 (delim_string_to_char_ptr_vec): New function.
10990 (dirnames_to_char_ptr_vec_append): Rewrite.
10991 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10993 2014-01-17 Doug Evans <dje@google.com>
10995 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10997 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10998 #include "common-utils.h".
10999 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11000 * common/vec.h (VEC_ASSERT_PASS): Update.
11001 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11002 (MACH_CHECK_ERROR): Update.
11004 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11006 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11008 * gdbarch.h: Regenerate.
11010 2014-01-16 Tom Tromey <tromey@redhat.com>
11012 * value.c (struct value) <regnum>: Move earlier.
11014 2014-01-16 Tom Tromey <tromey@redhat.com>
11016 * remote.c (extended_remote_create_inferior): Rename from
11017 extended_remote_create_inferior_1. Add "ops" argument. Remove
11018 old implementation.
11020 2014-01-16 Pedro Alves <palves@redhat.com>
11022 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11023 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11026 2014-01-16 Doug Evans <dje@google.com>
11028 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11032 * btrace.h (btrace_thread_flag): New.
11033 (struct btrace_thread_info) <flags>: New.
11034 * record-btrace.c (record_btrace_resume_thread)
11035 (record_btrace_find_thread_to_move, btrace_step_no_history)
11036 (btrace_step_stopped, record_btrace_start_replaying)
11037 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11038 (record_btrace_find_resume_thread): New.
11039 (record_btrace_resume, record_btrace_wait): Extend.
11040 (record_btrace_can_execute_reverse): New.
11041 (record_btrace_open): Fail in non-stop mode.
11042 (record_btrace_set_replay): Split into this, ...
11043 (record_btrace_stop_replaying): ... this, ...
11044 (record_btrace_clear_histories): ... and this.
11045 (init_record_btrace_ops): Init to_can_execute_reverse.
11046 * NEWS: Announce it.
11048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11050 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11051 (forward_target_decr_pc_after_break)
11052 (target_decr_pc_after_break): New.
11053 * target.c (forward_target_decr_pc_after_break)
11054 (target_decr_pc_after_break): New.
11055 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11056 instead of gdbarch_decr_pc_after_break.
11057 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11058 instead of gdbarch_decr_pc_after_break.
11059 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11060 instead of gdbarch_decr_pc_after_break.
11061 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11062 instead of gdbarch_decr_pc_after_break.
11063 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11064 instead of gdbarch_decr_pc_after_break.
11065 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11066 instead of gdbarch_decr_pc_after_break.
11068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11070 * btrace.c: Include regcache.h.
11071 (btrace_add_pc): New.
11072 (btrace_enable): Call btrace_add_pc.
11073 (btrace_is_empty): New.
11074 * btrace.h (btrace_is_empty): New.
11075 * record-btrace.c (require_btrace, record_btrace_info): Call
11078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11080 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11081 Support delta reads.
11082 (linux_disable_btrace): Change return type.
11083 * common/linux-btrace.h (linux_read_btrace): Change parameters
11084 and return type to allow error reporting. Update users.
11085 (linux_disable_btrace): Change return type. Update users.
11086 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11088 (btrace_error): New.
11089 (btrace_block) <begin>: Comment on BEGIN == 0.
11090 * btrace.c (btrace_compute_ftrace): Start from the end of
11092 (btrace_stitch_trace, btrace_clear_history): New.
11093 (btrace_fetch): Read delta trace, return if replaying.
11094 (btrace_clear): Move clear history code to btrace_clear_history.
11095 (parse_xml_btrace): Throw an error if parsing failed.
11096 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11097 and return type to allow error reporting.
11098 (target_read_btrace): Change parameters and return type to allow
11100 * target.c (target_read_btrace): Update.
11101 * remote.c (remote_read_btrace): Support delta reads. Pass
11103 * NEWS: Announce it.
11105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11107 * record.h (record_btrace_frame_unwind)
11108 (record_btrace_tailcall_frame_unwind): New declarations.
11109 * dwarf2-frame: Include record.h
11110 (dwarf2_frame_cfa): Throw an error for btrace frames.
11111 * record-btrace.c: Include hashtab.h.
11112 (btrace_get_bfun_name): New.
11113 (btrace_call_history): Call btrace_get_bfun_name.
11114 (struct btrace_frame_cache): New.
11116 (bfcache_hash, bfcache_eq, bfcache_new): New.
11117 (btrace_get_frame_function): New.
11118 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11119 (record_btrace_frame_this_id): Compute own id.
11120 (record_btrace_frame_prev_register): Provide PC, throw_error
11121 for all other registers.
11122 (record_btrace_frame_sniffer): Detect btrace frames.
11123 (record_btrace_tailcall_frame_sniffer): New.
11124 (record_btrace_frame_dealloc_cache): New.
11125 (record_btrace_frame_unwind): Add new functions.
11126 (record_btrace_tailcall_frame_unwind): New.
11127 (_initialize_record_btrace): Allocate cache.
11128 * btrace.c (btrace_clear): Call reinit_frame_cache.
11129 * NEWS: Announce it.
11131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11133 * record-btrace.c (record_btrace_set_replay)
11134 (record_btrace_goto_begin, record_btrace_goto_end)
11135 (record_btrace_goto): New.
11136 (init_record_btrace_ops): Initialize them.
11137 * NEWS: Announce it.
11139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11141 * record-btrace.c (record_btrace_find_new_threads)
11142 (record_btrace_thread_alive): New.
11143 (init_record_btrace_ops): Initialize to_find_new_threads and
11146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11148 * record-btrace.c (record_btrace_resume): New.
11149 (record_btrace_wait): New.
11150 (init_record_btrace_ops): Initialize to_wait and to_resume.
11152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11154 * record-btrace.c (record_btrace_xfer_partial)
11155 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11156 (record_btrace_allow_memory_access): New.
11157 (init_record_btrace_ops): Initialize new methods.
11158 * target.c (raw_memory_xfer_partial): Bail out if target reports
11159 that this memory is not available.
11161 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11163 * target.h (target_ops) <to_insert_breakpoint>
11164 <to_remove_breakpoint>: Add target_ops parameter.
11165 (forward_target_insert_breakpoint): New.
11166 (forward_target_remove_breakpoint): New.
11167 (memory_remove_breakpoint, memory_insert_breakpoint):
11168 Add target_ops parameter.
11169 * target.c (target_insert_breakpoint): Split into this and ...
11170 (forward_target_insert_breakpoint): ... this.
11171 (target_remove_breakpoint): Split into this and ...
11172 (forward_target_remove_breakpoint): ... this.
11173 (debug_to_insert_breakpoint): Add target_ops parameter.
11174 Call forward_target_insert_breakpoint.
11175 (debug_to_remove_breakpoint): Add target_ops parameter.
11176 Call forward_target_remove_breakpoint.
11177 (update_current_target): Do not inherit or default to_insert_breakpoint
11178 and to_remove_breakpoint.
11179 * corelow.c (ignore): Add target_ops parameter.
11180 * exec.c (ignore): Add target_ops parameter.
11181 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11182 Add target_ops parameter.
11183 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11184 Add target_ops parameter.
11185 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11186 Add target_ops parameter.
11187 * record-full.c (record_full_beneath_to_insert_breakpoint)
11188 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11189 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11190 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11191 (record_full_core_remove_breakpoint): Add target_ops parameter.
11193 (record_full_beneath_to_insert_breakpoint_ops)
11194 (record_full_beneath_to_remove_breakpoint_ops)
11195 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11196 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11197 tmp_to_remove_breakpoint_ops,
11198 record_full_beneath_to_insert_breakpoint_ops, and
11199 record_full_beneath_to_remove_breakpoint_ops.
11200 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11201 (m32r_remove_breakpoint): Add target_ops parameter.
11202 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11203 Add target_ops parameter.
11204 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11205 Add target_ops parameter.
11207 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11208 Markus Metzger <markus.t.metzger@intel.com>
11210 * record-btrace.c: Include frame-unwind.h.
11211 (record_btrace_frame_unwind_stop_reason)
11212 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11213 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11215 (init_record_btrace_ops): Install it.
11217 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11219 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11222 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11224 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11227 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11229 * frame-unwind.c: Include target.h.
11230 (frame_unwind_try_unwinder): New function with code from ...
11231 (frame_unwind_find_by_frame): ... here. New variable
11232 unwinder_from_target, call also target_get_unwinder)
11233 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11234 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11235 * target.h (struct target_ops): New fields to_get_unwinder and
11236 to_get_tailcall_unwinder.
11237 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11241 * record-btrace.c (record_btrace_fetch_registers)
11242 (record_btrace_store_registers)
11243 (record_btrace_to_prepare_to_store): New.
11244 (init_record_btrace_ops): Add the above.
11246 2014-01-16 Tom Tromey <tromey@redhat.com>
11248 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11249 * target.h (struct target_ops) <to_prepare_to_store>: Add
11251 (target_prepare_to_store): Add argument.
11252 * target.c (debug_to_prepare_to_store): Add argument.
11253 (update_current_target): Update.
11254 * remote.c (remote_prepare_to_store): Add 'self' argument.
11255 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11256 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11257 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11258 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11260 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11261 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11262 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11263 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11264 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11268 * btrace.h (replay) <replay>: New.
11269 (btrace_is_replaying): New.
11270 * btrace.c (btrace_clear): Free replay iterator.
11271 (btrace_is_replaying): New.
11272 * record-btrace.c (record_btrace_is_replaying): New.
11273 (record_btrace_info): Print insn number if replaying.
11274 (record_btrace_insn_history): Start at replay position.
11275 (record_btrace_call_history): Start at replay position.
11276 (init_record_btrace_ops): Init to_record_is_replaying.
11278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11280 * record-btrace.c (record_btrace_insn_history_range): Include
11282 (record_btrace_insn_history_from): Adjust range.
11283 (record_btrace_call_history_range): Include
11285 (record_btrace_call_history_from): Adjust range.
11286 * NEWS: Announce changes.
11288 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11290 * record.h (enum record_print_flag)
11291 <record_print_indent_calls>: New.
11292 * record.c (get_call_history_modifiers): Recognize /c modifier.
11293 (_initialize_record): Document /c modifier.
11294 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11295 Reorder fields. Optionally indent the function name. Update
11297 * NEWS: Announce changes.
11299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11301 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11303 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11305 * btrace.c (ftrace_new_function): Start counting at one.
11306 * record-btrace.c (record_btrace_info): Adjust number of calls
11308 * NEWS: Announce it.
11310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11312 * record-btrace.c (btrace_call_history_insn_range): Print
11313 insn range as [begin, end].
11315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11317 * btrace.h (struct btrace_func_link): New.
11318 (enum btrace_function_flag): New.
11319 (struct btrace_inst): Rename to ...
11320 (struct btrace_insn): ...this. Update all users.
11321 (struct btrace_func) <ibegin, iend>: Remove.
11322 (struct btrace_func_link): New.
11323 (struct btrace_func): Rename to ...
11324 (struct btrace_function): ...this. Update all users.
11325 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11326 (number, level, flags>: New.
11327 (struct btrace_insn_iterator): Rename to ...
11328 (struct btrace_insn_history): ...this.
11330 (struct btrace_insn_iterator, btrace_call_iterator): New.
11331 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11332 (struct btrace_target_info) <begin, end, level>
11333 <insn_history, call_history>: New.
11334 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11335 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11336 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11337 (btrace_call_number, btrace_call_begin, btrace_call_end)
11338 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11339 (btrace_find_function_by_number, btrace_set_insn_history)
11340 (btrace_set_call_history): New.
11341 * btrace.c (btrace_init_insn_iterator)
11342 (btrace_init_func_iterator, compute_itrace): Remove.
11343 (ftrace_print_function_name, ftrace_print_filename)
11344 (ftrace_skip_file): Change
11345 parameter to const.
11346 (ftrace_init_func): Remove.
11347 (ftrace_debug): Use new btrace_function fields.
11348 (ftrace_function_switched): Also consider gaining and
11349 losing symbol information).
11350 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11351 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11352 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11354 (ftrace_new_function): Move. Remove debug print.
11355 (ftrace_update_lines, ftrace_update_insns): New.
11356 (ftrace_update_function): Check for call, ret, and jump.
11357 (compute_ftrace): Renamed to ...
11358 (btrace_compute_ftrace): ...this. Rewritten to compute call
11360 (btrace_fetch, btrace_clear): Updated.
11361 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11362 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11363 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11364 (btrace_call_number, btrace_call_begin, btrace_call_end)
11365 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11366 (btrace_find_function_by_number, btrace_set_insn_history)
11367 (btrace_set_call_history): New.
11368 * record-btrace.c (require_btrace): Use new btrace thread
11370 (record_btrace_info, btrace_insn_history)
11371 (record_btrace_insn_history, record_btrace_insn_history_range):
11372 Use new btrace thread info fields and new iterator.
11373 (btrace_func_history_src_line): Rename to ...
11374 (btrace_call_history_src_line): ...this. Use new btrace
11375 thread info fields.
11376 (btrace_func_history): Rename to ...
11377 (btrace_call_history): ...this. Use new btrace thread info
11378 fields and new iterator.
11379 (record_btrace_call_history, record_btrace_call_history_range):
11380 Use new btrace thread info fields and new iterator.
11382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11384 * frame.h (frame_id_build_unavailable_stack_special): New.
11385 * frame.c (frame_id_build_unavailable_stack_special): New.
11387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11390 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11391 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11393 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11394 (i386_insn_is_jump, i386_jmp_p): New.
11395 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11396 insn_is_jump to gdbarch.
11397 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11398 * gdbarch.h: Regenerated.
11399 * gdbarch.c: Regenerated.
11400 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11401 (default_insn_is_jump): New.
11402 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11403 (default_insn_is_jump): New.
11405 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11407 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11409 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11410 (btrace_read_type) <btrace_read_new>: Change to ...
11411 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11413 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11415 * common/linux-btrace.c (linux_read_btrace): Free trace from
11416 previous iteration.
11418 2014-01-15 Doug Evans <dje@google.com>
11420 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11423 2014-01-15 Tom Tromey <tromey@redhat.com>
11425 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11426 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11427 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11428 (set_objfile_main_name): New function.
11429 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11430 language_of_main>: New fields.
11431 (set_objfile_main_name): Declare.
11432 * symtab.c (find_main_name): Loop over objfiles to find the main
11434 (set_main_name): Now static.
11435 (get_main_info): Add comment.
11436 * symtab.h (set_main_name): Don't declare.
11438 2014-01-15 Tom Tromey <tromey@redhat.com>
11440 * symtab.c (main_progspace_key): New global.
11441 (struct main_info): New.
11442 (name_of_main, language_of_main): Remove.
11443 (get_main_info, main_info_cleanup): New function.
11444 (set_main_name, main_name, main_language): Use get_main_info.
11445 (_initialize_symtab): Initialize main_progspace_key.
11447 2014-01-15 Tom Tromey <tromey@redhat.com>
11449 * dbxread.c (process_one_symbol): Update.
11450 * dwarf2read.c (read_partial_die): Update.
11451 * symfile.c (set_initial_language): Call main_language.
11452 * symtab.c (language_of_main): Now static.
11453 (set_main_name): Add 'lang' parameter.
11454 (find_main_name): Update.
11455 (main_language): New function.
11456 (symtab_observer_executable_changed): Update.
11457 * symtab.h (set_main_name): Update.
11458 (language_of_main): Remove.
11459 (main_language): Declare.
11461 2014-01-15 Tom Tromey <tromey@redhat.com>
11463 * symfile.c (init_entry_point_info): Use new "initialized" field.
11465 * objfiles.h (struct entry_point) <initialized>: New field.
11466 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11467 (struct objfile) <ei>: ...here. Remove.
11468 * objfiles.c (entry_point_address_query): Update.
11470 2014-01-15 Tom Tromey <tromey@redhat.com>
11472 * objfiles.c (entry_point_address_query): Relocate entry point
11474 (objfile_relocate1): Do not relocate entry point address.
11475 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11476 <the_bfd_section_index>: New field.
11477 * symfile.c (init_entry_point_info): Find the entry point's
11480 2014-01-15 Tom Tromey <tromey@redhat.com>
11482 * solib-frv.c (enable_break): Use entry_point_address_query.
11484 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11486 * NEWS: Add note on improved process record-replay on
11487 arm*-linux* targets.
11489 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11491 * arm-tdep.c (enum arm_record_result): New enum.
11492 (arm_record_unsupported_insn): New function.
11493 (arm_record_coproc_data_proc): Removed.
11494 (thumb2_record_ld_st_multiple): New function.
11495 (thumb2_record_ld_st_dual_ex_tbb): New function.
11496 (thumb2_record_data_proc_sreg_mimm): New function.
11497 (thumb2_record_ps_dest_generic): New function.
11498 (thumb2_record_branch_misc_cntrl): New function.
11499 (thumb2_record_str_single_data): New function.
11500 (thumb2_record_ld_mem_hints): New function.
11501 (thumb2_record_ld_word): New function.
11502 (thumb2_record_lmul_lmla_div): New function.
11503 (thumb2_record_decode_insn_handler): New function.
11504 (decode_insn): Add thumb32 instruction handlers.
11506 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11508 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11509 (struct arm_linux_record_tdep): Declare.
11510 (arm_canonicalize_syscall): New function.
11511 (arm_all_but_pc_registers_record): New function.
11512 (arm_linux_syscall_record): New function.
11513 (arm_linux_init_abi): Add syscall recording constructs.
11514 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11515 decoding. (arm_record_coproc_data_proc): Update arm syscall
11517 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11518 <arm_syscall_record>: New field.
11519 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11524 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11525 register for push instruction recording.
11527 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11529 * arm-tdep.c (thumb_record_misc): Update to correct logical
11530 error while recording ldm, ldmia and pop instructions.
11532 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11534 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11536 2014-01-15 Pedro Alves <palves@redhat.com>
11538 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11539 (go32_resume, go32_fetch_registers, store_register)
11540 (go32_store_registers, go32_prepare_to_store)
11541 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11542 (go32_create_inferior, go32_can_run, go32_terminal_init)
11543 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11546 2014-01-15 Tom Tromey <tromey@redhat.com>
11548 * target.h (async_callback_ftype): New typedef.
11549 (struct target_ops) <to_async>: Use it.
11551 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11553 * python/py-value.c (get_field_type): Remove unnecessary curly
11554 braces for single-statement if block.
11556 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11558 * python/py-type.c (convert_field): Add missing empty line
11559 after declarations.
11561 2014-01-14 Doug Evans <dje@google.com>
11563 * symfile.h (expand_symtabs_matching): Renamed from
11564 expand_partial_symbol_names. Update prototype.
11565 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11566 * symfile.c (expand_symtabs_matching): Renamed from
11567 expand_partial_symbol_names. New args file_matcher, kind.
11568 Rename arg fun to symbol_matcher.
11569 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11570 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11571 ada_expand_partial_symbol_name.
11572 (ada_make_symbol_completion_list): Update to call
11573 expand_symtabs_matching.
11574 (ada_add_global_exceptions): Call expand_symtabs_matching.
11575 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11576 call map_symbol_filenames.
11577 * symtab.c (sources_info): Update to call map_symbol_filenames.
11578 (search_symbols): Call expand_symtabs_matching.
11579 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11580 (default_make_symbol_completion_list_break_on): Update to call
11581 expand_symtabs_matching.
11582 (make_source_files_completion_list): Update to call
11583 map_symbol_filenames.
11585 2014-01-14 Doug Evans <dje@google.com>
11587 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11588 (expand_symtabs_symbol_matcher_ftype): New typedef.
11589 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11590 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11591 * symfile.c (expand_partial_symbol_names): Update to use
11592 expand_symtabs_symbol_matcher_ftype.
11593 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11594 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11595 Arg name_matcher renamed to symbol_matcher.
11596 * psymtab.c (recursively_search_psymtabs): Update to use
11597 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11599 (expand_symtabs_matching_via_partial): Update to use
11600 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11601 Arg name_matcher renamed to symbol_matcher.
11603 2014-01-14 Doug Evans <dje@google.com>
11605 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11606 (map_partial_symbol_filenames): Ditto.
11607 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11608 (map_partial_symbol_filenames): Ditto.
11609 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11610 (map_partial_symbol_filenames): Ditto.
11611 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11612 (map_partial_symbol_filenames): Ditto.
11613 * symtab.c: Delete #include "psymtab.h".
11615 2014-01-14 Pedro Alves <palves@redhat.com>
11616 Tom Tromey <tromey@redhat.com>
11618 * infrun.c (use_displaced_stepping): Use find_record_target
11619 instead of RECORD_IS_USED.
11620 (adjust_pc_after_break): Use record_full_is_used instead of
11622 * record-btrace.c (record_btrace_open): Call record_preopen
11623 instead of checking RECORD_IS_USED.
11624 * record-full.c (record_full_shortname)
11625 (record_full_core_shortname): New globals.
11626 (record_full_is_used): New function.
11627 (find_full_open): Call record_preopen instead of checking
11629 (init_record_full_ops): Set the target's shortname to
11630 record_full_shortname.
11631 (init_record_full_core_ops): Set the target's shortname to
11632 record_full_core_shortname.
11633 * record-full.h (record_full_is_used): Declare.
11634 * record.c (find_record_target): Make extern.
11635 (record_preopen): New function.
11636 * record.h (RECORD_IS_USED): Delete macro.
11637 (find_record_target, record_preopen): Declare functions.
11639 2014-01-14 Yao Qi <yao@codesourcery.com>
11641 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11642 'len''s type to ULONGEST.
11643 (core_xfer_shared_libraries_aix): Likewise.
11644 * gdbarch.c, gdbarch.h: Regenerated.
11645 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11646 Change type of 'len' to ULONGEST.
11647 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11648 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11650 2014-01-14 Yao Qi <yao@codesourcery.com>
11652 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11653 type of 'len' to ULONGEST.
11654 (linux_xfer_osdata_processgroups): Likewise.
11655 (linux_xfer_osdata_threads): Likewise.
11656 (linux_xfer_osdata_fds): Likewise.
11657 (linux_xfer_osdata_isockets): Likewise.
11658 (linux_xfer_osdata_shm): Likewise.
11659 (linux_xfer_osdata_sem): Likewise.
11660 (linux_xfer_osdata_msg): Likewise.
11661 (linux_common_xfer_osdata): Likewise.
11662 (struct osdata_type) <getter>: Likewise.
11663 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11666 2014-01-14 Yao Qi <yao@codesourcery.com>
11668 * target.h (target_xfer_partial_ftype): Update.
11669 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11671 * aix-thread.c (aix_thread_xfer_partial): Change type of
11672 argument 'len' to ULONGEST.
11673 * auxv.c (procfs_xfer_auxv): Likewise.
11674 (ld_so_xfer_auxv): Likewise.
11675 (memory_xfer_auxv): Likewise.
11676 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11677 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11678 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11679 * corelow.c (core_xfer_partial): Likewise.
11680 * ctf.c (ctf_xfer_partial): Likewise.
11681 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11683 (darwin_read_dyld_info): Likewise.
11684 (darwin_xfer_partial): Likewise.
11685 * exec.c (section_table_xfer_memory_partial): Likewise.
11686 (exec_xfer_partial): Likewise.
11687 * exec.h (section_table_xfer_memory_partial): Update
11689 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11690 instead of plongest.
11691 (gnu_xfer_partial): Likewise.
11692 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11693 (ia64_hpux_xfer_solib_got): Likewise.
11694 (ia64_hpux_xfer_partial): Likewise.
11695 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11696 * inf-ptrace.c (inf_ptrace_xfer_partial):
11697 * inf-ttrace.c (inf_ttrace_xfer_partial):
11698 * linux-nat.c (linux_xfer_siginfo): Likewise.
11699 (linux_nat_xfer_partial): Likewise.
11700 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11701 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11702 * monitor.c (monitor_xfer_memory): Likewise.
11703 (monitor_xfer_partial): Likewise.
11704 * procfs.c (procfs_xfer_partial): Likewise.
11705 * record-full.c (record_full_xfer_partial): Likewise.
11706 (record_full_core_xfer_partial): Likewise.
11707 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11708 instead of plongest.
11709 (gdbsim_xfer_partial): Likewise.
11710 * remote.c (remote_xfer_partial): Likewise.
11711 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11712 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11714 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11715 (rs6000_xfer_shared_libraries): Likewise.
11716 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11717 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11718 (sparc_xfer_partial): Likewise.
11719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11720 (spu_xfer_partial): Likewise.
11721 * spu-multiarch.c (spu_xfer_partial): Likewise.
11722 * target.c (target_read_live_memory): Likewise.
11723 (memory_xfer_live_readonly_partial): Likewise.
11724 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11725 (target_xfer_partial, default_xfer_partial): Likewise.
11726 (current_xfer_partial): Likewise.
11727 * tracepoint.c (tfile_xfer_partial): Likewise.
11728 * windows-nat.c (windows_xfer_memory): Likewise. Call
11729 pulongest instead of plongest.
11730 (windows_xfer_partial): Likewise.
11731 (windows_xfer_shared_libraries): Likewise.
11733 2014-01-14 Yao Qi <yao@codesourcery.com>
11735 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11736 target_xfer_partial_ftype.
11738 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11742 * valops.c (value_struct_elt_bitpos): New function
11743 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11744 object to 'None' if the field name is an empty string ("").
11745 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11746 attribute to look for a field when 'name' is 'None'.
11747 (get_field_type): New function
11749 2014-01-13 Doug Evans <dje@google.com>
11752 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11753 (try_open_dwop_file): Ditto.
11754 * gdb_bfd.c: #include "vec.h".
11755 (bfdp): New typedef.
11756 (struct gdb_bfd_data): New member included_bfds.
11757 (gdb_bfd_unref): Unref all included bfds.
11758 (gdb_bfd_record_inclusion): New function.
11759 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11761 2014-01-13 Tom Tromey <tromey@redhat.com>
11763 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11765 2014-01-13 Tom Tromey <tromey@redhat.com>
11767 * defs.h (use_windows): Remove.
11768 * gdb.c (main): Update.
11769 * main.c (captured_main, gdb_main): Update.
11770 * main.h (struct captured_main_args) <use_windows>: Remove.
11771 * top.c (use_windows): Remove.
11773 2014-01-13 Tom Tromey <tromey@redhat.com>
11775 * defs.h (deprecated_flush_hook): Remove.
11777 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11780 * linux-thread-db.c (try_thread_db_load): Add parameter
11781 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11782 (try_thread_db_load_from_pdir_1): Move it there from here.
11783 (try_thread_db_load_from_sdir): Update caller.
11784 (try_thread_db_load_from_dir): Move it there from here.
11786 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11788 * regformats/regdat.sh: Always rewrite the register file.
11790 2014-01-13 Pedro Alves <palves@redhat.com>
11792 * Makefile.in (CHECK_HEADERS): New variable.
11793 (check-headers:): New rule.
11795 2014-01-13 Tom Tromey <tromey@redhat.com>
11797 * cli/cli-setshow.c (do_set_command): Update.
11798 * defs.h (deprecated_set_hook): Remove.
11799 * top.c (deprecated_set_hook): Remove.
11801 2014-01-13 Pedro Alves <palves@redhat.com>
11803 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11804 the tracepoint if the PC is a pseudo-register.
11806 2014-01-13 Tom Tromey <tromey@redhat.com>
11808 * defs.h (XCALLOC): Remove.
11809 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11810 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11811 * dwarf2loc.c (allocate_piece_closure): Likewise.
11812 * elfread.c (elf_symfile_segments): Likewise.
11813 (elf_symfile_segments): Likewise.
11814 * gdbtypes.c (copy_type_recursive): Likewise.
11815 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11816 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11817 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11819 * mt-tdep.c (mt_gdbarch_init): Likewise.
11820 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11822 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11823 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11824 * registry.c (registry_alloc_data): Likewise.
11825 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11826 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11827 * serial.c (serial_fdopen_ops): Likewise.
11828 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11830 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11831 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11834 2014-01-13 Tom Tromey <tromey@redhat.com>
11836 * defs.h (XMALLOC): Remove.
11837 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11838 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11839 * cli-out.c (struct ui_out *): Likewise.
11840 * cli/cli-dump.c (add_dump_command): Likewise.
11841 (add_dump_command): Likewise.
11842 * complaints.c (get_complaints): Likewise.
11843 (find_complaint): Likewise.
11844 * dwarf2-frame.c (execute_cfa_program): Likewise.
11845 * dwarf2read.c (abbrev_table_read_table): Likewise.
11846 * gdbarch.sh: Likewise.
11847 * gdbarch.c: Rebuild.
11848 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11849 * interps.c (interp_new): Likewise.
11850 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11851 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11852 * mi/mi-console.c (mi_console_file_new): Likewise.
11853 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11854 * mi/mi-out.c (mi_out_new): Likewise.
11855 * mi/mi-parse.c (mi_parse): Likewise.
11856 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11857 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11858 * observer.c (xalloc_observer_list_node): Likewise.
11859 * regcache.c (regcache_xmalloc_1): Likewise.
11860 * reggroups.c (reggroup_new): Likewise.
11861 (_initialize_reggroup): Likewise.
11862 * registry.c (register_data_with_cleanup): Likewise.
11863 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11864 * ser-base.c (serial_ttystate): Likewise.
11865 * ser-mingw.c (make_pipe_state): Likewise.
11866 * ser-pipe.c (pipe_open): Likewise.
11867 * serial.c (serial_open): Likewise.
11868 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11869 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11870 (tui_alloc_win_info): Likewise.
11871 (tui_add_content_elements): Likewise.
11872 * tui/tui-file.c (tui_file_new): Likewise.
11873 * tui/tui-out.c (tui_out_new): Likewise.
11874 * ui-file.c (mem_file_new): Likewise.
11875 * ui-out.c (push_level): Likewise.
11876 (make_cleanup_ui_out_end): Likewise.
11877 (append_header_to_list): Likewise.
11878 (ui_out_new): Likewise.
11879 * user-regs.c (user_reg_add_builtin): Likewise.
11881 2014-01-13 Tom Tromey <tromey@redhat.com>
11883 * defs.h (XZALLOC): Remove.
11884 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11885 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11886 (get_ada_tasks_inferior_data): Likewise.
11887 * auto-load.c (get_auto_load_pspace_data): Likewise.
11888 * auxv.c (get_auxv_inferior_data): Likewise.
11889 * bfd-target.c (target_bfd_reopen): Likewise.
11890 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11891 (deprecated_insert_raw_breakpoint): Likewise.
11892 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11893 * corelow.c (core_open): Likewise.
11894 * darwin-nat.c (darwin_check_new_threads): Likewise.
11895 (darwin_attach_pid): Likewise.
11896 * dummy-frame.c (dummy_frame_push): Likewise.
11897 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11898 * dwarf2loc.c (allocate_piece_closure): Likewise.
11899 * elfread.c (elf_symfile_segments): Likewise.
11900 * eval.c (ptrmath_type_p): Likewise.
11901 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11902 * gdbtypes.c (alloc_type_arch): Likewise.
11903 (alloc_type_instance): Likewise.
11904 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11905 * inf-child.c (inf_child_can_use_agent): Likewise.
11906 * inflow.c (get_inflow_inferior_data): Likewise.
11907 * infrun.c (save_infcall_suspend_state): Likewise.
11908 * jit.c (jit_reader_load): Likewise.
11909 (get_jit_objfile_data): Likewise.
11910 (get_jit_program_space_data): Likewise.
11911 (jit_object_open_impl): Likewise.
11912 (jit_symtab_open_impl): Likewise.
11913 (jit_block_open_impl): Likewise.
11914 (jit_frame_sniffer): Likewise.
11915 * linux-fork.c (add_fork): Likewise.
11916 * maint.c (make_command_stats_cleanup): Likewise.
11917 * objfiles.c (get_objfile_pspace_data): Likewise.
11918 * opencl-lang.c (struct lval_closure): Likewise.
11919 * osdata.c (osdata_start_osdata): Likewise.
11920 * progspace.c (new_address_space): Likewise.
11921 (add_program_space): Likewise.
11922 * remote-sim.c (get_sim_inferior_data): Likewise.
11923 * sh-tdep.c (sh_gdbarch_init): Likewise.
11924 * skip.c (Ignore): Likewise.
11925 (skip_delete_command): Likewise.
11926 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11927 (library_list_start_library): Likewise.
11928 (solib_aix_current_sos): Likewise.
11929 * solib-darwin.c (get_darwin_info): Likewise.
11930 (darwin_current_sos): Likewise.
11931 * solib-dsbt.c (get_dsbt_info): Likewise.
11932 * solib-ia64-hpux.c (new_so_list): Likewise.
11933 (ia64_hpux_get_solib_linkage_addr): Likewise.
11934 * solib-spu.c (append_ocl_sos): Likewise.
11935 (spu_current_sos): Likewise.
11936 * solib-svr4.c (get_svr4_info): Likewise.
11937 (svr4_keep_data_in_core): Likewise.
11938 (library_list_start_library): Likewise.
11939 (svr4_default_sos): Likewise.
11940 (svr4_read_so_list): Likewise.
11941 * solib-target.c (library_list_start_library): Likewise.
11942 (solib_target_current_sos): Likewise.
11943 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11944 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11945 * symfile.c (default_symfile_segments): Likewise.
11946 * target-descriptions.c (tdesc_data_init): Likewise.
11947 (tdesc_create_reg): Likewise.
11948 (struct tdesc_type *): Likewise.
11949 (tdesc_create_vector): Likewise.
11950 (tdesc_set_struct_size): Likewise.
11951 (struct tdesc_type *): Likewise.
11952 (tdesc_free_feature): Likewise.
11953 (tdesc_create_feature): Likewise.
11954 * windows-nat.c (windows_add_thread): Likewise.
11955 (windows_make_so): Likewise.
11956 * xml-support.c (gdb_xml_body_text): Likewise.
11957 (gdb_xml_create_parser_and_cleanup): Likewise.
11958 (xml_process_xincludes): Likewise.
11959 * xml-syscall.c (allocate_syscalls_info): Likewise.
11960 (syscall_create_syscall_desc): Likewise.
11962 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11964 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11965 function, with code from i386_stap_parse_special_token.
11966 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11967 (i386_stap_parse_special_token): Move code to the two functions
11968 above; simplify it.
11970 2014-01-09 Pedro Alves <palves@redhat.com>
11971 Hui Zhu <hui@codesourcery.com>
11974 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11975 bp_err_string. Don't mark the location shlib_disabled if the
11976 error thrown wasn't a generic or memory error. Catch errors
11977 thrown while inserting breakpoints in overlayed code. Output
11978 error message of software breakpoints.
11979 * remote.c (remote_insert_breakpoint): If this breakpoint has
11980 target-side commands but this stub doesn't support Z0 packets,
11981 throw NOT_SUPPORTED_ERROR error.
11982 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11983 * target.h (target_insert_breakpoint): Extend comment.
11984 (target_insert_hw_breakpoint): Add comment.
11986 2014-01-08 Pedro Alves <palves@redhat.com>
11988 * remote.c (remote_add_thread): Add threads silently if starting
11990 (remote_notice_new_inferior): If in all-stop, and starting up,
11991 don't call notice_new_inferior.
11992 (get_current_thread): New function, factored out from ...
11993 (add_current_inferior_and_thread): ... this. Adjust.
11994 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11995 found any thread, then select the remote's current thread as GDB's
11996 current thread too.
11998 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12000 * NEWS: Create a new section for the next release branch.
12001 Rename the section of the current branch, now that it has
12004 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12006 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12007 * version.in: Bump version to 7.7.50.DATE-cvs.
12009 2014-01-08 Yao Qi <yao@codesourcery.com>
12011 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12012 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12013 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12015 2014-01-08 Yao Qi <yao@codesourcery.com>
12017 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12018 return value of bfd_get_filename to symbol_file_add_from_bfd.
12020 2014-01-08 Pierre Muller <muller@sourceware.org>
12023 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12024 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12025 to prim_record_mininal_symbol_and_info.
12026 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12027 in call to prim_record_minimal_symbol_and_info.
12028 (read_pe_exported_syms): Set index field of section_data.
12030 2014-01-07 Andrew Pinski <apinski@cavium.com>
12032 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12033 * features/aarch64.c: Regenerate.
12035 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12037 * target.c (return_null): Define.
12038 (update_current_target): Use it instead of return_zero for
12039 functions that return a pointer.
12041 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12043 * source.c (add_path): Fix check for duplicated paths in the previously
12046 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12048 * ada-lang.c: Remove duplicated include statements.
12049 * alphabsd-nat.c: Ditto.
12050 * amd64-darwin-tdep.c: Ditto.
12051 * amd64fbsd-nat.c: Ditto.
12052 * auto-load.c: Ditto.
12054 * breakpoint.c: Ditto.
12055 * dbxread.c: Ditto.
12056 * fork-child.c: Ditto.
12057 * gdb_usleep.c: Ditto.
12058 * i386-darwin-tdep.c: Ditto.
12059 * i386fbsd-nat.c: Ditto.
12061 * inferior.c: Ditto.
12062 * jv-lang.c: Ditto.
12063 * linux-nat.c: Ditto.
12064 * linux-tdep.c: Ditto.
12065 * m68kbsd-nat.c: Ditto.
12066 * m68klinux-nat.c: Ditto.
12067 * microblaze-tdep.c: Ditto.
12068 * mips-linux-tdep.c: Ditto.
12069 * mn10300-tdep.c: Ditto.
12070 * nto-tdep.c: Ditto.
12071 * opencl-lang.c: Ditto.
12073 * printcmd.c: Ditto.
12074 * regcache.c: Ditto.
12075 * remote-m32r-sdi.c: Ditto.
12077 * symfile.c: Ditto.
12079 * tilegx-linux-nat.c: Ditto.
12080 * tilegx-tdep.c: Ditto.
12081 * tracepoint.c: Ditto.
12083 * vaxbsd-nat.c: Ditto.
12084 * windows-nat.c: Ditto.
12085 * xtensa-tdep.c: Ditto.
12087 2014-01-07 Yao Qi <yao@codesourcery.com>
12089 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12091 2014-01-07 Yao Qi <yao@codesourcery.com>
12092 Joel Brobecker <brobecker@adacore.com>
12094 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12095 (pdc_write_regs): Likewise.
12096 (fetch_regs_kernel_thread): Likewise.
12097 (store_regs_kernel_thread): Likewise.
12099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12101 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12102 tagged type objects to their actual type.
12104 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12106 * ada-valprint.c (print_field_values): Add "language" parameter.
12107 Update calls to print_field_values and print_variant_part.
12108 Pass new parameter "language" in call to val_print instead
12109 of "current_language". Replace call to ada_val_print by call
12111 (print_variant_part): Add "language" parameter.
12112 (ada_val_print_struct_union): Update call to print_field_values.
12114 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12116 * ada-valprint.c (ui_memcpy): Delete.
12117 (ada_print_floating): Update documentation. Add empty line
12118 between between function documentation and implementation.
12119 Delete variable "buffer". Use ui_file_xstrdup in place of
12120 ui_file_put. Minor adjustments following this change.
12122 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12124 * ada-valprint.c (ada_val_print_string): New function,
12125 extracted from ada_val_print_array.
12126 (ada_val_print_array): Replace extracted code by call
12127 to ada_val_print_string followed by a return. Move
12128 "else" branch to the function's top block.
12130 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12132 * ada-valprint.c (ada_val_print_array): Move implementation
12133 down. Rename parameter "offset" and "val" into "offset_aligned"
12134 and "original_value" respectively. Add parameter "offset".
12136 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12138 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12139 re-organizing the code. Change the "???" message printed
12140 when target type is a TYPE_CODE_UNDEF into
12141 "<ref to undefined type>".
12143 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12145 * ada-valprint.c (print_record): Delete, implementation inlined...
12146 (ada_val_print_struct_union): ... here. Remove call to
12147 ada_check_typedef in inlined implementation.
12149 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12151 * ada-valprint.c (ada_val_print_gnat_array): New function,
12152 extracted from ada_val_print_1;
12153 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12154 (ada_val_print_flt, ada_val_print_struct_union)
12155 (ada_val_print_ref): Likewise.
12156 (ada_val_print_1): Delete variables i and elttype.
12157 Replace extracted-out code by call to corresponding
12160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12162 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12164 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12166 * ada-valprint.c (ada_val_print_1): Replace calls to
12167 ada_val_print_1 by calls to val_print.
12169 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12171 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12172 Update calls to self accordingly. Replace calls to c_val_print
12173 by calls to val_print.
12175 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12177 * ada-valprint.c (print_record): Delete declaration.
12178 (adjust_type_signedness, ada_val_print_1): Likewise.
12179 (ada_val_print): Move function implementation down.
12180 (print_variant_part, print_field_values, print_record):
12181 Move function implementation up.
12183 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12185 * python/py-type.c (typy_get_name): New function.
12186 (type_object_getset): Add entry for attribute "name".
12187 * NEWS: Add entry mentioning this new attribute.
12189 2014-01-07 Yao Qi <yao@codesourcery.com>
12191 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12194 2014-01-07 Yao Qi <yao@codesourcery.com>
12196 * gnu-nat.c (info_port_rights): Add qualifier const to
12199 2014-01-07 Yao Qi <yao@codesourcery.com>
12201 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12203 2014-01-07 Yao Qi <yao@codesourcery.com>
12205 * gnu-nat.c (make_inf) Update declaration.
12206 (make_inf): Make it static.
12207 (inf_set_traced): Likewise.
12208 (inf_port_to_thread, inf_task_died_status): Likewise.
12210 2014-01-07 Yao Qi <yao@codesourcery.com>
12212 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12214 2014-01-07 Yao Qi <yao@codesourcery.com>
12216 * gnu-nat.c (_initialize_gnu_nat): Declare.
12218 2014-01-07 Yao Qi <yao@codesourcery.com>
12220 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12222 (struct gdbarch_info) <byte_order>: Change type to
12224 <byte_order_for_code>: Likewise.
12225 * gdbarch.c, gdbarch.h: Regenerated.
12227 2014-01-06 Sasha Smundak <asmundak@google.com>
12229 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12231 2014-01-06 Tom Tromey <tromey@redhat.com>
12233 * doublest.c (convert_doublest_to_floatformat): Use const, not
12235 * somread.c (som_symtab_read): Likewise.
12237 2014-01-07 Hui Zhu <hui@codesourcery.com>
12239 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12240 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12241 (gdb_bfd_fopen): Ditto.
12242 (gdb_bfd_openr): Ditto.
12243 (gdb_bfd_openw): Ditto.
12244 (gdb_bfd_openr_iovec): Ditto.
12245 (gdb_bfd_fdopenr): Ditto.
12246 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12247 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12249 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12251 * symfile-mem.c (symbol_file_add_from_memory): Removed
12252 gdb_bfd_stash_filename.
12254 2014-01-03 Doug Evans <dje@google.com>
12256 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12259 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12261 Update year range in copyright notice of all files.
12263 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12265 * top.c (print_gdb_version): Set copyright year to 2014.
12267 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12269 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12271 For older changes see ChangeLog-2013.
12277 version-control: never