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