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