Remove use of the no longer needed -mminimal-toc option.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
2
3 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
4
5 2017-03-07 Pedro Alves <palves@redhat.com>
6
7 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
8
9 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
10
11 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
13 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
14 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15
16 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
17
18 * xtensa-linux-nat.c (fetch_gregs): Remove const.
19
20 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
21
22 * remote.c (remote_add_target_side_commands): Use range-based
23 for loop.
24
25 2017-03-03 Yao Qi <yao.qi@linaro.org>
26
27 PR gdb/21165
28 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
29 value is lazy.
30 * valprint.c (common_val_print): Likewise.
31
32 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
33
34 * NEWS: Mention new set/show disassembler-options commands.
35 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
36 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
37 (prospective_options): New static variable.
38 (gdb_disassembler::gdb_disassembler): Initialize
39 m_di.disassembler_options.
40 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
41 (get_disassembler_options): New function.
42 (set_disassembler_options): Likewise.
43 (set_disassembler_options_sfunc): Likewise.
44 (show_disassembler_options_sfunc): Likewise.
45 (disassembler_options_completer): Likewise.
46 (_initialize_disasm): Likewise.
47 * disasm.h (get_disassembler_options): New prototype.
48 (set_disassembler_options): Likewise.
49 * gdbarch.sh (gdbarch_disassembler_options): New variable.
50 (gdbarch_verify_disassembler_options): Likewise.
51 * gdbarch.c: Regenerate.
52 * gdbarch.h: Likewise.
53 * arm-tdep.c (num_disassembly_options): Delete.
54 (set_disassembly_style): Likewise.
55 (arm_disassembler_options): New static variable.
56 (set_disassembly_style_sfunc): Convert short style name into long
57 option name. Call set_disassembler_options.
58 (show_disassembly_style_sfunc): New function.
59 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
60 set_gdbarch_verify_disassembler_options.
61 (_initialize_arm_tdep): Delete regnames variable and update callers.
62 (arm_disassembler_options): Initialize.
63 (disasm_options): New variable.
64 (num_disassembly_options): Rename from this...
65 (num_disassembly_styles): ...to this. Compute by scanning through
66 disasm_options.
67 (valid_disassembly_styles): Initialize using disasm_options.
68 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
69 set_arm_regname_option.
70 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
71 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
72 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
73 set_gdbarch_verify_disassembler_options.
74 * s390-tdep.c (s390_disassembler_options): New static variable.
75 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
76 set_gdbarch_verify_disassembler_options.
77
78 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
79
80 * remote.c (remote_add_target_side_condition): Remove "struct"
81 keyword from range-based for loop.
82
83 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
84
85 * remote.c (remote_add_target_side_condition): Use range-based
86 for loop. Update comment.
87
88 2017-02-27 Yao Qi <yao.qi@linaro.org>
89
90 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
91
92 2017-02-26 Alan Hayward <alan.hayward@arm.com>
93
94 * regcache.c (regcache_raw_update): New function.
95 (regcache_raw_read): Move code to regcache_raw_update.
96 * regcache.h (regcache_raw_update): New declaration.
97 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
98
99 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
100
101 * dwarf2read.c (create_debug_type_hash_table): Initialize
102 header.signature and header.type_offset_in_tu.
103
104 2017-02-24 Pedro Alves <palves@redhat.com>
105
106 * symtab.c (make_file_symbol_completion_list_1): Use
107 add_symtab_completions.
108
109 2017-02-24 Alan Hayward <alan.hayward@arm.com>
110
111 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
112
113 2017-02-24 Alan Hayward <alan.hayward@arm.com>
114
115 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
116 I386_MAX_REGISTER_SIZE.
117 (i386_pseudo_register_write): Likewise.
118 (i386_process_record): Likewise.
119 * i387-tdep.c (i387_supply_xsave): Likewise.
120 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
121 (store_register): Likewise.
122
123 2017-02-23 Pedro Alves <palves@redhat.com>
124
125 * ada-lang.c: Include "common/function-view.h".
126 (ada_iterate_over_symbols): Adjust to use function_view as
127 callback type.
128 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
129 (ada_make_symbol_completion_list): Use a lambda.
130 (ada_exc_search_name_matches): Delete.
131 (name_matches_regex): New.
132 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
133 * compile/compile-c-support.c: Include "common/function-view.h".
134 (print_one_macro): Change prototype to accept a ui_file pointer.
135 (write_macro_definitions): Use a lambda.
136 * dwarf2read.c: Include "common/function-view.h".
137 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
138 (dw2_expand_symtabs_matching): Adjust to use function_view as
139 callback type.
140 * language.h: Include "common/function-view.h".
141 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
142 function_view as callback type.
143 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
144 * linespec.c: Include "common/function-view.h".
145 (collect_info::add_symbol): New method.
146 (struct symbol_and_data_callback, iterate_inline_only, struct
147 symbol_matcher_data, iterate_name_matcher): Delete.
148 (iterate_over_all_matching_symtabs): Adjust to use function_view
149 as callback type and lambdas.
150 (iterate_over_file_blocks): Adjust to use function_view as
151 callback type.
152 (decode_compound_collector): Now a class with private fields.
153 (decode_compound_collector::release_symbols): New method.
154 (collect_one_symbol): Rename to...
155 (decode_compound_collector::operator()): ... this and adjust.
156 (lookup_prefix_sym): decode_compound_collector construction bits
157 move to decode_compound_collector ctor. Pass the
158 decode_compound_collector object directly as callback. Remove
159 cleanups and use decode_compound_collector::release_symbols
160 instead.
161 (symtab_collector): Now a class with private fields.
162 (symtab_collector::release_symtabs): New method.
163 (add_symtabs_to_list): Rename to...
164 (symtab_collector::operator()): ... this and adjust.
165 (collect_symtabs_from_filename): symtab_collector construction
166 bits move to symtab_collector ctor. Pass the symtab_collector
167 object directly as callback. Remove cleanups and use
168 symtab_collector::release_symtabs instead.
169 (collect_symbols): Delete.
170 (add_matching_symbols_to_info): Use lambdas.
171 * macrocmd.c (print_macro_callback): Delete.
172 (info_macro_command): Use a lambda.
173 (info_macros_command): Pass print_macro_definition as callable
174 directly.
175 (print_one_macro): Remove 'ignore' parameter.
176 (macro_list_command): Adjust.
177 * macrotab.c (macro_for_each_data::fn): Now a function_view.
178 (macro_for_each_data::user_data): Delete field.
179 (foreach_macro): Adjust to call the function_view.
180 (macro_for_each): Adjust to use function_view as callback type.
181 (foreach_macro_in_scope): Adjust to call the function_view.
182 (macro_for_each_in_scope): Adjust to use function_view as callback
183 type.
184 * macrotab.h: Include "common/function-view.h".
185 (macro_callback_fn): Declare a prototype instead of a pointer.
186 Remove "user_data" parameter.
187 (macro_for_each, macro_for_each_in_scope): Adjust to use
188 function_view as callback type.
189 * psymtab.c (partial_map_expand_apply)
190 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
191 Adjust to use function_view as callback type and to return bool.
192 (psym_expand_symtabs_matching): Adjust to use function_view as
193 callback types.
194 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
195 to use function_view as callback type and to return bool.
196 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
197 callback types.
198 * symfile.c (expand_symtabs_matching): Adjust to use function_view
199 as callback types.
200 * symfile.h: Include "common/function-view.h".
201 (expand_symtabs_file_matcher_ftype)
202 (expand_symtabs_symbol_matcher_ftype)
203 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
204 return bool.
205 (quick_symbol_functions::map_symtabs_matching_filename)
206 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
207 function_view as callback type and return bool.
208 (expand_symtabs_matching): Adjust to use function_view as callback
209 type.
210 (maintenance_expand_name_matcher)
211 (maintenance_expand_file_matcher): Delete.
212 (maintenance_expand_symtabs): Use lambdas.
213 * symtab.c (iterate_over_some_symtabs): Adjust to use
214 function_view as callback types and return bool.
215 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
216 of a cleanup.
217 (lookup_symtab_callback): Delete.
218 (lookup_symtab): Use a lambda.
219 (iterate_over_symbols): Adjust to use function_view as callback
220 type.
221 (struct search_symbols_data, search_symbols_file_matches)
222 (search_symbols_name_matches): Delete.
223 (search_symbols): Use a pair of lambdas.
224 (struct add_name_data, add_macro_name, symbol_completion_matcher)
225 (symtab_expansion_callback): Delete.
226 (default_make_symbol_completion_list_break_on_1): Use lambdas.
227 * symtab.h: Include "common/function-view.h".
228 (iterate_over_some_symtabs): Adjust to use function_view as
229 callback type and return bool.
230 (iterate_over_symtabs): Adjust to use function_view as callback
231 type.
232 (symbol_found_callback_ftype): Remove 'data' parameter and return
233 bool.
234 (iterate_over_symbols): Adjust to use function_view as callback
235 type.
236
237 2017-02-23 Pedro Alves <palves@redhat.com>
238
239 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
240 (%.o) <unittests/%.c>: New pattern.
241 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
242 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
243 * common/function-view.h: New file.
244 * unittests/function-view-selftests.c: New file.
245 * configure: Regenerate.
246
247 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
248
249 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
250 inferior_ptid.
251 * go32-nat.c (go32_thread_alive): Likewise.
252
253 2017-02-23 Yao Qi <yao.qi@linaro.org>
254
255 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
256 delete.
257
258 2017-02-23 Yao Qi <yao.qi@linaro.org>
259
260 * varobj.c (varobj_clear_saved_item): Use delete instead of
261 xfree.
262 (update_dynamic_varobj_children): Likewise.
263
264 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
265
266 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
267
268 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
269
270 * common/enum-flags.h (enum_flags::enum_flags): Initialize
271 m_enum_value to 0 in default constructor.
272
273 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
274
275 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
276 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
277 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
278 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
279 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
280 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
281 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
282 IS_STORE_CONDITIONAL_INSN.
283
284 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
285
286 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
287
288 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
289
290 * NEWS (Changes since GDB 7.12): Add DWARF-5.
291
292 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
293
294 * dwarf2read.c (skip_one_die, read_attribute_value)
295 (dwarf2_const_value_attr, dump_die_shallow)
296 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
297 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
298
299 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
300
301 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
302 (dwarf_parse_macro_header): Accept DWARF version 5.
303 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
304
305 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
306
307 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
308 DW_AT_GNU_*.
309 * common/common-exceptions.h (enum errors): Likewise.
310 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
311 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
312 (dwarf_expr_context::execute_stack_op): Likewise.
313 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
314 Likewise.
315 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
316 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
317 (show_entry_values_debug, call_site_to_target_addr)
318 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
319 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
320 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
321 (value_of_dwarf_block_entry, indirect_pieced_value)
322 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
323 (disassemble_dwarf_expression): Likewise.
324 * dwarf2read.c (process_die, inherit_abstract_dies)
325 (read_call_site_scope): Likewise.
326 * gdbtypes.h (struct func_type, struct call_site_parameter)
327 (struct call_site): Likewise.
328 * stack.c (read_frame_arg): Likewise.
329 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
330
331 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
332
333 * defs.h (read_unsigned_leb128): New declaration.
334 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
335 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
336 (dwarf2_find_location_expression): Call also
337 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
338 * dwarf2loc.h (dwarf2_version): New declaration.
339 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
340 rnglists.
341 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
342 .debug_rnglists.
343 (struct dwop_section_names): Add loclists_dwo.
344 (dwop_section_names): Add .debug_loclists.dwo.
345 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
346 (struct dwarf2_per_cu_data): Add dwarf_version.
347 (struct dwo_sections): Add loclists.
348 (struct attr_abbrev): Add implicit_const.
349 (read_indirect_line_string): New declaration.
350 (read_unsigned_leb128): Delete declaration.
351 (rcuh_kind): New definition.
352 (read_and_check_comp_unit_head): Change parameter
353 is_debug_types_section to section_kind.
354 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
355 (read_comp_unit_head): Change parameter abfd to section, add parameter
356 section_kind. Handle DWARF-5.
357 (error_check_comp_unit_head): Accept also DWARF version 5.
358 (read_and_check_comp_unit_head): Change parameter
359 is_debug_types_section to section_kind.
360 (read_and_check_type_unit_head): Delete function.
361 (read_abbrev_offset): Handle DWARF-5.
362 (create_debug_type_hash_table): Add parameter section_kind. Process
363 only DW_UT_type. Use signature and type_offset_in_tu from struct
364 comp_unit_head.
365 (create_debug_types_hash_table): Update create_debug_type_hash_table
366 caller.
367 (create_all_type_units): Call create_debug_type_hash_table.
368 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
369 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
370 caller.
371 (skip_one_die): Handle DW_FORM_implicit_const.
372 (dwarf2_rnglists_process): New function.
373 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
374 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
375 (read_attribute_value): Handle DW_FORM_implicit_const,
376 DW_FORM_line_strp.
377 (read_attribute): Handle DW_FORM_implicit_const.
378 (read_indirect_string_at_offset_from): New function from
379 read_indirect_string_at_offset.
380 (read_indirect_string_at_offset): Call
381 read_indirect_string_at_offset_from.
382 (read_indirect_line_string_at_offset): New function.
383 (read_indirect_string): New function comment.
384 (read_indirect_line_string): New function.
385 (read_unsigned_leb128): Make it global.
386 (dwarf2_string_attr): Handle DWARF-5.
387 (add_include_dir_stub, read_formatted_entries): New functions.
388 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
389 Handle DWARF-5.
390 (per_cu_header_read_in): Update read_comp_unit_head caller.
391 (dwarf2_version): New function.
392 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
393 rnglists.
394 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
395 fields.
396
397 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
398
399 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
400
401 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
402
403 * dwarf2read.c (dwarf2_ranges_process): New function from
404 dwarf2_ranges_read.
405 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
406 dwarf2_ranges_process.
407
408 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
409
410 * dwarf2read.c (create_debug_type_hash_table): New function from
411 create_debug_types_hash_table.
412 (create_debug_types_hash_table): Call create_debug_type_hash_table.
413 (create_all_type_units, open_and_init_dwo_file): Update
414 create_debug_types_hash_table callers.
415
416 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
417
418 PR gdb/16188
419 * fork-child.c (trace_start_error): Fix thinko. va_end should
420 refer to 'ap', not 'args'.
421
422 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
423 Pedro Alves <palves@redhat.com>
424
425 PR gdb/16188
426 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
427 calls succeeded.
428 * fork-child.c (trace_start_error): New function.
429 (trace_start_error_with_name): Likewise.
430 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
431 * inf-ptrace.c (inf_ptrace_me): Likewise.
432 * inferior.h (trace_start_error): New prototype.
433 (trace_start_error_with_name): Likewise.
434
435 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
436
437 PR gdb/21164
438 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
439 NULL before using it.
440 * symmisc.c (maintenance_print_symbols): Likewise.
441 (maintenance_print_msymbols): Likewise.
442
443 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
444
445 * NEWS: Add record Python bindings entry.
446
447 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
448
449 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
450 py-record-full.o.
451 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
452 * python/py-record-btrace.c, python/py-record-btrace.h,
453 python/py-record-full.c, python/py-record-full.h: New file.
454 * python/py-record.c: Add include for py-record-btrace.h and
455 py-record-full.h.
456 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
457 recpy_instruction_history, recpy_function_call_history, recpy_begin,
458 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
459 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
460 New definition.
461 (gdbpy_initialize_btrace): New export.
462 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
463
464 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
465
466 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
467 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
468 * python/py-record.c: New file.
469 * python/python-internal.h (gdbpy_start_recording,
470 gdbpy_current_recording, gdpy_stop_recording,
471 gdbpy_initialize_record): New export.
472 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
473 (python_GdbMethods): Add gdbpy_start_recording,
474 gdbpy_current_recording and gdbpy_stop_recording.
475
476 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
477
478 * record-btrace.c (record_btrace_record_method): New function.
479 (init_record_btrace_ops): Initialize to_record_method.
480 * record-full.c (record_full_record_method): New function.
481 (init_record_full_ops, init_record_full_core_ops): Add
482 record_full_record_method.
483 * record.h (enum record_method): New enum.
484 * target-debug.h (target_debug_print_enum_record_method: New define.
485 * target-delegates.c: Regenerate.
486 * target.c (target_record_method): New function.
487 * target.h: Include record.h.
488 (struct target_ops) <to_record_method>: New field.
489 (target_record_method): New export.
490
491 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
492
493 * record.h (record_start, record_stop): New export.
494 * record.c (record_start, record_stop): New function.
495
496 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
497
498 * btrace.c (btrace_fetch): Copy function call segments pointer
499 into a vector.
500 (btrace_clear): Clear the vector.
501 (btrace_find_insn_by_number): Use binary search to find the correct
502 function call segment.
503 * btrace.h (brace_fun_p): New typedef.
504 (struct btrace_thread_info) <functions>: New field.
505
506 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
507
508 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
509 * btrace.c (btrace_decode_error): ... here. New function.
510 * btrace.h (btrace_decode_error): New export.
511
512 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
513
514 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
515 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
516 btrace_find_insn_by_number): Remove special case for gaps.
517 * btrace.h (btrace_insn_get_error): New export.
518 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
519 * record-btrace.c (btrace_insn_history): Print number for gaps.
520 (record_btrace_info, record_btrace_goto): Handle gaps.
521
522 2017-02-14 Tom Tromey <tom@tromey.com>
523
524 PR python/13598:
525 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
526 event.
527 * python/py-evts.c (gdbpy_initialize_py_events): Add
528 before_prompt registry.
529 * python/py-events.h (events_object) <before_prompt>: New field.
530
531 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
532
533 * btrace.c (ftrace_new_switch): Preserve up link and flags.
534
535 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
536
537 * symfile (_initialize_symfile): Add usage text to the load command's
538 help text.
539
540 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
541
542 * utils.c (defaulted_query): Don't query on secondary UIs.
543
544 2017-02-10 Tom Tromey <tom@tromey.com>
545
546 * rust-lang.c (rust_get_disr_info): Remove unused variable.
547
548 2017-02-10 Tom Tromey <tom@tromey.com>
549
550 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
551 "cleanup" local.
552 * python/py-type.c (typy_legacy_template_argument): Remove
553 unnecessary "cleanup" local.
554
555 2017-02-10 Tom Tromey <tom@tromey.com>
556
557 * python/python.c (do_start_initialization): New function, from
558 _initialize_python.
559 (_initialize_python): Call do_start_initialization.
560 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
561 goto.
562
563 2017-02-10 Tom Tromey <tom@tromey.com>
564
565 * python/py-prettyprint.c (pretty_print_one_value): Use
566 gdbpy_ref.
567
568 2017-02-10 Tom Tromey <tom@tromey.com>
569
570 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
571 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
572 gdbpy_ref.
573 * python/py-type.c (field_new): Use gdbpy_ref.
574 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
575 gdbpy_ref.
576 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
577 (py_free_pspace): Likewise.
578 (pspace_to_pspace_object): Likewise.
579 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
580 (py_free_objfile): Likewise.
581 (objfile_to_objfile_object): Likewise.
582 * python/py-inferior.c (delete_thread_object): Use
583 gdbpy_ref.
584 (infpy_read_memory): Likewise.
585 (py_free_inferior): Likewise.
586 * python/py-evtregistry.c (create_eventregistry_object): Use
587 gdbpy_ref.
588 * python/py-event.c (create_event_object): Use gdbpy_ref.
589
590 2017-02-10 Tom Tromey <tom@tromey.com>
591
592 * python/py-ref.h (gdbpy_ref_policy): Now a template.
593 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
594 used.
595 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
596 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
597 python/py-exitedevent.c, python/py-finishbreakpoint.c,
598 python/py-framefilter.c, python/py-function.c,
599 python/py-inferior.c, python/py-infevents.c,
600 python/py-linetable.c, python/py-newobjfileevent.c,
601 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
602 python/py-signalevent.c, python/py-stopevent.c,
603 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
604 python/py-unwind.c, python/py-utils.c, python/py-value.c,
605 python/py-varobj.c, python/py-xmethods.c, python/python.c,
606 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
607
608 2017-02-10 Tom Tromey <tom@tromey.com>
609
610 * ui-out.h (ui_out_emit_type): New class.
611 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
612 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
613 and ui_out_emit_tuple.
614 (enumerate_locals): Likewise.
615 (py_mi_print_variables, py_print_locals, py_print_args): Use
616 ui_out_emit_list.
617 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
618 ui_out_emit_list.
619 * common/gdb_optional.h: New file.
620
621 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
622
623 * MAINTAINERS (Write After Approval): Update my e-mail address.
624
625 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
626
627 PR gdb/21122
628 * breakpoint.c (_initialize_breakpoint): Update the help description
629 of the 'commands' command to indicate that it takes a list argument.
630
631 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
632
633 * interps.c (current_interp_set_logging): Remove "return".
634
635 2017-02-09 Gary Benson <gbenson@redhat.com>
636
637 * symtab.c (add_symtab_completions): Prevent NULL pointer
638 dereference.
639
640 2017-02-08 Pedro Alves <palves@redhat.com>
641
642 * interps.c (interp::interp): Remove reference to quiet_p.
643 (interp_set): Make static. Remove dead "Switching to" output
644 code.
645 (interp_quiet_p, interp_set_quiet): Delete.
646 (interpreter_exec_cmd): Don't set the interpreter quiet.
647 * interps.h (interp_quiet_p): Make static.
648 (class interp) <quiet_p>: Remove field
649
650 2017-02-08 Jerome Guitton <guitton@adacore.com>
651
652 * cli/cli-decode.c (find_command_name_length): Make it extern.
653 * cli/cli-decode.h (find_command_name_length): Declare.
654 * cli/cli-script.c (command_name_equals, line_first_arg):
655 New functions.
656 (process_next_line): Use cli-decode to parse command names.
657 (build_command_line): Make args a constant pointer.
658
659 2017-02-08 Jerome Guitton <guitton@adacore.com>
660
661 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
662 Remove case-insensitive search.
663
664 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
665
666 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
667 at the end of the line. Avoids an ARI warning.
668
669 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
670
671 * NEWS: Mention support for record/replay of Intel 64 rdrand and
672 rdseed instructions.
673 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
674
675 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
676
677 PR tdep/20936
678 Provide and use sparc32 and sparc64 target description XML files.
679 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
680 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
681 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
682 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
683 * features/sparc/sparc32-solaris.xml: New file.
684 * features/sparc/sparc64-solaris.xml: New file.
685 * features/sparc/sparc32-solaris.c: Generated.
686 * features/sparc/sparc64-solaris.c: Generated.
687 * sparc-tdep.h: Account for differences in target descriptions.
688 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
689 (sparc32_register_type): Use target provided registers.
690 (validate_tdesc_registers): New function.
691 (sparc32_gdbarch_init): Use tdesc_has_registers.
692 Set pseudoregister functions.
693 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
694 (sparc64_register_type): Use target provided registers.
695 (sparc64_init_abi): Set pseudoregister functions.
696
697 2017-02-03 Tom Tromey <tom@tromey.com>
698
699 PR rust/21097:
700 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
701 with a single member.
702
703 2017-02-03 Pedro Alves <palves@redhat.com>
704
705 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
706 (cli_interp_base::~cli_interp_base): New.
707 (cli_interp): New struct.
708 (as_cli_interp): Cast the interp itself to cli_interp.
709 (cli_interpreter_pre_command_loop): Rename to ...
710 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
711 parameter.
712 (cli_interpreter_init): Rename to ...
713 (cli_interp::init): ... this. Remove 'self' parameter. Use
714 boolean. Make extern.
715 (cli_interpreter_resume): Rename to ...
716 (cli_interp::resume): ... this. Remove 'data' parameter. Make
717 extern.
718 (cli_interpreter_suspend): Rename to ...
719 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
720 extern.
721 (cli_interpreter_exec): Rename to ...
722 (cli_interp::exec): ... this. Remove 'data' parameter. Make
723 extern.
724 (cli_interpreter_supports_command_editing): Rename to ...
725 (cli_interp_base::supports_command_editing): ... this. Remove
726 'interp' parameter. Make extern.
727 (cli_ui_out): Rename to ...
728 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
729 Make extern.
730 (cli_set_logging): Rename to ...
731 (cli_interp_base::set_logging): ... this. Remove 'interp'
732 parameter. Make extern.
733 (cli_interp_procs): Delete.
734 (cli_interp_factory): Adjust to use "new".
735 * cli/cli-interp.h: Include "interps.h".
736 (struct cli_interp_base): New struct.
737 * interps.c (struct interp): Delete. Fields moved to interps.h.
738 (interp_new): Delete.
739 (interp::interp, interp::~interp): New.
740 (interp_set): Use bool, and return void. Assume the interpreter
741 has suspend, init and resume methods, and that the all return
742 void.
743 (set_top_level_interpreter): interp_set returns void.
744 (interp_ui_out): Adapt.
745 (current_interp_set_logging): Adapt.
746 (interp_data): Delete.
747 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
748 (interp_exec): Adapt.
749 (top_level_interpreter_data): Delete.
750 * interps.h (interp_init_ftype, interp_resume_ftype)
751 (interp_suspend_ftype, interp_exec_ftype)
752 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
753 (class interp): New.
754 (interp_new): Delete.
755 (interp_set): Now returns void. Use bool.
756 (interp_data, top_level_interpreter_data): Delete.
757 * mi/mi-common.h: Include interps.h.
758 (class mi_interp): Inherit from interp. Define a ctor. Declare
759 init, resume, suspect, exec, interp_ui_out, set_logging and
760 pre_command_loop methods.
761 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
762 (mi_interpreter_init): Rename to ...
763 (mi_interp::init): ... this. Remove the 'interp' parameter, use
764 bool, return void and make extern. Adjust.
765 (mi_interpreter_resume): ... Rename to ...
766 (mi_interp::resume): ... this. Remove the 'data' parameter,
767 return void and make extern. Adjust.
768 (mi_interpreter_suspend): ... Rename to ...
769 (mi_interp::suspend): ... this. Remove the 'data' parameter,
770 return void and make extern. Adjust.
771 (mi_interpreter_exec): ... Rename to ...
772 (mi_interp::exec): ... this. Remove the 'data' parameter and make
773 extern. Adjust.
774 (mi_interpreter_pre_command_loop): ... Rename to ...
775 (mi_interp::pre_command_loop): ... this. Remove the 'self'
776 parameter and make extern.
777 (mi_on_normal_stop_1): Adjust.
778 (mi_ui_out): Rename to ...
779 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
780 parameter and make extern. Adjust.
781 (mi_set_logging): Rename to ...
782 (mi_interp::set_logging): ... this. Remove the 'interp'
783 parameter and make extern. Adjust.
784 (mi_interp_procs): Delete.
785 (mi_interp_factory): Adjust to use 'new'.
786 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
787 (mi_print_exception, mi_execute_command, mi_load_progress):
788 Adjust.
789 * tui/tui-interp.c (tui_interp): New class.
790 (as_tui_interp): Return a tui_interp pointer.
791 (tui_on_normal_stop, tui_on_signal_received)
792 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
793 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
794 to use interp::interp_ui_out.
795 (tui_init): Rename to ...
796 (tui_interp::init): ... this. Remove the 'self' parameter, use
797 bool, return void and make extern. Adjust.
798 (tui_resume): Rename to ...
799 (tui_interp::resume): ... this. Remove the 'data' parameter,
800 return void and make extern. Adjust.
801 (tui_suspend): Rename to ...
802 (tui_interp::suspend): ... this. Remove the 'data' parameter,
803 return void and make extern. Adjust.
804 (tui_ui_out): Rename to ...
805 (tui_interp::interp_ui_out): ... this. Remove the 'self'
806 parameter, and make extern. Adjust.
807 (tui_exec): Rename to ...
808 (tui_interp::exec): ... this. Remove the 'data' parameter and
809 make extern.
810 (tui_interp_procs): Delete.
811 (tui_interp_factory): Use "new".
812
813 2017-02-02 Tom Tromey <tom@tromey.com>
814
815 * rust-exp.y (ends_raw_string, space_then_number)
816 (rust_identifier_start_p): Return bool.
817 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
818 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
819 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
820 (rust_chartype_p): Return bool.
821 (val_print_struct, rust_print_struct_def, rust_print_type):
822 Update.
823 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
824 Return bool.
825
826 2017-02-02 Tom Tromey <tom@tromey.com>
827
828 * rust-lang.c: Reindent.
829
830 2017-02-02 Tom Tromey <tom@tromey.com>
831
832 * rust-lang.h (rust_crate_for_block): Update.
833 * rust-lang.c (rust_crate_for_block): Return std::string.
834 (rust_get_disr_info): Use std:;string, not
835 gdb::unique_xmalloc_ptr.
836 * rust-exp.y (crate_name): Update.
837
838 2017-02-02 Pedro Alves <palves@redhat.com>
839
840 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
841 field out of gdb_disassembler_test and make it static.
842
843 2017-02-02 Pedro Alves <palves@redhat.com>
844
845 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
846 mi1_interp and mi_interp fields.
847
848 2017-02-02 Pedro Alves <palves@redhat.com>
849
850 * cli/cli-interp.c (struct saved_output_files, saved_output):
851 Moved from cli/cli-logging.c.
852 (cli_set_logging): New function.
853 (cli_interp_procs): Install cli_set_logging.
854 * cli/cli-interp.h (make_logging_output, cli_set_logging):
855 Declare.
856 * cli/cli-logging.c (struct saved_output_files, saved_output):
857 Moved to cli/cli-interp.c.
858 (pop_output_files): Don't save outputs here.
859 (make_logging_output): New function.
860 (handle_redirections): Don't build tee nor save previous outputs
861 here.
862 * interps.c (current_interp_set_logging): Change prototype.
863 Assume there's always a set_logging_proc method installed.
864 * interps.h (interp_set_logging_ftype): Change prototype.
865 (current_interp_set_logging): Change prototype and adjust comment.
866 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
867 use make_logging_output.
868 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
869 2017-02-02 Pedro Alves <palves@redhat.com>
870
871 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
872 from ...
873 (set_logging_overwrite): ... here.
874 (logging_no_redirect_file): Delete.
875 (set_logging_redirect): Don't handle redirection on the fly.
876 Instead warn that "logging off" / "logging on" is necessary.
877 (pop_output_files): Delete references to logging_no_redirect_file.
878 (show_logging_command): Always speak in terms of what will happen
879 once logging is reenabled.
880
881 2017-02-02 Pedro Alves <palves@redhat.com>
882
883 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
884
885 2017-02-02 Pedro Alves <palves@redhat.com>
886
887 * disasm.c (gdb_pretty_print_insn): Rename to ...
888 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
889 Remove gdbarch parameter. Adapt to clear the object's buffers
890 instead of allocating new buffers, and to print using the object's
891 gdb_disassembler instead of calling gdb_print_insn.
892 (dump_insns): Use gdb_pretty_print_disassembler.
893 * disasm.h (gdb_pretty_print_insn): Delete declaration.
894 (gdb_pretty_print_disassembler): New class.
895 * record-btrace.c (btrace_insn_history): Use
896 gdb_pretty_print_disassembler.
897
898 2017-02-02 Pedro Alves <palves@redhat.com>
899
900 * ada-lang.c (type_as_string): Use string_file.
901 * ada-valprint.c (ada_print_floating): Use string_file.
902 * ada-varobj.c (ada_varobj_scalar_image)
903 (ada_varobj_get_value_image): Use string_file.
904 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
905 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
906 * breakpoint.c (update_inserted_breakpoint_locations)
907 (insert_breakpoint_locations, reattach_breakpoints)
908 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
909 (print_it_watchpoint): Use string_file.
910 (save_breakpoints): Use stdio_file.
911 * c-exp.y (oper): Use string_file.
912 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
913 tee_file.
914 (pop_output_files): Use delete.
915 (handle_redirections): Use stdio_file and tee_file.
916 * cli/cli-setshow.c (do_show_command): Use string_file.
917 * compile/compile-c-support.c (c_compute_program): Use
918 string_file.
919 * compile/compile-c-symbols.c (generate_vla_size): Take a
920 'string_file &' instead of a 'ui_file *'.
921 (generate_c_for_for_one_variable): Take a 'string_file &' instead
922 of a 'ui_file *'. Use string_file.
923 (generate_c_for_variable_locations): Take a 'string_file &'
924 instead of a 'ui_file *'.
925 * compile/compile-internal.h (generate_c_for_for_one_variable):
926 Take a 'string_file &' instead of a 'ui_file *'.
927 * compile/compile-loc2c.c (push, pushf, unary, binary)
928 (print_label, pushf_register_address, pushf_register)
929 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
930 'ui_file *'. Adjust.
931 * compile/compile.c (compile_to_object): Use string_file.
932 * compile/compile.h (compile_dwarf_expr_to_c)
933 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
934 'ui_file *'.
935 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
936 (replace_typedefs_qualified_name): Use string_file and
937 obstack_copy0.
938 * disasm.c (gdb_pretty_print_insn): Use string_file.
939 (gdb_disassembly): Adjust reference the null_stream global.
940 (do_ui_file_delete): Delete.
941 (gdb_insn_length): Use null_stream.
942 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
943 * dwarf2loc.c (dwarf2_compile_property_to_c)
944 (locexpr_generate_c_location, loclist_generate_c_location): Take a
945 'string_file &' instead of a 'ui_file *'.
946 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
947 * dwarf2read.c (do_ui_file_peek_last): Delete.
948 (dwarf2_compute_name): Use string_file.
949 * event-top.c (gdb_setup_readline): Use stdio_file.
950 * gdbarch.sh (verify_gdbarch): Use string_file.
951 * gdbtypes.c (safe_parse_type): Use null_stream.
952 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
953 string_file.
954 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
955 'string_file *' instead of a 'ui_file *'.
956 (gdbscm_arch_disassemble): Use string_file.
957 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
958 * guile/scm-ports.c (class ioscm_file_port): Now a class that
959 inherits from ui_file.
960 (ioscm_file_port_delete, ioscm_file_port_rewind)
961 (ioscm_file_port_put): Delete.
962 (ioscm_file_port_write): Rename to ...
963 (ioscm_file_port::write): ... this. Remove file_port_magic
964 checks.
965 (ioscm_file_port_new): Delete.
966 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
967 ui_file_up.
968 * guile/scm-type.c (tyscm_type_name): Use string_file.
969 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
970 Use string_file.
971 * infcmd.c (print_return_value_1): Use string_file.
972 * infrun.c (print_target_wait_results): Use string_file.
973 * language.c (add_language): Use string_file.
974 * location.c (explicit_to_string_internal): Use string_file.
975 * main.c (captured_main_1): Use null_file.
976 * maint.c (maintenance_print_architecture): Use stdio_file.
977 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
978 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
979 event_channel>: Change type to mi_console_file pointer.
980 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
981 (mi_console_file_delete): Delete.
982 (struct mi_console_file): Delete.
983 (mi_console_file_magic): Delete.
984 (mi_console_file_new): Delete.
985 (mi_console_file::mi_console_file): New.
986 (mi_console_file_delete): Delete.
987 (mi_console_file_fputs): Delete.
988 (mi_console_file::write): New.
989 (mi_console_raw_packet): Delete.
990 (mi_console_file::flush): New.
991 (mi_console_file_flush): Delete.
992 (mi_console_set_raw): Rename to ...
993 (mi_console_file::set_raw): ... this.
994 * mi/mi-console.h (class mi_console_file): New class.
995 (mi_console_file_new, mi_console_set_raw): Delete.
996 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
997 (mi_set_logging): Use delete and tee_file. Adjust.
998 * mi/mi-main.c (output_register): Use string_file.
999 (mi_cmd_data_evaluate_expression): Use string_file.
1000 (mi_cmd_data_read_memory): Use string_file.
1001 (mi_cmd_execute, print_variable_or_computed): Use string_file.
1002 * mi/mi-out.c (mi_ui_out::main_stream): New.
1003 (mi_ui_out::rewind): Use main_stream and
1004 string_file.
1005 (mi_ui_out::put): Use main_stream and string_file.
1006 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1007 Allocate a 'string_file' instead.
1008 (mi_out_new): Don't allocate a mem_fileopen stream here.
1009 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
1010 (mi_ui_out::main_stream): Declare method.
1011 * printcmd.c (eval_command): Use string_file.
1012 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
1013 * python/py-arch.c (archpy_disassemble): Use string_file.
1014 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
1015 * python/py-frame.c (frapy_str): Use string_file.
1016 * python/py-framefilter.c (py_print_type, py_print_single_arg):
1017 Use string_file.
1018 * python/py-type.c (typy_str): Use string_file.
1019 * python/py-unwind.c (unwind_infopy_str): Use string_file.
1020 * python/py-value.c (valpy_str): Use string_file.
1021 * record-btrace.c (btrace_insn_history): Use string_file.
1022 * regcache.c (regcache_print): Use stdio_file.
1023 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
1024 * remote.c (escape_buffer): Use string_file.
1025 * rust-lang.c (rust_get_disr_info): Use string_file.
1026 * serial.c (serial_open_ops_1): Use stdio_file.
1027 (do_serial_close): Use delete.
1028 * stack.c (print_frame_arg): Use string_file.
1029 (print_frame_args): Remove local mem_fileopen stream, not used.
1030 (print_frame): Use string_file.
1031 * symmisc.c (maintenance_print_symbols): Use stdio_file.
1032 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1033 Take a 'string_file *' instead of a 'ui_file *'.
1034 * top.c (new_ui): Use stdio_file and stderr_file.
1035 (free_ui): Use delete.
1036 (execute_command_to_string): Use string_file.
1037 (quit_confirm): Use string_file.
1038 * tracepoint.c (collection_list::append_exp): Use string_file.
1039 * tui/tui-disasm.c (tui_disassemble): Use string_file.
1040 * tui/tui-file.c: Don't include "ui-file.h".
1041 (enum streamtype, struct tui_stream): Delete.
1042 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
1043 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
1044 (tui_file::tui_file): New method.
1045 (tui_file_fputs): Delete.
1046 (tui_file_get_strbuf): Delete.
1047 (tui_file::puts): New method.
1048 (tui_file_adjust_strbuf): Delete.
1049 (tui_file_flush): Delete.
1050 (tui_file::flush): New method.
1051 * tui/tui-file.h: Tweak intro comment.
1052 Include ui-file.h.
1053 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
1054 (tui_file_adjust_strbuf): Delete declarations.
1055 (class tui_file): New class.
1056 * tui/tui-io.c (tui_initialize_io): Use tui_file.
1057 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
1058 (tui_register_format): Use string_stream.
1059 * tui/tui-stack.c (tui_make_status_line): Use string_file.
1060 (tui_get_function_from_frame): Use string_file.
1061 * typeprint.c (type_to_string): Use string_file.
1062 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
1063 (null_stream): New global.
1064 (ui_file_delete): Delete.
1065 (ui_file::ui_file): New.
1066 (null_file_isatty): Delete.
1067 (ui_file::~ui_file): New.
1068 (null_file_rewind): Delete.
1069 (ui_file::printf): New.
1070 (null_file_put): Delete.
1071 (null_file_flush): Delete.
1072 (ui_file::putstr): New.
1073 (null_file_write): Delete.
1074 (ui_file::putstrn): New.
1075 (null_file_read): Delete.
1076 (ui_file::putc): New.
1077 (null_file_fputs): Delete.
1078 (null_file_write_async_safe): Delete.
1079 (ui_file::vprintf): New.
1080 (null_file_delete): Delete.
1081 (null_file::write): New.
1082 (null_file_fseek): Delete.
1083 (null_file::puts): New.
1084 (ui_file_data): Delete.
1085 (null_file::write_async_safe): New.
1086 (gdb_flush, ui_file_isatty): Adjust.
1087 (ui_file_put, ui_file_rewind): Delete.
1088 (ui_file_write): Adjust.
1089 (ui_file_write_for_put): Delete.
1090 (ui_file_write_async_safe, ui_file_read): Adjust.
1091 (ui_file_fseek): Delete.
1092 (fputs_unfiltered): Adjust.
1093 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
1094 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
1095 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
1096 (set_ui_file_data): Delete.
1097 (string_file::~string_file, string_file::write)
1098 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
1099 (do_ui_file_as_string, ui_file_as_string): Delete.
1100 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
1101 (struct mem_file): Delete.
1102 (mem_file_new): Delete.
1103 (stdio_file::stdio_file): New.
1104 (mem_file_delete): Delete.
1105 (stdio_file::stdio_file): New.
1106 (mem_fileopen): Delete.
1107 (stdio_file::~stdio_file): New.
1108 (mem_file_rewind): Delete.
1109 (stdio_file::set_stream): New.
1110 (mem_file_put): Delete.
1111 (stdio_file::open): New.
1112 (mem_file_write): Delete.
1113 (stdio_file_magic, struct stdio_file): Delete.
1114 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
1115 (stdio_file::flush): New.
1116 (stdio_file_read): Rename to ...
1117 (stdio_file::read): ... this. Adjust.
1118 (stdio_file_write): Rename to ...
1119 (stdio_file::write): ... this. Adjust.
1120 (stdio_file_write_async_safe): Rename to ...
1121 (stdio_file::write_async_safe) ... this. Adjust.
1122 (stdio_file_fputs): Rename to ...
1123 (stdio_file::puts) ... this. Adjust.
1124 (stdio_file_isatty): Delete.
1125 (stdio_file_fseek): Delete.
1126 (stdio_file::isatty): New.
1127 (stderr_file_write): Rename to ...
1128 (stderr_file::write) ... this. Adjust.
1129 (stderr_file_fputs): Rename to ...
1130 (stderr_file::puts) ... this. Adjust.
1131 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
1132 (stderr_file::stderr_file): New.
1133 (tee_file_magic): Delete.
1134 (struct tee_file): Delete.
1135 (tee_file::tee_file): New.
1136 (tee_file_new): Delete.
1137 (tee_file::~tee_file): New.
1138 (tee_file_delete): Delete.
1139 (tee_file_flush): Rename to ...
1140 (tee_file::flush): ... this. Adjust.
1141 (tee_file_write): Rename to ...
1142 (tee_file::write): ... this. Adjust.
1143 (tee_file::write_async_safe): New.
1144 (tee_file_fputs): Rename to ...
1145 (tee_file::puts): ... this. Adjust.
1146 (tee_file_isatty): Rename to ...
1147 (tee_file::isatty): ... this. Adjust.
1148 * ui-file.h (struct obstack, struct ui_file): Don't
1149 forward-declare.
1150 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
1151 (ui_file_write_ftype)
1152 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
1153 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
1154 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
1155 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
1156 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
1157 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
1158 (set_ui_file_fseek): Delete.
1159 (ui_file_data, ui_file_delete, ui_file_rewind)
1160 (struct ui_file): New.
1161 (ui_file_up): New.
1162 (class null_file): New.
1163 (null_stream): Declare.
1164 (ui_file_write_for_put, ui_file_put): Delete.
1165 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
1166 Delete.
1167 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
1168 (gdb_fopen, tee_file_new): Delete.
1169 (struct string_file): New.
1170 (struct stdio_file): New.
1171 (stdio_file_up): New.
1172 (struct stderr_file): New.
1173 (class tee_file): New.
1174 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
1175 of a 'ui_file *'. Adjust.
1176 * ui-out.h (class ui_out) <field_stream>: Likewise.
1177 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
1178 (null_stream): Delete.
1179 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
1180 Adjust.
1181 * utils.h (struct ui_file): Delete forward declaration..
1182 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
1183 (error_stream): Take a 'string_file &' instead of a
1184 'ui_file *'.
1185 * varobj.c (varobj_value_get_print_value): Use string_file.
1186 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
1187 * gdbarch.c: Regenerate.
1188
1189 2017-02-02 Pedro Alves <palves@redhat.com>
1190
1191 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
1192 (gdb_pretty_print_insn): ... this. Now a free function. Add back
1193 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
1194 Adjust to call gdb_print_insn instead of
1195 gdb_disassembler::print_insn.
1196 (dump_insns, do_mixed_source_and_assembly_deprecated)
1197 (do_mixed_source_and_assembly, do_assembly_only): Add back a
1198 'gdbarch' parameter. Remove gdb_disassembler parameter.
1199 (gdb_disassembly): Don't allocate a gdb_disassembler here.
1200 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
1201 declaration.
1202 (gdb_pretty_print_insn): Re-add declaration.
1203 * record-btrace.c (btrace_insn_history): Don't allocate a
1204 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
1205
1206 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * disasm.h (gdb_disassembly): Remove file_string parameter.
1209 * disasm.c (gdb_disassembly): Likewise.
1210 * cli/cli-cmds.c (print_disassembly): Adapt.
1211 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1212 * stack.c (do_gdb_disassembly): Likewise.
1213
1214 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
1217 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
1218 targets. And if the implicit value is longer than needed, extract
1219 the first bytes instead of the "least significant" ones.
1220
1221 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1222
1223 * btrace.c (btrace_enable): Do not call btrace_add_pc for
1224 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
1225 (btrace_fetch): Assert can_access_registers_ptid.
1226 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
1227 validate_registers_access.
1228
1229 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
1230
1231 * gdbthread.h (can_access_registers_ptid): New.
1232 * thread.c (can_access_registers_ptid): New.
1233
1234 2017-02-01 Pedro Alves <palves@redhat.com>
1235
1236 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
1237
1238 2017-01-31 Pedro Alves <palves@redhat.com>
1239
1240 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
1241 Fix typos.
1242
1243 2017-01-31 Pedro Alves <palves@redhat.com>
1244
1245 * stack.c (print_frame_args): Remove local mem_fileopen stream,
1246 not used.
1247
1248 2017-01-31 Pedro Alves <palves@redhat.com>
1249
1250 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
1251
1252 2017-01-31 Pedro Alves <palves@redhat.com>
1253
1254 * common/scoped_restore.h
1255 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
1256 change the value's parameter type to T2.
1257 (make_scoped_restore): Likewise.
1258
1259 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1260 Richard Henderson <rth@redhat.com>
1261
1262 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
1263 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
1264 GS_BASE for older kernels.
1265 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
1266 GS_BASE for older kernels.
1267 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
1268 and GS_BASE to the offset table.
1269 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
1270 system register group.
1271 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
1272 for older kernels.
1273 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
1274 amd64 ABI.
1275 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
1276 AMD64_GSBASE_REGNUM.
1277 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
1278 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
1279 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
1280 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
1281 i386/64bit-segments.xml in those rules.
1282 * features/i386/64bit-segments.xml: New file.
1283 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
1284 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
1285 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
1286 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
1287 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
1288 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
1289 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
1290 * features/i386/amd64-avx-linux.c: Regenerated.
1291 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
1292 * features/i386/amd64-avx-mpx.c: Regenerated.
1293 * features/i386/amd64-avx512-linux.c: Regenerated.
1294 * features/i386/amd64-linux.c: Regenerated.
1295 * features/i386/amd64-mpx-linux.c: Regenerated.
1296 * features/i386/i386-avx-mpx-linux.c: Regenerated.
1297 * features/i386/i386-avx-mpx.c: Regenerated.
1298 * features/i386/x32-avx-linux.c: Regenerated.
1299 * features/i386/x32-avx512-linux.c: Regenerated.
1300 * regformats/i386/amd64-avx-linux.dat: Regenerated.
1301 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
1302 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
1303 * regformats/i386/amd64-linux.dat: Regenerated.
1304 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
1305 * regformats/i386/x32-avx-linux.dat: Regenerated.
1306 * regformats/i386/x32-avx512-linux.dat: Regenerated.
1307 * regformats/i386/x32-linux.dat: Regenerated.
1308
1309 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1310
1311 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
1312 Set to AMD64_NUM_REGS.
1313
1314 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
1315
1316 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
1317 that checks validity of a register number.
1318
1319 2017-01-27 Kees Cook <keescook@google.com>
1320
1321 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
1322 fetch_fpregs if target has fpa registers.
1323 (arm_linux_store_inferior_registers): Call store_fpregs if target
1324 has fpa registers.
1325
1326 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
1327
1328 * cris-tdep.c (cris_gdbarch_init): Remove check for
1329 info.byte_order and force it to BFD_ENDIAN_LITTLE.
1330
1331 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
1332
1333 * corelow.c (get_core_register_section): Check for regset
1334 existence before checking for REGSET_VARIABLE_SIZE.
1335
1336 2017-01-26 Yao Qi <yao.qi@linaro.org>
1337 Pedro Alves <palves@redhat.com>
1338
1339 PR gdb/20939
1340 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
1341 call memory_error, save memaddr instead.
1342 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
1343 negative, cal memory_error.
1344 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
1345
1346 2017-01-26 Yao Qi <yao.qi@linaro.org>
1347
1348 * disasm-selftests.c (memory_error_test): New function.
1349 (_initialize_disasm_selftests): Register memory_error_test.
1350
1351 2017-01-26 Yao Qi <yao.qi@linaro.org>
1352
1353 * Makefile.in (SFILES): Add disasm-selftests.c and
1354 selftest-arch.c.
1355 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
1356 * disasm-selftests.c: New file.
1357 * selftest-arch.c: New file.
1358 * selftest-arch.h: New file.
1359
1360 2017-01-26 Yao Qi <yao.qi@linaro.org>
1361
1362 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
1363 to bfd_arch_mep. Don't return 0 if section is not
1364 found. Call print_insn_mep.
1365
1366 2017-01-26 Pedro Alves <palves@redhat.com>
1367 Yao Qi <yao.qi@linaro.org>
1368
1369 * arm-tdep.c: Include "disasm.h".
1370 (gdb_print_insn_arm): Update code to get gdbarch.
1371 * disasm.c (dis_asm_read_memory): Change it to
1372 gdb_disassembler::dis_asm_read_memory.
1373 (dis_asm_memory_error): Likewise.
1374 (dis_asm_print_address): Likewise.
1375 (gdb_pretty_print_insn): Change it to
1376 gdb_disassembler::pretty_print_insn.
1377 (dump_insns): Add one argument gdb_disassemlber. All
1378 callers updated.
1379 (do_mixed_source_and_assembly_deprecated): Likewise.
1380 (do_mixed_source_and_assembly): Likewise.
1381 (do_assembly_only): Likewise.
1382 (gdb_disassembler::gdb_disassembler): New.
1383 (gdb_disassembler::print_insn): New.
1384 * disasm.h (class gdb_disassembler): New.
1385 (gdb_pretty_print_insn): Remove declaration.
1386 (gdb_disassemble_info): Likewise.
1387 * guile/scm-disasm.c (class gdbscm_disassembler): New.
1388 (gdbscm_disasm_read_memory_worker): Update.
1389 (gdbscm_disasm_read_memory): Update.
1390 (gdbscm_disasm_memory_error): Remove.
1391 (gdbscm_disasm_print_address): Remove.
1392 (gdbscm_disassembler::gdbscm_disassembler): New.
1393 (gdbscm_print_insn_from_port): Update.
1394 * mips-tdep.c: Include disasm.h.
1395 (gdb_print_insn_mips): Update code to get gdbarch.
1396 * record-btrace.c (btrace_insn_history): Update.
1397 * spu-tdep.c: Include disasm.h.
1398 (struct spu_dis_asm_data): Remove.
1399 (struct spu_dis_asm_info): New.
1400 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
1401 SPU id.
1402 (gdb_print_insn_spu): Cast disassemble_info to
1403 spu_dis_asm_info.
1404
1405 2017-01-26 Yao Qi <yao.qi@linaro.org>
1406
1407 * disasm.c (do_ui_file_delete): Delete.
1408 (gdb_insn_length): Move code creating stream to ...
1409 * utils.c (null_stream): ... here. New function.
1410 * utils.h (null_stream): Declare.
1411
1412 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * python/py-inferior.c (find_thread_object): Return directly
1415 from the loop. Remove "found" variable.
1416
1417 2017-01-21 Joel Brobecker <brobecker@adacore.com>
1418
1419 GDB 7.12.1 released.
1420
1421 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
1422
1423 * python/py-function.c (fnpy_call): Reorder declarations to have
1424 the gdbpy_enter object declared first.
1425 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
1426
1427 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 PR python/21068
1430 * python/python-internal.h (PyMem_RawMalloc): Define for
1431 Python < 3.4.
1432 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
1433 PyMem_RawMalloc instead of PyMem_Malloc.
1434
1435 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
1436 Luis Machado <lgustavo@codesourcery.com>
1437
1438 * NEWS (New commands): Mention flash-erase.
1439 (New MI commands): Mention target-flash-erase.
1440 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
1441 command.
1442 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
1443 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
1444 * target.c (flash_erase_command): New function.
1445 (initialize_targets): Add new flash-erase command.
1446 * target.h (flash_erase_command): New declaration.
1447
1448 2017-01-20 Joel Brobecker <brobecker@adacore.com>
1449
1450 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
1451 HAVE_SYS_PROCFS_H is defined.
1452
1453 2017-01-18 Alan Hayward <alan.hayward@arm.com>
1454
1455 * remote.c (struct cached_reg): Change data into a pointer.
1456 * (stop_reply_dtr): Free data pointers before deleting vector.
1457 (process_stop_reply): Likewise.
1458 (remote_parse_stop_reply): Allocate space for data
1459
1460 2017-01-18 Alan Hayward <alan.hayward@arm.com>
1461
1462 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
1463 MAX_REGISTER_SIZE.
1464 (amd64_pseudo_register_read_value): Likewise.
1465 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
1466 (store_register_using_P): Likewise.
1467 * regcache.c (regcache_xfer_part): Likewise.
1468
1469 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
1470
1471 Split real and pseudo registers.
1472 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
1473 (sparc32_pseudo_regnum): New enum.
1474 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
1475 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
1476 (SPARC32_CP0_REGISTERS): New macro.
1477 (sparc32_pseudo_register_name): New function.
1478 (sparc32_register_name): Use sparc32_pseudo_register_name.
1479 (sparc32_pseudo_register_type): New function.
1480 (sparc32_register_type): Use sparc32_pseudo_register_type.
1481 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
1482 pseudo register numbers.
1483 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
1484 (SPARC64_CP0_REGISTERS): New macro.
1485 (sparc64_pseudo_register_name): New function.
1486 (sparc64_register_name): Use sparc64_pseudo_register_name.
1487 (sparc64_pseudo_register_type): New function.
1488 (sparc64_register_type): Use sparc64_pseudo_register_type.
1489 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
1490 pseudo register numbers.
1491 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
1492 sparc64_store_arguments): Handle pseudo register numbers.
1493
1494 2017-01-13 Yao Qi <yao.qi@linaro.org>
1495
1496 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
1497 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
1498 output.
1499 (getpkt_or_notif_sane_1): Likewise.
1500
1501 2017-01-13 Yao Qi <yao.qi@linaro.org>
1502
1503 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
1504 of CC. Pass "-x c++-header" instead of "-x c".
1505
1506 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
1507
1508 * remote.c (remote_can_async_p): Update comment.
1509
1510 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
1511
1512 * linux-nat.c (linux_nat_can_async_p): Update comment.
1513
1514 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
1515
1516 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
1517
1518 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
1519
1520 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
1521
1522 2017-01-10 Tom Tromey <tom@tromey.com>
1523
1524 * python/py-type.c (typy_legacy_template_argument): Update.
1525 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
1526 ~demangle_parse_info): Declare new members.
1527 (cp_demangled_name_to_comp): Return unique_ptr.
1528 (cp_demangled_name_parse_free)
1529 (make_cleanup_cp_demangled_name_parse_free)
1530 (cp_new_demangle_parse_info): Remove.
1531 * cp-support.c (do_demangled_name_parse_free_cleanup)
1532 (make_cleanup_cp_demangled_name_parse_free): Remove.
1533 (inspect_type, cp_canonicalize_string_full)
1534 (cp_canonicalize_string): Update.
1535 (mangled_name_to_comp): Change return type.
1536 (cp_class_name_from_physname, method_name_from_physname)
1537 (cp_func_name, cp_remove_params): Update.
1538 * cp-name-parser.y (demangle_parse_info): New constructor, from
1539 cp_new_demangle_parse_info.
1540 (~demangle_parse_info): New destructor, from
1541 cp_demangled_name_parse_free.
1542 (cp_merge_demangle_parse_infos): Update.
1543 (cp_demangled_name_to_comp): Change return type.
1544
1545 2017-01-10 Tom Tromey <tom@tromey.com>
1546
1547 * top.c (prevent_dont_repeat): Change return type.
1548 * python/python.c (execute_gdb_command): Use std::string.
1549 Update.
1550 * guile/guile.c (gdbscm_execute_gdb_command): Update.
1551 * command.h (prevent_dont_repeat): Change return type.
1552 * breakpoint.c (bpstat_do_actions_1): Update.
1553
1554 2017-01-10 Tom Tromey <tom@tromey.com>
1555
1556 * value.h (scoped_value_mark::~scoped_value_mark): Call
1557 free_to_mark.
1558 (scoped_value_mark::free_to_mark): New method.
1559 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1560 scoped_value_mark.
1561
1562 2017-01-10 Tom Tromey <tom@tromey.com>
1563
1564 * python/py-value.c (valpy_dereference, valpy_referenced_value)
1565 (valpy_reference_value, valpy_const_value, valpy_get_address)
1566 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1567 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
1568 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
1569 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1570 scoped_value_mark.
1571 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
1572 * value.h (scoped_value_mark): New class.
1573
1574 2017-01-10 Tom Tromey <tom@tromey.com>
1575
1576 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
1577 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
1578 * psymtab.c (discard_psymtabs_upto): Remove.
1579 (make_cleanup_discard_psymtabs): Remove.
1580 (struct psymtab_state): Remove.
1581
1582 2017-01-10 Tom Tromey <tom@tromey.com>
1583
1584 * record-full.c (record_full_save_cleanups): Remove.
1585 (record_full_save): Use gdb::unlinker.
1586 * gcore.c (do_bfd_delete_cleanup): Remove.
1587 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
1588 cleanups.
1589 * dwarf2read.c (unlink_if_set): Remove.
1590 (write_psymtabs_to_index): Use gdb::unlinker.
1591 * common/gdb_unlinker.h: New file.
1592
1593 2017-01-10 Tom Tromey <tom@tromey.com>
1594
1595 * windows-tdep.c (windows_xfer_shared_library): Update.
1596 * windows-nat.c (windows_make_so): Update.
1597 * utils.h (make_cleanup_bfd_unref): Remove.
1598 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
1599 * symfile.h (symfile_bfd_open)
1600 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
1601 * symfile.c (read_symbols, symbol_file_add)
1602 (separate_debug_file_exists): Update.
1603 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
1604 (generic_load, reread_symbols): Update.
1605 * symfile-mem.c (symbol_file_add_from_memory): Update.
1606 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
1607 (spu_symbol_file_add_from_memory): Update.
1608 * solist.h (struct target_so_ops) <bfd_open>: Return
1609 gdb_bfd_ref_ptr.
1610 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
1611 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
1612 gdb_bfd_ref_ptr.
1613 (solib_map_sections, reload_shared_libraries_1): Update.
1614 * solib-svr4.c (enable_break): Update.
1615 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
1616 * solib-frv.c (enable_break2): Update.
1617 * solib-dsbt.c (enable_break): Update.
1618 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
1619 gdb_bfd_ref_ptr.
1620 (darwin_solib_get_all_image_info_addr_at_init): Update.
1621 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
1622 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
1623 * record-full.c (record_full_save): Update.
1624 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
1625 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1626 * minidebug.c (find_separate_debug_file_in_section): Return
1627 gdb_bfd_ref_ptr.
1628 * machoread.c (macho_add_oso_symfile): Change abfd to
1629 gdb_bfd_ref_ptr.
1630 (macho_symfile_read_all_oso): Update.
1631 (macho_check_dsym): Return gdb_bfd_ref_ptr.
1632 (macho_symfile_read): Update.
1633 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
1634 (jit_bfd_try_read_symtab): Update.
1635 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1636 (gdb_bfd_openw, gdb_bfd_openr_iovec)
1637 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
1638 gdb_bfd_ref_ptr.
1639 (gdb_bfd_ref_policy): New struct.
1640 (gdb_bfd_ref_ptr): New typedef.
1641 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1642 (gdb_bfd_openw, gdb_bfd_openr_iovec)
1643 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
1644 gdb_bfd_ref_ptr.
1645 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
1646 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
1647 (gcore_command): Update.
1648 * exec.c (exec_file_attach): Update.
1649 * elfread.c (elf_symfile_read): Update.
1650 * dwarf2read.c (dwarf2_get_dwz_file): Update.
1651 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
1652 (open_and_init_dwo_file): Update.
1653 (open_dwp_file): Return gdb_bfd_ref_ptr.
1654 (open_and_init_dwp_file): Update.
1655 * corelow.c (core_open): Update.
1656 * compile/compile-object-load.c (compile_object_load): Update.
1657 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
1658 * coffread.c (coff_symfile_read): Update.
1659 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
1660 gdb_bfd_ref_ptr. Rename.
1661 (dump_bfd_file, restore_command): Update.
1662 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
1663 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
1664 (find_separate_debug_file_by_buildid): Update.
1665
1666 2017-01-10 Tom Tromey <tom@tromey.com>
1667
1668 * common/gdb_ref_ptr.h: New file.
1669 * python/py-ref.h (struct gdbpy_ref_policy): New.
1670 (gdbpy_ref): Now a typedef.
1671
1672 2017-01-10 Tom Tromey <tom@tromey.com>
1673
1674 * utils.h (make_cleanup_htab_delete): Don't declare.
1675 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
1676 Remove.
1677 * linespec.c (decode_compound_collector): Add constructor,
1678 destructor.
1679 (lookup_prefix_sym): Remove cleanup.
1680 (symtab_collector): Add constructor, destructor.
1681 (collect_symtabs_from_filename): Remove cleanup.
1682 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
1683 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1684 Use htab_up.
1685 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
1686 * dwarf2read.c (dw2_expand_symtabs_matching)
1687 (dw2_map_symbol_filenames, dwarf_decode_macros)
1688 (write_psymtabs_to_index): Use htab_up.
1689 * dwarf2loc.c (func_verify_no_selftailcall)
1690 (call_site_find_chain_1, func_verify_no_selftailcall)
1691 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
1692 std::vector, gdb::unique_xmalloc_ptr.
1693 (call_sitep): Remove typedef.
1694 (dwarf2_locexpr_baton_eval): Remove unused variable.
1695
1696 2017-01-10 Tom Tromey <tom@tromey.com>
1697
1698 * python/python-internal.h (make_cleanup_py_decref)
1699 (make_cleanup_py_xdecref): Don't declare.
1700 * python/py-utils.c (py_decref, make_cleanup_py_decref)
1701 (py_xdecref, make_cleanup_py_xdecref): Remove.
1702
1703 2017-01-10 Tom Tromey <tom@tromey.com>
1704
1705 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
1706 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
1707
1708 2017-01-10 Tom Tromey <tom@tromey.com>
1709
1710 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
1711
1712 2017-01-10 Tom Tromey <tom@tromey.com>
1713
1714 * python/py-utils.c (unicode_to_encoded_string)
1715 (python_string_to_target_string)
1716 (python_string_to_target_python_string)
1717 (python_string_to_host_string, gdbpy_obj_to_string)
1718 (get_addr_from_python): Use gdbpy_ref.
1719
1720 2017-01-10 Tom Tromey <tom@tromey.com>
1721
1722 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
1723 gdbpy_ref.
1724
1725 2017-01-10 Tom Tromey <tom@tromey.com>
1726
1727 * python/python.c (eval_python_command, gdbpy_decode_line)
1728 (gdbpy_run_events, gdbpy_start_type_printers)
1729 (gdbpy_apply_type_printers): Use gdbpy_ref.
1730
1731 2017-01-10 Tom Tromey <tom@tromey.com>
1732
1733 * python/py-param.c (get_doc_string, compute_enum_values): Use
1734 gdbpy_ref.
1735
1736 2017-01-10 Tom Tromey <tom@tromey.com>
1737
1738 * python/py-inferior.c (find_thread_object, build_inferior_list):
1739 Use gdbpy_ref.
1740
1741 2017-01-10 Tom Tromey <tom@tromey.com>
1742
1743 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
1744
1745 2017-01-10 Tom Tromey <tom@tromey.com>
1746
1747 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
1748 gdbpy_ref.
1749
1750 2017-01-10 Tom Tromey <tom@tromey.com>
1751
1752 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
1753 extra incref.
1754 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
1755 Use gdbpy_ref.
1756
1757 2017-01-10 Tom Tromey <tom@tromey.com>
1758
1759 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
1760 gdbpy_ref.
1761
1762 2017-01-10 Tom Tromey <tom@tromey.com>
1763
1764 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
1765 decref results of PyArg_ParseTupleAndKeywords.
1766
1767 2017-01-10 Tom Tromey <tom@tromey.com>
1768
1769 * python/python.c (python_run_simple_file): Use
1770 unique_xmalloc_ptr, gdbpy_ref.
1771
1772 2017-01-10 Tom Tromey <tom@tromey.com>
1773
1774 * python/py-prettyprint.c (print_stack_unless_memory_error)
1775 (print_string_repr, print_children): Use gdbpy_ref.
1776 (dummy_python_frame): New class.
1777 (dummy_python_frame::dummy_python_frame): Rename from
1778 push_dummy_python_frame.
1779 (py_restore_tstate): Remove.
1780
1781 2017-01-10 Tom Tromey <tom@tromey.com>
1782
1783 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
1784
1785 2017-01-10 Tom Tromey <tom@tromey.com>
1786
1787 * python/python.c (ensure_python_env, restore_python_env):
1788 Remove.
1789 * python/python-internal.h (ensure_python_env): Don't declare.
1790 * varobj.h (varobj_ensure_python_env): Don't declare.
1791 * varobj.c (varobj_ensure_python_env): Remove.
1792
1793 2017-01-10 Tom Tromey <tom@tromey.com>
1794
1795 * varobj.c (varobj_value_get_print_value): Use
1796 gdbpy_enter_varobj.
1797
1798 2017-01-10 Tom Tromey <tom@tromey.com>
1799
1800 * python/py-prettyprint.c (print_string_repr, print_children):
1801 Update.
1802 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
1803 of "encoding".
1804 * varobj.c (varobj_value_get_print_value): Update.
1805 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1806
1807 2017-01-10 Tom Tromey <tom@tromey.com>
1808
1809 * varobj.c (varobj_get_display_hint)
1810 (dynamic_varobj_has_child_method, install_new_value_visualizer)
1811 (varobj_set_visualizer, free_variable): Use
1812 gdbpy_enter_varobj.
1813
1814 2017-01-10 Tom Tromey <tom@tromey.com>
1815
1816 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
1817 (do_finish_initialization): New function. Use gdbpy_ref.
1818 (gdbpy_finish_initialization): Use gdbpy_enter. Call
1819 do_finish_initialization.
1820
1821 2017-01-10 Tom Tromey <tom@tromey.com>
1822
1823 * python/py-param.c (get_set_value, get_show_value): Use
1824 gdbpy_enter, gdbpy_ref.
1825
1826 2017-01-10 Tom Tromey <tom@tromey.com>
1827
1828 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
1829
1830 2017-01-10 Tom Tromey <tom@tromey.com>
1831
1832 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
1833
1834 2017-01-10 Tom Tromey <tom@tromey.com>
1835
1836 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
1837 Use gdbpy_enter_varobj.
1838
1839 2017-01-10 Tom Tromey <tom@tromey.com>
1840
1841 * varobj.c (gdbpy_enter_varobj): New constructor.
1842 * python/python-internal.h (gdbpy_enter_varobj): New class.
1843 * python/py-varobj.c (py_varobj_get_iterator): Use
1844 gdbpy_enter_varobj.
1845
1846 2017-01-10 Tom Tromey <tom@tromey.com>
1847
1848 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
1849 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
1850 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
1851 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
1852 unique_xmalloc_ptr.
1853 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
1854
1855 2017-01-10 Tom Tromey <tom@tromey.com>
1856
1857 * python/py-xmethods.c (invoke_match_method): Use
1858 gdbpy_ref.
1859
1860 2017-01-10 Tom Tromey <tom@tromey.com>
1861
1862 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
1863 gdbpy_enter, gdbpy_ref.
1864
1865 2017-01-10 Tom Tromey <tom@tromey.com>
1866
1867 * python/python.c (python_interactive_command): Use gdbpy_enter.
1868
1869 2017-01-10 Tom Tromey <tom@tromey.com>
1870
1871 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
1872 gdbpy_ref.
1873
1874 2017-01-10 Tom Tromey <tom@tromey.com>
1875
1876 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
1877 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
1878
1879 2017-01-10 Tom Tromey <tom@tromey.com>
1880
1881 * utils.h (htab_deleter): New struct.
1882 (htab_up): New typedef.
1883 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
1884 gdbpy_enter, gdbpy_ref, htab_up.
1885
1886 2017-01-10 Tom Tromey <tom@tromey.com>
1887
1888 * python/py-unwind.c (pending_frame_invalidate): Remove.
1889 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
1890
1891 2017-01-10 Tom Tromey <tom@tromey.com>
1892
1893 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
1894 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
1895
1896 2017-01-10 Tom Tromey <tom@tromey.com>
1897
1898 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
1899
1900 2017-01-10 Tom Tromey <tom@tromey.com>
1901
1902 * python/python.c (gdbpy_eval_from_control_command)
1903 (gdbpy_source_script, gdbpy_run_events)
1904 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
1905 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
1906 gdbpy_enter.
1907
1908 2017-01-10 Tom Tromey <tom@tromey.com>
1909
1910 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
1911
1912 2017-01-10 Tom Tromey <tom@tromey.com>
1913
1914 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
1915
1916 2017-01-10 Tom Tromey <tom@tromey.com>
1917
1918 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1919 (python_on_inferior_call_pre, python_on_inferior_call_post)
1920 (python_on_memory_change, python_on_register_change)
1921 (python_inferior_exit, python_new_objfile, add_thread_object)
1922 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
1923
1924 2017-01-10 Tom Tromey <tom@tromey.com>
1925
1926 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
1927 (bpfinishpy_handle_exit): Use gdbpy_enter.
1928
1929 2017-01-10 Tom Tromey <tom@tromey.com>
1930
1931 * python/py-cmd.c (cmdpy_destroyer)
1932 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
1933 gdbpy_enter.
1934
1935 2017-01-10 Tom Tromey <tom@tromey.com>
1936
1937 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
1938 gdbpy_enter.
1939 (gdbpy_breakpoint_has_cond): Likewise.
1940
1941 2017-01-10 Tom Tromey <tom@tromey.com>
1942
1943 * python/python.c (gdbpy_enter): New constructor.
1944 (~gdbpy_enter): New destructor.
1945 (restore_python_env, ensure_python_env): Rewrite.
1946 * python/python-internal.h (gdbpy_enter): New class.
1947
1948 2017-01-10 Tom Tromey <tom@tromey.com>
1949
1950 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
1951
1952 2017-01-10 Tom Tromey <tom@tromey.com>
1953
1954 * python/py-value.c (value_has_field, get_field_flag)
1955 (get_field_type, valpy_getitem, convert_value_from_python): Use
1956 gdbpy_ref.
1957
1958 2017-01-10 Tom Tromey <tom@tromey.com>
1959
1960 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
1961 gdbpy_ref.
1962
1963 2017-01-10 Tom Tromey <tom@tromey.com>
1964
1965 * python/py-prettyprint.c (search_pp_list)
1966 (find_pretty_printer_from_objfiles)
1967 (find_pretty_printer_from_progspace)
1968 (find_pretty_printer_from_gdb, find_pretty_printer)
1969 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
1970 gdbpy_ref.
1971
1972 2017-01-10 Tom Tromey <tom@tromey.com>
1973
1974 * python/py-param.c (call_doc_function): Use gdbpy_ref.
1975
1976 2017-01-10 Tom Tromey <tom@tromey.com>
1977
1978 * python/py-linetable.c (build_line_table_tuple_from_pcs)
1979 (ltpy_get_all_source_lines): Use gdbpy_ref.
1980
1981 2017-01-10 Tom Tromey <tom@tromey.com>
1982
1983 * python/py-framefilter.c (extract_sym, extract_value)
1984 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
1985 gdbpy_ref.
1986
1987 2017-01-10 Tom Tromey <tom@tromey.com>
1988
1989 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
1990
1991 2017-01-10 Tom Tromey <tom@tromey.com>
1992
1993 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
1994
1995 2017-01-10 Tom Tromey <tom@tromey.com>
1996
1997 * python/py-function.c (convert_values_to_python, fnpy_init): Use
1998 gdbpy_ref.
1999
2000 2017-01-10 Tom Tromey <tom@tromey.com>
2001
2002 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
2003
2004 2017-01-10 Tom Tromey <tom@tromey.com>
2005
2006 * python/py-type.c (convert_field, make_fielditem, typy_fields)
2007 (typy_range): Use gdbpy_ref.
2008
2009 2017-01-10 Tom Tromey <tom@tromey.com>
2010
2011 * python/py-threadevent.c (create_thread_event_object): Use
2012 gdbpy_ref.
2013 * python/py-stopevent.c (create_stop_event_object): Simplify.
2014 (emit_stop_event): Use gdbpy_ref.
2015 * python/py-signalevent.c (create_signal_event_object): Use
2016 gdbpy_ref.
2017 * python/py-newobjfileevent.c (create_new_objfile_event_object)
2018 (emit_new_objfile_event, create_clear_objfiles_event_object)
2019 (emit_clear_objfiles_event): Use gdbpy_ref.
2020 * python/py-infevents.c (create_inferior_call_event_object)
2021 (create_register_changed_event_object)
2022 (create_memory_changed_event_object, emit_inferior_call_event)
2023 (emit_memory_changed_event, emit_register_changed_event): Use
2024 gdbpy_ref.
2025 * python/py-exitedevent.c (create_exited_event_object)
2026 (emit_exited_event): Use gdbpy_ref.
2027 * python/py-event.h (evpy_emit_event): Remove
2028 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
2029 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
2030 * python/py-continueevent.c (emit_continue_event): Use
2031 gdbpy_ref.
2032 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2033 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
2034 gdbpy_ref.
2035 * python/py-bpevent.c (create_breakpoint_event_object): Use
2036 gdbpy_ref.
2037
2038 2017-01-10 Tom Tromey <tom@tromey.com>
2039
2040 * python/py-ref.h: New file.
2041
2042 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2043
2044 * cli-out.c (cli_ui_out::do_redirect): Change return type to
2045 void.
2046 * cli-out.h (cli_ui_out::do_redirect): Likewise.
2047 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
2048 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
2049 * ui-out.c (ui_out::redirect): Likewise.
2050 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
2051 * cli/cli-logging.c (set_logging_redirect): Update call site of
2052 ui_out::redirect.
2053 (handle_redirections): Likewise.
2054 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
2055 * top.c (execute_command_to_string): Likewise.
2056 * utils.c (do_ui_out_redirect_pop): Likewise.
2057
2058 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
2059
2060 * stack.c (_initialize_stack): Update "frame" command help message.
2061
2062 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
2063
2064 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
2065
2066 2017-01-06 Yao Qi <yao.qi@linaro.org>
2067
2068 * x86-linux-nat.h: Include gdb_proc_service.h.
2069
2070 2017-01-06 Yao Qi <yao.qi@linaro.org>
2071
2072 * ser-base.h: Include serial.h.
2073
2074 2017-01-06 Yao Qi <yao.qi@linaro.org>
2075
2076 * ppc-linux-tdep.h: Include ppc-tdep.h.
2077
2078 2017-01-06 Yao Qi <yao.qi@linaro.org>
2079
2080 * nat/amd64-linux-siginfo.h: Include signal.h.
2081
2082 2017-01-06 Yao Qi <yao.qi@linaro.org>
2083
2084 * nat/aarch64-linux-hw-point.h: Include break-common.h.
2085
2086 2017-01-06 Yao Qi <yao.qi@linaro.org>
2087
2088 * mi/mi-parse.h: Include mi-cmds.h.
2089
2090 2017-01-06 Yao Qi <yao.qi@linaro.org>
2091
2092 * inf-loop.c: Don't include "target.h".
2093 * inf-loop.h: Include it here.
2094
2095 2017-01-06 Yao Qi <yao.qi@linaro.org>
2096
2097 * dfp.h: Include "dboulest.h" and "expression.h".
2098
2099 2017-01-06 Yao Qi <yao.qi@linaro.org>
2100
2101 * ax-gdb.h: Include "ax.h".
2102
2103 2017-01-06 Yao Qi <yao.qi@linaro.org>
2104
2105 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
2106 with nat/gdb_ptrace.h.
2107
2108 2017-01-05 Yao Qi <yao.qi@linaro.org>
2109
2110 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
2111 new line.
2112 (mips64_fbsd_sigframe_init): Likewise.
2113
2114 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2115
2116 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
2117 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
2118
2119 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2120
2121 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2122 * NEWS: Mention new FreeBSD/mips native configuration.
2123 * config/mips/fbsd.mh: New file.
2124 * configure.host: Add mips*-*-freebsd*.
2125 * mips-fbsd-nat.c: New file.
2126
2127 2017-01-04 John Baldwin <jhb@FreeBSD.org>
2128
2129 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
2130 (ALLDEPFILES): Add mips-fbsd-tdep.c.
2131 * NEWS: Mention new FreeBSD/mips target.
2132 * configure.tgt: Add mips*-*-freebsd*.
2133 * mips-fbsd-tdep.c: New file.
2134 * mips-fbsd-tdep.h: New file.
2135
2136 2017-01-04 Yao Qi <yao.qi@linaro.org>
2137
2138 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
2139 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
2140
2141 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2142
2143 Update copyright year range in all GDB files.
2144
2145 2017-01-01 Joel Brobecker <brobecker@adacore.com>
2146
2147 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
2148
2149 For older changes see ChangeLog-2016.
2150 \f
2151 Local Variables:
2152 mode: change-log
2153 left-margin: 8
2154 fill-column: 74
2155 version-control: never
2156 coding: utf-8
2157 End:
This page took 0.070904 seconds and 5 git commands to generate.