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