1 2017-03-23 Yao Qi <yao.qi@linaro.org>
3 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
5 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
7 python/python.c (do_start_initialization): Fix memory leak.
9 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
13 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
16 inferior_ptid instead of pid.
18 2017-03-22 Yao Qi <yao.qi@linaro.org>
20 * aarch64-tdep.c: Wrap locally used classes in anonymous
22 * arm-tdep.c: Likewise.
23 * linespec.c: Likewise.
26 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
29 * python/lib/gdb/printer/bound_registers.py: Import sys.
31 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
33 * windows-nat.c (do_windows_fetch_inferior_registers): Add
34 windows_thread_info parameter and use it instead of
36 (windows_fetch_inferior_registers): Don't set current_thread,
37 pass the thread to do_windows_fetch_inferior_registers. Use
38 ptid from regcache instead of inferior_ptid.
39 (do_windows_store_inferior_registers): Add windows_thread_info
40 parameter and use it instead of current_thread.
41 (windows_store_inferior_registers): Don't set current_thread,
42 pass the thread to do_windows_store_inferior_registers. Use
43 ptid from regcache instead of inferior_ptid.
45 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
47 * ser-mingw.c (ser_windows_raw): Remove reference to
48 struct serial::current_timeout.
50 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
53 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
54 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
55 (sparc64_fsr_type): Fix %fsr decoding.
57 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
59 * python/py-record-btrace.c (btpy_insn_data): Change return type
62 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
64 * spu-linux-nat.c (spu_fetch_inferior_registers,
65 spu_store_inferior_registers): Use ptid from regcache, set and
66 restore inferior_ptid.
67 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
70 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
72 * i386-linux-nat.c (fetch_register, store_register,
73 i386_linux_fetch_inferior_registers,
74 i386_linux_store_inferior_registers): Use ptid from regcache.
75 * ia64-linux-nat.c (ia64_linux_fetch_register,
76 ia64_linux_store_register): Likewise.
77 * inf-ptrace.c (inf_ptrace_fetch_register,
78 inf_ptrace_store_register): Likewise.
79 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
80 m32r_linux_store_inferior_registers): Likewise.
81 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
82 m68kbsd_store_inferior_registers): Likewise.
83 * m68k-linux-nat.c (fetch_register, store_register,
84 m68k_linux_fetch_inferior_registers,
85 m68k_linux_store_inferior_registers): Likewise.
86 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
87 m88kbsd_store_inferior_registers): Likewise.
88 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
89 mips_fbsd_store_inferior_registers): Likewise.
90 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
91 mips64_linux_regsets_store_registers): Likewise.
92 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
93 mipsnbsd_store_inferior_registers): Likewise.
94 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
95 mips64obsd_store_inferior_registers): Likewise.
96 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
98 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
99 ppcfbsd_store_inferior_registers): Likewise.
100 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
101 ppc_linux_store_inferior_registers): Likewise.
102 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
103 ppcnbsd_store_inferior_registers): Likewise.
104 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
105 ppcobsd_store_registers): Likewise.
106 * procfs.c (procfs_fetch_registers, procfs_store_registers):
108 * ravenscar-thread.c (ravenscar_fetch_registers,
109 ravenscar_store_registers, ravenscar_prepare_to_store):
111 * record-btrace.c (record_btrace_fetch_registers,
112 record_btrace_store_registers, record_btrace_prepare_to_store):
114 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
115 Lookup inferior using ptid from regcache, instead of
117 * remote.c (remote_fetch_registers, remote_store_registers): Use
119 * rs6000-nat.c (fetch_register, store_register): Likewise.
120 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
121 s390_linux_store_inferior_registers): Likewise.
122 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
123 shnbsd_store_inferior_registers): Likewise.
124 * sol-thread.c (sol_thread_fetch_registers,
125 sol_thread_store_registers): Likewise.
126 * sparc-nat.c (sparc_fetch_inferior_registers,
127 sparc_store_inferior_registers): Likewise.
128 * tilegx-linux-nat.c (fetch_inferior_registers,
129 store_inferior_registers): Likewise.
130 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
131 vaxbsd_store_inferior_registers): Likewise.
132 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
133 store_xtregs): Likewise.
135 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
138 * NEWS: Mention support for rvalue references in GDB and python.
139 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
140 supports both lvalue and rvalue references.
142 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
145 * gdbtypes.c (rank_one_type): Implement overloading
146 resolution rules regarding rvalue references.
148 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
151 * aarch64-tdep.c (aarch64_type_align)
152 (aarch64_extract_return_value, aarch64_store_return_value): Change
153 lvalue reference type checks to general reference type checks.
154 * amd64-tdep.c (amd64_classify): Likewise.
155 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
157 * arm-tdep.c (arm_type_align, arm_extract_return_value)
158 (arm_store_return_value): Likewise.
159 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
160 * c-typeprint.c (c_print_type): Likewise.
161 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
162 (cplus_number_of_children, cplus_describe_child): Likewise.
163 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
164 * completer.c (expression_completer): Likewise.
165 * cp-support.c (make_symbol_overload_list_adl_namespace):
167 * darwin-nat-info.c (info_mach_region_command): Likewise.
168 * dwarf2loc.c (entry_data_value_coerce_ref)
169 (value_of_dwarf_reg_entry): Likewise.
170 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
171 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
173 * findvar.c (extract_typed_address, store_typed_address):
175 * gdbtypes.c (rank_one_type): Likewise.
176 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
177 * infcall.c (value_arg_coerce): Likewise.
178 * language.c (pointer_type): Likewise.
179 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
181 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
182 * mn10300-tdep.c (mn10300_type_align): Likewise.
183 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
184 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
185 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
187 * printcmd.c (print_formatted, x_command): Likewise.
188 * python/py-type.c (typy_get_composite, typy_template_argument):
190 * python/py-value.c (valpy_referenced_value)
191 (valpy_get_dynamic_type, value_has_field): Likewise.
192 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
193 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
194 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
195 * spu-tdep.c (spu_scalar_value_p): Likewise.
196 * symtab.c (lookup_symbol_aux): Likewise.
197 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
198 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
200 * valops.c (value_cast_pointers, value_cast)
201 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
202 (value_struct_elt, value_struct_elt_bitpos)
203 (value_find_oload_method_list, find_overload_match)
204 (value_rtti_indirect_type): Likewise.
205 * valprint.c (val_print_scalar_type_p, generic_val_print):
207 * value.c (value_actual_type, value_as_address, unpack_long)
208 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
209 (coerce_ref): Likewise.
210 * varobj.c (varobj_get_value_type): Likewise.
212 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
215 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
217 * python/lib/gdb/command/explore.py: Support exploring values
218 of rvalue reference types.
219 * python/lib/gdb/types.py: Implement get_basic_type() for
220 rvalue reference types.
221 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
223 * python/py-value.c (valpy_getitem): Add an rvalue reference
225 (valpy_reference_value): Add new parameter "refcode".
226 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
227 New wrappers for valpy_reference_value().
228 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
229 (gdbpy_invoke_xmethod): Likewise.
231 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
234 * dwarf2read.c (process_die, read_type_die_1): Handle the
235 DW_TAG_rvalue_reference_type DIE.
236 (read_tag_reference_type): Add new parameter "refcode".
238 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
241 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
242 (c_type_print_modifier, c_type_print_varspec_suffix)
243 (c_type_print_base): Support printing rvalue reference types.
244 * c-valprint.c (c_val_print, c_value_print): Support printing
245 rvalue reference values.
247 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
250 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
252 * cp-support.c (replace_typedefs): Handle
253 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
254 * python/py-type.c (typy_lookup_type): Likewise.
256 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
259 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
260 * parse.c (insert_type): Change assert statement.
261 (follow_types): Handle rvalue reference types.
262 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
265 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
268 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
269 value_ref() interface.
270 * c-valprint.c (c_value_print): Likewise.
271 * infcall.c (value_arg_coerce): Likewise.
272 * python/py-value.c (valpy_reference_value): Likewise.
273 * valops.c (value_cast, value_reinterpret_cast)
274 (value_dynamic_cast, typecmp): Likewise.
275 (value_ref): Parameterize by kind of return value reference type.
276 * value.h (value_ref): Add new parameter "refcode".
278 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
281 * dwarf2read.c (read_tag_reference_type): Use
282 lookup_lvalue_reference_type() instead of lookup_reference_type().
283 * eval.c (evaluate_subexp_standard): Likewise.
285 * gdbtypes.c (make_reference_type, lookup_reference_type):
286 Generalize with rvalue reference types.
287 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
288 convenience wrappers for lookup_reference_type().
289 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
290 reference kind parameter.
291 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
292 wrappers for lookup_reference_type().
293 * guile/scm-type.c (gdbscm_type_reference): Use
294 lookup_lvalue_reference_type() instead of lookup_reference_type().
295 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
296 * parse.c (follow_types): Likewise.
297 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
298 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
300 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
301 (gdbpy_invoke_xmethod): Likewise.
302 * stabsread.c: Provide extra argument to make_reference_type()
304 * valops.c (value_ref, value_rtti_indirect_type): Use
305 lookup_lvalue_reference_type() instead of lookup_reference_type().
307 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
310 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
311 (TYPE_IS_REFERENCE): New macro.
312 (struct type): Add rvalue_reference_type field.
313 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
315 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
317 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
318 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
319 New function definition.
320 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
321 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
322 New function declaration.
323 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
324 * mi/mi-interp.h: New file.
325 * solib.c (info_sharedlibrary_command): Replace for loop with
327 * solib.h (update_solib_list): New function declaration.
328 (so_list_head): Move macro.
329 * solist.h (ALL_SO_LIBS): New macro.
331 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
333 * infcmd.c (post_create_inferior): Remove unused argument in
335 * remote.c (remote_start_remote): Likewise.
336 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
337 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
338 (enable_break): Likewise.
339 * solib.c (update_solib_list): Remove unused target argument
340 and its documentation.
341 (solib_add): Remove unused target argument. Remove unused
342 argument in call to update_solib_list.
343 (info_sharedlibrary_command): Remove unused argument in call
344 to update_solib_list.
345 (sharedlibrary_command): Remove unused argument in call to
347 (handle_solib_event): Likewise.
348 (reload_shared_libraries): Likewise.
349 * solib.h (solib_add): Remove unused target argument.
351 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
353 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
354 (s390_displaced_step_fixup): Cover relative branches with the
355 default fixup handling. This fixes lack of support for some
356 relative branch instructions.
358 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
360 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
363 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
365 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
366 i386_darwin_store_inferior_registers): Use ptid from regcache.
368 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
370 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
371 i386bsd_store_inferior_registers): Use ptid from regcache.
373 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
375 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
376 hppaobsd_store_registers): Use ptid from regcache.
378 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
380 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
381 hppanbsd_store_registers): Use ptid from regcache.
383 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
385 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
386 from regcache. Use get_ptrace_pid.
388 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
390 * corelow.c (get_core_register_section): Use ptid from regcache,
393 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
395 * bsd-uthread.c (bsd_uthread_fetch_registers,
396 bsd_uthread_store_registers): Use ptid from regcache, set and
397 restore inferior_ptid.
399 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
401 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
402 fetch_fp_regs, store_register, store_regs, store_fp_register,
403 store_fp_regs): Use ptid from regcache.
405 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
407 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
408 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
409 store_vfp_regs): Use ptid from regcache.
411 2017-03-17 Pedro Alves <palves@redhat.com>
414 * ser-base.c (ser_base_wait_for): Add comment.
415 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
417 * ser-unix.c (hardwire_raw): Remove reference to
418 scb->current_timeout.
419 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
420 (hardwire_ops): Install ser_base_readchar instead of
422 * serial.h (struct serial) <current_timeout, timeout_remaining>:
425 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
428 * python/lib/gdb/printer/bound_registers.py: Add support for
431 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
433 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
434 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
435 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
436 byte_offset to subobj_byte_offset. Fix the handling of
437 DWARF_VALUE_STACK on big-endian targets when coming via an
439 (dwarf2_evaluate_loc_desc): Adjust call to
440 dwarf2_evaluate_loc_desc_full.
441 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
442 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
444 2017-03-16 Yao Qi <yao.qi@linaro.org>
446 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
447 and REVSH instructions.
449 2017-03-16 Yao Qi <yao.qi@linaro.org>
451 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
452 (arm_record_test): Declare.
453 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
454 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
455 align with the manual.
456 (thumb_record_misc): Adjust the code order to align with the
458 (thumb2_record_decode_insn_handler): Fix instruction matching.
459 (instruction_reader_thumb): New class.
460 (arm_record_test): New function.
462 2017-03-16 Yao Qi <yao.qi@linaro.org>
464 * arm-tdep.c (abstract_memory_reader): New class.
465 (instruction_reader): New class.
466 (extract_arm_insn): Add argument 'reader'. Callers updated.
467 (decode_insn): Likewise.
469 2017-03-16 Doug Evans <dje@google.com>
471 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
472 member. Change type of TYPE member to SCM. All uses updated.
473 (lsscm_make_lazy_string_smob): Add assert.
474 (lsscm_make_lazy_string): Flag bad length values.
475 (lsscm_elt_type): New function.
476 (gdbscm_lazy_string_to_value): Rewrite to use
477 lsscm_safe_lazy_string_to_value.
478 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
479 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
480 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
482 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
483 * guile/scm-type.c (tyscm_scm_to_type): New function.
485 2017-03-15 Doug Evans <dje@google.com>
487 PR python/17728, python/18439, python/18779
488 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
489 member. Change type of TYPE member to PyObject *. All uses updated.
490 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
491 (gdbpy_create_lazy_string_object): Flag bad length values.
492 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
493 Handle typedefs in incoming type.
494 (stpy_lazy_string_elt_type): New function.
495 (gdbpy_extract_lazy_string): Call it.
496 * python/py-value.c (valpy_lazy_string): Flag bad length values.
497 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
498 typedefs in incoming type.
500 2017-03-16 Doug Evans <dje@google.com>
502 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
503 * guile/scm-type.c (tyscm_scm_to_type): New function.
505 2017-03-16 Jiong Wang <jiong.wang@arm.com>
507 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
508 "ULONGEST" for "skip".
510 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
513 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
514 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
515 (inf_ptrace_peek_poke): ...here. New function. Now also loop
516 over ptrace peek/poke until end of buffer or error.
518 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
520 * parse.c (length_of_subexp): Make static.
521 * parser-defs.h (length_of_subexp): Remove.
523 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
525 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
528 2017-03-14 Pedro Alves <palves@redhat.com>
530 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
531 (main): Use std::unique_ptr. Remove calls to
532 cp_demangled_name_parse_free.
534 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
536 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
537 alphabsd_store_inferior_registers): Use regcache->ptid instead
540 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
542 * aix-thread.c (aix_thread_fetch_registers,
543 aix_thread_store_registers): Use regcache->ptid instead of
546 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
548 * aarch64-linux-nat.c (fetch_gregs_from_thread,
549 store_gregs_to_thread, fetch_fpregs_from_thread,
550 store_fpregs_to_thread): Use regcache->ptid instead of
553 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
555 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
556 amd64_linux_fetch_inferior_registers): Use regcache->ptid
557 instead of inferior_ptid.
559 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
561 * target.c (target_fetch_registers, target_store_registers): Add
564 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
566 * regcache.h (regcache_get_ptid): New function.
567 * regcache.c (regcache_get_ptid): New function.
569 2017-03-13 Mark Wielaard <mark@klomp.org>
571 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
573 2017-03-10 Keith Seitz <keiths@redhat.com>
576 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
578 2017-03-08 Pedro Alves <palves@redhat.com>
581 * infrun.c (start_step_over, do_target_resume, resume)
582 (restart_threads): Assert we're not resuming a thread that is
584 (infrun_thread_stop_requested_callback): Delete.
585 (infrun_thread_stop_requested): If the thread is internally
586 stopped, queue a pending stop event and clear the thread's
588 (handle_stop_requested): New function.
589 (handle_syscall_event, handle_inferior_event_1): Use
590 handle_stop_requested.
591 (handle_stop_requested): New function.
592 (handle_signal_stop): Set the thread's stop_signal here instead of
594 (finish_step_over): Clear step over info unconditionally.
595 (handle_signal_stop): If the user had interrupted the event
596 thread, consider the stop a random signal.
597 (handle_signal_stop) <signal arrived while stepping over
598 breakpoint>: Don't restart threads here.
599 (stop_waiting): Don't clear step-over info here.
601 2017-03-08 Pedro Alves <palves@redhat.com>
604 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
605 goes to argument 2, not 1.
607 2017-03-08 Pedro Alves <palves@redhat.com>
610 * top.c (gdb_readline_wrapper): Avoid passing NULL to
612 (command_line_input): Add comment.
614 2017-03-08 Pedro Alves <palves@redhat.com>
617 * tui/tui-file.c (tui_file::write): New.
618 * tui/tui-file.h (tui_file): Override "write".
619 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
620 factored out from ...
621 (tui_puts): ... here.
622 (tui_putc): Use them.
623 (tui_write): New function.
624 * tui/tui-io.h (tui_write): Declare.
626 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
628 * Makefile.in (SFILES): Replace "environ.c" with
630 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
631 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
633 * common/environ.c: ... here.
634 * environ.h: Moved to...
635 * common/environ.h: ... here.
637 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
639 * gdbarch.sh (pstring_ptr): New static function.
640 (gdbarch_disassembler_options): Use it.
641 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
642 not valid_disassembler_option->name.
643 * gdbarch.c: Regenerate.
645 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
647 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
649 2017-03-07 Pedro Alves <palves@redhat.com>
651 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
653 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
655 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
656 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
657 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
658 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
660 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
662 * xtensa-linux-nat.c (fetch_gregs): Remove const.
664 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
666 * remote.c (remote_add_target_side_commands): Use range-based
669 2017-03-03 Yao Qi <yao.qi@linaro.org>
672 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
674 * valprint.c (common_val_print): Likewise.
676 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
678 * NEWS: Mention new set/show disassembler-options commands.
679 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
680 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
681 (prospective_options): New static variable.
682 (gdb_disassembler::gdb_disassembler): Initialize
683 m_di.disassembler_options.
684 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
685 (get_disassembler_options): New function.
686 (set_disassembler_options): Likewise.
687 (set_disassembler_options_sfunc): Likewise.
688 (show_disassembler_options_sfunc): Likewise.
689 (disassembler_options_completer): Likewise.
690 (_initialize_disasm): Likewise.
691 * disasm.h (get_disassembler_options): New prototype.
692 (set_disassembler_options): Likewise.
693 * gdbarch.sh (gdbarch_disassembler_options): New variable.
694 (gdbarch_verify_disassembler_options): Likewise.
695 * gdbarch.c: Regenerate.
696 * gdbarch.h: Likewise.
697 * arm-tdep.c (num_disassembly_options): Delete.
698 (set_disassembly_style): Likewise.
699 (arm_disassembler_options): New static variable.
700 (set_disassembly_style_sfunc): Convert short style name into long
701 option name. Call set_disassembler_options.
702 (show_disassembly_style_sfunc): New function.
703 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
704 set_gdbarch_verify_disassembler_options.
705 (_initialize_arm_tdep): Delete regnames variable and update callers.
706 (arm_disassembler_options): Initialize.
707 (disasm_options): New variable.
708 (num_disassembly_options): Rename from this...
709 (num_disassembly_styles): ...to this. Compute by scanning through
711 (valid_disassembly_styles): Initialize using disasm_options.
712 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
713 set_arm_regname_option.
714 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
715 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
716 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
717 set_gdbarch_verify_disassembler_options.
718 * s390-tdep.c (s390_disassembler_options): New static variable.
719 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
720 set_gdbarch_verify_disassembler_options.
722 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
724 * remote.c (remote_add_target_side_condition): Remove "struct"
725 keyword from range-based for loop.
727 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
729 * remote.c (remote_add_target_side_condition): Use range-based
730 for loop. Update comment.
732 2017-02-27 Yao Qi <yao.qi@linaro.org>
734 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
736 2017-02-26 Alan Hayward <alan.hayward@arm.com>
738 * regcache.c (regcache_raw_update): New function.
739 (regcache_raw_read): Move code to regcache_raw_update.
740 * regcache.h (regcache_raw_update): New declaration.
741 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
743 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
745 * dwarf2read.c (create_debug_type_hash_table): Initialize
746 header.signature and header.type_offset_in_tu.
748 2017-02-24 Pedro Alves <palves@redhat.com>
750 * symtab.c (make_file_symbol_completion_list_1): Use
751 add_symtab_completions.
753 2017-02-24 Alan Hayward <alan.hayward@arm.com>
755 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
757 2017-02-24 Alan Hayward <alan.hayward@arm.com>
759 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
760 I386_MAX_REGISTER_SIZE.
761 (i386_pseudo_register_write): Likewise.
762 (i386_process_record): Likewise.
763 * i387-tdep.c (i387_supply_xsave): Likewise.
764 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
765 (store_register): Likewise.
767 2017-02-23 Pedro Alves <palves@redhat.com>
769 * ada-lang.c: Include "common/function-view.h".
770 (ada_iterate_over_symbols): Adjust to use function_view as
772 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
773 (ada_make_symbol_completion_list): Use a lambda.
774 (ada_exc_search_name_matches): Delete.
775 (name_matches_regex): New.
776 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
777 * compile/compile-c-support.c: Include "common/function-view.h".
778 (print_one_macro): Change prototype to accept a ui_file pointer.
779 (write_macro_definitions): Use a lambda.
780 * dwarf2read.c: Include "common/function-view.h".
781 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
782 (dw2_expand_symtabs_matching): Adjust to use function_view as
784 * language.h: Include "common/function-view.h".
785 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
786 function_view as callback type.
787 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
788 * linespec.c: Include "common/function-view.h".
789 (collect_info::add_symbol): New method.
790 (struct symbol_and_data_callback, iterate_inline_only, struct
791 symbol_matcher_data, iterate_name_matcher): Delete.
792 (iterate_over_all_matching_symtabs): Adjust to use function_view
793 as callback type and lambdas.
794 (iterate_over_file_blocks): Adjust to use function_view as
796 (decode_compound_collector): Now a class with private fields.
797 (decode_compound_collector::release_symbols): New method.
798 (collect_one_symbol): Rename to...
799 (decode_compound_collector::operator()): ... this and adjust.
800 (lookup_prefix_sym): decode_compound_collector construction bits
801 move to decode_compound_collector ctor. Pass the
802 decode_compound_collector object directly as callback. Remove
803 cleanups and use decode_compound_collector::release_symbols
805 (symtab_collector): Now a class with private fields.
806 (symtab_collector::release_symtabs): New method.
807 (add_symtabs_to_list): Rename to...
808 (symtab_collector::operator()): ... this and adjust.
809 (collect_symtabs_from_filename): symtab_collector construction
810 bits move to symtab_collector ctor. Pass the symtab_collector
811 object directly as callback. Remove cleanups and use
812 symtab_collector::release_symtabs instead.
813 (collect_symbols): Delete.
814 (add_matching_symbols_to_info): Use lambdas.
815 * macrocmd.c (print_macro_callback): Delete.
816 (info_macro_command): Use a lambda.
817 (info_macros_command): Pass print_macro_definition as callable
819 (print_one_macro): Remove 'ignore' parameter.
820 (macro_list_command): Adjust.
821 * macrotab.c (macro_for_each_data::fn): Now a function_view.
822 (macro_for_each_data::user_data): Delete field.
823 (foreach_macro): Adjust to call the function_view.
824 (macro_for_each): Adjust to use function_view as callback type.
825 (foreach_macro_in_scope): Adjust to call the function_view.
826 (macro_for_each_in_scope): Adjust to use function_view as callback
828 * macrotab.h: Include "common/function-view.h".
829 (macro_callback_fn): Declare a prototype instead of a pointer.
830 Remove "user_data" parameter.
831 (macro_for_each, macro_for_each_in_scope): Adjust to use
832 function_view as callback type.
833 * psymtab.c (partial_map_expand_apply)
834 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
835 Adjust to use function_view as callback type and to return bool.
836 (psym_expand_symtabs_matching): Adjust to use function_view as
838 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
839 to use function_view as callback type and to return bool.
840 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
842 * symfile.c (expand_symtabs_matching): Adjust to use function_view
844 * symfile.h: Include "common/function-view.h".
845 (expand_symtabs_file_matcher_ftype)
846 (expand_symtabs_symbol_matcher_ftype)
847 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
849 (quick_symbol_functions::map_symtabs_matching_filename)
850 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
851 function_view as callback type and return bool.
852 (expand_symtabs_matching): Adjust to use function_view as callback
854 (maintenance_expand_name_matcher)
855 (maintenance_expand_file_matcher): Delete.
856 (maintenance_expand_symtabs): Use lambdas.
857 * symtab.c (iterate_over_some_symtabs): Adjust to use
858 function_view as callback types and return bool.
859 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
861 (lookup_symtab_callback): Delete.
862 (lookup_symtab): Use a lambda.
863 (iterate_over_symbols): Adjust to use function_view as callback
865 (struct search_symbols_data, search_symbols_file_matches)
866 (search_symbols_name_matches): Delete.
867 (search_symbols): Use a pair of lambdas.
868 (struct add_name_data, add_macro_name, symbol_completion_matcher)
869 (symtab_expansion_callback): Delete.
870 (default_make_symbol_completion_list_break_on_1): Use lambdas.
871 * symtab.h: Include "common/function-view.h".
872 (iterate_over_some_symtabs): Adjust to use function_view as
873 callback type and return bool.
874 (iterate_over_symtabs): Adjust to use function_view as callback
876 (symbol_found_callback_ftype): Remove 'data' parameter and return
878 (iterate_over_symbols): Adjust to use function_view as callback
881 2017-02-23 Pedro Alves <palves@redhat.com>
883 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
884 (%.o) <unittests/%.c>: New pattern.
885 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
886 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
887 * common/function-view.h: New file.
888 * unittests/function-view-selftests.c: New file.
889 * configure: Regenerate.
891 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
893 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
895 * go32-nat.c (go32_thread_alive): Likewise.
897 2017-02-23 Yao Qi <yao.qi@linaro.org>
899 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
902 2017-02-23 Yao Qi <yao.qi@linaro.org>
904 * varobj.c (varobj_clear_saved_item): Use delete instead of
906 (update_dynamic_varobj_children): Likewise.
908 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
910 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
912 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
914 * common/enum-flags.h (enum_flags::enum_flags): Initialize
915 m_enum_value to 0 in default constructor.
917 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
919 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
920 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
921 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
922 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
923 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
924 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
925 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
926 IS_STORE_CONDITIONAL_INSN.
928 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
930 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
932 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
934 * NEWS (Changes since GDB 7.12): Add DWARF-5.
936 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
938 * dwarf2read.c (skip_one_die, read_attribute_value)
939 (dwarf2_const_value_attr, dump_die_shallow)
940 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
941 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
943 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
945 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
946 (dwarf_parse_macro_header): Accept DWARF version 5.
947 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
949 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
951 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
953 * common/common-exceptions.h (enum errors): Likewise.
954 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
955 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
956 (dwarf_expr_context::execute_stack_op): Likewise.
957 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
959 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
960 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
961 (show_entry_values_debug, call_site_to_target_addr)
962 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
963 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
964 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
965 (value_of_dwarf_block_entry, indirect_pieced_value)
966 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
967 (disassemble_dwarf_expression): Likewise.
968 * dwarf2read.c (process_die, inherit_abstract_dies)
969 (read_call_site_scope): Likewise.
970 * gdbtypes.h (struct func_type, struct call_site_parameter)
971 (struct call_site): Likewise.
972 * stack.c (read_frame_arg): Likewise.
973 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
975 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
977 * defs.h (read_unsigned_leb128): New declaration.
978 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
979 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
980 (dwarf2_find_location_expression): Call also
981 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
982 * dwarf2loc.h (dwarf2_version): New declaration.
983 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
985 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
987 (struct dwop_section_names): Add loclists_dwo.
988 (dwop_section_names): Add .debug_loclists.dwo.
989 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
990 (struct dwarf2_per_cu_data): Add dwarf_version.
991 (struct dwo_sections): Add loclists.
992 (struct attr_abbrev): Add implicit_const.
993 (read_indirect_line_string): New declaration.
994 (read_unsigned_leb128): Delete declaration.
995 (rcuh_kind): New definition.
996 (read_and_check_comp_unit_head): Change parameter
997 is_debug_types_section to section_kind.
998 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
999 (read_comp_unit_head): Change parameter abfd to section, add parameter
1000 section_kind. Handle DWARF-5.
1001 (error_check_comp_unit_head): Accept also DWARF version 5.
1002 (read_and_check_comp_unit_head): Change parameter
1003 is_debug_types_section to section_kind.
1004 (read_and_check_type_unit_head): Delete function.
1005 (read_abbrev_offset): Handle DWARF-5.
1006 (create_debug_type_hash_table): Add parameter section_kind. Process
1007 only DW_UT_type. Use signature and type_offset_in_tu from struct
1009 (create_debug_types_hash_table): Update create_debug_type_hash_table
1011 (create_all_type_units): Call create_debug_type_hash_table.
1012 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
1013 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
1015 (skip_one_die): Handle DW_FORM_implicit_const.
1016 (dwarf2_rnglists_process): New function.
1017 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
1018 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
1019 (read_attribute_value): Handle DW_FORM_implicit_const,
1021 (read_attribute): Handle DW_FORM_implicit_const.
1022 (read_indirect_string_at_offset_from): New function from
1023 read_indirect_string_at_offset.
1024 (read_indirect_string_at_offset): Call
1025 read_indirect_string_at_offset_from.
1026 (read_indirect_line_string_at_offset): New function.
1027 (read_indirect_string): New function comment.
1028 (read_indirect_line_string): New function.
1029 (read_unsigned_leb128): Make it global.
1030 (dwarf2_string_attr): Handle DWARF-5.
1031 (add_include_dir_stub, read_formatted_entries): New functions.
1032 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
1034 (per_cu_header_read_in): Update read_comp_unit_head caller.
1035 (dwarf2_version): New function.
1036 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
1038 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
1041 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1043 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
1045 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 * dwarf2read.c (dwarf2_ranges_process): New function from
1049 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
1050 dwarf2_ranges_process.
1052 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 * dwarf2read.c (create_debug_type_hash_table): New function from
1055 create_debug_types_hash_table.
1056 (create_debug_types_hash_table): Call create_debug_type_hash_table.
1057 (create_all_type_units, open_and_init_dwo_file): Update
1058 create_debug_types_hash_table callers.
1060 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1063 * fork-child.c (trace_start_error): Fix thinko. va_end should
1064 refer to 'ap', not 'args'.
1066 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1067 Pedro Alves <palves@redhat.com>
1070 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
1072 * fork-child.c (trace_start_error): New function.
1073 (trace_start_error_with_name): Likewise.
1074 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
1075 * inf-ptrace.c (inf_ptrace_me): Likewise.
1076 * inferior.h (trace_start_error): New prototype.
1077 (trace_start_error_with_name): Likewise.
1079 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
1082 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
1083 NULL before using it.
1084 * symmisc.c (maintenance_print_symbols): Likewise.
1085 (maintenance_print_msymbols): Likewise.
1087 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1089 * NEWS: Add record Python bindings entry.
1091 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1093 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
1095 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
1096 * python/py-record-btrace.c, python/py-record-btrace.h,
1097 python/py-record-full.c, python/py-record-full.h: New file.
1098 * python/py-record.c: Add include for py-record-btrace.h and
1100 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
1101 recpy_instruction_history, recpy_function_call_history, recpy_begin,
1102 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
1103 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
1105 (gdbpy_initialize_btrace): New export.
1106 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
1108 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1110 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
1111 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
1112 * python/py-record.c: New file.
1113 * python/python-internal.h (gdbpy_start_recording,
1114 gdbpy_current_recording, gdpy_stop_recording,
1115 gdbpy_initialize_record): New export.
1116 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
1117 (python_GdbMethods): Add gdbpy_start_recording,
1118 gdbpy_current_recording and gdbpy_stop_recording.
1120 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1122 * record-btrace.c (record_btrace_record_method): New function.
1123 (init_record_btrace_ops): Initialize to_record_method.
1124 * record-full.c (record_full_record_method): New function.
1125 (init_record_full_ops, init_record_full_core_ops): Add
1126 record_full_record_method.
1127 * record.h (enum record_method): New enum.
1128 * target-debug.h (target_debug_print_enum_record_method: New define.
1129 * target-delegates.c: Regenerate.
1130 * target.c (target_record_method): New function.
1131 * target.h: Include record.h.
1132 (struct target_ops) <to_record_method>: New field.
1133 (target_record_method): New export.
1135 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1137 * record.h (record_start, record_stop): New export.
1138 * record.c (record_start, record_stop): New function.
1140 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1142 * btrace.c (btrace_fetch): Copy function call segments pointer
1144 (btrace_clear): Clear the vector.
1145 (btrace_find_insn_by_number): Use binary search to find the correct
1146 function call segment.
1147 * btrace.h (brace_fun_p): New typedef.
1148 (struct btrace_thread_info) <functions>: New field.
1150 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1152 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
1153 * btrace.c (btrace_decode_error): ... here. New function.
1154 * btrace.h (btrace_decode_error): New export.
1156 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
1158 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
1159 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
1160 btrace_find_insn_by_number): Remove special case for gaps.
1161 * btrace.h (btrace_insn_get_error): New export.
1162 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
1163 * record-btrace.c (btrace_insn_history): Print number for gaps.
1164 (record_btrace_info, record_btrace_goto): Handle gaps.
1166 2017-02-14 Tom Tromey <tom@tromey.com>
1169 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
1171 * python/py-evts.c (gdbpy_initialize_py_events): Add
1172 before_prompt registry.
1173 * python/py-events.h (events_object) <before_prompt>: New field.
1175 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
1177 * btrace.c (ftrace_new_switch): Preserve up link and flags.
1179 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
1181 * symfile (_initialize_symfile): Add usage text to the load command's
1184 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
1186 * utils.c (defaulted_query): Don't query on secondary UIs.
1188 2017-02-10 Tom Tromey <tom@tromey.com>
1190 * rust-lang.c (rust_get_disr_info): Remove unused variable.
1192 2017-02-10 Tom Tromey <tom@tromey.com>
1194 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
1196 * python/py-type.c (typy_legacy_template_argument): Remove
1197 unnecessary "cleanup" local.
1199 2017-02-10 Tom Tromey <tom@tromey.com>
1201 * python/python.c (do_start_initialization): New function, from
1203 (_initialize_python): Call do_start_initialization.
1204 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
1207 2017-02-10 Tom Tromey <tom@tromey.com>
1209 * python/py-prettyprint.c (pretty_print_one_value): Use
1212 2017-02-10 Tom Tromey <tom@tromey.com>
1214 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
1215 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
1217 * python/py-type.c (field_new): Use gdbpy_ref.
1218 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
1220 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
1221 (py_free_pspace): Likewise.
1222 (pspace_to_pspace_object): Likewise.
1223 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
1224 (py_free_objfile): Likewise.
1225 (objfile_to_objfile_object): Likewise.
1226 * python/py-inferior.c (delete_thread_object): Use
1228 (infpy_read_memory): Likewise.
1229 (py_free_inferior): Likewise.
1230 * python/py-evtregistry.c (create_eventregistry_object): Use
1232 * python/py-event.c (create_event_object): Use gdbpy_ref.
1234 2017-02-10 Tom Tromey <tom@tromey.com>
1236 * python/py-ref.h (gdbpy_ref_policy): Now a template.
1237 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
1239 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
1240 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
1241 python/py-exitedevent.c, python/py-finishbreakpoint.c,
1242 python/py-framefilter.c, python/py-function.c,
1243 python/py-inferior.c, python/py-infevents.c,
1244 python/py-linetable.c, python/py-newobjfileevent.c,
1245 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
1246 python/py-signalevent.c, python/py-stopevent.c,
1247 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
1248 python/py-unwind.c, python/py-utils.c, python/py-value.c,
1249 python/py-varobj.c, python/py-xmethods.c, python/python.c,
1250 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
1252 2017-02-10 Tom Tromey <tom@tromey.com>
1254 * ui-out.h (ui_out_emit_type): New class.
1255 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
1256 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
1257 and ui_out_emit_tuple.
1258 (enumerate_locals): Likewise.
1259 (py_mi_print_variables, py_print_locals, py_print_args): Use
1261 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
1263 * common/gdb_optional.h: New file.
1265 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1267 * MAINTAINERS (Write After Approval): Update my e-mail address.
1269 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
1272 * breakpoint.c (_initialize_breakpoint): Update the help description
1273 of the 'commands' command to indicate that it takes a list argument.
1275 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
1277 * interps.c (current_interp_set_logging): Remove "return".
1279 2017-02-09 Gary Benson <gbenson@redhat.com>
1281 * symtab.c (add_symtab_completions): Prevent NULL pointer
1284 2017-02-08 Pedro Alves <palves@redhat.com>
1286 * interps.c (interp::interp): Remove reference to quiet_p.
1287 (interp_set): Make static. Remove dead "Switching to" output
1289 (interp_quiet_p, interp_set_quiet): Delete.
1290 (interpreter_exec_cmd): Don't set the interpreter quiet.
1291 * interps.h (interp_quiet_p): Make static.
1292 (class interp) <quiet_p>: Remove field
1294 2017-02-08 Jerome Guitton <guitton@adacore.com>
1296 * cli/cli-decode.c (find_command_name_length): Make it extern.
1297 * cli/cli-decode.h (find_command_name_length): Declare.
1298 * cli/cli-script.c (command_name_equals, line_first_arg):
1300 (process_next_line): Use cli-decode to parse command names.
1301 (build_command_line): Make args a constant pointer.
1303 2017-02-08 Jerome Guitton <guitton@adacore.com>
1305 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
1306 Remove case-insensitive search.
1308 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1310 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
1311 at the end of the line. Avoids an ARI warning.
1313 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
1315 * NEWS: Mention support for record/replay of Intel 64 rdrand and
1316 rdseed instructions.
1317 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
1319 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
1322 Provide and use sparc32 and sparc64 target description XML files.
1323 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
1324 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
1325 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
1326 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
1327 * features/sparc/sparc32-solaris.xml: New file.
1328 * features/sparc/sparc64-solaris.xml: New file.
1329 * features/sparc/sparc32-solaris.c: Generated.
1330 * features/sparc/sparc64-solaris.c: Generated.
1331 * sparc-tdep.h: Account for differences in target descriptions.
1332 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
1333 (sparc32_register_type): Use target provided registers.
1334 (validate_tdesc_registers): New function.
1335 (sparc32_gdbarch_init): Use tdesc_has_registers.
1336 Set pseudoregister functions.
1337 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
1338 (sparc64_register_type): Use target provided registers.
1339 (sparc64_init_abi): Set pseudoregister functions.
1341 2017-02-03 Tom Tromey <tom@tromey.com>
1344 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
1345 with a single member.
1347 2017-02-03 Pedro Alves <palves@redhat.com>
1349 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
1350 (cli_interp_base::~cli_interp_base): New.
1351 (cli_interp): New struct.
1352 (as_cli_interp): Cast the interp itself to cli_interp.
1353 (cli_interpreter_pre_command_loop): Rename to ...
1354 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
1356 (cli_interpreter_init): Rename to ...
1357 (cli_interp::init): ... this. Remove 'self' parameter. Use
1358 boolean. Make extern.
1359 (cli_interpreter_resume): Rename to ...
1360 (cli_interp::resume): ... this. Remove 'data' parameter. Make
1362 (cli_interpreter_suspend): Rename to ...
1363 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
1365 (cli_interpreter_exec): Rename to ...
1366 (cli_interp::exec): ... this. Remove 'data' parameter. Make
1368 (cli_interpreter_supports_command_editing): Rename to ...
1369 (cli_interp_base::supports_command_editing): ... this. Remove
1370 'interp' parameter. Make extern.
1371 (cli_ui_out): Rename to ...
1372 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
1374 (cli_set_logging): Rename to ...
1375 (cli_interp_base::set_logging): ... this. Remove 'interp'
1376 parameter. Make extern.
1377 (cli_interp_procs): Delete.
1378 (cli_interp_factory): Adjust to use "new".
1379 * cli/cli-interp.h: Include "interps.h".
1380 (struct cli_interp_base): New struct.
1381 * interps.c (struct interp): Delete. Fields moved to interps.h.
1382 (interp_new): Delete.
1383 (interp::interp, interp::~interp): New.
1384 (interp_set): Use bool, and return void. Assume the interpreter
1385 has suspend, init and resume methods, and that the all return
1387 (set_top_level_interpreter): interp_set returns void.
1388 (interp_ui_out): Adapt.
1389 (current_interp_set_logging): Adapt.
1390 (interp_data): Delete.
1391 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
1392 (interp_exec): Adapt.
1393 (top_level_interpreter_data): Delete.
1394 * interps.h (interp_init_ftype, interp_resume_ftype)
1395 (interp_suspend_ftype, interp_exec_ftype)
1396 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
1397 (class interp): New.
1398 (interp_new): Delete.
1399 (interp_set): Now returns void. Use bool.
1400 (interp_data, top_level_interpreter_data): Delete.
1401 * mi/mi-common.h: Include interps.h.
1402 (class mi_interp): Inherit from interp. Define a ctor. Declare
1403 init, resume, suspect, exec, interp_ui_out, set_logging and
1404 pre_command_loop methods.
1405 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
1406 (mi_interpreter_init): Rename to ...
1407 (mi_interp::init): ... this. Remove the 'interp' parameter, use
1408 bool, return void and make extern. Adjust.
1409 (mi_interpreter_resume): ... Rename to ...
1410 (mi_interp::resume): ... this. Remove the 'data' parameter,
1411 return void and make extern. Adjust.
1412 (mi_interpreter_suspend): ... Rename to ...
1413 (mi_interp::suspend): ... this. Remove the 'data' parameter,
1414 return void and make extern. Adjust.
1415 (mi_interpreter_exec): ... Rename to ...
1416 (mi_interp::exec): ... this. Remove the 'data' parameter and make
1418 (mi_interpreter_pre_command_loop): ... Rename to ...
1419 (mi_interp::pre_command_loop): ... this. Remove the 'self'
1420 parameter and make extern.
1421 (mi_on_normal_stop_1): Adjust.
1422 (mi_ui_out): Rename to ...
1423 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
1424 parameter and make extern. Adjust.
1425 (mi_set_logging): Rename to ...
1426 (mi_interp::set_logging): ... this. Remove the 'interp'
1427 parameter and make extern. Adjust.
1428 (mi_interp_procs): Delete.
1429 (mi_interp_factory): Adjust to use 'new'.
1430 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
1431 (mi_print_exception, mi_execute_command, mi_load_progress):
1433 * tui/tui-interp.c (tui_interp): New class.
1434 (as_tui_interp): Return a tui_interp pointer.
1435 (tui_on_normal_stop, tui_on_signal_received)
1436 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1437 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
1438 to use interp::interp_ui_out.
1439 (tui_init): Rename to ...
1440 (tui_interp::init): ... this. Remove the 'self' parameter, use
1441 bool, return void and make extern. Adjust.
1442 (tui_resume): Rename to ...
1443 (tui_interp::resume): ... this. Remove the 'data' parameter,
1444 return void and make extern. Adjust.
1445 (tui_suspend): Rename to ...
1446 (tui_interp::suspend): ... this. Remove the 'data' parameter,
1447 return void and make extern. Adjust.
1448 (tui_ui_out): Rename to ...
1449 (tui_interp::interp_ui_out): ... this. Remove the 'self'
1450 parameter, and make extern. Adjust.
1451 (tui_exec): Rename to ...
1452 (tui_interp::exec): ... this. Remove the 'data' parameter and
1454 (tui_interp_procs): Delete.
1455 (tui_interp_factory): Use "new".
1457 2017-02-02 Tom Tromey <tom@tromey.com>
1459 * rust-exp.y (ends_raw_string, space_then_number)
1460 (rust_identifier_start_p): Return bool.
1461 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
1462 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
1463 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
1464 (rust_chartype_p): Return bool.
1465 (val_print_struct, rust_print_struct_def, rust_print_type):
1467 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
1470 2017-02-02 Tom Tromey <tom@tromey.com>
1472 * rust-lang.c: Reindent.
1474 2017-02-02 Tom Tromey <tom@tromey.com>
1476 * rust-lang.h (rust_crate_for_block): Update.
1477 * rust-lang.c (rust_crate_for_block): Return std::string.
1478 (rust_get_disr_info): Use std:;string, not
1479 gdb::unique_xmalloc_ptr.
1480 * rust-exp.y (crate_name): Update.
1482 2017-02-02 Pedro Alves <palves@redhat.com>
1484 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
1485 field out of gdb_disassembler_test and make it static.
1487 2017-02-02 Pedro Alves <palves@redhat.com>
1489 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
1490 mi1_interp and mi_interp fields.
1492 2017-02-02 Pedro Alves <palves@redhat.com>
1494 * cli/cli-interp.c (struct saved_output_files, saved_output):
1495 Moved from cli/cli-logging.c.
1496 (cli_set_logging): New function.
1497 (cli_interp_procs): Install cli_set_logging.
1498 * cli/cli-interp.h (make_logging_output, cli_set_logging):
1500 * cli/cli-logging.c (struct saved_output_files, saved_output):
1501 Moved to cli/cli-interp.c.
1502 (pop_output_files): Don't save outputs here.
1503 (make_logging_output): New function.
1504 (handle_redirections): Don't build tee nor save previous outputs
1506 * interps.c (current_interp_set_logging): Change prototype.
1507 Assume there's always a set_logging_proc method installed.
1508 * interps.h (interp_set_logging_ftype): Change prototype.
1509 (current_interp_set_logging): Change prototype and adjust comment.
1510 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
1511 use make_logging_output.
1512 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
1513 2017-02-02 Pedro Alves <palves@redhat.com>
1515 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
1517 (set_logging_overwrite): ... here.
1518 (logging_no_redirect_file): Delete.
1519 (set_logging_redirect): Don't handle redirection on the fly.
1520 Instead warn that "logging off" / "logging on" is necessary.
1521 (pop_output_files): Delete references to logging_no_redirect_file.
1522 (show_logging_command): Always speak in terms of what will happen
1523 once logging is reenabled.
1525 2017-02-02 Pedro Alves <palves@redhat.com>
1527 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
1529 2017-02-02 Pedro Alves <palves@redhat.com>
1531 * disasm.c (gdb_pretty_print_insn): Rename to ...
1532 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
1533 Remove gdbarch parameter. Adapt to clear the object's buffers
1534 instead of allocating new buffers, and to print using the object's
1535 gdb_disassembler instead of calling gdb_print_insn.
1536 (dump_insns): Use gdb_pretty_print_disassembler.
1537 * disasm.h (gdb_pretty_print_insn): Delete declaration.
1538 (gdb_pretty_print_disassembler): New class.
1539 * record-btrace.c (btrace_insn_history): Use
1540 gdb_pretty_print_disassembler.
1542 2017-02-02 Pedro Alves <palves@redhat.com>
1544 * ada-lang.c (type_as_string): Use string_file.
1545 * ada-valprint.c (ada_print_floating): Use string_file.
1546 * ada-varobj.c (ada_varobj_scalar_image)
1547 (ada_varobj_get_value_image): Use string_file.
1548 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
1549 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
1550 * breakpoint.c (update_inserted_breakpoint_locations)
1551 (insert_breakpoint_locations, reattach_breakpoints)
1552 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
1553 (print_it_watchpoint): Use string_file.
1554 (save_breakpoints): Use stdio_file.
1555 * c-exp.y (oper): Use string_file.
1556 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
1558 (pop_output_files): Use delete.
1559 (handle_redirections): Use stdio_file and tee_file.
1560 * cli/cli-setshow.c (do_show_command): Use string_file.
1561 * compile/compile-c-support.c (c_compute_program): Use
1563 * compile/compile-c-symbols.c (generate_vla_size): Take a
1564 'string_file &' instead of a 'ui_file *'.
1565 (generate_c_for_for_one_variable): Take a 'string_file &' instead
1566 of a 'ui_file *'. Use string_file.
1567 (generate_c_for_variable_locations): Take a 'string_file &'
1568 instead of a 'ui_file *'.
1569 * compile/compile-internal.h (generate_c_for_for_one_variable):
1570 Take a 'string_file &' instead of a 'ui_file *'.
1571 * compile/compile-loc2c.c (push, pushf, unary, binary)
1572 (print_label, pushf_register_address, pushf_register)
1573 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
1574 'ui_file *'. Adjust.
1575 * compile/compile.c (compile_to_object): Use string_file.
1576 * compile/compile.h (compile_dwarf_expr_to_c)
1577 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
1579 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
1580 (replace_typedefs_qualified_name): Use string_file and
1582 * disasm.c (gdb_pretty_print_insn): Use string_file.
1583 (gdb_disassembly): Adjust reference the null_stream global.
1584 (do_ui_file_delete): Delete.
1585 (gdb_insn_length): Use null_stream.
1586 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
1587 * dwarf2loc.c (dwarf2_compile_property_to_c)
1588 (locexpr_generate_c_location, loclist_generate_c_location): Take a
1589 'string_file &' instead of a 'ui_file *'.
1590 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
1591 * dwarf2read.c (do_ui_file_peek_last): Delete.
1592 (dwarf2_compute_name): Use string_file.
1593 * event-top.c (gdb_setup_readline): Use stdio_file.
1594 * gdbarch.sh (verify_gdbarch): Use string_file.
1595 * gdbtypes.c (safe_parse_type): Use null_stream.
1596 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
1598 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
1599 'string_file *' instead of a 'ui_file *'.
1600 (gdbscm_arch_disassemble): Use string_file.
1601 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
1602 * guile/scm-ports.c (class ioscm_file_port): Now a class that
1603 inherits from ui_file.
1604 (ioscm_file_port_delete, ioscm_file_port_rewind)
1605 (ioscm_file_port_put): Delete.
1606 (ioscm_file_port_write): Rename to ...
1607 (ioscm_file_port::write): ... this. Remove file_port_magic
1609 (ioscm_file_port_new): Delete.
1610 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
1612 * guile/scm-type.c (tyscm_type_name): Use string_file.
1613 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
1615 * infcmd.c (print_return_value_1): Use string_file.
1616 * infrun.c (print_target_wait_results): Use string_file.
1617 * language.c (add_language): Use string_file.
1618 * location.c (explicit_to_string_internal): Use string_file.
1619 * main.c (captured_main_1): Use null_file.
1620 * maint.c (maintenance_print_architecture): Use stdio_file.
1621 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
1622 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
1623 event_channel>: Change type to mi_console_file pointer.
1624 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
1625 (mi_console_file_delete): Delete.
1626 (struct mi_console_file): Delete.
1627 (mi_console_file_magic): Delete.
1628 (mi_console_file_new): Delete.
1629 (mi_console_file::mi_console_file): New.
1630 (mi_console_file_delete): Delete.
1631 (mi_console_file_fputs): Delete.
1632 (mi_console_file::write): New.
1633 (mi_console_raw_packet): Delete.
1634 (mi_console_file::flush): New.
1635 (mi_console_file_flush): Delete.
1636 (mi_console_set_raw): Rename to ...
1637 (mi_console_file::set_raw): ... this.
1638 * mi/mi-console.h (class mi_console_file): New class.
1639 (mi_console_file_new, mi_console_set_raw): Delete.
1640 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
1641 (mi_set_logging): Use delete and tee_file. Adjust.
1642 * mi/mi-main.c (output_register): Use string_file.
1643 (mi_cmd_data_evaluate_expression): Use string_file.
1644 (mi_cmd_data_read_memory): Use string_file.
1645 (mi_cmd_execute, print_variable_or_computed): Use string_file.
1646 * mi/mi-out.c (mi_ui_out::main_stream): New.
1647 (mi_ui_out::rewind): Use main_stream and
1649 (mi_ui_out::put): Use main_stream and string_file.
1650 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1651 Allocate a 'string_file' instead.
1652 (mi_out_new): Don't allocate a mem_fileopen stream here.
1653 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1654 (mi_ui_out::main_stream): Declare method.
1655 * printcmd.c (eval_command): Use string_file.
1656 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
1657 * python/py-arch.c (archpy_disassemble): Use string_file.
1658 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
1659 * python/py-frame.c (frapy_str): Use string_file.
1660 * python/py-framefilter.c (py_print_type, py_print_single_arg):
1662 * python/py-type.c (typy_str): Use string_file.
1663 * python/py-unwind.c (unwind_infopy_str): Use string_file.
1664 * python/py-value.c (valpy_str): Use string_file.
1665 * record-btrace.c (btrace_insn_history): Use string_file.
1666 * regcache.c (regcache_print): Use stdio_file.
1667 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
1668 * remote.c (escape_buffer): Use string_file.
1669 * rust-lang.c (rust_get_disr_info): Use string_file.
1670 * serial.c (serial_open_ops_1): Use stdio_file.
1671 (do_serial_close): Use delete.
1672 * stack.c (print_frame_arg): Use string_file.
1673 (print_frame_args): Remove local mem_fileopen stream, not used.
1674 (print_frame): Use string_file.
1675 * symmisc.c (maintenance_print_symbols): Use stdio_file.
1676 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1677 Take a 'string_file *' instead of a 'ui_file *'.
1678 * top.c (new_ui): Use stdio_file and stderr_file.
1679 (free_ui): Use delete.
1680 (execute_command_to_string): Use string_file.
1681 (quit_confirm): Use string_file.
1682 * tracepoint.c (collection_list::append_exp): Use string_file.
1683 * tui/tui-disasm.c (tui_disassemble): Use string_file.
1684 * tui/tui-file.c: Don't include "ui-file.h".
1685 (enum streamtype, struct tui_stream): Delete.
1686 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
1687 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
1688 (tui_file::tui_file): New method.
1689 (tui_file_fputs): Delete.
1690 (tui_file_get_strbuf): Delete.
1691 (tui_file::puts): New method.
1692 (tui_file_adjust_strbuf): Delete.
1693 (tui_file_flush): Delete.
1694 (tui_file::flush): New method.
1695 * tui/tui-file.h: Tweak intro comment.
1697 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
1698 (tui_file_adjust_strbuf): Delete declarations.
1699 (class tui_file): New class.
1700 * tui/tui-io.c (tui_initialize_io): Use tui_file.
1701 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
1702 (tui_register_format): Use string_stream.
1703 * tui/tui-stack.c (tui_make_status_line): Use string_file.
1704 (tui_get_function_from_frame): Use string_file.
1705 * typeprint.c (type_to_string): Use string_file.
1706 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
1707 (null_stream): New global.
1708 (ui_file_delete): Delete.
1709 (ui_file::ui_file): New.
1710 (null_file_isatty): Delete.
1711 (ui_file::~ui_file): New.
1712 (null_file_rewind): Delete.
1713 (ui_file::printf): New.
1714 (null_file_put): Delete.
1715 (null_file_flush): Delete.
1716 (ui_file::putstr): New.
1717 (null_file_write): Delete.
1718 (ui_file::putstrn): New.
1719 (null_file_read): Delete.
1720 (ui_file::putc): New.
1721 (null_file_fputs): Delete.
1722 (null_file_write_async_safe): Delete.
1723 (ui_file::vprintf): New.
1724 (null_file_delete): Delete.
1725 (null_file::write): New.
1726 (null_file_fseek): Delete.
1727 (null_file::puts): New.
1728 (ui_file_data): Delete.
1729 (null_file::write_async_safe): New.
1730 (gdb_flush, ui_file_isatty): Adjust.
1731 (ui_file_put, ui_file_rewind): Delete.
1732 (ui_file_write): Adjust.
1733 (ui_file_write_for_put): Delete.
1734 (ui_file_write_async_safe, ui_file_read): Adjust.
1735 (ui_file_fseek): Delete.
1736 (fputs_unfiltered): Adjust.
1737 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
1738 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
1739 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
1740 (set_ui_file_data): Delete.
1741 (string_file::~string_file, string_file::write)
1742 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
1743 (do_ui_file_as_string, ui_file_as_string): Delete.
1744 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
1745 (struct mem_file): Delete.
1746 (mem_file_new): Delete.
1747 (stdio_file::stdio_file): New.
1748 (mem_file_delete): Delete.
1749 (stdio_file::stdio_file): New.
1750 (mem_fileopen): Delete.
1751 (stdio_file::~stdio_file): New.
1752 (mem_file_rewind): Delete.
1753 (stdio_file::set_stream): New.
1754 (mem_file_put): Delete.
1755 (stdio_file::open): New.
1756 (mem_file_write): Delete.
1757 (stdio_file_magic, struct stdio_file): Delete.
1758 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
1759 (stdio_file::flush): New.
1760 (stdio_file_read): Rename to ...
1761 (stdio_file::read): ... this. Adjust.
1762 (stdio_file_write): Rename to ...
1763 (stdio_file::write): ... this. Adjust.
1764 (stdio_file_write_async_safe): Rename to ...
1765 (stdio_file::write_async_safe) ... this. Adjust.
1766 (stdio_file_fputs): Rename to ...
1767 (stdio_file::puts) ... this. Adjust.
1768 (stdio_file_isatty): Delete.
1769 (stdio_file_fseek): Delete.
1770 (stdio_file::isatty): New.
1771 (stderr_file_write): Rename to ...
1772 (stderr_file::write) ... this. Adjust.
1773 (stderr_file_fputs): Rename to ...
1774 (stderr_file::puts) ... this. Adjust.
1775 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
1776 (stderr_file::stderr_file): New.
1777 (tee_file_magic): Delete.
1778 (struct tee_file): Delete.
1779 (tee_file::tee_file): New.
1780 (tee_file_new): Delete.
1781 (tee_file::~tee_file): New.
1782 (tee_file_delete): Delete.
1783 (tee_file_flush): Rename to ...
1784 (tee_file::flush): ... this. Adjust.
1785 (tee_file_write): Rename to ...
1786 (tee_file::write): ... this. Adjust.
1787 (tee_file::write_async_safe): New.
1788 (tee_file_fputs): Rename to ...
1789 (tee_file::puts): ... this. Adjust.
1790 (tee_file_isatty): Rename to ...
1791 (tee_file::isatty): ... this. Adjust.
1792 * ui-file.h (struct obstack, struct ui_file): Don't
1794 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
1795 (ui_file_write_ftype)
1796 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
1797 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
1798 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
1799 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
1800 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
1801 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
1802 (set_ui_file_fseek): Delete.
1803 (ui_file_data, ui_file_delete, ui_file_rewind)
1804 (struct ui_file): New.
1806 (class null_file): New.
1807 (null_stream): Declare.
1808 (ui_file_write_for_put, ui_file_put): Delete.
1809 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
1811 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
1812 (gdb_fopen, tee_file_new): Delete.
1813 (struct string_file): New.
1814 (struct stdio_file): New.
1815 (stdio_file_up): New.
1816 (struct stderr_file): New.
1817 (class tee_file): New.
1818 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
1819 of a 'ui_file *'. Adjust.
1820 * ui-out.h (class ui_out) <field_stream>: Likewise.
1821 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
1822 (null_stream): Delete.
1823 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
1825 * utils.h (struct ui_file): Delete forward declaration..
1826 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
1827 (error_stream): Take a 'string_file &' instead of a
1829 * varobj.c (varobj_value_get_print_value): Use string_file.
1830 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
1831 * gdbarch.c: Regenerate.
1833 2017-02-02 Pedro Alves <palves@redhat.com>
1835 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
1836 (gdb_pretty_print_insn): ... this. Now a free function. Add back
1837 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
1838 Adjust to call gdb_print_insn instead of
1839 gdb_disassembler::print_insn.
1840 (dump_insns, do_mixed_source_and_assembly_deprecated)
1841 (do_mixed_source_and_assembly, do_assembly_only): Add back a
1842 'gdbarch' parameter. Remove gdb_disassembler parameter.
1843 (gdb_disassembly): Don't allocate a gdb_disassembler here.
1844 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
1846 (gdb_pretty_print_insn): Re-add declaration.
1847 * record-btrace.c (btrace_insn_history): Don't allocate a
1848 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
1850 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
1852 * disasm.h (gdb_disassembly): Remove file_string parameter.
1853 * disasm.c (gdb_disassembly): Likewise.
1854 * cli/cli-cmds.c (print_disassembly): Adapt.
1855 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1856 * stack.c (do_gdb_disassembly): Likewise.
1858 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
1860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
1861 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
1862 targets. And if the implicit value is longer than needed, extract
1863 the first bytes instead of the "least significant" ones.
1865 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1867 * btrace.c (btrace_enable): Do not call btrace_add_pc for
1868 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
1869 (btrace_fetch): Assert can_access_registers_ptid.
1870 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
1871 validate_registers_access.
1873 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1875 * gdbthread.h (can_access_registers_ptid): New.
1876 * thread.c (can_access_registers_ptid): New.
1878 2017-02-01 Pedro Alves <palves@redhat.com>
1880 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
1882 2017-01-31 Pedro Alves <palves@redhat.com>
1884 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
1887 2017-01-31 Pedro Alves <palves@redhat.com>
1889 * stack.c (print_frame_args): Remove local mem_fileopen stream,
1892 2017-01-31 Pedro Alves <palves@redhat.com>
1894 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
1896 2017-01-31 Pedro Alves <palves@redhat.com>
1898 * common/scoped_restore.h
1899 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
1900 change the value's parameter type to T2.
1901 (make_scoped_restore): Likewise.
1903 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1904 Richard Henderson <rth@redhat.com>
1906 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
1907 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
1908 GS_BASE for older kernels.
1909 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
1910 GS_BASE for older kernels.
1911 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
1912 and GS_BASE to the offset table.
1913 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
1914 system register group.
1915 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
1917 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
1919 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
1920 AMD64_GSBASE_REGNUM.
1921 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
1922 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
1923 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
1924 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
1925 i386/64bit-segments.xml in those rules.
1926 * features/i386/64bit-segments.xml: New file.
1927 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
1928 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
1929 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
1930 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
1931 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
1932 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
1933 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
1934 * features/i386/amd64-avx-linux.c: Regenerated.
1935 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
1936 * features/i386/amd64-avx-mpx.c: Regenerated.
1937 * features/i386/amd64-avx512-linux.c: Regenerated.
1938 * features/i386/amd64-linux.c: Regenerated.
1939 * features/i386/amd64-mpx-linux.c: Regenerated.
1940 * features/i386/i386-avx-mpx-linux.c: Regenerated.
1941 * features/i386/i386-avx-mpx.c: Regenerated.
1942 * features/i386/x32-avx-linux.c: Regenerated.
1943 * features/i386/x32-avx512-linux.c: Regenerated.
1944 * regformats/i386/amd64-avx-linux.dat: Regenerated.
1945 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
1946 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
1947 * regformats/i386/amd64-linux.dat: Regenerated.
1948 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
1949 * regformats/i386/x32-avx-linux.dat: Regenerated.
1950 * regformats/i386/x32-avx512-linux.dat: Regenerated.
1951 * regformats/i386/x32-linux.dat: Regenerated.
1953 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1955 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
1956 Set to AMD64_NUM_REGS.
1958 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1960 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
1961 that checks validity of a register number.
1963 2017-01-27 Kees Cook <keescook@google.com>
1965 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
1966 fetch_fpregs if target has fpa registers.
1967 (arm_linux_store_inferior_registers): Call store_fpregs if target
1970 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
1972 * cris-tdep.c (cris_gdbarch_init): Remove check for
1973 info.byte_order and force it to BFD_ENDIAN_LITTLE.
1975 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
1977 * corelow.c (get_core_register_section): Check for regset
1978 existence before checking for REGSET_VARIABLE_SIZE.
1980 2017-01-26 Yao Qi <yao.qi@linaro.org>
1981 Pedro Alves <palves@redhat.com>
1984 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
1985 call memory_error, save memaddr instead.
1986 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
1987 negative, cal memory_error.
1988 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
1990 2017-01-26 Yao Qi <yao.qi@linaro.org>
1992 * disasm-selftests.c (memory_error_test): New function.
1993 (_initialize_disasm_selftests): Register memory_error_test.
1995 2017-01-26 Yao Qi <yao.qi@linaro.org>
1997 * Makefile.in (SFILES): Add disasm-selftests.c and
1999 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
2000 * disasm-selftests.c: New file.
2001 * selftest-arch.c: New file.
2002 * selftest-arch.h: New file.
2004 2017-01-26 Yao Qi <yao.qi@linaro.org>
2006 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
2007 to bfd_arch_mep. Don't return 0 if section is not
2008 found. Call print_insn_mep.
2010 2017-01-26 Pedro Alves <palves@redhat.com>
2011 Yao Qi <yao.qi@linaro.org>
2013 * arm-tdep.c: Include "disasm.h".
2014 (gdb_print_insn_arm): Update code to get gdbarch.
2015 * disasm.c (dis_asm_read_memory): Change it to
2016 gdb_disassembler::dis_asm_read_memory.
2017 (dis_asm_memory_error): Likewise.
2018 (dis_asm_print_address): Likewise.
2019 (gdb_pretty_print_insn): Change it to
2020 gdb_disassembler::pretty_print_insn.
2021 (dump_insns): Add one argument gdb_disassemlber. All
2023 (do_mixed_source_and_assembly_deprecated): Likewise.
2024 (do_mixed_source_and_assembly): Likewise.
2025 (do_assembly_only): Likewise.
2026 (gdb_disassembler::gdb_disassembler): New.
2027 (gdb_disassembler::print_insn): New.
2028 * disasm.h (class gdb_disassembler): New.
2029 (gdb_pretty_print_insn): Remove declaration.
2030 (gdb_disassemble_info): Likewise.
2031 * guile/scm-disasm.c (class gdbscm_disassembler): New.
2032 (gdbscm_disasm_read_memory_worker): Update.
2033 (gdbscm_disasm_read_memory): Update.
2034 (gdbscm_disasm_memory_error): Remove.
2035 (gdbscm_disasm_print_address): Remove.
2036 (gdbscm_disassembler::gdbscm_disassembler): New.
2037 (gdbscm_print_insn_from_port): Update.
2038 * mips-tdep.c: Include disasm.h.
2039 (gdb_print_insn_mips): Update code to get gdbarch.
2040 * record-btrace.c (btrace_insn_history): Update.
2041 * spu-tdep.c: Include disasm.h.
2042 (struct spu_dis_asm_data): Remove.
2043 (struct spu_dis_asm_info): New.
2044 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
2046 (gdb_print_insn_spu): Cast disassemble_info to
2049 2017-01-26 Yao Qi <yao.qi@linaro.org>
2051 * disasm.c (do_ui_file_delete): Delete.
2052 (gdb_insn_length): Move code creating stream to ...
2053 * utils.c (null_stream): ... here. New function.
2054 * utils.h (null_stream): Declare.
2056 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2058 * python/py-inferior.c (find_thread_object): Return directly
2059 from the loop. Remove "found" variable.
2061 2017-01-21 Joel Brobecker <brobecker@adacore.com>
2063 GDB 7.12.1 released.
2065 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
2067 * python/py-function.c (fnpy_call): Reorder declarations to have
2068 the gdbpy_enter object declared first.
2069 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
2071 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
2074 * python/python-internal.h (PyMem_RawMalloc): Define for
2076 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
2077 PyMem_RawMalloc instead of PyMem_Malloc.
2079 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
2080 Luis Machado <lgustavo@codesourcery.com>
2082 * NEWS (New commands): Mention flash-erase.
2083 (New MI commands): Mention target-flash-erase.
2084 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
2086 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
2087 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
2088 * target.c (flash_erase_command): New function.
2089 (initialize_targets): Add new flash-erase command.
2090 * target.h (flash_erase_command): New declaration.
2092 2017-01-20 Joel Brobecker <brobecker@adacore.com>
2094 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
2095 HAVE_SYS_PROCFS_H is defined.
2097 2017-01-18 Alan Hayward <alan.hayward@arm.com>
2099 * remote.c (struct cached_reg): Change data into a pointer.
2100 * (stop_reply_dtr): Free data pointers before deleting vector.
2101 (process_stop_reply): Likewise.
2102 (remote_parse_stop_reply): Allocate space for data
2104 2017-01-18 Alan Hayward <alan.hayward@arm.com>
2106 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
2108 (amd64_pseudo_register_read_value): Likewise.
2109 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
2110 (store_register_using_P): Likewise.
2111 * regcache.c (regcache_xfer_part): Likewise.
2113 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
2115 Split real and pseudo registers.
2116 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
2117 (sparc32_pseudo_regnum): New enum.
2118 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
2119 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
2120 (SPARC32_CP0_REGISTERS): New macro.
2121 (sparc32_pseudo_register_name): New function.
2122 (sparc32_register_name): Use sparc32_pseudo_register_name.
2123 (sparc32_pseudo_register_type): New function.
2124 (sparc32_register_type): Use sparc32_pseudo_register_type.
2125 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
2126 pseudo register numbers.
2127 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
2128 (SPARC64_CP0_REGISTERS): New macro.
2129 (sparc64_pseudo_register_name): New function.
2130 (sparc64_register_name): Use sparc64_pseudo_register_name.
2131 (sparc64_pseudo_register_type): New function.
2132 (sparc64_register_type): Use sparc64_pseudo_register_type.
2133 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
2134 pseudo register numbers.
2135 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
2136 sparc64_store_arguments): Handle pseudo register numbers.
2138 2017-01-13 Yao Qi <yao.qi@linaro.org>
2140 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
2141 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
2143 (getpkt_or_notif_sane_1): Likewise.
2145 2017-01-13 Yao Qi <yao.qi@linaro.org>
2147 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
2148 of CC. Pass "-x c++-header" instead of "-x c".
2150 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2152 * remote.c (remote_can_async_p): Update comment.
2154 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2156 * linux-nat.c (linux_nat_can_async_p): Update comment.
2158 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
2160 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
2162 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
2164 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
2166 2017-01-10 Tom Tromey <tom@tromey.com>
2168 * python/py-type.c (typy_legacy_template_argument): Update.
2169 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
2170 ~demangle_parse_info): Declare new members.
2171 (cp_demangled_name_to_comp): Return unique_ptr.
2172 (cp_demangled_name_parse_free)
2173 (make_cleanup_cp_demangled_name_parse_free)
2174 (cp_new_demangle_parse_info): Remove.
2175 * cp-support.c (do_demangled_name_parse_free_cleanup)
2176 (make_cleanup_cp_demangled_name_parse_free): Remove.
2177 (inspect_type, cp_canonicalize_string_full)
2178 (cp_canonicalize_string): Update.
2179 (mangled_name_to_comp): Change return type.
2180 (cp_class_name_from_physname, method_name_from_physname)
2181 (cp_func_name, cp_remove_params): Update.
2182 * cp-name-parser.y (demangle_parse_info): New constructor, from
2183 cp_new_demangle_parse_info.
2184 (~demangle_parse_info): New destructor, from
2185 cp_demangled_name_parse_free.
2186 (cp_merge_demangle_parse_infos): Update.
2187 (cp_demangled_name_to_comp): Change return type.
2189 2017-01-10 Tom Tromey <tom@tromey.com>
2191 * top.c (prevent_dont_repeat): Change return type.
2192 * python/python.c (execute_gdb_command): Use std::string.
2194 * guile/guile.c (gdbscm_execute_gdb_command): Update.
2195 * command.h (prevent_dont_repeat): Change return type.
2196 * breakpoint.c (bpstat_do_actions_1): Update.
2198 2017-01-10 Tom Tromey <tom@tromey.com>
2200 * value.h (scoped_value_mark::~scoped_value_mark): Call
2202 (scoped_value_mark::free_to_mark): New method.
2203 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2206 2017-01-10 Tom Tromey <tom@tromey.com>
2208 * python/py-value.c (valpy_dereference, valpy_referenced_value)
2209 (valpy_reference_value, valpy_const_value, valpy_get_address)
2210 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2211 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
2212 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
2213 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2215 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
2216 * value.h (scoped_value_mark): New class.
2218 2017-01-10 Tom Tromey <tom@tromey.com>
2220 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
2221 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
2222 * psymtab.c (discard_psymtabs_upto): Remove.
2223 (make_cleanup_discard_psymtabs): Remove.
2224 (struct psymtab_state): Remove.
2226 2017-01-10 Tom Tromey <tom@tromey.com>
2228 * record-full.c (record_full_save_cleanups): Remove.
2229 (record_full_save): Use gdb::unlinker.
2230 * gcore.c (do_bfd_delete_cleanup): Remove.
2231 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
2233 * dwarf2read.c (unlink_if_set): Remove.
2234 (write_psymtabs_to_index): Use gdb::unlinker.
2235 * common/gdb_unlinker.h: New file.
2237 2017-01-10 Tom Tromey <tom@tromey.com>
2239 * windows-tdep.c (windows_xfer_shared_library): Update.
2240 * windows-nat.c (windows_make_so): Update.
2241 * utils.h (make_cleanup_bfd_unref): Remove.
2242 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
2243 * symfile.h (symfile_bfd_open)
2244 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
2245 * symfile.c (read_symbols, symbol_file_add)
2246 (separate_debug_file_exists): Update.
2247 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
2248 (generic_load, reread_symbols): Update.
2249 * symfile-mem.c (symbol_file_add_from_memory): Update.
2250 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
2251 (spu_symbol_file_add_from_memory): Update.
2252 * solist.h (struct target_so_ops) <bfd_open>: Return
2254 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
2255 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
2257 (solib_map_sections, reload_shared_libraries_1): Update.
2258 * solib-svr4.c (enable_break): Update.
2259 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
2260 * solib-frv.c (enable_break2): Update.
2261 * solib-dsbt.c (enable_break): Update.
2262 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
2264 (darwin_solib_get_all_image_info_addr_at_init): Update.
2265 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
2266 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
2267 * record-full.c (record_full_save): Update.
2268 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
2269 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2270 * minidebug.c (find_separate_debug_file_in_section): Return
2272 * machoread.c (macho_add_oso_symfile): Change abfd to
2274 (macho_symfile_read_all_oso): Update.
2275 (macho_check_dsym): Return gdb_bfd_ref_ptr.
2276 (macho_symfile_read): Update.
2277 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
2278 (jit_bfd_try_read_symtab): Update.
2279 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2280 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2281 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2283 (gdb_bfd_ref_policy): New struct.
2284 (gdb_bfd_ref_ptr): New typedef.
2285 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
2286 (gdb_bfd_openw, gdb_bfd_openr_iovec)
2287 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
2289 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2290 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
2291 (gcore_command): Update.
2292 * exec.c (exec_file_attach): Update.
2293 * elfread.c (elf_symfile_read): Update.
2294 * dwarf2read.c (dwarf2_get_dwz_file): Update.
2295 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
2296 (open_and_init_dwo_file): Update.
2297 (open_dwp_file): Return gdb_bfd_ref_ptr.
2298 (open_and_init_dwp_file): Update.
2299 * corelow.c (core_open): Update.
2300 * compile/compile-object-load.c (compile_object_load): Update.
2301 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
2302 * coffread.c (coff_symfile_read): Update.
2303 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
2304 gdb_bfd_ref_ptr. Rename.
2305 (dump_bfd_file, restore_command): Update.
2306 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2307 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
2308 (find_separate_debug_file_by_buildid): Update.
2310 2017-01-10 Tom Tromey <tom@tromey.com>
2312 * common/gdb_ref_ptr.h: New file.
2313 * python/py-ref.h (struct gdbpy_ref_policy): New.
2314 (gdbpy_ref): Now a typedef.
2316 2017-01-10 Tom Tromey <tom@tromey.com>
2318 * utils.h (make_cleanup_htab_delete): Don't declare.
2319 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
2321 * linespec.c (decode_compound_collector): Add constructor,
2323 (lookup_prefix_sym): Remove cleanup.
2324 (symtab_collector): Add constructor, destructor.
2325 (collect_symtabs_from_filename): Remove cleanup.
2326 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
2327 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2329 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
2330 * dwarf2read.c (dw2_expand_symtabs_matching)
2331 (dw2_map_symbol_filenames, dwarf_decode_macros)
2332 (write_psymtabs_to_index): Use htab_up.
2333 * dwarf2loc.c (func_verify_no_selftailcall)
2334 (call_site_find_chain_1, func_verify_no_selftailcall)
2335 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
2336 std::vector, gdb::unique_xmalloc_ptr.
2337 (call_sitep): Remove typedef.
2338 (dwarf2_locexpr_baton_eval): Remove unused variable.
2340 2017-01-10 Tom Tromey <tom@tromey.com>
2342 * python/python-internal.h (make_cleanup_py_decref)
2343 (make_cleanup_py_xdecref): Don't declare.
2344 * python/py-utils.c (py_decref, make_cleanup_py_decref)
2345 (py_xdecref, make_cleanup_py_xdecref): Remove.
2347 2017-01-10 Tom Tromey <tom@tromey.com>
2349 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
2350 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
2352 2017-01-10 Tom Tromey <tom@tromey.com>
2354 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
2356 2017-01-10 Tom Tromey <tom@tromey.com>
2358 * python/py-utils.c (unicode_to_encoded_string)
2359 (python_string_to_target_string)
2360 (python_string_to_target_python_string)
2361 (python_string_to_host_string, gdbpy_obj_to_string)
2362 (get_addr_from_python): Use gdbpy_ref.
2364 2017-01-10 Tom Tromey <tom@tromey.com>
2366 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
2369 2017-01-10 Tom Tromey <tom@tromey.com>
2371 * python/python.c (eval_python_command, gdbpy_decode_line)
2372 (gdbpy_run_events, gdbpy_start_type_printers)
2373 (gdbpy_apply_type_printers): Use gdbpy_ref.
2375 2017-01-10 Tom Tromey <tom@tromey.com>
2377 * python/py-param.c (get_doc_string, compute_enum_values): Use
2380 2017-01-10 Tom Tromey <tom@tromey.com>
2382 * python/py-inferior.c (find_thread_object, build_inferior_list):
2385 2017-01-10 Tom Tromey <tom@tromey.com>
2387 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2389 2017-01-10 Tom Tromey <tom@tromey.com>
2391 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
2394 2017-01-10 Tom Tromey <tom@tromey.com>
2396 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
2398 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
2401 2017-01-10 Tom Tromey <tom@tromey.com>
2403 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2406 2017-01-10 Tom Tromey <tom@tromey.com>
2408 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
2409 decref results of PyArg_ParseTupleAndKeywords.
2411 2017-01-10 Tom Tromey <tom@tromey.com>
2413 * python/python.c (python_run_simple_file): Use
2414 unique_xmalloc_ptr, gdbpy_ref.
2416 2017-01-10 Tom Tromey <tom@tromey.com>
2418 * python/py-prettyprint.c (print_stack_unless_memory_error)
2419 (print_string_repr, print_children): Use gdbpy_ref.
2420 (dummy_python_frame): New class.
2421 (dummy_python_frame::dummy_python_frame): Rename from
2422 push_dummy_python_frame.
2423 (py_restore_tstate): Remove.
2425 2017-01-10 Tom Tromey <tom@tromey.com>
2427 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
2429 2017-01-10 Tom Tromey <tom@tromey.com>
2431 * python/python.c (ensure_python_env, restore_python_env):
2433 * python/python-internal.h (ensure_python_env): Don't declare.
2434 * varobj.h (varobj_ensure_python_env): Don't declare.
2435 * varobj.c (varobj_ensure_python_env): Remove.
2437 2017-01-10 Tom Tromey <tom@tromey.com>
2439 * varobj.c (varobj_value_get_print_value): Use
2442 2017-01-10 Tom Tromey <tom@tromey.com>
2444 * python/py-prettyprint.c (print_string_repr, print_children):
2446 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
2448 * varobj.c (varobj_value_get_print_value): Update.
2449 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
2451 2017-01-10 Tom Tromey <tom@tromey.com>
2453 * varobj.c (varobj_get_display_hint)
2454 (dynamic_varobj_has_child_method, install_new_value_visualizer)
2455 (varobj_set_visualizer, free_variable): Use
2458 2017-01-10 Tom Tromey <tom@tromey.com>
2460 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
2461 (do_finish_initialization): New function. Use gdbpy_ref.
2462 (gdbpy_finish_initialization): Use gdbpy_enter. Call
2463 do_finish_initialization.
2465 2017-01-10 Tom Tromey <tom@tromey.com>
2467 * python/py-param.c (get_set_value, get_show_value): Use
2468 gdbpy_enter, gdbpy_ref.
2470 2017-01-10 Tom Tromey <tom@tromey.com>
2472 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
2474 2017-01-10 Tom Tromey <tom@tromey.com>
2476 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
2478 2017-01-10 Tom Tromey <tom@tromey.com>
2480 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
2481 Use gdbpy_enter_varobj.
2483 2017-01-10 Tom Tromey <tom@tromey.com>
2485 * varobj.c (gdbpy_enter_varobj): New constructor.
2486 * python/python-internal.h (gdbpy_enter_varobj): New class.
2487 * python/py-varobj.c (py_varobj_get_iterator): Use
2490 2017-01-10 Tom Tromey <tom@tromey.com>
2492 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
2493 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2494 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
2495 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
2497 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
2499 2017-01-10 Tom Tromey <tom@tromey.com>
2501 * python/py-xmethods.c (invoke_match_method): Use
2504 2017-01-10 Tom Tromey <tom@tromey.com>
2506 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
2507 gdbpy_enter, gdbpy_ref.
2509 2017-01-10 Tom Tromey <tom@tromey.com>
2511 * python/python.c (python_interactive_command): Use gdbpy_enter.
2513 2017-01-10 Tom Tromey <tom@tromey.com>
2515 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
2518 2017-01-10 Tom Tromey <tom@tromey.com>
2520 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
2521 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
2523 2017-01-10 Tom Tromey <tom@tromey.com>
2525 * utils.h (htab_deleter): New struct.
2526 (htab_up): New typedef.
2527 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
2528 gdbpy_enter, gdbpy_ref, htab_up.
2530 2017-01-10 Tom Tromey <tom@tromey.com>
2532 * python/py-unwind.c (pending_frame_invalidate): Remove.
2533 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
2535 2017-01-10 Tom Tromey <tom@tromey.com>
2537 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
2538 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
2540 2017-01-10 Tom Tromey <tom@tromey.com>
2542 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
2544 2017-01-10 Tom Tromey <tom@tromey.com>
2546 * python/python.c (gdbpy_eval_from_control_command)
2547 (gdbpy_source_script, gdbpy_run_events)
2548 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
2549 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
2552 2017-01-10 Tom Tromey <tom@tromey.com>
2554 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
2556 2017-01-10 Tom Tromey <tom@tromey.com>
2558 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
2560 2017-01-10 Tom Tromey <tom@tromey.com>
2562 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2563 (python_on_inferior_call_pre, python_on_inferior_call_post)
2564 (python_on_memory_change, python_on_register_change)
2565 (python_inferior_exit, python_new_objfile, add_thread_object)
2566 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
2568 2017-01-10 Tom Tromey <tom@tromey.com>
2570 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
2571 (bpfinishpy_handle_exit): Use gdbpy_enter.
2573 2017-01-10 Tom Tromey <tom@tromey.com>
2575 * python/py-cmd.c (cmdpy_destroyer)
2576 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
2579 2017-01-10 Tom Tromey <tom@tromey.com>
2581 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
2583 (gdbpy_breakpoint_has_cond): Likewise.
2585 2017-01-10 Tom Tromey <tom@tromey.com>
2587 * python/python.c (gdbpy_enter): New constructor.
2588 (~gdbpy_enter): New destructor.
2589 (restore_python_env, ensure_python_env): Rewrite.
2590 * python/python-internal.h (gdbpy_enter): New class.
2592 2017-01-10 Tom Tromey <tom@tromey.com>
2594 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
2596 2017-01-10 Tom Tromey <tom@tromey.com>
2598 * python/py-value.c (value_has_field, get_field_flag)
2599 (get_field_type, valpy_getitem, convert_value_from_python): Use
2602 2017-01-10 Tom Tromey <tom@tromey.com>
2604 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
2607 2017-01-10 Tom Tromey <tom@tromey.com>
2609 * python/py-prettyprint.c (search_pp_list)
2610 (find_pretty_printer_from_objfiles)
2611 (find_pretty_printer_from_progspace)
2612 (find_pretty_printer_from_gdb, find_pretty_printer)
2613 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
2616 2017-01-10 Tom Tromey <tom@tromey.com>
2618 * python/py-param.c (call_doc_function): Use gdbpy_ref.
2620 2017-01-10 Tom Tromey <tom@tromey.com>
2622 * python/py-linetable.c (build_line_table_tuple_from_pcs)
2623 (ltpy_get_all_source_lines): Use gdbpy_ref.
2625 2017-01-10 Tom Tromey <tom@tromey.com>
2627 * python/py-framefilter.c (extract_sym, extract_value)
2628 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
2631 2017-01-10 Tom Tromey <tom@tromey.com>
2633 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
2635 2017-01-10 Tom Tromey <tom@tromey.com>
2637 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
2639 2017-01-10 Tom Tromey <tom@tromey.com>
2641 * python/py-function.c (convert_values_to_python, fnpy_init): Use
2644 2017-01-10 Tom Tromey <tom@tromey.com>
2646 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
2648 2017-01-10 Tom Tromey <tom@tromey.com>
2650 * python/py-type.c (convert_field, make_fielditem, typy_fields)
2651 (typy_range): Use gdbpy_ref.
2653 2017-01-10 Tom Tromey <tom@tromey.com>
2655 * python/py-threadevent.c (create_thread_event_object): Use
2657 * python/py-stopevent.c (create_stop_event_object): Simplify.
2658 (emit_stop_event): Use gdbpy_ref.
2659 * python/py-signalevent.c (create_signal_event_object): Use
2661 * python/py-newobjfileevent.c (create_new_objfile_event_object)
2662 (emit_new_objfile_event, create_clear_objfiles_event_object)
2663 (emit_clear_objfiles_event): Use gdbpy_ref.
2664 * python/py-infevents.c (create_inferior_call_event_object)
2665 (create_register_changed_event_object)
2666 (create_memory_changed_event_object, emit_inferior_call_event)
2667 (emit_memory_changed_event, emit_register_changed_event): Use
2669 * python/py-exitedevent.c (create_exited_event_object)
2670 (emit_exited_event): Use gdbpy_ref.
2671 * python/py-event.h (evpy_emit_event): Remove
2672 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
2673 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
2674 * python/py-continueevent.c (emit_continue_event): Use
2676 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2677 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2679 * python/py-bpevent.c (create_breakpoint_event_object): Use
2682 2017-01-10 Tom Tromey <tom@tromey.com>
2684 * python/py-ref.h: New file.
2686 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2688 * cli-out.c (cli_ui_out::do_redirect): Change return type to
2690 * cli-out.h (cli_ui_out::do_redirect): Likewise.
2691 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
2692 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
2693 * ui-out.c (ui_out::redirect): Likewise.
2694 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
2695 * cli/cli-logging.c (set_logging_redirect): Update call site of
2697 (handle_redirections): Likewise.
2698 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
2699 * top.c (execute_command_to_string): Likewise.
2700 * utils.c (do_ui_out_redirect_pop): Likewise.
2702 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2704 * stack.c (_initialize_stack): Update "frame" command help message.
2706 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
2708 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
2710 2017-01-06 Yao Qi <yao.qi@linaro.org>
2712 * x86-linux-nat.h: Include gdb_proc_service.h.
2714 2017-01-06 Yao Qi <yao.qi@linaro.org>
2716 * ser-base.h: Include serial.h.
2718 2017-01-06 Yao Qi <yao.qi@linaro.org>
2720 * ppc-linux-tdep.h: Include ppc-tdep.h.
2722 2017-01-06 Yao Qi <yao.qi@linaro.org>
2724 * nat/amd64-linux-siginfo.h: Include signal.h.
2726 2017-01-06 Yao Qi <yao.qi@linaro.org>
2728 * nat/aarch64-linux-hw-point.h: Include break-common.h.
2730 2017-01-06 Yao Qi <yao.qi@linaro.org>
2732 * mi/mi-parse.h: Include mi-cmds.h.
2734 2017-01-06 Yao Qi <yao.qi@linaro.org>
2736 * inf-loop.c: Don't include "target.h".
2737 * inf-loop.h: Include it here.
2739 2017-01-06 Yao Qi <yao.qi@linaro.org>
2741 * dfp.h: Include "dboulest.h" and "expression.h".
2743 2017-01-06 Yao Qi <yao.qi@linaro.org>
2745 * ax-gdb.h: Include "ax.h".
2747 2017-01-06 Yao Qi <yao.qi@linaro.org>
2749 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
2750 with nat/gdb_ptrace.h.
2752 2017-01-05 Yao Qi <yao.qi@linaro.org>
2754 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
2756 (mips64_fbsd_sigframe_init): Likewise.
2758 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2760 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
2761 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
2763 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2765 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2766 * NEWS: Mention new FreeBSD/mips native configuration.
2767 * config/mips/fbsd.mh: New file.
2768 * configure.host: Add mips*-*-freebsd*.
2769 * mips-fbsd-nat.c: New file.
2771 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2773 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
2774 (ALLDEPFILES): Add mips-fbsd-tdep.c.
2775 * NEWS: Mention new FreeBSD/mips target.
2776 * configure.tgt: Add mips*-*-freebsd*.
2777 * mips-fbsd-tdep.c: New file.
2778 * mips-fbsd-tdep.h: New file.
2780 2017-01-04 Yao Qi <yao.qi@linaro.org>
2782 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
2783 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
2785 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2787 Update copyright year range in all GDB files.
2789 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2791 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
2793 For older changes see ChangeLog-2016.
2799 version-control: never