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