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