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