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