1 2014-08-25 Yao Qi <yao@codesourcery.com>
3 * dwarf2read.c: Fix grammatical error.
5 2014-08-24 Yao Qi <yao@codesourcery.com>
7 * dwarf2read.c (scan_partial_symbols): Update comments.
8 Rename argument 'need_pc' with 'set_addrmap'.
9 (add_partial_namespace): Rename argument 'need_pc' with
11 (add_partial_module): Likewise.
12 (add_partial_subprogram): Likewise. Update comments.
13 (dwarf2_name): Fix typo.
15 2014-08-22 Doug Evans <dje@google.com>
18 * dwarf2read.c (dwarf_record_line_p): New function.
19 (dwarf_decode_lines_1): Ignore subsequent line number entries
20 for the same line if any entry had a non-zero discriminator.
22 2014-08-22 Doug Evans <dje@google.com>
24 * buildsym.h (record_line_ftype): New typedef.
25 (record_line): Use it.
26 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
27 (dwarf_decode_lines_1): Call them.
29 2014-08-22 Yao Qi <yao@codesourcery.com>
31 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
32 (ctf_end): Remove code.
34 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
36 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
37 (linux_make_corefile_notes): call update_thread_list, protected against
40 2014-08-21 Pedro Alves <palves@redhat.com>
42 * infcmd.c (attach_command): Remove comment.
44 2014-08-21 Bin Cheng <bin.cheng@arm.com>
46 * aarch64-linux-nat.c (dr_changed_t): Change the type from
47 unsigned LONGEST to ULONGEST.
49 2014-08-20 Pedro Alves <palves@redhat.com>
51 * Makefile.in (check-read1): New rule.
53 2014-08-20 Joel Brobecker <brobecker@adacore.com>
55 * value.c (value_from_contents_and_address): Strip resolved_type's
56 typedef layers before checking its TYPE_DATA_LOCATION.
58 2014-08-20 Pedro Alves <palves@redhat.com>
60 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
62 2014-08-20 Yao Qi <yao@codesourcery.com>
64 * amd64-tdep.c (amd64_classify): Add a blank line after the
65 example. Move "*/" to a new line.
66 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
67 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
68 * dwarf2read.c (psymtab_include_file_name): Likewise.
70 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
71 Pedro Alves <palves@redhat.com>
75 * ada-lang.c (coerce_unspec_val_to_type): Use
76 value_contents_copy_raw.
77 * ada-valprint.c (val_print_packed_array_elements): Adjust.
78 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
79 * cp-valprint.c (cp_print_value_fields): Let the common printing
80 code handle optimized out values.
81 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
82 * d-valprint.c (dynamic_array_type): Use
83 value_bits_any_optimized_out.
84 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
85 check_any_valid fields.
86 (check_pieced_value_bits): Delete and inline ...
87 (check_pieced_synthetic_pointer): ... here.
88 (check_pieced_value_validity): Delete.
89 (check_pieced_value_invalid): Delete.
90 (pieced_value_funcs): Remove check_validity and check_any_valid
92 (read_pieced_value): Use mark_value_bits_optimized_out.
93 (write_pieced_value): Switch to use
94 mark_value_bytes_optimized_out.
95 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
96 of assuming the whole value is optimized out.
97 * findvar.c (read_frame_register_value): Remove special handling
98 of optimized out registers.
99 (value_from_register): Use mark_value_bytes_optimized_out.
100 * frame-unwind.c (frame_unwind_got_optimized): Use
101 mark_value_bytes_optimized_out.
102 * jv-valprint.c (java_value_print): Adjust.
103 (java_print_value_fields): Let the common printing code handle
104 optimized out values.
105 * mips-tdep.c (mips_print_register): Remove special handling of
106 optimized out registers.
107 * opencl-lang.c (lval_func_check_validity): Delete.
108 (lval_func_check_any_valid): Delete.
109 (opencl_value_funcs): Remove check_validity and check_any_valid
111 * p-valprint.c (pascal_object_print_value_fields): Let the common
112 printing code handle optimized out values.
113 * stack.c (read_frame_arg): Remove special handling of optimized
114 out values. Fetch both VAL and ENTRYVAL before comparing
115 contents. Adjust to value_available_contents_eq rename.
116 * valprint.c (valprint_check_validity)
117 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
118 (val_print_array_elements): Adjust.
119 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
120 (value_bits_any_optimized_out): New function.
121 (value_entirely_covered_by_range_vector): New function, factored
122 out from value_entirely_unavailable.
123 (value_entirely_unavailable): Reimplement.
124 (value_entirely_optimized_out): New function.
125 (insert_into_bit_range_vector): New function, factored out from
126 mark_value_bits_unavailable.
127 (mark_value_bits_unavailable): Reimplement.
128 (struct ranges_and_idx): New struct.
129 (find_first_range_overlap_and_match): New function, factored out
130 from value_available_contents_bits_eq.
131 (value_available_contents_bits_eq): Rename to ...
132 (value_contents_bits_eq): ... this. Check both unavailable
133 contents and optimized out contents.
134 (value_available_contents_eq): Rename to ...
135 (value_contents_eq): ... this.
136 (allocate_value_lazy): Remove reference to the old optimized_out
138 (allocate_optimized_out_value): Use
139 mark_value_bytes_optimized_out.
140 (require_not_optimized_out): Adjust to check whether the
141 optimized_out vec is empty.
142 (ranges_copy_adjusted): New function, factored out from
143 value_contents_copy_raw.
144 (value_contents_copy_raw): Also copy the optimized out ranges.
145 Assert the destination ranges aren't optimized out.
146 (value_contents_copy): Update comment, remove call to
147 require_not_optimized_out.
148 (value_contents_equal): Adjust to check whether the optimized_out
150 (set_value_optimized_out, value_optimized_out_const): Delete.
151 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
153 (value_entirely_optimized_out, value_bits_valid): Delete.
154 (value_copy): Take a VEC copy of the 'optimized_out' field.
155 (value_primitive_field): Remove special handling of optimized out.
156 (value_fetch_lazy): Assert that lazy values have no unavailable
157 regions. Use value_bits_any_optimized_out. Remove some special
158 handling for optimized out values.
159 * value.h: Add intro comment about <optimized out> and
161 (struct lval_funcs): Remove check_validity and check_any_valid
163 (set_value_optimized_out, value_optimized_out_const): Remove.
164 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
166 (value_bits_any_optimized_out): New declaration.
167 (value_bits_valid): Delete declaration.
168 (value_available_contents_eq): Rename to ...
169 (value_contents_eq): ... this, and extend comments.
171 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Fix -fsanitize=address on unreadable inferior strings.
174 * valprint.c (val_print_string): Fix access before BUFFER.
176 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
178 * target.c (target_struct_size): Remove.
179 (target_struct_allocsize): Remove.
180 (DEFAULT_ALLOCSIZE): Remove.
181 (target_ops_p): New typedef.
182 (DEF_VEC_P (target_ops_p)): New vector type.
183 (target_structs): Change type to VEC (target_ops_p).
184 (add_target_with_completer): Replace "push" code by VEC_safe_push.
185 (find_default_run_target): Rewrite for loop following changes to
188 2014-08-19 Joel Brobecker <brobecker@adacore.com>
190 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
191 Adjust code accordingly. Adjust function description comment.
193 2014-08-19 Yao Qi <yao@codesourcery.com>
195 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
198 2014-08-19 Alan Modra <amodra@gmail.com>
200 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
201 * config.in: Regenerate.
202 * configure: Regenerate.
204 2014-08-19 Tom Tromey <tromey@redhat.com>
205 Gary Benson <gbenson@redhat.com>
207 * common/common-debug.h: New file.
208 * common/common-debug.c: Likewise.
210 * Makefile.in (SFILES): Add common/common-debug.c.
211 (HFILES_NO_SRCDIR): Add common/common-debug.h.
212 (COMMON_OBS): Add common-debug.o and debug.o.
213 (common-debug.o): New rule.
214 * common/common-defs.h: Include common-debug.h.
215 * common/agent.c (debug_agent_printf): New function.
216 (DEBUG_AGENT): Redefine.
217 * nat/i386-dregs.c (debug_printf): Undefine.
219 2014-08-19 Gary Benson <gbenson@redhat.com>
221 * common/common-defs.h: Include print-utils.h.
222 * utils.h: Do not include print-utils.h.
224 2014-08-19 Tom Tromey <tromey@redhat.com>
225 Gary Benson <gbenson@redhat.com>
227 * common/common-types.h: New file.
228 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
229 * common/common-defs.h: Include common-types.h.
230 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
233 2014-08-19 Tom Tromey <tromey@redhat.com>
234 Gary Benson <gbenson@redhat.com>
236 * common/errors.h: New file.
237 * common/errors.c: Likewise.
238 * Makefile.in (SFILES): Add common/errors.c.
239 (HFILES_NO_SRCDIR): Add common/errors.h.
240 (COMMON_OBS): Add errors.o.
241 (errors.o): New rule.
242 * common/common-defs.h: Include errors.h.
243 * utils.h (perror_with_name, error, verror, warning, vwarning):
245 * common/common-utils.h: (malloc_failure, internal_error):
248 2014-08-19 Gary Benson <gbenson@redhat.com>
250 * utils.c (internal_vproblem): Always print the message.
252 2014-08-18 Doug Evans <dje@google.com>
254 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
256 2014-08-18 Joel Brobecker <brobecker@adacore.com>
258 * ada-typeprint.c (type_is_full_subrange_of_target_type):
259 Return 0 if TYPE is dynamic.
260 (print_range): Add handling of dynamic ranges.
262 2014-08-18 Keven Boell <keven.boell@intel.com>
263 Joel Brobecker <brobecker@adacore.com>
265 * gdbtypes.h (struct main_type): Add field "data_location".
266 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
267 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
268 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
269 a dynamic data location.
270 (resolve_dynamic_type): Add DW_AT_data_location handling.
271 (copy_recursive, copy_type): Copy the data_location information
273 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
274 * value.c (value_from_contents_and_address): Add
275 DW_AT_data_location handling.
277 2014-08-18 Keven Boell <keven.boell@intel.com>
278 Joel Brobecker <brobecker@adacore.com>
280 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
281 field "get_object_address".
282 * dwarf2expr.c (execute_stack_op): Add handling for
283 DW_OP_push_object_address.
284 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
285 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
286 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
287 (dwarf_expr_get_obj_addr): New function.
288 (dwarf_expr_ctx_funcs): Add get_object_address field.
289 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
290 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
291 (dwarf2_evaluate_property): Add parameter "address". Use it.
292 (needs_get_obj_addr): New function.
293 (needs_frame_ctx_funcs): Add get_object_address field.
294 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
295 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
296 (resolve_dynamic_array): Likewise.
298 2014-08-18 Joel Brobecker <brobecker@adacore.com>
300 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
301 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
302 fixed value for records and unions for which some GNAT encodings
305 2014-08-18 Joel Brobecker <brobecker@adacore.com>
307 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
308 rewrite to avoid "else if" and "else" constructs. Should be
311 2014-08-18 Joel Brobecker <brobecker@adacore.com>
313 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
316 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
319 * eval.c: Update all calls to find_overload_match.
320 * valarith.c: Likewise.
321 (value_user_defined_cpp_op, value_user_defined_op): New
322 argument NOSIDE. Update all callers.
323 * valops.c (find_overload_match): New argument NOSIDE.
324 * value.h (find_overload_match): Update signature.
326 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
328 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
329 'items' methods instead of 'iteritems' method on dictionaries.
331 2014-08-15 Doug Evans <dje@google.com>
333 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
336 2014-08-15 Doug Evans <dje@google.com>
338 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
340 2014-08-15 Doug Evans <dje@google.com>
342 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
344 2014-08-15 Doug Evans <dje@google.com>
346 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
349 2014-08-15 Eli Zaretskii <eliz@gnu.org>
351 * dcache.h: Include target.h, to avoid compile time warnings.
353 2014-08-15 Joel Brobecker <brobecker@adacore.com>
355 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
356 frame_info" partial declaration.
357 * gdbarch.h: Regenerate.
359 2014-08-15 Yao Qi <yao@codesourcery.com>
361 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
362 Add parameter 'decode_for_pst_p'. Callers update.
364 2014-08-13 Yao Qi <yao@codesourcery.com>
367 * configure.ac: Use local variable 'pos'.
368 * configure: Regenerated.
370 2014-08-11 Doug Evans <dje@google.com>
372 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
373 message, it is redundant with "Reading symbols from ..." message.
375 2014-08-10 Doug Evans <xdje42@gmail.com>
377 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
379 2014-08-09 Yao Qi <yao@codesourcery.com>
382 * remote.c (remote_xfer_partial): Remove dead code.
384 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
386 * ia64-linux-tdep.c: Include "regset.h".
387 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
388 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
389 (ia64_linux_supply_fpregset): New function.
390 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
391 (ia64_linux_regset_from_core_section): New function.
392 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
395 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
397 * m68klinux-tdep.c: Include "regset.h".
398 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
399 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
400 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
401 (m68k_linux_regset_from_core_section): New function.
402 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
405 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
407 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
408 function. Move logic to...
409 (tilegx_linux_regmap): ... this new register map.
410 (tilegx_linux_regset): Refer to register map, replace supply
411 method by regcache_supply_regset, and add collect method.
412 * tilegx-tdep.h (enum tilegx_regnum): New enum value
413 TILEGX_FIRST_EASY_REGNUM.
415 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
417 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
418 that calls regcache_supply_regset and handles the EPC register
419 separately. Move main logic to...
420 (score7_linux_gregmap): ... this new register map.
421 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
422 (score7_linux_gregset): Refer to register map. Add collect method.
423 (score7_linux_regset_from_core_section): Replace
424 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
425 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
426 (struct regset): Delete unused forward declaraction.
427 (struct pt_regs): Delete structure definition.
428 (elf_gregset_t): Delete typedef.
430 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
432 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
433 (nios2_core_regset): Add collect method.
435 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
437 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
438 platform-independent and don't write to read-only input buffer.
439 (m32r_linux_collect_gregset): New function.
440 (m32r_linux_gregset): Add collect method.
442 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
444 * hppa-linux-tdep.c (greg_map): Rename to...
445 (hppa_linux_gregmap): ... this. Also convert to
446 regcache_map_entry format.
447 (hppa_linux_supply_regset): Delete function.
448 (hppa_linux_supply_fpregset): Delete function. Move logic to...
449 (hppa_linux_fpregmap): ... this new register map.
450 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
451 register map, replace supply method by regcache_supply_regset, and
452 add collect method regcache_collect_regset.
454 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
456 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
457 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
458 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
459 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
460 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
461 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
462 (frv_linux_supply_gregset): Replace main logic by call to
463 regcache_supply_regset, but keep clearing gr32-gr63.
464 (frv_linux_supply_fpregset): Delete function.
465 (frv_linux_gregset): Refer to appropriate register map and add
466 regcache_collect_regset as the collect method.
467 (frv_linux_fpregset): Likewise. Also exchange the supply method
468 by regcache_supply_regset.
470 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
472 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
473 by call to alpha_supply_int_regs.
474 (alpha_linux_collect_gregset): New function.
475 (alpha_linux_supply_fpregset): Replace logic by call to
476 alpha_supply_fp_regs.
477 (alpha_linux_collect_fpregset): New function.
478 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
480 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
482 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
483 by call to regcache_collect_regset.
484 (supply_gregset, supply_fpregset): Call regcache_supply_regset
485 instead of aarch64_linux_supply_gregset/_fpregset.
486 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
487 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
489 (aarch64_linux_supply_gregset, supply_gregset_from_core)
490 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
491 functions. Move logic to ...
492 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
494 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
495 refer to new register maps, replace *_regset_from_core by
496 regcache_supply_regset, and also use regcache_collect_regset.
497 * aarch64-linux-tdep.h: Include "regset.h".
498 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
500 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
501 macros, moved from C source file.
502 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
503 variable declarations.
505 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
507 * s390-linux-nat.c: Include "regset.h".
508 (regmap_gregset): Delete macro.
509 (s390_64_regmap_gregset): New register map for
510 regcache_supply/_collect_regset.
511 (s390_64_gregset): New regset.
512 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
513 (regmap_fpregset): Delete macro.
514 (s390_native_supply, s390_native_collect): Delete functions.
515 (supply_gregset, fill_gregset): Replace s390-specific regmap
516 handling by a call to regcache_supply/_collect_regset.
517 (supply_fpregset, fill_fpregset): Call regcache_supply/
518 _collect_regset instead of s390_native_supply/_collect.
519 (fetch_regset, store_regset): Likewise. Also change the last
520 parameter to a regset instead of a regmap.
521 (s390_linux_fetch_inferior_registers)
522 (390_linux_store_inferior_registers): Adjust last parameter in
523 calls to fetch_regset and store_regset.
524 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
525 (s390_gregmap): ... this. Also make static const and convert to
526 regcache_map_entry format.
527 (s390x_regmap_gregset): Delete.
528 (s390_regmap_fpregset): Rename to...
529 (s390_fpregmap): ... this. Make static const and convert to
530 regcache_map_entry format.
531 (s390_regmap_upper, s390_regmap_last_break)
532 (s390x_regmap_last_break, s390_regmap_system_call)
533 (s390_regmap_tdb): Likewise.
534 (s390_supply_regset, s390_collect_regset): Remove functions.
535 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
537 (s390_gregset, s390_fpregset, s390_upper_regset)
538 (s390_last_break_regset, s390x_last_break_regset)
539 (s390_system_call_regset, s390_tdb_regset): Make global and
540 replace s390_supply/_collect_regset by regcache_supply/
542 (s390x_gregset): Delete.
543 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
544 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
545 (s390_regmap_fpregset, s390_regmap_last_break)
546 (s390x_regmap_last_break, s390_regmap_system_call)
547 (s390_regmap_tdb): Delete global variable declarations.
548 (s390_gregset, s390_fpregset, s390_last_break_regset)
549 (s390x_last_break_regset, s390_system_call_regset)
550 (s390_tdb_regset): New global variable declarations.
552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
554 * regcache.c: Include "regset.h".
555 (regcache_transfer_regset): New local function.
556 (regcache_supply_regset, regcache_collect_regset): New functions.
557 * regcache.h (struct regcache_map_entry): New structure.
558 (REGCACHE_MAP_SKIP): New enum value.
559 (regcache_supply_regset, regcache_collect_regset): New prototypes.
561 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
563 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
564 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
565 (ppc_linux_collect_gregset ): Likewise.
566 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
567 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
568 (ppc_collect_vrregset): Likewise.
569 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
572 2014-08-07 Yao Qi <yao@codesourcery.com>
574 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
575 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
576 * remote.c (remote_read_bytes): Likewise.
578 2014-08-07 Yao Qi <yao@codesourcery.com>
580 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
582 2014-08-07 Yao Qi <yao@codesourcery.com>
585 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
586 TARGET_XFER_OK instead of 0.
588 2014-08-07 Gary Benson <gbenson@redhat.com>
590 * common/common-defs.h: Include errno.h.
591 * defs.h: Do not include errno.h.
592 * ada-typeprint.c: Likewise.
593 * c-typeprint.c: Likewise.
594 * core-regset.c: Likewise.
595 * corefile.c: Likewise.
596 * corelow.c: Likewise.
597 * event-loop.c: Likewise.
598 * f-typeprint.c: Likewise.
599 * gnu-nat.c: Likewise.
600 * go32-nat.c: Likewise.
601 * i386gnu-nat.c: Likewise.
602 * m2-typeprint.c: Likewise.
603 * nat/linux-btrace.c: Likewise.
604 * p-typeprint.c: Likewise.
605 * procfs.c: Likewise.
606 * remote-sim.c: Likewise.
607 * rs6000-nat.c: Likewise.
608 * target.c: Likewise.
609 * typeprint.c: Likewise.
610 * ui-file.c: Likewise.
611 * valops.c: Likewise.
612 * valprint.c: Likewise.
614 2014-08-07 Gary Benson <gbenson@redhat.com>
616 * common/common-defs.h: Include string.h.
617 * aarch64-tdep.c: Do not include string.h.
618 * ada-exp.y: Likewise.
619 * ada-lang.c: Likewise.
620 * ada-lex.l: Likewise.
621 * ada-typeprint.c: Likewise.
622 * ada-valprint.c: Likewise.
623 * aix-thread.c: Likewise.
624 * alpha-linux-tdep.c: Likewise.
625 * alpha-mdebug-tdep.c: Likewise.
626 * alpha-nat.c: Likewise.
627 * alpha-osf1-tdep.c: Likewise.
628 * alpha-tdep.c: Likewise.
629 * alphanbsd-tdep.c: Likewise.
630 * amd64-dicos-tdep.c: Likewise.
631 * amd64-linux-tdep.c: Likewise.
632 * amd64-nat.c: Likewise.
633 * amd64-sol2-tdep.c: Likewise.
634 * amd64fbsd-tdep.c: Likewise.
635 * amd64obsd-tdep.c: Likewise.
636 * arch-utils.c: Likewise.
637 * arm-linux-nat.c: Likewise.
638 * arm-linux-tdep.c: Likewise.
639 * arm-tdep.c: Likewise.
640 * arm-wince-tdep.c: Likewise.
641 * armbsd-tdep.c: Likewise.
642 * armnbsd-nat.c: Likewise.
643 * armnbsd-tdep.c: Likewise.
644 * armobsd-tdep.c: Likewise.
645 * avr-tdep.c: Likewise.
646 * ax-gdb.c: Likewise.
647 * ax-general.c: Likewise.
648 * bcache.c: Likewise.
649 * bfin-tdep.c: Likewise.
650 * breakpoint.c: Likewise.
651 * build-id.c: Likewise.
652 * buildsym.c: Likewise.
654 * c-lang.c: Likewise.
655 * c-typeprint.c: Likewise.
656 * c-valprint.c: Likewise.
657 * charset.c: Likewise.
658 * cli-out.c: Likewise.
659 * cli/cli-cmds.c: Likewise.
660 * cli/cli-decode.c: Likewise.
661 * cli/cli-dump.c: Likewise.
662 * cli/cli-interp.c: Likewise.
663 * cli/cli-logging.c: Likewise.
664 * cli/cli-script.c: Likewise.
665 * cli/cli-setshow.c: Likewise.
666 * cli/cli-utils.c: Likewise.
667 * coffread.c: Likewise.
668 * common/agent.c: Likewise.
669 * common/buffer.c: Likewise.
670 * common/buffer.h: Likewise.
671 * common/common-utils.c: Likewise.
672 * common/filestuff.c: Likewise.
673 * common/filestuff.c: Likewise.
674 * common/format.c: Likewise.
675 * common/print-utils.c: Likewise.
676 * common/rsp-low.c: Likewise.
677 * common/signals.c: Likewise.
678 * common/vec.h: Likewise.
679 * common/xml-utils.c: Likewise.
680 * core-regset.c: Likewise.
681 * corefile.c: Likewise.
682 * corelow.c: Likewise.
683 * cp-abi.c: Likewise.
684 * cp-name-parser.y: Likewise.
685 * cp-support.c: Likewise.
686 * cp-valprint.c: Likewise.
687 * cris-tdep.c: Likewise.
689 * darwin-nat.c: Likewise.
690 * dbxread.c: Likewise.
691 * dcache.c: Likewise.
692 * demangle.c: Likewise.
693 * dicos-tdep.c: Likewise.
694 * disasm.c: Likewise.
695 * doublest.c: Likewise.
697 * dummy-frame.c: Likewise.
698 * dwarf2-frame.c: Likewise.
699 * dwarf2loc.c: Likewise.
700 * dwarf2read.c: Likewise.
701 * elfread.c: Likewise.
702 * environ.c: Likewise.
704 * event-loop.c: Likewise.
705 * exceptions.c: Likewise.
707 * expprint.c: Likewise.
709 * f-lang.c: Likewise.
710 * f-typeprint.c: Likewise.
711 * f-valprint.c: Likewise.
712 * fbsd-nat.c: Likewise.
713 * findcmd.c: Likewise.
714 * findvar.c: Likewise.
715 * fork-child.c: Likewise.
717 * frv-linux-tdep.c: Likewise.
718 * frv-tdep.c: Likewise.
720 * gdb_bfd.c: Likewise.
721 * gdbarch.c: Likewise.
722 * gdbarch.sh: Likewise.
723 * gdbtypes.c: Likewise.
724 * gnu-nat.c: Likewise.
725 * gnu-v2-abi.c: Likewise.
726 * gnu-v3-abi.c: Likewise.
727 * go-exp.y: Likewise.
728 * go-lang.c: Likewise.
729 * go32-nat.c: Likewise.
730 * guile/guile.c: Likewise.
731 * guile/scm-auto-load.c: Likewise.
732 * hppa-hpux-tdep.c: Likewise.
733 * hppa-linux-nat.c: Likewise.
734 * hppanbsd-tdep.c: Likewise.
735 * hppaobsd-tdep.c: Likewise.
736 * i386-cygwin-tdep.c: Likewise.
737 * i386-dicos-tdep.c: Likewise.
738 * i386-linux-tdep.c: Likewise.
739 * i386-nto-tdep.c: Likewise.
740 * i386-sol2-tdep.c: Likewise.
741 * i386-tdep.c: Likewise.
742 * i386bsd-tdep.c: Likewise.
743 * i386gnu-nat.c: Likewise.
744 * i386nbsd-tdep.c: Likewise.
745 * i386obsd-tdep.c: Likewise.
746 * i387-tdep.c: Likewise.
747 * ia64-libunwind-tdep.c: Likewise.
748 * ia64-linux-nat.c: Likewise.
749 * inf-child.c: Likewise.
750 * inf-ptrace.c: Likewise.
751 * inf-ttrace.c: Likewise.
752 * infcall.c: Likewise.
753 * infcmd.c: Likewise.
754 * inflow.c: Likewise.
755 * infrun.c: Likewise.
756 * interps.c: Likewise.
757 * iq2000-tdep.c: Likewise.
758 * irix5-nat.c: Likewise.
759 * jv-exp.y: Likewise.
760 * jv-lang.c: Likewise.
761 * jv-typeprint.c: Likewise.
762 * jv-valprint.c: Likewise.
763 * language.c: Likewise.
764 * linux-fork.c: Likewise.
765 * linux-nat.c: Likewise.
766 * lm32-tdep.c: Likewise.
767 * m2-exp.y: Likewise.
768 * m2-typeprint.c: Likewise.
769 * m32c-tdep.c: Likewise.
770 * m32r-linux-nat.c: Likewise.
771 * m32r-linux-tdep.c: Likewise.
772 * m32r-rom.c: Likewise.
773 * m32r-tdep.c: Likewise.
774 * m68hc11-tdep.c: Likewise.
775 * m68k-tdep.c: Likewise.
776 * m68kbsd-tdep.c: Likewise.
777 * m68klinux-nat.c: Likewise.
778 * m68klinux-tdep.c: Likewise.
779 * m88k-tdep.c: Likewise.
780 * machoread.c: Likewise.
781 * macrocmd.c: Likewise.
783 * mdebugread.c: Likewise.
784 * mem-break.c: Likewise.
785 * memattr.c: Likewise.
786 * memory-map.c: Likewise.
787 * mep-tdep.c: Likewise.
788 * mi/mi-cmd-break.c: Likewise.
789 * mi/mi-cmd-disas.c: Likewise.
790 * mi/mi-cmd-env.c: Likewise.
791 * mi/mi-cmd-stack.c: Likewise.
792 * mi/mi-cmd-var.c: Likewise.
793 * mi/mi-cmds.c: Likewise.
794 * mi/mi-console.c: Likewise.
795 * mi/mi-getopt.c: Likewise.
796 * mi/mi-interp.c: Likewise.
797 * mi/mi-main.c: Likewise.
798 * mi/mi-parse.c: Likewise.
799 * microblaze-rom.c: Likewise.
800 * microblaze-tdep.c: Likewise.
801 * mingw-hdep.c: Likewise.
802 * minidebug.c: Likewise.
803 * minsyms.c: Likewise.
804 * mips-irix-tdep.c: Likewise.
805 * mips-linux-tdep.c: Likewise.
806 * mips-tdep.c: Likewise.
807 * mips64obsd-tdep.c: Likewise.
808 * mipsnbsd-tdep.c: Likewise.
809 * mipsread.c: Likewise.
810 * mn10300-linux-tdep.c: Likewise.
811 * mn10300-tdep.c: Likewise.
812 * monitor.c: Likewise.
813 * moxie-tdep.c: Likewise.
814 * mt-tdep.c: Likewise.
815 * nat/linux-btrace.c: Likewise.
816 * nat/linux-osdata.c: Likewise.
817 * nat/linux-procfs.c: Likewise.
818 * nat/linux-ptrace.c: Likewise.
819 * nat/linux-waitpid.c: Likewise.
820 * nbsd-tdep.c: Likewise.
821 * nios2-linux-tdep.c: Likewise.
822 * nto-procfs.c: Likewise.
823 * nto-tdep.c: Likewise.
824 * objc-lang.c: Likewise.
825 * objfiles.c: Likewise.
826 * opencl-lang.c: Likewise.
828 * osdata.c: Likewise.
830 * p-lang.c: Likewise.
831 * p-typeprint.c: Likewise.
833 * posix-hdep.c: Likewise.
834 * ppc-linux-nat.c: Likewise.
835 * ppc-sysv-tdep.c: Likewise.
836 * ppcfbsd-tdep.c: Likewise.
837 * ppcnbsd-tdep.c: Likewise.
838 * ppcobsd-tdep.c: Likewise.
839 * printcmd.c: Likewise.
840 * procfs.c: Likewise.
841 * prologue-value.c: Likewise.
842 * python/py-auto-load.c: Likewise.
843 * python/py-gdb-readline.c: Likewise.
844 * ravenscar-thread.c: Likewise.
845 * regcache.c: Likewise.
846 * registry.c: Likewise.
847 * remote-fileio.c: Likewise.
848 * remote-m32r-sdi.c: Likewise.
849 * remote-mips.c: Likewise.
850 * remote-notif.c: Likewise.
851 * remote-sim.c: Likewise.
852 * remote.c: Likewise.
853 * reverse.c: Likewise.
854 * rs6000-aix-tdep.c: Likewise.
855 * ser-base.c: Likewise.
856 * ser-go32.c: Likewise.
857 * ser-mingw.c: Likewise.
858 * ser-pipe.c: Likewise.
859 * ser-tcp.c: Likewise.
860 * ser-unix.c: Likewise.
861 * serial.c: Likewise.
862 * sh-tdep.c: Likewise.
863 * sh64-tdep.c: Likewise.
864 * shnbsd-tdep.c: Likewise.
866 * sol-thread.c: Likewise.
867 * solib-dsbt.c: Likewise.
868 * solib-frv.c: Likewise.
869 * solib-osf.c: Likewise.
870 * solib-som.c: Likewise.
871 * solib-spu.c: Likewise.
872 * solib-target.c: Likewise.
874 * somread.c: Likewise.
875 * source.c: Likewise.
876 * sparc-nat.c: Likewise.
877 * sparc-sol2-tdep.c: Likewise.
878 * sparc-tdep.c: Likewise.
879 * sparc64-tdep.c: Likewise.
880 * sparc64fbsd-tdep.c: Likewise.
881 * sparc64nbsd-tdep.c: Likewise.
882 * sparcnbsd-tdep.c: Likewise.
883 * spu-linux-nat.c: Likewise.
884 * spu-multiarch.c: Likewise.
885 * spu-tdep.c: Likewise.
886 * stabsread.c: Likewise.
888 * std-regs.c: Likewise.
889 * symfile.c: Likewise.
890 * symmisc.c: Likewise.
891 * symtab.c: Likewise.
892 * target.c: Likewise.
893 * thread.c: Likewise.
894 * tilegx-linux-nat.c: Likewise.
895 * tilegx-tdep.c: Likewise.
897 * tracepoint.c: Likewise.
898 * tui/tui-command.c: Likewise.
899 * tui/tui-data.c: Likewise.
900 * tui/tui-disasm.c: Likewise.
901 * tui/tui-file.c: Likewise.
902 * tui/tui-layout.c: Likewise.
903 * tui/tui-out.c: Likewise.
904 * tui/tui-regs.c: Likewise.
905 * tui/tui-source.c: Likewise.
906 * tui/tui-stack.c: Likewise.
907 * tui/tui-win.c: Likewise.
908 * tui/tui-windata.c: Likewise.
909 * tui/tui-winsource.c: Likewise.
910 * typeprint.c: Likewise.
911 * ui-file.c: Likewise.
912 * ui-out.c: Likewise.
913 * user-regs.c: Likewise.
915 * v850-tdep.c: Likewise.
916 * valarith.c: Likewise.
917 * valops.c: Likewise.
918 * valprint.c: Likewise.
920 * varobj.c: Likewise.
921 * vax-tdep.c: Likewise.
922 * vaxnbsd-tdep.c: Likewise.
923 * vaxobsd-tdep.c: Likewise.
924 * windows-nat.c: Likewise.
925 * xcoffread.c: Likewise.
926 * xml-support.c: Likewise.
927 * xstormy16-tdep.c: Likewise.
928 * xtensa-linux-nat.c: Likewise.
930 2014-08-07 Gary Benson <gbenson@redhat.com>
932 * common/common-defs.h: Include gdb_assert.h.
933 * aarch64-tdep.c: Do not include gdb_assert.h.
934 * addrmap.c: Likewise.
935 * aix-thread.c: Likewise.
936 * alpha-linux-tdep.c: Likewise.
937 * alpha-mdebug-tdep.c: Likewise.
938 * alphanbsd-tdep.c: Likewise.
939 * amd64-nat.c: Likewise.
940 * amd64-tdep.c: Likewise.
941 * amd64bsd-nat.c: Likewise.
942 * amd64fbsd-nat.c: Likewise.
943 * amd64fbsd-tdep.c: Likewise.
944 * amd64nbsd-nat.c: Likewise.
945 * amd64nbsd-tdep.c: Likewise.
946 * amd64obsd-nat.c: Likewise.
947 * amd64obsd-tdep.c: Likewise.
948 * arch-utils.c: Likewise.
949 * arm-tdep.c: Likewise.
950 * armbsd-tdep.c: Likewise.
952 * bcache.c: Likewise.
953 * bfin-tdep.c: Likewise.
954 * blockframe.c: Likewise.
955 * breakpoint.c: Likewise.
956 * bsd-kvm.c: Likewise.
957 * bsd-uthread.c: Likewise.
958 * buildsym.c: Likewise.
960 * c-lang.c: Likewise.
961 * charset.c: Likewise.
962 * cleanups.c: Likewise.
963 * cli-out.c: Likewise.
964 * cli/cli-decode.c: Likewise.
965 * cli/cli-dump.c: Likewise.
966 * cli/cli-logging.c: Likewise.
967 * cli/cli-script.c: Likewise.
968 * cli/cli-utils.c: Likewise.
969 * coffread.c: Likewise.
970 * common/common-utils.c: Likewise.
971 * common/queue.h: Likewise.
972 * common/signals.c: Likewise.
973 * common/vec.h: Likewise.
974 * complaints.c: Likewise.
975 * completer.c: Likewise.
976 * corelow.c: Likewise.
977 * cp-abi.c: Likewise.
978 * cp-name-parser.y: Likewise.
979 * cp-namespace.c: Likewise.
980 * cp-support.c: Likewise.
981 * cris-tdep.c: Likewise.
982 * dbxread.c: Likewise.
983 * dictionary.c: Likewise.
984 * doublest.c: Likewise.
986 * dummy-frame.c: Likewise.
987 * dwarf2-frame-tailcall.c: Likewise.
988 * dwarf2-frame.c: Likewise.
989 * dwarf2expr.c: Likewise.
990 * dwarf2loc.c: Likewise.
991 * dwarf2read.c: Likewise.
993 * event-loop.c: Likewise.
994 * exceptions.c: Likewise.
995 * expprint.c: Likewise.
996 * f-valprint.c: Likewise.
997 * fbsd-nat.c: Likewise.
998 * findvar.c: Likewise.
999 * frame-unwind.c: Likewise.
1000 * frame.c: Likewise.
1001 * frv-tdep.c: Likewise.
1002 * gcore.c: Likewise.
1003 * gdb-dlfcn.c: Likewise.
1004 * gdb_bfd.c: Likewise.
1005 * gdbarch.c: Likewise.
1006 * gdbarch.sh: Likewise.
1007 * gdbtypes.c: Likewise.
1008 * gnu-nat.c: Likewise.
1009 * gnu-v3-abi.c: Likewise.
1010 * go-lang.c: Likewise.
1011 * guile/scm-exception.c: Likewise.
1012 * guile/scm-gsmob.c: Likewise.
1013 * guile/scm-lazy-string.c: Likewise.
1014 * guile/scm-math.c: Likewise.
1015 * guile/scm-pretty-print.c: Likewise.
1016 * guile/scm-safe-call.c: Likewise.
1017 * guile/scm-utils.c: Likewise.
1018 * guile/scm-value.c: Likewise.
1019 * h8300-tdep.c: Likewise.
1020 * hppa-hpux-nat.c: Likewise.
1021 * hppa-tdep.c: Likewise.
1022 * hppanbsd-tdep.c: Likewise.
1023 * hppaobsd-tdep.c: Likewise.
1024 * i386-darwin-nat.c: Likewise.
1025 * i386-darwin-tdep.c: Likewise.
1026 * i386-nto-tdep.c: Likewise.
1027 * i386-tdep.c: Likewise.
1028 * i386bsd-nat.c: Likewise.
1029 * i386fbsd-tdep.c: Likewise.
1030 * i386gnu-nat.c: Likewise.
1031 * i386nbsd-tdep.c: Likewise.
1032 * i386obsd-tdep.c: Likewise.
1033 * i387-tdep.c: Likewise.
1034 * ia64-libunwind-tdep.c: Likewise.
1035 * ia64-tdep.c: Likewise.
1036 * inf-ptrace.c: Likewise.
1037 * inf-ttrace.c: Likewise.
1038 * infcall.c: Likewise.
1039 * infcmd.c: Likewise.
1040 * infrun.c: Likewise.
1041 * inline-frame.c: Likewise.
1042 * interps.c: Likewise.
1043 * jv-lang.c: Likewise.
1044 * jv-typeprint.c: Likewise.
1045 * linux-fork.c: Likewise.
1046 * linux-nat.c: Likewise.
1047 * linux-thread-db.c: Likewise.
1048 * m32c-tdep.c: Likewise.
1049 * m32r-linux-nat.c: Likewise.
1050 * m32r-tdep.c: Likewise.
1051 * m68k-tdep.c: Likewise.
1052 * m68kbsd-nat.c: Likewise.
1053 * m68kbsd-tdep.c: Likewise.
1054 * m88k-tdep.c: Likewise.
1055 * machoread.c: Likewise.
1056 * macroexp.c: Likewise.
1057 * macrotab.c: Likewise.
1058 * maint.c: Likewise.
1059 * mdebugread.c: Likewise.
1060 * memory-map.c: Likewise.
1061 * mep-tdep.c: Likewise.
1062 * mi/mi-common.c: Likewise.
1063 * microblaze-tdep.c: Likewise.
1064 * mingw-hdep.c: Likewise.
1065 * mips-linux-nat.c: Likewise.
1066 * mips-linux-tdep.c: Likewise.
1067 * mips-tdep.c: Likewise.
1068 * mips64obsd-tdep.c: Likewise.
1069 * mipsnbsd-tdep.c: Likewise.
1070 * mn10300-linux-tdep.c: Likewise.
1071 * mn10300-tdep.c: Likewise.
1072 * moxie-tdep.c: Likewise.
1073 * mt-tdep.c: Likewise.
1074 * nat/linux-btrace.c: Likewise.
1075 * nat/linux-osdata.c: Likewise.
1076 * nat/linux-ptrace.c: Likewise.
1077 * nat/mips-linux-watch.c: Likewise.
1078 * nios2-linux-tdep.c: Likewise.
1079 * nios2-tdep.c: Likewise.
1080 * objc-lang.c: Likewise.
1081 * objfiles.c: Likewise.
1082 * obsd-nat.c: Likewise.
1083 * opencl-lang.c: Likewise.
1084 * osabi.c: Likewise.
1085 * parse.c: Likewise.
1086 * ppc-linux-nat.c: Likewise.
1087 * ppc-sysv-tdep.c: Likewise.
1088 * ppcfbsd-nat.c: Likewise.
1089 * ppcfbsd-tdep.c: Likewise.
1090 * ppcnbsd-nat.c: Likewise.
1091 * ppcnbsd-tdep.c: Likewise.
1092 * ppcobsd-nat.c: Likewise.
1093 * ppcobsd-tdep.c: Likewise.
1094 * printcmd.c: Likewise.
1095 * procfs.c: Likewise.
1096 * prologue-value.c: Likewise.
1097 * psymtab.c: Likewise.
1098 * python/py-lazy-string.c: Likewise.
1099 * python/py-value.c: Likewise.
1100 * regcache.c: Likewise.
1101 * reggroups.c: Likewise.
1102 * registry.c: Likewise.
1103 * remote-sim.c: Likewise.
1104 * remote.c: Likewise.
1105 * rs6000-aix-tdep.c: Likewise.
1106 * rs6000-tdep.c: Likewise.
1107 * s390-linux-tdep.c: Likewise.
1108 * score-tdep.c: Likewise.
1109 * ser-base.c: Likewise.
1110 * ser-mingw.c: Likewise.
1111 * sh-tdep.c: Likewise.
1112 * sh64-tdep.c: Likewise.
1113 * solib-darwin.c: Likewise.
1114 * solib-spu.c: Likewise.
1115 * solib-svr4.c: Likewise.
1116 * source.c: Likewise.
1117 * sparc-nat.c: Likewise.
1118 * sparc-sol2-tdep.c: Likewise.
1119 * sparc-tdep.c: Likewise.
1120 * sparc64-sol2-tdep.c: Likewise.
1121 * sparc64-tdep.c: Likewise.
1122 * sparc64fbsd-tdep.c: Likewise.
1123 * sparc64nbsd-tdep.c: Likewise.
1124 * sparc64obsd-tdep.c: Likewise.
1125 * sparcnbsd-tdep.c: Likewise.
1126 * sparcobsd-tdep.c: Likewise.
1127 * spu-multiarch.c: Likewise.
1128 * spu-tdep.c: Likewise.
1129 * stabsread.c: Likewise.
1130 * stack.c: Likewise.
1131 * symfile.c: Likewise.
1132 * symtab.c: Likewise.
1133 * target-descriptions.c: Likewise.
1134 * target-memory.c: Likewise.
1135 * target.c: Likewise.
1136 * tic6x-linux-tdep.c: Likewise.
1137 * tic6x-tdep.c: Likewise.
1138 * tilegx-linux-nat.c: Likewise.
1139 * tilegx-tdep.c: Likewise.
1141 * tramp-frame.c: Likewise.
1142 * tui/tui-out.c: Likewise.
1143 * tui/tui-winsource.c: Likewise.
1144 * ui-out.c: Likewise.
1145 * user-regs.c: Likewise.
1146 * utils.c: Likewise.
1147 * v850-tdep.c: Likewise.
1148 * valops.c: Likewise.
1149 * value.c: Likewise.
1150 * varobj.c: Likewise.
1151 * vax-nat.c: Likewise.
1152 * xml-syscall.c: Likewise.
1153 * xml-tdesc.c: Likewise.
1154 * xstormy16-tdep.c: Likewise.
1155 * xtensa-linux-nat.c: Likewise.
1156 * xtensa-tdep.c: Likewise.
1158 2014-08-07 Gary Benson <gbenson@redhat.com>
1160 * common/common-defs.h: Include common-utils.h.
1161 * defs.h: Do not include common-utils.h.
1162 * common/gdb_assert.h: Likewise.
1163 * darwin-nat.h: Likewise.
1164 * nat/linux-btrace.c: Likewise.
1165 * target/waitstatus.h: Likewise.
1167 2014-08-07 Gary Benson <gbenson@redhat.com>
1169 * common/common-defs.h: Include ptid.h.
1170 * defs.h: Do not include ptid.h.
1171 * inferior.h: Likewise.
1172 * infrun.h: Likewise.
1173 * nat/linux-btrace.h: Likewise.
1174 * nat/linux-osdata.h: Likewise.
1175 * target/waitstatus.h: Likewise.
1177 2014-08-07 Gary Benson <gbenson@redhat.com>
1179 * common/common-defs.h: Include gdb_locale.h.
1180 * defs.h: Do not include gdb_locale.h.
1182 2014-08-07 Gary Benson <gbenson@redhat.com>
1184 * common/common-defs.h: Include gdb/signals.h.
1185 * defs.h: Do not include gdb/signals.h.
1187 2014-08-07 Gary Benson <gbenson@redhat.com>
1189 * common/common-defs.h: Include pathmax.h.
1190 * defs.h: Do not include pathmax.h.
1192 2014-08-07 Gary Benson <gbenson@redhat.com>
1194 * common/common-defs.h: Include libiberty.h.
1195 * defs.h: Do not include libiberty.h.
1196 * common/queue.h: Likewise.
1197 * cp-name-parser.y: Likewise.
1198 * mi/mi-cmd-catch.c: Likewise.
1199 * python/python.c: Likewise.
1201 2014-08-07 Gary Benson <gbenson@redhat.com>
1203 * common/common-defs.h: Include ansidecl.h.
1204 * defs.h: Do not include ansidecl.h.
1205 * common/buffer.h: Likewise.
1206 * common/common-utils.h: Likewise.
1208 2014-08-07 Gary Benson <gbenson@redhat.com>
1210 * common/common-defs.h: Include stddef.h.
1211 * defs.h: Do not include stddef.h.
1212 * common/common-utils.h: Likewise.
1213 * amd64fbsd-nat.c: Likewise.
1214 * bcache.c: Likewise.
1215 * charset.c: Likewise.
1216 * common/buffer.h: Likewise.
1217 * common/vec.h: Likewise.
1218 * i386bsd-nat.c: Likewise.
1219 * nat/linux-btrace.h: Likewise.
1220 * ppcfbsd-nat.c: Likewise.
1221 * ppcnbsd-tdep.h: Likewise.
1222 * ppcobsd-nat.c: Likewise.
1223 * ppcobsd-tdep.h: Likewise.
1224 * python/py-gdb-readline.c: Likewise.
1226 2014-08-07 Gary Benson <gbenson@redhat.com>
1228 * common/common-defs.h: Include stdarg.h.
1229 * defs.h: Do not include stdarg.h.
1230 * ada-lang.c: Likewise.
1231 * common/common-utils.h: Likewise.
1232 * guile/scm-string.c: Likewise.
1233 * guile/scm-utils.c: Likewise.
1234 * m32c-tdep.c: Likewise.
1236 2014-08-07 Gary Benson <gbenson@redhat.com>
1238 * common/common-defs.h: Include stdlib.h.
1239 * defs.h: Do not include stdlib.h.
1240 * addrmap.c: Likewise.
1241 * bcache.c: Likewise.
1242 * common/buffer.c: Likewise.
1243 * common/common-utils.c: Likewise.
1244 * cp-name-parser.y: Likewise.
1245 * go32-nat.c: Likewise.
1246 * mn10300-linux-tdep.c: Likewise.
1247 * nat/linux-osdata.c: Likewise.
1248 * tui/tui.c: Likewise.
1249 * windows-nat.c: Likewise.
1251 2014-08-07 Gary Benson <gbenson@redhat.com>
1253 * common/common-defs.h: Include stdio.h.
1254 * defs.h: Do not include stdio.h.
1255 * ada-lang.c: Likewise.
1256 * common/buffer.c: Likewise.
1257 * common/common-utils.c: Likewise.
1258 * cp-name-parser.y: Likewise.
1259 * gnu-nat.c: Likewise.
1260 * go32-nat.c: Likewise.
1261 * i386gnu-nat.c: Likewise.
1262 * proc-api.c: Likewise.
1263 * proc-events.c: Likewise.
1264 * proc-flags.c: Likewise.
1265 * proc-why.c: Likewise.
1266 * python/python-internal.h: Likewise.
1267 * target-memory.c: Likewise.
1268 * tui/tui-io.c: Likewise.
1269 * tui/tui.c: Likewise.
1271 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1273 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1274 (scan_dyntag_auxv): Same.
1276 2014-08-06 Yao Qi <yao@codesourcery.com>
1278 * amd64-linux-nat.c: Remove duplicated include
1280 * i386-linux-nat.c: Likewise.
1282 2014-08-06 Yao Qi <yao@codesourcery.com>
1284 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1285 operand" with "Special opcode" in comments.
1287 2014-08-05 Gary Benson <gbenson@redhat.com>
1289 * interps.c (initialize_interps): Remove prototype.
1290 (interpreter_initialized): Remove static global.
1291 (interp_add): Do not call initialize_interps.
1292 (initialize_interps): Remove function.
1294 2014-08-05 Gary Benson <gbenson@redhat.com>
1296 * utils.c (vwarning): Remove spurious va_end.
1298 2014-08-05 Alan Modra <amodra@gmail.com>
1300 * charset.c (convert_between_encodings): Cast result of obstack_base.
1301 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1302 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1303 (read_unwind_info): Use size_t for some locals.
1304 * jit.c (finalize_symtab): Likewise.
1305 * utils.c (hashtab_obstack_allocate): Likewise.
1306 * symmisc.c (print_objfile_statistics): Update format strings.
1308 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1311 (Changes in GDB 7.8): ... here.
1313 2014-08-04 Tom Tromey <tromey@redhat.com>
1315 * target.c (set_targetdebug): New function.
1316 (initialize_targets): Pass set_targetdebug when creating "set
1319 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1321 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1322 if detecting a variable-sized field that is not the last field.
1323 Fix struct type length computation.
1325 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1327 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1330 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1332 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1333 Remove "+ 8" offset in computation of CHAIN_VMA.
1335 2014-07-31 Doug Evans <dje@google.com>
1337 * inflow.c (child_terminal_inferior): Add comment.
1338 (child_terminal_ours_for_output): Add comment.
1339 (child_terminal_ours): Add comment.
1340 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1341 (linux_nat_terminal_ours): Add comment.
1343 2014-07-31 Gary Benson <gbenson@redhat.com>
1345 * common/btrace-common.h: Do not include defs.h or server.h.
1346 * nat/mips-linux-watch.h: Likewise.
1347 * gdb-dlfcn.h: Do not include defs.h.
1348 * tracefile.h: Likewise.
1350 2014-07-30 Roland McGrath <mcgrathr@google.com>
1352 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1354 2014-07-30 Tom Tromey <tromey@redhat.com>
1356 * bsd-kvm.c (bsd_kvm_open): Constify.
1357 * corelow.c (core_open): Constify.
1358 * ctf.c (ctf_open): Constify.
1359 * dbug-rom.c (dbug_open): Constify.
1360 * exec.c (exec_open): Constify.
1361 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1362 * microblaze-rom.c (picobug_open): Constify.
1363 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1365 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1366 * record-btrace.c (record_btrace_open): Constify.
1367 * record-full.c (record_full_core_open_1, record_full_open_1)
1368 (record_full_open): Constify.
1369 * remote-m32r-sdi.c (m32r_open): Constify.
1370 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1371 (rockhopper_open, lsi_open): Constify.
1372 * remote-sim.c (gdbsim_open): Constify.
1373 * remote.c (remote_open, extended_remote_open, remote_open_1):
1375 * target.h (struct target_ops) <to_open>: Make "arg" const.
1376 * tracefile-tfile.c (tfile_open): Constify.
1378 2014-07-30 Tom Tromey <tromey@redhat.com>
1380 * breakpoint.c (map_breakpoint_numbers): Update.
1381 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1382 (get_number_const): New function.
1383 (get_number): Rewrite using get_number_const.
1384 (init_number_or_range): Make "string" const.
1385 (number_is_in_list): Make "list" const.
1386 * cli/cli-utils.h (get_number_const): Declare.
1387 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1388 (init_number_or_range, number_is_in_list): Update.
1389 * printcmd.c (map_display_numbers): Update.
1390 * value.c (value_from_history_ref): Constify.
1391 * value.h (value_from_history_ref): Update.
1393 2014-07-30 Tom Tromey <tromey@redhat.com>
1395 * corefile.c (hook_type, call_extra_exec_file_hooks)
1396 (specify_exec_file_hook): Constify.
1397 * exec.c (exec_file_attach): Make "filename" const.
1398 * gdbcore.h (deprecated_exec_file_display_hook)
1399 (specify_exec_file_hook, exec_file_attach): Constify.
1400 * main.c (captured_main): Use catch_command_errors_const.
1402 2014-07-30 Tom Tromey <tromey@redhat.com>
1404 * target.c (open_target): New function.
1405 (add_target_with_completer, add_deprecated_target_alias): Use
1406 set_cmd_sfunc, set_cmd_context.
1407 (debug_to_open): Remove.
1408 (setup_target_debug): Update.
1410 2014-07-30 Yao Qi <yao@codesourcery.com>
1412 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1414 * parse.c (exp_iterate): Update comments.
1416 2014-07-30 Gary Benson <gbenson@redhat.com>
1418 * common/common-defs.h: New file.
1419 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1420 * defs.h: Include common-defs.h.
1421 Do not include config.h or build-gnulib/config.h.
1423 2014-07-30 Gary Benson <gbenson@redhat.com>
1425 * common/common-utils.h: Do not include config.h.
1426 * nat/linux-btrace.h: Likewise.
1428 2014-07-30 Gary Benson <gbenson@redhat.com>
1430 * btrace.c: Include defs.h.
1431 * common/ptid.c: Include defs.h or server.h as appropriate.
1432 * nat/mips-linux-watch.c: Likewise.
1434 2014-07-29 Tom Tromey <tromey@redhat.com>
1436 * target.c (target_is_pushed): Simplify.
1438 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1442 2014-07-29 Yao Qi <yao@codesourcery.com>
1445 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1447 2014-07-28 Doug Evans <xdje42@gmail.com>
1450 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1451 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1454 2014-07-28 Will Newton <will.newton@linaro.org>
1456 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1457 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1458 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1459 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1460 (THUMB2_EABI_SYSCALL): Likewise.
1461 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1463 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1464 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1466 2014-07-27 Doug Evans <xdje42@gmail.com>
1468 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1470 2014-07-27 Doug Evans <xdje42@gmail.com>
1472 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1474 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1475 Doug Evans <xdje42@gmail.com>
1478 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1479 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1480 * configure.ac: Try to use guild to compile an scm file, if it fails
1481 then disable guile support.
1482 * configure: Regenerate.
1483 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1485 (GUILE_COMPILED_FILES): New variable.
1486 (GUILE_FILES) Update.
1487 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1488 (stamp-guile): Compile scm files.
1489 * guile/guile.c (boot_guile_support): New function.
1490 (standard_throw_args_p): New function.
1491 (print_standard_throw_error, print_throw_error): New functions.
1492 (handle_boot_error): New function.
1493 (initialize_scheme_side): Rewrite to call boot_guile_support.
1494 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1495 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1497 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1498 Doug Evans <xdje42@gmail.com>
1501 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1502 * guile/lib/gdb/support.scm: New file.
1503 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1504 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1506 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1508 (%assert-type): Ditto, and renamed to assert-type.
1509 (%exception-print-style): Delete.
1511 2014-07-26 Doug Evans <xdje42@gmail.com>
1514 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1515 * configure: Regenerate.
1516 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1518 (PYTHON_FILES): New variable.
1519 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1520 (GUILE_FILES): New variable.
1521 (stamp-python, install-python, uninstall-python): Handle empty
1523 (stamp-guile, install-guile, uninstall-guile): Ditto.
1525 2014-07-26 Doug Evans <xdje42@gmail.com>
1528 * guile/lib/gdb.scm (pretty-printers): Export.
1529 (set-pretty-printers!): Export.
1530 * guile/lib/gdb/printing.scm (gdb module): Update.
1531 (prepend-pretty-printer!, append-pretty-printer!): Update.
1532 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1533 (pretty_printer_list_var): Delete.
1534 (pretty_printer_list): New static global.
1535 (gdbscm_pretty_printers): New function.
1536 (gdbscm_set_pretty_printers_x): New function.
1537 (ppscm_find_pretty_printer_from_gdb): Update.
1538 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1539 (gdbscm_initialize_pretty_printers): Update.
1541 2014-07-26 Doug Evans <xdje42@gmail.com>
1544 * configure.ac: Add check for header gc/gc.h.
1545 Add check for function setenv.
1546 * configure: Regenerate.
1547 * config.in: Regenerate.
1548 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1550 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1552 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1553 variation in gdbarch matching.
1555 2014-07-25 Tom Tromey <tromey@redhat.com>
1557 * exec.c (using_exec_ops): Remove.
1558 (exec_close_1): Update. Remove extraneous block, reindent.
1559 (add_target_sections): Use target_is_pushed.
1561 2014-07-25 Pedro Alves <palves@redhat.com>
1563 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1564 * monitor.c (monitor_create_inferior): Likewise.
1565 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1566 * remote-sim.c (gdbsim_create_inferior): Likewise.
1567 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1568 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1569 * windows-nat.c (do_initial_windows_stuff): Likewise.
1571 2014-07-25 Pedro Alves <palves@redhat.com>
1573 * NEWS: Mention signal passing and "signal" command changes.
1574 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1576 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1578 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1579 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1580 (jump_command): Adjust clear_proceed_status call.
1581 (signal_command): Warn if other thread that are resumed have
1582 signals that will be delivered. Adjust clear_proceed_status call.
1583 (until_next_command, finish_command)
1584 (proceed_after_attach_callback, attach_command_post_wait)
1585 (attach_command): Adjust clear_proceed_status call.
1586 * infrun.c (proceed_after_vfork_done): Likewise.
1587 (proceed_after_attach_callback): Adjust comment.
1588 (clear_proceed_status_thread): Clear stop_signal if not in pass
1590 (clear_proceed_status_callback): Delete.
1591 (clear_proceed_status): New 'step' parameter. Only clear the
1592 proceed status of threads the command being prepared is about to
1594 (proceed): If passed in an explicit signal, override stop_signal
1595 with it. Don't pass the last stop signal to the thread we're
1597 (init_wait_for_inferior): Adjust clear_proceed_status call.
1598 (switch_back_to_stepped_thread): Clear the signal if it should not
1600 * infrun.h (clear_proceed_status): New 'step' parameter.
1601 (user_visible_resume_ptid): Add comment.
1602 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1603 signal is in pass state.
1604 * remote.c (append_pending_thread_resumptions): Likewise.
1605 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1607 2014-07-25 Tom Tromey <tromey@redhat.com>
1609 * target.h (target_stopped_data_address)
1610 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1613 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1615 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1617 (avr_pointer_to_address): Likewise.
1619 2014-07-24 Tom Tromey <tromey@redhat.com>
1621 * monitor.c (compile_pattern): Update.
1622 * target.h (struct target_ops) <to_shortname, to_longname,
1625 2014-07-24 Tom Tromey <tromey@redhat.com>
1627 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1628 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1629 (add_info_alias, add_com): Make "doc" const.
1630 (print_doc_line): Make "str" const.
1631 (delete_cmd): Update.
1632 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1633 (print_doc_line): Update.
1634 * cli/cli-script.c (document_command): Update.
1635 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1636 (add_com, add_info, add_info_alias): Update.
1637 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1638 * python/py-cmd.c (cmdpy_destroyer): Update.
1640 2014-07-24 Tom Tromey <tromey@redhat.com>
1642 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1643 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1644 (help_cmd_list): Constify.
1645 (lookup_cmd): Update.
1646 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1648 (help_cmd_list, apropos_cmd): Update.
1649 * cli/cli-script.c (show_user): Update.
1650 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1651 * cli/cli-setshow.h (cmd_show_list): Update.
1652 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1653 (cmd_show_list): Update.
1654 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1655 * python/py-cmd.c (cmdpy_destroyer): Update.
1657 2014-07-24 Tom Tromey <tromey@redhat.com>
1659 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1660 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1662 * command.h (deprecate_cmd): Update.
1663 * maint.c (maintenance_do_deprecate): Add casts.
1665 2014-07-24 Tom Tromey <tromey@redhat.com>
1667 * cli/cli-decode.c (help_cmd): Make parameter "const".
1668 * cli/cli-decode.h (help_cmd): Update.
1670 2014-07-24 Tom Tromey <tromey@redhat.com>
1672 * stack.c (up_silently_base, down_silently_base): Make argument
1675 2014-07-24 Tom Tromey <tromey@redhat.com>
1677 * solib.c (solib_add): Make "pattern" const.
1678 * solib.h (solib_add): Update.
1680 2014-07-24 Tom Tromey <tromey@redhat.com>
1682 * remote.c (remote_serial_open, print_packet, putpkt)
1683 (putpkt_binary): Constify.
1684 * remote.h (putpkt): Update.
1686 2014-07-24 Tom Tromey <tromey@redhat.com>
1688 * monitor.c (monitor_open): Make "args" const.
1689 * monitor.h (monitor_open): Update.
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1693 * maint.c (match_bfd_flags): Make "string" const.
1694 (print_bfd_section_info): Remove casts.
1695 (print_objfile_section_info): Make "string" const.
1697 2014-07-24 Tom Tromey <tromey@redhat.com>
1699 * inf-child.c (inf_child_open_target): Make "arg" const.
1700 * inf-child.h (inf_child_open_target): Update.
1702 2014-07-24 Tom Tromey <tromey@redhat.com>
1704 * environ.c (unset_in_environ): Make "var" const.
1705 * environ.h (unset_in_environ): Update.
1707 2014-07-24 Tom Tromey <tromey@redhat.com>
1709 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1711 (scan_filename_with_cleanup): Likewise.
1712 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1713 Make arguments const.
1714 (restore_command): Update.
1716 2014-07-24 Pedro Alves <palves@redhat.com>
1718 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1720 2014-07-24 Tom Tromey <tromey@redhat.com>
1721 Gary Benson <gbenson@redhat.com>
1723 * nat/linux-ptrace.c (additional_flags): New global.
1724 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1725 additional_flags; don't check GDBSERVER.
1726 (linux_ptrace_set_additional_flags): New function.
1727 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1729 * linux-nat.c (_initialize_linux_nat): Call
1730 linux_ptrace_set_additional_flags.
1732 2014-07-24 Tom Tromey <tromey@redhat.com>
1734 * make-target-delegates (munge_type, write_debugmethod): New
1736 (debug_names): New global.
1737 ($TARGET_DEBUG_PRINTER): New global.
1738 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1740 Write debug methods. Generate init_debug_target.
1741 * target-debug.h: New file.
1742 * target-delegates.c: Rebuild.
1743 * target.c: Include target-debug.h.
1744 (debug_target): Hoist definition.
1745 (target_kill, target_get_section_table, target_memory_map)
1746 (target_flash_erase, target_flash_done, target_detach)
1747 (target_disconnect, target_wait, target_resume)
1748 (target_pass_signals, target_program_signals, target_follow_fork)
1749 (target_mourn_inferior, target_search_memory)
1750 (target_thread_address_space, target_close)
1751 (target_find_new_threads, target_core_of_thread)
1752 (target_verify_memory, target_insert_mask_watchpoint)
1753 (target_remove_mask_watchpoint): Remove targetdebug code.
1754 (debug_to_post_attach, debug_to_prepare_to_store)
1755 (debug_to_files_info, debug_to_insert_breakpoint)
1756 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1757 (debug_to_region_ok_for_hw_watchpoint)
1758 (debug_to_can_accel_watchpoint_condition)
1759 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1760 (debug_to_watchpoint_addr_within_range)
1761 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1762 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1763 (debug_to_terminal_init, debug_to_terminal_inferior)
1764 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1765 (debug_to_terminal_save_ours, debug_to_terminal_info)
1766 (debug_to_load, debug_to_post_startup_inferior)
1767 (debug_to_insert_fork_catchpoint)
1768 (debug_to_remove_fork_catchpoint)
1769 (debug_to_insert_vfork_catchpoint)
1770 (debug_to_remove_vfork_catchpoint)
1771 (debug_to_insert_exec_catchpoint)
1772 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1773 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1774 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1775 (setup_target_debug): Call init_debug_target.
1776 * target.h (TARGET_DEBUG_PRINTER): New macro.
1777 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1778 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1780 2014-07-24 Gary Benson <gbenson@redhat.com>
1782 * exceptions.h (throw_vfatal): Renamed to...
1783 (throw_vquit): New declaration.
1784 (throw_quit): Likewise.
1785 * exceptions.c (throw_vfatal): Renamed to...
1786 (throw_vquit): New function.
1787 (throw_quit): Likewise.
1788 (throw_error): Call throw_verror rather than throw_it.
1789 * utils.h (vfatal): Removed.
1791 * utils.c (vfatal): Removed.
1793 (internal_verror): Replaced call to fatal with call to throw_quit.
1794 (quit): Replaced calls to fatal with calls to throw_quit.
1796 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1798 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1801 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1803 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1804 less than zero in conditional expression.
1806 2014-07-23 Tom Tromey <tromey@redhat.com>
1808 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1809 ($INTRO_PART): Don't match whitespace.
1810 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1812 ($METHOD): Add $METHOD_TRAILER.
1814 (scan_target_h): New sub.
1815 Change main loop not to collect state.
1816 * target-delegates.c: Rebuild.
1818 2014-07-23 Gary Benson <gbenson@redhat.com>
1820 * cp-support.c (gdb_demangle): Fix build on systems without
1823 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1826 for reference entry value target data value.
1828 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1831 value_available_contents_eq.
1833 2014-07-22 Pedro Alves <palves@redhat.com>
1835 * value.c (allocate_optimized_out_value): Don't mark value as
1838 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1840 * MAINTAINERS (Write After Approval): Update my email address.
1842 2014-07-20 Doug Evans <dje@google.com>
1845 * remote.c (putpkt_binary): Add text to error message.
1847 2014-07-20 Yao Qi <yao@codesourcery.com>
1849 * eval.c: Remove "Chill" from comments.
1850 * gdbtypes.h: Likewise.
1851 * symtab.h: Likewise.
1853 2014-07-20 Yao Qi <yao@codesourcery.com>
1855 * std-operator.def: Update comments to TERNOP_SLICE.
1857 2014-07-20 Yao Qi <yao@codesourcery.com>
1859 * std-operator.def: Remove BINOP_RANGE.
1860 * breakpoint.c (watchpoint_exp_is_const): Update.
1861 * expprint.c (dump_subexp_body_standard): Likewise.
1862 * eval.c (init_array_element): Remove dead code.
1863 (evaluate_subexp_standard): Likewise.
1865 2014-07-20 Yao Qi <yao@codesourcery.com>
1867 * std-operator.def: Remove BINOP_IN.
1868 * breakpoint.c (watchpoint_exp_is_const): Update.
1869 * eval.c (evaluate_subexp_standard): Likewise.
1870 * expprint.c (dump_subexp_body_standard): Likewise.
1872 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1874 * microblaze-tdep.c (microblaze_register_names): Add
1875 the rshr and rslr register names.
1876 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1877 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1878 Use of tdesc_numbered_register. Use of
1879 microblaze_register_g_packet_guesses. Use of
1880 tdesc_use_registers. Use of set_gdbarch_register_type.
1881 (microblaze_register_g_packet_guesses): New.
1882 * microblaze-tdep.h (microblaze_reg_num): Add
1883 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1884 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1885 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1886 * features/microblaze-core.xml: New file.
1887 * features/microblaze-stack-protect.xml: New file.
1888 * features/microblaze-with-stack-protect.c: New file.
1889 * features/microblaze-with-stack-protect.xml: New file.
1890 * features/microblaze.xml: New file.
1891 * features/microblaze.c: New file.
1892 * features/Makefile (microblaze-with-stack-protect): Add
1893 microblaze-with-stack-protect microblaze and microblaze-expedite.
1894 * regformats/microblaze-with-stack-protect.dat: New file.
1895 * regformats/microblaze.dat: New file.
1896 * doc/gdb.texinfo (MicroBlaze Features): Added.
1898 2014-07-18 Tom Tromey <tromey@redhat.com>
1900 * exec.c (exec_ops): Now static.
1901 * exec.h (exec_ops): Don't declare.
1903 2014-07-18 Tom Tromey <tromey@redhat.com>
1905 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1906 to find_target_beneath.
1907 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1908 find_target_beneath.
1909 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1911 2014-07-18 Tom Tromey <tromey@redhat.com>
1914 * utils.c (quit): Use target_supports_terminal_ours.
1915 * target.h (target_supports_terminal_ours): Declare.
1916 * target.c (target_supports_delete_record): Don't check
1917 to_delete_record against NULL.
1918 (target_supports_terminal_ours): New function.
1920 2014-07-18 Tom Tromey <tromey@redhat.com>
1923 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1924 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1925 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1926 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1927 * windows-nat.c (windows_xfer_partial): Always delegate.
1928 * record-btrace.c (record_btrace_xfer_partial): Simplify
1930 (record_btrace_fetch_registers, record_btrace_store_registers)
1931 (record_btrace_prepare_to_store, record_btrace_resume)
1932 (record_btrace_wait, record_btrace_find_new_threads)
1933 (record_btrace_thread_alive): Likewise.
1934 * procfs.c (procfs_xfer_partial): Always delegate.
1935 * corelow.c (core_xfer_partial): Always delegate.
1936 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1938 2014-07-18 Tom Tromey <tromey@redhat.com>
1940 * exec.c (exec_make_note_section): Move earlier.
1942 2014-07-17 Doug Evans <dje@google.com>
1945 * maint.c (count_symtabs_and_blocks): Handle NULL
1946 current_program_space.
1947 (report_command_stats): Check global enabled flag in addition to
1948 recorded enabled flag.
1949 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1951 2014-07-16 Pedro Alves <palves@redhat.com>
1953 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1955 2014-07-16 Tom Tromey <tromey@redhat.com>
1957 * target.h (struct target_ops) <to_delete_record>: Reformat
1960 2014-07-16 Tom Tromey <tromey@redhat.com>
1962 * target-delegates.c: Rebuild.
1964 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1966 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1967 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1968 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1969 (avr_pointer_to_address): Likewise.
1970 (avr_address_class_type_flags): New function.
1971 (avr_address_class_type_flags_to_name): Likewise.
1972 (avr_address_class_name_to_type_flags): Likewise.
1973 (avr_gdbarch_init): Set address_class_type_flags,
1974 address_class_type_flags_to_name and
1975 address_class_name_to_type_flags.
1977 2014-07-15 Pedro Alves <palves@redhat.com>
1979 * linux-nat.c (kill_callback): Save errno and work with saved
1982 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1984 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1986 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1988 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1989 breakpoint support correctly.
1991 2014-07-14 Pedro Alves <palves@redhat.com>
1993 * utils.c (prompt_for_continue): Call target_terminal_ours.
1995 2014-07-14 Pedro Alves <palves@redhat.com>
1997 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1998 catch_errors. Don't re-enable stdin or notify observers where,
2000 (fetch_inferior_event_wrapper): Delete.
2002 2014-07-14 Pedro Alves <palves@redhat.com>
2005 * top.c: Include "inf-loop.h".
2006 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2008 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2010 (gdb_readline_wrapper): Store whether the target is async, and
2013 2014-07-14 Pedro Alves <palves@redhat.com>
2016 * top.c (gdb_readline_wrapper_line): Tweak comment.
2017 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2018 the input handler callback.
2020 2014-07-14 Pedro Alves <palves@redhat.com>
2023 * main.c: Include event-top.h.
2024 (handle_command_errors): New function.
2025 (catch_command_errors, catch_command_errors_const): Use it.
2027 2014-07-14 Pedro Alves <palves@redhat.com>
2029 * exceptions.c (catch_command_errors, catch_command_errors_const):
2031 * exceptions.h (catch_command_errors_ftype)
2032 (catch_command_errors_const_ftype): Moved to main.c.
2033 (catch_command_errors, catch_command_errors_const): Delete
2035 * main.c (catch_command_errors_ftype)
2036 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2037 (catch_command_errors, catch_command_errors_const)): Moved here
2038 from exceptions.c and make static.
2040 2014-07-14 Pedro Alves <palves@redhat.com>
2042 * exceptions.c (print_any_exception): Delete.
2043 (catch_exceptions_with_msg): Use exception_print instead of
2044 print_any_exception.
2045 (catch_errors): Use exception_fprintf instead of
2046 print_any_exception.
2047 (catch_command_errors, catch_command_errors_const): Use
2048 exception_print instead of print_any_exception.
2050 2014-07-14 Pedro Alves <palves@redhat.com>
2052 * infcall.c (run_inferior_call): Set 'sync_execution' while
2053 running the inferior call.
2055 2014-07-14 Pedro Alves <palves@redhat.com>
2057 * value.c (value_contents_equal): Delete function.
2058 * value.h (value_contents_equal): Delete declaration.
2060 2014-07-14 Tom Tromey <tromey@redhat.com>
2063 * gdbtypes.c (is_dynamic_type_internal): New function, from
2065 (is_dynamic_type): Rewrite.
2066 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2067 (resolve_dynamic_struct): Likewise.
2068 (resolve_dynamic_type_internal): New function, from
2069 resolve_dynamic_type.
2070 (resolve_dynamic_type): Rewrite.
2072 2014-07-14 Tom Tromey <tromey@redhat.com>
2074 * target.c (target_require_runnable): Also check record_stratum.
2077 2014-07-11 Yao Qi <yao@codesourcery.com>
2079 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2080 thumb_instruction_restores_sp return true.
2082 2014-07-11 Yao Qi <yao@codesourcery.com>
2084 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2085 (thumb_in_function_epilogue_p): Call
2086 thumb_instruction_restores_sp.
2088 2014-07-11 Yao Qi <yao@codesourcery.com>
2090 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2092 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2094 2014-07-11 Gary Benson <gbenson@redhat.com>
2096 * amd64-linux-nat.c (gdbcore.h): Remove include.
2097 (regset.h): Likewise.
2098 (nat/linux-btrace.h): Likewise.
2099 (btrace.h): Likewise.
2100 (gdb_assert.h): Likewise.
2101 (string.h): Likewise.
2102 (sys/uio.h): Likewise.
2103 (sys/debugreg.h): Likewise.
2104 (sys/syscall.h): Likewise.
2105 (sys/procfs.h): Likewise.
2106 (sys/user.h): Likewise.
2107 (asm/ptrace.h): Likewise.
2108 (i386-nat.h): Likewise.
2109 * i386-linux-nat.c (i386-nat.h): Likewise.
2110 (regset.h): Likewise.
2111 (target.h): Likewise.
2112 (linux-nat.h): Likewise.
2113 (nat/linux-btrace.h): Likewise.
2114 (btrace.h): Likewise.
2115 (gdb_assert.h): Likewise.
2116 (string.h): Likewise.
2117 (sys/uio.h): Likewise.
2118 (sys/user.h): Likewise.
2119 (sys/procfs.h): Likewise.
2120 (sys/reg.h): Likewise.
2121 (sys/debugreg.h): Likewise.
2122 (ORIG_EAX): Remove definition.
2124 2014-07-11 Gary Benson <gbenson@redhat.com>
2126 * i386-linux-nat.h: New file.
2127 * x86-linux-nat.h: Likewise.
2128 * x86-linux-nat.c: Likewise.
2129 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2130 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2131 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2132 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2133 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2134 (PTRACE_SETREGSET): Likewise.
2135 (arch_lwp_info): Now in x86-linux-nat.c.
2136 (have_ptrace_getregset): Now in x86-linux-nat.h.
2137 (x86_linux_dr_get): Now in x86-linux-nat.c.
2138 (x86_linux_dr_set): Likewise.
2139 (x86_linux_dr_get_addr): Likewise.
2140 (x86_linux_dr_get_control): Likewise.
2141 (x86_linux_dr_get_status): Likewise.
2142 (update_debug_registers_callback): Likewise.
2143 (x86_linux_dr_set_control): Likewise.
2144 (x86_linux_dr_set_addr): Likewise.
2145 (x86_linux_prepare_to_resume): Likewise.
2146 (x86_linux_new_thread): Likewise.
2147 (x86_linux_new_fork): Likewise.
2148 (x86_linux_get_thread_area): Likewise.
2149 (super_post_startup_inferior): Likewise.
2150 (x86_linux_child_post_startup_inferior): Likewise.
2151 (AMD64_LINUX_USER64_CS): Likewise.
2152 (AMD64_LINUX_X32_DS): Likewise.
2153 (x86_linux_read_description): Likewise.
2154 (x86_linux_enable_btrace): Likewise.
2155 (x86_linux_disable_btrace): Likewise.
2156 (x86_linux_teardown_btrace): Likewise.
2157 (x86_linux_read_btrace): Likewise.
2158 (x86_linux_create_target): Likewise.
2159 (x86_linux_add_target): Likewise.
2160 * i386-linux-nat.c (x86-linux-nat.h): New include.
2161 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2162 (PTRACE_SETREGSET): Likewise.
2163 (arch_lwp_info): Now in x86-linux-nat.c.
2164 (have_ptrace_getregset): Now in x86-linux-nat.h.
2165 (x86_linux_dr_get): Now in x86-linux-nat.c.
2166 (x86_linux_dr_set): Likewise.
2167 (x86_linux_dr_get_addr): Likewise.
2168 (x86_linux_dr_get_control): Likewise.
2169 (x86_linux_dr_get_status): Likewise.
2170 (update_debug_registers_callback): Likewise.
2171 (x86_linux_dr_set_control): Likewise.
2172 (x86_linux_dr_set_addr): Likewise.
2173 (x86_linux_prepare_to_resume): Likewise.
2174 (x86_linux_new_thread): Likewise.
2175 (x86_linux_new_fork): Likewise.
2176 (x86_linux_get_thread_area): Likewise.
2177 (super_post_startup_inferior): Likewise.
2178 (x86_linux_child_post_startup_inferior): Likewise.
2179 (AMD64_LINUX_USER64_CS): Likewise.
2180 (AMD64_LINUX_X32_DS): Likewise.
2181 (x86_linux_read_description): Likewise.
2182 (x86_linux_enable_btrace): Likewise.
2183 (x86_linux_disable_btrace): Likewise.
2184 (x86_linux_teardown_btrace): Likewise.
2185 (x86_linux_read_btrace): Likewise.
2186 (x86_linux_create_target): Likewise.
2187 (x86_linux_add_target): Likewise.
2189 2014-07-11 Gary Benson <gbenson@redhat.com>
2191 * amd64-linux-nat.c: Comment and whitespace changes.
2192 * i386-linux-nat.c: Comment and whitespace changes.
2194 2014-07-11 Gary Benson <gbenson@redhat.com>
2196 * amd64-linux-nat.c (x86_linux_create_target): New function.
2197 (x86_linux_add_target): Likewise.
2198 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2199 * i386-linux-nat.c (x86_linux_create_target): New function.
2200 (x86_linux_add_target): Likewise.
2201 (_initialize_i386_linux_nat): Delegate to the above new functions.
2203 2014-07-11 Gary Benson <gbenson@redhat.com>
2205 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2206 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2207 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2208 (ps_get_thread_area): Delegate to the above.
2210 2014-07-11 Gary Benson <gbenson@redhat.com>
2212 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2213 x86_linux_read_description. All uses updated. amd64-specific
2214 code conditionalized. Conditionalized i386-specific code added.
2215 Redundant cast removed.
2216 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2217 x86_linux_read_description. All uses updated. i386-specific
2218 code conditionalized. Conditionalized amd64-specific code added.
2219 One sizeof replaced with the actual type it is describing.
2221 2014-07-11 Gary Benson <gbenson@redhat.com>
2223 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2224 x86_linux_dr_get. All uses updated.
2225 (amd64_linux_dr_set): Renamed to
2226 x86_linux_dr_set. All uses updated.
2227 (amd64_linux_dr_get_addr): Renamed to
2228 x86_linux_dr_get_addr. All uses updated.
2229 (amd64_linux_dr_get_control): Renamed to
2230 x86_linux_dr_get_control. All uses updated.
2231 (amd64_linux_dr_get_status): Renamed to
2232 x86_linux_dr_get_status. All uses updated.
2233 (amd64_linux_dr_set_control): Renamed to
2234 x86_linux_dr_set_control. All uses updated.
2235 (amd64_linux_dr_set_addr): Renamed to
2236 x86_linux_dr_set_addr. All uses updated.
2237 (amd64_linux_prepare_to_resume): Renamed to
2238 x86_linux_prepare_to_resume. All uses updated.
2239 (amd64_linux_new_thread): Renamed to
2240 x86_linux_new_thread. All uses updated.
2241 (amd64_linux_new_fork): Renamed to
2242 x86_linux_new_fork. All uses updated.
2243 (amd64_linux_child_post_startup_inferior): Renamed to
2244 x86_linux_child_post_startup_inferior. All uses updated.
2245 (amd64_linux_enable_btrace): Renamed to
2246 x86_linux_enable_btrace. All uses updated.
2247 (amd64_linux_disable_btrace): Renamed to
2248 x86_linux_disable_btrace. All uses updated.
2249 (amd64_linux_teardown_btrace): Renamed to
2250 x86_linux_teardown_btrace. All uses updated.
2251 (amd64_linux_read_btrace): Renamed to
2252 x86_linux_read_btrace. All uses updated.
2253 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2254 x86_linux_dr_get. All uses updated.
2255 (i386_linux_dr_set): Renamed to
2256 x86_linux_dr_set. All uses updated.
2257 (i386_linux_dr_get_addr): Renamed to
2258 x86_linux_dr_get_addr. All uses updated.
2259 (i386_linux_dr_get_control): Renamed to
2260 x86_linux_dr_get_control. All uses updated.
2261 (i386_linux_dr_get_status): Renamed to
2262 x86_linux_dr_get_status. All uses updated.
2263 (i386_linux_dr_set_control): Renamed to
2264 x86_linux_dr_set_control. All uses updated.
2265 (i386_linux_dr_set_addr): Renamed to
2266 x86_linux_dr_set_addr. All uses updated.
2267 (i386_linux_prepare_to_resume): Renamed to
2268 x86_linux_prepare_to_resume. All uses updated.
2269 (i386_linux_new_thread): Renamed to
2270 x86_linux_new_thread. All uses updated.
2271 (i386_linux_new_fork): Renamed to
2272 x86_linux_new_fork. All uses updated.
2273 (i386_linux_child_post_startup_inferior): Renamed to
2274 x86_linux_child_post_startup_inferior. All uses updated.
2275 (i386_linux_enable_btrace): Renamed to
2276 x86_linux_enable_btrace. All uses updated.
2277 (i386_linux_disable_btrace): Renamed to
2278 x86_linux_disable_btrace. All uses updated.
2279 (i386_linux_teardown_btrace): Renamed to
2280 x86_linux_teardown_btrace. All uses updated.
2281 (i386_linux_read_btrace): Renamed to
2282 x86_linux_read_btrace. All uses updated.
2284 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2286 * remote.c (extended_remote_post_attach): New function.
2287 (init_extended_remote_ops): Install it as to_post_attach method.
2289 2014-07-09 Pedro Alves <palves@redhat.com>
2291 * infcmd.c (attach_command_post_wait): Don't call
2292 target_terminal_inferior here.
2293 (attach_command): Call it here instead.
2295 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2297 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2299 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2300 from varobj.c, with additional checks.
2301 (c_varobj_ops): Fill in is_path_expr_parent field.
2302 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2303 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2305 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2307 (varobj_default_is_path_expr_parent): New function.
2308 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2309 (varobj_default_is_path_expr_parent): Declare new function.
2311 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2313 * infcmd.c (finish_backward): Turn internal error into normal error.
2315 2014-07-07 Pedro Alves <palves@redhat.com>
2318 * remote.c (async_handle_remote_sigint)
2319 (async_handle_remote_sigint_twice): Call
2320 gdb_call_async_signal_handler instead of
2321 mark_async_signal_handler.
2323 2014-07-07 Tom Tromey <tromey@redhat.com>
2325 * target-delegates.c: Rebuild.
2326 * target.c (target_info_record): Remove.
2327 * record.c (info_record_command): Unconditionally call
2329 * target.h (struct target_ops) <to_info_record>: Use
2330 TARGET_DEFAULT_IGNORE.
2331 (target_info_record): Remove.
2333 2014-07-07 Tom Tromey <tromey@redhat.com>
2335 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2336 TARGET_DEFAULT_NORETURN.
2337 * target.c (generic_tls_error): New function.
2338 (target_translate_tls_address): Don't search target stack.
2339 * target-delegates.c: Rebuild.
2340 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2342 * linux-thread-db.c (thread_db_get_thread_local_address):
2343 Unconditionally call beneath target.
2345 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2347 * cli/cli-logging.c (pop_output_files): Assign targerr to
2350 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2352 * MAINTAINERS (Write After Approval): Update my email address.
2354 2014-07-02 Gary Benson <gbenson@redhat.com>
2356 * proc-service.c (ps_xfer_memory): Update comment.
2357 (ps_pstop): Remove unused function.
2358 (ps_pcontinue): Likewise.
2359 (ps_lstop): Likewise.
2360 (ps_lcontinue): Likewise.
2361 (ps_lgetxregsize): Likewise.
2362 (ps_lgetxregs): Likewise.
2363 (ps_lsetxregs): Likewise.
2364 (ps_plog): Likewise.
2365 (ps_ptread): Likewise.
2366 (ps_ptwrite): Likewise.
2368 2014-07-01 Mark Wielaard <mjw@redhat.com>
2370 * dwarf2read.c (add_array_cv_type): New function.
2371 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2372 (read_tag_volatile_type): Likewise.
2374 2014-07-01 Tom Tromey <tromey@redhat.com>
2376 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2377 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2378 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2379 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2380 * command.h (cmd_cfunc_ftype): Move earlier.
2381 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2382 (add_com, add_info): Use cmd_cfunc_ftype.
2384 2014-06-30 Tom Tromey <tromey@redhat.com>
2386 * symtab.c (operator_chars): Make parameters and return type
2388 (file_matches): Make "files" const.
2389 (struct search_symbols_data) <files>: Now const.
2390 (search_symbols): Make "regexp" and "files" parameters const.
2392 (symtab_symbol_info): Remove cast.
2393 (rbreak_command): Update.
2394 * symtab.h (search_symbols): Update.
2396 2014-06-27 Yao Qi <yao@codesourcery.com>
2398 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2399 Change parameter type to 'struct thread_info *'. Caller
2401 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2403 * dummy-frame.c (struct dummy_frame_id): New.
2404 (dummy_frame_id_eq): New function.
2405 (struct dummy_frame) <id>: Change its type to 'struct
2407 (dummy_frame_push): Add parameter ptid and save it in
2409 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2411 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2413 (lookup_dummy_frame): Change parameter type to 'struct
2414 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2415 instead of frame_id_eq.
2416 (dummy_frame_pop): Add parameter ptid. Callers updated.
2417 Update comments. Compose dummy_frame_id and pass it to
2419 (dummy_frame_discard): Add parameter ptid.
2420 (dummy_frame_sniffer): Compose dummy_frame_id and call
2421 dummy_frame_id_eq instead of frame_id_eq.
2422 (fprint_dummy_frames): Print ptid.
2423 * dummy-frame.h: Remove comments.
2424 (dummy_frame_push): Add ptid in declaration.
2425 (dummy_frame_pop, dummy_frame_discard): Likewise.
2427 2014-06-26 Tom Tromey <tromey@redhat.com>
2429 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2430 * command.h (error_no_arg): Update.
2432 2014-06-26 Tom Tromey <tromey@redhat.com>
2434 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2435 (do_show_command): Make "arg" const.
2436 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2438 2014-06-26 Tom Tromey <tromey@redhat.com>
2440 * record-full.c (record_full_get_bookmark): Make "args" const.
2441 (record_full_goto_bookmark): Make "raw_bookmark" const.
2442 * record.c (record_goto): New function.
2443 (cmd_record_goto): Use it. Now static.
2444 * record.h (record_goto): Declare.
2445 (cmd_record_goto): Remove declaration.
2446 * target-delegates.c: Rebuild.
2447 * target.h (struct target_ops) <to_get_bookmark,
2448 to_goto_bookmark>: Make parameter const.
2450 2014-06-26 Tom Tromey <tromey@redhat.com>
2452 * defs.h (generic_load): Update.
2453 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2454 * monitor.c (monitor_load): Make "args" const.
2455 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2456 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2458 (mips_load): Make "file" const.
2459 * remote-sim.c (gdbsim_load): Make "args" const.
2460 * remote.c (remote_load): Make "name" const.
2461 * symfile.c (generic_load): Make "args" const.
2462 * target-delegates.c: Rebuild.
2463 * target.c (target_load): Make "arg" const.
2464 (debug_to_load): Make "args" const.
2465 * target.h (struct target_ops) <to_load>: Make parameter const.
2466 (target_load): Update.
2468 2014-06-26 Tom Tromey <tromey@redhat.com>
2471 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2472 (dwarf2_physname, read_partial_die)
2473 (guess_partial_die_structure_name, fixup_partial_die)
2474 (guess_full_die_structure_name, anonymous_struct_prefix)
2475 (dwarf2_name): Use per-BFD obstack.
2477 2014-06-26 Yao Qi <yao@codesourcery.com>
2479 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2480 dummyframe and this_id into inner block below.
2482 2014-06-26 Yao Qi <yao@codesourcery.com>
2484 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2485 with "signal_pass[0]" in the initialization of signal_pass.
2487 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2489 * record-btrace.c (record_btrace_generating_corefile)
2490 (record_btrace_prepare_to_generate_core)
2491 (record_btrace_done_generating_core): New.
2492 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2493 (record_btrace_store_registers, record_btrace_prepare_to_store):
2494 Forward request when generating a core file.
2495 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2496 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2497 to_done_generating_core.
2499 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2501 * target.h (target_ops) <to_prepare_to_generate_core>
2502 <to_done_generating_core>: New.
2503 (target_prepare_to_generate_core, target_done_generating_core): New.
2504 * target.c (target_prepare_to_generate_core)
2505 (target_done_generating_core): New.
2506 * target-delegates.c: Regenerate.
2507 * gcore.c: (write_gcore_file): Rename to ...
2508 (write_gcore_file_1): ...this.
2509 (write_gcore_file): Call target_prepare_to_generate_core
2510 and target_done_generating_core.
2512 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2514 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2515 * gcore.c (write_gcore_file): Free memory returned from
2516 make_corefile_notes.
2517 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2518 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2520 2014-06-24 Yao Qi <yao@codesourcery.com>
2522 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2523 (arm_linux_init_abi): Set skip_trampoline_code with
2524 gdbarch_skip_trampoline_code instead of
2525 find_solib_trampoline_target.
2527 2014-06-24 Yao Qi <yao@codesourcery.com>
2529 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2530 arm_skip_bx_reg returns non-zero.
2532 2014-06-24 Yao Qi <yao@codesourcery.com>
2534 * arm-tdep.c (arm_skip_bx_reg): New function.
2535 (arm_skip_stub): Call arm_skip_bx_reg.
2537 2014-06-23 Don Breazeal <donb@codesourcery.com>
2539 * MAINTAINERS: Add myself as write-after-approval maintainer.
2541 2014-06-23 Pedro Alves <palves@redhat.com>
2543 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2544 DR_CONTROL before setting DR0..DR3.
2545 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2546 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2547 bits of DR_CONTROL related to the debug register slot being
2548 disabled. If all slots are vacant, clear local slowdown as well,
2549 and assert DR_CONTROL is 0.
2551 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2553 * python/lib/gdb/command/xmethods.py
2554 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2555 current progspace only if the string "progspace" matches LOCUS_RE.
2557 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2559 Fix --with-system-readline with readline-6.3 patch 5.
2560 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2561 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2564 2014-06-20 Tom Tromey <tromey@redhat.com>
2566 * dwarf2read.c (dw2_get_real_path): Use correct type in
2568 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2570 2014-06-20 Gary Benson <gbenson@redhat.com>
2572 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2573 * common/glibc_thread_db.h: Likewise.
2574 * common/i386-cpuid.h: Likewise.
2575 * common/i386-gcc-cpuid.h: Likewise.
2576 * common/linux-btrace.h: Likewise.
2577 * common/linux-osdata.h: Likewise.
2578 * common/linux-procfs.h: Likewise.
2579 * common/linux-ptrace.h: Likewise.
2580 * common/mips-linux-watch.h: Likewise.
2581 * common/linux-btrace.c: Moved to nat.
2582 * common/linux-osdata.c: Likewise.
2583 * common/linux-procfs.c: Likewise.
2584 * common/linux-ptrace.c: Likewise.
2585 * common/mips-linux-watch.c: Likewise.
2586 * nat/gdb_thread_db.h: Moved from common.
2587 * nat/glibc_thread_db.h: Likewise.
2588 * nat/i386-cpuid.h: Likewise.
2589 * nat/i386-gcc-cpuid.h: Likewise.
2590 * nat/linux-btrace.c: Likewise.
2591 * nat/linux-btrace.h: Likewise.
2592 * nat/linux-osdata.c: Likewise.
2593 * nat/linux-osdata.h: Likewise.
2594 * nat/linux-procfs.c: Likewise.
2595 * nat/linux-procfs.h: Likewise.
2596 * nat/linux-ptrace.c: Likewise.
2597 * nat/linux-ptrace.h: Likewise.
2598 * nat/mips-linux-watch.c: Likewise.
2599 * nat/mips-linux-watch.h: Likewise.
2600 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2601 (object file files): Reordered.
2602 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2603 of glibc_thread_db.h.
2605 2014-06-20 Gary Benson <gbenson@redhat.com>
2607 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2608 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2609 (i386_dr_low): Likewise.
2610 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2611 (i386_dr_low_set_addr): Likewise.
2612 (i386_dr_low_get_addr): Likewise.
2613 (i386_dr_low_can_set_control): Likewise.
2614 (i386_dr_low_set_control): Likewise.
2615 (i386_dr_low_get_control): Likewise.
2616 (i386_dr_low_get_status): Likewise.
2617 (i386_get_debug_register_length): Likewise.
2618 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2619 (i386_dr_low): Likewise.
2620 * nat/i386-dregs.c (i386-low.h): Remove include.
2621 (i386-nat.h): Likewise.
2622 (nat/i386-dregs.h): New include.
2623 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2624 (i386_dr_low_set_addr): Likewise.
2625 (i386_dr_low_get_addr): Likewise.
2626 (i386_dr_low_can_set_control): Likewise.
2627 (i386_dr_low_set_control): Likewise.
2628 (i386_dr_low_get_control): Likewise.
2629 (i386_dr_low_get_status): Likewise.
2630 (i386_get_debug_register_length): Likewise.
2631 (debug_hw_points): Likewise.
2633 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2635 * Makefile.in (SFILES): Add d-exp.y.
2636 (YYFILES): Add d-exp.c.
2637 (YYOBJ): Add d-exp.o.
2638 (local-maintainer-clean): Delete d-exp.c.
2639 * d-exp.y: New file.
2640 * d-lang.h (d_parse): New declaration.
2641 (d_error): New declaration.
2642 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2643 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2644 PREC_ORDER operators.
2645 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2647 2014-06-19 Yao Qi <yao@codesourcery.com>
2649 * gdbthread.h (any_running): Remove the declaration.
2650 * thread.c (any_running): Remove.
2652 2014-06-19 Yao Qi <yao@codesourcery.com>
2654 * gdbthread.h (struct thread_info) <state>: Change its type to
2655 'enum thread_state'. Update comments.
2657 2014-06-19 Pedro Alves <palves@redhat.com>
2659 * gdbthread.h (ALL_THREADS): Delete.
2660 (ALL_NON_EXITED_THREADS): New macro.
2661 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2662 instead of ALL_THREADS.
2663 * infrun.c (find_thread_needs_step_over)
2664 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2665 instead of ALL_THREADS.
2666 * record-btrace.c (record_btrace_open)
2667 (record_btrace_stop_recording, record_btrace_close)
2668 (record_btrace_is_replaying, record_btrace_resume)
2669 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2670 * remote.c (append_pending_thread_resumptions): Likewise.
2671 * thread.c (thread_apply_all_command): Likewise.
2673 2014-06-19 Gary Benson <gbenson@redhat.com>
2675 * i386-nat.c (i386_stopped_by_watchpoint):
2676 Use i386_dr_stopped_by_watchpoint.
2677 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2678 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2680 2014-06-19 Gary Benson <gbenson@redhat.com>
2682 * nat/i386-dregs.c: New file.
2683 * Makefile.in (i386-dregs.o): New rule.
2684 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2685 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2686 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2687 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2688 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2689 * config/i386/go32.mh (NATDEPFILES): Likewise.
2690 * config/i386/linux.mh (NATDEPFILES): Likewise.
2691 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2692 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2693 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2694 * i386-nat.h (debug_hw_points): New declaration.
2695 * i386-nat.c (breakpoint.h): Remove include.
2696 (command.h): Likewise.
2697 (target.h): Likewise.
2698 (gdb_assert.h): Likewise.
2699 (debug_hw_points): Made nonstatic.
2700 (debug_printf): Now in i386-dregs.c.
2701 (TARGET_HAS_DR_LEN_8): Likewise.
2702 (DR_CONTROL_SHIFT): Likewise.
2703 (DR_CONTROL_SIZE): Likewise.
2704 (DR_RW_EXECUTE): Likewise.
2705 (DR_RW_WRITE): Likewise.
2706 (DR_RW_READ): Likewise.
2707 (DR_RW_IORW): Likewise.
2708 (DR_LEN_1): Likewise.
2709 (DR_LEN_2): Likewise.
2710 (DR_LEN_4): Likewise.
2711 (DR_LEN_8): Likewise.
2712 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2713 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2714 (DR_ENABLE_SIZE): Likewise.
2715 (DR_LOCAL_SLOWDOWN): Likewise.
2716 (DR_GLOBAL_SLOWDOWN): Likewise.
2717 (DR_CONTROL_RESERVED): Likewise.
2718 (I386_DR_CONTROL_MASK): Likewise.
2719 (I386_DR_VACANT): Likewise.
2720 (I386_DR_LOCAL_ENABLE): Likewise.
2721 (I386_DR_GLOBAL_ENABLE): Likewise.
2722 (I386_DR_DISABLE): Likewise.
2723 (I386_DR_SET_RW_LEN): Likewise.
2724 (I386_DR_GET_RW_LEN): Likewise.
2725 (I386_DR_WATCH_HIT): Likewise.
2726 (i386_wp_op_t): Likewise.
2727 (i386_show_dr): Likewise.
2728 (i386_length_and_rw_bits): Likewise.
2729 (i386_insert_aligned_watchpoint): Likewise.
2730 (i386_remove_aligned_watchpoint): Likewise.
2731 (i386_handle_nonaligned_watchpoint): Likewise.
2732 (i386_update_inferior_debug_regs): Likewise.
2733 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2734 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2735 (i386_region_ok_for_watchpoint):
2736 Use i386_dr_region_ok_for_watchpoint.
2737 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2739 2014-06-19 Gary Benson <gbenson@redhat.com>
2741 * i386-nat.c (i386_insert_hw_breakpoint): Use
2742 i386_insert_watchpoint.
2743 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2745 2014-06-19 Gary Benson <gbenson@redhat.com>
2747 * i386-nat.c (i386_dr_show): Renamed to
2748 i386_show_dr and made static. All uses updated.
2749 (i386_dr_length_and_rw_bits): Renamed to
2750 i386_length_and_rw_bits and made static.
2752 (i386_dr_insert_aligned_watchpoint): Renamed to
2753 i386_insert_aligned_watchpoint and made static.
2755 (i386_dr_remove_aligned_watchpoint): Renamed to
2756 i386_remove_aligned_watchpoint and made static.
2758 (i386_dr_update_inferior_debug_regs): Renamed to
2759 i386_update_inferior_debug_regs and made static.
2761 * nat/i386-dregs.h (i386_dr_show): Removed.
2762 (i386_dr_length_and_rw_bits): Likewise.
2763 (i386_dr_insert_aligned_watchpoint): Likewise.
2764 (i386_dr_remove_aligned_watchpoint): Likewise.
2765 (i386_dr_update_inferior_debug_regs): Likewise.
2767 2014-06-19 Gary Benson <gbenson@redhat.com>
2769 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2770 * configure: Regenerate.
2771 * config.in: Likewise.
2772 * main.c (signal.h): New include.
2773 (setup_alternate_signal_stack): New function.
2774 (captured_main): Call the above.
2775 * cp-support.c (signal.h): New include.
2776 (catch_demangler_crashes): New flag.
2777 (SIGJMP_BUF): New define.
2778 (SIGSETJMP): Likewise.
2779 (SIGLONGJMP): Likewise.
2780 (gdb_demangle_jmp_buf): New static global.
2781 (gdb_demangle_attempt_core_dump): Likewise.
2782 (gdb_demangle_signal_handler): New function.
2783 (gdb_demangle): If catch_demangler_crashes is set, install the
2784 above signal handler before calling bfd_demangle, and restore
2785 the original signal handler afterwards. Display the offending
2786 symbol and call demangler_warning the first time a segmentation
2788 (_initialize_cp_support): New maint set/show command.
2790 2014-06-19 Gary Benson <gbenson@redhat.com>
2792 * utils.h (resource_limit_kind): New enum.
2793 (can_dump_core): New declaration.
2794 (warn_cant_dump_core): Likewise.
2795 (dump_core): Likewise.
2796 * utils.c (dump_core): Made nonstatic. Added new
2797 parameter "limit_kind".
2798 (can_dump_core): Made nonstatic. Moved printing code to...
2799 (warn_cant_dump_core): New function.
2800 (can_dump_core_warn): Likewise.
2801 (internal_vproblem): Replace calls to can_dump_core with
2802 calls to can_dump_core_warn. Supply new argument to each.
2804 2014-06-19 Gary Benson <gbenson@redhat.com>
2806 * utils.h (demangler_vwarning): New declaration.
2807 (demangler_warning): Likewise.
2808 * utils.c (struct internal_problem)
2809 <user_settable_should_quit>: New field.
2810 <user_settable_should_dump_core>: Likewise
2811 (internal_error_problem): Add values for above new fields.
2812 (internal_warning_problem): Likewise.
2813 (demangler_warning_problem): New static global.
2814 (demangler_vwarning): New function.
2815 (demangler_warning): Likewise.
2816 (add_internal_problem_command): Selectively add commands.
2817 (_initialize_utils): New internal problem command.
2818 * maint.c (maintenance_demangler_warning): New function.
2819 (_initialize_maint_cmds): New command.
2821 2014-06-18 Tom Tromey <tromey@redhat.com>
2823 * f-valprint.c (info_common_command_for_block): Update.
2824 * symtab.h (struct general_symbol_info) <common_block>: Now
2827 2014-06-18 Tom Tromey <tromey@redhat.com>
2829 * symtab.h (struct symtab) <blockvector>: Now const.
2830 * ada-lang.c (ada_add_global_exceptions): Update.
2831 * buildsym.c (augment_type_symtab): Update.
2832 * dwarf2read.c (dw2_lookup_symbol): Update.
2833 * jit.c (finalize_symtab): Update.
2834 * jv-lang.c (add_class_symtab_symbol): Update.
2835 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2837 * objfiles.c (objfile_relocate1): Update.
2838 * psymtab.c (lookup_symbol_aux_psymtabs)
2839 (maintenance_check_psymtabs): Update.
2840 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2842 * spu-tdep.c (spu_catch_start): Update.
2843 * symmisc.c (dump_symtab_1): Update.
2844 * symtab.c (lookup_global_symbol_from_objfile)
2845 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2846 (basic_lookup_transparent_type_quick)
2847 (basic_lookup_transparent_type, find_pc_sect_symtab)
2848 (find_pc_sect_line, search_symbols): Update.
2849 * block.c (find_block_in_blockvector): Make "bl" const.
2850 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2852 (blockvector_contains_pc): Make "bv" const.
2853 (block_for_pc_sect): Update.
2854 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2855 (blockvector_contains_pc): Update.
2856 * breakpoint.c (resolve_sal_pc): Update.
2857 * inline-frame.c (block_starting_point_at): Update.
2859 2014-06-18 Tom Tromey <tromey@redhat.com>
2861 * completer.c (complete_line): Make "line_buffer" const.
2862 * completer.h (complete_line): Update.
2864 2014-06-18 Tom Tromey <tromey@redhat.com>
2866 * symtab.c (add_macro_name): Remove unneeded cast.
2868 2014-06-18 Tom Tromey <tromey@redhat.com>
2870 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2871 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2873 2014-06-18 Tom Tromey <tromey@redhat.com>
2875 * probe.c (info_probes_for_ops): Make "arg" const.
2876 * probe.h (info_probes_for_ops): Update.
2878 2014-06-18 Tom Tromey <tromey@redhat.com>
2880 * varobj.c (varobj_create): Update.
2881 * valops.c (value_of_this): Update.
2882 * tracepoint.c (add_local_symbols, scope_info): Update.
2883 * symtab.h (struct general_symbol_info) <block>: Now const.
2884 * symtab.c (skip_prologue_sal)
2885 (default_make_symbol_completion_list_break_on)
2886 (skip_prologue_using_sal): Update.
2887 * stack.h (iterate_over_block_locals)
2888 (iterate_over_block_local_vars): Update.
2889 * stack.c (print_frame_args): Update.
2890 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2892 (get_selected_block): Make return type const.
2893 * python/py-frame.c (frapy_block): Update.
2894 * python/py-block.c (gdbpy_block_for_pc): Update.
2895 * p-exp.y (%union) <bval>: Now const.
2896 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2897 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2898 * m2-exp.y (%union) <bval>: Now const.
2899 * linespec.c (get_current_search_block): Make return type const.
2900 (create_sals_line_offset, find_label_symbols): Update.
2901 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2903 (block_starting_point_at): Make "block" const.
2904 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2905 (check_exception_resume): Update.
2906 * guile/scm-frame.c (gdbscm_frame_block): Update.
2907 * guile/scm-block.c (gdbscm_lookup_block): Update.
2908 * frame.h (get_frame_block): Update.
2909 (get_selected_block): Make return type const.
2910 * frame.c (frame_id_inner): Update.
2911 * f-valprint.c (info_common_command_for_block)
2912 (info_common_command): Update.
2913 * dwarf2loc.c (dwarf2_find_location_expression)
2914 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2915 (locexpr_describe_location_piece): Update.
2916 * c-exp.y (%union) <bval>: Now const.
2917 * breakpoint.c (resolve_sal_pc): Update.
2918 * blockframe.c (get_frame_block):Make return type const.
2919 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2920 (block_innermost_frame): Update.
2921 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2922 (block_for_pc, block_for_pc_sect): Update.
2923 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2925 (block_for_pc_sect, block_for_pc): Make return type const.
2926 * ax-gdb.c (gen_expr): Update.
2927 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2928 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2929 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2930 (ada_read_var_value): Update.
2931 * ada-exp.y (struct name_info) <block>: Now const.
2933 (block_lookup): Constify.
2935 2014-06-18 Gary Benson <gbenson@redhat.com>
2937 * nat/i386-dregs.h: New file.
2938 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2939 * i386-nat.h (i386-dregs.h): New include.
2940 (DR_FIRSTADDR): Now in i386-dregs.h.
2941 (DR_LASTADDR): Likewise.
2942 (DR_NADDR): Likewise.
2943 (DR_STATUS): Likewise.
2944 (DR_CONTROL): Likewise.
2945 (i386_debug_reg_state): Likewise.
2946 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2948 2014-06-18 Don Breazeal <donb@codesourcery.com>
2950 * breakpoint.c (set_longjmp_breakpoint): Call
2951 momentary_breakpoint_from_master with additional argument.
2952 (set_longjmp_breakpoint_for_call_dummy): Call
2953 momentary_breakpoint_from_master with additional argument.
2954 (set_std_terminate_breakpoint): Call
2955 momentary_breakpoint_from_master with additional argument.
2956 (momentary_breakpoint_from_master): Add argument to function
2957 definition and use it to initialize structure member flag.
2958 (clone_momentary_breakpoint): Call
2959 momentary_breakpoint_from_master with additional argument.
2960 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2961 member flags set in momentary_breakpoint_from_master.
2963 2014-06-18 Gary Benson <gbenson@redhat.com>
2965 * i386-nat.c (i386_show_dr): Renamed to
2966 i386_dr_show and made nonstatic. All uses updated.
2967 (i386_length_and_rw_bits): Renamed to
2968 i386_dr_length_and_rw_bits and made nonstatic.
2970 (i386_insert_aligned_watchpoint): Renamed to
2971 i386_dr_insert_aligned_watchpoint and made nonstatic.
2973 (i386_remove_aligned_watchpoint): Renamed to
2974 i386_dr_remove_aligned_watchpoint and made nonstatic.
2976 (i386_update_inferior_debug_regs): Renamed to
2977 i386_dr_update_inferior_debug_regs and made nonstatic.
2980 2014-06-18 Gary Benson <gbenson@redhat.com>
2982 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2983 (i386_dr_low_can_set_control): Likewise.
2984 (i386_dr_low_set_addr): Likewise.
2985 (i386_dr_low_set_control): Likewise.
2986 (i386_dr_low_get_addr): Likewise.
2987 (i386_dr_low_get_status): Likewise.
2988 (i386_dr_low_get_control): Likewise.
2989 (i386_insert_aligned_watchpoint): Use new macros.
2990 (i386_update_inferior_debug_regs): Likewise.
2991 (i386_stopped_data_address): Likewise.
2993 2014-06-18 Gary Benson <gbenson@redhat.com>
2995 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2996 New parameter. All uses updated.
2998 2014-06-18 Gary Benson <gbenson@redhat.com>
3000 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3003 2014-06-18 Gary Benson <gbenson@redhat.com>
3005 * i386-nat.c (debug_printf): New macro.
3006 (i386_get_debug_register_length): Likewise.
3007 (TARGET_HAS_DR_LEN_8): Use above macro.
3008 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3009 and printf_unfiltered. Use phex to format values.
3011 2014-06-18 Gary Benson <gbenson@redhat.com>
3013 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3016 2014-06-18 Gary Benson <gbenson@redhat.com>
3018 * i386-nat.c: Comment changes.
3020 2014-06-18 Gary Benson <gbenson@redhat.com>
3022 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3024 2014-06-18 Gary Benson <gbenson@redhat.com>
3026 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3027 (i386_insert_aligned_watchpoint): Likewise.
3028 (i386_remove_aligned_watchpoint): Likewise.
3029 (i386_handle_nonaligned_watchpoint): Likewise.
3031 2014-06-18 Gary Benson <gbenson@redhat.com>
3033 * i386-nat.c: Whitespace changes.
3035 2014-06-17 Samuel Bronson <naesten@gmail.com>
3037 * MAINTAINERS: Update Roland McGrath's email address.
3038 Thanks to Sergio Durigan Junior for pointing out that he left
3039 Red Hat a while ago, and giving me a current address.
3041 2014-06-17 Tom Tromey <tromey@redhat.com>
3043 * utils.h (savestring): Remove declaration.
3045 2014-06-17 Tom Tromey <tromey@redhat.com>
3047 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3049 2014-06-16 Keith Seitz <keiths@redhat.com>
3052 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3053 to update the varobj if inferior_ptid is null_ptid.
3055 2014-06-16 Tom Tromey <tromey@redhat.com>
3057 * target.h (struct target_ops) <to_info_proc>: Make parameter
3059 (target_info_proc): Update.
3060 * target.c (target_info_proc): Make "args" const.
3061 * procfs.c (procfs_info_proc): Update.
3062 * linux-tdep.c (linux_info_proc): Update.
3063 (linux_core_info_proc_mappings): Make "args" const.
3064 (linux_core_info_proc): Update.
3065 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3066 * gdbarch.c: Rebuild.
3067 * gdbarch.h: Rebuild.
3068 * corelow.c (core_info_proc): Update.
3070 2014-06-16 Tom Tromey <tromey@redhat.com>
3072 * target.h (struct target_ops) <to_disconnect>: Make parameter
3074 (target_disconnect): Update.
3075 * target.c (target_disconnect): Make "args" const.
3076 * target-delegates.c: Rebuild.
3077 * remote.c (remote_disconnect): Update.
3078 * record.h (record_disconnect): Update.
3079 * record.c (record_disconnect): Update.
3080 * inf-child.c (inf_child_disconnect): Update.
3082 2014-06-16 Tom Tromey <tromey@redhat.com>
3084 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3085 * target.c (debug_to_rcmd, default_rcmd): Update.
3086 * target-delegates.c: Rebuild.
3087 * remote.c (remote_rcmd): Update.
3088 * monitor.c (monitor_rcmd): Update.
3090 2014-06-16 Pedro Alves <palves@redhat.com>
3092 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3093 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3094 have OBJF_SHARED set.
3095 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3096 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3097 instead of OBJF_USERLOADED.
3098 * objfiles.h (OBJF_SHARED): Update comment.
3099 (userloaded_objfile_contains_address_p): Rename to ...
3100 (shared_objfile_contains_address_p): ... this, and update
3102 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3104 (remove_symbol_file_command): Skip objfiles that don't have
3107 2014-06-16 Tom Tromey <tromey@redhat.com>
3109 * minsyms.h (prim_record_minimal_symbol)
3110 (prim_record_minimal_symbol_and_info): Update comments.
3112 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3114 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3115 or --without-guile, according to how GDB was built.
3117 2014-06-13 Tom Tromey <tromey@redhat.com>
3119 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3121 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3123 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3125 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3126 help_list.Pass all_commands, not -1, to help_list.
3127 * cli/cli-dump.c (dump_command, append_command)
3128 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3129 (binary_dump_command, binary_append_command): Pass all_commands,
3130 not -1, to help_list.
3131 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3133 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3135 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3137 * top.c (set_history): Pass all_commands, not -1, to help_list.
3138 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3139 all_commands, not -1, to help_list.
3140 * symfile.c (overlay_command): Pass all_commands, not -1, to
3142 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3144 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3146 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3148 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3149 not -1, to help_list.
3150 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3151 not -1, to help_list.
3152 * maint.c (maintenance_command, maintenance_info_command)
3153 (maintenance_print_command, maintenance_set_cmd): Pass
3154 all_commands, not -1, to help_list.
3155 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3157 * language.c (set_check): Pass all_commands, not -1, to help_list.
3158 * infcmd.c (unset_command): Pass all_commands, not -1, to
3160 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3162 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3164 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3166 * breakpoint.c (save_command): Pass all_commands, not -1, to
3168 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3169 all_commands, not -1, to help_list.
3171 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3173 * regcache.c (struct register_to_invalidate): New structure.
3174 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3176 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3178 2014-06-12 Yao Qi <yao@codesourcery.com>
3180 * varobj.c (varobj_get_num_children): Call
3181 varobj_is_dynamic_p.
3182 (varobj_list_children): Likewise.
3183 (varobj_update): Likewise. Update comments.
3185 2014-06-12 Yao Qi <yao@codesourcery.com>
3187 * varobj.c (varobj_pretty_printed_p): Rename to ...
3188 (varobj_is_dynamic_p): ... this. New function.
3189 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3190 (varobj_is_dynamic_p): Declare.
3191 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3192 (mi_print_value_p, varobj_update_one): Likewise.
3194 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3195 Yao Qi <yao@codesourcery.com>
3197 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3198 (varobj_get_iterator): Wrap up code for pretty-printer by
3199 "#if HAVE_PYTHON" and "#endif".
3200 (update_dynamic_varobj_children): Likewise.
3202 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3203 Yao Qi <yao@codesourcery.com>
3205 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3206 gdb_python_initialized is false. Move some code from varobj.c.
3207 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3208 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3209 (struct varobj_item): Moved to varobj-iter.h".
3210 (varobj_clear_saved_item): New function.
3211 (update_dynamic_varobj_children): Move python-related code to
3213 (free_variable): Call varobj_clear_saved_item and
3216 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3217 Yao Qi <yao@codesourcery.com>
3219 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3220 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3221 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3222 (py-varobj.o): New rule.
3223 * python/py-varobj.c: New file.
3224 * python/python-internal.h (py_varobj_get_iterator): Declare.
3225 * varobj-iter.h: New file.
3226 * varobj.c: Include "varobj-iter.h"
3227 (struct varobj) <child_iter>: Change its type from "PyObject *"
3228 to "struct varobj_iter *".
3229 <saved_item>: Likewise.
3230 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3231 [HAVE_PYTHON] (varobj_get_iterator): New function.
3232 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3233 python-specific code to python/py-varobj.c.
3234 (install_visualizer): Call varobj_iter_delete instead of
3236 * varobj.h (varobj_ensure_python_env): Declare.
3238 2014-06-12 Yao Qi <yao@codesourcery.com>
3240 * varobj.c (struct varobj_item): New structure.
3241 (create_child_with_value): Update declaration.
3242 (varobj_add_child): Replace arguments 'name' and 'value' with
3243 'item'. All callers updated.
3244 (install_dynamic_child): Likewise.
3245 (update_dynamic_varobj_children): Likewise.
3246 (varobj_add_child): Likewise.
3247 (create_child_with_value): Likewise.
3249 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3251 * NEWS: Create a new section for the next release branch.
3252 Rename the section of the current branch, now that it has
3255 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3257 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3258 * version.in: Bump version to 7.8.50.DATE-cvs.
3260 2014-06-11 Pedro Alves <palves@redhat.com>
3263 * ser-mingw.c (net_windows_socket_check_pending): New function.
3264 (net_windows_select_thread): Ignore spurious wakeups. Use
3265 net_windows_socket_check_pending.
3266 (net_windows_wait_handle): Check for pending events with
3267 ioctlsocket, through net_windows_socket_check_pending, instead of
3268 checking the socket's event.
3270 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3272 * python/python-internal.h (gdb_PyObject_GetAttrString)
3273 (gdb_PyObject_HasAttrString): New inline function definitions.
3274 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3275 char * of the second argument to PyObject_GetAttrString.
3277 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3279 * serial.c (serial_write): Fix index of character to be printed
3280 in call to serial_logchar when serial debug traces are enabled.
3282 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3284 * gdbtypes (resolve_dynamic_range): Add function description.
3286 2014-06-09 Pedro Alves <palves@redhat.com>
3288 * linux-nat.c (linux_child_follow_fork): Initialize status with
3289 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3290 inner block. Only pass the signal to PTRACE_DETACH if in pass
3293 2014-06-09 Gary Benson <gbenson@redhat.com>
3295 * common/signals.c (gdb_signal_from_host): Reorder to separate
3296 the always-available ANSI-standard signals from the signals that
3298 (do_gdb_signal_to_host): Likewise.
3299 * proc-events.c (signal_table): Likewise.
3301 2014-06-08 Hui Zhu <hui@codesourcery.com>
3303 * common/linux-ptrace.c (linux_disable_event_reporting): New
3305 * common/linux-ptrace.h (linux_disable_event_reporting): New
3307 * linux-nat.c (linux_child_follow_fork): Do a single step before
3310 2014-06-07 Keith Seitz <keiths@redhat.com>
3314 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3315 from symbol_matches_domain in symtab.c. All local callers
3316 of symbol_matches_domain updated.
3317 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3318 search STRUCT_DOMAIN.
3319 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3320 independently. standard_lookup will do that automatically.
3321 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3322 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3323 (cp_lookup_symbol_in_namespace): Likewise.
3324 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3325 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3326 may return a STRUCT_DOMAIN match.
3327 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3328 * cp-support.c: Include language.h.
3329 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3331 * psymtab.c (match_partial_symbol): Compare the requested
3332 domain with the symbol's domain directly.
3333 (lookup_partial_symbol): Likewise.
3334 * symtab.c (lookup_symbol_in_language): Explain when/why
3335 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3336 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3337 appropriate languages.
3338 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3339 and moved to ada-lang.c
3340 (lookup_block_symbol): Explain that this function only returns
3341 symbol matching the requested DOMAIN.
3342 Compare the requested domain with the symbol's domain directly.
3343 (iterate_over_symbols): Compare the requested domain with the
3344 symbol's domain directly.
3345 * symtab.h (symbol_matches_domain): Remove.
3347 2014-06-06 Doug Evans <xdje42@gmail.com>
3349 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3350 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3351 (gdbscm_guile_version_is_at_least): Declare.
3352 (gdbscm_scm_string_to_int): Declare.
3353 * guile/guile.c (gdbscm_guile_major_version): New global.
3354 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3355 (guile_datadir): New static global.
3356 (gdbscm_guile_data_directory): New function.
3357 (initialize_scheme_side): Update.
3358 (misc_guile_functions): Add guile-data-directory.
3359 (initialize_gdb_module): Fetch guile version number.
3360 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3361 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3362 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3363 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3365 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3366 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3367 * guile/scm-value.c (gdbscm_value_to_string): Only call
3368 scm_port_conversion_strategy if Guile version >= 2.0.6.
3370 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3372 * main.c (print_gdb_help): Add -q and --silent.
3374 2014-06-06 Gary Benson <gbenson@redhat.com>
3376 * common/signals.c: Remove preprocessor conditionals for
3377 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3378 SIGSEGV and SIGTERM.
3379 * proc-events.c: Likewise.
3381 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3383 * symfile.c (symfile_free_objfile): Remove restriction to
3385 * symfile-mem.c (symbol_file_add_from_memory): Call
3386 add_target_sections_of_objfile.
3388 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3390 * guile/scm-value.c (gdbscm_history_append_x): Use
3391 'vlscm_get_value_smob_arg_unsafe' instead of
3392 'vlscm_scm_to_value'.
3394 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3397 * utils.c (printchar): Don't escape at all if quoter is NUL.
3398 Update function documentation to clarify effect of parameter
3400 * remote.c (escape_buffer): Pass '\\' as the quoter to
3401 fputstrn_unfiltered.
3402 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3403 generate the output.
3404 (mi_solib_unloaded): Same.
3406 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3408 * development.sh: Delete.
3409 * Makefile.in (config.status): Adjust dependency on development.sh.
3410 * configure.ac: Adjust development.sh source call.
3411 * configure: Regenerate.
3413 2014-06-04 Doug Evans <xdje42@gmail.com>
3415 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3416 is_scheme_bkpt, spec.
3417 (bpscm_make_breakpoint_smob): Initialize new members.
3418 (gdbscm_create_breakpoint_x): Split into two ...
3419 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3420 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3421 (scheme_function breakpoint_functions): Update.
3422 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3423 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3424 register-breakpoint!.
3426 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3429 * mem-break.c (z_type_supported): Return zero if
3430 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3432 2014-06-04 Tom Tromey <tromey@redhat.com>
3434 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3435 value_from_contents_and_address_unresolved.
3436 (ada_template_to_fixed_record_type_1): Likewise.
3437 (ada_which_variant_applies): Likewise.
3438 * value.h (value_from_contents_and_address_unresolved): Declare.
3439 * value.c (value_from_contents_and_address_unresolved): New
3441 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3442 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3443 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3445 2014-06-04 Tom Tromey <tromey@redhat.com>
3447 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3449 2014-06-04 Tom Tromey <tromey@redhat.com>
3451 * procfs.c (procfs_attach): Make "args" const.
3452 * windows-nat.c (windows_attach): Make "args" const.
3453 * nto-procfs.c (procfs_attach): Make "args" const.
3454 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3455 * go32-nat.c (go32_attach): Make "args" const.
3456 * gnu-nat.c (gnu_attach): Make "args" const.
3457 * darwin-nat.c (darwin_attach): Make "args" const.
3458 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3459 * linux-nat.c (linux_nat_attach): Make "args" const.
3460 * remote.c (extended_remote_attach_1, extended_remote_attach):
3462 * target.h (struct target_ops) <to_attach>: Make "args" const.
3463 (find_default_attach): Likewise.
3464 * utils.c (parse_pid_to_attach): Make "args" const.
3465 * utils.h (parse_pid_to_attach): Update.
3467 2014-06-04 Tom Tromey <tromey@redhat.com>
3469 * target-delegates.c: Rebuild.
3470 * target.c (default_thread_address_space): New function.
3471 (target_thread_address_space): Simplify.
3472 * target.h (struct target_ops) <to_thread_address_space>: Add
3473 TARGET_DEFAULT_FUNC.
3475 2014-06-04 Doug Evans <xdje42@gmail.com>
3477 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3479 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3481 * record-btrace.c: Include event-loop.h and inf-loop.h.
3482 (record_btrace_resume_exec_dir)
3483 (record_btrace_async_inferior_event_handler)
3484 (record_btrace_handle_async_inferior_event): New.
3485 (record_btrace_open): Create async event handler.
3486 (record_btrace_close): Delete async event handler.
3487 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3488 Mark async event handler.
3489 (record_btrace_execution_direction): New.
3490 (init_record_btrace_ops): Initialize to_execution_direction.
3492 2014-06-03 Doug Evans <xdje42@gmail.com>
3494 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3495 (gdbscm_make_parameter): Ditto.
3497 2014-06-03 Doug Evans <dje@google.com>
3499 * exec.c (exec_close_1): Call clear_section_table instead of
3500 resize_section_table.
3501 (clear_section_table): New function.
3502 (resize_section_table): Make static. Rename arg num_added to
3504 * exec.h (clear_section_table): Declare.
3505 (resize_section_table): Delete.
3506 * progspace.c (release_program_space): Call clear_section_table
3507 instead of resize_section_table.
3509 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3511 * NEWS (Python Scripting): Add entry about the new xmethods
3514 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3516 * python/py-xmethods.c: New file.
3517 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3518 (objfpy_dealloc): XDECREF on the new xmethods field.
3519 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3521 (objfpy_get_xmethods): New function.
3522 (objfile_getset): New entry 'xmethods'.
3523 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3524 (pspy_dealloc): XDECREF on the new xmethods field.
3525 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3527 (pspy_get_xmethods): New function.
3528 (pspace_getset): New entry 'xmethods'.
3529 * python/python-internal.h: Add declarations for new functions.
3530 * python/python.c (_initialize_python): Invoke
3531 gdbpy_initialize_xmethods.
3532 * python/lib/gdb/__init__.py (xmethods): New
3534 * python/lib/gdb/xmethod.py: New file.
3535 * python/lib/gdb/command/xmethods.py: New file.
3537 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3539 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3540 best match method returned by find_overload_match is an xmethod.
3541 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3542 the best matching operator returned by find_overload_match is an
3544 * valops.c: #include "extension.h".
3545 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3546 Return void. The list of matching source methods is returned in
3547 "fn_list" and a vector of matching debug method workers is
3548 returned in "xm_worker_vec". Update all callers.
3549 (value_find_oload_method_list): Likewise.
3550 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3551 non-NULL, then the index of the best matching method in this
3552 vector is returned. Update all callers.
3553 (find_overload_match): Include xmethods while performing overload
3556 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3558 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3559 * extension-priv.h (struct extension_language_ops): Add the
3561 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3562 get_matching_xmethod_workers, get_xmethod_argtypes,
3563 invoke_xmethod, free_xmethod_worker,
3564 free_xmethod_worker_vec): New functions.
3565 * extension.h: #include "common/vec.h".
3566 New function declarations.
3567 (struct xmethod_worker): New struct.
3568 (VEC (xmethod_worker_ptr)): New vector type.
3569 (xmethod_worker_ptr): New typedef.
3570 (xmethod_worker_vec): Likewise.
3571 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3573 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3574 (struct builtin_type): New field "xmethod".
3575 * valarith.c (value_ptradd): Assert that the value argument is not
3577 * valops.c (value_must_coerce_to_target): Return 0 for
3578 lval_xcallable values.
3579 * value.c (struct value): New field XM_WORKER in the field
3581 (value_address, value_raw_address): Return 0 for lval_xcallable
3583 (set_value_address): Assert that the value is not an
3585 (value_free): Free the associated xmethod worker when freeing
3586 lval_xcallable values.
3587 (set_value_component_location): Assert that the WHOLE value is not
3589 (value_of_xmethod, call_xmethod): New functions.
3590 * value.h: Declare "struct xmethod_worker".
3591 Declare new functions value_of_xmethod, call_xmethod.
3593 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3594 Pedro Alves <palves@redhat.com>
3596 PR breakpoints/17000
3597 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3598 New function, extracted from software_breakpoint_inserted_here_p.
3599 (software_breakpoint_inserted_here_p): Replace factored out code
3600 by call to find_non_raw_software_breakpoint_inserted_here.
3601 (bp_target_info_copy_insertion_state): New function.
3602 (bkpt_insert_location): Handle the case of a single-step
3603 breakpoint already inserted at the same address.
3604 (bkpt_remove_location): Handle the case of a single-step
3605 breakpoint still inserted at the same address.
3606 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3607 breakpoint already inserted at the same address.
3608 (deprecated_remove_raw_breakpoint): Handle the case of a
3609 non-raw breakpoint still inserted at the same address.
3610 (find_single_step_breakpoint): New function, extracted from
3611 single_step_breakpoint_inserted_here_p.
3612 (find_single_step_breakpoint): New function,
3613 factored out from single_step_breakpoint_inserted_here_p.
3614 (single_step_breakpoint_inserted_here_p): Reimplement.
3616 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3618 Pushed by Joel Brobecker <brobecker@adacore.com>
3619 * source.c (show_substitute_path_command): Fix display of matching
3622 2014-06-03 Gary Benson <gbenson@redhat.com>
3624 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3626 2014-06-02 Doug Evans <xdje42@gmail.com>
3628 Add parameter support for Guile.
3629 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3630 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3631 (scm-param.o): New rule.
3632 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3633 (gdbscm_misc_error): Declare.
3634 (gdbscm_canonicalize_command_name): Declare.
3635 (gdbscm_scm_to_host_string): Declare.
3636 (gdbscm_scm_from_host_string): Declare.
3637 (gdbscm_initialize_parameters): Declare.
3638 * guile/guile.c (initialize_gdb_module): Call
3639 gdbscm_initialize_parameters.
3640 * guile/lib/gdb.scm: Export parameter symbols.
3641 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3642 cmdscm_canonicalize_name and made public. All callers updated.
3643 * guile/scm-exception.c (gdbscm_misc_error): New function.
3644 * guile/scm-param.c: New file.
3645 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3646 (gdbscm_scm_to_host_string): New function.
3647 (gdbscm_scm_from_host_string): New function.
3648 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3650 2014-06-02 Doug Evans <xdje42@gmail.com>
3652 Add command support for Guile.
3653 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3654 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3655 (scm-cmd.o): New rule.
3656 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3657 (gdbscm_user_error_p): Declare.
3658 (gdbscm_parse_command_name): Declare.
3659 (gdbscm_valid_command_class_p): Declare.
3660 (gdbscm_initialize_commands): Declare.
3661 * guile/guile.c (initialize_gdb_module): Call
3662 gdbscm_initialize_commands.
3663 * guile/lib/gdb.scm: Export command symbols.
3664 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3665 (throw-user-error): New function.
3666 * guile/scm-cmd.c: New file.
3667 * guile/scm-exception.c (user_error_symbol): New static global.
3668 (gdbscm_user_error_p): New function.
3669 (gdbscm_initialize_exceptions): Set user_error_symbol.
3670 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3672 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3674 * top.c (command_loop): Handle comments here...
3675 (command_line_input): ... not here.
3677 2014-06-02 Doug Evans <xdje42@gmail.com>
3679 Add progspace support for Guile.
3680 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3681 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3682 (scm-progspace.o): New rule.
3683 * guile/guile-internal.h (pspace_smob): New typedef.
3684 (psscm_pspace_smob_pretty_printers): Declare.
3685 (psscm_pspace_smob_from_pspace): Declare.
3686 (psscm_scm_from_pspace): Declare.
3687 * guile/guile.c (initialize_gdb_module): Call
3688 gdbscm_initialize_pspaces.
3689 * guile/lib/gdb.scm: Export progspace symbols.
3690 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3692 (append-pretty-printer!): Ditto.
3693 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3695 * guile/scm-progspace.c: New file.
3697 2014-06-03 Alan Modra <amodra@gmail.com>
3699 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3700 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3702 2014-06-02 Doug Evans <dje@google.com>
3704 Add support for skeletonless type units.
3705 * dwarf2read.c (struct dwarf2_per_objfile): New member
3706 n_allocated_type_units.
3707 (struct dwarf2_per_objfile) <tu_stats>: New member
3708 nr_all_type_units_reallocs.
3709 (create_signatured_type_table_from_index): Initialize
3710 n_allocated_type_units
3711 (create_all_type_units): Ditto.
3712 (add_type_unit): Move up in file. New arg slot.
3713 All callers updated. Increase space for all_type_units more
3715 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3716 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3717 (lookup_dwp_signatured_type): Ditto.
3718 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3719 All callers updated.
3720 (build_type_psymtabs_1): Leave type_unit_groups as
3721 NULL if no TUs present.
3722 (print_tu_stats): New function.
3723 (process_skeletonless_type_unit): New function.
3724 (process_dwo_file_for_skeletonless_type_units): New
3726 (process_skeletonless_type_units): New function.
3727 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3728 Call print tu_stats if debugging enabled.
3730 2014-06-02 Pedro Alves <palves@redhat.com>
3732 * breakpoint.c (build_target_command_list): Don't build a command
3733 list if we have any duplicate location that isn't a dprintf.
3735 2014-06-02 Pedro Alves <palves@redhat.com>
3737 * breakpoint.c (dprintf_breakpoint_hit): New function.
3738 (initialize_breakpoint_ops): Install it as dprintf's
3739 breakpoint_hit method.
3741 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3743 * source.c (substitute_path_rule_matches): Simplify using
3744 filename_ncmp instead of FILENAME_CMP.
3746 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3748 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3750 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3752 * configure.ac: When Guile is available, check for the
3753 availability of 'scm_new_smob'.
3754 * configure, config.h.in: Regenerate.
3755 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3758 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3760 * frame.c (struct frame_info): Add stop_string field.
3761 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3762 (get_prev_frame_always): Old content moved into
3763 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3764 TRY_CATCH, handle MEMORY_ERROR exceptions.
3765 (frame_stop_reason_string): New function definition.
3766 * frame.h (unwind_stop_reason_to_string): Extend comment to
3767 mention frame_stop_reason_string.
3768 (frame_stop_reason_string): New function declaration.
3769 * stack.c (frame_info): Switch to frame_stop_reason_string.
3770 (backtrace_command_1): Switch to frame_stop_reason_string.
3771 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3772 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3773 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3775 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3777 * frame.c (frame_stop_reason_string): Rename to ...
3778 (unwind_stop_reason_to_string): this.
3779 * frame.h (frame_stop_reason_string): Rename to ...
3780 (unwind_stop_reason_to_string): this.
3781 * stack.c (frame_info): Update call to frame_stop_reason_string.
3782 (backtrace_command_1): Likewise.
3783 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3784 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3786 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3788 * frame.c (remove_prev_frame): New function.
3789 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3792 2014-05-29 Pedro Alves <palves@redhat.com>
3794 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3795 and make it const. When a single-step decays to a continue,
3796 clear 'step', not 'hw_step'. Pass whether the caller wanted
3797 to step to user_visible_resume_ptid, not what we ask the
3800 2014-05-29 Pedro Alves <palves@redhat.com>
3802 * infrun.c (process_event_stop_test, handle_step_into_function)
3803 (handle_step_into_function_backward): Adjust.
3804 Don't set the even thread's stop_step and call stop_waiting before
3805 calling end_stepping_range. Instead do that ...
3806 (end_stepping_range): ... here. Take an ecs pointer parameter.
3808 2014-05-29 Pedro Alves <palves@redhat.com>
3810 * infrun.c (stop_stepping): Rename to ...
3811 (stop_waiting): ... this.
3812 (proceed): Update comment.
3813 (process_event_stop_test, handle_inferior_event)
3814 (handle_signal_stop, handle_step_into_function)
3815 (handle_step_into_function_backward): Update.
3817 2014-05-29 Pedro Alves <palves@redhat.com>
3819 * infcall.c (run_inferior_call): Don't check whether the current
3820 thread is running after the proceed call.
3822 2014-05-29 Pedro Alves <palves@redhat.com>
3823 Tom Tromey <tromey@redhat.com>
3825 * NEWS: Mention "maint set target-async", "set mi-async", and that
3826 background execution commands are now always available.
3827 * target.h (target_async_permitted): Update comment.
3828 * target.c (target_async_permitted, target_async_permitted_1):
3830 (set_target_async_command): Rename to ...
3831 (maint_set_target_async_command): ... this.
3832 (show_target_async_command): Rename to ...
3833 (maint_show_target_async_command): ... this.
3834 (_initialize_target): Adjust.
3835 * infcmd.c (prepare_execution_command): Make extern.
3836 * inferior.h (prepare_execution_command): Declare.
3837 * infrun.c (set_observer_mode): Leave target async alone.
3838 * mi/mi-interp.c (mi_interpreter_init): Install
3839 mi_on_sync_execution_done as sync_execution_done observer.
3840 (mi_on_sync_execution_done): New function.
3841 (mi_execute_command_input_handler): Don't print the prompt if we
3842 just started a synchronous command with an async target.
3843 (mi_on_resume): Check sync_execution before printing prompt.
3844 * mi/mi-main.h (mi_async_p): Declare.
3845 * mi/mi-main.c: Include gdbcmd.h.
3846 (mi_async_p): New function.
3847 (mi_async, mi_async_1): New globals.
3848 (set_mi_async_command, show_mi_async_command, mi_async): New
3850 (exec_continue): Call prepare_execution_command.
3851 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3852 (mi_execute_async_cli_command): Use mi_async_p.
3853 (_initialize_mi_main): Install "set mi-async". Make
3854 "target-async" a deprecated alias.
3856 2014-05-29 Pedro Alves <palves@redhat.com>
3858 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3859 (_initialize_cli_interp): Adjust.
3860 * event-loop.c: Include "observer.h".
3861 (start_event_loop): Notify 'command_error' observers instead of
3862 calling display_gdb_prompt. Remove FIXME comment.
3863 * event-top.c (display_gdb_prompt): Remove call into the
3865 * inf-loop.c: Include "observer.h".
3866 (inferior_event_handler): Notify 'command_error' observers instead
3867 of calling display_gdb_prompt.
3868 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3869 observers instead of calling display_gdb_prompt.
3870 * interps.c (interp_set): Don't call display_gdb_prompt.
3871 (current_interp_display_prompt_p): Delete.
3872 * interps.h (interp_prompt_p): Delete declaration.
3873 (interp_prompt_p_ftype): Delete.
3874 (struct interp_procs) <prompt_proc_p>: Delete field.
3875 (current_interp_display_prompt_p): Delete declaration.
3876 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3877 (_initialize_mi_interp): Adjust.
3878 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3879 'command_error' observers.
3880 (tui_on_sync_execution_done, tui_on_command_error): New
3882 (tui_display_prompt_p): Delete.
3883 (_initialize_tui_interp): Adjust.
3885 2014-05-29 Pedro Alves <palves@redhat.com>
3888 * cli/cli-interp.c: Include infrun.h and observer.h.
3889 (cli_uiout, cli_interp): New globals.
3890 (cli_on_signal_received, cli_on_end_stepping_range)
3891 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3893 (cli_interpreter_init): Install them as 'end_stepping_range',
3894 'signal_received' 'signal_exited', 'exited' and 'no_history'
3896 (_initialize_cli_interp): Remove cli_interp local.
3897 * infrun.c (handle_inferior_event): Call the several stop reason
3898 observers instead of printing the stop reason directly.
3899 (end_stepping_range): New function.
3900 (print_end_stepping_range_reason, print_signal_exited_reason)
3901 (print_exited_reason, print_signal_received_reason)
3902 (print_no_history_reason): Make static, and add an uiout
3903 parameter. Print to that instead of to CURRENT_UIOUT.
3904 * infrun.h (print_end_stepping_range_reason)
3905 (print_signal_exited_reason, print_exited_reason)
3906 (print_signal_received_reason print_no_history_reason): New
3908 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3910 <cli_uiout>: New field.
3911 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3912 uiout for CLI output. Install 'signal_received',
3913 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3915 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3916 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3917 (mi_on_no_history): New functions.
3918 (ui_out_free_cleanup): Delete function.
3919 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3920 instead use the one already stored in the MI interpreter data.
3921 (mi_ui_out): Adjust.
3922 * tui/tui-interp.c: Include infrun.h and observer.h.
3923 (tui_interp): New global.
3924 (tui_on_signal_received, tui_on_end_stepping_range)
3925 (tui_on_signal_exited, tui_on_exited)
3926 (tui_on_no_history): New functions.
3927 (tui_init): Install them as 'end_stepping_range',
3928 'signal_received' 'signal_exited', 'exited' and 'no_history'
3930 (_initialize_tui_interp): Delete tui_interp local.
3932 2014-05-29 Pedro Alves <palves@redhat.com>
3935 * linux-nat.c (linux_nat_resume_callback): Rename the second
3936 parameter to 'except'. Skip LP if it points to EXCEPT.
3937 (linux_nat_resume): Don't mark the event lwp as not stopped
3938 before resuming sibling lwps. Instead ask
3939 linux_nat_resume_callback to skip the event lwp. Mark it as not
3940 stopped after actually resuming it.
3941 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3943 (wait_lwp): Mark the lwp as stopped here.
3944 (stop_wait_callback): Mark the lwp as not stopped right after
3945 resuming it. Don't mark lwps as stopped here.
3946 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3947 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3949 2014-05-29 Pedro Alves <palves@redhat.com>
3952 * infrun.c (resume): Determine how much to resume depending on
3953 whether the caller wanted a step, not whether we can hardware step
3954 the target. Mark all threads that we intend to run as running,
3955 unless we're calling an inferior function.
3956 (normal_stop): If the thread is running an infcall, don't finish
3958 * target.c (target_resume): Don't mark threads as running here.
3960 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3962 * serial.c (_initialize_serial): Remove support for
3963 the "set remotebaud" and "show remotebaud" commands.
3964 * NEWS: Add entry documenting the removal of that command.
3966 2014-05-28 Yao Qi <yao@codesourcery.com>
3968 * charset.c: Fix typo in comments.
3970 2014-05-27 Gary Benson <gbenson@redhat.com>
3972 * utils.c (internal_vproblem): Prompt for a bug report.
3974 2014-05-26 Andy Wingo <wingo@igalia.com>
3976 * guile/scm-arch.c (arscm_mark_arch_smob):
3977 * guile/scm-block.c (bkscm_mark_block_smob)
3978 (bkscm_mark_block_syms_progress_smob):
3979 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3980 * guile/scm-exception.c (exscm_mark_exception_smob):
3981 * guile/scm-frame.c (frscm_mark_frame_smob):
3982 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3983 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3984 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3985 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3986 (ppscm_mark_pretty_printer_worker_smob):
3987 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3988 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3989 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3990 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3992 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3995 2014-05-26 Andy Wingo <wingo@igalia.com>
3996 Doug Evans <xdje42@gmail.com>
3998 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3999 empty_base_class. All uses updated.
4000 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4001 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4003 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4004 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4005 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4006 (gdbscm_gsmob_has_property_p, add_property_name)
4007 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4008 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4009 (gdb-object-has-property?, gdb-object-properties): Remove.
4010 (gdb-object-kind): Renamed from gsmob-kind.
4012 2014-05-26 Andy Wingo <wingo@igalia.com>
4014 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4015 * configure: Regenerate.
4017 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4019 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4021 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4023 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4024 (replay_memory_access_read_only, replay_memory_access_read_write)
4025 (replay_memory_access_types, replay_memory_access)
4026 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4027 (cmd_set_record_btrace, cmd_show_record_btrace)
4028 (cmd_show_replay_memory_access): New.
4029 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4030 (record_btrace_remove_breakpoint): Replace
4031 record_btrace_allow_memory_access with replay_memory_access.
4032 (_initialize_record_btrace): Add commands.
4033 * NEWS: Announce it.
4035 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4037 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4039 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4041 * MAINTAINERS (Write After Approval): Move self back from
4044 2014-05-22 Pedro Alves <palves@redhat.com>
4046 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4047 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4048 (disable_randomization, enum exec_direction_kind)
4049 (execution_direction, stop_registers, start_remote)
4050 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4051 (wait_for_inferior, normal_stop, get_last_target_status)
4052 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4053 (insert_step_resume_breakpoint_at_sal)
4054 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4055 (set_step_info, print_stop_event, signal_stop_state)
4056 (signal_print_state, signal_pass_state, signal_stop_update)
4057 (signal_print_update, signal_pass_update)
4058 (update_signals_program_target, clear_exit_convenience_vars)
4059 (displaced_step_dump_bytes, update_observer_mode)
4060 (signal_catch_update, gdb_signal_from_command): Move
4062 * infrun.h: ... to this new file.
4063 * amd64-tdep.c: Include infrun.h.
4064 * annotate.c: Include infrun.h.
4065 * arch-utils.c: Include infrun.h.
4066 * arm-linux-tdep.c: Include infrun.h.
4067 * arm-tdep.c: Include infrun.h.
4068 * break-catch-sig.c: Include infrun.h.
4069 * breakpoint.c: Include infrun.h.
4070 * common/agent.c: Include infrun.h instead of inferior.h.
4071 * corelow.c: Include infrun.h.
4072 * event-top.c: Include infrun.h.
4073 * go32-nat.c: Include infrun.h.
4074 * i386-tdep.c: Include infrun.h.
4075 * inf-loop.c: Include infrun.h.
4076 * infcall.c: Include infrun.h.
4077 * infcmd.c: Include infrun.h.
4078 * infrun.c: Include infrun.h.
4079 * linux-fork.c: Include infrun.h.
4080 * linux-nat.c: Include infrun.h.
4081 * linux-thread-db.c: Include infrun.h.
4082 * monitor.c: Include infrun.h.
4083 * nto-tdep.c: Include infrun.h.
4084 * procfs.c: Include infrun.h.
4085 * record-btrace.c: Include infrun.h.
4086 * record-full.c: Include infrun.h.
4087 * remote-m32r-sdi.c: Include infrun.h.
4088 * remote-mips.c: Include infrun.h.
4089 * remote-notif.c: Include infrun.h.
4090 * remote-sim.c: Include infrun.h.
4091 * remote.c: Include infrun.h.
4092 * reverse.c: Include infrun.h.
4093 * rs6000-tdep.c: Include infrun.h.
4094 * s390-linux-tdep.c: Include infrun.h.
4095 * solib-irix.c: Include infrun.h.
4096 * solib-osf.c: Include infrun.h.
4097 * solib-svr4.c: Include infrun.h.
4098 * target.c: Include infrun.h.
4099 * top.c: Include infrun.h.
4100 * windows-nat.c: Include infrun.h.
4101 * mi/mi-interp.c: Include infrun.h.
4102 * mi/mi-main.c: Include infrun.h.
4103 * python/py-threadevent.c: Include infrun.h.
4105 2014-05-22 Pedro Alves <palves@redhat.com>
4107 * infrun.c (handle_inferior_event): Store the exit code for
4108 --return-child-result here, instead of ...
4109 (print_exited_reason): ... here.
4111 2014-05-21 Pedro Alves <palves@redhat.com>
4114 * gdbthread.h (struct thread_control_state): New field
4116 * infrun.c (follow_fork): Copy the new thread control field to the
4118 (clear_proceed_status_thread): Clear the new thread control field.
4119 (proceed): Set the new thread control field.
4120 * interps.h (command_interp): Declare.
4121 * interps.c (command_interpreter): New global.
4122 (command_interp): New function.
4123 (interp_exec): Set `command_interpreter' while here.
4124 * cli-out.c (cli_uiout_dtor): New function.
4125 (cli_ui_out_impl): Install it.
4126 * mi/mi-interp.c: Include cli-out.h.
4127 (mi_cmd_interpreter_exec): Add comment.
4128 (restore_current_uiout_cleanup): New function.
4129 (ui_out_free_cleanup): New function.
4130 (mi_on_normal_stop): If finishing an execution command started by
4131 a CLI command, or any kind of breakpoint-like event triggered,
4132 print the stop event to the output (CLI) stream.
4133 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4135 2014-05-21 Pedro Alves <palves@redhat.com>
4137 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4138 current source line having changed.
4139 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4140 * infrun.c (normal_stop): Adjust call to
4141 set_current_sal_from_frame.
4142 * source.c (clear_lines_listed_range): New function.
4143 (set_current_source_symtab_and_line, identify_source_line): Clear
4144 the lines listed range.
4145 (line_info): Handle the first "info line" after the current source
4146 line having changed.
4147 * stack.c (print_stack_frame): Remove center handling.
4148 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4151 2014-05-21 Pedro Alves <palves@redhat.com>
4153 * inf-child.c (inf_child_mourn_inferior): New function.
4154 * inf-child.h (inf_child_mourn_inferior): New declaration.
4155 * darwin-nat.c (darwin_mourn_inferior): Use
4156 inf_child_mourn_inferior.
4157 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4158 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4159 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4160 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4161 * windows-nat.c (windows_mourn_inferior): Likewise.
4163 2014-05-21 Doug Evans <xdje42@gmail.com>
4165 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4167 2014-05-21 Doug Evans <xdje42@gmail.com>
4169 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4170 (gdbscm_out_of_range_error): Ditto.
4171 (gdbscm_memory_error): Ditto.
4172 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4173 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4174 (gdbscm_out_of_range_error): Update.
4175 (gdbscm_memory_error): Update.
4176 (gdbscm_scm_to_target_string_unsafe): Delete.
4178 2014-05-21 Pedro Alves <palves@redhat.com>
4180 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4182 (inf_child_open_target): New function.
4183 (inf_child_open): Use inf_child_open_target to push the target
4184 instead of erroring out.
4185 (inf_child_disconnect, inf_child_close)
4186 (inf_child_maybe_unpush_target): New functions.
4187 (inf_child_target): Install inf_child_disconnect and
4188 inf_child_close. Store a pointer to the returned object.
4189 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4191 * target.c (auto_connect_native_target): New global.
4192 (show_default_run_target): New function.
4193 (find_default_run_target): Return NULL if automatically connecting
4194 to the native target is disabled.
4195 (_initialize_target): Install set/show auto-connect-native-target.
4196 * NEWS: Mention "set auto-connect-native-target", and "target
4198 * linux-nat.c (super_close): New global.
4199 (linux_nat_close): Call super_close.
4200 (linux_nat_add_target): Store a pointer to the base class's
4202 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4203 inf_child_maybe_unpush.
4204 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4206 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4207 the inferior. Use inf_child_maybe_unpush_target.
4208 (inf_ttrace_attach): Don't push the target if it is already
4210 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4211 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4212 after mourning the inferior. Use inf_child_maybe_unpush_target.
4213 (darwin_attach_pid): Don't push the target if it is already
4215 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4216 mourning the inferior. Use inf_child_maybe_unpush_target.
4217 (gnu_detach): Use inf_child_maybe_unpush_target.
4218 * go32-nat.c (go32_create_inferior): Don't push the target if it
4220 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4221 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4222 (procfs_open): Rename to ...
4223 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4224 comments. Can target_preopen before changing node. Call
4225 inf_child_open_target to push the target explicitly.
4226 (procfs_attach): Don't push the target if it is already pushed.
4227 (procfs_detach): Use inf_child_maybe_unpush_target.
4228 (procfs_create_inferior): Don't push the target if it is already
4230 (nto_native_ops): New global.
4231 (procfs_open): Reimplement.
4232 (procfs_native_open): New function.
4233 (init_procfs_targets): Install procfs_native_open as to_open of
4234 "target native". Store a pointer to the "native" target in
4236 * procfs.c (procfs_attach): Don't push the target if it is already
4238 (procfs_detach): Use inf_child_maybe_unpush_target.
4239 (procfs_mourn_inferior): Only unpush the target after mourning the
4240 inferior. Use inf_child_maybe_unpush_target.
4241 (procfs_init_inferior): Don't push the target if it is already
4243 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4244 if it is already pushed.
4246 2014-05-21 Pedro Alves <palves@redhat.com>
4248 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4249 and "procfs" targets are now called "native" instead.
4251 2014-05-21 Pedro Alves <palves@redhat.com>
4253 * go32-nat.c (go32_open): Delete.
4254 (go32_target): Don't override the to_open method.
4256 2014-05-21 Pedro Alves <palves@redhat.com>
4258 * nto-procfs.c (procfs_can_run): New function.
4259 (nto_procfs_ops): New global.
4260 (init_procfs_targets): New, based on procfs_target. Install
4261 "target native" in addition to "target procfs".
4262 (_initialize_procfs): Call init_procfs_targets instead of adding
4265 2014-05-21 Pedro Alves <palves@redhat.com>
4267 * windows-nat.c (windows_target): Don't override to_shortname,
4268 to_longname or to_doc.
4270 2014-05-21 Pedro Alves <palves@redhat.com>
4272 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4275 2014-05-21 Pedro Alves <palves@redhat.com>
4277 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4278 to_shortname, to_longname or to_doc.
4280 2014-05-21 Pedro Alves <palves@redhat.com>
4282 * go32-nat.c (go32_target): Don't override to_shortname,
4283 to_longname or to_doc.
4285 2014-05-21 Pedro Alves <palves@redhat.com>
4287 * inf-child.c (inf_child_open): Remove mention of "child".
4288 (inf_child_target): Rename target to "native" instead of "child".
4290 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4292 * Makefile.in (SFILES): Delete "regset.c".
4293 (COMMON_OBS): Delete "regset.o".
4295 * regset.h (regset_alloc): Delete prototype.
4297 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4299 * sparc-linux-tdep.c (sparc32_linux_gregset)
4300 (sparc32_linux_fpregset): New static regset structures.
4301 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4302 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4304 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4305 (sparc64_linux_fpregset): New static regset structures.
4306 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4307 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4308 New static regset structures.
4309 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4310 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4311 New static regset structures.
4312 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4313 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4314 New static regset structures.
4315 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4316 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4317 New static regset structures.
4318 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4320 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4322 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4323 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4324 register maps ("regmaps") from "*regset" to "*regmap". Do this
4325 for all regmap types and variables.
4326 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4327 (sparc32_linux_supply_core_gregset)
4328 (sparc32_linux_collect_core_gregset)
4329 (sparc32_linux_supply_core_fpregset)
4330 (sparc32_linux_collect_core_fpregset): Likewise.
4331 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4332 (sparc_gregmap, sparc_fpregmap): ... these.
4333 (sparc_supply_gregset, sparc_collect_gregset)
4334 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4335 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4336 (_initialize_sparc_nat): Rename regmaps.
4337 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4338 (sparc_gregmap, sparc_fpregmap): ... these.
4339 (sparc_supply_gregset, sparc_collect_gregset)
4340 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4341 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4343 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4344 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4346 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4348 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4349 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4350 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4352 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4353 (sparc32_bsd_fpregset): Rename to...
4354 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4355 (sparc32_bsd_fpregmap): ... these.
4356 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4357 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4358 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4359 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4360 (struct sparc_gregmap, struct sparc_fpregmap)
4361 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4362 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4363 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4364 (sparc32_supply_regset, sparc32_collect_gregset)
4365 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4367 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4368 (sparc64_linux_ptrace_gregmap): ... this.
4369 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4370 (_initialize_sparc64_linux_nat): Rename regmaps.
4371 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4372 (sparc64_linux_core_gregmap): ... this.
4373 (sparc64_linux_supply_core_gregset)
4374 (sparc64_linux_collect_core_gregset)
4375 (sparc64_linux_supply_core_fpregset)
4376 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4377 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4378 (sparc64_sol2_fpregset): Rename to...
4379 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4380 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4381 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4383 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4384 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4385 (sparc64_bsd_fpregset): Rename to...
4386 (struct sparc_gregmap, sparc64_sol2_gregmap)
4387 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4388 (sparc64_bsd_fpregmap): ... these.
4389 (sparc64_supply_gregset, sparc64_collect_gregset)
4390 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4392 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4393 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4394 (sparc64fbsd_gregmap): ... this.
4395 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4396 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4398 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4399 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4400 (sparc64nbsd_collect_fpregset): Likewise.
4401 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4402 (sparc64nbsd_gregmap): ... this.
4403 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4405 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4406 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4407 (sparc64obsd_gregmap): ... this.
4408 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4410 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4411 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4412 (sparc32nbsd_gregmap): ... this.
4413 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4416 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4418 * score-tdep.c (score7_linux_gregset): New static regset
4420 (score7_linux_regset_from_core_section): Remove dynamic regset
4422 (score_gdbarch_init): Drop allocation of tdep structure.
4423 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4425 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4427 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4429 (am33_regset_from_core_section): Remove dynamic regset
4432 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4434 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4435 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4437 (mips_linux_regset_from_core_section): Remove dynamic regset
4439 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4440 'gregset64', 'fpregset', and 'fpregset64'.
4441 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4442 deleted tdep fields.
4444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4446 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4448 (amd64_regset_from_core_section): Remove dynamic regset
4450 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4452 (amd64obsd_regset_from_core_section): Remove dynamic regset
4454 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4456 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4457 x86-common regset supply function.
4458 * i386-tdep.c (i386_collect_gregset): Make static.
4459 (i386_gregset): New global regset structure.
4460 (i386_fpregset, i386_xstateregset): New static regset structures.
4461 (i386_regset_from_core_section): Remove dynamic regset
4463 (i386_gdbarch_init): Remove initialization of tdep fields
4464 'gregset', 'fpregset', and 'xstateregset'.
4465 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4466 'fpregset', and 'xstateregset'.
4467 (i386_collect_gregset): Remove prototype.
4468 (i386_gregset): New declaration.
4469 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4471 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4474 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4476 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4477 (arm_linux_vfpregset): New static regset structures.
4478 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4480 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4481 and 'vfpregset' fields.
4483 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4485 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4486 (aarch64_linux_fpregset): New static regset structures.
4487 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4488 of regset structures.
4489 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4492 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4494 * regset.h (struct regset): Remove gdbarch field.
4495 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4496 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4497 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4499 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4500 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4501 (ppc32_linux_vsxregset): Likewise.
4502 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4503 via the regcache instead of the regset.
4504 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4505 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4506 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4507 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4510 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4512 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4513 Constify structures.
4514 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4515 (alphanbsd_aout_gregset): Likewise.
4516 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4517 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4519 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4520 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4522 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4523 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4524 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4525 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4526 * m88k-tdep.c (m88k_gregset): Likewise.
4527 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4528 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4529 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4530 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4531 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4532 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4533 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4534 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4535 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4537 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4538 * sh-tdep.h (sh_corefile_gregset): Likewise.
4539 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4540 * vax-tdep.c (vax_gregset): Likewise.
4542 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4544 Fix TLS access for -static -pthread.
4545 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4546 (try_thread_db_load_1): Initialize it.
4547 (thread_db_get_thread_local_address): Call it if LM is zero.
4548 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4549 * target.h (struct target_ops) (to_get_thread_local_address): Add
4550 load_module_addr comment.
4552 2014-05-21 Pedro Alves <palves@redhat.com>
4554 * dcache.c (dcache_read_memory_partial): If reading the cache line
4555 fails, fallback to reading just the memory the caller wanted.
4557 2014-05-20 Doug Evans <dje@google.com>
4559 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4560 instead of get_current_arch.
4562 2014-05-20 Pedro Alves <palves@redhat.com>
4564 * NEWS: Mention that compare-sections now works with all targets.
4566 * remote.c (PACKET_qCRC): New enum value.
4567 (remote_verify_memory): Don't send qCRC if the target has no
4568 execution. Use packet_support/packet_ok. If the target doesn't
4569 support the qCRC packet, fallback to a deep memory copy.
4570 (compare_sections_command): Say "target image" instead of "remote
4572 (_initialize_remote): Add PACKET_qCRC to the list of config
4573 packets that have no associated command. Extend comment.
4574 * target.c (simple_verify_memory, default_verify_memory): New
4576 * target.h (struct target_ops) <to_verify_memory>: Default to
4577 default_verify_memory.
4578 (simple_verify_memory): New declaration.
4579 * target-delegates.c: Regenerate.
4581 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4583 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4585 2014-05-20 Hui Zhu <hui@codesourcery.com>
4586 Yao Qi <yao@codesourcery.com>
4589 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4590 and change address of sp and pc.
4592 2014-05-19 Tom Tromey <tromey@redhat.com>
4594 * gdbtypes.c (rank_function): Use XNEWVEC.
4595 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4597 2014-05-19 Doug Evans <dje@google.com>
4599 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4600 build_type_unit_groups and moved closer to only caller. Remove
4601 arguments. All references updated. Remove outdated .gdb_index
4603 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4604 build_type_psymtabs_1.
4606 2014-05-19 Doug Evans <dje@google.com>
4608 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4609 n_type_unit_groups, all_type_unit_groups. All uses removed.
4610 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4611 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4612 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4613 (add_type_unit_group_to_table): Delete.
4615 2014-05-19 Doug Evans <dje@google.com>
4617 * eval.c (evaluate_subexp_standard): Add some comments.
4619 2014-05-17 Doug Evans <xdje42@gmail.com>
4621 * progspace.c (remove_program_space): Delete, unused.
4622 * progspace.h (remove_program_space): Ditto.
4624 2014-05-17 Doug Evans <xdje42@gmail.com>
4626 * inferior.c (prune_inferiors): Fix comment.
4627 (remove_inferior_command): Call prune_program_spaces.
4629 2014-05-16 Doug Evans <dje@google.com>
4631 New command line option -D.
4633 * main.c (set_gdb_data_directory): New function.
4634 (captured_main): Recognize -D. Flag error for --data-directory "".
4635 Call set_gdb_data_directory.
4636 (print_gdb_help): Print --data-directory, -D.
4637 * main.h (set_gdb_data_directory): Declare.
4638 * top.c (staged_gdb_datadir): New static global.
4639 (set_gdb_datadir): Call set_gdb_data_directory
4640 (show_gdb_datadir): New function.
4641 (init_main): Update init of data-directory parameter.
4643 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4645 Import the "dirfd" gnulib module.
4646 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4647 * gnulib/aclocal.m4: Update.
4648 * gnulib/config.in: Update.
4649 * gnulib/configure: Update.
4650 * gnulib/import/Makefile.am: Update.
4651 * gnulib/import/Makefile.in: Update.
4652 * gnulib/import/dirfd.c: New.
4653 * gnulib/import/m4/dirfd.m4: New.
4654 * gnulib/import/m4/gnulib-cache.m4: Update.
4655 * gnulib/import/m4/gnulib-comp.m4: Update.
4657 2014-05-16 Pierre Muller <muller@sourceware.org>
4658 Yao Qi <yao@codesourcery.com>
4660 * valprint.c (print_wchar): Move the code on checking whether
4661 W is a printable wide char to the default branch of switch
4662 statement below. Call wchar_printable instead of gdb_iswprint.
4664 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4666 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4667 ldr.w and ldrd instructions.
4669 2014-05-15 Doug Evans <dje@google.com>
4671 * dwarf2read.c (read_structure_type): Delete outdated comments.
4673 2014-05-14 Tom Tromey <tromey@redhat.com>
4675 * macrocmd.c (print_macro_definition): Reindent.
4677 2014-05-13 Doug Evans <xdje42@gmail.com>
4679 * python/py-cmd.c (cmdpy_completer): Add comment.
4680 (completers): Make const.
4682 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4684 * infrun.c (resume): Remove should_resume (unused). Move up
4685 declaration of resume_ptid.
4687 2014-05-13 Tom Tromey <tromey@redhat.com>
4689 * language.h (unop_type_check): Remove.
4690 (binop_type_check): Don't declare.
4692 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4694 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4695 call to regcache_raw_collect.
4697 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4699 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4700 mi_console->quote as the quoting character.
4702 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4704 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4706 2014-04-29 Tom Tromey <tromey@redhat.com>
4708 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4709 "show debug varobj".
4711 2014-05-07 Kyle McMartin <kyle@redhat.com>
4713 Pushed by Joel Brobecker <brobecker@adacore.com>.
4714 * aarch64-tdep.c (aarch64_software_single_step): New function.
4715 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4716 with aarch64_software_single_step.
4718 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4722 2014-05-05 Keith Seitz <keiths@redhat.com>
4724 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4725 variable or history value is successfully parsed.
4727 2014-05-05 Yao Qi <yao@codesourcery.com>
4728 Pedro Alves <palves@redhat.com>
4730 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4731 address of blocks that intersects the requested range. Trim
4732 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4734 * ctf.c (ctf_xfer_partial): Likewise.
4736 2014-05-05 Yao Qi <yao@codesourcery.com>
4738 * printcmd.c (display_command): Remove the check to
4739 target_has_execution.
4741 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4743 * ppcobsd-nat.c: Include "obsd-nat.h".
4744 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4746 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4748 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4750 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4751 and 16-bit signed and unsigned arguments. Update comment.
4752 (stap_parse_probe_arguments): Extend code to handle such
4753 arguments. Use warning instead of complaint to notify about
4754 unrecognized bitness.
4756 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4758 PR breakpoints/16889
4759 * stap-probe.c (stap_parse_probe_arguments): Simplify
4760 check for non-prefixed probes (i.e., probes whose
4761 arguments do not start with "N@"). Always set the
4762 argument type to a sane value.
4764 2014-05-01 David Taylor <dtaylor@emc.com>
4766 * remote.c (compare_sections_command): Add -r option to compare
4767 all loadable read-only sections.
4769 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4771 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4772 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4774 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4775 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4776 Remove unused CORE_ADDR argument. Update all callers.
4778 2014-04-29 Pedro Alves <palves@redhat.com>
4780 * remote.c (struct packet_config) <detect>: Extend comment.
4781 (add_packet_config_cmd): Don't set the config's detect or support
4783 (init_all_packet_configs): Also initialize the config's 'detect'
4785 (reset_all_packet_configs_support): New function.
4786 (remote_open_1): Call reset_all_packet_configs_support instead of
4787 init_all_packet_configs.
4788 (_initialize_remote): Initialize all packet configs. Assert that
4789 all packets have an associated command, except a few known
4792 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4794 * dwarf2read.c (read_subrange_type): Handle dynamic
4795 DW_AT_lower_bound attributes.
4797 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4799 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4800 dynamic bounds before computing its upper bound.
4801 (ada_discrete_type_low_bound): Same as above with the lower bound.
4803 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4805 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4806 range types. Adjust the array handling implementation to
4807 take advantage of this change.
4808 (resolve_dynamic_range): New function, mostly extracted from
4809 resolve_dynamic_bounds.
4810 (resolve_dynamic_array): New function, mostly extracted from
4811 resolve_dynamic_bounds.
4812 (resolve_dynamic_bounds): Delete.
4813 (resolve_dynamic_type): Reimplement. Add handling of
4814 TYPE_CODE_RANGE types.
4816 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4818 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4819 handling of parallel ___XA types.
4821 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4823 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4824 unnecessary second call to static_unwrap_type.
4826 2014-04-27 Hui Zhu <hui@codesourcery.com>
4828 * stack.c (print_frame_info): Call do_gdb_disassembly with
4829 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4831 2014-04-26 Doug Evans <xdje42@gmail.com>
4833 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4835 2014-04-25 Pedro Alves <palves@redhat.com>
4838 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4839 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4840 and newline from built string.
4841 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4842 (linux_ptrace_attach_fail_reason): ... this.
4843 * linux-nat.c (linux_nat_attach): Adjust to use
4844 linux_ptrace_attach_fail_reason.
4846 2014-04-25 Pedro Alves <palves@redhat.com>
4848 * remote.c (struct remote_state): Remove multi_process_aware,
4849 non_stop_aware, cond_tracepoints, cond_breakpoints,
4850 breakpoint_commands, fast_tracepoints, static_tracepoints,
4851 install_in_trace, disconnected_tracing,
4852 enable_disable_tracepoints, string_tracing, and
4853 augmented_libraries_svr4_read fields.
4854 (remote_multi_process_p): Move further below in the file.
4855 (struct packet_config): Add comments.
4856 (update_packet_config): Delete function.
4857 (show_packet_config_cmd): Use packet_config_support.
4858 (add_packet_config_cmd): Use NULL as set callback.
4859 (packet_ok): "set remote foo-packet"-style commands no longer
4860 change config->supported -- adjust.
4861 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4862 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4863 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4864 (PACKET_QNonStop, PACKET_multiprocess_feature)
4865 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4866 (PACKET_DisconnectedTracing_feature)
4867 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4868 (set_remote_protocol_packet_cmd): Delete function.
4869 (packet_config_support, packet_support): New functions.
4870 (set_remote_protocol_Z_packet_cmd): Don't call
4871 update_packet_config.
4872 (remote_query_attached, remote_pass_signals)
4873 (remote_program_signals, remote_threads_info)
4874 (remote_threads_extra_info, remote_start_remote): Use
4876 (remote_start_remote): Use packet_config_support and
4878 (init_all_packet_configs): Set all packets to unknown support,
4879 instead of calling update_packet_config.
4880 (remote_check_symbols): Use packet_support.
4881 (remote_supported_packet): Unconditionally set the packet config's
4883 (remote_multi_process_feature, remote_non_stop_feature)
4884 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4885 (remote_breakpoint_commands_feature)
4886 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4887 (remote_install_in_trace_feature)
4888 (remote_disconnected_tracing_feature)
4889 (remote_enable_disable_tracepoint_feature)
4890 (remote_string_tracing_feature)
4891 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4892 (remote_protocol_features): Adjust to use remote_supported_packet
4893 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4894 "ConditionalTracepoints", "ConditionalBreakpoints",
4895 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4896 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4897 "EnableDisableTracepoints", and "tracenz".
4898 (remote_query_supported): Use packet_support.
4899 (remote_open_1): Adjust.
4900 (extended_remote_attach_1): Use packet_support. Switch on the
4901 result of packet_ok instead of checking whether the packet ended
4903 (remote_vcont_resume): Use packet_support.
4904 (remote_resume, remote_stop_ns, fetch_register_using_p)
4905 (remote_prepare_to_store, store_register_using_P)
4906 (check_binary_download, remote_write_bytes): Use packet_support.
4907 (remote_vkill): Use packet_support. Switch on the result of
4908 packet_ok instead of checking whether the packet ended up
4910 (extended_remote_supports_disable_randomization): Use
4912 (extended_remote_run): Switch on the result of packet_ok instead
4913 of checking whether the packet ended up disabled.
4914 (remote_insert_breakpoint, remote_remove_breakpoint)
4915 (remote_insert_watchpoint, remote_remove_watchpoint)
4916 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4918 (remote_search_memory): Use packet_config_support.
4919 (remote_get_thread_local_address, remote_get_tib_address)
4920 (remote_hostio_send_command, remote_can_execute_reverse): Use
4922 (remote_supports_cond_tracepoints)
4923 (remote_supports_cond_breakpoints)
4924 (remote_supports_fast_tracepoints)
4925 (remote_supports_static_tracepoints)
4926 (remote_supports_install_in_trace)
4927 (remote_supports_enable_disable_tracepoint)
4928 (remote_supports_string_tracing)
4929 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4930 the packet config says the feature is enabled or disabled.
4931 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4932 (remote_get_trace_status): Use packet_support.
4933 (remote_set_disconnected_tracing): Adjust to check whether the
4934 feature is enabled with packet_support.
4935 (remote_set_trace_buffer_size, remote_use_agent)
4936 (remote_can_use_agent, remote_supports_btrace): Use
4938 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4939 Use packet_config_support.
4940 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4941 the packet config says the feature is enabled or disabled.
4942 (set_range_stepping): Use packet_support.
4944 2014-04-25 Tom Tromey <tromey@redhat.com>
4946 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4949 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4951 * NEWS: Mention support for C99 variable length arrays.
4953 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4955 * ada-lang.c (standard_exc): Expand introductory comment.
4957 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4958 Walfred Tedeschi <walfred.tedeschi@intel.com>
4960 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4962 (amd64_linux_read_description): Add code to handle AVX512 xstate
4963 mask and return respective tdesc.
4964 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4965 and features/i386/x32-avx512-linux.c.
4966 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4967 (amd64_linux_core_read_description): Add code to handle AVX512
4968 xstate mask and return respective tdesc.
4969 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4970 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4972 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4973 (tdesc_amd64_avx512_linux): New prototype.
4974 (tdesc_x32_avx512_linux): Likewise.
4975 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4976 features/i386/x32-avx512.c.
4977 (amd64_ymm_avx512_names): New register names for pseudo
4979 (amd64_ymmh_avx512_names): New register names for raw registers
4981 (amd64_k_names): New register names for K registers.
4982 (amd64_zmmh_names): New register names for ZMM raw registers.
4983 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4984 (amd64_xmm_avx512_names): New register names for XMM16-31
4986 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4988 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4989 if feature is present.
4990 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4991 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4992 (AMD64_NUM_REGS): Adjust to new number of registers.
4993 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4994 registers supplied via XSTATE by AVX512 registers.
4995 (i386_linux_read_description): Add case for AVX512.
4996 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4997 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4998 (i386_linux_core_read_description): Add case for AVX512.
4999 (i386_linux_init_abi): Install supported register note section
5001 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5003 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5004 registers to be number of zmm7h + 1.
5005 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5006 * i386-tdep.c: Include features/i386/i386-avx512.c.
5007 (i386_zmm_names): Add ZMM pseudo register names array.
5008 (i386_zmmh_names): Add ZMM raw register names array.
5009 (i386_k_names): Add K raw register names array.
5010 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5011 registers. AVX512 has 16 more ZMM registers than there are YMM
5013 (i386_zmmh_regnum_p): Add function to look up register number of
5015 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5016 (i386_k_regnum_p): Likewise for K raw registers.
5017 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5018 registers added by AVX512.
5019 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5020 registers added by AVX512.
5021 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5023 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5024 (i386_pseudo_register_name): Add ZMM pseudo registers.
5025 (i386_zmm_type): Construct and return vector registers type for ZMM
5027 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5028 ZMM0-31 pseudo registers and K registers.
5029 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5030 and YMM16-31 registers from register cache.
5031 (i386_pseudo_register_write): Add code to write K, ZMM and
5033 (i386_register_reggroup_p): Add code to include/exclude AVX512
5034 registers in/from respective register groups.
5035 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5036 registers if feature is present in xcr0.
5037 (i386_gdbarch_init): Add code to initialize AVX512 feature
5038 variables in tdep structure, wire in pseudo registers and call
5039 initialize_tdesc_i386_avx512.
5040 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5042 (i386_regnum): Add AVX512 registers.
5043 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5044 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5045 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5046 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5048 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5049 (i386_ymm_avx512_regnum_p): Likewise.
5050 (i386_k_regnum_p): Likewise.
5051 (i386_zmm_regnum_p): Likewise.
5052 (i386_zmmh_regnum_p): Likewise.
5053 * i387-tdep.c : Update year in copyright notice.
5054 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5056 (XSAVE_YMM_AVX512_ADDR): New macro.
5057 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5059 (XSAVE_XMM_AVX512_ADDR): New macro.
5060 (xsave_avx512_k_offset): New table for K register offsets in
5062 (XSAVE_AVX512_K_ADDR): New macro.
5063 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5065 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5066 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5068 (i387_collect_xsave): Add code to collect AVX512 registers from
5070 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5071 of XMM16-31 registers.
5072 (I387_NUM_K_REGS): New define for number of K registers.
5073 (I387_K0_REGNUM): New define for K0 register number.
5074 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5075 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5076 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5078 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5079 (I387_XMM16_REGNUM): New define for XMM16 register number.
5080 (I387_YMM0_REGNUM): New define for YMM0 register number.
5081 (I387_KEND_REGNUM): New define for last K register number.
5082 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5083 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5085 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5087 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5089 * features/Makefile: Add AVX512 related files.
5090 * features/i386/32bit-avx512.xml: New file.
5091 * features/i386/64bit-avx512.xml: Likewise.
5092 * features/i386/amd64-avx512-linux.c: Likewise.
5093 * features/i386/amd64-avx512-linux.xml: Likewise.
5094 * features/i386/amd64-avx512.c: Likewise.
5095 * features/i386/amd64-avx512.xml: Likewise.
5096 * features/i386/i386-avx512-linux.c: Likewise.
5097 * features/i386/i386-avx512-linux.xml: Likewise.
5098 * features/i386/i386-avx512.c: Likewise.
5099 * features/i386/i386-avx512.xml: Likewise.
5100 * features/i386/x32-avx512-linux.c: Likewise.
5101 * features/i386/x32-avx512-linux.xml: Likewise.
5102 * features/i386/x32-avx512.c: Likewise.
5103 * features/i386/x32-avx512.xml: Likewise.
5104 * regformats/i386/amd64-avx512-linux.dat: New file.
5105 * regformats/i386/amd64-avx512.dat: Likewise.
5106 * regformats/i386/i386-avx512-linux.dat: Likewise.
5107 * regformats/i386/i386-avx512.dat: Likewise.
5108 * regformats/i386/x32-avx512-linux.dat: Likewise.
5109 * regformats/i386/x32-avx512.dat: Likewise.
5110 * NEWS: Add note about new support for AVX512.
5113 2014-04-23 Pedro Alves <palves@redhat.com>
5115 * breakpoint.c (insert_bp_location): Tolerate errors if the
5116 breakpoint is set in a user-loaded objfile.
5117 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5118 location is marked shlib_disabled. If the breakpoint is set in a
5119 user-loaded objfile is a GDB-side memory breakpoint, validate it
5120 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5121 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5123 * mem-break.c (memory_validate_breakpoint): New function.
5124 * objfiles.c (userloaded_objfile_contains_address_p): New
5126 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5127 * target.h (memory_validate_breakpoint): New declaration.
5129 2014-04-23 Pedro Alves <palves@redhat.com>
5131 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5132 the breakpoint is set in a shared library, only suppress
5133 errors for software breakpoints, not hardware breakpoints.
5135 2014-04-22 Pedro Alves <palves@redhat.com>
5137 * infrun.c (schedlock_applies): New function, factored out from
5138 find_thread_needs_step_over.
5139 (find_thread_needs_step_over): Use it.
5140 (switch_back_to_stepped_thread): Always clear trap_expected if the
5141 step over is finished. Return early if scheduler locking applies.
5142 Look for the stepping thread and a potential step-over thread with
5144 (currently_stepping_or_nexting_callback): Delete.
5146 2014-04-22 Nick Clifton <nickc@redhat.com>
5148 * NEWS: Mention that ARM sim now supports tracing.
5150 2014-04-22 Yao Qi <yao@codesourcery.com>
5152 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5154 * tracefile.c (tracefile_fetch_registers): ... it. New
5156 * tracefile.h (tracefile_fetch_registers): Declare.
5157 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5158 tracefile_fetch_registers.
5160 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5163 * windows-nat.c (thread_rec): Don't display a warning when
5164 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5165 fails for any reason, set th->suspended to -1, so that we don't
5166 try to resume such a thread. Also, don't return NULL in these
5167 cases, to avoid completely ruin the session due to "PC register is
5168 not available" error.
5169 (do_windows_fetch_inferior_registers): Check errors in
5170 GetThreadContext call.
5171 (windows_continue): Accept an additional argument KILLED; if not
5172 zero, ignore errors in the SetThreadContext call, since the
5173 inferior was killed and is shutting down.
5174 (windows_resume, get_windows_debug_event)
5175 (windows_create_inferior, windows_mourn_inferior)
5176 (windows_kill_inferior): All callers of windows_continue changed
5177 to adjust to its new calling sequence.
5179 2014-04-19 Yao Qi <yao@codesourcery.com>
5181 * ctf.c (ctf_open): Call post_create_inferior.
5183 2014-04-19 Yao Qi <yao@codesourcery.com>
5185 * ctf.c (handle_id): New static variable.
5186 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5187 value. Get the declaration of event "register" and get length
5188 of field "contents".
5190 2014-04-19 Yao Qi <yao@codesourcery.com>
5192 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5194 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5196 * valops.c (oload_method_static): Remove unnecessary argument
5197 METHOD. Update all callers.
5199 2014-04-18 Pedro alves <palves@redhat.com>
5200 Tom Tromey <tromey@redhat.com>
5203 * frame.c (get_prev_frame_1): Rename to ...
5204 (get_prev_frame_always): ... this, and make extern. Adjust.
5205 (skip_artificial_frames): Use get_prev_frame_always.
5206 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5207 (get_frame_unwind_stop_reason): Adjust to rename.
5208 * frame.h (get_prev_frame_always): Declare.
5209 * inline-frame.c: Include frame.h.
5210 (inline_frame_this_id): Use get_prev_frame_always.
5212 2014-04-18 Tristan Gingold <gingold@adacore.com>
5214 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5215 code by using bfd_mach_o_get_base_address.
5217 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5219 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5220 (spu_ax_pseudo_register_collect): New function.
5221 (spu_ax_pseudo_register_push_stack): Likewise.
5222 (spu_dwarf_reg_to_regnum): Likewise.
5223 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5225 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5227 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5228 Replace FRAME argument with FRAME_ID.
5229 * gdbarch.c, gdbarch.h: Regenerate.
5230 * findvar.c (default_value_from_register): Add GDBARCH argument;
5231 replace FRAME by FRAME_ID. No longer call get_frame_id.
5232 (value_from_register): Update call to gdbarch_value_from_register.
5233 * value.h (default_value_from_register): Update prototype.
5234 * s390-linux-tdep.c (s390_value_from_register): Update interface
5235 and call to default_value_from_register.
5236 * spu-tdep.c (spu_value_from_register): Likewise.
5238 * findvar.c (address_from_register): Remove TYPE argument.
5239 Do not call value_from_register; use gdbarch_value_from_register
5240 with null_frame_id instead.
5241 * value.h (address_from_register): Update prototype.
5242 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5243 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5244 address_from_register interface change.
5246 2014-04-17 Yao Qi <yao@codesourcery.com>
5248 * gdbtypes.h: Update comments to link to types and macros'
5251 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5253 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5255 2014-04-16 Keith Seitz <keiths@redhat.com>
5258 * dwarf2read.c (skip_one_die): Check that all relative-offset
5259 sibling DIEs fall within range of the current reader's buffer.
5260 (read_partial_die): Likewise.
5262 2014-04-16 Keith Seitz <keiths@redhat.com>
5265 * cp-namespace.c (lookup_symbol_file): If the type name of
5266 `this' is NULL, return immediately.
5268 2014-04-14 Keith Seitz <keiths@redhat.com>
5271 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5272 from symbol_matches_domain in symtab.c. All local callers
5273 of symbol_matches_domain updated.
5274 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5275 search STRUCT_DOMAIN.
5276 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5277 independently. standard_lookup will do that automatically.
5278 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5279 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5280 (cp_lookup_symbol_in_namespace): Likewise.
5281 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5282 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5283 may return a STRUCT_DOMAIN match.
5284 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5285 * cp-support.c: Include language.h.
5286 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5288 * psymtab.c (match_partial_symbol): Compare the requested
5289 domain with the symbol's domain directly.
5290 (lookup_partial_symbol): Likewise.
5291 * symtab.c (lookup_symbol_in_language): Explain when/why
5292 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5293 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5294 appropriate languages.
5295 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5296 and moved to ada-lang.c
5297 (lookup_block_symbol): Explain that this function only returns
5298 symbol matching the requested DOMAIN.
5299 Compare the requested domain with the symbol's domain directly.
5300 (iterate_over_symbols): Compare the requested domain with the
5301 symbol's domain directly.
5302 * symtab.h (symbol_matches_domain): Remove.
5304 2014-04-14 Tom Tromey <tromey@redhat.com>
5307 * c-exp.y (type_aggregate_p): New function.
5308 (qualified_name, classify_inner_name): Use it.
5309 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5310 and TYPE_TARGET_TYPE of an enum type.
5311 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5313 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5314 handle TYPE_DECLARED_CLASS.
5315 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5317 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5318 * valops.c (enum_constant_from_type): New function.
5319 (value_aggregate_elt): Use it.
5320 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5323 2014-04-14 Tom Tromey <tromey@redhat.com>
5325 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5326 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5328 * value.h (value_aggregate_elt): Update.
5330 2014-04-14 Tom Tromey <tromey@redhat.com>
5332 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5334 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5336 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5337 (evaluate_subexp_standard): Pass noside argument.
5338 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5339 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5340 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5341 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5342 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5344 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5346 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5347 points to a constant blob.
5349 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5351 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5352 property and store it as the high bound and flag the range accordingly.
5353 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5354 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5355 * gdbtypes.h (enum range_flags): New enum.
5356 (struct range_bounds): Add flags member.
5358 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5360 * c-typeprint.c (c_type_print_varspec_suffix): Added
5361 check for not yet resolved high bound. If unresolved, print
5362 "variable length" string to the console instead of random
5365 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5367 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5369 (ada_template_to_fixed_record_type_1): Likewise.
5370 (ada_to_fixed_type_1): Likewise.
5371 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5372 (cp_print_value): Likewise.
5373 * d-valprint.c (dynamic_array_type): Likewise.
5374 * findvar.c (address_of_variable): Likewise.
5375 * jv-valprint.c (java_value_print): Likewise.
5376 * valops.c (value_ind): Likewise.
5377 * value.c (coerce_ref): Likewise.
5379 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5381 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5382 value and retrieve the dynamic type size.
5384 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5386 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5387 passed to sizeof is dynamic evaluate the argument to compute the length.
5389 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5390 Joel Brobecker <brobecker@adacore.com>
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 2014-04-14 Richard Henderson <rth@redhat.com>
5413 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5415 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5416 Doug Evans <xdje42@gmail.com>
5418 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5419 dereference TYPE_CODE_REF values.
5421 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5423 Revert the following changes due to regressions:
5425 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5426 (dwarf2_evaluate_property): New function.
5427 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5428 * dwarf2read.c (attr_to_dynamic_prop): New function.
5429 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5431 * gdbtypes.c: Include dwarf2loc.h.
5432 (is_dynamic_type): New function.
5433 (resolve_dynamic_type): New function.
5434 (resolve_dynamic_bounds): New function.
5435 (get_type_length): New function.
5436 (check_typedef): Use get_type_length to compute type length.
5437 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5438 (TYPE_LOW_BOUND_KIND): New macro.
5439 (is_dynamic_type): New function prototype.
5440 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5441 to resolve dynamic properties of the type. Update comment.
5442 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5444 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5445 passed to sizeof is dynamic evaluate the argument to compute the length.
5447 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5448 value and retrieve the dynamic type size.
5450 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5451 (ada_template_to_fixed_record_type_1): Likewise.
5452 (ada_to_fixed_type_1): Likewise.
5453 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5454 (cp_print_value): Likewise.
5455 * d-valprint.c (dynamic_array_type): Likewise.
5456 * eval.c (evaluate_subexp_with_coercion): Likewise.
5457 * findvar.c (address_of_variable): Likewise.
5458 * jv-valprint.c (java_value_print): Likewise.
5459 * valops.c (value_ind): Likewise.
5460 * value.c (coerce_ref): Likewise.
5462 * c-typeprint.c (c_type_print_varspec_suffix): Added
5463 check for not yet resolved high bound. If unresolved, print
5464 "variable length" string to the console instead of random
5467 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5468 property and store it as the high bound and flag the range accordingly.
5469 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5470 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5471 * gdbtypes.h (enum range_flags): New enum.
5472 (struct range_bounds): Add flags member.
5474 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5475 points to a constant blob.
5477 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5478 (evaluate_subexp_standard): Pass noside argument.
5479 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5480 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5481 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5482 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5483 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5485 2014-04-11 Keith Seitz <keiths@redhat.com>
5488 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5489 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5492 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5494 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5495 (evaluate_subexp_standard): Pass noside argument.
5496 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5497 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5498 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5499 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5500 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5502 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5504 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5505 points to a constant blob.
5507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5509 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5510 property and store it as the high bound and flag the range accordingly.
5511 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5512 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5513 * gdbtypes.h (enum range_flags): New enum.
5514 (struct range_bounds): Add flags member.
5516 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5518 * c-typeprint.c (c_type_print_varspec_suffix): Added
5519 check for not yet resolved high bound. If unresolved, print
5520 "variable length" string to the console instead of random
5523 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5525 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5526 (ada_template_to_fixed_record_type_1): Likewise.
5527 (ada_to_fixed_type_1): Likewise.
5528 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5529 (cp_print_value): Likewise.
5530 * d-valprint.c (dynamic_array_type): Likewise.
5531 * eval.c (evaluate_subexp_with_coercion): Likewise.
5532 * findvar.c (address_of_variable): Likewise.
5533 * jv-valprint.c (java_value_print): Likewise.
5534 * valops.c (value_ind): Likewise.
5535 * value.c (coerce_ref): Likewise.
5537 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5539 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5540 value and retrieve the dynamic type size.
5542 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5544 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5545 passed to sizeof is dynamic evaluate the argument to compute the length.
5547 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5549 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5550 (dwarf2_evaluate_property): New function.
5551 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5552 * dwarf2read.c (attr_to_dynamic_prop): New function.
5553 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5555 * gdbtypes.c: Include dwarf2loc.h.
5556 (is_dynamic_type): New function.
5557 (resolve_dynamic_type): New function.
5558 (resolve_dynamic_bounds): New function.
5559 (get_type_length): New function.
5560 (check_typedef): Use get_type_length to compute type length.
5561 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5562 (TYPE_LOW_BOUND_KIND): New macro.
5563 (is_dynamic_type): New function prototype.
5564 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5565 to resolve dynamic properties of the type. Update comment.
5566 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5570 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5571 declaring high/low bounds and change uses accordingly. Call
5572 create_range_type instead of create_static_range_type.
5573 * gdbtypes.c (create_range_type): New function.
5574 (create_range_type): Convert bounds into struct bound_prop and pass
5575 them to create_range_type.
5576 * gdbtypes.h (struct bound_prop): New struct.
5577 (create_range_type): New function prototype.
5578 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5579 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5580 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5582 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5584 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5586 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5587 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5588 * ada-lang.c: All uses of create_range_type updated.
5589 * coffread.c: All uses of create_range_type updated.
5590 * dwarf2read.c: All uses of create_range_type updated.
5591 * f-exp.y: All uses of create_range_type updated.
5592 * m2-valprint.c: All uses of create_range_type updated.
5593 * mdebugread.c: All uses of create_range_type updated.
5594 * stabsread.c: All uses of create_range_type updated.
5595 * valops.c: All uses of create_range_type updated.
5596 * valprint.c: All uses of create_range_type updated.
5598 2014-04-10 Pedro Alves <palves@redhat.com>
5600 * breakpoint.c (single_step_breakpoints)
5601 (single_step_gdbarch): Move up in the file.
5602 (one_breakpoint_xfer_memory): New function, factored out from ...
5603 (breakpoint_xfer_memory): ... here. Also process single-step
5606 2014-04-09 Tristan Gingold <gingold@adacore.com>
5608 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5610 (darwin_decode_exception_message): Free port only after use.
5612 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5614 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5615 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5616 when setting the size of call_length.
5618 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5620 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5621 dereference TYPE_CODE_REF values.
5623 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5625 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5626 end of warning message.
5628 2014-04-03 Doug Evans <dje@google.com>
5630 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5631 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5633 2014-04-02 Alan Modra <amodra@gmail.com>
5635 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5636 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5637 (struct symbol_file_add_from_memory_args): Add size field.
5638 (find_vdso_size): New function.
5639 (add_vsyscall_page): Attempt to find vdso size.
5641 2014-04-01 Doug Evans <dje@google.com>
5643 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5645 2014-04-01 Tristan Gingold <gingold@adacore.com>
5647 * darwin-nat.c (darwin_encode_reply): Add prototype.
5648 (darwin_decode_exception_message): Reply to unknown inferiors.
5649 (darwin_decode_message): Handle message by id. Ignore message
5650 to unknown inferior.
5651 (darwin_wait): Discard unknown messages, add debug trace.
5653 2014-03-31 Doug Evans <dje@google.com>
5655 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5658 2014-03-31 Doug Evans <dje@google.com>
5660 New option "set print symbol-loading".
5662 * solib.c (solib_read_symbols): Only print symbol loading messages
5664 (solib_add): If symbol loading is in "brief" mode, notify user
5665 symbols are being loaded.
5666 (reload_shared_libraries_1): Ditto.
5667 * symfile.c (print_symbol_loading_off): New static global.
5668 (print_symbol_loading_brief): New static global.
5669 (print_symbol_loading_full): New static global.
5670 (print_symbol_loading_enums): New static global.
5671 (print_symbol_loading): New static global.
5672 (print_symbol_loading_p): New function.
5673 (symbol_file_add_with_addrs): Only print symbol loading messages
5675 (_initialize_symfile): Register "print symbol-loading" set/show
5677 * symfile.h (print_symbol_loading_p): Declare.
5679 2014-03-30 Doug Evans <xdje42@gmail.com>
5681 * infrun.c (set_last_target_status): New function.
5682 (handle_inferior_event): Call it.
5684 2014-03-30 Doug Evans <xdje42@gmail.com>
5686 * inferior.h (enum stop_kind): Improve comment.
5688 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5690 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5691 a reference, strip the reference layer before calling
5692 the lang_ops value_has_mutated callback.
5694 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5696 Remove some globals from our parser.
5697 * language.c (unk_lang_parser): Add "struct parser_state"
5699 * language.h (struct language_defn) <la_parser>: Likewise.
5700 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5701 (initialize_expout): Add "struct parser_state" argument.
5702 Rewrite function to use the parser state.
5703 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5704 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5705 write_exp_elt_longcst, write_exp_elt_dblcst,
5706 write_exp_elt_decfloatcst, write_exp_elt_type,
5707 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5708 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5709 write_dollar_variable): Likewise.
5710 (parse_exp_in_context_1): Use parser state.
5711 (insert_type_address_space): Add "struct parser_state" argument.
5713 (increase_expout_size): New function.
5714 * parser-defs.h: Forward declare "struct language_defn" and
5715 "struct parser_state".
5716 (expout, expout_size, expout_ptr): Remove extern declarations.
5717 (parse_gdbarch, parse_language): Rewrite macro declarations to
5718 accept the parser state.
5719 (struct parser_state): New struct.
5720 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5721 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5722 write_exp_elt_decfloatcst, write_exp_elt_type,
5723 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5724 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5725 write_exp_msymbol, write_dollar_variable,
5726 mark_struct_expression, insert_type_address_space): Add "struct
5727 parser_state" argument.
5728 (increase_expout_size): New function.
5729 * utils.c (do_clear_parser_state): New function.
5730 (make_cleanup_clear_parser_state): Likewise.
5731 * utils.h (make_cleanup_clear_parser_state): New function
5733 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5734 Update calls to write_exp* in order to pass the parser state.
5735 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5736 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5737 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5738 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5739 * stap-probe.c (stap_parse_register_operand): Likewise.
5740 (stap_parse_single_operand): Likewise.
5741 (stap_parse_argument_1): Likewise.
5742 (stap_parse_argument): Use parser state.
5743 * stap-probe.h: Include "parser-defs.h".
5744 (struct stap_parse_info) <pstate>: New field.
5745 * c-exp.y (parse_type): Rewrite to use parser state.
5746 (yyparse): Redefine to c_parse_internal.
5747 (pstate): New global variable.
5748 (parse_number): Add "struct parser_state" argument.
5749 (write_destructor_name): Likewise.
5750 (type_exp): Update calls to write_exp* and similars in order to
5752 (exp1, exp, variable, qualified_name, space_identifier,
5753 typename, typebase): Likewise.
5754 (write_destructor_name, parse_number, lex_one_token,
5755 classify_name, classify_inner_name, c_parse): Add "struct
5756 parser_state" argument. Update function to use parser state.
5757 * c-lang.h: Forward declare "struct parser_state".
5758 (c_parse): Add "struct parser_state" argument.
5759 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5760 (yyparse): Redefine macro to ada_parse_internal.
5761 (pstate): New variable.
5762 (write_int, write_object_renaming, write_var_or_type,
5763 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5764 type_int, type_long, type_long_long, type_float, type_double,
5765 type_long_double, type_char, type_boolean, type_system_address):
5766 Add "struct parser_state" argument.
5767 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5768 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5769 var_or_type, aggregate, aggregate_component_list,
5770 positional_list, others, component_group,
5771 component_associations): Update calls to write_exp* and similar
5772 functions in order to use parser state.
5773 (ada_parse, write_var_from_sym, write_int,
5774 write_exp_op_with_string, write_object_renaming,
5775 find_primitive_type, write_selectors, write_ambiguous_var,
5776 write_var_or_type, write_name_assoc, type_int, type_long,
5777 type_long_long, type_float, type_double, type_long_double,
5778 type_char, type_boolean, type_system_address): Add "struct
5779 parser_state" argument. Adjust function to use parser state.
5780 * ada-lang.c (parse): Likewise.
5781 * ada-lang.h: Forward declare "struct parser_state".
5782 (ada_parse): Add "struct parser_state" argument.
5783 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5784 calls to both functions.
5785 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5787 (yyparse): Redefine macro to f_parse_internal.
5788 (pstate): New variable.
5789 (parse_number): Add "struct parser_state" argument.
5790 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5791 and similars in order to use parser state.
5792 (parse_number): Adjust code to use parser state.
5794 (f_parse): New function.
5795 * f-lang.h: Forward declare "struct parser_state".
5796 (f_parse): Add "struct parser_state" argument.
5797 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5799 (yyparse): Redefine macro for java_parse_internal.
5800 (pstate): New variable.
5801 (push_expression_name, push_expression_name, insert_exp): Add
5802 "struct parser_state" argument.
5803 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5804 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5805 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5806 PostIncrementExpression, PostDecrementExpression,
5807 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5808 UnaryExpressionNotPlusMinus, CastExpression,
5809 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5810 RelationalExpression, EqualityExpression, AndExpression,
5811 ExclusiveOrExpression, InclusiveOrExpression,
5812 ConditionalAndExpression, ConditionalOrExpression,
5813 ConditionalExpression, Assignment, LeftHandSide): Update
5814 calls to write_exp* and similars in order to use parser state.
5815 (parse_number): Ajust code to use parser state.
5817 (java_parse): New function.
5818 (push_variable): Add "struct parser_state" argument. Adjust
5819 code to user parser state.
5820 (push_fieldnames, push_qualified_expression_name,
5821 push_expression_name, insert_exp): Likewise.
5822 * jv-lang.h: Forward declare "struct parser_state".
5823 (java_parse): Add "struct parser_state" argument.
5824 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5826 (yyparse): Redefine macro to m2_parse_internal.
5827 (pstate): New variable.
5828 (type_exp, exp, fblock, variable, type): Update calls to
5829 write_exp* and similars to use parser state.
5831 (m2_parse): New function.
5832 * m2-lang.h: Forward declare "struct parser_state".
5833 (m2_parse): Add "struct parser_state" argument.
5834 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5835 * objc-lang.h: Forward declare "struct parser_state".
5836 (end_msglist): Add "struct parser_state" argument.
5837 * p-exp.y (parse_type): Rewrite macro to use parser state.
5838 (yyparse): Redefine macro to pascal_parse_internal.
5839 (pstate): New variable.
5840 (parse_number): Add "struct parser_state" argument.
5841 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5842 write_exp* and similars in order to use parser state.
5843 (parse_number, yylex): Adjust code to use parser state.
5844 (pascal_parse): New function.
5845 * p-lang.h: Forward declare "struct parser_state".
5846 (pascal_parse): Add "struct parser_state" argument.
5847 * go-exp.y (parse_type): Rewrite macro to use parser state.
5848 (yyparse): Redefine macro to go_parse_internal.
5849 (pstate): New variable.
5850 (parse_number): Add "struct parser_state" argument.
5851 (type_exp, exp1, exp, variable, type): Update calls to
5852 write_exp* and similars in order to use parser state.
5853 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5854 to use parser state.
5855 (go_parse): Likewise.
5856 * go-lang.h: Forward declare "struct parser_state".
5857 (go_parse): Add "struct parser_state" argument.
5859 2014-03-27 Doug Evans <dje@google.com>
5861 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5863 2014-03-27 Doug Evans <dje@google.com>
5865 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5866 Remove argument abbrev_section. All callers updated.
5868 2014-03-27 Doug Evans <dje@google.com>
5870 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5871 addr_base, ranges_base.
5873 2014-03-26 Keith Seitz <keiths@redhat.com>
5875 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5876 types, not VAR_DOMAIN.
5878 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5880 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5882 * features/nios2-linux.c: Regenerated.
5883 * features/nios2.c: Regenerated.
5885 2014-03-25 Pedro Alves <palves@redhat.com>
5887 * cli/cli-script.c (script_from_file): Force the interpreter to
5890 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5892 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5893 small stack allocation.
5895 2014-03-24 Tristan Gingold <gingold@adacore.com>
5897 * darwin-nat.c (exc_server): Remove unused prototype.
5898 (darwin_dump_message): Correctly display data on x86_64.
5899 (darwin_encode_reply): Fix style.
5900 Add comments and fix indentation.
5902 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5904 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5906 2014-03-22 Doug Evans <xdje42@gmail.com>
5908 * infcmd.c: Whitespace fixes.
5909 (interrupt_command): Merge two function comments into one.
5911 2014-03-22 Doug Evans <xdje42@gmail.com>
5913 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5916 2014-03-22 Yao Qi <yao@codesourcery.com>
5918 * remote.c (target_read_live_memory): Remove.
5919 (memory_xfer_live_readonly_partial): Rename it to
5920 remote_xfer_live_readonly_partial. Remove argument 'object'.
5921 All callers updated. Call remote_read_bytes_1
5922 instead of target_read_live_memory.
5923 * tracepoint.c (set_traceframe_number): Remove.
5924 (make_cleanup_restore_traceframe_number): Likewise .
5925 * tracepoint.h (set_traceframe_number): Remove declaration.
5926 (make_cleanup_restore_traceframe_number): Likewise.
5928 2014-03-22 Yao Qi <yao@codesourcery.com>
5930 * remote.c (remote_read_bytes): Move code on reading from the
5932 (remote_read_bytes_1): ... here. New function.
5934 2014-03-22 Yao Qi <yao@codesourcery.com>
5936 * ctf.c (ctf_xfer_partial): Check the return value of
5937 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5938 return TARGET_XFER_UNAVAILABLE.
5939 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5940 * target.c (target_read_live_memory): Move it to remote.c.
5941 (memory_xfer_live_readonly_partial): Likewise.
5942 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5943 * remote.c (target_read_live_memory): Moved from target.c.
5944 (memory_xfer_live_readonly_partial): Likewise.
5945 (remote_read_bytes): Factored out from
5946 memory_xfer_partial_1.
5948 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5950 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5953 2014-03-21 Pedro Alves <palves@redhat.com>
5955 * infrun.c (normal_stop): Extend comment.
5957 2014-03-21 Hui Zhu <hui@codesourcery.com>
5958 Pedro Alves <palves@redhat.com>
5960 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5962 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5963 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5964 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5966 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5968 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5969 `z' formatted output modifier.
5971 2014-03-20 Tom Tromey <tromey@redhat.com>
5972 Sergio Durigan Junior <sergiodj@redhat.com>
5974 * probe.c (parse_probes): Turn assert into an ordinary error.
5975 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5976 exceptions when parsing probes. Rearrange the code for clarity.
5978 2014-03-20 Tom Tromey <tromey@redhat.com>
5981 * top.c (execute_command): Only dispatch events if the command
5984 2014-03-20 Tom Tromey <tromey@redhat.com>
5987 * infcall.c: Include event-top.h.
5988 (run_inferior_call): Call async_disable_stdin if needed.
5990 2014-03-20 Pedro Alves <palves@redhat.com>
5992 * infrun.c (prepare_to_proceed): Delete.
5993 (thread_still_needs_step_over): New function.
5994 (find_thread_needs_step_over): New function.
5995 (proceed): If the current thread needs a step-over, set its
5996 steping_over_breakpoint flag. Adjust to use
5997 find_thread_needs_step_over instead of prepare_to_proceed.
5998 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5999 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6001 (switch_back_to_stepped_thread): Step over breakpoints of all
6002 threads not the stepping thread, before switching back to the
6005 2014-03-20 Pedro Alves <palves@redhat.com>
6007 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6009 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6010 * infrun.c (saved_singlestep_ptid)
6011 (stepping_past_singlestep_breakpoint): Delete.
6012 (resume): Remove stepping_past_singlestep_breakpoint handling.
6013 (proceed): Store the prev_pc of the stepping thread too.
6014 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6016 (enum infwait_states): Delete infwait_thread_hop_state.
6017 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6019 (handle_inferior_event): Adjust.
6020 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6021 handling and the thread-hop code. Before removing single-step
6022 breakpoints, check whether the thread hit a single-step breakpoint
6023 of another thread. If it did, the trap is not a random signal.
6024 (switch_back_to_stepped_thread): If the event thread hit a
6025 single-step breakpoint, unblock it before switching to the
6026 stepping thread. Handle the case of the stepped thread having
6028 (keep_going): Handle the case of the current thread moving past a
6029 single-step breakpoint.
6031 2014-03-20 Pedro Alves <palves@redhat.com>
6034 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6035 are being stepped over.
6036 (breakpoint_address_match): Make extern.
6037 * breakpoint.h (breakpoint_address_match): New declaration.
6038 * inferior.h (stepping_past_instruction_at): New declaration.
6039 * infrun.c (struct step_over_info): New type.
6040 (step_over_info): New global.
6041 (set_step_over_info, clear_step_over_info)
6042 (stepping_past_instruction_at): New functions.
6043 (handle_inferior_event): Clear the step-over info when
6044 trap_expected is cleared.
6045 (resume): Remove now stale comment.
6046 (clear_proceed_status): Clear step-over info.
6047 (proceed): Adjust step-over handling to set or clear the step-over
6048 info instead of removing all breakpoints.
6049 (handle_signal_stop): When setting up a thread-hop, don't remove
6051 (stop_stepping): Clear step-over info.
6052 (keep_going): Adjust step-over handling to set or clear step-over
6053 info and then always inserting breakpoints, instead of removing
6054 all breakpoints when stepping over one.
6056 2014-03-20 Pedro Alves <palves@redhat.com>
6058 * infrun.c (previous_inferior_ptid): Adjust comment.
6059 (deferred_step_ptid): Delete.
6060 (infrun_thread_ptid_changed, prepare_to_proceed)
6061 (init_wait_for_inferior): Adjust.
6062 (handle_signal_stop): Delete deferred_step_ptid handling.
6064 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6067 * defs.h (sync_quit_force_run): New declaration.
6068 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6069 * event-top.c (async_sigterm_handler): New declaration.
6070 (async_sigterm_token): New variable.
6071 (async_init_signals): Create also async_sigterm_token.
6072 (async_sigterm_handler): New function.
6073 (sync_quit_force_run): New variable.
6074 (handle_sigterm): Replace quit_force call by other calls.
6075 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6077 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6079 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6080 offset into SPE pseudo registers.
6082 2014-03-18 Pedro Alves <palves@redhat.com>
6085 * inferior.h (print_stop_event): Declare.
6086 * infrun.c (print_stop_event): New, factored out from ...
6087 (normal_stop): ... this.
6088 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6089 of bpstat_print/print_stack_frame.
6091 2014-03-17 Tom Tromey <tromey@redhat.com>
6093 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6095 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6097 * ada-lang.c (decode_constrained_packed_array): Perform a
6098 minimal coercion for reference with coerce_ref instead of
6101 2014-03-17 Tristan Gingold <gingold@adacore.com>
6103 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6104 (darwin_solib_create_inferior_hook): Emit a warning if version
6107 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6109 * python/py-value.c (get_field_flag): Cast flag_name argument to
6110 PyObject_GetAttrString to support Python 2.4.
6112 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6114 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6115 (Global Maintainers): Remove Jan Kratochvil.
6117 2014-03-14 Pedro Alves <palves@redhat.com>
6119 * inferior.h (terminal_ours_for_output): Rename to ...
6120 (child_terminal_ours_for_output): ... this.
6121 (terminal_save_ours): Rename to ...
6122 (child_terminal_save_ours): ... this.
6123 (terminal_ours): Rename to ...
6124 (child_terminal_ours): ... this.
6125 (terminal_inferior): Rename to ...
6126 (child_terminal_inferior): ... this.
6127 (terminal_init_inferior): Rename to ...
6128 (child_terminal_init_inferior): ... this.
6129 (terminal_init_inferior_with_pgrp): Rename to ...
6130 (child_terminal_init_inferior_with_pgrp): ... this.
6131 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6132 (child_terminal_init_with_pgrp): ... this.
6133 (terminal_save_ours): Rename to ...
6134 (child_terminal_save_ours): ... this.
6135 (terminal_init_inferior): Rename to ...
6136 (child_terminal_init): ... this. Adjust.
6137 (terminal_inferior): Rename to ...
6138 (child_terminal_inferior): ... this.
6139 (terminal_ours_for_output): Rename to ...
6140 (child_terminal_ours_for_output): ... this. Adjust.
6141 (terminal_ours): Rename to ...
6142 (child_terminal_ours): ... this.
6143 (terminal_ours_1): Rename to ...
6144 (child_terminal_ours_1): ... this. Adjust.
6145 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6146 * windows-nat.c (do_initial_windows_stuff): Adjust.
6147 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6148 (gnu_terminal_init): ... this. Adjust.
6149 (gnu_target): Adjust.
6150 * inf-child.c (inf_child_target): Adjust.
6152 2014-03-13 Doug Evans <xdje42@gmail.com>
6155 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6158 2014-03-13 Doug Evans <xdje42@gmail.com>
6160 * value.c (record_latest_value): Call release_value_or_incref
6161 instead of release_value.
6163 2014-03-13 Pedro Alves <palves@redhat.com>
6165 * procfs.c (procfs_target): Don't override to_shortname,
6166 to_longname or to_doc.
6168 2014-03-13 Pedro Alves <palves@redhat.com>
6170 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6171 Unix in user visible strings.
6173 2014-03-12 Stan Shebs <stan@codesourcery.com>
6175 * gdbtypes.h: Annotate comments for Doxygen, add a page
6176 block comment with some general info.
6178 2014-03-12 Pedro Alves <palves@redhat.com>
6180 * infcmd.c (prepare_execution_command): New function, factored out
6181 from several execution commands.
6182 (run_command_1, continue_command, step_1, jump_command)
6183 (signal_command, until_command, advance_command, finish_command)
6184 (attach_command): Use prepare_execution_command.
6186 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6188 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6191 (struct arm_linux_thread_points): Removed.
6192 (struct arm_linux_process_info): New.
6193 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6194 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6195 (arm_linux_find_breakpoints_by_tid): Removed.
6196 (struct arch_lwp_info): New.
6197 (arm_linux_find_process_pid): New functions.
6198 (arm_linux_add_process): New functions.
6199 (arm_linux_process_info_get): New functions.
6200 (arm_linux_forget_process): New function.
6201 (arm_linux_get_debug_reg_state): New function.
6202 (struct update_registers_data): New.
6203 (update_registers_callback): New function.
6204 (arm_linux_insert_hw_breakpoint1): Updated.
6205 (arm_linux_remove_hw_breakpoint1): Updated.
6206 (arm_linux_insert_hw_breakpoint): Updated.
6207 (arm_linux_remove_hw_breakpoint): Updated.
6208 (arm_linux_insert_watchpoint): Updated.
6209 (arm_linux_remove_watchpoint): Updated.
6210 (arm_linux_new_thread): Updated.
6211 (arm_linux_prepare_to_resume): New function.
6212 (arm_linux_new_fork): New function.
6213 (_initialize_arm_linux_nat): Updated.
6215 2014-03-12 Pedro Alves <palves@redhat.com>
6217 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6219 2014-03-12 Tom Tromey <tromey@redhat.com>
6221 * inf-child.c (return_zero): New function.
6222 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6223 * aix-thread.c (aix_thread_inferior_created): New function.
6224 (aix_thread_attach): Remove.
6225 (init_aix_thread_ops): Don't set to_attach.
6226 (_initialize_aix_thread): Register inferior_created observer.
6227 * corelow.c (init_core_ops): Don't set to_attach or
6229 * exec.c (init_exec_ops): Don't set to_attach or
6231 * infcmd.c (run_command_1): Use find_run_target. Make direct
6233 (attach_command): Use find_attach_target. Make direct target
6235 * record-btrace.c (init_record_btrace_ops): Don't set
6237 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6239 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6240 set to_create_inferior.
6241 * target.c (complete_target_initialization): Add assertion.
6242 (target_create_inferior): Remove.
6243 (find_default_attach, find_default_create_inferior): Remove.
6244 (find_attach_target, find_run_target): New functions.
6245 (find_default_is_async_p, find_default_can_async_p)
6246 (target_supports_non_stop, target_attach): Remove.
6247 (init_dummy_target): Don't set to_create_inferior or
6248 to_supports_non_stop.
6249 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6250 TARGET_DEFAULT_FUNC.
6251 <to_create_inferior>: Add comment.
6252 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6253 TARGET_DEFAULT_RETURN.
6254 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6255 (find_attach_target, find_run_target): Declare.
6256 (target_create_inferior): Remove.
6257 (target_has_execution_1): Update comment.
6258 (target_supports_non_stop): Remove.
6259 * target-delegates.c: Rebuild.
6261 2014-03-12 Pedro Alves <palves@redhat.com>
6263 * inf-child.h: Update comment to not mention Unix.
6265 2014-03-12 Pedro Alves <palves@redhat.com>
6267 * inf-child.c: Update top comment to not mention Unix. Add
6268 generic comment describing how this target is meant to be used.
6269 (inf_child_post_attach, inf_child_post_startup_inferior)
6270 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6273 2014-03-12 Pedro Alves <palves@redhat.com>
6275 * nto-procfs.c: Include inf-child.h.
6276 (procfs_ops): Delete global.
6277 (procfs_can_run): Delete method.
6278 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6279 target pointer instead of referencing procfs_ops.
6280 (procfs_prepare_to_store): Delete.
6281 (init_procfs_ops): Delete function.
6282 (procfs_target): New function, based on init_procfs_ops, but
6283 inherit inf_child_target.
6284 (_initialize_procfs): Use procfs_target.
6286 2014-03-12 Pedro Alves <palves@redhat.com>
6288 * windows-nat.c: Include inf-child.h.
6289 (windows_ops): Delete global.
6290 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6292 (init_windows_ops): Delete function.
6293 (windows_target): New function, based on init_windows_ops, but
6294 inherit inf_child_target.
6295 (_initialize_windows_nat): Use windows_target. Install x86
6296 specific target methods here.
6298 2014-03-10 Doug Evans <xdje42@gmail.com>
6300 * guile/guile.c (call_initialize_gdb_module): New function.
6301 (initialize_guile): Replace call to scm_init_guile with call to
6304 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6306 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6307 in call to TYPE_CODE macro.
6309 2014-03-10 Jerome Guitton <guitton@adacore.com>
6311 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6312 Resolve tagged types to full view.
6314 2014-03-10 Hui Zhu <hui@codesourcery.com>
6316 * target.h (target_insert_breakpoint): Remove "hardware" from its
6319 2014-03-07 Doug Evans <dje@google.com>
6321 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6323 2014-03-07 Doug Evans <dje@google.com>
6325 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6326 Remove unused local comp_dir_attr. Assert exactly one of
6327 stub_comp_unit_die, stub_comp_dir is non-NULL.
6329 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6331 * target.h (complete_target_initialization, add_target):
6334 2014-03-07 Pedro Alves <palves@redhat.com>
6336 * go32-nat.c: Include inf-child.h.
6337 (go32_ops): Delete global.
6338 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6340 (go32_create_inferior): Push the passed in target pointer instead
6341 of referencing go32_ops.
6342 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6343 (go32_target): New function, based on init_go32_ops, but inherit
6345 (_initialize_go32_nat): Use go32_target. Move parts of
6348 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6350 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6351 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6352 SYMBOL_VALUE_ADDRESS.
6353 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6355 2014-03-06 Yao Qi <yao@codesourcery.com>
6357 * breakpoint.c (get_tracepoint_by_number): Remove argument
6358 optional_p. All callers updated. Adjust comments. Update
6360 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6362 2014-03-06 Yao Qi <yao@codesourcery.com>
6364 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6365 early if get_number returns zero. Use 'p' instead of 'args'.
6367 2014-03-06 Yao Qi <yao@codesourcery.com>
6369 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6372 2014-03-06 Yao Qi <yao@codesourcery.com>
6374 PR breakpoints/16508
6375 * tracepoint.c (check_trace_running): New function.
6376 (trace_find_command): Move code to check_trace_running and
6377 call check_trace_running.
6378 (trace_find_pc_command): Likewise.
6379 (trace_find_tracepoint_command): Likewise.
6380 (trace_find_line_command): Likewise.
6381 (trace_find_range_command): Likewise.
6382 * tracepoint.h (check_trace_running): Likewise.
6383 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6385 2014-03-06 Yao Qi <yao@codesourcery.com>
6387 * target.h (struct target_ops) <to_traceframe_info>: Use
6388 TARGET_DEFAULT_NORETURN (tcomplain ()).
6389 * target-delegates.c: Regenerated.
6391 2014-03-05 Pedro Alves <palves@redhat.com>
6394 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6395 void. Update comment.
6396 (dcache_xfer_memory): Delete.
6397 (dcache_read_memory_partial): New, based on the read bits of
6399 (dcache_update): Add status parameter. Use ULONGEST for len, and
6400 adjust. Discard cache lines if the reason for the update was
6402 * dcache.h (dcache_xfer_memory): Delete declaration.
6403 (dcache_read_memory_partial): New declaration.
6404 (dcache_update): Update prototype.
6405 * target.c (raw_memory_xfer_partial): Update the dcache here.
6406 (memory_xfer_partial_1): Don't handle dcache writes here.
6408 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6410 * remote-sim.c (gdbsim_load): Add const to prog.
6412 2014-03-03 Tom Tromey <tromey@redhat.com>
6414 * elfread.c (probe_key): Change to bfd_data.
6415 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6416 now per-BFD, not per-objfile.
6417 * stap-probe.c (stap_probe_destroy): Update comment.
6418 (handle_stap_probe): Allocate on the per-BFD obstack.
6420 2014-03-03 Tom Tromey <tromey@redhat.com>
6422 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6423 * breakpoint.c (create_longjmp_master_breakpoint): Use
6425 (add_location_to_breakpoint, bkpt_probe_insert_location)
6426 (bkpt_probe_remove_location): Update.
6427 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6428 * elfread.c (elf_symfile_relocate_probe): Remove.
6429 (elf_probe_fns): Update.
6430 (insert_exception_resume_breakpoint): Change type of "probe"
6431 parameter to bound_probe.
6432 (check_exception_resume): Update.
6433 * objfiles.c (objfile_relocate1): Don't relocate probes.
6434 * probe.c (bound_probe_s): New typedef.
6435 (parse_probes): Use get_probe_address. Set sal's objfile.
6436 (find_probe_by_pc): Return a bound_probe.
6437 (collect_probes): Return a VEC(bound_probe_s).
6438 (compare_probes): Update.
6439 (gen_ui_out_table_header_info): Change type of "probes"
6441 (info_probes_for_ops): Update.
6442 (get_probe_address): New function.
6443 (probe_safe_evaluate_at_pc): Update.
6444 * probe.h (struct probe_ops) <get_probe_address>: New field.
6445 <set_semaphore, clear_semaphore>: Add objfile parameter.
6446 (struct probe) <objfile>: Remove field.
6448 <address>: Update comment.
6449 (struct bound_probe): New.
6450 (find_probe_by_pc): Return a bound_probe.
6451 (get_probe_address): Declare.
6452 * solib-svr4.c (struct probe_and_action) <address>: New field.
6453 (hash_probe_and_action, equal_probe_and_action): Update.
6454 (register_solib_event_probe): Add address parameter.
6455 (solib_event_probe_at): Update.
6456 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6458 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6459 (stap_get_probe_address): New function.
6460 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6461 (compile_probe_arg): Update.
6462 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6464 (handle_stap_probe): Don't relocate the probe.
6465 (stap_relocate): Remove.
6466 (stap_gen_info_probes_table_values): Update.
6467 (stap_probe_ops): Remove stap_relocate.
6468 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6469 (debug_sym_probe_fns): Update.
6470 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6471 * symtab.c (init_sal): Use memset.
6472 * symtab.h (struct symtab_and_line) <objfile>: New field.
6473 * tracepoint.c (start_tracing, stop_tracing): Update.
6475 2014-03-03 Tom Tromey <tromey@redhat.com>
6477 * probe.h (parse_probes, find_probe_by_pc)
6478 (find_probes_in_objfile): Fix comments.
6480 2014-03-02 Doug Evans <xdje42@gmail.com>
6482 * infrun.c (handle_signal_stop): Replace test for
6483 TARGET_WAITKIND_STOPPED with an assert.
6485 2014-03-02 Doug Evans <xdje42@gmail.com>
6487 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6489 2014-03-02 Doug Evans <xdje42@gmail.com>
6491 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6493 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6495 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6497 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6499 * i386obsd-nat.c: Include "obsd-nat.h".
6500 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6502 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6504 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6506 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6508 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6510 * mips64obsd-nat.c: Include "obsd-nath".
6511 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6513 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6515 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6517 * amd64obsd-nat.c: Include "obsd-nat,h.
6518 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6520 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6522 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6524 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6525 (find_overload_match): Update call to find_oload_champ.
6526 (find_oload_champ_namespace_loop): Likewise
6528 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6530 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6532 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6533 * config/sparc/obsd64.mh: New file.
6534 * sparc64obsd-nat.c: New file.
6536 * obsd-nat.h: New file.
6537 * obsd-nat.c: New file.
6538 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6539 (ALLDEPFILES): Add obsd-nat.c.
6541 2014-02-28 Tom Tromey <tromey@redhat.com>
6543 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6544 * cli-out.h (cli_ui_out_impl): Now const.
6545 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6546 * ui-out.c (struct ui_out) <impl>: Now const.
6547 (default_ui_out_impl): Now const.
6548 (ui_out_new): Make 'impl' parameter const.
6549 * ui-out.h (ui_out_new): Update.
6551 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6553 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6555 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6557 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6559 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6561 Additional PR 8882 fix.
6562 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6564 2014-02-27 Pedro Alves <palves@redhat.com>
6566 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6569 2014-02-27 Pedro Alves <palves@redhat.com>
6572 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6573 * nat/linux-waitpid.c: Include string.h.
6574 (status_to_str): Moved here and made extern.
6575 * nat/linux-waitpid.h (status_to_str): New declaration.
6577 2014-02-27 Hui Zhu <hui@codesourcery.com>
6580 * infrun.c (ptid_match): Move ...
6581 * common/ptid.c (ptid_match): ... here.
6582 * inferior.h (ptid_match): Move ...
6583 * common/ptid.h (ptid_match): ... here.
6585 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6587 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6588 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6591 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6593 * obsd-tdep.c (obsd_auxv_parse): New function.
6594 (obsd_init_abi): Set auxv_parse.
6596 * gdbarch.sh (auxv_parse): New.
6597 * gdbarch.h: Regenerated.
6598 * gdbarch.c: Regenerated.
6599 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6601 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6603 * guile/scm-value.c (gdbscm_history_append_x): New function.
6604 (value_functions): Add it.
6606 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6608 * dwarf2read.c (attr_value_as_address): New function.
6609 (dwarf2_find_base_address, read_call_site_scope): Use
6610 attr_value_as_address in place of DW_ADDR.
6611 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6612 the low and high addresses. Slight rework of the handling
6613 of the high pc being a constant form, and limit it to
6614 DWARF verson 4 or higher.
6615 (dwarf2_record_block_ranges): Likewise.
6616 (read_partial_die): Likewise.
6617 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6619 2014-02-26 Tom Tromey <tromey@redhat.com>
6621 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6623 2014-02-26 Tom Tromey <tromey@redhat.com>
6625 * elfread.c (elf_read_minimal_symbols): Return early if
6626 minimal symbols have already been read. Add "ei" parameter.
6627 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6628 * minsyms.c (prim_record_minimal_symbol_full): Update.
6629 * objfiles.h (struct objstats) <n_minsyms>: Move...
6630 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6631 * symmisc.c (print_objfile_statistics): Update.
6633 2014-02-26 Tom Tromey <tromey@redhat.com>
6635 * elfread.c (elf_read_minimal_symbols): New function, from
6637 (elf_symfile_read): Call it.
6639 2014-02-26 Tom Tromey <tromey@redhat.com>
6641 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6642 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6643 (lookup_minimal_symbol_solib_trampoline)
6644 (lookup_minimal_symbol_by_pc_section_1)
6645 (lookup_minimal_symbol_and_objfile): Update.
6646 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6647 Don't allocate a minimal symbol if minsyms have already been read.
6648 (build_minimal_symbol_hash_tables): Update.
6649 (install_minimal_symbols): Do nothing if minsyms already read.
6650 Use the per-BFD obstack.
6651 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6652 * objfiles.c (allocate_objfile): Call
6653 terminate_minimal_symbol_table later.
6654 (have_minimal_symbols): Update.
6655 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6656 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6657 Move from struct objfile.
6658 <minsyms_read>: New field.
6659 (struct objfile) <msymbols, minimal_symbol_count,
6660 msymbol_hash, msymbol_demangled_hash>: Move.
6661 (ALL_OBJFILE_MSYMBOLS): Update.
6662 * symfile.c (read_symbols): Set minsyms_read.
6663 (reread_symbols): Update.
6664 * symmisc.c (dump_objfile, dump_msymbols): Update.
6666 2014-02-26 Tom Tromey <tromey@redhat.com>
6668 * minsyms.c (msymbols_sort): Remove.
6669 * minsyms.h (msymbols_sort): Remove.
6670 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6671 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6672 * elfread.c (elf_symtab_read): Don't add section offsets.
6673 * xcoffread.c (record_minimal_symbol): Don't add section offset
6674 to minimal symbol address.
6675 * somread.c (text_offset, data_offset): Remove.
6676 (som_symtab_read): Don't add section offsets to minimal symbol
6678 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6679 Don't add section offsets to minimal symbols.
6680 * coffread.c (coff_symtab_read): Don't add section offsets
6681 to minimal symbol addresses.
6682 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6683 to minimal symbol addresses.
6684 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6685 section offset to minimal symbol addresses.
6686 * mdebugread.c (parse_partial_symbols): Don't add section
6687 offset to minimal symbol addresses.
6688 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6689 offset to minimal symbol addresses.
6691 2014-02-26 Tom Tromey <tromey@redhat.com>
6693 * ada-lang.c (ada_main_name): Update.
6694 (ada_add_standard_exceptions): Update.
6695 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6696 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6697 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6698 * auxv.c (ld_so_xfer_auxv): Update.
6699 * avr-tdep.c (avr_scan_prologue): Update.
6700 * ax-gdb.c (gen_var_ref): Update.
6701 * blockframe.c (get_pc_function_start)
6702 (find_pc_partial_function_gnu_ifunc): Update.
6703 * breakpoint.c (create_overlay_event_breakpoint)
6704 (create_longjmp_master_breakpoint)
6705 (create_std_terminate_master_breakpoint)
6706 (create_exception_master_breakpoint): Update.
6707 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6708 * c-valprint.c (c_val_print): Update.
6709 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6710 * common/agent.c (agent_look_up_symbols): Update.
6711 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6712 * dwarf2loc.c (call_site_to_target_addr): Update.
6713 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6714 * elfread.c (elf_gnu_ifunc_record_cache)
6715 (elf_gnu_ifunc_resolve_by_got): Update.
6716 * findvar.c (default_read_var_value): Update.
6717 * frame.c (inside_main_func): Update.
6718 * frv-tdep.c (frv_frame_this_id): Update.
6719 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6720 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6722 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6723 (hppa_hpux_find_dummy_bpaddr): Update.
6724 * hppa-tdep.c (hppa_symbol_address): Update.
6725 * infcmd.c (until_next_command): Update.
6726 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6728 * linespec.c (minsym_found, add_minsym): Update.
6729 * linux-nat.c (get_signo): Update.
6730 * linux-thread-db.c (inferior_has_bug): Update.
6731 * m32c-tdep.c (m32c_return_value)
6732 (m32c_m16c_address_to_pointer): Update.
6733 * m32r-tdep.c (m32r_frame_this_id): Update.
6734 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6735 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6736 * maint.c (maintenance_translate_address): Update.
6737 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6738 (frob_address): New function.
6739 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6740 frob_address. Rename parameter to "pc_in".
6741 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6743 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6745 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6746 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6747 * objc-lang.c (find_objc_msgsend): Update.
6748 * objfiles.c (objfile_relocate1): Update.
6749 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6750 * p-valprint.c (pascal_val_print): Update.
6751 * parse.c (write_exp_msymbol): Update.
6752 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6753 (ppc_elfv2_skip_entrypoint): Update.
6754 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6755 * printcmd.c (build_address_symbolic, msym_info)
6756 (address_info): Update.
6757 * proc-service.c (ps_pglobal_lookup): Update.
6758 * psymtab.c (find_pc_sect_psymtab_closer)
6759 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6760 Change msymbol parameter to bound_minimal_symbol.
6761 * ravenscar-thread.c (get_running_thread_id): Update.
6762 * remote.c (remote_check_symbols): Update.
6763 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6765 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6766 * solib-dsbt.c (lm_base): Update.
6767 * solib-frv.c (lm_base, main_got): Update.
6768 * solib-irix.c (locate_base): Update.
6769 * solib-som.c (som_solib_create_inferior_hook)
6770 (link_map_start): Update.
6771 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6772 * solib-svr4.c (elf_locate_base, enable_break): Update.
6773 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6774 (flush_ea_cache): Update.
6775 * stabsread.c (define_symbol, scan_file_globals): Update.
6776 * stack.c (find_frame_funname): Update.
6777 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6778 (debug_qf_find_pc_sect_symtab): Update.
6779 * symfile.c (simple_read_overlay_table)
6780 (simple_overlay_update): Update.
6781 * symfile.h (struct quick_symbol_functions)
6782 <find_pc_sect_symtab>: Change type of msymbol to
6783 bound_minimal_symbol.
6784 * symmisc.c (dump_msymbols): Update.
6785 * symtab.c (find_pc_sect_symtab_via_partial)
6786 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6787 (search_symbols, print_msymbol_info): Update.
6788 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6789 (MSYMBOL_VALUE_ADDRESS): Redefine.
6790 (BMSYMBOL_VALUE_ADDRESS): New macro.
6791 * tracepoint.c (scope_info): Update.
6792 * tui/tui-disasm.c (tui_find_disassembly_address)
6793 (tui_get_begin_asm_address): Update.
6794 * valops.c (find_function_in_inferior): Update.
6795 * value.c (value_static_field, value_fn_field): Update.
6797 2014-02-26 Tom Tromey <tromey@redhat.com>
6799 * ada-lang.c (ada_update_initial_language): Update.
6800 (ada_main_name, ada_has_this_exception_support): Update.
6801 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6802 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6803 * arm-tdep.c (arm_skip_stub): Update.
6804 * auxv.c (ld_so_xfer_auxv): Update.
6805 * avr-tdep.c (avr_scan_prologue): Update.
6806 * ax-gdb.c (gen_var_ref): Update.
6807 * breakpoint.c (struct breakpoint_objfile_data)
6808 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6809 type to bound_minimal_symbol.
6810 (create_overlay_event_breakpoint)
6811 (create_longjmp_master_breakpoint)
6812 (create_std_terminate_master_breakpoint)
6813 (create_exception_master_breakpoint): Update.
6814 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6815 * c-exp.y (classify_name): Update.
6816 * coffread.c (coff_symfile_read): Update.
6817 * common/agent.c (agent_look_up_symbols): Update.
6818 * d-lang.c (d_main_name): Update.
6819 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6820 * dec-thread.c (enable_dec_thread): Update.
6821 * dwarf2loc.c (call_site_to_target_addr): Update.
6822 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6823 * eval.c (evaluate_subexp_standard): Update.
6824 * findvar.c (struct minsym_lookup_data) <result>: Change type
6825 to bound_minimal_symbol.
6827 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6828 * frame.c (inside_main_func): Update.
6829 * frv-tdep.c (frv_frame_this_id): Update.
6830 * gcore.c (call_target_sbrk): Update.
6831 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6832 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6834 * go-lang.c (go_main_name): Update.
6835 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6836 (hppa_hpux_find_import_stub_for_addr): Update.
6837 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6838 Update. Change return type.
6839 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6841 * jit.c (jit_breakpoint_re_set_internal): Update.
6842 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6844 * linux-nat.c (get_signo): Update.
6845 * linux-thread-db.c (inferior_has_bug): Update
6846 * m32c-tdep.c (m32c_return_value)
6847 (m32c_m16c_address_to_pointer): Update.
6848 * m32r-tdep.c (m32r_frame_this_id): Update.
6849 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6850 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6851 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6852 lookup_minimal_symbol. Change return type.
6853 (lookup_minimal_symbol): Remove.
6854 (lookup_bound_minimal_symbol): Update.
6855 (lookup_minimal_symbol_text): Change return type.
6856 (lookup_minimal_symbol_solib_trampoline): Change return type.
6857 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6858 (lookup_minimal_symbol_solib_trampoline): Change return type.
6859 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6860 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6861 (value_nsstring, find_imps): Update.
6862 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6863 * p-lang.c (pascal_main_name): Update.
6864 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6865 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6866 * proc-service.c (ps_pglobal_lookup): Update.
6867 * ravenscar-thread.c (get_running_thread_msymbol): Change
6869 (has_ravenscar_runtime, get_running_thread_id): Update.
6870 * remote.c (remote_check_symbols): Update.
6871 * sol-thread.c (ps_pglobal_lookup): Update.
6872 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6873 * solib-dsbt.c (lm_base): Update.
6874 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6876 * solib-irix.c (locate_base): Update.
6877 * solib-som.c (som_solib_create_inferior_hook)
6878 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6880 * solib-spu.c (spu_enable_break): Update.
6881 * solib-svr4.c (elf_locate_base, enable_break): Update.
6882 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6883 (flush_ea_cache): Update.
6884 * stabsread.c (define_symbol): Update.
6885 * symfile.c (simple_read_overlay_table): Update.
6886 * symtab.c (find_pc_sect_line): Update.
6887 * tracepoint.c (scope_info): Update.
6888 * tui-disasm.c (tui_get_begin_asm_address): Update.
6889 * value.c (value_static_field): Update.
6891 2014-02-26 Tom Tromey <tromey@redhat.com>
6893 * minsyms.c (prim_record_minimal_symbol_full): Use
6894 SET_MSYMBOL_VALUE_ADDRESS.
6895 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6896 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6897 SET_MSYMBOL_VALUE_ADDRESS.
6898 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6899 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6901 2014-02-26 Tom Tromey <tromey@redhat.com>
6903 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6904 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6905 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6906 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6907 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6908 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6909 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6910 * ada-lang.c (ada_main_name): Update.
6911 (ada_lookup_simple_minsym): Update.
6912 (ada_make_symbol_completion_list): Update.
6913 (ada_add_standard_exceptions): Update.
6914 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6915 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6916 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6917 * arm-tdep.c (skip_prologue_function): Update.
6918 (arm_skip_stack_protector, arm_skip_stub): Update.
6919 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6920 (arm_wince_skip_main_prologue): Update.
6921 * auxv.c (ld_so_xfer_auxv): Update.
6922 * avr-tdep.c (avr_scan_prologue): Update.
6923 * ax-gdb.c (gen_var_ref): Update.
6924 * block.c (call_site_for_pc): Update.
6925 * blockframe.c (get_pc_function_start): Update.
6926 (find_pc_partial_function_gnu_ifunc): Update.
6927 * breakpoint.c (create_overlay_event_breakpoint): Update.
6928 (create_longjmp_master_breakpoint): Update.
6929 (create_std_terminate_master_breakpoint): Update.
6930 (create_exception_master_breakpoint): Update.
6931 (resolve_sal_pc): Update.
6932 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6933 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6935 * c-valprint.c (c_val_print): Update.
6936 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6937 * coffread.c (coff_symfile_read): Update.
6938 * common/agent.c (agent_look_up_symbols): Update.
6939 * dbxread.c (find_stab_function_addr): Update.
6940 (end_psymtab): Update.
6941 * dwarf2loc.c (call_site_to_target_addr): Update.
6942 (func_verify_no_selftailcall): Update.
6943 (tailcall_dump): Update.
6944 (call_site_find_chain_1): Update.
6945 (dwarf_expr_reg_to_entry_parameter): Update.
6946 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6947 (elf_gnu_ifunc_resolve_by_got): Update.
6948 * f-valprint.c (info_common_command): Update.
6949 * findvar.c (read_var_value): Update.
6950 * frame.c (get_prev_frame_1): Update.
6951 (inside_main_func): Update.
6952 * frv-tdep.c (frv_skip_main_prologue): Update.
6953 (frv_frame_this_id): Update.
6954 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6955 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6956 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6957 (gnuv3_skip_trampoline): Update.
6958 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6959 (hppa64_hpux_in_solib_call_trampoline): Update.
6960 (hppa_hpux_skip_trampoline_code): Update.
6961 (hppa64_hpux_search_dummy_call_sequence): Update.
6962 (hppa_hpux_find_import_stub_for_addr): Update.
6963 (hppa_hpux_find_dummy_bpaddr): Update.
6964 * hppa-tdep.c (hppa_symbol_address)
6965 (hppa_lookup_stub_minimal_symbol): Update.
6966 * i386-tdep.c (i386_skip_main_prologue): Update.
6967 (i386_pe_skip_trampoline_code): Update.
6968 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6969 * infcall.c (get_function_name): Update.
6970 * infcmd.c (until_next_command): Update.
6971 * jit.c (jit_breakpoint_re_set_internal): Update.
6972 (jit_inferior_init): Update.
6973 * linespec.c (minsym_found): Update.
6974 (add_minsym): Update.
6975 * linux-fork.c (info_checkpoints_command): Update.
6976 * linux-nat.c (get_signo): Update.
6977 * linux-thread-db.c (inferior_has_bug): Update.
6978 * m32c-tdep.c (m32c_return_value): Update.
6979 (m32c_m16c_address_to_pointer): Update.
6980 (m32c_m16c_pointer_to_address): Update.
6981 * m32r-tdep.c (m32r_frame_this_id): Update.
6982 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6983 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6984 * maint.c (maintenance_translate_address): Update.
6985 * minsyms.c (add_minsym_to_hash_table): Update.
6986 (add_minsym_to_demangled_hash_table): Update.
6987 (msymbol_objfile): Update.
6988 (lookup_minimal_symbol): Update.
6989 (iterate_over_minimal_symbols): Update.
6990 (lookup_minimal_symbol_text): Update.
6991 (lookup_minimal_symbol_by_pc_name): Update.
6992 (lookup_minimal_symbol_solib_trampoline): Update.
6993 (lookup_minimal_symbol_by_pc_section_1): Update.
6994 (lookup_minimal_symbol_and_objfile): Update.
6995 (prim_record_minimal_symbol_full): Update.
6996 (compare_minimal_symbols): Update.
6997 (compact_minimal_symbols): Update.
6998 (build_minimal_symbol_hash_tables): Update.
6999 (install_minimal_symbols): Update.
7000 (terminate_minimal_symbol_table): Update.
7001 (find_solib_trampoline_target): Update.
7002 (minimal_symbol_upper_bound): Update.
7003 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7004 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7005 (mips_skip_pic_trampoline_code): Update.
7006 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7007 * objc-lang.c (selectors_info): Update.
7008 (classes_info): Update.
7009 (find_methods): Update.
7010 (find_imps): Update.
7011 (find_objc_msgsend): Update.
7012 * objfiles.c (objfile_relocate1): Update.
7013 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7014 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7015 * p-valprint.c (pascal_val_print): Update.
7016 * parse.c (write_exp_msymbol): Update.
7017 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7018 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7019 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7020 * printcmd.c (build_address_symbolic): Update.
7022 (address_info): Update.
7023 * proc-service.c (ps_pglobal_lookup): Update.
7024 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7025 (find_pc_sect_psymtab): Update.
7026 * python/py-framefilter.c (py_print_frame): Update.
7027 * ravenscar-thread.c (get_running_thread_id): Update.
7028 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7030 * remote.c (remote_check_symbols): Update.
7031 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7032 (rs6000_skip_trampoline_code): Update.
7033 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7034 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7035 * solib-dsbt.c (lm_base): Update.
7036 * solib-frv.c (lm_base): Update.
7038 * solib-irix.c (locate_base): Update.
7039 * solib-som.c (som_solib_create_inferior_hook): Update.
7040 (som_solib_desire_dynamic_linker_symbols): Update.
7041 (link_map_start): Update.
7042 * solib-spu.c (spu_enable_break): Update.
7043 (ocl_enable_break): Update.
7044 * solib-svr4.c (elf_locate_base): Update.
7045 (enable_break): Update.
7046 * spu-tdep.c (spu_get_overlay_table): Update.
7047 (spu_catch_start): Update.
7048 (flush_ea_cache): Update.
7049 * stabsread.c (define_symbol): Update.
7050 (scan_file_globals): Update.
7051 * stack.c (find_frame_funname): Update.
7052 (frame_info): Update.
7053 * symfile.c (simple_read_overlay_table): Update.
7054 (simple_overlay_update): Update.
7055 * symmisc.c (dump_msymbols): Update.
7056 * symtab.c (fixup_section): Update.
7057 (find_pc_sect_line): Update.
7058 (skip_prologue_sal): Update.
7059 (search_symbols): Update.
7060 (print_msymbol_info): Update.
7061 (rbreak_command): Update.
7062 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7063 (completion_list_objc_symbol): Update.
7064 (default_make_symbol_completion_list_break_on): Update.
7065 * tracepoint.c (scope_info): Update.
7066 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7067 (tui_get_begin_asm_address): Update.
7068 * valops.c (find_function_in_inferior): Update.
7069 * value.c (value_static_field): Update.
7070 (value_fn_field): Update.
7072 2014-02-26 Tom Tromey <tromey@redhat.com>
7074 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7075 bound minimal symbols. Move code that knows about minsym
7077 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7079 * minsyms.h (minimal_symbol_upper_bound): Declare.
7080 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7081 minimal_symbol_upper_bound.
7083 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7085 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7086 Use the type's name if its basic type does not have a tag.
7088 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7090 * dwarf2read.c (read_subrange_type): Add comment.
7092 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7094 * dwarf2read.c (update_enumeration_type_from_children): New
7095 function, mostly extracted from process_structure_scope.
7096 (read_enumeration_type): Call update_enumeration_type_from_children.
7097 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7098 and flag_flag_enum fields.
7100 2014-02-26 Pedro Alves <palves@redhat.com>
7102 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7103 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7104 to_xfer_partial method.
7106 2014-02-26 Pedro Alves <palves@redhat.com>
7108 * target.c (complete_target_initialization): Don't install
7109 default_xfer_partial as to_xfer_partial hook.
7111 (update_current_target): Don't INHERIT nor de_fault
7112 deprecated_xfer_memory. Delete de_fault macro.
7113 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7114 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7115 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7118 2014-02-26 Pedro Alves <palves@redhat.com>
7120 * go32-nat.c (my_write_child): New function.
7121 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7122 (go32_xfer_partial): New function.
7123 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7124 Instead install a to_xfer_partial hook.
7126 2014-02-26 Pedro Alves <palves@redhat.com>
7128 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7129 to_xfer_partial helper. Rewrite.
7130 (procfs_xfer_partial): New function.
7131 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7132 Install a to_xfer_partial hook.
7134 2014-02-26 Pedro Alves <palves@redhat.com>
7136 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7137 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7138 (m32r_xfer_partial): New function.
7139 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7140 Install a to_xfer_partial hook.
7142 2014-02-26 Pedro Alves <palves@redhat.com>
7144 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7146 (mips_xfer_partial): New function.
7147 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7148 hook. Install a to_xfer_partial hook.
7150 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7152 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7153 * gdbtypes.c (create_array_type_with_stride): New function,
7154 renaming create_array_type, but with an added parameter
7155 called "bit_stride".
7156 (create_array_type): Re-implement using
7157 create_array_type_with_stride.
7158 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7159 and DW_AT_bit_stride attributes.
7161 2014-02-26 Pedro Alves <palves@redhat.com>
7163 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7164 task-specific breakpoints.
7166 2014-02-25 Pedro Alves <palves@redhat.com>
7168 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7169 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7171 2014-02-25 Stan Shebs <stan@codesourcery.com>
7173 * defs.h: Annotate comments for Doxygen.
7175 2014-02-25 Tom Tromey <tromey@redhat.com>
7177 * target.h (target_ignore): Don't declare.
7178 * target.c (target_ignore): Remove.
7180 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7183 * auto-load.c (auto_load_objfile_script_1): Change filename to
7186 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7188 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7189 documentation. Adjust prototype to match the target_ops
7190 to_xfer_partial method. Adjust implementation accordingly.
7192 2014-02-25 Hui Zhu <hui@codesourcery.com>
7194 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7197 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7199 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7200 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7201 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7202 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7203 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7204 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7205 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7206 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7208 (rl78_register_type): Use a data pointer type for SP and
7209 new pseudo registers mentioned above. Use a 16 bit integer
7210 type for all other register pairs.
7211 (rl78_register_name, rl78_g10_register_name): Update for
7212 new pseudo registers.
7213 (rl78_pseudo_register_read): Likewise.
7214 (rl78_pseudo_register_write): Likewise.
7215 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7216 to the newly added pseudo registers.
7218 2014-02-24 Doug Evans <dje@google.com>
7220 * value.c (record_latest_value): Fix comment.
7221 * printcmd.c (print_command_1): Remove code to handle -1 return from
7222 record_latest_value.
7224 2014-02-24 Pedro Alves <palves@redhat.com>
7226 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7227 deprecated_xfer_memory hook.
7228 (procfs_xfer_partial): Call procfs_xfer_memory instead
7229 of the deprecated_xfer_memory target hook.
7230 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7233 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7235 * windows-nat.c (windows_xfer_shared_libraries): Return
7236 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7237 requested object is TARGET_OBJECT_LIBRARIES.
7239 2014-02-24 Yao Qi <yao@codesourcery.com>
7241 * target.h (enum target_xfer_status)
7242 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7243 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7245 * corefile.c (memory_error_message): User updated.
7246 * exec.c (section_table_read_available_memory): Likewise.
7247 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7248 * target.c (target_xfer_status_to_string): Likewise.
7249 (raw_memory_xfer_partial): Likewise.
7250 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7251 * valops.c (read_value_memory): Likewise.
7252 * exec.h: Update comments.
7254 2014-02-24 Yao Qi <yao@codesourcery.com>
7256 * target.c (target_xfer_status_to_string): Rename argument err
7258 * target.h (target_xfer_status_to_string): Update declaration.
7259 Replace target_xfer_error_to_string with
7260 target_xfer_status_to_string in comment.
7262 2014-02-24 Yao Qi <yao@codesourcery.com>
7264 * mips-linux-nat.c (super_close): Update its type.
7265 (mips_linux_close): Pass 'self' to super_close.
7267 2014-02-24 Yao Qi <yao@codesourcery.com>
7269 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7270 * corefile.c (read_memory): Adjusted.
7271 * target.c (target_write_with_progress): Adjusted.
7273 2014-02-23 Yao Qi <yao@codesourcery.com>
7277 2013-10-25 Yao Qi <yao@codesourcery.com>
7279 * remote.c (remote_traceframe_info): Return early if
7280 traceframe is not selected.
7282 2013-07-19 Yao Qi <yao@codesourcery.com>
7284 * target.c (update_current_target): Change the default action
7285 of 'to_traceframe_info' from tcomplain to return_zero.
7286 * target.h (struct target_ops) <to_traceframe_info>: Add more
7289 2014-02-23 Yao Qi <yao@codesourcery.com>
7291 * valops.c (read_value_memory): Rewrite it. Call
7292 target_xfer_partial in a loop.
7293 * exec.h (section_table_available_memory): Remove declaration.
7294 Move comments to ...
7295 * exec.c (section_table_available_memory): ... here. Make it
7298 2014-02-23 Yao Qi <yao@codesourcery.com>
7300 * exec.c (section_table_read_available_memory): New function.
7301 * exec.h (section_table_read_available_memory): Declare.
7302 * ctf.c (ctf_xfer_partial): Call
7303 section_table_read_available_memory.
7304 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7306 2014-02-23 Yao Qi <yao@codesourcery.com>
7308 * ctf.c (ctf_xfer_partial): Move code to ...
7309 * exec.c (exec_read_partial_read_only): ... it. New function.
7310 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7311 * tracefile.c: Include "exec.h".
7312 * exec.h (exec_read_partial_read_only): Declare.
7314 2014-02-23 Yao Qi <yao@codesourcery.com>
7316 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7317 (tfile_has_memory): Remove.
7318 (init_tfile_ops): Don't set fields to_has_all_memory and
7319 to_has_memory of tfile_ops.
7320 * tracefile.c (tracefile_has_all_memory): New function.
7321 (tracefile_has_memory): New function.
7322 (init_tracefile_ops): Initialize fields to_has_all_memory and
7323 to_has_memory of 'ops'.
7325 2014-02-23 Yao Qi <yao@codesourcery.com>
7327 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7328 (ctf_thread_alive, ctf_get_trace_status): Remove.
7329 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7331 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7332 (tfile_has_stack, tfile_has_registers): Remove.
7333 (tfile_thread_alive): Remove.
7334 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7336 * tracefile.c (tracefile_has_stack): New function.
7337 (tracefile_has_registers): New function.
7338 (tracefile_thread_alive): New function.
7339 (tracefile_get_trace_status): New function.
7340 (init_tracefile_ops): New function.
7341 * tracefile.h (init_tracefile_ops): Declare.
7343 2014-02-23 Yao Qi <yao@codesourcery.com>
7345 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7346 (O_LARGEFILE): Likewise.
7347 (tfile_ops): Likewise.
7348 (TRACE_HEADER_SIZE): Likewise.
7349 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7350 (cur_data_size): Likewise.
7351 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7352 (tfile_close, tfile_files_info): Likewise.
7353 (tfile_get_trace_status): Likewise.
7354 (tfile_get_tracepoint_status): Likewise.
7355 (tfile_get_traceframe_address): Likewise.
7356 (tfile_trace_find, match_blocktype): Likewise.
7357 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7358 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7359 (tfile_get_trace_state_variable_value): Likewise.
7360 (tfile_has_all_memory, tfile_has_memory): Likewise.
7361 (tfile_has_stack, tfile_has_registers): Likewise.
7362 (tfile_thread_alive, build_traceframe_info): Likewise.
7363 (tfile_traceframe_info, init_tfile_ops): Likewise.
7364 (_initialize_tracepoint): Don't call init_tfile_ops
7365 and add_target_with_completer.
7366 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7367 exec.h, completer.h and filenames.h.
7368 (_initialize_tracefile_tfile): New function.
7370 2014-02-23 Yao Qi <yao@codesourcery.com>
7372 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7374 (HFILES_NO_SRCDIR): Add tracefile.h.
7375 * ctf.c: Include "tracefile.h".
7376 * tracefile.h: New file.
7377 * tracefile.c: New file
7378 * tracefile-tfile.c: New file.
7379 * tracepoint.c: Include "tracefile.h".
7380 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7381 (stop_reason_names): Add const.
7382 (trace_file_writer_xfree): Move it to tracefile.c.
7383 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7384 (trace_save_ctf): Likewise.
7385 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7386 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7387 (tfile_write_header, tfile_write_regblock_type): Likewise.
7388 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7389 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7390 (tfile_write_raw_data, tfile_end): Likewise.
7391 (tfile_trace_file_writer_new): Likewise.
7392 (free_uploaded_tp): Make it extern.
7393 (free_uploaded_tsv): Make it extern.
7394 (_initialize_tracepoint): Move code to register command 'tsave'
7396 * tracepoint.h (stop_reason_names): Declare.
7397 (struct trace_frame_write_ops): Move it to tracefile.h.
7398 (struct trace_file_write_ops): Likewise.
7399 (struct trace_file_writer): Likewise.
7400 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7402 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7405 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7407 (get_cores_used_by_process): New parameter num_cores, use it.
7408 (linux_xfer_osdata_processes): Pass num_cores to it.
7409 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7412 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7414 * target.c (memory_xfer_partial): Fix length arg in call to
7415 breakpoint_xfer_memory.
7417 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7420 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7421 number comes after the + or - signs. Adjust length of register
7422 name to be extracted.
7424 2014-02-20 Tom Tromey <tromey@redhat.com>
7426 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7427 (ada_varobj_ops): Mark "extern".
7429 2014-02-20 Tom Tromey <tromey@redhat.com>
7431 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7433 2014-02-20 Doug Evans <xdje42@gmail.com>
7435 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7436 All callers updated.
7437 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7438 All callers updated.
7439 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7440 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7442 2014-02-20 lin zuojian <manjian2006@gmail.com>
7443 Joel Brobecker <brobecker@adacore.com>
7444 Doug Evans <xdje42@gmail.com>
7447 * dwarf2read.c (struct die_info): New member in_process.
7448 (reset_die_in_process): New function.
7449 (process_die): Set it at the start, reset when returning.
7450 (inherit_abstract_dies): Only call process_die if origin_child_die
7451 not already being processed.
7453 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7455 * windows-nat.c (handle_unload_dll): Add function documentation.
7456 (do_initial_windows_stuff): Add comment explaining why we wait
7457 until after inferior initialization has finished before
7458 processing all DLLs.
7460 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7462 * windows-nat.c (get_module_name): Delete.
7463 (windows_get_exec_module_filename): New function, mostly
7464 inspired from get_module_name.
7465 (windows_pid_to_exec_file): Replace call to get_module_name
7466 by call to windows_get_exec_module_filename.
7468 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7470 * windows-nat.c (handle_load_dll): Rewrite this function's
7471 introductory comment. Remove code using get_module_name
7472 to get the DLL's name.
7474 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7476 * windows-nat.c (get_windows_debug_event): Ignore
7477 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7478 if windows_initialization_done == 0.
7479 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7480 Adjust implementation to always load all DLLs.
7481 (do_initial_windows_stuff): Replace call to
7482 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7484 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7486 * windows-nat.c (_initialize_windows_nat): Deprecate the
7487 "dll-symbols" command. Turn the "add-shared-symbol-files"
7488 and "assf" aliases into commands, and deprecate them as well.
7489 * NEWS: Add entry explaining that "dll-symbols" and its two
7490 aliases are now deprecated.
7492 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7494 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7495 new-line in debug string. Remove trailing spaces.
7497 2014-02-19 Stan Shebs <stan@codesourcery.com>
7499 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7501 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7503 * NEWS: Add entry for the new feature
7504 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7507 2014-02-19 Stan Shebs <stan@codesourcery.com>
7509 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7511 2014-02-19 Pedro Alves <palves@redhat.com>
7513 * common/ptid.h (struct ptid): Mention that process_stratum
7514 targets should prefer ptid.lwp.
7516 2014-02-19 Pedro Alves <palves@redhat.com>
7518 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7519 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7520 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7521 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7522 store remote thread ids rather than ptid.tid.
7523 (_initialize_remote): Adjust.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * target.c (target_get_unwinder): Rewrite.
7528 (target_get_tailcall_unwinder): Rewrite.
7529 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7530 (record_btrace_to_get_tailcall_unwinder): New function.
7531 (init_record_btrace_ops): Update.
7532 * target.h (struct target_ops) <to_get_unwinder,
7533 to_get_tailcall_unwinder>: Now function pointers. Use
7534 TARGET_DEFAULT_RETURN.
7536 2014-02-19 Tom Tromey <tromey@redhat.com>
7538 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7540 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7542 2014-02-19 Tom Tromey <tromey@redhat.com>
7544 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7546 * target-delegates.c: Rebuild.
7547 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7548 TARGET_DEFAULT_FUNC.
7549 * target.c (default_target_decr_pc_after_break): Rename from
7550 forward_target_decr_pc_after_break. Simplify.
7551 (target_decr_pc_after_break): Rely on delegation.
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7555 * target.c (update_current_target): Do not INHERIT to_doc or
7556 to_magic. Do not de_fault to_open or to_close.
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7560 * gcore.h (objfile_find_memory_regions): Declare.
7561 * gcore.c (objfile_find_memory_regions): No longer static. Add
7563 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7564 * exec.c: Include gcore.h.
7565 (exec_set_find_memory_regions): Remove.
7566 (exec_find_memory_regions): Remove.
7567 (exec_do_find_memory_regions): Remove.
7568 (init_exec_ops): Update.
7569 * defs.h (exec_set_find_memory_regions): Remove.
7571 2014-02-19 Tom Tromey <tromey@redhat.com>
7573 * target-delegates.c: Rebuild.
7574 * target.h (struct target_ops) <to_extra_thread_info,
7575 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7576 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7577 not 0, in TARGET_DEFAULT_RETURN.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * target.c (complete_target_initialization): Remove casts. Use
7582 return_zero_has_execution.
7583 (return_zero): Add "ignore" argument.
7584 (return_zero_has_execution): New function.
7585 (init_dummy_target): Remove casts. Use
7586 return_zero_has_execution.
7588 2014-02-19 Tom Tromey <tromey@redhat.com>
7590 * target.c (update_current_target): Update comments. Do not
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7595 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7597 * corelow.c (core_read_description): Delegate when needed.
7598 * remote.c (remote_read_description): Delegate when needed.
7599 * target-delegates.c: Rebuild.
7600 * target.c (target_read_description): Rewrite.
7601 * target.h (struct target_ops) <to_read_description>: Update
7602 comment. Use TARGET_DEFAULT_RETURN.
7604 2014-02-19 Tom Tromey <tromey@redhat.com>
7606 * target-delegates.c: Rebuild.
7607 * target.c (update_current_target): Don't inherit or default
7609 (find_default_run_target): Check against delegate_can_run.
7610 * target.h (struct target_ops) <to_can_run>: Use
7611 TARGET_DEFAULT_RETURN.
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7615 * target-delegates.c: Rebuild.
7616 * target.c (target_disconnect): Unconditionally delegate.
7617 * target.h (struct target_ops) <to_disconnect>: Use
7618 TARGET_DEFAULT_NORETURN.
7620 2014-02-19 Tom Tromey <tromey@redhat.com>
7622 * record.c (record_stop): Unconditionally delegate.
7623 * target-delegates.c: Rebuild.
7624 * target.c (target_stop_recording): Unconditionally delegate.
7625 * target.h (struct target_ops) <to_stop_recording>: Use
7626 TARGET_DEFAULT_IGNORE.
7628 2014-02-19 Tom Tromey <tromey@redhat.com>
7630 * target-delegates.c: Rebuild.
7631 * target.c (target_enable_btrace): Unconditionally delegate.
7632 * target.h (struct target_ops) <to_enable_btrace>: Use
7633 TARGET_DEFAULT_NORETURN.
7635 2014-02-19 Tom Tromey <tromey@redhat.com>
7637 * target-delegates.c: Rebuild.
7638 * target.c (target_read_btrace): Unconditionally delegate.
7639 * target.h (struct target_ops) <to_read_btrace>: Use
7640 TARGET_DEFAULT_NORETURN.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target-delegates.c: Rebuild.
7645 * target.c (target_teardown_btrace): Unconditionally delegate.
7646 * target.h (struct target_ops) <to_teardown_btrace>: Use
7647 TARGET_DEFAULT_NORETURN.
7649 2014-02-19 Tom Tromey <tromey@redhat.com>
7651 * target-delegates.c: Rebuild.
7652 * target.c (target_disable_btrace): Unconditionally delegate.
7653 * target.h (struct target_ops) <to_disable_btrace>: Use
7654 TARGET_DEFAULT_NORETURN.
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target-delegates.c: Rebuild.
7659 * target.c (default_search_memory): New function.
7660 (simple_search_memory): Update comment.
7661 (target_search_memory): Unconditionally delegate.
7662 * target.h (struct target_ops) <to_search_memory>: Use
7663 TARGET_DEFAULT_FUNC.
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7667 * auxv.c (default_auxv_parse): No longer static.
7668 (target_auxv_parse): Unconditionally delegate.
7669 * auxv.h (default_auxv_parse): Declare.
7670 * target-delegates.c: Rebuild.
7671 * target.c: Include auxv.h.
7672 * target.h (struct target_ops) <to_auxv_parse>: Use
7673 TARGET_DEFAULT_FUNC.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_memory_map): Unconditionally delegate.
7679 * target.h (struct target_ops) <to_memory_map>: Use
7680 TARGET_DEFAULT_RETURN.
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target-delegates.c: Rebuild.
7685 * target.c (target_thread_alive): Unconditionally delegate.
7686 * target.h (struct target_ops) <to_thread_alive>: Use
7687 TARGET_DEFAULT_RETURN.
7689 2014-02-19 Tom Tromey <tromey@redhat.com>
7691 * target-delegates.c: Rebuild.
7692 * target.c (target_save_record): Unconditionally delegate.
7693 * target.h (struct target_ops) <to_save_record>: Use
7694 TARGET_DEFAULT_NORETURN.
7696 2014-02-19 Tom Tromey <tromey@redhat.com>
7698 * target-delegates.c: Rebuild.
7699 * target.c (target_delete_record): Unconditionally delegate.
7700 * target.h (struct target_ops) <to_delete_record>: Use
7701 TARGET_DEFAULT_NORETURN.
7703 2014-02-19 Tom Tromey <tromey@redhat.com>
7705 * target-delegates.c: Rebuild.
7706 * target.c (target_record_is_replaying): Unconditionally
7708 * target.h (struct target_ops) <to_record_is_replaying>: Use
7709 TARGET_DEFAULT_RETURN.
7711 2014-02-19 Tom Tromey <tromey@redhat.com>
7713 * target-delegates.c: Rebuild.
7714 * target.c (target_goto_record_begin): Unconditionally delegate.
7715 * target.h (struct target_ops) <to_goto_record_begin>: Use
7716 TARGET_DEFAULT_NORETURN.
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7720 * target-delegates.c: Rebuild.
7721 * target.c (target_goto_record_end): Unconditionally delegate.
7722 * target.h (struct target_ops) <to_goto_record_end>: Use
7723 TARGET_DEFAULT_NORETURN.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target-delegates.c: Rebuild.
7728 * target.c (target_goto_record): Unconditionally delegate.
7729 * target.h (struct target_ops) <to_goto_record>: Use
7730 TARGET_DEFAULT_NORETURN.
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7734 * target-delegates.c: Rebuild.
7735 * target.c (target_insn_history): Unconditionally delegate.
7736 * target.h (struct target_ops) <to_insn_history>: Use
7737 TARGET_DEFAULT_NORETURN.
7739 2014-02-19 Tom Tromey <tromey@redhat.com>
7741 * target-delegates.c: Rebuild.
7742 * target.c (target_insn_history_from): Unconditionally delegate.
7743 * target.h (struct target_ops) <to_insn_history_from>: Use
7744 TARGET_DEFAULT_NORETURN.
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target-delegates.c: Rebuild.
7749 * target.c (target_insn_history_range): Unconditionally delegate.
7750 * target.h (struct target_ops) <to_insn_history_range>: Use
7751 TARGET_DEFAULT_NORETURN.
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7755 * target-delegates.c: Rebuild.
7756 * target.c (target_call_history): Unconditionally delegate.
7757 * target.h (struct target_ops) <to_call_history>: Use
7758 TARGET_DEFAULT_NORETURN.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target-delegates.c: Rebuild.
7763 * target.c (target_call_history_from): Unconditionally delegate.
7764 * target.h (struct target_ops) <to_call_history_from>: Use
7765 TARGET_DEFAULT_NORETURN.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target-delegates.c: Rebuild.
7770 * target.c (target_call_history_range): Unconditionally delegate.
7771 * target.h (struct target_ops) <to_call_history_range>: Use
7772 TARGET_DEFAULT_NORETURN.
7774 2014-02-19 Tom Tromey <tromey@redhat.com>
7776 * target-delegates.c: Rebuild.
7777 * target.c (target_verify_memory): Unconditionally delegate.
7778 * target.h (struct target_ops) <to_verify_memory>: Use
7779 TARGET_DEFAULT_NORETURN.
7781 2014-02-19 Tom Tromey <tromey@redhat.com>
7783 * target-delegates.c: Rebuild.
7784 * target.c (target_core_of_thread): Unconditionally delegate.
7785 * target.h (struct target_ops) <to_core_of_thread>: Use
7786 TARGET_DEFAULT_RETURN.
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target-delegates.c: Rebuild.
7791 * target.c (target_flash_done): Unconditionally delegate.
7792 * target.h (struct target_ops) <to_flash_done>: Use
7793 TARGET_DEFAULT_NORETURN.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target-delegates.c: Rebuild.
7798 * target.c (target_flash_erase): Unconditionally delegate.
7799 * target.h (struct target_ops) <to_flash_erase>: Use
7800 TARGET_DEFAULT_NORETURN.
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_get_section_table): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_get_section_table>: Use
7807 TARGET_DEFAULT_RETURN.
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_pid_to_str): Unconditionally delegate.
7813 (init_dummy_target): Don't initialize to_pid_to_str.
7814 (default_pid_to_str): Rename from dummy_pid_to_str.
7815 * target.h (struct target_ops) <to_pid_to_str>: Use
7816 TARGET_DEFAULT_FUNC.
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_find_new_threads): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_find_new_threads>: Use
7823 TARGET_DEFAULT_RETURN.
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7827 * target-delegates.c: Rebuild.
7828 * target.c (target_program_signals): Unconditionally delegate.
7829 * target.h (struct target_ops) <to_program_signals>: Use
7830 TARGET_DEFAULT_IGNORE.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (target_pass_signals): Unconditionally delegate.
7836 * target.h (struct target_ops) <to_pass_signals>: Use
7837 TARGET_DEFAULT_IGNORE.
7839 2014-02-19 Tom Tromey <tromey@redhat.com>
7841 * target-delegates.c: Rebuild.
7842 * target.c (default_mourn_inferior): New function.
7843 (target_mourn_inferior): Unconditionally delegate.
7844 * target.h (struct target_ops) <to_mourn_inferior>: Use
7845 TARGET_DEFAULT_FUNC.
7847 2014-02-19 Tom Tromey <tromey@redhat.com>
7849 * target-delegates.c: Rebuild.
7850 * target.c (default_follow_fork): New function.
7851 (target_follow_fork): Unconditionally delegate.
7852 * target.h (struct target_ops) <to_follow_fork>: Use
7853 TARGET_DEFAULT_FUNC.
7855 2014-02-19 Tom Tromey <tromey@redhat.com>
7857 * target-delegates.c: Rebuild.
7858 * target.c (target_kill): Unconditionally delegate.
7859 * target.h (struct target_ops) <to_kill>: Use
7860 TARGET_DEFAULT_NORETURN.
7862 2014-02-19 Tom Tromey <tromey@redhat.com>
7864 * target-delegates.c: Rebuild.
7865 * target.c (target_masked_watch_num_registers): Unconditionally
7867 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7868 Use TARGET_DEFAULT_RETURN.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target-delegates.c: Rebuild.
7873 * target.c (target_remove_mask_watchpoint): Unconditionally
7875 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7876 TARGET_DEFAULT_RETURN.
7878 2014-02-19 Tom Tromey <tromey@redhat.com>
7880 * target-delegates.c: Rebuild.
7881 * target.c (target_insert_mask_watchpoint): Unconditionally
7883 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7884 TARGET_DEFAULT_RETURN.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (target_ranged_break_num_registers): Unconditionally
7891 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7892 Use TARGET_DEFAULT_RETURN.
7894 2014-02-19 Tom Tromey <tromey@redhat.com>
7896 * target-delegates.c: Rebuild.
7897 * target.c (target_fetch_registers): Unconditionally delegate.
7898 * target.h (struct target_ops) <to_fetch_registers>: Use
7899 TARGET_DEFAULT_NORETURN.
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_stop>: Use
7907 TARGET_DEFAULT_IGNORE.
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
7913 to_can_run_breakpoint_commands.
7914 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7915 Use TARGET_DEFAULT_RETURN.
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
7921 to_supports_evaluation_of_breakpoint_conditions.
7922 * target.h (struct target_ops)
7923 <to_supports_evaluation_of_breakpoint_conditions>: 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_augmented_libraries_svr4_read.
7931 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7932 Use TARGET_DEFAULT_RETURN.
7934 2014-02-19 Tom Tromey <tromey@redhat.com>
7936 * target-delegates.c: Rebuild.
7937 * target.c (update_current_target): Don't inherit or default
7939 * target.h (struct target_ops) <to_can_use_agent>: Use
7940 TARGET_DEFAULT_RETURN.
7942 2014-02-19 Tom Tromey <tromey@redhat.com>
7944 * target-delegates.c: Rebuild.
7945 * target.c (update_current_target): Don't inherit or default
7947 * target.h (struct target_ops) <to_use_agent>: Use
7948 TARGET_DEFAULT_NORETURN.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target-delegates.c: Rebuild.
7953 * target.c (update_current_target): Don't inherit or default
7955 (return_null): Remove.
7956 * target.h (struct target_ops) <to_traceframe_info>: Use
7957 TARGET_DEFAULT_RETURN.
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
7963 to_static_tracepoint_markers_by_strid.
7964 * target.h (struct target_ops)
7965 <to_static_tracepoint_markers_by_strid>: Use
7966 TARGET_DEFAULT_NORETURN.
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7970 * target-delegates.c: Rebuild.
7971 * target.c (update_current_target): Don't inherit or default
7972 to_static_tracepoint_marker_at.
7973 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7974 Use TARGET_DEFAULT_RETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (update_current_target): Don't inherit or default
7981 * target.h (struct target_ops) <to_set_permissions>: Use
7982 TARGET_DEFAULT_IGNORE.
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7986 * target-delegates.c: Rebuild.
7987 * target.c (update_current_target): Don't inherit or default
7989 * target.h (struct target_ops) <to_get_tib_address>: Use
7990 TARGET_DEFAULT_NORETURN.
7992 2014-02-19 Tom Tromey <tromey@redhat.com>
7994 * target-delegates.c: Rebuild.
7995 * target.c (update_current_target): Don't inherit or default
7997 * target.h (struct target_ops) <to_set_trace_notes>: Use
7998 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 initialize
8004 to_set_trace_buffer_size.
8005 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8006 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
8013 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8014 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8021 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8022 TARGET_DEFAULT_IGNORE.
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
8028 to_get_min_fast_tracepoint_insn_len.
8029 (return_minus_one): Remove.
8030 * target.h (struct target_ops)
8031 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_get_raw_trace_data.
8038 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8039 TARGET_DEFAULT_NORETURN.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_upload_trace_state_variables.
8046 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8047 Use TARGET_DEFAULT_RETURN.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_upload_tracepoints.
8054 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8055 TARGET_DEFAULT_RETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8062 * target.h (struct target_ops) <to_save_trace_data>: Use
8063 TARGET_DEFAULT_NORETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_get_trace_state_variable_value.
8070 * target.h (struct target_ops)
8071 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8078 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8085 * target.h (struct target_ops) <to_trace_stop>: Use
8086 TARGET_DEFAULT_NORETURN.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_get_tracepoint_status.
8093 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8094 TARGET_DEFAULT_NORETURN.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_get_trace_status.
8101 * target.h (struct target_ops) <to_get_trace_status>: Use
8102 TARGET_DEFAULT_RETURN.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (update_current_target): Don't inherit or default
8109 * target.h (struct target_ops) <to_trace_start>: Use
8110 TARGET_DEFAULT_NORETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (update_current_target): Don't inherit or default
8116 to_trace_set_readonly_regions.
8117 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8118 Use TARGET_DEFAULT_NORETURN.
8120 2014-02-19 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (update_current_target): Don't inherit or default
8124 to_disable_tracepoint.
8125 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8126 TARGET_DEFAULT_NORETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (update_current_target): Don't inherit or default
8132 to_enable_tracepoint.
8133 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8134 TARGET_DEFAULT_NORETURN.
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8138 * target-delegates.c: Rebuild.
8139 * target.c (update_current_target): Don't inherit or default
8140 to_download_trace_state_variable.
8141 * target.h (struct target_ops) <to_download_trace_state_variable>:
8142 Use TARGET_DEFAULT_NORETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8148 to_can_download_tracepoint.
8149 * target.h (struct target_ops) <to_can_download_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_download_tracepoint.
8157 * target.h (struct target_ops) <to_download_tracepoint>: Use
8158 TARGET_DEFAULT_NORETURN.
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
8165 * target.h (struct target_ops) <to_trace_init>: Use
8166 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
8173 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8174 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
8181 * target.h (struct target_ops)
8182 <to_supports_enable_disable_tracepoint>: Use
8183 TARGET_DEFAULT_RETURN.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target-delegates.c: Rebuild.
8188 * target.c (update_current_target): Don't inherit or default
8189 to_supports_multi_process.
8190 * target.h (struct target_ops) <to_supports_multi_process>: Use
8191 TARGET_DEFAULT_RETURN.
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
8197 to_get_ada_task_ptid.
8198 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8199 TARGET_DEFAULT_FUNC.
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8203 * target-delegates.c: Rebuild.
8204 * target.c (update_current_target): Don't inherit or default
8205 to_thread_architecture.
8206 * target.h (struct target_ops) <to_thread_architecture>: Use
8207 TARGET_DEFAULT_FUNC.
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8211 * target-delegates.c: Rebuild.
8212 * target.c (update_current_target): Don't inherit or default
8213 to_execution_direction.
8214 * target.h (struct target_ops) <to_execution_direction>: Use
8215 TARGET_DEFAULT_FUNC.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (update_current_target): Don't inherit or default
8221 to_can_execute_reverse.
8222 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8223 TARGET_DEFAULT_RETURN.
8224 (target_can_execute_reverse): Unconditionally delegate.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (update_current_target): Don't inherit or default
8231 (dummy_goto_bookmark): Remove.
8232 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8233 * target.h (struct target_ops) <to_goto_bookmark>: Use
8234 TARGET_DEFAULT_NORETURN.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target-delegates.c: Rebuild.
8239 * target.c (update_current_target): Don't inherit or default
8241 (dummy_get_bookmark): Remove.
8242 (init_dummy_target): Don't inherit or default to_get_bookmark.
8243 * target.h (struct target_ops) <to_get_bookmark>: Use
8244 TARGET_DEFAULT_NORETURN
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (update_current_target): Don't inherit or default
8250 to_make_corefile_notes.
8251 (init_dummy_target): Don't initialize to_make_corefile_notes.
8252 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8253 TARGET_DEFAULT_FUNC.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_find_memory_regions.
8260 (init_dummy_target): Don't initialize to_find_memory_regions.
8261 * target.h (struct target_ops) <to_find_memory_regions>: Use
8262 TARGET_DEFAULT_FUNC.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8269 * target.h (struct target_ops) <to_log_command>: Use
8270 TARGET_DEFAULT_IGNORE.
8271 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8278 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8279 TARGET_DEFAULT_RETURN.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8286 (target_thread_name): Unconditionally delegate.
8287 * target.h (struct target_ops) <to_thread_name>: Use
8288 TARGET_DEFAULT_RETURN.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_extra_thread_info.
8295 * target.h (struct target_ops) <to_extra_thread_info>: 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
8303 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8311 (return_one): Remove.
8312 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8313 TARGET_DEFAULT_RETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_insert_exec_catchpoint.
8320 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8321 TARGET_DEFAULT_RETURN.
8323 2014-01-08 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_insert_exec_catchpoint.
8328 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8329 TARGET_DEFAULT_RETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_remove_vfork_catchpoint.
8336 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8337 TARGET_DEFAULT_RETURN.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_insert_vfork_catchpoint.
8344 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8345 TARGET_DEFAULT_RETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_remove_fork_catchpoint.
8352 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8353 TARGET_DEFAULT_RETURN.
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_insert_fork_catchpoint.
8360 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8361 TARGET_DEFAULT_RETURN.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_post_startup_inferior.
8368 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8369 TARGET_DEFAULT_IGNORE.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8376 * target.h (struct target_ops) <to_load>: Use
8377 TARGET_DEFAULT_NORETURN.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8384 * target.h (struct target_ops) <to_terminal_info>: Use
8385 TARGET_DEFAULT_FUNC.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_terminal_save_ours.
8392 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8393 TARGET_DEFAULT_IGNORE.
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8400 * target.h (struct target_ops) <to_terminal_ours>: Use
8401 TARGET_DEFAULT_IGNORE.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_terminal_ours_for_output.
8408 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8409 TARGET_DEFAULT_IGNORE.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_terminal_inferior.
8416 * target.h (struct target_ops) <to_terminal_inferior>: Use
8417 TARGET_DEFAULT_IGNORE.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8424 * target.h (struct target_ops) <to_terminal_init>: Use
8425 TARGET_DEFAULT_IGNORE.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_can_accel_watchpoint_condition.
8432 * target.h (struct target_ops)
8433 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_region_ok_for_hw_watchpoint.
8440 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8441 Use TARGET_DEFAULT_FUNC.
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_watchpoint_addr_within_range.
8448 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8449 Use TARGET_DEFAULT_FUNC.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * target-delegates.c: Rebuild.
8454 * target.c (update_current_target): Don't inherit or default
8455 to_remove_watchpoint.
8456 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8457 TARGET_DEFAULT_NORETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (update_current_target): Don't inherit or default
8463 to_insert_watchpoint.
8464 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8465 TARGET_DEFAULT_RETURN.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_remove_hw_breakpoint.
8472 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8473 TARGET_DEFAULT_RETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_insert_hw_breakpoint.
8480 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8481 TARGET_DEFAULT_RETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_can_use_hw_breakpoint.
8488 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8489 TARGET_DEFAULT_RETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8496 * target.h (struct target_ops) <to_files_info>: Use
8497 TARGET_DEFAULT_IGNORE.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8504 * target.h (struct target_ops) <to_store>: Use
8505 TARGET_DEFAULT_NORETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8512 * target.h (struct target_ops) <to_post_attach>: Use
8513 TARGET_DEFAULT_IGNORE.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8520 (default_rcmd): New function.
8521 (do_monitor_command): Unconditionally delegate.
8522 * target.h (struct target_ops) <to_rmcd>: Use
8523 TARGET_DEFAULT_FUNC.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target-delegates.c: Rebuild.
8528 * target.c (init_dummy_target): Don't initialize to_attach.
8529 (target_attach): Unconditionally delegate.
8530 * target.h (struct target_ops) <to_attach>: Use
8531 TARGET_DEFAULT_FUNC.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (target_detach): Unconditionally delegate.
8537 (init_dummy_target): Don't initialize to_detach.
8538 * target.h (struct target_ops) <to_detach>: Use
8539 TARGET_DEFAULT_IGNORE.
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8545 (target_augmented_libraries_svr4_read): Add argument.
8546 * target.c (update_current_target): Update.
8547 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8552 * target.h (struct target_ops) <to_call_history_range>: Add
8554 * target.c (target_call_history_range): Add argument.
8555 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8557 (record_btrace_call_history_from): Update.
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8561 * target.h (struct target_ops) <to_call_history_from>: Add
8563 * target.c (target_call_history_from): Add argument.
8564 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target.h (struct target_ops) <to_call_history>: Add argument.
8570 * target.c (target_call_history): Add argument.
8571 * record-btrace.c (record_btrace_call_history): Add 'self'
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target.h (struct target_ops) <to_insn_history_range>: Add
8578 * target.c (target_insn_history_range): Add argument.
8579 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8581 (record_btrace_insn_history_from): Update.
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8585 * target.h (struct target_ops) <to_insn_history_from>: Add
8587 * target.c (target_insn_history_from): Add argument.
8588 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target.h (struct target_ops) <to_insn_history>: Add argument.
8594 * target.c (target_insn_history): Add argument.
8595 * record-btrace.c (record_btrace_insn_history): Add 'self'
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target.h (struct target_ops) <to_goto_record>: Add argument.
8601 * target.c (target_goto_record): Add argument.
8602 * record-full.c (record_full_goto): Add 'self' argument.
8603 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8608 * target.c (target_goto_record_end): Add argument.
8609 * record-full.c (record_full_goto_end): Add 'self' argument.
8610 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target.h (struct target_ops) <to_goto_record_begin>: Add
8616 * target.c (target_goto_record_begin): Add argument.
8617 * record-full.c (record_full_goto_begin): Add 'self' argument.
8618 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target.h (struct target_ops) <to_record_is_replaying>: Add
8625 * target.c (target_record_is_replaying): Add argument.
8626 * record-full.c (record_full_is_replaying): Add 'self' argument.
8627 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8629 (record_btrace_xfer_partial, record_btrace_store_registers)
8630 (record_btrace_prepare_to_store, record_btrace_resume)
8631 (record_btrace_wait, record_btrace_decr_pc_after_break)
8632 (record_btrace_find_new_threads, record_btrace_thread_alive):
8635 2014-02-19 Tom Tromey <tromey@redhat.com>
8637 * target.h (struct target_ops) <to_delete_record>: Add argument.
8638 * target.c (target_delete_record): Add argument.
8639 * record-full.c (record_full_delete): Add 'self' argument.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target.h (struct target_ops) <to_save_record>: Add argument.
8644 * target.c (target_save_record): Add argument.
8645 * record-full.c (record_full_save): Add 'self' argument.
8646 (record_full_save): Add 'self' argument.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target.h (struct target_ops) <to_info_record>: Add argument.
8651 * target.c (target_info_record): Add argument.
8652 * record.c (info_record_command): Add argument.
8653 * record-full.c (record_full_info): Add 'self' argument.
8654 * record-btrace.c (record_btrace_info): Add 'self' argument.
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8658 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8659 * target.c (target_stop_recording): Add argument.
8660 * record.c (record_stop): Add argument.
8661 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8666 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8667 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8668 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8670 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8671 (_initialize_amd64_linux_nat): Use it.
8672 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8673 (_initialize_i386_linux_nat): Use it.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8678 * target.c (target_teardown_btrace): Add argument.
8679 * remote.c (remote_teardown_btrace): Add 'self' argument.
8680 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8682 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8688 * target.c (target_disable_btrace): Add argument.
8689 * remote.c (remote_disable_btrace): Add 'self' argument.
8690 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8692 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8697 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8698 * target.c (target_enable_btrace): Add argument.
8699 * remote.c (remote_enable_btrace): Add 'self' argument.
8700 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8702 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8707 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8708 (target_can_use_agent): Add argument.
8709 * target.c (update_current_target): Update.
8710 * remote.c (remote_can_use_agent): Add 'self' argument.
8711 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target.h (struct target_ops) <to_use_agent>: Add argument.
8716 (target_use_agent): Add argument.
8717 * target.c (update_current_target): Update.
8718 * remote.c (remote_use_agent): Add 'self' argument.
8719 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8724 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8725 (target_traceframe_info): Add argument.
8726 * target.c (update_current_target): Update.
8727 * remote.c (remote_traceframe_info): Add 'self' argument.
8728 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target.h (target_static_tracepoint_markers_by_strid): Add
8734 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8736 * target.c (update_current_target): Update.
8737 * remote.c (struct target_ops)
8738 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8739 * linux-nat.c (struct target_ops)
8740 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8746 (target_static_tracepoint_marker_at): Add argument.
8747 * target.c (update_current_target): Update.
8748 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8754 (target_set_permissions): Add argument.
8755 * target.c (update_current_target): Update.
8756 * remote.c (remote_set_permissions): Add 'self' argument.
8757 (remote_start_remote): Update.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8762 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8763 (target_get_tib_address): Add argument.
8764 * target.c (update_current_target): Update.
8765 * remote.c (remote_get_tib_address): Add 'self' argument.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8770 (target_set_trace_notes): Add argument.
8771 * target.c (update_current_target): Update.
8772 * remote.c (remote_set_trace_notes): Add 'self' argument.
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8776 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8778 (target_set_trace_buffer_size): Add argument.
8779 * target.c (update_current_target): Update.
8780 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8786 (target_set_circular_trace_buffer): Add argument.
8787 * target.c (update_current_target): Update.
8788 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8795 (target_set_disconnected_tracing): Add argument.
8796 * target.c (update_current_target): Update.
8797 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target.h (struct target_ops)
8802 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8803 (target_get_min_fast_tracepoint_insn_len): Add argument.
8804 * target.c (update_current_target): Update.
8805 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8812 (target_get_raw_trace_data): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8820 (target_upload_trace_state_variables): Add argument.
8821 * target.c (update_current_target): Update.
8822 * remote.c (remote_upload_trace_state_variables): Add 'self'
8824 (remote_start_remote): Update.
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8830 (target_upload_tracepoints): Add argument.
8831 * target.c (update_current_target): Update.
8832 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8833 (remote_start_remote): Update.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8838 (target_save_trace_data): Add argument.
8839 * target.c (update_current_target): Update.
8840 * remote.c (remote_save_trace_data): Add 'self' argument.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8846 * target.h (struct target_ops)
8847 <to_get_trace_state_variable_value>: Add argument.
8848 (target_get_trace_state_variable_value): Add argument.
8849 * target.c (update_current_target): Update.
8850 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8852 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8857 * target.h (struct target_ops) <to_trace_find>: Add argument.
8858 (target_trace_find): Add argument.
8859 * target.c (update_current_target): Update.
8860 * remote.c (remote_trace_find): Add 'self' argument.
8861 * ctf.c (ctf_trace_find): Add 'self' argument.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8866 (target_trace_stop): Add argument.
8867 * target.c (update_current_target): Update.
8868 * remote.c (remote_trace_stop): Add 'self' argument.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8873 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8875 (target_get_tracepoint_status): Add argument.
8876 * target.c (update_current_target): Update.
8877 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8882 * target.h (struct target_ops) <to_get_trace_status>: Add
8884 (target_get_trace_status): Add argument.
8885 * target.c (update_current_target): Update.
8886 * remote.c (remote_get_trace_status): Add 'self' argument.
8887 (remote_start_remote, remote_can_download_tracepoint): Update.
8888 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target.h (struct target_ops) <to_trace_start>: Add argument.
8893 (target_trace_start): Add argument.
8894 * target.c (update_current_target): Update.
8895 * remote.c (remote_trace_start): Add 'self' argument.
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8901 (target_trace_set_readonly_regions): Add argument.
8902 * target.c (update_current_target): Update.
8903 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8910 (target_disable_tracepoint): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8918 (target_enable_tracepoint): Add argument.
8919 * target.c (update_current_target): Update.
8920 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target.h (struct target_ops) <to_download_trace_state_variable>:
8926 (target_download_trace_state_variable): Add argument.
8927 * target.c (update_current_target): Update.
8928 * remote.c (remote_download_trace_state_variable): Add 'self'
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8935 (target_can_download_tracepoint): Add argument.
8936 * target.c (update_current_target): Update.
8937 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target.h (struct target_ops) <to_download_tracepoint>: Add
8943 (target_download_tracepoint): Add argument.
8944 * target.c (update_current_target): Update.
8945 * remote.c (remote_download_tracepoint): Add 'self' argument.
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target.h (struct target_ops) <to_trace_init>: Add argument.
8950 (target_trace_init): Add argument.
8951 * target.c (update_current_target): Update.
8952 * remote.c (remote_trace_init): Add 'self' argument.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8957 * target.c (target_fileio_readlink): Add argument.
8958 * remote.c (remote_hostio_readlink): Add 'self' argument.
8959 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8963 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8964 * target.c (target_fileio_unlink): Add argument.
8965 * remote.c (remote_hostio_unlink): Add 'self' argument.
8966 (remote_file_delete): Update.
8967 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8972 * target.c (target_fileio_close): Add argument.
8973 * remote.c (remote_hostio_close): Add 'self' argument.
8974 (remote_hostio_close_cleanup): Update.
8975 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8977 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8982 * target.c (target_fileio_pread): Add argument.
8983 * remote.c (remote_hostio_pread): Add 'self' argument.
8984 (remote_bfd_iovec_pread, remote_file_get): Update.
8985 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8990 * target.c (target_fileio_pwrite): Add argument.
8991 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8992 (remote_file_put): Update.
8993 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8998 * target.c (target_fileio_open): Add argument.
8999 * remote.c (remote_hostio_open): Add 'self' argument.
9000 (remote_bfd_iovec_open): Add 'self' argument.
9001 (remote_file_put): Add 'self' argument.
9002 (remote_file_get): Add 'self' argument.
9003 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9009 (target_can_run_breakpoint_commands): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9013 (remote_insert_breakpoint): Add 'self' argument.
9014 (remote_insert_hw_breakpoint): Add 'self' argument.
9015 (remote_can_run_breakpoint_commands): Add 'self' argument.
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops)
9020 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9021 (target_supports_evaluation_of_breakpoint_conditions): Add
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9026 (remote_insert_breakpoint): Add 'self' argument.
9027 (remote_insert_hw_breakpoint): Add 'self' argument.
9028 (remote_supports_cond_breakpoints): Add 'self' argument.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9034 (target_supports_string_tracing): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target.h (struct target_ops)
9041 <to_supports_disable_randomization>: Add argument.
9042 * target.c (find_default_supports_disable_randomization): Add
9044 (target_supports_disable_randomization): Add argument.
9045 (find_default_supports_disable_randomization): Add 'self'
9047 * remote.c (extended_remote_supports_disable_randomization): Add
9049 (remote_supports_disable_randomization): Add 'self' argument.
9050 (extended_remote_create_inferior): Update.
9051 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target.h (struct target_ops)
9057 <to_supports_enable_disable_tracepoint>: Add argument.
9058 (target_supports_enable_disable_tracepoint): Add argument.
9059 * target.c (update_current_target): Update.
9060 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target.h (struct target_ops) <to_supports_multi_process>: Add
9067 (target_supports_multi_process): Add argument.
9068 * target.c (update_current_target): Update.
9069 * remote.c (remote_supports_multi_process): Add 'self' argument.
9070 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9072 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9077 * target.h (struct target_ops) <to_execution_direction>: Add
9079 (target_execution_direction): Add argument.
9080 * target.c (default_execution_direction): Add 'self' argument.
9081 * record-full.c (record_full_execution_direction): Add 'self'
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9088 (target_can_execute_reverse): Add argument.
9089 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9090 * record-full.c (record_full_can_execute_reverse): Add 'self'
9092 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9098 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9100 (target_get_ada_task_ptid): Add argument.
9101 * target.c (update_current_target): Update.
9102 (default_get_ada_task_ptid): Add 'self' argument.
9103 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9104 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9105 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9107 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9109 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9111 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9113 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9114 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9120 (target_goto_bookmark): Add argument.
9121 * target.c (dummy_goto_bookmark): Add 'self' argument.
9122 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9127 (target_get_bookmark): Add argument.
9128 * target.c (dummy_get_bookmark): Add 'self' argument.
9129 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9135 (target_make_corefile_notes): Add argument.
9136 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9137 * procfs.c (procfs_make_note_section): Add 'self' argument.
9138 (procfs_make_note_section): Add 'self' argument.
9139 (procfs_make_note_section): Add 'self' argument.
9140 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9142 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9143 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9144 * exec.c (exec_make_note_section): Add 'self' argument.
9145 (exec_make_note_section): Add 'self' argument.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.h (struct target_ops) <to_find_memory_regions>: Add
9151 (target_find_memory_regions): Add argument.
9152 * target.c (dummy_find_memory_regions): Add 'self' argument.
9153 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9154 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9155 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9156 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9157 * exec. (exec_do_find_memory_regions): New global.
9158 (exec_set_find_memory_regions): Rewrite.
9159 (exec_find_memory_regions): New function.
9160 (init_exec_ops): Use exec_find_memory_regions.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target.h (struct target_ops) <to_supports_non_stop>: Add
9166 * target.c (find_default_supports_non_stop): Add argument.
9167 (target_supports_non_stop): Add argument.
9168 (find_default_supports_non_stop): Add 'self' argument.
9169 * remote.c (remote_supports_non_stop): Add 'self' argument.
9170 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target.h (struct target_ops) <to_log_command>: Add argument.
9175 (target_log_command): Add argument.
9176 * serial.h (serial_log_command): Add 'self' argument.
9177 * serial.c (serial_log_command): Add 'self' argument.
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9182 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9184 (target_pid_to_exec_file): Add argument.
9185 * target.c (debug_to_pid_to_exec_file): Add argument.
9186 (update_current_target): Update.
9187 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9188 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9189 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9190 (linux_handle_extended_wait): Update.
9191 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9192 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9193 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9194 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_rcmd>: Add argument.
9199 (target_rcmd): Add argument.
9200 * target.c (debug_to_rcmd): Add argument.
9201 (update_current_target, do_monitor_command): Update.
9202 * remote.c (remote_rcmd): Add 'self' argument.
9203 * monitor.c (monitor_rcmd): Add 'self' argument.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * windows-nat.c (windows_stop): Add 'self' argument.
9208 * target.h (struct target_ops) <to_stop>: Add argument.
9209 * target.c (target_stop): Add argument.
9210 (debug_to_stop): Add argument.
9211 (update_current_target): Update.
9212 * remote.c (remote_stop): Add 'self' argument.
9213 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9214 (gdbsim_cntrl_c): Update.
9215 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9216 * procfs.c (procfs_stop): Add 'self' argument.
9217 * nto-procfs.c (procfs_stop): Add 'self' argument.
9218 * monitor.c (monitor_stop): Add 'self' argument.
9219 (monitor_open): Update.
9220 * linux-nat.c (linux_nat_stop): Add argument.
9221 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9222 * gnu-nat.c (gnu_stop): Add 'self' argument.
9223 * darwin-nat.c (darwin_stop): Add 'self' argument.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_thread_name>: Add argument.
9228 * target.c (target_thread_name): Add argument.
9229 (update_current_target): Update.
9230 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target.h (struct target_ops) <to_extra_thread_info>: Add
9236 (target_extra_thread_info): Add argument.
9237 * target.c (update_current_target): Update.
9238 * remote.c (remote_threads_extra_info): Add 'self' argument.
9239 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9241 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9242 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9243 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9245 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9247 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9249 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target.h (struct target_ops) <to_program_signals>: Add argument.
9255 * target.c (target_program_signals): Add argument.
9256 * remote.c (remote_program_signals): Add 'self' argument.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9261 * target.c (target_pass_signals): Add argument.
9262 * remote.c (remote_pass_signals): Add 'self' argument.
9263 (remote_start_remote): Update.
9264 * procfs.c (procfs_pass_signals): Add 'self' argument.
9265 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9266 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9267 (linux_nat_create_inferior, linux_nat_attach): Update.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * windows-nat.c (windows_can_run): Add 'self' argument.
9272 * target.h (struct target_ops) <to_can_run>: Add argument.
9273 (target_can_run): Add argument.
9274 * target.c (debug_to_can_run): Add argument.
9275 (update_current_target): Update.
9276 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9277 * inf-child.c (inf_child_can_run): Add 'self' argument.
9278 * go32-nat.c (go32_can_run): Add 'self' argument.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target.h (struct target_ops) <to_has_exited>: Add argument.
9283 (target_has_exited): Add argument.
9284 * target.c (debug_to_has_exited): Add argument.
9285 (update_current_target): Update.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9291 (target_set_syscall_catchpoint): Add argument.
9292 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9294 * target.c (update_current_target): Update.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9300 (target_remove_exec_catchpoint): Add argument.
9301 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9302 (update_current_target): Update.
9303 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9310 (target_insert_exec_catchpoint): Add argument.
9311 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9312 (update_current_target): Update.
9313 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9320 (target_remove_vfork_catchpoint): Add argument.
9321 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9322 (update_current_target): Update.
9323 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9330 (target_insert_vfork_catchpoint): Add argument.
9331 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9332 (update_current_target): Update.
9333 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9340 (target_remove_fork_catchpoint): Add argument.
9341 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9342 (update_current_target): Update.
9343 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9350 (target_insert_fork_catchpoint): Add argument.
9351 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9352 (update_current_target): Update.
9353 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9360 (target_post_startup_inferior): Add argument.
9361 * target.c (debug_to_post_startup_inferior): Add argument.
9362 (update_current_target): Update.
9363 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9365 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9367 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9369 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9371 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9373 (super_post_startup_inferior): Likewise.
9374 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9376 (super_post_startup_inferior): Likewise.
9377 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9378 Add 'self' argument.
9379 (super_post_startup_inferior): Likewise.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * target.h (struct target_ops) <to_load>: Add argument.
9384 * target.c (target_load): Add argument.
9385 (debug_to_load): Add argument.
9386 (update_current_target): Update.
9387 * remote.c (remote_load): Add 'self' argument.
9388 * remote-sim.c (gdbsim_load): Add 'self' argument.
9389 * remote-mips.c (mips_load): Add 'self' argument.
9390 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9391 * monitor.c (monitor_load): Add 'self' argument.
9392 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9396 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9397 (target_terminal_info): Add argument.
9398 * target.c (debug_to_terminal_info): Add argument.
9399 (default_terminal_info): Likewise.
9400 * inflow.c (child_terminal_info): Add 'self' argument.
9401 * inferior.h (child_terminal_info): Add 'self' argument.
9402 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9408 (target_terminal_save_ours): Add argument.
9409 * target.c (debug_to_terminal_save_ours): Add argument.
9410 (update_current_target): Update.
9411 * inflow.c (terminal_save_ours): Add 'self' argument.
9412 * inferior.h (terminal_save_ours): Add 'self' argument.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9417 (target_terminal_ours): Add argument.
9418 * target.c (debug_to_terminal_ours): Add argument.
9419 (update_current_target): Update.
9420 * remote.c (remote_terminal_ours): Add 'self' argument.
9421 (remote_close): Update.
9422 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9423 * inflow.c (terminal_ours): Add 'self' argument.
9424 * inferior.h (terminal_ours): Add 'self' argument.
9425 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9427 2014-02-19 Pedro Alves <palves@redhat.com>
9428 Tom Tromey <tromey@redhat.com>
9430 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9432 (target_terminal_ours_for_output): Add argument.
9433 * target.c (debug_to_terminal_ours_for_output): Add argument.
9434 (update_current_target): Update.
9435 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9436 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9437 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target.h (struct target_ops) <to_terminal_inferior>: Add
9443 * target.c (target_terminal_inferior): Add argument.
9444 (update_current_target): Update.
9445 * remote.c (remote_terminal_inferior): Add 'self' argument.
9446 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9447 * inflow.c (terminal_inferior): Add 'self' argument.
9448 * inferior.h (terminal_inferior): Add 'self' argument.
9449 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9450 (go32_terminal_inferior): Add 'self' argument.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9455 (target_terminal_init): Add argument.
9456 * target.c (debug_to_terminal_init): Add argument.
9457 (update_current_target): Update.
9458 * inflow.c (terminal_init_inferior): Add 'self' argument.
9459 * inferior.h (terminal_init_inferior): Add 'self' argument.
9460 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9461 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target.h (struct target_ops)
9466 <to_can_accel_watchpoint_condition>: Add argument.
9467 (target_can_accel_watchpoint_condition): Add argument.
9468 * target.c (debug_to_can_accel_watchpoint_condition): Add
9470 (update_current_target): Update.
9471 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9476 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9478 (target_region_ok_for_hw_watchpoint): Add argument.
9479 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9480 (default_region_ok_for_hw_watchpoint): Add argument.
9481 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9482 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9484 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9486 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9488 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9490 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9492 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9494 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9495 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9497 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9498 Add 'self' argument.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9504 (target_insert_watchpoint): Add argument.
9505 * target.c (debug_to_insert_watchpoint): Add argument.
9506 (update_current_target): Update.
9507 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9508 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9509 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9510 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9511 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9512 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9514 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9515 (procfs_insert_hw_watchpoint): Add 'self' argument.
9516 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9518 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9520 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9522 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9523 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9525 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9532 (target_remove_watchpoint): Add argument.
9533 * target.c (debug_to_remove_watchpoint): Add argument.
9534 (update_current_target): Update.
9535 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9536 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9537 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9538 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9539 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9540 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9542 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9543 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9545 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9547 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9549 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9550 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9552 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9559 (target_remove_hw_breakpoint): Add argument.
9560 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9561 (update_current_target): Update.
9562 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9563 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9565 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9566 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9568 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9575 (target_insert_hw_breakpoint): Add argument.
9576 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9577 (update_current_target): Update.
9578 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9579 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9581 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9582 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9583 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9585 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9590 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9592 (target_can_use_hardware_watchpoint): Add argument.
9593 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9594 (update_current_target): Update.
9595 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9597 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9599 * remote.c (remote_check_watch_resources): Add 'self' argument.
9600 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9601 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9603 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9604 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9606 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9608 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9610 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9612 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9614 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9616 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9617 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9619 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target.h (struct target_ops) <to_post_attach>: Add argument.
9625 (target_post_attach): Add argument.
9626 * target.c (debug_to_post_attach): Add argument.
9627 (update_current_target): Update.
9628 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9629 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9630 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9631 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9632 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * windows-nat.c (windows_close): Add 'self' argument.
9637 * tracepoint.c (tfile_close): Add 'self' argument.
9638 * target.h (struct target_ops) <to_close>: Add argument.
9639 * target.c (target_close): Add argument.
9640 (update_current_target): Update.
9641 * remote.c (remote_close): Add 'self' argument.
9642 * remote-sim.c (gdbsim_close): Add 'self' argument.
9643 * remote-mips.c (mips_close): Add 'self' argument.
9644 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9645 * record-full.c (record_full_close): Add 'self' argument.
9646 * record-btrace.c (record_btrace_close): Add 'self' argument.
9647 * monitor.h (monitor_close): Add 'self' argument.
9648 * monitor.c (monitor_close): Add 'self' argument.
9649 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9650 * linux-nat.c (linux_nat_close): Add argument.
9651 * go32-nat.c (go32_close): Add 'self' argument.
9652 * exec.c (exec_close_1): Add 'self' argument.
9653 * ctf.c (ctf_close): Add 'self' argument.
9654 * corelow.c (core_close): Add 'self' argument.
9655 (core_close_cleanup): Update.
9656 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9657 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9659 2014-02-19 Tom Tromey <tromey@redhat.com>
9661 * remote.c (remote_load): New function.
9662 (init_remote_ops): Use it.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9668 * common/linux-btrace.h (linux_supports_btrace): Update.
9669 * remote.c (remote_supports_btrace): Add "self" argument.
9670 * target-delegates.c: Rebuild.
9671 * target.c (target_supports_btrace): Remove.
9672 * target.h (struct target_ops) <to_supports_btrace>: Add
9673 target_ops argument.
9674 (target_supports_btrace): New define.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * record-full.c (record_full_beneath_to_resume_ops)
9679 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9680 (record_full_beneath_to_wait)
9681 (record_full_beneath_to_store_registers_ops)
9682 (record_full_beneath_to_store_registers)
9683 (record_full_beneath_to_xfer_partial_ops)
9684 (record_full_beneath_to_xfer_partial)
9685 (record_full_beneath_to_insert_breakpoint_ops)
9686 (record_full_beneath_to_insert_breakpoint)
9687 (record_full_beneath_to_remove_breakpoint_ops)
9688 (record_full_beneath_to_remove_breakpoint)
9689 (record_full_beneath_to_stopped_by_watchpoint)
9690 (record_full_beneath_to_stopped_data_address)
9691 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9692 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9693 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9694 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9695 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9696 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9697 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9698 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9699 (record_full_resume, record_full_wait_1)
9700 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9701 (record_full_store_registers, record_full_xfer_partial)
9702 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9703 (record_full_async, record_full_core_xfer_partial): Use target
9705 * target-delegates.c: Rebuild.
9706 * target.c (current_xfer_partial): Remove.
9707 (update_current_target): Do not INHERIT or de_fault
9708 to_insert_breakpoint, to_remove_breakpoint,
9709 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9710 to_is_async_p, to_async. Do not set to_xfer_partial field.
9711 (default_xfer_partial): Simplify.
9712 (current_xfer_partial): Remove.
9713 (target_wait, target_resume): Simplify.
9714 (find_default_can_async_p, find_default_is_async_p): Update.
9715 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9716 to_xfer_partial, to_stopped_by_watchpoint,
9717 to_stopped_data_address.
9718 (target_store_registers): Simplify.
9719 (forward_target_remove_breakpoint)
9720 (forward_target_insert_breakpoint): Remove.
9721 (target_remove_breakpoint, target_insert_breakpoint)
9722 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9723 * target.h (struct target_ops) <to_resume, to_wait,
9724 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9725 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9726 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9728 (forward_target_remove_breakpoint)
9729 (forward_target_insert_breakpoint): Remove.
9730 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9732 (record_btrace_insert_breakpoint): Delegate directly.
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target-delegates.c: New file.
9738 * target.c: Include target-delegates.c.
9739 (init_dummy_target): Call install_dummy_methods.
9740 (complete_target_initialization): Call install_delegators.
9741 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9742 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9743 * make-target-delegates: New file.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * record.c (find_record_target): Use find_target_at.
9748 * target.c (find_target_at): New function.
9749 * target.h (find_target_at): Declare.
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9755 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9757 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9758 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9760 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9762 * linux-nat.c (save_sigtrap): Update.
9763 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9764 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9765 (linux_nat_close): Update.
9766 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9768 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9770 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9771 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9772 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9773 (tmp_to_async): Add 'ops' argument.
9774 (record_full_stopped_by_watchpoint, record_full_async)
9775 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9777 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9778 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9779 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9780 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9781 (remote_is_async_p, remote_async): Add 'ops' argument.
9782 (remote_stopped_data_address): Update.
9783 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9784 * target.c (update_current_target)
9785 (find_default_can_async_p, find_default_is_async_p): Update.
9786 (init_dummy_target): Update.
9787 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9788 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9789 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9790 (target_can_async_p, target_is_async_p, target_async)
9791 (target_stopped_by_watchpoint): Update.
9793 2014-02-19 Yao Qi <yao@codesourcery.com>
9796 * gdbarch.sh: Remove startup_gdbarch.
9797 * gdbarch.c: Regenerated.
9798 * gdbarch.h: Likewise.
9800 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9802 * rl78-tdep.c (rl78_g10_register_name): New function.
9803 (rl78_return_value): Add g10 support.
9804 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9807 2014-02-17 Doug Evans <xdje42@gmail.com>
9809 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9810 (SUBDIR_GUILE_SRCS): Ditto.
9811 (scm-gsmob.o): Ditto.
9813 2014-02-17 Yao Qi <yao@codesourcery.com>
9815 * gnu-nat.c (ILL_RPC): Declare defined function.
9817 2014-02-17 Yao Qi <yao@codesourcery.com>
9819 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9820 mach_msg_type_number_t.
9821 (gnu_write_inferior): Likewise.
9823 2014-02-17 Yao Qi <yao@codesourcery.com>
9825 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9827 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9828 (inf_validate_procs, inf_signal): Likewise.
9829 (S_exception_raise_request): Likewise.
9830 (do_mach_notify_dead_name): Likewise.
9831 (steal_exc_port): Likewise.
9832 (gnu_read_inferior): Change 'copy_count''s type to
9833 mach_msg_type_number_t.
9834 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9837 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9839 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9840 flag. Adjust all users; in particular...
9841 (gnu_wait): ..., don't decrement its value in here...
9842 (gnu_create_inferior): ..., and instead set the flag in here,
9843 around the startup_inferior call, and call that one with
9844 START_INFERIOR_TRAPS_EXPECTED.
9846 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9847 (ILL_RPC): ... new macro.
9848 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9849 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9850 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9851 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9852 functions with ILL_RPC macro.
9853 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9854 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9855 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9856 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9857 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9858 (S_proc_getlogin_reply, S_proc_getsid_reply)
9859 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9860 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9861 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9862 (S_proc_getnports_reply, S_proc_is_important_reply)
9863 (S_proc_get_code_reply): New stub functions, generated with
9866 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9867 collected the type check structures.
9869 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9871 2014-02-14 Doug Evans <dje@google.com>
9873 * target.c (target_write_partial): Fix result type.
9875 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9877 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9878 the proper offsets to access fpregset_t.
9880 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9882 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9883 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9884 * h8300-tdep.c (setmachinelist): Remove global.
9885 * hppa-tdep.c (hppa_sigtramp): Remove global.
9886 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9887 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9888 * ravenscar-thread.c (update_target_observer): Remove global.
9889 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9891 2014-02-12 Tom Tromey <tromey@redhat.com>
9893 * common/rsp-low.c: Update comments.
9894 * common/rsp-low.h: Update comments.
9896 2014-02-12 Tom Tromey <tromey@redhat.com>
9898 * common/rsp-low.c (convert_ascii_to_int): Remove.
9899 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9901 2014-02-12 Tom Tromey <tromey@redhat.com>
9903 * common/rsp-low.h (unhexify): Don't declare.
9904 * common/rsp-low.c (unhexify): Remove.
9906 2014-02-12 Tom Tromey <tromey@redhat.com>
9908 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9909 * common/rsp-low.c (convert_int_to_ascii): Remove.
9911 2014-02-12 Tom Tromey <tromey@redhat.com>
9913 * common/rsp-low.h (hexify): Don't declare.
9914 * common/rsp-low.c (hexify): Remove.
9916 2014-02-12 Tom Tromey <tromey@redhat.com>
9918 * common/rsp-low.c (hexify): Never take strlen of argument.
9920 2014-02-12 Tom Tromey <tromey@redhat.com>
9922 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9923 * remote.c (extended_remote_run, remote_rcmd)
9924 (remote_download_trace_state_variable, remote_save_trace_data)
9925 (remote_set_trace_notes): Update.
9926 * tracepoint.c (encode_source_string, tfile_write_status)
9927 (tfile_write_uploaded_tsv): Update.
9929 2014-02-12 Tom Tromey <tromey@redhat.com>
9931 * tracepoint.c: Include rsp-low.h.
9932 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9933 * remote.c: Include rsp-low.h.
9934 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9935 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9936 (remote_unescape_input): Move to common/rsp-low.c.
9937 * common/rsp-low.h: New file.
9938 * common/rsp-low.c: New file.
9939 * Makefile.in (SFILES): Add common/rsp-low.c.
9940 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9941 (COMMON_OBS): Add rsp-low.o.
9942 (rsp-low.o): New target.
9944 2014-02-12 Tom Tromey <tromey@redhat.com>
9946 * utils.h: Include print-utils.h.
9947 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9948 (int_string, core_addr_to_string, core_addr_to_string_nz)
9949 (hex_string, hex_string_custom): Don't declare.
9950 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9951 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9952 (hex_string_custom, int_string, core_addr_to_string)
9953 (core_addr_to_string_nz, host_address_to_string): Move to
9954 common/print-utils.c.
9955 * common/print-utils.h: New file.
9956 * common/print-utils.c: New file
9957 * Makefile.in (SFILES): Add common/print-utils.c.
9958 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9959 (COMMON_OBS): Add print-utils.o.
9960 (print-utils.o): New target.
9962 2014-02-12 Tom Tromey <tromey@redhat.com>
9964 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9966 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9968 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9970 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9972 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9973 if a PT_IO ptrace request returns sucessfully but indicates that 0
9974 bytes were transferred.
9976 2014-02-12 Pedro Alves <palves@redhat.com>
9977 Kevin Buettner <kevinb@redhat.com>
9979 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9980 TYPE_INSTANCE_FLAG_CODE_SPACE.
9982 2014-02-12 Pedro Alves <palves@redhat.com>
9984 * h8300-tdep.c (pseudo_from_raw_register)
9985 (raw_from_pseudo_register): New functions.
9986 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9989 2014-02-12 Pedro Alves <palves@redhat.com>
9991 * h8300-tdep.c (h8300_register_sim_regno): New function.
9992 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9993 gdbarch_register_sim_regno hook.
9995 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9997 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9999 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10001 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10003 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10005 * obsd-tdep.h (obsd_init_abi): New prototype.
10006 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10007 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10008 (obsd_init_abi): New functions.
10009 * i386obsd-tdep.c: Include "obsd-tdep.h".
10010 (i386obsd_init_abi): Call obsd_init_abi.
10011 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10012 (amd64obsd_init_abi): Call obsd_init_abi.
10013 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10014 obsd-tdep.c to gdb_target_obs.
10016 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10018 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10019 double float arguments to 16-byte in the argument slots.
10021 2014-02-11 Doug Evans <xdje42@gmail.com>
10023 * configure.ac: Don't crash if pkg-config is not found and guile
10024 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10026 * configure: Regenerate.
10028 2014-02-11 Yao Qi <yao@codesourcery.com>
10030 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10031 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10032 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10033 * gnu-nat.c (gnu_xfer_memory): Likewise.
10034 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10035 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10036 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10037 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10039 2014-02-11 Yao Qi <yao@codesourcery.com>
10041 * target.h (enum target_xfer_error): Rename to ...
10042 (enum target_xfer_status): ... it. New. All users updated.
10043 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10045 (TARGET_XFER_STATUS_ERROR_P): New macro.
10046 (target_xfer_error_to_string): Remove declaration.
10047 (target_xfer_status_to_string): Declare.
10048 (target_xfer_partial_ftype): Adjust it.
10049 (struct target_ops) <to_xfer_partial>: Return
10050 target_xfer_status. Add argument xfered_len. Update
10052 * target.c (target_xfer_error_to_string): Rename to ...
10053 (target_xfer_status_to_string): ... it. New. All callers
10055 (target_read_live_memory): Likewise. Call target_xfer_partial
10056 instead of target_read.
10057 (memory_xfer_live_readonly_partial): Return
10058 target_xfer_status. Add argument xfered_len.
10059 (raw_memory_xfer_partial): Likewise.
10060 (memory_xfer_partial_1): Likewise.
10061 (memory_xfer_partial): Likewise.
10062 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10063 properly. Update debug message.
10064 (default_xfer_partial, current_xfer_partial): Likewise.
10065 (target_write_partial): Likewise.
10066 (target_read_partial): Likewise. All callers updated.
10067 (read_whatever_is_readable): Likewise.
10068 (target_write_with_progress): Likewise.
10069 (target_read_alloc_1): Likewise.
10071 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10072 * auxv.c (procfs_xfer_auxv): Likewise.
10073 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10074 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10075 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10076 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10077 * corefile.c (read_memory): Adjust.
10078 * corelow.c (core_xfer_partial): Likewise.
10079 * ctf.c (ctf_xfer_partial): Likewise.
10080 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10082 (darwin_xfer_partial): Likewise.
10083 * exec.c (section_table_xfer_memory_partial): Likewise. All
10085 (exec_xfer_partial): Likewise.
10086 * exec.h (section_table_xfer_memory_partial): Update
10088 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10090 (gnu_xfer_partial): Likewise.
10091 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10092 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10093 (ia64_hpux_xfer_solib_got): Likewise.
10094 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10095 type of 'partial_len' to ULONGEST.
10096 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10097 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10098 (linux_nat_xfer_partial): Likewise.
10099 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10100 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10101 * monitor.c (monitor_xfer_memory): Likewise.
10102 (monitor_xfer_partial): Likewise.
10103 * procfs.c (procfs_xfer_partial): Likewise.
10104 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10105 * record-full.c (record_full_xfer_partial): Likewise.
10106 (record_full_core_xfer_partial): Likewise.
10107 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10108 (gdbsim_xfer_partial): Likewise.
10109 * remote.c (remote_write_bytes_aux): Likewise. All callers
10111 (remote_write_bytes, remote_read_bytes): Likewise. All
10113 (remote_flash_erase): Likewise. All callers updated.
10114 (remote_write_qxfer): Likewise. All callers updated.
10115 (remote_read_qxfer): Likewise. All callers updated.
10116 (remote_xfer_partial): Likewise.
10117 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10118 (rs6000_xfer_shared_libraries): Likewise.
10119 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10120 (sol_thread_xfer_partial): Likewise.
10121 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10122 (sparc_xfer_partial): Likewise.
10123 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10125 (spu_xfer_partial): Likewise.
10126 * spu-multiarch.c (spu_xfer_partial): Likewise.
10127 * tracepoint.c (tfile_xfer_partial): Likewise.
10128 * windows-nat.c (windows_xfer_memory): Likewise.
10129 (windows_xfer_shared_libraries): Likewise.
10130 (windows_xfer_partial): Likewise.
10131 * valprint.c: Replace 'target_xfer_error' with
10132 'target_xfer_status' in comments.
10134 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10136 Checked in by Joel Brobecker <brobecker@adacore.com>.
10137 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10139 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10141 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10142 function parameters.
10144 2014-02-10 Will Newton <will.newton@linaro.org>
10146 * elfread.c (elf_rel_plt_read): Look for a .got section if
10147 looking up .got.plt fails.
10148 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10149 on address passed to elf_gnu_ifunc_record_cache.
10150 (elf_gnu_ifunc_resolve_addr): Likewise.
10151 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10153 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10155 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10156 (X_RETTURN): New macro.
10157 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10159 * sparc64-tdep.c (sparc64_init_abi): Hook
10160 sparc_in_function_epilogue_p.
10162 2014-02-10 Gary Benson <gbenson@redhat.com>
10164 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10165 Rename name_matcher to symbol_matcher.
10167 2014-02-10 Gary Benson <gbenson@redhat.com>
10169 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10170 Use expand_symtabs_file_matcher_ftype and
10171 expand_symtabs_symbol_matcher_ftype.
10173 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10175 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10176 (struct ada_symbol_cache): New.
10177 (ada_free_symbol_cache): Forward declare.
10178 (struct ada_pspace_data): New.
10179 (ada_pspace_data_handle): New static global.
10180 (get_ada_pspace_data, ada_pspace_data_cleanup)
10181 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10182 (cache_space, cache): Delete, now folded inside struct
10184 (ada_get_symbol_cache): New function.
10185 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10187 (_initialize_ada_language): Remove initialization of cache_space.
10188 Move call to observer_attach_inferior_exit up, grouping it
10189 with the other observer registrations inside this function.
10190 Rename command to be more general. Add call to
10191 register_program_space_data_with_cleanup.
10193 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10195 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10196 ada_new_objfile_observer.
10197 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10198 (_initialize_tasks): Update uses of ada_new_objfile_observer
10199 and ada_tasks_normal_stop_observer.
10201 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10203 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10204 returned by the 'Length attribute to integer.
10206 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10208 * ada-lang.c (_initialize_ada_language): Initialize
10209 cache_space obstack.
10211 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10213 * ada-lang.c (HASH_SIZE): New macro.
10214 (struct cache_entry): New type.
10215 (cache_space, cache): New static globals.
10216 (ada_clear_symbol_cache, find_entry): New functions.
10217 (lookup_cached_symbol, cache_symbol): Implement.
10218 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10219 (_initialize_ada_language): Attach ada_new_objfile_observer
10220 and ada_free_objfile_observer.
10222 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10224 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10225 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10226 struct block * parameter.
10227 (ada_lookup_symbol_list_worker): Constify local variable "block".
10228 Remove cast which is no longer necessary.
10230 2014-02-10 Doug Evans <xdje42@gmail.com>
10232 Add Guile as an extension language.
10233 * NEWS: Mention Guile scripting.
10234 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10235 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10236 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10237 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10238 (CLIBS): Add GUILE_LIBS.
10239 (install-guile): New rule.
10240 (guile.o): New rule.
10241 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10242 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10243 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10244 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10245 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10246 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10247 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10248 * configure.ac: New option --with-guile.
10249 * configure: Regenerate.
10250 * config.in: Regenerate.
10251 * auto-load.c: Remove #include "python/python.h". Add #include
10252 "gdb/section-scripts.h".
10253 (source_section_scripts): Handle Guile scripts.
10254 (_initialize_auto_load): Add name of Guile objfile script to
10255 scripts-directory help text.
10256 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10257 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10258 (struct breakpoint): New member scm_bp_object.
10259 * defs.h (enum command_control_type): New value guile_control.
10260 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10262 (show_user): Update comment.
10263 (_initialize_cli_cmds): Update help text for "show user". Update help
10264 text for max-user-call-depth.
10265 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10267 (multi_line_command_p): Add guile_control.
10268 (print_command_lines): Handle guile_control.
10269 (execute_control_command, recurse_read_control_structure): Ditto.
10270 (process_next_line): Recognize "guile" commands.
10271 * disasm.c (gdb_disassemble_info): Make non-static.
10272 * disasm.h: #include "dis-asm.h".
10273 (struct gdbarch): Add forward decl.
10274 (gdb_disassemble_info): Declare.
10275 * extension.c: #include "guile/guile.h".
10276 (extension_languages): Add guile.
10277 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10278 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10279 * gdbtypes.c (get_unsigned_type_max): New function.
10280 (get_signed_type_minmax): New function.
10281 * gdbtypes.h (get_unsigned_type_max): Declare.
10282 (get_signed_type_minmax): Declare.
10283 * guile/README: New file.
10284 * guile/guile-internal.h: New file.
10285 * guile/guile.c: New file.
10286 * guile/guile.h: New file.
10287 * guile/scm-arch.c: New file.
10288 * guile/scm-auto-load.c: New file.
10289 * guile/scm-block.c: New file.
10290 * guile/scm-breakpoint.c: New file.
10291 * guile/scm-disasm.c: New file.
10292 * guile/scm-exception.c: New file.
10293 * guile/scm-frame.c: New file.
10294 * guile/scm-gsmob.c: New file.
10295 * guile/scm-iterator.c: New file.
10296 * guile/scm-lazy-string.c: New file.
10297 * guile/scm-math.c: New file.
10298 * guile/scm-objfile.c: New file.
10299 * guile/scm-ports.c: New file.
10300 * guile/scm-pretty-print.c: New file.
10301 * guile/scm-safe-call.c: New file.
10302 * guile/scm-string.c: New file.
10303 * guile/scm-symbol.c: New file.
10304 * guile/scm-symtab.c: New file.
10305 * guile/scm-type.c: New file.
10306 * guile/scm-utils.c: New file.
10307 * guile/scm-value.c: New file.
10308 * guile/lib/gdb.scm: New file.
10309 * guile/lib/gdb/boot.scm: New file.
10310 * guile/lib/gdb/experimental.scm: New file.
10311 * guile/lib/gdb/init.scm: New file.
10312 * guile/lib/gdb/iterator.scm: New file.
10313 * guile/lib/gdb/printing.scm: New file.
10314 * guile/lib/gdb/types.scm: New file.
10315 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10316 (VPATH): Add $(GUILE_SRCDIR).
10317 (GUILE_DIR): New variable.
10318 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10319 (all): Add stamp-guile dependency.
10320 (stamp-guile): New rule.
10321 (clean-guile, install-guile, uninstall-guile): New rules.
10322 (install-only): Add install-guile dependency.
10323 (uninstall): Add uninstall-guile dependency.
10324 (clean): Add clean-guile dependency.
10326 2014-02-09 Doug Evans <xdje42@gmail.com>
10328 Revert this patch (which I approved, mea culpa).
10330 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10332 * Makefile.in (all-lib): Remove.
10333 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10335 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10337 Fix Python stack corruption.
10338 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10341 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10343 * Makefile.in (all-lib): Remove.
10344 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10346 2014-02-07 Doug Evans <dje@google.com>
10348 * extension-priv.h (extension_language_script_ops): Add comment.
10349 (extension_language_ops): Add comment.
10350 (active_ext_lang_state): Fix typo in comment.
10352 2014-02-07 Pedro Alves <palves@redhat.com>
10354 PR breakpoints/16292
10355 * infrun.c (handle_signal_stop) <signal arrives while stepping
10356 over a breakpoint>: Switch back to the stepping thread.
10358 2014-02-07 Yao Qi <yao@codesourcery.com>
10360 * target.c (target_xfer_partial): Return zero if LEN is zero.
10362 2014-02-07 Yao Qi <yao@codesourcery.com>
10364 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10365 (ld_so_xfer_auxv): Likewise.
10366 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10367 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10368 * corelow.c (core_xfer_partial): Likewise.
10369 * ctf.c (ctf_xfer_partial): Likewise.
10370 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10371 (darwin_xfer_partial): Likewise.
10372 * exec.c (exec_xfer_partial): Likewise.
10373 * gnu-nat.c (gnu_xfer_partial): Likewise.
10374 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10375 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10376 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10377 * linux-nat.c (linux_xfer_siginfo): Likewise.
10378 (linux_proc_xfer_spu): Likewise.
10379 * procfs.c (procfs_xfer_partial): Likewise.
10380 * record-full.c (record_full_xfer_partial): Likewise.
10381 (record_full_core_xfer_partial): Likewise.
10382 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10383 * remote.c (remote_write_qxfer): Likewise.
10384 (remote_write_qxfer, remote_read_qxfer): Likewise.
10385 (remote_xfer_partial): Likewise.
10386 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10387 (rs6000_xfer_shared_libraries): Likewise.
10388 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10389 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10390 (spu_xfer_partial): Likewise.
10391 * target.c (memory_xfer_partial_1): Likewise.
10392 * tracepoint.c (tfile_xfer_partial): Likewise.
10393 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10394 (windows_xfer_partial): Likewise.
10396 2014-02-07 Yao Qi <yao@codesourcery.com>
10398 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10400 (core_xfer_shared_libraries_aix): Likewise.
10401 * gdbarch.c, gdbarch.h: Regenerated.
10402 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10403 ULONGEST. Change 'len_avail' type to ULONGEST.
10404 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10405 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10407 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10409 2014-02-07 Yao Qi <yao@codesourcery.com>
10411 * corefile.c (memory_error): Get 'exception' from ERR and pass
10412 'exception' to throw_error.
10414 2014-02-06 Doug Evans <xdje42@gmail.com>
10416 * configure.ac (libpython checking): Remove all but python.o from
10417 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10418 * configure: Regenerate.
10420 * Makefile.in (SFILES): Add extension.c.
10421 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10422 (COMMON_OBS): Add extension.o.
10423 * extension.h: New file.
10424 * extension-priv.h: New file.
10425 * extension.c: New file.
10427 * python/python-internal.h: #include "extension.h".
10428 (gdbpy_auto_load_enabled): Declare.
10429 (gdbpy_apply_val_pretty_printer): Declare.
10430 (gdbpy_apply_frame_filter): Declare.
10431 (gdbpy_preserve_values): Declare.
10432 (gdbpy_breakpoint_cond_says_stop): Declare.
10433 (gdbpy_breakpoint_has_cond): Declare.
10434 (void source_python_script_for_objfile): Delete.
10435 * python/python.c: #include "extension-priv.h".
10436 Delete inclusion of "observer.h".
10437 (extension_language_python): Moved here and renamed from
10438 script_language_python in py-auto-load.c.
10439 Redefined to be of type extension_language_defn.
10440 (python_extension_script_ops): New global.
10441 (python_extension_ops): New global.
10442 (struct python_env): New member previous_active.
10443 (restore_python_env): Call restore_active_ext_lang.
10444 (ensure_python_env): Call set_active_ext_lang.
10445 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10447 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10449 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10451 (gdbpy_eval_from_control_command): Renamed from
10452 eval_python_from_control_command, made static. New arg extlang.
10453 (gdbpy_source_script) Renamed from source_python_script, made static.
10455 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10456 result to int. New arg extlang.
10457 (gdbpy_source_objfile_script): Renamed from
10458 source_python_script_for_objfile, made static. New arg extlang.
10459 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10460 static. New args extlang, extlang_printers. Change result type to
10462 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10463 static. New arg extlang. Rename arg printers to extlang_printers
10464 and change type to ext_lang_type_printers *.
10465 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10466 static. Replace argument arg with extlang, extlang_printers.
10467 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10468 (!HAVE_PYTHON, source_python_script): Delete.
10469 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10470 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10471 (!HAVE_PYTHON, start_type_printers): Delete.
10472 (!HAVE_PYTHON, apply_type_printers): Delete.
10473 (!HAVE_PYTHON, free_type_printers): Delete.
10474 (_initialize_python): Delete call to observer_attach_before_prompt.
10475 (finalize_python): Set/restore active extension language.
10476 (gdbpy_finish_initialization) Renamed from
10477 finish_python_initialization, made static. New arg extlang.
10478 (gdbpy_initialized): New function.
10479 * python/python.h: #include "extension.h". Delete #include
10480 "value.h", "mi/mi-cmds.h".
10481 (extension_language_python): Declare.
10482 (GDBPY_AUTO_FILE_NAME): Delete.
10483 (enum py_bt_status): Moved to extension.h and renamed to
10484 ext_lang_bt_status.
10485 (enum frame_filter_flags): Moved to extension.h.
10486 (enum py_frame_args): Moved to extension.h and renamed to
10487 ext_lang_frame_args.
10488 (finish_python_initialization): Delete.
10489 (eval_python_from_control_command): Delete.
10490 (source_python_script): Delete.
10491 (apply_val_pretty_printer): Delete.
10492 (apply_frame_filter): Delete.
10493 (preserve_python_values): Delete.
10494 (gdbpy_script_language_defn): Delete.
10495 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10496 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10498 * auto-load.c: #include "extension.h".
10499 (GDB_AUTO_FILE_NAME): Delete.
10500 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10501 (script_language_gdb): Delete, moved to extension.c and renamed to
10502 extension_language_gdb.
10503 (source_gdb_script_for_objfile): Delete.
10504 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10505 (loaded_script): Change type of language member to
10506 struct extension_language_defn *.
10507 (init_loaded_scripts_info): Initialize
10508 unsupported_script_warning_printed.
10509 (maybe_add_script): Make static. Change type of language arg to
10510 struct extension_language_defn *.
10511 (clear_section_scripts): Reset unsupported_script_warning_printed.
10512 (auto_load_objfile_script_1): Rewrite to use extension language API.
10513 (auto_load_objfile_script): Make public. Remove support-compiled-in
10514 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10515 (source_section_scripts): Rewrite to use extension language API.
10516 (load_auto_scripts_for_objfile): Rewrite to use
10517 auto_load_scripts_for_objfile.
10518 (collect_matching_scripts_data): Change type of language member to
10519 struct extension_language_defn *.
10520 (auto_load_info_scripts): Change type of language arg to
10521 struct extension_language_defn *.
10522 (unsupported_script_warning_print): New function.
10523 (script_not_found_warning_print): Make static.
10524 (_initialize_auto_load): Rewrite construction of scripts-directory
10526 * auto-load.h (struct objfile): Add forward decl.
10527 (struct script_language): Delete.
10528 (struct auto_load_pspace_info): Add forward decl.
10529 (struct extension_language_defn): Add forward decl.
10530 (maybe_add_script): Delete.
10531 (auto_load_objfile_script): Declare.
10532 (script_not_found_warning_print): Delete.
10533 (auto_load_info_scripts): Update prototype.
10534 (auto_load_gdb_scripts_enabled): Declare.
10535 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10536 auto_load_python_scripts_enabled and made public.
10537 (script_language_python): Delete, moved to python.c.
10538 (gdbpy_script_language_defn): Delete.
10539 (info_auto_load_python_scripts): Update to use
10540 extension_language_python.
10542 * breakpoint.c (condition_command): Replace call to
10543 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10544 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10545 with call to breakpoint_ext_lang_cond_says_stop.
10546 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10547 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10548 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10549 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10551 (local_setattro): Print name of extension language with existing
10554 * valprint.c (val_print, value_print): Update to call
10555 apply_ext_lang_val_pretty_printer.
10556 * cp-valprint.c (cp_print_value): Update call to
10557 apply_ext_lang_val_pretty_printer.
10558 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10559 (gdbpy_apply_val_pretty_printer): Renamed from
10560 apply_val_pretty_printer. New arg extlang.
10561 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10563 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10564 extension language API.
10565 * cli/cli-script.c (execute_control_command): Update to call
10566 eval_ext_lang_from_control_command.
10568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10569 enum ext_lang_bt_status values. Update call to
10570 apply_ext_lang_frame_filter.
10571 (mi_cmd_stack_list_locals): Ditto.
10572 (mi_cmd_stack_list_args): Ditto.
10573 (mi_cmd_stack_list_variables): Ditto.
10574 * mi/mi-main.c: Delete #include "python/python-internal.h".
10575 Add #include "extension.h".
10576 (mi_cmd_list_features): Replace reference to python internal variable
10577 gdb_python_initialized with call to ext_lang_initialized_p.
10579 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10580 Update to use enum ext_lang_frame_args. Update to call
10581 apply_ext_lang_frame_filter.
10582 * python/py-framefilter.c (extract_sym): Update to use enum
10583 ext_lang_bt_status.
10584 (extract_value, py_print_type, py_print_value): Ditto.
10585 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10586 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10587 (py_print_frame): Ditto.
10588 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10589 New arg extlang. Update to use enum ext_lang_bt_status.
10591 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10592 finish_python_initialization. Replace with call to
10593 finish_ext_lang_initialization.
10595 * typeprint.c (do_free_global_table): Update to call
10596 free_ext_lang_type_printers.
10597 (create_global_typedef_table): Update to call
10598 start_ext_lang_type_printers.
10599 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10600 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10601 (type_print_options): Change type of global_printers from "void *"
10602 to "struct ext_lang_type_printers *".
10604 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10605 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10606 (gdbpy_preserve_values): Renamed from preserve_python_values.
10608 (!HAVE_PYTHON, preserve_python_values): Delete.
10610 * utils.c (quit_flag): Delete, moved to extension.c.
10611 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10614 * eval.c: Delete #include "python/python.h".
10615 * main.c: Delete #include "python/python.h".
10617 * defs.h: Update comment.
10619 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10623 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10625 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10628 2014-02-05 Yao Qi <yao@codesourcery.com>
10630 * remote.c (remote_pass_signals): Remove local 'buf' and use
10632 (remote_program_signals): Likewise.
10634 2014-02-05 Yao Qi <yao@codesourcery.com>
10636 * ctf.c: Include "inferior.h" and "gdbthread.h".
10637 (CTF_PID): A new macro.
10638 (ctf_open): Call inferior_appeared and add_thread_silent.
10639 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10640 (ctf_thread_alive): New function.
10641 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10643 2014-02-05 Yao Qi <yao@codesourcery.com>
10647 2013-05-24 Yao Qi <yao@codesourcery.com>
10649 * tracepoint.c (TFILE_PID): Remove.
10650 (tfile_open): Don't add thread and inferior.
10651 (tfile_close): Don't set 'inferior_ptid'. Don't call
10652 exit_inferior_silent.
10653 (tfile_thread_alive): Remove.
10654 (init_tfile_ops): Don't set field 'to_thread_alive' of
10657 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10659 * remote.c (remote_start_remote): Call remote_check_symbols even
10660 if only symbol-file (not file) has been given.
10662 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10664 * gdbarch.sh (skip_entrypoint): New callback.
10665 * gdbarch.c, gdbarch.h: Regenerate.
10666 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10667 * infrun.c (fill_in_stop_func): Likewise.
10668 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10669 (ppc_elfv2_elf_make_msymbol_special): New function.
10670 (ppc_elfv2_skip_entrypoint): Likewise.
10671 (ppc_linux_init_abi): Install them for ELFv2.
10673 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10675 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10676 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10677 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10678 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10679 structures returned in GPRs.
10681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10683 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10684 offset to the stack parameter list for the ELFv2 ABI.
10686 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10688 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10689 set_gdbarch_convert_from_func_ptr_addr and
10690 set_gdbarch_elf_make_msymbol_special for ELFv1.
10691 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10692 function descriptors on ELFv1.
10693 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10694 set up r12 at function entry.
10696 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10698 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10699 (struct gdbarch_tdep): New member elf_abi.
10701 * rs6000-tdep.c: Include "elf/ppc64.h".
10702 (rs6000_gdbarch_init): Detect ELF ABI version.
10704 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10706 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10707 within a register pair holding a DFP 128-bit value on little-endian.
10708 (ppc64_sysv_abi_return_value_base): Likewise.
10709 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10710 (dfp_pseudo_register_write): Likewise.
10712 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10714 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10715 offset on little-endian when passing _Decimal32.
10716 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10718 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10720 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10721 of the overlapped FP register within the VSX register on little-
10723 (efpr_pseudo_register_write): Likewise.
10725 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10728 offset on little-endian when passing small structures.
10730 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10732 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10733 (struct ppc64_sysv_argpos): New data structure.
10734 (ppc64_sysv_abi_push_float): Remove.
10735 (ppc64_sysv_abi_push_val): New function.
10736 (ppc64_sysv_abi_push_integer): Likewise.
10737 (ppc64_sysv_abi_push_freg): Likewise.
10738 (ppc64_sysv_abi_push_vreg): Likewise.
10739 (ppc64_sysv_abi_push_param): Likewise.
10740 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10741 (ppc64_sysv_abi_return_value_base): New function.
10742 (ppc64_sysv_abi_return_value): Refactor to use it.
10744 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10746 * NEWS: Document new target powerpc64le-*-linux*.
10748 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10750 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10751 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10753 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10754 register set used in ELF core dumps. Add floating-point register set.
10756 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10758 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10759 dwarf2_to_gdb[] table using symbolic constants. Adjust
10760 penultimate entry from number representing the PC register
10761 to symbolic constant representing the MDR register. Add
10762 constant for the PC register to the end of the table.
10764 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10766 * bsd-kvm.c: Include <sys/param.h>
10768 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10770 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10772 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10774 * ada-lang.h (clear_ada_sym_cache): Delete.
10776 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10778 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10780 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10782 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10783 the sigreturn register save area only if the syscall is
10786 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10788 * valops.c (value_slice): Minor reformatting.
10790 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10792 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10794 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10796 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10797 New static globals.
10798 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10799 (ada_ignore_descriptive_types_p): New static global.
10800 (find_parallel_type_by_descriptive_type): Return immediately
10801 if ada_ignore_descriptive_types_p is set.
10802 (_initialize_ada_language): Register new commands "maintenance
10803 set ada", "maintenance show ada", "maintenance set ada
10804 ignore-descriptive-types" and "maintenance show ada
10805 ignore-descriptive-types".
10806 * NEWS: Add entry for new "maint ada set/show
10807 ignore-descriptive-types" commands.
10809 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10811 * record-btrace.c (record_btrace_close): Call btrace_teardown
10814 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10816 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10819 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10821 * ada-typeprint (type_is_full_subrange_of_target_type):
10823 (print_range): Add parameter bounds_prefered_p. If not set,
10824 try printing range types using the name of their base type.
10825 (print_range_type): Add parameter bounds_prefered_p.
10826 Use it in call to print_range.
10827 (print_array_type, ada_print_type): Update calls to print_range
10828 and print_range_type.
10830 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10832 * ada-typeprint.c (print_array_type, print_choices, print_range)
10833 (print_range_bound, print_dynamic_range_bound, print_range_type):
10834 Remove declaration.
10836 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10838 * ada-typeprint.c (print_range): Add missing empty line
10839 after local declaration.
10841 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10843 * ada-valprint.c (print_optional_low_bound): Get index_type's
10844 target type for as long as it is a TYPE_CODE_RANGE.
10846 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10848 * procfs.c (procfs_make_note_section): Remove assertion and
10849 associated comment.
10851 2014-01-24 Yao Qi <yao@codesourcery.com>
10853 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10854 * corelow.c (get_core_siginfo): Likewise.
10856 2014-01-24 Yao Qi <yao@codesourcery.com>
10858 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10859 ULONGEST. Don't check 'len' is negative.
10860 (remote_write_bytes): Change type of 'len' to ULONGEST.
10862 2014-01-23 Tom Tromey <tromey@redhat.com>
10865 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10866 Handle exception from frame.block.
10867 (FrameVars.fetch_frame_locals): Likewise.
10869 2014-01-23 Tom Tromey <tromey@redhat.com>
10872 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10873 on a NULL pointer. Move "goto error" to correct place.
10875 2014-01-23 Tom Tromey <tromey@redhat.com>
10878 * python/py-framefilter.c (apply_frame_filter): Call
10879 ensure_python_env after computing gdbarch.
10881 2014-01-23 Yao Qi <yao@codesourcery.com>
10883 * target.c (raw_memory_xfer_partial): Change argument type
10884 from void * to gdb_byte *.
10885 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10887 2014-01-22 Doug Evans <dje@google.com>
10889 New gdbserver option --debug-format=timestamp.
10890 * NEWS: Mention it.
10892 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10894 * syscalls/s390x-linux.xml: New file.
10895 * syscalls/s390-linux.xml: New file.
10896 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10897 (XML_SYSCALL_FILENAME_S390X): Likewise.
10898 (op_svc): New enum value for SVC opcode.
10899 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10900 (s390_linux_get_syscall_number): New function.
10901 (s390_gdbarch_init): Register '*get_syscall_number' and the
10902 syscall xml file name.
10903 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10904 "s390-linux.xml" and "s390x-linux.xml".
10905 * NEWS: Announce new feature.
10907 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10909 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10911 2014-01-22 Pedro Alves <palves@redhat.com>
10913 * xtensa-config.c: Include defs.h.
10915 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10917 * common/common-utils.h: Add "ARI:" comment beside __func__
10920 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10922 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10923 documentation a bit.
10925 2014-01-21 Roland McGrath <mcgrathr@google.com>
10927 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10928 * configure: Regenerate.
10929 * aclocal.m4: Regenerate.
10930 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10931 New substituted variables.
10932 (install-strip): New target.
10933 (INSTALL_SCRIPT): New substituted variable.
10934 (FLAGS_TO_PASS): Add it.
10935 (install-only): Use $(INSTALL_SCRIPT) rather than
10936 $(INSTALL_PROGRAM) for gcore.
10938 2014-01-20 Tom Tromey <tromey@redhat.com>
10940 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10943 2014-01-20 Tom Tromey <tromey@redhat.com>
10945 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10946 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10947 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10948 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10949 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10950 (struct cmd_list_element) <flags>: Remove.
10951 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10952 doc_allocated>: New fields.
10953 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10955 * maint.c (maintenance_do_deprecate): Update.
10956 * top.c (execute_command): Update.
10958 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10960 * xtensa-linux-nat.c: Include asm/ptrace.h.
10962 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10964 * Makefile.in (SFILES): Add d-support.c.
10965 (COMMON_OBS): Add d-support.o.
10966 * d-lang.h (d_parse_symbol): Add comment, now defined in
10968 * d-lang.c (parse_call_convention)
10969 (parse_attributes, parse_function_types)
10970 (parse_function_args, parse_type, parse_identifier)
10971 (call_convention_p, d_parse_symbol): Move functions to ...
10972 * d-support.c: ... New file.
10974 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10976 * d-lang.h (d_parse_symbol): Add declaration.
10977 * d-lang.c (extract_identifiers)
10978 (extract_type_info): Remove functions.
10979 (parse_call_convention, parse_attributes)
10980 (parse_function_types, parse_function_args)
10981 (parse_type, parse_identifier, call_convention_p)
10982 (d_parse_symbol): New functions.
10983 (d_demangle): Use d_parse_symbol to demangle D symbols.
10985 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10987 * d-lang.h (struct builtin_d_type): New data type.
10988 (builtin_d_type): Add declaration.
10989 * d-lang.c (d_language_arch_info, build_d_types)
10990 (builtin_d_type): New functions.
10991 (enum d_primitive_types): New data type.
10992 (d_language_defn): Change c_language_arch_info to
10993 d_language_arch_info.
10994 (d_type_data): New static variable.
10995 (_initialize_d_language): Initialize d_type_data.
10997 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10999 * d-lang.h (d_main_name): Add declaration.
11000 * d-lang.c (d_main_name): New function.
11001 * symtab.c (find_main_name): Add call to d_main_name.
11003 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11005 * d-lang.c (d_language_defn): Change macro_expansion_c to
11006 macro_expansion_no.
11008 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11010 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11012 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11014 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11015 gdb_exception" declaration.
11016 * remote.c (getpkt_or_notif_sane): Likewise.
11018 2014-01-17 Doug Evans <dje@google.com>
11020 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11021 function, contents of dirnames_to_char_ptr_vec_append moved here.
11022 (delim_string_to_char_ptr_vec): New function.
11023 (dirnames_to_char_ptr_vec_append): Rewrite.
11024 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11026 2014-01-17 Doug Evans <dje@google.com>
11028 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11030 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11031 #include "common-utils.h".
11032 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11033 * common/vec.h (VEC_ASSERT_PASS): Update.
11034 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11035 (MACH_CHECK_ERROR): Update.
11037 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11039 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11041 * gdbarch.h: Regenerate.
11043 2014-01-16 Tom Tromey <tromey@redhat.com>
11045 * value.c (struct value) <regnum>: Move earlier.
11047 2014-01-16 Tom Tromey <tromey@redhat.com>
11049 * remote.c (extended_remote_create_inferior): Rename from
11050 extended_remote_create_inferior_1. Add "ops" argument. Remove
11051 old implementation.
11053 2014-01-16 Pedro Alves <palves@redhat.com>
11055 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11056 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11059 2014-01-16 Doug Evans <dje@google.com>
11061 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11065 * btrace.h (btrace_thread_flag): New.
11066 (struct btrace_thread_info) <flags>: New.
11067 * record-btrace.c (record_btrace_resume_thread)
11068 (record_btrace_find_thread_to_move, btrace_step_no_history)
11069 (btrace_step_stopped, record_btrace_start_replaying)
11070 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11071 (record_btrace_find_resume_thread): New.
11072 (record_btrace_resume, record_btrace_wait): Extend.
11073 (record_btrace_can_execute_reverse): New.
11074 (record_btrace_open): Fail in non-stop mode.
11075 (record_btrace_set_replay): Split into this, ...
11076 (record_btrace_stop_replaying): ... this, ...
11077 (record_btrace_clear_histories): ... and this.
11078 (init_record_btrace_ops): Init to_can_execute_reverse.
11079 * NEWS: Announce it.
11081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11083 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11084 (forward_target_decr_pc_after_break)
11085 (target_decr_pc_after_break): New.
11086 * target.c (forward_target_decr_pc_after_break)
11087 (target_decr_pc_after_break): New.
11088 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11089 instead of gdbarch_decr_pc_after_break.
11090 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11091 instead of gdbarch_decr_pc_after_break.
11092 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11093 instead of gdbarch_decr_pc_after_break.
11094 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11095 instead of gdbarch_decr_pc_after_break.
11096 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11097 instead of gdbarch_decr_pc_after_break.
11098 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11099 instead of gdbarch_decr_pc_after_break.
11101 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11103 * btrace.c: Include regcache.h.
11104 (btrace_add_pc): New.
11105 (btrace_enable): Call btrace_add_pc.
11106 (btrace_is_empty): New.
11107 * btrace.h (btrace_is_empty): New.
11108 * record-btrace.c (require_btrace, record_btrace_info): Call
11111 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11113 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11114 Support delta reads.
11115 (linux_disable_btrace): Change return type.
11116 * common/linux-btrace.h (linux_read_btrace): Change parameters
11117 and return type to allow error reporting. Update users.
11118 (linux_disable_btrace): Change return type. Update users.
11119 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11121 (btrace_error): New.
11122 (btrace_block) <begin>: Comment on BEGIN == 0.
11123 * btrace.c (btrace_compute_ftrace): Start from the end of
11125 (btrace_stitch_trace, btrace_clear_history): New.
11126 (btrace_fetch): Read delta trace, return if replaying.
11127 (btrace_clear): Move clear history code to btrace_clear_history.
11128 (parse_xml_btrace): Throw an error if parsing failed.
11129 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11130 and return type to allow error reporting.
11131 (target_read_btrace): Change parameters and return type to allow
11133 * target.c (target_read_btrace): Update.
11134 * remote.c (remote_read_btrace): Support delta reads. Pass
11136 * NEWS: Announce it.
11138 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11140 * record.h (record_btrace_frame_unwind)
11141 (record_btrace_tailcall_frame_unwind): New declarations.
11142 * dwarf2-frame: Include record.h
11143 (dwarf2_frame_cfa): Throw an error for btrace frames.
11144 * record-btrace.c: Include hashtab.h.
11145 (btrace_get_bfun_name): New.
11146 (btrace_call_history): Call btrace_get_bfun_name.
11147 (struct btrace_frame_cache): New.
11149 (bfcache_hash, bfcache_eq, bfcache_new): New.
11150 (btrace_get_frame_function): New.
11151 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11152 (record_btrace_frame_this_id): Compute own id.
11153 (record_btrace_frame_prev_register): Provide PC, throw_error
11154 for all other registers.
11155 (record_btrace_frame_sniffer): Detect btrace frames.
11156 (record_btrace_tailcall_frame_sniffer): New.
11157 (record_btrace_frame_dealloc_cache): New.
11158 (record_btrace_frame_unwind): Add new functions.
11159 (record_btrace_tailcall_frame_unwind): New.
11160 (_initialize_record_btrace): Allocate cache.
11161 * btrace.c (btrace_clear): Call reinit_frame_cache.
11162 * NEWS: Announce it.
11164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11166 * record-btrace.c (record_btrace_set_replay)
11167 (record_btrace_goto_begin, record_btrace_goto_end)
11168 (record_btrace_goto): New.
11169 (init_record_btrace_ops): Initialize them.
11170 * NEWS: Announce it.
11172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11174 * record-btrace.c (record_btrace_find_new_threads)
11175 (record_btrace_thread_alive): New.
11176 (init_record_btrace_ops): Initialize to_find_new_threads and
11179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11181 * record-btrace.c (record_btrace_resume): New.
11182 (record_btrace_wait): New.
11183 (init_record_btrace_ops): Initialize to_wait and to_resume.
11185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11187 * record-btrace.c (record_btrace_xfer_partial)
11188 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11189 (record_btrace_allow_memory_access): New.
11190 (init_record_btrace_ops): Initialize new methods.
11191 * target.c (raw_memory_xfer_partial): Bail out if target reports
11192 that this memory is not available.
11194 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11196 * target.h (target_ops) <to_insert_breakpoint>
11197 <to_remove_breakpoint>: Add target_ops parameter.
11198 (forward_target_insert_breakpoint): New.
11199 (forward_target_remove_breakpoint): New.
11200 (memory_remove_breakpoint, memory_insert_breakpoint):
11201 Add target_ops parameter.
11202 * target.c (target_insert_breakpoint): Split into this and ...
11203 (forward_target_insert_breakpoint): ... this.
11204 (target_remove_breakpoint): Split into this and ...
11205 (forward_target_remove_breakpoint): ... this.
11206 (debug_to_insert_breakpoint): Add target_ops parameter.
11207 Call forward_target_insert_breakpoint.
11208 (debug_to_remove_breakpoint): Add target_ops parameter.
11209 Call forward_target_remove_breakpoint.
11210 (update_current_target): Do not inherit or default to_insert_breakpoint
11211 and to_remove_breakpoint.
11212 * corelow.c (ignore): Add target_ops parameter.
11213 * exec.c (ignore): Add target_ops parameter.
11214 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11215 Add target_ops parameter.
11216 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11217 Add target_ops parameter.
11218 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11219 Add target_ops parameter.
11220 * record-full.c (record_full_beneath_to_insert_breakpoint)
11221 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11222 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11223 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11224 (record_full_core_remove_breakpoint): Add target_ops parameter.
11226 (record_full_beneath_to_insert_breakpoint_ops)
11227 (record_full_beneath_to_remove_breakpoint_ops)
11228 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11229 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11230 tmp_to_remove_breakpoint_ops,
11231 record_full_beneath_to_insert_breakpoint_ops, and
11232 record_full_beneath_to_remove_breakpoint_ops.
11233 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11234 (m32r_remove_breakpoint): Add target_ops parameter.
11235 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11236 Add target_ops parameter.
11237 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11238 Add target_ops parameter.
11240 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11241 Markus Metzger <markus.t.metzger@intel.com>
11243 * record-btrace.c: Include frame-unwind.h.
11244 (record_btrace_frame_unwind_stop_reason)
11245 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11246 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11248 (init_record_btrace_ops): Install it.
11250 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11252 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11255 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11257 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11260 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11262 * frame-unwind.c: Include target.h.
11263 (frame_unwind_try_unwinder): New function with code from ...
11264 (frame_unwind_find_by_frame): ... here. New variable
11265 unwinder_from_target, call also target_get_unwinder)
11266 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11267 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11268 * target.h (struct target_ops): New fields to_get_unwinder and
11269 to_get_tailcall_unwinder.
11270 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11274 * record-btrace.c (record_btrace_fetch_registers)
11275 (record_btrace_store_registers)
11276 (record_btrace_to_prepare_to_store): New.
11277 (init_record_btrace_ops): Add the above.
11279 2014-01-16 Tom Tromey <tromey@redhat.com>
11281 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11282 * target.h (struct target_ops) <to_prepare_to_store>: Add
11284 (target_prepare_to_store): Add argument.
11285 * target.c (debug_to_prepare_to_store): Add argument.
11286 (update_current_target): Update.
11287 * remote.c (remote_prepare_to_store): Add 'self' argument.
11288 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11289 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11290 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11291 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11293 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11294 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11295 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11296 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11297 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11301 * btrace.h (replay) <replay>: New.
11302 (btrace_is_replaying): New.
11303 * btrace.c (btrace_clear): Free replay iterator.
11304 (btrace_is_replaying): New.
11305 * record-btrace.c (record_btrace_is_replaying): New.
11306 (record_btrace_info): Print insn number if replaying.
11307 (record_btrace_insn_history): Start at replay position.
11308 (record_btrace_call_history): Start at replay position.
11309 (init_record_btrace_ops): Init to_record_is_replaying.
11311 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11313 * record-btrace.c (record_btrace_insn_history_range): Include
11315 (record_btrace_insn_history_from): Adjust range.
11316 (record_btrace_call_history_range): Include
11318 (record_btrace_call_history_from): Adjust range.
11319 * NEWS: Announce changes.
11321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11323 * record.h (enum record_print_flag)
11324 <record_print_indent_calls>: New.
11325 * record.c (get_call_history_modifiers): Recognize /c modifier.
11326 (_initialize_record): Document /c modifier.
11327 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11328 Reorder fields. Optionally indent the function name. Update
11330 * NEWS: Announce changes.
11332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11334 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11336 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11338 * btrace.c (ftrace_new_function): Start counting at one.
11339 * record-btrace.c (record_btrace_info): Adjust number of calls
11341 * NEWS: Announce it.
11343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11345 * record-btrace.c (btrace_call_history_insn_range): Print
11346 insn range as [begin, end].
11348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11350 * btrace.h (struct btrace_func_link): New.
11351 (enum btrace_function_flag): New.
11352 (struct btrace_inst): Rename to ...
11353 (struct btrace_insn): ...this. Update all users.
11354 (struct btrace_func) <ibegin, iend>: Remove.
11355 (struct btrace_func_link): New.
11356 (struct btrace_func): Rename to ...
11357 (struct btrace_function): ...this. Update all users.
11358 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11359 (number, level, flags>: New.
11360 (struct btrace_insn_iterator): Rename to ...
11361 (struct btrace_insn_history): ...this.
11363 (struct btrace_insn_iterator, btrace_call_iterator): New.
11364 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11365 (struct btrace_target_info) <begin, end, level>
11366 <insn_history, call_history>: New.
11367 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11368 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11369 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11370 (btrace_call_number, btrace_call_begin, btrace_call_end)
11371 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11372 (btrace_find_function_by_number, btrace_set_insn_history)
11373 (btrace_set_call_history): New.
11374 * btrace.c (btrace_init_insn_iterator)
11375 (btrace_init_func_iterator, compute_itrace): Remove.
11376 (ftrace_print_function_name, ftrace_print_filename)
11377 (ftrace_skip_file): Change
11378 parameter to const.
11379 (ftrace_init_func): Remove.
11380 (ftrace_debug): Use new btrace_function fields.
11381 (ftrace_function_switched): Also consider gaining and
11382 losing symbol information).
11383 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11384 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11385 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11387 (ftrace_new_function): Move. Remove debug print.
11388 (ftrace_update_lines, ftrace_update_insns): New.
11389 (ftrace_update_function): Check for call, ret, and jump.
11390 (compute_ftrace): Renamed to ...
11391 (btrace_compute_ftrace): ...this. Rewritten to compute call
11393 (btrace_fetch, btrace_clear): Updated.
11394 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11395 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11396 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11397 (btrace_call_number, btrace_call_begin, btrace_call_end)
11398 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11399 (btrace_find_function_by_number, btrace_set_insn_history)
11400 (btrace_set_call_history): New.
11401 * record-btrace.c (require_btrace): Use new btrace thread
11403 (record_btrace_info, btrace_insn_history)
11404 (record_btrace_insn_history, record_btrace_insn_history_range):
11405 Use new btrace thread info fields and new iterator.
11406 (btrace_func_history_src_line): Rename to ...
11407 (btrace_call_history_src_line): ...this. Use new btrace
11408 thread info fields.
11409 (btrace_func_history): Rename to ...
11410 (btrace_call_history): ...this. Use new btrace thread info
11411 fields and new iterator.
11412 (record_btrace_call_history, record_btrace_call_history_range):
11413 Use new btrace thread info fields and new iterator.
11415 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11417 * frame.h (frame_id_build_unavailable_stack_special): New.
11418 * frame.c (frame_id_build_unavailable_stack_special): New.
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11422 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11423 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11424 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11426 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11427 (i386_insn_is_jump, i386_jmp_p): New.
11428 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11429 insn_is_jump to gdbarch.
11430 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11431 * gdbarch.h: Regenerated.
11432 * gdbarch.c: Regenerated.
11433 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11434 (default_insn_is_jump): New.
11435 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11436 (default_insn_is_jump): New.
11438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11440 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11442 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11443 (btrace_read_type) <btrace_read_new>: Change to ...
11444 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11448 * common/linux-btrace.c (linux_read_btrace): Free trace from
11449 previous iteration.
11451 2014-01-15 Doug Evans <dje@google.com>
11453 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11456 2014-01-15 Tom Tromey <tromey@redhat.com>
11458 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11459 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11460 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11461 (set_objfile_main_name): New function.
11462 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11463 language_of_main>: New fields.
11464 (set_objfile_main_name): Declare.
11465 * symtab.c (find_main_name): Loop over objfiles to find the main
11467 (set_main_name): Now static.
11468 (get_main_info): Add comment.
11469 * symtab.h (set_main_name): Don't declare.
11471 2014-01-15 Tom Tromey <tromey@redhat.com>
11473 * symtab.c (main_progspace_key): New global.
11474 (struct main_info): New.
11475 (name_of_main, language_of_main): Remove.
11476 (get_main_info, main_info_cleanup): New function.
11477 (set_main_name, main_name, main_language): Use get_main_info.
11478 (_initialize_symtab): Initialize main_progspace_key.
11480 2014-01-15 Tom Tromey <tromey@redhat.com>
11482 * dbxread.c (process_one_symbol): Update.
11483 * dwarf2read.c (read_partial_die): Update.
11484 * symfile.c (set_initial_language): Call main_language.
11485 * symtab.c (language_of_main): Now static.
11486 (set_main_name): Add 'lang' parameter.
11487 (find_main_name): Update.
11488 (main_language): New function.
11489 (symtab_observer_executable_changed): Update.
11490 * symtab.h (set_main_name): Update.
11491 (language_of_main): Remove.
11492 (main_language): Declare.
11494 2014-01-15 Tom Tromey <tromey@redhat.com>
11496 * symfile.c (init_entry_point_info): Use new "initialized" field.
11498 * objfiles.h (struct entry_point) <initialized>: New field.
11499 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11500 (struct objfile) <ei>: ...here. Remove.
11501 * objfiles.c (entry_point_address_query): Update.
11503 2014-01-15 Tom Tromey <tromey@redhat.com>
11505 * objfiles.c (entry_point_address_query): Relocate entry point
11507 (objfile_relocate1): Do not relocate entry point address.
11508 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11509 <the_bfd_section_index>: New field.
11510 * symfile.c (init_entry_point_info): Find the entry point's
11513 2014-01-15 Tom Tromey <tromey@redhat.com>
11515 * solib-frv.c (enable_break): Use entry_point_address_query.
11517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11519 * NEWS: Add note on improved process record-replay on
11520 arm*-linux* targets.
11522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11524 * arm-tdep.c (enum arm_record_result): New enum.
11525 (arm_record_unsupported_insn): New function.
11526 (arm_record_coproc_data_proc): Removed.
11527 (thumb2_record_ld_st_multiple): New function.
11528 (thumb2_record_ld_st_dual_ex_tbb): New function.
11529 (thumb2_record_data_proc_sreg_mimm): New function.
11530 (thumb2_record_ps_dest_generic): New function.
11531 (thumb2_record_branch_misc_cntrl): New function.
11532 (thumb2_record_str_single_data): New function.
11533 (thumb2_record_ld_mem_hints): New function.
11534 (thumb2_record_ld_word): New function.
11535 (thumb2_record_lmul_lmla_div): New function.
11536 (thumb2_record_decode_insn_handler): New function.
11537 (decode_insn): Add thumb32 instruction handlers.
11539 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11541 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11542 (struct arm_linux_record_tdep): Declare.
11543 (arm_canonicalize_syscall): New function.
11544 (arm_all_but_pc_registers_record): New function.
11545 (arm_linux_syscall_record): New function.
11546 (arm_linux_init_abi): Add syscall recording constructs.
11547 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11548 decoding. (arm_record_coproc_data_proc): Update arm syscall
11550 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11551 <arm_syscall_record>: New field.
11552 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11555 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11557 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11558 register for push instruction recording.
11560 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11562 * arm-tdep.c (thumb_record_misc): Update to correct logical
11563 error while recording ldm, ldmia and pop instructions.
11565 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11567 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11569 2014-01-15 Pedro Alves <palves@redhat.com>
11571 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11572 (go32_resume, go32_fetch_registers, store_register)
11573 (go32_store_registers, go32_prepare_to_store)
11574 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11575 (go32_create_inferior, go32_can_run, go32_terminal_init)
11576 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11579 2014-01-15 Tom Tromey <tromey@redhat.com>
11581 * target.h (async_callback_ftype): New typedef.
11582 (struct target_ops) <to_async>: Use it.
11584 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11586 * python/py-value.c (get_field_type): Remove unnecessary curly
11587 braces for single-statement if block.
11589 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11591 * python/py-type.c (convert_field): Add missing empty line
11592 after declarations.
11594 2014-01-14 Doug Evans <dje@google.com>
11596 * symfile.h (expand_symtabs_matching): Renamed from
11597 expand_partial_symbol_names. Update prototype.
11598 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11599 * symfile.c (expand_symtabs_matching): Renamed from
11600 expand_partial_symbol_names. New args file_matcher, kind.
11601 Rename arg fun to symbol_matcher.
11602 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11603 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11604 ada_expand_partial_symbol_name.
11605 (ada_make_symbol_completion_list): Update to call
11606 expand_symtabs_matching.
11607 (ada_add_global_exceptions): Call expand_symtabs_matching.
11608 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11609 call map_symbol_filenames.
11610 * symtab.c (sources_info): Update to call map_symbol_filenames.
11611 (search_symbols): Call expand_symtabs_matching.
11612 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11613 (default_make_symbol_completion_list_break_on): Update to call
11614 expand_symtabs_matching.
11615 (make_source_files_completion_list): Update to call
11616 map_symbol_filenames.
11618 2014-01-14 Doug Evans <dje@google.com>
11620 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11621 (expand_symtabs_symbol_matcher_ftype): New typedef.
11622 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11623 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11624 * symfile.c (expand_partial_symbol_names): Update to use
11625 expand_symtabs_symbol_matcher_ftype.
11626 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11627 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11628 Arg name_matcher renamed to symbol_matcher.
11629 * psymtab.c (recursively_search_psymtabs): Update to use
11630 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11632 (expand_symtabs_matching_via_partial): Update to use
11633 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11634 Arg name_matcher renamed to symbol_matcher.
11636 2014-01-14 Doug Evans <dje@google.com>
11638 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11639 (map_partial_symbol_filenames): Ditto.
11640 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11641 (map_partial_symbol_filenames): Ditto.
11642 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11643 (map_partial_symbol_filenames): Ditto.
11644 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11645 (map_partial_symbol_filenames): Ditto.
11646 * symtab.c: Delete #include "psymtab.h".
11648 2014-01-14 Pedro Alves <palves@redhat.com>
11649 Tom Tromey <tromey@redhat.com>
11651 * infrun.c (use_displaced_stepping): Use find_record_target
11652 instead of RECORD_IS_USED.
11653 (adjust_pc_after_break): Use record_full_is_used instead of
11655 * record-btrace.c (record_btrace_open): Call record_preopen
11656 instead of checking RECORD_IS_USED.
11657 * record-full.c (record_full_shortname)
11658 (record_full_core_shortname): New globals.
11659 (record_full_is_used): New function.
11660 (find_full_open): Call record_preopen instead of checking
11662 (init_record_full_ops): Set the target's shortname to
11663 record_full_shortname.
11664 (init_record_full_core_ops): Set the target's shortname to
11665 record_full_core_shortname.
11666 * record-full.h (record_full_is_used): Declare.
11667 * record.c (find_record_target): Make extern.
11668 (record_preopen): New function.
11669 * record.h (RECORD_IS_USED): Delete macro.
11670 (find_record_target, record_preopen): Declare functions.
11672 2014-01-14 Yao Qi <yao@codesourcery.com>
11674 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11675 'len''s type to ULONGEST.
11676 (core_xfer_shared_libraries_aix): Likewise.
11677 * gdbarch.c, gdbarch.h: Regenerated.
11678 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11679 Change type of 'len' to ULONGEST.
11680 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11681 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11683 2014-01-14 Yao Qi <yao@codesourcery.com>
11685 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11686 type of 'len' to ULONGEST.
11687 (linux_xfer_osdata_processgroups): Likewise.
11688 (linux_xfer_osdata_threads): Likewise.
11689 (linux_xfer_osdata_fds): Likewise.
11690 (linux_xfer_osdata_isockets): Likewise.
11691 (linux_xfer_osdata_shm): Likewise.
11692 (linux_xfer_osdata_sem): Likewise.
11693 (linux_xfer_osdata_msg): Likewise.
11694 (linux_common_xfer_osdata): Likewise.
11695 (struct osdata_type) <getter>: Likewise.
11696 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11699 2014-01-14 Yao Qi <yao@codesourcery.com>
11701 * target.h (target_xfer_partial_ftype): Update.
11702 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11704 * aix-thread.c (aix_thread_xfer_partial): Change type of
11705 argument 'len' to ULONGEST.
11706 * auxv.c (procfs_xfer_auxv): Likewise.
11707 (ld_so_xfer_auxv): Likewise.
11708 (memory_xfer_auxv): Likewise.
11709 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11710 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11711 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11712 * corelow.c (core_xfer_partial): Likewise.
11713 * ctf.c (ctf_xfer_partial): Likewise.
11714 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11716 (darwin_read_dyld_info): Likewise.
11717 (darwin_xfer_partial): Likewise.
11718 * exec.c (section_table_xfer_memory_partial): Likewise.
11719 (exec_xfer_partial): Likewise.
11720 * exec.h (section_table_xfer_memory_partial): Update
11722 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11723 instead of plongest.
11724 (gnu_xfer_partial): Likewise.
11725 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11726 (ia64_hpux_xfer_solib_got): Likewise.
11727 (ia64_hpux_xfer_partial): Likewise.
11728 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11729 * inf-ptrace.c (inf_ptrace_xfer_partial):
11730 * inf-ttrace.c (inf_ttrace_xfer_partial):
11731 * linux-nat.c (linux_xfer_siginfo): Likewise.
11732 (linux_nat_xfer_partial): Likewise.
11733 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11734 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11735 * monitor.c (monitor_xfer_memory): Likewise.
11736 (monitor_xfer_partial): Likewise.
11737 * procfs.c (procfs_xfer_partial): Likewise.
11738 * record-full.c (record_full_xfer_partial): Likewise.
11739 (record_full_core_xfer_partial): Likewise.
11740 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11741 instead of plongest.
11742 (gdbsim_xfer_partial): Likewise.
11743 * remote.c (remote_xfer_partial): Likewise.
11744 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11745 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11747 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11748 (rs6000_xfer_shared_libraries): Likewise.
11749 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11750 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11751 (sparc_xfer_partial): Likewise.
11752 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11753 (spu_xfer_partial): Likewise.
11754 * spu-multiarch.c (spu_xfer_partial): Likewise.
11755 * target.c (target_read_live_memory): Likewise.
11756 (memory_xfer_live_readonly_partial): Likewise.
11757 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11758 (target_xfer_partial, default_xfer_partial): Likewise.
11759 (current_xfer_partial): Likewise.
11760 * tracepoint.c (tfile_xfer_partial): Likewise.
11761 * windows-nat.c (windows_xfer_memory): Likewise. Call
11762 pulongest instead of plongest.
11763 (windows_xfer_partial): Likewise.
11764 (windows_xfer_shared_libraries): Likewise.
11766 2014-01-14 Yao Qi <yao@codesourcery.com>
11768 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11769 target_xfer_partial_ftype.
11771 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11775 * valops.c (value_struct_elt_bitpos): New function
11776 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11777 object to 'None' if the field name is an empty string ("").
11778 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11779 attribute to look for a field when 'name' is 'None'.
11780 (get_field_type): New function
11782 2014-01-13 Doug Evans <dje@google.com>
11785 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11786 (try_open_dwop_file): Ditto.
11787 * gdb_bfd.c: #include "vec.h".
11788 (bfdp): New typedef.
11789 (struct gdb_bfd_data): New member included_bfds.
11790 (gdb_bfd_unref): Unref all included bfds.
11791 (gdb_bfd_record_inclusion): New function.
11792 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11794 2014-01-13 Tom Tromey <tromey@redhat.com>
11796 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11798 2014-01-13 Tom Tromey <tromey@redhat.com>
11800 * defs.h (use_windows): Remove.
11801 * gdb.c (main): Update.
11802 * main.c (captured_main, gdb_main): Update.
11803 * main.h (struct captured_main_args) <use_windows>: Remove.
11804 * top.c (use_windows): Remove.
11806 2014-01-13 Tom Tromey <tromey@redhat.com>
11808 * defs.h (deprecated_flush_hook): Remove.
11810 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11813 * linux-thread-db.c (try_thread_db_load): Add parameter
11814 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11815 (try_thread_db_load_from_pdir_1): Move it there from here.
11816 (try_thread_db_load_from_sdir): Update caller.
11817 (try_thread_db_load_from_dir): Move it there from here.
11819 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11821 * regformats/regdat.sh: Always rewrite the register file.
11823 2014-01-13 Pedro Alves <palves@redhat.com>
11825 * Makefile.in (CHECK_HEADERS): New variable.
11826 (check-headers:): New rule.
11828 2014-01-13 Tom Tromey <tromey@redhat.com>
11830 * cli/cli-setshow.c (do_set_command): Update.
11831 * defs.h (deprecated_set_hook): Remove.
11832 * top.c (deprecated_set_hook): Remove.
11834 2014-01-13 Pedro Alves <palves@redhat.com>
11836 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11837 the tracepoint if the PC is a pseudo-register.
11839 2014-01-13 Tom Tromey <tromey@redhat.com>
11841 * defs.h (XCALLOC): Remove.
11842 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11843 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11844 * dwarf2loc.c (allocate_piece_closure): Likewise.
11845 * elfread.c (elf_symfile_segments): Likewise.
11846 (elf_symfile_segments): Likewise.
11847 * gdbtypes.c (copy_type_recursive): Likewise.
11848 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11849 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11850 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11852 * mt-tdep.c (mt_gdbarch_init): Likewise.
11853 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11855 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11856 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11857 * registry.c (registry_alloc_data): Likewise.
11858 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11859 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11860 * serial.c (serial_fdopen_ops): Likewise.
11861 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11863 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11864 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11867 2014-01-13 Tom Tromey <tromey@redhat.com>
11869 * defs.h (XMALLOC): Remove.
11870 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11871 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11872 * cli-out.c (struct ui_out *): Likewise.
11873 * cli/cli-dump.c (add_dump_command): Likewise.
11874 (add_dump_command): Likewise.
11875 * complaints.c (get_complaints): Likewise.
11876 (find_complaint): Likewise.
11877 * dwarf2-frame.c (execute_cfa_program): Likewise.
11878 * dwarf2read.c (abbrev_table_read_table): Likewise.
11879 * gdbarch.sh: Likewise.
11880 * gdbarch.c: Rebuild.
11881 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11882 * interps.c (interp_new): Likewise.
11883 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11884 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11885 * mi/mi-console.c (mi_console_file_new): Likewise.
11886 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11887 * mi/mi-out.c (mi_out_new): Likewise.
11888 * mi/mi-parse.c (mi_parse): Likewise.
11889 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11890 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11891 * observer.c (xalloc_observer_list_node): Likewise.
11892 * regcache.c (regcache_xmalloc_1): Likewise.
11893 * reggroups.c (reggroup_new): Likewise.
11894 (_initialize_reggroup): Likewise.
11895 * registry.c (register_data_with_cleanup): Likewise.
11896 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11897 * ser-base.c (serial_ttystate): Likewise.
11898 * ser-mingw.c (make_pipe_state): Likewise.
11899 * ser-pipe.c (pipe_open): Likewise.
11900 * serial.c (serial_open): Likewise.
11901 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11902 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11903 (tui_alloc_win_info): Likewise.
11904 (tui_add_content_elements): Likewise.
11905 * tui/tui-file.c (tui_file_new): Likewise.
11906 * tui/tui-out.c (tui_out_new): Likewise.
11907 * ui-file.c (mem_file_new): Likewise.
11908 * ui-out.c (push_level): Likewise.
11909 (make_cleanup_ui_out_end): Likewise.
11910 (append_header_to_list): Likewise.
11911 (ui_out_new): Likewise.
11912 * user-regs.c (user_reg_add_builtin): Likewise.
11914 2014-01-13 Tom Tromey <tromey@redhat.com>
11916 * defs.h (XZALLOC): Remove.
11917 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11918 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11919 (get_ada_tasks_inferior_data): Likewise.
11920 * auto-load.c (get_auto_load_pspace_data): Likewise.
11921 * auxv.c (get_auxv_inferior_data): Likewise.
11922 * bfd-target.c (target_bfd_reopen): Likewise.
11923 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11924 (deprecated_insert_raw_breakpoint): Likewise.
11925 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11926 * corelow.c (core_open): Likewise.
11927 * darwin-nat.c (darwin_check_new_threads): Likewise.
11928 (darwin_attach_pid): Likewise.
11929 * dummy-frame.c (dummy_frame_push): Likewise.
11930 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11931 * dwarf2loc.c (allocate_piece_closure): Likewise.
11932 * elfread.c (elf_symfile_segments): Likewise.
11933 * eval.c (ptrmath_type_p): Likewise.
11934 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11935 * gdbtypes.c (alloc_type_arch): Likewise.
11936 (alloc_type_instance): Likewise.
11937 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11938 * inf-child.c (inf_child_can_use_agent): Likewise.
11939 * inflow.c (get_inflow_inferior_data): Likewise.
11940 * infrun.c (save_infcall_suspend_state): Likewise.
11941 * jit.c (jit_reader_load): Likewise.
11942 (get_jit_objfile_data): Likewise.
11943 (get_jit_program_space_data): Likewise.
11944 (jit_object_open_impl): Likewise.
11945 (jit_symtab_open_impl): Likewise.
11946 (jit_block_open_impl): Likewise.
11947 (jit_frame_sniffer): Likewise.
11948 * linux-fork.c (add_fork): Likewise.
11949 * maint.c (make_command_stats_cleanup): Likewise.
11950 * objfiles.c (get_objfile_pspace_data): Likewise.
11951 * opencl-lang.c (struct lval_closure): Likewise.
11952 * osdata.c (osdata_start_osdata): Likewise.
11953 * progspace.c (new_address_space): Likewise.
11954 (add_program_space): Likewise.
11955 * remote-sim.c (get_sim_inferior_data): Likewise.
11956 * sh-tdep.c (sh_gdbarch_init): Likewise.
11957 * skip.c (Ignore): Likewise.
11958 (skip_delete_command): Likewise.
11959 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11960 (library_list_start_library): Likewise.
11961 (solib_aix_current_sos): Likewise.
11962 * solib-darwin.c (get_darwin_info): Likewise.
11963 (darwin_current_sos): Likewise.
11964 * solib-dsbt.c (get_dsbt_info): Likewise.
11965 * solib-ia64-hpux.c (new_so_list): Likewise.
11966 (ia64_hpux_get_solib_linkage_addr): Likewise.
11967 * solib-spu.c (append_ocl_sos): Likewise.
11968 (spu_current_sos): Likewise.
11969 * solib-svr4.c (get_svr4_info): Likewise.
11970 (svr4_keep_data_in_core): Likewise.
11971 (library_list_start_library): Likewise.
11972 (svr4_default_sos): Likewise.
11973 (svr4_read_so_list): Likewise.
11974 * solib-target.c (library_list_start_library): Likewise.
11975 (solib_target_current_sos): Likewise.
11976 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11977 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11978 * symfile.c (default_symfile_segments): Likewise.
11979 * target-descriptions.c (tdesc_data_init): Likewise.
11980 (tdesc_create_reg): Likewise.
11981 (struct tdesc_type *): Likewise.
11982 (tdesc_create_vector): Likewise.
11983 (tdesc_set_struct_size): Likewise.
11984 (struct tdesc_type *): Likewise.
11985 (tdesc_free_feature): Likewise.
11986 (tdesc_create_feature): Likewise.
11987 * windows-nat.c (windows_add_thread): Likewise.
11988 (windows_make_so): Likewise.
11989 * xml-support.c (gdb_xml_body_text): Likewise.
11990 (gdb_xml_create_parser_and_cleanup): Likewise.
11991 (xml_process_xincludes): Likewise.
11992 * xml-syscall.c (allocate_syscalls_info): Likewise.
11993 (syscall_create_syscall_desc): Likewise.
11995 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11997 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11998 function, with code from i386_stap_parse_special_token.
11999 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12000 (i386_stap_parse_special_token): Move code to the two functions
12001 above; simplify it.
12003 2014-01-09 Pedro Alves <palves@redhat.com>
12004 Hui Zhu <hui@codesourcery.com>
12007 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12008 bp_err_string. Don't mark the location shlib_disabled if the
12009 error thrown wasn't a generic or memory error. Catch errors
12010 thrown while inserting breakpoints in overlayed code. Output
12011 error message of software breakpoints.
12012 * remote.c (remote_insert_breakpoint): If this breakpoint has
12013 target-side commands but this stub doesn't support Z0 packets,
12014 throw NOT_SUPPORTED_ERROR error.
12015 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12016 * target.h (target_insert_breakpoint): Extend comment.
12017 (target_insert_hw_breakpoint): Add comment.
12019 2014-01-08 Pedro Alves <palves@redhat.com>
12021 * remote.c (remote_add_thread): Add threads silently if starting
12023 (remote_notice_new_inferior): If in all-stop, and starting up,
12024 don't call notice_new_inferior.
12025 (get_current_thread): New function, factored out from ...
12026 (add_current_inferior_and_thread): ... this. Adjust.
12027 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12028 found any thread, then select the remote's current thread as GDB's
12029 current thread too.
12031 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12033 * NEWS: Create a new section for the next release branch.
12034 Rename the section of the current branch, now that it has
12037 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12039 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12040 * version.in: Bump version to 7.7.50.DATE-cvs.
12042 2014-01-08 Yao Qi <yao@codesourcery.com>
12044 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12045 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12046 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12048 2014-01-08 Yao Qi <yao@codesourcery.com>
12050 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12051 return value of bfd_get_filename to symbol_file_add_from_bfd.
12053 2014-01-08 Pierre Muller <muller@sourceware.org>
12056 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12057 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12058 to prim_record_mininal_symbol_and_info.
12059 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12060 in call to prim_record_minimal_symbol_and_info.
12061 (read_pe_exported_syms): Set index field of section_data.
12063 2014-01-07 Andrew Pinski <apinski@cavium.com>
12065 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12066 * features/aarch64.c: Regenerate.
12068 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12070 * target.c (return_null): Define.
12071 (update_current_target): Use it instead of return_zero for
12072 functions that return a pointer.
12074 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12076 * source.c (add_path): Fix check for duplicated paths in the previously
12079 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12081 * ada-lang.c: Remove duplicated include statements.
12082 * alphabsd-nat.c: Ditto.
12083 * amd64-darwin-tdep.c: Ditto.
12084 * amd64fbsd-nat.c: Ditto.
12085 * auto-load.c: Ditto.
12087 * breakpoint.c: Ditto.
12088 * dbxread.c: Ditto.
12089 * fork-child.c: Ditto.
12090 * gdb_usleep.c: Ditto.
12091 * i386-darwin-tdep.c: Ditto.
12092 * i386fbsd-nat.c: Ditto.
12094 * inferior.c: Ditto.
12095 * jv-lang.c: Ditto.
12096 * linux-nat.c: Ditto.
12097 * linux-tdep.c: Ditto.
12098 * m68kbsd-nat.c: Ditto.
12099 * m68klinux-nat.c: Ditto.
12100 * microblaze-tdep.c: Ditto.
12101 * mips-linux-tdep.c: Ditto.
12102 * mn10300-tdep.c: Ditto.
12103 * nto-tdep.c: Ditto.
12104 * opencl-lang.c: Ditto.
12106 * printcmd.c: Ditto.
12107 * regcache.c: Ditto.
12108 * remote-m32r-sdi.c: Ditto.
12110 * symfile.c: Ditto.
12112 * tilegx-linux-nat.c: Ditto.
12113 * tilegx-tdep.c: Ditto.
12114 * tracepoint.c: Ditto.
12116 * vaxbsd-nat.c: Ditto.
12117 * windows-nat.c: Ditto.
12118 * xtensa-tdep.c: Ditto.
12120 2014-01-07 Yao Qi <yao@codesourcery.com>
12122 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12124 2014-01-07 Yao Qi <yao@codesourcery.com>
12125 Joel Brobecker <brobecker@adacore.com>
12127 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12128 (pdc_write_regs): Likewise.
12129 (fetch_regs_kernel_thread): Likewise.
12130 (store_regs_kernel_thread): Likewise.
12132 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12134 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12135 tagged type objects to their actual type.
12137 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12139 * ada-valprint.c (print_field_values): Add "language" parameter.
12140 Update calls to print_field_values and print_variant_part.
12141 Pass new parameter "language" in call to val_print instead
12142 of "current_language". Replace call to ada_val_print by call
12144 (print_variant_part): Add "language" parameter.
12145 (ada_val_print_struct_union): Update call to print_field_values.
12147 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12149 * ada-valprint.c (ui_memcpy): Delete.
12150 (ada_print_floating): Update documentation. Add empty line
12151 between between function documentation and implementation.
12152 Delete variable "buffer". Use ui_file_xstrdup in place of
12153 ui_file_put. Minor adjustments following this change.
12155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12157 * ada-valprint.c (ada_val_print_string): New function,
12158 extracted from ada_val_print_array.
12159 (ada_val_print_array): Replace extracted code by call
12160 to ada_val_print_string followed by a return. Move
12161 "else" branch to the function's top block.
12163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12165 * ada-valprint.c (ada_val_print_array): Move implementation
12166 down. Rename parameter "offset" and "val" into "offset_aligned"
12167 and "original_value" respectively. Add parameter "offset".
12169 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12171 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12172 re-organizing the code. Change the "???" message printed
12173 when target type is a TYPE_CODE_UNDEF into
12174 "<ref to undefined type>".
12176 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12178 * ada-valprint.c (print_record): Delete, implementation inlined...
12179 (ada_val_print_struct_union): ... here. Remove call to
12180 ada_check_typedef in inlined implementation.
12182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12184 * ada-valprint.c (ada_val_print_gnat_array): New function,
12185 extracted from ada_val_print_1;
12186 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12187 (ada_val_print_flt, ada_val_print_struct_union)
12188 (ada_val_print_ref): Likewise.
12189 (ada_val_print_1): Delete variables i and elttype.
12190 Replace extracted-out code by call to corresponding
12193 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12195 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12197 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12199 * ada-valprint.c (ada_val_print_1): Replace calls to
12200 ada_val_print_1 by calls to val_print.
12202 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12204 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12205 Update calls to self accordingly. Replace calls to c_val_print
12206 by calls to val_print.
12208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12210 * ada-valprint.c (print_record): Delete declaration.
12211 (adjust_type_signedness, ada_val_print_1): Likewise.
12212 (ada_val_print): Move function implementation down.
12213 (print_variant_part, print_field_values, print_record):
12214 Move function implementation up.
12216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12218 * python/py-type.c (typy_get_name): New function.
12219 (type_object_getset): Add entry for attribute "name".
12220 * NEWS: Add entry mentioning this new attribute.
12222 2014-01-07 Yao Qi <yao@codesourcery.com>
12224 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12227 2014-01-07 Yao Qi <yao@codesourcery.com>
12229 * gnu-nat.c (info_port_rights): Add qualifier const to
12232 2014-01-07 Yao Qi <yao@codesourcery.com>
12234 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12236 2014-01-07 Yao Qi <yao@codesourcery.com>
12238 * gnu-nat.c (make_inf) Update declaration.
12239 (make_inf): Make it static.
12240 (inf_set_traced): Likewise.
12241 (inf_port_to_thread, inf_task_died_status): Likewise.
12243 2014-01-07 Yao Qi <yao@codesourcery.com>
12245 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12247 2014-01-07 Yao Qi <yao@codesourcery.com>
12249 * gnu-nat.c (_initialize_gnu_nat): Declare.
12251 2014-01-07 Yao Qi <yao@codesourcery.com>
12253 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12255 (struct gdbarch_info) <byte_order>: Change type to
12257 <byte_order_for_code>: Likewise.
12258 * gdbarch.c, gdbarch.h: Regenerated.
12260 2014-01-06 Sasha Smundak <asmundak@google.com>
12262 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12264 2014-01-06 Tom Tromey <tromey@redhat.com>
12266 * doublest.c (convert_doublest_to_floatformat): Use const, not
12268 * somread.c (som_symtab_read): Likewise.
12270 2014-01-07 Hui Zhu <hui@codesourcery.com>
12272 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12273 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12274 (gdb_bfd_fopen): Ditto.
12275 (gdb_bfd_openr): Ditto.
12276 (gdb_bfd_openw): Ditto.
12277 (gdb_bfd_openr_iovec): Ditto.
12278 (gdb_bfd_fdopenr): Ditto.
12279 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12280 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12282 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12284 * symfile-mem.c (symbol_file_add_from_memory): Removed
12285 gdb_bfd_stash_filename.
12287 2014-01-03 Doug Evans <dje@google.com>
12289 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12292 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12294 Update year range in copyright notice of all files.
12296 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12298 * top.c (print_gdb_version): Set copyright year to 2014.
12300 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12302 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12304 For older changes see ChangeLog-2013.
12310 version-control: never