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