1 2014-08-25 Doug Evans <dje@google.com>
3 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4 Pass NULL instead of 0 for context pointer.
6 2014-08-25 Yao Qi <yao@codesourcery.com>
8 * dwarf2read.c: Fix grammatical error.
10 2014-08-24 Yao Qi <yao@codesourcery.com>
12 * dwarf2read.c (scan_partial_symbols): Update comments.
13 Rename argument 'need_pc' with 'set_addrmap'.
14 (add_partial_namespace): Rename argument 'need_pc' with
16 (add_partial_module): Likewise.
17 (add_partial_subprogram): Likewise. Update comments.
18 (dwarf2_name): Fix typo.
20 2014-08-22 Doug Evans <dje@google.com>
23 * dwarf2read.c (dwarf_record_line_p): New function.
24 (dwarf_decode_lines_1): Ignore subsequent line number entries
25 for the same line if any entry had a non-zero discriminator.
27 2014-08-22 Doug Evans <dje@google.com>
29 * buildsym.h (record_line_ftype): New typedef.
30 (record_line): Use it.
31 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
32 (dwarf_decode_lines_1): Call them.
34 2014-08-22 Yao Qi <yao@codesourcery.com>
36 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
37 (ctf_end): Remove code.
39 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
42 (linux_make_corefile_notes): call update_thread_list, protected against
45 2014-08-21 Pedro Alves <palves@redhat.com>
47 * infcmd.c (attach_command): Remove comment.
49 2014-08-21 Bin Cheng <bin.cheng@arm.com>
51 * aarch64-linux-nat.c (dr_changed_t): Change the type from
52 unsigned LONGEST to ULONGEST.
54 2014-08-20 Pedro Alves <palves@redhat.com>
56 * Makefile.in (check-read1): New rule.
58 2014-08-20 Joel Brobecker <brobecker@adacore.com>
60 * value.c (value_from_contents_and_address): Strip resolved_type's
61 typedef layers before checking its TYPE_DATA_LOCATION.
63 2014-08-20 Pedro Alves <palves@redhat.com>
65 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
67 2014-08-20 Yao Qi <yao@codesourcery.com>
69 * amd64-tdep.c (amd64_classify): Add a blank line after the
70 example. Move "*/" to a new line.
71 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
72 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
73 * dwarf2read.c (psymtab_include_file_name): Likewise.
75 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
76 Pedro Alves <palves@redhat.com>
80 * ada-lang.c (coerce_unspec_val_to_type): Use
81 value_contents_copy_raw.
82 * ada-valprint.c (val_print_packed_array_elements): Adjust.
83 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
84 * cp-valprint.c (cp_print_value_fields): Let the common printing
85 code handle optimized out values.
86 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
87 * d-valprint.c (dynamic_array_type): Use
88 value_bits_any_optimized_out.
89 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
90 check_any_valid fields.
91 (check_pieced_value_bits): Delete and inline ...
92 (check_pieced_synthetic_pointer): ... here.
93 (check_pieced_value_validity): Delete.
94 (check_pieced_value_invalid): Delete.
95 (pieced_value_funcs): Remove check_validity and check_any_valid
97 (read_pieced_value): Use mark_value_bits_optimized_out.
98 (write_pieced_value): Switch to use
99 mark_value_bytes_optimized_out.
100 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
101 of assuming the whole value is optimized out.
102 * findvar.c (read_frame_register_value): Remove special handling
103 of optimized out registers.
104 (value_from_register): Use mark_value_bytes_optimized_out.
105 * frame-unwind.c (frame_unwind_got_optimized): Use
106 mark_value_bytes_optimized_out.
107 * jv-valprint.c (java_value_print): Adjust.
108 (java_print_value_fields): Let the common printing code handle
109 optimized out values.
110 * mips-tdep.c (mips_print_register): Remove special handling of
111 optimized out registers.
112 * opencl-lang.c (lval_func_check_validity): Delete.
113 (lval_func_check_any_valid): Delete.
114 (opencl_value_funcs): Remove check_validity and check_any_valid
116 * p-valprint.c (pascal_object_print_value_fields): Let the common
117 printing code handle optimized out values.
118 * stack.c (read_frame_arg): Remove special handling of optimized
119 out values. Fetch both VAL and ENTRYVAL before comparing
120 contents. Adjust to value_available_contents_eq rename.
121 * valprint.c (valprint_check_validity)
122 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
123 (val_print_array_elements): Adjust.
124 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
125 (value_bits_any_optimized_out): New function.
126 (value_entirely_covered_by_range_vector): New function, factored
127 out from value_entirely_unavailable.
128 (value_entirely_unavailable): Reimplement.
129 (value_entirely_optimized_out): New function.
130 (insert_into_bit_range_vector): New function, factored out from
131 mark_value_bits_unavailable.
132 (mark_value_bits_unavailable): Reimplement.
133 (struct ranges_and_idx): New struct.
134 (find_first_range_overlap_and_match): New function, factored out
135 from value_available_contents_bits_eq.
136 (value_available_contents_bits_eq): Rename to ...
137 (value_contents_bits_eq): ... this. Check both unavailable
138 contents and optimized out contents.
139 (value_available_contents_eq): Rename to ...
140 (value_contents_eq): ... this.
141 (allocate_value_lazy): Remove reference to the old optimized_out
143 (allocate_optimized_out_value): Use
144 mark_value_bytes_optimized_out.
145 (require_not_optimized_out): Adjust to check whether the
146 optimized_out vec is empty.
147 (ranges_copy_adjusted): New function, factored out from
148 value_contents_copy_raw.
149 (value_contents_copy_raw): Also copy the optimized out ranges.
150 Assert the destination ranges aren't optimized out.
151 (value_contents_copy): Update comment, remove call to
152 require_not_optimized_out.
153 (value_contents_equal): Adjust to check whether the optimized_out
155 (set_value_optimized_out, value_optimized_out_const): Delete.
156 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
158 (value_entirely_optimized_out, value_bits_valid): Delete.
159 (value_copy): Take a VEC copy of the 'optimized_out' field.
160 (value_primitive_field): Remove special handling of optimized out.
161 (value_fetch_lazy): Assert that lazy values have no unavailable
162 regions. Use value_bits_any_optimized_out. Remove some special
163 handling for optimized out values.
164 * value.h: Add intro comment about <optimized out> and
166 (struct lval_funcs): Remove check_validity and check_any_valid
168 (set_value_optimized_out, value_optimized_out_const): Remove.
169 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
171 (value_bits_any_optimized_out): New declaration.
172 (value_bits_valid): Delete declaration.
173 (value_available_contents_eq): Rename to ...
174 (value_contents_eq): ... this, and extend comments.
176 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
178 Fix -fsanitize=address on unreadable inferior strings.
179 * valprint.c (val_print_string): Fix access before BUFFER.
181 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
183 * target.c (target_struct_size): Remove.
184 (target_struct_allocsize): Remove.
185 (DEFAULT_ALLOCSIZE): Remove.
186 (target_ops_p): New typedef.
187 (DEF_VEC_P (target_ops_p)): New vector type.
188 (target_structs): Change type to VEC (target_ops_p).
189 (add_target_with_completer): Replace "push" code by VEC_safe_push.
190 (find_default_run_target): Rewrite for loop following changes to
193 2014-08-19 Joel Brobecker <brobecker@adacore.com>
195 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
196 Adjust code accordingly. Adjust function description comment.
198 2014-08-19 Yao Qi <yao@codesourcery.com>
200 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
203 2014-08-19 Alan Modra <amodra@gmail.com>
205 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
206 * config.in: Regenerate.
207 * configure: Regenerate.
209 2014-08-19 Tom Tromey <tromey@redhat.com>
210 Gary Benson <gbenson@redhat.com>
212 * common/common-debug.h: New file.
213 * common/common-debug.c: Likewise.
215 * Makefile.in (SFILES): Add common/common-debug.c.
216 (HFILES_NO_SRCDIR): Add common/common-debug.h.
217 (COMMON_OBS): Add common-debug.o and debug.o.
218 (common-debug.o): New rule.
219 * common/common-defs.h: Include common-debug.h.
220 * common/agent.c (debug_agent_printf): New function.
221 (DEBUG_AGENT): Redefine.
222 * nat/i386-dregs.c (debug_printf): Undefine.
224 2014-08-19 Gary Benson <gbenson@redhat.com>
226 * common/common-defs.h: Include print-utils.h.
227 * utils.h: Do not include print-utils.h.
229 2014-08-19 Tom Tromey <tromey@redhat.com>
230 Gary Benson <gbenson@redhat.com>
232 * common/common-types.h: New file.
233 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
234 * common/common-defs.h: Include common-types.h.
235 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
238 2014-08-19 Tom Tromey <tromey@redhat.com>
239 Gary Benson <gbenson@redhat.com>
241 * common/errors.h: New file.
242 * common/errors.c: Likewise.
243 * Makefile.in (SFILES): Add common/errors.c.
244 (HFILES_NO_SRCDIR): Add common/errors.h.
245 (COMMON_OBS): Add errors.o.
246 (errors.o): New rule.
247 * common/common-defs.h: Include errors.h.
248 * utils.h (perror_with_name, error, verror, warning, vwarning):
250 * common/common-utils.h: (malloc_failure, internal_error):
253 2014-08-19 Gary Benson <gbenson@redhat.com>
255 * utils.c (internal_vproblem): Always print the message.
257 2014-08-18 Doug Evans <dje@google.com>
259 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
261 2014-08-18 Joel Brobecker <brobecker@adacore.com>
263 * ada-typeprint.c (type_is_full_subrange_of_target_type):
264 Return 0 if TYPE is dynamic.
265 (print_range): Add handling of dynamic ranges.
267 2014-08-18 Keven Boell <keven.boell@intel.com>
268 Joel Brobecker <brobecker@adacore.com>
270 * gdbtypes.h (struct main_type): Add field "data_location".
271 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
272 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
273 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
274 a dynamic data location.
275 (resolve_dynamic_type): Add DW_AT_data_location handling.
276 (copy_recursive, copy_type): Copy the data_location information
278 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
279 * value.c (value_from_contents_and_address): Add
280 DW_AT_data_location handling.
282 2014-08-18 Keven Boell <keven.boell@intel.com>
283 Joel Brobecker <brobecker@adacore.com>
285 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
286 field "get_object_address".
287 * dwarf2expr.c (execute_stack_op): Add handling for
288 DW_OP_push_object_address.
289 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
290 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
291 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
292 (dwarf_expr_get_obj_addr): New function.
293 (dwarf_expr_ctx_funcs): Add get_object_address field.
294 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
295 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
296 (dwarf2_evaluate_property): Add parameter "address". Use it.
297 (needs_get_obj_addr): New function.
298 (needs_frame_ctx_funcs): Add get_object_address field.
299 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
300 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
301 (resolve_dynamic_array): Likewise.
303 2014-08-18 Joel Brobecker <brobecker@adacore.com>
305 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
306 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
307 fixed value for records and unions for which some GNAT encodings
310 2014-08-18 Joel Brobecker <brobecker@adacore.com>
312 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
313 rewrite to avoid "else if" and "else" constructs. Should be
316 2014-08-18 Joel Brobecker <brobecker@adacore.com>
318 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
321 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
324 * eval.c: Update all calls to find_overload_match.
325 * valarith.c: Likewise.
326 (value_user_defined_cpp_op, value_user_defined_op): New
327 argument NOSIDE. Update all callers.
328 * valops.c (find_overload_match): New argument NOSIDE.
329 * value.h (find_overload_match): Update signature.
331 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
333 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
334 'items' methods instead of 'iteritems' method on dictionaries.
336 2014-08-15 Doug Evans <dje@google.com>
338 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
341 2014-08-15 Doug Evans <dje@google.com>
343 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
345 2014-08-15 Doug Evans <dje@google.com>
347 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
349 2014-08-15 Doug Evans <dje@google.com>
351 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
354 2014-08-15 Eli Zaretskii <eliz@gnu.org>
356 * dcache.h: Include target.h, to avoid compile time warnings.
358 2014-08-15 Joel Brobecker <brobecker@adacore.com>
360 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
361 frame_info" partial declaration.
362 * gdbarch.h: Regenerate.
364 2014-08-15 Yao Qi <yao@codesourcery.com>
366 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
367 Add parameter 'decode_for_pst_p'. Callers update.
369 2014-08-13 Yao Qi <yao@codesourcery.com>
372 * configure.ac: Use local variable 'pos'.
373 * configure: Regenerated.
375 2014-08-11 Doug Evans <dje@google.com>
377 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
378 message, it is redundant with "Reading symbols from ..." message.
380 2014-08-10 Doug Evans <xdje42@gmail.com>
382 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
384 2014-08-09 Yao Qi <yao@codesourcery.com>
387 * remote.c (remote_xfer_partial): Remove dead code.
389 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
391 * ia64-linux-tdep.c: Include "regset.h".
392 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
393 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
394 (ia64_linux_supply_fpregset): New function.
395 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
396 (ia64_linux_regset_from_core_section): New function.
397 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
400 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
402 * m68klinux-tdep.c: Include "regset.h".
403 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
404 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
405 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
406 (m68k_linux_regset_from_core_section): New function.
407 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
410 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
412 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
413 function. Move logic to...
414 (tilegx_linux_regmap): ... this new register map.
415 (tilegx_linux_regset): Refer to register map, replace supply
416 method by regcache_supply_regset, and add collect method.
417 * tilegx-tdep.h (enum tilegx_regnum): New enum value
418 TILEGX_FIRST_EASY_REGNUM.
420 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
422 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
423 that calls regcache_supply_regset and handles the EPC register
424 separately. Move main logic to...
425 (score7_linux_gregmap): ... this new register map.
426 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
427 (score7_linux_gregset): Refer to register map. Add collect method.
428 (score7_linux_regset_from_core_section): Replace
429 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
430 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
431 (struct regset): Delete unused forward declaraction.
432 (struct pt_regs): Delete structure definition.
433 (elf_gregset_t): Delete typedef.
435 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
437 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
438 (nios2_core_regset): Add collect method.
440 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
442 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
443 platform-independent and don't write to read-only input buffer.
444 (m32r_linux_collect_gregset): New function.
445 (m32r_linux_gregset): Add collect method.
447 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
449 * hppa-linux-tdep.c (greg_map): Rename to...
450 (hppa_linux_gregmap): ... this. Also convert to
451 regcache_map_entry format.
452 (hppa_linux_supply_regset): Delete function.
453 (hppa_linux_supply_fpregset): Delete function. Move logic to...
454 (hppa_linux_fpregmap): ... this new register map.
455 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
456 register map, replace supply method by regcache_supply_regset, and
457 add collect method regcache_collect_regset.
459 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
461 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
462 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
463 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
464 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
465 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
466 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
467 (frv_linux_supply_gregset): Replace main logic by call to
468 regcache_supply_regset, but keep clearing gr32-gr63.
469 (frv_linux_supply_fpregset): Delete function.
470 (frv_linux_gregset): Refer to appropriate register map and add
471 regcache_collect_regset as the collect method.
472 (frv_linux_fpregset): Likewise. Also exchange the supply method
473 by regcache_supply_regset.
475 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
477 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
478 by call to alpha_supply_int_regs.
479 (alpha_linux_collect_gregset): New function.
480 (alpha_linux_supply_fpregset): Replace logic by call to
481 alpha_supply_fp_regs.
482 (alpha_linux_collect_fpregset): New function.
483 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
487 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
488 by call to regcache_collect_regset.
489 (supply_gregset, supply_fpregset): Call regcache_supply_regset
490 instead of aarch64_linux_supply_gregset/_fpregset.
491 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
492 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
494 (aarch64_linux_supply_gregset, supply_gregset_from_core)
495 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
496 functions. Move logic to ...
497 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
499 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
500 refer to new register maps, replace *_regset_from_core by
501 regcache_supply_regset, and also use regcache_collect_regset.
502 * aarch64-linux-tdep.h: Include "regset.h".
503 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
505 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
506 macros, moved from C source file.
507 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
508 variable declarations.
510 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
512 * s390-linux-nat.c: Include "regset.h".
513 (regmap_gregset): Delete macro.
514 (s390_64_regmap_gregset): New register map for
515 regcache_supply/_collect_regset.
516 (s390_64_gregset): New regset.
517 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
518 (regmap_fpregset): Delete macro.
519 (s390_native_supply, s390_native_collect): Delete functions.
520 (supply_gregset, fill_gregset): Replace s390-specific regmap
521 handling by a call to regcache_supply/_collect_regset.
522 (supply_fpregset, fill_fpregset): Call regcache_supply/
523 _collect_regset instead of s390_native_supply/_collect.
524 (fetch_regset, store_regset): Likewise. Also change the last
525 parameter to a regset instead of a regmap.
526 (s390_linux_fetch_inferior_registers)
527 (390_linux_store_inferior_registers): Adjust last parameter in
528 calls to fetch_regset and store_regset.
529 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
530 (s390_gregmap): ... this. Also make static const and convert to
531 regcache_map_entry format.
532 (s390x_regmap_gregset): Delete.
533 (s390_regmap_fpregset): Rename to...
534 (s390_fpregmap): ... this. Make static const and convert to
535 regcache_map_entry format.
536 (s390_regmap_upper, s390_regmap_last_break)
537 (s390x_regmap_last_break, s390_regmap_system_call)
538 (s390_regmap_tdb): Likewise.
539 (s390_supply_regset, s390_collect_regset): Remove functions.
540 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
542 (s390_gregset, s390_fpregset, s390_upper_regset)
543 (s390_last_break_regset, s390x_last_break_regset)
544 (s390_system_call_regset, s390_tdb_regset): Make global and
545 replace s390_supply/_collect_regset by regcache_supply/
547 (s390x_gregset): Delete.
548 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
549 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
550 (s390_regmap_fpregset, s390_regmap_last_break)
551 (s390x_regmap_last_break, s390_regmap_system_call)
552 (s390_regmap_tdb): Delete global variable declarations.
553 (s390_gregset, s390_fpregset, s390_last_break_regset)
554 (s390x_last_break_regset, s390_system_call_regset)
555 (s390_tdb_regset): New global variable declarations.
557 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
559 * regcache.c: Include "regset.h".
560 (regcache_transfer_regset): New local function.
561 (regcache_supply_regset, regcache_collect_regset): New functions.
562 * regcache.h (struct regcache_map_entry): New structure.
563 (REGCACHE_MAP_SKIP): New enum value.
564 (regcache_supply_regset, regcache_collect_regset): New prototypes.
566 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
568 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
569 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
570 (ppc_linux_collect_gregset ): Likewise.
571 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
572 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
573 (ppc_collect_vrregset): Likewise.
574 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
577 2014-08-07 Yao Qi <yao@codesourcery.com>
579 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
580 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
581 * remote.c (remote_read_bytes): Likewise.
583 2014-08-07 Yao Qi <yao@codesourcery.com>
585 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
587 2014-08-07 Yao Qi <yao@codesourcery.com>
590 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
591 TARGET_XFER_OK instead of 0.
593 2014-08-07 Gary Benson <gbenson@redhat.com>
595 * common/common-defs.h: Include errno.h.
596 * defs.h: Do not include errno.h.
597 * ada-typeprint.c: Likewise.
598 * c-typeprint.c: Likewise.
599 * core-regset.c: Likewise.
600 * corefile.c: Likewise.
601 * corelow.c: Likewise.
602 * event-loop.c: Likewise.
603 * f-typeprint.c: Likewise.
604 * gnu-nat.c: Likewise.
605 * go32-nat.c: Likewise.
606 * i386gnu-nat.c: Likewise.
607 * m2-typeprint.c: Likewise.
608 * nat/linux-btrace.c: Likewise.
609 * p-typeprint.c: Likewise.
610 * procfs.c: Likewise.
611 * remote-sim.c: Likewise.
612 * rs6000-nat.c: Likewise.
613 * target.c: Likewise.
614 * typeprint.c: Likewise.
615 * ui-file.c: Likewise.
616 * valops.c: Likewise.
617 * valprint.c: Likewise.
619 2014-08-07 Gary Benson <gbenson@redhat.com>
621 * common/common-defs.h: Include string.h.
622 * aarch64-tdep.c: Do not include string.h.
623 * ada-exp.y: Likewise.
624 * ada-lang.c: Likewise.
625 * ada-lex.l: Likewise.
626 * ada-typeprint.c: Likewise.
627 * ada-valprint.c: Likewise.
628 * aix-thread.c: Likewise.
629 * alpha-linux-tdep.c: Likewise.
630 * alpha-mdebug-tdep.c: Likewise.
631 * alpha-nat.c: Likewise.
632 * alpha-osf1-tdep.c: Likewise.
633 * alpha-tdep.c: Likewise.
634 * alphanbsd-tdep.c: Likewise.
635 * amd64-dicos-tdep.c: Likewise.
636 * amd64-linux-tdep.c: Likewise.
637 * amd64-nat.c: Likewise.
638 * amd64-sol2-tdep.c: Likewise.
639 * amd64fbsd-tdep.c: Likewise.
640 * amd64obsd-tdep.c: Likewise.
641 * arch-utils.c: Likewise.
642 * arm-linux-nat.c: Likewise.
643 * arm-linux-tdep.c: Likewise.
644 * arm-tdep.c: Likewise.
645 * arm-wince-tdep.c: Likewise.
646 * armbsd-tdep.c: Likewise.
647 * armnbsd-nat.c: Likewise.
648 * armnbsd-tdep.c: Likewise.
649 * armobsd-tdep.c: Likewise.
650 * avr-tdep.c: Likewise.
651 * ax-gdb.c: Likewise.
652 * ax-general.c: Likewise.
653 * bcache.c: Likewise.
654 * bfin-tdep.c: Likewise.
655 * breakpoint.c: Likewise.
656 * build-id.c: Likewise.
657 * buildsym.c: Likewise.
659 * c-lang.c: Likewise.
660 * c-typeprint.c: Likewise.
661 * c-valprint.c: Likewise.
662 * charset.c: Likewise.
663 * cli-out.c: Likewise.
664 * cli/cli-cmds.c: Likewise.
665 * cli/cli-decode.c: Likewise.
666 * cli/cli-dump.c: Likewise.
667 * cli/cli-interp.c: Likewise.
668 * cli/cli-logging.c: Likewise.
669 * cli/cli-script.c: Likewise.
670 * cli/cli-setshow.c: Likewise.
671 * cli/cli-utils.c: Likewise.
672 * coffread.c: Likewise.
673 * common/agent.c: Likewise.
674 * common/buffer.c: Likewise.
675 * common/buffer.h: Likewise.
676 * common/common-utils.c: Likewise.
677 * common/filestuff.c: Likewise.
678 * common/filestuff.c: Likewise.
679 * common/format.c: Likewise.
680 * common/print-utils.c: Likewise.
681 * common/rsp-low.c: Likewise.
682 * common/signals.c: Likewise.
683 * common/vec.h: Likewise.
684 * common/xml-utils.c: Likewise.
685 * core-regset.c: Likewise.
686 * corefile.c: Likewise.
687 * corelow.c: Likewise.
688 * cp-abi.c: Likewise.
689 * cp-name-parser.y: Likewise.
690 * cp-support.c: Likewise.
691 * cp-valprint.c: Likewise.
692 * cris-tdep.c: Likewise.
694 * darwin-nat.c: Likewise.
695 * dbxread.c: Likewise.
696 * dcache.c: Likewise.
697 * demangle.c: Likewise.
698 * dicos-tdep.c: Likewise.
699 * disasm.c: Likewise.
700 * doublest.c: Likewise.
702 * dummy-frame.c: Likewise.
703 * dwarf2-frame.c: Likewise.
704 * dwarf2loc.c: Likewise.
705 * dwarf2read.c: Likewise.
706 * elfread.c: Likewise.
707 * environ.c: Likewise.
709 * event-loop.c: Likewise.
710 * exceptions.c: Likewise.
712 * expprint.c: Likewise.
714 * f-lang.c: Likewise.
715 * f-typeprint.c: Likewise.
716 * f-valprint.c: Likewise.
717 * fbsd-nat.c: Likewise.
718 * findcmd.c: Likewise.
719 * findvar.c: Likewise.
720 * fork-child.c: Likewise.
722 * frv-linux-tdep.c: Likewise.
723 * frv-tdep.c: Likewise.
725 * gdb_bfd.c: Likewise.
726 * gdbarch.c: Likewise.
727 * gdbarch.sh: Likewise.
728 * gdbtypes.c: Likewise.
729 * gnu-nat.c: Likewise.
730 * gnu-v2-abi.c: Likewise.
731 * gnu-v3-abi.c: Likewise.
732 * go-exp.y: Likewise.
733 * go-lang.c: Likewise.
734 * go32-nat.c: Likewise.
735 * guile/guile.c: Likewise.
736 * guile/scm-auto-load.c: Likewise.
737 * hppa-hpux-tdep.c: Likewise.
738 * hppa-linux-nat.c: Likewise.
739 * hppanbsd-tdep.c: Likewise.
740 * hppaobsd-tdep.c: Likewise.
741 * i386-cygwin-tdep.c: Likewise.
742 * i386-dicos-tdep.c: Likewise.
743 * i386-linux-tdep.c: Likewise.
744 * i386-nto-tdep.c: Likewise.
745 * i386-sol2-tdep.c: Likewise.
746 * i386-tdep.c: Likewise.
747 * i386bsd-tdep.c: Likewise.
748 * i386gnu-nat.c: Likewise.
749 * i386nbsd-tdep.c: Likewise.
750 * i386obsd-tdep.c: Likewise.
751 * i387-tdep.c: Likewise.
752 * ia64-libunwind-tdep.c: Likewise.
753 * ia64-linux-nat.c: Likewise.
754 * inf-child.c: Likewise.
755 * inf-ptrace.c: Likewise.
756 * inf-ttrace.c: Likewise.
757 * infcall.c: Likewise.
758 * infcmd.c: Likewise.
759 * inflow.c: Likewise.
760 * infrun.c: Likewise.
761 * interps.c: Likewise.
762 * iq2000-tdep.c: Likewise.
763 * irix5-nat.c: Likewise.
764 * jv-exp.y: Likewise.
765 * jv-lang.c: Likewise.
766 * jv-typeprint.c: Likewise.
767 * jv-valprint.c: Likewise.
768 * language.c: Likewise.
769 * linux-fork.c: Likewise.
770 * linux-nat.c: Likewise.
771 * lm32-tdep.c: Likewise.
772 * m2-exp.y: Likewise.
773 * m2-typeprint.c: Likewise.
774 * m32c-tdep.c: Likewise.
775 * m32r-linux-nat.c: Likewise.
776 * m32r-linux-tdep.c: Likewise.
777 * m32r-rom.c: Likewise.
778 * m32r-tdep.c: Likewise.
779 * m68hc11-tdep.c: Likewise.
780 * m68k-tdep.c: Likewise.
781 * m68kbsd-tdep.c: Likewise.
782 * m68klinux-nat.c: Likewise.
783 * m68klinux-tdep.c: Likewise.
784 * m88k-tdep.c: Likewise.
785 * machoread.c: Likewise.
786 * macrocmd.c: Likewise.
788 * mdebugread.c: Likewise.
789 * mem-break.c: Likewise.
790 * memattr.c: Likewise.
791 * memory-map.c: Likewise.
792 * mep-tdep.c: Likewise.
793 * mi/mi-cmd-break.c: Likewise.
794 * mi/mi-cmd-disas.c: Likewise.
795 * mi/mi-cmd-env.c: Likewise.
796 * mi/mi-cmd-stack.c: Likewise.
797 * mi/mi-cmd-var.c: Likewise.
798 * mi/mi-cmds.c: Likewise.
799 * mi/mi-console.c: Likewise.
800 * mi/mi-getopt.c: Likewise.
801 * mi/mi-interp.c: Likewise.
802 * mi/mi-main.c: Likewise.
803 * mi/mi-parse.c: Likewise.
804 * microblaze-rom.c: Likewise.
805 * microblaze-tdep.c: Likewise.
806 * mingw-hdep.c: Likewise.
807 * minidebug.c: Likewise.
808 * minsyms.c: Likewise.
809 * mips-irix-tdep.c: Likewise.
810 * mips-linux-tdep.c: Likewise.
811 * mips-tdep.c: Likewise.
812 * mips64obsd-tdep.c: Likewise.
813 * mipsnbsd-tdep.c: Likewise.
814 * mipsread.c: Likewise.
815 * mn10300-linux-tdep.c: Likewise.
816 * mn10300-tdep.c: Likewise.
817 * monitor.c: Likewise.
818 * moxie-tdep.c: Likewise.
819 * mt-tdep.c: Likewise.
820 * nat/linux-btrace.c: Likewise.
821 * nat/linux-osdata.c: Likewise.
822 * nat/linux-procfs.c: Likewise.
823 * nat/linux-ptrace.c: Likewise.
824 * nat/linux-waitpid.c: Likewise.
825 * nbsd-tdep.c: Likewise.
826 * nios2-linux-tdep.c: Likewise.
827 * nto-procfs.c: Likewise.
828 * nto-tdep.c: Likewise.
829 * objc-lang.c: Likewise.
830 * objfiles.c: Likewise.
831 * opencl-lang.c: Likewise.
833 * osdata.c: Likewise.
835 * p-lang.c: Likewise.
836 * p-typeprint.c: Likewise.
838 * posix-hdep.c: Likewise.
839 * ppc-linux-nat.c: Likewise.
840 * ppc-sysv-tdep.c: Likewise.
841 * ppcfbsd-tdep.c: Likewise.
842 * ppcnbsd-tdep.c: Likewise.
843 * ppcobsd-tdep.c: Likewise.
844 * printcmd.c: Likewise.
845 * procfs.c: Likewise.
846 * prologue-value.c: Likewise.
847 * python/py-auto-load.c: Likewise.
848 * python/py-gdb-readline.c: Likewise.
849 * ravenscar-thread.c: Likewise.
850 * regcache.c: Likewise.
851 * registry.c: Likewise.
852 * remote-fileio.c: Likewise.
853 * remote-m32r-sdi.c: Likewise.
854 * remote-mips.c: Likewise.
855 * remote-notif.c: Likewise.
856 * remote-sim.c: Likewise.
857 * remote.c: Likewise.
858 * reverse.c: Likewise.
859 * rs6000-aix-tdep.c: Likewise.
860 * ser-base.c: Likewise.
861 * ser-go32.c: Likewise.
862 * ser-mingw.c: Likewise.
863 * ser-pipe.c: Likewise.
864 * ser-tcp.c: Likewise.
865 * ser-unix.c: Likewise.
866 * serial.c: Likewise.
867 * sh-tdep.c: Likewise.
868 * sh64-tdep.c: Likewise.
869 * shnbsd-tdep.c: Likewise.
871 * sol-thread.c: Likewise.
872 * solib-dsbt.c: Likewise.
873 * solib-frv.c: Likewise.
874 * solib-osf.c: Likewise.
875 * solib-som.c: Likewise.
876 * solib-spu.c: Likewise.
877 * solib-target.c: Likewise.
879 * somread.c: Likewise.
880 * source.c: Likewise.
881 * sparc-nat.c: Likewise.
882 * sparc-sol2-tdep.c: Likewise.
883 * sparc-tdep.c: Likewise.
884 * sparc64-tdep.c: Likewise.
885 * sparc64fbsd-tdep.c: Likewise.
886 * sparc64nbsd-tdep.c: Likewise.
887 * sparcnbsd-tdep.c: Likewise.
888 * spu-linux-nat.c: Likewise.
889 * spu-multiarch.c: Likewise.
890 * spu-tdep.c: Likewise.
891 * stabsread.c: Likewise.
893 * std-regs.c: Likewise.
894 * symfile.c: Likewise.
895 * symmisc.c: Likewise.
896 * symtab.c: Likewise.
897 * target.c: Likewise.
898 * thread.c: Likewise.
899 * tilegx-linux-nat.c: Likewise.
900 * tilegx-tdep.c: Likewise.
902 * tracepoint.c: Likewise.
903 * tui/tui-command.c: Likewise.
904 * tui/tui-data.c: Likewise.
905 * tui/tui-disasm.c: Likewise.
906 * tui/tui-file.c: Likewise.
907 * tui/tui-layout.c: Likewise.
908 * tui/tui-out.c: Likewise.
909 * tui/tui-regs.c: Likewise.
910 * tui/tui-source.c: Likewise.
911 * tui/tui-stack.c: Likewise.
912 * tui/tui-win.c: Likewise.
913 * tui/tui-windata.c: Likewise.
914 * tui/tui-winsource.c: Likewise.
915 * typeprint.c: Likewise.
916 * ui-file.c: Likewise.
917 * ui-out.c: Likewise.
918 * user-regs.c: Likewise.
920 * v850-tdep.c: Likewise.
921 * valarith.c: Likewise.
922 * valops.c: Likewise.
923 * valprint.c: Likewise.
925 * varobj.c: Likewise.
926 * vax-tdep.c: Likewise.
927 * vaxnbsd-tdep.c: Likewise.
928 * vaxobsd-tdep.c: Likewise.
929 * windows-nat.c: Likewise.
930 * xcoffread.c: Likewise.
931 * xml-support.c: Likewise.
932 * xstormy16-tdep.c: Likewise.
933 * xtensa-linux-nat.c: Likewise.
935 2014-08-07 Gary Benson <gbenson@redhat.com>
937 * common/common-defs.h: Include gdb_assert.h.
938 * aarch64-tdep.c: Do not include gdb_assert.h.
939 * addrmap.c: Likewise.
940 * aix-thread.c: Likewise.
941 * alpha-linux-tdep.c: Likewise.
942 * alpha-mdebug-tdep.c: Likewise.
943 * alphanbsd-tdep.c: Likewise.
944 * amd64-nat.c: Likewise.
945 * amd64-tdep.c: Likewise.
946 * amd64bsd-nat.c: Likewise.
947 * amd64fbsd-nat.c: Likewise.
948 * amd64fbsd-tdep.c: Likewise.
949 * amd64nbsd-nat.c: Likewise.
950 * amd64nbsd-tdep.c: Likewise.
951 * amd64obsd-nat.c: Likewise.
952 * amd64obsd-tdep.c: Likewise.
953 * arch-utils.c: Likewise.
954 * arm-tdep.c: Likewise.
955 * armbsd-tdep.c: Likewise.
957 * bcache.c: Likewise.
958 * bfin-tdep.c: Likewise.
959 * blockframe.c: Likewise.
960 * breakpoint.c: Likewise.
961 * bsd-kvm.c: Likewise.
962 * bsd-uthread.c: Likewise.
963 * buildsym.c: Likewise.
965 * c-lang.c: Likewise.
966 * charset.c: Likewise.
967 * cleanups.c: Likewise.
968 * cli-out.c: Likewise.
969 * cli/cli-decode.c: Likewise.
970 * cli/cli-dump.c: Likewise.
971 * cli/cli-logging.c: Likewise.
972 * cli/cli-script.c: Likewise.
973 * cli/cli-utils.c: Likewise.
974 * coffread.c: Likewise.
975 * common/common-utils.c: Likewise.
976 * common/queue.h: Likewise.
977 * common/signals.c: Likewise.
978 * common/vec.h: Likewise.
979 * complaints.c: Likewise.
980 * completer.c: Likewise.
981 * corelow.c: Likewise.
982 * cp-abi.c: Likewise.
983 * cp-name-parser.y: Likewise.
984 * cp-namespace.c: Likewise.
985 * cp-support.c: Likewise.
986 * cris-tdep.c: Likewise.
987 * dbxread.c: Likewise.
988 * dictionary.c: Likewise.
989 * doublest.c: Likewise.
991 * dummy-frame.c: Likewise.
992 * dwarf2-frame-tailcall.c: Likewise.
993 * dwarf2-frame.c: Likewise.
994 * dwarf2expr.c: Likewise.
995 * dwarf2loc.c: Likewise.
996 * dwarf2read.c: Likewise.
998 * event-loop.c: Likewise.
999 * exceptions.c: Likewise.
1000 * expprint.c: Likewise.
1001 * f-valprint.c: Likewise.
1002 * fbsd-nat.c: Likewise.
1003 * findvar.c: Likewise.
1004 * frame-unwind.c: Likewise.
1005 * frame.c: Likewise.
1006 * frv-tdep.c: Likewise.
1007 * gcore.c: Likewise.
1008 * gdb-dlfcn.c: Likewise.
1009 * gdb_bfd.c: Likewise.
1010 * gdbarch.c: Likewise.
1011 * gdbarch.sh: Likewise.
1012 * gdbtypes.c: Likewise.
1013 * gnu-nat.c: Likewise.
1014 * gnu-v3-abi.c: Likewise.
1015 * go-lang.c: Likewise.
1016 * guile/scm-exception.c: Likewise.
1017 * guile/scm-gsmob.c: Likewise.
1018 * guile/scm-lazy-string.c: Likewise.
1019 * guile/scm-math.c: Likewise.
1020 * guile/scm-pretty-print.c: Likewise.
1021 * guile/scm-safe-call.c: Likewise.
1022 * guile/scm-utils.c: Likewise.
1023 * guile/scm-value.c: Likewise.
1024 * h8300-tdep.c: Likewise.
1025 * hppa-hpux-nat.c: Likewise.
1026 * hppa-tdep.c: Likewise.
1027 * hppanbsd-tdep.c: Likewise.
1028 * hppaobsd-tdep.c: Likewise.
1029 * i386-darwin-nat.c: Likewise.
1030 * i386-darwin-tdep.c: Likewise.
1031 * i386-nto-tdep.c: Likewise.
1032 * i386-tdep.c: Likewise.
1033 * i386bsd-nat.c: Likewise.
1034 * i386fbsd-tdep.c: Likewise.
1035 * i386gnu-nat.c: Likewise.
1036 * i386nbsd-tdep.c: Likewise.
1037 * i386obsd-tdep.c: Likewise.
1038 * i387-tdep.c: Likewise.
1039 * ia64-libunwind-tdep.c: Likewise.
1040 * ia64-tdep.c: Likewise.
1041 * inf-ptrace.c: Likewise.
1042 * inf-ttrace.c: Likewise.
1043 * infcall.c: Likewise.
1044 * infcmd.c: Likewise.
1045 * infrun.c: Likewise.
1046 * inline-frame.c: Likewise.
1047 * interps.c: Likewise.
1048 * jv-lang.c: Likewise.
1049 * jv-typeprint.c: Likewise.
1050 * linux-fork.c: Likewise.
1051 * linux-nat.c: Likewise.
1052 * linux-thread-db.c: Likewise.
1053 * m32c-tdep.c: Likewise.
1054 * m32r-linux-nat.c: Likewise.
1055 * m32r-tdep.c: Likewise.
1056 * m68k-tdep.c: Likewise.
1057 * m68kbsd-nat.c: Likewise.
1058 * m68kbsd-tdep.c: Likewise.
1059 * m88k-tdep.c: Likewise.
1060 * machoread.c: Likewise.
1061 * macroexp.c: Likewise.
1062 * macrotab.c: Likewise.
1063 * maint.c: Likewise.
1064 * mdebugread.c: Likewise.
1065 * memory-map.c: Likewise.
1066 * mep-tdep.c: Likewise.
1067 * mi/mi-common.c: Likewise.
1068 * microblaze-tdep.c: Likewise.
1069 * mingw-hdep.c: Likewise.
1070 * mips-linux-nat.c: Likewise.
1071 * mips-linux-tdep.c: Likewise.
1072 * mips-tdep.c: Likewise.
1073 * mips64obsd-tdep.c: Likewise.
1074 * mipsnbsd-tdep.c: Likewise.
1075 * mn10300-linux-tdep.c: Likewise.
1076 * mn10300-tdep.c: Likewise.
1077 * moxie-tdep.c: Likewise.
1078 * mt-tdep.c: Likewise.
1079 * nat/linux-btrace.c: Likewise.
1080 * nat/linux-osdata.c: Likewise.
1081 * nat/linux-ptrace.c: Likewise.
1082 * nat/mips-linux-watch.c: Likewise.
1083 * nios2-linux-tdep.c: Likewise.
1084 * nios2-tdep.c: Likewise.
1085 * objc-lang.c: Likewise.
1086 * objfiles.c: Likewise.
1087 * obsd-nat.c: Likewise.
1088 * opencl-lang.c: Likewise.
1089 * osabi.c: Likewise.
1090 * parse.c: Likewise.
1091 * ppc-linux-nat.c: Likewise.
1092 * ppc-sysv-tdep.c: Likewise.
1093 * ppcfbsd-nat.c: Likewise.
1094 * ppcfbsd-tdep.c: Likewise.
1095 * ppcnbsd-nat.c: Likewise.
1096 * ppcnbsd-tdep.c: Likewise.
1097 * ppcobsd-nat.c: Likewise.
1098 * ppcobsd-tdep.c: Likewise.
1099 * printcmd.c: Likewise.
1100 * procfs.c: Likewise.
1101 * prologue-value.c: Likewise.
1102 * psymtab.c: Likewise.
1103 * python/py-lazy-string.c: Likewise.
1104 * python/py-value.c: Likewise.
1105 * regcache.c: Likewise.
1106 * reggroups.c: Likewise.
1107 * registry.c: Likewise.
1108 * remote-sim.c: Likewise.
1109 * remote.c: Likewise.
1110 * rs6000-aix-tdep.c: Likewise.
1111 * rs6000-tdep.c: Likewise.
1112 * s390-linux-tdep.c: Likewise.
1113 * score-tdep.c: Likewise.
1114 * ser-base.c: Likewise.
1115 * ser-mingw.c: Likewise.
1116 * sh-tdep.c: Likewise.
1117 * sh64-tdep.c: Likewise.
1118 * solib-darwin.c: Likewise.
1119 * solib-spu.c: Likewise.
1120 * solib-svr4.c: Likewise.
1121 * source.c: Likewise.
1122 * sparc-nat.c: Likewise.
1123 * sparc-sol2-tdep.c: Likewise.
1124 * sparc-tdep.c: Likewise.
1125 * sparc64-sol2-tdep.c: Likewise.
1126 * sparc64-tdep.c: Likewise.
1127 * sparc64fbsd-tdep.c: Likewise.
1128 * sparc64nbsd-tdep.c: Likewise.
1129 * sparc64obsd-tdep.c: Likewise.
1130 * sparcnbsd-tdep.c: Likewise.
1131 * sparcobsd-tdep.c: Likewise.
1132 * spu-multiarch.c: Likewise.
1133 * spu-tdep.c: Likewise.
1134 * stabsread.c: Likewise.
1135 * stack.c: Likewise.
1136 * symfile.c: Likewise.
1137 * symtab.c: Likewise.
1138 * target-descriptions.c: Likewise.
1139 * target-memory.c: Likewise.
1140 * target.c: Likewise.
1141 * tic6x-linux-tdep.c: Likewise.
1142 * tic6x-tdep.c: Likewise.
1143 * tilegx-linux-nat.c: Likewise.
1144 * tilegx-tdep.c: Likewise.
1146 * tramp-frame.c: Likewise.
1147 * tui/tui-out.c: Likewise.
1148 * tui/tui-winsource.c: Likewise.
1149 * ui-out.c: Likewise.
1150 * user-regs.c: Likewise.
1151 * utils.c: Likewise.
1152 * v850-tdep.c: Likewise.
1153 * valops.c: Likewise.
1154 * value.c: Likewise.
1155 * varobj.c: Likewise.
1156 * vax-nat.c: Likewise.
1157 * xml-syscall.c: Likewise.
1158 * xml-tdesc.c: Likewise.
1159 * xstormy16-tdep.c: Likewise.
1160 * xtensa-linux-nat.c: Likewise.
1161 * xtensa-tdep.c: Likewise.
1163 2014-08-07 Gary Benson <gbenson@redhat.com>
1165 * common/common-defs.h: Include common-utils.h.
1166 * defs.h: Do not include common-utils.h.
1167 * common/gdb_assert.h: Likewise.
1168 * darwin-nat.h: Likewise.
1169 * nat/linux-btrace.c: Likewise.
1170 * target/waitstatus.h: Likewise.
1172 2014-08-07 Gary Benson <gbenson@redhat.com>
1174 * common/common-defs.h: Include ptid.h.
1175 * defs.h: Do not include ptid.h.
1176 * inferior.h: Likewise.
1177 * infrun.h: Likewise.
1178 * nat/linux-btrace.h: Likewise.
1179 * nat/linux-osdata.h: Likewise.
1180 * target/waitstatus.h: Likewise.
1182 2014-08-07 Gary Benson <gbenson@redhat.com>
1184 * common/common-defs.h: Include gdb_locale.h.
1185 * defs.h: Do not include gdb_locale.h.
1187 2014-08-07 Gary Benson <gbenson@redhat.com>
1189 * common/common-defs.h: Include gdb/signals.h.
1190 * defs.h: Do not include gdb/signals.h.
1192 2014-08-07 Gary Benson <gbenson@redhat.com>
1194 * common/common-defs.h: Include pathmax.h.
1195 * defs.h: Do not include pathmax.h.
1197 2014-08-07 Gary Benson <gbenson@redhat.com>
1199 * common/common-defs.h: Include libiberty.h.
1200 * defs.h: Do not include libiberty.h.
1201 * common/queue.h: Likewise.
1202 * cp-name-parser.y: Likewise.
1203 * mi/mi-cmd-catch.c: Likewise.
1204 * python/python.c: Likewise.
1206 2014-08-07 Gary Benson <gbenson@redhat.com>
1208 * common/common-defs.h: Include ansidecl.h.
1209 * defs.h: Do not include ansidecl.h.
1210 * common/buffer.h: Likewise.
1211 * common/common-utils.h: Likewise.
1213 2014-08-07 Gary Benson <gbenson@redhat.com>
1215 * common/common-defs.h: Include stddef.h.
1216 * defs.h: Do not include stddef.h.
1217 * common/common-utils.h: Likewise.
1218 * amd64fbsd-nat.c: Likewise.
1219 * bcache.c: Likewise.
1220 * charset.c: Likewise.
1221 * common/buffer.h: Likewise.
1222 * common/vec.h: Likewise.
1223 * i386bsd-nat.c: Likewise.
1224 * nat/linux-btrace.h: Likewise.
1225 * ppcfbsd-nat.c: Likewise.
1226 * ppcnbsd-tdep.h: Likewise.
1227 * ppcobsd-nat.c: Likewise.
1228 * ppcobsd-tdep.h: Likewise.
1229 * python/py-gdb-readline.c: Likewise.
1231 2014-08-07 Gary Benson <gbenson@redhat.com>
1233 * common/common-defs.h: Include stdarg.h.
1234 * defs.h: Do not include stdarg.h.
1235 * ada-lang.c: Likewise.
1236 * common/common-utils.h: Likewise.
1237 * guile/scm-string.c: Likewise.
1238 * guile/scm-utils.c: Likewise.
1239 * m32c-tdep.c: Likewise.
1241 2014-08-07 Gary Benson <gbenson@redhat.com>
1243 * common/common-defs.h: Include stdlib.h.
1244 * defs.h: Do not include stdlib.h.
1245 * addrmap.c: Likewise.
1246 * bcache.c: Likewise.
1247 * common/buffer.c: Likewise.
1248 * common/common-utils.c: Likewise.
1249 * cp-name-parser.y: Likewise.
1250 * go32-nat.c: Likewise.
1251 * mn10300-linux-tdep.c: Likewise.
1252 * nat/linux-osdata.c: Likewise.
1253 * tui/tui.c: Likewise.
1254 * windows-nat.c: Likewise.
1256 2014-08-07 Gary Benson <gbenson@redhat.com>
1258 * common/common-defs.h: Include stdio.h.
1259 * defs.h: Do not include stdio.h.
1260 * ada-lang.c: Likewise.
1261 * common/buffer.c: Likewise.
1262 * common/common-utils.c: Likewise.
1263 * cp-name-parser.y: Likewise.
1264 * gnu-nat.c: Likewise.
1265 * go32-nat.c: Likewise.
1266 * i386gnu-nat.c: Likewise.
1267 * proc-api.c: Likewise.
1268 * proc-events.c: Likewise.
1269 * proc-flags.c: Likewise.
1270 * proc-why.c: Likewise.
1271 * python/python-internal.h: Likewise.
1272 * target-memory.c: Likewise.
1273 * tui/tui-io.c: Likewise.
1274 * tui/tui.c: Likewise.
1276 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1278 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1279 (scan_dyntag_auxv): Same.
1281 2014-08-06 Yao Qi <yao@codesourcery.com>
1283 * amd64-linux-nat.c: Remove duplicated include
1285 * i386-linux-nat.c: Likewise.
1287 2014-08-06 Yao Qi <yao@codesourcery.com>
1289 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1290 operand" with "Special opcode" in comments.
1292 2014-08-05 Gary Benson <gbenson@redhat.com>
1294 * interps.c (initialize_interps): Remove prototype.
1295 (interpreter_initialized): Remove static global.
1296 (interp_add): Do not call initialize_interps.
1297 (initialize_interps): Remove function.
1299 2014-08-05 Gary Benson <gbenson@redhat.com>
1301 * utils.c (vwarning): Remove spurious va_end.
1303 2014-08-05 Alan Modra <amodra@gmail.com>
1305 * charset.c (convert_between_encodings): Cast result of obstack_base.
1306 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1307 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1308 (read_unwind_info): Use size_t for some locals.
1309 * jit.c (finalize_symtab): Likewise.
1310 * utils.c (hashtab_obstack_allocate): Likewise.
1311 * symmisc.c (print_objfile_statistics): Update format strings.
1313 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1315 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1316 (Changes in GDB 7.8): ... here.
1318 2014-08-04 Tom Tromey <tromey@redhat.com>
1320 * target.c (set_targetdebug): New function.
1321 (initialize_targets): Pass set_targetdebug when creating "set
1324 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1326 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1327 if detecting a variable-sized field that is not the last field.
1328 Fix struct type length computation.
1330 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1332 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1335 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1337 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1338 Remove "+ 8" offset in computation of CHAIN_VMA.
1340 2014-07-31 Doug Evans <dje@google.com>
1342 * inflow.c (child_terminal_inferior): Add comment.
1343 (child_terminal_ours_for_output): Add comment.
1344 (child_terminal_ours): Add comment.
1345 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1346 (linux_nat_terminal_ours): Add comment.
1348 2014-07-31 Gary Benson <gbenson@redhat.com>
1350 * common/btrace-common.h: Do not include defs.h or server.h.
1351 * nat/mips-linux-watch.h: Likewise.
1352 * gdb-dlfcn.h: Do not include defs.h.
1353 * tracefile.h: Likewise.
1355 2014-07-30 Roland McGrath <mcgrathr@google.com>
1357 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1359 2014-07-30 Tom Tromey <tromey@redhat.com>
1361 * bsd-kvm.c (bsd_kvm_open): Constify.
1362 * corelow.c (core_open): Constify.
1363 * ctf.c (ctf_open): Constify.
1364 * dbug-rom.c (dbug_open): Constify.
1365 * exec.c (exec_open): Constify.
1366 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1367 * microblaze-rom.c (picobug_open): Constify.
1368 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1370 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1371 * record-btrace.c (record_btrace_open): Constify.
1372 * record-full.c (record_full_core_open_1, record_full_open_1)
1373 (record_full_open): Constify.
1374 * remote-m32r-sdi.c (m32r_open): Constify.
1375 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1376 (rockhopper_open, lsi_open): Constify.
1377 * remote-sim.c (gdbsim_open): Constify.
1378 * remote.c (remote_open, extended_remote_open, remote_open_1):
1380 * target.h (struct target_ops) <to_open>: Make "arg" const.
1381 * tracefile-tfile.c (tfile_open): Constify.
1383 2014-07-30 Tom Tromey <tromey@redhat.com>
1385 * breakpoint.c (map_breakpoint_numbers): Update.
1386 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1387 (get_number_const): New function.
1388 (get_number): Rewrite using get_number_const.
1389 (init_number_or_range): Make "string" const.
1390 (number_is_in_list): Make "list" const.
1391 * cli/cli-utils.h (get_number_const): Declare.
1392 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1393 (init_number_or_range, number_is_in_list): Update.
1394 * printcmd.c (map_display_numbers): Update.
1395 * value.c (value_from_history_ref): Constify.
1396 * value.h (value_from_history_ref): Update.
1398 2014-07-30 Tom Tromey <tromey@redhat.com>
1400 * corefile.c (hook_type, call_extra_exec_file_hooks)
1401 (specify_exec_file_hook): Constify.
1402 * exec.c (exec_file_attach): Make "filename" const.
1403 * gdbcore.h (deprecated_exec_file_display_hook)
1404 (specify_exec_file_hook, exec_file_attach): Constify.
1405 * main.c (captured_main): Use catch_command_errors_const.
1407 2014-07-30 Tom Tromey <tromey@redhat.com>
1409 * target.c (open_target): New function.
1410 (add_target_with_completer, add_deprecated_target_alias): Use
1411 set_cmd_sfunc, set_cmd_context.
1412 (debug_to_open): Remove.
1413 (setup_target_debug): Update.
1415 2014-07-30 Yao Qi <yao@codesourcery.com>
1417 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1419 * parse.c (exp_iterate): Update comments.
1421 2014-07-30 Gary Benson <gbenson@redhat.com>
1423 * common/common-defs.h: New file.
1424 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1425 * defs.h: Include common-defs.h.
1426 Do not include config.h or build-gnulib/config.h.
1428 2014-07-30 Gary Benson <gbenson@redhat.com>
1430 * common/common-utils.h: Do not include config.h.
1431 * nat/linux-btrace.h: Likewise.
1433 2014-07-30 Gary Benson <gbenson@redhat.com>
1435 * btrace.c: Include defs.h.
1436 * common/ptid.c: Include defs.h or server.h as appropriate.
1437 * nat/mips-linux-watch.c: Likewise.
1439 2014-07-29 Tom Tromey <tromey@redhat.com>
1441 * target.c (target_is_pushed): Simplify.
1443 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1447 2014-07-29 Yao Qi <yao@codesourcery.com>
1450 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1452 2014-07-28 Doug Evans <xdje42@gmail.com>
1455 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1456 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1459 2014-07-28 Will Newton <will.newton@linaro.org>
1461 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1462 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1463 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1464 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1465 (THUMB2_EABI_SYSCALL): Likewise.
1466 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1468 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1469 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1471 2014-07-27 Doug Evans <xdje42@gmail.com>
1473 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1475 2014-07-27 Doug Evans <xdje42@gmail.com>
1477 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1479 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1480 Doug Evans <xdje42@gmail.com>
1483 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1484 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1485 * configure.ac: Try to use guild to compile an scm file, if it fails
1486 then disable guile support.
1487 * configure: Regenerate.
1488 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1490 (GUILE_COMPILED_FILES): New variable.
1491 (GUILE_FILES) Update.
1492 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1493 (stamp-guile): Compile scm files.
1494 * guile/guile.c (boot_guile_support): New function.
1495 (standard_throw_args_p): New function.
1496 (print_standard_throw_error, print_throw_error): New functions.
1497 (handle_boot_error): New function.
1498 (initialize_scheme_side): Rewrite to call boot_guile_support.
1499 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1500 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1502 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1503 Doug Evans <xdje42@gmail.com>
1506 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1507 * guile/lib/gdb/support.scm: New file.
1508 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1509 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1511 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1513 (%assert-type): Ditto, and renamed to assert-type.
1514 (%exception-print-style): Delete.
1516 2014-07-26 Doug Evans <xdje42@gmail.com>
1519 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1520 * configure: Regenerate.
1521 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1523 (PYTHON_FILES): New variable.
1524 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1525 (GUILE_FILES): New variable.
1526 (stamp-python, install-python, uninstall-python): Handle empty
1528 (stamp-guile, install-guile, uninstall-guile): Ditto.
1530 2014-07-26 Doug Evans <xdje42@gmail.com>
1533 * guile/lib/gdb.scm (pretty-printers): Export.
1534 (set-pretty-printers!): Export.
1535 * guile/lib/gdb/printing.scm (gdb module): Update.
1536 (prepend-pretty-printer!, append-pretty-printer!): Update.
1537 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1538 (pretty_printer_list_var): Delete.
1539 (pretty_printer_list): New static global.
1540 (gdbscm_pretty_printers): New function.
1541 (gdbscm_set_pretty_printers_x): New function.
1542 (ppscm_find_pretty_printer_from_gdb): Update.
1543 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1544 (gdbscm_initialize_pretty_printers): Update.
1546 2014-07-26 Doug Evans <xdje42@gmail.com>
1549 * configure.ac: Add check for header gc/gc.h.
1550 Add check for function setenv.
1551 * configure: Regenerate.
1552 * config.in: Regenerate.
1553 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1555 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1557 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1558 variation in gdbarch matching.
1560 2014-07-25 Tom Tromey <tromey@redhat.com>
1562 * exec.c (using_exec_ops): Remove.
1563 (exec_close_1): Update. Remove extraneous block, reindent.
1564 (add_target_sections): Use target_is_pushed.
1566 2014-07-25 Pedro Alves <palves@redhat.com>
1568 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1569 * monitor.c (monitor_create_inferior): Likewise.
1570 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1571 * remote-sim.c (gdbsim_create_inferior): Likewise.
1572 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1573 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1574 * windows-nat.c (do_initial_windows_stuff): Likewise.
1576 2014-07-25 Pedro Alves <palves@redhat.com>
1578 * NEWS: Mention signal passing and "signal" command changes.
1579 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1581 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1583 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1584 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1585 (jump_command): Adjust clear_proceed_status call.
1586 (signal_command): Warn if other thread that are resumed have
1587 signals that will be delivered. Adjust clear_proceed_status call.
1588 (until_next_command, finish_command)
1589 (proceed_after_attach_callback, attach_command_post_wait)
1590 (attach_command): Adjust clear_proceed_status call.
1591 * infrun.c (proceed_after_vfork_done): Likewise.
1592 (proceed_after_attach_callback): Adjust comment.
1593 (clear_proceed_status_thread): Clear stop_signal if not in pass
1595 (clear_proceed_status_callback): Delete.
1596 (clear_proceed_status): New 'step' parameter. Only clear the
1597 proceed status of threads the command being prepared is about to
1599 (proceed): If passed in an explicit signal, override stop_signal
1600 with it. Don't pass the last stop signal to the thread we're
1602 (init_wait_for_inferior): Adjust clear_proceed_status call.
1603 (switch_back_to_stepped_thread): Clear the signal if it should not
1605 * infrun.h (clear_proceed_status): New 'step' parameter.
1606 (user_visible_resume_ptid): Add comment.
1607 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1608 signal is in pass state.
1609 * remote.c (append_pending_thread_resumptions): Likewise.
1610 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1612 2014-07-25 Tom Tromey <tromey@redhat.com>
1614 * target.h (target_stopped_data_address)
1615 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1618 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1620 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1622 (avr_pointer_to_address): Likewise.
1624 2014-07-24 Tom Tromey <tromey@redhat.com>
1626 * monitor.c (compile_pattern): Update.
1627 * target.h (struct target_ops) <to_shortname, to_longname,
1630 2014-07-24 Tom Tromey <tromey@redhat.com>
1632 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1633 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1634 (add_info_alias, add_com): Make "doc" const.
1635 (print_doc_line): Make "str" const.
1636 (delete_cmd): Update.
1637 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1638 (print_doc_line): Update.
1639 * cli/cli-script.c (document_command): Update.
1640 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1641 (add_com, add_info, add_info_alias): Update.
1642 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1643 * python/py-cmd.c (cmdpy_destroyer): Update.
1645 2014-07-24 Tom Tromey <tromey@redhat.com>
1647 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1648 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1649 (help_cmd_list): Constify.
1650 (lookup_cmd): Update.
1651 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1653 (help_cmd_list, apropos_cmd): Update.
1654 * cli/cli-script.c (show_user): Update.
1655 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1656 * cli/cli-setshow.h (cmd_show_list): Update.
1657 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1658 (cmd_show_list): Update.
1659 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1660 * python/py-cmd.c (cmdpy_destroyer): Update.
1662 2014-07-24 Tom Tromey <tromey@redhat.com>
1664 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1665 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1667 * command.h (deprecate_cmd): Update.
1668 * maint.c (maintenance_do_deprecate): Add casts.
1670 2014-07-24 Tom Tromey <tromey@redhat.com>
1672 * cli/cli-decode.c (help_cmd): Make parameter "const".
1673 * cli/cli-decode.h (help_cmd): Update.
1675 2014-07-24 Tom Tromey <tromey@redhat.com>
1677 * stack.c (up_silently_base, down_silently_base): Make argument
1680 2014-07-24 Tom Tromey <tromey@redhat.com>
1682 * solib.c (solib_add): Make "pattern" const.
1683 * solib.h (solib_add): Update.
1685 2014-07-24 Tom Tromey <tromey@redhat.com>
1687 * remote.c (remote_serial_open, print_packet, putpkt)
1688 (putpkt_binary): Constify.
1689 * remote.h (putpkt): Update.
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1693 * monitor.c (monitor_open): Make "args" const.
1694 * monitor.h (monitor_open): Update.
1696 2014-07-24 Tom Tromey <tromey@redhat.com>
1698 * maint.c (match_bfd_flags): Make "string" const.
1699 (print_bfd_section_info): Remove casts.
1700 (print_objfile_section_info): Make "string" const.
1702 2014-07-24 Tom Tromey <tromey@redhat.com>
1704 * inf-child.c (inf_child_open_target): Make "arg" const.
1705 * inf-child.h (inf_child_open_target): Update.
1707 2014-07-24 Tom Tromey <tromey@redhat.com>
1709 * environ.c (unset_in_environ): Make "var" const.
1710 * environ.h (unset_in_environ): Update.
1712 2014-07-24 Tom Tromey <tromey@redhat.com>
1714 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1716 (scan_filename_with_cleanup): Likewise.
1717 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1718 Make arguments const.
1719 (restore_command): Update.
1721 2014-07-24 Pedro Alves <palves@redhat.com>
1723 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1725 2014-07-24 Tom Tromey <tromey@redhat.com>
1726 Gary Benson <gbenson@redhat.com>
1728 * nat/linux-ptrace.c (additional_flags): New global.
1729 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1730 additional_flags; don't check GDBSERVER.
1731 (linux_ptrace_set_additional_flags): New function.
1732 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1734 * linux-nat.c (_initialize_linux_nat): Call
1735 linux_ptrace_set_additional_flags.
1737 2014-07-24 Tom Tromey <tromey@redhat.com>
1739 * make-target-delegates (munge_type, write_debugmethod): New
1741 (debug_names): New global.
1742 ($TARGET_DEBUG_PRINTER): New global.
1743 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1745 Write debug methods. Generate init_debug_target.
1746 * target-debug.h: New file.
1747 * target-delegates.c: Rebuild.
1748 * target.c: Include target-debug.h.
1749 (debug_target): Hoist definition.
1750 (target_kill, target_get_section_table, target_memory_map)
1751 (target_flash_erase, target_flash_done, target_detach)
1752 (target_disconnect, target_wait, target_resume)
1753 (target_pass_signals, target_program_signals, target_follow_fork)
1754 (target_mourn_inferior, target_search_memory)
1755 (target_thread_address_space, target_close)
1756 (target_find_new_threads, target_core_of_thread)
1757 (target_verify_memory, target_insert_mask_watchpoint)
1758 (target_remove_mask_watchpoint): Remove targetdebug code.
1759 (debug_to_post_attach, debug_to_prepare_to_store)
1760 (debug_to_files_info, debug_to_insert_breakpoint)
1761 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1762 (debug_to_region_ok_for_hw_watchpoint)
1763 (debug_to_can_accel_watchpoint_condition)
1764 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1765 (debug_to_watchpoint_addr_within_range)
1766 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1767 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1768 (debug_to_terminal_init, debug_to_terminal_inferior)
1769 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1770 (debug_to_terminal_save_ours, debug_to_terminal_info)
1771 (debug_to_load, debug_to_post_startup_inferior)
1772 (debug_to_insert_fork_catchpoint)
1773 (debug_to_remove_fork_catchpoint)
1774 (debug_to_insert_vfork_catchpoint)
1775 (debug_to_remove_vfork_catchpoint)
1776 (debug_to_insert_exec_catchpoint)
1777 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1778 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1779 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1780 (setup_target_debug): Call init_debug_target.
1781 * target.h (TARGET_DEBUG_PRINTER): New macro.
1782 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1783 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1785 2014-07-24 Gary Benson <gbenson@redhat.com>
1787 * exceptions.h (throw_vfatal): Renamed to...
1788 (throw_vquit): New declaration.
1789 (throw_quit): Likewise.
1790 * exceptions.c (throw_vfatal): Renamed to...
1791 (throw_vquit): New function.
1792 (throw_quit): Likewise.
1793 (throw_error): Call throw_verror rather than throw_it.
1794 * utils.h (vfatal): Removed.
1796 * utils.c (vfatal): Removed.
1798 (internal_verror): Replaced call to fatal with call to throw_quit.
1799 (quit): Replaced calls to fatal with calls to throw_quit.
1801 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1803 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1806 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1808 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1809 less than zero in conditional expression.
1811 2014-07-23 Tom Tromey <tromey@redhat.com>
1813 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1814 ($INTRO_PART): Don't match whitespace.
1815 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1817 ($METHOD): Add $METHOD_TRAILER.
1819 (scan_target_h): New sub.
1820 Change main loop not to collect state.
1821 * target-delegates.c: Rebuild.
1823 2014-07-23 Gary Benson <gbenson@redhat.com>
1825 * cp-support.c (gdb_demangle): Fix build on systems without
1828 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1831 for reference entry value target data value.
1833 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1836 value_available_contents_eq.
1838 2014-07-22 Pedro Alves <palves@redhat.com>
1840 * value.c (allocate_optimized_out_value): Don't mark value as
1843 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1845 * MAINTAINERS (Write After Approval): Update my email address.
1847 2014-07-20 Doug Evans <dje@google.com>
1850 * remote.c (putpkt_binary): Add text to error message.
1852 2014-07-20 Yao Qi <yao@codesourcery.com>
1854 * eval.c: Remove "Chill" from comments.
1855 * gdbtypes.h: Likewise.
1856 * symtab.h: Likewise.
1858 2014-07-20 Yao Qi <yao@codesourcery.com>
1860 * std-operator.def: Update comments to TERNOP_SLICE.
1862 2014-07-20 Yao Qi <yao@codesourcery.com>
1864 * std-operator.def: Remove BINOP_RANGE.
1865 * breakpoint.c (watchpoint_exp_is_const): Update.
1866 * expprint.c (dump_subexp_body_standard): Likewise.
1867 * eval.c (init_array_element): Remove dead code.
1868 (evaluate_subexp_standard): Likewise.
1870 2014-07-20 Yao Qi <yao@codesourcery.com>
1872 * std-operator.def: Remove BINOP_IN.
1873 * breakpoint.c (watchpoint_exp_is_const): Update.
1874 * eval.c (evaluate_subexp_standard): Likewise.
1875 * expprint.c (dump_subexp_body_standard): Likewise.
1877 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1879 * microblaze-tdep.c (microblaze_register_names): Add
1880 the rshr and rslr register names.
1881 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1882 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1883 Use of tdesc_numbered_register. Use of
1884 microblaze_register_g_packet_guesses. Use of
1885 tdesc_use_registers. Use of set_gdbarch_register_type.
1886 (microblaze_register_g_packet_guesses): New.
1887 * microblaze-tdep.h (microblaze_reg_num): Add
1888 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1889 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1890 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1891 * features/microblaze-core.xml: New file.
1892 * features/microblaze-stack-protect.xml: New file.
1893 * features/microblaze-with-stack-protect.c: New file.
1894 * features/microblaze-with-stack-protect.xml: New file.
1895 * features/microblaze.xml: New file.
1896 * features/microblaze.c: New file.
1897 * features/Makefile (microblaze-with-stack-protect): Add
1898 microblaze-with-stack-protect microblaze and microblaze-expedite.
1899 * regformats/microblaze-with-stack-protect.dat: New file.
1900 * regformats/microblaze.dat: New file.
1901 * doc/gdb.texinfo (MicroBlaze Features): Added.
1903 2014-07-18 Tom Tromey <tromey@redhat.com>
1905 * exec.c (exec_ops): Now static.
1906 * exec.h (exec_ops): Don't declare.
1908 2014-07-18 Tom Tromey <tromey@redhat.com>
1910 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1911 to find_target_beneath.
1912 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1913 find_target_beneath.
1914 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1916 2014-07-18 Tom Tromey <tromey@redhat.com>
1919 * utils.c (quit): Use target_supports_terminal_ours.
1920 * target.h (target_supports_terminal_ours): Declare.
1921 * target.c (target_supports_delete_record): Don't check
1922 to_delete_record against NULL.
1923 (target_supports_terminal_ours): New function.
1925 2014-07-18 Tom Tromey <tromey@redhat.com>
1928 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1929 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1930 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1931 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1932 * windows-nat.c (windows_xfer_partial): Always delegate.
1933 * record-btrace.c (record_btrace_xfer_partial): Simplify
1935 (record_btrace_fetch_registers, record_btrace_store_registers)
1936 (record_btrace_prepare_to_store, record_btrace_resume)
1937 (record_btrace_wait, record_btrace_find_new_threads)
1938 (record_btrace_thread_alive): Likewise.
1939 * procfs.c (procfs_xfer_partial): Always delegate.
1940 * corelow.c (core_xfer_partial): Always delegate.
1941 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1943 2014-07-18 Tom Tromey <tromey@redhat.com>
1945 * exec.c (exec_make_note_section): Move earlier.
1947 2014-07-17 Doug Evans <dje@google.com>
1950 * maint.c (count_symtabs_and_blocks): Handle NULL
1951 current_program_space.
1952 (report_command_stats): Check global enabled flag in addition to
1953 recorded enabled flag.
1954 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1956 2014-07-16 Pedro Alves <palves@redhat.com>
1958 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1960 2014-07-16 Tom Tromey <tromey@redhat.com>
1962 * target.h (struct target_ops) <to_delete_record>: Reformat
1965 2014-07-16 Tom Tromey <tromey@redhat.com>
1967 * target-delegates.c: Rebuild.
1969 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1971 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1972 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1973 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1974 (avr_pointer_to_address): Likewise.
1975 (avr_address_class_type_flags): New function.
1976 (avr_address_class_type_flags_to_name): Likewise.
1977 (avr_address_class_name_to_type_flags): Likewise.
1978 (avr_gdbarch_init): Set address_class_type_flags,
1979 address_class_type_flags_to_name and
1980 address_class_name_to_type_flags.
1982 2014-07-15 Pedro Alves <palves@redhat.com>
1984 * linux-nat.c (kill_callback): Save errno and work with saved
1987 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1989 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1991 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1993 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1994 breakpoint support correctly.
1996 2014-07-14 Pedro Alves <palves@redhat.com>
1998 * utils.c (prompt_for_continue): Call target_terminal_ours.
2000 2014-07-14 Pedro Alves <palves@redhat.com>
2002 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2003 catch_errors. Don't re-enable stdin or notify observers where,
2005 (fetch_inferior_event_wrapper): Delete.
2007 2014-07-14 Pedro Alves <palves@redhat.com>
2010 * top.c: Include "inf-loop.h".
2011 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2013 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2015 (gdb_readline_wrapper): Store whether the target is async, and
2018 2014-07-14 Pedro Alves <palves@redhat.com>
2021 * top.c (gdb_readline_wrapper_line): Tweak comment.
2022 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2023 the input handler callback.
2025 2014-07-14 Pedro Alves <palves@redhat.com>
2028 * main.c: Include event-top.h.
2029 (handle_command_errors): New function.
2030 (catch_command_errors, catch_command_errors_const): Use it.
2032 2014-07-14 Pedro Alves <palves@redhat.com>
2034 * exceptions.c (catch_command_errors, catch_command_errors_const):
2036 * exceptions.h (catch_command_errors_ftype)
2037 (catch_command_errors_const_ftype): Moved to main.c.
2038 (catch_command_errors, catch_command_errors_const): Delete
2040 * main.c (catch_command_errors_ftype)
2041 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2042 (catch_command_errors, catch_command_errors_const)): Moved here
2043 from exceptions.c and make static.
2045 2014-07-14 Pedro Alves <palves@redhat.com>
2047 * exceptions.c (print_any_exception): Delete.
2048 (catch_exceptions_with_msg): Use exception_print instead of
2049 print_any_exception.
2050 (catch_errors): Use exception_fprintf instead of
2051 print_any_exception.
2052 (catch_command_errors, catch_command_errors_const): Use
2053 exception_print instead of print_any_exception.
2055 2014-07-14 Pedro Alves <palves@redhat.com>
2057 * infcall.c (run_inferior_call): Set 'sync_execution' while
2058 running the inferior call.
2060 2014-07-14 Pedro Alves <palves@redhat.com>
2062 * value.c (value_contents_equal): Delete function.
2063 * value.h (value_contents_equal): Delete declaration.
2065 2014-07-14 Tom Tromey <tromey@redhat.com>
2068 * gdbtypes.c (is_dynamic_type_internal): New function, from
2070 (is_dynamic_type): Rewrite.
2071 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2072 (resolve_dynamic_struct): Likewise.
2073 (resolve_dynamic_type_internal): New function, from
2074 resolve_dynamic_type.
2075 (resolve_dynamic_type): Rewrite.
2077 2014-07-14 Tom Tromey <tromey@redhat.com>
2079 * target.c (target_require_runnable): Also check record_stratum.
2082 2014-07-11 Yao Qi <yao@codesourcery.com>
2084 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2085 thumb_instruction_restores_sp return true.
2087 2014-07-11 Yao Qi <yao@codesourcery.com>
2089 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2090 (thumb_in_function_epilogue_p): Call
2091 thumb_instruction_restores_sp.
2093 2014-07-11 Yao Qi <yao@codesourcery.com>
2095 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2097 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2099 2014-07-11 Gary Benson <gbenson@redhat.com>
2101 * amd64-linux-nat.c (gdbcore.h): Remove include.
2102 (regset.h): Likewise.
2103 (nat/linux-btrace.h): Likewise.
2104 (btrace.h): Likewise.
2105 (gdb_assert.h): Likewise.
2106 (string.h): Likewise.
2107 (sys/uio.h): Likewise.
2108 (sys/debugreg.h): Likewise.
2109 (sys/syscall.h): Likewise.
2110 (sys/procfs.h): Likewise.
2111 (sys/user.h): Likewise.
2112 (asm/ptrace.h): Likewise.
2113 (i386-nat.h): Likewise.
2114 * i386-linux-nat.c (i386-nat.h): Likewise.
2115 (regset.h): Likewise.
2116 (target.h): Likewise.
2117 (linux-nat.h): Likewise.
2118 (nat/linux-btrace.h): Likewise.
2119 (btrace.h): Likewise.
2120 (gdb_assert.h): Likewise.
2121 (string.h): Likewise.
2122 (sys/uio.h): Likewise.
2123 (sys/user.h): Likewise.
2124 (sys/procfs.h): Likewise.
2125 (sys/reg.h): Likewise.
2126 (sys/debugreg.h): Likewise.
2127 (ORIG_EAX): Remove definition.
2129 2014-07-11 Gary Benson <gbenson@redhat.com>
2131 * i386-linux-nat.h: New file.
2132 * x86-linux-nat.h: Likewise.
2133 * x86-linux-nat.c: Likewise.
2134 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2135 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2136 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2137 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2138 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2139 (PTRACE_SETREGSET): Likewise.
2140 (arch_lwp_info): Now in x86-linux-nat.c.
2141 (have_ptrace_getregset): Now in x86-linux-nat.h.
2142 (x86_linux_dr_get): Now in x86-linux-nat.c.
2143 (x86_linux_dr_set): Likewise.
2144 (x86_linux_dr_get_addr): Likewise.
2145 (x86_linux_dr_get_control): Likewise.
2146 (x86_linux_dr_get_status): Likewise.
2147 (update_debug_registers_callback): Likewise.
2148 (x86_linux_dr_set_control): Likewise.
2149 (x86_linux_dr_set_addr): Likewise.
2150 (x86_linux_prepare_to_resume): Likewise.
2151 (x86_linux_new_thread): Likewise.
2152 (x86_linux_new_fork): Likewise.
2153 (x86_linux_get_thread_area): Likewise.
2154 (super_post_startup_inferior): Likewise.
2155 (x86_linux_child_post_startup_inferior): Likewise.
2156 (AMD64_LINUX_USER64_CS): Likewise.
2157 (AMD64_LINUX_X32_DS): Likewise.
2158 (x86_linux_read_description): Likewise.
2159 (x86_linux_enable_btrace): Likewise.
2160 (x86_linux_disable_btrace): Likewise.
2161 (x86_linux_teardown_btrace): Likewise.
2162 (x86_linux_read_btrace): Likewise.
2163 (x86_linux_create_target): Likewise.
2164 (x86_linux_add_target): Likewise.
2165 * i386-linux-nat.c (x86-linux-nat.h): New include.
2166 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2167 (PTRACE_SETREGSET): Likewise.
2168 (arch_lwp_info): Now in x86-linux-nat.c.
2169 (have_ptrace_getregset): Now in x86-linux-nat.h.
2170 (x86_linux_dr_get): Now in x86-linux-nat.c.
2171 (x86_linux_dr_set): Likewise.
2172 (x86_linux_dr_get_addr): Likewise.
2173 (x86_linux_dr_get_control): Likewise.
2174 (x86_linux_dr_get_status): Likewise.
2175 (update_debug_registers_callback): Likewise.
2176 (x86_linux_dr_set_control): Likewise.
2177 (x86_linux_dr_set_addr): Likewise.
2178 (x86_linux_prepare_to_resume): Likewise.
2179 (x86_linux_new_thread): Likewise.
2180 (x86_linux_new_fork): Likewise.
2181 (x86_linux_get_thread_area): Likewise.
2182 (super_post_startup_inferior): Likewise.
2183 (x86_linux_child_post_startup_inferior): Likewise.
2184 (AMD64_LINUX_USER64_CS): Likewise.
2185 (AMD64_LINUX_X32_DS): Likewise.
2186 (x86_linux_read_description): Likewise.
2187 (x86_linux_enable_btrace): Likewise.
2188 (x86_linux_disable_btrace): Likewise.
2189 (x86_linux_teardown_btrace): Likewise.
2190 (x86_linux_read_btrace): Likewise.
2191 (x86_linux_create_target): Likewise.
2192 (x86_linux_add_target): Likewise.
2194 2014-07-11 Gary Benson <gbenson@redhat.com>
2196 * amd64-linux-nat.c: Comment and whitespace changes.
2197 * i386-linux-nat.c: Comment and whitespace changes.
2199 2014-07-11 Gary Benson <gbenson@redhat.com>
2201 * amd64-linux-nat.c (x86_linux_create_target): New function.
2202 (x86_linux_add_target): Likewise.
2203 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2204 * i386-linux-nat.c (x86_linux_create_target): New function.
2205 (x86_linux_add_target): Likewise.
2206 (_initialize_i386_linux_nat): Delegate to the above new functions.
2208 2014-07-11 Gary Benson <gbenson@redhat.com>
2210 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2211 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2212 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2213 (ps_get_thread_area): Delegate to the above.
2215 2014-07-11 Gary Benson <gbenson@redhat.com>
2217 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2218 x86_linux_read_description. All uses updated. amd64-specific
2219 code conditionalized. Conditionalized i386-specific code added.
2220 Redundant cast removed.
2221 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2222 x86_linux_read_description. All uses updated. i386-specific
2223 code conditionalized. Conditionalized amd64-specific code added.
2224 One sizeof replaced with the actual type it is describing.
2226 2014-07-11 Gary Benson <gbenson@redhat.com>
2228 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2229 x86_linux_dr_get. All uses updated.
2230 (amd64_linux_dr_set): Renamed to
2231 x86_linux_dr_set. All uses updated.
2232 (amd64_linux_dr_get_addr): Renamed to
2233 x86_linux_dr_get_addr. All uses updated.
2234 (amd64_linux_dr_get_control): Renamed to
2235 x86_linux_dr_get_control. All uses updated.
2236 (amd64_linux_dr_get_status): Renamed to
2237 x86_linux_dr_get_status. All uses updated.
2238 (amd64_linux_dr_set_control): Renamed to
2239 x86_linux_dr_set_control. All uses updated.
2240 (amd64_linux_dr_set_addr): Renamed to
2241 x86_linux_dr_set_addr. All uses updated.
2242 (amd64_linux_prepare_to_resume): Renamed to
2243 x86_linux_prepare_to_resume. All uses updated.
2244 (amd64_linux_new_thread): Renamed to
2245 x86_linux_new_thread. All uses updated.
2246 (amd64_linux_new_fork): Renamed to
2247 x86_linux_new_fork. All uses updated.
2248 (amd64_linux_child_post_startup_inferior): Renamed to
2249 x86_linux_child_post_startup_inferior. All uses updated.
2250 (amd64_linux_enable_btrace): Renamed to
2251 x86_linux_enable_btrace. All uses updated.
2252 (amd64_linux_disable_btrace): Renamed to
2253 x86_linux_disable_btrace. All uses updated.
2254 (amd64_linux_teardown_btrace): Renamed to
2255 x86_linux_teardown_btrace. All uses updated.
2256 (amd64_linux_read_btrace): Renamed to
2257 x86_linux_read_btrace. All uses updated.
2258 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2259 x86_linux_dr_get. All uses updated.
2260 (i386_linux_dr_set): Renamed to
2261 x86_linux_dr_set. All uses updated.
2262 (i386_linux_dr_get_addr): Renamed to
2263 x86_linux_dr_get_addr. All uses updated.
2264 (i386_linux_dr_get_control): Renamed to
2265 x86_linux_dr_get_control. All uses updated.
2266 (i386_linux_dr_get_status): Renamed to
2267 x86_linux_dr_get_status. All uses updated.
2268 (i386_linux_dr_set_control): Renamed to
2269 x86_linux_dr_set_control. All uses updated.
2270 (i386_linux_dr_set_addr): Renamed to
2271 x86_linux_dr_set_addr. All uses updated.
2272 (i386_linux_prepare_to_resume): Renamed to
2273 x86_linux_prepare_to_resume. All uses updated.
2274 (i386_linux_new_thread): Renamed to
2275 x86_linux_new_thread. All uses updated.
2276 (i386_linux_new_fork): Renamed to
2277 x86_linux_new_fork. All uses updated.
2278 (i386_linux_child_post_startup_inferior): Renamed to
2279 x86_linux_child_post_startup_inferior. All uses updated.
2280 (i386_linux_enable_btrace): Renamed to
2281 x86_linux_enable_btrace. All uses updated.
2282 (i386_linux_disable_btrace): Renamed to
2283 x86_linux_disable_btrace. All uses updated.
2284 (i386_linux_teardown_btrace): Renamed to
2285 x86_linux_teardown_btrace. All uses updated.
2286 (i386_linux_read_btrace): Renamed to
2287 x86_linux_read_btrace. All uses updated.
2289 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2291 * remote.c (extended_remote_post_attach): New function.
2292 (init_extended_remote_ops): Install it as to_post_attach method.
2294 2014-07-09 Pedro Alves <palves@redhat.com>
2296 * infcmd.c (attach_command_post_wait): Don't call
2297 target_terminal_inferior here.
2298 (attach_command): Call it here instead.
2300 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2302 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2304 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2305 from varobj.c, with additional checks.
2306 (c_varobj_ops): Fill in is_path_expr_parent field.
2307 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2308 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2310 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2312 (varobj_default_is_path_expr_parent): New function.
2313 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2314 (varobj_default_is_path_expr_parent): Declare new function.
2316 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2318 * infcmd.c (finish_backward): Turn internal error into normal error.
2320 2014-07-07 Pedro Alves <palves@redhat.com>
2323 * remote.c (async_handle_remote_sigint)
2324 (async_handle_remote_sigint_twice): Call
2325 gdb_call_async_signal_handler instead of
2326 mark_async_signal_handler.
2328 2014-07-07 Tom Tromey <tromey@redhat.com>
2330 * target-delegates.c: Rebuild.
2331 * target.c (target_info_record): Remove.
2332 * record.c (info_record_command): Unconditionally call
2334 * target.h (struct target_ops) <to_info_record>: Use
2335 TARGET_DEFAULT_IGNORE.
2336 (target_info_record): Remove.
2338 2014-07-07 Tom Tromey <tromey@redhat.com>
2340 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2341 TARGET_DEFAULT_NORETURN.
2342 * target.c (generic_tls_error): New function.
2343 (target_translate_tls_address): Don't search target stack.
2344 * target-delegates.c: Rebuild.
2345 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2347 * linux-thread-db.c (thread_db_get_thread_local_address):
2348 Unconditionally call beneath target.
2350 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2352 * cli/cli-logging.c (pop_output_files): Assign targerr to
2355 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2357 * MAINTAINERS (Write After Approval): Update my email address.
2359 2014-07-02 Gary Benson <gbenson@redhat.com>
2361 * proc-service.c (ps_xfer_memory): Update comment.
2362 (ps_pstop): Remove unused function.
2363 (ps_pcontinue): Likewise.
2364 (ps_lstop): Likewise.
2365 (ps_lcontinue): Likewise.
2366 (ps_lgetxregsize): Likewise.
2367 (ps_lgetxregs): Likewise.
2368 (ps_lsetxregs): Likewise.
2369 (ps_plog): Likewise.
2370 (ps_ptread): Likewise.
2371 (ps_ptwrite): Likewise.
2373 2014-07-01 Mark Wielaard <mjw@redhat.com>
2375 * dwarf2read.c (add_array_cv_type): New function.
2376 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2377 (read_tag_volatile_type): Likewise.
2379 2014-07-01 Tom Tromey <tromey@redhat.com>
2381 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2382 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2383 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2384 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2385 * command.h (cmd_cfunc_ftype): Move earlier.
2386 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2387 (add_com, add_info): Use cmd_cfunc_ftype.
2389 2014-06-30 Tom Tromey <tromey@redhat.com>
2391 * symtab.c (operator_chars): Make parameters and return type
2393 (file_matches): Make "files" const.
2394 (struct search_symbols_data) <files>: Now const.
2395 (search_symbols): Make "regexp" and "files" parameters const.
2397 (symtab_symbol_info): Remove cast.
2398 (rbreak_command): Update.
2399 * symtab.h (search_symbols): Update.
2401 2014-06-27 Yao Qi <yao@codesourcery.com>
2403 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2404 Change parameter type to 'struct thread_info *'. Caller
2406 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2408 * dummy-frame.c (struct dummy_frame_id): New.
2409 (dummy_frame_id_eq): New function.
2410 (struct dummy_frame) <id>: Change its type to 'struct
2412 (dummy_frame_push): Add parameter ptid and save it in
2414 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2416 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2418 (lookup_dummy_frame): Change parameter type to 'struct
2419 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2420 instead of frame_id_eq.
2421 (dummy_frame_pop): Add parameter ptid. Callers updated.
2422 Update comments. Compose dummy_frame_id and pass it to
2424 (dummy_frame_discard): Add parameter ptid.
2425 (dummy_frame_sniffer): Compose dummy_frame_id and call
2426 dummy_frame_id_eq instead of frame_id_eq.
2427 (fprint_dummy_frames): Print ptid.
2428 * dummy-frame.h: Remove comments.
2429 (dummy_frame_push): Add ptid in declaration.
2430 (dummy_frame_pop, dummy_frame_discard): Likewise.
2432 2014-06-26 Tom Tromey <tromey@redhat.com>
2434 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2435 * command.h (error_no_arg): Update.
2437 2014-06-26 Tom Tromey <tromey@redhat.com>
2439 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2440 (do_show_command): Make "arg" const.
2441 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2443 2014-06-26 Tom Tromey <tromey@redhat.com>
2445 * record-full.c (record_full_get_bookmark): Make "args" const.
2446 (record_full_goto_bookmark): Make "raw_bookmark" const.
2447 * record.c (record_goto): New function.
2448 (cmd_record_goto): Use it. Now static.
2449 * record.h (record_goto): Declare.
2450 (cmd_record_goto): Remove declaration.
2451 * target-delegates.c: Rebuild.
2452 * target.h (struct target_ops) <to_get_bookmark,
2453 to_goto_bookmark>: Make parameter const.
2455 2014-06-26 Tom Tromey <tromey@redhat.com>
2457 * defs.h (generic_load): Update.
2458 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2459 * monitor.c (monitor_load): Make "args" const.
2460 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2461 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2463 (mips_load): Make "file" const.
2464 * remote-sim.c (gdbsim_load): Make "args" const.
2465 * remote.c (remote_load): Make "name" const.
2466 * symfile.c (generic_load): Make "args" const.
2467 * target-delegates.c: Rebuild.
2468 * target.c (target_load): Make "arg" const.
2469 (debug_to_load): Make "args" const.
2470 * target.h (struct target_ops) <to_load>: Make parameter const.
2471 (target_load): Update.
2473 2014-06-26 Tom Tromey <tromey@redhat.com>
2476 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2477 (dwarf2_physname, read_partial_die)
2478 (guess_partial_die_structure_name, fixup_partial_die)
2479 (guess_full_die_structure_name, anonymous_struct_prefix)
2480 (dwarf2_name): Use per-BFD obstack.
2482 2014-06-26 Yao Qi <yao@codesourcery.com>
2484 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2485 dummyframe and this_id into inner block below.
2487 2014-06-26 Yao Qi <yao@codesourcery.com>
2489 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2490 with "signal_pass[0]" in the initialization of signal_pass.
2492 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2494 * record-btrace.c (record_btrace_generating_corefile)
2495 (record_btrace_prepare_to_generate_core)
2496 (record_btrace_done_generating_core): New.
2497 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2498 (record_btrace_store_registers, record_btrace_prepare_to_store):
2499 Forward request when generating a core file.
2500 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2501 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2502 to_done_generating_core.
2504 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2506 * target.h (target_ops) <to_prepare_to_generate_core>
2507 <to_done_generating_core>: New.
2508 (target_prepare_to_generate_core, target_done_generating_core): New.
2509 * target.c (target_prepare_to_generate_core)
2510 (target_done_generating_core): New.
2511 * target-delegates.c: Regenerate.
2512 * gcore.c: (write_gcore_file): Rename to ...
2513 (write_gcore_file_1): ...this.
2514 (write_gcore_file): Call target_prepare_to_generate_core
2515 and target_done_generating_core.
2517 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2519 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2520 * gcore.c (write_gcore_file): Free memory returned from
2521 make_corefile_notes.
2522 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2523 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2525 2014-06-24 Yao Qi <yao@codesourcery.com>
2527 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2528 (arm_linux_init_abi): Set skip_trampoline_code with
2529 gdbarch_skip_trampoline_code instead of
2530 find_solib_trampoline_target.
2532 2014-06-24 Yao Qi <yao@codesourcery.com>
2534 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2535 arm_skip_bx_reg returns non-zero.
2537 2014-06-24 Yao Qi <yao@codesourcery.com>
2539 * arm-tdep.c (arm_skip_bx_reg): New function.
2540 (arm_skip_stub): Call arm_skip_bx_reg.
2542 2014-06-23 Don Breazeal <donb@codesourcery.com>
2544 * MAINTAINERS: Add myself as write-after-approval maintainer.
2546 2014-06-23 Pedro Alves <palves@redhat.com>
2548 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2549 DR_CONTROL before setting DR0..DR3.
2550 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2551 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2552 bits of DR_CONTROL related to the debug register slot being
2553 disabled. If all slots are vacant, clear local slowdown as well,
2554 and assert DR_CONTROL is 0.
2556 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2558 * python/lib/gdb/command/xmethods.py
2559 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2560 current progspace only if the string "progspace" matches LOCUS_RE.
2562 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2564 Fix --with-system-readline with readline-6.3 patch 5.
2565 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2566 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2569 2014-06-20 Tom Tromey <tromey@redhat.com>
2571 * dwarf2read.c (dw2_get_real_path): Use correct type in
2573 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2575 2014-06-20 Gary Benson <gbenson@redhat.com>
2577 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2578 * common/glibc_thread_db.h: Likewise.
2579 * common/i386-cpuid.h: Likewise.
2580 * common/i386-gcc-cpuid.h: Likewise.
2581 * common/linux-btrace.h: Likewise.
2582 * common/linux-osdata.h: Likewise.
2583 * common/linux-procfs.h: Likewise.
2584 * common/linux-ptrace.h: Likewise.
2585 * common/mips-linux-watch.h: Likewise.
2586 * common/linux-btrace.c: Moved to nat.
2587 * common/linux-osdata.c: Likewise.
2588 * common/linux-procfs.c: Likewise.
2589 * common/linux-ptrace.c: Likewise.
2590 * common/mips-linux-watch.c: Likewise.
2591 * nat/gdb_thread_db.h: Moved from common.
2592 * nat/glibc_thread_db.h: Likewise.
2593 * nat/i386-cpuid.h: Likewise.
2594 * nat/i386-gcc-cpuid.h: Likewise.
2595 * nat/linux-btrace.c: Likewise.
2596 * nat/linux-btrace.h: Likewise.
2597 * nat/linux-osdata.c: Likewise.
2598 * nat/linux-osdata.h: Likewise.
2599 * nat/linux-procfs.c: Likewise.
2600 * nat/linux-procfs.h: Likewise.
2601 * nat/linux-ptrace.c: Likewise.
2602 * nat/linux-ptrace.h: Likewise.
2603 * nat/mips-linux-watch.c: Likewise.
2604 * nat/mips-linux-watch.h: Likewise.
2605 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2606 (object file files): Reordered.
2607 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2608 of glibc_thread_db.h.
2610 2014-06-20 Gary Benson <gbenson@redhat.com>
2612 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2613 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2614 (i386_dr_low): Likewise.
2615 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2616 (i386_dr_low_set_addr): Likewise.
2617 (i386_dr_low_get_addr): Likewise.
2618 (i386_dr_low_can_set_control): Likewise.
2619 (i386_dr_low_set_control): Likewise.
2620 (i386_dr_low_get_control): Likewise.
2621 (i386_dr_low_get_status): Likewise.
2622 (i386_get_debug_register_length): Likewise.
2623 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2624 (i386_dr_low): Likewise.
2625 * nat/i386-dregs.c (i386-low.h): Remove include.
2626 (i386-nat.h): Likewise.
2627 (nat/i386-dregs.h): New include.
2628 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2629 (i386_dr_low_set_addr): Likewise.
2630 (i386_dr_low_get_addr): Likewise.
2631 (i386_dr_low_can_set_control): Likewise.
2632 (i386_dr_low_set_control): Likewise.
2633 (i386_dr_low_get_control): Likewise.
2634 (i386_dr_low_get_status): Likewise.
2635 (i386_get_debug_register_length): Likewise.
2636 (debug_hw_points): Likewise.
2638 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2640 * Makefile.in (SFILES): Add d-exp.y.
2641 (YYFILES): Add d-exp.c.
2642 (YYOBJ): Add d-exp.o.
2643 (local-maintainer-clean): Delete d-exp.c.
2644 * d-exp.y: New file.
2645 * d-lang.h (d_parse): New declaration.
2646 (d_error): New declaration.
2647 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2648 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2649 PREC_ORDER operators.
2650 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2652 2014-06-19 Yao Qi <yao@codesourcery.com>
2654 * gdbthread.h (any_running): Remove the declaration.
2655 * thread.c (any_running): Remove.
2657 2014-06-19 Yao Qi <yao@codesourcery.com>
2659 * gdbthread.h (struct thread_info) <state>: Change its type to
2660 'enum thread_state'. Update comments.
2662 2014-06-19 Pedro Alves <palves@redhat.com>
2664 * gdbthread.h (ALL_THREADS): Delete.
2665 (ALL_NON_EXITED_THREADS): New macro.
2666 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2667 instead of ALL_THREADS.
2668 * infrun.c (find_thread_needs_step_over)
2669 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2670 instead of ALL_THREADS.
2671 * record-btrace.c (record_btrace_open)
2672 (record_btrace_stop_recording, record_btrace_close)
2673 (record_btrace_is_replaying, record_btrace_resume)
2674 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2675 * remote.c (append_pending_thread_resumptions): Likewise.
2676 * thread.c (thread_apply_all_command): Likewise.
2678 2014-06-19 Gary Benson <gbenson@redhat.com>
2680 * i386-nat.c (i386_stopped_by_watchpoint):
2681 Use i386_dr_stopped_by_watchpoint.
2682 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2683 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2685 2014-06-19 Gary Benson <gbenson@redhat.com>
2687 * nat/i386-dregs.c: New file.
2688 * Makefile.in (i386-dregs.o): New rule.
2689 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2690 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2691 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2692 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2693 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2694 * config/i386/go32.mh (NATDEPFILES): Likewise.
2695 * config/i386/linux.mh (NATDEPFILES): Likewise.
2696 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2697 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2698 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2699 * i386-nat.h (debug_hw_points): New declaration.
2700 * i386-nat.c (breakpoint.h): Remove include.
2701 (command.h): Likewise.
2702 (target.h): Likewise.
2703 (gdb_assert.h): Likewise.
2704 (debug_hw_points): Made nonstatic.
2705 (debug_printf): Now in i386-dregs.c.
2706 (TARGET_HAS_DR_LEN_8): Likewise.
2707 (DR_CONTROL_SHIFT): Likewise.
2708 (DR_CONTROL_SIZE): Likewise.
2709 (DR_RW_EXECUTE): Likewise.
2710 (DR_RW_WRITE): Likewise.
2711 (DR_RW_READ): Likewise.
2712 (DR_RW_IORW): Likewise.
2713 (DR_LEN_1): Likewise.
2714 (DR_LEN_2): Likewise.
2715 (DR_LEN_4): Likewise.
2716 (DR_LEN_8): Likewise.
2717 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2718 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2719 (DR_ENABLE_SIZE): Likewise.
2720 (DR_LOCAL_SLOWDOWN): Likewise.
2721 (DR_GLOBAL_SLOWDOWN): Likewise.
2722 (DR_CONTROL_RESERVED): Likewise.
2723 (I386_DR_CONTROL_MASK): Likewise.
2724 (I386_DR_VACANT): Likewise.
2725 (I386_DR_LOCAL_ENABLE): Likewise.
2726 (I386_DR_GLOBAL_ENABLE): Likewise.
2727 (I386_DR_DISABLE): Likewise.
2728 (I386_DR_SET_RW_LEN): Likewise.
2729 (I386_DR_GET_RW_LEN): Likewise.
2730 (I386_DR_WATCH_HIT): Likewise.
2731 (i386_wp_op_t): Likewise.
2732 (i386_show_dr): Likewise.
2733 (i386_length_and_rw_bits): Likewise.
2734 (i386_insert_aligned_watchpoint): Likewise.
2735 (i386_remove_aligned_watchpoint): Likewise.
2736 (i386_handle_nonaligned_watchpoint): Likewise.
2737 (i386_update_inferior_debug_regs): Likewise.
2738 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2739 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2740 (i386_region_ok_for_watchpoint):
2741 Use i386_dr_region_ok_for_watchpoint.
2742 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2744 2014-06-19 Gary Benson <gbenson@redhat.com>
2746 * i386-nat.c (i386_insert_hw_breakpoint): Use
2747 i386_insert_watchpoint.
2748 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2750 2014-06-19 Gary Benson <gbenson@redhat.com>
2752 * i386-nat.c (i386_dr_show): Renamed to
2753 i386_show_dr and made static. All uses updated.
2754 (i386_dr_length_and_rw_bits): Renamed to
2755 i386_length_and_rw_bits and made static.
2757 (i386_dr_insert_aligned_watchpoint): Renamed to
2758 i386_insert_aligned_watchpoint and made static.
2760 (i386_dr_remove_aligned_watchpoint): Renamed to
2761 i386_remove_aligned_watchpoint and made static.
2763 (i386_dr_update_inferior_debug_regs): Renamed to
2764 i386_update_inferior_debug_regs and made static.
2766 * nat/i386-dregs.h (i386_dr_show): Removed.
2767 (i386_dr_length_and_rw_bits): Likewise.
2768 (i386_dr_insert_aligned_watchpoint): Likewise.
2769 (i386_dr_remove_aligned_watchpoint): Likewise.
2770 (i386_dr_update_inferior_debug_regs): Likewise.
2772 2014-06-19 Gary Benson <gbenson@redhat.com>
2774 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2775 * configure: Regenerate.
2776 * config.in: Likewise.
2777 * main.c (signal.h): New include.
2778 (setup_alternate_signal_stack): New function.
2779 (captured_main): Call the above.
2780 * cp-support.c (signal.h): New include.
2781 (catch_demangler_crashes): New flag.
2782 (SIGJMP_BUF): New define.
2783 (SIGSETJMP): Likewise.
2784 (SIGLONGJMP): Likewise.
2785 (gdb_demangle_jmp_buf): New static global.
2786 (gdb_demangle_attempt_core_dump): Likewise.
2787 (gdb_demangle_signal_handler): New function.
2788 (gdb_demangle): If catch_demangler_crashes is set, install the
2789 above signal handler before calling bfd_demangle, and restore
2790 the original signal handler afterwards. Display the offending
2791 symbol and call demangler_warning the first time a segmentation
2793 (_initialize_cp_support): New maint set/show command.
2795 2014-06-19 Gary Benson <gbenson@redhat.com>
2797 * utils.h (resource_limit_kind): New enum.
2798 (can_dump_core): New declaration.
2799 (warn_cant_dump_core): Likewise.
2800 (dump_core): Likewise.
2801 * utils.c (dump_core): Made nonstatic. Added new
2802 parameter "limit_kind".
2803 (can_dump_core): Made nonstatic. Moved printing code to...
2804 (warn_cant_dump_core): New function.
2805 (can_dump_core_warn): Likewise.
2806 (internal_vproblem): Replace calls to can_dump_core with
2807 calls to can_dump_core_warn. Supply new argument to each.
2809 2014-06-19 Gary Benson <gbenson@redhat.com>
2811 * utils.h (demangler_vwarning): New declaration.
2812 (demangler_warning): Likewise.
2813 * utils.c (struct internal_problem)
2814 <user_settable_should_quit>: New field.
2815 <user_settable_should_dump_core>: Likewise
2816 (internal_error_problem): Add values for above new fields.
2817 (internal_warning_problem): Likewise.
2818 (demangler_warning_problem): New static global.
2819 (demangler_vwarning): New function.
2820 (demangler_warning): Likewise.
2821 (add_internal_problem_command): Selectively add commands.
2822 (_initialize_utils): New internal problem command.
2823 * maint.c (maintenance_demangler_warning): New function.
2824 (_initialize_maint_cmds): New command.
2826 2014-06-18 Tom Tromey <tromey@redhat.com>
2828 * f-valprint.c (info_common_command_for_block): Update.
2829 * symtab.h (struct general_symbol_info) <common_block>: Now
2832 2014-06-18 Tom Tromey <tromey@redhat.com>
2834 * symtab.h (struct symtab) <blockvector>: Now const.
2835 * ada-lang.c (ada_add_global_exceptions): Update.
2836 * buildsym.c (augment_type_symtab): Update.
2837 * dwarf2read.c (dw2_lookup_symbol): Update.
2838 * jit.c (finalize_symtab): Update.
2839 * jv-lang.c (add_class_symtab_symbol): Update.
2840 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2842 * objfiles.c (objfile_relocate1): Update.
2843 * psymtab.c (lookup_symbol_aux_psymtabs)
2844 (maintenance_check_psymtabs): Update.
2845 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2847 * spu-tdep.c (spu_catch_start): Update.
2848 * symmisc.c (dump_symtab_1): Update.
2849 * symtab.c (lookup_global_symbol_from_objfile)
2850 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2851 (basic_lookup_transparent_type_quick)
2852 (basic_lookup_transparent_type, find_pc_sect_symtab)
2853 (find_pc_sect_line, search_symbols): Update.
2854 * block.c (find_block_in_blockvector): Make "bl" const.
2855 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2857 (blockvector_contains_pc): Make "bv" const.
2858 (block_for_pc_sect): Update.
2859 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2860 (blockvector_contains_pc): Update.
2861 * breakpoint.c (resolve_sal_pc): Update.
2862 * inline-frame.c (block_starting_point_at): Update.
2864 2014-06-18 Tom Tromey <tromey@redhat.com>
2866 * completer.c (complete_line): Make "line_buffer" const.
2867 * completer.h (complete_line): Update.
2869 2014-06-18 Tom Tromey <tromey@redhat.com>
2871 * symtab.c (add_macro_name): Remove unneeded cast.
2873 2014-06-18 Tom Tromey <tromey@redhat.com>
2875 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2876 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2878 2014-06-18 Tom Tromey <tromey@redhat.com>
2880 * probe.c (info_probes_for_ops): Make "arg" const.
2881 * probe.h (info_probes_for_ops): Update.
2883 2014-06-18 Tom Tromey <tromey@redhat.com>
2885 * varobj.c (varobj_create): Update.
2886 * valops.c (value_of_this): Update.
2887 * tracepoint.c (add_local_symbols, scope_info): Update.
2888 * symtab.h (struct general_symbol_info) <block>: Now const.
2889 * symtab.c (skip_prologue_sal)
2890 (default_make_symbol_completion_list_break_on)
2891 (skip_prologue_using_sal): Update.
2892 * stack.h (iterate_over_block_locals)
2893 (iterate_over_block_local_vars): Update.
2894 * stack.c (print_frame_args): Update.
2895 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2897 (get_selected_block): Make return type const.
2898 * python/py-frame.c (frapy_block): Update.
2899 * python/py-block.c (gdbpy_block_for_pc): Update.
2900 * p-exp.y (%union) <bval>: Now const.
2901 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2902 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2903 * m2-exp.y (%union) <bval>: Now const.
2904 * linespec.c (get_current_search_block): Make return type const.
2905 (create_sals_line_offset, find_label_symbols): Update.
2906 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2908 (block_starting_point_at): Make "block" const.
2909 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2910 (check_exception_resume): Update.
2911 * guile/scm-frame.c (gdbscm_frame_block): Update.
2912 * guile/scm-block.c (gdbscm_lookup_block): Update.
2913 * frame.h (get_frame_block): Update.
2914 (get_selected_block): Make return type const.
2915 * frame.c (frame_id_inner): Update.
2916 * f-valprint.c (info_common_command_for_block)
2917 (info_common_command): Update.
2918 * dwarf2loc.c (dwarf2_find_location_expression)
2919 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2920 (locexpr_describe_location_piece): Update.
2921 * c-exp.y (%union) <bval>: Now const.
2922 * breakpoint.c (resolve_sal_pc): Update.
2923 * blockframe.c (get_frame_block):Make return type const.
2924 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2925 (block_innermost_frame): Update.
2926 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2927 (block_for_pc, block_for_pc_sect): Update.
2928 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2930 (block_for_pc_sect, block_for_pc): Make return type const.
2931 * ax-gdb.c (gen_expr): Update.
2932 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2933 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2934 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2935 (ada_read_var_value): Update.
2936 * ada-exp.y (struct name_info) <block>: Now const.
2938 (block_lookup): Constify.
2940 2014-06-18 Gary Benson <gbenson@redhat.com>
2942 * nat/i386-dregs.h: New file.
2943 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2944 * i386-nat.h (i386-dregs.h): New include.
2945 (DR_FIRSTADDR): Now in i386-dregs.h.
2946 (DR_LASTADDR): Likewise.
2947 (DR_NADDR): Likewise.
2948 (DR_STATUS): Likewise.
2949 (DR_CONTROL): Likewise.
2950 (i386_debug_reg_state): Likewise.
2951 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2953 2014-06-18 Don Breazeal <donb@codesourcery.com>
2955 * breakpoint.c (set_longjmp_breakpoint): Call
2956 momentary_breakpoint_from_master with additional argument.
2957 (set_longjmp_breakpoint_for_call_dummy): Call
2958 momentary_breakpoint_from_master with additional argument.
2959 (set_std_terminate_breakpoint): Call
2960 momentary_breakpoint_from_master with additional argument.
2961 (momentary_breakpoint_from_master): Add argument to function
2962 definition and use it to initialize structure member flag.
2963 (clone_momentary_breakpoint): Call
2964 momentary_breakpoint_from_master with additional argument.
2965 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2966 member flags set in momentary_breakpoint_from_master.
2968 2014-06-18 Gary Benson <gbenson@redhat.com>
2970 * i386-nat.c (i386_show_dr): Renamed to
2971 i386_dr_show and made nonstatic. All uses updated.
2972 (i386_length_and_rw_bits): Renamed to
2973 i386_dr_length_and_rw_bits and made nonstatic.
2975 (i386_insert_aligned_watchpoint): Renamed to
2976 i386_dr_insert_aligned_watchpoint and made nonstatic.
2978 (i386_remove_aligned_watchpoint): Renamed to
2979 i386_dr_remove_aligned_watchpoint and made nonstatic.
2981 (i386_update_inferior_debug_regs): Renamed to
2982 i386_dr_update_inferior_debug_regs and made nonstatic.
2985 2014-06-18 Gary Benson <gbenson@redhat.com>
2987 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2988 (i386_dr_low_can_set_control): Likewise.
2989 (i386_dr_low_set_addr): Likewise.
2990 (i386_dr_low_set_control): Likewise.
2991 (i386_dr_low_get_addr): Likewise.
2992 (i386_dr_low_get_status): Likewise.
2993 (i386_dr_low_get_control): Likewise.
2994 (i386_insert_aligned_watchpoint): Use new macros.
2995 (i386_update_inferior_debug_regs): Likewise.
2996 (i386_stopped_data_address): Likewise.
2998 2014-06-18 Gary Benson <gbenson@redhat.com>
3000 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3001 New parameter. All uses updated.
3003 2014-06-18 Gary Benson <gbenson@redhat.com>
3005 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3008 2014-06-18 Gary Benson <gbenson@redhat.com>
3010 * i386-nat.c (debug_printf): New macro.
3011 (i386_get_debug_register_length): Likewise.
3012 (TARGET_HAS_DR_LEN_8): Use above macro.
3013 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3014 and printf_unfiltered. Use phex to format values.
3016 2014-06-18 Gary Benson <gbenson@redhat.com>
3018 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3021 2014-06-18 Gary Benson <gbenson@redhat.com>
3023 * i386-nat.c: Comment changes.
3025 2014-06-18 Gary Benson <gbenson@redhat.com>
3027 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3029 2014-06-18 Gary Benson <gbenson@redhat.com>
3031 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3032 (i386_insert_aligned_watchpoint): Likewise.
3033 (i386_remove_aligned_watchpoint): Likewise.
3034 (i386_handle_nonaligned_watchpoint): Likewise.
3036 2014-06-18 Gary Benson <gbenson@redhat.com>
3038 * i386-nat.c: Whitespace changes.
3040 2014-06-17 Samuel Bronson <naesten@gmail.com>
3042 * MAINTAINERS: Update Roland McGrath's email address.
3043 Thanks to Sergio Durigan Junior for pointing out that he left
3044 Red Hat a while ago, and giving me a current address.
3046 2014-06-17 Tom Tromey <tromey@redhat.com>
3048 * utils.h (savestring): Remove declaration.
3050 2014-06-17 Tom Tromey <tromey@redhat.com>
3052 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3054 2014-06-16 Keith Seitz <keiths@redhat.com>
3057 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3058 to update the varobj if inferior_ptid is null_ptid.
3060 2014-06-16 Tom Tromey <tromey@redhat.com>
3062 * target.h (struct target_ops) <to_info_proc>: Make parameter
3064 (target_info_proc): Update.
3065 * target.c (target_info_proc): Make "args" const.
3066 * procfs.c (procfs_info_proc): Update.
3067 * linux-tdep.c (linux_info_proc): Update.
3068 (linux_core_info_proc_mappings): Make "args" const.
3069 (linux_core_info_proc): Update.
3070 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3071 * gdbarch.c: Rebuild.
3072 * gdbarch.h: Rebuild.
3073 * corelow.c (core_info_proc): Update.
3075 2014-06-16 Tom Tromey <tromey@redhat.com>
3077 * target.h (struct target_ops) <to_disconnect>: Make parameter
3079 (target_disconnect): Update.
3080 * target.c (target_disconnect): Make "args" const.
3081 * target-delegates.c: Rebuild.
3082 * remote.c (remote_disconnect): Update.
3083 * record.h (record_disconnect): Update.
3084 * record.c (record_disconnect): Update.
3085 * inf-child.c (inf_child_disconnect): Update.
3087 2014-06-16 Tom Tromey <tromey@redhat.com>
3089 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3090 * target.c (debug_to_rcmd, default_rcmd): Update.
3091 * target-delegates.c: Rebuild.
3092 * remote.c (remote_rcmd): Update.
3093 * monitor.c (monitor_rcmd): Update.
3095 2014-06-16 Pedro Alves <palves@redhat.com>
3097 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3098 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3099 have OBJF_SHARED set.
3100 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3101 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3102 instead of OBJF_USERLOADED.
3103 * objfiles.h (OBJF_SHARED): Update comment.
3104 (userloaded_objfile_contains_address_p): Rename to ...
3105 (shared_objfile_contains_address_p): ... this, and update
3107 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3109 (remove_symbol_file_command): Skip objfiles that don't have
3112 2014-06-16 Tom Tromey <tromey@redhat.com>
3114 * minsyms.h (prim_record_minimal_symbol)
3115 (prim_record_minimal_symbol_and_info): Update comments.
3117 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3119 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3120 or --without-guile, according to how GDB was built.
3122 2014-06-13 Tom Tromey <tromey@redhat.com>
3124 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3126 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3128 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3130 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3131 help_list.Pass all_commands, not -1, to help_list.
3132 * cli/cli-dump.c (dump_command, append_command)
3133 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3134 (binary_dump_command, binary_append_command): Pass all_commands,
3135 not -1, to help_list.
3136 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3138 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3140 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3142 * top.c (set_history): Pass all_commands, not -1, to help_list.
3143 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3144 all_commands, not -1, to help_list.
3145 * symfile.c (overlay_command): Pass all_commands, not -1, to
3147 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3149 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3151 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3153 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3154 not -1, to help_list.
3155 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3156 not -1, to help_list.
3157 * maint.c (maintenance_command, maintenance_info_command)
3158 (maintenance_print_command, maintenance_set_cmd): Pass
3159 all_commands, not -1, to help_list.
3160 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3162 * language.c (set_check): Pass all_commands, not -1, to help_list.
3163 * infcmd.c (unset_command): Pass all_commands, not -1, to
3165 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3167 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3169 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3171 * breakpoint.c (save_command): Pass all_commands, not -1, to
3173 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3174 all_commands, not -1, to help_list.
3176 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3178 * regcache.c (struct register_to_invalidate): New structure.
3179 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3181 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3183 2014-06-12 Yao Qi <yao@codesourcery.com>
3185 * varobj.c (varobj_get_num_children): Call
3186 varobj_is_dynamic_p.
3187 (varobj_list_children): Likewise.
3188 (varobj_update): Likewise. Update comments.
3190 2014-06-12 Yao Qi <yao@codesourcery.com>
3192 * varobj.c (varobj_pretty_printed_p): Rename to ...
3193 (varobj_is_dynamic_p): ... this. New function.
3194 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3195 (varobj_is_dynamic_p): Declare.
3196 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3197 (mi_print_value_p, varobj_update_one): Likewise.
3199 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3200 Yao Qi <yao@codesourcery.com>
3202 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3203 (varobj_get_iterator): Wrap up code for pretty-printer by
3204 "#if HAVE_PYTHON" and "#endif".
3205 (update_dynamic_varobj_children): Likewise.
3207 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3208 Yao Qi <yao@codesourcery.com>
3210 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3211 gdb_python_initialized is false. Move some code from varobj.c.
3212 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3213 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3214 (struct varobj_item): Moved to varobj-iter.h".
3215 (varobj_clear_saved_item): New function.
3216 (update_dynamic_varobj_children): Move python-related code to
3218 (free_variable): Call varobj_clear_saved_item and
3221 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3222 Yao Qi <yao@codesourcery.com>
3224 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3225 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3226 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3227 (py-varobj.o): New rule.
3228 * python/py-varobj.c: New file.
3229 * python/python-internal.h (py_varobj_get_iterator): Declare.
3230 * varobj-iter.h: New file.
3231 * varobj.c: Include "varobj-iter.h"
3232 (struct varobj) <child_iter>: Change its type from "PyObject *"
3233 to "struct varobj_iter *".
3234 <saved_item>: Likewise.
3235 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3236 [HAVE_PYTHON] (varobj_get_iterator): New function.
3237 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3238 python-specific code to python/py-varobj.c.
3239 (install_visualizer): Call varobj_iter_delete instead of
3241 * varobj.h (varobj_ensure_python_env): Declare.
3243 2014-06-12 Yao Qi <yao@codesourcery.com>
3245 * varobj.c (struct varobj_item): New structure.
3246 (create_child_with_value): Update declaration.
3247 (varobj_add_child): Replace arguments 'name' and 'value' with
3248 'item'. All callers updated.
3249 (install_dynamic_child): Likewise.
3250 (update_dynamic_varobj_children): Likewise.
3251 (varobj_add_child): Likewise.
3252 (create_child_with_value): Likewise.
3254 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3256 * NEWS: Create a new section for the next release branch.
3257 Rename the section of the current branch, now that it has
3260 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3262 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3263 * version.in: Bump version to 7.8.50.DATE-cvs.
3265 2014-06-11 Pedro Alves <palves@redhat.com>
3268 * ser-mingw.c (net_windows_socket_check_pending): New function.
3269 (net_windows_select_thread): Ignore spurious wakeups. Use
3270 net_windows_socket_check_pending.
3271 (net_windows_wait_handle): Check for pending events with
3272 ioctlsocket, through net_windows_socket_check_pending, instead of
3273 checking the socket's event.
3275 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3277 * python/python-internal.h (gdb_PyObject_GetAttrString)
3278 (gdb_PyObject_HasAttrString): New inline function definitions.
3279 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3280 char * of the second argument to PyObject_GetAttrString.
3282 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3284 * serial.c (serial_write): Fix index of character to be printed
3285 in call to serial_logchar when serial debug traces are enabled.
3287 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3289 * gdbtypes (resolve_dynamic_range): Add function description.
3291 2014-06-09 Pedro Alves <palves@redhat.com>
3293 * linux-nat.c (linux_child_follow_fork): Initialize status with
3294 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3295 inner block. Only pass the signal to PTRACE_DETACH if in pass
3298 2014-06-09 Gary Benson <gbenson@redhat.com>
3300 * common/signals.c (gdb_signal_from_host): Reorder to separate
3301 the always-available ANSI-standard signals from the signals that
3303 (do_gdb_signal_to_host): Likewise.
3304 * proc-events.c (signal_table): Likewise.
3306 2014-06-08 Hui Zhu <hui@codesourcery.com>
3308 * common/linux-ptrace.c (linux_disable_event_reporting): New
3310 * common/linux-ptrace.h (linux_disable_event_reporting): New
3312 * linux-nat.c (linux_child_follow_fork): Do a single step before
3315 2014-06-07 Keith Seitz <keiths@redhat.com>
3319 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3320 from symbol_matches_domain in symtab.c. All local callers
3321 of symbol_matches_domain updated.
3322 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3323 search STRUCT_DOMAIN.
3324 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3325 independently. standard_lookup will do that automatically.
3326 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3327 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3328 (cp_lookup_symbol_in_namespace): Likewise.
3329 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3330 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3331 may return a STRUCT_DOMAIN match.
3332 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3333 * cp-support.c: Include language.h.
3334 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3336 * psymtab.c (match_partial_symbol): Compare the requested
3337 domain with the symbol's domain directly.
3338 (lookup_partial_symbol): Likewise.
3339 * symtab.c (lookup_symbol_in_language): Explain when/why
3340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3341 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3342 appropriate languages.
3343 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3344 and moved to ada-lang.c
3345 (lookup_block_symbol): Explain that this function only returns
3346 symbol matching the requested DOMAIN.
3347 Compare the requested domain with the symbol's domain directly.
3348 (iterate_over_symbols): Compare the requested domain with the
3349 symbol's domain directly.
3350 * symtab.h (symbol_matches_domain): Remove.
3352 2014-06-06 Doug Evans <xdje42@gmail.com>
3354 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3355 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3356 (gdbscm_guile_version_is_at_least): Declare.
3357 (gdbscm_scm_string_to_int): Declare.
3358 * guile/guile.c (gdbscm_guile_major_version): New global.
3359 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3360 (guile_datadir): New static global.
3361 (gdbscm_guile_data_directory): New function.
3362 (initialize_scheme_side): Update.
3363 (misc_guile_functions): Add guile-data-directory.
3364 (initialize_gdb_module): Fetch guile version number.
3365 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3366 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3367 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3368 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3370 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3371 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3372 * guile/scm-value.c (gdbscm_value_to_string): Only call
3373 scm_port_conversion_strategy if Guile version >= 2.0.6.
3375 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3377 * main.c (print_gdb_help): Add -q and --silent.
3379 2014-06-06 Gary Benson <gbenson@redhat.com>
3381 * common/signals.c: Remove preprocessor conditionals for
3382 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3383 SIGSEGV and SIGTERM.
3384 * proc-events.c: Likewise.
3386 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3388 * symfile.c (symfile_free_objfile): Remove restriction to
3390 * symfile-mem.c (symbol_file_add_from_memory): Call
3391 add_target_sections_of_objfile.
3393 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3395 * guile/scm-value.c (gdbscm_history_append_x): Use
3396 'vlscm_get_value_smob_arg_unsafe' instead of
3397 'vlscm_scm_to_value'.
3399 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3402 * utils.c (printchar): Don't escape at all if quoter is NUL.
3403 Update function documentation to clarify effect of parameter
3405 * remote.c (escape_buffer): Pass '\\' as the quoter to
3406 fputstrn_unfiltered.
3407 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3408 generate the output.
3409 (mi_solib_unloaded): Same.
3411 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3413 * development.sh: Delete.
3414 * Makefile.in (config.status): Adjust dependency on development.sh.
3415 * configure.ac: Adjust development.sh source call.
3416 * configure: Regenerate.
3418 2014-06-04 Doug Evans <xdje42@gmail.com>
3420 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3421 is_scheme_bkpt, spec.
3422 (bpscm_make_breakpoint_smob): Initialize new members.
3423 (gdbscm_create_breakpoint_x): Split into two ...
3424 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3425 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3426 (scheme_function breakpoint_functions): Update.
3427 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3428 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3429 register-breakpoint!.
3431 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3434 * mem-break.c (z_type_supported): Return zero if
3435 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3437 2014-06-04 Tom Tromey <tromey@redhat.com>
3439 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3440 value_from_contents_and_address_unresolved.
3441 (ada_template_to_fixed_record_type_1): Likewise.
3442 (ada_which_variant_applies): Likewise.
3443 * value.h (value_from_contents_and_address_unresolved): Declare.
3444 * value.c (value_from_contents_and_address_unresolved): New
3446 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3447 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3448 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3450 2014-06-04 Tom Tromey <tromey@redhat.com>
3452 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3454 2014-06-04 Tom Tromey <tromey@redhat.com>
3456 * procfs.c (procfs_attach): Make "args" const.
3457 * windows-nat.c (windows_attach): Make "args" const.
3458 * nto-procfs.c (procfs_attach): Make "args" const.
3459 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3460 * go32-nat.c (go32_attach): Make "args" const.
3461 * gnu-nat.c (gnu_attach): Make "args" const.
3462 * darwin-nat.c (darwin_attach): Make "args" const.
3463 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3464 * linux-nat.c (linux_nat_attach): Make "args" const.
3465 * remote.c (extended_remote_attach_1, extended_remote_attach):
3467 * target.h (struct target_ops) <to_attach>: Make "args" const.
3468 (find_default_attach): Likewise.
3469 * utils.c (parse_pid_to_attach): Make "args" const.
3470 * utils.h (parse_pid_to_attach): Update.
3472 2014-06-04 Tom Tromey <tromey@redhat.com>
3474 * target-delegates.c: Rebuild.
3475 * target.c (default_thread_address_space): New function.
3476 (target_thread_address_space): Simplify.
3477 * target.h (struct target_ops) <to_thread_address_space>: Add
3478 TARGET_DEFAULT_FUNC.
3480 2014-06-04 Doug Evans <xdje42@gmail.com>
3482 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3484 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3486 * record-btrace.c: Include event-loop.h and inf-loop.h.
3487 (record_btrace_resume_exec_dir)
3488 (record_btrace_async_inferior_event_handler)
3489 (record_btrace_handle_async_inferior_event): New.
3490 (record_btrace_open): Create async event handler.
3491 (record_btrace_close): Delete async event handler.
3492 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3493 Mark async event handler.
3494 (record_btrace_execution_direction): New.
3495 (init_record_btrace_ops): Initialize to_execution_direction.
3497 2014-06-03 Doug Evans <xdje42@gmail.com>
3499 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3500 (gdbscm_make_parameter): Ditto.
3502 2014-06-03 Doug Evans <dje@google.com>
3504 * exec.c (exec_close_1): Call clear_section_table instead of
3505 resize_section_table.
3506 (clear_section_table): New function.
3507 (resize_section_table): Make static. Rename arg num_added to
3509 * exec.h (clear_section_table): Declare.
3510 (resize_section_table): Delete.
3511 * progspace.c (release_program_space): Call clear_section_table
3512 instead of resize_section_table.
3514 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3516 * NEWS (Python Scripting): Add entry about the new xmethods
3519 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3521 * python/py-xmethods.c: New file.
3522 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3523 (objfpy_dealloc): XDECREF on the new xmethods field.
3524 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3526 (objfpy_get_xmethods): New function.
3527 (objfile_getset): New entry 'xmethods'.
3528 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3529 (pspy_dealloc): XDECREF on the new xmethods field.
3530 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3532 (pspy_get_xmethods): New function.
3533 (pspace_getset): New entry 'xmethods'.
3534 * python/python-internal.h: Add declarations for new functions.
3535 * python/python.c (_initialize_python): Invoke
3536 gdbpy_initialize_xmethods.
3537 * python/lib/gdb/__init__.py (xmethods): New
3539 * python/lib/gdb/xmethod.py: New file.
3540 * python/lib/gdb/command/xmethods.py: New file.
3542 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3544 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3545 best match method returned by find_overload_match is an xmethod.
3546 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3547 the best matching operator returned by find_overload_match is an
3549 * valops.c: #include "extension.h".
3550 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3551 Return void. The list of matching source methods is returned in
3552 "fn_list" and a vector of matching debug method workers is
3553 returned in "xm_worker_vec". Update all callers.
3554 (value_find_oload_method_list): Likewise.
3555 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3556 non-NULL, then the index of the best matching method in this
3557 vector is returned. Update all callers.
3558 (find_overload_match): Include xmethods while performing overload
3561 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3563 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3564 * extension-priv.h (struct extension_language_ops): Add the
3566 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3567 get_matching_xmethod_workers, get_xmethod_argtypes,
3568 invoke_xmethod, free_xmethod_worker,
3569 free_xmethod_worker_vec): New functions.
3570 * extension.h: #include "common/vec.h".
3571 New function declarations.
3572 (struct xmethod_worker): New struct.
3573 (VEC (xmethod_worker_ptr)): New vector type.
3574 (xmethod_worker_ptr): New typedef.
3575 (xmethod_worker_vec): Likewise.
3576 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3578 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3579 (struct builtin_type): New field "xmethod".
3580 * valarith.c (value_ptradd): Assert that the value argument is not
3582 * valops.c (value_must_coerce_to_target): Return 0 for
3583 lval_xcallable values.
3584 * value.c (struct value): New field XM_WORKER in the field
3586 (value_address, value_raw_address): Return 0 for lval_xcallable
3588 (set_value_address): Assert that the value is not an
3590 (value_free): Free the associated xmethod worker when freeing
3591 lval_xcallable values.
3592 (set_value_component_location): Assert that the WHOLE value is not
3594 (value_of_xmethod, call_xmethod): New functions.
3595 * value.h: Declare "struct xmethod_worker".
3596 Declare new functions value_of_xmethod, call_xmethod.
3598 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3599 Pedro Alves <palves@redhat.com>
3601 PR breakpoints/17000
3602 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3603 New function, extracted from software_breakpoint_inserted_here_p.
3604 (software_breakpoint_inserted_here_p): Replace factored out code
3605 by call to find_non_raw_software_breakpoint_inserted_here.
3606 (bp_target_info_copy_insertion_state): New function.
3607 (bkpt_insert_location): Handle the case of a single-step
3608 breakpoint already inserted at the same address.
3609 (bkpt_remove_location): Handle the case of a single-step
3610 breakpoint still inserted at the same address.
3611 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3612 breakpoint already inserted at the same address.
3613 (deprecated_remove_raw_breakpoint): Handle the case of a
3614 non-raw breakpoint still inserted at the same address.
3615 (find_single_step_breakpoint): New function, extracted from
3616 single_step_breakpoint_inserted_here_p.
3617 (find_single_step_breakpoint): New function,
3618 factored out from single_step_breakpoint_inserted_here_p.
3619 (single_step_breakpoint_inserted_here_p): Reimplement.
3621 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3623 Pushed by Joel Brobecker <brobecker@adacore.com>
3624 * source.c (show_substitute_path_command): Fix display of matching
3627 2014-06-03 Gary Benson <gbenson@redhat.com>
3629 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3631 2014-06-02 Doug Evans <xdje42@gmail.com>
3633 Add parameter support for Guile.
3634 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3635 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3636 (scm-param.o): New rule.
3637 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3638 (gdbscm_misc_error): Declare.
3639 (gdbscm_canonicalize_command_name): Declare.
3640 (gdbscm_scm_to_host_string): Declare.
3641 (gdbscm_scm_from_host_string): Declare.
3642 (gdbscm_initialize_parameters): Declare.
3643 * guile/guile.c (initialize_gdb_module): Call
3644 gdbscm_initialize_parameters.
3645 * guile/lib/gdb.scm: Export parameter symbols.
3646 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3647 cmdscm_canonicalize_name and made public. All callers updated.
3648 * guile/scm-exception.c (gdbscm_misc_error): New function.
3649 * guile/scm-param.c: New file.
3650 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3651 (gdbscm_scm_to_host_string): New function.
3652 (gdbscm_scm_from_host_string): New function.
3653 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3655 2014-06-02 Doug Evans <xdje42@gmail.com>
3657 Add command support for Guile.
3658 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3659 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3660 (scm-cmd.o): New rule.
3661 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3662 (gdbscm_user_error_p): Declare.
3663 (gdbscm_parse_command_name): Declare.
3664 (gdbscm_valid_command_class_p): Declare.
3665 (gdbscm_initialize_commands): Declare.
3666 * guile/guile.c (initialize_gdb_module): Call
3667 gdbscm_initialize_commands.
3668 * guile/lib/gdb.scm: Export command symbols.
3669 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3670 (throw-user-error): New function.
3671 * guile/scm-cmd.c: New file.
3672 * guile/scm-exception.c (user_error_symbol): New static global.
3673 (gdbscm_user_error_p): New function.
3674 (gdbscm_initialize_exceptions): Set user_error_symbol.
3675 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3677 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3679 * top.c (command_loop): Handle comments here...
3680 (command_line_input): ... not here.
3682 2014-06-02 Doug Evans <xdje42@gmail.com>
3684 Add progspace support for Guile.
3685 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3686 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3687 (scm-progspace.o): New rule.
3688 * guile/guile-internal.h (pspace_smob): New typedef.
3689 (psscm_pspace_smob_pretty_printers): Declare.
3690 (psscm_pspace_smob_from_pspace): Declare.
3691 (psscm_scm_from_pspace): Declare.
3692 * guile/guile.c (initialize_gdb_module): Call
3693 gdbscm_initialize_pspaces.
3694 * guile/lib/gdb.scm: Export progspace symbols.
3695 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3697 (append-pretty-printer!): Ditto.
3698 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3700 * guile/scm-progspace.c: New file.
3702 2014-06-03 Alan Modra <amodra@gmail.com>
3704 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3705 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3707 2014-06-02 Doug Evans <dje@google.com>
3709 Add support for skeletonless type units.
3710 * dwarf2read.c (struct dwarf2_per_objfile): New member
3711 n_allocated_type_units.
3712 (struct dwarf2_per_objfile) <tu_stats>: New member
3713 nr_all_type_units_reallocs.
3714 (create_signatured_type_table_from_index): Initialize
3715 n_allocated_type_units
3716 (create_all_type_units): Ditto.
3717 (add_type_unit): Move up in file. New arg slot.
3718 All callers updated. Increase space for all_type_units more
3720 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3721 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3722 (lookup_dwp_signatured_type): Ditto.
3723 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3724 All callers updated.
3725 (build_type_psymtabs_1): Leave type_unit_groups as
3726 NULL if no TUs present.
3727 (print_tu_stats): New function.
3728 (process_skeletonless_type_unit): New function.
3729 (process_dwo_file_for_skeletonless_type_units): New
3731 (process_skeletonless_type_units): New function.
3732 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3733 Call print tu_stats if debugging enabled.
3735 2014-06-02 Pedro Alves <palves@redhat.com>
3737 * breakpoint.c (build_target_command_list): Don't build a command
3738 list if we have any duplicate location that isn't a dprintf.
3740 2014-06-02 Pedro Alves <palves@redhat.com>
3742 * breakpoint.c (dprintf_breakpoint_hit): New function.
3743 (initialize_breakpoint_ops): Install it as dprintf's
3744 breakpoint_hit method.
3746 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3748 * source.c (substitute_path_rule_matches): Simplify using
3749 filename_ncmp instead of FILENAME_CMP.
3751 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3753 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3755 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3757 * configure.ac: When Guile is available, check for the
3758 availability of 'scm_new_smob'.
3759 * configure, config.h.in: Regenerate.
3760 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3763 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3765 * frame.c (struct frame_info): Add stop_string field.
3766 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3767 (get_prev_frame_always): Old content moved into
3768 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3769 TRY_CATCH, handle MEMORY_ERROR exceptions.
3770 (frame_stop_reason_string): New function definition.
3771 * frame.h (unwind_stop_reason_to_string): Extend comment to
3772 mention frame_stop_reason_string.
3773 (frame_stop_reason_string): New function declaration.
3774 * stack.c (frame_info): Switch to frame_stop_reason_string.
3775 (backtrace_command_1): Switch to frame_stop_reason_string.
3776 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3777 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3778 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3780 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3782 * frame.c (frame_stop_reason_string): Rename to ...
3783 (unwind_stop_reason_to_string): this.
3784 * frame.h (frame_stop_reason_string): Rename to ...
3785 (unwind_stop_reason_to_string): this.
3786 * stack.c (frame_info): Update call to frame_stop_reason_string.
3787 (backtrace_command_1): Likewise.
3788 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3789 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3791 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3793 * frame.c (remove_prev_frame): New function.
3794 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3797 2014-05-29 Pedro Alves <palves@redhat.com>
3799 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3800 and make it const. When a single-step decays to a continue,
3801 clear 'step', not 'hw_step'. Pass whether the caller wanted
3802 to step to user_visible_resume_ptid, not what we ask the
3805 2014-05-29 Pedro Alves <palves@redhat.com>
3807 * infrun.c (process_event_stop_test, handle_step_into_function)
3808 (handle_step_into_function_backward): Adjust.
3809 Don't set the even thread's stop_step and call stop_waiting before
3810 calling end_stepping_range. Instead do that ...
3811 (end_stepping_range): ... here. Take an ecs pointer parameter.
3813 2014-05-29 Pedro Alves <palves@redhat.com>
3815 * infrun.c (stop_stepping): Rename to ...
3816 (stop_waiting): ... this.
3817 (proceed): Update comment.
3818 (process_event_stop_test, handle_inferior_event)
3819 (handle_signal_stop, handle_step_into_function)
3820 (handle_step_into_function_backward): Update.
3822 2014-05-29 Pedro Alves <palves@redhat.com>
3824 * infcall.c (run_inferior_call): Don't check whether the current
3825 thread is running after the proceed call.
3827 2014-05-29 Pedro Alves <palves@redhat.com>
3828 Tom Tromey <tromey@redhat.com>
3830 * NEWS: Mention "maint set target-async", "set mi-async", and that
3831 background execution commands are now always available.
3832 * target.h (target_async_permitted): Update comment.
3833 * target.c (target_async_permitted, target_async_permitted_1):
3835 (set_target_async_command): Rename to ...
3836 (maint_set_target_async_command): ... this.
3837 (show_target_async_command): Rename to ...
3838 (maint_show_target_async_command): ... this.
3839 (_initialize_target): Adjust.
3840 * infcmd.c (prepare_execution_command): Make extern.
3841 * inferior.h (prepare_execution_command): Declare.
3842 * infrun.c (set_observer_mode): Leave target async alone.
3843 * mi/mi-interp.c (mi_interpreter_init): Install
3844 mi_on_sync_execution_done as sync_execution_done observer.
3845 (mi_on_sync_execution_done): New function.
3846 (mi_execute_command_input_handler): Don't print the prompt if we
3847 just started a synchronous command with an async target.
3848 (mi_on_resume): Check sync_execution before printing prompt.
3849 * mi/mi-main.h (mi_async_p): Declare.
3850 * mi/mi-main.c: Include gdbcmd.h.
3851 (mi_async_p): New function.
3852 (mi_async, mi_async_1): New globals.
3853 (set_mi_async_command, show_mi_async_command, mi_async): New
3855 (exec_continue): Call prepare_execution_command.
3856 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3857 (mi_execute_async_cli_command): Use mi_async_p.
3858 (_initialize_mi_main): Install "set mi-async". Make
3859 "target-async" a deprecated alias.
3861 2014-05-29 Pedro Alves <palves@redhat.com>
3863 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3864 (_initialize_cli_interp): Adjust.
3865 * event-loop.c: Include "observer.h".
3866 (start_event_loop): Notify 'command_error' observers instead of
3867 calling display_gdb_prompt. Remove FIXME comment.
3868 * event-top.c (display_gdb_prompt): Remove call into the
3870 * inf-loop.c: Include "observer.h".
3871 (inferior_event_handler): Notify 'command_error' observers instead
3872 of calling display_gdb_prompt.
3873 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3874 observers instead of calling display_gdb_prompt.
3875 * interps.c (interp_set): Don't call display_gdb_prompt.
3876 (current_interp_display_prompt_p): Delete.
3877 * interps.h (interp_prompt_p): Delete declaration.
3878 (interp_prompt_p_ftype): Delete.
3879 (struct interp_procs) <prompt_proc_p>: Delete field.
3880 (current_interp_display_prompt_p): Delete declaration.
3881 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3882 (_initialize_mi_interp): Adjust.
3883 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3884 'command_error' observers.
3885 (tui_on_sync_execution_done, tui_on_command_error): New
3887 (tui_display_prompt_p): Delete.
3888 (_initialize_tui_interp): Adjust.
3890 2014-05-29 Pedro Alves <palves@redhat.com>
3893 * cli/cli-interp.c: Include infrun.h and observer.h.
3894 (cli_uiout, cli_interp): New globals.
3895 (cli_on_signal_received, cli_on_end_stepping_range)
3896 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3898 (cli_interpreter_init): Install them as 'end_stepping_range',
3899 'signal_received' 'signal_exited', 'exited' and 'no_history'
3901 (_initialize_cli_interp): Remove cli_interp local.
3902 * infrun.c (handle_inferior_event): Call the several stop reason
3903 observers instead of printing the stop reason directly.
3904 (end_stepping_range): New function.
3905 (print_end_stepping_range_reason, print_signal_exited_reason)
3906 (print_exited_reason, print_signal_received_reason)
3907 (print_no_history_reason): Make static, and add an uiout
3908 parameter. Print to that instead of to CURRENT_UIOUT.
3909 * infrun.h (print_end_stepping_range_reason)
3910 (print_signal_exited_reason, print_exited_reason)
3911 (print_signal_received_reason print_no_history_reason): New
3913 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3915 <cli_uiout>: New field.
3916 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3917 uiout for CLI output. Install 'signal_received',
3918 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3920 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3921 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3922 (mi_on_no_history): New functions.
3923 (ui_out_free_cleanup): Delete function.
3924 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3925 instead use the one already stored in the MI interpreter data.
3926 (mi_ui_out): Adjust.
3927 * tui/tui-interp.c: Include infrun.h and observer.h.
3928 (tui_interp): New global.
3929 (tui_on_signal_received, tui_on_end_stepping_range)
3930 (tui_on_signal_exited, tui_on_exited)
3931 (tui_on_no_history): New functions.
3932 (tui_init): Install them as 'end_stepping_range',
3933 'signal_received' 'signal_exited', 'exited' and 'no_history'
3935 (_initialize_tui_interp): Delete tui_interp local.
3937 2014-05-29 Pedro Alves <palves@redhat.com>
3940 * linux-nat.c (linux_nat_resume_callback): Rename the second
3941 parameter to 'except'. Skip LP if it points to EXCEPT.
3942 (linux_nat_resume): Don't mark the event lwp as not stopped
3943 before resuming sibling lwps. Instead ask
3944 linux_nat_resume_callback to skip the event lwp. Mark it as not
3945 stopped after actually resuming it.
3946 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3948 (wait_lwp): Mark the lwp as stopped here.
3949 (stop_wait_callback): Mark the lwp as not stopped right after
3950 resuming it. Don't mark lwps as stopped here.
3951 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3952 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3954 2014-05-29 Pedro Alves <palves@redhat.com>
3957 * infrun.c (resume): Determine how much to resume depending on
3958 whether the caller wanted a step, not whether we can hardware step
3959 the target. Mark all threads that we intend to run as running,
3960 unless we're calling an inferior function.
3961 (normal_stop): If the thread is running an infcall, don't finish
3963 * target.c (target_resume): Don't mark threads as running here.
3965 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3967 * serial.c (_initialize_serial): Remove support for
3968 the "set remotebaud" and "show remotebaud" commands.
3969 * NEWS: Add entry documenting the removal of that command.
3971 2014-05-28 Yao Qi <yao@codesourcery.com>
3973 * charset.c: Fix typo in comments.
3975 2014-05-27 Gary Benson <gbenson@redhat.com>
3977 * utils.c (internal_vproblem): Prompt for a bug report.
3979 2014-05-26 Andy Wingo <wingo@igalia.com>
3981 * guile/scm-arch.c (arscm_mark_arch_smob):
3982 * guile/scm-block.c (bkscm_mark_block_smob)
3983 (bkscm_mark_block_syms_progress_smob):
3984 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3985 * guile/scm-exception.c (exscm_mark_exception_smob):
3986 * guile/scm-frame.c (frscm_mark_frame_smob):
3987 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3988 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3989 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3990 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3991 (ppscm_mark_pretty_printer_worker_smob):
3992 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3993 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3994 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3995 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3997 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4000 2014-05-26 Andy Wingo <wingo@igalia.com>
4001 Doug Evans <xdje42@gmail.com>
4003 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4004 empty_base_class. All uses updated.
4005 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4006 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4008 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4009 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4010 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4011 (gdbscm_gsmob_has_property_p, add_property_name)
4012 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4013 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4014 (gdb-object-has-property?, gdb-object-properties): Remove.
4015 (gdb-object-kind): Renamed from gsmob-kind.
4017 2014-05-26 Andy Wingo <wingo@igalia.com>
4019 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4020 * configure: Regenerate.
4022 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4024 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4026 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4028 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4029 (replay_memory_access_read_only, replay_memory_access_read_write)
4030 (replay_memory_access_types, replay_memory_access)
4031 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4032 (cmd_set_record_btrace, cmd_show_record_btrace)
4033 (cmd_show_replay_memory_access): New.
4034 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4035 (record_btrace_remove_breakpoint): Replace
4036 record_btrace_allow_memory_access with replay_memory_access.
4037 (_initialize_record_btrace): Add commands.
4038 * NEWS: Announce it.
4040 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4042 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4044 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4046 * MAINTAINERS (Write After Approval): Move self back from
4049 2014-05-22 Pedro Alves <palves@redhat.com>
4051 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4052 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4053 (disable_randomization, enum exec_direction_kind)
4054 (execution_direction, stop_registers, start_remote)
4055 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4056 (wait_for_inferior, normal_stop, get_last_target_status)
4057 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4058 (insert_step_resume_breakpoint_at_sal)
4059 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4060 (set_step_info, print_stop_event, signal_stop_state)
4061 (signal_print_state, signal_pass_state, signal_stop_update)
4062 (signal_print_update, signal_pass_update)
4063 (update_signals_program_target, clear_exit_convenience_vars)
4064 (displaced_step_dump_bytes, update_observer_mode)
4065 (signal_catch_update, gdb_signal_from_command): Move
4067 * infrun.h: ... to this new file.
4068 * amd64-tdep.c: Include infrun.h.
4069 * annotate.c: Include infrun.h.
4070 * arch-utils.c: Include infrun.h.
4071 * arm-linux-tdep.c: Include infrun.h.
4072 * arm-tdep.c: Include infrun.h.
4073 * break-catch-sig.c: Include infrun.h.
4074 * breakpoint.c: Include infrun.h.
4075 * common/agent.c: Include infrun.h instead of inferior.h.
4076 * corelow.c: Include infrun.h.
4077 * event-top.c: Include infrun.h.
4078 * go32-nat.c: Include infrun.h.
4079 * i386-tdep.c: Include infrun.h.
4080 * inf-loop.c: Include infrun.h.
4081 * infcall.c: Include infrun.h.
4082 * infcmd.c: Include infrun.h.
4083 * infrun.c: Include infrun.h.
4084 * linux-fork.c: Include infrun.h.
4085 * linux-nat.c: Include infrun.h.
4086 * linux-thread-db.c: Include infrun.h.
4087 * monitor.c: Include infrun.h.
4088 * nto-tdep.c: Include infrun.h.
4089 * procfs.c: Include infrun.h.
4090 * record-btrace.c: Include infrun.h.
4091 * record-full.c: Include infrun.h.
4092 * remote-m32r-sdi.c: Include infrun.h.
4093 * remote-mips.c: Include infrun.h.
4094 * remote-notif.c: Include infrun.h.
4095 * remote-sim.c: Include infrun.h.
4096 * remote.c: Include infrun.h.
4097 * reverse.c: Include infrun.h.
4098 * rs6000-tdep.c: Include infrun.h.
4099 * s390-linux-tdep.c: Include infrun.h.
4100 * solib-irix.c: Include infrun.h.
4101 * solib-osf.c: Include infrun.h.
4102 * solib-svr4.c: Include infrun.h.
4103 * target.c: Include infrun.h.
4104 * top.c: Include infrun.h.
4105 * windows-nat.c: Include infrun.h.
4106 * mi/mi-interp.c: Include infrun.h.
4107 * mi/mi-main.c: Include infrun.h.
4108 * python/py-threadevent.c: Include infrun.h.
4110 2014-05-22 Pedro Alves <palves@redhat.com>
4112 * infrun.c (handle_inferior_event): Store the exit code for
4113 --return-child-result here, instead of ...
4114 (print_exited_reason): ... here.
4116 2014-05-21 Pedro Alves <palves@redhat.com>
4119 * gdbthread.h (struct thread_control_state): New field
4121 * infrun.c (follow_fork): Copy the new thread control field to the
4123 (clear_proceed_status_thread): Clear the new thread control field.
4124 (proceed): Set the new thread control field.
4125 * interps.h (command_interp): Declare.
4126 * interps.c (command_interpreter): New global.
4127 (command_interp): New function.
4128 (interp_exec): Set `command_interpreter' while here.
4129 * cli-out.c (cli_uiout_dtor): New function.
4130 (cli_ui_out_impl): Install it.
4131 * mi/mi-interp.c: Include cli-out.h.
4132 (mi_cmd_interpreter_exec): Add comment.
4133 (restore_current_uiout_cleanup): New function.
4134 (ui_out_free_cleanup): New function.
4135 (mi_on_normal_stop): If finishing an execution command started by
4136 a CLI command, or any kind of breakpoint-like event triggered,
4137 print the stop event to the output (CLI) stream.
4138 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4140 2014-05-21 Pedro Alves <palves@redhat.com>
4142 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4143 current source line having changed.
4144 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4145 * infrun.c (normal_stop): Adjust call to
4146 set_current_sal_from_frame.
4147 * source.c (clear_lines_listed_range): New function.
4148 (set_current_source_symtab_and_line, identify_source_line): Clear
4149 the lines listed range.
4150 (line_info): Handle the first "info line" after the current source
4151 line having changed.
4152 * stack.c (print_stack_frame): Remove center handling.
4153 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4156 2014-05-21 Pedro Alves <palves@redhat.com>
4158 * inf-child.c (inf_child_mourn_inferior): New function.
4159 * inf-child.h (inf_child_mourn_inferior): New declaration.
4160 * darwin-nat.c (darwin_mourn_inferior): Use
4161 inf_child_mourn_inferior.
4162 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4163 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4164 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4165 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4166 * windows-nat.c (windows_mourn_inferior): Likewise.
4168 2014-05-21 Doug Evans <xdje42@gmail.com>
4170 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4172 2014-05-21 Doug Evans <xdje42@gmail.com>
4174 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4175 (gdbscm_out_of_range_error): Ditto.
4176 (gdbscm_memory_error): Ditto.
4177 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4178 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4179 (gdbscm_out_of_range_error): Update.
4180 (gdbscm_memory_error): Update.
4181 (gdbscm_scm_to_target_string_unsafe): Delete.
4183 2014-05-21 Pedro Alves <palves@redhat.com>
4185 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4187 (inf_child_open_target): New function.
4188 (inf_child_open): Use inf_child_open_target to push the target
4189 instead of erroring out.
4190 (inf_child_disconnect, inf_child_close)
4191 (inf_child_maybe_unpush_target): New functions.
4192 (inf_child_target): Install inf_child_disconnect and
4193 inf_child_close. Store a pointer to the returned object.
4194 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4196 * target.c (auto_connect_native_target): New global.
4197 (show_default_run_target): New function.
4198 (find_default_run_target): Return NULL if automatically connecting
4199 to the native target is disabled.
4200 (_initialize_target): Install set/show auto-connect-native-target.
4201 * NEWS: Mention "set auto-connect-native-target", and "target
4203 * linux-nat.c (super_close): New global.
4204 (linux_nat_close): Call super_close.
4205 (linux_nat_add_target): Store a pointer to the base class's
4207 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4208 inf_child_maybe_unpush.
4209 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4211 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4212 the inferior. Use inf_child_maybe_unpush_target.
4213 (inf_ttrace_attach): Don't push the target if it is already
4215 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4216 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4217 after mourning the inferior. Use inf_child_maybe_unpush_target.
4218 (darwin_attach_pid): Don't push the target if it is already
4220 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4221 mourning the inferior. Use inf_child_maybe_unpush_target.
4222 (gnu_detach): Use inf_child_maybe_unpush_target.
4223 * go32-nat.c (go32_create_inferior): Don't push the target if it
4225 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4226 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4227 (procfs_open): Rename to ...
4228 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4229 comments. Can target_preopen before changing node. Call
4230 inf_child_open_target to push the target explicitly.
4231 (procfs_attach): Don't push the target if it is already pushed.
4232 (procfs_detach): Use inf_child_maybe_unpush_target.
4233 (procfs_create_inferior): Don't push the target if it is already
4235 (nto_native_ops): New global.
4236 (procfs_open): Reimplement.
4237 (procfs_native_open): New function.
4238 (init_procfs_targets): Install procfs_native_open as to_open of
4239 "target native". Store a pointer to the "native" target in
4241 * procfs.c (procfs_attach): Don't push the target if it is already
4243 (procfs_detach): Use inf_child_maybe_unpush_target.
4244 (procfs_mourn_inferior): Only unpush the target after mourning the
4245 inferior. Use inf_child_maybe_unpush_target.
4246 (procfs_init_inferior): Don't push the target if it is already
4248 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4249 if it is already pushed.
4251 2014-05-21 Pedro Alves <palves@redhat.com>
4253 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4254 and "procfs" targets are now called "native" instead.
4256 2014-05-21 Pedro Alves <palves@redhat.com>
4258 * go32-nat.c (go32_open): Delete.
4259 (go32_target): Don't override the to_open method.
4261 2014-05-21 Pedro Alves <palves@redhat.com>
4263 * nto-procfs.c (procfs_can_run): New function.
4264 (nto_procfs_ops): New global.
4265 (init_procfs_targets): New, based on procfs_target. Install
4266 "target native" in addition to "target procfs".
4267 (_initialize_procfs): Call init_procfs_targets instead of adding
4270 2014-05-21 Pedro Alves <palves@redhat.com>
4272 * windows-nat.c (windows_target): Don't override to_shortname,
4273 to_longname or to_doc.
4275 2014-05-21 Pedro Alves <palves@redhat.com>
4277 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4280 2014-05-21 Pedro Alves <palves@redhat.com>
4282 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4283 to_shortname, to_longname or to_doc.
4285 2014-05-21 Pedro Alves <palves@redhat.com>
4287 * go32-nat.c (go32_target): Don't override to_shortname,
4288 to_longname or to_doc.
4290 2014-05-21 Pedro Alves <palves@redhat.com>
4292 * inf-child.c (inf_child_open): Remove mention of "child".
4293 (inf_child_target): Rename target to "native" instead of "child".
4295 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4297 * Makefile.in (SFILES): Delete "regset.c".
4298 (COMMON_OBS): Delete "regset.o".
4300 * regset.h (regset_alloc): Delete prototype.
4302 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4304 * sparc-linux-tdep.c (sparc32_linux_gregset)
4305 (sparc32_linux_fpregset): New static regset structures.
4306 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4307 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4309 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4310 (sparc64_linux_fpregset): New static regset structures.
4311 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4312 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4313 New static regset structures.
4314 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4315 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4316 New static regset structures.
4317 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4318 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4319 New static regset structures.
4320 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4321 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4322 New static regset structures.
4323 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4325 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4327 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4328 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4329 register maps ("regmaps") from "*regset" to "*regmap". Do this
4330 for all regmap types and variables.
4331 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4332 (sparc32_linux_supply_core_gregset)
4333 (sparc32_linux_collect_core_gregset)
4334 (sparc32_linux_supply_core_fpregset)
4335 (sparc32_linux_collect_core_fpregset): Likewise.
4336 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4337 (sparc_gregmap, sparc_fpregmap): ... these.
4338 (sparc_supply_gregset, sparc_collect_gregset)
4339 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4340 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4341 (_initialize_sparc_nat): Rename regmaps.
4342 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4343 (sparc_gregmap, sparc_fpregmap): ... these.
4344 (sparc_supply_gregset, sparc_collect_gregset)
4345 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4346 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4348 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4349 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4351 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4353 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4354 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4355 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4357 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4358 (sparc32_bsd_fpregset): Rename to...
4359 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4360 (sparc32_bsd_fpregmap): ... these.
4361 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4362 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4363 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4364 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4365 (struct sparc_gregmap, struct sparc_fpregmap)
4366 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4367 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4368 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4369 (sparc32_supply_regset, sparc32_collect_gregset)
4370 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4372 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4373 (sparc64_linux_ptrace_gregmap): ... this.
4374 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4375 (_initialize_sparc64_linux_nat): Rename regmaps.
4376 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4377 (sparc64_linux_core_gregmap): ... this.
4378 (sparc64_linux_supply_core_gregset)
4379 (sparc64_linux_collect_core_gregset)
4380 (sparc64_linux_supply_core_fpregset)
4381 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4382 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4383 (sparc64_sol2_fpregset): Rename to...
4384 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4385 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4386 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4388 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4389 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4390 (sparc64_bsd_fpregset): Rename to...
4391 (struct sparc_gregmap, sparc64_sol2_gregmap)
4392 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4393 (sparc64_bsd_fpregmap): ... these.
4394 (sparc64_supply_gregset, sparc64_collect_gregset)
4395 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4397 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4398 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4399 (sparc64fbsd_gregmap): ... this.
4400 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4401 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4403 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4404 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4405 (sparc64nbsd_collect_fpregset): Likewise.
4406 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4407 (sparc64nbsd_gregmap): ... this.
4408 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4410 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4411 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4412 (sparc64obsd_gregmap): ... this.
4413 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4415 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4416 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4417 (sparc32nbsd_gregmap): ... this.
4418 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4423 * score-tdep.c (score7_linux_gregset): New static regset
4425 (score7_linux_regset_from_core_section): Remove dynamic regset
4427 (score_gdbarch_init): Drop allocation of tdep structure.
4428 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4430 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4432 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4434 (am33_regset_from_core_section): Remove dynamic regset
4437 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4439 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4440 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4442 (mips_linux_regset_from_core_section): Remove dynamic regset
4444 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4445 'gregset64', 'fpregset', and 'fpregset64'.
4446 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4447 deleted tdep fields.
4449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4453 (amd64_regset_from_core_section): Remove dynamic regset
4455 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4457 (amd64obsd_regset_from_core_section): Remove dynamic regset
4459 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4461 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4462 x86-common regset supply function.
4463 * i386-tdep.c (i386_collect_gregset): Make static.
4464 (i386_gregset): New global regset structure.
4465 (i386_fpregset, i386_xstateregset): New static regset structures.
4466 (i386_regset_from_core_section): Remove dynamic regset
4468 (i386_gdbarch_init): Remove initialization of tdep fields
4469 'gregset', 'fpregset', and 'xstateregset'.
4470 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4471 'fpregset', and 'xstateregset'.
4472 (i386_collect_gregset): Remove prototype.
4473 (i386_gregset): New declaration.
4474 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4476 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4479 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4481 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4482 (arm_linux_vfpregset): New static regset structures.
4483 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4485 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4486 and 'vfpregset' fields.
4488 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4490 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4491 (aarch64_linux_fpregset): New static regset structures.
4492 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4493 of regset structures.
4494 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4499 * regset.h (struct regset): Remove gdbarch field.
4500 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4501 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4502 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4504 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4505 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4506 (ppc32_linux_vsxregset): Likewise.
4507 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4508 via the regcache instead of the regset.
4509 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4510 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4511 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4512 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4517 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4518 Constify structures.
4519 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4520 (alphanbsd_aout_gregset): Likewise.
4521 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4522 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4524 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4525 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4527 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4528 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4529 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4530 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4531 * m88k-tdep.c (m88k_gregset): Likewise.
4532 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4533 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4534 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4535 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4536 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4537 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4538 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4539 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4540 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4542 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4543 * sh-tdep.h (sh_corefile_gregset): Likewise.
4544 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4545 * vax-tdep.c (vax_gregset): Likewise.
4547 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4549 Fix TLS access for -static -pthread.
4550 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4551 (try_thread_db_load_1): Initialize it.
4552 (thread_db_get_thread_local_address): Call it if LM is zero.
4553 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4554 * target.h (struct target_ops) (to_get_thread_local_address): Add
4555 load_module_addr comment.
4557 2014-05-21 Pedro Alves <palves@redhat.com>
4559 * dcache.c (dcache_read_memory_partial): If reading the cache line
4560 fails, fallback to reading just the memory the caller wanted.
4562 2014-05-20 Doug Evans <dje@google.com>
4564 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4565 instead of get_current_arch.
4567 2014-05-20 Pedro Alves <palves@redhat.com>
4569 * NEWS: Mention that compare-sections now works with all targets.
4571 * remote.c (PACKET_qCRC): New enum value.
4572 (remote_verify_memory): Don't send qCRC if the target has no
4573 execution. Use packet_support/packet_ok. If the target doesn't
4574 support the qCRC packet, fallback to a deep memory copy.
4575 (compare_sections_command): Say "target image" instead of "remote
4577 (_initialize_remote): Add PACKET_qCRC to the list of config
4578 packets that have no associated command. Extend comment.
4579 * target.c (simple_verify_memory, default_verify_memory): New
4581 * target.h (struct target_ops) <to_verify_memory>: Default to
4582 default_verify_memory.
4583 (simple_verify_memory): New declaration.
4584 * target-delegates.c: Regenerate.
4586 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4588 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4590 2014-05-20 Hui Zhu <hui@codesourcery.com>
4591 Yao Qi <yao@codesourcery.com>
4594 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4595 and change address of sp and pc.
4597 2014-05-19 Tom Tromey <tromey@redhat.com>
4599 * gdbtypes.c (rank_function): Use XNEWVEC.
4600 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4602 2014-05-19 Doug Evans <dje@google.com>
4604 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4605 build_type_unit_groups and moved closer to only caller. Remove
4606 arguments. All references updated. Remove outdated .gdb_index
4608 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4609 build_type_psymtabs_1.
4611 2014-05-19 Doug Evans <dje@google.com>
4613 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4614 n_type_unit_groups, all_type_unit_groups. All uses removed.
4615 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4616 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4617 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4618 (add_type_unit_group_to_table): Delete.
4620 2014-05-19 Doug Evans <dje@google.com>
4622 * eval.c (evaluate_subexp_standard): Add some comments.
4624 2014-05-17 Doug Evans <xdje42@gmail.com>
4626 * progspace.c (remove_program_space): Delete, unused.
4627 * progspace.h (remove_program_space): Ditto.
4629 2014-05-17 Doug Evans <xdje42@gmail.com>
4631 * inferior.c (prune_inferiors): Fix comment.
4632 (remove_inferior_command): Call prune_program_spaces.
4634 2014-05-16 Doug Evans <dje@google.com>
4636 New command line option -D.
4638 * main.c (set_gdb_data_directory): New function.
4639 (captured_main): Recognize -D. Flag error for --data-directory "".
4640 Call set_gdb_data_directory.
4641 (print_gdb_help): Print --data-directory, -D.
4642 * main.h (set_gdb_data_directory): Declare.
4643 * top.c (staged_gdb_datadir): New static global.
4644 (set_gdb_datadir): Call set_gdb_data_directory
4645 (show_gdb_datadir): New function.
4646 (init_main): Update init of data-directory parameter.
4648 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4650 Import the "dirfd" gnulib module.
4651 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4652 * gnulib/aclocal.m4: Update.
4653 * gnulib/config.in: Update.
4654 * gnulib/configure: Update.
4655 * gnulib/import/Makefile.am: Update.
4656 * gnulib/import/Makefile.in: Update.
4657 * gnulib/import/dirfd.c: New.
4658 * gnulib/import/m4/dirfd.m4: New.
4659 * gnulib/import/m4/gnulib-cache.m4: Update.
4660 * gnulib/import/m4/gnulib-comp.m4: Update.
4662 2014-05-16 Pierre Muller <muller@sourceware.org>
4663 Yao Qi <yao@codesourcery.com>
4665 * valprint.c (print_wchar): Move the code on checking whether
4666 W is a printable wide char to the default branch of switch
4667 statement below. Call wchar_printable instead of gdb_iswprint.
4669 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4671 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4672 ldr.w and ldrd instructions.
4674 2014-05-15 Doug Evans <dje@google.com>
4676 * dwarf2read.c (read_structure_type): Delete outdated comments.
4678 2014-05-14 Tom Tromey <tromey@redhat.com>
4680 * macrocmd.c (print_macro_definition): Reindent.
4682 2014-05-13 Doug Evans <xdje42@gmail.com>
4684 * python/py-cmd.c (cmdpy_completer): Add comment.
4685 (completers): Make const.
4687 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4689 * infrun.c (resume): Remove should_resume (unused). Move up
4690 declaration of resume_ptid.
4692 2014-05-13 Tom Tromey <tromey@redhat.com>
4694 * language.h (unop_type_check): Remove.
4695 (binop_type_check): Don't declare.
4697 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4699 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4700 call to regcache_raw_collect.
4702 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4704 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4705 mi_console->quote as the quoting character.
4707 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4709 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4711 2014-04-29 Tom Tromey <tromey@redhat.com>
4713 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4714 "show debug varobj".
4716 2014-05-07 Kyle McMartin <kyle@redhat.com>
4718 Pushed by Joel Brobecker <brobecker@adacore.com>.
4719 * aarch64-tdep.c (aarch64_software_single_step): New function.
4720 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4721 with aarch64_software_single_step.
4723 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4727 2014-05-05 Keith Seitz <keiths@redhat.com>
4729 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4730 variable or history value is successfully parsed.
4732 2014-05-05 Yao Qi <yao@codesourcery.com>
4733 Pedro Alves <palves@redhat.com>
4735 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4736 address of blocks that intersects the requested range. Trim
4737 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4739 * ctf.c (ctf_xfer_partial): Likewise.
4741 2014-05-05 Yao Qi <yao@codesourcery.com>
4743 * printcmd.c (display_command): Remove the check to
4744 target_has_execution.
4746 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4748 * ppcobsd-nat.c: Include "obsd-nat.h".
4749 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4751 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4753 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4755 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4756 and 16-bit signed and unsigned arguments. Update comment.
4757 (stap_parse_probe_arguments): Extend code to handle such
4758 arguments. Use warning instead of complaint to notify about
4759 unrecognized bitness.
4761 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4763 PR breakpoints/16889
4764 * stap-probe.c (stap_parse_probe_arguments): Simplify
4765 check for non-prefixed probes (i.e., probes whose
4766 arguments do not start with "N@"). Always set the
4767 argument type to a sane value.
4769 2014-05-01 David Taylor <dtaylor@emc.com>
4771 * remote.c (compare_sections_command): Add -r option to compare
4772 all loadable read-only sections.
4774 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4776 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4777 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4779 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4780 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4781 Remove unused CORE_ADDR argument. Update all callers.
4783 2014-04-29 Pedro Alves <palves@redhat.com>
4785 * remote.c (struct packet_config) <detect>: Extend comment.
4786 (add_packet_config_cmd): Don't set the config's detect or support
4788 (init_all_packet_configs): Also initialize the config's 'detect'
4790 (reset_all_packet_configs_support): New function.
4791 (remote_open_1): Call reset_all_packet_configs_support instead of
4792 init_all_packet_configs.
4793 (_initialize_remote): Initialize all packet configs. Assert that
4794 all packets have an associated command, except a few known
4797 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4799 * dwarf2read.c (read_subrange_type): Handle dynamic
4800 DW_AT_lower_bound attributes.
4802 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4804 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4805 dynamic bounds before computing its upper bound.
4806 (ada_discrete_type_low_bound): Same as above with the lower bound.
4808 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4810 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4811 range types. Adjust the array handling implementation to
4812 take advantage of this change.
4813 (resolve_dynamic_range): New function, mostly extracted from
4814 resolve_dynamic_bounds.
4815 (resolve_dynamic_array): New function, mostly extracted from
4816 resolve_dynamic_bounds.
4817 (resolve_dynamic_bounds): Delete.
4818 (resolve_dynamic_type): Reimplement. Add handling of
4819 TYPE_CODE_RANGE types.
4821 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4823 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4824 handling of parallel ___XA types.
4826 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4829 unnecessary second call to static_unwrap_type.
4831 2014-04-27 Hui Zhu <hui@codesourcery.com>
4833 * stack.c (print_frame_info): Call do_gdb_disassembly with
4834 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4836 2014-04-26 Doug Evans <xdje42@gmail.com>
4838 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4840 2014-04-25 Pedro Alves <palves@redhat.com>
4843 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4844 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4845 and newline from built string.
4846 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4847 (linux_ptrace_attach_fail_reason): ... this.
4848 * linux-nat.c (linux_nat_attach): Adjust to use
4849 linux_ptrace_attach_fail_reason.
4851 2014-04-25 Pedro Alves <palves@redhat.com>
4853 * remote.c (struct remote_state): Remove multi_process_aware,
4854 non_stop_aware, cond_tracepoints, cond_breakpoints,
4855 breakpoint_commands, fast_tracepoints, static_tracepoints,
4856 install_in_trace, disconnected_tracing,
4857 enable_disable_tracepoints, string_tracing, and
4858 augmented_libraries_svr4_read fields.
4859 (remote_multi_process_p): Move further below in the file.
4860 (struct packet_config): Add comments.
4861 (update_packet_config): Delete function.
4862 (show_packet_config_cmd): Use packet_config_support.
4863 (add_packet_config_cmd): Use NULL as set callback.
4864 (packet_ok): "set remote foo-packet"-style commands no longer
4865 change config->supported -- adjust.
4866 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4867 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4868 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4869 (PACKET_QNonStop, PACKET_multiprocess_feature)
4870 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4871 (PACKET_DisconnectedTracing_feature)
4872 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4873 (set_remote_protocol_packet_cmd): Delete function.
4874 (packet_config_support, packet_support): New functions.
4875 (set_remote_protocol_Z_packet_cmd): Don't call
4876 update_packet_config.
4877 (remote_query_attached, remote_pass_signals)
4878 (remote_program_signals, remote_threads_info)
4879 (remote_threads_extra_info, remote_start_remote): Use
4881 (remote_start_remote): Use packet_config_support and
4883 (init_all_packet_configs): Set all packets to unknown support,
4884 instead of calling update_packet_config.
4885 (remote_check_symbols): Use packet_support.
4886 (remote_supported_packet): Unconditionally set the packet config's
4888 (remote_multi_process_feature, remote_non_stop_feature)
4889 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4890 (remote_breakpoint_commands_feature)
4891 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4892 (remote_install_in_trace_feature)
4893 (remote_disconnected_tracing_feature)
4894 (remote_enable_disable_tracepoint_feature)
4895 (remote_string_tracing_feature)
4896 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4897 (remote_protocol_features): Adjust to use remote_supported_packet
4898 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4899 "ConditionalTracepoints", "ConditionalBreakpoints",
4900 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4901 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4902 "EnableDisableTracepoints", and "tracenz".
4903 (remote_query_supported): Use packet_support.
4904 (remote_open_1): Adjust.
4905 (extended_remote_attach_1): Use packet_support. Switch on the
4906 result of packet_ok instead of checking whether the packet ended
4908 (remote_vcont_resume): Use packet_support.
4909 (remote_resume, remote_stop_ns, fetch_register_using_p)
4910 (remote_prepare_to_store, store_register_using_P)
4911 (check_binary_download, remote_write_bytes): Use packet_support.
4912 (remote_vkill): Use packet_support. Switch on the result of
4913 packet_ok instead of checking whether the packet ended up
4915 (extended_remote_supports_disable_randomization): Use
4917 (extended_remote_run): Switch on the result of packet_ok instead
4918 of checking whether the packet ended up disabled.
4919 (remote_insert_breakpoint, remote_remove_breakpoint)
4920 (remote_insert_watchpoint, remote_remove_watchpoint)
4921 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4923 (remote_search_memory): Use packet_config_support.
4924 (remote_get_thread_local_address, remote_get_tib_address)
4925 (remote_hostio_send_command, remote_can_execute_reverse): Use
4927 (remote_supports_cond_tracepoints)
4928 (remote_supports_cond_breakpoints)
4929 (remote_supports_fast_tracepoints)
4930 (remote_supports_static_tracepoints)
4931 (remote_supports_install_in_trace)
4932 (remote_supports_enable_disable_tracepoint)
4933 (remote_supports_string_tracing)
4934 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4935 the packet config says the feature is enabled or disabled.
4936 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4937 (remote_get_trace_status): Use packet_support.
4938 (remote_set_disconnected_tracing): Adjust to check whether the
4939 feature is enabled with packet_support.
4940 (remote_set_trace_buffer_size, remote_use_agent)
4941 (remote_can_use_agent, remote_supports_btrace): Use
4943 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4944 Use packet_config_support.
4945 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4946 the packet config says the feature is enabled or disabled.
4947 (set_range_stepping): Use packet_support.
4949 2014-04-25 Tom Tromey <tromey@redhat.com>
4951 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4954 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4956 * NEWS: Mention support for C99 variable length arrays.
4958 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4960 * ada-lang.c (standard_exc): Expand introductory comment.
4962 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4963 Walfred Tedeschi <walfred.tedeschi@intel.com>
4965 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4967 (amd64_linux_read_description): Add code to handle AVX512 xstate
4968 mask and return respective tdesc.
4969 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4970 and features/i386/x32-avx512-linux.c.
4971 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4972 (amd64_linux_core_read_description): Add code to handle AVX512
4973 xstate mask and return respective tdesc.
4974 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4975 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4977 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4978 (tdesc_amd64_avx512_linux): New prototype.
4979 (tdesc_x32_avx512_linux): Likewise.
4980 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4981 features/i386/x32-avx512.c.
4982 (amd64_ymm_avx512_names): New register names for pseudo
4984 (amd64_ymmh_avx512_names): New register names for raw registers
4986 (amd64_k_names): New register names for K registers.
4987 (amd64_zmmh_names): New register names for ZMM raw registers.
4988 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4989 (amd64_xmm_avx512_names): New register names for XMM16-31
4991 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4993 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4994 if feature is present.
4995 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4996 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4997 (AMD64_NUM_REGS): Adjust to new number of registers.
4998 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4999 registers supplied via XSTATE by AVX512 registers.
5000 (i386_linux_read_description): Add case for AVX512.
5001 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5002 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5003 (i386_linux_core_read_description): Add case for AVX512.
5004 (i386_linux_init_abi): Install supported register note section
5006 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5008 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5009 registers to be number of zmm7h + 1.
5010 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5011 * i386-tdep.c: Include features/i386/i386-avx512.c.
5012 (i386_zmm_names): Add ZMM pseudo register names array.
5013 (i386_zmmh_names): Add ZMM raw register names array.
5014 (i386_k_names): Add K raw register names array.
5015 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5016 registers. AVX512 has 16 more ZMM registers than there are YMM
5018 (i386_zmmh_regnum_p): Add function to look up register number of
5020 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5021 (i386_k_regnum_p): Likewise for K raw registers.
5022 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5023 registers added by AVX512.
5024 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5025 registers added by AVX512.
5026 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5028 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5029 (i386_pseudo_register_name): Add ZMM pseudo registers.
5030 (i386_zmm_type): Construct and return vector registers type for ZMM
5032 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5033 ZMM0-31 pseudo registers and K registers.
5034 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5035 and YMM16-31 registers from register cache.
5036 (i386_pseudo_register_write): Add code to write K, ZMM and
5038 (i386_register_reggroup_p): Add code to include/exclude AVX512
5039 registers in/from respective register groups.
5040 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5041 registers if feature is present in xcr0.
5042 (i386_gdbarch_init): Add code to initialize AVX512 feature
5043 variables in tdep structure, wire in pseudo registers and call
5044 initialize_tdesc_i386_avx512.
5045 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5047 (i386_regnum): Add AVX512 registers.
5048 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5049 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5050 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5051 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5053 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5054 (i386_ymm_avx512_regnum_p): Likewise.
5055 (i386_k_regnum_p): Likewise.
5056 (i386_zmm_regnum_p): Likewise.
5057 (i386_zmmh_regnum_p): Likewise.
5058 * i387-tdep.c : Update year in copyright notice.
5059 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5061 (XSAVE_YMM_AVX512_ADDR): New macro.
5062 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5064 (XSAVE_XMM_AVX512_ADDR): New macro.
5065 (xsave_avx512_k_offset): New table for K register offsets in
5067 (XSAVE_AVX512_K_ADDR): New macro.
5068 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5070 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5071 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5073 (i387_collect_xsave): Add code to collect AVX512 registers from
5075 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5076 of XMM16-31 registers.
5077 (I387_NUM_K_REGS): New define for number of K registers.
5078 (I387_K0_REGNUM): New define for K0 register number.
5079 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5080 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5081 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5083 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5084 (I387_XMM16_REGNUM): New define for XMM16 register number.
5085 (I387_YMM0_REGNUM): New define for YMM0 register number.
5086 (I387_KEND_REGNUM): New define for last K register number.
5087 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5088 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5090 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5092 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5094 * features/Makefile: Add AVX512 related files.
5095 * features/i386/32bit-avx512.xml: New file.
5096 * features/i386/64bit-avx512.xml: Likewise.
5097 * features/i386/amd64-avx512-linux.c: Likewise.
5098 * features/i386/amd64-avx512-linux.xml: Likewise.
5099 * features/i386/amd64-avx512.c: Likewise.
5100 * features/i386/amd64-avx512.xml: Likewise.
5101 * features/i386/i386-avx512-linux.c: Likewise.
5102 * features/i386/i386-avx512-linux.xml: Likewise.
5103 * features/i386/i386-avx512.c: Likewise.
5104 * features/i386/i386-avx512.xml: Likewise.
5105 * features/i386/x32-avx512-linux.c: Likewise.
5106 * features/i386/x32-avx512-linux.xml: Likewise.
5107 * features/i386/x32-avx512.c: Likewise.
5108 * features/i386/x32-avx512.xml: Likewise.
5109 * regformats/i386/amd64-avx512-linux.dat: New file.
5110 * regformats/i386/amd64-avx512.dat: Likewise.
5111 * regformats/i386/i386-avx512-linux.dat: Likewise.
5112 * regformats/i386/i386-avx512.dat: Likewise.
5113 * regformats/i386/x32-avx512-linux.dat: Likewise.
5114 * regformats/i386/x32-avx512.dat: Likewise.
5115 * NEWS: Add note about new support for AVX512.
5118 2014-04-23 Pedro Alves <palves@redhat.com>
5120 * breakpoint.c (insert_bp_location): Tolerate errors if the
5121 breakpoint is set in a user-loaded objfile.
5122 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5123 location is marked shlib_disabled. If the breakpoint is set in a
5124 user-loaded objfile is a GDB-side memory breakpoint, validate it
5125 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5126 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5128 * mem-break.c (memory_validate_breakpoint): New function.
5129 * objfiles.c (userloaded_objfile_contains_address_p): New
5131 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5132 * target.h (memory_validate_breakpoint): New declaration.
5134 2014-04-23 Pedro Alves <palves@redhat.com>
5136 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5137 the breakpoint is set in a shared library, only suppress
5138 errors for software breakpoints, not hardware breakpoints.
5140 2014-04-22 Pedro Alves <palves@redhat.com>
5142 * infrun.c (schedlock_applies): New function, factored out from
5143 find_thread_needs_step_over.
5144 (find_thread_needs_step_over): Use it.
5145 (switch_back_to_stepped_thread): Always clear trap_expected if the
5146 step over is finished. Return early if scheduler locking applies.
5147 Look for the stepping thread and a potential step-over thread with
5149 (currently_stepping_or_nexting_callback): Delete.
5151 2014-04-22 Nick Clifton <nickc@redhat.com>
5153 * NEWS: Mention that ARM sim now supports tracing.
5155 2014-04-22 Yao Qi <yao@codesourcery.com>
5157 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5159 * tracefile.c (tracefile_fetch_registers): ... it. New
5161 * tracefile.h (tracefile_fetch_registers): Declare.
5162 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5163 tracefile_fetch_registers.
5165 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5168 * windows-nat.c (thread_rec): Don't display a warning when
5169 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5170 fails for any reason, set th->suspended to -1, so that we don't
5171 try to resume such a thread. Also, don't return NULL in these
5172 cases, to avoid completely ruin the session due to "PC register is
5173 not available" error.
5174 (do_windows_fetch_inferior_registers): Check errors in
5175 GetThreadContext call.
5176 (windows_continue): Accept an additional argument KILLED; if not
5177 zero, ignore errors in the SetThreadContext call, since the
5178 inferior was killed and is shutting down.
5179 (windows_resume, get_windows_debug_event)
5180 (windows_create_inferior, windows_mourn_inferior)
5181 (windows_kill_inferior): All callers of windows_continue changed
5182 to adjust to its new calling sequence.
5184 2014-04-19 Yao Qi <yao@codesourcery.com>
5186 * ctf.c (ctf_open): Call post_create_inferior.
5188 2014-04-19 Yao Qi <yao@codesourcery.com>
5190 * ctf.c (handle_id): New static variable.
5191 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5192 value. Get the declaration of event "register" and get length
5193 of field "contents".
5195 2014-04-19 Yao Qi <yao@codesourcery.com>
5197 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5199 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5201 * valops.c (oload_method_static): Remove unnecessary argument
5202 METHOD. Update all callers.
5204 2014-04-18 Pedro alves <palves@redhat.com>
5205 Tom Tromey <tromey@redhat.com>
5208 * frame.c (get_prev_frame_1): Rename to ...
5209 (get_prev_frame_always): ... this, and make extern. Adjust.
5210 (skip_artificial_frames): Use get_prev_frame_always.
5211 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5212 (get_frame_unwind_stop_reason): Adjust to rename.
5213 * frame.h (get_prev_frame_always): Declare.
5214 * inline-frame.c: Include frame.h.
5215 (inline_frame_this_id): Use get_prev_frame_always.
5217 2014-04-18 Tristan Gingold <gingold@adacore.com>
5219 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5220 code by using bfd_mach_o_get_base_address.
5222 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5224 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5225 (spu_ax_pseudo_register_collect): New function.
5226 (spu_ax_pseudo_register_push_stack): Likewise.
5227 (spu_dwarf_reg_to_regnum): Likewise.
5228 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5230 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5232 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5233 Replace FRAME argument with FRAME_ID.
5234 * gdbarch.c, gdbarch.h: Regenerate.
5235 * findvar.c (default_value_from_register): Add GDBARCH argument;
5236 replace FRAME by FRAME_ID. No longer call get_frame_id.
5237 (value_from_register): Update call to gdbarch_value_from_register.
5238 * value.h (default_value_from_register): Update prototype.
5239 * s390-linux-tdep.c (s390_value_from_register): Update interface
5240 and call to default_value_from_register.
5241 * spu-tdep.c (spu_value_from_register): Likewise.
5243 * findvar.c (address_from_register): Remove TYPE argument.
5244 Do not call value_from_register; use gdbarch_value_from_register
5245 with null_frame_id instead.
5246 * value.h (address_from_register): Update prototype.
5247 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5248 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5249 address_from_register interface change.
5251 2014-04-17 Yao Qi <yao@codesourcery.com>
5253 * gdbtypes.h: Update comments to link to types and macros'
5256 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5258 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5260 2014-04-16 Keith Seitz <keiths@redhat.com>
5263 * dwarf2read.c (skip_one_die): Check that all relative-offset
5264 sibling DIEs fall within range of the current reader's buffer.
5265 (read_partial_die): Likewise.
5267 2014-04-16 Keith Seitz <keiths@redhat.com>
5270 * cp-namespace.c (lookup_symbol_file): If the type name of
5271 `this' is NULL, return immediately.
5273 2014-04-14 Keith Seitz <keiths@redhat.com>
5276 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5277 from symbol_matches_domain in symtab.c. All local callers
5278 of symbol_matches_domain updated.
5279 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5280 search STRUCT_DOMAIN.
5281 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5282 independently. standard_lookup will do that automatically.
5283 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5284 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5285 (cp_lookup_symbol_in_namespace): Likewise.
5286 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5287 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5288 may return a STRUCT_DOMAIN match.
5289 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5290 * cp-support.c: Include language.h.
5291 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5293 * psymtab.c (match_partial_symbol): Compare the requested
5294 domain with the symbol's domain directly.
5295 (lookup_partial_symbol): Likewise.
5296 * symtab.c (lookup_symbol_in_language): Explain when/why
5297 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5298 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5299 appropriate languages.
5300 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5301 and moved to ada-lang.c
5302 (lookup_block_symbol): Explain that this function only returns
5303 symbol matching the requested DOMAIN.
5304 Compare the requested domain with the symbol's domain directly.
5305 (iterate_over_symbols): Compare the requested domain with the
5306 symbol's domain directly.
5307 * symtab.h (symbol_matches_domain): Remove.
5309 2014-04-14 Tom Tromey <tromey@redhat.com>
5312 * c-exp.y (type_aggregate_p): New function.
5313 (qualified_name, classify_inner_name): Use it.
5314 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5315 and TYPE_TARGET_TYPE of an enum type.
5316 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5318 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5319 handle TYPE_DECLARED_CLASS.
5320 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5322 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5323 * valops.c (enum_constant_from_type): New function.
5324 (value_aggregate_elt): Use it.
5325 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5328 2014-04-14 Tom Tromey <tromey@redhat.com>
5330 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5331 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5333 * value.h (value_aggregate_elt): Update.
5335 2014-04-14 Tom Tromey <tromey@redhat.com>
5337 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5339 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5341 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5342 (evaluate_subexp_standard): Pass noside argument.
5343 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5344 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5345 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5346 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5347 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5349 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5351 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5352 points to a constant blob.
5354 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5356 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5357 property and store it as the high bound and flag the range accordingly.
5358 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5359 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5360 * gdbtypes.h (enum range_flags): New enum.
5361 (struct range_bounds): Add flags member.
5363 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5365 * c-typeprint.c (c_type_print_varspec_suffix): Added
5366 check for not yet resolved high bound. If unresolved, print
5367 "variable length" string to the console instead of random
5370 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5372 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5374 (ada_template_to_fixed_record_type_1): Likewise.
5375 (ada_to_fixed_type_1): Likewise.
5376 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5377 (cp_print_value): Likewise.
5378 * d-valprint.c (dynamic_array_type): Likewise.
5379 * findvar.c (address_of_variable): Likewise.
5380 * jv-valprint.c (java_value_print): Likewise.
5381 * valops.c (value_ind): Likewise.
5382 * value.c (coerce_ref): Likewise.
5384 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5386 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5387 value and retrieve the dynamic type size.
5389 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5391 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5392 passed to sizeof is dynamic evaluate the argument to compute the length.
5394 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5395 Joel Brobecker <brobecker@adacore.com>
5397 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5398 (dwarf2_evaluate_property): New function.
5399 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5400 * dwarf2read.c (attr_to_dynamic_prop): New function.
5401 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5403 * gdbtypes.c: Include dwarf2loc.h.
5404 (is_dynamic_type): New function.
5405 (resolve_dynamic_type): New function.
5406 (resolve_dynamic_bounds): New function.
5407 (get_type_length): New function.
5408 (check_typedef): Use get_type_length to compute type length.
5409 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5410 (TYPE_LOW_BOUND_KIND): New macro.
5411 (is_dynamic_type): New function prototype.
5412 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5413 to resolve dynamic properties of the type. Update comment.
5414 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5416 2014-04-14 Richard Henderson <rth@redhat.com>
5418 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5420 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5421 Doug Evans <xdje42@gmail.com>
5423 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5424 dereference TYPE_CODE_REF values.
5426 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5428 Revert the following changes due to regressions:
5430 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5431 (dwarf2_evaluate_property): New function.
5432 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5433 * dwarf2read.c (attr_to_dynamic_prop): New function.
5434 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5436 * gdbtypes.c: Include dwarf2loc.h.
5437 (is_dynamic_type): New function.
5438 (resolve_dynamic_type): New function.
5439 (resolve_dynamic_bounds): New function.
5440 (get_type_length): New function.
5441 (check_typedef): Use get_type_length to compute type length.
5442 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5443 (TYPE_LOW_BOUND_KIND): New macro.
5444 (is_dynamic_type): New function prototype.
5445 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5446 to resolve dynamic properties of the type. Update comment.
5447 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5449 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5450 passed to sizeof is dynamic evaluate the argument to compute the length.
5452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5453 value and retrieve the dynamic type size.
5455 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5456 (ada_template_to_fixed_record_type_1): Likewise.
5457 (ada_to_fixed_type_1): Likewise.
5458 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5459 (cp_print_value): Likewise.
5460 * d-valprint.c (dynamic_array_type): Likewise.
5461 * eval.c (evaluate_subexp_with_coercion): Likewise.
5462 * findvar.c (address_of_variable): Likewise.
5463 * jv-valprint.c (java_value_print): Likewise.
5464 * valops.c (value_ind): Likewise.
5465 * value.c (coerce_ref): Likewise.
5467 * c-typeprint.c (c_type_print_varspec_suffix): Added
5468 check for not yet resolved high bound. If unresolved, print
5469 "variable length" string to the console instead of random
5472 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5473 property and store it as the high bound and flag the range accordingly.
5474 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5475 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5476 * gdbtypes.h (enum range_flags): New enum.
5477 (struct range_bounds): Add flags member.
5479 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5480 points to a constant blob.
5482 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5483 (evaluate_subexp_standard): Pass noside argument.
5484 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5485 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5486 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5487 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5488 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5490 2014-04-11 Keith Seitz <keiths@redhat.com>
5493 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5494 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5497 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5499 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5500 (evaluate_subexp_standard): Pass noside argument.
5501 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5502 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5503 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5504 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5505 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5509 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5510 points to a constant blob.
5512 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5514 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5515 property and store it as the high bound and flag the range accordingly.
5516 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5517 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5518 * gdbtypes.h (enum range_flags): New enum.
5519 (struct range_bounds): Add flags member.
5521 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5523 * c-typeprint.c (c_type_print_varspec_suffix): Added
5524 check for not yet resolved high bound. If unresolved, print
5525 "variable length" string to the console instead of random
5528 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5530 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5531 (ada_template_to_fixed_record_type_1): Likewise.
5532 (ada_to_fixed_type_1): Likewise.
5533 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5534 (cp_print_value): Likewise.
5535 * d-valprint.c (dynamic_array_type): Likewise.
5536 * eval.c (evaluate_subexp_with_coercion): Likewise.
5537 * findvar.c (address_of_variable): Likewise.
5538 * jv-valprint.c (java_value_print): Likewise.
5539 * valops.c (value_ind): Likewise.
5540 * value.c (coerce_ref): Likewise.
5542 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5544 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5545 value and retrieve the dynamic type size.
5547 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5549 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5550 passed to sizeof is dynamic evaluate the argument to compute the length.
5552 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5554 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5555 (dwarf2_evaluate_property): New function.
5556 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5557 * dwarf2read.c (attr_to_dynamic_prop): New function.
5558 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5560 * gdbtypes.c: Include dwarf2loc.h.
5561 (is_dynamic_type): New function.
5562 (resolve_dynamic_type): New function.
5563 (resolve_dynamic_bounds): New function.
5564 (get_type_length): New function.
5565 (check_typedef): Use get_type_length to compute type length.
5566 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5567 (TYPE_LOW_BOUND_KIND): New macro.
5568 (is_dynamic_type): New function prototype.
5569 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5570 to resolve dynamic properties of the type. Update comment.
5571 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5575 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5576 declaring high/low bounds and change uses accordingly. Call
5577 create_range_type instead of create_static_range_type.
5578 * gdbtypes.c (create_range_type): New function.
5579 (create_range_type): Convert bounds into struct bound_prop and pass
5580 them to create_range_type.
5581 * gdbtypes.h (struct bound_prop): New struct.
5582 (create_range_type): New function prototype.
5583 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5584 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5585 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5587 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5589 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5591 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5592 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5593 * ada-lang.c: All uses of create_range_type updated.
5594 * coffread.c: All uses of create_range_type updated.
5595 * dwarf2read.c: All uses of create_range_type updated.
5596 * f-exp.y: All uses of create_range_type updated.
5597 * m2-valprint.c: All uses of create_range_type updated.
5598 * mdebugread.c: All uses of create_range_type updated.
5599 * stabsread.c: All uses of create_range_type updated.
5600 * valops.c: All uses of create_range_type updated.
5601 * valprint.c: All uses of create_range_type updated.
5603 2014-04-10 Pedro Alves <palves@redhat.com>
5605 * breakpoint.c (single_step_breakpoints)
5606 (single_step_gdbarch): Move up in the file.
5607 (one_breakpoint_xfer_memory): New function, factored out from ...
5608 (breakpoint_xfer_memory): ... here. Also process single-step
5611 2014-04-09 Tristan Gingold <gingold@adacore.com>
5613 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5615 (darwin_decode_exception_message): Free port only after use.
5617 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5619 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5620 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5621 when setting the size of call_length.
5623 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5625 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5626 dereference TYPE_CODE_REF values.
5628 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5630 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5631 end of warning message.
5633 2014-04-03 Doug Evans <dje@google.com>
5635 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5636 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5638 2014-04-02 Alan Modra <amodra@gmail.com>
5640 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5641 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5642 (struct symbol_file_add_from_memory_args): Add size field.
5643 (find_vdso_size): New function.
5644 (add_vsyscall_page): Attempt to find vdso size.
5646 2014-04-01 Doug Evans <dje@google.com>
5648 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5650 2014-04-01 Tristan Gingold <gingold@adacore.com>
5652 * darwin-nat.c (darwin_encode_reply): Add prototype.
5653 (darwin_decode_exception_message): Reply to unknown inferiors.
5654 (darwin_decode_message): Handle message by id. Ignore message
5655 to unknown inferior.
5656 (darwin_wait): Discard unknown messages, add debug trace.
5658 2014-03-31 Doug Evans <dje@google.com>
5660 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5663 2014-03-31 Doug Evans <dje@google.com>
5665 New option "set print symbol-loading".
5667 * solib.c (solib_read_symbols): Only print symbol loading messages
5669 (solib_add): If symbol loading is in "brief" mode, notify user
5670 symbols are being loaded.
5671 (reload_shared_libraries_1): Ditto.
5672 * symfile.c (print_symbol_loading_off): New static global.
5673 (print_symbol_loading_brief): New static global.
5674 (print_symbol_loading_full): New static global.
5675 (print_symbol_loading_enums): New static global.
5676 (print_symbol_loading): New static global.
5677 (print_symbol_loading_p): New function.
5678 (symbol_file_add_with_addrs): Only print symbol loading messages
5680 (_initialize_symfile): Register "print symbol-loading" set/show
5682 * symfile.h (print_symbol_loading_p): Declare.
5684 2014-03-30 Doug Evans <xdje42@gmail.com>
5686 * infrun.c (set_last_target_status): New function.
5687 (handle_inferior_event): Call it.
5689 2014-03-30 Doug Evans <xdje42@gmail.com>
5691 * inferior.h (enum stop_kind): Improve comment.
5693 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5695 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5696 a reference, strip the reference layer before calling
5697 the lang_ops value_has_mutated callback.
5699 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5701 Remove some globals from our parser.
5702 * language.c (unk_lang_parser): Add "struct parser_state"
5704 * language.h (struct language_defn) <la_parser>: Likewise.
5705 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5706 (initialize_expout): Add "struct parser_state" argument.
5707 Rewrite function to use the parser state.
5708 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5709 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5710 write_exp_elt_longcst, write_exp_elt_dblcst,
5711 write_exp_elt_decfloatcst, write_exp_elt_type,
5712 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5713 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5714 write_dollar_variable): Likewise.
5715 (parse_exp_in_context_1): Use parser state.
5716 (insert_type_address_space): Add "struct parser_state" argument.
5718 (increase_expout_size): New function.
5719 * parser-defs.h: Forward declare "struct language_defn" and
5720 "struct parser_state".
5721 (expout, expout_size, expout_ptr): Remove extern declarations.
5722 (parse_gdbarch, parse_language): Rewrite macro declarations to
5723 accept the parser state.
5724 (struct parser_state): New struct.
5725 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5726 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5727 write_exp_elt_decfloatcst, write_exp_elt_type,
5728 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5729 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5730 write_exp_msymbol, write_dollar_variable,
5731 mark_struct_expression, insert_type_address_space): Add "struct
5732 parser_state" argument.
5733 (increase_expout_size): New function.
5734 * utils.c (do_clear_parser_state): New function.
5735 (make_cleanup_clear_parser_state): Likewise.
5736 * utils.h (make_cleanup_clear_parser_state): New function
5738 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5739 Update calls to write_exp* in order to pass the parser state.
5740 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5741 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5742 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5743 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5744 * stap-probe.c (stap_parse_register_operand): Likewise.
5745 (stap_parse_single_operand): Likewise.
5746 (stap_parse_argument_1): Likewise.
5747 (stap_parse_argument): Use parser state.
5748 * stap-probe.h: Include "parser-defs.h".
5749 (struct stap_parse_info) <pstate>: New field.
5750 * c-exp.y (parse_type): Rewrite to use parser state.
5751 (yyparse): Redefine to c_parse_internal.
5752 (pstate): New global variable.
5753 (parse_number): Add "struct parser_state" argument.
5754 (write_destructor_name): Likewise.
5755 (type_exp): Update calls to write_exp* and similars in order to
5757 (exp1, exp, variable, qualified_name, space_identifier,
5758 typename, typebase): Likewise.
5759 (write_destructor_name, parse_number, lex_one_token,
5760 classify_name, classify_inner_name, c_parse): Add "struct
5761 parser_state" argument. Update function to use parser state.
5762 * c-lang.h: Forward declare "struct parser_state".
5763 (c_parse): Add "struct parser_state" argument.
5764 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5765 (yyparse): Redefine macro to ada_parse_internal.
5766 (pstate): New variable.
5767 (write_int, write_object_renaming, write_var_or_type,
5768 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5769 type_int, type_long, type_long_long, type_float, type_double,
5770 type_long_double, type_char, type_boolean, type_system_address):
5771 Add "struct parser_state" argument.
5772 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5773 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5774 var_or_type, aggregate, aggregate_component_list,
5775 positional_list, others, component_group,
5776 component_associations): Update calls to write_exp* and similar
5777 functions in order to use parser state.
5778 (ada_parse, write_var_from_sym, write_int,
5779 write_exp_op_with_string, write_object_renaming,
5780 find_primitive_type, write_selectors, write_ambiguous_var,
5781 write_var_or_type, write_name_assoc, type_int, type_long,
5782 type_long_long, type_float, type_double, type_long_double,
5783 type_char, type_boolean, type_system_address): Add "struct
5784 parser_state" argument. Adjust function to use parser state.
5785 * ada-lang.c (parse): Likewise.
5786 * ada-lang.h: Forward declare "struct parser_state".
5787 (ada_parse): Add "struct parser_state" argument.
5788 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5789 calls to both functions.
5790 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5792 (yyparse): Redefine macro to f_parse_internal.
5793 (pstate): New variable.
5794 (parse_number): Add "struct parser_state" argument.
5795 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5796 and similars in order to use parser state.
5797 (parse_number): Adjust code to use parser state.
5799 (f_parse): New function.
5800 * f-lang.h: Forward declare "struct parser_state".
5801 (f_parse): Add "struct parser_state" argument.
5802 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5804 (yyparse): Redefine macro for java_parse_internal.
5805 (pstate): New variable.
5806 (push_expression_name, push_expression_name, insert_exp): Add
5807 "struct parser_state" argument.
5808 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5809 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5810 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5811 PostIncrementExpression, PostDecrementExpression,
5812 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5813 UnaryExpressionNotPlusMinus, CastExpression,
5814 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5815 RelationalExpression, EqualityExpression, AndExpression,
5816 ExclusiveOrExpression, InclusiveOrExpression,
5817 ConditionalAndExpression, ConditionalOrExpression,
5818 ConditionalExpression, Assignment, LeftHandSide): Update
5819 calls to write_exp* and similars in order to use parser state.
5820 (parse_number): Ajust code to use parser state.
5822 (java_parse): New function.
5823 (push_variable): Add "struct parser_state" argument. Adjust
5824 code to user parser state.
5825 (push_fieldnames, push_qualified_expression_name,
5826 push_expression_name, insert_exp): Likewise.
5827 * jv-lang.h: Forward declare "struct parser_state".
5828 (java_parse): Add "struct parser_state" argument.
5829 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5831 (yyparse): Redefine macro to m2_parse_internal.
5832 (pstate): New variable.
5833 (type_exp, exp, fblock, variable, type): Update calls to
5834 write_exp* and similars to use parser state.
5836 (m2_parse): New function.
5837 * m2-lang.h: Forward declare "struct parser_state".
5838 (m2_parse): Add "struct parser_state" argument.
5839 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5840 * objc-lang.h: Forward declare "struct parser_state".
5841 (end_msglist): Add "struct parser_state" argument.
5842 * p-exp.y (parse_type): Rewrite macro to use parser state.
5843 (yyparse): Redefine macro to pascal_parse_internal.
5844 (pstate): New variable.
5845 (parse_number): Add "struct parser_state" argument.
5846 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5847 write_exp* and similars in order to use parser state.
5848 (parse_number, yylex): Adjust code to use parser state.
5849 (pascal_parse): New function.
5850 * p-lang.h: Forward declare "struct parser_state".
5851 (pascal_parse): Add "struct parser_state" argument.
5852 * go-exp.y (parse_type): Rewrite macro to use parser state.
5853 (yyparse): Redefine macro to go_parse_internal.
5854 (pstate): New variable.
5855 (parse_number): Add "struct parser_state" argument.
5856 (type_exp, exp1, exp, variable, type): Update calls to
5857 write_exp* and similars in order to use parser state.
5858 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5859 to use parser state.
5860 (go_parse): Likewise.
5861 * go-lang.h: Forward declare "struct parser_state".
5862 (go_parse): Add "struct parser_state" argument.
5864 2014-03-27 Doug Evans <dje@google.com>
5866 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5868 2014-03-27 Doug Evans <dje@google.com>
5870 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5871 Remove argument abbrev_section. All callers updated.
5873 2014-03-27 Doug Evans <dje@google.com>
5875 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5876 addr_base, ranges_base.
5878 2014-03-26 Keith Seitz <keiths@redhat.com>
5880 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5881 types, not VAR_DOMAIN.
5883 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5885 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5887 * features/nios2-linux.c: Regenerated.
5888 * features/nios2.c: Regenerated.
5890 2014-03-25 Pedro Alves <palves@redhat.com>
5892 * cli/cli-script.c (script_from_file): Force the interpreter to
5895 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5897 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5898 small stack allocation.
5900 2014-03-24 Tristan Gingold <gingold@adacore.com>
5902 * darwin-nat.c (exc_server): Remove unused prototype.
5903 (darwin_dump_message): Correctly display data on x86_64.
5904 (darwin_encode_reply): Fix style.
5905 Add comments and fix indentation.
5907 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5909 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5911 2014-03-22 Doug Evans <xdje42@gmail.com>
5913 * infcmd.c: Whitespace fixes.
5914 (interrupt_command): Merge two function comments into one.
5916 2014-03-22 Doug Evans <xdje42@gmail.com>
5918 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5921 2014-03-22 Yao Qi <yao@codesourcery.com>
5923 * remote.c (target_read_live_memory): Remove.
5924 (memory_xfer_live_readonly_partial): Rename it to
5925 remote_xfer_live_readonly_partial. Remove argument 'object'.
5926 All callers updated. Call remote_read_bytes_1
5927 instead of target_read_live_memory.
5928 * tracepoint.c (set_traceframe_number): Remove.
5929 (make_cleanup_restore_traceframe_number): Likewise .
5930 * tracepoint.h (set_traceframe_number): Remove declaration.
5931 (make_cleanup_restore_traceframe_number): Likewise.
5933 2014-03-22 Yao Qi <yao@codesourcery.com>
5935 * remote.c (remote_read_bytes): Move code on reading from the
5937 (remote_read_bytes_1): ... here. New function.
5939 2014-03-22 Yao Qi <yao@codesourcery.com>
5941 * ctf.c (ctf_xfer_partial): Check the return value of
5942 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5943 return TARGET_XFER_UNAVAILABLE.
5944 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5945 * target.c (target_read_live_memory): Move it to remote.c.
5946 (memory_xfer_live_readonly_partial): Likewise.
5947 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5948 * remote.c (target_read_live_memory): Moved from target.c.
5949 (memory_xfer_live_readonly_partial): Likewise.
5950 (remote_read_bytes): Factored out from
5951 memory_xfer_partial_1.
5953 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5955 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5958 2014-03-21 Pedro Alves <palves@redhat.com>
5960 * infrun.c (normal_stop): Extend comment.
5962 2014-03-21 Hui Zhu <hui@codesourcery.com>
5963 Pedro Alves <palves@redhat.com>
5965 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5967 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5968 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5969 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5971 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5973 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5974 `z' formatted output modifier.
5976 2014-03-20 Tom Tromey <tromey@redhat.com>
5977 Sergio Durigan Junior <sergiodj@redhat.com>
5979 * probe.c (parse_probes): Turn assert into an ordinary error.
5980 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5981 exceptions when parsing probes. Rearrange the code for clarity.
5983 2014-03-20 Tom Tromey <tromey@redhat.com>
5986 * top.c (execute_command): Only dispatch events if the command
5989 2014-03-20 Tom Tromey <tromey@redhat.com>
5992 * infcall.c: Include event-top.h.
5993 (run_inferior_call): Call async_disable_stdin if needed.
5995 2014-03-20 Pedro Alves <palves@redhat.com>
5997 * infrun.c (prepare_to_proceed): Delete.
5998 (thread_still_needs_step_over): New function.
5999 (find_thread_needs_step_over): New function.
6000 (proceed): If the current thread needs a step-over, set its
6001 steping_over_breakpoint flag. Adjust to use
6002 find_thread_needs_step_over instead of prepare_to_proceed.
6003 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6004 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6006 (switch_back_to_stepped_thread): Step over breakpoints of all
6007 threads not the stepping thread, before switching back to the
6010 2014-03-20 Pedro Alves <palves@redhat.com>
6012 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6014 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6015 * infrun.c (saved_singlestep_ptid)
6016 (stepping_past_singlestep_breakpoint): Delete.
6017 (resume): Remove stepping_past_singlestep_breakpoint handling.
6018 (proceed): Store the prev_pc of the stepping thread too.
6019 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6021 (enum infwait_states): Delete infwait_thread_hop_state.
6022 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6024 (handle_inferior_event): Adjust.
6025 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6026 handling and the thread-hop code. Before removing single-step
6027 breakpoints, check whether the thread hit a single-step breakpoint
6028 of another thread. If it did, the trap is not a random signal.
6029 (switch_back_to_stepped_thread): If the event thread hit a
6030 single-step breakpoint, unblock it before switching to the
6031 stepping thread. Handle the case of the stepped thread having
6033 (keep_going): Handle the case of the current thread moving past a
6034 single-step breakpoint.
6036 2014-03-20 Pedro Alves <palves@redhat.com>
6039 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6040 are being stepped over.
6041 (breakpoint_address_match): Make extern.
6042 * breakpoint.h (breakpoint_address_match): New declaration.
6043 * inferior.h (stepping_past_instruction_at): New declaration.
6044 * infrun.c (struct step_over_info): New type.
6045 (step_over_info): New global.
6046 (set_step_over_info, clear_step_over_info)
6047 (stepping_past_instruction_at): New functions.
6048 (handle_inferior_event): Clear the step-over info when
6049 trap_expected is cleared.
6050 (resume): Remove now stale comment.
6051 (clear_proceed_status): Clear step-over info.
6052 (proceed): Adjust step-over handling to set or clear the step-over
6053 info instead of removing all breakpoints.
6054 (handle_signal_stop): When setting up a thread-hop, don't remove
6056 (stop_stepping): Clear step-over info.
6057 (keep_going): Adjust step-over handling to set or clear step-over
6058 info and then always inserting breakpoints, instead of removing
6059 all breakpoints when stepping over one.
6061 2014-03-20 Pedro Alves <palves@redhat.com>
6063 * infrun.c (previous_inferior_ptid): Adjust comment.
6064 (deferred_step_ptid): Delete.
6065 (infrun_thread_ptid_changed, prepare_to_proceed)
6066 (init_wait_for_inferior): Adjust.
6067 (handle_signal_stop): Delete deferred_step_ptid handling.
6069 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6072 * defs.h (sync_quit_force_run): New declaration.
6073 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6074 * event-top.c (async_sigterm_handler): New declaration.
6075 (async_sigterm_token): New variable.
6076 (async_init_signals): Create also async_sigterm_token.
6077 (async_sigterm_handler): New function.
6078 (sync_quit_force_run): New variable.
6079 (handle_sigterm): Replace quit_force call by other calls.
6080 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6082 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6084 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6085 offset into SPE pseudo registers.
6087 2014-03-18 Pedro Alves <palves@redhat.com>
6090 * inferior.h (print_stop_event): Declare.
6091 * infrun.c (print_stop_event): New, factored out from ...
6092 (normal_stop): ... this.
6093 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6094 of bpstat_print/print_stack_frame.
6096 2014-03-17 Tom Tromey <tromey@redhat.com>
6098 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6100 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6102 * ada-lang.c (decode_constrained_packed_array): Perform a
6103 minimal coercion for reference with coerce_ref instead of
6106 2014-03-17 Tristan Gingold <gingold@adacore.com>
6108 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6109 (darwin_solib_create_inferior_hook): Emit a warning if version
6112 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6114 * python/py-value.c (get_field_flag): Cast flag_name argument to
6115 PyObject_GetAttrString to support Python 2.4.
6117 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6119 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6120 (Global Maintainers): Remove Jan Kratochvil.
6122 2014-03-14 Pedro Alves <palves@redhat.com>
6124 * inferior.h (terminal_ours_for_output): Rename to ...
6125 (child_terminal_ours_for_output): ... this.
6126 (terminal_save_ours): Rename to ...
6127 (child_terminal_save_ours): ... this.
6128 (terminal_ours): Rename to ...
6129 (child_terminal_ours): ... this.
6130 (terminal_inferior): Rename to ...
6131 (child_terminal_inferior): ... this.
6132 (terminal_init_inferior): Rename to ...
6133 (child_terminal_init_inferior): ... this.
6134 (terminal_init_inferior_with_pgrp): Rename to ...
6135 (child_terminal_init_inferior_with_pgrp): ... this.
6136 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6137 (child_terminal_init_with_pgrp): ... this.
6138 (terminal_save_ours): Rename to ...
6139 (child_terminal_save_ours): ... this.
6140 (terminal_init_inferior): Rename to ...
6141 (child_terminal_init): ... this. Adjust.
6142 (terminal_inferior): Rename to ...
6143 (child_terminal_inferior): ... this.
6144 (terminal_ours_for_output): Rename to ...
6145 (child_terminal_ours_for_output): ... this. Adjust.
6146 (terminal_ours): Rename to ...
6147 (child_terminal_ours): ... this.
6148 (terminal_ours_1): Rename to ...
6149 (child_terminal_ours_1): ... this. Adjust.
6150 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6151 * windows-nat.c (do_initial_windows_stuff): Adjust.
6152 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6153 (gnu_terminal_init): ... this. Adjust.
6154 (gnu_target): Adjust.
6155 * inf-child.c (inf_child_target): Adjust.
6157 2014-03-13 Doug Evans <xdje42@gmail.com>
6160 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6163 2014-03-13 Doug Evans <xdje42@gmail.com>
6165 * value.c (record_latest_value): Call release_value_or_incref
6166 instead of release_value.
6168 2014-03-13 Pedro Alves <palves@redhat.com>
6170 * procfs.c (procfs_target): Don't override to_shortname,
6171 to_longname or to_doc.
6173 2014-03-13 Pedro Alves <palves@redhat.com>
6175 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6176 Unix in user visible strings.
6178 2014-03-12 Stan Shebs <stan@codesourcery.com>
6180 * gdbtypes.h: Annotate comments for Doxygen, add a page
6181 block comment with some general info.
6183 2014-03-12 Pedro Alves <palves@redhat.com>
6185 * infcmd.c (prepare_execution_command): New function, factored out
6186 from several execution commands.
6187 (run_command_1, continue_command, step_1, jump_command)
6188 (signal_command, until_command, advance_command, finish_command)
6189 (attach_command): Use prepare_execution_command.
6191 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6193 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6196 (struct arm_linux_thread_points): Removed.
6197 (struct arm_linux_process_info): New.
6198 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6199 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6200 (arm_linux_find_breakpoints_by_tid): Removed.
6201 (struct arch_lwp_info): New.
6202 (arm_linux_find_process_pid): New functions.
6203 (arm_linux_add_process): New functions.
6204 (arm_linux_process_info_get): New functions.
6205 (arm_linux_forget_process): New function.
6206 (arm_linux_get_debug_reg_state): New function.
6207 (struct update_registers_data): New.
6208 (update_registers_callback): New function.
6209 (arm_linux_insert_hw_breakpoint1): Updated.
6210 (arm_linux_remove_hw_breakpoint1): Updated.
6211 (arm_linux_insert_hw_breakpoint): Updated.
6212 (arm_linux_remove_hw_breakpoint): Updated.
6213 (arm_linux_insert_watchpoint): Updated.
6214 (arm_linux_remove_watchpoint): Updated.
6215 (arm_linux_new_thread): Updated.
6216 (arm_linux_prepare_to_resume): New function.
6217 (arm_linux_new_fork): New function.
6218 (_initialize_arm_linux_nat): Updated.
6220 2014-03-12 Pedro Alves <palves@redhat.com>
6222 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6224 2014-03-12 Tom Tromey <tromey@redhat.com>
6226 * inf-child.c (return_zero): New function.
6227 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6228 * aix-thread.c (aix_thread_inferior_created): New function.
6229 (aix_thread_attach): Remove.
6230 (init_aix_thread_ops): Don't set to_attach.
6231 (_initialize_aix_thread): Register inferior_created observer.
6232 * corelow.c (init_core_ops): Don't set to_attach or
6234 * exec.c (init_exec_ops): Don't set to_attach or
6236 * infcmd.c (run_command_1): Use find_run_target. Make direct
6238 (attach_command): Use find_attach_target. Make direct target
6240 * record-btrace.c (init_record_btrace_ops): Don't set
6242 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6244 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6245 set to_create_inferior.
6246 * target.c (complete_target_initialization): Add assertion.
6247 (target_create_inferior): Remove.
6248 (find_default_attach, find_default_create_inferior): Remove.
6249 (find_attach_target, find_run_target): New functions.
6250 (find_default_is_async_p, find_default_can_async_p)
6251 (target_supports_non_stop, target_attach): Remove.
6252 (init_dummy_target): Don't set to_create_inferior or
6253 to_supports_non_stop.
6254 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6255 TARGET_DEFAULT_FUNC.
6256 <to_create_inferior>: Add comment.
6257 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6258 TARGET_DEFAULT_RETURN.
6259 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6260 (find_attach_target, find_run_target): Declare.
6261 (target_create_inferior): Remove.
6262 (target_has_execution_1): Update comment.
6263 (target_supports_non_stop): Remove.
6264 * target-delegates.c: Rebuild.
6266 2014-03-12 Pedro Alves <palves@redhat.com>
6268 * inf-child.h: Update comment to not mention Unix.
6270 2014-03-12 Pedro Alves <palves@redhat.com>
6272 * inf-child.c: Update top comment to not mention Unix. Add
6273 generic comment describing how this target is meant to be used.
6274 (inf_child_post_attach, inf_child_post_startup_inferior)
6275 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6278 2014-03-12 Pedro Alves <palves@redhat.com>
6280 * nto-procfs.c: Include inf-child.h.
6281 (procfs_ops): Delete global.
6282 (procfs_can_run): Delete method.
6283 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6284 target pointer instead of referencing procfs_ops.
6285 (procfs_prepare_to_store): Delete.
6286 (init_procfs_ops): Delete function.
6287 (procfs_target): New function, based on init_procfs_ops, but
6288 inherit inf_child_target.
6289 (_initialize_procfs): Use procfs_target.
6291 2014-03-12 Pedro Alves <palves@redhat.com>
6293 * windows-nat.c: Include inf-child.h.
6294 (windows_ops): Delete global.
6295 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6297 (init_windows_ops): Delete function.
6298 (windows_target): New function, based on init_windows_ops, but
6299 inherit inf_child_target.
6300 (_initialize_windows_nat): Use windows_target. Install x86
6301 specific target methods here.
6303 2014-03-10 Doug Evans <xdje42@gmail.com>
6305 * guile/guile.c (call_initialize_gdb_module): New function.
6306 (initialize_guile): Replace call to scm_init_guile with call to
6309 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6311 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6312 in call to TYPE_CODE macro.
6314 2014-03-10 Jerome Guitton <guitton@adacore.com>
6316 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6317 Resolve tagged types to full view.
6319 2014-03-10 Hui Zhu <hui@codesourcery.com>
6321 * target.h (target_insert_breakpoint): Remove "hardware" from its
6324 2014-03-07 Doug Evans <dje@google.com>
6326 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6328 2014-03-07 Doug Evans <dje@google.com>
6330 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6331 Remove unused local comp_dir_attr. Assert exactly one of
6332 stub_comp_unit_die, stub_comp_dir is non-NULL.
6334 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6336 * target.h (complete_target_initialization, add_target):
6339 2014-03-07 Pedro Alves <palves@redhat.com>
6341 * go32-nat.c: Include inf-child.h.
6342 (go32_ops): Delete global.
6343 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6345 (go32_create_inferior): Push the passed in target pointer instead
6346 of referencing go32_ops.
6347 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6348 (go32_target): New function, based on init_go32_ops, but inherit
6350 (_initialize_go32_nat): Use go32_target. Move parts of
6353 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6355 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6356 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6357 SYMBOL_VALUE_ADDRESS.
6358 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6360 2014-03-06 Yao Qi <yao@codesourcery.com>
6362 * breakpoint.c (get_tracepoint_by_number): Remove argument
6363 optional_p. All callers updated. Adjust comments. Update
6365 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6367 2014-03-06 Yao Qi <yao@codesourcery.com>
6369 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6370 early if get_number returns zero. Use 'p' instead of 'args'.
6372 2014-03-06 Yao Qi <yao@codesourcery.com>
6374 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6377 2014-03-06 Yao Qi <yao@codesourcery.com>
6379 PR breakpoints/16508
6380 * tracepoint.c (check_trace_running): New function.
6381 (trace_find_command): Move code to check_trace_running and
6382 call check_trace_running.
6383 (trace_find_pc_command): Likewise.
6384 (trace_find_tracepoint_command): Likewise.
6385 (trace_find_line_command): Likewise.
6386 (trace_find_range_command): Likewise.
6387 * tracepoint.h (check_trace_running): Likewise.
6388 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6390 2014-03-06 Yao Qi <yao@codesourcery.com>
6392 * target.h (struct target_ops) <to_traceframe_info>: Use
6393 TARGET_DEFAULT_NORETURN (tcomplain ()).
6394 * target-delegates.c: Regenerated.
6396 2014-03-05 Pedro Alves <palves@redhat.com>
6399 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6400 void. Update comment.
6401 (dcache_xfer_memory): Delete.
6402 (dcache_read_memory_partial): New, based on the read bits of
6404 (dcache_update): Add status parameter. Use ULONGEST for len, and
6405 adjust. Discard cache lines if the reason for the update was
6407 * dcache.h (dcache_xfer_memory): Delete declaration.
6408 (dcache_read_memory_partial): New declaration.
6409 (dcache_update): Update prototype.
6410 * target.c (raw_memory_xfer_partial): Update the dcache here.
6411 (memory_xfer_partial_1): Don't handle dcache writes here.
6413 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6415 * remote-sim.c (gdbsim_load): Add const to prog.
6417 2014-03-03 Tom Tromey <tromey@redhat.com>
6419 * elfread.c (probe_key): Change to bfd_data.
6420 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6421 now per-BFD, not per-objfile.
6422 * stap-probe.c (stap_probe_destroy): Update comment.
6423 (handle_stap_probe): Allocate on the per-BFD obstack.
6425 2014-03-03 Tom Tromey <tromey@redhat.com>
6427 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6428 * breakpoint.c (create_longjmp_master_breakpoint): Use
6430 (add_location_to_breakpoint, bkpt_probe_insert_location)
6431 (bkpt_probe_remove_location): Update.
6432 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6433 * elfread.c (elf_symfile_relocate_probe): Remove.
6434 (elf_probe_fns): Update.
6435 (insert_exception_resume_breakpoint): Change type of "probe"
6436 parameter to bound_probe.
6437 (check_exception_resume): Update.
6438 * objfiles.c (objfile_relocate1): Don't relocate probes.
6439 * probe.c (bound_probe_s): New typedef.
6440 (parse_probes): Use get_probe_address. Set sal's objfile.
6441 (find_probe_by_pc): Return a bound_probe.
6442 (collect_probes): Return a VEC(bound_probe_s).
6443 (compare_probes): Update.
6444 (gen_ui_out_table_header_info): Change type of "probes"
6446 (info_probes_for_ops): Update.
6447 (get_probe_address): New function.
6448 (probe_safe_evaluate_at_pc): Update.
6449 * probe.h (struct probe_ops) <get_probe_address>: New field.
6450 <set_semaphore, clear_semaphore>: Add objfile parameter.
6451 (struct probe) <objfile>: Remove field.
6453 <address>: Update comment.
6454 (struct bound_probe): New.
6455 (find_probe_by_pc): Return a bound_probe.
6456 (get_probe_address): Declare.
6457 * solib-svr4.c (struct probe_and_action) <address>: New field.
6458 (hash_probe_and_action, equal_probe_and_action): Update.
6459 (register_solib_event_probe): Add address parameter.
6460 (solib_event_probe_at): Update.
6461 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6463 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6464 (stap_get_probe_address): New function.
6465 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6466 (compile_probe_arg): Update.
6467 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6469 (handle_stap_probe): Don't relocate the probe.
6470 (stap_relocate): Remove.
6471 (stap_gen_info_probes_table_values): Update.
6472 (stap_probe_ops): Remove stap_relocate.
6473 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6474 (debug_sym_probe_fns): Update.
6475 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6476 * symtab.c (init_sal): Use memset.
6477 * symtab.h (struct symtab_and_line) <objfile>: New field.
6478 * tracepoint.c (start_tracing, stop_tracing): Update.
6480 2014-03-03 Tom Tromey <tromey@redhat.com>
6482 * probe.h (parse_probes, find_probe_by_pc)
6483 (find_probes_in_objfile): Fix comments.
6485 2014-03-02 Doug Evans <xdje42@gmail.com>
6487 * infrun.c (handle_signal_stop): Replace test for
6488 TARGET_WAITKIND_STOPPED with an assert.
6490 2014-03-02 Doug Evans <xdje42@gmail.com>
6492 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6494 2014-03-02 Doug Evans <xdje42@gmail.com>
6496 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6498 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6500 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6502 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6504 * i386obsd-nat.c: Include "obsd-nat.h".
6505 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6507 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6509 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6511 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6513 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6515 * mips64obsd-nat.c: Include "obsd-nath".
6516 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6518 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6520 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6522 * amd64obsd-nat.c: Include "obsd-nat,h.
6523 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6525 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6527 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6529 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6530 (find_overload_match): Update call to find_oload_champ.
6531 (find_oload_champ_namespace_loop): Likewise
6533 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6535 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6537 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6538 * config/sparc/obsd64.mh: New file.
6539 * sparc64obsd-nat.c: New file.
6541 * obsd-nat.h: New file.
6542 * obsd-nat.c: New file.
6543 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6544 (ALLDEPFILES): Add obsd-nat.c.
6546 2014-02-28 Tom Tromey <tromey@redhat.com>
6548 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6549 * cli-out.h (cli_ui_out_impl): Now const.
6550 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6551 * ui-out.c (struct ui_out) <impl>: Now const.
6552 (default_ui_out_impl): Now const.
6553 (ui_out_new): Make 'impl' parameter const.
6554 * ui-out.h (ui_out_new): Update.
6556 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6558 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6560 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6562 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6564 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6566 Additional PR 8882 fix.
6567 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6569 2014-02-27 Pedro Alves <palves@redhat.com>
6571 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6574 2014-02-27 Pedro Alves <palves@redhat.com>
6577 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6578 * nat/linux-waitpid.c: Include string.h.
6579 (status_to_str): Moved here and made extern.
6580 * nat/linux-waitpid.h (status_to_str): New declaration.
6582 2014-02-27 Hui Zhu <hui@codesourcery.com>
6585 * infrun.c (ptid_match): Move ...
6586 * common/ptid.c (ptid_match): ... here.
6587 * inferior.h (ptid_match): Move ...
6588 * common/ptid.h (ptid_match): ... here.
6590 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6592 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6593 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6596 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6598 * obsd-tdep.c (obsd_auxv_parse): New function.
6599 (obsd_init_abi): Set auxv_parse.
6601 * gdbarch.sh (auxv_parse): New.
6602 * gdbarch.h: Regenerated.
6603 * gdbarch.c: Regenerated.
6604 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6606 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6608 * guile/scm-value.c (gdbscm_history_append_x): New function.
6609 (value_functions): Add it.
6611 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6613 * dwarf2read.c (attr_value_as_address): New function.
6614 (dwarf2_find_base_address, read_call_site_scope): Use
6615 attr_value_as_address in place of DW_ADDR.
6616 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6617 the low and high addresses. Slight rework of the handling
6618 of the high pc being a constant form, and limit it to
6619 DWARF verson 4 or higher.
6620 (dwarf2_record_block_ranges): Likewise.
6621 (read_partial_die): Likewise.
6622 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6624 2014-02-26 Tom Tromey <tromey@redhat.com>
6626 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6628 2014-02-26 Tom Tromey <tromey@redhat.com>
6630 * elfread.c (elf_read_minimal_symbols): Return early if
6631 minimal symbols have already been read. Add "ei" parameter.
6632 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6633 * minsyms.c (prim_record_minimal_symbol_full): Update.
6634 * objfiles.h (struct objstats) <n_minsyms>: Move...
6635 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6636 * symmisc.c (print_objfile_statistics): Update.
6638 2014-02-26 Tom Tromey <tromey@redhat.com>
6640 * elfread.c (elf_read_minimal_symbols): New function, from
6642 (elf_symfile_read): Call it.
6644 2014-02-26 Tom Tromey <tromey@redhat.com>
6646 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6647 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6648 (lookup_minimal_symbol_solib_trampoline)
6649 (lookup_minimal_symbol_by_pc_section_1)
6650 (lookup_minimal_symbol_and_objfile): Update.
6651 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6652 Don't allocate a minimal symbol if minsyms have already been read.
6653 (build_minimal_symbol_hash_tables): Update.
6654 (install_minimal_symbols): Do nothing if minsyms already read.
6655 Use the per-BFD obstack.
6656 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6657 * objfiles.c (allocate_objfile): Call
6658 terminate_minimal_symbol_table later.
6659 (have_minimal_symbols): Update.
6660 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6661 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6662 Move from struct objfile.
6663 <minsyms_read>: New field.
6664 (struct objfile) <msymbols, minimal_symbol_count,
6665 msymbol_hash, msymbol_demangled_hash>: Move.
6666 (ALL_OBJFILE_MSYMBOLS): Update.
6667 * symfile.c (read_symbols): Set minsyms_read.
6668 (reread_symbols): Update.
6669 * symmisc.c (dump_objfile, dump_msymbols): Update.
6671 2014-02-26 Tom Tromey <tromey@redhat.com>
6673 * minsyms.c (msymbols_sort): Remove.
6674 * minsyms.h (msymbols_sort): Remove.
6675 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6676 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6677 * elfread.c (elf_symtab_read): Don't add section offsets.
6678 * xcoffread.c (record_minimal_symbol): Don't add section offset
6679 to minimal symbol address.
6680 * somread.c (text_offset, data_offset): Remove.
6681 (som_symtab_read): Don't add section offsets to minimal symbol
6683 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6684 Don't add section offsets to minimal symbols.
6685 * coffread.c (coff_symtab_read): Don't add section offsets
6686 to minimal symbol addresses.
6687 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6688 to minimal symbol addresses.
6689 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6690 section offset to minimal symbol addresses.
6691 * mdebugread.c (parse_partial_symbols): Don't add section
6692 offset to minimal symbol addresses.
6693 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6694 offset to minimal symbol addresses.
6696 2014-02-26 Tom Tromey <tromey@redhat.com>
6698 * ada-lang.c (ada_main_name): Update.
6699 (ada_add_standard_exceptions): Update.
6700 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6701 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6702 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6703 * auxv.c (ld_so_xfer_auxv): Update.
6704 * avr-tdep.c (avr_scan_prologue): Update.
6705 * ax-gdb.c (gen_var_ref): Update.
6706 * blockframe.c (get_pc_function_start)
6707 (find_pc_partial_function_gnu_ifunc): Update.
6708 * breakpoint.c (create_overlay_event_breakpoint)
6709 (create_longjmp_master_breakpoint)
6710 (create_std_terminate_master_breakpoint)
6711 (create_exception_master_breakpoint): Update.
6712 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6713 * c-valprint.c (c_val_print): Update.
6714 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6715 * common/agent.c (agent_look_up_symbols): Update.
6716 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6717 * dwarf2loc.c (call_site_to_target_addr): Update.
6718 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6719 * elfread.c (elf_gnu_ifunc_record_cache)
6720 (elf_gnu_ifunc_resolve_by_got): Update.
6721 * findvar.c (default_read_var_value): Update.
6722 * frame.c (inside_main_func): Update.
6723 * frv-tdep.c (frv_frame_this_id): Update.
6724 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6725 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6727 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6728 (hppa_hpux_find_dummy_bpaddr): Update.
6729 * hppa-tdep.c (hppa_symbol_address): Update.
6730 * infcmd.c (until_next_command): Update.
6731 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6733 * linespec.c (minsym_found, add_minsym): Update.
6734 * linux-nat.c (get_signo): Update.
6735 * linux-thread-db.c (inferior_has_bug): Update.
6736 * m32c-tdep.c (m32c_return_value)
6737 (m32c_m16c_address_to_pointer): Update.
6738 * m32r-tdep.c (m32r_frame_this_id): Update.
6739 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6740 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6741 * maint.c (maintenance_translate_address): Update.
6742 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6743 (frob_address): New function.
6744 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6745 frob_address. Rename parameter to "pc_in".
6746 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6748 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6750 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6751 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6752 * objc-lang.c (find_objc_msgsend): Update.
6753 * objfiles.c (objfile_relocate1): Update.
6754 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6755 * p-valprint.c (pascal_val_print): Update.
6756 * parse.c (write_exp_msymbol): Update.
6757 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6758 (ppc_elfv2_skip_entrypoint): Update.
6759 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6760 * printcmd.c (build_address_symbolic, msym_info)
6761 (address_info): Update.
6762 * proc-service.c (ps_pglobal_lookup): Update.
6763 * psymtab.c (find_pc_sect_psymtab_closer)
6764 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6765 Change msymbol parameter to bound_minimal_symbol.
6766 * ravenscar-thread.c (get_running_thread_id): Update.
6767 * remote.c (remote_check_symbols): Update.
6768 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6770 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6771 * solib-dsbt.c (lm_base): Update.
6772 * solib-frv.c (lm_base, main_got): Update.
6773 * solib-irix.c (locate_base): Update.
6774 * solib-som.c (som_solib_create_inferior_hook)
6775 (link_map_start): Update.
6776 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6777 * solib-svr4.c (elf_locate_base, enable_break): Update.
6778 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6779 (flush_ea_cache): Update.
6780 * stabsread.c (define_symbol, scan_file_globals): Update.
6781 * stack.c (find_frame_funname): Update.
6782 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6783 (debug_qf_find_pc_sect_symtab): Update.
6784 * symfile.c (simple_read_overlay_table)
6785 (simple_overlay_update): Update.
6786 * symfile.h (struct quick_symbol_functions)
6787 <find_pc_sect_symtab>: Change type of msymbol to
6788 bound_minimal_symbol.
6789 * symmisc.c (dump_msymbols): Update.
6790 * symtab.c (find_pc_sect_symtab_via_partial)
6791 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6792 (search_symbols, print_msymbol_info): Update.
6793 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6794 (MSYMBOL_VALUE_ADDRESS): Redefine.
6795 (BMSYMBOL_VALUE_ADDRESS): New macro.
6796 * tracepoint.c (scope_info): Update.
6797 * tui/tui-disasm.c (tui_find_disassembly_address)
6798 (tui_get_begin_asm_address): Update.
6799 * valops.c (find_function_in_inferior): Update.
6800 * value.c (value_static_field, value_fn_field): Update.
6802 2014-02-26 Tom Tromey <tromey@redhat.com>
6804 * ada-lang.c (ada_update_initial_language): Update.
6805 (ada_main_name, ada_has_this_exception_support): Update.
6806 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6807 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6808 * arm-tdep.c (arm_skip_stub): Update.
6809 * auxv.c (ld_so_xfer_auxv): Update.
6810 * avr-tdep.c (avr_scan_prologue): Update.
6811 * ax-gdb.c (gen_var_ref): Update.
6812 * breakpoint.c (struct breakpoint_objfile_data)
6813 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6814 type to bound_minimal_symbol.
6815 (create_overlay_event_breakpoint)
6816 (create_longjmp_master_breakpoint)
6817 (create_std_terminate_master_breakpoint)
6818 (create_exception_master_breakpoint): Update.
6819 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6820 * c-exp.y (classify_name): Update.
6821 * coffread.c (coff_symfile_read): Update.
6822 * common/agent.c (agent_look_up_symbols): Update.
6823 * d-lang.c (d_main_name): Update.
6824 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6825 * dec-thread.c (enable_dec_thread): Update.
6826 * dwarf2loc.c (call_site_to_target_addr): Update.
6827 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6828 * eval.c (evaluate_subexp_standard): Update.
6829 * findvar.c (struct minsym_lookup_data) <result>: Change type
6830 to bound_minimal_symbol.
6832 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6833 * frame.c (inside_main_func): Update.
6834 * frv-tdep.c (frv_frame_this_id): Update.
6835 * gcore.c (call_target_sbrk): Update.
6836 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6837 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6839 * go-lang.c (go_main_name): Update.
6840 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6841 (hppa_hpux_find_import_stub_for_addr): Update.
6842 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6843 Update. Change return type.
6844 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6846 * jit.c (jit_breakpoint_re_set_internal): Update.
6847 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6849 * linux-nat.c (get_signo): Update.
6850 * linux-thread-db.c (inferior_has_bug): Update
6851 * m32c-tdep.c (m32c_return_value)
6852 (m32c_m16c_address_to_pointer): Update.
6853 * m32r-tdep.c (m32r_frame_this_id): Update.
6854 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6855 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6856 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6857 lookup_minimal_symbol. Change return type.
6858 (lookup_minimal_symbol): Remove.
6859 (lookup_bound_minimal_symbol): Update.
6860 (lookup_minimal_symbol_text): Change return type.
6861 (lookup_minimal_symbol_solib_trampoline): Change return type.
6862 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6863 (lookup_minimal_symbol_solib_trampoline): Change return type.
6864 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6865 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6866 (value_nsstring, find_imps): Update.
6867 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6868 * p-lang.c (pascal_main_name): Update.
6869 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6870 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6871 * proc-service.c (ps_pglobal_lookup): Update.
6872 * ravenscar-thread.c (get_running_thread_msymbol): Change
6874 (has_ravenscar_runtime, get_running_thread_id): Update.
6875 * remote.c (remote_check_symbols): Update.
6876 * sol-thread.c (ps_pglobal_lookup): Update.
6877 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6878 * solib-dsbt.c (lm_base): Update.
6879 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6881 * solib-irix.c (locate_base): Update.
6882 * solib-som.c (som_solib_create_inferior_hook)
6883 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6885 * solib-spu.c (spu_enable_break): Update.
6886 * solib-svr4.c (elf_locate_base, enable_break): Update.
6887 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6888 (flush_ea_cache): Update.
6889 * stabsread.c (define_symbol): Update.
6890 * symfile.c (simple_read_overlay_table): Update.
6891 * symtab.c (find_pc_sect_line): Update.
6892 * tracepoint.c (scope_info): Update.
6893 * tui-disasm.c (tui_get_begin_asm_address): Update.
6894 * value.c (value_static_field): Update.
6896 2014-02-26 Tom Tromey <tromey@redhat.com>
6898 * minsyms.c (prim_record_minimal_symbol_full): Use
6899 SET_MSYMBOL_VALUE_ADDRESS.
6900 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6901 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6902 SET_MSYMBOL_VALUE_ADDRESS.
6903 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6904 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6906 2014-02-26 Tom Tromey <tromey@redhat.com>
6908 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6909 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6910 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6911 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6912 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6913 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6914 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6915 * ada-lang.c (ada_main_name): Update.
6916 (ada_lookup_simple_minsym): Update.
6917 (ada_make_symbol_completion_list): Update.
6918 (ada_add_standard_exceptions): Update.
6919 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6920 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6921 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6922 * arm-tdep.c (skip_prologue_function): Update.
6923 (arm_skip_stack_protector, arm_skip_stub): Update.
6924 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6925 (arm_wince_skip_main_prologue): Update.
6926 * auxv.c (ld_so_xfer_auxv): Update.
6927 * avr-tdep.c (avr_scan_prologue): Update.
6928 * ax-gdb.c (gen_var_ref): Update.
6929 * block.c (call_site_for_pc): Update.
6930 * blockframe.c (get_pc_function_start): Update.
6931 (find_pc_partial_function_gnu_ifunc): Update.
6932 * breakpoint.c (create_overlay_event_breakpoint): Update.
6933 (create_longjmp_master_breakpoint): Update.
6934 (create_std_terminate_master_breakpoint): Update.
6935 (create_exception_master_breakpoint): Update.
6936 (resolve_sal_pc): Update.
6937 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6938 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6940 * c-valprint.c (c_val_print): Update.
6941 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6942 * coffread.c (coff_symfile_read): Update.
6943 * common/agent.c (agent_look_up_symbols): Update.
6944 * dbxread.c (find_stab_function_addr): Update.
6945 (end_psymtab): Update.
6946 * dwarf2loc.c (call_site_to_target_addr): Update.
6947 (func_verify_no_selftailcall): Update.
6948 (tailcall_dump): Update.
6949 (call_site_find_chain_1): Update.
6950 (dwarf_expr_reg_to_entry_parameter): Update.
6951 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6952 (elf_gnu_ifunc_resolve_by_got): Update.
6953 * f-valprint.c (info_common_command): Update.
6954 * findvar.c (read_var_value): Update.
6955 * frame.c (get_prev_frame_1): Update.
6956 (inside_main_func): Update.
6957 * frv-tdep.c (frv_skip_main_prologue): Update.
6958 (frv_frame_this_id): Update.
6959 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6960 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6961 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6962 (gnuv3_skip_trampoline): Update.
6963 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6964 (hppa64_hpux_in_solib_call_trampoline): Update.
6965 (hppa_hpux_skip_trampoline_code): Update.
6966 (hppa64_hpux_search_dummy_call_sequence): Update.
6967 (hppa_hpux_find_import_stub_for_addr): Update.
6968 (hppa_hpux_find_dummy_bpaddr): Update.
6969 * hppa-tdep.c (hppa_symbol_address)
6970 (hppa_lookup_stub_minimal_symbol): Update.
6971 * i386-tdep.c (i386_skip_main_prologue): Update.
6972 (i386_pe_skip_trampoline_code): Update.
6973 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6974 * infcall.c (get_function_name): Update.
6975 * infcmd.c (until_next_command): Update.
6976 * jit.c (jit_breakpoint_re_set_internal): Update.
6977 (jit_inferior_init): Update.
6978 * linespec.c (minsym_found): Update.
6979 (add_minsym): Update.
6980 * linux-fork.c (info_checkpoints_command): Update.
6981 * linux-nat.c (get_signo): Update.
6982 * linux-thread-db.c (inferior_has_bug): Update.
6983 * m32c-tdep.c (m32c_return_value): Update.
6984 (m32c_m16c_address_to_pointer): Update.
6985 (m32c_m16c_pointer_to_address): Update.
6986 * m32r-tdep.c (m32r_frame_this_id): Update.
6987 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6988 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6989 * maint.c (maintenance_translate_address): Update.
6990 * minsyms.c (add_minsym_to_hash_table): Update.
6991 (add_minsym_to_demangled_hash_table): Update.
6992 (msymbol_objfile): Update.
6993 (lookup_minimal_symbol): Update.
6994 (iterate_over_minimal_symbols): Update.
6995 (lookup_minimal_symbol_text): Update.
6996 (lookup_minimal_symbol_by_pc_name): Update.
6997 (lookup_minimal_symbol_solib_trampoline): Update.
6998 (lookup_minimal_symbol_by_pc_section_1): Update.
6999 (lookup_minimal_symbol_and_objfile): Update.
7000 (prim_record_minimal_symbol_full): Update.
7001 (compare_minimal_symbols): Update.
7002 (compact_minimal_symbols): Update.
7003 (build_minimal_symbol_hash_tables): Update.
7004 (install_minimal_symbols): Update.
7005 (terminate_minimal_symbol_table): Update.
7006 (find_solib_trampoline_target): Update.
7007 (minimal_symbol_upper_bound): Update.
7008 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7009 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7010 (mips_skip_pic_trampoline_code): Update.
7011 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7012 * objc-lang.c (selectors_info): Update.
7013 (classes_info): Update.
7014 (find_methods): Update.
7015 (find_imps): Update.
7016 (find_objc_msgsend): Update.
7017 * objfiles.c (objfile_relocate1): Update.
7018 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7019 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7020 * p-valprint.c (pascal_val_print): Update.
7021 * parse.c (write_exp_msymbol): Update.
7022 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7023 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7024 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7025 * printcmd.c (build_address_symbolic): Update.
7027 (address_info): Update.
7028 * proc-service.c (ps_pglobal_lookup): Update.
7029 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7030 (find_pc_sect_psymtab): Update.
7031 * python/py-framefilter.c (py_print_frame): Update.
7032 * ravenscar-thread.c (get_running_thread_id): Update.
7033 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7035 * remote.c (remote_check_symbols): Update.
7036 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7037 (rs6000_skip_trampoline_code): Update.
7038 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7039 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7040 * solib-dsbt.c (lm_base): Update.
7041 * solib-frv.c (lm_base): Update.
7043 * solib-irix.c (locate_base): Update.
7044 * solib-som.c (som_solib_create_inferior_hook): Update.
7045 (som_solib_desire_dynamic_linker_symbols): Update.
7046 (link_map_start): Update.
7047 * solib-spu.c (spu_enable_break): Update.
7048 (ocl_enable_break): Update.
7049 * solib-svr4.c (elf_locate_base): Update.
7050 (enable_break): Update.
7051 * spu-tdep.c (spu_get_overlay_table): Update.
7052 (spu_catch_start): Update.
7053 (flush_ea_cache): Update.
7054 * stabsread.c (define_symbol): Update.
7055 (scan_file_globals): Update.
7056 * stack.c (find_frame_funname): Update.
7057 (frame_info): Update.
7058 * symfile.c (simple_read_overlay_table): Update.
7059 (simple_overlay_update): Update.
7060 * symmisc.c (dump_msymbols): Update.
7061 * symtab.c (fixup_section): Update.
7062 (find_pc_sect_line): Update.
7063 (skip_prologue_sal): Update.
7064 (search_symbols): Update.
7065 (print_msymbol_info): Update.
7066 (rbreak_command): Update.
7067 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7068 (completion_list_objc_symbol): Update.
7069 (default_make_symbol_completion_list_break_on): Update.
7070 * tracepoint.c (scope_info): Update.
7071 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7072 (tui_get_begin_asm_address): Update.
7073 * valops.c (find_function_in_inferior): Update.
7074 * value.c (value_static_field): Update.
7075 (value_fn_field): Update.
7077 2014-02-26 Tom Tromey <tromey@redhat.com>
7079 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7080 bound minimal symbols. Move code that knows about minsym
7082 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7084 * minsyms.h (minimal_symbol_upper_bound): Declare.
7085 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7086 minimal_symbol_upper_bound.
7088 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7090 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7091 Use the type's name if its basic type does not have a tag.
7093 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7095 * dwarf2read.c (read_subrange_type): Add comment.
7097 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7099 * dwarf2read.c (update_enumeration_type_from_children): New
7100 function, mostly extracted from process_structure_scope.
7101 (read_enumeration_type): Call update_enumeration_type_from_children.
7102 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7103 and flag_flag_enum fields.
7105 2014-02-26 Pedro Alves <palves@redhat.com>
7107 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7108 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7109 to_xfer_partial method.
7111 2014-02-26 Pedro Alves <palves@redhat.com>
7113 * target.c (complete_target_initialization): Don't install
7114 default_xfer_partial as to_xfer_partial hook.
7116 (update_current_target): Don't INHERIT nor de_fault
7117 deprecated_xfer_memory. Delete de_fault macro.
7118 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7119 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7120 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7123 2014-02-26 Pedro Alves <palves@redhat.com>
7125 * go32-nat.c (my_write_child): New function.
7126 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7127 (go32_xfer_partial): New function.
7128 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7129 Instead install a to_xfer_partial hook.
7131 2014-02-26 Pedro Alves <palves@redhat.com>
7133 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7134 to_xfer_partial helper. Rewrite.
7135 (procfs_xfer_partial): New function.
7136 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7137 Install a to_xfer_partial hook.
7139 2014-02-26 Pedro Alves <palves@redhat.com>
7141 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7142 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7143 (m32r_xfer_partial): New function.
7144 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7145 Install a to_xfer_partial hook.
7147 2014-02-26 Pedro Alves <palves@redhat.com>
7149 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7151 (mips_xfer_partial): New function.
7152 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7153 hook. Install a to_xfer_partial hook.
7155 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7157 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7158 * gdbtypes.c (create_array_type_with_stride): New function,
7159 renaming create_array_type, but with an added parameter
7160 called "bit_stride".
7161 (create_array_type): Re-implement using
7162 create_array_type_with_stride.
7163 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7164 and DW_AT_bit_stride attributes.
7166 2014-02-26 Pedro Alves <palves@redhat.com>
7168 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7169 task-specific breakpoints.
7171 2014-02-25 Pedro Alves <palves@redhat.com>
7173 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7174 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7176 2014-02-25 Stan Shebs <stan@codesourcery.com>
7178 * defs.h: Annotate comments for Doxygen.
7180 2014-02-25 Tom Tromey <tromey@redhat.com>
7182 * target.h (target_ignore): Don't declare.
7183 * target.c (target_ignore): Remove.
7185 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 * auto-load.c (auto_load_objfile_script_1): Change filename to
7191 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7193 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7194 documentation. Adjust prototype to match the target_ops
7195 to_xfer_partial method. Adjust implementation accordingly.
7197 2014-02-25 Hui Zhu <hui@codesourcery.com>
7199 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7202 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7204 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7205 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7206 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7207 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7208 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7209 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7210 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7211 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7213 (rl78_register_type): Use a data pointer type for SP and
7214 new pseudo registers mentioned above. Use a 16 bit integer
7215 type for all other register pairs.
7216 (rl78_register_name, rl78_g10_register_name): Update for
7217 new pseudo registers.
7218 (rl78_pseudo_register_read): Likewise.
7219 (rl78_pseudo_register_write): Likewise.
7220 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7221 to the newly added pseudo registers.
7223 2014-02-24 Doug Evans <dje@google.com>
7225 * value.c (record_latest_value): Fix comment.
7226 * printcmd.c (print_command_1): Remove code to handle -1 return from
7227 record_latest_value.
7229 2014-02-24 Pedro Alves <palves@redhat.com>
7231 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7232 deprecated_xfer_memory hook.
7233 (procfs_xfer_partial): Call procfs_xfer_memory instead
7234 of the deprecated_xfer_memory target hook.
7235 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7238 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7240 * windows-nat.c (windows_xfer_shared_libraries): Return
7241 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7242 requested object is TARGET_OBJECT_LIBRARIES.
7244 2014-02-24 Yao Qi <yao@codesourcery.com>
7246 * target.h (enum target_xfer_status)
7247 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7248 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7250 * corefile.c (memory_error_message): User updated.
7251 * exec.c (section_table_read_available_memory): Likewise.
7252 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7253 * target.c (target_xfer_status_to_string): Likewise.
7254 (raw_memory_xfer_partial): Likewise.
7255 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7256 * valops.c (read_value_memory): Likewise.
7257 * exec.h: Update comments.
7259 2014-02-24 Yao Qi <yao@codesourcery.com>
7261 * target.c (target_xfer_status_to_string): Rename argument err
7263 * target.h (target_xfer_status_to_string): Update declaration.
7264 Replace target_xfer_error_to_string with
7265 target_xfer_status_to_string in comment.
7267 2014-02-24 Yao Qi <yao@codesourcery.com>
7269 * mips-linux-nat.c (super_close): Update its type.
7270 (mips_linux_close): Pass 'self' to super_close.
7272 2014-02-24 Yao Qi <yao@codesourcery.com>
7274 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7275 * corefile.c (read_memory): Adjusted.
7276 * target.c (target_write_with_progress): Adjusted.
7278 2014-02-23 Yao Qi <yao@codesourcery.com>
7282 2013-10-25 Yao Qi <yao@codesourcery.com>
7284 * remote.c (remote_traceframe_info): Return early if
7285 traceframe is not selected.
7287 2013-07-19 Yao Qi <yao@codesourcery.com>
7289 * target.c (update_current_target): Change the default action
7290 of 'to_traceframe_info' from tcomplain to return_zero.
7291 * target.h (struct target_ops) <to_traceframe_info>: Add more
7294 2014-02-23 Yao Qi <yao@codesourcery.com>
7296 * valops.c (read_value_memory): Rewrite it. Call
7297 target_xfer_partial in a loop.
7298 * exec.h (section_table_available_memory): Remove declaration.
7299 Move comments to ...
7300 * exec.c (section_table_available_memory): ... here. Make it
7303 2014-02-23 Yao Qi <yao@codesourcery.com>
7305 * exec.c (section_table_read_available_memory): New function.
7306 * exec.h (section_table_read_available_memory): Declare.
7307 * ctf.c (ctf_xfer_partial): Call
7308 section_table_read_available_memory.
7309 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7311 2014-02-23 Yao Qi <yao@codesourcery.com>
7313 * ctf.c (ctf_xfer_partial): Move code to ...
7314 * exec.c (exec_read_partial_read_only): ... it. New function.
7315 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7316 * tracefile.c: Include "exec.h".
7317 * exec.h (exec_read_partial_read_only): Declare.
7319 2014-02-23 Yao Qi <yao@codesourcery.com>
7321 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7322 (tfile_has_memory): Remove.
7323 (init_tfile_ops): Don't set fields to_has_all_memory and
7324 to_has_memory of tfile_ops.
7325 * tracefile.c (tracefile_has_all_memory): New function.
7326 (tracefile_has_memory): New function.
7327 (init_tracefile_ops): Initialize fields to_has_all_memory and
7328 to_has_memory of 'ops'.
7330 2014-02-23 Yao Qi <yao@codesourcery.com>
7332 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7333 (ctf_thread_alive, ctf_get_trace_status): Remove.
7334 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7336 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7337 (tfile_has_stack, tfile_has_registers): Remove.
7338 (tfile_thread_alive): Remove.
7339 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7341 * tracefile.c (tracefile_has_stack): New function.
7342 (tracefile_has_registers): New function.
7343 (tracefile_thread_alive): New function.
7344 (tracefile_get_trace_status): New function.
7345 (init_tracefile_ops): New function.
7346 * tracefile.h (init_tracefile_ops): Declare.
7348 2014-02-23 Yao Qi <yao@codesourcery.com>
7350 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7351 (O_LARGEFILE): Likewise.
7352 (tfile_ops): Likewise.
7353 (TRACE_HEADER_SIZE): Likewise.
7354 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7355 (cur_data_size): Likewise.
7356 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7357 (tfile_close, tfile_files_info): Likewise.
7358 (tfile_get_trace_status): Likewise.
7359 (tfile_get_tracepoint_status): Likewise.
7360 (tfile_get_traceframe_address): Likewise.
7361 (tfile_trace_find, match_blocktype): Likewise.
7362 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7363 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7364 (tfile_get_trace_state_variable_value): Likewise.
7365 (tfile_has_all_memory, tfile_has_memory): Likewise.
7366 (tfile_has_stack, tfile_has_registers): Likewise.
7367 (tfile_thread_alive, build_traceframe_info): Likewise.
7368 (tfile_traceframe_info, init_tfile_ops): Likewise.
7369 (_initialize_tracepoint): Don't call init_tfile_ops
7370 and add_target_with_completer.
7371 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7372 exec.h, completer.h and filenames.h.
7373 (_initialize_tracefile_tfile): New function.
7375 2014-02-23 Yao Qi <yao@codesourcery.com>
7377 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7379 (HFILES_NO_SRCDIR): Add tracefile.h.
7380 * ctf.c: Include "tracefile.h".
7381 * tracefile.h: New file.
7382 * tracefile.c: New file
7383 * tracefile-tfile.c: New file.
7384 * tracepoint.c: Include "tracefile.h".
7385 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7386 (stop_reason_names): Add const.
7387 (trace_file_writer_xfree): Move it to tracefile.c.
7388 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7389 (trace_save_ctf): Likewise.
7390 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7391 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7392 (tfile_write_header, tfile_write_regblock_type): Likewise.
7393 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7394 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7395 (tfile_write_raw_data, tfile_end): Likewise.
7396 (tfile_trace_file_writer_new): Likewise.
7397 (free_uploaded_tp): Make it extern.
7398 (free_uploaded_tsv): Make it extern.
7399 (_initialize_tracepoint): Move code to register command 'tsave'
7401 * tracepoint.h (stop_reason_names): Declare.
7402 (struct trace_frame_write_ops): Move it to tracefile.h.
7403 (struct trace_file_write_ops): Likewise.
7404 (struct trace_file_writer): Likewise.
7405 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7407 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7410 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7412 (get_cores_used_by_process): New parameter num_cores, use it.
7413 (linux_xfer_osdata_processes): Pass num_cores to it.
7414 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7417 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7419 * target.c (memory_xfer_partial): Fix length arg in call to
7420 breakpoint_xfer_memory.
7422 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7425 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7426 number comes after the + or - signs. Adjust length of register
7427 name to be extracted.
7429 2014-02-20 Tom Tromey <tromey@redhat.com>
7431 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7432 (ada_varobj_ops): Mark "extern".
7434 2014-02-20 Tom Tromey <tromey@redhat.com>
7436 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7438 2014-02-20 Doug Evans <xdje42@gmail.com>
7440 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7441 All callers updated.
7442 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7443 All callers updated.
7444 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7445 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7447 2014-02-20 lin zuojian <manjian2006@gmail.com>
7448 Joel Brobecker <brobecker@adacore.com>
7449 Doug Evans <xdje42@gmail.com>
7452 * dwarf2read.c (struct die_info): New member in_process.
7453 (reset_die_in_process): New function.
7454 (process_die): Set it at the start, reset when returning.
7455 (inherit_abstract_dies): Only call process_die if origin_child_die
7456 not already being processed.
7458 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7460 * windows-nat.c (handle_unload_dll): Add function documentation.
7461 (do_initial_windows_stuff): Add comment explaining why we wait
7462 until after inferior initialization has finished before
7463 processing all DLLs.
7465 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7467 * windows-nat.c (get_module_name): Delete.
7468 (windows_get_exec_module_filename): New function, mostly
7469 inspired from get_module_name.
7470 (windows_pid_to_exec_file): Replace call to get_module_name
7471 by call to windows_get_exec_module_filename.
7473 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7475 * windows-nat.c (handle_load_dll): Rewrite this function's
7476 introductory comment. Remove code using get_module_name
7477 to get the DLL's name.
7479 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7481 * windows-nat.c (get_windows_debug_event): Ignore
7482 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7483 if windows_initialization_done == 0.
7484 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7485 Adjust implementation to always load all DLLs.
7486 (do_initial_windows_stuff): Replace call to
7487 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7489 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7491 * windows-nat.c (_initialize_windows_nat): Deprecate the
7492 "dll-symbols" command. Turn the "add-shared-symbol-files"
7493 and "assf" aliases into commands, and deprecate them as well.
7494 * NEWS: Add entry explaining that "dll-symbols" and its two
7495 aliases are now deprecated.
7497 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7499 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7500 new-line in debug string. Remove trailing spaces.
7502 2014-02-19 Stan Shebs <stan@codesourcery.com>
7504 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7506 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7508 * NEWS: Add entry for the new feature
7509 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7512 2014-02-19 Stan Shebs <stan@codesourcery.com>
7514 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7516 2014-02-19 Pedro Alves <palves@redhat.com>
7518 * common/ptid.h (struct ptid): Mention that process_stratum
7519 targets should prefer ptid.lwp.
7521 2014-02-19 Pedro Alves <palves@redhat.com>
7523 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7524 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7525 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7526 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7527 store remote thread ids rather than ptid.tid.
7528 (_initialize_remote): Adjust.
7530 2014-02-19 Tom Tromey <tromey@redhat.com>
7532 * target.c (target_get_unwinder): Rewrite.
7533 (target_get_tailcall_unwinder): Rewrite.
7534 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7535 (record_btrace_to_get_tailcall_unwinder): New function.
7536 (init_record_btrace_ops): Update.
7537 * target.h (struct target_ops) <to_get_unwinder,
7538 to_get_tailcall_unwinder>: Now function pointers. Use
7539 TARGET_DEFAULT_RETURN.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7545 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7547 2014-02-19 Tom Tromey <tromey@redhat.com>
7549 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7551 * target-delegates.c: Rebuild.
7552 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7553 TARGET_DEFAULT_FUNC.
7554 * target.c (default_target_decr_pc_after_break): Rename from
7555 forward_target_decr_pc_after_break. Simplify.
7556 (target_decr_pc_after_break): Rely on delegation.
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7560 * target.c (update_current_target): Do not INHERIT to_doc or
7561 to_magic. Do not de_fault to_open or to_close.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * gcore.h (objfile_find_memory_regions): Declare.
7566 * gcore.c (objfile_find_memory_regions): No longer static. Add
7568 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7569 * exec.c: Include gcore.h.
7570 (exec_set_find_memory_regions): Remove.
7571 (exec_find_memory_regions): Remove.
7572 (exec_do_find_memory_regions): Remove.
7573 (init_exec_ops): Update.
7574 * defs.h (exec_set_find_memory_regions): Remove.
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7578 * target-delegates.c: Rebuild.
7579 * target.h (struct target_ops) <to_extra_thread_info,
7580 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7581 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7582 not 0, in TARGET_DEFAULT_RETURN.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * target.c (complete_target_initialization): Remove casts. Use
7587 return_zero_has_execution.
7588 (return_zero): Add "ignore" argument.
7589 (return_zero_has_execution): New function.
7590 (init_dummy_target): Remove casts. Use
7591 return_zero_has_execution.
7593 2014-02-19 Tom Tromey <tromey@redhat.com>
7595 * target.c (update_current_target): Update comments. Do not
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7602 * corelow.c (core_read_description): Delegate when needed.
7603 * remote.c (remote_read_description): Delegate when needed.
7604 * target-delegates.c: Rebuild.
7605 * target.c (target_read_description): Rewrite.
7606 * target.h (struct target_ops) <to_read_description>: Update
7607 comment. Use TARGET_DEFAULT_RETURN.
7609 2014-02-19 Tom Tromey <tromey@redhat.com>
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7614 (find_default_run_target): Check against delegate_can_run.
7615 * target.h (struct target_ops) <to_can_run>: Use
7616 TARGET_DEFAULT_RETURN.
7618 2014-02-19 Tom Tromey <tromey@redhat.com>
7620 * target-delegates.c: Rebuild.
7621 * target.c (target_disconnect): Unconditionally delegate.
7622 * target.h (struct target_ops) <to_disconnect>: Use
7623 TARGET_DEFAULT_NORETURN.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * record.c (record_stop): Unconditionally delegate.
7628 * target-delegates.c: Rebuild.
7629 * target.c (target_stop_recording): Unconditionally delegate.
7630 * target.h (struct target_ops) <to_stop_recording>: Use
7631 TARGET_DEFAULT_IGNORE.
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * target-delegates.c: Rebuild.
7636 * target.c (target_enable_btrace): Unconditionally delegate.
7637 * target.h (struct target_ops) <to_enable_btrace>: Use
7638 TARGET_DEFAULT_NORETURN.
7640 2014-02-19 Tom Tromey <tromey@redhat.com>
7642 * target-delegates.c: Rebuild.
7643 * target.c (target_read_btrace): Unconditionally delegate.
7644 * target.h (struct target_ops) <to_read_btrace>: Use
7645 TARGET_DEFAULT_NORETURN.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target-delegates.c: Rebuild.
7650 * target.c (target_teardown_btrace): Unconditionally delegate.
7651 * target.h (struct target_ops) <to_teardown_btrace>: Use
7652 TARGET_DEFAULT_NORETURN.
7654 2014-02-19 Tom Tromey <tromey@redhat.com>
7656 * target-delegates.c: Rebuild.
7657 * target.c (target_disable_btrace): Unconditionally delegate.
7658 * target.h (struct target_ops) <to_disable_btrace>: Use
7659 TARGET_DEFAULT_NORETURN.
7661 2014-02-19 Tom Tromey <tromey@redhat.com>
7663 * target-delegates.c: Rebuild.
7664 * target.c (default_search_memory): New function.
7665 (simple_search_memory): Update comment.
7666 (target_search_memory): Unconditionally delegate.
7667 * target.h (struct target_ops) <to_search_memory>: Use
7668 TARGET_DEFAULT_FUNC.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * auxv.c (default_auxv_parse): No longer static.
7673 (target_auxv_parse): Unconditionally delegate.
7674 * auxv.h (default_auxv_parse): Declare.
7675 * target-delegates.c: Rebuild.
7676 * target.c: Include auxv.h.
7677 * target.h (struct target_ops) <to_auxv_parse>: Use
7678 TARGET_DEFAULT_FUNC.
7680 2014-02-19 Tom Tromey <tromey@redhat.com>
7682 * target-delegates.c: Rebuild.
7683 * target.c (target_memory_map): Unconditionally delegate.
7684 * target.h (struct target_ops) <to_memory_map>: Use
7685 TARGET_DEFAULT_RETURN.
7687 2014-02-19 Tom Tromey <tromey@redhat.com>
7689 * target-delegates.c: Rebuild.
7690 * target.c (target_thread_alive): Unconditionally delegate.
7691 * target.h (struct target_ops) <to_thread_alive>: Use
7692 TARGET_DEFAULT_RETURN.
7694 2014-02-19 Tom Tromey <tromey@redhat.com>
7696 * target-delegates.c: Rebuild.
7697 * target.c (target_save_record): Unconditionally delegate.
7698 * target.h (struct target_ops) <to_save_record>: Use
7699 TARGET_DEFAULT_NORETURN.
7701 2014-02-19 Tom Tromey <tromey@redhat.com>
7703 * target-delegates.c: Rebuild.
7704 * target.c (target_delete_record): Unconditionally delegate.
7705 * target.h (struct target_ops) <to_delete_record>: Use
7706 TARGET_DEFAULT_NORETURN.
7708 2014-02-19 Tom Tromey <tromey@redhat.com>
7710 * target-delegates.c: Rebuild.
7711 * target.c (target_record_is_replaying): Unconditionally
7713 * target.h (struct target_ops) <to_record_is_replaying>: Use
7714 TARGET_DEFAULT_RETURN.
7716 2014-02-19 Tom Tromey <tromey@redhat.com>
7718 * target-delegates.c: Rebuild.
7719 * target.c (target_goto_record_begin): Unconditionally delegate.
7720 * target.h (struct target_ops) <to_goto_record_begin>: Use
7721 TARGET_DEFAULT_NORETURN.
7723 2014-02-19 Tom Tromey <tromey@redhat.com>
7725 * target-delegates.c: Rebuild.
7726 * target.c (target_goto_record_end): Unconditionally delegate.
7727 * target.h (struct target_ops) <to_goto_record_end>: Use
7728 TARGET_DEFAULT_NORETURN.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target-delegates.c: Rebuild.
7733 * target.c (target_goto_record): Unconditionally delegate.
7734 * target.h (struct target_ops) <to_goto_record>: Use
7735 TARGET_DEFAULT_NORETURN.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * target-delegates.c: Rebuild.
7740 * target.c (target_insn_history): Unconditionally delegate.
7741 * target.h (struct target_ops) <to_insn_history>: Use
7742 TARGET_DEFAULT_NORETURN.
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7746 * target-delegates.c: Rebuild.
7747 * target.c (target_insn_history_from): Unconditionally delegate.
7748 * target.h (struct target_ops) <to_insn_history_from>: Use
7749 TARGET_DEFAULT_NORETURN.
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * target-delegates.c: Rebuild.
7754 * target.c (target_insn_history_range): Unconditionally delegate.
7755 * target.h (struct target_ops) <to_insn_history_range>: Use
7756 TARGET_DEFAULT_NORETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target-delegates.c: Rebuild.
7761 * target.c (target_call_history): Unconditionally delegate.
7762 * target.h (struct target_ops) <to_call_history>: Use
7763 TARGET_DEFAULT_NORETURN.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target-delegates.c: Rebuild.
7768 * target.c (target_call_history_from): Unconditionally delegate.
7769 * target.h (struct target_ops) <to_call_history_from>: Use
7770 TARGET_DEFAULT_NORETURN.
7772 2014-02-19 Tom Tromey <tromey@redhat.com>
7774 * target-delegates.c: Rebuild.
7775 * target.c (target_call_history_range): Unconditionally delegate.
7776 * target.h (struct target_ops) <to_call_history_range>: Use
7777 TARGET_DEFAULT_NORETURN.
7779 2014-02-19 Tom Tromey <tromey@redhat.com>
7781 * target-delegates.c: Rebuild.
7782 * target.c (target_verify_memory): Unconditionally delegate.
7783 * target.h (struct target_ops) <to_verify_memory>: Use
7784 TARGET_DEFAULT_NORETURN.
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * target-delegates.c: Rebuild.
7789 * target.c (target_core_of_thread): Unconditionally delegate.
7790 * target.h (struct target_ops) <to_core_of_thread>: Use
7791 TARGET_DEFAULT_RETURN.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target-delegates.c: Rebuild.
7796 * target.c (target_flash_done): Unconditionally delegate.
7797 * target.h (struct target_ops) <to_flash_done>: Use
7798 TARGET_DEFAULT_NORETURN.
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7802 * target-delegates.c: Rebuild.
7803 * target.c (target_flash_erase): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_flash_erase>: Use
7805 TARGET_DEFAULT_NORETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_get_section_table): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_get_section_table>: Use
7812 TARGET_DEFAULT_RETURN.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_pid_to_str): Unconditionally delegate.
7818 (init_dummy_target): Don't initialize to_pid_to_str.
7819 (default_pid_to_str): Rename from dummy_pid_to_str.
7820 * target.h (struct target_ops) <to_pid_to_str>: Use
7821 TARGET_DEFAULT_FUNC.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_find_new_threads): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_find_new_threads>: Use
7828 TARGET_DEFAULT_RETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_program_signals): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_program_signals>: Use
7835 TARGET_DEFAULT_IGNORE.
7837 2014-02-19 Tom Tromey <tromey@redhat.com>
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_pass_signals): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_pass_signals>: Use
7842 TARGET_DEFAULT_IGNORE.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (default_mourn_inferior): New function.
7848 (target_mourn_inferior): Unconditionally delegate.
7849 * target.h (struct target_ops) <to_mourn_inferior>: Use
7850 TARGET_DEFAULT_FUNC.
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * target-delegates.c: Rebuild.
7855 * target.c (default_follow_fork): New function.
7856 (target_follow_fork): Unconditionally delegate.
7857 * target.h (struct target_ops) <to_follow_fork>: Use
7858 TARGET_DEFAULT_FUNC.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target-delegates.c: Rebuild.
7863 * target.c (target_kill): Unconditionally delegate.
7864 * target.h (struct target_ops) <to_kill>: Use
7865 TARGET_DEFAULT_NORETURN.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target-delegates.c: Rebuild.
7870 * target.c (target_masked_watch_num_registers): Unconditionally
7872 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7873 Use TARGET_DEFAULT_RETURN.
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7877 * target-delegates.c: Rebuild.
7878 * target.c (target_remove_mask_watchpoint): Unconditionally
7880 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7881 TARGET_DEFAULT_RETURN.
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target-delegates.c: Rebuild.
7886 * target.c (target_insert_mask_watchpoint): Unconditionally
7888 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7889 TARGET_DEFAULT_RETURN.
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target-delegates.c: Rebuild.
7894 * target.c (target_ranged_break_num_registers): Unconditionally
7896 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7897 Use TARGET_DEFAULT_RETURN.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target-delegates.c: Rebuild.
7902 * target.c (target_fetch_registers): Unconditionally delegate.
7903 * target.h (struct target_ops) <to_fetch_registers>: Use
7904 TARGET_DEFAULT_NORETURN.
7906 2014-02-19 Tom Tromey <tromey@redhat.com>
7908 * target-delegates.c: Rebuild.
7909 * target.c (update_current_target): Don't inherit or default
7911 * target.h (struct target_ops) <to_stop>: Use
7912 TARGET_DEFAULT_IGNORE.
7914 2014-02-19 Tom Tromey <tromey@redhat.com>
7916 * target-delegates.c: Rebuild.
7917 * target.c (update_current_target): Don't inherit or default
7918 to_can_run_breakpoint_commands.
7919 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7920 Use TARGET_DEFAULT_RETURN.
7922 2014-02-19 Tom Tromey <tromey@redhat.com>
7924 * target-delegates.c: Rebuild.
7925 * target.c (update_current_target): Don't inherit or default
7926 to_supports_evaluation_of_breakpoint_conditions.
7927 * target.h (struct target_ops)
7928 <to_supports_evaluation_of_breakpoint_conditions>: Use
7929 TARGET_DEFAULT_RETURN.
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7935 to_augmented_libraries_svr4_read.
7936 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7937 Use TARGET_DEFAULT_RETURN.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7944 * target.h (struct target_ops) <to_can_use_agent>: Use
7945 TARGET_DEFAULT_RETURN.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7952 * target.h (struct target_ops) <to_use_agent>: Use
7953 TARGET_DEFAULT_NORETURN.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7960 (return_null): Remove.
7961 * target.h (struct target_ops) <to_traceframe_info>: Use
7962 TARGET_DEFAULT_RETURN.
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7968 to_static_tracepoint_markers_by_strid.
7969 * target.h (struct target_ops)
7970 <to_static_tracepoint_markers_by_strid>: Use
7971 TARGET_DEFAULT_NORETURN.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (update_current_target): Don't inherit or default
7977 to_static_tracepoint_marker_at.
7978 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7979 Use TARGET_DEFAULT_RETURN.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target-delegates.c: Rebuild.
7984 * target.c (update_current_target): Don't inherit or default
7986 * target.h (struct target_ops) <to_set_permissions>: Use
7987 TARGET_DEFAULT_IGNORE.
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7991 * target-delegates.c: Rebuild.
7992 * target.c (update_current_target): Don't inherit or default
7994 * target.h (struct target_ops) <to_get_tib_address>: Use
7995 TARGET_DEFAULT_NORETURN.
7997 2014-02-19 Tom Tromey <tromey@redhat.com>
7999 * target-delegates.c: Rebuild.
8000 * target.c (update_current_target): Don't inherit or default
8002 * target.h (struct target_ops) <to_set_trace_notes>: Use
8003 TARGET_DEFAULT_RETURN.
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8007 * target-delegates.c: Rebuild.
8008 * target.c (update_current_target): Don't initialize
8009 to_set_trace_buffer_size.
8010 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8011 TARGET_DEFAULT_IGNORE.
8013 2014-02-19 Tom Tromey <tromey@redhat.com>
8015 * target-delegates.c: Rebuild.
8016 * target.c (update_current_target): Don't inherit or default
8017 to_set_circular_trace_buffer.
8018 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8019 TARGET_DEFAULT_IGNORE.
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * target-delegates.c: Rebuild.
8024 * target.c (update_current_target): Don't inherit or default
8025 to_set_disconnected_tracing.
8026 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8027 TARGET_DEFAULT_IGNORE.
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8031 * target-delegates.c: Rebuild.
8032 * target.c (update_current_target): Don't inherit or default
8033 to_get_min_fast_tracepoint_insn_len.
8034 (return_minus_one): Remove.
8035 * target.h (struct target_ops)
8036 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target-delegates.c: Rebuild.
8041 * target.c (update_current_target): Don't inherit or default
8042 to_get_raw_trace_data.
8043 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8044 TARGET_DEFAULT_NORETURN.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target-delegates.c: Rebuild.
8049 * target.c (update_current_target): Don't inherit or default
8050 to_upload_trace_state_variables.
8051 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8052 Use TARGET_DEFAULT_RETURN.
8054 2014-02-19 Tom Tromey <tromey@redhat.com>
8056 * target-delegates.c: Rebuild.
8057 * target.c (update_current_target): Don't inherit or default
8058 to_upload_tracepoints.
8059 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8060 TARGET_DEFAULT_RETURN.
8062 2014-02-19 Tom Tromey <tromey@redhat.com>
8064 * target-delegates.c: Rebuild.
8065 * target.c (update_current_target): Don't inherit or default
8067 * target.h (struct target_ops) <to_save_trace_data>: Use
8068 TARGET_DEFAULT_NORETURN.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target-delegates.c: Rebuild.
8073 * target.c (update_current_target): Don't inherit or default
8074 to_get_trace_state_variable_value.
8075 * target.h (struct target_ops)
8076 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8080 * target-delegates.c: Rebuild.
8081 * target.c (update_current_target): Don't inherit or default
8083 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8090 * target.h (struct target_ops) <to_trace_stop>: Use
8091 TARGET_DEFAULT_NORETURN.
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_get_tracepoint_status.
8098 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8099 TARGET_DEFAULT_NORETURN.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_get_trace_status.
8106 * target.h (struct target_ops) <to_get_trace_status>: Use
8107 TARGET_DEFAULT_RETURN.
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8114 * target.h (struct target_ops) <to_trace_start>: Use
8115 TARGET_DEFAULT_NORETURN.
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_trace_set_readonly_regions.
8122 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8123 Use TARGET_DEFAULT_NORETURN.
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8129 to_disable_tracepoint.
8130 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8131 TARGET_DEFAULT_NORETURN.
8133 2014-02-19 Tom Tromey <tromey@redhat.com>
8135 * target-delegates.c: Rebuild.
8136 * target.c (update_current_target): Don't inherit or default
8137 to_enable_tracepoint.
8138 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8139 TARGET_DEFAULT_NORETURN.
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8143 * target-delegates.c: Rebuild.
8144 * target.c (update_current_target): Don't inherit or default
8145 to_download_trace_state_variable.
8146 * target.h (struct target_ops) <to_download_trace_state_variable>:
8147 Use TARGET_DEFAULT_NORETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (update_current_target): Don't inherit or default
8153 to_can_download_tracepoint.
8154 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8155 TARGET_DEFAULT_RETURN.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target-delegates.c: Rebuild.
8160 * target.c (update_current_target): Don't inherit or default
8161 to_download_tracepoint.
8162 * target.h (struct target_ops) <to_download_tracepoint>: Use
8163 TARGET_DEFAULT_NORETURN.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target-delegates.c: Rebuild.
8168 * target.c (update_current_target): Don't inherit or default
8170 * target.h (struct target_ops) <to_trace_init>: Use
8171 TARGET_DEFAULT_RETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8177 to_supports_string_tracing.
8178 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8179 TARGET_DEFAULT_RETURN.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target-delegates.c: Rebuild.
8184 * target.c (update_current_target): Don't inherit or default
8185 to_supports_enable_disable_tracepoint.
8186 * target.h (struct target_ops)
8187 <to_supports_enable_disable_tracepoint>: Use
8188 TARGET_DEFAULT_RETURN.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (update_current_target): Don't inherit or default
8194 to_supports_multi_process.
8195 * target.h (struct target_ops) <to_supports_multi_process>: Use
8196 TARGET_DEFAULT_RETURN.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target-delegates.c: Rebuild.
8201 * target.c (update_current_target): Don't inherit or default
8202 to_get_ada_task_ptid.
8203 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8204 TARGET_DEFAULT_FUNC.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (update_current_target): Don't inherit or default
8210 to_thread_architecture.
8211 * target.h (struct target_ops) <to_thread_architecture>: Use
8212 TARGET_DEFAULT_FUNC.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target-delegates.c: Rebuild.
8217 * target.c (update_current_target): Don't inherit or default
8218 to_execution_direction.
8219 * target.h (struct target_ops) <to_execution_direction>: Use
8220 TARGET_DEFAULT_FUNC.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (update_current_target): Don't inherit or default
8226 to_can_execute_reverse.
8227 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8228 TARGET_DEFAULT_RETURN.
8229 (target_can_execute_reverse): Unconditionally delegate.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target-delegates.c: Rebuild.
8234 * target.c (update_current_target): Don't inherit or default
8236 (dummy_goto_bookmark): Remove.
8237 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8238 * target.h (struct target_ops) <to_goto_bookmark>: Use
8239 TARGET_DEFAULT_NORETURN.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8246 (dummy_get_bookmark): Remove.
8247 (init_dummy_target): Don't inherit or default to_get_bookmark.
8248 * target.h (struct target_ops) <to_get_bookmark>: Use
8249 TARGET_DEFAULT_NORETURN
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8255 to_make_corefile_notes.
8256 (init_dummy_target): Don't initialize to_make_corefile_notes.
8257 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8258 TARGET_DEFAULT_FUNC.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (update_current_target): Don't inherit or default
8264 to_find_memory_regions.
8265 (init_dummy_target): Don't initialize to_find_memory_regions.
8266 * target.h (struct target_ops) <to_find_memory_regions>: Use
8267 TARGET_DEFAULT_FUNC.
8269 2014-02-19 Tom Tromey <tromey@redhat.com>
8271 * target-delegates.c: Rebuild.
8272 * target.c (update_current_target): Don't inherit or default
8274 * target.h (struct target_ops) <to_log_command>: Use
8275 TARGET_DEFAULT_IGNORE.
8276 (target_log_command): Unconditionally delegate.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target-delegates.c: Rebuild.
8281 * target.c (update_current_target): Don't inherit or default
8282 to_pid_to_exec_file.
8283 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8284 TARGET_DEFAULT_RETURN.
8286 2014-02-19 Tom Tromey <tromey@redhat.com>
8288 * target-delegates.c: Rebuild.
8289 * target.c (update_current_target): Don't inherit or default
8291 (target_thread_name): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_thread_name>: Use
8293 TARGET_DEFAULT_RETURN.
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target-delegates.c: Rebuild.
8298 * target.c (update_current_target): Don't inherit or default
8299 to_extra_thread_info.
8300 * target.h (struct target_ops) <to_extra_thread_info>: Use
8301 TARGET_DEFAULT_RETURN.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8308 * target.h (struct target_ops) <to_has_exited>: Use
8309 TARGET_DEFAULT_RETURN..
8311 2014-02-19 Tom Tromey <tromey@redhat.com>
8313 * target-delegates.c: Rebuild.
8314 * target.c (update_current_target): Don't inherit or default
8315 to_set_syscall_catchpoint.
8316 (return_one): Remove.
8317 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8318 TARGET_DEFAULT_RETURN.
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_insert_exec_catchpoint.
8325 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8326 TARGET_DEFAULT_RETURN.
8328 2014-01-08 Tom Tromey <tromey@redhat.com>
8330 * target-delegates.c: Rebuild.
8331 * target.c (update_current_target): Don't inherit or default
8332 to_insert_exec_catchpoint.
8333 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8334 TARGET_DEFAULT_RETURN.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8340 to_remove_vfork_catchpoint.
8341 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8342 TARGET_DEFAULT_RETURN.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * target-delegates.c: Rebuild.
8347 * target.c (update_current_target): Don't inherit or default
8348 to_insert_vfork_catchpoint.
8349 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8350 TARGET_DEFAULT_RETURN.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target-delegates.c: Rebuild.
8355 * target.c (update_current_target): Don't inherit or default
8356 to_remove_fork_catchpoint.
8357 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8358 TARGET_DEFAULT_RETURN.
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8362 * target-delegates.c: Rebuild.
8363 * target.c (update_current_target): Don't inherit or default
8364 to_insert_fork_catchpoint.
8365 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8366 TARGET_DEFAULT_RETURN.
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8370 * target-delegates.c: Rebuild.
8371 * target.c (update_current_target): Don't inherit or default
8372 to_post_startup_inferior.
8373 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8374 TARGET_DEFAULT_IGNORE.
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8378 * target-delegates.c: Rebuild.
8379 * target.c (update_current_target): Don't inherit or default
8381 * target.h (struct target_ops) <to_load>: Use
8382 TARGET_DEFAULT_NORETURN.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * target-delegates.c: Rebuild.
8387 * target.c (update_current_target): Don't inherit or default
8389 * target.h (struct target_ops) <to_terminal_info>: Use
8390 TARGET_DEFAULT_FUNC.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (update_current_target): Don't inherit or default
8396 to_terminal_save_ours.
8397 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8398 TARGET_DEFAULT_IGNORE.
8400 2014-02-19 Tom Tromey <tromey@redhat.com>
8402 * target-delegates.c: Rebuild.
8403 * target.c (update_current_target): Don't inherit or default
8405 * target.h (struct target_ops) <to_terminal_ours>: Use
8406 TARGET_DEFAULT_IGNORE.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (update_current_target): Don't inherit or default
8412 to_terminal_ours_for_output.
8413 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8414 TARGET_DEFAULT_IGNORE.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8420 to_terminal_inferior.
8421 * target.h (struct target_ops) <to_terminal_inferior>: Use
8422 TARGET_DEFAULT_IGNORE.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8429 * target.h (struct target_ops) <to_terminal_init>: Use
8430 TARGET_DEFAULT_IGNORE.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_can_accel_watchpoint_condition.
8437 * target.h (struct target_ops)
8438 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (update_current_target): Don't inherit or default
8444 to_region_ok_for_hw_watchpoint.
8445 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8446 Use TARGET_DEFAULT_FUNC.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target-delegates.c: Rebuild.
8451 * target.c (update_current_target): Don't inherit or default
8452 to_watchpoint_addr_within_range.
8453 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8454 Use TARGET_DEFAULT_FUNC.
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8458 * target-delegates.c: Rebuild.
8459 * target.c (update_current_target): Don't inherit or default
8460 to_remove_watchpoint.
8461 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8462 TARGET_DEFAULT_NORETURN.
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8466 * target-delegates.c: Rebuild.
8467 * target.c (update_current_target): Don't inherit or default
8468 to_insert_watchpoint.
8469 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8470 TARGET_DEFAULT_RETURN.
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_remove_hw_breakpoint.
8477 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8478 TARGET_DEFAULT_RETURN.
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_insert_hw_breakpoint.
8485 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8486 TARGET_DEFAULT_RETURN.
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_can_use_hw_breakpoint.
8493 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8494 TARGET_DEFAULT_RETURN.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8501 * target.h (struct target_ops) <to_files_info>: Use
8502 TARGET_DEFAULT_IGNORE.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8509 * target.h (struct target_ops) <to_store>: Use
8510 TARGET_DEFAULT_NORETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (update_current_target): Don't inherit or default
8517 * target.h (struct target_ops) <to_post_attach>: Use
8518 TARGET_DEFAULT_IGNORE.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target-delegates.c: Rebuild.
8523 * target.c (update_current_target): Don't inherit or default
8525 (default_rcmd): New function.
8526 (do_monitor_command): Unconditionally delegate.
8527 * target.h (struct target_ops) <to_rmcd>: Use
8528 TARGET_DEFAULT_FUNC.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (init_dummy_target): Don't initialize to_attach.
8534 (target_attach): Unconditionally delegate.
8535 * target.h (struct target_ops) <to_attach>: Use
8536 TARGET_DEFAULT_FUNC.
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8540 * target-delegates.c: Rebuild.
8541 * target.c (target_detach): Unconditionally delegate.
8542 (init_dummy_target): Don't initialize to_detach.
8543 * target.h (struct target_ops) <to_detach>: Use
8544 TARGET_DEFAULT_IGNORE.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8550 (target_augmented_libraries_svr4_read): Add argument.
8551 * target.c (update_current_target): Update.
8552 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target.h (struct target_ops) <to_call_history_range>: Add
8559 * target.c (target_call_history_range): Add argument.
8560 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8562 (record_btrace_call_history_from): Update.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target.h (struct target_ops) <to_call_history_from>: Add
8568 * target.c (target_call_history_from): Add argument.
8569 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target.h (struct target_ops) <to_call_history>: Add argument.
8575 * target.c (target_call_history): Add argument.
8576 * record-btrace.c (record_btrace_call_history): Add 'self'
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target.h (struct target_ops) <to_insn_history_range>: Add
8583 * target.c (target_insn_history_range): Add argument.
8584 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8586 (record_btrace_insn_history_from): Update.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target.h (struct target_ops) <to_insn_history_from>: Add
8592 * target.c (target_insn_history_from): Add argument.
8593 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target.h (struct target_ops) <to_insn_history>: Add argument.
8599 * target.c (target_insn_history): Add argument.
8600 * record-btrace.c (record_btrace_insn_history): Add 'self'
8603 2014-02-19 Tom Tromey <tromey@redhat.com>
8605 * target.h (struct target_ops) <to_goto_record>: Add argument.
8606 * target.c (target_goto_record): Add argument.
8607 * record-full.c (record_full_goto): Add 'self' argument.
8608 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8613 * target.c (target_goto_record_end): Add argument.
8614 * record-full.c (record_full_goto_end): Add 'self' argument.
8615 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target.h (struct target_ops) <to_goto_record_begin>: Add
8621 * target.c (target_goto_record_begin): Add argument.
8622 * record-full.c (record_full_goto_begin): Add 'self' argument.
8623 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target.h (struct target_ops) <to_record_is_replaying>: Add
8630 * target.c (target_record_is_replaying): Add argument.
8631 * record-full.c (record_full_is_replaying): Add 'self' argument.
8632 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8634 (record_btrace_xfer_partial, record_btrace_store_registers)
8635 (record_btrace_prepare_to_store, record_btrace_resume)
8636 (record_btrace_wait, record_btrace_decr_pc_after_break)
8637 (record_btrace_find_new_threads, record_btrace_thread_alive):
8640 2014-02-19 Tom Tromey <tromey@redhat.com>
8642 * target.h (struct target_ops) <to_delete_record>: Add argument.
8643 * target.c (target_delete_record): Add argument.
8644 * record-full.c (record_full_delete): Add 'self' argument.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target.h (struct target_ops) <to_save_record>: Add argument.
8649 * target.c (target_save_record): Add argument.
8650 * record-full.c (record_full_save): Add 'self' argument.
8651 (record_full_save): Add 'self' argument.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target.h (struct target_ops) <to_info_record>: Add argument.
8656 * target.c (target_info_record): Add argument.
8657 * record.c (info_record_command): Add argument.
8658 * record-full.c (record_full_info): Add 'self' argument.
8659 * record-btrace.c (record_btrace_info): Add 'self' argument.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8664 * target.c (target_stop_recording): Add argument.
8665 * record.c (record_stop): Add argument.
8666 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8672 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8673 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8675 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8676 (_initialize_amd64_linux_nat): Use it.
8677 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8678 (_initialize_i386_linux_nat): Use it.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8683 * target.c (target_teardown_btrace): Add argument.
8684 * remote.c (remote_teardown_btrace): Add 'self' argument.
8685 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8687 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8693 * target.c (target_disable_btrace): Add argument.
8694 * remote.c (remote_disable_btrace): Add 'self' argument.
8695 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8697 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8703 * target.c (target_enable_btrace): Add argument.
8704 * remote.c (remote_enable_btrace): Add 'self' argument.
8705 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8707 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8713 (target_can_use_agent): Add argument.
8714 * target.c (update_current_target): Update.
8715 * remote.c (remote_can_use_agent): Add 'self' argument.
8716 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target.h (struct target_ops) <to_use_agent>: Add argument.
8721 (target_use_agent): Add argument.
8722 * target.c (update_current_target): Update.
8723 * remote.c (remote_use_agent): Add 'self' argument.
8724 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8729 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8730 (target_traceframe_info): Add argument.
8731 * target.c (update_current_target): Update.
8732 * remote.c (remote_traceframe_info): Add 'self' argument.
8733 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target.h (target_static_tracepoint_markers_by_strid): Add
8739 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8741 * target.c (update_current_target): Update.
8742 * remote.c (struct target_ops)
8743 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8744 * linux-nat.c (struct target_ops)
8745 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8751 (target_static_tracepoint_marker_at): Add argument.
8752 * target.c (update_current_target): Update.
8753 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8759 (target_set_permissions): Add argument.
8760 * target.c (update_current_target): Update.
8761 * remote.c (remote_set_permissions): Add 'self' argument.
8762 (remote_start_remote): Update.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8767 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8768 (target_get_tib_address): Add argument.
8769 * target.c (update_current_target): Update.
8770 * remote.c (remote_get_tib_address): Add 'self' argument.
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8775 (target_set_trace_notes): Add argument.
8776 * target.c (update_current_target): Update.
8777 * remote.c (remote_set_trace_notes): Add 'self' argument.
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8781 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8783 (target_set_trace_buffer_size): Add argument.
8784 * target.c (update_current_target): Update.
8785 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8787 2014-02-19 Tom Tromey <tromey@redhat.com>
8789 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8791 (target_set_circular_trace_buffer): Add argument.
8792 * target.c (update_current_target): Update.
8793 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8800 (target_set_disconnected_tracing): Add argument.
8801 * target.c (update_current_target): Update.
8802 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target.h (struct target_ops)
8807 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8808 (target_get_min_fast_tracepoint_insn_len): Add argument.
8809 * target.c (update_current_target): Update.
8810 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8817 (target_get_raw_trace_data): Add argument.
8818 * target.c (update_current_target): Update.
8819 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8825 (target_upload_trace_state_variables): Add argument.
8826 * target.c (update_current_target): Update.
8827 * remote.c (remote_upload_trace_state_variables): Add 'self'
8829 (remote_start_remote): Update.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8835 (target_upload_tracepoints): Add argument.
8836 * target.c (update_current_target): Update.
8837 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8838 (remote_start_remote): Update.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8843 (target_save_trace_data): Add argument.
8844 * target.c (update_current_target): Update.
8845 * remote.c (remote_save_trace_data): Add 'self' argument.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8851 * target.h (struct target_ops)
8852 <to_get_trace_state_variable_value>: Add argument.
8853 (target_get_trace_state_variable_value): Add argument.
8854 * target.c (update_current_target): Update.
8855 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8857 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8862 * target.h (struct target_ops) <to_trace_find>: Add argument.
8863 (target_trace_find): Add argument.
8864 * target.c (update_current_target): Update.
8865 * remote.c (remote_trace_find): Add 'self' argument.
8866 * ctf.c (ctf_trace_find): Add 'self' argument.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8871 (target_trace_stop): Add argument.
8872 * target.c (update_current_target): Update.
8873 * remote.c (remote_trace_stop): Add 'self' argument.
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8878 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8880 (target_get_tracepoint_status): Add argument.
8881 * target.c (update_current_target): Update.
8882 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8887 * target.h (struct target_ops) <to_get_trace_status>: Add
8889 (target_get_trace_status): Add argument.
8890 * target.c (update_current_target): Update.
8891 * remote.c (remote_get_trace_status): Add 'self' argument.
8892 (remote_start_remote, remote_can_download_tracepoint): Update.
8893 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target.h (struct target_ops) <to_trace_start>: Add argument.
8898 (target_trace_start): Add argument.
8899 * target.c (update_current_target): Update.
8900 * remote.c (remote_trace_start): Add 'self' argument.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8906 (target_trace_set_readonly_regions): Add argument.
8907 * target.c (update_current_target): Update.
8908 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8915 (target_disable_tracepoint): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8923 (target_enable_tracepoint): Add argument.
8924 * target.c (update_current_target): Update.
8925 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_download_trace_state_variable>:
8931 (target_download_trace_state_variable): Add argument.
8932 * target.c (update_current_target): Update.
8933 * remote.c (remote_download_trace_state_variable): Add 'self'
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8938 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8940 (target_can_download_tracepoint): Add argument.
8941 * target.c (update_current_target): Update.
8942 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target.h (struct target_ops) <to_download_tracepoint>: Add
8948 (target_download_tracepoint): Add argument.
8949 * target.c (update_current_target): Update.
8950 * remote.c (remote_download_tracepoint): Add 'self' argument.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target.h (struct target_ops) <to_trace_init>: Add argument.
8955 (target_trace_init): Add argument.
8956 * target.c (update_current_target): Update.
8957 * remote.c (remote_trace_init): Add 'self' argument.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8962 * target.c (target_fileio_readlink): Add argument.
8963 * remote.c (remote_hostio_readlink): Add 'self' argument.
8964 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8968 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8969 * target.c (target_fileio_unlink): Add argument.
8970 * remote.c (remote_hostio_unlink): Add 'self' argument.
8971 (remote_file_delete): Update.
8972 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8977 * target.c (target_fileio_close): Add argument.
8978 * remote.c (remote_hostio_close): Add 'self' argument.
8979 (remote_hostio_close_cleanup): Update.
8980 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8982 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8987 * target.c (target_fileio_pread): Add argument.
8988 * remote.c (remote_hostio_pread): Add 'self' argument.
8989 (remote_bfd_iovec_pread, remote_file_get): Update.
8990 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8995 * target.c (target_fileio_pwrite): Add argument.
8996 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8997 (remote_file_put): Update.
8998 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9003 * target.c (target_fileio_open): Add argument.
9004 * remote.c (remote_hostio_open): Add 'self' argument.
9005 (remote_bfd_iovec_open): Add 'self' argument.
9006 (remote_file_put): Add 'self' argument.
9007 (remote_file_get): Add 'self' argument.
9008 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9012 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9014 (target_can_run_breakpoint_commands): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9018 (remote_insert_breakpoint): Add 'self' argument.
9019 (remote_insert_hw_breakpoint): Add 'self' argument.
9020 (remote_can_run_breakpoint_commands): Add 'self' argument.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target.h (struct target_ops)
9025 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9026 (target_supports_evaluation_of_breakpoint_conditions): Add
9028 * target.c (update_current_target): Update.
9029 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9031 (remote_insert_breakpoint): Add 'self' argument.
9032 (remote_insert_hw_breakpoint): Add 'self' argument.
9033 (remote_supports_cond_breakpoints): Add 'self' argument.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9039 (target_supports_string_tracing): Add argument.
9040 * target.c (update_current_target): Update.
9041 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target.h (struct target_ops)
9046 <to_supports_disable_randomization>: Add argument.
9047 * target.c (find_default_supports_disable_randomization): Add
9049 (target_supports_disable_randomization): Add argument.
9050 (find_default_supports_disable_randomization): Add 'self'
9052 * remote.c (extended_remote_supports_disable_randomization): Add
9054 (remote_supports_disable_randomization): Add 'self' argument.
9055 (extended_remote_create_inferior): Update.
9056 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target.h (struct target_ops)
9062 <to_supports_enable_disable_tracepoint>: Add argument.
9063 (target_supports_enable_disable_tracepoint): Add argument.
9064 * target.c (update_current_target): Update.
9065 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * target.h (struct target_ops) <to_supports_multi_process>: Add
9072 (target_supports_multi_process): Add argument.
9073 * target.c (update_current_target): Update.
9074 * remote.c (remote_supports_multi_process): Add 'self' argument.
9075 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9077 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_execution_direction>: Add
9084 (target_execution_direction): Add argument.
9085 * target.c (default_execution_direction): Add 'self' argument.
9086 * record-full.c (record_full_execution_direction): Add 'self'
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9093 (target_can_execute_reverse): Add argument.
9094 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9095 * record-full.c (record_full_can_execute_reverse): Add 'self'
9097 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9102 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9103 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9105 (target_get_ada_task_ptid): Add argument.
9106 * target.c (update_current_target): Update.
9107 (default_get_ada_task_ptid): Add 'self' argument.
9108 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9109 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9110 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9112 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9114 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9116 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9118 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9119 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9124 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9125 (target_goto_bookmark): Add argument.
9126 * target.c (dummy_goto_bookmark): Add 'self' argument.
9127 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9132 (target_get_bookmark): Add argument.
9133 * target.c (dummy_get_bookmark): Add 'self' argument.
9134 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9140 (target_make_corefile_notes): Add argument.
9141 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9142 * procfs.c (procfs_make_note_section): Add 'self' argument.
9143 (procfs_make_note_section): Add 'self' argument.
9144 (procfs_make_note_section): Add 'self' argument.
9145 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9147 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9148 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9149 * exec.c (exec_make_note_section): Add 'self' argument.
9150 (exec_make_note_section): Add 'self' argument.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.h (struct target_ops) <to_find_memory_regions>: Add
9156 (target_find_memory_regions): Add argument.
9157 * target.c (dummy_find_memory_regions): Add 'self' argument.
9158 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9159 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9160 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9161 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9162 * exec. (exec_do_find_memory_regions): New global.
9163 (exec_set_find_memory_regions): Rewrite.
9164 (exec_find_memory_regions): New function.
9165 (init_exec_ops): Use exec_find_memory_regions.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target.h (struct target_ops) <to_supports_non_stop>: Add
9171 * target.c (find_default_supports_non_stop): Add argument.
9172 (target_supports_non_stop): Add argument.
9173 (find_default_supports_non_stop): Add 'self' argument.
9174 * remote.c (remote_supports_non_stop): Add 'self' argument.
9175 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_log_command>: Add argument.
9180 (target_log_command): Add argument.
9181 * serial.h (serial_log_command): Add 'self' argument.
9182 * serial.c (serial_log_command): Add 'self' argument.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9187 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9189 (target_pid_to_exec_file): Add argument.
9190 * target.c (debug_to_pid_to_exec_file): Add argument.
9191 (update_current_target): Update.
9192 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9193 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9194 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9195 (linux_handle_extended_wait): Update.
9196 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9197 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9198 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9199 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target.h (struct target_ops) <to_rcmd>: Add argument.
9204 (target_rcmd): Add argument.
9205 * target.c (debug_to_rcmd): Add argument.
9206 (update_current_target, do_monitor_command): Update.
9207 * remote.c (remote_rcmd): Add 'self' argument.
9208 * monitor.c (monitor_rcmd): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * windows-nat.c (windows_stop): Add 'self' argument.
9213 * target.h (struct target_ops) <to_stop>: Add argument.
9214 * target.c (target_stop): Add argument.
9215 (debug_to_stop): Add argument.
9216 (update_current_target): Update.
9217 * remote.c (remote_stop): Add 'self' argument.
9218 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9219 (gdbsim_cntrl_c): Update.
9220 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9221 * procfs.c (procfs_stop): Add 'self' argument.
9222 * nto-procfs.c (procfs_stop): Add 'self' argument.
9223 * monitor.c (monitor_stop): Add 'self' argument.
9224 (monitor_open): Update.
9225 * linux-nat.c (linux_nat_stop): Add argument.
9226 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9227 * gnu-nat.c (gnu_stop): Add 'self' argument.
9228 * darwin-nat.c (darwin_stop): Add 'self' argument.
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9232 * target.h (struct target_ops) <to_thread_name>: Add argument.
9233 * target.c (target_thread_name): Add argument.
9234 (update_current_target): Update.
9235 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target.h (struct target_ops) <to_extra_thread_info>: Add
9241 (target_extra_thread_info): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_threads_extra_info): Add 'self' argument.
9244 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9246 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9247 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9248 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9250 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9252 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9254 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target.h (struct target_ops) <to_program_signals>: Add argument.
9260 * target.c (target_program_signals): Add argument.
9261 * remote.c (remote_program_signals): Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9266 * target.c (target_pass_signals): Add argument.
9267 * remote.c (remote_pass_signals): Add 'self' argument.
9268 (remote_start_remote): Update.
9269 * procfs.c (procfs_pass_signals): Add 'self' argument.
9270 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9271 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9272 (linux_nat_create_inferior, linux_nat_attach): Update.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * windows-nat.c (windows_can_run): Add 'self' argument.
9277 * target.h (struct target_ops) <to_can_run>: Add argument.
9278 (target_can_run): Add argument.
9279 * target.c (debug_to_can_run): Add argument.
9280 (update_current_target): Update.
9281 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9282 * inf-child.c (inf_child_can_run): Add 'self' argument.
9283 * go32-nat.c (go32_can_run): Add 'self' argument.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target.h (struct target_ops) <to_has_exited>: Add argument.
9288 (target_has_exited): Add argument.
9289 * target.c (debug_to_has_exited): Add argument.
9290 (update_current_target): Update.
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9296 (target_set_syscall_catchpoint): Add argument.
9297 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9299 * target.c (update_current_target): Update.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9305 (target_remove_exec_catchpoint): Add argument.
9306 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9307 (update_current_target): Update.
9308 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9315 (target_insert_exec_catchpoint): Add argument.
9316 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9317 (update_current_target): Update.
9318 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9321 2014-02-19 Tom Tromey <tromey@redhat.com>
9323 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9325 (target_remove_vfork_catchpoint): Add argument.
9326 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9327 (update_current_target): Update.
9328 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9335 (target_insert_vfork_catchpoint): Add argument.
9336 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9337 (update_current_target): Update.
9338 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9345 (target_remove_fork_catchpoint): Add argument.
9346 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9347 (update_current_target): Update.
9348 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9355 (target_insert_fork_catchpoint): Add argument.
9356 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9357 (update_current_target): Update.
9358 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9365 (target_post_startup_inferior): Add argument.
9366 * target.c (debug_to_post_startup_inferior): Add argument.
9367 (update_current_target): Update.
9368 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9370 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9372 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9374 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9376 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9378 (super_post_startup_inferior): Likewise.
9379 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9381 (super_post_startup_inferior): Likewise.
9382 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9383 Add 'self' argument.
9384 (super_post_startup_inferior): Likewise.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9388 * target.h (struct target_ops) <to_load>: Add argument.
9389 * target.c (target_load): Add argument.
9390 (debug_to_load): Add argument.
9391 (update_current_target): Update.
9392 * remote.c (remote_load): Add 'self' argument.
9393 * remote-sim.c (gdbsim_load): Add 'self' argument.
9394 * remote-mips.c (mips_load): Add 'self' argument.
9395 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9396 * monitor.c (monitor_load): Add 'self' argument.
9397 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9402 (target_terminal_info): Add argument.
9403 * target.c (debug_to_terminal_info): Add argument.
9404 (default_terminal_info): Likewise.
9405 * inflow.c (child_terminal_info): Add 'self' argument.
9406 * inferior.h (child_terminal_info): Add 'self' argument.
9407 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9409 2014-02-19 Tom Tromey <tromey@redhat.com>
9411 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9413 (target_terminal_save_ours): Add argument.
9414 * target.c (debug_to_terminal_save_ours): Add argument.
9415 (update_current_target): Update.
9416 * inflow.c (terminal_save_ours): Add 'self' argument.
9417 * inferior.h (terminal_save_ours): Add 'self' argument.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9422 (target_terminal_ours): Add argument.
9423 * target.c (debug_to_terminal_ours): Add argument.
9424 (update_current_target): Update.
9425 * remote.c (remote_terminal_ours): Add 'self' argument.
9426 (remote_close): Update.
9427 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9428 * inflow.c (terminal_ours): Add 'self' argument.
9429 * inferior.h (terminal_ours): Add 'self' argument.
9430 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9432 2014-02-19 Pedro Alves <palves@redhat.com>
9433 Tom Tromey <tromey@redhat.com>
9435 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9437 (target_terminal_ours_for_output): Add argument.
9438 * target.c (debug_to_terminal_ours_for_output): Add argument.
9439 (update_current_target): Update.
9440 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9441 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9442 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * target.h (struct target_ops) <to_terminal_inferior>: Add
9448 * target.c (target_terminal_inferior): Add argument.
9449 (update_current_target): Update.
9450 * remote.c (remote_terminal_inferior): Add 'self' argument.
9451 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9452 * inflow.c (terminal_inferior): Add 'self' argument.
9453 * inferior.h (terminal_inferior): Add 'self' argument.
9454 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9455 (go32_terminal_inferior): Add 'self' argument.
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9460 (target_terminal_init): Add argument.
9461 * target.c (debug_to_terminal_init): Add argument.
9462 (update_current_target): Update.
9463 * inflow.c (terminal_init_inferior): Add 'self' argument.
9464 * inferior.h (terminal_init_inferior): Add 'self' argument.
9465 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9466 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target.h (struct target_ops)
9471 <to_can_accel_watchpoint_condition>: Add argument.
9472 (target_can_accel_watchpoint_condition): Add argument.
9473 * target.c (debug_to_can_accel_watchpoint_condition): Add
9475 (update_current_target): Update.
9476 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9483 (target_region_ok_for_hw_watchpoint): Add argument.
9484 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9485 (default_region_ok_for_hw_watchpoint): Add argument.
9486 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9487 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9489 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9491 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9493 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9495 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9497 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9499 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9500 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9502 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9503 Add 'self' argument.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9509 (target_insert_watchpoint): Add argument.
9510 * target.c (debug_to_insert_watchpoint): Add argument.
9511 (update_current_target): Update.
9512 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9513 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9514 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9515 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9516 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9517 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9519 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9520 (procfs_insert_hw_watchpoint): Add 'self' argument.
9521 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9523 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9525 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9527 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9528 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9530 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9537 (target_remove_watchpoint): Add argument.
9538 * target.c (debug_to_remove_watchpoint): Add argument.
9539 (update_current_target): Update.
9540 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9541 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9542 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9543 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9544 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9545 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9547 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9548 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9550 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9552 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9554 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9555 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9557 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9564 (target_remove_hw_breakpoint): Add argument.
9565 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9566 (update_current_target): Update.
9567 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9568 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9570 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9571 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9573 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9580 (target_insert_hw_breakpoint): Add argument.
9581 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9582 (update_current_target): Update.
9583 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9584 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9586 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9587 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9588 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9590 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9597 (target_can_use_hardware_watchpoint): Add argument.
9598 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9599 (update_current_target): Update.
9600 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9602 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9604 * remote.c (remote_check_watch_resources): Add 'self' argument.
9605 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9606 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9608 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9609 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9611 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9613 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9615 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9617 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9619 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9621 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9622 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9624 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target.h (struct target_ops) <to_post_attach>: Add argument.
9630 (target_post_attach): Add argument.
9631 * target.c (debug_to_post_attach): Add argument.
9632 (update_current_target): Update.
9633 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9634 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9635 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9636 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9637 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * windows-nat.c (windows_close): Add 'self' argument.
9642 * tracepoint.c (tfile_close): Add 'self' argument.
9643 * target.h (struct target_ops) <to_close>: Add argument.
9644 * target.c (target_close): Add argument.
9645 (update_current_target): Update.
9646 * remote.c (remote_close): Add 'self' argument.
9647 * remote-sim.c (gdbsim_close): Add 'self' argument.
9648 * remote-mips.c (mips_close): Add 'self' argument.
9649 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9650 * record-full.c (record_full_close): Add 'self' argument.
9651 * record-btrace.c (record_btrace_close): Add 'self' argument.
9652 * monitor.h (monitor_close): Add 'self' argument.
9653 * monitor.c (monitor_close): Add 'self' argument.
9654 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9655 * linux-nat.c (linux_nat_close): Add argument.
9656 * go32-nat.c (go32_close): Add 'self' argument.
9657 * exec.c (exec_close_1): Add 'self' argument.
9658 * ctf.c (ctf_close): Add 'self' argument.
9659 * corelow.c (core_close): Add 'self' argument.
9660 (core_close_cleanup): Update.
9661 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9662 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * remote.c (remote_load): New function.
9667 (init_remote_ops): Use it.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9673 * common/linux-btrace.h (linux_supports_btrace): Update.
9674 * remote.c (remote_supports_btrace): Add "self" argument.
9675 * target-delegates.c: Rebuild.
9676 * target.c (target_supports_btrace): Remove.
9677 * target.h (struct target_ops) <to_supports_btrace>: Add
9678 target_ops argument.
9679 (target_supports_btrace): New define.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * record-full.c (record_full_beneath_to_resume_ops)
9684 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9685 (record_full_beneath_to_wait)
9686 (record_full_beneath_to_store_registers_ops)
9687 (record_full_beneath_to_store_registers)
9688 (record_full_beneath_to_xfer_partial_ops)
9689 (record_full_beneath_to_xfer_partial)
9690 (record_full_beneath_to_insert_breakpoint_ops)
9691 (record_full_beneath_to_insert_breakpoint)
9692 (record_full_beneath_to_remove_breakpoint_ops)
9693 (record_full_beneath_to_remove_breakpoint)
9694 (record_full_beneath_to_stopped_by_watchpoint)
9695 (record_full_beneath_to_stopped_data_address)
9696 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9697 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9698 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9699 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9700 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9701 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9702 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9703 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9704 (record_full_resume, record_full_wait_1)
9705 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9706 (record_full_store_registers, record_full_xfer_partial)
9707 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9708 (record_full_async, record_full_core_xfer_partial): Use target
9710 * target-delegates.c: Rebuild.
9711 * target.c (current_xfer_partial): Remove.
9712 (update_current_target): Do not INHERIT or de_fault
9713 to_insert_breakpoint, to_remove_breakpoint,
9714 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9715 to_is_async_p, to_async. Do not set to_xfer_partial field.
9716 (default_xfer_partial): Simplify.
9717 (current_xfer_partial): Remove.
9718 (target_wait, target_resume): Simplify.
9719 (find_default_can_async_p, find_default_is_async_p): Update.
9720 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9721 to_xfer_partial, to_stopped_by_watchpoint,
9722 to_stopped_data_address.
9723 (target_store_registers): Simplify.
9724 (forward_target_remove_breakpoint)
9725 (forward_target_insert_breakpoint): Remove.
9726 (target_remove_breakpoint, target_insert_breakpoint)
9727 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9728 * target.h (struct target_ops) <to_resume, to_wait,
9729 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9730 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9731 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9733 (forward_target_remove_breakpoint)
9734 (forward_target_insert_breakpoint): Remove.
9735 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9737 (record_btrace_insert_breakpoint): Delegate directly.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target-delegates.c: New file.
9743 * target.c: Include target-delegates.c.
9744 (init_dummy_target): Call install_dummy_methods.
9745 (complete_target_initialization): Call install_delegators.
9746 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9747 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9748 * make-target-delegates: New file.
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9752 * record.c (find_record_target): Use find_target_at.
9753 * target.c (find_target_at): New function.
9754 * target.h (find_target_at): Declare.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9760 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9762 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9763 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9765 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9767 * linux-nat.c (save_sigtrap): Update.
9768 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9769 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9770 (linux_nat_close): Update.
9771 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9773 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9775 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9776 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9777 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9778 (tmp_to_async): Add 'ops' argument.
9779 (record_full_stopped_by_watchpoint, record_full_async)
9780 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9782 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9783 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9784 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9785 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9786 (remote_is_async_p, remote_async): Add 'ops' argument.
9787 (remote_stopped_data_address): Update.
9788 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9789 * target.c (update_current_target)
9790 (find_default_can_async_p, find_default_is_async_p): Update.
9791 (init_dummy_target): Update.
9792 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9793 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9794 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9795 (target_can_async_p, target_is_async_p, target_async)
9796 (target_stopped_by_watchpoint): Update.
9798 2014-02-19 Yao Qi <yao@codesourcery.com>
9801 * gdbarch.sh: Remove startup_gdbarch.
9802 * gdbarch.c: Regenerated.
9803 * gdbarch.h: Likewise.
9805 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9807 * rl78-tdep.c (rl78_g10_register_name): New function.
9808 (rl78_return_value): Add g10 support.
9809 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9812 2014-02-17 Doug Evans <xdje42@gmail.com>
9814 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9815 (SUBDIR_GUILE_SRCS): Ditto.
9816 (scm-gsmob.o): Ditto.
9818 2014-02-17 Yao Qi <yao@codesourcery.com>
9820 * gnu-nat.c (ILL_RPC): Declare defined function.
9822 2014-02-17 Yao Qi <yao@codesourcery.com>
9824 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9825 mach_msg_type_number_t.
9826 (gnu_write_inferior): Likewise.
9828 2014-02-17 Yao Qi <yao@codesourcery.com>
9830 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9832 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9833 (inf_validate_procs, inf_signal): Likewise.
9834 (S_exception_raise_request): Likewise.
9835 (do_mach_notify_dead_name): Likewise.
9836 (steal_exc_port): Likewise.
9837 (gnu_read_inferior): Change 'copy_count''s type to
9838 mach_msg_type_number_t.
9839 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9842 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9844 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9845 flag. Adjust all users; in particular...
9846 (gnu_wait): ..., don't decrement its value in here...
9847 (gnu_create_inferior): ..., and instead set the flag in here,
9848 around the startup_inferior call, and call that one with
9849 START_INFERIOR_TRAPS_EXPECTED.
9851 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9852 (ILL_RPC): ... new macro.
9853 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9854 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9855 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9856 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9857 functions with ILL_RPC macro.
9858 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9859 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9860 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9861 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9862 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9863 (S_proc_getlogin_reply, S_proc_getsid_reply)
9864 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9865 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9866 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9867 (S_proc_getnports_reply, S_proc_is_important_reply)
9868 (S_proc_get_code_reply): New stub functions, generated with
9871 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9872 collected the type check structures.
9874 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9876 2014-02-14 Doug Evans <dje@google.com>
9878 * target.c (target_write_partial): Fix result type.
9880 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9882 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9883 the proper offsets to access fpregset_t.
9885 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9887 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9888 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9889 * h8300-tdep.c (setmachinelist): Remove global.
9890 * hppa-tdep.c (hppa_sigtramp): Remove global.
9891 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9892 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9893 * ravenscar-thread.c (update_target_observer): Remove global.
9894 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9896 2014-02-12 Tom Tromey <tromey@redhat.com>
9898 * common/rsp-low.c: Update comments.
9899 * common/rsp-low.h: Update comments.
9901 2014-02-12 Tom Tromey <tromey@redhat.com>
9903 * common/rsp-low.c (convert_ascii_to_int): Remove.
9904 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9906 2014-02-12 Tom Tromey <tromey@redhat.com>
9908 * common/rsp-low.h (unhexify): Don't declare.
9909 * common/rsp-low.c (unhexify): Remove.
9911 2014-02-12 Tom Tromey <tromey@redhat.com>
9913 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9914 * common/rsp-low.c (convert_int_to_ascii): Remove.
9916 2014-02-12 Tom Tromey <tromey@redhat.com>
9918 * common/rsp-low.h (hexify): Don't declare.
9919 * common/rsp-low.c (hexify): Remove.
9921 2014-02-12 Tom Tromey <tromey@redhat.com>
9923 * common/rsp-low.c (hexify): Never take strlen of argument.
9925 2014-02-12 Tom Tromey <tromey@redhat.com>
9927 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9928 * remote.c (extended_remote_run, remote_rcmd)
9929 (remote_download_trace_state_variable, remote_save_trace_data)
9930 (remote_set_trace_notes): Update.
9931 * tracepoint.c (encode_source_string, tfile_write_status)
9932 (tfile_write_uploaded_tsv): Update.
9934 2014-02-12 Tom Tromey <tromey@redhat.com>
9936 * tracepoint.c: Include rsp-low.h.
9937 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9938 * remote.c: Include rsp-low.h.
9939 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9940 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9941 (remote_unescape_input): Move to common/rsp-low.c.
9942 * common/rsp-low.h: New file.
9943 * common/rsp-low.c: New file.
9944 * Makefile.in (SFILES): Add common/rsp-low.c.
9945 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9946 (COMMON_OBS): Add rsp-low.o.
9947 (rsp-low.o): New target.
9949 2014-02-12 Tom Tromey <tromey@redhat.com>
9951 * utils.h: Include print-utils.h.
9952 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9953 (int_string, core_addr_to_string, core_addr_to_string_nz)
9954 (hex_string, hex_string_custom): Don't declare.
9955 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9956 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9957 (hex_string_custom, int_string, core_addr_to_string)
9958 (core_addr_to_string_nz, host_address_to_string): Move to
9959 common/print-utils.c.
9960 * common/print-utils.h: New file.
9961 * common/print-utils.c: New file
9962 * Makefile.in (SFILES): Add common/print-utils.c.
9963 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9964 (COMMON_OBS): Add print-utils.o.
9965 (print-utils.o): New target.
9967 2014-02-12 Tom Tromey <tromey@redhat.com>
9969 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9971 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9973 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9975 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9977 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9978 if a PT_IO ptrace request returns sucessfully but indicates that 0
9979 bytes were transferred.
9981 2014-02-12 Pedro Alves <palves@redhat.com>
9982 Kevin Buettner <kevinb@redhat.com>
9984 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9985 TYPE_INSTANCE_FLAG_CODE_SPACE.
9987 2014-02-12 Pedro Alves <palves@redhat.com>
9989 * h8300-tdep.c (pseudo_from_raw_register)
9990 (raw_from_pseudo_register): New functions.
9991 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9994 2014-02-12 Pedro Alves <palves@redhat.com>
9996 * h8300-tdep.c (h8300_register_sim_regno): New function.
9997 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9998 gdbarch_register_sim_regno hook.
10000 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10002 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10004 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10006 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10008 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10010 * obsd-tdep.h (obsd_init_abi): New prototype.
10011 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10012 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10013 (obsd_init_abi): New functions.
10014 * i386obsd-tdep.c: Include "obsd-tdep.h".
10015 (i386obsd_init_abi): Call obsd_init_abi.
10016 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10017 (amd64obsd_init_abi): Call obsd_init_abi.
10018 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10019 obsd-tdep.c to gdb_target_obs.
10021 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10023 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10024 double float arguments to 16-byte in the argument slots.
10026 2014-02-11 Doug Evans <xdje42@gmail.com>
10028 * configure.ac: Don't crash if pkg-config is not found and guile
10029 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10031 * configure: Regenerate.
10033 2014-02-11 Yao Qi <yao@codesourcery.com>
10035 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10036 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10037 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10038 * gnu-nat.c (gnu_xfer_memory): Likewise.
10039 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10040 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10041 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10042 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10044 2014-02-11 Yao Qi <yao@codesourcery.com>
10046 * target.h (enum target_xfer_error): Rename to ...
10047 (enum target_xfer_status): ... it. New. All users updated.
10048 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10050 (TARGET_XFER_STATUS_ERROR_P): New macro.
10051 (target_xfer_error_to_string): Remove declaration.
10052 (target_xfer_status_to_string): Declare.
10053 (target_xfer_partial_ftype): Adjust it.
10054 (struct target_ops) <to_xfer_partial>: Return
10055 target_xfer_status. Add argument xfered_len. Update
10057 * target.c (target_xfer_error_to_string): Rename to ...
10058 (target_xfer_status_to_string): ... it. New. All callers
10060 (target_read_live_memory): Likewise. Call target_xfer_partial
10061 instead of target_read.
10062 (memory_xfer_live_readonly_partial): Return
10063 target_xfer_status. Add argument xfered_len.
10064 (raw_memory_xfer_partial): Likewise.
10065 (memory_xfer_partial_1): Likewise.
10066 (memory_xfer_partial): Likewise.
10067 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10068 properly. Update debug message.
10069 (default_xfer_partial, current_xfer_partial): Likewise.
10070 (target_write_partial): Likewise.
10071 (target_read_partial): Likewise. All callers updated.
10072 (read_whatever_is_readable): Likewise.
10073 (target_write_with_progress): Likewise.
10074 (target_read_alloc_1): Likewise.
10076 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10077 * auxv.c (procfs_xfer_auxv): Likewise.
10078 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10079 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10080 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10081 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10082 * corefile.c (read_memory): Adjust.
10083 * corelow.c (core_xfer_partial): Likewise.
10084 * ctf.c (ctf_xfer_partial): Likewise.
10085 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10087 (darwin_xfer_partial): Likewise.
10088 * exec.c (section_table_xfer_memory_partial): Likewise. All
10090 (exec_xfer_partial): Likewise.
10091 * exec.h (section_table_xfer_memory_partial): Update
10093 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10095 (gnu_xfer_partial): Likewise.
10096 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10097 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10098 (ia64_hpux_xfer_solib_got): Likewise.
10099 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10100 type of 'partial_len' to ULONGEST.
10101 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10102 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10103 (linux_nat_xfer_partial): Likewise.
10104 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10105 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10106 * monitor.c (monitor_xfer_memory): Likewise.
10107 (monitor_xfer_partial): Likewise.
10108 * procfs.c (procfs_xfer_partial): Likewise.
10109 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10110 * record-full.c (record_full_xfer_partial): Likewise.
10111 (record_full_core_xfer_partial): Likewise.
10112 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10113 (gdbsim_xfer_partial): Likewise.
10114 * remote.c (remote_write_bytes_aux): Likewise. All callers
10116 (remote_write_bytes, remote_read_bytes): Likewise. All
10118 (remote_flash_erase): Likewise. All callers updated.
10119 (remote_write_qxfer): Likewise. All callers updated.
10120 (remote_read_qxfer): Likewise. All callers updated.
10121 (remote_xfer_partial): Likewise.
10122 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10123 (rs6000_xfer_shared_libraries): Likewise.
10124 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10125 (sol_thread_xfer_partial): Likewise.
10126 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10127 (sparc_xfer_partial): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10130 (spu_xfer_partial): Likewise.
10131 * spu-multiarch.c (spu_xfer_partial): Likewise.
10132 * tracepoint.c (tfile_xfer_partial): Likewise.
10133 * windows-nat.c (windows_xfer_memory): Likewise.
10134 (windows_xfer_shared_libraries): Likewise.
10135 (windows_xfer_partial): Likewise.
10136 * valprint.c: Replace 'target_xfer_error' with
10137 'target_xfer_status' in comments.
10139 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10141 Checked in by Joel Brobecker <brobecker@adacore.com>.
10142 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10144 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10146 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10147 function parameters.
10149 2014-02-10 Will Newton <will.newton@linaro.org>
10151 * elfread.c (elf_rel_plt_read): Look for a .got section if
10152 looking up .got.plt fails.
10153 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10154 on address passed to elf_gnu_ifunc_record_cache.
10155 (elf_gnu_ifunc_resolve_addr): Likewise.
10156 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10158 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10160 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10161 (X_RETTURN): New macro.
10162 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10164 * sparc64-tdep.c (sparc64_init_abi): Hook
10165 sparc_in_function_epilogue_p.
10167 2014-02-10 Gary Benson <gbenson@redhat.com>
10169 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10170 Rename name_matcher to symbol_matcher.
10172 2014-02-10 Gary Benson <gbenson@redhat.com>
10174 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10175 Use expand_symtabs_file_matcher_ftype and
10176 expand_symtabs_symbol_matcher_ftype.
10178 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10180 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10181 (struct ada_symbol_cache): New.
10182 (ada_free_symbol_cache): Forward declare.
10183 (struct ada_pspace_data): New.
10184 (ada_pspace_data_handle): New static global.
10185 (get_ada_pspace_data, ada_pspace_data_cleanup)
10186 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10187 (cache_space, cache): Delete, now folded inside struct
10189 (ada_get_symbol_cache): New function.
10190 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10192 (_initialize_ada_language): Remove initialization of cache_space.
10193 Move call to observer_attach_inferior_exit up, grouping it
10194 with the other observer registrations inside this function.
10195 Rename command to be more general. Add call to
10196 register_program_space_data_with_cleanup.
10198 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10200 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10201 ada_new_objfile_observer.
10202 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10203 (_initialize_tasks): Update uses of ada_new_objfile_observer
10204 and ada_tasks_normal_stop_observer.
10206 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10208 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10209 returned by the 'Length attribute to integer.
10211 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10213 * ada-lang.c (_initialize_ada_language): Initialize
10214 cache_space obstack.
10216 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10218 * ada-lang.c (HASH_SIZE): New macro.
10219 (struct cache_entry): New type.
10220 (cache_space, cache): New static globals.
10221 (ada_clear_symbol_cache, find_entry): New functions.
10222 (lookup_cached_symbol, cache_symbol): Implement.
10223 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10224 (_initialize_ada_language): Attach ada_new_objfile_observer
10225 and ada_free_objfile_observer.
10227 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10229 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10230 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10231 struct block * parameter.
10232 (ada_lookup_symbol_list_worker): Constify local variable "block".
10233 Remove cast which is no longer necessary.
10235 2014-02-10 Doug Evans <xdje42@gmail.com>
10237 Add Guile as an extension language.
10238 * NEWS: Mention Guile scripting.
10239 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10240 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10241 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10242 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10243 (CLIBS): Add GUILE_LIBS.
10244 (install-guile): New rule.
10245 (guile.o): New rule.
10246 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10247 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10248 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10249 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10250 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10251 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10252 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10253 * configure.ac: New option --with-guile.
10254 * configure: Regenerate.
10255 * config.in: Regenerate.
10256 * auto-load.c: Remove #include "python/python.h". Add #include
10257 "gdb/section-scripts.h".
10258 (source_section_scripts): Handle Guile scripts.
10259 (_initialize_auto_load): Add name of Guile objfile script to
10260 scripts-directory help text.
10261 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10262 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10263 (struct breakpoint): New member scm_bp_object.
10264 * defs.h (enum command_control_type): New value guile_control.
10265 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10267 (show_user): Update comment.
10268 (_initialize_cli_cmds): Update help text for "show user". Update help
10269 text for max-user-call-depth.
10270 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10272 (multi_line_command_p): Add guile_control.
10273 (print_command_lines): Handle guile_control.
10274 (execute_control_command, recurse_read_control_structure): Ditto.
10275 (process_next_line): Recognize "guile" commands.
10276 * disasm.c (gdb_disassemble_info): Make non-static.
10277 * disasm.h: #include "dis-asm.h".
10278 (struct gdbarch): Add forward decl.
10279 (gdb_disassemble_info): Declare.
10280 * extension.c: #include "guile/guile.h".
10281 (extension_languages): Add guile.
10282 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10283 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10284 * gdbtypes.c (get_unsigned_type_max): New function.
10285 (get_signed_type_minmax): New function.
10286 * gdbtypes.h (get_unsigned_type_max): Declare.
10287 (get_signed_type_minmax): Declare.
10288 * guile/README: New file.
10289 * guile/guile-internal.h: New file.
10290 * guile/guile.c: New file.
10291 * guile/guile.h: New file.
10292 * guile/scm-arch.c: New file.
10293 * guile/scm-auto-load.c: New file.
10294 * guile/scm-block.c: New file.
10295 * guile/scm-breakpoint.c: New file.
10296 * guile/scm-disasm.c: New file.
10297 * guile/scm-exception.c: New file.
10298 * guile/scm-frame.c: New file.
10299 * guile/scm-gsmob.c: New file.
10300 * guile/scm-iterator.c: New file.
10301 * guile/scm-lazy-string.c: New file.
10302 * guile/scm-math.c: New file.
10303 * guile/scm-objfile.c: New file.
10304 * guile/scm-ports.c: New file.
10305 * guile/scm-pretty-print.c: New file.
10306 * guile/scm-safe-call.c: New file.
10307 * guile/scm-string.c: New file.
10308 * guile/scm-symbol.c: New file.
10309 * guile/scm-symtab.c: New file.
10310 * guile/scm-type.c: New file.
10311 * guile/scm-utils.c: New file.
10312 * guile/scm-value.c: New file.
10313 * guile/lib/gdb.scm: New file.
10314 * guile/lib/gdb/boot.scm: New file.
10315 * guile/lib/gdb/experimental.scm: New file.
10316 * guile/lib/gdb/init.scm: New file.
10317 * guile/lib/gdb/iterator.scm: New file.
10318 * guile/lib/gdb/printing.scm: New file.
10319 * guile/lib/gdb/types.scm: New file.
10320 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10321 (VPATH): Add $(GUILE_SRCDIR).
10322 (GUILE_DIR): New variable.
10323 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10324 (all): Add stamp-guile dependency.
10325 (stamp-guile): New rule.
10326 (clean-guile, install-guile, uninstall-guile): New rules.
10327 (install-only): Add install-guile dependency.
10328 (uninstall): Add uninstall-guile dependency.
10329 (clean): Add clean-guile dependency.
10331 2014-02-09 Doug Evans <xdje42@gmail.com>
10333 Revert this patch (which I approved, mea culpa).
10335 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10337 * Makefile.in (all-lib): Remove.
10338 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10340 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10342 Fix Python stack corruption.
10343 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10346 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10348 * Makefile.in (all-lib): Remove.
10349 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10351 2014-02-07 Doug Evans <dje@google.com>
10353 * extension-priv.h (extension_language_script_ops): Add comment.
10354 (extension_language_ops): Add comment.
10355 (active_ext_lang_state): Fix typo in comment.
10357 2014-02-07 Pedro Alves <palves@redhat.com>
10359 PR breakpoints/16292
10360 * infrun.c (handle_signal_stop) <signal arrives while stepping
10361 over a breakpoint>: Switch back to the stepping thread.
10363 2014-02-07 Yao Qi <yao@codesourcery.com>
10365 * target.c (target_xfer_partial): Return zero if LEN is zero.
10367 2014-02-07 Yao Qi <yao@codesourcery.com>
10369 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10370 (ld_so_xfer_auxv): Likewise.
10371 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10372 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10373 * corelow.c (core_xfer_partial): Likewise.
10374 * ctf.c (ctf_xfer_partial): Likewise.
10375 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10376 (darwin_xfer_partial): Likewise.
10377 * exec.c (exec_xfer_partial): Likewise.
10378 * gnu-nat.c (gnu_xfer_partial): Likewise.
10379 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10380 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10381 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10382 * linux-nat.c (linux_xfer_siginfo): Likewise.
10383 (linux_proc_xfer_spu): Likewise.
10384 * procfs.c (procfs_xfer_partial): Likewise.
10385 * record-full.c (record_full_xfer_partial): Likewise.
10386 (record_full_core_xfer_partial): Likewise.
10387 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10388 * remote.c (remote_write_qxfer): Likewise.
10389 (remote_write_qxfer, remote_read_qxfer): Likewise.
10390 (remote_xfer_partial): Likewise.
10391 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10392 (rs6000_xfer_shared_libraries): Likewise.
10393 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10394 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10395 (spu_xfer_partial): Likewise.
10396 * target.c (memory_xfer_partial_1): Likewise.
10397 * tracepoint.c (tfile_xfer_partial): Likewise.
10398 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10399 (windows_xfer_partial): Likewise.
10401 2014-02-07 Yao Qi <yao@codesourcery.com>
10403 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10405 (core_xfer_shared_libraries_aix): Likewise.
10406 * gdbarch.c, gdbarch.h: Regenerated.
10407 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10408 ULONGEST. Change 'len_avail' type to ULONGEST.
10409 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10410 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10412 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10414 2014-02-07 Yao Qi <yao@codesourcery.com>
10416 * corefile.c (memory_error): Get 'exception' from ERR and pass
10417 'exception' to throw_error.
10419 2014-02-06 Doug Evans <xdje42@gmail.com>
10421 * configure.ac (libpython checking): Remove all but python.o from
10422 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10423 * configure: Regenerate.
10425 * Makefile.in (SFILES): Add extension.c.
10426 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10427 (COMMON_OBS): Add extension.o.
10428 * extension.h: New file.
10429 * extension-priv.h: New file.
10430 * extension.c: New file.
10432 * python/python-internal.h: #include "extension.h".
10433 (gdbpy_auto_load_enabled): Declare.
10434 (gdbpy_apply_val_pretty_printer): Declare.
10435 (gdbpy_apply_frame_filter): Declare.
10436 (gdbpy_preserve_values): Declare.
10437 (gdbpy_breakpoint_cond_says_stop): Declare.
10438 (gdbpy_breakpoint_has_cond): Declare.
10439 (void source_python_script_for_objfile): Delete.
10440 * python/python.c: #include "extension-priv.h".
10441 Delete inclusion of "observer.h".
10442 (extension_language_python): Moved here and renamed from
10443 script_language_python in py-auto-load.c.
10444 Redefined to be of type extension_language_defn.
10445 (python_extension_script_ops): New global.
10446 (python_extension_ops): New global.
10447 (struct python_env): New member previous_active.
10448 (restore_python_env): Call restore_active_ext_lang.
10449 (ensure_python_env): Call set_active_ext_lang.
10450 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10452 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10454 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10456 (gdbpy_eval_from_control_command): Renamed from
10457 eval_python_from_control_command, made static. New arg extlang.
10458 (gdbpy_source_script) Renamed from source_python_script, made static.
10460 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10461 result to int. New arg extlang.
10462 (gdbpy_source_objfile_script): Renamed from
10463 source_python_script_for_objfile, made static. New arg extlang.
10464 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10465 static. New args extlang, extlang_printers. Change result type to
10467 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10468 static. New arg extlang. Rename arg printers to extlang_printers
10469 and change type to ext_lang_type_printers *.
10470 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10471 static. Replace argument arg with extlang, extlang_printers.
10472 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10473 (!HAVE_PYTHON, source_python_script): Delete.
10474 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10475 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10476 (!HAVE_PYTHON, start_type_printers): Delete.
10477 (!HAVE_PYTHON, apply_type_printers): Delete.
10478 (!HAVE_PYTHON, free_type_printers): Delete.
10479 (_initialize_python): Delete call to observer_attach_before_prompt.
10480 (finalize_python): Set/restore active extension language.
10481 (gdbpy_finish_initialization) Renamed from
10482 finish_python_initialization, made static. New arg extlang.
10483 (gdbpy_initialized): New function.
10484 * python/python.h: #include "extension.h". Delete #include
10485 "value.h", "mi/mi-cmds.h".
10486 (extension_language_python): Declare.
10487 (GDBPY_AUTO_FILE_NAME): Delete.
10488 (enum py_bt_status): Moved to extension.h and renamed to
10489 ext_lang_bt_status.
10490 (enum frame_filter_flags): Moved to extension.h.
10491 (enum py_frame_args): Moved to extension.h and renamed to
10492 ext_lang_frame_args.
10493 (finish_python_initialization): Delete.
10494 (eval_python_from_control_command): Delete.
10495 (source_python_script): Delete.
10496 (apply_val_pretty_printer): Delete.
10497 (apply_frame_filter): Delete.
10498 (preserve_python_values): Delete.
10499 (gdbpy_script_language_defn): Delete.
10500 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10501 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10503 * auto-load.c: #include "extension.h".
10504 (GDB_AUTO_FILE_NAME): Delete.
10505 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10506 (script_language_gdb): Delete, moved to extension.c and renamed to
10507 extension_language_gdb.
10508 (source_gdb_script_for_objfile): Delete.
10509 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10510 (loaded_script): Change type of language member to
10511 struct extension_language_defn *.
10512 (init_loaded_scripts_info): Initialize
10513 unsupported_script_warning_printed.
10514 (maybe_add_script): Make static. Change type of language arg to
10515 struct extension_language_defn *.
10516 (clear_section_scripts): Reset unsupported_script_warning_printed.
10517 (auto_load_objfile_script_1): Rewrite to use extension language API.
10518 (auto_load_objfile_script): Make public. Remove support-compiled-in
10519 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10520 (source_section_scripts): Rewrite to use extension language API.
10521 (load_auto_scripts_for_objfile): Rewrite to use
10522 auto_load_scripts_for_objfile.
10523 (collect_matching_scripts_data): Change type of language member to
10524 struct extension_language_defn *.
10525 (auto_load_info_scripts): Change type of language arg to
10526 struct extension_language_defn *.
10527 (unsupported_script_warning_print): New function.
10528 (script_not_found_warning_print): Make static.
10529 (_initialize_auto_load): Rewrite construction of scripts-directory
10531 * auto-load.h (struct objfile): Add forward decl.
10532 (struct script_language): Delete.
10533 (struct auto_load_pspace_info): Add forward decl.
10534 (struct extension_language_defn): Add forward decl.
10535 (maybe_add_script): Delete.
10536 (auto_load_objfile_script): Declare.
10537 (script_not_found_warning_print): Delete.
10538 (auto_load_info_scripts): Update prototype.
10539 (auto_load_gdb_scripts_enabled): Declare.
10540 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10541 auto_load_python_scripts_enabled and made public.
10542 (script_language_python): Delete, moved to python.c.
10543 (gdbpy_script_language_defn): Delete.
10544 (info_auto_load_python_scripts): Update to use
10545 extension_language_python.
10547 * breakpoint.c (condition_command): Replace call to
10548 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10549 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10550 with call to breakpoint_ext_lang_cond_says_stop.
10551 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10552 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10553 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10554 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10556 (local_setattro): Print name of extension language with existing
10559 * valprint.c (val_print, value_print): Update to call
10560 apply_ext_lang_val_pretty_printer.
10561 * cp-valprint.c (cp_print_value): Update call to
10562 apply_ext_lang_val_pretty_printer.
10563 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10564 (gdbpy_apply_val_pretty_printer): Renamed from
10565 apply_val_pretty_printer. New arg extlang.
10566 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10568 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10569 extension language API.
10570 * cli/cli-script.c (execute_control_command): Update to call
10571 eval_ext_lang_from_control_command.
10573 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10574 enum ext_lang_bt_status values. Update call to
10575 apply_ext_lang_frame_filter.
10576 (mi_cmd_stack_list_locals): Ditto.
10577 (mi_cmd_stack_list_args): Ditto.
10578 (mi_cmd_stack_list_variables): Ditto.
10579 * mi/mi-main.c: Delete #include "python/python-internal.h".
10580 Add #include "extension.h".
10581 (mi_cmd_list_features): Replace reference to python internal variable
10582 gdb_python_initialized with call to ext_lang_initialized_p.
10584 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10585 Update to use enum ext_lang_frame_args. Update to call
10586 apply_ext_lang_frame_filter.
10587 * python/py-framefilter.c (extract_sym): Update to use enum
10588 ext_lang_bt_status.
10589 (extract_value, py_print_type, py_print_value): Ditto.
10590 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10591 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10592 (py_print_frame): Ditto.
10593 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10594 New arg extlang. Update to use enum ext_lang_bt_status.
10596 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10597 finish_python_initialization. Replace with call to
10598 finish_ext_lang_initialization.
10600 * typeprint.c (do_free_global_table): Update to call
10601 free_ext_lang_type_printers.
10602 (create_global_typedef_table): Update to call
10603 start_ext_lang_type_printers.
10604 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10605 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10606 (type_print_options): Change type of global_printers from "void *"
10607 to "struct ext_lang_type_printers *".
10609 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10610 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10611 (gdbpy_preserve_values): Renamed from preserve_python_values.
10613 (!HAVE_PYTHON, preserve_python_values): Delete.
10615 * utils.c (quit_flag): Delete, moved to extension.c.
10616 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10619 * eval.c: Delete #include "python/python.h".
10620 * main.c: Delete #include "python/python.h".
10622 * defs.h: Update comment.
10624 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10628 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10630 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10633 2014-02-05 Yao Qi <yao@codesourcery.com>
10635 * remote.c (remote_pass_signals): Remove local 'buf' and use
10637 (remote_program_signals): Likewise.
10639 2014-02-05 Yao Qi <yao@codesourcery.com>
10641 * ctf.c: Include "inferior.h" and "gdbthread.h".
10642 (CTF_PID): A new macro.
10643 (ctf_open): Call inferior_appeared and add_thread_silent.
10644 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10645 (ctf_thread_alive): New function.
10646 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10648 2014-02-05 Yao Qi <yao@codesourcery.com>
10652 2013-05-24 Yao Qi <yao@codesourcery.com>
10654 * tracepoint.c (TFILE_PID): Remove.
10655 (tfile_open): Don't add thread and inferior.
10656 (tfile_close): Don't set 'inferior_ptid'. Don't call
10657 exit_inferior_silent.
10658 (tfile_thread_alive): Remove.
10659 (init_tfile_ops): Don't set field 'to_thread_alive' of
10662 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10664 * remote.c (remote_start_remote): Call remote_check_symbols even
10665 if only symbol-file (not file) has been given.
10667 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10669 * gdbarch.sh (skip_entrypoint): New callback.
10670 * gdbarch.c, gdbarch.h: Regenerate.
10671 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10672 * infrun.c (fill_in_stop_func): Likewise.
10673 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10674 (ppc_elfv2_elf_make_msymbol_special): New function.
10675 (ppc_elfv2_skip_entrypoint): Likewise.
10676 (ppc_linux_init_abi): Install them for ELFv2.
10678 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10680 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10681 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10682 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10683 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10684 structures returned in GPRs.
10686 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10689 offset to the stack parameter list for the ELFv2 ABI.
10691 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10693 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10694 set_gdbarch_convert_from_func_ptr_addr and
10695 set_gdbarch_elf_make_msymbol_special for ELFv1.
10696 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10697 function descriptors on ELFv1.
10698 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10699 set up r12 at function entry.
10701 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10703 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10704 (struct gdbarch_tdep): New member elf_abi.
10706 * rs6000-tdep.c: Include "elf/ppc64.h".
10707 (rs6000_gdbarch_init): Detect ELF ABI version.
10709 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10712 within a register pair holding a DFP 128-bit value on little-endian.
10713 (ppc64_sysv_abi_return_value_base): Likewise.
10714 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10715 (dfp_pseudo_register_write): Likewise.
10717 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10720 offset on little-endian when passing _Decimal32.
10721 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10723 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10725 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10726 of the overlapped FP register within the VSX register on little-
10728 (efpr_pseudo_register_write): Likewise.
10730 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10733 offset on little-endian when passing small structures.
10735 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10737 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10738 (struct ppc64_sysv_argpos): New data structure.
10739 (ppc64_sysv_abi_push_float): Remove.
10740 (ppc64_sysv_abi_push_val): New function.
10741 (ppc64_sysv_abi_push_integer): Likewise.
10742 (ppc64_sysv_abi_push_freg): Likewise.
10743 (ppc64_sysv_abi_push_vreg): Likewise.
10744 (ppc64_sysv_abi_push_param): Likewise.
10745 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10746 (ppc64_sysv_abi_return_value_base): New function.
10747 (ppc64_sysv_abi_return_value): Refactor to use it.
10749 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10751 * NEWS: Document new target powerpc64le-*-linux*.
10753 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10755 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10756 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10758 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10759 register set used in ELF core dumps. Add floating-point register set.
10761 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10763 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10764 dwarf2_to_gdb[] table using symbolic constants. Adjust
10765 penultimate entry from number representing the PC register
10766 to symbolic constant representing the MDR register. Add
10767 constant for the PC register to the end of the table.
10769 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10771 * bsd-kvm.c: Include <sys/param.h>
10773 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10775 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10777 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10779 * ada-lang.h (clear_ada_sym_cache): Delete.
10781 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10783 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10785 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10787 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10788 the sigreturn register save area only if the syscall is
10791 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10793 * valops.c (value_slice): Minor reformatting.
10795 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10797 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10799 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10801 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10802 New static globals.
10803 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10804 (ada_ignore_descriptive_types_p): New static global.
10805 (find_parallel_type_by_descriptive_type): Return immediately
10806 if ada_ignore_descriptive_types_p is set.
10807 (_initialize_ada_language): Register new commands "maintenance
10808 set ada", "maintenance show ada", "maintenance set ada
10809 ignore-descriptive-types" and "maintenance show ada
10810 ignore-descriptive-types".
10811 * NEWS: Add entry for new "maint ada set/show
10812 ignore-descriptive-types" commands.
10814 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10816 * record-btrace.c (record_btrace_close): Call btrace_teardown
10819 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10821 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10824 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10826 * ada-typeprint (type_is_full_subrange_of_target_type):
10828 (print_range): Add parameter bounds_prefered_p. If not set,
10829 try printing range types using the name of their base type.
10830 (print_range_type): Add parameter bounds_prefered_p.
10831 Use it in call to print_range.
10832 (print_array_type, ada_print_type): Update calls to print_range
10833 and print_range_type.
10835 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10837 * ada-typeprint.c (print_array_type, print_choices, print_range)
10838 (print_range_bound, print_dynamic_range_bound, print_range_type):
10839 Remove declaration.
10841 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10843 * ada-typeprint.c (print_range): Add missing empty line
10844 after local declaration.
10846 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10848 * ada-valprint.c (print_optional_low_bound): Get index_type's
10849 target type for as long as it is a TYPE_CODE_RANGE.
10851 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10853 * procfs.c (procfs_make_note_section): Remove assertion and
10854 associated comment.
10856 2014-01-24 Yao Qi <yao@codesourcery.com>
10858 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10859 * corelow.c (get_core_siginfo): Likewise.
10861 2014-01-24 Yao Qi <yao@codesourcery.com>
10863 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10864 ULONGEST. Don't check 'len' is negative.
10865 (remote_write_bytes): Change type of 'len' to ULONGEST.
10867 2014-01-23 Tom Tromey <tromey@redhat.com>
10870 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10871 Handle exception from frame.block.
10872 (FrameVars.fetch_frame_locals): Likewise.
10874 2014-01-23 Tom Tromey <tromey@redhat.com>
10877 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10878 on a NULL pointer. Move "goto error" to correct place.
10880 2014-01-23 Tom Tromey <tromey@redhat.com>
10883 * python/py-framefilter.c (apply_frame_filter): Call
10884 ensure_python_env after computing gdbarch.
10886 2014-01-23 Yao Qi <yao@codesourcery.com>
10888 * target.c (raw_memory_xfer_partial): Change argument type
10889 from void * to gdb_byte *.
10890 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10892 2014-01-22 Doug Evans <dje@google.com>
10894 New gdbserver option --debug-format=timestamp.
10895 * NEWS: Mention it.
10897 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10899 * syscalls/s390x-linux.xml: New file.
10900 * syscalls/s390-linux.xml: New file.
10901 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10902 (XML_SYSCALL_FILENAME_S390X): Likewise.
10903 (op_svc): New enum value for SVC opcode.
10904 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10905 (s390_linux_get_syscall_number): New function.
10906 (s390_gdbarch_init): Register '*get_syscall_number' and the
10907 syscall xml file name.
10908 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10909 "s390-linux.xml" and "s390x-linux.xml".
10910 * NEWS: Announce new feature.
10912 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10914 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10916 2014-01-22 Pedro Alves <palves@redhat.com>
10918 * xtensa-config.c: Include defs.h.
10920 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10922 * common/common-utils.h: Add "ARI:" comment beside __func__
10925 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10927 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10928 documentation a bit.
10930 2014-01-21 Roland McGrath <mcgrathr@google.com>
10932 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10933 * configure: Regenerate.
10934 * aclocal.m4: Regenerate.
10935 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10936 New substituted variables.
10937 (install-strip): New target.
10938 (INSTALL_SCRIPT): New substituted variable.
10939 (FLAGS_TO_PASS): Add it.
10940 (install-only): Use $(INSTALL_SCRIPT) rather than
10941 $(INSTALL_PROGRAM) for gcore.
10943 2014-01-20 Tom Tromey <tromey@redhat.com>
10945 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10948 2014-01-20 Tom Tromey <tromey@redhat.com>
10950 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10951 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10952 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10953 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10954 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10955 (struct cmd_list_element) <flags>: Remove.
10956 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10957 doc_allocated>: New fields.
10958 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10960 * maint.c (maintenance_do_deprecate): Update.
10961 * top.c (execute_command): Update.
10963 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10965 * xtensa-linux-nat.c: Include asm/ptrace.h.
10967 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10969 * Makefile.in (SFILES): Add d-support.c.
10970 (COMMON_OBS): Add d-support.o.
10971 * d-lang.h (d_parse_symbol): Add comment, now defined in
10973 * d-lang.c (parse_call_convention)
10974 (parse_attributes, parse_function_types)
10975 (parse_function_args, parse_type, parse_identifier)
10976 (call_convention_p, d_parse_symbol): Move functions to ...
10977 * d-support.c: ... New file.
10979 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10981 * d-lang.h (d_parse_symbol): Add declaration.
10982 * d-lang.c (extract_identifiers)
10983 (extract_type_info): Remove functions.
10984 (parse_call_convention, parse_attributes)
10985 (parse_function_types, parse_function_args)
10986 (parse_type, parse_identifier, call_convention_p)
10987 (d_parse_symbol): New functions.
10988 (d_demangle): Use d_parse_symbol to demangle D symbols.
10990 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10992 * d-lang.h (struct builtin_d_type): New data type.
10993 (builtin_d_type): Add declaration.
10994 * d-lang.c (d_language_arch_info, build_d_types)
10995 (builtin_d_type): New functions.
10996 (enum d_primitive_types): New data type.
10997 (d_language_defn): Change c_language_arch_info to
10998 d_language_arch_info.
10999 (d_type_data): New static variable.
11000 (_initialize_d_language): Initialize d_type_data.
11002 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11004 * d-lang.h (d_main_name): Add declaration.
11005 * d-lang.c (d_main_name): New function.
11006 * symtab.c (find_main_name): Add call to d_main_name.
11008 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11010 * d-lang.c (d_language_defn): Change macro_expansion_c to
11011 macro_expansion_no.
11013 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11015 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11017 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11019 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11020 gdb_exception" declaration.
11021 * remote.c (getpkt_or_notif_sane): Likewise.
11023 2014-01-17 Doug Evans <dje@google.com>
11025 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11026 function, contents of dirnames_to_char_ptr_vec_append moved here.
11027 (delim_string_to_char_ptr_vec): New function.
11028 (dirnames_to_char_ptr_vec_append): Rewrite.
11029 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11031 2014-01-17 Doug Evans <dje@google.com>
11033 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11035 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11036 #include "common-utils.h".
11037 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11038 * common/vec.h (VEC_ASSERT_PASS): Update.
11039 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11040 (MACH_CHECK_ERROR): Update.
11042 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11044 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11046 * gdbarch.h: Regenerate.
11048 2014-01-16 Tom Tromey <tromey@redhat.com>
11050 * value.c (struct value) <regnum>: Move earlier.
11052 2014-01-16 Tom Tromey <tromey@redhat.com>
11054 * remote.c (extended_remote_create_inferior): Rename from
11055 extended_remote_create_inferior_1. Add "ops" argument. Remove
11056 old implementation.
11058 2014-01-16 Pedro Alves <palves@redhat.com>
11060 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11061 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11064 2014-01-16 Doug Evans <dje@google.com>
11066 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11070 * btrace.h (btrace_thread_flag): New.
11071 (struct btrace_thread_info) <flags>: New.
11072 * record-btrace.c (record_btrace_resume_thread)
11073 (record_btrace_find_thread_to_move, btrace_step_no_history)
11074 (btrace_step_stopped, record_btrace_start_replaying)
11075 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11076 (record_btrace_find_resume_thread): New.
11077 (record_btrace_resume, record_btrace_wait): Extend.
11078 (record_btrace_can_execute_reverse): New.
11079 (record_btrace_open): Fail in non-stop mode.
11080 (record_btrace_set_replay): Split into this, ...
11081 (record_btrace_stop_replaying): ... this, ...
11082 (record_btrace_clear_histories): ... and this.
11083 (init_record_btrace_ops): Init to_can_execute_reverse.
11084 * NEWS: Announce it.
11086 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11088 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11089 (forward_target_decr_pc_after_break)
11090 (target_decr_pc_after_break): New.
11091 * target.c (forward_target_decr_pc_after_break)
11092 (target_decr_pc_after_break): New.
11093 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11094 instead of gdbarch_decr_pc_after_break.
11095 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11096 instead of gdbarch_decr_pc_after_break.
11097 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11098 instead of gdbarch_decr_pc_after_break.
11099 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11100 instead of gdbarch_decr_pc_after_break.
11101 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11102 instead of gdbarch_decr_pc_after_break.
11103 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11104 instead of gdbarch_decr_pc_after_break.
11106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11108 * btrace.c: Include regcache.h.
11109 (btrace_add_pc): New.
11110 (btrace_enable): Call btrace_add_pc.
11111 (btrace_is_empty): New.
11112 * btrace.h (btrace_is_empty): New.
11113 * record-btrace.c (require_btrace, record_btrace_info): Call
11116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11118 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11119 Support delta reads.
11120 (linux_disable_btrace): Change return type.
11121 * common/linux-btrace.h (linux_read_btrace): Change parameters
11122 and return type to allow error reporting. Update users.
11123 (linux_disable_btrace): Change return type. Update users.
11124 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11126 (btrace_error): New.
11127 (btrace_block) <begin>: Comment on BEGIN == 0.
11128 * btrace.c (btrace_compute_ftrace): Start from the end of
11130 (btrace_stitch_trace, btrace_clear_history): New.
11131 (btrace_fetch): Read delta trace, return if replaying.
11132 (btrace_clear): Move clear history code to btrace_clear_history.
11133 (parse_xml_btrace): Throw an error if parsing failed.
11134 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11135 and return type to allow error reporting.
11136 (target_read_btrace): Change parameters and return type to allow
11138 * target.c (target_read_btrace): Update.
11139 * remote.c (remote_read_btrace): Support delta reads. Pass
11141 * NEWS: Announce it.
11143 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11145 * record.h (record_btrace_frame_unwind)
11146 (record_btrace_tailcall_frame_unwind): New declarations.
11147 * dwarf2-frame: Include record.h
11148 (dwarf2_frame_cfa): Throw an error for btrace frames.
11149 * record-btrace.c: Include hashtab.h.
11150 (btrace_get_bfun_name): New.
11151 (btrace_call_history): Call btrace_get_bfun_name.
11152 (struct btrace_frame_cache): New.
11154 (bfcache_hash, bfcache_eq, bfcache_new): New.
11155 (btrace_get_frame_function): New.
11156 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11157 (record_btrace_frame_this_id): Compute own id.
11158 (record_btrace_frame_prev_register): Provide PC, throw_error
11159 for all other registers.
11160 (record_btrace_frame_sniffer): Detect btrace frames.
11161 (record_btrace_tailcall_frame_sniffer): New.
11162 (record_btrace_frame_dealloc_cache): New.
11163 (record_btrace_frame_unwind): Add new functions.
11164 (record_btrace_tailcall_frame_unwind): New.
11165 (_initialize_record_btrace): Allocate cache.
11166 * btrace.c (btrace_clear): Call reinit_frame_cache.
11167 * NEWS: Announce it.
11169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11171 * record-btrace.c (record_btrace_set_replay)
11172 (record_btrace_goto_begin, record_btrace_goto_end)
11173 (record_btrace_goto): New.
11174 (init_record_btrace_ops): Initialize them.
11175 * NEWS: Announce it.
11177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11179 * record-btrace.c (record_btrace_find_new_threads)
11180 (record_btrace_thread_alive): New.
11181 (init_record_btrace_ops): Initialize to_find_new_threads and
11184 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11186 * record-btrace.c (record_btrace_resume): New.
11187 (record_btrace_wait): New.
11188 (init_record_btrace_ops): Initialize to_wait and to_resume.
11190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11192 * record-btrace.c (record_btrace_xfer_partial)
11193 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11194 (record_btrace_allow_memory_access): New.
11195 (init_record_btrace_ops): Initialize new methods.
11196 * target.c (raw_memory_xfer_partial): Bail out if target reports
11197 that this memory is not available.
11199 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11201 * target.h (target_ops) <to_insert_breakpoint>
11202 <to_remove_breakpoint>: Add target_ops parameter.
11203 (forward_target_insert_breakpoint): New.
11204 (forward_target_remove_breakpoint): New.
11205 (memory_remove_breakpoint, memory_insert_breakpoint):
11206 Add target_ops parameter.
11207 * target.c (target_insert_breakpoint): Split into this and ...
11208 (forward_target_insert_breakpoint): ... this.
11209 (target_remove_breakpoint): Split into this and ...
11210 (forward_target_remove_breakpoint): ... this.
11211 (debug_to_insert_breakpoint): Add target_ops parameter.
11212 Call forward_target_insert_breakpoint.
11213 (debug_to_remove_breakpoint): Add target_ops parameter.
11214 Call forward_target_remove_breakpoint.
11215 (update_current_target): Do not inherit or default to_insert_breakpoint
11216 and to_remove_breakpoint.
11217 * corelow.c (ignore): Add target_ops parameter.
11218 * exec.c (ignore): Add target_ops parameter.
11219 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11220 Add target_ops parameter.
11221 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11222 Add target_ops parameter.
11223 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11224 Add target_ops parameter.
11225 * record-full.c (record_full_beneath_to_insert_breakpoint)
11226 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11227 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11228 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11229 (record_full_core_remove_breakpoint): Add target_ops parameter.
11231 (record_full_beneath_to_insert_breakpoint_ops)
11232 (record_full_beneath_to_remove_breakpoint_ops)
11233 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11234 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11235 tmp_to_remove_breakpoint_ops,
11236 record_full_beneath_to_insert_breakpoint_ops, and
11237 record_full_beneath_to_remove_breakpoint_ops.
11238 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11239 (m32r_remove_breakpoint): Add target_ops parameter.
11240 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11241 Add target_ops parameter.
11242 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11243 Add target_ops parameter.
11245 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11246 Markus Metzger <markus.t.metzger@intel.com>
11248 * record-btrace.c: Include frame-unwind.h.
11249 (record_btrace_frame_unwind_stop_reason)
11250 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11251 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11253 (init_record_btrace_ops): Install it.
11255 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11257 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11260 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11262 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11265 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11267 * frame-unwind.c: Include target.h.
11268 (frame_unwind_try_unwinder): New function with code from ...
11269 (frame_unwind_find_by_frame): ... here. New variable
11270 unwinder_from_target, call also target_get_unwinder)
11271 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11272 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11273 * target.h (struct target_ops): New fields to_get_unwinder and
11274 to_get_tailcall_unwinder.
11275 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11277 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11279 * record-btrace.c (record_btrace_fetch_registers)
11280 (record_btrace_store_registers)
11281 (record_btrace_to_prepare_to_store): New.
11282 (init_record_btrace_ops): Add the above.
11284 2014-01-16 Tom Tromey <tromey@redhat.com>
11286 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11287 * target.h (struct target_ops) <to_prepare_to_store>: Add
11289 (target_prepare_to_store): Add argument.
11290 * target.c (debug_to_prepare_to_store): Add argument.
11291 (update_current_target): Update.
11292 * remote.c (remote_prepare_to_store): Add 'self' argument.
11293 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11294 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11295 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11296 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11298 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11299 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11300 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11301 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11302 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11306 * btrace.h (replay) <replay>: New.
11307 (btrace_is_replaying): New.
11308 * btrace.c (btrace_clear): Free replay iterator.
11309 (btrace_is_replaying): New.
11310 * record-btrace.c (record_btrace_is_replaying): New.
11311 (record_btrace_info): Print insn number if replaying.
11312 (record_btrace_insn_history): Start at replay position.
11313 (record_btrace_call_history): Start at replay position.
11314 (init_record_btrace_ops): Init to_record_is_replaying.
11316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11318 * record-btrace.c (record_btrace_insn_history_range): Include
11320 (record_btrace_insn_history_from): Adjust range.
11321 (record_btrace_call_history_range): Include
11323 (record_btrace_call_history_from): Adjust range.
11324 * NEWS: Announce changes.
11326 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11328 * record.h (enum record_print_flag)
11329 <record_print_indent_calls>: New.
11330 * record.c (get_call_history_modifiers): Recognize /c modifier.
11331 (_initialize_record): Document /c modifier.
11332 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11333 Reorder fields. Optionally indent the function name. Update
11335 * NEWS: Announce changes.
11337 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11339 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11343 * btrace.c (ftrace_new_function): Start counting at one.
11344 * record-btrace.c (record_btrace_info): Adjust number of calls
11346 * NEWS: Announce it.
11348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11350 * record-btrace.c (btrace_call_history_insn_range): Print
11351 insn range as [begin, end].
11353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11355 * btrace.h (struct btrace_func_link): New.
11356 (enum btrace_function_flag): New.
11357 (struct btrace_inst): Rename to ...
11358 (struct btrace_insn): ...this. Update all users.
11359 (struct btrace_func) <ibegin, iend>: Remove.
11360 (struct btrace_func_link): New.
11361 (struct btrace_func): Rename to ...
11362 (struct btrace_function): ...this. Update all users.
11363 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11364 (number, level, flags>: New.
11365 (struct btrace_insn_iterator): Rename to ...
11366 (struct btrace_insn_history): ...this.
11368 (struct btrace_insn_iterator, btrace_call_iterator): New.
11369 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11370 (struct btrace_target_info) <begin, end, level>
11371 <insn_history, call_history>: New.
11372 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11373 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11374 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11375 (btrace_call_number, btrace_call_begin, btrace_call_end)
11376 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11377 (btrace_find_function_by_number, btrace_set_insn_history)
11378 (btrace_set_call_history): New.
11379 * btrace.c (btrace_init_insn_iterator)
11380 (btrace_init_func_iterator, compute_itrace): Remove.
11381 (ftrace_print_function_name, ftrace_print_filename)
11382 (ftrace_skip_file): Change
11383 parameter to const.
11384 (ftrace_init_func): Remove.
11385 (ftrace_debug): Use new btrace_function fields.
11386 (ftrace_function_switched): Also consider gaining and
11387 losing symbol information).
11388 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11389 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11390 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11392 (ftrace_new_function): Move. Remove debug print.
11393 (ftrace_update_lines, ftrace_update_insns): New.
11394 (ftrace_update_function): Check for call, ret, and jump.
11395 (compute_ftrace): Renamed to ...
11396 (btrace_compute_ftrace): ...this. Rewritten to compute call
11398 (btrace_fetch, btrace_clear): Updated.
11399 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11400 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11401 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11402 (btrace_call_number, btrace_call_begin, btrace_call_end)
11403 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11404 (btrace_find_function_by_number, btrace_set_insn_history)
11405 (btrace_set_call_history): New.
11406 * record-btrace.c (require_btrace): Use new btrace thread
11408 (record_btrace_info, btrace_insn_history)
11409 (record_btrace_insn_history, record_btrace_insn_history_range):
11410 Use new btrace thread info fields and new iterator.
11411 (btrace_func_history_src_line): Rename to ...
11412 (btrace_call_history_src_line): ...this. Use new btrace
11413 thread info fields.
11414 (btrace_func_history): Rename to ...
11415 (btrace_call_history): ...this. Use new btrace thread info
11416 fields and new iterator.
11417 (record_btrace_call_history, record_btrace_call_history_range):
11418 Use new btrace thread info fields and new iterator.
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11422 * frame.h (frame_id_build_unavailable_stack_special): New.
11423 * frame.c (frame_id_build_unavailable_stack_special): New.
11425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11427 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11428 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11429 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11431 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11432 (i386_insn_is_jump, i386_jmp_p): New.
11433 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11434 insn_is_jump to gdbarch.
11435 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11436 * gdbarch.h: Regenerated.
11437 * gdbarch.c: Regenerated.
11438 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11439 (default_insn_is_jump): New.
11440 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11441 (default_insn_is_jump): New.
11443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11445 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11447 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11448 (btrace_read_type) <btrace_read_new>: Change to ...
11449 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11453 * common/linux-btrace.c (linux_read_btrace): Free trace from
11454 previous iteration.
11456 2014-01-15 Doug Evans <dje@google.com>
11458 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11461 2014-01-15 Tom Tromey <tromey@redhat.com>
11463 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11464 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11465 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11466 (set_objfile_main_name): New function.
11467 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11468 language_of_main>: New fields.
11469 (set_objfile_main_name): Declare.
11470 * symtab.c (find_main_name): Loop over objfiles to find the main
11472 (set_main_name): Now static.
11473 (get_main_info): Add comment.
11474 * symtab.h (set_main_name): Don't declare.
11476 2014-01-15 Tom Tromey <tromey@redhat.com>
11478 * symtab.c (main_progspace_key): New global.
11479 (struct main_info): New.
11480 (name_of_main, language_of_main): Remove.
11481 (get_main_info, main_info_cleanup): New function.
11482 (set_main_name, main_name, main_language): Use get_main_info.
11483 (_initialize_symtab): Initialize main_progspace_key.
11485 2014-01-15 Tom Tromey <tromey@redhat.com>
11487 * dbxread.c (process_one_symbol): Update.
11488 * dwarf2read.c (read_partial_die): Update.
11489 * symfile.c (set_initial_language): Call main_language.
11490 * symtab.c (language_of_main): Now static.
11491 (set_main_name): Add 'lang' parameter.
11492 (find_main_name): Update.
11493 (main_language): New function.
11494 (symtab_observer_executable_changed): Update.
11495 * symtab.h (set_main_name): Update.
11496 (language_of_main): Remove.
11497 (main_language): Declare.
11499 2014-01-15 Tom Tromey <tromey@redhat.com>
11501 * symfile.c (init_entry_point_info): Use new "initialized" field.
11503 * objfiles.h (struct entry_point) <initialized>: New field.
11504 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11505 (struct objfile) <ei>: ...here. Remove.
11506 * objfiles.c (entry_point_address_query): Update.
11508 2014-01-15 Tom Tromey <tromey@redhat.com>
11510 * objfiles.c (entry_point_address_query): Relocate entry point
11512 (objfile_relocate1): Do not relocate entry point address.
11513 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11514 <the_bfd_section_index>: New field.
11515 * symfile.c (init_entry_point_info): Find the entry point's
11518 2014-01-15 Tom Tromey <tromey@redhat.com>
11520 * solib-frv.c (enable_break): Use entry_point_address_query.
11522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11524 * NEWS: Add note on improved process record-replay on
11525 arm*-linux* targets.
11527 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11529 * arm-tdep.c (enum arm_record_result): New enum.
11530 (arm_record_unsupported_insn): New function.
11531 (arm_record_coproc_data_proc): Removed.
11532 (thumb2_record_ld_st_multiple): New function.
11533 (thumb2_record_ld_st_dual_ex_tbb): New function.
11534 (thumb2_record_data_proc_sreg_mimm): New function.
11535 (thumb2_record_ps_dest_generic): New function.
11536 (thumb2_record_branch_misc_cntrl): New function.
11537 (thumb2_record_str_single_data): New function.
11538 (thumb2_record_ld_mem_hints): New function.
11539 (thumb2_record_ld_word): New function.
11540 (thumb2_record_lmul_lmla_div): New function.
11541 (thumb2_record_decode_insn_handler): New function.
11542 (decode_insn): Add thumb32 instruction handlers.
11544 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11546 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11547 (struct arm_linux_record_tdep): Declare.
11548 (arm_canonicalize_syscall): New function.
11549 (arm_all_but_pc_registers_record): New function.
11550 (arm_linux_syscall_record): New function.
11551 (arm_linux_init_abi): Add syscall recording constructs.
11552 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11553 decoding. (arm_record_coproc_data_proc): Update arm syscall
11555 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11556 <arm_syscall_record>: New field.
11557 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11560 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11562 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11563 register for push instruction recording.
11565 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11567 * arm-tdep.c (thumb_record_misc): Update to correct logical
11568 error while recording ldm, ldmia and pop instructions.
11570 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11572 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11574 2014-01-15 Pedro Alves <palves@redhat.com>
11576 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11577 (go32_resume, go32_fetch_registers, store_register)
11578 (go32_store_registers, go32_prepare_to_store)
11579 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11580 (go32_create_inferior, go32_can_run, go32_terminal_init)
11581 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11584 2014-01-15 Tom Tromey <tromey@redhat.com>
11586 * target.h (async_callback_ftype): New typedef.
11587 (struct target_ops) <to_async>: Use it.
11589 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11591 * python/py-value.c (get_field_type): Remove unnecessary curly
11592 braces for single-statement if block.
11594 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11596 * python/py-type.c (convert_field): Add missing empty line
11597 after declarations.
11599 2014-01-14 Doug Evans <dje@google.com>
11601 * symfile.h (expand_symtabs_matching): Renamed from
11602 expand_partial_symbol_names. Update prototype.
11603 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11604 * symfile.c (expand_symtabs_matching): Renamed from
11605 expand_partial_symbol_names. New args file_matcher, kind.
11606 Rename arg fun to symbol_matcher.
11607 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11608 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11609 ada_expand_partial_symbol_name.
11610 (ada_make_symbol_completion_list): Update to call
11611 expand_symtabs_matching.
11612 (ada_add_global_exceptions): Call expand_symtabs_matching.
11613 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11614 call map_symbol_filenames.
11615 * symtab.c (sources_info): Update to call map_symbol_filenames.
11616 (search_symbols): Call expand_symtabs_matching.
11617 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11618 (default_make_symbol_completion_list_break_on): Update to call
11619 expand_symtabs_matching.
11620 (make_source_files_completion_list): Update to call
11621 map_symbol_filenames.
11623 2014-01-14 Doug Evans <dje@google.com>
11625 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11626 (expand_symtabs_symbol_matcher_ftype): New typedef.
11627 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11628 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11629 * symfile.c (expand_partial_symbol_names): Update to use
11630 expand_symtabs_symbol_matcher_ftype.
11631 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11632 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11633 Arg name_matcher renamed to symbol_matcher.
11634 * psymtab.c (recursively_search_psymtabs): Update to use
11635 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11637 (expand_symtabs_matching_via_partial): Update to use
11638 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11639 Arg name_matcher renamed to symbol_matcher.
11641 2014-01-14 Doug Evans <dje@google.com>
11643 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11644 (map_partial_symbol_filenames): Ditto.
11645 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11646 (map_partial_symbol_filenames): Ditto.
11647 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11648 (map_partial_symbol_filenames): Ditto.
11649 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11650 (map_partial_symbol_filenames): Ditto.
11651 * symtab.c: Delete #include "psymtab.h".
11653 2014-01-14 Pedro Alves <palves@redhat.com>
11654 Tom Tromey <tromey@redhat.com>
11656 * infrun.c (use_displaced_stepping): Use find_record_target
11657 instead of RECORD_IS_USED.
11658 (adjust_pc_after_break): Use record_full_is_used instead of
11660 * record-btrace.c (record_btrace_open): Call record_preopen
11661 instead of checking RECORD_IS_USED.
11662 * record-full.c (record_full_shortname)
11663 (record_full_core_shortname): New globals.
11664 (record_full_is_used): New function.
11665 (find_full_open): Call record_preopen instead of checking
11667 (init_record_full_ops): Set the target's shortname to
11668 record_full_shortname.
11669 (init_record_full_core_ops): Set the target's shortname to
11670 record_full_core_shortname.
11671 * record-full.h (record_full_is_used): Declare.
11672 * record.c (find_record_target): Make extern.
11673 (record_preopen): New function.
11674 * record.h (RECORD_IS_USED): Delete macro.
11675 (find_record_target, record_preopen): Declare functions.
11677 2014-01-14 Yao Qi <yao@codesourcery.com>
11679 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11680 'len''s type to ULONGEST.
11681 (core_xfer_shared_libraries_aix): Likewise.
11682 * gdbarch.c, gdbarch.h: Regenerated.
11683 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11684 Change type of 'len' to ULONGEST.
11685 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11686 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11688 2014-01-14 Yao Qi <yao@codesourcery.com>
11690 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11691 type of 'len' to ULONGEST.
11692 (linux_xfer_osdata_processgroups): Likewise.
11693 (linux_xfer_osdata_threads): Likewise.
11694 (linux_xfer_osdata_fds): Likewise.
11695 (linux_xfer_osdata_isockets): Likewise.
11696 (linux_xfer_osdata_shm): Likewise.
11697 (linux_xfer_osdata_sem): Likewise.
11698 (linux_xfer_osdata_msg): Likewise.
11699 (linux_common_xfer_osdata): Likewise.
11700 (struct osdata_type) <getter>: Likewise.
11701 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11704 2014-01-14 Yao Qi <yao@codesourcery.com>
11706 * target.h (target_xfer_partial_ftype): Update.
11707 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11709 * aix-thread.c (aix_thread_xfer_partial): Change type of
11710 argument 'len' to ULONGEST.
11711 * auxv.c (procfs_xfer_auxv): Likewise.
11712 (ld_so_xfer_auxv): Likewise.
11713 (memory_xfer_auxv): Likewise.
11714 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11715 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11716 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11717 * corelow.c (core_xfer_partial): Likewise.
11718 * ctf.c (ctf_xfer_partial): Likewise.
11719 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11721 (darwin_read_dyld_info): Likewise.
11722 (darwin_xfer_partial): Likewise.
11723 * exec.c (section_table_xfer_memory_partial): Likewise.
11724 (exec_xfer_partial): Likewise.
11725 * exec.h (section_table_xfer_memory_partial): Update
11727 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11728 instead of plongest.
11729 (gnu_xfer_partial): Likewise.
11730 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11731 (ia64_hpux_xfer_solib_got): Likewise.
11732 (ia64_hpux_xfer_partial): Likewise.
11733 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11734 * inf-ptrace.c (inf_ptrace_xfer_partial):
11735 * inf-ttrace.c (inf_ttrace_xfer_partial):
11736 * linux-nat.c (linux_xfer_siginfo): Likewise.
11737 (linux_nat_xfer_partial): Likewise.
11738 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11739 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11740 * monitor.c (monitor_xfer_memory): Likewise.
11741 (monitor_xfer_partial): Likewise.
11742 * procfs.c (procfs_xfer_partial): Likewise.
11743 * record-full.c (record_full_xfer_partial): Likewise.
11744 (record_full_core_xfer_partial): Likewise.
11745 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11746 instead of plongest.
11747 (gdbsim_xfer_partial): Likewise.
11748 * remote.c (remote_xfer_partial): Likewise.
11749 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11750 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11752 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11753 (rs6000_xfer_shared_libraries): Likewise.
11754 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11755 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11756 (sparc_xfer_partial): Likewise.
11757 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11758 (spu_xfer_partial): Likewise.
11759 * spu-multiarch.c (spu_xfer_partial): Likewise.
11760 * target.c (target_read_live_memory): Likewise.
11761 (memory_xfer_live_readonly_partial): Likewise.
11762 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11763 (target_xfer_partial, default_xfer_partial): Likewise.
11764 (current_xfer_partial): Likewise.
11765 * tracepoint.c (tfile_xfer_partial): Likewise.
11766 * windows-nat.c (windows_xfer_memory): Likewise. Call
11767 pulongest instead of plongest.
11768 (windows_xfer_partial): Likewise.
11769 (windows_xfer_shared_libraries): Likewise.
11771 2014-01-14 Yao Qi <yao@codesourcery.com>
11773 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11774 target_xfer_partial_ftype.
11776 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11780 * valops.c (value_struct_elt_bitpos): New function
11781 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11782 object to 'None' if the field name is an empty string ("").
11783 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11784 attribute to look for a field when 'name' is 'None'.
11785 (get_field_type): New function
11787 2014-01-13 Doug Evans <dje@google.com>
11790 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11791 (try_open_dwop_file): Ditto.
11792 * gdb_bfd.c: #include "vec.h".
11793 (bfdp): New typedef.
11794 (struct gdb_bfd_data): New member included_bfds.
11795 (gdb_bfd_unref): Unref all included bfds.
11796 (gdb_bfd_record_inclusion): New function.
11797 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11799 2014-01-13 Tom Tromey <tromey@redhat.com>
11801 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11803 2014-01-13 Tom Tromey <tromey@redhat.com>
11805 * defs.h (use_windows): Remove.
11806 * gdb.c (main): Update.
11807 * main.c (captured_main, gdb_main): Update.
11808 * main.h (struct captured_main_args) <use_windows>: Remove.
11809 * top.c (use_windows): Remove.
11811 2014-01-13 Tom Tromey <tromey@redhat.com>
11813 * defs.h (deprecated_flush_hook): Remove.
11815 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11818 * linux-thread-db.c (try_thread_db_load): Add parameter
11819 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11820 (try_thread_db_load_from_pdir_1): Move it there from here.
11821 (try_thread_db_load_from_sdir): Update caller.
11822 (try_thread_db_load_from_dir): Move it there from here.
11824 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11826 * regformats/regdat.sh: Always rewrite the register file.
11828 2014-01-13 Pedro Alves <palves@redhat.com>
11830 * Makefile.in (CHECK_HEADERS): New variable.
11831 (check-headers:): New rule.
11833 2014-01-13 Tom Tromey <tromey@redhat.com>
11835 * cli/cli-setshow.c (do_set_command): Update.
11836 * defs.h (deprecated_set_hook): Remove.
11837 * top.c (deprecated_set_hook): Remove.
11839 2014-01-13 Pedro Alves <palves@redhat.com>
11841 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11842 the tracepoint if the PC is a pseudo-register.
11844 2014-01-13 Tom Tromey <tromey@redhat.com>
11846 * defs.h (XCALLOC): Remove.
11847 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11848 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11849 * dwarf2loc.c (allocate_piece_closure): Likewise.
11850 * elfread.c (elf_symfile_segments): Likewise.
11851 (elf_symfile_segments): Likewise.
11852 * gdbtypes.c (copy_type_recursive): Likewise.
11853 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11854 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11855 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11857 * mt-tdep.c (mt_gdbarch_init): Likewise.
11858 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11860 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11861 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11862 * registry.c (registry_alloc_data): Likewise.
11863 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11864 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11865 * serial.c (serial_fdopen_ops): Likewise.
11866 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11868 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11869 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11872 2014-01-13 Tom Tromey <tromey@redhat.com>
11874 * defs.h (XMALLOC): Remove.
11875 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11876 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11877 * cli-out.c (struct ui_out *): Likewise.
11878 * cli/cli-dump.c (add_dump_command): Likewise.
11879 (add_dump_command): Likewise.
11880 * complaints.c (get_complaints): Likewise.
11881 (find_complaint): Likewise.
11882 * dwarf2-frame.c (execute_cfa_program): Likewise.
11883 * dwarf2read.c (abbrev_table_read_table): Likewise.
11884 * gdbarch.sh: Likewise.
11885 * gdbarch.c: Rebuild.
11886 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11887 * interps.c (interp_new): Likewise.
11888 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11889 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11890 * mi/mi-console.c (mi_console_file_new): Likewise.
11891 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11892 * mi/mi-out.c (mi_out_new): Likewise.
11893 * mi/mi-parse.c (mi_parse): Likewise.
11894 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11895 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11896 * observer.c (xalloc_observer_list_node): Likewise.
11897 * regcache.c (regcache_xmalloc_1): Likewise.
11898 * reggroups.c (reggroup_new): Likewise.
11899 (_initialize_reggroup): Likewise.
11900 * registry.c (register_data_with_cleanup): Likewise.
11901 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11902 * ser-base.c (serial_ttystate): Likewise.
11903 * ser-mingw.c (make_pipe_state): Likewise.
11904 * ser-pipe.c (pipe_open): Likewise.
11905 * serial.c (serial_open): Likewise.
11906 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11907 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11908 (tui_alloc_win_info): Likewise.
11909 (tui_add_content_elements): Likewise.
11910 * tui/tui-file.c (tui_file_new): Likewise.
11911 * tui/tui-out.c (tui_out_new): Likewise.
11912 * ui-file.c (mem_file_new): Likewise.
11913 * ui-out.c (push_level): Likewise.
11914 (make_cleanup_ui_out_end): Likewise.
11915 (append_header_to_list): Likewise.
11916 (ui_out_new): Likewise.
11917 * user-regs.c (user_reg_add_builtin): Likewise.
11919 2014-01-13 Tom Tromey <tromey@redhat.com>
11921 * defs.h (XZALLOC): Remove.
11922 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11923 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11924 (get_ada_tasks_inferior_data): Likewise.
11925 * auto-load.c (get_auto_load_pspace_data): Likewise.
11926 * auxv.c (get_auxv_inferior_data): Likewise.
11927 * bfd-target.c (target_bfd_reopen): Likewise.
11928 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11929 (deprecated_insert_raw_breakpoint): Likewise.
11930 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11931 * corelow.c (core_open): Likewise.
11932 * darwin-nat.c (darwin_check_new_threads): Likewise.
11933 (darwin_attach_pid): Likewise.
11934 * dummy-frame.c (dummy_frame_push): Likewise.
11935 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11936 * dwarf2loc.c (allocate_piece_closure): Likewise.
11937 * elfread.c (elf_symfile_segments): Likewise.
11938 * eval.c (ptrmath_type_p): Likewise.
11939 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11940 * gdbtypes.c (alloc_type_arch): Likewise.
11941 (alloc_type_instance): Likewise.
11942 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11943 * inf-child.c (inf_child_can_use_agent): Likewise.
11944 * inflow.c (get_inflow_inferior_data): Likewise.
11945 * infrun.c (save_infcall_suspend_state): Likewise.
11946 * jit.c (jit_reader_load): Likewise.
11947 (get_jit_objfile_data): Likewise.
11948 (get_jit_program_space_data): Likewise.
11949 (jit_object_open_impl): Likewise.
11950 (jit_symtab_open_impl): Likewise.
11951 (jit_block_open_impl): Likewise.
11952 (jit_frame_sniffer): Likewise.
11953 * linux-fork.c (add_fork): Likewise.
11954 * maint.c (make_command_stats_cleanup): Likewise.
11955 * objfiles.c (get_objfile_pspace_data): Likewise.
11956 * opencl-lang.c (struct lval_closure): Likewise.
11957 * osdata.c (osdata_start_osdata): Likewise.
11958 * progspace.c (new_address_space): Likewise.
11959 (add_program_space): Likewise.
11960 * remote-sim.c (get_sim_inferior_data): Likewise.
11961 * sh-tdep.c (sh_gdbarch_init): Likewise.
11962 * skip.c (Ignore): Likewise.
11963 (skip_delete_command): Likewise.
11964 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11965 (library_list_start_library): Likewise.
11966 (solib_aix_current_sos): Likewise.
11967 * solib-darwin.c (get_darwin_info): Likewise.
11968 (darwin_current_sos): Likewise.
11969 * solib-dsbt.c (get_dsbt_info): Likewise.
11970 * solib-ia64-hpux.c (new_so_list): Likewise.
11971 (ia64_hpux_get_solib_linkage_addr): Likewise.
11972 * solib-spu.c (append_ocl_sos): Likewise.
11973 (spu_current_sos): Likewise.
11974 * solib-svr4.c (get_svr4_info): Likewise.
11975 (svr4_keep_data_in_core): Likewise.
11976 (library_list_start_library): Likewise.
11977 (svr4_default_sos): Likewise.
11978 (svr4_read_so_list): Likewise.
11979 * solib-target.c (library_list_start_library): Likewise.
11980 (solib_target_current_sos): Likewise.
11981 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11982 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11983 * symfile.c (default_symfile_segments): Likewise.
11984 * target-descriptions.c (tdesc_data_init): Likewise.
11985 (tdesc_create_reg): Likewise.
11986 (struct tdesc_type *): Likewise.
11987 (tdesc_create_vector): Likewise.
11988 (tdesc_set_struct_size): Likewise.
11989 (struct tdesc_type *): Likewise.
11990 (tdesc_free_feature): Likewise.
11991 (tdesc_create_feature): Likewise.
11992 * windows-nat.c (windows_add_thread): Likewise.
11993 (windows_make_so): Likewise.
11994 * xml-support.c (gdb_xml_body_text): Likewise.
11995 (gdb_xml_create_parser_and_cleanup): Likewise.
11996 (xml_process_xincludes): Likewise.
11997 * xml-syscall.c (allocate_syscalls_info): Likewise.
11998 (syscall_create_syscall_desc): Likewise.
12000 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12002 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12003 function, with code from i386_stap_parse_special_token.
12004 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12005 (i386_stap_parse_special_token): Move code to the two functions
12006 above; simplify it.
12008 2014-01-09 Pedro Alves <palves@redhat.com>
12009 Hui Zhu <hui@codesourcery.com>
12012 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12013 bp_err_string. Don't mark the location shlib_disabled if the
12014 error thrown wasn't a generic or memory error. Catch errors
12015 thrown while inserting breakpoints in overlayed code. Output
12016 error message of software breakpoints.
12017 * remote.c (remote_insert_breakpoint): If this breakpoint has
12018 target-side commands but this stub doesn't support Z0 packets,
12019 throw NOT_SUPPORTED_ERROR error.
12020 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12021 * target.h (target_insert_breakpoint): Extend comment.
12022 (target_insert_hw_breakpoint): Add comment.
12024 2014-01-08 Pedro Alves <palves@redhat.com>
12026 * remote.c (remote_add_thread): Add threads silently if starting
12028 (remote_notice_new_inferior): If in all-stop, and starting up,
12029 don't call notice_new_inferior.
12030 (get_current_thread): New function, factored out from ...
12031 (add_current_inferior_and_thread): ... this. Adjust.
12032 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12033 found any thread, then select the remote's current thread as GDB's
12034 current thread too.
12036 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12038 * NEWS: Create a new section for the next release branch.
12039 Rename the section of the current branch, now that it has
12042 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12044 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12045 * version.in: Bump version to 7.7.50.DATE-cvs.
12047 2014-01-08 Yao Qi <yao@codesourcery.com>
12049 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12050 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12051 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12053 2014-01-08 Yao Qi <yao@codesourcery.com>
12055 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12056 return value of bfd_get_filename to symbol_file_add_from_bfd.
12058 2014-01-08 Pierre Muller <muller@sourceware.org>
12061 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12062 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12063 to prim_record_mininal_symbol_and_info.
12064 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12065 in call to prim_record_minimal_symbol_and_info.
12066 (read_pe_exported_syms): Set index field of section_data.
12068 2014-01-07 Andrew Pinski <apinski@cavium.com>
12070 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12071 * features/aarch64.c: Regenerate.
12073 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12075 * target.c (return_null): Define.
12076 (update_current_target): Use it instead of return_zero for
12077 functions that return a pointer.
12079 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12081 * source.c (add_path): Fix check for duplicated paths in the previously
12084 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12086 * ada-lang.c: Remove duplicated include statements.
12087 * alphabsd-nat.c: Ditto.
12088 * amd64-darwin-tdep.c: Ditto.
12089 * amd64fbsd-nat.c: Ditto.
12090 * auto-load.c: Ditto.
12092 * breakpoint.c: Ditto.
12093 * dbxread.c: Ditto.
12094 * fork-child.c: Ditto.
12095 * gdb_usleep.c: Ditto.
12096 * i386-darwin-tdep.c: Ditto.
12097 * i386fbsd-nat.c: Ditto.
12099 * inferior.c: Ditto.
12100 * jv-lang.c: Ditto.
12101 * linux-nat.c: Ditto.
12102 * linux-tdep.c: Ditto.
12103 * m68kbsd-nat.c: Ditto.
12104 * m68klinux-nat.c: Ditto.
12105 * microblaze-tdep.c: Ditto.
12106 * mips-linux-tdep.c: Ditto.
12107 * mn10300-tdep.c: Ditto.
12108 * nto-tdep.c: Ditto.
12109 * opencl-lang.c: Ditto.
12111 * printcmd.c: Ditto.
12112 * regcache.c: Ditto.
12113 * remote-m32r-sdi.c: Ditto.
12115 * symfile.c: Ditto.
12117 * tilegx-linux-nat.c: Ditto.
12118 * tilegx-tdep.c: Ditto.
12119 * tracepoint.c: Ditto.
12121 * vaxbsd-nat.c: Ditto.
12122 * windows-nat.c: Ditto.
12123 * xtensa-tdep.c: Ditto.
12125 2014-01-07 Yao Qi <yao@codesourcery.com>
12127 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12129 2014-01-07 Yao Qi <yao@codesourcery.com>
12130 Joel Brobecker <brobecker@adacore.com>
12132 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12133 (pdc_write_regs): Likewise.
12134 (fetch_regs_kernel_thread): Likewise.
12135 (store_regs_kernel_thread): Likewise.
12137 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12139 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12140 tagged type objects to their actual type.
12142 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12144 * ada-valprint.c (print_field_values): Add "language" parameter.
12145 Update calls to print_field_values and print_variant_part.
12146 Pass new parameter "language" in call to val_print instead
12147 of "current_language". Replace call to ada_val_print by call
12149 (print_variant_part): Add "language" parameter.
12150 (ada_val_print_struct_union): Update call to print_field_values.
12152 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12154 * ada-valprint.c (ui_memcpy): Delete.
12155 (ada_print_floating): Update documentation. Add empty line
12156 between between function documentation and implementation.
12157 Delete variable "buffer". Use ui_file_xstrdup in place of
12158 ui_file_put. Minor adjustments following this change.
12160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12162 * ada-valprint.c (ada_val_print_string): New function,
12163 extracted from ada_val_print_array.
12164 (ada_val_print_array): Replace extracted code by call
12165 to ada_val_print_string followed by a return. Move
12166 "else" branch to the function's top block.
12168 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12170 * ada-valprint.c (ada_val_print_array): Move implementation
12171 down. Rename parameter "offset" and "val" into "offset_aligned"
12172 and "original_value" respectively. Add parameter "offset".
12174 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12176 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12177 re-organizing the code. Change the "???" message printed
12178 when target type is a TYPE_CODE_UNDEF into
12179 "<ref to undefined type>".
12181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12183 * ada-valprint.c (print_record): Delete, implementation inlined...
12184 (ada_val_print_struct_union): ... here. Remove call to
12185 ada_check_typedef in inlined implementation.
12187 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12189 * ada-valprint.c (ada_val_print_gnat_array): New function,
12190 extracted from ada_val_print_1;
12191 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12192 (ada_val_print_flt, ada_val_print_struct_union)
12193 (ada_val_print_ref): Likewise.
12194 (ada_val_print_1): Delete variables i and elttype.
12195 Replace extracted-out code by call to corresponding
12198 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12200 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12202 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12204 * ada-valprint.c (ada_val_print_1): Replace calls to
12205 ada_val_print_1 by calls to val_print.
12207 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12209 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12210 Update calls to self accordingly. Replace calls to c_val_print
12211 by calls to val_print.
12213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12215 * ada-valprint.c (print_record): Delete declaration.
12216 (adjust_type_signedness, ada_val_print_1): Likewise.
12217 (ada_val_print): Move function implementation down.
12218 (print_variant_part, print_field_values, print_record):
12219 Move function implementation up.
12221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12223 * python/py-type.c (typy_get_name): New function.
12224 (type_object_getset): Add entry for attribute "name".
12225 * NEWS: Add entry mentioning this new attribute.
12227 2014-01-07 Yao Qi <yao@codesourcery.com>
12229 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12232 2014-01-07 Yao Qi <yao@codesourcery.com>
12234 * gnu-nat.c (info_port_rights): Add qualifier const to
12237 2014-01-07 Yao Qi <yao@codesourcery.com>
12239 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12241 2014-01-07 Yao Qi <yao@codesourcery.com>
12243 * gnu-nat.c (make_inf) Update declaration.
12244 (make_inf): Make it static.
12245 (inf_set_traced): Likewise.
12246 (inf_port_to_thread, inf_task_died_status): Likewise.
12248 2014-01-07 Yao Qi <yao@codesourcery.com>
12250 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12252 2014-01-07 Yao Qi <yao@codesourcery.com>
12254 * gnu-nat.c (_initialize_gnu_nat): Declare.
12256 2014-01-07 Yao Qi <yao@codesourcery.com>
12258 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12260 (struct gdbarch_info) <byte_order>: Change type to
12262 <byte_order_for_code>: Likewise.
12263 * gdbarch.c, gdbarch.h: Regenerated.
12265 2014-01-06 Sasha Smundak <asmundak@google.com>
12267 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12269 2014-01-06 Tom Tromey <tromey@redhat.com>
12271 * doublest.c (convert_doublest_to_floatformat): Use const, not
12273 * somread.c (som_symtab_read): Likewise.
12275 2014-01-07 Hui Zhu <hui@codesourcery.com>
12277 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12278 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12279 (gdb_bfd_fopen): Ditto.
12280 (gdb_bfd_openr): Ditto.
12281 (gdb_bfd_openw): Ditto.
12282 (gdb_bfd_openr_iovec): Ditto.
12283 (gdb_bfd_fdopenr): Ditto.
12284 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12285 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12287 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12289 * symfile-mem.c (symbol_file_add_from_memory): Removed
12290 gdb_bfd_stash_filename.
12292 2014-01-03 Doug Evans <dje@google.com>
12294 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12297 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12299 Update year range in copyright notice of all files.
12301 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12303 * top.c (print_gdb_version): Set copyright year to 2014.
12305 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12307 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12309 For older changes see ChangeLog-2013.
12315 version-control: never