1 2014-08-27 Doug Evans <dje@google.com>
3 * dwarf2read.c (dwarf_record_line): Fix typo.
5 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
7 * target.h (struct target_ops::to_terminal_save_ours): Remove
9 (target_terminal_save_ours): Remove macro.
10 * target-delegates.c: Regenerate.
11 * inf-child.c (inf_child_target): Don't set the nonexistent
12 field to_terminal_save_ours.
13 * inferior.h (child_terminal_save_ours): Remove declaration.
14 * terminal.h (gdb_save_tty_state): New declaration.
15 * inflow.c (child_terminal_save_ours): Rename to ...
16 (gdb_save_tty_state): ... this.
17 * tui/tui.c: Include terminal.h.
18 (tui_enable): Use gdb_save_tty_state instead of
19 target_terminal_save_ours.
20 (tui_disable): Likewise.
22 2014-08-25 Doug Evans <dje@google.com>
24 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
25 Pass NULL instead of 0 for context pointer.
27 2014-08-25 Yao Qi <yao@codesourcery.com>
29 * dwarf2read.c: Fix grammatical error.
31 2014-08-24 Yao Qi <yao@codesourcery.com>
33 * dwarf2read.c (scan_partial_symbols): Update comments.
34 Rename argument 'need_pc' with 'set_addrmap'.
35 (add_partial_namespace): Rename argument 'need_pc' with
37 (add_partial_module): Likewise.
38 (add_partial_subprogram): Likewise. Update comments.
39 (dwarf2_name): Fix typo.
41 2014-08-22 Doug Evans <dje@google.com>
44 * dwarf2read.c (dwarf_record_line_p): New function.
45 (dwarf_decode_lines_1): Ignore subsequent line number entries
46 for the same line if any entry had a non-zero discriminator.
48 2014-08-22 Doug Evans <dje@google.com>
50 * buildsym.h (record_line_ftype): New typedef.
51 (record_line): Use it.
52 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
53 (dwarf_decode_lines_1): Call them.
55 2014-08-22 Yao Qi <yao@codesourcery.com>
57 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
58 (ctf_end): Remove code.
60 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
62 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
63 (linux_make_corefile_notes): call update_thread_list, protected against
66 2014-08-21 Pedro Alves <palves@redhat.com>
68 * infcmd.c (attach_command): Remove comment.
70 2014-08-21 Bin Cheng <bin.cheng@arm.com>
72 * aarch64-linux-nat.c (dr_changed_t): Change the type from
73 unsigned LONGEST to ULONGEST.
75 2014-08-20 Pedro Alves <palves@redhat.com>
77 * Makefile.in (check-read1): New rule.
79 2014-08-20 Joel Brobecker <brobecker@adacore.com>
81 * value.c (value_from_contents_and_address): Strip resolved_type's
82 typedef layers before checking its TYPE_DATA_LOCATION.
84 2014-08-20 Pedro Alves <palves@redhat.com>
86 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
88 2014-08-20 Yao Qi <yao@codesourcery.com>
90 * amd64-tdep.c (amd64_classify): Add a blank line after the
91 example. Move "*/" to a new line.
92 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
93 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
94 * dwarf2read.c (psymtab_include_file_name): Likewise.
96 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
97 Pedro Alves <palves@redhat.com>
101 * ada-lang.c (coerce_unspec_val_to_type): Use
102 value_contents_copy_raw.
103 * ada-valprint.c (val_print_packed_array_elements): Adjust.
104 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
105 * cp-valprint.c (cp_print_value_fields): Let the common printing
106 code handle optimized out values.
107 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
108 * d-valprint.c (dynamic_array_type): Use
109 value_bits_any_optimized_out.
110 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
111 check_any_valid fields.
112 (check_pieced_value_bits): Delete and inline ...
113 (check_pieced_synthetic_pointer): ... here.
114 (check_pieced_value_validity): Delete.
115 (check_pieced_value_invalid): Delete.
116 (pieced_value_funcs): Remove check_validity and check_any_valid
118 (read_pieced_value): Use mark_value_bits_optimized_out.
119 (write_pieced_value): Switch to use
120 mark_value_bytes_optimized_out.
121 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
122 of assuming the whole value is optimized out.
123 * findvar.c (read_frame_register_value): Remove special handling
124 of optimized out registers.
125 (value_from_register): Use mark_value_bytes_optimized_out.
126 * frame-unwind.c (frame_unwind_got_optimized): Use
127 mark_value_bytes_optimized_out.
128 * jv-valprint.c (java_value_print): Adjust.
129 (java_print_value_fields): Let the common printing code handle
130 optimized out values.
131 * mips-tdep.c (mips_print_register): Remove special handling of
132 optimized out registers.
133 * opencl-lang.c (lval_func_check_validity): Delete.
134 (lval_func_check_any_valid): Delete.
135 (opencl_value_funcs): Remove check_validity and check_any_valid
137 * p-valprint.c (pascal_object_print_value_fields): Let the common
138 printing code handle optimized out values.
139 * stack.c (read_frame_arg): Remove special handling of optimized
140 out values. Fetch both VAL and ENTRYVAL before comparing
141 contents. Adjust to value_available_contents_eq rename.
142 * valprint.c (valprint_check_validity)
143 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
144 (val_print_array_elements): Adjust.
145 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
146 (value_bits_any_optimized_out): New function.
147 (value_entirely_covered_by_range_vector): New function, factored
148 out from value_entirely_unavailable.
149 (value_entirely_unavailable): Reimplement.
150 (value_entirely_optimized_out): New function.
151 (insert_into_bit_range_vector): New function, factored out from
152 mark_value_bits_unavailable.
153 (mark_value_bits_unavailable): Reimplement.
154 (struct ranges_and_idx): New struct.
155 (find_first_range_overlap_and_match): New function, factored out
156 from value_available_contents_bits_eq.
157 (value_available_contents_bits_eq): Rename to ...
158 (value_contents_bits_eq): ... this. Check both unavailable
159 contents and optimized out contents.
160 (value_available_contents_eq): Rename to ...
161 (value_contents_eq): ... this.
162 (allocate_value_lazy): Remove reference to the old optimized_out
164 (allocate_optimized_out_value): Use
165 mark_value_bytes_optimized_out.
166 (require_not_optimized_out): Adjust to check whether the
167 optimized_out vec is empty.
168 (ranges_copy_adjusted): New function, factored out from
169 value_contents_copy_raw.
170 (value_contents_copy_raw): Also copy the optimized out ranges.
171 Assert the destination ranges aren't optimized out.
172 (value_contents_copy): Update comment, remove call to
173 require_not_optimized_out.
174 (value_contents_equal): Adjust to check whether the optimized_out
176 (set_value_optimized_out, value_optimized_out_const): Delete.
177 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
179 (value_entirely_optimized_out, value_bits_valid): Delete.
180 (value_copy): Take a VEC copy of the 'optimized_out' field.
181 (value_primitive_field): Remove special handling of optimized out.
182 (value_fetch_lazy): Assert that lazy values have no unavailable
183 regions. Use value_bits_any_optimized_out. Remove some special
184 handling for optimized out values.
185 * value.h: Add intro comment about <optimized out> and
187 (struct lval_funcs): Remove check_validity and check_any_valid
189 (set_value_optimized_out, value_optimized_out_const): Remove.
190 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
192 (value_bits_any_optimized_out): New declaration.
193 (value_bits_valid): Delete declaration.
194 (value_available_contents_eq): Rename to ...
195 (value_contents_eq): ... this, and extend comments.
197 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
199 Fix -fsanitize=address on unreadable inferior strings.
200 * valprint.c (val_print_string): Fix access before BUFFER.
202 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
204 * target.c (target_struct_size): Remove.
205 (target_struct_allocsize): Remove.
206 (DEFAULT_ALLOCSIZE): Remove.
207 (target_ops_p): New typedef.
208 (DEF_VEC_P (target_ops_p)): New vector type.
209 (target_structs): Change type to VEC (target_ops_p).
210 (add_target_with_completer): Replace "push" code by VEC_safe_push.
211 (find_default_run_target): Rewrite for loop following changes to
214 2014-08-19 Joel Brobecker <brobecker@adacore.com>
216 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
217 Adjust code accordingly. Adjust function description comment.
219 2014-08-19 Yao Qi <yao@codesourcery.com>
221 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
224 2014-08-19 Alan Modra <amodra@gmail.com>
226 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
227 * config.in: Regenerate.
228 * configure: Regenerate.
230 2014-08-19 Tom Tromey <tromey@redhat.com>
231 Gary Benson <gbenson@redhat.com>
233 * common/common-debug.h: New file.
234 * common/common-debug.c: Likewise.
236 * Makefile.in (SFILES): Add common/common-debug.c.
237 (HFILES_NO_SRCDIR): Add common/common-debug.h.
238 (COMMON_OBS): Add common-debug.o and debug.o.
239 (common-debug.o): New rule.
240 * common/common-defs.h: Include common-debug.h.
241 * common/agent.c (debug_agent_printf): New function.
242 (DEBUG_AGENT): Redefine.
243 * nat/i386-dregs.c (debug_printf): Undefine.
245 2014-08-19 Gary Benson <gbenson@redhat.com>
247 * common/common-defs.h: Include print-utils.h.
248 * utils.h: Do not include print-utils.h.
250 2014-08-19 Tom Tromey <tromey@redhat.com>
251 Gary Benson <gbenson@redhat.com>
253 * common/common-types.h: New file.
254 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
255 * common/common-defs.h: Include common-types.h.
256 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
259 2014-08-19 Tom Tromey <tromey@redhat.com>
260 Gary Benson <gbenson@redhat.com>
262 * common/errors.h: New file.
263 * common/errors.c: Likewise.
264 * Makefile.in (SFILES): Add common/errors.c.
265 (HFILES_NO_SRCDIR): Add common/errors.h.
266 (COMMON_OBS): Add errors.o.
267 (errors.o): New rule.
268 * common/common-defs.h: Include errors.h.
269 * utils.h (perror_with_name, error, verror, warning, vwarning):
271 * common/common-utils.h: (malloc_failure, internal_error):
274 2014-08-19 Gary Benson <gbenson@redhat.com>
276 * utils.c (internal_vproblem): Always print the message.
278 2014-08-18 Doug Evans <dje@google.com>
280 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
282 2014-08-18 Joel Brobecker <brobecker@adacore.com>
284 * ada-typeprint.c (type_is_full_subrange_of_target_type):
285 Return 0 if TYPE is dynamic.
286 (print_range): Add handling of dynamic ranges.
288 2014-08-18 Keven Boell <keven.boell@intel.com>
289 Joel Brobecker <brobecker@adacore.com>
291 * gdbtypes.h (struct main_type): Add field "data_location".
292 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
293 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
294 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
295 a dynamic data location.
296 (resolve_dynamic_type): Add DW_AT_data_location handling.
297 (copy_recursive, copy_type): Copy the data_location information
299 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
300 * value.c (value_from_contents_and_address): Add
301 DW_AT_data_location handling.
303 2014-08-18 Keven Boell <keven.boell@intel.com>
304 Joel Brobecker <brobecker@adacore.com>
306 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
307 field "get_object_address".
308 * dwarf2expr.c (execute_stack_op): Add handling for
309 DW_OP_push_object_address.
310 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
311 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
312 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
313 (dwarf_expr_get_obj_addr): New function.
314 (dwarf_expr_ctx_funcs): Add get_object_address field.
315 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
316 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
317 (dwarf2_evaluate_property): Add parameter "address". Use it.
318 (needs_get_obj_addr): New function.
319 (needs_frame_ctx_funcs): Add get_object_address field.
320 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
321 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
322 (resolve_dynamic_array): Likewise.
324 2014-08-18 Joel Brobecker <brobecker@adacore.com>
326 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
327 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
328 fixed value for records and unions for which some GNAT encodings
331 2014-08-18 Joel Brobecker <brobecker@adacore.com>
333 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
334 rewrite to avoid "else if" and "else" constructs. Should be
337 2014-08-18 Joel Brobecker <brobecker@adacore.com>
339 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
342 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
345 * eval.c: Update all calls to find_overload_match.
346 * valarith.c: Likewise.
347 (value_user_defined_cpp_op, value_user_defined_op): New
348 argument NOSIDE. Update all callers.
349 * valops.c (find_overload_match): New argument NOSIDE.
350 * value.h (find_overload_match): Update signature.
352 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
354 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
355 'items' methods instead of 'iteritems' method on dictionaries.
357 2014-08-15 Doug Evans <dje@google.com>
359 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
362 2014-08-15 Doug Evans <dje@google.com>
364 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
366 2014-08-15 Doug Evans <dje@google.com>
368 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
370 2014-08-15 Doug Evans <dje@google.com>
372 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
375 2014-08-15 Eli Zaretskii <eliz@gnu.org>
377 * dcache.h: Include target.h, to avoid compile time warnings.
379 2014-08-15 Joel Brobecker <brobecker@adacore.com>
381 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
382 frame_info" partial declaration.
383 * gdbarch.h: Regenerate.
385 2014-08-15 Yao Qi <yao@codesourcery.com>
387 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
388 Add parameter 'decode_for_pst_p'. Callers update.
390 2014-08-13 Yao Qi <yao@codesourcery.com>
393 * configure.ac: Use local variable 'pos'.
394 * configure: Regenerated.
396 2014-08-11 Doug Evans <dje@google.com>
398 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
399 message, it is redundant with "Reading symbols from ..." message.
401 2014-08-10 Doug Evans <xdje42@gmail.com>
403 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
405 2014-08-09 Yao Qi <yao@codesourcery.com>
408 * remote.c (remote_xfer_partial): Remove dead code.
410 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
412 * ia64-linux-tdep.c: Include "regset.h".
413 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
414 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
415 (ia64_linux_supply_fpregset): New function.
416 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
417 (ia64_linux_regset_from_core_section): New function.
418 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
421 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
423 * m68klinux-tdep.c: Include "regset.h".
424 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
425 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
426 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
427 (m68k_linux_regset_from_core_section): New function.
428 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
431 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
433 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
434 function. Move logic to...
435 (tilegx_linux_regmap): ... this new register map.
436 (tilegx_linux_regset): Refer to register map, replace supply
437 method by regcache_supply_regset, and add collect method.
438 * tilegx-tdep.h (enum tilegx_regnum): New enum value
439 TILEGX_FIRST_EASY_REGNUM.
441 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
443 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
444 that calls regcache_supply_regset and handles the EPC register
445 separately. Move main logic to...
446 (score7_linux_gregmap): ... this new register map.
447 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
448 (score7_linux_gregset): Refer to register map. Add collect method.
449 (score7_linux_regset_from_core_section): Replace
450 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
451 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
452 (struct regset): Delete unused forward declaraction.
453 (struct pt_regs): Delete structure definition.
454 (elf_gregset_t): Delete typedef.
456 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
458 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
459 (nios2_core_regset): Add collect method.
461 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
463 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
464 platform-independent and don't write to read-only input buffer.
465 (m32r_linux_collect_gregset): New function.
466 (m32r_linux_gregset): Add collect method.
468 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
470 * hppa-linux-tdep.c (greg_map): Rename to...
471 (hppa_linux_gregmap): ... this. Also convert to
472 regcache_map_entry format.
473 (hppa_linux_supply_regset): Delete function.
474 (hppa_linux_supply_fpregset): Delete function. Move logic to...
475 (hppa_linux_fpregmap): ... this new register map.
476 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
477 register map, replace supply method by regcache_supply_regset, and
478 add collect method regcache_collect_regset.
480 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
482 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
483 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
484 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
485 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
486 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
487 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
488 (frv_linux_supply_gregset): Replace main logic by call to
489 regcache_supply_regset, but keep clearing gr32-gr63.
490 (frv_linux_supply_fpregset): Delete function.
491 (frv_linux_gregset): Refer to appropriate register map and add
492 regcache_collect_regset as the collect method.
493 (frv_linux_fpregset): Likewise. Also exchange the supply method
494 by regcache_supply_regset.
496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
498 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
499 by call to alpha_supply_int_regs.
500 (alpha_linux_collect_gregset): New function.
501 (alpha_linux_supply_fpregset): Replace logic by call to
502 alpha_supply_fp_regs.
503 (alpha_linux_collect_fpregset): New function.
504 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
508 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
509 by call to regcache_collect_regset.
510 (supply_gregset, supply_fpregset): Call regcache_supply_regset
511 instead of aarch64_linux_supply_gregset/_fpregset.
512 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
513 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
515 (aarch64_linux_supply_gregset, supply_gregset_from_core)
516 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
517 functions. Move logic to ...
518 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
520 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
521 refer to new register maps, replace *_regset_from_core by
522 regcache_supply_regset, and also use regcache_collect_regset.
523 * aarch64-linux-tdep.h: Include "regset.h".
524 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
526 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
527 macros, moved from C source file.
528 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
529 variable declarations.
531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
533 * s390-linux-nat.c: Include "regset.h".
534 (regmap_gregset): Delete macro.
535 (s390_64_regmap_gregset): New register map for
536 regcache_supply/_collect_regset.
537 (s390_64_gregset): New regset.
538 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
539 (regmap_fpregset): Delete macro.
540 (s390_native_supply, s390_native_collect): Delete functions.
541 (supply_gregset, fill_gregset): Replace s390-specific regmap
542 handling by a call to regcache_supply/_collect_regset.
543 (supply_fpregset, fill_fpregset): Call regcache_supply/
544 _collect_regset instead of s390_native_supply/_collect.
545 (fetch_regset, store_regset): Likewise. Also change the last
546 parameter to a regset instead of a regmap.
547 (s390_linux_fetch_inferior_registers)
548 (390_linux_store_inferior_registers): Adjust last parameter in
549 calls to fetch_regset and store_regset.
550 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
551 (s390_gregmap): ... this. Also make static const and convert to
552 regcache_map_entry format.
553 (s390x_regmap_gregset): Delete.
554 (s390_regmap_fpregset): Rename to...
555 (s390_fpregmap): ... this. Make static const and convert to
556 regcache_map_entry format.
557 (s390_regmap_upper, s390_regmap_last_break)
558 (s390x_regmap_last_break, s390_regmap_system_call)
559 (s390_regmap_tdb): Likewise.
560 (s390_supply_regset, s390_collect_regset): Remove functions.
561 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
563 (s390_gregset, s390_fpregset, s390_upper_regset)
564 (s390_last_break_regset, s390x_last_break_regset)
565 (s390_system_call_regset, s390_tdb_regset): Make global and
566 replace s390_supply/_collect_regset by regcache_supply/
568 (s390x_gregset): Delete.
569 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
570 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
571 (s390_regmap_fpregset, s390_regmap_last_break)
572 (s390x_regmap_last_break, s390_regmap_system_call)
573 (s390_regmap_tdb): Delete global variable declarations.
574 (s390_gregset, s390_fpregset, s390_last_break_regset)
575 (s390x_last_break_regset, s390_system_call_regset)
576 (s390_tdb_regset): New global variable declarations.
578 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
580 * regcache.c: Include "regset.h".
581 (regcache_transfer_regset): New local function.
582 (regcache_supply_regset, regcache_collect_regset): New functions.
583 * regcache.h (struct regcache_map_entry): New structure.
584 (REGCACHE_MAP_SKIP): New enum value.
585 (regcache_supply_regset, regcache_collect_regset): New prototypes.
587 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
589 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
590 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
591 (ppc_linux_collect_gregset ): Likewise.
592 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
593 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
594 (ppc_collect_vrregset): Likewise.
595 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
598 2014-08-07 Yao Qi <yao@codesourcery.com>
600 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
601 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
602 * remote.c (remote_read_bytes): Likewise.
604 2014-08-07 Yao Qi <yao@codesourcery.com>
606 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
608 2014-08-07 Yao Qi <yao@codesourcery.com>
611 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
612 TARGET_XFER_OK instead of 0.
614 2014-08-07 Gary Benson <gbenson@redhat.com>
616 * common/common-defs.h: Include errno.h.
617 * defs.h: Do not include errno.h.
618 * ada-typeprint.c: Likewise.
619 * c-typeprint.c: Likewise.
620 * core-regset.c: Likewise.
621 * corefile.c: Likewise.
622 * corelow.c: Likewise.
623 * event-loop.c: Likewise.
624 * f-typeprint.c: Likewise.
625 * gnu-nat.c: Likewise.
626 * go32-nat.c: Likewise.
627 * i386gnu-nat.c: Likewise.
628 * m2-typeprint.c: Likewise.
629 * nat/linux-btrace.c: Likewise.
630 * p-typeprint.c: Likewise.
631 * procfs.c: Likewise.
632 * remote-sim.c: Likewise.
633 * rs6000-nat.c: Likewise.
634 * target.c: Likewise.
635 * typeprint.c: Likewise.
636 * ui-file.c: Likewise.
637 * valops.c: Likewise.
638 * valprint.c: Likewise.
640 2014-08-07 Gary Benson <gbenson@redhat.com>
642 * common/common-defs.h: Include string.h.
643 * aarch64-tdep.c: Do not include string.h.
644 * ada-exp.y: Likewise.
645 * ada-lang.c: Likewise.
646 * ada-lex.l: Likewise.
647 * ada-typeprint.c: Likewise.
648 * ada-valprint.c: Likewise.
649 * aix-thread.c: Likewise.
650 * alpha-linux-tdep.c: Likewise.
651 * alpha-mdebug-tdep.c: Likewise.
652 * alpha-nat.c: Likewise.
653 * alpha-osf1-tdep.c: Likewise.
654 * alpha-tdep.c: Likewise.
655 * alphanbsd-tdep.c: Likewise.
656 * amd64-dicos-tdep.c: Likewise.
657 * amd64-linux-tdep.c: Likewise.
658 * amd64-nat.c: Likewise.
659 * amd64-sol2-tdep.c: Likewise.
660 * amd64fbsd-tdep.c: Likewise.
661 * amd64obsd-tdep.c: Likewise.
662 * arch-utils.c: Likewise.
663 * arm-linux-nat.c: Likewise.
664 * arm-linux-tdep.c: Likewise.
665 * arm-tdep.c: Likewise.
666 * arm-wince-tdep.c: Likewise.
667 * armbsd-tdep.c: Likewise.
668 * armnbsd-nat.c: Likewise.
669 * armnbsd-tdep.c: Likewise.
670 * armobsd-tdep.c: Likewise.
671 * avr-tdep.c: Likewise.
672 * ax-gdb.c: Likewise.
673 * ax-general.c: Likewise.
674 * bcache.c: Likewise.
675 * bfin-tdep.c: Likewise.
676 * breakpoint.c: Likewise.
677 * build-id.c: Likewise.
678 * buildsym.c: Likewise.
680 * c-lang.c: Likewise.
681 * c-typeprint.c: Likewise.
682 * c-valprint.c: Likewise.
683 * charset.c: Likewise.
684 * cli-out.c: Likewise.
685 * cli/cli-cmds.c: Likewise.
686 * cli/cli-decode.c: Likewise.
687 * cli/cli-dump.c: Likewise.
688 * cli/cli-interp.c: Likewise.
689 * cli/cli-logging.c: Likewise.
690 * cli/cli-script.c: Likewise.
691 * cli/cli-setshow.c: Likewise.
692 * cli/cli-utils.c: Likewise.
693 * coffread.c: Likewise.
694 * common/agent.c: Likewise.
695 * common/buffer.c: Likewise.
696 * common/buffer.h: Likewise.
697 * common/common-utils.c: Likewise.
698 * common/filestuff.c: Likewise.
699 * common/filestuff.c: Likewise.
700 * common/format.c: Likewise.
701 * common/print-utils.c: Likewise.
702 * common/rsp-low.c: Likewise.
703 * common/signals.c: Likewise.
704 * common/vec.h: Likewise.
705 * common/xml-utils.c: Likewise.
706 * core-regset.c: Likewise.
707 * corefile.c: Likewise.
708 * corelow.c: Likewise.
709 * cp-abi.c: Likewise.
710 * cp-name-parser.y: Likewise.
711 * cp-support.c: Likewise.
712 * cp-valprint.c: Likewise.
713 * cris-tdep.c: Likewise.
715 * darwin-nat.c: Likewise.
716 * dbxread.c: Likewise.
717 * dcache.c: Likewise.
718 * demangle.c: Likewise.
719 * dicos-tdep.c: Likewise.
720 * disasm.c: Likewise.
721 * doublest.c: Likewise.
723 * dummy-frame.c: Likewise.
724 * dwarf2-frame.c: Likewise.
725 * dwarf2loc.c: Likewise.
726 * dwarf2read.c: Likewise.
727 * elfread.c: Likewise.
728 * environ.c: Likewise.
730 * event-loop.c: Likewise.
731 * exceptions.c: Likewise.
733 * expprint.c: Likewise.
735 * f-lang.c: Likewise.
736 * f-typeprint.c: Likewise.
737 * f-valprint.c: Likewise.
738 * fbsd-nat.c: Likewise.
739 * findcmd.c: Likewise.
740 * findvar.c: Likewise.
741 * fork-child.c: Likewise.
743 * frv-linux-tdep.c: Likewise.
744 * frv-tdep.c: Likewise.
746 * gdb_bfd.c: Likewise.
747 * gdbarch.c: Likewise.
748 * gdbarch.sh: Likewise.
749 * gdbtypes.c: Likewise.
750 * gnu-nat.c: Likewise.
751 * gnu-v2-abi.c: Likewise.
752 * gnu-v3-abi.c: Likewise.
753 * go-exp.y: Likewise.
754 * go-lang.c: Likewise.
755 * go32-nat.c: Likewise.
756 * guile/guile.c: Likewise.
757 * guile/scm-auto-load.c: Likewise.
758 * hppa-hpux-tdep.c: Likewise.
759 * hppa-linux-nat.c: Likewise.
760 * hppanbsd-tdep.c: Likewise.
761 * hppaobsd-tdep.c: Likewise.
762 * i386-cygwin-tdep.c: Likewise.
763 * i386-dicos-tdep.c: Likewise.
764 * i386-linux-tdep.c: Likewise.
765 * i386-nto-tdep.c: Likewise.
766 * i386-sol2-tdep.c: Likewise.
767 * i386-tdep.c: Likewise.
768 * i386bsd-tdep.c: Likewise.
769 * i386gnu-nat.c: Likewise.
770 * i386nbsd-tdep.c: Likewise.
771 * i386obsd-tdep.c: Likewise.
772 * i387-tdep.c: Likewise.
773 * ia64-libunwind-tdep.c: Likewise.
774 * ia64-linux-nat.c: Likewise.
775 * inf-child.c: Likewise.
776 * inf-ptrace.c: Likewise.
777 * inf-ttrace.c: Likewise.
778 * infcall.c: Likewise.
779 * infcmd.c: Likewise.
780 * inflow.c: Likewise.
781 * infrun.c: Likewise.
782 * interps.c: Likewise.
783 * iq2000-tdep.c: Likewise.
784 * irix5-nat.c: Likewise.
785 * jv-exp.y: Likewise.
786 * jv-lang.c: Likewise.
787 * jv-typeprint.c: Likewise.
788 * jv-valprint.c: Likewise.
789 * language.c: Likewise.
790 * linux-fork.c: Likewise.
791 * linux-nat.c: Likewise.
792 * lm32-tdep.c: Likewise.
793 * m2-exp.y: Likewise.
794 * m2-typeprint.c: Likewise.
795 * m32c-tdep.c: Likewise.
796 * m32r-linux-nat.c: Likewise.
797 * m32r-linux-tdep.c: Likewise.
798 * m32r-rom.c: Likewise.
799 * m32r-tdep.c: Likewise.
800 * m68hc11-tdep.c: Likewise.
801 * m68k-tdep.c: Likewise.
802 * m68kbsd-tdep.c: Likewise.
803 * m68klinux-nat.c: Likewise.
804 * m68klinux-tdep.c: Likewise.
805 * m88k-tdep.c: Likewise.
806 * machoread.c: Likewise.
807 * macrocmd.c: Likewise.
809 * mdebugread.c: Likewise.
810 * mem-break.c: Likewise.
811 * memattr.c: Likewise.
812 * memory-map.c: Likewise.
813 * mep-tdep.c: Likewise.
814 * mi/mi-cmd-break.c: Likewise.
815 * mi/mi-cmd-disas.c: Likewise.
816 * mi/mi-cmd-env.c: Likewise.
817 * mi/mi-cmd-stack.c: Likewise.
818 * mi/mi-cmd-var.c: Likewise.
819 * mi/mi-cmds.c: Likewise.
820 * mi/mi-console.c: Likewise.
821 * mi/mi-getopt.c: Likewise.
822 * mi/mi-interp.c: Likewise.
823 * mi/mi-main.c: Likewise.
824 * mi/mi-parse.c: Likewise.
825 * microblaze-rom.c: Likewise.
826 * microblaze-tdep.c: Likewise.
827 * mingw-hdep.c: Likewise.
828 * minidebug.c: Likewise.
829 * minsyms.c: Likewise.
830 * mips-irix-tdep.c: Likewise.
831 * mips-linux-tdep.c: Likewise.
832 * mips-tdep.c: Likewise.
833 * mips64obsd-tdep.c: Likewise.
834 * mipsnbsd-tdep.c: Likewise.
835 * mipsread.c: Likewise.
836 * mn10300-linux-tdep.c: Likewise.
837 * mn10300-tdep.c: Likewise.
838 * monitor.c: Likewise.
839 * moxie-tdep.c: Likewise.
840 * mt-tdep.c: Likewise.
841 * nat/linux-btrace.c: Likewise.
842 * nat/linux-osdata.c: Likewise.
843 * nat/linux-procfs.c: Likewise.
844 * nat/linux-ptrace.c: Likewise.
845 * nat/linux-waitpid.c: Likewise.
846 * nbsd-tdep.c: Likewise.
847 * nios2-linux-tdep.c: Likewise.
848 * nto-procfs.c: Likewise.
849 * nto-tdep.c: Likewise.
850 * objc-lang.c: Likewise.
851 * objfiles.c: Likewise.
852 * opencl-lang.c: Likewise.
854 * osdata.c: Likewise.
856 * p-lang.c: Likewise.
857 * p-typeprint.c: Likewise.
859 * posix-hdep.c: Likewise.
860 * ppc-linux-nat.c: Likewise.
861 * ppc-sysv-tdep.c: Likewise.
862 * ppcfbsd-tdep.c: Likewise.
863 * ppcnbsd-tdep.c: Likewise.
864 * ppcobsd-tdep.c: Likewise.
865 * printcmd.c: Likewise.
866 * procfs.c: Likewise.
867 * prologue-value.c: Likewise.
868 * python/py-auto-load.c: Likewise.
869 * python/py-gdb-readline.c: Likewise.
870 * ravenscar-thread.c: Likewise.
871 * regcache.c: Likewise.
872 * registry.c: Likewise.
873 * remote-fileio.c: Likewise.
874 * remote-m32r-sdi.c: Likewise.
875 * remote-mips.c: Likewise.
876 * remote-notif.c: Likewise.
877 * remote-sim.c: Likewise.
878 * remote.c: Likewise.
879 * reverse.c: Likewise.
880 * rs6000-aix-tdep.c: Likewise.
881 * ser-base.c: Likewise.
882 * ser-go32.c: Likewise.
883 * ser-mingw.c: Likewise.
884 * ser-pipe.c: Likewise.
885 * ser-tcp.c: Likewise.
886 * ser-unix.c: Likewise.
887 * serial.c: Likewise.
888 * sh-tdep.c: Likewise.
889 * sh64-tdep.c: Likewise.
890 * shnbsd-tdep.c: Likewise.
892 * sol-thread.c: Likewise.
893 * solib-dsbt.c: Likewise.
894 * solib-frv.c: Likewise.
895 * solib-osf.c: Likewise.
896 * solib-som.c: Likewise.
897 * solib-spu.c: Likewise.
898 * solib-target.c: Likewise.
900 * somread.c: Likewise.
901 * source.c: Likewise.
902 * sparc-nat.c: Likewise.
903 * sparc-sol2-tdep.c: Likewise.
904 * sparc-tdep.c: Likewise.
905 * sparc64-tdep.c: Likewise.
906 * sparc64fbsd-tdep.c: Likewise.
907 * sparc64nbsd-tdep.c: Likewise.
908 * sparcnbsd-tdep.c: Likewise.
909 * spu-linux-nat.c: Likewise.
910 * spu-multiarch.c: Likewise.
911 * spu-tdep.c: Likewise.
912 * stabsread.c: Likewise.
914 * std-regs.c: Likewise.
915 * symfile.c: Likewise.
916 * symmisc.c: Likewise.
917 * symtab.c: Likewise.
918 * target.c: Likewise.
919 * thread.c: Likewise.
920 * tilegx-linux-nat.c: Likewise.
921 * tilegx-tdep.c: Likewise.
923 * tracepoint.c: Likewise.
924 * tui/tui-command.c: Likewise.
925 * tui/tui-data.c: Likewise.
926 * tui/tui-disasm.c: Likewise.
927 * tui/tui-file.c: Likewise.
928 * tui/tui-layout.c: Likewise.
929 * tui/tui-out.c: Likewise.
930 * tui/tui-regs.c: Likewise.
931 * tui/tui-source.c: Likewise.
932 * tui/tui-stack.c: Likewise.
933 * tui/tui-win.c: Likewise.
934 * tui/tui-windata.c: Likewise.
935 * tui/tui-winsource.c: Likewise.
936 * typeprint.c: Likewise.
937 * ui-file.c: Likewise.
938 * ui-out.c: Likewise.
939 * user-regs.c: Likewise.
941 * v850-tdep.c: Likewise.
942 * valarith.c: Likewise.
943 * valops.c: Likewise.
944 * valprint.c: Likewise.
946 * varobj.c: Likewise.
947 * vax-tdep.c: Likewise.
948 * vaxnbsd-tdep.c: Likewise.
949 * vaxobsd-tdep.c: Likewise.
950 * windows-nat.c: Likewise.
951 * xcoffread.c: Likewise.
952 * xml-support.c: Likewise.
953 * xstormy16-tdep.c: Likewise.
954 * xtensa-linux-nat.c: Likewise.
956 2014-08-07 Gary Benson <gbenson@redhat.com>
958 * common/common-defs.h: Include gdb_assert.h.
959 * aarch64-tdep.c: Do not include gdb_assert.h.
960 * addrmap.c: Likewise.
961 * aix-thread.c: Likewise.
962 * alpha-linux-tdep.c: Likewise.
963 * alpha-mdebug-tdep.c: Likewise.
964 * alphanbsd-tdep.c: Likewise.
965 * amd64-nat.c: Likewise.
966 * amd64-tdep.c: Likewise.
967 * amd64bsd-nat.c: Likewise.
968 * amd64fbsd-nat.c: Likewise.
969 * amd64fbsd-tdep.c: Likewise.
970 * amd64nbsd-nat.c: Likewise.
971 * amd64nbsd-tdep.c: Likewise.
972 * amd64obsd-nat.c: Likewise.
973 * amd64obsd-tdep.c: Likewise.
974 * arch-utils.c: Likewise.
975 * arm-tdep.c: Likewise.
976 * armbsd-tdep.c: Likewise.
978 * bcache.c: Likewise.
979 * bfin-tdep.c: Likewise.
980 * blockframe.c: Likewise.
981 * breakpoint.c: Likewise.
982 * bsd-kvm.c: Likewise.
983 * bsd-uthread.c: Likewise.
984 * buildsym.c: Likewise.
986 * c-lang.c: Likewise.
987 * charset.c: Likewise.
988 * cleanups.c: Likewise.
989 * cli-out.c: Likewise.
990 * cli/cli-decode.c: Likewise.
991 * cli/cli-dump.c: Likewise.
992 * cli/cli-logging.c: Likewise.
993 * cli/cli-script.c: Likewise.
994 * cli/cli-utils.c: Likewise.
995 * coffread.c: Likewise.
996 * common/common-utils.c: Likewise.
997 * common/queue.h: Likewise.
998 * common/signals.c: Likewise.
999 * common/vec.h: Likewise.
1000 * complaints.c: Likewise.
1001 * completer.c: Likewise.
1002 * corelow.c: Likewise.
1003 * cp-abi.c: Likewise.
1004 * cp-name-parser.y: Likewise.
1005 * cp-namespace.c: Likewise.
1006 * cp-support.c: Likewise.
1007 * cris-tdep.c: Likewise.
1008 * dbxread.c: Likewise.
1009 * dictionary.c: Likewise.
1010 * doublest.c: Likewise.
1011 * dsrec.c: Likewise.
1012 * dummy-frame.c: Likewise.
1013 * dwarf2-frame-tailcall.c: Likewise.
1014 * dwarf2-frame.c: Likewise.
1015 * dwarf2expr.c: Likewise.
1016 * dwarf2loc.c: Likewise.
1017 * dwarf2read.c: Likewise.
1019 * event-loop.c: Likewise.
1020 * exceptions.c: Likewise.
1021 * expprint.c: Likewise.
1022 * f-valprint.c: Likewise.
1023 * fbsd-nat.c: Likewise.
1024 * findvar.c: Likewise.
1025 * frame-unwind.c: Likewise.
1026 * frame.c: Likewise.
1027 * frv-tdep.c: Likewise.
1028 * gcore.c: Likewise.
1029 * gdb-dlfcn.c: Likewise.
1030 * gdb_bfd.c: Likewise.
1031 * gdbarch.c: Likewise.
1032 * gdbarch.sh: Likewise.
1033 * gdbtypes.c: Likewise.
1034 * gnu-nat.c: Likewise.
1035 * gnu-v3-abi.c: Likewise.
1036 * go-lang.c: Likewise.
1037 * guile/scm-exception.c: Likewise.
1038 * guile/scm-gsmob.c: Likewise.
1039 * guile/scm-lazy-string.c: Likewise.
1040 * guile/scm-math.c: Likewise.
1041 * guile/scm-pretty-print.c: Likewise.
1042 * guile/scm-safe-call.c: Likewise.
1043 * guile/scm-utils.c: Likewise.
1044 * guile/scm-value.c: Likewise.
1045 * h8300-tdep.c: Likewise.
1046 * hppa-hpux-nat.c: Likewise.
1047 * hppa-tdep.c: Likewise.
1048 * hppanbsd-tdep.c: Likewise.
1049 * hppaobsd-tdep.c: Likewise.
1050 * i386-darwin-nat.c: Likewise.
1051 * i386-darwin-tdep.c: Likewise.
1052 * i386-nto-tdep.c: Likewise.
1053 * i386-tdep.c: Likewise.
1054 * i386bsd-nat.c: Likewise.
1055 * i386fbsd-tdep.c: Likewise.
1056 * i386gnu-nat.c: Likewise.
1057 * i386nbsd-tdep.c: Likewise.
1058 * i386obsd-tdep.c: Likewise.
1059 * i387-tdep.c: Likewise.
1060 * ia64-libunwind-tdep.c: Likewise.
1061 * ia64-tdep.c: Likewise.
1062 * inf-ptrace.c: Likewise.
1063 * inf-ttrace.c: Likewise.
1064 * infcall.c: Likewise.
1065 * infcmd.c: Likewise.
1066 * infrun.c: Likewise.
1067 * inline-frame.c: Likewise.
1068 * interps.c: Likewise.
1069 * jv-lang.c: Likewise.
1070 * jv-typeprint.c: Likewise.
1071 * linux-fork.c: Likewise.
1072 * linux-nat.c: Likewise.
1073 * linux-thread-db.c: Likewise.
1074 * m32c-tdep.c: Likewise.
1075 * m32r-linux-nat.c: Likewise.
1076 * m32r-tdep.c: Likewise.
1077 * m68k-tdep.c: Likewise.
1078 * m68kbsd-nat.c: Likewise.
1079 * m68kbsd-tdep.c: Likewise.
1080 * m88k-tdep.c: Likewise.
1081 * machoread.c: Likewise.
1082 * macroexp.c: Likewise.
1083 * macrotab.c: Likewise.
1084 * maint.c: Likewise.
1085 * mdebugread.c: Likewise.
1086 * memory-map.c: Likewise.
1087 * mep-tdep.c: Likewise.
1088 * mi/mi-common.c: Likewise.
1089 * microblaze-tdep.c: Likewise.
1090 * mingw-hdep.c: Likewise.
1091 * mips-linux-nat.c: Likewise.
1092 * mips-linux-tdep.c: Likewise.
1093 * mips-tdep.c: Likewise.
1094 * mips64obsd-tdep.c: Likewise.
1095 * mipsnbsd-tdep.c: Likewise.
1096 * mn10300-linux-tdep.c: Likewise.
1097 * mn10300-tdep.c: Likewise.
1098 * moxie-tdep.c: Likewise.
1099 * mt-tdep.c: Likewise.
1100 * nat/linux-btrace.c: Likewise.
1101 * nat/linux-osdata.c: Likewise.
1102 * nat/linux-ptrace.c: Likewise.
1103 * nat/mips-linux-watch.c: Likewise.
1104 * nios2-linux-tdep.c: Likewise.
1105 * nios2-tdep.c: Likewise.
1106 * objc-lang.c: Likewise.
1107 * objfiles.c: Likewise.
1108 * obsd-nat.c: Likewise.
1109 * opencl-lang.c: Likewise.
1110 * osabi.c: Likewise.
1111 * parse.c: Likewise.
1112 * ppc-linux-nat.c: Likewise.
1113 * ppc-sysv-tdep.c: Likewise.
1114 * ppcfbsd-nat.c: Likewise.
1115 * ppcfbsd-tdep.c: Likewise.
1116 * ppcnbsd-nat.c: Likewise.
1117 * ppcnbsd-tdep.c: Likewise.
1118 * ppcobsd-nat.c: Likewise.
1119 * ppcobsd-tdep.c: Likewise.
1120 * printcmd.c: Likewise.
1121 * procfs.c: Likewise.
1122 * prologue-value.c: Likewise.
1123 * psymtab.c: Likewise.
1124 * python/py-lazy-string.c: Likewise.
1125 * python/py-value.c: Likewise.
1126 * regcache.c: Likewise.
1127 * reggroups.c: Likewise.
1128 * registry.c: Likewise.
1129 * remote-sim.c: Likewise.
1130 * remote.c: Likewise.
1131 * rs6000-aix-tdep.c: Likewise.
1132 * rs6000-tdep.c: Likewise.
1133 * s390-linux-tdep.c: Likewise.
1134 * score-tdep.c: Likewise.
1135 * ser-base.c: Likewise.
1136 * ser-mingw.c: Likewise.
1137 * sh-tdep.c: Likewise.
1138 * sh64-tdep.c: Likewise.
1139 * solib-darwin.c: Likewise.
1140 * solib-spu.c: Likewise.
1141 * solib-svr4.c: Likewise.
1142 * source.c: Likewise.
1143 * sparc-nat.c: Likewise.
1144 * sparc-sol2-tdep.c: Likewise.
1145 * sparc-tdep.c: Likewise.
1146 * sparc64-sol2-tdep.c: Likewise.
1147 * sparc64-tdep.c: Likewise.
1148 * sparc64fbsd-tdep.c: Likewise.
1149 * sparc64nbsd-tdep.c: Likewise.
1150 * sparc64obsd-tdep.c: Likewise.
1151 * sparcnbsd-tdep.c: Likewise.
1152 * sparcobsd-tdep.c: Likewise.
1153 * spu-multiarch.c: Likewise.
1154 * spu-tdep.c: Likewise.
1155 * stabsread.c: Likewise.
1156 * stack.c: Likewise.
1157 * symfile.c: Likewise.
1158 * symtab.c: Likewise.
1159 * target-descriptions.c: Likewise.
1160 * target-memory.c: Likewise.
1161 * target.c: Likewise.
1162 * tic6x-linux-tdep.c: Likewise.
1163 * tic6x-tdep.c: Likewise.
1164 * tilegx-linux-nat.c: Likewise.
1165 * tilegx-tdep.c: Likewise.
1167 * tramp-frame.c: Likewise.
1168 * tui/tui-out.c: Likewise.
1169 * tui/tui-winsource.c: Likewise.
1170 * ui-out.c: Likewise.
1171 * user-regs.c: Likewise.
1172 * utils.c: Likewise.
1173 * v850-tdep.c: Likewise.
1174 * valops.c: Likewise.
1175 * value.c: Likewise.
1176 * varobj.c: Likewise.
1177 * vax-nat.c: Likewise.
1178 * xml-syscall.c: Likewise.
1179 * xml-tdesc.c: Likewise.
1180 * xstormy16-tdep.c: Likewise.
1181 * xtensa-linux-nat.c: Likewise.
1182 * xtensa-tdep.c: Likewise.
1184 2014-08-07 Gary Benson <gbenson@redhat.com>
1186 * common/common-defs.h: Include common-utils.h.
1187 * defs.h: Do not include common-utils.h.
1188 * common/gdb_assert.h: Likewise.
1189 * darwin-nat.h: Likewise.
1190 * nat/linux-btrace.c: Likewise.
1191 * target/waitstatus.h: Likewise.
1193 2014-08-07 Gary Benson <gbenson@redhat.com>
1195 * common/common-defs.h: Include ptid.h.
1196 * defs.h: Do not include ptid.h.
1197 * inferior.h: Likewise.
1198 * infrun.h: Likewise.
1199 * nat/linux-btrace.h: Likewise.
1200 * nat/linux-osdata.h: Likewise.
1201 * target/waitstatus.h: Likewise.
1203 2014-08-07 Gary Benson <gbenson@redhat.com>
1205 * common/common-defs.h: Include gdb_locale.h.
1206 * defs.h: Do not include gdb_locale.h.
1208 2014-08-07 Gary Benson <gbenson@redhat.com>
1210 * common/common-defs.h: Include gdb/signals.h.
1211 * defs.h: Do not include gdb/signals.h.
1213 2014-08-07 Gary Benson <gbenson@redhat.com>
1215 * common/common-defs.h: Include pathmax.h.
1216 * defs.h: Do not include pathmax.h.
1218 2014-08-07 Gary Benson <gbenson@redhat.com>
1220 * common/common-defs.h: Include libiberty.h.
1221 * defs.h: Do not include libiberty.h.
1222 * common/queue.h: Likewise.
1223 * cp-name-parser.y: Likewise.
1224 * mi/mi-cmd-catch.c: Likewise.
1225 * python/python.c: Likewise.
1227 2014-08-07 Gary Benson <gbenson@redhat.com>
1229 * common/common-defs.h: Include ansidecl.h.
1230 * defs.h: Do not include ansidecl.h.
1231 * common/buffer.h: Likewise.
1232 * common/common-utils.h: Likewise.
1234 2014-08-07 Gary Benson <gbenson@redhat.com>
1236 * common/common-defs.h: Include stddef.h.
1237 * defs.h: Do not include stddef.h.
1238 * common/common-utils.h: Likewise.
1239 * amd64fbsd-nat.c: Likewise.
1240 * bcache.c: Likewise.
1241 * charset.c: Likewise.
1242 * common/buffer.h: Likewise.
1243 * common/vec.h: Likewise.
1244 * i386bsd-nat.c: Likewise.
1245 * nat/linux-btrace.h: Likewise.
1246 * ppcfbsd-nat.c: Likewise.
1247 * ppcnbsd-tdep.h: Likewise.
1248 * ppcobsd-nat.c: Likewise.
1249 * ppcobsd-tdep.h: Likewise.
1250 * python/py-gdb-readline.c: Likewise.
1252 2014-08-07 Gary Benson <gbenson@redhat.com>
1254 * common/common-defs.h: Include stdarg.h.
1255 * defs.h: Do not include stdarg.h.
1256 * ada-lang.c: Likewise.
1257 * common/common-utils.h: Likewise.
1258 * guile/scm-string.c: Likewise.
1259 * guile/scm-utils.c: Likewise.
1260 * m32c-tdep.c: Likewise.
1262 2014-08-07 Gary Benson <gbenson@redhat.com>
1264 * common/common-defs.h: Include stdlib.h.
1265 * defs.h: Do not include stdlib.h.
1266 * addrmap.c: Likewise.
1267 * bcache.c: Likewise.
1268 * common/buffer.c: Likewise.
1269 * common/common-utils.c: Likewise.
1270 * cp-name-parser.y: Likewise.
1271 * go32-nat.c: Likewise.
1272 * mn10300-linux-tdep.c: Likewise.
1273 * nat/linux-osdata.c: Likewise.
1274 * tui/tui.c: Likewise.
1275 * windows-nat.c: Likewise.
1277 2014-08-07 Gary Benson <gbenson@redhat.com>
1279 * common/common-defs.h: Include stdio.h.
1280 * defs.h: Do not include stdio.h.
1281 * ada-lang.c: Likewise.
1282 * common/buffer.c: Likewise.
1283 * common/common-utils.c: Likewise.
1284 * cp-name-parser.y: Likewise.
1285 * gnu-nat.c: Likewise.
1286 * go32-nat.c: Likewise.
1287 * i386gnu-nat.c: Likewise.
1288 * proc-api.c: Likewise.
1289 * proc-events.c: Likewise.
1290 * proc-flags.c: Likewise.
1291 * proc-why.c: Likewise.
1292 * python/python-internal.h: Likewise.
1293 * target-memory.c: Likewise.
1294 * tui/tui-io.c: Likewise.
1295 * tui/tui.c: Likewise.
1297 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1299 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1300 (scan_dyntag_auxv): Same.
1302 2014-08-06 Yao Qi <yao@codesourcery.com>
1304 * amd64-linux-nat.c: Remove duplicated include
1306 * i386-linux-nat.c: Likewise.
1308 2014-08-06 Yao Qi <yao@codesourcery.com>
1310 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1311 operand" with "Special opcode" in comments.
1313 2014-08-05 Gary Benson <gbenson@redhat.com>
1315 * interps.c (initialize_interps): Remove prototype.
1316 (interpreter_initialized): Remove static global.
1317 (interp_add): Do not call initialize_interps.
1318 (initialize_interps): Remove function.
1320 2014-08-05 Gary Benson <gbenson@redhat.com>
1322 * utils.c (vwarning): Remove spurious va_end.
1324 2014-08-05 Alan Modra <amodra@gmail.com>
1326 * charset.c (convert_between_encodings): Cast result of obstack_base.
1327 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1328 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1329 (read_unwind_info): Use size_t for some locals.
1330 * jit.c (finalize_symtab): Likewise.
1331 * utils.c (hashtab_obstack_allocate): Likewise.
1332 * symmisc.c (print_objfile_statistics): Update format strings.
1334 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1336 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1337 (Changes in GDB 7.8): ... here.
1339 2014-08-04 Tom Tromey <tromey@redhat.com>
1341 * target.c (set_targetdebug): New function.
1342 (initialize_targets): Pass set_targetdebug when creating "set
1345 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1347 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1348 if detecting a variable-sized field that is not the last field.
1349 Fix struct type length computation.
1351 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1353 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1356 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1358 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1359 Remove "+ 8" offset in computation of CHAIN_VMA.
1361 2014-07-31 Doug Evans <dje@google.com>
1363 * inflow.c (child_terminal_inferior): Add comment.
1364 (child_terminal_ours_for_output): Add comment.
1365 (child_terminal_ours): Add comment.
1366 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1367 (linux_nat_terminal_ours): Add comment.
1369 2014-07-31 Gary Benson <gbenson@redhat.com>
1371 * common/btrace-common.h: Do not include defs.h or server.h.
1372 * nat/mips-linux-watch.h: Likewise.
1373 * gdb-dlfcn.h: Do not include defs.h.
1374 * tracefile.h: Likewise.
1376 2014-07-30 Roland McGrath <mcgrathr@google.com>
1378 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1380 2014-07-30 Tom Tromey <tromey@redhat.com>
1382 * bsd-kvm.c (bsd_kvm_open): Constify.
1383 * corelow.c (core_open): Constify.
1384 * ctf.c (ctf_open): Constify.
1385 * dbug-rom.c (dbug_open): Constify.
1386 * exec.c (exec_open): Constify.
1387 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1388 * microblaze-rom.c (picobug_open): Constify.
1389 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1391 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1392 * record-btrace.c (record_btrace_open): Constify.
1393 * record-full.c (record_full_core_open_1, record_full_open_1)
1394 (record_full_open): Constify.
1395 * remote-m32r-sdi.c (m32r_open): Constify.
1396 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1397 (rockhopper_open, lsi_open): Constify.
1398 * remote-sim.c (gdbsim_open): Constify.
1399 * remote.c (remote_open, extended_remote_open, remote_open_1):
1401 * target.h (struct target_ops) <to_open>: Make "arg" const.
1402 * tracefile-tfile.c (tfile_open): Constify.
1404 2014-07-30 Tom Tromey <tromey@redhat.com>
1406 * breakpoint.c (map_breakpoint_numbers): Update.
1407 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1408 (get_number_const): New function.
1409 (get_number): Rewrite using get_number_const.
1410 (init_number_or_range): Make "string" const.
1411 (number_is_in_list): Make "list" const.
1412 * cli/cli-utils.h (get_number_const): Declare.
1413 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1414 (init_number_or_range, number_is_in_list): Update.
1415 * printcmd.c (map_display_numbers): Update.
1416 * value.c (value_from_history_ref): Constify.
1417 * value.h (value_from_history_ref): Update.
1419 2014-07-30 Tom Tromey <tromey@redhat.com>
1421 * corefile.c (hook_type, call_extra_exec_file_hooks)
1422 (specify_exec_file_hook): Constify.
1423 * exec.c (exec_file_attach): Make "filename" const.
1424 * gdbcore.h (deprecated_exec_file_display_hook)
1425 (specify_exec_file_hook, exec_file_attach): Constify.
1426 * main.c (captured_main): Use catch_command_errors_const.
1428 2014-07-30 Tom Tromey <tromey@redhat.com>
1430 * target.c (open_target): New function.
1431 (add_target_with_completer, add_deprecated_target_alias): Use
1432 set_cmd_sfunc, set_cmd_context.
1433 (debug_to_open): Remove.
1434 (setup_target_debug): Update.
1436 2014-07-30 Yao Qi <yao@codesourcery.com>
1438 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1440 * parse.c (exp_iterate): Update comments.
1442 2014-07-30 Gary Benson <gbenson@redhat.com>
1444 * common/common-defs.h: New file.
1445 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1446 * defs.h: Include common-defs.h.
1447 Do not include config.h or build-gnulib/config.h.
1449 2014-07-30 Gary Benson <gbenson@redhat.com>
1451 * common/common-utils.h: Do not include config.h.
1452 * nat/linux-btrace.h: Likewise.
1454 2014-07-30 Gary Benson <gbenson@redhat.com>
1456 * btrace.c: Include defs.h.
1457 * common/ptid.c: Include defs.h or server.h as appropriate.
1458 * nat/mips-linux-watch.c: Likewise.
1460 2014-07-29 Tom Tromey <tromey@redhat.com>
1462 * target.c (target_is_pushed): Simplify.
1464 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1468 2014-07-29 Yao Qi <yao@codesourcery.com>
1471 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1473 2014-07-28 Doug Evans <xdje42@gmail.com>
1476 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1477 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1480 2014-07-28 Will Newton <will.newton@linaro.org>
1482 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1483 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1484 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1485 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1486 (THUMB2_EABI_SYSCALL): Likewise.
1487 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1489 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1490 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1492 2014-07-27 Doug Evans <xdje42@gmail.com>
1494 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1496 2014-07-27 Doug Evans <xdje42@gmail.com>
1498 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1500 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1501 Doug Evans <xdje42@gmail.com>
1504 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1505 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1506 * configure.ac: Try to use guild to compile an scm file, if it fails
1507 then disable guile support.
1508 * configure: Regenerate.
1509 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1511 (GUILE_COMPILED_FILES): New variable.
1512 (GUILE_FILES) Update.
1513 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1514 (stamp-guile): Compile scm files.
1515 * guile/guile.c (boot_guile_support): New function.
1516 (standard_throw_args_p): New function.
1517 (print_standard_throw_error, print_throw_error): New functions.
1518 (handle_boot_error): New function.
1519 (initialize_scheme_side): Rewrite to call boot_guile_support.
1520 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1521 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1523 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1524 Doug Evans <xdje42@gmail.com>
1527 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1528 * guile/lib/gdb/support.scm: New file.
1529 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1530 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1532 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1534 (%assert-type): Ditto, and renamed to assert-type.
1535 (%exception-print-style): Delete.
1537 2014-07-26 Doug Evans <xdje42@gmail.com>
1540 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1541 * configure: Regenerate.
1542 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1544 (PYTHON_FILES): New variable.
1545 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1546 (GUILE_FILES): New variable.
1547 (stamp-python, install-python, uninstall-python): Handle empty
1549 (stamp-guile, install-guile, uninstall-guile): Ditto.
1551 2014-07-26 Doug Evans <xdje42@gmail.com>
1554 * guile/lib/gdb.scm (pretty-printers): Export.
1555 (set-pretty-printers!): Export.
1556 * guile/lib/gdb/printing.scm (gdb module): Update.
1557 (prepend-pretty-printer!, append-pretty-printer!): Update.
1558 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1559 (pretty_printer_list_var): Delete.
1560 (pretty_printer_list): New static global.
1561 (gdbscm_pretty_printers): New function.
1562 (gdbscm_set_pretty_printers_x): New function.
1563 (ppscm_find_pretty_printer_from_gdb): Update.
1564 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1565 (gdbscm_initialize_pretty_printers): Update.
1567 2014-07-26 Doug Evans <xdje42@gmail.com>
1570 * configure.ac: Add check for header gc/gc.h.
1571 Add check for function setenv.
1572 * configure: Regenerate.
1573 * config.in: Regenerate.
1574 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1576 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1578 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1579 variation in gdbarch matching.
1581 2014-07-25 Tom Tromey <tromey@redhat.com>
1583 * exec.c (using_exec_ops): Remove.
1584 (exec_close_1): Update. Remove extraneous block, reindent.
1585 (add_target_sections): Use target_is_pushed.
1587 2014-07-25 Pedro Alves <palves@redhat.com>
1589 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1590 * monitor.c (monitor_create_inferior): Likewise.
1591 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1592 * remote-sim.c (gdbsim_create_inferior): Likewise.
1593 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1594 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1595 * windows-nat.c (do_initial_windows_stuff): Likewise.
1597 2014-07-25 Pedro Alves <palves@redhat.com>
1599 * NEWS: Mention signal passing and "signal" command changes.
1600 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1602 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1604 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1605 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1606 (jump_command): Adjust clear_proceed_status call.
1607 (signal_command): Warn if other thread that are resumed have
1608 signals that will be delivered. Adjust clear_proceed_status call.
1609 (until_next_command, finish_command)
1610 (proceed_after_attach_callback, attach_command_post_wait)
1611 (attach_command): Adjust clear_proceed_status call.
1612 * infrun.c (proceed_after_vfork_done): Likewise.
1613 (proceed_after_attach_callback): Adjust comment.
1614 (clear_proceed_status_thread): Clear stop_signal if not in pass
1616 (clear_proceed_status_callback): Delete.
1617 (clear_proceed_status): New 'step' parameter. Only clear the
1618 proceed status of threads the command being prepared is about to
1620 (proceed): If passed in an explicit signal, override stop_signal
1621 with it. Don't pass the last stop signal to the thread we're
1623 (init_wait_for_inferior): Adjust clear_proceed_status call.
1624 (switch_back_to_stepped_thread): Clear the signal if it should not
1626 * infrun.h (clear_proceed_status): New 'step' parameter.
1627 (user_visible_resume_ptid): Add comment.
1628 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1629 signal is in pass state.
1630 * remote.c (append_pending_thread_resumptions): Likewise.
1631 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1633 2014-07-25 Tom Tromey <tromey@redhat.com>
1635 * target.h (target_stopped_data_address)
1636 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1639 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1641 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1643 (avr_pointer_to_address): Likewise.
1645 2014-07-24 Tom Tromey <tromey@redhat.com>
1647 * monitor.c (compile_pattern): Update.
1648 * target.h (struct target_ops) <to_shortname, to_longname,
1651 2014-07-24 Tom Tromey <tromey@redhat.com>
1653 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1654 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1655 (add_info_alias, add_com): Make "doc" const.
1656 (print_doc_line): Make "str" const.
1657 (delete_cmd): Update.
1658 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1659 (print_doc_line): Update.
1660 * cli/cli-script.c (document_command): Update.
1661 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1662 (add_com, add_info, add_info_alias): Update.
1663 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1664 * python/py-cmd.c (cmdpy_destroyer): Update.
1666 2014-07-24 Tom Tromey <tromey@redhat.com>
1668 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1669 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1670 (help_cmd_list): Constify.
1671 (lookup_cmd): Update.
1672 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1674 (help_cmd_list, apropos_cmd): Update.
1675 * cli/cli-script.c (show_user): Update.
1676 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1677 * cli/cli-setshow.h (cmd_show_list): Update.
1678 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1679 (cmd_show_list): Update.
1680 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1681 * python/py-cmd.c (cmdpy_destroyer): Update.
1683 2014-07-24 Tom Tromey <tromey@redhat.com>
1685 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1686 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1688 * command.h (deprecate_cmd): Update.
1689 * maint.c (maintenance_do_deprecate): Add casts.
1691 2014-07-24 Tom Tromey <tromey@redhat.com>
1693 * cli/cli-decode.c (help_cmd): Make parameter "const".
1694 * cli/cli-decode.h (help_cmd): Update.
1696 2014-07-24 Tom Tromey <tromey@redhat.com>
1698 * stack.c (up_silently_base, down_silently_base): Make argument
1701 2014-07-24 Tom Tromey <tromey@redhat.com>
1703 * solib.c (solib_add): Make "pattern" const.
1704 * solib.h (solib_add): Update.
1706 2014-07-24 Tom Tromey <tromey@redhat.com>
1708 * remote.c (remote_serial_open, print_packet, putpkt)
1709 (putpkt_binary): Constify.
1710 * remote.h (putpkt): Update.
1712 2014-07-24 Tom Tromey <tromey@redhat.com>
1714 * monitor.c (monitor_open): Make "args" const.
1715 * monitor.h (monitor_open): Update.
1717 2014-07-24 Tom Tromey <tromey@redhat.com>
1719 * maint.c (match_bfd_flags): Make "string" const.
1720 (print_bfd_section_info): Remove casts.
1721 (print_objfile_section_info): Make "string" const.
1723 2014-07-24 Tom Tromey <tromey@redhat.com>
1725 * inf-child.c (inf_child_open_target): Make "arg" const.
1726 * inf-child.h (inf_child_open_target): Update.
1728 2014-07-24 Tom Tromey <tromey@redhat.com>
1730 * environ.c (unset_in_environ): Make "var" const.
1731 * environ.h (unset_in_environ): Update.
1733 2014-07-24 Tom Tromey <tromey@redhat.com>
1735 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1737 (scan_filename_with_cleanup): Likewise.
1738 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1739 Make arguments const.
1740 (restore_command): Update.
1742 2014-07-24 Pedro Alves <palves@redhat.com>
1744 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1746 2014-07-24 Tom Tromey <tromey@redhat.com>
1747 Gary Benson <gbenson@redhat.com>
1749 * nat/linux-ptrace.c (additional_flags): New global.
1750 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1751 additional_flags; don't check GDBSERVER.
1752 (linux_ptrace_set_additional_flags): New function.
1753 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1755 * linux-nat.c (_initialize_linux_nat): Call
1756 linux_ptrace_set_additional_flags.
1758 2014-07-24 Tom Tromey <tromey@redhat.com>
1760 * make-target-delegates (munge_type, write_debugmethod): New
1762 (debug_names): New global.
1763 ($TARGET_DEBUG_PRINTER): New global.
1764 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1766 Write debug methods. Generate init_debug_target.
1767 * target-debug.h: New file.
1768 * target-delegates.c: Rebuild.
1769 * target.c: Include target-debug.h.
1770 (debug_target): Hoist definition.
1771 (target_kill, target_get_section_table, target_memory_map)
1772 (target_flash_erase, target_flash_done, target_detach)
1773 (target_disconnect, target_wait, target_resume)
1774 (target_pass_signals, target_program_signals, target_follow_fork)
1775 (target_mourn_inferior, target_search_memory)
1776 (target_thread_address_space, target_close)
1777 (target_find_new_threads, target_core_of_thread)
1778 (target_verify_memory, target_insert_mask_watchpoint)
1779 (target_remove_mask_watchpoint): Remove targetdebug code.
1780 (debug_to_post_attach, debug_to_prepare_to_store)
1781 (debug_to_files_info, debug_to_insert_breakpoint)
1782 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1783 (debug_to_region_ok_for_hw_watchpoint)
1784 (debug_to_can_accel_watchpoint_condition)
1785 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1786 (debug_to_watchpoint_addr_within_range)
1787 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1788 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1789 (debug_to_terminal_init, debug_to_terminal_inferior)
1790 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1791 (debug_to_terminal_save_ours, debug_to_terminal_info)
1792 (debug_to_load, debug_to_post_startup_inferior)
1793 (debug_to_insert_fork_catchpoint)
1794 (debug_to_remove_fork_catchpoint)
1795 (debug_to_insert_vfork_catchpoint)
1796 (debug_to_remove_vfork_catchpoint)
1797 (debug_to_insert_exec_catchpoint)
1798 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1799 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1800 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1801 (setup_target_debug): Call init_debug_target.
1802 * target.h (TARGET_DEBUG_PRINTER): New macro.
1803 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1804 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1806 2014-07-24 Gary Benson <gbenson@redhat.com>
1808 * exceptions.h (throw_vfatal): Renamed to...
1809 (throw_vquit): New declaration.
1810 (throw_quit): Likewise.
1811 * exceptions.c (throw_vfatal): Renamed to...
1812 (throw_vquit): New function.
1813 (throw_quit): Likewise.
1814 (throw_error): Call throw_verror rather than throw_it.
1815 * utils.h (vfatal): Removed.
1817 * utils.c (vfatal): Removed.
1819 (internal_verror): Replaced call to fatal with call to throw_quit.
1820 (quit): Replaced calls to fatal with calls to throw_quit.
1822 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1824 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1827 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1829 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1830 less than zero in conditional expression.
1832 2014-07-23 Tom Tromey <tromey@redhat.com>
1834 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1835 ($INTRO_PART): Don't match whitespace.
1836 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1838 ($METHOD): Add $METHOD_TRAILER.
1840 (scan_target_h): New sub.
1841 Change main loop not to collect state.
1842 * target-delegates.c: Rebuild.
1844 2014-07-23 Gary Benson <gbenson@redhat.com>
1846 * cp-support.c (gdb_demangle): Fix build on systems without
1849 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1852 for reference entry value target data value.
1854 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1856 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1857 value_available_contents_eq.
1859 2014-07-22 Pedro Alves <palves@redhat.com>
1861 * value.c (allocate_optimized_out_value): Don't mark value as
1864 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1866 * MAINTAINERS (Write After Approval): Update my email address.
1868 2014-07-20 Doug Evans <dje@google.com>
1871 * remote.c (putpkt_binary): Add text to error message.
1873 2014-07-20 Yao Qi <yao@codesourcery.com>
1875 * eval.c: Remove "Chill" from comments.
1876 * gdbtypes.h: Likewise.
1877 * symtab.h: Likewise.
1879 2014-07-20 Yao Qi <yao@codesourcery.com>
1881 * std-operator.def: Update comments to TERNOP_SLICE.
1883 2014-07-20 Yao Qi <yao@codesourcery.com>
1885 * std-operator.def: Remove BINOP_RANGE.
1886 * breakpoint.c (watchpoint_exp_is_const): Update.
1887 * expprint.c (dump_subexp_body_standard): Likewise.
1888 * eval.c (init_array_element): Remove dead code.
1889 (evaluate_subexp_standard): Likewise.
1891 2014-07-20 Yao Qi <yao@codesourcery.com>
1893 * std-operator.def: Remove BINOP_IN.
1894 * breakpoint.c (watchpoint_exp_is_const): Update.
1895 * eval.c (evaluate_subexp_standard): Likewise.
1896 * expprint.c (dump_subexp_body_standard): Likewise.
1898 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1900 * microblaze-tdep.c (microblaze_register_names): Add
1901 the rshr and rslr register names.
1902 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1903 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1904 Use of tdesc_numbered_register. Use of
1905 microblaze_register_g_packet_guesses. Use of
1906 tdesc_use_registers. Use of set_gdbarch_register_type.
1907 (microblaze_register_g_packet_guesses): New.
1908 * microblaze-tdep.h (microblaze_reg_num): Add
1909 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1910 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1911 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1912 * features/microblaze-core.xml: New file.
1913 * features/microblaze-stack-protect.xml: New file.
1914 * features/microblaze-with-stack-protect.c: New file.
1915 * features/microblaze-with-stack-protect.xml: New file.
1916 * features/microblaze.xml: New file.
1917 * features/microblaze.c: New file.
1918 * features/Makefile (microblaze-with-stack-protect): Add
1919 microblaze-with-stack-protect microblaze and microblaze-expedite.
1920 * regformats/microblaze-with-stack-protect.dat: New file.
1921 * regformats/microblaze.dat: New file.
1922 * doc/gdb.texinfo (MicroBlaze Features): Added.
1924 2014-07-18 Tom Tromey <tromey@redhat.com>
1926 * exec.c (exec_ops): Now static.
1927 * exec.h (exec_ops): Don't declare.
1929 2014-07-18 Tom Tromey <tromey@redhat.com>
1931 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1932 to find_target_beneath.
1933 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1934 find_target_beneath.
1935 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1937 2014-07-18 Tom Tromey <tromey@redhat.com>
1940 * utils.c (quit): Use target_supports_terminal_ours.
1941 * target.h (target_supports_terminal_ours): Declare.
1942 * target.c (target_supports_delete_record): Don't check
1943 to_delete_record against NULL.
1944 (target_supports_terminal_ours): New function.
1946 2014-07-18 Tom Tromey <tromey@redhat.com>
1949 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1950 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1951 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1952 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1953 * windows-nat.c (windows_xfer_partial): Always delegate.
1954 * record-btrace.c (record_btrace_xfer_partial): Simplify
1956 (record_btrace_fetch_registers, record_btrace_store_registers)
1957 (record_btrace_prepare_to_store, record_btrace_resume)
1958 (record_btrace_wait, record_btrace_find_new_threads)
1959 (record_btrace_thread_alive): Likewise.
1960 * procfs.c (procfs_xfer_partial): Always delegate.
1961 * corelow.c (core_xfer_partial): Always delegate.
1962 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1964 2014-07-18 Tom Tromey <tromey@redhat.com>
1966 * exec.c (exec_make_note_section): Move earlier.
1968 2014-07-17 Doug Evans <dje@google.com>
1971 * maint.c (count_symtabs_and_blocks): Handle NULL
1972 current_program_space.
1973 (report_command_stats): Check global enabled flag in addition to
1974 recorded enabled flag.
1975 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1977 2014-07-16 Pedro Alves <palves@redhat.com>
1979 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1981 2014-07-16 Tom Tromey <tromey@redhat.com>
1983 * target.h (struct target_ops) <to_delete_record>: Reformat
1986 2014-07-16 Tom Tromey <tromey@redhat.com>
1988 * target-delegates.c: Rebuild.
1990 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1992 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1993 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1994 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1995 (avr_pointer_to_address): Likewise.
1996 (avr_address_class_type_flags): New function.
1997 (avr_address_class_type_flags_to_name): Likewise.
1998 (avr_address_class_name_to_type_flags): Likewise.
1999 (avr_gdbarch_init): Set address_class_type_flags,
2000 address_class_type_flags_to_name and
2001 address_class_name_to_type_flags.
2003 2014-07-15 Pedro Alves <palves@redhat.com>
2005 * linux-nat.c (kill_callback): Save errno and work with saved
2008 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2010 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2012 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2014 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2015 breakpoint support correctly.
2017 2014-07-14 Pedro Alves <palves@redhat.com>
2019 * utils.c (prompt_for_continue): Call target_terminal_ours.
2021 2014-07-14 Pedro Alves <palves@redhat.com>
2023 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2024 catch_errors. Don't re-enable stdin or notify observers where,
2026 (fetch_inferior_event_wrapper): Delete.
2028 2014-07-14 Pedro Alves <palves@redhat.com>
2031 * top.c: Include "inf-loop.h".
2032 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2034 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2036 (gdb_readline_wrapper): Store whether the target is async, and
2039 2014-07-14 Pedro Alves <palves@redhat.com>
2042 * top.c (gdb_readline_wrapper_line): Tweak comment.
2043 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2044 the input handler callback.
2046 2014-07-14 Pedro Alves <palves@redhat.com>
2049 * main.c: Include event-top.h.
2050 (handle_command_errors): New function.
2051 (catch_command_errors, catch_command_errors_const): Use it.
2053 2014-07-14 Pedro Alves <palves@redhat.com>
2055 * exceptions.c (catch_command_errors, catch_command_errors_const):
2057 * exceptions.h (catch_command_errors_ftype)
2058 (catch_command_errors_const_ftype): Moved to main.c.
2059 (catch_command_errors, catch_command_errors_const): Delete
2061 * main.c (catch_command_errors_ftype)
2062 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2063 (catch_command_errors, catch_command_errors_const)): Moved here
2064 from exceptions.c and make static.
2066 2014-07-14 Pedro Alves <palves@redhat.com>
2068 * exceptions.c (print_any_exception): Delete.
2069 (catch_exceptions_with_msg): Use exception_print instead of
2070 print_any_exception.
2071 (catch_errors): Use exception_fprintf instead of
2072 print_any_exception.
2073 (catch_command_errors, catch_command_errors_const): Use
2074 exception_print instead of print_any_exception.
2076 2014-07-14 Pedro Alves <palves@redhat.com>
2078 * infcall.c (run_inferior_call): Set 'sync_execution' while
2079 running the inferior call.
2081 2014-07-14 Pedro Alves <palves@redhat.com>
2083 * value.c (value_contents_equal): Delete function.
2084 * value.h (value_contents_equal): Delete declaration.
2086 2014-07-14 Tom Tromey <tromey@redhat.com>
2089 * gdbtypes.c (is_dynamic_type_internal): New function, from
2091 (is_dynamic_type): Rewrite.
2092 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2093 (resolve_dynamic_struct): Likewise.
2094 (resolve_dynamic_type_internal): New function, from
2095 resolve_dynamic_type.
2096 (resolve_dynamic_type): Rewrite.
2098 2014-07-14 Tom Tromey <tromey@redhat.com>
2100 * target.c (target_require_runnable): Also check record_stratum.
2103 2014-07-11 Yao Qi <yao@codesourcery.com>
2105 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2106 thumb_instruction_restores_sp return true.
2108 2014-07-11 Yao Qi <yao@codesourcery.com>
2110 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2111 (thumb_in_function_epilogue_p): Call
2112 thumb_instruction_restores_sp.
2114 2014-07-11 Yao Qi <yao@codesourcery.com>
2116 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2118 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2120 2014-07-11 Gary Benson <gbenson@redhat.com>
2122 * amd64-linux-nat.c (gdbcore.h): Remove include.
2123 (regset.h): Likewise.
2124 (nat/linux-btrace.h): Likewise.
2125 (btrace.h): Likewise.
2126 (gdb_assert.h): Likewise.
2127 (string.h): Likewise.
2128 (sys/uio.h): Likewise.
2129 (sys/debugreg.h): Likewise.
2130 (sys/syscall.h): Likewise.
2131 (sys/procfs.h): Likewise.
2132 (sys/user.h): Likewise.
2133 (asm/ptrace.h): Likewise.
2134 (i386-nat.h): Likewise.
2135 * i386-linux-nat.c (i386-nat.h): Likewise.
2136 (regset.h): Likewise.
2137 (target.h): Likewise.
2138 (linux-nat.h): Likewise.
2139 (nat/linux-btrace.h): Likewise.
2140 (btrace.h): Likewise.
2141 (gdb_assert.h): Likewise.
2142 (string.h): Likewise.
2143 (sys/uio.h): Likewise.
2144 (sys/user.h): Likewise.
2145 (sys/procfs.h): Likewise.
2146 (sys/reg.h): Likewise.
2147 (sys/debugreg.h): Likewise.
2148 (ORIG_EAX): Remove definition.
2150 2014-07-11 Gary Benson <gbenson@redhat.com>
2152 * i386-linux-nat.h: New file.
2153 * x86-linux-nat.h: Likewise.
2154 * x86-linux-nat.c: Likewise.
2155 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2156 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2157 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2158 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2159 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2160 (PTRACE_SETREGSET): Likewise.
2161 (arch_lwp_info): Now in x86-linux-nat.c.
2162 (have_ptrace_getregset): Now in x86-linux-nat.h.
2163 (x86_linux_dr_get): Now in x86-linux-nat.c.
2164 (x86_linux_dr_set): Likewise.
2165 (x86_linux_dr_get_addr): Likewise.
2166 (x86_linux_dr_get_control): Likewise.
2167 (x86_linux_dr_get_status): Likewise.
2168 (update_debug_registers_callback): Likewise.
2169 (x86_linux_dr_set_control): Likewise.
2170 (x86_linux_dr_set_addr): Likewise.
2171 (x86_linux_prepare_to_resume): Likewise.
2172 (x86_linux_new_thread): Likewise.
2173 (x86_linux_new_fork): Likewise.
2174 (x86_linux_get_thread_area): Likewise.
2175 (super_post_startup_inferior): Likewise.
2176 (x86_linux_child_post_startup_inferior): Likewise.
2177 (AMD64_LINUX_USER64_CS): Likewise.
2178 (AMD64_LINUX_X32_DS): Likewise.
2179 (x86_linux_read_description): Likewise.
2180 (x86_linux_enable_btrace): Likewise.
2181 (x86_linux_disable_btrace): Likewise.
2182 (x86_linux_teardown_btrace): Likewise.
2183 (x86_linux_read_btrace): Likewise.
2184 (x86_linux_create_target): Likewise.
2185 (x86_linux_add_target): Likewise.
2186 * i386-linux-nat.c (x86-linux-nat.h): New include.
2187 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2188 (PTRACE_SETREGSET): Likewise.
2189 (arch_lwp_info): Now in x86-linux-nat.c.
2190 (have_ptrace_getregset): Now in x86-linux-nat.h.
2191 (x86_linux_dr_get): Now in x86-linux-nat.c.
2192 (x86_linux_dr_set): Likewise.
2193 (x86_linux_dr_get_addr): Likewise.
2194 (x86_linux_dr_get_control): Likewise.
2195 (x86_linux_dr_get_status): Likewise.
2196 (update_debug_registers_callback): Likewise.
2197 (x86_linux_dr_set_control): Likewise.
2198 (x86_linux_dr_set_addr): Likewise.
2199 (x86_linux_prepare_to_resume): Likewise.
2200 (x86_linux_new_thread): Likewise.
2201 (x86_linux_new_fork): Likewise.
2202 (x86_linux_get_thread_area): Likewise.
2203 (super_post_startup_inferior): Likewise.
2204 (x86_linux_child_post_startup_inferior): Likewise.
2205 (AMD64_LINUX_USER64_CS): Likewise.
2206 (AMD64_LINUX_X32_DS): Likewise.
2207 (x86_linux_read_description): Likewise.
2208 (x86_linux_enable_btrace): Likewise.
2209 (x86_linux_disable_btrace): Likewise.
2210 (x86_linux_teardown_btrace): Likewise.
2211 (x86_linux_read_btrace): Likewise.
2212 (x86_linux_create_target): Likewise.
2213 (x86_linux_add_target): Likewise.
2215 2014-07-11 Gary Benson <gbenson@redhat.com>
2217 * amd64-linux-nat.c: Comment and whitespace changes.
2218 * i386-linux-nat.c: Comment and whitespace changes.
2220 2014-07-11 Gary Benson <gbenson@redhat.com>
2222 * amd64-linux-nat.c (x86_linux_create_target): New function.
2223 (x86_linux_add_target): Likewise.
2224 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2225 * i386-linux-nat.c (x86_linux_create_target): New function.
2226 (x86_linux_add_target): Likewise.
2227 (_initialize_i386_linux_nat): Delegate to the above new functions.
2229 2014-07-11 Gary Benson <gbenson@redhat.com>
2231 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2232 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2233 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2234 (ps_get_thread_area): Delegate to the above.
2236 2014-07-11 Gary Benson <gbenson@redhat.com>
2238 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2239 x86_linux_read_description. All uses updated. amd64-specific
2240 code conditionalized. Conditionalized i386-specific code added.
2241 Redundant cast removed.
2242 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2243 x86_linux_read_description. All uses updated. i386-specific
2244 code conditionalized. Conditionalized amd64-specific code added.
2245 One sizeof replaced with the actual type it is describing.
2247 2014-07-11 Gary Benson <gbenson@redhat.com>
2249 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2250 x86_linux_dr_get. All uses updated.
2251 (amd64_linux_dr_set): Renamed to
2252 x86_linux_dr_set. All uses updated.
2253 (amd64_linux_dr_get_addr): Renamed to
2254 x86_linux_dr_get_addr. All uses updated.
2255 (amd64_linux_dr_get_control): Renamed to
2256 x86_linux_dr_get_control. All uses updated.
2257 (amd64_linux_dr_get_status): Renamed to
2258 x86_linux_dr_get_status. All uses updated.
2259 (amd64_linux_dr_set_control): Renamed to
2260 x86_linux_dr_set_control. All uses updated.
2261 (amd64_linux_dr_set_addr): Renamed to
2262 x86_linux_dr_set_addr. All uses updated.
2263 (amd64_linux_prepare_to_resume): Renamed to
2264 x86_linux_prepare_to_resume. All uses updated.
2265 (amd64_linux_new_thread): Renamed to
2266 x86_linux_new_thread. All uses updated.
2267 (amd64_linux_new_fork): Renamed to
2268 x86_linux_new_fork. All uses updated.
2269 (amd64_linux_child_post_startup_inferior): Renamed to
2270 x86_linux_child_post_startup_inferior. All uses updated.
2271 (amd64_linux_enable_btrace): Renamed to
2272 x86_linux_enable_btrace. All uses updated.
2273 (amd64_linux_disable_btrace): Renamed to
2274 x86_linux_disable_btrace. All uses updated.
2275 (amd64_linux_teardown_btrace): Renamed to
2276 x86_linux_teardown_btrace. All uses updated.
2277 (amd64_linux_read_btrace): Renamed to
2278 x86_linux_read_btrace. All uses updated.
2279 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2280 x86_linux_dr_get. All uses updated.
2281 (i386_linux_dr_set): Renamed to
2282 x86_linux_dr_set. All uses updated.
2283 (i386_linux_dr_get_addr): Renamed to
2284 x86_linux_dr_get_addr. All uses updated.
2285 (i386_linux_dr_get_control): Renamed to
2286 x86_linux_dr_get_control. All uses updated.
2287 (i386_linux_dr_get_status): Renamed to
2288 x86_linux_dr_get_status. All uses updated.
2289 (i386_linux_dr_set_control): Renamed to
2290 x86_linux_dr_set_control. All uses updated.
2291 (i386_linux_dr_set_addr): Renamed to
2292 x86_linux_dr_set_addr. All uses updated.
2293 (i386_linux_prepare_to_resume): Renamed to
2294 x86_linux_prepare_to_resume. All uses updated.
2295 (i386_linux_new_thread): Renamed to
2296 x86_linux_new_thread. All uses updated.
2297 (i386_linux_new_fork): Renamed to
2298 x86_linux_new_fork. All uses updated.
2299 (i386_linux_child_post_startup_inferior): Renamed to
2300 x86_linux_child_post_startup_inferior. All uses updated.
2301 (i386_linux_enable_btrace): Renamed to
2302 x86_linux_enable_btrace. All uses updated.
2303 (i386_linux_disable_btrace): Renamed to
2304 x86_linux_disable_btrace. All uses updated.
2305 (i386_linux_teardown_btrace): Renamed to
2306 x86_linux_teardown_btrace. All uses updated.
2307 (i386_linux_read_btrace): Renamed to
2308 x86_linux_read_btrace. All uses updated.
2310 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2312 * remote.c (extended_remote_post_attach): New function.
2313 (init_extended_remote_ops): Install it as to_post_attach method.
2315 2014-07-09 Pedro Alves <palves@redhat.com>
2317 * infcmd.c (attach_command_post_wait): Don't call
2318 target_terminal_inferior here.
2319 (attach_command): Call it here instead.
2321 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2323 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2325 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2326 from varobj.c, with additional checks.
2327 (c_varobj_ops): Fill in is_path_expr_parent field.
2328 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2329 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2331 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2333 (varobj_default_is_path_expr_parent): New function.
2334 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2335 (varobj_default_is_path_expr_parent): Declare new function.
2337 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2339 * infcmd.c (finish_backward): Turn internal error into normal error.
2341 2014-07-07 Pedro Alves <palves@redhat.com>
2344 * remote.c (async_handle_remote_sigint)
2345 (async_handle_remote_sigint_twice): Call
2346 gdb_call_async_signal_handler instead of
2347 mark_async_signal_handler.
2349 2014-07-07 Tom Tromey <tromey@redhat.com>
2351 * target-delegates.c: Rebuild.
2352 * target.c (target_info_record): Remove.
2353 * record.c (info_record_command): Unconditionally call
2355 * target.h (struct target_ops) <to_info_record>: Use
2356 TARGET_DEFAULT_IGNORE.
2357 (target_info_record): Remove.
2359 2014-07-07 Tom Tromey <tromey@redhat.com>
2361 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2362 TARGET_DEFAULT_NORETURN.
2363 * target.c (generic_tls_error): New function.
2364 (target_translate_tls_address): Don't search target stack.
2365 * target-delegates.c: Rebuild.
2366 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2368 * linux-thread-db.c (thread_db_get_thread_local_address):
2369 Unconditionally call beneath target.
2371 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2373 * cli/cli-logging.c (pop_output_files): Assign targerr to
2376 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2378 * MAINTAINERS (Write After Approval): Update my email address.
2380 2014-07-02 Gary Benson <gbenson@redhat.com>
2382 * proc-service.c (ps_xfer_memory): Update comment.
2383 (ps_pstop): Remove unused function.
2384 (ps_pcontinue): Likewise.
2385 (ps_lstop): Likewise.
2386 (ps_lcontinue): Likewise.
2387 (ps_lgetxregsize): Likewise.
2388 (ps_lgetxregs): Likewise.
2389 (ps_lsetxregs): Likewise.
2390 (ps_plog): Likewise.
2391 (ps_ptread): Likewise.
2392 (ps_ptwrite): Likewise.
2394 2014-07-01 Mark Wielaard <mjw@redhat.com>
2396 * dwarf2read.c (add_array_cv_type): New function.
2397 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2398 (read_tag_volatile_type): Likewise.
2400 2014-07-01 Tom Tromey <tromey@redhat.com>
2402 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2403 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2404 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2405 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2406 * command.h (cmd_cfunc_ftype): Move earlier.
2407 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2408 (add_com, add_info): Use cmd_cfunc_ftype.
2410 2014-06-30 Tom Tromey <tromey@redhat.com>
2412 * symtab.c (operator_chars): Make parameters and return type
2414 (file_matches): Make "files" const.
2415 (struct search_symbols_data) <files>: Now const.
2416 (search_symbols): Make "regexp" and "files" parameters const.
2418 (symtab_symbol_info): Remove cast.
2419 (rbreak_command): Update.
2420 * symtab.h (search_symbols): Update.
2422 2014-06-27 Yao Qi <yao@codesourcery.com>
2424 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2425 Change parameter type to 'struct thread_info *'. Caller
2427 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2429 * dummy-frame.c (struct dummy_frame_id): New.
2430 (dummy_frame_id_eq): New function.
2431 (struct dummy_frame) <id>: Change its type to 'struct
2433 (dummy_frame_push): Add parameter ptid and save it in
2435 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2437 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2439 (lookup_dummy_frame): Change parameter type to 'struct
2440 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2441 instead of frame_id_eq.
2442 (dummy_frame_pop): Add parameter ptid. Callers updated.
2443 Update comments. Compose dummy_frame_id and pass it to
2445 (dummy_frame_discard): Add parameter ptid.
2446 (dummy_frame_sniffer): Compose dummy_frame_id and call
2447 dummy_frame_id_eq instead of frame_id_eq.
2448 (fprint_dummy_frames): Print ptid.
2449 * dummy-frame.h: Remove comments.
2450 (dummy_frame_push): Add ptid in declaration.
2451 (dummy_frame_pop, dummy_frame_discard): Likewise.
2453 2014-06-26 Tom Tromey <tromey@redhat.com>
2455 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2456 * command.h (error_no_arg): Update.
2458 2014-06-26 Tom Tromey <tromey@redhat.com>
2460 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2461 (do_show_command): Make "arg" const.
2462 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2464 2014-06-26 Tom Tromey <tromey@redhat.com>
2466 * record-full.c (record_full_get_bookmark): Make "args" const.
2467 (record_full_goto_bookmark): Make "raw_bookmark" const.
2468 * record.c (record_goto): New function.
2469 (cmd_record_goto): Use it. Now static.
2470 * record.h (record_goto): Declare.
2471 (cmd_record_goto): Remove declaration.
2472 * target-delegates.c: Rebuild.
2473 * target.h (struct target_ops) <to_get_bookmark,
2474 to_goto_bookmark>: Make parameter const.
2476 2014-06-26 Tom Tromey <tromey@redhat.com>
2478 * defs.h (generic_load): Update.
2479 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2480 * monitor.c (monitor_load): Make "args" const.
2481 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2482 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2484 (mips_load): Make "file" const.
2485 * remote-sim.c (gdbsim_load): Make "args" const.
2486 * remote.c (remote_load): Make "name" const.
2487 * symfile.c (generic_load): Make "args" const.
2488 * target-delegates.c: Rebuild.
2489 * target.c (target_load): Make "arg" const.
2490 (debug_to_load): Make "args" const.
2491 * target.h (struct target_ops) <to_load>: Make parameter const.
2492 (target_load): Update.
2494 2014-06-26 Tom Tromey <tromey@redhat.com>
2497 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2498 (dwarf2_physname, read_partial_die)
2499 (guess_partial_die_structure_name, fixup_partial_die)
2500 (guess_full_die_structure_name, anonymous_struct_prefix)
2501 (dwarf2_name): Use per-BFD obstack.
2503 2014-06-26 Yao Qi <yao@codesourcery.com>
2505 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2506 dummyframe and this_id into inner block below.
2508 2014-06-26 Yao Qi <yao@codesourcery.com>
2510 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2511 with "signal_pass[0]" in the initialization of signal_pass.
2513 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2515 * record-btrace.c (record_btrace_generating_corefile)
2516 (record_btrace_prepare_to_generate_core)
2517 (record_btrace_done_generating_core): New.
2518 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2519 (record_btrace_store_registers, record_btrace_prepare_to_store):
2520 Forward request when generating a core file.
2521 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2522 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2523 to_done_generating_core.
2525 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2527 * target.h (target_ops) <to_prepare_to_generate_core>
2528 <to_done_generating_core>: New.
2529 (target_prepare_to_generate_core, target_done_generating_core): New.
2530 * target.c (target_prepare_to_generate_core)
2531 (target_done_generating_core): New.
2532 * target-delegates.c: Regenerate.
2533 * gcore.c: (write_gcore_file): Rename to ...
2534 (write_gcore_file_1): ...this.
2535 (write_gcore_file): Call target_prepare_to_generate_core
2536 and target_done_generating_core.
2538 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2540 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2541 * gcore.c (write_gcore_file): Free memory returned from
2542 make_corefile_notes.
2543 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2544 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2546 2014-06-24 Yao Qi <yao@codesourcery.com>
2548 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2549 (arm_linux_init_abi): Set skip_trampoline_code with
2550 gdbarch_skip_trampoline_code instead of
2551 find_solib_trampoline_target.
2553 2014-06-24 Yao Qi <yao@codesourcery.com>
2555 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2556 arm_skip_bx_reg returns non-zero.
2558 2014-06-24 Yao Qi <yao@codesourcery.com>
2560 * arm-tdep.c (arm_skip_bx_reg): New function.
2561 (arm_skip_stub): Call arm_skip_bx_reg.
2563 2014-06-23 Don Breazeal <donb@codesourcery.com>
2565 * MAINTAINERS: Add myself as write-after-approval maintainer.
2567 2014-06-23 Pedro Alves <palves@redhat.com>
2569 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2570 DR_CONTROL before setting DR0..DR3.
2571 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2572 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2573 bits of DR_CONTROL related to the debug register slot being
2574 disabled. If all slots are vacant, clear local slowdown as well,
2575 and assert DR_CONTROL is 0.
2577 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2579 * python/lib/gdb/command/xmethods.py
2580 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2581 current progspace only if the string "progspace" matches LOCUS_RE.
2583 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2585 Fix --with-system-readline with readline-6.3 patch 5.
2586 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2587 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2590 2014-06-20 Tom Tromey <tromey@redhat.com>
2592 * dwarf2read.c (dw2_get_real_path): Use correct type in
2594 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2596 2014-06-20 Gary Benson <gbenson@redhat.com>
2598 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2599 * common/glibc_thread_db.h: Likewise.
2600 * common/i386-cpuid.h: Likewise.
2601 * common/i386-gcc-cpuid.h: Likewise.
2602 * common/linux-btrace.h: Likewise.
2603 * common/linux-osdata.h: Likewise.
2604 * common/linux-procfs.h: Likewise.
2605 * common/linux-ptrace.h: Likewise.
2606 * common/mips-linux-watch.h: Likewise.
2607 * common/linux-btrace.c: Moved to nat.
2608 * common/linux-osdata.c: Likewise.
2609 * common/linux-procfs.c: Likewise.
2610 * common/linux-ptrace.c: Likewise.
2611 * common/mips-linux-watch.c: Likewise.
2612 * nat/gdb_thread_db.h: Moved from common.
2613 * nat/glibc_thread_db.h: Likewise.
2614 * nat/i386-cpuid.h: Likewise.
2615 * nat/i386-gcc-cpuid.h: Likewise.
2616 * nat/linux-btrace.c: Likewise.
2617 * nat/linux-btrace.h: Likewise.
2618 * nat/linux-osdata.c: Likewise.
2619 * nat/linux-osdata.h: Likewise.
2620 * nat/linux-procfs.c: Likewise.
2621 * nat/linux-procfs.h: Likewise.
2622 * nat/linux-ptrace.c: Likewise.
2623 * nat/linux-ptrace.h: Likewise.
2624 * nat/mips-linux-watch.c: Likewise.
2625 * nat/mips-linux-watch.h: Likewise.
2626 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2627 (object file files): Reordered.
2628 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2629 of glibc_thread_db.h.
2631 2014-06-20 Gary Benson <gbenson@redhat.com>
2633 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2634 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2635 (i386_dr_low): Likewise.
2636 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2637 (i386_dr_low_set_addr): Likewise.
2638 (i386_dr_low_get_addr): Likewise.
2639 (i386_dr_low_can_set_control): Likewise.
2640 (i386_dr_low_set_control): Likewise.
2641 (i386_dr_low_get_control): Likewise.
2642 (i386_dr_low_get_status): Likewise.
2643 (i386_get_debug_register_length): Likewise.
2644 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2645 (i386_dr_low): Likewise.
2646 * nat/i386-dregs.c (i386-low.h): Remove include.
2647 (i386-nat.h): Likewise.
2648 (nat/i386-dregs.h): New include.
2649 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2650 (i386_dr_low_set_addr): Likewise.
2651 (i386_dr_low_get_addr): Likewise.
2652 (i386_dr_low_can_set_control): Likewise.
2653 (i386_dr_low_set_control): Likewise.
2654 (i386_dr_low_get_control): Likewise.
2655 (i386_dr_low_get_status): Likewise.
2656 (i386_get_debug_register_length): Likewise.
2657 (debug_hw_points): Likewise.
2659 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2661 * Makefile.in (SFILES): Add d-exp.y.
2662 (YYFILES): Add d-exp.c.
2663 (YYOBJ): Add d-exp.o.
2664 (local-maintainer-clean): Delete d-exp.c.
2665 * d-exp.y: New file.
2666 * d-lang.h (d_parse): New declaration.
2667 (d_error): New declaration.
2668 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2669 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2670 PREC_ORDER operators.
2671 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2673 2014-06-19 Yao Qi <yao@codesourcery.com>
2675 * gdbthread.h (any_running): Remove the declaration.
2676 * thread.c (any_running): Remove.
2678 2014-06-19 Yao Qi <yao@codesourcery.com>
2680 * gdbthread.h (struct thread_info) <state>: Change its type to
2681 'enum thread_state'. Update comments.
2683 2014-06-19 Pedro Alves <palves@redhat.com>
2685 * gdbthread.h (ALL_THREADS): Delete.
2686 (ALL_NON_EXITED_THREADS): New macro.
2687 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2688 instead of ALL_THREADS.
2689 * infrun.c (find_thread_needs_step_over)
2690 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2691 instead of ALL_THREADS.
2692 * record-btrace.c (record_btrace_open)
2693 (record_btrace_stop_recording, record_btrace_close)
2694 (record_btrace_is_replaying, record_btrace_resume)
2695 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2696 * remote.c (append_pending_thread_resumptions): Likewise.
2697 * thread.c (thread_apply_all_command): Likewise.
2699 2014-06-19 Gary Benson <gbenson@redhat.com>
2701 * i386-nat.c (i386_stopped_by_watchpoint):
2702 Use i386_dr_stopped_by_watchpoint.
2703 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2704 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2706 2014-06-19 Gary Benson <gbenson@redhat.com>
2708 * nat/i386-dregs.c: New file.
2709 * Makefile.in (i386-dregs.o): New rule.
2710 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2711 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2712 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2713 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2714 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2715 * config/i386/go32.mh (NATDEPFILES): Likewise.
2716 * config/i386/linux.mh (NATDEPFILES): Likewise.
2717 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2718 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2719 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2720 * i386-nat.h (debug_hw_points): New declaration.
2721 * i386-nat.c (breakpoint.h): Remove include.
2722 (command.h): Likewise.
2723 (target.h): Likewise.
2724 (gdb_assert.h): Likewise.
2725 (debug_hw_points): Made nonstatic.
2726 (debug_printf): Now in i386-dregs.c.
2727 (TARGET_HAS_DR_LEN_8): Likewise.
2728 (DR_CONTROL_SHIFT): Likewise.
2729 (DR_CONTROL_SIZE): Likewise.
2730 (DR_RW_EXECUTE): Likewise.
2731 (DR_RW_WRITE): Likewise.
2732 (DR_RW_READ): Likewise.
2733 (DR_RW_IORW): Likewise.
2734 (DR_LEN_1): Likewise.
2735 (DR_LEN_2): Likewise.
2736 (DR_LEN_4): Likewise.
2737 (DR_LEN_8): Likewise.
2738 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2739 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2740 (DR_ENABLE_SIZE): Likewise.
2741 (DR_LOCAL_SLOWDOWN): Likewise.
2742 (DR_GLOBAL_SLOWDOWN): Likewise.
2743 (DR_CONTROL_RESERVED): Likewise.
2744 (I386_DR_CONTROL_MASK): Likewise.
2745 (I386_DR_VACANT): Likewise.
2746 (I386_DR_LOCAL_ENABLE): Likewise.
2747 (I386_DR_GLOBAL_ENABLE): Likewise.
2748 (I386_DR_DISABLE): Likewise.
2749 (I386_DR_SET_RW_LEN): Likewise.
2750 (I386_DR_GET_RW_LEN): Likewise.
2751 (I386_DR_WATCH_HIT): Likewise.
2752 (i386_wp_op_t): Likewise.
2753 (i386_show_dr): Likewise.
2754 (i386_length_and_rw_bits): Likewise.
2755 (i386_insert_aligned_watchpoint): Likewise.
2756 (i386_remove_aligned_watchpoint): Likewise.
2757 (i386_handle_nonaligned_watchpoint): Likewise.
2758 (i386_update_inferior_debug_regs): Likewise.
2759 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2760 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2761 (i386_region_ok_for_watchpoint):
2762 Use i386_dr_region_ok_for_watchpoint.
2763 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2765 2014-06-19 Gary Benson <gbenson@redhat.com>
2767 * i386-nat.c (i386_insert_hw_breakpoint): Use
2768 i386_insert_watchpoint.
2769 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2771 2014-06-19 Gary Benson <gbenson@redhat.com>
2773 * i386-nat.c (i386_dr_show): Renamed to
2774 i386_show_dr and made static. All uses updated.
2775 (i386_dr_length_and_rw_bits): Renamed to
2776 i386_length_and_rw_bits and made static.
2778 (i386_dr_insert_aligned_watchpoint): Renamed to
2779 i386_insert_aligned_watchpoint and made static.
2781 (i386_dr_remove_aligned_watchpoint): Renamed to
2782 i386_remove_aligned_watchpoint and made static.
2784 (i386_dr_update_inferior_debug_regs): Renamed to
2785 i386_update_inferior_debug_regs and made static.
2787 * nat/i386-dregs.h (i386_dr_show): Removed.
2788 (i386_dr_length_and_rw_bits): Likewise.
2789 (i386_dr_insert_aligned_watchpoint): Likewise.
2790 (i386_dr_remove_aligned_watchpoint): Likewise.
2791 (i386_dr_update_inferior_debug_regs): Likewise.
2793 2014-06-19 Gary Benson <gbenson@redhat.com>
2795 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2796 * configure: Regenerate.
2797 * config.in: Likewise.
2798 * main.c (signal.h): New include.
2799 (setup_alternate_signal_stack): New function.
2800 (captured_main): Call the above.
2801 * cp-support.c (signal.h): New include.
2802 (catch_demangler_crashes): New flag.
2803 (SIGJMP_BUF): New define.
2804 (SIGSETJMP): Likewise.
2805 (SIGLONGJMP): Likewise.
2806 (gdb_demangle_jmp_buf): New static global.
2807 (gdb_demangle_attempt_core_dump): Likewise.
2808 (gdb_demangle_signal_handler): New function.
2809 (gdb_demangle): If catch_demangler_crashes is set, install the
2810 above signal handler before calling bfd_demangle, and restore
2811 the original signal handler afterwards. Display the offending
2812 symbol and call demangler_warning the first time a segmentation
2814 (_initialize_cp_support): New maint set/show command.
2816 2014-06-19 Gary Benson <gbenson@redhat.com>
2818 * utils.h (resource_limit_kind): New enum.
2819 (can_dump_core): New declaration.
2820 (warn_cant_dump_core): Likewise.
2821 (dump_core): Likewise.
2822 * utils.c (dump_core): Made nonstatic. Added new
2823 parameter "limit_kind".
2824 (can_dump_core): Made nonstatic. Moved printing code to...
2825 (warn_cant_dump_core): New function.
2826 (can_dump_core_warn): Likewise.
2827 (internal_vproblem): Replace calls to can_dump_core with
2828 calls to can_dump_core_warn. Supply new argument to each.
2830 2014-06-19 Gary Benson <gbenson@redhat.com>
2832 * utils.h (demangler_vwarning): New declaration.
2833 (demangler_warning): Likewise.
2834 * utils.c (struct internal_problem)
2835 <user_settable_should_quit>: New field.
2836 <user_settable_should_dump_core>: Likewise
2837 (internal_error_problem): Add values for above new fields.
2838 (internal_warning_problem): Likewise.
2839 (demangler_warning_problem): New static global.
2840 (demangler_vwarning): New function.
2841 (demangler_warning): Likewise.
2842 (add_internal_problem_command): Selectively add commands.
2843 (_initialize_utils): New internal problem command.
2844 * maint.c (maintenance_demangler_warning): New function.
2845 (_initialize_maint_cmds): New command.
2847 2014-06-18 Tom Tromey <tromey@redhat.com>
2849 * f-valprint.c (info_common_command_for_block): Update.
2850 * symtab.h (struct general_symbol_info) <common_block>: Now
2853 2014-06-18 Tom Tromey <tromey@redhat.com>
2855 * symtab.h (struct symtab) <blockvector>: Now const.
2856 * ada-lang.c (ada_add_global_exceptions): Update.
2857 * buildsym.c (augment_type_symtab): Update.
2858 * dwarf2read.c (dw2_lookup_symbol): Update.
2859 * jit.c (finalize_symtab): Update.
2860 * jv-lang.c (add_class_symtab_symbol): Update.
2861 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2863 * objfiles.c (objfile_relocate1): Update.
2864 * psymtab.c (lookup_symbol_aux_psymtabs)
2865 (maintenance_check_psymtabs): Update.
2866 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2868 * spu-tdep.c (spu_catch_start): Update.
2869 * symmisc.c (dump_symtab_1): Update.
2870 * symtab.c (lookup_global_symbol_from_objfile)
2871 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2872 (basic_lookup_transparent_type_quick)
2873 (basic_lookup_transparent_type, find_pc_sect_symtab)
2874 (find_pc_sect_line, search_symbols): Update.
2875 * block.c (find_block_in_blockvector): Make "bl" const.
2876 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2878 (blockvector_contains_pc): Make "bv" const.
2879 (block_for_pc_sect): Update.
2880 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2881 (blockvector_contains_pc): Update.
2882 * breakpoint.c (resolve_sal_pc): Update.
2883 * inline-frame.c (block_starting_point_at): Update.
2885 2014-06-18 Tom Tromey <tromey@redhat.com>
2887 * completer.c (complete_line): Make "line_buffer" const.
2888 * completer.h (complete_line): Update.
2890 2014-06-18 Tom Tromey <tromey@redhat.com>
2892 * symtab.c (add_macro_name): Remove unneeded cast.
2894 2014-06-18 Tom Tromey <tromey@redhat.com>
2896 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2897 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2899 2014-06-18 Tom Tromey <tromey@redhat.com>
2901 * probe.c (info_probes_for_ops): Make "arg" const.
2902 * probe.h (info_probes_for_ops): Update.
2904 2014-06-18 Tom Tromey <tromey@redhat.com>
2906 * varobj.c (varobj_create): Update.
2907 * valops.c (value_of_this): Update.
2908 * tracepoint.c (add_local_symbols, scope_info): Update.
2909 * symtab.h (struct general_symbol_info) <block>: Now const.
2910 * symtab.c (skip_prologue_sal)
2911 (default_make_symbol_completion_list_break_on)
2912 (skip_prologue_using_sal): Update.
2913 * stack.h (iterate_over_block_locals)
2914 (iterate_over_block_local_vars): Update.
2915 * stack.c (print_frame_args): Update.
2916 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2918 (get_selected_block): Make return type const.
2919 * python/py-frame.c (frapy_block): Update.
2920 * python/py-block.c (gdbpy_block_for_pc): Update.
2921 * p-exp.y (%union) <bval>: Now const.
2922 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2923 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2924 * m2-exp.y (%union) <bval>: Now const.
2925 * linespec.c (get_current_search_block): Make return type const.
2926 (create_sals_line_offset, find_label_symbols): Update.
2927 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2929 (block_starting_point_at): Make "block" const.
2930 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2931 (check_exception_resume): Update.
2932 * guile/scm-frame.c (gdbscm_frame_block): Update.
2933 * guile/scm-block.c (gdbscm_lookup_block): Update.
2934 * frame.h (get_frame_block): Update.
2935 (get_selected_block): Make return type const.
2936 * frame.c (frame_id_inner): Update.
2937 * f-valprint.c (info_common_command_for_block)
2938 (info_common_command): Update.
2939 * dwarf2loc.c (dwarf2_find_location_expression)
2940 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2941 (locexpr_describe_location_piece): Update.
2942 * c-exp.y (%union) <bval>: Now const.
2943 * breakpoint.c (resolve_sal_pc): Update.
2944 * blockframe.c (get_frame_block):Make return type const.
2945 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2946 (block_innermost_frame): Update.
2947 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2948 (block_for_pc, block_for_pc_sect): Update.
2949 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2951 (block_for_pc_sect, block_for_pc): Make return type const.
2952 * ax-gdb.c (gen_expr): Update.
2953 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2954 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2955 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2956 (ada_read_var_value): Update.
2957 * ada-exp.y (struct name_info) <block>: Now const.
2959 (block_lookup): Constify.
2961 2014-06-18 Gary Benson <gbenson@redhat.com>
2963 * nat/i386-dregs.h: New file.
2964 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2965 * i386-nat.h (i386-dregs.h): New include.
2966 (DR_FIRSTADDR): Now in i386-dregs.h.
2967 (DR_LASTADDR): Likewise.
2968 (DR_NADDR): Likewise.
2969 (DR_STATUS): Likewise.
2970 (DR_CONTROL): Likewise.
2971 (i386_debug_reg_state): Likewise.
2972 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2974 2014-06-18 Don Breazeal <donb@codesourcery.com>
2976 * breakpoint.c (set_longjmp_breakpoint): Call
2977 momentary_breakpoint_from_master with additional argument.
2978 (set_longjmp_breakpoint_for_call_dummy): Call
2979 momentary_breakpoint_from_master with additional argument.
2980 (set_std_terminate_breakpoint): Call
2981 momentary_breakpoint_from_master with additional argument.
2982 (momentary_breakpoint_from_master): Add argument to function
2983 definition and use it to initialize structure member flag.
2984 (clone_momentary_breakpoint): Call
2985 momentary_breakpoint_from_master with additional argument.
2986 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2987 member flags set in momentary_breakpoint_from_master.
2989 2014-06-18 Gary Benson <gbenson@redhat.com>
2991 * i386-nat.c (i386_show_dr): Renamed to
2992 i386_dr_show and made nonstatic. All uses updated.
2993 (i386_length_and_rw_bits): Renamed to
2994 i386_dr_length_and_rw_bits and made nonstatic.
2996 (i386_insert_aligned_watchpoint): Renamed to
2997 i386_dr_insert_aligned_watchpoint and made nonstatic.
2999 (i386_remove_aligned_watchpoint): Renamed to
3000 i386_dr_remove_aligned_watchpoint and made nonstatic.
3002 (i386_update_inferior_debug_regs): Renamed to
3003 i386_dr_update_inferior_debug_regs and made nonstatic.
3006 2014-06-18 Gary Benson <gbenson@redhat.com>
3008 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3009 (i386_dr_low_can_set_control): Likewise.
3010 (i386_dr_low_set_addr): Likewise.
3011 (i386_dr_low_set_control): Likewise.
3012 (i386_dr_low_get_addr): Likewise.
3013 (i386_dr_low_get_status): Likewise.
3014 (i386_dr_low_get_control): Likewise.
3015 (i386_insert_aligned_watchpoint): Use new macros.
3016 (i386_update_inferior_debug_regs): Likewise.
3017 (i386_stopped_data_address): Likewise.
3019 2014-06-18 Gary Benson <gbenson@redhat.com>
3021 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3022 New parameter. All uses updated.
3024 2014-06-18 Gary Benson <gbenson@redhat.com>
3026 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3029 2014-06-18 Gary Benson <gbenson@redhat.com>
3031 * i386-nat.c (debug_printf): New macro.
3032 (i386_get_debug_register_length): Likewise.
3033 (TARGET_HAS_DR_LEN_8): Use above macro.
3034 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3035 and printf_unfiltered. Use phex to format values.
3037 2014-06-18 Gary Benson <gbenson@redhat.com>
3039 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3042 2014-06-18 Gary Benson <gbenson@redhat.com>
3044 * i386-nat.c: Comment changes.
3046 2014-06-18 Gary Benson <gbenson@redhat.com>
3048 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3050 2014-06-18 Gary Benson <gbenson@redhat.com>
3052 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3053 (i386_insert_aligned_watchpoint): Likewise.
3054 (i386_remove_aligned_watchpoint): Likewise.
3055 (i386_handle_nonaligned_watchpoint): Likewise.
3057 2014-06-18 Gary Benson <gbenson@redhat.com>
3059 * i386-nat.c: Whitespace changes.
3061 2014-06-17 Samuel Bronson <naesten@gmail.com>
3063 * MAINTAINERS: Update Roland McGrath's email address.
3064 Thanks to Sergio Durigan Junior for pointing out that he left
3065 Red Hat a while ago, and giving me a current address.
3067 2014-06-17 Tom Tromey <tromey@redhat.com>
3069 * utils.h (savestring): Remove declaration.
3071 2014-06-17 Tom Tromey <tromey@redhat.com>
3073 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3075 2014-06-16 Keith Seitz <keiths@redhat.com>
3078 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3079 to update the varobj if inferior_ptid is null_ptid.
3081 2014-06-16 Tom Tromey <tromey@redhat.com>
3083 * target.h (struct target_ops) <to_info_proc>: Make parameter
3085 (target_info_proc): Update.
3086 * target.c (target_info_proc): Make "args" const.
3087 * procfs.c (procfs_info_proc): Update.
3088 * linux-tdep.c (linux_info_proc): Update.
3089 (linux_core_info_proc_mappings): Make "args" const.
3090 (linux_core_info_proc): Update.
3091 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3092 * gdbarch.c: Rebuild.
3093 * gdbarch.h: Rebuild.
3094 * corelow.c (core_info_proc): Update.
3096 2014-06-16 Tom Tromey <tromey@redhat.com>
3098 * target.h (struct target_ops) <to_disconnect>: Make parameter
3100 (target_disconnect): Update.
3101 * target.c (target_disconnect): Make "args" const.
3102 * target-delegates.c: Rebuild.
3103 * remote.c (remote_disconnect): Update.
3104 * record.h (record_disconnect): Update.
3105 * record.c (record_disconnect): Update.
3106 * inf-child.c (inf_child_disconnect): Update.
3108 2014-06-16 Tom Tromey <tromey@redhat.com>
3110 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3111 * target.c (debug_to_rcmd, default_rcmd): Update.
3112 * target-delegates.c: Rebuild.
3113 * remote.c (remote_rcmd): Update.
3114 * monitor.c (monitor_rcmd): Update.
3116 2014-06-16 Pedro Alves <palves@redhat.com>
3118 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3119 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3120 have OBJF_SHARED set.
3121 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3122 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3123 instead of OBJF_USERLOADED.
3124 * objfiles.h (OBJF_SHARED): Update comment.
3125 (userloaded_objfile_contains_address_p): Rename to ...
3126 (shared_objfile_contains_address_p): ... this, and update
3128 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3130 (remove_symbol_file_command): Skip objfiles that don't have
3133 2014-06-16 Tom Tromey <tromey@redhat.com>
3135 * minsyms.h (prim_record_minimal_symbol)
3136 (prim_record_minimal_symbol_and_info): Update comments.
3138 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3140 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3141 or --without-guile, according to how GDB was built.
3143 2014-06-13 Tom Tromey <tromey@redhat.com>
3145 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3147 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3149 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3151 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3152 help_list.Pass all_commands, not -1, to help_list.
3153 * cli/cli-dump.c (dump_command, append_command)
3154 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3155 (binary_dump_command, binary_append_command): Pass all_commands,
3156 not -1, to help_list.
3157 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3159 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3161 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3163 * top.c (set_history): Pass all_commands, not -1, to help_list.
3164 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3165 all_commands, not -1, to help_list.
3166 * symfile.c (overlay_command): Pass all_commands, not -1, to
3168 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3170 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3172 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3174 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3175 not -1, to help_list.
3176 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3177 not -1, to help_list.
3178 * maint.c (maintenance_command, maintenance_info_command)
3179 (maintenance_print_command, maintenance_set_cmd): Pass
3180 all_commands, not -1, to help_list.
3181 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3183 * language.c (set_check): Pass all_commands, not -1, to help_list.
3184 * infcmd.c (unset_command): Pass all_commands, not -1, to
3186 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3188 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3190 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3192 * breakpoint.c (save_command): Pass all_commands, not -1, to
3194 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3195 all_commands, not -1, to help_list.
3197 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3199 * regcache.c (struct register_to_invalidate): New structure.
3200 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3202 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3204 2014-06-12 Yao Qi <yao@codesourcery.com>
3206 * varobj.c (varobj_get_num_children): Call
3207 varobj_is_dynamic_p.
3208 (varobj_list_children): Likewise.
3209 (varobj_update): Likewise. Update comments.
3211 2014-06-12 Yao Qi <yao@codesourcery.com>
3213 * varobj.c (varobj_pretty_printed_p): Rename to ...
3214 (varobj_is_dynamic_p): ... this. New function.
3215 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3216 (varobj_is_dynamic_p): Declare.
3217 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3218 (mi_print_value_p, varobj_update_one): Likewise.
3220 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3221 Yao Qi <yao@codesourcery.com>
3223 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3224 (varobj_get_iterator): Wrap up code for pretty-printer by
3225 "#if HAVE_PYTHON" and "#endif".
3226 (update_dynamic_varobj_children): Likewise.
3228 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3229 Yao Qi <yao@codesourcery.com>
3231 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3232 gdb_python_initialized is false. Move some code from varobj.c.
3233 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3234 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3235 (struct varobj_item): Moved to varobj-iter.h".
3236 (varobj_clear_saved_item): New function.
3237 (update_dynamic_varobj_children): Move python-related code to
3239 (free_variable): Call varobj_clear_saved_item and
3242 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3243 Yao Qi <yao@codesourcery.com>
3245 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3246 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3247 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3248 (py-varobj.o): New rule.
3249 * python/py-varobj.c: New file.
3250 * python/python-internal.h (py_varobj_get_iterator): Declare.
3251 * varobj-iter.h: New file.
3252 * varobj.c: Include "varobj-iter.h"
3253 (struct varobj) <child_iter>: Change its type from "PyObject *"
3254 to "struct varobj_iter *".
3255 <saved_item>: Likewise.
3256 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3257 [HAVE_PYTHON] (varobj_get_iterator): New function.
3258 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3259 python-specific code to python/py-varobj.c.
3260 (install_visualizer): Call varobj_iter_delete instead of
3262 * varobj.h (varobj_ensure_python_env): Declare.
3264 2014-06-12 Yao Qi <yao@codesourcery.com>
3266 * varobj.c (struct varobj_item): New structure.
3267 (create_child_with_value): Update declaration.
3268 (varobj_add_child): Replace arguments 'name' and 'value' with
3269 'item'. All callers updated.
3270 (install_dynamic_child): Likewise.
3271 (update_dynamic_varobj_children): Likewise.
3272 (varobj_add_child): Likewise.
3273 (create_child_with_value): Likewise.
3275 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3277 * NEWS: Create a new section for the next release branch.
3278 Rename the section of the current branch, now that it has
3281 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3283 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3284 * version.in: Bump version to 7.8.50.DATE-cvs.
3286 2014-06-11 Pedro Alves <palves@redhat.com>
3289 * ser-mingw.c (net_windows_socket_check_pending): New function.
3290 (net_windows_select_thread): Ignore spurious wakeups. Use
3291 net_windows_socket_check_pending.
3292 (net_windows_wait_handle): Check for pending events with
3293 ioctlsocket, through net_windows_socket_check_pending, instead of
3294 checking the socket's event.
3296 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3298 * python/python-internal.h (gdb_PyObject_GetAttrString)
3299 (gdb_PyObject_HasAttrString): New inline function definitions.
3300 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3301 char * of the second argument to PyObject_GetAttrString.
3303 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3305 * serial.c (serial_write): Fix index of character to be printed
3306 in call to serial_logchar when serial debug traces are enabled.
3308 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3310 * gdbtypes (resolve_dynamic_range): Add function description.
3312 2014-06-09 Pedro Alves <palves@redhat.com>
3314 * linux-nat.c (linux_child_follow_fork): Initialize status with
3315 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3316 inner block. Only pass the signal to PTRACE_DETACH if in pass
3319 2014-06-09 Gary Benson <gbenson@redhat.com>
3321 * common/signals.c (gdb_signal_from_host): Reorder to separate
3322 the always-available ANSI-standard signals from the signals that
3324 (do_gdb_signal_to_host): Likewise.
3325 * proc-events.c (signal_table): Likewise.
3327 2014-06-08 Hui Zhu <hui@codesourcery.com>
3329 * common/linux-ptrace.c (linux_disable_event_reporting): New
3331 * common/linux-ptrace.h (linux_disable_event_reporting): New
3333 * linux-nat.c (linux_child_follow_fork): Do a single step before
3336 2014-06-07 Keith Seitz <keiths@redhat.com>
3340 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3341 from symbol_matches_domain in symtab.c. All local callers
3342 of symbol_matches_domain updated.
3343 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3344 search STRUCT_DOMAIN.
3345 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3346 independently. standard_lookup will do that automatically.
3347 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3348 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3349 (cp_lookup_symbol_in_namespace): Likewise.
3350 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3351 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3352 may return a STRUCT_DOMAIN match.
3353 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3354 * cp-support.c: Include language.h.
3355 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3357 * psymtab.c (match_partial_symbol): Compare the requested
3358 domain with the symbol's domain directly.
3359 (lookup_partial_symbol): Likewise.
3360 * symtab.c (lookup_symbol_in_language): Explain when/why
3361 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3362 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3363 appropriate languages.
3364 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3365 and moved to ada-lang.c
3366 (lookup_block_symbol): Explain that this function only returns
3367 symbol matching the requested DOMAIN.
3368 Compare the requested domain with the symbol's domain directly.
3369 (iterate_over_symbols): Compare the requested domain with the
3370 symbol's domain directly.
3371 * symtab.h (symbol_matches_domain): Remove.
3373 2014-06-06 Doug Evans <xdje42@gmail.com>
3375 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3376 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3377 (gdbscm_guile_version_is_at_least): Declare.
3378 (gdbscm_scm_string_to_int): Declare.
3379 * guile/guile.c (gdbscm_guile_major_version): New global.
3380 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3381 (guile_datadir): New static global.
3382 (gdbscm_guile_data_directory): New function.
3383 (initialize_scheme_side): Update.
3384 (misc_guile_functions): Add guile-data-directory.
3385 (initialize_gdb_module): Fetch guile version number.
3386 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3387 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3388 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3389 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3391 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3392 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3393 * guile/scm-value.c (gdbscm_value_to_string): Only call
3394 scm_port_conversion_strategy if Guile version >= 2.0.6.
3396 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3398 * main.c (print_gdb_help): Add -q and --silent.
3400 2014-06-06 Gary Benson <gbenson@redhat.com>
3402 * common/signals.c: Remove preprocessor conditionals for
3403 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3404 SIGSEGV and SIGTERM.
3405 * proc-events.c: Likewise.
3407 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3409 * symfile.c (symfile_free_objfile): Remove restriction to
3411 * symfile-mem.c (symbol_file_add_from_memory): Call
3412 add_target_sections_of_objfile.
3414 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3416 * guile/scm-value.c (gdbscm_history_append_x): Use
3417 'vlscm_get_value_smob_arg_unsafe' instead of
3418 'vlscm_scm_to_value'.
3420 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3423 * utils.c (printchar): Don't escape at all if quoter is NUL.
3424 Update function documentation to clarify effect of parameter
3426 * remote.c (escape_buffer): Pass '\\' as the quoter to
3427 fputstrn_unfiltered.
3428 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3429 generate the output.
3430 (mi_solib_unloaded): Same.
3432 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3434 * development.sh: Delete.
3435 * Makefile.in (config.status): Adjust dependency on development.sh.
3436 * configure.ac: Adjust development.sh source call.
3437 * configure: Regenerate.
3439 2014-06-04 Doug Evans <xdje42@gmail.com>
3441 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3442 is_scheme_bkpt, spec.
3443 (bpscm_make_breakpoint_smob): Initialize new members.
3444 (gdbscm_create_breakpoint_x): Split into two ...
3445 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3446 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3447 (scheme_function breakpoint_functions): Update.
3448 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3449 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3450 register-breakpoint!.
3452 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3455 * mem-break.c (z_type_supported): Return zero if
3456 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3458 2014-06-04 Tom Tromey <tromey@redhat.com>
3460 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3461 value_from_contents_and_address_unresolved.
3462 (ada_template_to_fixed_record_type_1): Likewise.
3463 (ada_which_variant_applies): Likewise.
3464 * value.h (value_from_contents_and_address_unresolved): Declare.
3465 * value.c (value_from_contents_and_address_unresolved): New
3467 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3468 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3469 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3471 2014-06-04 Tom Tromey <tromey@redhat.com>
3473 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3475 2014-06-04 Tom Tromey <tromey@redhat.com>
3477 * procfs.c (procfs_attach): Make "args" const.
3478 * windows-nat.c (windows_attach): Make "args" const.
3479 * nto-procfs.c (procfs_attach): Make "args" const.
3480 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3481 * go32-nat.c (go32_attach): Make "args" const.
3482 * gnu-nat.c (gnu_attach): Make "args" const.
3483 * darwin-nat.c (darwin_attach): Make "args" const.
3484 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3485 * linux-nat.c (linux_nat_attach): Make "args" const.
3486 * remote.c (extended_remote_attach_1, extended_remote_attach):
3488 * target.h (struct target_ops) <to_attach>: Make "args" const.
3489 (find_default_attach): Likewise.
3490 * utils.c (parse_pid_to_attach): Make "args" const.
3491 * utils.h (parse_pid_to_attach): Update.
3493 2014-06-04 Tom Tromey <tromey@redhat.com>
3495 * target-delegates.c: Rebuild.
3496 * target.c (default_thread_address_space): New function.
3497 (target_thread_address_space): Simplify.
3498 * target.h (struct target_ops) <to_thread_address_space>: Add
3499 TARGET_DEFAULT_FUNC.
3501 2014-06-04 Doug Evans <xdje42@gmail.com>
3503 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3505 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3507 * record-btrace.c: Include event-loop.h and inf-loop.h.
3508 (record_btrace_resume_exec_dir)
3509 (record_btrace_async_inferior_event_handler)
3510 (record_btrace_handle_async_inferior_event): New.
3511 (record_btrace_open): Create async event handler.
3512 (record_btrace_close): Delete async event handler.
3513 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3514 Mark async event handler.
3515 (record_btrace_execution_direction): New.
3516 (init_record_btrace_ops): Initialize to_execution_direction.
3518 2014-06-03 Doug Evans <xdje42@gmail.com>
3520 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3521 (gdbscm_make_parameter): Ditto.
3523 2014-06-03 Doug Evans <dje@google.com>
3525 * exec.c (exec_close_1): Call clear_section_table instead of
3526 resize_section_table.
3527 (clear_section_table): New function.
3528 (resize_section_table): Make static. Rename arg num_added to
3530 * exec.h (clear_section_table): Declare.
3531 (resize_section_table): Delete.
3532 * progspace.c (release_program_space): Call clear_section_table
3533 instead of resize_section_table.
3535 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3537 * NEWS (Python Scripting): Add entry about the new xmethods
3540 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3542 * python/py-xmethods.c: New file.
3543 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3544 (objfpy_dealloc): XDECREF on the new xmethods field.
3545 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3547 (objfpy_get_xmethods): New function.
3548 (objfile_getset): New entry 'xmethods'.
3549 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3550 (pspy_dealloc): XDECREF on the new xmethods field.
3551 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3553 (pspy_get_xmethods): New function.
3554 (pspace_getset): New entry 'xmethods'.
3555 * python/python-internal.h: Add declarations for new functions.
3556 * python/python.c (_initialize_python): Invoke
3557 gdbpy_initialize_xmethods.
3558 * python/lib/gdb/__init__.py (xmethods): New
3560 * python/lib/gdb/xmethod.py: New file.
3561 * python/lib/gdb/command/xmethods.py: New file.
3563 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3565 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3566 best match method returned by find_overload_match is an xmethod.
3567 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3568 the best matching operator returned by find_overload_match is an
3570 * valops.c: #include "extension.h".
3571 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3572 Return void. The list of matching source methods is returned in
3573 "fn_list" and a vector of matching debug method workers is
3574 returned in "xm_worker_vec". Update all callers.
3575 (value_find_oload_method_list): Likewise.
3576 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3577 non-NULL, then the index of the best matching method in this
3578 vector is returned. Update all callers.
3579 (find_overload_match): Include xmethods while performing overload
3582 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3584 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3585 * extension-priv.h (struct extension_language_ops): Add the
3587 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3588 get_matching_xmethod_workers, get_xmethod_argtypes,
3589 invoke_xmethod, free_xmethod_worker,
3590 free_xmethod_worker_vec): New functions.
3591 * extension.h: #include "common/vec.h".
3592 New function declarations.
3593 (struct xmethod_worker): New struct.
3594 (VEC (xmethod_worker_ptr)): New vector type.
3595 (xmethod_worker_ptr): New typedef.
3596 (xmethod_worker_vec): Likewise.
3597 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3599 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3600 (struct builtin_type): New field "xmethod".
3601 * valarith.c (value_ptradd): Assert that the value argument is not
3603 * valops.c (value_must_coerce_to_target): Return 0 for
3604 lval_xcallable values.
3605 * value.c (struct value): New field XM_WORKER in the field
3607 (value_address, value_raw_address): Return 0 for lval_xcallable
3609 (set_value_address): Assert that the value is not an
3611 (value_free): Free the associated xmethod worker when freeing
3612 lval_xcallable values.
3613 (set_value_component_location): Assert that the WHOLE value is not
3615 (value_of_xmethod, call_xmethod): New functions.
3616 * value.h: Declare "struct xmethod_worker".
3617 Declare new functions value_of_xmethod, call_xmethod.
3619 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3620 Pedro Alves <palves@redhat.com>
3622 PR breakpoints/17000
3623 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3624 New function, extracted from software_breakpoint_inserted_here_p.
3625 (software_breakpoint_inserted_here_p): Replace factored out code
3626 by call to find_non_raw_software_breakpoint_inserted_here.
3627 (bp_target_info_copy_insertion_state): New function.
3628 (bkpt_insert_location): Handle the case of a single-step
3629 breakpoint already inserted at the same address.
3630 (bkpt_remove_location): Handle the case of a single-step
3631 breakpoint still inserted at the same address.
3632 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3633 breakpoint already inserted at the same address.
3634 (deprecated_remove_raw_breakpoint): Handle the case of a
3635 non-raw breakpoint still inserted at the same address.
3636 (find_single_step_breakpoint): New function, extracted from
3637 single_step_breakpoint_inserted_here_p.
3638 (find_single_step_breakpoint): New function,
3639 factored out from single_step_breakpoint_inserted_here_p.
3640 (single_step_breakpoint_inserted_here_p): Reimplement.
3642 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3644 Pushed by Joel Brobecker <brobecker@adacore.com>
3645 * source.c (show_substitute_path_command): Fix display of matching
3648 2014-06-03 Gary Benson <gbenson@redhat.com>
3650 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3652 2014-06-02 Doug Evans <xdje42@gmail.com>
3654 Add parameter support for Guile.
3655 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3656 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3657 (scm-param.o): New rule.
3658 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3659 (gdbscm_misc_error): Declare.
3660 (gdbscm_canonicalize_command_name): Declare.
3661 (gdbscm_scm_to_host_string): Declare.
3662 (gdbscm_scm_from_host_string): Declare.
3663 (gdbscm_initialize_parameters): Declare.
3664 * guile/guile.c (initialize_gdb_module): Call
3665 gdbscm_initialize_parameters.
3666 * guile/lib/gdb.scm: Export parameter symbols.
3667 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3668 cmdscm_canonicalize_name and made public. All callers updated.
3669 * guile/scm-exception.c (gdbscm_misc_error): New function.
3670 * guile/scm-param.c: New file.
3671 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3672 (gdbscm_scm_to_host_string): New function.
3673 (gdbscm_scm_from_host_string): New function.
3674 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3676 2014-06-02 Doug Evans <xdje42@gmail.com>
3678 Add command support for Guile.
3679 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3680 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3681 (scm-cmd.o): New rule.
3682 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3683 (gdbscm_user_error_p): Declare.
3684 (gdbscm_parse_command_name): Declare.
3685 (gdbscm_valid_command_class_p): Declare.
3686 (gdbscm_initialize_commands): Declare.
3687 * guile/guile.c (initialize_gdb_module): Call
3688 gdbscm_initialize_commands.
3689 * guile/lib/gdb.scm: Export command symbols.
3690 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3691 (throw-user-error): New function.
3692 * guile/scm-cmd.c: New file.
3693 * guile/scm-exception.c (user_error_symbol): New static global.
3694 (gdbscm_user_error_p): New function.
3695 (gdbscm_initialize_exceptions): Set user_error_symbol.
3696 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3698 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3700 * top.c (command_loop): Handle comments here...
3701 (command_line_input): ... not here.
3703 2014-06-02 Doug Evans <xdje42@gmail.com>
3705 Add progspace support for Guile.
3706 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3707 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3708 (scm-progspace.o): New rule.
3709 * guile/guile-internal.h (pspace_smob): New typedef.
3710 (psscm_pspace_smob_pretty_printers): Declare.
3711 (psscm_pspace_smob_from_pspace): Declare.
3712 (psscm_scm_from_pspace): Declare.
3713 * guile/guile.c (initialize_gdb_module): Call
3714 gdbscm_initialize_pspaces.
3715 * guile/lib/gdb.scm: Export progspace symbols.
3716 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3718 (append-pretty-printer!): Ditto.
3719 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3721 * guile/scm-progspace.c: New file.
3723 2014-06-03 Alan Modra <amodra@gmail.com>
3725 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3726 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3728 2014-06-02 Doug Evans <dje@google.com>
3730 Add support for skeletonless type units.
3731 * dwarf2read.c (struct dwarf2_per_objfile): New member
3732 n_allocated_type_units.
3733 (struct dwarf2_per_objfile) <tu_stats>: New member
3734 nr_all_type_units_reallocs.
3735 (create_signatured_type_table_from_index): Initialize
3736 n_allocated_type_units
3737 (create_all_type_units): Ditto.
3738 (add_type_unit): Move up in file. New arg slot.
3739 All callers updated. Increase space for all_type_units more
3741 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3742 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3743 (lookup_dwp_signatured_type): Ditto.
3744 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3745 All callers updated.
3746 (build_type_psymtabs_1): Leave type_unit_groups as
3747 NULL if no TUs present.
3748 (print_tu_stats): New function.
3749 (process_skeletonless_type_unit): New function.
3750 (process_dwo_file_for_skeletonless_type_units): New
3752 (process_skeletonless_type_units): New function.
3753 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3754 Call print tu_stats if debugging enabled.
3756 2014-06-02 Pedro Alves <palves@redhat.com>
3758 * breakpoint.c (build_target_command_list): Don't build a command
3759 list if we have any duplicate location that isn't a dprintf.
3761 2014-06-02 Pedro Alves <palves@redhat.com>
3763 * breakpoint.c (dprintf_breakpoint_hit): New function.
3764 (initialize_breakpoint_ops): Install it as dprintf's
3765 breakpoint_hit method.
3767 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3769 * source.c (substitute_path_rule_matches): Simplify using
3770 filename_ncmp instead of FILENAME_CMP.
3772 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3774 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3776 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3778 * configure.ac: When Guile is available, check for the
3779 availability of 'scm_new_smob'.
3780 * configure, config.h.in: Regenerate.
3781 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3784 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3786 * frame.c (struct frame_info): Add stop_string field.
3787 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3788 (get_prev_frame_always): Old content moved into
3789 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3790 TRY_CATCH, handle MEMORY_ERROR exceptions.
3791 (frame_stop_reason_string): New function definition.
3792 * frame.h (unwind_stop_reason_to_string): Extend comment to
3793 mention frame_stop_reason_string.
3794 (frame_stop_reason_string): New function declaration.
3795 * stack.c (frame_info): Switch to frame_stop_reason_string.
3796 (backtrace_command_1): Switch to frame_stop_reason_string.
3797 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3798 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3799 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3801 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3803 * frame.c (frame_stop_reason_string): Rename to ...
3804 (unwind_stop_reason_to_string): this.
3805 * frame.h (frame_stop_reason_string): Rename to ...
3806 (unwind_stop_reason_to_string): this.
3807 * stack.c (frame_info): Update call to frame_stop_reason_string.
3808 (backtrace_command_1): Likewise.
3809 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3810 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3812 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3814 * frame.c (remove_prev_frame): New function.
3815 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3818 2014-05-29 Pedro Alves <palves@redhat.com>
3820 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3821 and make it const. When a single-step decays to a continue,
3822 clear 'step', not 'hw_step'. Pass whether the caller wanted
3823 to step to user_visible_resume_ptid, not what we ask the
3826 2014-05-29 Pedro Alves <palves@redhat.com>
3828 * infrun.c (process_event_stop_test, handle_step_into_function)
3829 (handle_step_into_function_backward): Adjust.
3830 Don't set the even thread's stop_step and call stop_waiting before
3831 calling end_stepping_range. Instead do that ...
3832 (end_stepping_range): ... here. Take an ecs pointer parameter.
3834 2014-05-29 Pedro Alves <palves@redhat.com>
3836 * infrun.c (stop_stepping): Rename to ...
3837 (stop_waiting): ... this.
3838 (proceed): Update comment.
3839 (process_event_stop_test, handle_inferior_event)
3840 (handle_signal_stop, handle_step_into_function)
3841 (handle_step_into_function_backward): Update.
3843 2014-05-29 Pedro Alves <palves@redhat.com>
3845 * infcall.c (run_inferior_call): Don't check whether the current
3846 thread is running after the proceed call.
3848 2014-05-29 Pedro Alves <palves@redhat.com>
3849 Tom Tromey <tromey@redhat.com>
3851 * NEWS: Mention "maint set target-async", "set mi-async", and that
3852 background execution commands are now always available.
3853 * target.h (target_async_permitted): Update comment.
3854 * target.c (target_async_permitted, target_async_permitted_1):
3856 (set_target_async_command): Rename to ...
3857 (maint_set_target_async_command): ... this.
3858 (show_target_async_command): Rename to ...
3859 (maint_show_target_async_command): ... this.
3860 (_initialize_target): Adjust.
3861 * infcmd.c (prepare_execution_command): Make extern.
3862 * inferior.h (prepare_execution_command): Declare.
3863 * infrun.c (set_observer_mode): Leave target async alone.
3864 * mi/mi-interp.c (mi_interpreter_init): Install
3865 mi_on_sync_execution_done as sync_execution_done observer.
3866 (mi_on_sync_execution_done): New function.
3867 (mi_execute_command_input_handler): Don't print the prompt if we
3868 just started a synchronous command with an async target.
3869 (mi_on_resume): Check sync_execution before printing prompt.
3870 * mi/mi-main.h (mi_async_p): Declare.
3871 * mi/mi-main.c: Include gdbcmd.h.
3872 (mi_async_p): New function.
3873 (mi_async, mi_async_1): New globals.
3874 (set_mi_async_command, show_mi_async_command, mi_async): New
3876 (exec_continue): Call prepare_execution_command.
3877 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3878 (mi_execute_async_cli_command): Use mi_async_p.
3879 (_initialize_mi_main): Install "set mi-async". Make
3880 "target-async" a deprecated alias.
3882 2014-05-29 Pedro Alves <palves@redhat.com>
3884 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3885 (_initialize_cli_interp): Adjust.
3886 * event-loop.c: Include "observer.h".
3887 (start_event_loop): Notify 'command_error' observers instead of
3888 calling display_gdb_prompt. Remove FIXME comment.
3889 * event-top.c (display_gdb_prompt): Remove call into the
3891 * inf-loop.c: Include "observer.h".
3892 (inferior_event_handler): Notify 'command_error' observers instead
3893 of calling display_gdb_prompt.
3894 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3895 observers instead of calling display_gdb_prompt.
3896 * interps.c (interp_set): Don't call display_gdb_prompt.
3897 (current_interp_display_prompt_p): Delete.
3898 * interps.h (interp_prompt_p): Delete declaration.
3899 (interp_prompt_p_ftype): Delete.
3900 (struct interp_procs) <prompt_proc_p>: Delete field.
3901 (current_interp_display_prompt_p): Delete declaration.
3902 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3903 (_initialize_mi_interp): Adjust.
3904 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3905 'command_error' observers.
3906 (tui_on_sync_execution_done, tui_on_command_error): New
3908 (tui_display_prompt_p): Delete.
3909 (_initialize_tui_interp): Adjust.
3911 2014-05-29 Pedro Alves <palves@redhat.com>
3914 * cli/cli-interp.c: Include infrun.h and observer.h.
3915 (cli_uiout, cli_interp): New globals.
3916 (cli_on_signal_received, cli_on_end_stepping_range)
3917 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3919 (cli_interpreter_init): Install them as 'end_stepping_range',
3920 'signal_received' 'signal_exited', 'exited' and 'no_history'
3922 (_initialize_cli_interp): Remove cli_interp local.
3923 * infrun.c (handle_inferior_event): Call the several stop reason
3924 observers instead of printing the stop reason directly.
3925 (end_stepping_range): New function.
3926 (print_end_stepping_range_reason, print_signal_exited_reason)
3927 (print_exited_reason, print_signal_received_reason)
3928 (print_no_history_reason): Make static, and add an uiout
3929 parameter. Print to that instead of to CURRENT_UIOUT.
3930 * infrun.h (print_end_stepping_range_reason)
3931 (print_signal_exited_reason, print_exited_reason)
3932 (print_signal_received_reason print_no_history_reason): New
3934 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3936 <cli_uiout>: New field.
3937 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3938 uiout for CLI output. Install 'signal_received',
3939 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3941 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3942 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3943 (mi_on_no_history): New functions.
3944 (ui_out_free_cleanup): Delete function.
3945 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3946 instead use the one already stored in the MI interpreter data.
3947 (mi_ui_out): Adjust.
3948 * tui/tui-interp.c: Include infrun.h and observer.h.
3949 (tui_interp): New global.
3950 (tui_on_signal_received, tui_on_end_stepping_range)
3951 (tui_on_signal_exited, tui_on_exited)
3952 (tui_on_no_history): New functions.
3953 (tui_init): Install them as 'end_stepping_range',
3954 'signal_received' 'signal_exited', 'exited' and 'no_history'
3956 (_initialize_tui_interp): Delete tui_interp local.
3958 2014-05-29 Pedro Alves <palves@redhat.com>
3961 * linux-nat.c (linux_nat_resume_callback): Rename the second
3962 parameter to 'except'. Skip LP if it points to EXCEPT.
3963 (linux_nat_resume): Don't mark the event lwp as not stopped
3964 before resuming sibling lwps. Instead ask
3965 linux_nat_resume_callback to skip the event lwp. Mark it as not
3966 stopped after actually resuming it.
3967 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3969 (wait_lwp): Mark the lwp as stopped here.
3970 (stop_wait_callback): Mark the lwp as not stopped right after
3971 resuming it. Don't mark lwps as stopped here.
3972 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3973 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3975 2014-05-29 Pedro Alves <palves@redhat.com>
3978 * infrun.c (resume): Determine how much to resume depending on
3979 whether the caller wanted a step, not whether we can hardware step
3980 the target. Mark all threads that we intend to run as running,
3981 unless we're calling an inferior function.
3982 (normal_stop): If the thread is running an infcall, don't finish
3984 * target.c (target_resume): Don't mark threads as running here.
3986 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3988 * serial.c (_initialize_serial): Remove support for
3989 the "set remotebaud" and "show remotebaud" commands.
3990 * NEWS: Add entry documenting the removal of that command.
3992 2014-05-28 Yao Qi <yao@codesourcery.com>
3994 * charset.c: Fix typo in comments.
3996 2014-05-27 Gary Benson <gbenson@redhat.com>
3998 * utils.c (internal_vproblem): Prompt for a bug report.
4000 2014-05-26 Andy Wingo <wingo@igalia.com>
4002 * guile/scm-arch.c (arscm_mark_arch_smob):
4003 * guile/scm-block.c (bkscm_mark_block_smob)
4004 (bkscm_mark_block_syms_progress_smob):
4005 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4006 * guile/scm-exception.c (exscm_mark_exception_smob):
4007 * guile/scm-frame.c (frscm_mark_frame_smob):
4008 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4009 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4010 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4011 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4012 (ppscm_mark_pretty_printer_worker_smob):
4013 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4014 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4015 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4016 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4018 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4021 2014-05-26 Andy Wingo <wingo@igalia.com>
4022 Doug Evans <xdje42@gmail.com>
4024 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4025 empty_base_class. All uses updated.
4026 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4027 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4029 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4030 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4031 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4032 (gdbscm_gsmob_has_property_p, add_property_name)
4033 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4034 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4035 (gdb-object-has-property?, gdb-object-properties): Remove.
4036 (gdb-object-kind): Renamed from gsmob-kind.
4038 2014-05-26 Andy Wingo <wingo@igalia.com>
4040 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4041 * configure: Regenerate.
4043 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4045 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4047 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4049 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4050 (replay_memory_access_read_only, replay_memory_access_read_write)
4051 (replay_memory_access_types, replay_memory_access)
4052 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4053 (cmd_set_record_btrace, cmd_show_record_btrace)
4054 (cmd_show_replay_memory_access): New.
4055 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4056 (record_btrace_remove_breakpoint): Replace
4057 record_btrace_allow_memory_access with replay_memory_access.
4058 (_initialize_record_btrace): Add commands.
4059 * NEWS: Announce it.
4061 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4063 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4065 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4067 * MAINTAINERS (Write After Approval): Move self back from
4070 2014-05-22 Pedro Alves <palves@redhat.com>
4072 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4073 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4074 (disable_randomization, enum exec_direction_kind)
4075 (execution_direction, stop_registers, start_remote)
4076 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4077 (wait_for_inferior, normal_stop, get_last_target_status)
4078 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4079 (insert_step_resume_breakpoint_at_sal)
4080 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4081 (set_step_info, print_stop_event, signal_stop_state)
4082 (signal_print_state, signal_pass_state, signal_stop_update)
4083 (signal_print_update, signal_pass_update)
4084 (update_signals_program_target, clear_exit_convenience_vars)
4085 (displaced_step_dump_bytes, update_observer_mode)
4086 (signal_catch_update, gdb_signal_from_command): Move
4088 * infrun.h: ... to this new file.
4089 * amd64-tdep.c: Include infrun.h.
4090 * annotate.c: Include infrun.h.
4091 * arch-utils.c: Include infrun.h.
4092 * arm-linux-tdep.c: Include infrun.h.
4093 * arm-tdep.c: Include infrun.h.
4094 * break-catch-sig.c: Include infrun.h.
4095 * breakpoint.c: Include infrun.h.
4096 * common/agent.c: Include infrun.h instead of inferior.h.
4097 * corelow.c: Include infrun.h.
4098 * event-top.c: Include infrun.h.
4099 * go32-nat.c: Include infrun.h.
4100 * i386-tdep.c: Include infrun.h.
4101 * inf-loop.c: Include infrun.h.
4102 * infcall.c: Include infrun.h.
4103 * infcmd.c: Include infrun.h.
4104 * infrun.c: Include infrun.h.
4105 * linux-fork.c: Include infrun.h.
4106 * linux-nat.c: Include infrun.h.
4107 * linux-thread-db.c: Include infrun.h.
4108 * monitor.c: Include infrun.h.
4109 * nto-tdep.c: Include infrun.h.
4110 * procfs.c: Include infrun.h.
4111 * record-btrace.c: Include infrun.h.
4112 * record-full.c: Include infrun.h.
4113 * remote-m32r-sdi.c: Include infrun.h.
4114 * remote-mips.c: Include infrun.h.
4115 * remote-notif.c: Include infrun.h.
4116 * remote-sim.c: Include infrun.h.
4117 * remote.c: Include infrun.h.
4118 * reverse.c: Include infrun.h.
4119 * rs6000-tdep.c: Include infrun.h.
4120 * s390-linux-tdep.c: Include infrun.h.
4121 * solib-irix.c: Include infrun.h.
4122 * solib-osf.c: Include infrun.h.
4123 * solib-svr4.c: Include infrun.h.
4124 * target.c: Include infrun.h.
4125 * top.c: Include infrun.h.
4126 * windows-nat.c: Include infrun.h.
4127 * mi/mi-interp.c: Include infrun.h.
4128 * mi/mi-main.c: Include infrun.h.
4129 * python/py-threadevent.c: Include infrun.h.
4131 2014-05-22 Pedro Alves <palves@redhat.com>
4133 * infrun.c (handle_inferior_event): Store the exit code for
4134 --return-child-result here, instead of ...
4135 (print_exited_reason): ... here.
4137 2014-05-21 Pedro Alves <palves@redhat.com>
4140 * gdbthread.h (struct thread_control_state): New field
4142 * infrun.c (follow_fork): Copy the new thread control field to the
4144 (clear_proceed_status_thread): Clear the new thread control field.
4145 (proceed): Set the new thread control field.
4146 * interps.h (command_interp): Declare.
4147 * interps.c (command_interpreter): New global.
4148 (command_interp): New function.
4149 (interp_exec): Set `command_interpreter' while here.
4150 * cli-out.c (cli_uiout_dtor): New function.
4151 (cli_ui_out_impl): Install it.
4152 * mi/mi-interp.c: Include cli-out.h.
4153 (mi_cmd_interpreter_exec): Add comment.
4154 (restore_current_uiout_cleanup): New function.
4155 (ui_out_free_cleanup): New function.
4156 (mi_on_normal_stop): If finishing an execution command started by
4157 a CLI command, or any kind of breakpoint-like event triggered,
4158 print the stop event to the output (CLI) stream.
4159 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4161 2014-05-21 Pedro Alves <palves@redhat.com>
4163 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4164 current source line having changed.
4165 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4166 * infrun.c (normal_stop): Adjust call to
4167 set_current_sal_from_frame.
4168 * source.c (clear_lines_listed_range): New function.
4169 (set_current_source_symtab_and_line, identify_source_line): Clear
4170 the lines listed range.
4171 (line_info): Handle the first "info line" after the current source
4172 line having changed.
4173 * stack.c (print_stack_frame): Remove center handling.
4174 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4177 2014-05-21 Pedro Alves <palves@redhat.com>
4179 * inf-child.c (inf_child_mourn_inferior): New function.
4180 * inf-child.h (inf_child_mourn_inferior): New declaration.
4181 * darwin-nat.c (darwin_mourn_inferior): Use
4182 inf_child_mourn_inferior.
4183 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4184 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4185 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4186 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4187 * windows-nat.c (windows_mourn_inferior): Likewise.
4189 2014-05-21 Doug Evans <xdje42@gmail.com>
4191 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4193 2014-05-21 Doug Evans <xdje42@gmail.com>
4195 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4196 (gdbscm_out_of_range_error): Ditto.
4197 (gdbscm_memory_error): Ditto.
4198 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4199 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4200 (gdbscm_out_of_range_error): Update.
4201 (gdbscm_memory_error): Update.
4202 (gdbscm_scm_to_target_string_unsafe): Delete.
4204 2014-05-21 Pedro Alves <palves@redhat.com>
4206 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4208 (inf_child_open_target): New function.
4209 (inf_child_open): Use inf_child_open_target to push the target
4210 instead of erroring out.
4211 (inf_child_disconnect, inf_child_close)
4212 (inf_child_maybe_unpush_target): New functions.
4213 (inf_child_target): Install inf_child_disconnect and
4214 inf_child_close. Store a pointer to the returned object.
4215 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4217 * target.c (auto_connect_native_target): New global.
4218 (show_default_run_target): New function.
4219 (find_default_run_target): Return NULL if automatically connecting
4220 to the native target is disabled.
4221 (_initialize_target): Install set/show auto-connect-native-target.
4222 * NEWS: Mention "set auto-connect-native-target", and "target
4224 * linux-nat.c (super_close): New global.
4225 (linux_nat_close): Call super_close.
4226 (linux_nat_add_target): Store a pointer to the base class's
4228 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4229 inf_child_maybe_unpush.
4230 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4232 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4233 the inferior. Use inf_child_maybe_unpush_target.
4234 (inf_ttrace_attach): Don't push the target if it is already
4236 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4237 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4238 after mourning the inferior. Use inf_child_maybe_unpush_target.
4239 (darwin_attach_pid): Don't push the target if it is already
4241 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4242 mourning the inferior. Use inf_child_maybe_unpush_target.
4243 (gnu_detach): Use inf_child_maybe_unpush_target.
4244 * go32-nat.c (go32_create_inferior): Don't push the target if it
4246 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4247 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4248 (procfs_open): Rename to ...
4249 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4250 comments. Can target_preopen before changing node. Call
4251 inf_child_open_target to push the target explicitly.
4252 (procfs_attach): Don't push the target if it is already pushed.
4253 (procfs_detach): Use inf_child_maybe_unpush_target.
4254 (procfs_create_inferior): Don't push the target if it is already
4256 (nto_native_ops): New global.
4257 (procfs_open): Reimplement.
4258 (procfs_native_open): New function.
4259 (init_procfs_targets): Install procfs_native_open as to_open of
4260 "target native". Store a pointer to the "native" target in
4262 * procfs.c (procfs_attach): Don't push the target if it is already
4264 (procfs_detach): Use inf_child_maybe_unpush_target.
4265 (procfs_mourn_inferior): Only unpush the target after mourning the
4266 inferior. Use inf_child_maybe_unpush_target.
4267 (procfs_init_inferior): Don't push the target if it is already
4269 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4270 if it is already pushed.
4272 2014-05-21 Pedro Alves <palves@redhat.com>
4274 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4275 and "procfs" targets are now called "native" instead.
4277 2014-05-21 Pedro Alves <palves@redhat.com>
4279 * go32-nat.c (go32_open): Delete.
4280 (go32_target): Don't override the to_open method.
4282 2014-05-21 Pedro Alves <palves@redhat.com>
4284 * nto-procfs.c (procfs_can_run): New function.
4285 (nto_procfs_ops): New global.
4286 (init_procfs_targets): New, based on procfs_target. Install
4287 "target native" in addition to "target procfs".
4288 (_initialize_procfs): Call init_procfs_targets instead of adding
4291 2014-05-21 Pedro Alves <palves@redhat.com>
4293 * windows-nat.c (windows_target): Don't override to_shortname,
4294 to_longname or to_doc.
4296 2014-05-21 Pedro Alves <palves@redhat.com>
4298 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4301 2014-05-21 Pedro Alves <palves@redhat.com>
4303 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4304 to_shortname, to_longname or to_doc.
4306 2014-05-21 Pedro Alves <palves@redhat.com>
4308 * go32-nat.c (go32_target): Don't override to_shortname,
4309 to_longname or to_doc.
4311 2014-05-21 Pedro Alves <palves@redhat.com>
4313 * inf-child.c (inf_child_open): Remove mention of "child".
4314 (inf_child_target): Rename target to "native" instead of "child".
4316 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4318 * Makefile.in (SFILES): Delete "regset.c".
4319 (COMMON_OBS): Delete "regset.o".
4321 * regset.h (regset_alloc): Delete prototype.
4323 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4325 * sparc-linux-tdep.c (sparc32_linux_gregset)
4326 (sparc32_linux_fpregset): New static regset structures.
4327 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4328 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4330 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4331 (sparc64_linux_fpregset): New static regset structures.
4332 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4333 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4334 New static regset structures.
4335 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4336 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4337 New static regset structures.
4338 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4339 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4340 New static regset structures.
4341 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4342 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4343 New static regset structures.
4344 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4346 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4348 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4349 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4350 register maps ("regmaps") from "*regset" to "*regmap". Do this
4351 for all regmap types and variables.
4352 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4353 (sparc32_linux_supply_core_gregset)
4354 (sparc32_linux_collect_core_gregset)
4355 (sparc32_linux_supply_core_fpregset)
4356 (sparc32_linux_collect_core_fpregset): Likewise.
4357 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4358 (sparc_gregmap, sparc_fpregmap): ... these.
4359 (sparc_supply_gregset, sparc_collect_gregset)
4360 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4361 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4362 (_initialize_sparc_nat): Rename regmaps.
4363 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4364 (sparc_gregmap, sparc_fpregmap): ... these.
4365 (sparc_supply_gregset, sparc_collect_gregset)
4366 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4367 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4369 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4370 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4372 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4374 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4375 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4376 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4378 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4379 (sparc32_bsd_fpregset): Rename to...
4380 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4381 (sparc32_bsd_fpregmap): ... these.
4382 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4383 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4384 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4385 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4386 (struct sparc_gregmap, struct sparc_fpregmap)
4387 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4388 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4389 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4390 (sparc32_supply_regset, sparc32_collect_gregset)
4391 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4393 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4394 (sparc64_linux_ptrace_gregmap): ... this.
4395 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4396 (_initialize_sparc64_linux_nat): Rename regmaps.
4397 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4398 (sparc64_linux_core_gregmap): ... this.
4399 (sparc64_linux_supply_core_gregset)
4400 (sparc64_linux_collect_core_gregset)
4401 (sparc64_linux_supply_core_fpregset)
4402 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4403 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4404 (sparc64_sol2_fpregset): Rename to...
4405 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4406 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4407 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4409 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4410 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4411 (sparc64_bsd_fpregset): Rename to...
4412 (struct sparc_gregmap, sparc64_sol2_gregmap)
4413 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4414 (sparc64_bsd_fpregmap): ... these.
4415 (sparc64_supply_gregset, sparc64_collect_gregset)
4416 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4418 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4419 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4420 (sparc64fbsd_gregmap): ... this.
4421 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4422 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4424 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4425 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4426 (sparc64nbsd_collect_fpregset): Likewise.
4427 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4428 (sparc64nbsd_gregmap): ... this.
4429 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4431 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4432 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4433 (sparc64obsd_gregmap): ... this.
4434 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4436 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4437 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4438 (sparc32nbsd_gregmap): ... this.
4439 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4442 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4444 * score-tdep.c (score7_linux_gregset): New static regset
4446 (score7_linux_regset_from_core_section): Remove dynamic regset
4448 (score_gdbarch_init): Drop allocation of tdep structure.
4449 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4451 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4453 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4455 (am33_regset_from_core_section): Remove dynamic regset
4458 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4460 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4461 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4463 (mips_linux_regset_from_core_section): Remove dynamic regset
4465 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4466 'gregset64', 'fpregset', and 'fpregset64'.
4467 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4468 deleted tdep fields.
4470 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4472 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4474 (amd64_regset_from_core_section): Remove dynamic regset
4476 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4478 (amd64obsd_regset_from_core_section): Remove dynamic regset
4480 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4482 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4483 x86-common regset supply function.
4484 * i386-tdep.c (i386_collect_gregset): Make static.
4485 (i386_gregset): New global regset structure.
4486 (i386_fpregset, i386_xstateregset): New static regset structures.
4487 (i386_regset_from_core_section): Remove dynamic regset
4489 (i386_gdbarch_init): Remove initialization of tdep fields
4490 'gregset', 'fpregset', and 'xstateregset'.
4491 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4492 'fpregset', and 'xstateregset'.
4493 (i386_collect_gregset): Remove prototype.
4494 (i386_gregset): New declaration.
4495 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4497 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4500 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4502 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4503 (arm_linux_vfpregset): New static regset structures.
4504 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4506 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4507 and 'vfpregset' fields.
4509 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4511 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4512 (aarch64_linux_fpregset): New static regset structures.
4513 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4514 of regset structures.
4515 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4518 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4520 * regset.h (struct regset): Remove gdbarch field.
4521 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4522 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4523 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4525 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4526 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4527 (ppc32_linux_vsxregset): Likewise.
4528 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4529 via the regcache instead of the regset.
4530 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4531 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4532 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4533 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4536 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4538 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4539 Constify structures.
4540 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4541 (alphanbsd_aout_gregset): Likewise.
4542 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4543 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4545 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4546 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4548 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4549 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4550 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4551 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4552 * m88k-tdep.c (m88k_gregset): Likewise.
4553 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4554 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4555 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4556 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4557 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4558 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4559 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4560 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4561 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4563 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4564 * sh-tdep.h (sh_corefile_gregset): Likewise.
4565 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4566 * vax-tdep.c (vax_gregset): Likewise.
4568 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4570 Fix TLS access for -static -pthread.
4571 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4572 (try_thread_db_load_1): Initialize it.
4573 (thread_db_get_thread_local_address): Call it if LM is zero.
4574 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4575 * target.h (struct target_ops) (to_get_thread_local_address): Add
4576 load_module_addr comment.
4578 2014-05-21 Pedro Alves <palves@redhat.com>
4580 * dcache.c (dcache_read_memory_partial): If reading the cache line
4581 fails, fallback to reading just the memory the caller wanted.
4583 2014-05-20 Doug Evans <dje@google.com>
4585 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4586 instead of get_current_arch.
4588 2014-05-20 Pedro Alves <palves@redhat.com>
4590 * NEWS: Mention that compare-sections now works with all targets.
4592 * remote.c (PACKET_qCRC): New enum value.
4593 (remote_verify_memory): Don't send qCRC if the target has no
4594 execution. Use packet_support/packet_ok. If the target doesn't
4595 support the qCRC packet, fallback to a deep memory copy.
4596 (compare_sections_command): Say "target image" instead of "remote
4598 (_initialize_remote): Add PACKET_qCRC to the list of config
4599 packets that have no associated command. Extend comment.
4600 * target.c (simple_verify_memory, default_verify_memory): New
4602 * target.h (struct target_ops) <to_verify_memory>: Default to
4603 default_verify_memory.
4604 (simple_verify_memory): New declaration.
4605 * target-delegates.c: Regenerate.
4607 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4609 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4611 2014-05-20 Hui Zhu <hui@codesourcery.com>
4612 Yao Qi <yao@codesourcery.com>
4615 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4616 and change address of sp and pc.
4618 2014-05-19 Tom Tromey <tromey@redhat.com>
4620 * gdbtypes.c (rank_function): Use XNEWVEC.
4621 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4623 2014-05-19 Doug Evans <dje@google.com>
4625 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4626 build_type_unit_groups and moved closer to only caller. Remove
4627 arguments. All references updated. Remove outdated .gdb_index
4629 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4630 build_type_psymtabs_1.
4632 2014-05-19 Doug Evans <dje@google.com>
4634 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4635 n_type_unit_groups, all_type_unit_groups. All uses removed.
4636 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4637 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4638 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4639 (add_type_unit_group_to_table): Delete.
4641 2014-05-19 Doug Evans <dje@google.com>
4643 * eval.c (evaluate_subexp_standard): Add some comments.
4645 2014-05-17 Doug Evans <xdje42@gmail.com>
4647 * progspace.c (remove_program_space): Delete, unused.
4648 * progspace.h (remove_program_space): Ditto.
4650 2014-05-17 Doug Evans <xdje42@gmail.com>
4652 * inferior.c (prune_inferiors): Fix comment.
4653 (remove_inferior_command): Call prune_program_spaces.
4655 2014-05-16 Doug Evans <dje@google.com>
4657 New command line option -D.
4659 * main.c (set_gdb_data_directory): New function.
4660 (captured_main): Recognize -D. Flag error for --data-directory "".
4661 Call set_gdb_data_directory.
4662 (print_gdb_help): Print --data-directory, -D.
4663 * main.h (set_gdb_data_directory): Declare.
4664 * top.c (staged_gdb_datadir): New static global.
4665 (set_gdb_datadir): Call set_gdb_data_directory
4666 (show_gdb_datadir): New function.
4667 (init_main): Update init of data-directory parameter.
4669 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4671 Import the "dirfd" gnulib module.
4672 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4673 * gnulib/aclocal.m4: Update.
4674 * gnulib/config.in: Update.
4675 * gnulib/configure: Update.
4676 * gnulib/import/Makefile.am: Update.
4677 * gnulib/import/Makefile.in: Update.
4678 * gnulib/import/dirfd.c: New.
4679 * gnulib/import/m4/dirfd.m4: New.
4680 * gnulib/import/m4/gnulib-cache.m4: Update.
4681 * gnulib/import/m4/gnulib-comp.m4: Update.
4683 2014-05-16 Pierre Muller <muller@sourceware.org>
4684 Yao Qi <yao@codesourcery.com>
4686 * valprint.c (print_wchar): Move the code on checking whether
4687 W is a printable wide char to the default branch of switch
4688 statement below. Call wchar_printable instead of gdb_iswprint.
4690 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4692 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4693 ldr.w and ldrd instructions.
4695 2014-05-15 Doug Evans <dje@google.com>
4697 * dwarf2read.c (read_structure_type): Delete outdated comments.
4699 2014-05-14 Tom Tromey <tromey@redhat.com>
4701 * macrocmd.c (print_macro_definition): Reindent.
4703 2014-05-13 Doug Evans <xdje42@gmail.com>
4705 * python/py-cmd.c (cmdpy_completer): Add comment.
4706 (completers): Make const.
4708 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4710 * infrun.c (resume): Remove should_resume (unused). Move up
4711 declaration of resume_ptid.
4713 2014-05-13 Tom Tromey <tromey@redhat.com>
4715 * language.h (unop_type_check): Remove.
4716 (binop_type_check): Don't declare.
4718 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4720 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4721 call to regcache_raw_collect.
4723 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4725 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4726 mi_console->quote as the quoting character.
4728 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4730 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4732 2014-04-29 Tom Tromey <tromey@redhat.com>
4734 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4735 "show debug varobj".
4737 2014-05-07 Kyle McMartin <kyle@redhat.com>
4739 Pushed by Joel Brobecker <brobecker@adacore.com>.
4740 * aarch64-tdep.c (aarch64_software_single_step): New function.
4741 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4742 with aarch64_software_single_step.
4744 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4748 2014-05-05 Keith Seitz <keiths@redhat.com>
4750 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4751 variable or history value is successfully parsed.
4753 2014-05-05 Yao Qi <yao@codesourcery.com>
4754 Pedro Alves <palves@redhat.com>
4756 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4757 address of blocks that intersects the requested range. Trim
4758 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4760 * ctf.c (ctf_xfer_partial): Likewise.
4762 2014-05-05 Yao Qi <yao@codesourcery.com>
4764 * printcmd.c (display_command): Remove the check to
4765 target_has_execution.
4767 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4769 * ppcobsd-nat.c: Include "obsd-nat.h".
4770 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4772 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4774 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4776 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4777 and 16-bit signed and unsigned arguments. Update comment.
4778 (stap_parse_probe_arguments): Extend code to handle such
4779 arguments. Use warning instead of complaint to notify about
4780 unrecognized bitness.
4782 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4784 PR breakpoints/16889
4785 * stap-probe.c (stap_parse_probe_arguments): Simplify
4786 check for non-prefixed probes (i.e., probes whose
4787 arguments do not start with "N@"). Always set the
4788 argument type to a sane value.
4790 2014-05-01 David Taylor <dtaylor@emc.com>
4792 * remote.c (compare_sections_command): Add -r option to compare
4793 all loadable read-only sections.
4795 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4797 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4798 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4800 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4801 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4802 Remove unused CORE_ADDR argument. Update all callers.
4804 2014-04-29 Pedro Alves <palves@redhat.com>
4806 * remote.c (struct packet_config) <detect>: Extend comment.
4807 (add_packet_config_cmd): Don't set the config's detect or support
4809 (init_all_packet_configs): Also initialize the config's 'detect'
4811 (reset_all_packet_configs_support): New function.
4812 (remote_open_1): Call reset_all_packet_configs_support instead of
4813 init_all_packet_configs.
4814 (_initialize_remote): Initialize all packet configs. Assert that
4815 all packets have an associated command, except a few known
4818 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4820 * dwarf2read.c (read_subrange_type): Handle dynamic
4821 DW_AT_lower_bound attributes.
4823 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4825 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4826 dynamic bounds before computing its upper bound.
4827 (ada_discrete_type_low_bound): Same as above with the lower bound.
4829 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4831 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4832 range types. Adjust the array handling implementation to
4833 take advantage of this change.
4834 (resolve_dynamic_range): New function, mostly extracted from
4835 resolve_dynamic_bounds.
4836 (resolve_dynamic_array): New function, mostly extracted from
4837 resolve_dynamic_bounds.
4838 (resolve_dynamic_bounds): Delete.
4839 (resolve_dynamic_type): Reimplement. Add handling of
4840 TYPE_CODE_RANGE types.
4842 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4844 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4845 handling of parallel ___XA types.
4847 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4849 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4850 unnecessary second call to static_unwrap_type.
4852 2014-04-27 Hui Zhu <hui@codesourcery.com>
4854 * stack.c (print_frame_info): Call do_gdb_disassembly with
4855 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4857 2014-04-26 Doug Evans <xdje42@gmail.com>
4859 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4861 2014-04-25 Pedro Alves <palves@redhat.com>
4864 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4865 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4866 and newline from built string.
4867 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4868 (linux_ptrace_attach_fail_reason): ... this.
4869 * linux-nat.c (linux_nat_attach): Adjust to use
4870 linux_ptrace_attach_fail_reason.
4872 2014-04-25 Pedro Alves <palves@redhat.com>
4874 * remote.c (struct remote_state): Remove multi_process_aware,
4875 non_stop_aware, cond_tracepoints, cond_breakpoints,
4876 breakpoint_commands, fast_tracepoints, static_tracepoints,
4877 install_in_trace, disconnected_tracing,
4878 enable_disable_tracepoints, string_tracing, and
4879 augmented_libraries_svr4_read fields.
4880 (remote_multi_process_p): Move further below in the file.
4881 (struct packet_config): Add comments.
4882 (update_packet_config): Delete function.
4883 (show_packet_config_cmd): Use packet_config_support.
4884 (add_packet_config_cmd): Use NULL as set callback.
4885 (packet_ok): "set remote foo-packet"-style commands no longer
4886 change config->supported -- adjust.
4887 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4888 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4889 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4890 (PACKET_QNonStop, PACKET_multiprocess_feature)
4891 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4892 (PACKET_DisconnectedTracing_feature)
4893 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4894 (set_remote_protocol_packet_cmd): Delete function.
4895 (packet_config_support, packet_support): New functions.
4896 (set_remote_protocol_Z_packet_cmd): Don't call
4897 update_packet_config.
4898 (remote_query_attached, remote_pass_signals)
4899 (remote_program_signals, remote_threads_info)
4900 (remote_threads_extra_info, remote_start_remote): Use
4902 (remote_start_remote): Use packet_config_support and
4904 (init_all_packet_configs): Set all packets to unknown support,
4905 instead of calling update_packet_config.
4906 (remote_check_symbols): Use packet_support.
4907 (remote_supported_packet): Unconditionally set the packet config's
4909 (remote_multi_process_feature, remote_non_stop_feature)
4910 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4911 (remote_breakpoint_commands_feature)
4912 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4913 (remote_install_in_trace_feature)
4914 (remote_disconnected_tracing_feature)
4915 (remote_enable_disable_tracepoint_feature)
4916 (remote_string_tracing_feature)
4917 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4918 (remote_protocol_features): Adjust to use remote_supported_packet
4919 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4920 "ConditionalTracepoints", "ConditionalBreakpoints",
4921 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4922 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4923 "EnableDisableTracepoints", and "tracenz".
4924 (remote_query_supported): Use packet_support.
4925 (remote_open_1): Adjust.
4926 (extended_remote_attach_1): Use packet_support. Switch on the
4927 result of packet_ok instead of checking whether the packet ended
4929 (remote_vcont_resume): Use packet_support.
4930 (remote_resume, remote_stop_ns, fetch_register_using_p)
4931 (remote_prepare_to_store, store_register_using_P)
4932 (check_binary_download, remote_write_bytes): Use packet_support.
4933 (remote_vkill): Use packet_support. Switch on the result of
4934 packet_ok instead of checking whether the packet ended up
4936 (extended_remote_supports_disable_randomization): Use
4938 (extended_remote_run): Switch on the result of packet_ok instead
4939 of checking whether the packet ended up disabled.
4940 (remote_insert_breakpoint, remote_remove_breakpoint)
4941 (remote_insert_watchpoint, remote_remove_watchpoint)
4942 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4944 (remote_search_memory): Use packet_config_support.
4945 (remote_get_thread_local_address, remote_get_tib_address)
4946 (remote_hostio_send_command, remote_can_execute_reverse): Use
4948 (remote_supports_cond_tracepoints)
4949 (remote_supports_cond_breakpoints)
4950 (remote_supports_fast_tracepoints)
4951 (remote_supports_static_tracepoints)
4952 (remote_supports_install_in_trace)
4953 (remote_supports_enable_disable_tracepoint)
4954 (remote_supports_string_tracing)
4955 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4956 the packet config says the feature is enabled or disabled.
4957 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4958 (remote_get_trace_status): Use packet_support.
4959 (remote_set_disconnected_tracing): Adjust to check whether the
4960 feature is enabled with packet_support.
4961 (remote_set_trace_buffer_size, remote_use_agent)
4962 (remote_can_use_agent, remote_supports_btrace): Use
4964 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4965 Use packet_config_support.
4966 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4967 the packet config says the feature is enabled or disabled.
4968 (set_range_stepping): Use packet_support.
4970 2014-04-25 Tom Tromey <tromey@redhat.com>
4972 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4975 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4977 * NEWS: Mention support for C99 variable length arrays.
4979 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4981 * ada-lang.c (standard_exc): Expand introductory comment.
4983 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4984 Walfred Tedeschi <walfred.tedeschi@intel.com>
4986 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4988 (amd64_linux_read_description): Add code to handle AVX512 xstate
4989 mask and return respective tdesc.
4990 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4991 and features/i386/x32-avx512-linux.c.
4992 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4993 (amd64_linux_core_read_description): Add code to handle AVX512
4994 xstate mask and return respective tdesc.
4995 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4996 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4998 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4999 (tdesc_amd64_avx512_linux): New prototype.
5000 (tdesc_x32_avx512_linux): Likewise.
5001 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5002 features/i386/x32-avx512.c.
5003 (amd64_ymm_avx512_names): New register names for pseudo
5005 (amd64_ymmh_avx512_names): New register names for raw registers
5007 (amd64_k_names): New register names for K registers.
5008 (amd64_zmmh_names): New register names for ZMM raw registers.
5009 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5010 (amd64_xmm_avx512_names): New register names for XMM16-31
5012 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5014 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5015 if feature is present.
5016 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5017 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5018 (AMD64_NUM_REGS): Adjust to new number of registers.
5019 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5020 registers supplied via XSTATE by AVX512 registers.
5021 (i386_linux_read_description): Add case for AVX512.
5022 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5023 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5024 (i386_linux_core_read_description): Add case for AVX512.
5025 (i386_linux_init_abi): Install supported register note section
5027 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5029 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5030 registers to be number of zmm7h + 1.
5031 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5032 * i386-tdep.c: Include features/i386/i386-avx512.c.
5033 (i386_zmm_names): Add ZMM pseudo register names array.
5034 (i386_zmmh_names): Add ZMM raw register names array.
5035 (i386_k_names): Add K raw register names array.
5036 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5037 registers. AVX512 has 16 more ZMM registers than there are YMM
5039 (i386_zmmh_regnum_p): Add function to look up register number of
5041 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5042 (i386_k_regnum_p): Likewise for K raw registers.
5043 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5044 registers added by AVX512.
5045 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5046 registers added by AVX512.
5047 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5049 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5050 (i386_pseudo_register_name): Add ZMM pseudo registers.
5051 (i386_zmm_type): Construct and return vector registers type for ZMM
5053 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5054 ZMM0-31 pseudo registers and K registers.
5055 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5056 and YMM16-31 registers from register cache.
5057 (i386_pseudo_register_write): Add code to write K, ZMM and
5059 (i386_register_reggroup_p): Add code to include/exclude AVX512
5060 registers in/from respective register groups.
5061 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5062 registers if feature is present in xcr0.
5063 (i386_gdbarch_init): Add code to initialize AVX512 feature
5064 variables in tdep structure, wire in pseudo registers and call
5065 initialize_tdesc_i386_avx512.
5066 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5068 (i386_regnum): Add AVX512 registers.
5069 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5070 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5071 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5072 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5074 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5075 (i386_ymm_avx512_regnum_p): Likewise.
5076 (i386_k_regnum_p): Likewise.
5077 (i386_zmm_regnum_p): Likewise.
5078 (i386_zmmh_regnum_p): Likewise.
5079 * i387-tdep.c : Update year in copyright notice.
5080 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5082 (XSAVE_YMM_AVX512_ADDR): New macro.
5083 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5085 (XSAVE_XMM_AVX512_ADDR): New macro.
5086 (xsave_avx512_k_offset): New table for K register offsets in
5088 (XSAVE_AVX512_K_ADDR): New macro.
5089 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5091 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5092 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5094 (i387_collect_xsave): Add code to collect AVX512 registers from
5096 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5097 of XMM16-31 registers.
5098 (I387_NUM_K_REGS): New define for number of K registers.
5099 (I387_K0_REGNUM): New define for K0 register number.
5100 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5101 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5102 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5104 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5105 (I387_XMM16_REGNUM): New define for XMM16 register number.
5106 (I387_YMM0_REGNUM): New define for YMM0 register number.
5107 (I387_KEND_REGNUM): New define for last K register number.
5108 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5109 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5111 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5113 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5115 * features/Makefile: Add AVX512 related files.
5116 * features/i386/32bit-avx512.xml: New file.
5117 * features/i386/64bit-avx512.xml: Likewise.
5118 * features/i386/amd64-avx512-linux.c: Likewise.
5119 * features/i386/amd64-avx512-linux.xml: Likewise.
5120 * features/i386/amd64-avx512.c: Likewise.
5121 * features/i386/amd64-avx512.xml: Likewise.
5122 * features/i386/i386-avx512-linux.c: Likewise.
5123 * features/i386/i386-avx512-linux.xml: Likewise.
5124 * features/i386/i386-avx512.c: Likewise.
5125 * features/i386/i386-avx512.xml: Likewise.
5126 * features/i386/x32-avx512-linux.c: Likewise.
5127 * features/i386/x32-avx512-linux.xml: Likewise.
5128 * features/i386/x32-avx512.c: Likewise.
5129 * features/i386/x32-avx512.xml: Likewise.
5130 * regformats/i386/amd64-avx512-linux.dat: New file.
5131 * regformats/i386/amd64-avx512.dat: Likewise.
5132 * regformats/i386/i386-avx512-linux.dat: Likewise.
5133 * regformats/i386/i386-avx512.dat: Likewise.
5134 * regformats/i386/x32-avx512-linux.dat: Likewise.
5135 * regformats/i386/x32-avx512.dat: Likewise.
5136 * NEWS: Add note about new support for AVX512.
5139 2014-04-23 Pedro Alves <palves@redhat.com>
5141 * breakpoint.c (insert_bp_location): Tolerate errors if the
5142 breakpoint is set in a user-loaded objfile.
5143 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5144 location is marked shlib_disabled. If the breakpoint is set in a
5145 user-loaded objfile is a GDB-side memory breakpoint, validate it
5146 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5147 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5149 * mem-break.c (memory_validate_breakpoint): New function.
5150 * objfiles.c (userloaded_objfile_contains_address_p): New
5152 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5153 * target.h (memory_validate_breakpoint): New declaration.
5155 2014-04-23 Pedro Alves <palves@redhat.com>
5157 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5158 the breakpoint is set in a shared library, only suppress
5159 errors for software breakpoints, not hardware breakpoints.
5161 2014-04-22 Pedro Alves <palves@redhat.com>
5163 * infrun.c (schedlock_applies): New function, factored out from
5164 find_thread_needs_step_over.
5165 (find_thread_needs_step_over): Use it.
5166 (switch_back_to_stepped_thread): Always clear trap_expected if the
5167 step over is finished. Return early if scheduler locking applies.
5168 Look for the stepping thread and a potential step-over thread with
5170 (currently_stepping_or_nexting_callback): Delete.
5172 2014-04-22 Nick Clifton <nickc@redhat.com>
5174 * NEWS: Mention that ARM sim now supports tracing.
5176 2014-04-22 Yao Qi <yao@codesourcery.com>
5178 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5180 * tracefile.c (tracefile_fetch_registers): ... it. New
5182 * tracefile.h (tracefile_fetch_registers): Declare.
5183 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5184 tracefile_fetch_registers.
5186 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5189 * windows-nat.c (thread_rec): Don't display a warning when
5190 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5191 fails for any reason, set th->suspended to -1, so that we don't
5192 try to resume such a thread. Also, don't return NULL in these
5193 cases, to avoid completely ruin the session due to "PC register is
5194 not available" error.
5195 (do_windows_fetch_inferior_registers): Check errors in
5196 GetThreadContext call.
5197 (windows_continue): Accept an additional argument KILLED; if not
5198 zero, ignore errors in the SetThreadContext call, since the
5199 inferior was killed and is shutting down.
5200 (windows_resume, get_windows_debug_event)
5201 (windows_create_inferior, windows_mourn_inferior)
5202 (windows_kill_inferior): All callers of windows_continue changed
5203 to adjust to its new calling sequence.
5205 2014-04-19 Yao Qi <yao@codesourcery.com>
5207 * ctf.c (ctf_open): Call post_create_inferior.
5209 2014-04-19 Yao Qi <yao@codesourcery.com>
5211 * ctf.c (handle_id): New static variable.
5212 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5213 value. Get the declaration of event "register" and get length
5214 of field "contents".
5216 2014-04-19 Yao Qi <yao@codesourcery.com>
5218 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5220 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5222 * valops.c (oload_method_static): Remove unnecessary argument
5223 METHOD. Update all callers.
5225 2014-04-18 Pedro alves <palves@redhat.com>
5226 Tom Tromey <tromey@redhat.com>
5229 * frame.c (get_prev_frame_1): Rename to ...
5230 (get_prev_frame_always): ... this, and make extern. Adjust.
5231 (skip_artificial_frames): Use get_prev_frame_always.
5232 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5233 (get_frame_unwind_stop_reason): Adjust to rename.
5234 * frame.h (get_prev_frame_always): Declare.
5235 * inline-frame.c: Include frame.h.
5236 (inline_frame_this_id): Use get_prev_frame_always.
5238 2014-04-18 Tristan Gingold <gingold@adacore.com>
5240 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5241 code by using bfd_mach_o_get_base_address.
5243 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5245 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5246 (spu_ax_pseudo_register_collect): New function.
5247 (spu_ax_pseudo_register_push_stack): Likewise.
5248 (spu_dwarf_reg_to_regnum): Likewise.
5249 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5251 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5253 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5254 Replace FRAME argument with FRAME_ID.
5255 * gdbarch.c, gdbarch.h: Regenerate.
5256 * findvar.c (default_value_from_register): Add GDBARCH argument;
5257 replace FRAME by FRAME_ID. No longer call get_frame_id.
5258 (value_from_register): Update call to gdbarch_value_from_register.
5259 * value.h (default_value_from_register): Update prototype.
5260 * s390-linux-tdep.c (s390_value_from_register): Update interface
5261 and call to default_value_from_register.
5262 * spu-tdep.c (spu_value_from_register): Likewise.
5264 * findvar.c (address_from_register): Remove TYPE argument.
5265 Do not call value_from_register; use gdbarch_value_from_register
5266 with null_frame_id instead.
5267 * value.h (address_from_register): Update prototype.
5268 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5269 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5270 address_from_register interface change.
5272 2014-04-17 Yao Qi <yao@codesourcery.com>
5274 * gdbtypes.h: Update comments to link to types and macros'
5277 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5279 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5281 2014-04-16 Keith Seitz <keiths@redhat.com>
5284 * dwarf2read.c (skip_one_die): Check that all relative-offset
5285 sibling DIEs fall within range of the current reader's buffer.
5286 (read_partial_die): Likewise.
5288 2014-04-16 Keith Seitz <keiths@redhat.com>
5291 * cp-namespace.c (lookup_symbol_file): If the type name of
5292 `this' is NULL, return immediately.
5294 2014-04-14 Keith Seitz <keiths@redhat.com>
5297 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5298 from symbol_matches_domain in symtab.c. All local callers
5299 of symbol_matches_domain updated.
5300 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5301 search STRUCT_DOMAIN.
5302 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5303 independently. standard_lookup will do that automatically.
5304 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5305 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5306 (cp_lookup_symbol_in_namespace): Likewise.
5307 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5308 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5309 may return a STRUCT_DOMAIN match.
5310 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5311 * cp-support.c: Include language.h.
5312 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5314 * psymtab.c (match_partial_symbol): Compare the requested
5315 domain with the symbol's domain directly.
5316 (lookup_partial_symbol): Likewise.
5317 * symtab.c (lookup_symbol_in_language): Explain when/why
5318 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5319 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5320 appropriate languages.
5321 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5322 and moved to ada-lang.c
5323 (lookup_block_symbol): Explain that this function only returns
5324 symbol matching the requested DOMAIN.
5325 Compare the requested domain with the symbol's domain directly.
5326 (iterate_over_symbols): Compare the requested domain with the
5327 symbol's domain directly.
5328 * symtab.h (symbol_matches_domain): Remove.
5330 2014-04-14 Tom Tromey <tromey@redhat.com>
5333 * c-exp.y (type_aggregate_p): New function.
5334 (qualified_name, classify_inner_name): Use it.
5335 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5336 and TYPE_TARGET_TYPE of an enum type.
5337 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5339 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5340 handle TYPE_DECLARED_CLASS.
5341 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5343 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5344 * valops.c (enum_constant_from_type): New function.
5345 (value_aggregate_elt): Use it.
5346 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5349 2014-04-14 Tom Tromey <tromey@redhat.com>
5351 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5352 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5354 * value.h (value_aggregate_elt): Update.
5356 2014-04-14 Tom Tromey <tromey@redhat.com>
5358 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5360 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5362 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5363 (evaluate_subexp_standard): Pass noside argument.
5364 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5365 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5366 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5367 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5368 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5370 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5372 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5373 points to a constant blob.
5375 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5377 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5378 property and store it as the high bound and flag the range accordingly.
5379 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5380 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5381 * gdbtypes.h (enum range_flags): New enum.
5382 (struct range_bounds): Add flags member.
5384 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5386 * c-typeprint.c (c_type_print_varspec_suffix): Added
5387 check for not yet resolved high bound. If unresolved, print
5388 "variable length" string to the console instead of random
5391 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5393 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5395 (ada_template_to_fixed_record_type_1): Likewise.
5396 (ada_to_fixed_type_1): Likewise.
5397 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5398 (cp_print_value): Likewise.
5399 * d-valprint.c (dynamic_array_type): Likewise.
5400 * findvar.c (address_of_variable): Likewise.
5401 * jv-valprint.c (java_value_print): Likewise.
5402 * valops.c (value_ind): Likewise.
5403 * value.c (coerce_ref): Likewise.
5405 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5407 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5408 value and retrieve the dynamic type size.
5410 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5412 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5413 passed to sizeof is dynamic evaluate the argument to compute the length.
5415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5416 Joel Brobecker <brobecker@adacore.com>
5418 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5419 (dwarf2_evaluate_property): New function.
5420 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5421 * dwarf2read.c (attr_to_dynamic_prop): New function.
5422 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5424 * gdbtypes.c: Include dwarf2loc.h.
5425 (is_dynamic_type): New function.
5426 (resolve_dynamic_type): New function.
5427 (resolve_dynamic_bounds): New function.
5428 (get_type_length): New function.
5429 (check_typedef): Use get_type_length to compute type length.
5430 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5431 (TYPE_LOW_BOUND_KIND): New macro.
5432 (is_dynamic_type): New function prototype.
5433 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5434 to resolve dynamic properties of the type. Update comment.
5435 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5437 2014-04-14 Richard Henderson <rth@redhat.com>
5439 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5441 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5442 Doug Evans <xdje42@gmail.com>
5444 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5445 dereference TYPE_CODE_REF values.
5447 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5449 Revert the following changes due to regressions:
5451 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5452 (dwarf2_evaluate_property): New function.
5453 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5454 * dwarf2read.c (attr_to_dynamic_prop): New function.
5455 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5457 * gdbtypes.c: Include dwarf2loc.h.
5458 (is_dynamic_type): New function.
5459 (resolve_dynamic_type): New function.
5460 (resolve_dynamic_bounds): New function.
5461 (get_type_length): New function.
5462 (check_typedef): Use get_type_length to compute type length.
5463 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5464 (TYPE_LOW_BOUND_KIND): New macro.
5465 (is_dynamic_type): New function prototype.
5466 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5467 to resolve dynamic properties of the type. Update comment.
5468 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5470 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5471 passed to sizeof is dynamic evaluate the argument to compute the length.
5473 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5474 value and retrieve the dynamic type size.
5476 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5477 (ada_template_to_fixed_record_type_1): Likewise.
5478 (ada_to_fixed_type_1): Likewise.
5479 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5480 (cp_print_value): Likewise.
5481 * d-valprint.c (dynamic_array_type): Likewise.
5482 * eval.c (evaluate_subexp_with_coercion): Likewise.
5483 * findvar.c (address_of_variable): Likewise.
5484 * jv-valprint.c (java_value_print): Likewise.
5485 * valops.c (value_ind): Likewise.
5486 * value.c (coerce_ref): Likewise.
5488 * c-typeprint.c (c_type_print_varspec_suffix): Added
5489 check for not yet resolved high bound. If unresolved, print
5490 "variable length" string to the console instead of random
5493 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5494 property and store it as the high bound and flag the range accordingly.
5495 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5496 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5497 * gdbtypes.h (enum range_flags): New enum.
5498 (struct range_bounds): Add flags member.
5500 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5501 points to a constant blob.
5503 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5504 (evaluate_subexp_standard): Pass noside argument.
5505 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5506 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5507 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5508 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5509 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5511 2014-04-11 Keith Seitz <keiths@redhat.com>
5514 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5515 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5518 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5520 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5521 (evaluate_subexp_standard): Pass noside argument.
5522 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5523 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5524 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5525 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5526 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5528 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5530 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5531 points to a constant blob.
5533 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5535 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5536 property and store it as the high bound and flag the range accordingly.
5537 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5538 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5539 * gdbtypes.h (enum range_flags): New enum.
5540 (struct range_bounds): Add flags member.
5542 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5544 * c-typeprint.c (c_type_print_varspec_suffix): Added
5545 check for not yet resolved high bound. If unresolved, print
5546 "variable length" string to the console instead of random
5549 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5552 (ada_template_to_fixed_record_type_1): Likewise.
5553 (ada_to_fixed_type_1): Likewise.
5554 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5555 (cp_print_value): Likewise.
5556 * d-valprint.c (dynamic_array_type): Likewise.
5557 * eval.c (evaluate_subexp_with_coercion): Likewise.
5558 * findvar.c (address_of_variable): Likewise.
5559 * jv-valprint.c (java_value_print): Likewise.
5560 * valops.c (value_ind): Likewise.
5561 * value.c (coerce_ref): Likewise.
5563 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5565 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5566 value and retrieve the dynamic type size.
5568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5570 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5571 passed to sizeof is dynamic evaluate the argument to compute the length.
5573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5575 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5576 (dwarf2_evaluate_property): New function.
5577 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5578 * dwarf2read.c (attr_to_dynamic_prop): New function.
5579 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5581 * gdbtypes.c: Include dwarf2loc.h.
5582 (is_dynamic_type): New function.
5583 (resolve_dynamic_type): New function.
5584 (resolve_dynamic_bounds): New function.
5585 (get_type_length): New function.
5586 (check_typedef): Use get_type_length to compute type length.
5587 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5588 (TYPE_LOW_BOUND_KIND): New macro.
5589 (is_dynamic_type): New function prototype.
5590 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5591 to resolve dynamic properties of the type. Update comment.
5592 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5594 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5596 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5597 declaring high/low bounds and change uses accordingly. Call
5598 create_range_type instead of create_static_range_type.
5599 * gdbtypes.c (create_range_type): New function.
5600 (create_range_type): Convert bounds into struct bound_prop and pass
5601 them to create_range_type.
5602 * gdbtypes.h (struct bound_prop): New struct.
5603 (create_range_type): New function prototype.
5604 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5605 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5606 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5608 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5610 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5612 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5613 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5614 * ada-lang.c: All uses of create_range_type updated.
5615 * coffread.c: All uses of create_range_type updated.
5616 * dwarf2read.c: All uses of create_range_type updated.
5617 * f-exp.y: All uses of create_range_type updated.
5618 * m2-valprint.c: All uses of create_range_type updated.
5619 * mdebugread.c: All uses of create_range_type updated.
5620 * stabsread.c: All uses of create_range_type updated.
5621 * valops.c: All uses of create_range_type updated.
5622 * valprint.c: All uses of create_range_type updated.
5624 2014-04-10 Pedro Alves <palves@redhat.com>
5626 * breakpoint.c (single_step_breakpoints)
5627 (single_step_gdbarch): Move up in the file.
5628 (one_breakpoint_xfer_memory): New function, factored out from ...
5629 (breakpoint_xfer_memory): ... here. Also process single-step
5632 2014-04-09 Tristan Gingold <gingold@adacore.com>
5634 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5636 (darwin_decode_exception_message): Free port only after use.
5638 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5640 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5641 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5642 when setting the size of call_length.
5644 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5646 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5647 dereference TYPE_CODE_REF values.
5649 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5651 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5652 end of warning message.
5654 2014-04-03 Doug Evans <dje@google.com>
5656 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5657 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5659 2014-04-02 Alan Modra <amodra@gmail.com>
5661 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5662 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5663 (struct symbol_file_add_from_memory_args): Add size field.
5664 (find_vdso_size): New function.
5665 (add_vsyscall_page): Attempt to find vdso size.
5667 2014-04-01 Doug Evans <dje@google.com>
5669 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5671 2014-04-01 Tristan Gingold <gingold@adacore.com>
5673 * darwin-nat.c (darwin_encode_reply): Add prototype.
5674 (darwin_decode_exception_message): Reply to unknown inferiors.
5675 (darwin_decode_message): Handle message by id. Ignore message
5676 to unknown inferior.
5677 (darwin_wait): Discard unknown messages, add debug trace.
5679 2014-03-31 Doug Evans <dje@google.com>
5681 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5684 2014-03-31 Doug Evans <dje@google.com>
5686 New option "set print symbol-loading".
5688 * solib.c (solib_read_symbols): Only print symbol loading messages
5690 (solib_add): If symbol loading is in "brief" mode, notify user
5691 symbols are being loaded.
5692 (reload_shared_libraries_1): Ditto.
5693 * symfile.c (print_symbol_loading_off): New static global.
5694 (print_symbol_loading_brief): New static global.
5695 (print_symbol_loading_full): New static global.
5696 (print_symbol_loading_enums): New static global.
5697 (print_symbol_loading): New static global.
5698 (print_symbol_loading_p): New function.
5699 (symbol_file_add_with_addrs): Only print symbol loading messages
5701 (_initialize_symfile): Register "print symbol-loading" set/show
5703 * symfile.h (print_symbol_loading_p): Declare.
5705 2014-03-30 Doug Evans <xdje42@gmail.com>
5707 * infrun.c (set_last_target_status): New function.
5708 (handle_inferior_event): Call it.
5710 2014-03-30 Doug Evans <xdje42@gmail.com>
5712 * inferior.h (enum stop_kind): Improve comment.
5714 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5716 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5717 a reference, strip the reference layer before calling
5718 the lang_ops value_has_mutated callback.
5720 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5722 Remove some globals from our parser.
5723 * language.c (unk_lang_parser): Add "struct parser_state"
5725 * language.h (struct language_defn) <la_parser>: Likewise.
5726 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5727 (initialize_expout): Add "struct parser_state" argument.
5728 Rewrite function to use the parser state.
5729 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5730 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5731 write_exp_elt_longcst, write_exp_elt_dblcst,
5732 write_exp_elt_decfloatcst, write_exp_elt_type,
5733 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5734 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5735 write_dollar_variable): Likewise.
5736 (parse_exp_in_context_1): Use parser state.
5737 (insert_type_address_space): Add "struct parser_state" argument.
5739 (increase_expout_size): New function.
5740 * parser-defs.h: Forward declare "struct language_defn" and
5741 "struct parser_state".
5742 (expout, expout_size, expout_ptr): Remove extern declarations.
5743 (parse_gdbarch, parse_language): Rewrite macro declarations to
5744 accept the parser state.
5745 (struct parser_state): New struct.
5746 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5747 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5748 write_exp_elt_decfloatcst, write_exp_elt_type,
5749 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5750 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5751 write_exp_msymbol, write_dollar_variable,
5752 mark_struct_expression, insert_type_address_space): Add "struct
5753 parser_state" argument.
5754 (increase_expout_size): New function.
5755 * utils.c (do_clear_parser_state): New function.
5756 (make_cleanup_clear_parser_state): Likewise.
5757 * utils.h (make_cleanup_clear_parser_state): New function
5759 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5760 Update calls to write_exp* in order to pass the parser state.
5761 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5762 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5763 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5764 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5765 * stap-probe.c (stap_parse_register_operand): Likewise.
5766 (stap_parse_single_operand): Likewise.
5767 (stap_parse_argument_1): Likewise.
5768 (stap_parse_argument): Use parser state.
5769 * stap-probe.h: Include "parser-defs.h".
5770 (struct stap_parse_info) <pstate>: New field.
5771 * c-exp.y (parse_type): Rewrite to use parser state.
5772 (yyparse): Redefine to c_parse_internal.
5773 (pstate): New global variable.
5774 (parse_number): Add "struct parser_state" argument.
5775 (write_destructor_name): Likewise.
5776 (type_exp): Update calls to write_exp* and similars in order to
5778 (exp1, exp, variable, qualified_name, space_identifier,
5779 typename, typebase): Likewise.
5780 (write_destructor_name, parse_number, lex_one_token,
5781 classify_name, classify_inner_name, c_parse): Add "struct
5782 parser_state" argument. Update function to use parser state.
5783 * c-lang.h: Forward declare "struct parser_state".
5784 (c_parse): Add "struct parser_state" argument.
5785 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5786 (yyparse): Redefine macro to ada_parse_internal.
5787 (pstate): New variable.
5788 (write_int, write_object_renaming, write_var_or_type,
5789 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5790 type_int, type_long, type_long_long, type_float, type_double,
5791 type_long_double, type_char, type_boolean, type_system_address):
5792 Add "struct parser_state" argument.
5793 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5794 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5795 var_or_type, aggregate, aggregate_component_list,
5796 positional_list, others, component_group,
5797 component_associations): Update calls to write_exp* and similar
5798 functions in order to use parser state.
5799 (ada_parse, write_var_from_sym, write_int,
5800 write_exp_op_with_string, write_object_renaming,
5801 find_primitive_type, write_selectors, write_ambiguous_var,
5802 write_var_or_type, write_name_assoc, type_int, type_long,
5803 type_long_long, type_float, type_double, type_long_double,
5804 type_char, type_boolean, type_system_address): Add "struct
5805 parser_state" argument. Adjust function to use parser state.
5806 * ada-lang.c (parse): Likewise.
5807 * ada-lang.h: Forward declare "struct parser_state".
5808 (ada_parse): Add "struct parser_state" argument.
5809 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5810 calls to both functions.
5811 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5813 (yyparse): Redefine macro to f_parse_internal.
5814 (pstate): New variable.
5815 (parse_number): Add "struct parser_state" argument.
5816 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5817 and similars in order to use parser state.
5818 (parse_number): Adjust code to use parser state.
5820 (f_parse): New function.
5821 * f-lang.h: Forward declare "struct parser_state".
5822 (f_parse): Add "struct parser_state" argument.
5823 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5825 (yyparse): Redefine macro for java_parse_internal.
5826 (pstate): New variable.
5827 (push_expression_name, push_expression_name, insert_exp): Add
5828 "struct parser_state" argument.
5829 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5830 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5831 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5832 PostIncrementExpression, PostDecrementExpression,
5833 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5834 UnaryExpressionNotPlusMinus, CastExpression,
5835 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5836 RelationalExpression, EqualityExpression, AndExpression,
5837 ExclusiveOrExpression, InclusiveOrExpression,
5838 ConditionalAndExpression, ConditionalOrExpression,
5839 ConditionalExpression, Assignment, LeftHandSide): Update
5840 calls to write_exp* and similars in order to use parser state.
5841 (parse_number): Ajust code to use parser state.
5843 (java_parse): New function.
5844 (push_variable): Add "struct parser_state" argument. Adjust
5845 code to user parser state.
5846 (push_fieldnames, push_qualified_expression_name,
5847 push_expression_name, insert_exp): Likewise.
5848 * jv-lang.h: Forward declare "struct parser_state".
5849 (java_parse): Add "struct parser_state" argument.
5850 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5852 (yyparse): Redefine macro to m2_parse_internal.
5853 (pstate): New variable.
5854 (type_exp, exp, fblock, variable, type): Update calls to
5855 write_exp* and similars to use parser state.
5857 (m2_parse): New function.
5858 * m2-lang.h: Forward declare "struct parser_state".
5859 (m2_parse): Add "struct parser_state" argument.
5860 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5861 * objc-lang.h: Forward declare "struct parser_state".
5862 (end_msglist): Add "struct parser_state" argument.
5863 * p-exp.y (parse_type): Rewrite macro to use parser state.
5864 (yyparse): Redefine macro to pascal_parse_internal.
5865 (pstate): New variable.
5866 (parse_number): Add "struct parser_state" argument.
5867 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5868 write_exp* and similars in order to use parser state.
5869 (parse_number, yylex): Adjust code to use parser state.
5870 (pascal_parse): New function.
5871 * p-lang.h: Forward declare "struct parser_state".
5872 (pascal_parse): Add "struct parser_state" argument.
5873 * go-exp.y (parse_type): Rewrite macro to use parser state.
5874 (yyparse): Redefine macro to go_parse_internal.
5875 (pstate): New variable.
5876 (parse_number): Add "struct parser_state" argument.
5877 (type_exp, exp1, exp, variable, type): Update calls to
5878 write_exp* and similars in order to use parser state.
5879 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5880 to use parser state.
5881 (go_parse): Likewise.
5882 * go-lang.h: Forward declare "struct parser_state".
5883 (go_parse): Add "struct parser_state" argument.
5885 2014-03-27 Doug Evans <dje@google.com>
5887 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5889 2014-03-27 Doug Evans <dje@google.com>
5891 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5892 Remove argument abbrev_section. All callers updated.
5894 2014-03-27 Doug Evans <dje@google.com>
5896 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5897 addr_base, ranges_base.
5899 2014-03-26 Keith Seitz <keiths@redhat.com>
5901 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5902 types, not VAR_DOMAIN.
5904 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5906 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5908 * features/nios2-linux.c: Regenerated.
5909 * features/nios2.c: Regenerated.
5911 2014-03-25 Pedro Alves <palves@redhat.com>
5913 * cli/cli-script.c (script_from_file): Force the interpreter to
5916 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5918 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5919 small stack allocation.
5921 2014-03-24 Tristan Gingold <gingold@adacore.com>
5923 * darwin-nat.c (exc_server): Remove unused prototype.
5924 (darwin_dump_message): Correctly display data on x86_64.
5925 (darwin_encode_reply): Fix style.
5926 Add comments and fix indentation.
5928 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5930 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5932 2014-03-22 Doug Evans <xdje42@gmail.com>
5934 * infcmd.c: Whitespace fixes.
5935 (interrupt_command): Merge two function comments into one.
5937 2014-03-22 Doug Evans <xdje42@gmail.com>
5939 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5942 2014-03-22 Yao Qi <yao@codesourcery.com>
5944 * remote.c (target_read_live_memory): Remove.
5945 (memory_xfer_live_readonly_partial): Rename it to
5946 remote_xfer_live_readonly_partial. Remove argument 'object'.
5947 All callers updated. Call remote_read_bytes_1
5948 instead of target_read_live_memory.
5949 * tracepoint.c (set_traceframe_number): Remove.
5950 (make_cleanup_restore_traceframe_number): Likewise .
5951 * tracepoint.h (set_traceframe_number): Remove declaration.
5952 (make_cleanup_restore_traceframe_number): Likewise.
5954 2014-03-22 Yao Qi <yao@codesourcery.com>
5956 * remote.c (remote_read_bytes): Move code on reading from the
5958 (remote_read_bytes_1): ... here. New function.
5960 2014-03-22 Yao Qi <yao@codesourcery.com>
5962 * ctf.c (ctf_xfer_partial): Check the return value of
5963 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5964 return TARGET_XFER_UNAVAILABLE.
5965 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5966 * target.c (target_read_live_memory): Move it to remote.c.
5967 (memory_xfer_live_readonly_partial): Likewise.
5968 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5969 * remote.c (target_read_live_memory): Moved from target.c.
5970 (memory_xfer_live_readonly_partial): Likewise.
5971 (remote_read_bytes): Factored out from
5972 memory_xfer_partial_1.
5974 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5976 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5979 2014-03-21 Pedro Alves <palves@redhat.com>
5981 * infrun.c (normal_stop): Extend comment.
5983 2014-03-21 Hui Zhu <hui@codesourcery.com>
5984 Pedro Alves <palves@redhat.com>
5986 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5988 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5989 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5990 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5992 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5994 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5995 `z' formatted output modifier.
5997 2014-03-20 Tom Tromey <tromey@redhat.com>
5998 Sergio Durigan Junior <sergiodj@redhat.com>
6000 * probe.c (parse_probes): Turn assert into an ordinary error.
6001 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6002 exceptions when parsing probes. Rearrange the code for clarity.
6004 2014-03-20 Tom Tromey <tromey@redhat.com>
6007 * top.c (execute_command): Only dispatch events if the command
6010 2014-03-20 Tom Tromey <tromey@redhat.com>
6013 * infcall.c: Include event-top.h.
6014 (run_inferior_call): Call async_disable_stdin if needed.
6016 2014-03-20 Pedro Alves <palves@redhat.com>
6018 * infrun.c (prepare_to_proceed): Delete.
6019 (thread_still_needs_step_over): New function.
6020 (find_thread_needs_step_over): New function.
6021 (proceed): If the current thread needs a step-over, set its
6022 steping_over_breakpoint flag. Adjust to use
6023 find_thread_needs_step_over instead of prepare_to_proceed.
6024 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6025 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6027 (switch_back_to_stepped_thread): Step over breakpoints of all
6028 threads not the stepping thread, before switching back to the
6031 2014-03-20 Pedro Alves <palves@redhat.com>
6033 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6035 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6036 * infrun.c (saved_singlestep_ptid)
6037 (stepping_past_singlestep_breakpoint): Delete.
6038 (resume): Remove stepping_past_singlestep_breakpoint handling.
6039 (proceed): Store the prev_pc of the stepping thread too.
6040 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6042 (enum infwait_states): Delete infwait_thread_hop_state.
6043 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6045 (handle_inferior_event): Adjust.
6046 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6047 handling and the thread-hop code. Before removing single-step
6048 breakpoints, check whether the thread hit a single-step breakpoint
6049 of another thread. If it did, the trap is not a random signal.
6050 (switch_back_to_stepped_thread): If the event thread hit a
6051 single-step breakpoint, unblock it before switching to the
6052 stepping thread. Handle the case of the stepped thread having
6054 (keep_going): Handle the case of the current thread moving past a
6055 single-step breakpoint.
6057 2014-03-20 Pedro Alves <palves@redhat.com>
6060 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6061 are being stepped over.
6062 (breakpoint_address_match): Make extern.
6063 * breakpoint.h (breakpoint_address_match): New declaration.
6064 * inferior.h (stepping_past_instruction_at): New declaration.
6065 * infrun.c (struct step_over_info): New type.
6066 (step_over_info): New global.
6067 (set_step_over_info, clear_step_over_info)
6068 (stepping_past_instruction_at): New functions.
6069 (handle_inferior_event): Clear the step-over info when
6070 trap_expected is cleared.
6071 (resume): Remove now stale comment.
6072 (clear_proceed_status): Clear step-over info.
6073 (proceed): Adjust step-over handling to set or clear the step-over
6074 info instead of removing all breakpoints.
6075 (handle_signal_stop): When setting up a thread-hop, don't remove
6077 (stop_stepping): Clear step-over info.
6078 (keep_going): Adjust step-over handling to set or clear step-over
6079 info and then always inserting breakpoints, instead of removing
6080 all breakpoints when stepping over one.
6082 2014-03-20 Pedro Alves <palves@redhat.com>
6084 * infrun.c (previous_inferior_ptid): Adjust comment.
6085 (deferred_step_ptid): Delete.
6086 (infrun_thread_ptid_changed, prepare_to_proceed)
6087 (init_wait_for_inferior): Adjust.
6088 (handle_signal_stop): Delete deferred_step_ptid handling.
6090 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6093 * defs.h (sync_quit_force_run): New declaration.
6094 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6095 * event-top.c (async_sigterm_handler): New declaration.
6096 (async_sigterm_token): New variable.
6097 (async_init_signals): Create also async_sigterm_token.
6098 (async_sigterm_handler): New function.
6099 (sync_quit_force_run): New variable.
6100 (handle_sigterm): Replace quit_force call by other calls.
6101 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6103 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6105 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6106 offset into SPE pseudo registers.
6108 2014-03-18 Pedro Alves <palves@redhat.com>
6111 * inferior.h (print_stop_event): Declare.
6112 * infrun.c (print_stop_event): New, factored out from ...
6113 (normal_stop): ... this.
6114 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6115 of bpstat_print/print_stack_frame.
6117 2014-03-17 Tom Tromey <tromey@redhat.com>
6119 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6121 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6123 * ada-lang.c (decode_constrained_packed_array): Perform a
6124 minimal coercion for reference with coerce_ref instead of
6127 2014-03-17 Tristan Gingold <gingold@adacore.com>
6129 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6130 (darwin_solib_create_inferior_hook): Emit a warning if version
6133 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6135 * python/py-value.c (get_field_flag): Cast flag_name argument to
6136 PyObject_GetAttrString to support Python 2.4.
6138 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6140 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6141 (Global Maintainers): Remove Jan Kratochvil.
6143 2014-03-14 Pedro Alves <palves@redhat.com>
6145 * inferior.h (terminal_ours_for_output): Rename to ...
6146 (child_terminal_ours_for_output): ... this.
6147 (terminal_save_ours): Rename to ...
6148 (child_terminal_save_ours): ... this.
6149 (terminal_ours): Rename to ...
6150 (child_terminal_ours): ... this.
6151 (terminal_inferior): Rename to ...
6152 (child_terminal_inferior): ... this.
6153 (terminal_init_inferior): Rename to ...
6154 (child_terminal_init_inferior): ... this.
6155 (terminal_init_inferior_with_pgrp): Rename to ...
6156 (child_terminal_init_inferior_with_pgrp): ... this.
6157 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6158 (child_terminal_init_with_pgrp): ... this.
6159 (terminal_save_ours): Rename to ...
6160 (child_terminal_save_ours): ... this.
6161 (terminal_init_inferior): Rename to ...
6162 (child_terminal_init): ... this. Adjust.
6163 (terminal_inferior): Rename to ...
6164 (child_terminal_inferior): ... this.
6165 (terminal_ours_for_output): Rename to ...
6166 (child_terminal_ours_for_output): ... this. Adjust.
6167 (terminal_ours): Rename to ...
6168 (child_terminal_ours): ... this.
6169 (terminal_ours_1): Rename to ...
6170 (child_terminal_ours_1): ... this. Adjust.
6171 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6172 * windows-nat.c (do_initial_windows_stuff): Adjust.
6173 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6174 (gnu_terminal_init): ... this. Adjust.
6175 (gnu_target): Adjust.
6176 * inf-child.c (inf_child_target): Adjust.
6178 2014-03-13 Doug Evans <xdje42@gmail.com>
6181 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6184 2014-03-13 Doug Evans <xdje42@gmail.com>
6186 * value.c (record_latest_value): Call release_value_or_incref
6187 instead of release_value.
6189 2014-03-13 Pedro Alves <palves@redhat.com>
6191 * procfs.c (procfs_target): Don't override to_shortname,
6192 to_longname or to_doc.
6194 2014-03-13 Pedro Alves <palves@redhat.com>
6196 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6197 Unix in user visible strings.
6199 2014-03-12 Stan Shebs <stan@codesourcery.com>
6201 * gdbtypes.h: Annotate comments for Doxygen, add a page
6202 block comment with some general info.
6204 2014-03-12 Pedro Alves <palves@redhat.com>
6206 * infcmd.c (prepare_execution_command): New function, factored out
6207 from several execution commands.
6208 (run_command_1, continue_command, step_1, jump_command)
6209 (signal_command, until_command, advance_command, finish_command)
6210 (attach_command): Use prepare_execution_command.
6212 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6214 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6217 (struct arm_linux_thread_points): Removed.
6218 (struct arm_linux_process_info): New.
6219 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6220 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6221 (arm_linux_find_breakpoints_by_tid): Removed.
6222 (struct arch_lwp_info): New.
6223 (arm_linux_find_process_pid): New functions.
6224 (arm_linux_add_process): New functions.
6225 (arm_linux_process_info_get): New functions.
6226 (arm_linux_forget_process): New function.
6227 (arm_linux_get_debug_reg_state): New function.
6228 (struct update_registers_data): New.
6229 (update_registers_callback): New function.
6230 (arm_linux_insert_hw_breakpoint1): Updated.
6231 (arm_linux_remove_hw_breakpoint1): Updated.
6232 (arm_linux_insert_hw_breakpoint): Updated.
6233 (arm_linux_remove_hw_breakpoint): Updated.
6234 (arm_linux_insert_watchpoint): Updated.
6235 (arm_linux_remove_watchpoint): Updated.
6236 (arm_linux_new_thread): Updated.
6237 (arm_linux_prepare_to_resume): New function.
6238 (arm_linux_new_fork): New function.
6239 (_initialize_arm_linux_nat): Updated.
6241 2014-03-12 Pedro Alves <palves@redhat.com>
6243 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6245 2014-03-12 Tom Tromey <tromey@redhat.com>
6247 * inf-child.c (return_zero): New function.
6248 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6249 * aix-thread.c (aix_thread_inferior_created): New function.
6250 (aix_thread_attach): Remove.
6251 (init_aix_thread_ops): Don't set to_attach.
6252 (_initialize_aix_thread): Register inferior_created observer.
6253 * corelow.c (init_core_ops): Don't set to_attach or
6255 * exec.c (init_exec_ops): Don't set to_attach or
6257 * infcmd.c (run_command_1): Use find_run_target. Make direct
6259 (attach_command): Use find_attach_target. Make direct target
6261 * record-btrace.c (init_record_btrace_ops): Don't set
6263 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6265 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6266 set to_create_inferior.
6267 * target.c (complete_target_initialization): Add assertion.
6268 (target_create_inferior): Remove.
6269 (find_default_attach, find_default_create_inferior): Remove.
6270 (find_attach_target, find_run_target): New functions.
6271 (find_default_is_async_p, find_default_can_async_p)
6272 (target_supports_non_stop, target_attach): Remove.
6273 (init_dummy_target): Don't set to_create_inferior or
6274 to_supports_non_stop.
6275 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6276 TARGET_DEFAULT_FUNC.
6277 <to_create_inferior>: Add comment.
6278 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6279 TARGET_DEFAULT_RETURN.
6280 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6281 (find_attach_target, find_run_target): Declare.
6282 (target_create_inferior): Remove.
6283 (target_has_execution_1): Update comment.
6284 (target_supports_non_stop): Remove.
6285 * target-delegates.c: Rebuild.
6287 2014-03-12 Pedro Alves <palves@redhat.com>
6289 * inf-child.h: Update comment to not mention Unix.
6291 2014-03-12 Pedro Alves <palves@redhat.com>
6293 * inf-child.c: Update top comment to not mention Unix. Add
6294 generic comment describing how this target is meant to be used.
6295 (inf_child_post_attach, inf_child_post_startup_inferior)
6296 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6299 2014-03-12 Pedro Alves <palves@redhat.com>
6301 * nto-procfs.c: Include inf-child.h.
6302 (procfs_ops): Delete global.
6303 (procfs_can_run): Delete method.
6304 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6305 target pointer instead of referencing procfs_ops.
6306 (procfs_prepare_to_store): Delete.
6307 (init_procfs_ops): Delete function.
6308 (procfs_target): New function, based on init_procfs_ops, but
6309 inherit inf_child_target.
6310 (_initialize_procfs): Use procfs_target.
6312 2014-03-12 Pedro Alves <palves@redhat.com>
6314 * windows-nat.c: Include inf-child.h.
6315 (windows_ops): Delete global.
6316 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6318 (init_windows_ops): Delete function.
6319 (windows_target): New function, based on init_windows_ops, but
6320 inherit inf_child_target.
6321 (_initialize_windows_nat): Use windows_target. Install x86
6322 specific target methods here.
6324 2014-03-10 Doug Evans <xdje42@gmail.com>
6326 * guile/guile.c (call_initialize_gdb_module): New function.
6327 (initialize_guile): Replace call to scm_init_guile with call to
6330 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6332 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6333 in call to TYPE_CODE macro.
6335 2014-03-10 Jerome Guitton <guitton@adacore.com>
6337 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6338 Resolve tagged types to full view.
6340 2014-03-10 Hui Zhu <hui@codesourcery.com>
6342 * target.h (target_insert_breakpoint): Remove "hardware" from its
6345 2014-03-07 Doug Evans <dje@google.com>
6347 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6349 2014-03-07 Doug Evans <dje@google.com>
6351 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6352 Remove unused local comp_dir_attr. Assert exactly one of
6353 stub_comp_unit_die, stub_comp_dir is non-NULL.
6355 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6357 * target.h (complete_target_initialization, add_target):
6360 2014-03-07 Pedro Alves <palves@redhat.com>
6362 * go32-nat.c: Include inf-child.h.
6363 (go32_ops): Delete global.
6364 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6366 (go32_create_inferior): Push the passed in target pointer instead
6367 of referencing go32_ops.
6368 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6369 (go32_target): New function, based on init_go32_ops, but inherit
6371 (_initialize_go32_nat): Use go32_target. Move parts of
6374 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6376 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6377 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6378 SYMBOL_VALUE_ADDRESS.
6379 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6381 2014-03-06 Yao Qi <yao@codesourcery.com>
6383 * breakpoint.c (get_tracepoint_by_number): Remove argument
6384 optional_p. All callers updated. Adjust comments. Update
6386 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6388 2014-03-06 Yao Qi <yao@codesourcery.com>
6390 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6391 early if get_number returns zero. Use 'p' instead of 'args'.
6393 2014-03-06 Yao Qi <yao@codesourcery.com>
6395 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6398 2014-03-06 Yao Qi <yao@codesourcery.com>
6400 PR breakpoints/16508
6401 * tracepoint.c (check_trace_running): New function.
6402 (trace_find_command): Move code to check_trace_running and
6403 call check_trace_running.
6404 (trace_find_pc_command): Likewise.
6405 (trace_find_tracepoint_command): Likewise.
6406 (trace_find_line_command): Likewise.
6407 (trace_find_range_command): Likewise.
6408 * tracepoint.h (check_trace_running): Likewise.
6409 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6411 2014-03-06 Yao Qi <yao@codesourcery.com>
6413 * target.h (struct target_ops) <to_traceframe_info>: Use
6414 TARGET_DEFAULT_NORETURN (tcomplain ()).
6415 * target-delegates.c: Regenerated.
6417 2014-03-05 Pedro Alves <palves@redhat.com>
6420 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6421 void. Update comment.
6422 (dcache_xfer_memory): Delete.
6423 (dcache_read_memory_partial): New, based on the read bits of
6425 (dcache_update): Add status parameter. Use ULONGEST for len, and
6426 adjust. Discard cache lines if the reason for the update was
6428 * dcache.h (dcache_xfer_memory): Delete declaration.
6429 (dcache_read_memory_partial): New declaration.
6430 (dcache_update): Update prototype.
6431 * target.c (raw_memory_xfer_partial): Update the dcache here.
6432 (memory_xfer_partial_1): Don't handle dcache writes here.
6434 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6436 * remote-sim.c (gdbsim_load): Add const to prog.
6438 2014-03-03 Tom Tromey <tromey@redhat.com>
6440 * elfread.c (probe_key): Change to bfd_data.
6441 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6442 now per-BFD, not per-objfile.
6443 * stap-probe.c (stap_probe_destroy): Update comment.
6444 (handle_stap_probe): Allocate on the per-BFD obstack.
6446 2014-03-03 Tom Tromey <tromey@redhat.com>
6448 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6449 * breakpoint.c (create_longjmp_master_breakpoint): Use
6451 (add_location_to_breakpoint, bkpt_probe_insert_location)
6452 (bkpt_probe_remove_location): Update.
6453 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6454 * elfread.c (elf_symfile_relocate_probe): Remove.
6455 (elf_probe_fns): Update.
6456 (insert_exception_resume_breakpoint): Change type of "probe"
6457 parameter to bound_probe.
6458 (check_exception_resume): Update.
6459 * objfiles.c (objfile_relocate1): Don't relocate probes.
6460 * probe.c (bound_probe_s): New typedef.
6461 (parse_probes): Use get_probe_address. Set sal's objfile.
6462 (find_probe_by_pc): Return a bound_probe.
6463 (collect_probes): Return a VEC(bound_probe_s).
6464 (compare_probes): Update.
6465 (gen_ui_out_table_header_info): Change type of "probes"
6467 (info_probes_for_ops): Update.
6468 (get_probe_address): New function.
6469 (probe_safe_evaluate_at_pc): Update.
6470 * probe.h (struct probe_ops) <get_probe_address>: New field.
6471 <set_semaphore, clear_semaphore>: Add objfile parameter.
6472 (struct probe) <objfile>: Remove field.
6474 <address>: Update comment.
6475 (struct bound_probe): New.
6476 (find_probe_by_pc): Return a bound_probe.
6477 (get_probe_address): Declare.
6478 * solib-svr4.c (struct probe_and_action) <address>: New field.
6479 (hash_probe_and_action, equal_probe_and_action): Update.
6480 (register_solib_event_probe): Add address parameter.
6481 (solib_event_probe_at): Update.
6482 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6484 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6485 (stap_get_probe_address): New function.
6486 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6487 (compile_probe_arg): Update.
6488 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6490 (handle_stap_probe): Don't relocate the probe.
6491 (stap_relocate): Remove.
6492 (stap_gen_info_probes_table_values): Update.
6493 (stap_probe_ops): Remove stap_relocate.
6494 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6495 (debug_sym_probe_fns): Update.
6496 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6497 * symtab.c (init_sal): Use memset.
6498 * symtab.h (struct symtab_and_line) <objfile>: New field.
6499 * tracepoint.c (start_tracing, stop_tracing): Update.
6501 2014-03-03 Tom Tromey <tromey@redhat.com>
6503 * probe.h (parse_probes, find_probe_by_pc)
6504 (find_probes_in_objfile): Fix comments.
6506 2014-03-02 Doug Evans <xdje42@gmail.com>
6508 * infrun.c (handle_signal_stop): Replace test for
6509 TARGET_WAITKIND_STOPPED with an assert.
6511 2014-03-02 Doug Evans <xdje42@gmail.com>
6513 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6515 2014-03-02 Doug Evans <xdje42@gmail.com>
6517 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6519 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6521 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6523 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6525 * i386obsd-nat.c: Include "obsd-nat.h".
6526 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6528 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6530 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6532 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6534 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6536 * mips64obsd-nat.c: Include "obsd-nath".
6537 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6539 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6541 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6543 * amd64obsd-nat.c: Include "obsd-nat,h.
6544 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6546 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6548 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6550 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6551 (find_overload_match): Update call to find_oload_champ.
6552 (find_oload_champ_namespace_loop): Likewise
6554 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6556 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6558 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6559 * config/sparc/obsd64.mh: New file.
6560 * sparc64obsd-nat.c: New file.
6562 * obsd-nat.h: New file.
6563 * obsd-nat.c: New file.
6564 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6565 (ALLDEPFILES): Add obsd-nat.c.
6567 2014-02-28 Tom Tromey <tromey@redhat.com>
6569 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6570 * cli-out.h (cli_ui_out_impl): Now const.
6571 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6572 * ui-out.c (struct ui_out) <impl>: Now const.
6573 (default_ui_out_impl): Now const.
6574 (ui_out_new): Make 'impl' parameter const.
6575 * ui-out.h (ui_out_new): Update.
6577 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6579 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6581 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6583 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6585 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6587 Additional PR 8882 fix.
6588 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6590 2014-02-27 Pedro Alves <palves@redhat.com>
6592 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6595 2014-02-27 Pedro Alves <palves@redhat.com>
6598 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6599 * nat/linux-waitpid.c: Include string.h.
6600 (status_to_str): Moved here and made extern.
6601 * nat/linux-waitpid.h (status_to_str): New declaration.
6603 2014-02-27 Hui Zhu <hui@codesourcery.com>
6606 * infrun.c (ptid_match): Move ...
6607 * common/ptid.c (ptid_match): ... here.
6608 * inferior.h (ptid_match): Move ...
6609 * common/ptid.h (ptid_match): ... here.
6611 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6613 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6614 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6617 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6619 * obsd-tdep.c (obsd_auxv_parse): New function.
6620 (obsd_init_abi): Set auxv_parse.
6622 * gdbarch.sh (auxv_parse): New.
6623 * gdbarch.h: Regenerated.
6624 * gdbarch.c: Regenerated.
6625 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6627 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6629 * guile/scm-value.c (gdbscm_history_append_x): New function.
6630 (value_functions): Add it.
6632 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6634 * dwarf2read.c (attr_value_as_address): New function.
6635 (dwarf2_find_base_address, read_call_site_scope): Use
6636 attr_value_as_address in place of DW_ADDR.
6637 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6638 the low and high addresses. Slight rework of the handling
6639 of the high pc being a constant form, and limit it to
6640 DWARF verson 4 or higher.
6641 (dwarf2_record_block_ranges): Likewise.
6642 (read_partial_die): Likewise.
6643 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6645 2014-02-26 Tom Tromey <tromey@redhat.com>
6647 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6649 2014-02-26 Tom Tromey <tromey@redhat.com>
6651 * elfread.c (elf_read_minimal_symbols): Return early if
6652 minimal symbols have already been read. Add "ei" parameter.
6653 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6654 * minsyms.c (prim_record_minimal_symbol_full): Update.
6655 * objfiles.h (struct objstats) <n_minsyms>: Move...
6656 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6657 * symmisc.c (print_objfile_statistics): Update.
6659 2014-02-26 Tom Tromey <tromey@redhat.com>
6661 * elfread.c (elf_read_minimal_symbols): New function, from
6663 (elf_symfile_read): Call it.
6665 2014-02-26 Tom Tromey <tromey@redhat.com>
6667 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6668 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6669 (lookup_minimal_symbol_solib_trampoline)
6670 (lookup_minimal_symbol_by_pc_section_1)
6671 (lookup_minimal_symbol_and_objfile): Update.
6672 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6673 Don't allocate a minimal symbol if minsyms have already been read.
6674 (build_minimal_symbol_hash_tables): Update.
6675 (install_minimal_symbols): Do nothing if minsyms already read.
6676 Use the per-BFD obstack.
6677 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6678 * objfiles.c (allocate_objfile): Call
6679 terminate_minimal_symbol_table later.
6680 (have_minimal_symbols): Update.
6681 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6682 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6683 Move from struct objfile.
6684 <minsyms_read>: New field.
6685 (struct objfile) <msymbols, minimal_symbol_count,
6686 msymbol_hash, msymbol_demangled_hash>: Move.
6687 (ALL_OBJFILE_MSYMBOLS): Update.
6688 * symfile.c (read_symbols): Set minsyms_read.
6689 (reread_symbols): Update.
6690 * symmisc.c (dump_objfile, dump_msymbols): Update.
6692 2014-02-26 Tom Tromey <tromey@redhat.com>
6694 * minsyms.c (msymbols_sort): Remove.
6695 * minsyms.h (msymbols_sort): Remove.
6696 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6697 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6698 * elfread.c (elf_symtab_read): Don't add section offsets.
6699 * xcoffread.c (record_minimal_symbol): Don't add section offset
6700 to minimal symbol address.
6701 * somread.c (text_offset, data_offset): Remove.
6702 (som_symtab_read): Don't add section offsets to minimal symbol
6704 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6705 Don't add section offsets to minimal symbols.
6706 * coffread.c (coff_symtab_read): Don't add section offsets
6707 to minimal symbol addresses.
6708 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6709 to minimal symbol addresses.
6710 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6711 section offset to minimal symbol addresses.
6712 * mdebugread.c (parse_partial_symbols): Don't add section
6713 offset to minimal symbol addresses.
6714 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6715 offset to minimal symbol addresses.
6717 2014-02-26 Tom Tromey <tromey@redhat.com>
6719 * ada-lang.c (ada_main_name): Update.
6720 (ada_add_standard_exceptions): Update.
6721 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6722 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6723 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6724 * auxv.c (ld_so_xfer_auxv): Update.
6725 * avr-tdep.c (avr_scan_prologue): Update.
6726 * ax-gdb.c (gen_var_ref): Update.
6727 * blockframe.c (get_pc_function_start)
6728 (find_pc_partial_function_gnu_ifunc): Update.
6729 * breakpoint.c (create_overlay_event_breakpoint)
6730 (create_longjmp_master_breakpoint)
6731 (create_std_terminate_master_breakpoint)
6732 (create_exception_master_breakpoint): Update.
6733 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6734 * c-valprint.c (c_val_print): Update.
6735 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6736 * common/agent.c (agent_look_up_symbols): Update.
6737 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6738 * dwarf2loc.c (call_site_to_target_addr): Update.
6739 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6740 * elfread.c (elf_gnu_ifunc_record_cache)
6741 (elf_gnu_ifunc_resolve_by_got): Update.
6742 * findvar.c (default_read_var_value): Update.
6743 * frame.c (inside_main_func): Update.
6744 * frv-tdep.c (frv_frame_this_id): Update.
6745 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6746 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6748 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6749 (hppa_hpux_find_dummy_bpaddr): Update.
6750 * hppa-tdep.c (hppa_symbol_address): Update.
6751 * infcmd.c (until_next_command): Update.
6752 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6754 * linespec.c (minsym_found, add_minsym): Update.
6755 * linux-nat.c (get_signo): Update.
6756 * linux-thread-db.c (inferior_has_bug): Update.
6757 * m32c-tdep.c (m32c_return_value)
6758 (m32c_m16c_address_to_pointer): Update.
6759 * m32r-tdep.c (m32r_frame_this_id): Update.
6760 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6761 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6762 * maint.c (maintenance_translate_address): Update.
6763 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6764 (frob_address): New function.
6765 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6766 frob_address. Rename parameter to "pc_in".
6767 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6769 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6771 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6772 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6773 * objc-lang.c (find_objc_msgsend): Update.
6774 * objfiles.c (objfile_relocate1): Update.
6775 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6776 * p-valprint.c (pascal_val_print): Update.
6777 * parse.c (write_exp_msymbol): Update.
6778 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6779 (ppc_elfv2_skip_entrypoint): Update.
6780 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6781 * printcmd.c (build_address_symbolic, msym_info)
6782 (address_info): Update.
6783 * proc-service.c (ps_pglobal_lookup): Update.
6784 * psymtab.c (find_pc_sect_psymtab_closer)
6785 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6786 Change msymbol parameter to bound_minimal_symbol.
6787 * ravenscar-thread.c (get_running_thread_id): Update.
6788 * remote.c (remote_check_symbols): Update.
6789 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6791 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6792 * solib-dsbt.c (lm_base): Update.
6793 * solib-frv.c (lm_base, main_got): Update.
6794 * solib-irix.c (locate_base): Update.
6795 * solib-som.c (som_solib_create_inferior_hook)
6796 (link_map_start): Update.
6797 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6798 * solib-svr4.c (elf_locate_base, enable_break): Update.
6799 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6800 (flush_ea_cache): Update.
6801 * stabsread.c (define_symbol, scan_file_globals): Update.
6802 * stack.c (find_frame_funname): Update.
6803 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6804 (debug_qf_find_pc_sect_symtab): Update.
6805 * symfile.c (simple_read_overlay_table)
6806 (simple_overlay_update): Update.
6807 * symfile.h (struct quick_symbol_functions)
6808 <find_pc_sect_symtab>: Change type of msymbol to
6809 bound_minimal_symbol.
6810 * symmisc.c (dump_msymbols): Update.
6811 * symtab.c (find_pc_sect_symtab_via_partial)
6812 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6813 (search_symbols, print_msymbol_info): Update.
6814 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6815 (MSYMBOL_VALUE_ADDRESS): Redefine.
6816 (BMSYMBOL_VALUE_ADDRESS): New macro.
6817 * tracepoint.c (scope_info): Update.
6818 * tui/tui-disasm.c (tui_find_disassembly_address)
6819 (tui_get_begin_asm_address): Update.
6820 * valops.c (find_function_in_inferior): Update.
6821 * value.c (value_static_field, value_fn_field): Update.
6823 2014-02-26 Tom Tromey <tromey@redhat.com>
6825 * ada-lang.c (ada_update_initial_language): Update.
6826 (ada_main_name, ada_has_this_exception_support): Update.
6827 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6828 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6829 * arm-tdep.c (arm_skip_stub): Update.
6830 * auxv.c (ld_so_xfer_auxv): Update.
6831 * avr-tdep.c (avr_scan_prologue): Update.
6832 * ax-gdb.c (gen_var_ref): Update.
6833 * breakpoint.c (struct breakpoint_objfile_data)
6834 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6835 type to bound_minimal_symbol.
6836 (create_overlay_event_breakpoint)
6837 (create_longjmp_master_breakpoint)
6838 (create_std_terminate_master_breakpoint)
6839 (create_exception_master_breakpoint): Update.
6840 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6841 * c-exp.y (classify_name): Update.
6842 * coffread.c (coff_symfile_read): Update.
6843 * common/agent.c (agent_look_up_symbols): Update.
6844 * d-lang.c (d_main_name): Update.
6845 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6846 * dec-thread.c (enable_dec_thread): Update.
6847 * dwarf2loc.c (call_site_to_target_addr): Update.
6848 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6849 * eval.c (evaluate_subexp_standard): Update.
6850 * findvar.c (struct minsym_lookup_data) <result>: Change type
6851 to bound_minimal_symbol.
6853 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6854 * frame.c (inside_main_func): Update.
6855 * frv-tdep.c (frv_frame_this_id): Update.
6856 * gcore.c (call_target_sbrk): Update.
6857 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6858 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6860 * go-lang.c (go_main_name): Update.
6861 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6862 (hppa_hpux_find_import_stub_for_addr): Update.
6863 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6864 Update. Change return type.
6865 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6867 * jit.c (jit_breakpoint_re_set_internal): Update.
6868 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6870 * linux-nat.c (get_signo): Update.
6871 * linux-thread-db.c (inferior_has_bug): Update
6872 * m32c-tdep.c (m32c_return_value)
6873 (m32c_m16c_address_to_pointer): Update.
6874 * m32r-tdep.c (m32r_frame_this_id): Update.
6875 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6876 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6877 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6878 lookup_minimal_symbol. Change return type.
6879 (lookup_minimal_symbol): Remove.
6880 (lookup_bound_minimal_symbol): Update.
6881 (lookup_minimal_symbol_text): Change return type.
6882 (lookup_minimal_symbol_solib_trampoline): Change return type.
6883 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6884 (lookup_minimal_symbol_solib_trampoline): Change return type.
6885 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6886 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6887 (value_nsstring, find_imps): Update.
6888 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6889 * p-lang.c (pascal_main_name): Update.
6890 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6891 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6892 * proc-service.c (ps_pglobal_lookup): Update.
6893 * ravenscar-thread.c (get_running_thread_msymbol): Change
6895 (has_ravenscar_runtime, get_running_thread_id): Update.
6896 * remote.c (remote_check_symbols): Update.
6897 * sol-thread.c (ps_pglobal_lookup): Update.
6898 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6899 * solib-dsbt.c (lm_base): Update.
6900 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6902 * solib-irix.c (locate_base): Update.
6903 * solib-som.c (som_solib_create_inferior_hook)
6904 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6906 * solib-spu.c (spu_enable_break): Update.
6907 * solib-svr4.c (elf_locate_base, enable_break): Update.
6908 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6909 (flush_ea_cache): Update.
6910 * stabsread.c (define_symbol): Update.
6911 * symfile.c (simple_read_overlay_table): Update.
6912 * symtab.c (find_pc_sect_line): Update.
6913 * tracepoint.c (scope_info): Update.
6914 * tui-disasm.c (tui_get_begin_asm_address): Update.
6915 * value.c (value_static_field): Update.
6917 2014-02-26 Tom Tromey <tromey@redhat.com>
6919 * minsyms.c (prim_record_minimal_symbol_full): Use
6920 SET_MSYMBOL_VALUE_ADDRESS.
6921 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6922 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6923 SET_MSYMBOL_VALUE_ADDRESS.
6924 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6925 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6927 2014-02-26 Tom Tromey <tromey@redhat.com>
6929 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6930 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6931 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6932 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6933 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6934 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6935 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6936 * ada-lang.c (ada_main_name): Update.
6937 (ada_lookup_simple_minsym): Update.
6938 (ada_make_symbol_completion_list): Update.
6939 (ada_add_standard_exceptions): Update.
6940 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6941 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6942 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6943 * arm-tdep.c (skip_prologue_function): Update.
6944 (arm_skip_stack_protector, arm_skip_stub): Update.
6945 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6946 (arm_wince_skip_main_prologue): Update.
6947 * auxv.c (ld_so_xfer_auxv): Update.
6948 * avr-tdep.c (avr_scan_prologue): Update.
6949 * ax-gdb.c (gen_var_ref): Update.
6950 * block.c (call_site_for_pc): Update.
6951 * blockframe.c (get_pc_function_start): Update.
6952 (find_pc_partial_function_gnu_ifunc): Update.
6953 * breakpoint.c (create_overlay_event_breakpoint): Update.
6954 (create_longjmp_master_breakpoint): Update.
6955 (create_std_terminate_master_breakpoint): Update.
6956 (create_exception_master_breakpoint): Update.
6957 (resolve_sal_pc): Update.
6958 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6959 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6961 * c-valprint.c (c_val_print): Update.
6962 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6963 * coffread.c (coff_symfile_read): Update.
6964 * common/agent.c (agent_look_up_symbols): Update.
6965 * dbxread.c (find_stab_function_addr): Update.
6966 (end_psymtab): Update.
6967 * dwarf2loc.c (call_site_to_target_addr): Update.
6968 (func_verify_no_selftailcall): Update.
6969 (tailcall_dump): Update.
6970 (call_site_find_chain_1): Update.
6971 (dwarf_expr_reg_to_entry_parameter): Update.
6972 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6973 (elf_gnu_ifunc_resolve_by_got): Update.
6974 * f-valprint.c (info_common_command): Update.
6975 * findvar.c (read_var_value): Update.
6976 * frame.c (get_prev_frame_1): Update.
6977 (inside_main_func): Update.
6978 * frv-tdep.c (frv_skip_main_prologue): Update.
6979 (frv_frame_this_id): Update.
6980 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6981 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6982 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6983 (gnuv3_skip_trampoline): Update.
6984 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6985 (hppa64_hpux_in_solib_call_trampoline): Update.
6986 (hppa_hpux_skip_trampoline_code): Update.
6987 (hppa64_hpux_search_dummy_call_sequence): Update.
6988 (hppa_hpux_find_import_stub_for_addr): Update.
6989 (hppa_hpux_find_dummy_bpaddr): Update.
6990 * hppa-tdep.c (hppa_symbol_address)
6991 (hppa_lookup_stub_minimal_symbol): Update.
6992 * i386-tdep.c (i386_skip_main_prologue): Update.
6993 (i386_pe_skip_trampoline_code): Update.
6994 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6995 * infcall.c (get_function_name): Update.
6996 * infcmd.c (until_next_command): Update.
6997 * jit.c (jit_breakpoint_re_set_internal): Update.
6998 (jit_inferior_init): Update.
6999 * linespec.c (minsym_found): Update.
7000 (add_minsym): Update.
7001 * linux-fork.c (info_checkpoints_command): Update.
7002 * linux-nat.c (get_signo): Update.
7003 * linux-thread-db.c (inferior_has_bug): Update.
7004 * m32c-tdep.c (m32c_return_value): Update.
7005 (m32c_m16c_address_to_pointer): Update.
7006 (m32c_m16c_pointer_to_address): Update.
7007 * m32r-tdep.c (m32r_frame_this_id): Update.
7008 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7009 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7010 * maint.c (maintenance_translate_address): Update.
7011 * minsyms.c (add_minsym_to_hash_table): Update.
7012 (add_minsym_to_demangled_hash_table): Update.
7013 (msymbol_objfile): Update.
7014 (lookup_minimal_symbol): Update.
7015 (iterate_over_minimal_symbols): Update.
7016 (lookup_minimal_symbol_text): Update.
7017 (lookup_minimal_symbol_by_pc_name): Update.
7018 (lookup_minimal_symbol_solib_trampoline): Update.
7019 (lookup_minimal_symbol_by_pc_section_1): Update.
7020 (lookup_minimal_symbol_and_objfile): Update.
7021 (prim_record_minimal_symbol_full): Update.
7022 (compare_minimal_symbols): Update.
7023 (compact_minimal_symbols): Update.
7024 (build_minimal_symbol_hash_tables): Update.
7025 (install_minimal_symbols): Update.
7026 (terminate_minimal_symbol_table): Update.
7027 (find_solib_trampoline_target): Update.
7028 (minimal_symbol_upper_bound): Update.
7029 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7030 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7031 (mips_skip_pic_trampoline_code): Update.
7032 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7033 * objc-lang.c (selectors_info): Update.
7034 (classes_info): Update.
7035 (find_methods): Update.
7036 (find_imps): Update.
7037 (find_objc_msgsend): Update.
7038 * objfiles.c (objfile_relocate1): Update.
7039 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7040 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7041 * p-valprint.c (pascal_val_print): Update.
7042 * parse.c (write_exp_msymbol): Update.
7043 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7044 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7045 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7046 * printcmd.c (build_address_symbolic): Update.
7048 (address_info): Update.
7049 * proc-service.c (ps_pglobal_lookup): Update.
7050 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7051 (find_pc_sect_psymtab): Update.
7052 * python/py-framefilter.c (py_print_frame): Update.
7053 * ravenscar-thread.c (get_running_thread_id): Update.
7054 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7056 * remote.c (remote_check_symbols): Update.
7057 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7058 (rs6000_skip_trampoline_code): Update.
7059 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7060 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7061 * solib-dsbt.c (lm_base): Update.
7062 * solib-frv.c (lm_base): Update.
7064 * solib-irix.c (locate_base): Update.
7065 * solib-som.c (som_solib_create_inferior_hook): Update.
7066 (som_solib_desire_dynamic_linker_symbols): Update.
7067 (link_map_start): Update.
7068 * solib-spu.c (spu_enable_break): Update.
7069 (ocl_enable_break): Update.
7070 * solib-svr4.c (elf_locate_base): Update.
7071 (enable_break): Update.
7072 * spu-tdep.c (spu_get_overlay_table): Update.
7073 (spu_catch_start): Update.
7074 (flush_ea_cache): Update.
7075 * stabsread.c (define_symbol): Update.
7076 (scan_file_globals): Update.
7077 * stack.c (find_frame_funname): Update.
7078 (frame_info): Update.
7079 * symfile.c (simple_read_overlay_table): Update.
7080 (simple_overlay_update): Update.
7081 * symmisc.c (dump_msymbols): Update.
7082 * symtab.c (fixup_section): Update.
7083 (find_pc_sect_line): Update.
7084 (skip_prologue_sal): Update.
7085 (search_symbols): Update.
7086 (print_msymbol_info): Update.
7087 (rbreak_command): Update.
7088 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7089 (completion_list_objc_symbol): Update.
7090 (default_make_symbol_completion_list_break_on): Update.
7091 * tracepoint.c (scope_info): Update.
7092 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7093 (tui_get_begin_asm_address): Update.
7094 * valops.c (find_function_in_inferior): Update.
7095 * value.c (value_static_field): Update.
7096 (value_fn_field): Update.
7098 2014-02-26 Tom Tromey <tromey@redhat.com>
7100 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7101 bound minimal symbols. Move code that knows about minsym
7103 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7105 * minsyms.h (minimal_symbol_upper_bound): Declare.
7106 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7107 minimal_symbol_upper_bound.
7109 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7111 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7112 Use the type's name if its basic type does not have a tag.
7114 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7116 * dwarf2read.c (read_subrange_type): Add comment.
7118 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7120 * dwarf2read.c (update_enumeration_type_from_children): New
7121 function, mostly extracted from process_structure_scope.
7122 (read_enumeration_type): Call update_enumeration_type_from_children.
7123 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7124 and flag_flag_enum fields.
7126 2014-02-26 Pedro Alves <palves@redhat.com>
7128 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7129 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7130 to_xfer_partial method.
7132 2014-02-26 Pedro Alves <palves@redhat.com>
7134 * target.c (complete_target_initialization): Don't install
7135 default_xfer_partial as to_xfer_partial hook.
7137 (update_current_target): Don't INHERIT nor de_fault
7138 deprecated_xfer_memory. Delete de_fault macro.
7139 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7140 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7141 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7144 2014-02-26 Pedro Alves <palves@redhat.com>
7146 * go32-nat.c (my_write_child): New function.
7147 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7148 (go32_xfer_partial): New function.
7149 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7150 Instead install a to_xfer_partial hook.
7152 2014-02-26 Pedro Alves <palves@redhat.com>
7154 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7155 to_xfer_partial helper. Rewrite.
7156 (procfs_xfer_partial): New function.
7157 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7158 Install a to_xfer_partial hook.
7160 2014-02-26 Pedro Alves <palves@redhat.com>
7162 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7163 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7164 (m32r_xfer_partial): New function.
7165 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7166 Install a to_xfer_partial hook.
7168 2014-02-26 Pedro Alves <palves@redhat.com>
7170 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7172 (mips_xfer_partial): New function.
7173 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7174 hook. Install a to_xfer_partial hook.
7176 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7178 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7179 * gdbtypes.c (create_array_type_with_stride): New function,
7180 renaming create_array_type, but with an added parameter
7181 called "bit_stride".
7182 (create_array_type): Re-implement using
7183 create_array_type_with_stride.
7184 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7185 and DW_AT_bit_stride attributes.
7187 2014-02-26 Pedro Alves <palves@redhat.com>
7189 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7190 task-specific breakpoints.
7192 2014-02-25 Pedro Alves <palves@redhat.com>
7194 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7195 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7197 2014-02-25 Stan Shebs <stan@codesourcery.com>
7199 * defs.h: Annotate comments for Doxygen.
7201 2014-02-25 Tom Tromey <tromey@redhat.com>
7203 * target.h (target_ignore): Don't declare.
7204 * target.c (target_ignore): Remove.
7206 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * auto-load.c (auto_load_objfile_script_1): Change filename to
7212 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7214 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7215 documentation. Adjust prototype to match the target_ops
7216 to_xfer_partial method. Adjust implementation accordingly.
7218 2014-02-25 Hui Zhu <hui@codesourcery.com>
7220 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7223 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7225 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7226 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7227 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7228 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7229 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7230 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7231 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7232 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7234 (rl78_register_type): Use a data pointer type for SP and
7235 new pseudo registers mentioned above. Use a 16 bit integer
7236 type for all other register pairs.
7237 (rl78_register_name, rl78_g10_register_name): Update for
7238 new pseudo registers.
7239 (rl78_pseudo_register_read): Likewise.
7240 (rl78_pseudo_register_write): Likewise.
7241 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7242 to the newly added pseudo registers.
7244 2014-02-24 Doug Evans <dje@google.com>
7246 * value.c (record_latest_value): Fix comment.
7247 * printcmd.c (print_command_1): Remove code to handle -1 return from
7248 record_latest_value.
7250 2014-02-24 Pedro Alves <palves@redhat.com>
7252 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7253 deprecated_xfer_memory hook.
7254 (procfs_xfer_partial): Call procfs_xfer_memory instead
7255 of the deprecated_xfer_memory target hook.
7256 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7259 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7261 * windows-nat.c (windows_xfer_shared_libraries): Return
7262 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7263 requested object is TARGET_OBJECT_LIBRARIES.
7265 2014-02-24 Yao Qi <yao@codesourcery.com>
7267 * target.h (enum target_xfer_status)
7268 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7269 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7271 * corefile.c (memory_error_message): User updated.
7272 * exec.c (section_table_read_available_memory): Likewise.
7273 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7274 * target.c (target_xfer_status_to_string): Likewise.
7275 (raw_memory_xfer_partial): Likewise.
7276 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7277 * valops.c (read_value_memory): Likewise.
7278 * exec.h: Update comments.
7280 2014-02-24 Yao Qi <yao@codesourcery.com>
7282 * target.c (target_xfer_status_to_string): Rename argument err
7284 * target.h (target_xfer_status_to_string): Update declaration.
7285 Replace target_xfer_error_to_string with
7286 target_xfer_status_to_string in comment.
7288 2014-02-24 Yao Qi <yao@codesourcery.com>
7290 * mips-linux-nat.c (super_close): Update its type.
7291 (mips_linux_close): Pass 'self' to super_close.
7293 2014-02-24 Yao Qi <yao@codesourcery.com>
7295 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7296 * corefile.c (read_memory): Adjusted.
7297 * target.c (target_write_with_progress): Adjusted.
7299 2014-02-23 Yao Qi <yao@codesourcery.com>
7303 2013-10-25 Yao Qi <yao@codesourcery.com>
7305 * remote.c (remote_traceframe_info): Return early if
7306 traceframe is not selected.
7308 2013-07-19 Yao Qi <yao@codesourcery.com>
7310 * target.c (update_current_target): Change the default action
7311 of 'to_traceframe_info' from tcomplain to return_zero.
7312 * target.h (struct target_ops) <to_traceframe_info>: Add more
7315 2014-02-23 Yao Qi <yao@codesourcery.com>
7317 * valops.c (read_value_memory): Rewrite it. Call
7318 target_xfer_partial in a loop.
7319 * exec.h (section_table_available_memory): Remove declaration.
7320 Move comments to ...
7321 * exec.c (section_table_available_memory): ... here. Make it
7324 2014-02-23 Yao Qi <yao@codesourcery.com>
7326 * exec.c (section_table_read_available_memory): New function.
7327 * exec.h (section_table_read_available_memory): Declare.
7328 * ctf.c (ctf_xfer_partial): Call
7329 section_table_read_available_memory.
7330 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7332 2014-02-23 Yao Qi <yao@codesourcery.com>
7334 * ctf.c (ctf_xfer_partial): Move code to ...
7335 * exec.c (exec_read_partial_read_only): ... it. New function.
7336 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7337 * tracefile.c: Include "exec.h".
7338 * exec.h (exec_read_partial_read_only): Declare.
7340 2014-02-23 Yao Qi <yao@codesourcery.com>
7342 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7343 (tfile_has_memory): Remove.
7344 (init_tfile_ops): Don't set fields to_has_all_memory and
7345 to_has_memory of tfile_ops.
7346 * tracefile.c (tracefile_has_all_memory): New function.
7347 (tracefile_has_memory): New function.
7348 (init_tracefile_ops): Initialize fields to_has_all_memory and
7349 to_has_memory of 'ops'.
7351 2014-02-23 Yao Qi <yao@codesourcery.com>
7353 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7354 (ctf_thread_alive, ctf_get_trace_status): Remove.
7355 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7357 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7358 (tfile_has_stack, tfile_has_registers): Remove.
7359 (tfile_thread_alive): Remove.
7360 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7362 * tracefile.c (tracefile_has_stack): New function.
7363 (tracefile_has_registers): New function.
7364 (tracefile_thread_alive): New function.
7365 (tracefile_get_trace_status): New function.
7366 (init_tracefile_ops): New function.
7367 * tracefile.h (init_tracefile_ops): Declare.
7369 2014-02-23 Yao Qi <yao@codesourcery.com>
7371 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7372 (O_LARGEFILE): Likewise.
7373 (tfile_ops): Likewise.
7374 (TRACE_HEADER_SIZE): Likewise.
7375 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7376 (cur_data_size): Likewise.
7377 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7378 (tfile_close, tfile_files_info): Likewise.
7379 (tfile_get_trace_status): Likewise.
7380 (tfile_get_tracepoint_status): Likewise.
7381 (tfile_get_traceframe_address): Likewise.
7382 (tfile_trace_find, match_blocktype): Likewise.
7383 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7384 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7385 (tfile_get_trace_state_variable_value): Likewise.
7386 (tfile_has_all_memory, tfile_has_memory): Likewise.
7387 (tfile_has_stack, tfile_has_registers): Likewise.
7388 (tfile_thread_alive, build_traceframe_info): Likewise.
7389 (tfile_traceframe_info, init_tfile_ops): Likewise.
7390 (_initialize_tracepoint): Don't call init_tfile_ops
7391 and add_target_with_completer.
7392 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7393 exec.h, completer.h and filenames.h.
7394 (_initialize_tracefile_tfile): New function.
7396 2014-02-23 Yao Qi <yao@codesourcery.com>
7398 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7400 (HFILES_NO_SRCDIR): Add tracefile.h.
7401 * ctf.c: Include "tracefile.h".
7402 * tracefile.h: New file.
7403 * tracefile.c: New file
7404 * tracefile-tfile.c: New file.
7405 * tracepoint.c: Include "tracefile.h".
7406 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7407 (stop_reason_names): Add const.
7408 (trace_file_writer_xfree): Move it to tracefile.c.
7409 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7410 (trace_save_ctf): Likewise.
7411 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7412 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7413 (tfile_write_header, tfile_write_regblock_type): Likewise.
7414 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7415 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7416 (tfile_write_raw_data, tfile_end): Likewise.
7417 (tfile_trace_file_writer_new): Likewise.
7418 (free_uploaded_tp): Make it extern.
7419 (free_uploaded_tsv): Make it extern.
7420 (_initialize_tracepoint): Move code to register command 'tsave'
7422 * tracepoint.h (stop_reason_names): Declare.
7423 (struct trace_frame_write_ops): Move it to tracefile.h.
7424 (struct trace_file_write_ops): Likewise.
7425 (struct trace_file_writer): Likewise.
7426 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7428 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7431 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7433 (get_cores_used_by_process): New parameter num_cores, use it.
7434 (linux_xfer_osdata_processes): Pass num_cores to it.
7435 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7438 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7440 * target.c (memory_xfer_partial): Fix length arg in call to
7441 breakpoint_xfer_memory.
7443 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7446 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7447 number comes after the + or - signs. Adjust length of register
7448 name to be extracted.
7450 2014-02-20 Tom Tromey <tromey@redhat.com>
7452 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7453 (ada_varobj_ops): Mark "extern".
7455 2014-02-20 Tom Tromey <tromey@redhat.com>
7457 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7459 2014-02-20 Doug Evans <xdje42@gmail.com>
7461 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7462 All callers updated.
7463 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7464 All callers updated.
7465 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7466 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7468 2014-02-20 lin zuojian <manjian2006@gmail.com>
7469 Joel Brobecker <brobecker@adacore.com>
7470 Doug Evans <xdje42@gmail.com>
7473 * dwarf2read.c (struct die_info): New member in_process.
7474 (reset_die_in_process): New function.
7475 (process_die): Set it at the start, reset when returning.
7476 (inherit_abstract_dies): Only call process_die if origin_child_die
7477 not already being processed.
7479 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7481 * windows-nat.c (handle_unload_dll): Add function documentation.
7482 (do_initial_windows_stuff): Add comment explaining why we wait
7483 until after inferior initialization has finished before
7484 processing all DLLs.
7486 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7488 * windows-nat.c (get_module_name): Delete.
7489 (windows_get_exec_module_filename): New function, mostly
7490 inspired from get_module_name.
7491 (windows_pid_to_exec_file): Replace call to get_module_name
7492 by call to windows_get_exec_module_filename.
7494 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7496 * windows-nat.c (handle_load_dll): Rewrite this function's
7497 introductory comment. Remove code using get_module_name
7498 to get the DLL's name.
7500 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7502 * windows-nat.c (get_windows_debug_event): Ignore
7503 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7504 if windows_initialization_done == 0.
7505 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7506 Adjust implementation to always load all DLLs.
7507 (do_initial_windows_stuff): Replace call to
7508 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7510 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7512 * windows-nat.c (_initialize_windows_nat): Deprecate the
7513 "dll-symbols" command. Turn the "add-shared-symbol-files"
7514 and "assf" aliases into commands, and deprecate them as well.
7515 * NEWS: Add entry explaining that "dll-symbols" and its two
7516 aliases are now deprecated.
7518 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7520 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7521 new-line in debug string. Remove trailing spaces.
7523 2014-02-19 Stan Shebs <stan@codesourcery.com>
7525 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7527 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7529 * NEWS: Add entry for the new feature
7530 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7533 2014-02-19 Stan Shebs <stan@codesourcery.com>
7535 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7537 2014-02-19 Pedro Alves <palves@redhat.com>
7539 * common/ptid.h (struct ptid): Mention that process_stratum
7540 targets should prefer ptid.lwp.
7542 2014-02-19 Pedro Alves <palves@redhat.com>
7544 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7545 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7546 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7547 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7548 store remote thread ids rather than ptid.tid.
7549 (_initialize_remote): Adjust.
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7553 * target.c (target_get_unwinder): Rewrite.
7554 (target_get_tailcall_unwinder): Rewrite.
7555 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7556 (record_btrace_to_get_tailcall_unwinder): New function.
7557 (init_record_btrace_ops): Update.
7558 * target.h (struct target_ops) <to_get_unwinder,
7559 to_get_tailcall_unwinder>: Now function pointers. Use
7560 TARGET_DEFAULT_RETURN.
7562 2014-02-19 Tom Tromey <tromey@redhat.com>
7564 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7566 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7572 * target-delegates.c: Rebuild.
7573 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7574 TARGET_DEFAULT_FUNC.
7575 * target.c (default_target_decr_pc_after_break): Rename from
7576 forward_target_decr_pc_after_break. Simplify.
7577 (target_decr_pc_after_break): Rely on delegation.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * target.c (update_current_target): Do not INHERIT to_doc or
7582 to_magic. Do not de_fault to_open or to_close.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * gcore.h (objfile_find_memory_regions): Declare.
7587 * gcore.c (objfile_find_memory_regions): No longer static. Add
7589 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7590 * exec.c: Include gcore.h.
7591 (exec_set_find_memory_regions): Remove.
7592 (exec_find_memory_regions): Remove.
7593 (exec_do_find_memory_regions): Remove.
7594 (init_exec_ops): Update.
7595 * defs.h (exec_set_find_memory_regions): Remove.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target-delegates.c: Rebuild.
7600 * target.h (struct target_ops) <to_extra_thread_info,
7601 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7602 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7603 not 0, in TARGET_DEFAULT_RETURN.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target.c (complete_target_initialization): Remove casts. Use
7608 return_zero_has_execution.
7609 (return_zero): Add "ignore" argument.
7610 (return_zero_has_execution): New function.
7611 (init_dummy_target): Remove casts. Use
7612 return_zero_has_execution.
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7616 * target.c (update_current_target): Update comments. Do not
7619 2014-02-19 Tom Tromey <tromey@redhat.com>
7621 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7623 * corelow.c (core_read_description): Delegate when needed.
7624 * remote.c (remote_read_description): Delegate when needed.
7625 * target-delegates.c: Rebuild.
7626 * target.c (target_read_description): Rewrite.
7627 * target.h (struct target_ops) <to_read_description>: Update
7628 comment. Use TARGET_DEFAULT_RETURN.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7635 (find_default_run_target): Check against delegate_can_run.
7636 * target.h (struct target_ops) <to_can_run>: Use
7637 TARGET_DEFAULT_RETURN.
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7641 * target-delegates.c: Rebuild.
7642 * target.c (target_disconnect): Unconditionally delegate.
7643 * target.h (struct target_ops) <to_disconnect>: Use
7644 TARGET_DEFAULT_NORETURN.
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * record.c (record_stop): Unconditionally delegate.
7649 * target-delegates.c: Rebuild.
7650 * target.c (target_stop_recording): Unconditionally delegate.
7651 * target.h (struct target_ops) <to_stop_recording>: Use
7652 TARGET_DEFAULT_IGNORE.
7654 2014-02-19 Tom Tromey <tromey@redhat.com>
7656 * target-delegates.c: Rebuild.
7657 * target.c (target_enable_btrace): Unconditionally delegate.
7658 * target.h (struct target_ops) <to_enable_btrace>: Use
7659 TARGET_DEFAULT_NORETURN.
7661 2014-02-19 Tom Tromey <tromey@redhat.com>
7663 * target-delegates.c: Rebuild.
7664 * target.c (target_read_btrace): Unconditionally delegate.
7665 * target.h (struct target_ops) <to_read_btrace>: Use
7666 TARGET_DEFAULT_NORETURN.
7668 2014-02-19 Tom Tromey <tromey@redhat.com>
7670 * target-delegates.c: Rebuild.
7671 * target.c (target_teardown_btrace): Unconditionally delegate.
7672 * target.h (struct target_ops) <to_teardown_btrace>: Use
7673 TARGET_DEFAULT_NORETURN.
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (target_disable_btrace): Unconditionally delegate.
7679 * target.h (struct target_ops) <to_disable_btrace>: Use
7680 TARGET_DEFAULT_NORETURN.
7682 2014-02-19 Tom Tromey <tromey@redhat.com>
7684 * target-delegates.c: Rebuild.
7685 * target.c (default_search_memory): New function.
7686 (simple_search_memory): Update comment.
7687 (target_search_memory): Unconditionally delegate.
7688 * target.h (struct target_ops) <to_search_memory>: Use
7689 TARGET_DEFAULT_FUNC.
7691 2014-02-19 Tom Tromey <tromey@redhat.com>
7693 * auxv.c (default_auxv_parse): No longer static.
7694 (target_auxv_parse): Unconditionally delegate.
7695 * auxv.h (default_auxv_parse): Declare.
7696 * target-delegates.c: Rebuild.
7697 * target.c: Include auxv.h.
7698 * target.h (struct target_ops) <to_auxv_parse>: Use
7699 TARGET_DEFAULT_FUNC.
7701 2014-02-19 Tom Tromey <tromey@redhat.com>
7703 * target-delegates.c: Rebuild.
7704 * target.c (target_memory_map): Unconditionally delegate.
7705 * target.h (struct target_ops) <to_memory_map>: Use
7706 TARGET_DEFAULT_RETURN.
7708 2014-02-19 Tom Tromey <tromey@redhat.com>
7710 * target-delegates.c: Rebuild.
7711 * target.c (target_thread_alive): Unconditionally delegate.
7712 * target.h (struct target_ops) <to_thread_alive>: Use
7713 TARGET_DEFAULT_RETURN.
7715 2014-02-19 Tom Tromey <tromey@redhat.com>
7717 * target-delegates.c: Rebuild.
7718 * target.c (target_save_record): Unconditionally delegate.
7719 * target.h (struct target_ops) <to_save_record>: Use
7720 TARGET_DEFAULT_NORETURN.
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7724 * target-delegates.c: Rebuild.
7725 * target.c (target_delete_record): Unconditionally delegate.
7726 * target.h (struct target_ops) <to_delete_record>: Use
7727 TARGET_DEFAULT_NORETURN.
7729 2014-02-19 Tom Tromey <tromey@redhat.com>
7731 * target-delegates.c: Rebuild.
7732 * target.c (target_record_is_replaying): Unconditionally
7734 * target.h (struct target_ops) <to_record_is_replaying>: Use
7735 TARGET_DEFAULT_RETURN.
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7739 * target-delegates.c: Rebuild.
7740 * target.c (target_goto_record_begin): Unconditionally delegate.
7741 * target.h (struct target_ops) <to_goto_record_begin>: Use
7742 TARGET_DEFAULT_NORETURN.
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7746 * target-delegates.c: Rebuild.
7747 * target.c (target_goto_record_end): Unconditionally delegate.
7748 * target.h (struct target_ops) <to_goto_record_end>: Use
7749 TARGET_DEFAULT_NORETURN.
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * target-delegates.c: Rebuild.
7754 * target.c (target_goto_record): Unconditionally delegate.
7755 * target.h (struct target_ops) <to_goto_record>: Use
7756 TARGET_DEFAULT_NORETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target-delegates.c: Rebuild.
7761 * target.c (target_insn_history): Unconditionally delegate.
7762 * target.h (struct target_ops) <to_insn_history>: Use
7763 TARGET_DEFAULT_NORETURN.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target-delegates.c: Rebuild.
7768 * target.c (target_insn_history_from): Unconditionally delegate.
7769 * target.h (struct target_ops) <to_insn_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_insn_history_range): Unconditionally delegate.
7776 * target.h (struct target_ops) <to_insn_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_call_history): Unconditionally delegate.
7783 * target.h (struct target_ops) <to_call_history>: Use
7784 TARGET_DEFAULT_NORETURN.
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7788 * target-delegates.c: Rebuild.
7789 * target.c (target_call_history_from): Unconditionally delegate.
7790 * target.h (struct target_ops) <to_call_history_from>: Use
7791 TARGET_DEFAULT_NORETURN.
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7795 * target-delegates.c: Rebuild.
7796 * target.c (target_call_history_range): Unconditionally delegate.
7797 * target.h (struct target_ops) <to_call_history_range>: Use
7798 TARGET_DEFAULT_NORETURN.
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7802 * target-delegates.c: Rebuild.
7803 * target.c (target_verify_memory): Unconditionally delegate.
7804 * target.h (struct target_ops) <to_verify_memory>: Use
7805 TARGET_DEFAULT_NORETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (target_core_of_thread): Unconditionally delegate.
7811 * target.h (struct target_ops) <to_core_of_thread>: Use
7812 TARGET_DEFAULT_RETURN.
7814 2014-02-19 Tom Tromey <tromey@redhat.com>
7816 * target-delegates.c: Rebuild.
7817 * target.c (target_flash_done): Unconditionally delegate.
7818 * target.h (struct target_ops) <to_flash_done>: Use
7819 TARGET_DEFAULT_NORETURN.
7821 2014-02-19 Tom Tromey <tromey@redhat.com>
7823 * target-delegates.c: Rebuild.
7824 * target.c (target_flash_erase): Unconditionally delegate.
7825 * target.h (struct target_ops) <to_flash_erase>: Use
7826 TARGET_DEFAULT_NORETURN.
7828 2014-02-19 Tom Tromey <tromey@redhat.com>
7830 * target-delegates.c: Rebuild.
7831 * target.c (target_get_section_table): Unconditionally delegate.
7832 * target.h (struct target_ops) <to_get_section_table>: Use
7833 TARGET_DEFAULT_RETURN.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * target-delegates.c: Rebuild.
7838 * target.c (target_pid_to_str): Unconditionally delegate.
7839 (init_dummy_target): Don't initialize to_pid_to_str.
7840 (default_pid_to_str): Rename from dummy_pid_to_str.
7841 * target.h (struct target_ops) <to_pid_to_str>: Use
7842 TARGET_DEFAULT_FUNC.
7844 2014-02-19 Tom Tromey <tromey@redhat.com>
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_find_new_threads): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_find_new_threads>: Use
7849 TARGET_DEFAULT_RETURN.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_program_signals): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_program_signals>: Use
7856 TARGET_DEFAULT_IGNORE.
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_pass_signals): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_pass_signals>: Use
7863 TARGET_DEFAULT_IGNORE.
7865 2014-02-19 Tom Tromey <tromey@redhat.com>
7867 * target-delegates.c: Rebuild.
7868 * target.c (default_mourn_inferior): New function.
7869 (target_mourn_inferior): Unconditionally delegate.
7870 * target.h (struct target_ops) <to_mourn_inferior>: Use
7871 TARGET_DEFAULT_FUNC.
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7875 * target-delegates.c: Rebuild.
7876 * target.c (default_follow_fork): New function.
7877 (target_follow_fork): Unconditionally delegate.
7878 * target.h (struct target_ops) <to_follow_fork>: Use
7879 TARGET_DEFAULT_FUNC.
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target-delegates.c: Rebuild.
7884 * target.c (target_kill): Unconditionally delegate.
7885 * target.h (struct target_ops) <to_kill>: Use
7886 TARGET_DEFAULT_NORETURN.
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7890 * target-delegates.c: Rebuild.
7891 * target.c (target_masked_watch_num_registers): Unconditionally
7893 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7894 Use TARGET_DEFAULT_RETURN.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * target-delegates.c: Rebuild.
7899 * target.c (target_remove_mask_watchpoint): Unconditionally
7901 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7902 TARGET_DEFAULT_RETURN.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (target_insert_mask_watchpoint): Unconditionally
7909 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7910 TARGET_DEFAULT_RETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (target_ranged_break_num_registers): Unconditionally
7917 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7918 Use TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (target_fetch_registers): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_fetch_registers>: Use
7925 TARGET_DEFAULT_NORETURN.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * target-delegates.c: Rebuild.
7930 * target.c (update_current_target): Don't inherit or default
7932 * target.h (struct target_ops) <to_stop>: Use
7933 TARGET_DEFAULT_IGNORE.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7939 to_can_run_breakpoint_commands.
7940 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7941 Use TARGET_DEFAULT_RETURN.
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7947 to_supports_evaluation_of_breakpoint_conditions.
7948 * target.h (struct target_ops)
7949 <to_supports_evaluation_of_breakpoint_conditions>: Use
7950 TARGET_DEFAULT_RETURN.
7952 2014-02-19 Tom Tromey <tromey@redhat.com>
7954 * target-delegates.c: Rebuild.
7955 * target.c (update_current_target): Don't inherit or default
7956 to_augmented_libraries_svr4_read.
7957 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7958 Use TARGET_DEFAULT_RETURN.
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (update_current_target): Don't inherit or default
7965 * target.h (struct target_ops) <to_can_use_agent>: Use
7966 TARGET_DEFAULT_RETURN.
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7970 * target-delegates.c: Rebuild.
7971 * target.c (update_current_target): Don't inherit or default
7973 * target.h (struct target_ops) <to_use_agent>: Use
7974 TARGET_DEFAULT_NORETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (update_current_target): Don't inherit or default
7981 (return_null): Remove.
7982 * target.h (struct target_ops) <to_traceframe_info>: Use
7983 TARGET_DEFAULT_RETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_static_tracepoint_markers_by_strid.
7990 * target.h (struct target_ops)
7991 <to_static_tracepoint_markers_by_strid>: Use
7992 TARGET_DEFAULT_NORETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_static_tracepoint_marker_at.
7999 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8000 Use TARGET_DEFAULT_RETURN.
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8004 * target-delegates.c: Rebuild.
8005 * target.c (update_current_target): Don't inherit or default
8007 * target.h (struct target_ops) <to_set_permissions>: Use
8008 TARGET_DEFAULT_IGNORE.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * target-delegates.c: Rebuild.
8013 * target.c (update_current_target): Don't inherit or default
8015 * target.h (struct target_ops) <to_get_tib_address>: Use
8016 TARGET_DEFAULT_NORETURN.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8023 * target.h (struct target_ops) <to_set_trace_notes>: Use
8024 TARGET_DEFAULT_RETURN.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't initialize
8030 to_set_trace_buffer_size.
8031 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8032 TARGET_DEFAULT_IGNORE.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't inherit or default
8038 to_set_circular_trace_buffer.
8039 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8040 TARGET_DEFAULT_IGNORE.
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8044 * target-delegates.c: Rebuild.
8045 * target.c (update_current_target): Don't inherit or default
8046 to_set_disconnected_tracing.
8047 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8048 TARGET_DEFAULT_IGNORE.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (update_current_target): Don't inherit or default
8054 to_get_min_fast_tracepoint_insn_len.
8055 (return_minus_one): Remove.
8056 * target.h (struct target_ops)
8057 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8061 * target-delegates.c: Rebuild.
8062 * target.c (update_current_target): Don't inherit or default
8063 to_get_raw_trace_data.
8064 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8065 TARGET_DEFAULT_NORETURN.
8067 2014-02-19 Tom Tromey <tromey@redhat.com>
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8071 to_upload_trace_state_variables.
8072 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8073 Use TARGET_DEFAULT_RETURN.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target-delegates.c: Rebuild.
8078 * target.c (update_current_target): Don't inherit or default
8079 to_upload_tracepoints.
8080 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8081 TARGET_DEFAULT_RETURN.
8083 2014-02-19 Tom Tromey <tromey@redhat.com>
8085 * target-delegates.c: Rebuild.
8086 * target.c (update_current_target): Don't inherit or default
8088 * target.h (struct target_ops) <to_save_trace_data>: Use
8089 TARGET_DEFAULT_NORETURN.
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8093 * target-delegates.c: Rebuild.
8094 * target.c (update_current_target): Don't inherit or default
8095 to_get_trace_state_variable_value.
8096 * target.h (struct target_ops)
8097 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8101 * target-delegates.c: Rebuild.
8102 * target.c (update_current_target): Don't inherit or default
8104 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target-delegates.c: Rebuild.
8109 * target.c (update_current_target): Don't inherit or default
8111 * target.h (struct target_ops) <to_trace_stop>: Use
8112 TARGET_DEFAULT_NORETURN.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (update_current_target): Don't inherit or default
8118 to_get_tracepoint_status.
8119 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8120 TARGET_DEFAULT_NORETURN.
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target-delegates.c: Rebuild.
8125 * target.c (update_current_target): Don't inherit or default
8126 to_get_trace_status.
8127 * target.h (struct target_ops) <to_get_trace_status>: Use
8128 TARGET_DEFAULT_RETURN.
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target-delegates.c: Rebuild.
8133 * target.c (update_current_target): Don't inherit or default
8135 * target.h (struct target_ops) <to_trace_start>: Use
8136 TARGET_DEFAULT_NORETURN.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target-delegates.c: Rebuild.
8141 * target.c (update_current_target): Don't inherit or default
8142 to_trace_set_readonly_regions.
8143 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8144 Use TARGET_DEFAULT_NORETURN.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (update_current_target): Don't inherit or default
8150 to_disable_tracepoint.
8151 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8152 TARGET_DEFAULT_NORETURN.
8154 2014-02-19 Tom Tromey <tromey@redhat.com>
8156 * target-delegates.c: Rebuild.
8157 * target.c (update_current_target): Don't inherit or default
8158 to_enable_tracepoint.
8159 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8160 TARGET_DEFAULT_NORETURN.
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target-delegates.c: Rebuild.
8165 * target.c (update_current_target): Don't inherit or default
8166 to_download_trace_state_variable.
8167 * target.h (struct target_ops) <to_download_trace_state_variable>:
8168 Use TARGET_DEFAULT_NORETURN.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (update_current_target): Don't inherit or default
8174 to_can_download_tracepoint.
8175 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8176 TARGET_DEFAULT_RETURN.
8178 2014-02-19 Tom Tromey <tromey@redhat.com>
8180 * target-delegates.c: Rebuild.
8181 * target.c (update_current_target): Don't inherit or default
8182 to_download_tracepoint.
8183 * target.h (struct target_ops) <to_download_tracepoint>: Use
8184 TARGET_DEFAULT_NORETURN.
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8188 * target-delegates.c: Rebuild.
8189 * target.c (update_current_target): Don't inherit or default
8191 * target.h (struct target_ops) <to_trace_init>: Use
8192 TARGET_DEFAULT_RETURN.
8194 2014-02-19 Tom Tromey <tromey@redhat.com>
8196 * target-delegates.c: Rebuild.
8197 * target.c (update_current_target): Don't inherit or default
8198 to_supports_string_tracing.
8199 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8200 TARGET_DEFAULT_RETURN.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * target-delegates.c: Rebuild.
8205 * target.c (update_current_target): Don't inherit or default
8206 to_supports_enable_disable_tracepoint.
8207 * target.h (struct target_ops)
8208 <to_supports_enable_disable_tracepoint>: Use
8209 TARGET_DEFAULT_RETURN.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target-delegates.c: Rebuild.
8214 * target.c (update_current_target): Don't inherit or default
8215 to_supports_multi_process.
8216 * target.h (struct target_ops) <to_supports_multi_process>: Use
8217 TARGET_DEFAULT_RETURN.
8219 2014-02-19 Tom Tromey <tromey@redhat.com>
8221 * target-delegates.c: Rebuild.
8222 * target.c (update_current_target): Don't inherit or default
8223 to_get_ada_task_ptid.
8224 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8225 TARGET_DEFAULT_FUNC.
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * target-delegates.c: Rebuild.
8230 * target.c (update_current_target): Don't inherit or default
8231 to_thread_architecture.
8232 * target.h (struct target_ops) <to_thread_architecture>: Use
8233 TARGET_DEFAULT_FUNC.
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_execution_direction.
8240 * target.h (struct target_ops) <to_execution_direction>: Use
8241 TARGET_DEFAULT_FUNC.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target-delegates.c: Rebuild.
8246 * target.c (update_current_target): Don't inherit or default
8247 to_can_execute_reverse.
8248 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8249 TARGET_DEFAULT_RETURN.
8250 (target_can_execute_reverse): Unconditionally delegate.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target-delegates.c: Rebuild.
8255 * target.c (update_current_target): Don't inherit or default
8257 (dummy_goto_bookmark): Remove.
8258 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8259 * target.h (struct target_ops) <to_goto_bookmark>: Use
8260 TARGET_DEFAULT_NORETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (update_current_target): Don't inherit or default
8267 (dummy_get_bookmark): Remove.
8268 (init_dummy_target): Don't inherit or default to_get_bookmark.
8269 * target.h (struct target_ops) <to_get_bookmark>: Use
8270 TARGET_DEFAULT_NORETURN
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target-delegates.c: Rebuild.
8275 * target.c (update_current_target): Don't inherit or default
8276 to_make_corefile_notes.
8277 (init_dummy_target): Don't initialize to_make_corefile_notes.
8278 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8279 TARGET_DEFAULT_FUNC.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target-delegates.c: Rebuild.
8284 * target.c (update_current_target): Don't inherit or default
8285 to_find_memory_regions.
8286 (init_dummy_target): Don't initialize to_find_memory_regions.
8287 * target.h (struct target_ops) <to_find_memory_regions>: Use
8288 TARGET_DEFAULT_FUNC.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8295 * target.h (struct target_ops) <to_log_command>: Use
8296 TARGET_DEFAULT_IGNORE.
8297 (target_log_command): Unconditionally delegate.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_pid_to_exec_file.
8304 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8305 TARGET_DEFAULT_RETURN.
8307 2014-02-19 Tom Tromey <tromey@redhat.com>
8309 * target-delegates.c: Rebuild.
8310 * target.c (update_current_target): Don't inherit or default
8312 (target_thread_name): Unconditionally delegate.
8313 * target.h (struct target_ops) <to_thread_name>: Use
8314 TARGET_DEFAULT_RETURN.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target-delegates.c: Rebuild.
8319 * target.c (update_current_target): Don't inherit or default
8320 to_extra_thread_info.
8321 * target.h (struct target_ops) <to_extra_thread_info>: Use
8322 TARGET_DEFAULT_RETURN.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't inherit or default
8329 * target.h (struct target_ops) <to_has_exited>: Use
8330 TARGET_DEFAULT_RETURN..
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_set_syscall_catchpoint.
8337 (return_one): Remove.
8338 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8339 TARGET_DEFAULT_RETURN.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (update_current_target): Don't inherit or default
8345 to_insert_exec_catchpoint.
8346 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8347 TARGET_DEFAULT_RETURN.
8349 2014-01-08 Tom Tromey <tromey@redhat.com>
8351 * target-delegates.c: Rebuild.
8352 * target.c (update_current_target): Don't inherit or default
8353 to_insert_exec_catchpoint.
8354 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8355 TARGET_DEFAULT_RETURN.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_remove_vfork_catchpoint.
8362 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8363 TARGET_DEFAULT_RETURN.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * target-delegates.c: Rebuild.
8368 * target.c (update_current_target): Don't inherit or default
8369 to_insert_vfork_catchpoint.
8370 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8371 TARGET_DEFAULT_RETURN.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_remove_fork_catchpoint.
8378 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8379 TARGET_DEFAULT_RETURN.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_insert_fork_catchpoint.
8386 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8387 TARGET_DEFAULT_RETURN.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_post_startup_inferior.
8394 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8395 TARGET_DEFAULT_IGNORE.
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8402 * target.h (struct target_ops) <to_load>: Use
8403 TARGET_DEFAULT_NORETURN.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target-delegates.c: Rebuild.
8408 * target.c (update_current_target): Don't inherit or default
8410 * target.h (struct target_ops) <to_terminal_info>: Use
8411 TARGET_DEFAULT_FUNC.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target-delegates.c: Rebuild.
8416 * target.c (update_current_target): Don't inherit or default
8417 to_terminal_save_ours.
8418 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8419 TARGET_DEFAULT_IGNORE.
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8423 * target-delegates.c: Rebuild.
8424 * target.c (update_current_target): Don't inherit or default
8426 * target.h (struct target_ops) <to_terminal_ours>: Use
8427 TARGET_DEFAULT_IGNORE.
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_terminal_ours_for_output.
8434 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8435 TARGET_DEFAULT_IGNORE.
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_terminal_inferior.
8442 * target.h (struct target_ops) <to_terminal_inferior>: Use
8443 TARGET_DEFAULT_IGNORE.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8450 * target.h (struct target_ops) <to_terminal_init>: Use
8451 TARGET_DEFAULT_IGNORE.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_can_accel_watchpoint_condition.
8458 * target.h (struct target_ops)
8459 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_region_ok_for_hw_watchpoint.
8466 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8467 Use TARGET_DEFAULT_FUNC.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_watchpoint_addr_within_range.
8474 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8475 Use TARGET_DEFAULT_FUNC.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (update_current_target): Don't inherit or default
8481 to_remove_watchpoint.
8482 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8483 TARGET_DEFAULT_NORETURN.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (update_current_target): Don't inherit or default
8489 to_insert_watchpoint.
8490 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8491 TARGET_DEFAULT_RETURN.
8493 2014-02-19 Tom Tromey <tromey@redhat.com>
8495 * target-delegates.c: Rebuild.
8496 * target.c (update_current_target): Don't inherit or default
8497 to_remove_hw_breakpoint.
8498 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8499 TARGET_DEFAULT_RETURN.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * target-delegates.c: Rebuild.
8504 * target.c (update_current_target): Don't inherit or default
8505 to_insert_hw_breakpoint.
8506 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8507 TARGET_DEFAULT_RETURN.
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_can_use_hw_breakpoint.
8514 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8515 TARGET_DEFAULT_RETURN.
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8522 * target.h (struct target_ops) <to_files_info>: Use
8523 TARGET_DEFAULT_IGNORE.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8530 * target.h (struct target_ops) <to_store>: Use
8531 TARGET_DEFAULT_NORETURN.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8538 * target.h (struct target_ops) <to_post_attach>: Use
8539 TARGET_DEFAULT_IGNORE.
8541 2014-02-19 Tom Tromey <tromey@redhat.com>
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8546 (default_rcmd): New function.
8547 (do_monitor_command): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_rmcd>: Use
8549 TARGET_DEFAULT_FUNC.
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8553 * target-delegates.c: Rebuild.
8554 * target.c (init_dummy_target): Don't initialize to_attach.
8555 (target_attach): Unconditionally delegate.
8556 * target.h (struct target_ops) <to_attach>: Use
8557 TARGET_DEFAULT_FUNC.
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8561 * target-delegates.c: Rebuild.
8562 * target.c (target_detach): Unconditionally delegate.
8563 (init_dummy_target): Don't initialize to_detach.
8564 * target.h (struct target_ops) <to_detach>: Use
8565 TARGET_DEFAULT_IGNORE.
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8571 (target_augmented_libraries_svr4_read): Add argument.
8572 * target.c (update_current_target): Update.
8573 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.h (struct target_ops) <to_call_history_range>: Add
8580 * target.c (target_call_history_range): Add argument.
8581 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8583 (record_btrace_call_history_from): Update.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.h (struct target_ops) <to_call_history_from>: Add
8589 * target.c (target_call_history_from): Add argument.
8590 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target.h (struct target_ops) <to_call_history>: Add argument.
8596 * target.c (target_call_history): Add argument.
8597 * record-btrace.c (record_btrace_call_history): Add 'self'
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target.h (struct target_ops) <to_insn_history_range>: Add
8604 * target.c (target_insn_history_range): Add argument.
8605 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8607 (record_btrace_insn_history_from): Update.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target.h (struct target_ops) <to_insn_history_from>: Add
8613 * target.c (target_insn_history_from): Add argument.
8614 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target.h (struct target_ops) <to_insn_history>: Add argument.
8620 * target.c (target_insn_history): Add argument.
8621 * record-btrace.c (record_btrace_insn_history): Add 'self'
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target.h (struct target_ops) <to_goto_record>: Add argument.
8627 * target.c (target_goto_record): Add argument.
8628 * record-full.c (record_full_goto): Add 'self' argument.
8629 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8631 2014-02-19 Tom Tromey <tromey@redhat.com>
8633 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8634 * target.c (target_goto_record_end): Add argument.
8635 * record-full.c (record_full_goto_end): Add 'self' argument.
8636 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target.h (struct target_ops) <to_goto_record_begin>: Add
8642 * target.c (target_goto_record_begin): Add argument.
8643 * record-full.c (record_full_goto_begin): Add 'self' argument.
8644 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8649 * target.h (struct target_ops) <to_record_is_replaying>: Add
8651 * target.c (target_record_is_replaying): Add argument.
8652 * record-full.c (record_full_is_replaying): Add 'self' argument.
8653 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8655 (record_btrace_xfer_partial, record_btrace_store_registers)
8656 (record_btrace_prepare_to_store, record_btrace_resume)
8657 (record_btrace_wait, record_btrace_decr_pc_after_break)
8658 (record_btrace_find_new_threads, record_btrace_thread_alive):
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target.h (struct target_ops) <to_delete_record>: Add argument.
8664 * target.c (target_delete_record): Add argument.
8665 * record-full.c (record_full_delete): Add 'self' argument.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target.h (struct target_ops) <to_save_record>: Add argument.
8670 * target.c (target_save_record): Add argument.
8671 * record-full.c (record_full_save): Add 'self' argument.
8672 (record_full_save): Add 'self' argument.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target.h (struct target_ops) <to_info_record>: Add argument.
8677 * target.c (target_info_record): Add argument.
8678 * record.c (info_record_command): Add argument.
8679 * record-full.c (record_full_info): Add 'self' argument.
8680 * record-btrace.c (record_btrace_info): Add 'self' argument.
8682 2014-02-19 Tom Tromey <tromey@redhat.com>
8684 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8685 * target.c (target_stop_recording): Add argument.
8686 * record.c (record_stop): Add argument.
8687 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8693 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8694 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8696 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8697 (_initialize_amd64_linux_nat): Use it.
8698 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8699 (_initialize_i386_linux_nat): Use it.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8704 * target.c (target_teardown_btrace): Add argument.
8705 * remote.c (remote_teardown_btrace): Add 'self' argument.
8706 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8708 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8713 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8714 * target.c (target_disable_btrace): Add argument.
8715 * remote.c (remote_disable_btrace): Add 'self' argument.
8716 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8718 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8724 * target.c (target_enable_btrace): Add argument.
8725 * remote.c (remote_enable_btrace): Add 'self' argument.
8726 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8728 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8733 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8734 (target_can_use_agent): Add argument.
8735 * target.c (update_current_target): Update.
8736 * remote.c (remote_can_use_agent): Add 'self' argument.
8737 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target.h (struct target_ops) <to_use_agent>: Add argument.
8742 (target_use_agent): Add argument.
8743 * target.c (update_current_target): Update.
8744 * remote.c (remote_use_agent): Add 'self' argument.
8745 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8750 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8751 (target_traceframe_info): Add argument.
8752 * target.c (update_current_target): Update.
8753 * remote.c (remote_traceframe_info): Add 'self' argument.
8754 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target.h (target_static_tracepoint_markers_by_strid): Add
8760 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8762 * target.c (update_current_target): Update.
8763 * remote.c (struct target_ops)
8764 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8765 * linux-nat.c (struct target_ops)
8766 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8772 (target_static_tracepoint_marker_at): Add argument.
8773 * target.c (update_current_target): Update.
8774 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8777 2014-02-19 Tom Tromey <tromey@redhat.com>
8779 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8780 (target_set_permissions): Add argument.
8781 * target.c (update_current_target): Update.
8782 * remote.c (remote_set_permissions): Add 'self' argument.
8783 (remote_start_remote): Update.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8788 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8789 (target_get_tib_address): Add argument.
8790 * target.c (update_current_target): Update.
8791 * remote.c (remote_get_tib_address): Add 'self' argument.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8796 (target_set_trace_notes): Add argument.
8797 * target.c (update_current_target): Update.
8798 * remote.c (remote_set_trace_notes): Add 'self' argument.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8804 (target_set_trace_buffer_size): Add argument.
8805 * target.c (update_current_target): Update.
8806 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8808 2014-02-19 Tom Tromey <tromey@redhat.com>
8810 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8812 (target_set_circular_trace_buffer): Add argument.
8813 * target.c (update_current_target): Update.
8814 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8819 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8821 (target_set_disconnected_tracing): Add argument.
8822 * target.c (update_current_target): Update.
8823 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8825 2014-02-19 Tom Tromey <tromey@redhat.com>
8827 * target.h (struct target_ops)
8828 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8829 (target_get_min_fast_tracepoint_insn_len): Add argument.
8830 * target.c (update_current_target): Update.
8831 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8834 2014-02-19 Tom Tromey <tromey@redhat.com>
8836 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8838 (target_get_raw_trace_data): Add argument.
8839 * target.c (update_current_target): Update.
8840 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8846 (target_upload_trace_state_variables): Add argument.
8847 * target.c (update_current_target): Update.
8848 * remote.c (remote_upload_trace_state_variables): Add 'self'
8850 (remote_start_remote): Update.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8856 (target_upload_tracepoints): Add argument.
8857 * target.c (update_current_target): Update.
8858 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8859 (remote_start_remote): Update.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8864 (target_save_trace_data): Add argument.
8865 * target.c (update_current_target): Update.
8866 * remote.c (remote_save_trace_data): Add 'self' argument.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8872 * target.h (struct target_ops)
8873 <to_get_trace_state_variable_value>: Add argument.
8874 (target_get_trace_state_variable_value): Add argument.
8875 * target.c (update_current_target): Update.
8876 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8878 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8882 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8883 * target.h (struct target_ops) <to_trace_find>: Add argument.
8884 (target_trace_find): Add argument.
8885 * target.c (update_current_target): Update.
8886 * remote.c (remote_trace_find): Add 'self' argument.
8887 * ctf.c (ctf_trace_find): Add 'self' argument.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8892 (target_trace_stop): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_trace_stop): Add 'self' argument.
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8898 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8899 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8901 (target_get_tracepoint_status): Add argument.
8902 * target.c (update_current_target): Update.
8903 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8907 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8908 * target.h (struct target_ops) <to_get_trace_status>: Add
8910 (target_get_trace_status): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_get_trace_status): Add 'self' argument.
8913 (remote_start_remote, remote_can_download_tracepoint): Update.
8914 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target.h (struct target_ops) <to_trace_start>: Add argument.
8919 (target_trace_start): Add argument.
8920 * target.c (update_current_target): Update.
8921 * remote.c (remote_trace_start): Add 'self' argument.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8927 (target_trace_set_readonly_regions): Add argument.
8928 * target.c (update_current_target): Update.
8929 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8936 (target_disable_tracepoint): Add argument.
8937 * target.c (update_current_target): Update.
8938 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8944 (target_enable_tracepoint): Add argument.
8945 * target.c (update_current_target): Update.
8946 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target.h (struct target_ops) <to_download_trace_state_variable>:
8952 (target_download_trace_state_variable): Add argument.
8953 * target.c (update_current_target): Update.
8954 * remote.c (remote_download_trace_state_variable): Add 'self'
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8961 (target_can_download_tracepoint): Add argument.
8962 * target.c (update_current_target): Update.
8963 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target.h (struct target_ops) <to_download_tracepoint>: Add
8969 (target_download_tracepoint): Add argument.
8970 * target.c (update_current_target): Update.
8971 * remote.c (remote_download_tracepoint): Add 'self' argument.
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8975 * target.h (struct target_ops) <to_trace_init>: Add argument.
8976 (target_trace_init): Add argument.
8977 * target.c (update_current_target): Update.
8978 * remote.c (remote_trace_init): Add 'self' argument.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8983 * target.c (target_fileio_readlink): Add argument.
8984 * remote.c (remote_hostio_readlink): Add 'self' argument.
8985 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8990 * target.c (target_fileio_unlink): Add argument.
8991 * remote.c (remote_hostio_unlink): Add 'self' argument.
8992 (remote_file_delete): Update.
8993 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8998 * target.c (target_fileio_close): Add argument.
8999 * remote.c (remote_hostio_close): Add 'self' argument.
9000 (remote_hostio_close_cleanup): Update.
9001 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9003 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9007 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9008 * target.c (target_fileio_pread): Add argument.
9009 * remote.c (remote_hostio_pread): Add 'self' argument.
9010 (remote_bfd_iovec_pread, remote_file_get): Update.
9011 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9015 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9016 * target.c (target_fileio_pwrite): Add argument.
9017 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9018 (remote_file_put): Update.
9019 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9024 * target.c (target_fileio_open): Add argument.
9025 * remote.c (remote_hostio_open): Add 'self' argument.
9026 (remote_bfd_iovec_open): Add 'self' argument.
9027 (remote_file_put): Add 'self' argument.
9028 (remote_file_get): Add 'self' argument.
9029 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9035 (target_can_run_breakpoint_commands): Add argument.
9036 * target.c (update_current_target): Update.
9037 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9039 (remote_insert_breakpoint): Add 'self' argument.
9040 (remote_insert_hw_breakpoint): Add 'self' argument.
9041 (remote_can_run_breakpoint_commands): Add 'self' argument.
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9045 * target.h (struct target_ops)
9046 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9047 (target_supports_evaluation_of_breakpoint_conditions): Add
9049 * target.c (update_current_target): Update.
9050 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9052 (remote_insert_breakpoint): Add 'self' argument.
9053 (remote_insert_hw_breakpoint): Add 'self' argument.
9054 (remote_supports_cond_breakpoints): Add 'self' argument.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9060 (target_supports_string_tracing): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target.h (struct target_ops)
9067 <to_supports_disable_randomization>: Add argument.
9068 * target.c (find_default_supports_disable_randomization): Add
9070 (target_supports_disable_randomization): Add argument.
9071 (find_default_supports_disable_randomization): Add 'self'
9073 * remote.c (extended_remote_supports_disable_randomization): Add
9075 (remote_supports_disable_randomization): Add 'self' argument.
9076 (extended_remote_create_inferior): Update.
9077 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops)
9083 <to_supports_enable_disable_tracepoint>: Add argument.
9084 (target_supports_enable_disable_tracepoint): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_supports_multi_process>: Add
9093 (target_supports_multi_process): Add argument.
9094 * target.c (update_current_target): Update.
9095 * remote.c (remote_supports_multi_process): Add 'self' argument.
9096 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9098 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target.h (struct target_ops) <to_execution_direction>: Add
9105 (target_execution_direction): Add argument.
9106 * target.c (default_execution_direction): Add 'self' argument.
9107 * record-full.c (record_full_execution_direction): Add 'self'
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9114 (target_can_execute_reverse): Add argument.
9115 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9116 * record-full.c (record_full_can_execute_reverse): Add 'self'
9118 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9124 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9126 (target_get_ada_task_ptid): Add argument.
9127 * target.c (update_current_target): Update.
9128 (default_get_ada_task_ptid): Add 'self' argument.
9129 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9130 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9131 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9133 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9135 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9137 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9139 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9140 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9143 2014-02-19 Tom Tromey <tromey@redhat.com>
9145 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9146 (target_goto_bookmark): Add argument.
9147 * target.c (dummy_goto_bookmark): Add 'self' argument.
9148 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9153 (target_get_bookmark): Add argument.
9154 * target.c (dummy_get_bookmark): Add 'self' argument.
9155 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9161 (target_make_corefile_notes): Add argument.
9162 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9163 * procfs.c (procfs_make_note_section): Add 'self' argument.
9164 (procfs_make_note_section): Add 'self' argument.
9165 (procfs_make_note_section): Add 'self' argument.
9166 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9168 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9169 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9170 * exec.c (exec_make_note_section): Add 'self' argument.
9171 (exec_make_note_section): Add 'self' argument.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * target.h (struct target_ops) <to_find_memory_regions>: Add
9177 (target_find_memory_regions): Add argument.
9178 * target.c (dummy_find_memory_regions): Add 'self' argument.
9179 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9180 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9181 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9182 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9183 * exec. (exec_do_find_memory_regions): New global.
9184 (exec_set_find_memory_regions): Rewrite.
9185 (exec_find_memory_regions): New function.
9186 (init_exec_ops): Use exec_find_memory_regions.
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9190 * target.h (struct target_ops) <to_supports_non_stop>: Add
9192 * target.c (find_default_supports_non_stop): Add argument.
9193 (target_supports_non_stop): Add argument.
9194 (find_default_supports_non_stop): Add 'self' argument.
9195 * remote.c (remote_supports_non_stop): Add 'self' argument.
9196 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9200 * target.h (struct target_ops) <to_log_command>: Add argument.
9201 (target_log_command): Add argument.
9202 * serial.h (serial_log_command): Add 'self' argument.
9203 * serial.c (serial_log_command): Add 'self' argument.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9208 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9210 (target_pid_to_exec_file): Add argument.
9211 * target.c (debug_to_pid_to_exec_file): Add argument.
9212 (update_current_target): Update.
9213 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9214 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9215 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9216 (linux_handle_extended_wait): Update.
9217 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9218 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9219 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9220 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target.h (struct target_ops) <to_rcmd>: Add argument.
9225 (target_rcmd): Add argument.
9226 * target.c (debug_to_rcmd): Add argument.
9227 (update_current_target, do_monitor_command): Update.
9228 * remote.c (remote_rcmd): Add 'self' argument.
9229 * monitor.c (monitor_rcmd): Add 'self' argument.
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9233 * windows-nat.c (windows_stop): Add 'self' argument.
9234 * target.h (struct target_ops) <to_stop>: Add argument.
9235 * target.c (target_stop): Add argument.
9236 (debug_to_stop): Add argument.
9237 (update_current_target): Update.
9238 * remote.c (remote_stop): Add 'self' argument.
9239 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9240 (gdbsim_cntrl_c): Update.
9241 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9242 * procfs.c (procfs_stop): Add 'self' argument.
9243 * nto-procfs.c (procfs_stop): Add 'self' argument.
9244 * monitor.c (monitor_stop): Add 'self' argument.
9245 (monitor_open): Update.
9246 * linux-nat.c (linux_nat_stop): Add argument.
9247 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9248 * gnu-nat.c (gnu_stop): Add 'self' argument.
9249 * darwin-nat.c (darwin_stop): Add 'self' argument.
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target.h (struct target_ops) <to_thread_name>: Add argument.
9254 * target.c (target_thread_name): Add argument.
9255 (update_current_target): Update.
9256 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_extra_thread_info>: Add
9262 (target_extra_thread_info): Add argument.
9263 * target.c (update_current_target): Update.
9264 * remote.c (remote_threads_extra_info): Add 'self' argument.
9265 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9267 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9268 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9269 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9271 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9273 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9275 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9280 * target.h (struct target_ops) <to_program_signals>: Add argument.
9281 * target.c (target_program_signals): Add argument.
9282 * remote.c (remote_program_signals): Add 'self' argument.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9287 * target.c (target_pass_signals): Add argument.
9288 * remote.c (remote_pass_signals): Add 'self' argument.
9289 (remote_start_remote): Update.
9290 * procfs.c (procfs_pass_signals): Add 'self' argument.
9291 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9292 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9293 (linux_nat_create_inferior, linux_nat_attach): Update.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * windows-nat.c (windows_can_run): Add 'self' argument.
9298 * target.h (struct target_ops) <to_can_run>: Add argument.
9299 (target_can_run): Add argument.
9300 * target.c (debug_to_can_run): Add argument.
9301 (update_current_target): Update.
9302 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9303 * inf-child.c (inf_child_can_run): Add 'self' argument.
9304 * go32-nat.c (go32_can_run): Add 'self' argument.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_has_exited>: Add argument.
9309 (target_has_exited): Add argument.
9310 * target.c (debug_to_has_exited): Add argument.
9311 (update_current_target): Update.
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9315 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9317 (target_set_syscall_catchpoint): Add argument.
9318 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9320 * target.c (update_current_target): Update.
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9324 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9326 (target_remove_exec_catchpoint): Add argument.
9327 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9328 (update_current_target): Update.
9329 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9336 (target_insert_exec_catchpoint): Add argument.
9337 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9338 (update_current_target): Update.
9339 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9344 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9346 (target_remove_vfork_catchpoint): Add argument.
9347 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9348 (update_current_target): Update.
9349 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9354 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9356 (target_insert_vfork_catchpoint): Add argument.
9357 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9358 (update_current_target): Update.
9359 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9366 (target_remove_fork_catchpoint): Add argument.
9367 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9368 (update_current_target): Update.
9369 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9376 (target_insert_fork_catchpoint): Add argument.
9377 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9378 (update_current_target): Update.
9379 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9386 (target_post_startup_inferior): Add argument.
9387 * target.c (debug_to_post_startup_inferior): Add argument.
9388 (update_current_target): Update.
9389 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9391 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9393 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9395 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9397 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9399 (super_post_startup_inferior): Likewise.
9400 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9402 (super_post_startup_inferior): Likewise.
9403 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9404 Add 'self' argument.
9405 (super_post_startup_inferior): Likewise.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_load>: Add argument.
9410 * target.c (target_load): Add argument.
9411 (debug_to_load): Add argument.
9412 (update_current_target): Update.
9413 * remote.c (remote_load): Add 'self' argument.
9414 * remote-sim.c (gdbsim_load): Add 'self' argument.
9415 * remote-mips.c (mips_load): Add 'self' argument.
9416 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9417 * monitor.c (monitor_load): Add 'self' argument.
9418 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9423 (target_terminal_info): Add argument.
9424 * target.c (debug_to_terminal_info): Add argument.
9425 (default_terminal_info): Likewise.
9426 * inflow.c (child_terminal_info): Add 'self' argument.
9427 * inferior.h (child_terminal_info): Add 'self' argument.
9428 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9434 (target_terminal_save_ours): Add argument.
9435 * target.c (debug_to_terminal_save_ours): Add argument.
9436 (update_current_target): Update.
9437 * inflow.c (terminal_save_ours): Add 'self' argument.
9438 * inferior.h (terminal_save_ours): Add 'self' argument.
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9442 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9443 (target_terminal_ours): Add argument.
9444 * target.c (debug_to_terminal_ours): Add argument.
9445 (update_current_target): Update.
9446 * remote.c (remote_terminal_ours): Add 'self' argument.
9447 (remote_close): Update.
9448 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9449 * inflow.c (terminal_ours): Add 'self' argument.
9450 * inferior.h (terminal_ours): Add 'self' argument.
9451 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9453 2014-02-19 Pedro Alves <palves@redhat.com>
9454 Tom Tromey <tromey@redhat.com>
9456 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9458 (target_terminal_ours_for_output): Add argument.
9459 * target.c (debug_to_terminal_ours_for_output): Add argument.
9460 (update_current_target): Update.
9461 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9462 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9463 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9467 * target.h (struct target_ops) <to_terminal_inferior>: Add
9469 * target.c (target_terminal_inferior): Add argument.
9470 (update_current_target): Update.
9471 * remote.c (remote_terminal_inferior): Add 'self' argument.
9472 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9473 * inflow.c (terminal_inferior): Add 'self' argument.
9474 * inferior.h (terminal_inferior): Add 'self' argument.
9475 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9476 (go32_terminal_inferior): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9481 (target_terminal_init): Add argument.
9482 * target.c (debug_to_terminal_init): Add argument.
9483 (update_current_target): Update.
9484 * inflow.c (terminal_init_inferior): Add 'self' argument.
9485 * inferior.h (terminal_init_inferior): Add 'self' argument.
9486 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9487 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target.h (struct target_ops)
9492 <to_can_accel_watchpoint_condition>: Add argument.
9493 (target_can_accel_watchpoint_condition): Add argument.
9494 * target.c (debug_to_can_accel_watchpoint_condition): Add
9496 (update_current_target): Update.
9497 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9504 (target_region_ok_for_hw_watchpoint): Add argument.
9505 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9506 (default_region_ok_for_hw_watchpoint): Add argument.
9507 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9508 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9510 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9512 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9514 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9516 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9518 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9520 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9521 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9523 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9524 Add 'self' argument.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9530 (target_insert_watchpoint): Add argument.
9531 * target.c (debug_to_insert_watchpoint): Add argument.
9532 (update_current_target): Update.
9533 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9534 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9535 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9536 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9537 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9538 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9540 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9541 (procfs_insert_hw_watchpoint): Add 'self' argument.
9542 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9544 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9546 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9548 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9549 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9551 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9558 (target_remove_watchpoint): Add argument.
9559 * target.c (debug_to_remove_watchpoint): Add argument.
9560 (update_current_target): Update.
9561 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9562 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9563 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9564 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9565 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9566 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9568 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9569 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9571 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9573 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9575 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9576 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9578 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9585 (target_remove_hw_breakpoint): Add argument.
9586 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9587 (update_current_target): Update.
9588 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9589 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9591 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9592 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9594 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9597 2014-02-19 Tom Tromey <tromey@redhat.com>
9599 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9601 (target_insert_hw_breakpoint): Add argument.
9602 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9603 (update_current_target): Update.
9604 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9605 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9607 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9608 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9609 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9611 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9618 (target_can_use_hardware_watchpoint): Add argument.
9619 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9620 (update_current_target): Update.
9621 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9623 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9625 * remote.c (remote_check_watch_resources): Add 'self' argument.
9626 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9627 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9629 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9630 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9632 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9634 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9636 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9638 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9640 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9642 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9643 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9645 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_post_attach>: Add argument.
9651 (target_post_attach): Add argument.
9652 * target.c (debug_to_post_attach): Add argument.
9653 (update_current_target): Update.
9654 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9655 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9656 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9657 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9658 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9662 * windows-nat.c (windows_close): Add 'self' argument.
9663 * tracepoint.c (tfile_close): Add 'self' argument.
9664 * target.h (struct target_ops) <to_close>: Add argument.
9665 * target.c (target_close): Add argument.
9666 (update_current_target): Update.
9667 * remote.c (remote_close): Add 'self' argument.
9668 * remote-sim.c (gdbsim_close): Add 'self' argument.
9669 * remote-mips.c (mips_close): Add 'self' argument.
9670 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9671 * record-full.c (record_full_close): Add 'self' argument.
9672 * record-btrace.c (record_btrace_close): Add 'self' argument.
9673 * monitor.h (monitor_close): Add 'self' argument.
9674 * monitor.c (monitor_close): Add 'self' argument.
9675 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9676 * linux-nat.c (linux_nat_close): Add argument.
9677 * go32-nat.c (go32_close): Add 'self' argument.
9678 * exec.c (exec_close_1): Add 'self' argument.
9679 * ctf.c (ctf_close): Add 'self' argument.
9680 * corelow.c (core_close): Add 'self' argument.
9681 (core_close_cleanup): Update.
9682 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9683 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9687 * remote.c (remote_load): New function.
9688 (init_remote_ops): Use it.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9694 * common/linux-btrace.h (linux_supports_btrace): Update.
9695 * remote.c (remote_supports_btrace): Add "self" argument.
9696 * target-delegates.c: Rebuild.
9697 * target.c (target_supports_btrace): Remove.
9698 * target.h (struct target_ops) <to_supports_btrace>: Add
9699 target_ops argument.
9700 (target_supports_btrace): New define.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * record-full.c (record_full_beneath_to_resume_ops)
9705 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9706 (record_full_beneath_to_wait)
9707 (record_full_beneath_to_store_registers_ops)
9708 (record_full_beneath_to_store_registers)
9709 (record_full_beneath_to_xfer_partial_ops)
9710 (record_full_beneath_to_xfer_partial)
9711 (record_full_beneath_to_insert_breakpoint_ops)
9712 (record_full_beneath_to_insert_breakpoint)
9713 (record_full_beneath_to_remove_breakpoint_ops)
9714 (record_full_beneath_to_remove_breakpoint)
9715 (record_full_beneath_to_stopped_by_watchpoint)
9716 (record_full_beneath_to_stopped_data_address)
9717 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9718 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9719 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9720 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9721 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9722 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9723 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9724 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9725 (record_full_resume, record_full_wait_1)
9726 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9727 (record_full_store_registers, record_full_xfer_partial)
9728 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9729 (record_full_async, record_full_core_xfer_partial): Use target
9731 * target-delegates.c: Rebuild.
9732 * target.c (current_xfer_partial): Remove.
9733 (update_current_target): Do not INHERIT or de_fault
9734 to_insert_breakpoint, to_remove_breakpoint,
9735 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9736 to_is_async_p, to_async. Do not set to_xfer_partial field.
9737 (default_xfer_partial): Simplify.
9738 (current_xfer_partial): Remove.
9739 (target_wait, target_resume): Simplify.
9740 (find_default_can_async_p, find_default_is_async_p): Update.
9741 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9742 to_xfer_partial, to_stopped_by_watchpoint,
9743 to_stopped_data_address.
9744 (target_store_registers): Simplify.
9745 (forward_target_remove_breakpoint)
9746 (forward_target_insert_breakpoint): Remove.
9747 (target_remove_breakpoint, target_insert_breakpoint)
9748 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9749 * target.h (struct target_ops) <to_resume, to_wait,
9750 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9751 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9752 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9754 (forward_target_remove_breakpoint)
9755 (forward_target_insert_breakpoint): Remove.
9756 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9758 (record_btrace_insert_breakpoint): Delegate directly.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target-delegates.c: New file.
9764 * target.c: Include target-delegates.c.
9765 (init_dummy_target): Call install_dummy_methods.
9766 (complete_target_initialization): Call install_delegators.
9767 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9768 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9769 * make-target-delegates: New file.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * record.c (find_record_target): Use find_target_at.
9774 * target.c (find_target_at): New function.
9775 * target.h (find_target_at): Declare.
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9781 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9783 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9784 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9786 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9788 * linux-nat.c (save_sigtrap): Update.
9789 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9790 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9791 (linux_nat_close): Update.
9792 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9794 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9796 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9797 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9798 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9799 (tmp_to_async): Add 'ops' argument.
9800 (record_full_stopped_by_watchpoint, record_full_async)
9801 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9803 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9804 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9805 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9806 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9807 (remote_is_async_p, remote_async): Add 'ops' argument.
9808 (remote_stopped_data_address): Update.
9809 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9810 * target.c (update_current_target)
9811 (find_default_can_async_p, find_default_is_async_p): Update.
9812 (init_dummy_target): Update.
9813 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9814 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9815 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9816 (target_can_async_p, target_is_async_p, target_async)
9817 (target_stopped_by_watchpoint): Update.
9819 2014-02-19 Yao Qi <yao@codesourcery.com>
9822 * gdbarch.sh: Remove startup_gdbarch.
9823 * gdbarch.c: Regenerated.
9824 * gdbarch.h: Likewise.
9826 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9828 * rl78-tdep.c (rl78_g10_register_name): New function.
9829 (rl78_return_value): Add g10 support.
9830 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9833 2014-02-17 Doug Evans <xdje42@gmail.com>
9835 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9836 (SUBDIR_GUILE_SRCS): Ditto.
9837 (scm-gsmob.o): Ditto.
9839 2014-02-17 Yao Qi <yao@codesourcery.com>
9841 * gnu-nat.c (ILL_RPC): Declare defined function.
9843 2014-02-17 Yao Qi <yao@codesourcery.com>
9845 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9846 mach_msg_type_number_t.
9847 (gnu_write_inferior): Likewise.
9849 2014-02-17 Yao Qi <yao@codesourcery.com>
9851 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9853 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9854 (inf_validate_procs, inf_signal): Likewise.
9855 (S_exception_raise_request): Likewise.
9856 (do_mach_notify_dead_name): Likewise.
9857 (steal_exc_port): Likewise.
9858 (gnu_read_inferior): Change 'copy_count''s type to
9859 mach_msg_type_number_t.
9860 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9863 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9865 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9866 flag. Adjust all users; in particular...
9867 (gnu_wait): ..., don't decrement its value in here...
9868 (gnu_create_inferior): ..., and instead set the flag in here,
9869 around the startup_inferior call, and call that one with
9870 START_INFERIOR_TRAPS_EXPECTED.
9872 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9873 (ILL_RPC): ... new macro.
9874 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9875 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9876 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9877 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9878 functions with ILL_RPC macro.
9879 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9880 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9881 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9882 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9883 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9884 (S_proc_getlogin_reply, S_proc_getsid_reply)
9885 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9886 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9887 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9888 (S_proc_getnports_reply, S_proc_is_important_reply)
9889 (S_proc_get_code_reply): New stub functions, generated with
9892 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9893 collected the type check structures.
9895 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9897 2014-02-14 Doug Evans <dje@google.com>
9899 * target.c (target_write_partial): Fix result type.
9901 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9903 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9904 the proper offsets to access fpregset_t.
9906 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9908 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9909 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9910 * h8300-tdep.c (setmachinelist): Remove global.
9911 * hppa-tdep.c (hppa_sigtramp): Remove global.
9912 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9913 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9914 * ravenscar-thread.c (update_target_observer): Remove global.
9915 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9917 2014-02-12 Tom Tromey <tromey@redhat.com>
9919 * common/rsp-low.c: Update comments.
9920 * common/rsp-low.h: Update comments.
9922 2014-02-12 Tom Tromey <tromey@redhat.com>
9924 * common/rsp-low.c (convert_ascii_to_int): Remove.
9925 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9927 2014-02-12 Tom Tromey <tromey@redhat.com>
9929 * common/rsp-low.h (unhexify): Don't declare.
9930 * common/rsp-low.c (unhexify): Remove.
9932 2014-02-12 Tom Tromey <tromey@redhat.com>
9934 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9935 * common/rsp-low.c (convert_int_to_ascii): Remove.
9937 2014-02-12 Tom Tromey <tromey@redhat.com>
9939 * common/rsp-low.h (hexify): Don't declare.
9940 * common/rsp-low.c (hexify): Remove.
9942 2014-02-12 Tom Tromey <tromey@redhat.com>
9944 * common/rsp-low.c (hexify): Never take strlen of argument.
9946 2014-02-12 Tom Tromey <tromey@redhat.com>
9948 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9949 * remote.c (extended_remote_run, remote_rcmd)
9950 (remote_download_trace_state_variable, remote_save_trace_data)
9951 (remote_set_trace_notes): Update.
9952 * tracepoint.c (encode_source_string, tfile_write_status)
9953 (tfile_write_uploaded_tsv): Update.
9955 2014-02-12 Tom Tromey <tromey@redhat.com>
9957 * tracepoint.c: Include rsp-low.h.
9958 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9959 * remote.c: Include rsp-low.h.
9960 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9961 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9962 (remote_unescape_input): Move to common/rsp-low.c.
9963 * common/rsp-low.h: New file.
9964 * common/rsp-low.c: New file.
9965 * Makefile.in (SFILES): Add common/rsp-low.c.
9966 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9967 (COMMON_OBS): Add rsp-low.o.
9968 (rsp-low.o): New target.
9970 2014-02-12 Tom Tromey <tromey@redhat.com>
9972 * utils.h: Include print-utils.h.
9973 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9974 (int_string, core_addr_to_string, core_addr_to_string_nz)
9975 (hex_string, hex_string_custom): Don't declare.
9976 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9977 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9978 (hex_string_custom, int_string, core_addr_to_string)
9979 (core_addr_to_string_nz, host_address_to_string): Move to
9980 common/print-utils.c.
9981 * common/print-utils.h: New file.
9982 * common/print-utils.c: New file
9983 * Makefile.in (SFILES): Add common/print-utils.c.
9984 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9985 (COMMON_OBS): Add print-utils.o.
9986 (print-utils.o): New target.
9988 2014-02-12 Tom Tromey <tromey@redhat.com>
9990 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9992 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9994 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9996 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9998 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9999 if a PT_IO ptrace request returns sucessfully but indicates that 0
10000 bytes were transferred.
10002 2014-02-12 Pedro Alves <palves@redhat.com>
10003 Kevin Buettner <kevinb@redhat.com>
10005 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10006 TYPE_INSTANCE_FLAG_CODE_SPACE.
10008 2014-02-12 Pedro Alves <palves@redhat.com>
10010 * h8300-tdep.c (pseudo_from_raw_register)
10011 (raw_from_pseudo_register): New functions.
10012 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10015 2014-02-12 Pedro Alves <palves@redhat.com>
10017 * h8300-tdep.c (h8300_register_sim_regno): New function.
10018 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10019 gdbarch_register_sim_regno hook.
10021 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10023 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10025 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10027 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10029 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10031 * obsd-tdep.h (obsd_init_abi): New prototype.
10032 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10033 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10034 (obsd_init_abi): New functions.
10035 * i386obsd-tdep.c: Include "obsd-tdep.h".
10036 (i386obsd_init_abi): Call obsd_init_abi.
10037 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10038 (amd64obsd_init_abi): Call obsd_init_abi.
10039 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10040 obsd-tdep.c to gdb_target_obs.
10042 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10044 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10045 double float arguments to 16-byte in the argument slots.
10047 2014-02-11 Doug Evans <xdje42@gmail.com>
10049 * configure.ac: Don't crash if pkg-config is not found and guile
10050 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10052 * configure: Regenerate.
10054 2014-02-11 Yao Qi <yao@codesourcery.com>
10056 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10057 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10058 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10059 * gnu-nat.c (gnu_xfer_memory): Likewise.
10060 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10061 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10062 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10063 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10065 2014-02-11 Yao Qi <yao@codesourcery.com>
10067 * target.h (enum target_xfer_error): Rename to ...
10068 (enum target_xfer_status): ... it. New. All users updated.
10069 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10071 (TARGET_XFER_STATUS_ERROR_P): New macro.
10072 (target_xfer_error_to_string): Remove declaration.
10073 (target_xfer_status_to_string): Declare.
10074 (target_xfer_partial_ftype): Adjust it.
10075 (struct target_ops) <to_xfer_partial>: Return
10076 target_xfer_status. Add argument xfered_len. Update
10078 * target.c (target_xfer_error_to_string): Rename to ...
10079 (target_xfer_status_to_string): ... it. New. All callers
10081 (target_read_live_memory): Likewise. Call target_xfer_partial
10082 instead of target_read.
10083 (memory_xfer_live_readonly_partial): Return
10084 target_xfer_status. Add argument xfered_len.
10085 (raw_memory_xfer_partial): Likewise.
10086 (memory_xfer_partial_1): Likewise.
10087 (memory_xfer_partial): Likewise.
10088 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10089 properly. Update debug message.
10090 (default_xfer_partial, current_xfer_partial): Likewise.
10091 (target_write_partial): Likewise.
10092 (target_read_partial): Likewise. All callers updated.
10093 (read_whatever_is_readable): Likewise.
10094 (target_write_with_progress): Likewise.
10095 (target_read_alloc_1): Likewise.
10097 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10098 * auxv.c (procfs_xfer_auxv): Likewise.
10099 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10100 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10101 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10102 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10103 * corefile.c (read_memory): Adjust.
10104 * corelow.c (core_xfer_partial): Likewise.
10105 * ctf.c (ctf_xfer_partial): Likewise.
10106 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10108 (darwin_xfer_partial): Likewise.
10109 * exec.c (section_table_xfer_memory_partial): Likewise. All
10111 (exec_xfer_partial): Likewise.
10112 * exec.h (section_table_xfer_memory_partial): Update
10114 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10116 (gnu_xfer_partial): Likewise.
10117 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10118 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10119 (ia64_hpux_xfer_solib_got): Likewise.
10120 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10121 type of 'partial_len' to ULONGEST.
10122 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10123 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10124 (linux_nat_xfer_partial): Likewise.
10125 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10126 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10127 * monitor.c (monitor_xfer_memory): Likewise.
10128 (monitor_xfer_partial): Likewise.
10129 * procfs.c (procfs_xfer_partial): Likewise.
10130 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10131 * record-full.c (record_full_xfer_partial): Likewise.
10132 (record_full_core_xfer_partial): Likewise.
10133 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10134 (gdbsim_xfer_partial): Likewise.
10135 * remote.c (remote_write_bytes_aux): Likewise. All callers
10137 (remote_write_bytes, remote_read_bytes): Likewise. All
10139 (remote_flash_erase): Likewise. All callers updated.
10140 (remote_write_qxfer): Likewise. All callers updated.
10141 (remote_read_qxfer): Likewise. All callers updated.
10142 (remote_xfer_partial): Likewise.
10143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10144 (rs6000_xfer_shared_libraries): Likewise.
10145 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10146 (sol_thread_xfer_partial): Likewise.
10147 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10148 (sparc_xfer_partial): Likewise.
10149 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10151 (spu_xfer_partial): Likewise.
10152 * spu-multiarch.c (spu_xfer_partial): Likewise.
10153 * tracepoint.c (tfile_xfer_partial): Likewise.
10154 * windows-nat.c (windows_xfer_memory): Likewise.
10155 (windows_xfer_shared_libraries): Likewise.
10156 (windows_xfer_partial): Likewise.
10157 * valprint.c: Replace 'target_xfer_error' with
10158 'target_xfer_status' in comments.
10160 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10162 Checked in by Joel Brobecker <brobecker@adacore.com>.
10163 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10165 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10167 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10168 function parameters.
10170 2014-02-10 Will Newton <will.newton@linaro.org>
10172 * elfread.c (elf_rel_plt_read): Look for a .got section if
10173 looking up .got.plt fails.
10174 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10175 on address passed to elf_gnu_ifunc_record_cache.
10176 (elf_gnu_ifunc_resolve_addr): Likewise.
10177 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10179 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10181 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10182 (X_RETTURN): New macro.
10183 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10185 * sparc64-tdep.c (sparc64_init_abi): Hook
10186 sparc_in_function_epilogue_p.
10188 2014-02-10 Gary Benson <gbenson@redhat.com>
10190 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10191 Rename name_matcher to symbol_matcher.
10193 2014-02-10 Gary Benson <gbenson@redhat.com>
10195 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10196 Use expand_symtabs_file_matcher_ftype and
10197 expand_symtabs_symbol_matcher_ftype.
10199 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10201 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10202 (struct ada_symbol_cache): New.
10203 (ada_free_symbol_cache): Forward declare.
10204 (struct ada_pspace_data): New.
10205 (ada_pspace_data_handle): New static global.
10206 (get_ada_pspace_data, ada_pspace_data_cleanup)
10207 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10208 (cache_space, cache): Delete, now folded inside struct
10210 (ada_get_symbol_cache): New function.
10211 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10213 (_initialize_ada_language): Remove initialization of cache_space.
10214 Move call to observer_attach_inferior_exit up, grouping it
10215 with the other observer registrations inside this function.
10216 Rename command to be more general. Add call to
10217 register_program_space_data_with_cleanup.
10219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10221 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10222 ada_new_objfile_observer.
10223 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10224 (_initialize_tasks): Update uses of ada_new_objfile_observer
10225 and ada_tasks_normal_stop_observer.
10227 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10229 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10230 returned by the 'Length attribute to integer.
10232 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10234 * ada-lang.c (_initialize_ada_language): Initialize
10235 cache_space obstack.
10237 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10239 * ada-lang.c (HASH_SIZE): New macro.
10240 (struct cache_entry): New type.
10241 (cache_space, cache): New static globals.
10242 (ada_clear_symbol_cache, find_entry): New functions.
10243 (lookup_cached_symbol, cache_symbol): Implement.
10244 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10245 (_initialize_ada_language): Attach ada_new_objfile_observer
10246 and ada_free_objfile_observer.
10248 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10250 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10251 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10252 struct block * parameter.
10253 (ada_lookup_symbol_list_worker): Constify local variable "block".
10254 Remove cast which is no longer necessary.
10256 2014-02-10 Doug Evans <xdje42@gmail.com>
10258 Add Guile as an extension language.
10259 * NEWS: Mention Guile scripting.
10260 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10261 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10262 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10263 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10264 (CLIBS): Add GUILE_LIBS.
10265 (install-guile): New rule.
10266 (guile.o): New rule.
10267 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10268 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10269 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10270 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10271 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10272 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10273 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10274 * configure.ac: New option --with-guile.
10275 * configure: Regenerate.
10276 * config.in: Regenerate.
10277 * auto-load.c: Remove #include "python/python.h". Add #include
10278 "gdb/section-scripts.h".
10279 (source_section_scripts): Handle Guile scripts.
10280 (_initialize_auto_load): Add name of Guile objfile script to
10281 scripts-directory help text.
10282 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10283 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10284 (struct breakpoint): New member scm_bp_object.
10285 * defs.h (enum command_control_type): New value guile_control.
10286 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10288 (show_user): Update comment.
10289 (_initialize_cli_cmds): Update help text for "show user". Update help
10290 text for max-user-call-depth.
10291 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10293 (multi_line_command_p): Add guile_control.
10294 (print_command_lines): Handle guile_control.
10295 (execute_control_command, recurse_read_control_structure): Ditto.
10296 (process_next_line): Recognize "guile" commands.
10297 * disasm.c (gdb_disassemble_info): Make non-static.
10298 * disasm.h: #include "dis-asm.h".
10299 (struct gdbarch): Add forward decl.
10300 (gdb_disassemble_info): Declare.
10301 * extension.c: #include "guile/guile.h".
10302 (extension_languages): Add guile.
10303 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10304 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10305 * gdbtypes.c (get_unsigned_type_max): New function.
10306 (get_signed_type_minmax): New function.
10307 * gdbtypes.h (get_unsigned_type_max): Declare.
10308 (get_signed_type_minmax): Declare.
10309 * guile/README: New file.
10310 * guile/guile-internal.h: New file.
10311 * guile/guile.c: New file.
10312 * guile/guile.h: New file.
10313 * guile/scm-arch.c: New file.
10314 * guile/scm-auto-load.c: New file.
10315 * guile/scm-block.c: New file.
10316 * guile/scm-breakpoint.c: New file.
10317 * guile/scm-disasm.c: New file.
10318 * guile/scm-exception.c: New file.
10319 * guile/scm-frame.c: New file.
10320 * guile/scm-gsmob.c: New file.
10321 * guile/scm-iterator.c: New file.
10322 * guile/scm-lazy-string.c: New file.
10323 * guile/scm-math.c: New file.
10324 * guile/scm-objfile.c: New file.
10325 * guile/scm-ports.c: New file.
10326 * guile/scm-pretty-print.c: New file.
10327 * guile/scm-safe-call.c: New file.
10328 * guile/scm-string.c: New file.
10329 * guile/scm-symbol.c: New file.
10330 * guile/scm-symtab.c: New file.
10331 * guile/scm-type.c: New file.
10332 * guile/scm-utils.c: New file.
10333 * guile/scm-value.c: New file.
10334 * guile/lib/gdb.scm: New file.
10335 * guile/lib/gdb/boot.scm: New file.
10336 * guile/lib/gdb/experimental.scm: New file.
10337 * guile/lib/gdb/init.scm: New file.
10338 * guile/lib/gdb/iterator.scm: New file.
10339 * guile/lib/gdb/printing.scm: New file.
10340 * guile/lib/gdb/types.scm: New file.
10341 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10342 (VPATH): Add $(GUILE_SRCDIR).
10343 (GUILE_DIR): New variable.
10344 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10345 (all): Add stamp-guile dependency.
10346 (stamp-guile): New rule.
10347 (clean-guile, install-guile, uninstall-guile): New rules.
10348 (install-only): Add install-guile dependency.
10349 (uninstall): Add uninstall-guile dependency.
10350 (clean): Add clean-guile dependency.
10352 2014-02-09 Doug Evans <xdje42@gmail.com>
10354 Revert this patch (which I approved, mea culpa).
10356 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10358 * Makefile.in (all-lib): Remove.
10359 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10361 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10363 Fix Python stack corruption.
10364 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10367 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10369 * Makefile.in (all-lib): Remove.
10370 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10372 2014-02-07 Doug Evans <dje@google.com>
10374 * extension-priv.h (extension_language_script_ops): Add comment.
10375 (extension_language_ops): Add comment.
10376 (active_ext_lang_state): Fix typo in comment.
10378 2014-02-07 Pedro Alves <palves@redhat.com>
10380 PR breakpoints/16292
10381 * infrun.c (handle_signal_stop) <signal arrives while stepping
10382 over a breakpoint>: Switch back to the stepping thread.
10384 2014-02-07 Yao Qi <yao@codesourcery.com>
10386 * target.c (target_xfer_partial): Return zero if LEN is zero.
10388 2014-02-07 Yao Qi <yao@codesourcery.com>
10390 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10391 (ld_so_xfer_auxv): Likewise.
10392 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10393 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10394 * corelow.c (core_xfer_partial): Likewise.
10395 * ctf.c (ctf_xfer_partial): Likewise.
10396 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10397 (darwin_xfer_partial): Likewise.
10398 * exec.c (exec_xfer_partial): Likewise.
10399 * gnu-nat.c (gnu_xfer_partial): Likewise.
10400 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10401 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10402 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10403 * linux-nat.c (linux_xfer_siginfo): Likewise.
10404 (linux_proc_xfer_spu): Likewise.
10405 * procfs.c (procfs_xfer_partial): Likewise.
10406 * record-full.c (record_full_xfer_partial): Likewise.
10407 (record_full_core_xfer_partial): Likewise.
10408 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10409 * remote.c (remote_write_qxfer): Likewise.
10410 (remote_write_qxfer, remote_read_qxfer): Likewise.
10411 (remote_xfer_partial): Likewise.
10412 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10413 (rs6000_xfer_shared_libraries): Likewise.
10414 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10415 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10416 (spu_xfer_partial): Likewise.
10417 * target.c (memory_xfer_partial_1): Likewise.
10418 * tracepoint.c (tfile_xfer_partial): Likewise.
10419 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10420 (windows_xfer_partial): Likewise.
10422 2014-02-07 Yao Qi <yao@codesourcery.com>
10424 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10426 (core_xfer_shared_libraries_aix): Likewise.
10427 * gdbarch.c, gdbarch.h: Regenerated.
10428 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10429 ULONGEST. Change 'len_avail' type to ULONGEST.
10430 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10431 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10433 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10435 2014-02-07 Yao Qi <yao@codesourcery.com>
10437 * corefile.c (memory_error): Get 'exception' from ERR and pass
10438 'exception' to throw_error.
10440 2014-02-06 Doug Evans <xdje42@gmail.com>
10442 * configure.ac (libpython checking): Remove all but python.o from
10443 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10444 * configure: Regenerate.
10446 * Makefile.in (SFILES): Add extension.c.
10447 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10448 (COMMON_OBS): Add extension.o.
10449 * extension.h: New file.
10450 * extension-priv.h: New file.
10451 * extension.c: New file.
10453 * python/python-internal.h: #include "extension.h".
10454 (gdbpy_auto_load_enabled): Declare.
10455 (gdbpy_apply_val_pretty_printer): Declare.
10456 (gdbpy_apply_frame_filter): Declare.
10457 (gdbpy_preserve_values): Declare.
10458 (gdbpy_breakpoint_cond_says_stop): Declare.
10459 (gdbpy_breakpoint_has_cond): Declare.
10460 (void source_python_script_for_objfile): Delete.
10461 * python/python.c: #include "extension-priv.h".
10462 Delete inclusion of "observer.h".
10463 (extension_language_python): Moved here and renamed from
10464 script_language_python in py-auto-load.c.
10465 Redefined to be of type extension_language_defn.
10466 (python_extension_script_ops): New global.
10467 (python_extension_ops): New global.
10468 (struct python_env): New member previous_active.
10469 (restore_python_env): Call restore_active_ext_lang.
10470 (ensure_python_env): Call set_active_ext_lang.
10471 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10473 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10475 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10477 (gdbpy_eval_from_control_command): Renamed from
10478 eval_python_from_control_command, made static. New arg extlang.
10479 (gdbpy_source_script) Renamed from source_python_script, made static.
10481 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10482 result to int. New arg extlang.
10483 (gdbpy_source_objfile_script): Renamed from
10484 source_python_script_for_objfile, made static. New arg extlang.
10485 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10486 static. New args extlang, extlang_printers. Change result type to
10488 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10489 static. New arg extlang. Rename arg printers to extlang_printers
10490 and change type to ext_lang_type_printers *.
10491 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10492 static. Replace argument arg with extlang, extlang_printers.
10493 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10494 (!HAVE_PYTHON, source_python_script): Delete.
10495 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10496 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10497 (!HAVE_PYTHON, start_type_printers): Delete.
10498 (!HAVE_PYTHON, apply_type_printers): Delete.
10499 (!HAVE_PYTHON, free_type_printers): Delete.
10500 (_initialize_python): Delete call to observer_attach_before_prompt.
10501 (finalize_python): Set/restore active extension language.
10502 (gdbpy_finish_initialization) Renamed from
10503 finish_python_initialization, made static. New arg extlang.
10504 (gdbpy_initialized): New function.
10505 * python/python.h: #include "extension.h". Delete #include
10506 "value.h", "mi/mi-cmds.h".
10507 (extension_language_python): Declare.
10508 (GDBPY_AUTO_FILE_NAME): Delete.
10509 (enum py_bt_status): Moved to extension.h and renamed to
10510 ext_lang_bt_status.
10511 (enum frame_filter_flags): Moved to extension.h.
10512 (enum py_frame_args): Moved to extension.h and renamed to
10513 ext_lang_frame_args.
10514 (finish_python_initialization): Delete.
10515 (eval_python_from_control_command): Delete.
10516 (source_python_script): Delete.
10517 (apply_val_pretty_printer): Delete.
10518 (apply_frame_filter): Delete.
10519 (preserve_python_values): Delete.
10520 (gdbpy_script_language_defn): Delete.
10521 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10522 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10524 * auto-load.c: #include "extension.h".
10525 (GDB_AUTO_FILE_NAME): Delete.
10526 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10527 (script_language_gdb): Delete, moved to extension.c and renamed to
10528 extension_language_gdb.
10529 (source_gdb_script_for_objfile): Delete.
10530 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10531 (loaded_script): Change type of language member to
10532 struct extension_language_defn *.
10533 (init_loaded_scripts_info): Initialize
10534 unsupported_script_warning_printed.
10535 (maybe_add_script): Make static. Change type of language arg to
10536 struct extension_language_defn *.
10537 (clear_section_scripts): Reset unsupported_script_warning_printed.
10538 (auto_load_objfile_script_1): Rewrite to use extension language API.
10539 (auto_load_objfile_script): Make public. Remove support-compiled-in
10540 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10541 (source_section_scripts): Rewrite to use extension language API.
10542 (load_auto_scripts_for_objfile): Rewrite to use
10543 auto_load_scripts_for_objfile.
10544 (collect_matching_scripts_data): Change type of language member to
10545 struct extension_language_defn *.
10546 (auto_load_info_scripts): Change type of language arg to
10547 struct extension_language_defn *.
10548 (unsupported_script_warning_print): New function.
10549 (script_not_found_warning_print): Make static.
10550 (_initialize_auto_load): Rewrite construction of scripts-directory
10552 * auto-load.h (struct objfile): Add forward decl.
10553 (struct script_language): Delete.
10554 (struct auto_load_pspace_info): Add forward decl.
10555 (struct extension_language_defn): Add forward decl.
10556 (maybe_add_script): Delete.
10557 (auto_load_objfile_script): Declare.
10558 (script_not_found_warning_print): Delete.
10559 (auto_load_info_scripts): Update prototype.
10560 (auto_load_gdb_scripts_enabled): Declare.
10561 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10562 auto_load_python_scripts_enabled and made public.
10563 (script_language_python): Delete, moved to python.c.
10564 (gdbpy_script_language_defn): Delete.
10565 (info_auto_load_python_scripts): Update to use
10566 extension_language_python.
10568 * breakpoint.c (condition_command): Replace call to
10569 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10570 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10571 with call to breakpoint_ext_lang_cond_says_stop.
10572 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10573 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10574 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10575 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10577 (local_setattro): Print name of extension language with existing
10580 * valprint.c (val_print, value_print): Update to call
10581 apply_ext_lang_val_pretty_printer.
10582 * cp-valprint.c (cp_print_value): Update call to
10583 apply_ext_lang_val_pretty_printer.
10584 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10585 (gdbpy_apply_val_pretty_printer): Renamed from
10586 apply_val_pretty_printer. New arg extlang.
10587 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10589 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10590 extension language API.
10591 * cli/cli-script.c (execute_control_command): Update to call
10592 eval_ext_lang_from_control_command.
10594 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10595 enum ext_lang_bt_status values. Update call to
10596 apply_ext_lang_frame_filter.
10597 (mi_cmd_stack_list_locals): Ditto.
10598 (mi_cmd_stack_list_args): Ditto.
10599 (mi_cmd_stack_list_variables): Ditto.
10600 * mi/mi-main.c: Delete #include "python/python-internal.h".
10601 Add #include "extension.h".
10602 (mi_cmd_list_features): Replace reference to python internal variable
10603 gdb_python_initialized with call to ext_lang_initialized_p.
10605 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10606 Update to use enum ext_lang_frame_args. Update to call
10607 apply_ext_lang_frame_filter.
10608 * python/py-framefilter.c (extract_sym): Update to use enum
10609 ext_lang_bt_status.
10610 (extract_value, py_print_type, py_print_value): Ditto.
10611 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10612 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10613 (py_print_frame): Ditto.
10614 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10615 New arg extlang. Update to use enum ext_lang_bt_status.
10617 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10618 finish_python_initialization. Replace with call to
10619 finish_ext_lang_initialization.
10621 * typeprint.c (do_free_global_table): Update to call
10622 free_ext_lang_type_printers.
10623 (create_global_typedef_table): Update to call
10624 start_ext_lang_type_printers.
10625 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10626 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10627 (type_print_options): Change type of global_printers from "void *"
10628 to "struct ext_lang_type_printers *".
10630 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10631 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10632 (gdbpy_preserve_values): Renamed from preserve_python_values.
10634 (!HAVE_PYTHON, preserve_python_values): Delete.
10636 * utils.c (quit_flag): Delete, moved to extension.c.
10637 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10640 * eval.c: Delete #include "python/python.h".
10641 * main.c: Delete #include "python/python.h".
10643 * defs.h: Update comment.
10645 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10649 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10651 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10654 2014-02-05 Yao Qi <yao@codesourcery.com>
10656 * remote.c (remote_pass_signals): Remove local 'buf' and use
10658 (remote_program_signals): Likewise.
10660 2014-02-05 Yao Qi <yao@codesourcery.com>
10662 * ctf.c: Include "inferior.h" and "gdbthread.h".
10663 (CTF_PID): A new macro.
10664 (ctf_open): Call inferior_appeared and add_thread_silent.
10665 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10666 (ctf_thread_alive): New function.
10667 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10669 2014-02-05 Yao Qi <yao@codesourcery.com>
10673 2013-05-24 Yao Qi <yao@codesourcery.com>
10675 * tracepoint.c (TFILE_PID): Remove.
10676 (tfile_open): Don't add thread and inferior.
10677 (tfile_close): Don't set 'inferior_ptid'. Don't call
10678 exit_inferior_silent.
10679 (tfile_thread_alive): Remove.
10680 (init_tfile_ops): Don't set field 'to_thread_alive' of
10683 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10685 * remote.c (remote_start_remote): Call remote_check_symbols even
10686 if only symbol-file (not file) has been given.
10688 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10690 * gdbarch.sh (skip_entrypoint): New callback.
10691 * gdbarch.c, gdbarch.h: Regenerate.
10692 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10693 * infrun.c (fill_in_stop_func): Likewise.
10694 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10695 (ppc_elfv2_elf_make_msymbol_special): New function.
10696 (ppc_elfv2_skip_entrypoint): Likewise.
10697 (ppc_linux_init_abi): Install them for ELFv2.
10699 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10701 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10702 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10703 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10704 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10705 structures returned in GPRs.
10707 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10709 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10710 offset to the stack parameter list for the ELFv2 ABI.
10712 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10714 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10715 set_gdbarch_convert_from_func_ptr_addr and
10716 set_gdbarch_elf_make_msymbol_special for ELFv1.
10717 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10718 function descriptors on ELFv1.
10719 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10720 set up r12 at function entry.
10722 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10724 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10725 (struct gdbarch_tdep): New member elf_abi.
10727 * rs6000-tdep.c: Include "elf/ppc64.h".
10728 (rs6000_gdbarch_init): Detect ELF ABI version.
10730 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10732 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10733 within a register pair holding a DFP 128-bit value on little-endian.
10734 (ppc64_sysv_abi_return_value_base): Likewise.
10735 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10736 (dfp_pseudo_register_write): Likewise.
10738 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10740 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10741 offset on little-endian when passing _Decimal32.
10742 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10744 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10746 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10747 of the overlapped FP register within the VSX register on little-
10749 (efpr_pseudo_register_write): Likewise.
10751 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10753 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10754 offset on little-endian when passing small structures.
10756 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10758 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10759 (struct ppc64_sysv_argpos): New data structure.
10760 (ppc64_sysv_abi_push_float): Remove.
10761 (ppc64_sysv_abi_push_val): New function.
10762 (ppc64_sysv_abi_push_integer): Likewise.
10763 (ppc64_sysv_abi_push_freg): Likewise.
10764 (ppc64_sysv_abi_push_vreg): Likewise.
10765 (ppc64_sysv_abi_push_param): Likewise.
10766 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10767 (ppc64_sysv_abi_return_value_base): New function.
10768 (ppc64_sysv_abi_return_value): Refactor to use it.
10770 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10772 * NEWS: Document new target powerpc64le-*-linux*.
10774 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10776 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10777 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10779 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10780 register set used in ELF core dumps. Add floating-point register set.
10782 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10784 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10785 dwarf2_to_gdb[] table using symbolic constants. Adjust
10786 penultimate entry from number representing the PC register
10787 to symbolic constant representing the MDR register. Add
10788 constant for the PC register to the end of the table.
10790 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10792 * bsd-kvm.c: Include <sys/param.h>
10794 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10796 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10798 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10800 * ada-lang.h (clear_ada_sym_cache): Delete.
10802 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10804 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10806 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10808 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10809 the sigreturn register save area only if the syscall is
10812 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10814 * valops.c (value_slice): Minor reformatting.
10816 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10818 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10820 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10822 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10823 New static globals.
10824 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10825 (ada_ignore_descriptive_types_p): New static global.
10826 (find_parallel_type_by_descriptive_type): Return immediately
10827 if ada_ignore_descriptive_types_p is set.
10828 (_initialize_ada_language): Register new commands "maintenance
10829 set ada", "maintenance show ada", "maintenance set ada
10830 ignore-descriptive-types" and "maintenance show ada
10831 ignore-descriptive-types".
10832 * NEWS: Add entry for new "maint ada set/show
10833 ignore-descriptive-types" commands.
10835 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10837 * record-btrace.c (record_btrace_close): Call btrace_teardown
10840 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10842 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10845 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10847 * ada-typeprint (type_is_full_subrange_of_target_type):
10849 (print_range): Add parameter bounds_prefered_p. If not set,
10850 try printing range types using the name of their base type.
10851 (print_range_type): Add parameter bounds_prefered_p.
10852 Use it in call to print_range.
10853 (print_array_type, ada_print_type): Update calls to print_range
10854 and print_range_type.
10856 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10858 * ada-typeprint.c (print_array_type, print_choices, print_range)
10859 (print_range_bound, print_dynamic_range_bound, print_range_type):
10860 Remove declaration.
10862 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10864 * ada-typeprint.c (print_range): Add missing empty line
10865 after local declaration.
10867 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10869 * ada-valprint.c (print_optional_low_bound): Get index_type's
10870 target type for as long as it is a TYPE_CODE_RANGE.
10872 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10874 * procfs.c (procfs_make_note_section): Remove assertion and
10875 associated comment.
10877 2014-01-24 Yao Qi <yao@codesourcery.com>
10879 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10880 * corelow.c (get_core_siginfo): Likewise.
10882 2014-01-24 Yao Qi <yao@codesourcery.com>
10884 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10885 ULONGEST. Don't check 'len' is negative.
10886 (remote_write_bytes): Change type of 'len' to ULONGEST.
10888 2014-01-23 Tom Tromey <tromey@redhat.com>
10891 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10892 Handle exception from frame.block.
10893 (FrameVars.fetch_frame_locals): Likewise.
10895 2014-01-23 Tom Tromey <tromey@redhat.com>
10898 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10899 on a NULL pointer. Move "goto error" to correct place.
10901 2014-01-23 Tom Tromey <tromey@redhat.com>
10904 * python/py-framefilter.c (apply_frame_filter): Call
10905 ensure_python_env after computing gdbarch.
10907 2014-01-23 Yao Qi <yao@codesourcery.com>
10909 * target.c (raw_memory_xfer_partial): Change argument type
10910 from void * to gdb_byte *.
10911 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10913 2014-01-22 Doug Evans <dje@google.com>
10915 New gdbserver option --debug-format=timestamp.
10916 * NEWS: Mention it.
10918 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10920 * syscalls/s390x-linux.xml: New file.
10921 * syscalls/s390-linux.xml: New file.
10922 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10923 (XML_SYSCALL_FILENAME_S390X): Likewise.
10924 (op_svc): New enum value for SVC opcode.
10925 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10926 (s390_linux_get_syscall_number): New function.
10927 (s390_gdbarch_init): Register '*get_syscall_number' and the
10928 syscall xml file name.
10929 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10930 "s390-linux.xml" and "s390x-linux.xml".
10931 * NEWS: Announce new feature.
10933 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10935 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10937 2014-01-22 Pedro Alves <palves@redhat.com>
10939 * xtensa-config.c: Include defs.h.
10941 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10943 * common/common-utils.h: Add "ARI:" comment beside __func__
10946 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10948 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10949 documentation a bit.
10951 2014-01-21 Roland McGrath <mcgrathr@google.com>
10953 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10954 * configure: Regenerate.
10955 * aclocal.m4: Regenerate.
10956 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10957 New substituted variables.
10958 (install-strip): New target.
10959 (INSTALL_SCRIPT): New substituted variable.
10960 (FLAGS_TO_PASS): Add it.
10961 (install-only): Use $(INSTALL_SCRIPT) rather than
10962 $(INSTALL_PROGRAM) for gcore.
10964 2014-01-20 Tom Tromey <tromey@redhat.com>
10966 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10969 2014-01-20 Tom Tromey <tromey@redhat.com>
10971 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10972 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10973 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10974 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10975 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10976 (struct cmd_list_element) <flags>: Remove.
10977 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10978 doc_allocated>: New fields.
10979 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10981 * maint.c (maintenance_do_deprecate): Update.
10982 * top.c (execute_command): Update.
10984 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10986 * xtensa-linux-nat.c: Include asm/ptrace.h.
10988 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10990 * Makefile.in (SFILES): Add d-support.c.
10991 (COMMON_OBS): Add d-support.o.
10992 * d-lang.h (d_parse_symbol): Add comment, now defined in
10994 * d-lang.c (parse_call_convention)
10995 (parse_attributes, parse_function_types)
10996 (parse_function_args, parse_type, parse_identifier)
10997 (call_convention_p, d_parse_symbol): Move functions to ...
10998 * d-support.c: ... New file.
11000 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11002 * d-lang.h (d_parse_symbol): Add declaration.
11003 * d-lang.c (extract_identifiers)
11004 (extract_type_info): Remove functions.
11005 (parse_call_convention, parse_attributes)
11006 (parse_function_types, parse_function_args)
11007 (parse_type, parse_identifier, call_convention_p)
11008 (d_parse_symbol): New functions.
11009 (d_demangle): Use d_parse_symbol to demangle D symbols.
11011 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11013 * d-lang.h (struct builtin_d_type): New data type.
11014 (builtin_d_type): Add declaration.
11015 * d-lang.c (d_language_arch_info, build_d_types)
11016 (builtin_d_type): New functions.
11017 (enum d_primitive_types): New data type.
11018 (d_language_defn): Change c_language_arch_info to
11019 d_language_arch_info.
11020 (d_type_data): New static variable.
11021 (_initialize_d_language): Initialize d_type_data.
11023 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11025 * d-lang.h (d_main_name): Add declaration.
11026 * d-lang.c (d_main_name): New function.
11027 * symtab.c (find_main_name): Add call to d_main_name.
11029 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11031 * d-lang.c (d_language_defn): Change macro_expansion_c to
11032 macro_expansion_no.
11034 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11036 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11038 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11040 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11041 gdb_exception" declaration.
11042 * remote.c (getpkt_or_notif_sane): Likewise.
11044 2014-01-17 Doug Evans <dje@google.com>
11046 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11047 function, contents of dirnames_to_char_ptr_vec_append moved here.
11048 (delim_string_to_char_ptr_vec): New function.
11049 (dirnames_to_char_ptr_vec_append): Rewrite.
11050 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11052 2014-01-17 Doug Evans <dje@google.com>
11054 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11056 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11057 #include "common-utils.h".
11058 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11059 * common/vec.h (VEC_ASSERT_PASS): Update.
11060 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11061 (MACH_CHECK_ERROR): Update.
11063 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11065 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11067 * gdbarch.h: Regenerate.
11069 2014-01-16 Tom Tromey <tromey@redhat.com>
11071 * value.c (struct value) <regnum>: Move earlier.
11073 2014-01-16 Tom Tromey <tromey@redhat.com>
11075 * remote.c (extended_remote_create_inferior): Rename from
11076 extended_remote_create_inferior_1. Add "ops" argument. Remove
11077 old implementation.
11079 2014-01-16 Pedro Alves <palves@redhat.com>
11081 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11082 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11085 2014-01-16 Doug Evans <dje@google.com>
11087 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11091 * btrace.h (btrace_thread_flag): New.
11092 (struct btrace_thread_info) <flags>: New.
11093 * record-btrace.c (record_btrace_resume_thread)
11094 (record_btrace_find_thread_to_move, btrace_step_no_history)
11095 (btrace_step_stopped, record_btrace_start_replaying)
11096 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11097 (record_btrace_find_resume_thread): New.
11098 (record_btrace_resume, record_btrace_wait): Extend.
11099 (record_btrace_can_execute_reverse): New.
11100 (record_btrace_open): Fail in non-stop mode.
11101 (record_btrace_set_replay): Split into this, ...
11102 (record_btrace_stop_replaying): ... this, ...
11103 (record_btrace_clear_histories): ... and this.
11104 (init_record_btrace_ops): Init to_can_execute_reverse.
11105 * NEWS: Announce it.
11107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11109 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11110 (forward_target_decr_pc_after_break)
11111 (target_decr_pc_after_break): New.
11112 * target.c (forward_target_decr_pc_after_break)
11113 (target_decr_pc_after_break): New.
11114 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11115 instead of gdbarch_decr_pc_after_break.
11116 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11117 instead of gdbarch_decr_pc_after_break.
11118 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11119 instead of gdbarch_decr_pc_after_break.
11120 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11121 instead of gdbarch_decr_pc_after_break.
11122 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11123 instead of gdbarch_decr_pc_after_break.
11124 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11125 instead of gdbarch_decr_pc_after_break.
11127 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11129 * btrace.c: Include regcache.h.
11130 (btrace_add_pc): New.
11131 (btrace_enable): Call btrace_add_pc.
11132 (btrace_is_empty): New.
11133 * btrace.h (btrace_is_empty): New.
11134 * record-btrace.c (require_btrace, record_btrace_info): Call
11137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11139 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11140 Support delta reads.
11141 (linux_disable_btrace): Change return type.
11142 * common/linux-btrace.h (linux_read_btrace): Change parameters
11143 and return type to allow error reporting. Update users.
11144 (linux_disable_btrace): Change return type. Update users.
11145 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11147 (btrace_error): New.
11148 (btrace_block) <begin>: Comment on BEGIN == 0.
11149 * btrace.c (btrace_compute_ftrace): Start from the end of
11151 (btrace_stitch_trace, btrace_clear_history): New.
11152 (btrace_fetch): Read delta trace, return if replaying.
11153 (btrace_clear): Move clear history code to btrace_clear_history.
11154 (parse_xml_btrace): Throw an error if parsing failed.
11155 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11156 and return type to allow error reporting.
11157 (target_read_btrace): Change parameters and return type to allow
11159 * target.c (target_read_btrace): Update.
11160 * remote.c (remote_read_btrace): Support delta reads. Pass
11162 * NEWS: Announce it.
11164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11166 * record.h (record_btrace_frame_unwind)
11167 (record_btrace_tailcall_frame_unwind): New declarations.
11168 * dwarf2-frame: Include record.h
11169 (dwarf2_frame_cfa): Throw an error for btrace frames.
11170 * record-btrace.c: Include hashtab.h.
11171 (btrace_get_bfun_name): New.
11172 (btrace_call_history): Call btrace_get_bfun_name.
11173 (struct btrace_frame_cache): New.
11175 (bfcache_hash, bfcache_eq, bfcache_new): New.
11176 (btrace_get_frame_function): New.
11177 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11178 (record_btrace_frame_this_id): Compute own id.
11179 (record_btrace_frame_prev_register): Provide PC, throw_error
11180 for all other registers.
11181 (record_btrace_frame_sniffer): Detect btrace frames.
11182 (record_btrace_tailcall_frame_sniffer): New.
11183 (record_btrace_frame_dealloc_cache): New.
11184 (record_btrace_frame_unwind): Add new functions.
11185 (record_btrace_tailcall_frame_unwind): New.
11186 (_initialize_record_btrace): Allocate cache.
11187 * btrace.c (btrace_clear): Call reinit_frame_cache.
11188 * NEWS: Announce it.
11190 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11192 * record-btrace.c (record_btrace_set_replay)
11193 (record_btrace_goto_begin, record_btrace_goto_end)
11194 (record_btrace_goto): New.
11195 (init_record_btrace_ops): Initialize them.
11196 * NEWS: Announce it.
11198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11200 * record-btrace.c (record_btrace_find_new_threads)
11201 (record_btrace_thread_alive): New.
11202 (init_record_btrace_ops): Initialize to_find_new_threads and
11205 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11207 * record-btrace.c (record_btrace_resume): New.
11208 (record_btrace_wait): New.
11209 (init_record_btrace_ops): Initialize to_wait and to_resume.
11211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11213 * record-btrace.c (record_btrace_xfer_partial)
11214 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11215 (record_btrace_allow_memory_access): New.
11216 (init_record_btrace_ops): Initialize new methods.
11217 * target.c (raw_memory_xfer_partial): Bail out if target reports
11218 that this memory is not available.
11220 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11222 * target.h (target_ops) <to_insert_breakpoint>
11223 <to_remove_breakpoint>: Add target_ops parameter.
11224 (forward_target_insert_breakpoint): New.
11225 (forward_target_remove_breakpoint): New.
11226 (memory_remove_breakpoint, memory_insert_breakpoint):
11227 Add target_ops parameter.
11228 * target.c (target_insert_breakpoint): Split into this and ...
11229 (forward_target_insert_breakpoint): ... this.
11230 (target_remove_breakpoint): Split into this and ...
11231 (forward_target_remove_breakpoint): ... this.
11232 (debug_to_insert_breakpoint): Add target_ops parameter.
11233 Call forward_target_insert_breakpoint.
11234 (debug_to_remove_breakpoint): Add target_ops parameter.
11235 Call forward_target_remove_breakpoint.
11236 (update_current_target): Do not inherit or default to_insert_breakpoint
11237 and to_remove_breakpoint.
11238 * corelow.c (ignore): Add target_ops parameter.
11239 * exec.c (ignore): Add target_ops parameter.
11240 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11241 Add target_ops parameter.
11242 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11243 Add target_ops parameter.
11244 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11245 Add target_ops parameter.
11246 * record-full.c (record_full_beneath_to_insert_breakpoint)
11247 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11248 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11249 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11250 (record_full_core_remove_breakpoint): Add target_ops parameter.
11252 (record_full_beneath_to_insert_breakpoint_ops)
11253 (record_full_beneath_to_remove_breakpoint_ops)
11254 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11255 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11256 tmp_to_remove_breakpoint_ops,
11257 record_full_beneath_to_insert_breakpoint_ops, and
11258 record_full_beneath_to_remove_breakpoint_ops.
11259 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11260 (m32r_remove_breakpoint): Add target_ops parameter.
11261 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11262 Add target_ops parameter.
11263 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11264 Add target_ops parameter.
11266 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11267 Markus Metzger <markus.t.metzger@intel.com>
11269 * record-btrace.c: Include frame-unwind.h.
11270 (record_btrace_frame_unwind_stop_reason)
11271 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11272 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11274 (init_record_btrace_ops): Install it.
11276 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11278 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11281 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11283 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11286 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11288 * frame-unwind.c: Include target.h.
11289 (frame_unwind_try_unwinder): New function with code from ...
11290 (frame_unwind_find_by_frame): ... here. New variable
11291 unwinder_from_target, call also target_get_unwinder)
11292 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11293 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11294 * target.h (struct target_ops): New fields to_get_unwinder and
11295 to_get_tailcall_unwinder.
11296 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11300 * record-btrace.c (record_btrace_fetch_registers)
11301 (record_btrace_store_registers)
11302 (record_btrace_to_prepare_to_store): New.
11303 (init_record_btrace_ops): Add the above.
11305 2014-01-16 Tom Tromey <tromey@redhat.com>
11307 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11308 * target.h (struct target_ops) <to_prepare_to_store>: Add
11310 (target_prepare_to_store): Add argument.
11311 * target.c (debug_to_prepare_to_store): Add argument.
11312 (update_current_target): Update.
11313 * remote.c (remote_prepare_to_store): Add 'self' argument.
11314 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11315 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11316 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11317 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11319 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11320 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11321 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11322 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11323 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11327 * btrace.h (replay) <replay>: New.
11328 (btrace_is_replaying): New.
11329 * btrace.c (btrace_clear): Free replay iterator.
11330 (btrace_is_replaying): New.
11331 * record-btrace.c (record_btrace_is_replaying): New.
11332 (record_btrace_info): Print insn number if replaying.
11333 (record_btrace_insn_history): Start at replay position.
11334 (record_btrace_call_history): Start at replay position.
11335 (init_record_btrace_ops): Init to_record_is_replaying.
11337 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11339 * record-btrace.c (record_btrace_insn_history_range): Include
11341 (record_btrace_insn_history_from): Adjust range.
11342 (record_btrace_call_history_range): Include
11344 (record_btrace_call_history_from): Adjust range.
11345 * NEWS: Announce changes.
11347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11349 * record.h (enum record_print_flag)
11350 <record_print_indent_calls>: New.
11351 * record.c (get_call_history_modifiers): Recognize /c modifier.
11352 (_initialize_record): Document /c modifier.
11353 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11354 Reorder fields. Optionally indent the function name. Update
11356 * NEWS: Announce changes.
11358 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11360 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11364 * btrace.c (ftrace_new_function): Start counting at one.
11365 * record-btrace.c (record_btrace_info): Adjust number of calls
11367 * NEWS: Announce it.
11369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11371 * record-btrace.c (btrace_call_history_insn_range): Print
11372 insn range as [begin, end].
11374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11376 * btrace.h (struct btrace_func_link): New.
11377 (enum btrace_function_flag): New.
11378 (struct btrace_inst): Rename to ...
11379 (struct btrace_insn): ...this. Update all users.
11380 (struct btrace_func) <ibegin, iend>: Remove.
11381 (struct btrace_func_link): New.
11382 (struct btrace_func): Rename to ...
11383 (struct btrace_function): ...this. Update all users.
11384 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11385 (number, level, flags>: New.
11386 (struct btrace_insn_iterator): Rename to ...
11387 (struct btrace_insn_history): ...this.
11389 (struct btrace_insn_iterator, btrace_call_iterator): New.
11390 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11391 (struct btrace_target_info) <begin, end, level>
11392 <insn_history, call_history>: New.
11393 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11394 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11395 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11396 (btrace_call_number, btrace_call_begin, btrace_call_end)
11397 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11398 (btrace_find_function_by_number, btrace_set_insn_history)
11399 (btrace_set_call_history): New.
11400 * btrace.c (btrace_init_insn_iterator)
11401 (btrace_init_func_iterator, compute_itrace): Remove.
11402 (ftrace_print_function_name, ftrace_print_filename)
11403 (ftrace_skip_file): Change
11404 parameter to const.
11405 (ftrace_init_func): Remove.
11406 (ftrace_debug): Use new btrace_function fields.
11407 (ftrace_function_switched): Also consider gaining and
11408 losing symbol information).
11409 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11410 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11411 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11413 (ftrace_new_function): Move. Remove debug print.
11414 (ftrace_update_lines, ftrace_update_insns): New.
11415 (ftrace_update_function): Check for call, ret, and jump.
11416 (compute_ftrace): Renamed to ...
11417 (btrace_compute_ftrace): ...this. Rewritten to compute call
11419 (btrace_fetch, btrace_clear): Updated.
11420 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11421 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11422 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11423 (btrace_call_number, btrace_call_begin, btrace_call_end)
11424 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11425 (btrace_find_function_by_number, btrace_set_insn_history)
11426 (btrace_set_call_history): New.
11427 * record-btrace.c (require_btrace): Use new btrace thread
11429 (record_btrace_info, btrace_insn_history)
11430 (record_btrace_insn_history, record_btrace_insn_history_range):
11431 Use new btrace thread info fields and new iterator.
11432 (btrace_func_history_src_line): Rename to ...
11433 (btrace_call_history_src_line): ...this. Use new btrace
11434 thread info fields.
11435 (btrace_func_history): Rename to ...
11436 (btrace_call_history): ...this. Use new btrace thread info
11437 fields and new iterator.
11438 (record_btrace_call_history, record_btrace_call_history_range):
11439 Use new btrace thread info fields and new iterator.
11441 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11443 * frame.h (frame_id_build_unavailable_stack_special): New.
11444 * frame.c (frame_id_build_unavailable_stack_special): New.
11446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11448 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11449 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11450 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11452 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11453 (i386_insn_is_jump, i386_jmp_p): New.
11454 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11455 insn_is_jump to gdbarch.
11456 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11457 * gdbarch.h: Regenerated.
11458 * gdbarch.c: Regenerated.
11459 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11460 (default_insn_is_jump): New.
11461 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11462 (default_insn_is_jump): New.
11464 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11466 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11468 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11469 (btrace_read_type) <btrace_read_new>: Change to ...
11470 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11474 * common/linux-btrace.c (linux_read_btrace): Free trace from
11475 previous iteration.
11477 2014-01-15 Doug Evans <dje@google.com>
11479 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11482 2014-01-15 Tom Tromey <tromey@redhat.com>
11484 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11485 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11486 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11487 (set_objfile_main_name): New function.
11488 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11489 language_of_main>: New fields.
11490 (set_objfile_main_name): Declare.
11491 * symtab.c (find_main_name): Loop over objfiles to find the main
11493 (set_main_name): Now static.
11494 (get_main_info): Add comment.
11495 * symtab.h (set_main_name): Don't declare.
11497 2014-01-15 Tom Tromey <tromey@redhat.com>
11499 * symtab.c (main_progspace_key): New global.
11500 (struct main_info): New.
11501 (name_of_main, language_of_main): Remove.
11502 (get_main_info, main_info_cleanup): New function.
11503 (set_main_name, main_name, main_language): Use get_main_info.
11504 (_initialize_symtab): Initialize main_progspace_key.
11506 2014-01-15 Tom Tromey <tromey@redhat.com>
11508 * dbxread.c (process_one_symbol): Update.
11509 * dwarf2read.c (read_partial_die): Update.
11510 * symfile.c (set_initial_language): Call main_language.
11511 * symtab.c (language_of_main): Now static.
11512 (set_main_name): Add 'lang' parameter.
11513 (find_main_name): Update.
11514 (main_language): New function.
11515 (symtab_observer_executable_changed): Update.
11516 * symtab.h (set_main_name): Update.
11517 (language_of_main): Remove.
11518 (main_language): Declare.
11520 2014-01-15 Tom Tromey <tromey@redhat.com>
11522 * symfile.c (init_entry_point_info): Use new "initialized" field.
11524 * objfiles.h (struct entry_point) <initialized>: New field.
11525 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11526 (struct objfile) <ei>: ...here. Remove.
11527 * objfiles.c (entry_point_address_query): Update.
11529 2014-01-15 Tom Tromey <tromey@redhat.com>
11531 * objfiles.c (entry_point_address_query): Relocate entry point
11533 (objfile_relocate1): Do not relocate entry point address.
11534 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11535 <the_bfd_section_index>: New field.
11536 * symfile.c (init_entry_point_info): Find the entry point's
11539 2014-01-15 Tom Tromey <tromey@redhat.com>
11541 * solib-frv.c (enable_break): Use entry_point_address_query.
11543 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11545 * NEWS: Add note on improved process record-replay on
11546 arm*-linux* targets.
11548 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11550 * arm-tdep.c (enum arm_record_result): New enum.
11551 (arm_record_unsupported_insn): New function.
11552 (arm_record_coproc_data_proc): Removed.
11553 (thumb2_record_ld_st_multiple): New function.
11554 (thumb2_record_ld_st_dual_ex_tbb): New function.
11555 (thumb2_record_data_proc_sreg_mimm): New function.
11556 (thumb2_record_ps_dest_generic): New function.
11557 (thumb2_record_branch_misc_cntrl): New function.
11558 (thumb2_record_str_single_data): New function.
11559 (thumb2_record_ld_mem_hints): New function.
11560 (thumb2_record_ld_word): New function.
11561 (thumb2_record_lmul_lmla_div): New function.
11562 (thumb2_record_decode_insn_handler): New function.
11563 (decode_insn): Add thumb32 instruction handlers.
11565 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11567 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11568 (struct arm_linux_record_tdep): Declare.
11569 (arm_canonicalize_syscall): New function.
11570 (arm_all_but_pc_registers_record): New function.
11571 (arm_linux_syscall_record): New function.
11572 (arm_linux_init_abi): Add syscall recording constructs.
11573 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11574 decoding. (arm_record_coproc_data_proc): Update arm syscall
11576 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11577 <arm_syscall_record>: New field.
11578 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11581 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11583 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11584 register for push instruction recording.
11586 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11588 * arm-tdep.c (thumb_record_misc): Update to correct logical
11589 error while recording ldm, ldmia and pop instructions.
11591 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11593 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11595 2014-01-15 Pedro Alves <palves@redhat.com>
11597 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11598 (go32_resume, go32_fetch_registers, store_register)
11599 (go32_store_registers, go32_prepare_to_store)
11600 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11601 (go32_create_inferior, go32_can_run, go32_terminal_init)
11602 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11605 2014-01-15 Tom Tromey <tromey@redhat.com>
11607 * target.h (async_callback_ftype): New typedef.
11608 (struct target_ops) <to_async>: Use it.
11610 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11612 * python/py-value.c (get_field_type): Remove unnecessary curly
11613 braces for single-statement if block.
11615 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11617 * python/py-type.c (convert_field): Add missing empty line
11618 after declarations.
11620 2014-01-14 Doug Evans <dje@google.com>
11622 * symfile.h (expand_symtabs_matching): Renamed from
11623 expand_partial_symbol_names. Update prototype.
11624 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11625 * symfile.c (expand_symtabs_matching): Renamed from
11626 expand_partial_symbol_names. New args file_matcher, kind.
11627 Rename arg fun to symbol_matcher.
11628 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11629 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11630 ada_expand_partial_symbol_name.
11631 (ada_make_symbol_completion_list): Update to call
11632 expand_symtabs_matching.
11633 (ada_add_global_exceptions): Call expand_symtabs_matching.
11634 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11635 call map_symbol_filenames.
11636 * symtab.c (sources_info): Update to call map_symbol_filenames.
11637 (search_symbols): Call expand_symtabs_matching.
11638 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11639 (default_make_symbol_completion_list_break_on): Update to call
11640 expand_symtabs_matching.
11641 (make_source_files_completion_list): Update to call
11642 map_symbol_filenames.
11644 2014-01-14 Doug Evans <dje@google.com>
11646 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11647 (expand_symtabs_symbol_matcher_ftype): New typedef.
11648 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11649 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11650 * symfile.c (expand_partial_symbol_names): Update to use
11651 expand_symtabs_symbol_matcher_ftype.
11652 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11653 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11654 Arg name_matcher renamed to symbol_matcher.
11655 * psymtab.c (recursively_search_psymtabs): Update to use
11656 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11658 (expand_symtabs_matching_via_partial): Update to use
11659 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11660 Arg name_matcher renamed to symbol_matcher.
11662 2014-01-14 Doug Evans <dje@google.com>
11664 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11665 (map_partial_symbol_filenames): Ditto.
11666 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11667 (map_partial_symbol_filenames): Ditto.
11668 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11669 (map_partial_symbol_filenames): Ditto.
11670 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11671 (map_partial_symbol_filenames): Ditto.
11672 * symtab.c: Delete #include "psymtab.h".
11674 2014-01-14 Pedro Alves <palves@redhat.com>
11675 Tom Tromey <tromey@redhat.com>
11677 * infrun.c (use_displaced_stepping): Use find_record_target
11678 instead of RECORD_IS_USED.
11679 (adjust_pc_after_break): Use record_full_is_used instead of
11681 * record-btrace.c (record_btrace_open): Call record_preopen
11682 instead of checking RECORD_IS_USED.
11683 * record-full.c (record_full_shortname)
11684 (record_full_core_shortname): New globals.
11685 (record_full_is_used): New function.
11686 (find_full_open): Call record_preopen instead of checking
11688 (init_record_full_ops): Set the target's shortname to
11689 record_full_shortname.
11690 (init_record_full_core_ops): Set the target's shortname to
11691 record_full_core_shortname.
11692 * record-full.h (record_full_is_used): Declare.
11693 * record.c (find_record_target): Make extern.
11694 (record_preopen): New function.
11695 * record.h (RECORD_IS_USED): Delete macro.
11696 (find_record_target, record_preopen): Declare functions.
11698 2014-01-14 Yao Qi <yao@codesourcery.com>
11700 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11701 'len''s type to ULONGEST.
11702 (core_xfer_shared_libraries_aix): Likewise.
11703 * gdbarch.c, gdbarch.h: Regenerated.
11704 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11705 Change type of 'len' to ULONGEST.
11706 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11707 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11709 2014-01-14 Yao Qi <yao@codesourcery.com>
11711 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11712 type of 'len' to ULONGEST.
11713 (linux_xfer_osdata_processgroups): Likewise.
11714 (linux_xfer_osdata_threads): Likewise.
11715 (linux_xfer_osdata_fds): Likewise.
11716 (linux_xfer_osdata_isockets): Likewise.
11717 (linux_xfer_osdata_shm): Likewise.
11718 (linux_xfer_osdata_sem): Likewise.
11719 (linux_xfer_osdata_msg): Likewise.
11720 (linux_common_xfer_osdata): Likewise.
11721 (struct osdata_type) <getter>: Likewise.
11722 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11725 2014-01-14 Yao Qi <yao@codesourcery.com>
11727 * target.h (target_xfer_partial_ftype): Update.
11728 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11730 * aix-thread.c (aix_thread_xfer_partial): Change type of
11731 argument 'len' to ULONGEST.
11732 * auxv.c (procfs_xfer_auxv): Likewise.
11733 (ld_so_xfer_auxv): Likewise.
11734 (memory_xfer_auxv): Likewise.
11735 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11736 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11737 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11738 * corelow.c (core_xfer_partial): Likewise.
11739 * ctf.c (ctf_xfer_partial): Likewise.
11740 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11742 (darwin_read_dyld_info): Likewise.
11743 (darwin_xfer_partial): Likewise.
11744 * exec.c (section_table_xfer_memory_partial): Likewise.
11745 (exec_xfer_partial): Likewise.
11746 * exec.h (section_table_xfer_memory_partial): Update
11748 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11749 instead of plongest.
11750 (gnu_xfer_partial): Likewise.
11751 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11752 (ia64_hpux_xfer_solib_got): Likewise.
11753 (ia64_hpux_xfer_partial): Likewise.
11754 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11755 * inf-ptrace.c (inf_ptrace_xfer_partial):
11756 * inf-ttrace.c (inf_ttrace_xfer_partial):
11757 * linux-nat.c (linux_xfer_siginfo): Likewise.
11758 (linux_nat_xfer_partial): Likewise.
11759 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11760 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11761 * monitor.c (monitor_xfer_memory): Likewise.
11762 (monitor_xfer_partial): Likewise.
11763 * procfs.c (procfs_xfer_partial): Likewise.
11764 * record-full.c (record_full_xfer_partial): Likewise.
11765 (record_full_core_xfer_partial): Likewise.
11766 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11767 instead of plongest.
11768 (gdbsim_xfer_partial): Likewise.
11769 * remote.c (remote_xfer_partial): Likewise.
11770 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11771 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11773 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11774 (rs6000_xfer_shared_libraries): Likewise.
11775 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11776 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11777 (sparc_xfer_partial): Likewise.
11778 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11779 (spu_xfer_partial): Likewise.
11780 * spu-multiarch.c (spu_xfer_partial): Likewise.
11781 * target.c (target_read_live_memory): Likewise.
11782 (memory_xfer_live_readonly_partial): Likewise.
11783 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11784 (target_xfer_partial, default_xfer_partial): Likewise.
11785 (current_xfer_partial): Likewise.
11786 * tracepoint.c (tfile_xfer_partial): Likewise.
11787 * windows-nat.c (windows_xfer_memory): Likewise. Call
11788 pulongest instead of plongest.
11789 (windows_xfer_partial): Likewise.
11790 (windows_xfer_shared_libraries): Likewise.
11792 2014-01-14 Yao Qi <yao@codesourcery.com>
11794 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11795 target_xfer_partial_ftype.
11797 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11801 * valops.c (value_struct_elt_bitpos): New function
11802 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11803 object to 'None' if the field name is an empty string ("").
11804 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11805 attribute to look for a field when 'name' is 'None'.
11806 (get_field_type): New function
11808 2014-01-13 Doug Evans <dje@google.com>
11811 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11812 (try_open_dwop_file): Ditto.
11813 * gdb_bfd.c: #include "vec.h".
11814 (bfdp): New typedef.
11815 (struct gdb_bfd_data): New member included_bfds.
11816 (gdb_bfd_unref): Unref all included bfds.
11817 (gdb_bfd_record_inclusion): New function.
11818 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11820 2014-01-13 Tom Tromey <tromey@redhat.com>
11822 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11824 2014-01-13 Tom Tromey <tromey@redhat.com>
11826 * defs.h (use_windows): Remove.
11827 * gdb.c (main): Update.
11828 * main.c (captured_main, gdb_main): Update.
11829 * main.h (struct captured_main_args) <use_windows>: Remove.
11830 * top.c (use_windows): Remove.
11832 2014-01-13 Tom Tromey <tromey@redhat.com>
11834 * defs.h (deprecated_flush_hook): Remove.
11836 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11839 * linux-thread-db.c (try_thread_db_load): Add parameter
11840 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11841 (try_thread_db_load_from_pdir_1): Move it there from here.
11842 (try_thread_db_load_from_sdir): Update caller.
11843 (try_thread_db_load_from_dir): Move it there from here.
11845 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11847 * regformats/regdat.sh: Always rewrite the register file.
11849 2014-01-13 Pedro Alves <palves@redhat.com>
11851 * Makefile.in (CHECK_HEADERS): New variable.
11852 (check-headers:): New rule.
11854 2014-01-13 Tom Tromey <tromey@redhat.com>
11856 * cli/cli-setshow.c (do_set_command): Update.
11857 * defs.h (deprecated_set_hook): Remove.
11858 * top.c (deprecated_set_hook): Remove.
11860 2014-01-13 Pedro Alves <palves@redhat.com>
11862 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11863 the tracepoint if the PC is a pseudo-register.
11865 2014-01-13 Tom Tromey <tromey@redhat.com>
11867 * defs.h (XCALLOC): Remove.
11868 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11869 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11870 * dwarf2loc.c (allocate_piece_closure): Likewise.
11871 * elfread.c (elf_symfile_segments): Likewise.
11872 (elf_symfile_segments): Likewise.
11873 * gdbtypes.c (copy_type_recursive): Likewise.
11874 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11875 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11876 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11878 * mt-tdep.c (mt_gdbarch_init): Likewise.
11879 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11881 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11882 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11883 * registry.c (registry_alloc_data): Likewise.
11884 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11885 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11886 * serial.c (serial_fdopen_ops): Likewise.
11887 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11889 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11890 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11893 2014-01-13 Tom Tromey <tromey@redhat.com>
11895 * defs.h (XMALLOC): Remove.
11896 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11897 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11898 * cli-out.c (struct ui_out *): Likewise.
11899 * cli/cli-dump.c (add_dump_command): Likewise.
11900 (add_dump_command): Likewise.
11901 * complaints.c (get_complaints): Likewise.
11902 (find_complaint): Likewise.
11903 * dwarf2-frame.c (execute_cfa_program): Likewise.
11904 * dwarf2read.c (abbrev_table_read_table): Likewise.
11905 * gdbarch.sh: Likewise.
11906 * gdbarch.c: Rebuild.
11907 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11908 * interps.c (interp_new): Likewise.
11909 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11910 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11911 * mi/mi-console.c (mi_console_file_new): Likewise.
11912 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11913 * mi/mi-out.c (mi_out_new): Likewise.
11914 * mi/mi-parse.c (mi_parse): Likewise.
11915 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11916 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11917 * observer.c (xalloc_observer_list_node): Likewise.
11918 * regcache.c (regcache_xmalloc_1): Likewise.
11919 * reggroups.c (reggroup_new): Likewise.
11920 (_initialize_reggroup): Likewise.
11921 * registry.c (register_data_with_cleanup): Likewise.
11922 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11923 * ser-base.c (serial_ttystate): Likewise.
11924 * ser-mingw.c (make_pipe_state): Likewise.
11925 * ser-pipe.c (pipe_open): Likewise.
11926 * serial.c (serial_open): Likewise.
11927 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11928 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11929 (tui_alloc_win_info): Likewise.
11930 (tui_add_content_elements): Likewise.
11931 * tui/tui-file.c (tui_file_new): Likewise.
11932 * tui/tui-out.c (tui_out_new): Likewise.
11933 * ui-file.c (mem_file_new): Likewise.
11934 * ui-out.c (push_level): Likewise.
11935 (make_cleanup_ui_out_end): Likewise.
11936 (append_header_to_list): Likewise.
11937 (ui_out_new): Likewise.
11938 * user-regs.c (user_reg_add_builtin): Likewise.
11940 2014-01-13 Tom Tromey <tromey@redhat.com>
11942 * defs.h (XZALLOC): Remove.
11943 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11944 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11945 (get_ada_tasks_inferior_data): Likewise.
11946 * auto-load.c (get_auto_load_pspace_data): Likewise.
11947 * auxv.c (get_auxv_inferior_data): Likewise.
11948 * bfd-target.c (target_bfd_reopen): Likewise.
11949 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11950 (deprecated_insert_raw_breakpoint): Likewise.
11951 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11952 * corelow.c (core_open): Likewise.
11953 * darwin-nat.c (darwin_check_new_threads): Likewise.
11954 (darwin_attach_pid): Likewise.
11955 * dummy-frame.c (dummy_frame_push): Likewise.
11956 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11957 * dwarf2loc.c (allocate_piece_closure): Likewise.
11958 * elfread.c (elf_symfile_segments): Likewise.
11959 * eval.c (ptrmath_type_p): Likewise.
11960 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11961 * gdbtypes.c (alloc_type_arch): Likewise.
11962 (alloc_type_instance): Likewise.
11963 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11964 * inf-child.c (inf_child_can_use_agent): Likewise.
11965 * inflow.c (get_inflow_inferior_data): Likewise.
11966 * infrun.c (save_infcall_suspend_state): Likewise.
11967 * jit.c (jit_reader_load): Likewise.
11968 (get_jit_objfile_data): Likewise.
11969 (get_jit_program_space_data): Likewise.
11970 (jit_object_open_impl): Likewise.
11971 (jit_symtab_open_impl): Likewise.
11972 (jit_block_open_impl): Likewise.
11973 (jit_frame_sniffer): Likewise.
11974 * linux-fork.c (add_fork): Likewise.
11975 * maint.c (make_command_stats_cleanup): Likewise.
11976 * objfiles.c (get_objfile_pspace_data): Likewise.
11977 * opencl-lang.c (struct lval_closure): Likewise.
11978 * osdata.c (osdata_start_osdata): Likewise.
11979 * progspace.c (new_address_space): Likewise.
11980 (add_program_space): Likewise.
11981 * remote-sim.c (get_sim_inferior_data): Likewise.
11982 * sh-tdep.c (sh_gdbarch_init): Likewise.
11983 * skip.c (Ignore): Likewise.
11984 (skip_delete_command): Likewise.
11985 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11986 (library_list_start_library): Likewise.
11987 (solib_aix_current_sos): Likewise.
11988 * solib-darwin.c (get_darwin_info): Likewise.
11989 (darwin_current_sos): Likewise.
11990 * solib-dsbt.c (get_dsbt_info): Likewise.
11991 * solib-ia64-hpux.c (new_so_list): Likewise.
11992 (ia64_hpux_get_solib_linkage_addr): Likewise.
11993 * solib-spu.c (append_ocl_sos): Likewise.
11994 (spu_current_sos): Likewise.
11995 * solib-svr4.c (get_svr4_info): Likewise.
11996 (svr4_keep_data_in_core): Likewise.
11997 (library_list_start_library): Likewise.
11998 (svr4_default_sos): Likewise.
11999 (svr4_read_so_list): Likewise.
12000 * solib-target.c (library_list_start_library): Likewise.
12001 (solib_target_current_sos): Likewise.
12002 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12003 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12004 * symfile.c (default_symfile_segments): Likewise.
12005 * target-descriptions.c (tdesc_data_init): Likewise.
12006 (tdesc_create_reg): Likewise.
12007 (struct tdesc_type *): Likewise.
12008 (tdesc_create_vector): Likewise.
12009 (tdesc_set_struct_size): Likewise.
12010 (struct tdesc_type *): Likewise.
12011 (tdesc_free_feature): Likewise.
12012 (tdesc_create_feature): Likewise.
12013 * windows-nat.c (windows_add_thread): Likewise.
12014 (windows_make_so): Likewise.
12015 * xml-support.c (gdb_xml_body_text): Likewise.
12016 (gdb_xml_create_parser_and_cleanup): Likewise.
12017 (xml_process_xincludes): Likewise.
12018 * xml-syscall.c (allocate_syscalls_info): Likewise.
12019 (syscall_create_syscall_desc): Likewise.
12021 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12023 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12024 function, with code from i386_stap_parse_special_token.
12025 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12026 (i386_stap_parse_special_token): Move code to the two functions
12027 above; simplify it.
12029 2014-01-09 Pedro Alves <palves@redhat.com>
12030 Hui Zhu <hui@codesourcery.com>
12033 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12034 bp_err_string. Don't mark the location shlib_disabled if the
12035 error thrown wasn't a generic or memory error. Catch errors
12036 thrown while inserting breakpoints in overlayed code. Output
12037 error message of software breakpoints.
12038 * remote.c (remote_insert_breakpoint): If this breakpoint has
12039 target-side commands but this stub doesn't support Z0 packets,
12040 throw NOT_SUPPORTED_ERROR error.
12041 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12042 * target.h (target_insert_breakpoint): Extend comment.
12043 (target_insert_hw_breakpoint): Add comment.
12045 2014-01-08 Pedro Alves <palves@redhat.com>
12047 * remote.c (remote_add_thread): Add threads silently if starting
12049 (remote_notice_new_inferior): If in all-stop, and starting up,
12050 don't call notice_new_inferior.
12051 (get_current_thread): New function, factored out from ...
12052 (add_current_inferior_and_thread): ... this. Adjust.
12053 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12054 found any thread, then select the remote's current thread as GDB's
12055 current thread too.
12057 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12059 * NEWS: Create a new section for the next release branch.
12060 Rename the section of the current branch, now that it has
12063 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12065 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12066 * version.in: Bump version to 7.7.50.DATE-cvs.
12068 2014-01-08 Yao Qi <yao@codesourcery.com>
12070 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12071 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12072 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12074 2014-01-08 Yao Qi <yao@codesourcery.com>
12076 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12077 return value of bfd_get_filename to symbol_file_add_from_bfd.
12079 2014-01-08 Pierre Muller <muller@sourceware.org>
12082 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12083 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12084 to prim_record_mininal_symbol_and_info.
12085 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12086 in call to prim_record_minimal_symbol_and_info.
12087 (read_pe_exported_syms): Set index field of section_data.
12089 2014-01-07 Andrew Pinski <apinski@cavium.com>
12091 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12092 * features/aarch64.c: Regenerate.
12094 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12096 * target.c (return_null): Define.
12097 (update_current_target): Use it instead of return_zero for
12098 functions that return a pointer.
12100 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12102 * source.c (add_path): Fix check for duplicated paths in the previously
12105 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12107 * ada-lang.c: Remove duplicated include statements.
12108 * alphabsd-nat.c: Ditto.
12109 * amd64-darwin-tdep.c: Ditto.
12110 * amd64fbsd-nat.c: Ditto.
12111 * auto-load.c: Ditto.
12113 * breakpoint.c: Ditto.
12114 * dbxread.c: Ditto.
12115 * fork-child.c: Ditto.
12116 * gdb_usleep.c: Ditto.
12117 * i386-darwin-tdep.c: Ditto.
12118 * i386fbsd-nat.c: Ditto.
12120 * inferior.c: Ditto.
12121 * jv-lang.c: Ditto.
12122 * linux-nat.c: Ditto.
12123 * linux-tdep.c: Ditto.
12124 * m68kbsd-nat.c: Ditto.
12125 * m68klinux-nat.c: Ditto.
12126 * microblaze-tdep.c: Ditto.
12127 * mips-linux-tdep.c: Ditto.
12128 * mn10300-tdep.c: Ditto.
12129 * nto-tdep.c: Ditto.
12130 * opencl-lang.c: Ditto.
12132 * printcmd.c: Ditto.
12133 * regcache.c: Ditto.
12134 * remote-m32r-sdi.c: Ditto.
12136 * symfile.c: Ditto.
12138 * tilegx-linux-nat.c: Ditto.
12139 * tilegx-tdep.c: Ditto.
12140 * tracepoint.c: Ditto.
12142 * vaxbsd-nat.c: Ditto.
12143 * windows-nat.c: Ditto.
12144 * xtensa-tdep.c: Ditto.
12146 2014-01-07 Yao Qi <yao@codesourcery.com>
12148 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12150 2014-01-07 Yao Qi <yao@codesourcery.com>
12151 Joel Brobecker <brobecker@adacore.com>
12153 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12154 (pdc_write_regs): Likewise.
12155 (fetch_regs_kernel_thread): Likewise.
12156 (store_regs_kernel_thread): Likewise.
12158 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12160 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12161 tagged type objects to their actual type.
12163 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12165 * ada-valprint.c (print_field_values): Add "language" parameter.
12166 Update calls to print_field_values and print_variant_part.
12167 Pass new parameter "language" in call to val_print instead
12168 of "current_language". Replace call to ada_val_print by call
12170 (print_variant_part): Add "language" parameter.
12171 (ada_val_print_struct_union): Update call to print_field_values.
12173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12175 * ada-valprint.c (ui_memcpy): Delete.
12176 (ada_print_floating): Update documentation. Add empty line
12177 between between function documentation and implementation.
12178 Delete variable "buffer". Use ui_file_xstrdup in place of
12179 ui_file_put. Minor adjustments following this change.
12181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12183 * ada-valprint.c (ada_val_print_string): New function,
12184 extracted from ada_val_print_array.
12185 (ada_val_print_array): Replace extracted code by call
12186 to ada_val_print_string followed by a return. Move
12187 "else" branch to the function's top block.
12189 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12191 * ada-valprint.c (ada_val_print_array): Move implementation
12192 down. Rename parameter "offset" and "val" into "offset_aligned"
12193 and "original_value" respectively. Add parameter "offset".
12195 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12197 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12198 re-organizing the code. Change the "???" message printed
12199 when target type is a TYPE_CODE_UNDEF into
12200 "<ref to undefined type>".
12202 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12204 * ada-valprint.c (print_record): Delete, implementation inlined...
12205 (ada_val_print_struct_union): ... here. Remove call to
12206 ada_check_typedef in inlined implementation.
12208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12210 * ada-valprint.c (ada_val_print_gnat_array): New function,
12211 extracted from ada_val_print_1;
12212 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12213 (ada_val_print_flt, ada_val_print_struct_union)
12214 (ada_val_print_ref): Likewise.
12215 (ada_val_print_1): Delete variables i and elttype.
12216 Replace extracted-out code by call to corresponding
12219 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12221 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12223 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12225 * ada-valprint.c (ada_val_print_1): Replace calls to
12226 ada_val_print_1 by calls to val_print.
12228 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12230 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12231 Update calls to self accordingly. Replace calls to c_val_print
12232 by calls to val_print.
12234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12236 * ada-valprint.c (print_record): Delete declaration.
12237 (adjust_type_signedness, ada_val_print_1): Likewise.
12238 (ada_val_print): Move function implementation down.
12239 (print_variant_part, print_field_values, print_record):
12240 Move function implementation up.
12242 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12244 * python/py-type.c (typy_get_name): New function.
12245 (type_object_getset): Add entry for attribute "name".
12246 * NEWS: Add entry mentioning this new attribute.
12248 2014-01-07 Yao Qi <yao@codesourcery.com>
12250 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12253 2014-01-07 Yao Qi <yao@codesourcery.com>
12255 * gnu-nat.c (info_port_rights): Add qualifier const to
12258 2014-01-07 Yao Qi <yao@codesourcery.com>
12260 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12262 2014-01-07 Yao Qi <yao@codesourcery.com>
12264 * gnu-nat.c (make_inf) Update declaration.
12265 (make_inf): Make it static.
12266 (inf_set_traced): Likewise.
12267 (inf_port_to_thread, inf_task_died_status): Likewise.
12269 2014-01-07 Yao Qi <yao@codesourcery.com>
12271 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12273 2014-01-07 Yao Qi <yao@codesourcery.com>
12275 * gnu-nat.c (_initialize_gnu_nat): Declare.
12277 2014-01-07 Yao Qi <yao@codesourcery.com>
12279 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12281 (struct gdbarch_info) <byte_order>: Change type to
12283 <byte_order_for_code>: Likewise.
12284 * gdbarch.c, gdbarch.h: Regenerated.
12286 2014-01-06 Sasha Smundak <asmundak@google.com>
12288 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12290 2014-01-06 Tom Tromey <tromey@redhat.com>
12292 * doublest.c (convert_doublest_to_floatformat): Use const, not
12294 * somread.c (som_symtab_read): Likewise.
12296 2014-01-07 Hui Zhu <hui@codesourcery.com>
12298 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12299 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12300 (gdb_bfd_fopen): Ditto.
12301 (gdb_bfd_openr): Ditto.
12302 (gdb_bfd_openw): Ditto.
12303 (gdb_bfd_openr_iovec): Ditto.
12304 (gdb_bfd_fdopenr): Ditto.
12305 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12306 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12308 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12310 * symfile-mem.c (symbol_file_add_from_memory): Removed
12311 gdb_bfd_stash_filename.
12313 2014-01-03 Doug Evans <dje@google.com>
12315 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12318 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12320 Update year range in copyright notice of all files.
12322 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12324 * top.c (print_gdb_version): Set copyright year to 2014.
12326 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12328 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12330 For older changes see ChangeLog-2013.
12336 version-control: never