Remove some ui_out-related cleanups from Python
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d4b0bb18
TT
12017-02-10 Tom Tromey <tom@tromey.com>
2
3 * ui-out.h (ui_out_emit_type): New class.
4 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
5 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
6 and ui_out_emit_tuple.
7 (enumerate_locals): Likewise.
8 (py_mi_print_variables, py_print_locals, py_print_args): Use
9 ui_out_emit_list.
10 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
11 ui_out_emit_list.
12 * common/gdb_optional.h: New file.
13
f67f945c
MG
142017-02-10 Martin Galvan <martingalvan@sourceware.org>
15
16 * MAINTAINERS (Write After Approval): Update my e-mail address.
17
18da0c51
MG
182017-02-10 Martin Galvan <martingalvan@sourceware.org>
19
20 PR gdb/21122
21 * breakpoint.c (_initialize_breakpoint): Update the help description
22 of the 'commands' command to indicate that it takes a list argument.
23
62c14536
SM
242017-02-09 Simon Marchi <simon.marchi@ericsson.com>
25
26 * interps.c (current_interp_set_logging): Remove "return".
27
ff6fa247
GB
282017-02-09 Gary Benson <gbenson@redhat.com>
29
30 * symtab.c (add_symtab_completions): Prevent NULL pointer
31 dereference.
32
a474bd8e
PA
332017-02-08 Pedro Alves <palves@redhat.com>
34
35 * interps.c (interp::interp): Remove reference to quiet_p.
36 (interp_set): Make static. Remove dead "Switching to" output
37 code.
38 (interp_quiet_p, interp_set_quiet): Delete.
39 (interpreter_exec_cmd): Don't set the interpreter quiet.
40 * interps.h (interp_quiet_p): Make static.
41 (class interp) <quiet_p>: Remove field
42
3d7b173c
JG
432017-02-08 Jerome Guitton <guitton@adacore.com>
44
604c4576
JG
45 * cli/cli-decode.c (find_command_name_length): Make it extern.
46 * cli/cli-decode.h (find_command_name_length): Declare.
47 * cli/cli-script.c (command_name_equals, line_first_arg):
48 New functions.
49 (process_next_line): Use cli-decode to parse command names.
50 (build_command_line): Make args a constant pointer.
51
522017-02-08 Jerome Guitton <guitton@adacore.com>
53
3d7b173c
JG
54 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
55 Remove case-insensitive search.
56
1291063d
JM
572017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
58
59 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
60 at the end of the line. Avoids an ARI warning.
61
20b477a7
LM
622017-02-06 Luis Machado <lgustavo@codesourcery.com>
63
64 * NEWS: Mention support for record/replay of Intel 64 rdrand and
65 rdseed instructions.
66 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
67
3f7b46f2
IR
682017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
69
70 PR tdep/20936
71 Provide and use sparc32 and sparc64 target description XML files.
72 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
73 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
74 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
75 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
76 * features/sparc/sparc32-solaris.xml: New file.
77 * features/sparc/sparc64-solaris.xml: New file.
78 * features/sparc/sparc32-solaris.c: Generated.
79 * features/sparc/sparc64-solaris.c: Generated.
80 * sparc-tdep.h: Account for differences in target descriptions.
81 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
82 (sparc32_register_type): Use target provided registers.
83 (validate_tdesc_registers): New function.
84 (sparc32_gdbarch_init): Use tdesc_has_registers.
85 Set pseudoregister functions.
86 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
87 (sparc64_register_type): Use target provided registers.
88 (sparc64_init_abi): Set pseudoregister functions.
89
f0fd41c1
TT
902017-02-03 Tom Tromey <tom@tromey.com>
91
92 PR rust/21097:
93 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
94 with a single member.
95
d6f9b0fb
PA
962017-02-03 Pedro Alves <palves@redhat.com>
97
98 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
99 (cli_interp_base::~cli_interp_base): New.
100 (cli_interp): New struct.
101 (as_cli_interp): Cast the interp itself to cli_interp.
102 (cli_interpreter_pre_command_loop): Rename to ...
103 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
104 parameter.
105 (cli_interpreter_init): Rename to ...
106 (cli_interp::init): ... this. Remove 'self' parameter. Use
107 boolean. Make extern.
108 (cli_interpreter_resume): Rename to ...
109 (cli_interp::resume): ... this. Remove 'data' parameter. Make
110 extern.
111 (cli_interpreter_suspend): Rename to ...
112 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
113 extern.
114 (cli_interpreter_exec): Rename to ...
115 (cli_interp::exec): ... this. Remove 'data' parameter. Make
116 extern.
117 (cli_interpreter_supports_command_editing): Rename to ...
118 (cli_interp_base::supports_command_editing): ... this. Remove
119 'interp' parameter. Make extern.
120 (cli_ui_out): Rename to ...
121 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
122 Make extern.
123 (cli_set_logging): Rename to ...
124 (cli_interp_base::set_logging): ... this. Remove 'interp'
125 parameter. Make extern.
126 (cli_interp_procs): Delete.
127 (cli_interp_factory): Adjust to use "new".
128 * cli/cli-interp.h: Include "interps.h".
129 (struct cli_interp_base): New struct.
130 * interps.c (struct interp): Delete. Fields moved to interps.h.
131 (interp_new): Delete.
132 (interp::interp, interp::~interp): New.
133 (interp_set): Use bool, and return void. Assume the interpreter
134 has suspend, init and resume methods, and that the all return
135 void.
136 (set_top_level_interpreter): interp_set returns void.
137 (interp_ui_out): Adapt.
138 (current_interp_set_logging): Adapt.
139 (interp_data): Delete.
140 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
141 (interp_exec): Adapt.
142 (top_level_interpreter_data): Delete.
143 * interps.h (interp_init_ftype, interp_resume_ftype)
144 (interp_suspend_ftype, interp_exec_ftype)
145 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
146 (class interp): New.
147 (interp_new): Delete.
148 (interp_set): Now returns void. Use bool.
149 (interp_data, top_level_interpreter_data): Delete.
150 * mi/mi-common.h: Include interps.h.
151 (class mi_interp): Inherit from interp. Define a ctor. Declare
152 init, resume, suspect, exec, interp_ui_out, set_logging and
153 pre_command_loop methods.
154 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
155 (mi_interpreter_init): Rename to ...
156 (mi_interp::init): ... this. Remove the 'interp' parameter, use
157 bool, return void and make extern. Adjust.
158 (mi_interpreter_resume): ... Rename to ...
159 (mi_interp::resume): ... this. Remove the 'data' parameter,
160 return void and make extern. Adjust.
161 (mi_interpreter_suspend): ... Rename to ...
162 (mi_interp::suspend): ... this. Remove the 'data' parameter,
163 return void and make extern. Adjust.
164 (mi_interpreter_exec): ... Rename to ...
165 (mi_interp::exec): ... this. Remove the 'data' parameter and make
166 extern. Adjust.
167 (mi_interpreter_pre_command_loop): ... Rename to ...
168 (mi_interp::pre_command_loop): ... this. Remove the 'self'
169 parameter and make extern.
170 (mi_on_normal_stop_1): Adjust.
171 (mi_ui_out): Rename to ...
172 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
173 parameter and make extern. Adjust.
174 (mi_set_logging): Rename to ...
175 (mi_interp::set_logging): ... this. Remove the 'interp'
176 parameter and make extern. Adjust.
177 (mi_interp_procs): Delete.
178 (mi_interp_factory): Adjust to use 'new'.
179 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
180 (mi_print_exception, mi_execute_command, mi_load_progress):
181 Adjust.
182 * tui/tui-interp.c (tui_interp): New class.
183 (as_tui_interp): Return a tui_interp pointer.
184 (tui_on_normal_stop, tui_on_signal_received)
185 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
186 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
187 to use interp::interp_ui_out.
188 (tui_init): Rename to ...
189 (tui_interp::init): ... this. Remove the 'self' parameter, use
190 bool, return void and make extern. Adjust.
191 (tui_resume): Rename to ...
192 (tui_interp::resume): ... this. Remove the 'data' parameter,
193 return void and make extern. Adjust.
194 (tui_suspend): Rename to ...
195 (tui_interp::suspend): ... this. Remove the 'data' parameter,
196 return void and make extern. Adjust.
197 (tui_ui_out): Rename to ...
198 (tui_interp::interp_ui_out): ... this. Remove the 'self'
199 parameter, and make extern. Adjust.
200 (tui_exec): Rename to ...
201 (tui_interp::exec): ... this. Remove the 'data' parameter and
202 make extern.
203 (tui_interp_procs): Delete.
204 (tui_interp_factory): Use "new".
205
65c40c95
TT
2062017-02-02 Tom Tromey <tom@tromey.com>
207
208 * rust-exp.y (ends_raw_string, space_then_number)
209 (rust_identifier_start_p): Return bool.
210 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
211 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
212 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
213 (rust_chartype_p): Return bool.
214 (val_print_struct, rust_print_struct_def, rust_print_type):
215 Update.
216 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
217 Return bool.
218
b50f188d
TT
2192017-02-02 Tom Tromey <tom@tromey.com>
220
221 * rust-lang.c: Reindent.
222
03c85b11
TT
2232017-02-02 Tom Tromey <tom@tromey.com>
224
225 * rust-lang.h (rust_crate_for_block): Update.
226 * rust-lang.c (rust_crate_for_block): Return std::string.
227 (rust_get_disr_info): Use std:;string, not
228 gdb::unique_xmalloc_ptr.
229 * rust-exp.y (crate_name): Update.
230
9b6da501
PA
2312017-02-02 Pedro Alves <palves@redhat.com>
232
233 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
234 field out of gdb_disassembler_test and make it static.
235
ec4cb20b
PA
2362017-02-02 Pedro Alves <palves@redhat.com>
237
238 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
239 mi1_interp and mi_interp fields.
240
5be5dbf0
PA
2412017-02-02 Pedro Alves <palves@redhat.com>
242
616268b6
PA
243 * cli/cli-interp.c (struct saved_output_files, saved_output):
244 Moved from cli/cli-logging.c.
245 (cli_set_logging): New function.
246 (cli_interp_procs): Install cli_set_logging.
247 * cli/cli-interp.h (make_logging_output, cli_set_logging):
248 Declare.
249 * cli/cli-logging.c (struct saved_output_files, saved_output):
250 Moved to cli/cli-interp.c.
251 (pop_output_files): Don't save outputs here.
252 (make_logging_output): New function.
253 (handle_redirections): Don't build tee nor save previous outputs
254 here.
255 * interps.c (current_interp_set_logging): Change prototype.
256 Assume there's always a set_logging_proc method installed.
257 * interps.h (interp_set_logging_ftype): Change prototype.
258 (current_interp_set_logging): Change prototype and adjust comment.
259 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
260 use make_logging_output.
261 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
2622017-02-02 Pedro Alves <palves@redhat.com>
263
5be5dbf0
PA
264 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
265 from ...
266 (set_logging_overwrite): ... here.
267 (logging_no_redirect_file): Delete.
268 (set_logging_redirect): Don't handle redirection on the fly.
269 Instead warn that "logging off" / "logging on" is necessary.
270 (pop_output_files): Delete references to logging_no_redirect_file.
271 (show_logging_command): Always speak in terms of what will happen
272 once logging is reenabled.
273
c99cc448
PA
2742017-02-02 Pedro Alves <palves@redhat.com>
275
276 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
277
8b172ce7
PA
2782017-02-02 Pedro Alves <palves@redhat.com>
279
280 * disasm.c (gdb_pretty_print_insn): Rename to ...
281 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
282 Remove gdbarch parameter. Adapt to clear the object's buffers
283 instead of allocating new buffers, and to print using the object's
284 gdb_disassembler instead of calling gdb_print_insn.
285 (dump_insns): Use gdb_pretty_print_disassembler.
286 * disasm.h (gdb_pretty_print_insn): Delete declaration.
287 (gdb_pretty_print_disassembler): New class.
288 * record-btrace.c (btrace_insn_history): Use
289 gdb_pretty_print_disassembler.
290
d7e74731
PA
2912017-02-02 Pedro Alves <palves@redhat.com>
292
293 * ada-lang.c (type_as_string): Use string_file.
294 * ada-valprint.c (ada_print_floating): Use string_file.
295 * ada-varobj.c (ada_varobj_scalar_image)
296 (ada_varobj_get_value_image): Use string_file.
297 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
298 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
299 * breakpoint.c (update_inserted_breakpoint_locations)
300 (insert_breakpoint_locations, reattach_breakpoints)
301 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
302 (print_it_watchpoint): Use string_file.
303 (save_breakpoints): Use stdio_file.
304 * c-exp.y (oper): Use string_file.
305 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
306 tee_file.
307 (pop_output_files): Use delete.
308 (handle_redirections): Use stdio_file and tee_file.
309 * cli/cli-setshow.c (do_show_command): Use string_file.
310 * compile/compile-c-support.c (c_compute_program): Use
311 string_file.
312 * compile/compile-c-symbols.c (generate_vla_size): Take a
313 'string_file &' instead of a 'ui_file *'.
314 (generate_c_for_for_one_variable): Take a 'string_file &' instead
315 of a 'ui_file *'. Use string_file.
316 (generate_c_for_variable_locations): Take a 'string_file &'
317 instead of a 'ui_file *'.
318 * compile/compile-internal.h (generate_c_for_for_one_variable):
319 Take a 'string_file &' instead of a 'ui_file *'.
320 * compile/compile-loc2c.c (push, pushf, unary, binary)
321 (print_label, pushf_register_address, pushf_register)
322 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
323 'ui_file *'. Adjust.
324 * compile/compile.c (compile_to_object): Use string_file.
325 * compile/compile.h (compile_dwarf_expr_to_c)
326 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
327 'ui_file *'.
328 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
329 (replace_typedefs_qualified_name): Use string_file and
330 obstack_copy0.
331 * disasm.c (gdb_pretty_print_insn): Use string_file.
332 (gdb_disassembly): Adjust reference the null_stream global.
333 (do_ui_file_delete): Delete.
334 (gdb_insn_length): Use null_stream.
335 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
336 * dwarf2loc.c (dwarf2_compile_property_to_c)
337 (locexpr_generate_c_location, loclist_generate_c_location): Take a
338 'string_file &' instead of a 'ui_file *'.
339 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
340 * dwarf2read.c (do_ui_file_peek_last): Delete.
341 (dwarf2_compute_name): Use string_file.
342 * event-top.c (gdb_setup_readline): Use stdio_file.
343 * gdbarch.sh (verify_gdbarch): Use string_file.
344 * gdbtypes.c (safe_parse_type): Use null_stream.
345 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
346 string_file.
347 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
348 'string_file *' instead of a 'ui_file *'.
349 (gdbscm_arch_disassemble): Use string_file.
350 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
351 * guile/scm-ports.c (class ioscm_file_port): Now a class that
352 inherits from ui_file.
353 (ioscm_file_port_delete, ioscm_file_port_rewind)
354 (ioscm_file_port_put): Delete.
355 (ioscm_file_port_write): Rename to ...
356 (ioscm_file_port::write): ... this. Remove file_port_magic
357 checks.
358 (ioscm_file_port_new): Delete.
359 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
360 ui_file_up.
361 * guile/scm-type.c (tyscm_type_name): Use string_file.
362 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
363 Use string_file.
364 * infcmd.c (print_return_value_1): Use string_file.
365 * infrun.c (print_target_wait_results): Use string_file.
366 * language.c (add_language): Use string_file.
367 * location.c (explicit_to_string_internal): Use string_file.
368 * main.c (captured_main_1): Use null_file.
369 * maint.c (maintenance_print_architecture): Use stdio_file.
370 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
371 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
372 event_channel>: Change type to mi_console_file pointer.
373 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
374 (mi_console_file_delete): Delete.
375 (struct mi_console_file): Delete.
376 (mi_console_file_magic): Delete.
377 (mi_console_file_new): Delete.
378 (mi_console_file::mi_console_file): New.
379 (mi_console_file_delete): Delete.
380 (mi_console_file_fputs): Delete.
381 (mi_console_file::write): New.
382 (mi_console_raw_packet): Delete.
383 (mi_console_file::flush): New.
384 (mi_console_file_flush): Delete.
385 (mi_console_set_raw): Rename to ...
386 (mi_console_file::set_raw): ... this.
387 * mi/mi-console.h (class mi_console_file): New class.
388 (mi_console_file_new, mi_console_set_raw): Delete.
389 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
390 (mi_set_logging): Use delete and tee_file. Adjust.
391 * mi/mi-main.c (output_register): Use string_file.
392 (mi_cmd_data_evaluate_expression): Use string_file.
393 (mi_cmd_data_read_memory): Use string_file.
394 (mi_cmd_execute, print_variable_or_computed): Use string_file.
395 * mi/mi-out.c (mi_ui_out::main_stream): New.
396 (mi_ui_out::rewind): Use main_stream and
397 string_file.
398 (mi_ui_out::put): Use main_stream and string_file.
399 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
400 Allocate a 'string_file' instead.
401 (mi_out_new): Don't allocate a mem_fileopen stream here.
402 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
403 (mi_ui_out::main_stream): Declare method.
404 * printcmd.c (eval_command): Use string_file.
405 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
406 * python/py-arch.c (archpy_disassemble): Use string_file.
407 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
408 * python/py-frame.c (frapy_str): Use string_file.
409 * python/py-framefilter.c (py_print_type, py_print_single_arg):
410 Use string_file.
411 * python/py-type.c (typy_str): Use string_file.
412 * python/py-unwind.c (unwind_infopy_str): Use string_file.
413 * python/py-value.c (valpy_str): Use string_file.
414 * record-btrace.c (btrace_insn_history): Use string_file.
415 * regcache.c (regcache_print): Use stdio_file.
416 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
417 * remote.c (escape_buffer): Use string_file.
418 * rust-lang.c (rust_get_disr_info): Use string_file.
419 * serial.c (serial_open_ops_1): Use stdio_file.
420 (do_serial_close): Use delete.
421 * stack.c (print_frame_arg): Use string_file.
422 (print_frame_args): Remove local mem_fileopen stream, not used.
423 (print_frame): Use string_file.
424 * symmisc.c (maintenance_print_symbols): Use stdio_file.
425 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
426 Take a 'string_file *' instead of a 'ui_file *'.
427 * top.c (new_ui): Use stdio_file and stderr_file.
428 (free_ui): Use delete.
429 (execute_command_to_string): Use string_file.
430 (quit_confirm): Use string_file.
431 * tracepoint.c (collection_list::append_exp): Use string_file.
432 * tui/tui-disasm.c (tui_disassemble): Use string_file.
433 * tui/tui-file.c: Don't include "ui-file.h".
434 (enum streamtype, struct tui_stream): Delete.
435 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
436 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
437 (tui_file::tui_file): New method.
438 (tui_file_fputs): Delete.
439 (tui_file_get_strbuf): Delete.
440 (tui_file::puts): New method.
441 (tui_file_adjust_strbuf): Delete.
442 (tui_file_flush): Delete.
443 (tui_file::flush): New method.
444 * tui/tui-file.h: Tweak intro comment.
445 Include ui-file.h.
446 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
447 (tui_file_adjust_strbuf): Delete declarations.
448 (class tui_file): New class.
449 * tui/tui-io.c (tui_initialize_io): Use tui_file.
450 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
451 (tui_register_format): Use string_stream.
452 * tui/tui-stack.c (tui_make_status_line): Use string_file.
453 (tui_get_function_from_frame): Use string_file.
454 * typeprint.c (type_to_string): Use string_file.
455 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
456 (null_stream): New global.
457 (ui_file_delete): Delete.
458 (ui_file::ui_file): New.
459 (null_file_isatty): Delete.
460 (ui_file::~ui_file): New.
461 (null_file_rewind): Delete.
462 (ui_file::printf): New.
463 (null_file_put): Delete.
464 (null_file_flush): Delete.
465 (ui_file::putstr): New.
466 (null_file_write): Delete.
467 (ui_file::putstrn): New.
468 (null_file_read): Delete.
469 (ui_file::putc): New.
470 (null_file_fputs): Delete.
471 (null_file_write_async_safe): Delete.
472 (ui_file::vprintf): New.
473 (null_file_delete): Delete.
474 (null_file::write): New.
475 (null_file_fseek): Delete.
476 (null_file::puts): New.
477 (ui_file_data): Delete.
478 (null_file::write_async_safe): New.
479 (gdb_flush, ui_file_isatty): Adjust.
480 (ui_file_put, ui_file_rewind): Delete.
481 (ui_file_write): Adjust.
482 (ui_file_write_for_put): Delete.
483 (ui_file_write_async_safe, ui_file_read): Adjust.
484 (ui_file_fseek): Delete.
485 (fputs_unfiltered): Adjust.
486 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
487 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
488 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
489 (set_ui_file_data): Delete.
490 (string_file::~string_file, string_file::write)
491 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
492 (do_ui_file_as_string, ui_file_as_string): Delete.
493 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
494 (struct mem_file): Delete.
495 (mem_file_new): Delete.
496 (stdio_file::stdio_file): New.
497 (mem_file_delete): Delete.
498 (stdio_file::stdio_file): New.
499 (mem_fileopen): Delete.
500 (stdio_file::~stdio_file): New.
501 (mem_file_rewind): Delete.
502 (stdio_file::set_stream): New.
503 (mem_file_put): Delete.
504 (stdio_file::open): New.
505 (mem_file_write): Delete.
506 (stdio_file_magic, struct stdio_file): Delete.
507 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
508 (stdio_file::flush): New.
509 (stdio_file_read): Rename to ...
510 (stdio_file::read): ... this. Adjust.
511 (stdio_file_write): Rename to ...
512 (stdio_file::write): ... this. Adjust.
513 (stdio_file_write_async_safe): Rename to ...
514 (stdio_file::write_async_safe) ... this. Adjust.
515 (stdio_file_fputs): Rename to ...
516 (stdio_file::puts) ... this. Adjust.
517 (stdio_file_isatty): Delete.
518 (stdio_file_fseek): Delete.
519 (stdio_file::isatty): New.
520 (stderr_file_write): Rename to ...
521 (stderr_file::write) ... this. Adjust.
522 (stderr_file_fputs): Rename to ...
523 (stderr_file::puts) ... this. Adjust.
524 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
525 (stderr_file::stderr_file): New.
526 (tee_file_magic): Delete.
527 (struct tee_file): Delete.
528 (tee_file::tee_file): New.
529 (tee_file_new): Delete.
530 (tee_file::~tee_file): New.
531 (tee_file_delete): Delete.
532 (tee_file_flush): Rename to ...
533 (tee_file::flush): ... this. Adjust.
534 (tee_file_write): Rename to ...
535 (tee_file::write): ... this. Adjust.
536 (tee_file::write_async_safe): New.
537 (tee_file_fputs): Rename to ...
538 (tee_file::puts): ... this. Adjust.
539 (tee_file_isatty): Rename to ...
540 (tee_file::isatty): ... this. Adjust.
541 * ui-file.h (struct obstack, struct ui_file): Don't
542 forward-declare.
543 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
544 (ui_file_write_ftype)
545 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
546 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
547 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
548 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
549 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
550 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
551 (set_ui_file_fseek): Delete.
552 (ui_file_data, ui_file_delete, ui_file_rewind)
553 (struct ui_file): New.
554 (ui_file_up): New.
555 (class null_file): New.
556 (null_stream): Declare.
557 (ui_file_write_for_put, ui_file_put): Delete.
558 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
559 Delete.
560 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
561 (gdb_fopen, tee_file_new): Delete.
562 (struct string_file): New.
563 (struct stdio_file): New.
564 (stdio_file_up): New.
565 (struct stderr_file): New.
566 (class tee_file): New.
567 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
568 of a 'ui_file *'. Adjust.
569 * ui-out.h (class ui_out) <field_stream>: Likewise.
570 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
571 (null_stream): Delete.
572 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
573 Adjust.
574 * utils.h (struct ui_file): Delete forward declaration..
575 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
576 (error_stream): Take a 'string_file &' instead of a
577 'ui_file *'.
578 * varobj.c (varobj_value_get_print_value): Use string_file.
579 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
580 * gdbarch.c: Regenerate.
581
187808b0
PA
5822017-02-02 Pedro Alves <palves@redhat.com>
583
584 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
585 (gdb_pretty_print_insn): ... this. Now a free function. Add back
586 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
587 Adjust to call gdb_print_insn instead of
588 gdb_disassembler::print_insn.
589 (dump_insns, do_mixed_source_and_assembly_deprecated)
590 (do_mixed_source_and_assembly, do_assembly_only): Add back a
591 'gdbarch' parameter. Remove gdb_disassembler parameter.
592 (gdb_disassembly): Don't allocate a gdb_disassembler here.
593 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
594 declaration.
595 (gdb_pretty_print_insn): Re-add declaration.
596 * record-btrace.c (btrace_insn_history): Don't allocate a
597 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
598
7a8eb317
SM
5992017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * disasm.h (gdb_disassembly): Remove file_string parameter.
602 * disasm.c (gdb_disassembly): Likewise.
603 * cli/cli-cmds.c (print_disassembly): Adapt.
604 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
605 * stack.c (do_gdb_disassembly): Likewise.
606
7346ef59
AA
6072017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
608
609 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
610 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
611 targets. And if the implicit value is longer than needed, extract
612 the first bytes instead of the "least significant" ones.
613
cd4007e4
MM
6142017-02-01 Markus Metzger <markus.t.metzger@intel.com>
615
616 * btrace.c (btrace_enable): Do not call btrace_add_pc for
617 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
618 (btrace_fetch): Assert can_access_registers_ptid.
619 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
620 validate_registers_access.
621
cf77c34e
MM
6222017-02-01 Markus Metzger <markus.t.metzger@intel.com>
623
624 * gdbthread.h (can_access_registers_ptid): New.
625 * thread.c (can_access_registers_ptid): New.
626
be85ce7d
PA
6272017-02-01 Pedro Alves <palves@redhat.com>
628
629 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
630
29b0b251
PA
6312017-01-31 Pedro Alves <palves@redhat.com>
632
633 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
634 Fix typos.
635
289b5b24
PA
6362017-01-31 Pedro Alves <palves@redhat.com>
637
638 * stack.c (print_frame_args): Remove local mem_fileopen stream,
639 not used.
640
b47413b4
PA
6412017-01-31 Pedro Alves <palves@redhat.com>
642
643 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
644
60adb36c
PA
6452017-01-31 Pedro Alves <palves@redhat.com>
646
647 * common/scoped_restore.h
648 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
649 change the value's parameter type to T2.
650 (make_scoped_restore): Likewise.
651
2735833d
WT
6522017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
653 Richard Henderson <rth@redhat.com>
654
655 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
656 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
657 GS_BASE for older kernels.
658 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
659 GS_BASE for older kernels.
660 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
661 and GS_BASE to the offset table.
662 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
663 system register group.
664 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
665 for older kernels.
666 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
667 amd64 ABI.
668 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
669 AMD64_GSBASE_REGNUM.
670 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
671 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
672 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
673 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
674 i386/64bit-segments.xml in those rules.
675 * features/i386/64bit-segments.xml: New file.
676 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
677 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
678 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
679 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
680 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
681 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
682 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
683 * features/i386/amd64-avx-linux.c: Regenerated.
684 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
685 * features/i386/amd64-avx-mpx.c: Regenerated.
686 * features/i386/amd64-avx512-linux.c: Regenerated.
687 * features/i386/amd64-linux.c: Regenerated.
688 * features/i386/amd64-mpx-linux.c: Regenerated.
689 * features/i386/i386-avx-mpx-linux.c: Regenerated.
690 * features/i386/i386-avx-mpx.c: Regenerated.
691 * features/i386/x32-avx-linux.c: Regenerated.
692 * features/i386/x32-avx512-linux.c: Regenerated.
693 * regformats/i386/amd64-avx-linux.dat: Regenerated.
694 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
695 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
696 * regformats/i386/amd64-linux.dat: Regenerated.
697 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
698 * regformats/i386/x32-avx-linux.dat: Regenerated.
699 * regformats/i386/x32-avx512-linux.dat: Regenerated.
700 * regformats/i386/x32-linux.dat: Regenerated.
701
8884e97e
WT
7022017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
703
704 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
705 Set to AMD64_NUM_REGS.
706
7005d26a
WT
7072017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
708
709 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
710 that checks validity of a register number.
711
4bd2e1b2
KC
7122017-01-27 Kees Cook <keescook@google.com>
713
714 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
715 fetch_fpregs if target has fpa registers.
716 (arm_linux_store_inferior_registers): Call store_fpregs if target
717 has fpa registers.
718
7cf1de6c
AA
7192017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
720
721 * cris-tdep.c (cris_gdbarch_init): Remove check for
722 info.byte_order and force it to BFD_ENDIAN_LITTLE.
723
874a1c8c
AT
7242017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
725
726 * corelow.c (get_core_register_section): Check for regset
727 existence before checking for REGSET_VARIABLE_SIZE.
728
d8b49cf0
YQ
7292017-01-26 Yao Qi <yao.qi@linaro.org>
730 Pedro Alves <palves@redhat.com>
731
732 PR gdb/20939
733 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
734 call memory_error, save memaddr instead.
735 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
736 negative, cal memory_error.
737 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
738
658ca58c
YQ
7392017-01-26 Yao Qi <yao.qi@linaro.org>
740
741 * disasm-selftests.c (memory_error_test): New function.
742 (_initialize_disasm_selftests): Register memory_error_test.
743
79843d45
YQ
7442017-01-26 Yao Qi <yao.qi@linaro.org>
745
746 * Makefile.in (SFILES): Add disasm-selftests.c and
747 selftest-arch.c.
748 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
749 * disasm-selftests.c: New file.
750 * selftest-arch.c: New file.
751 * selftest-arch.h: New file.
752
8cafda32
YQ
7532017-01-26 Yao Qi <yao.qi@linaro.org>
754
755 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
756 to bfd_arch_mep. Don't return 0 if section is not
757 found. Call print_insn_mep.
758
e47ad6c0
YQ
7592017-01-26 Pedro Alves <palves@redhat.com>
760 Yao Qi <yao.qi@linaro.org>
761
762 * arm-tdep.c: Include "disasm.h".
763 (gdb_print_insn_arm): Update code to get gdbarch.
764 * disasm.c (dis_asm_read_memory): Change it to
765 gdb_disassembler::dis_asm_read_memory.
766 (dis_asm_memory_error): Likewise.
767 (dis_asm_print_address): Likewise.
768 (gdb_pretty_print_insn): Change it to
769 gdb_disassembler::pretty_print_insn.
770 (dump_insns): Add one argument gdb_disassemlber. All
771 callers updated.
772 (do_mixed_source_and_assembly_deprecated): Likewise.
773 (do_mixed_source_and_assembly): Likewise.
774 (do_assembly_only): Likewise.
775 (gdb_disassembler::gdb_disassembler): New.
776 (gdb_disassembler::print_insn): New.
777 * disasm.h (class gdb_disassembler): New.
778 (gdb_pretty_print_insn): Remove declaration.
779 (gdb_disassemble_info): Likewise.
780 * guile/scm-disasm.c (class gdbscm_disassembler): New.
781 (gdbscm_disasm_read_memory_worker): Update.
782 (gdbscm_disasm_read_memory): Update.
783 (gdbscm_disasm_memory_error): Remove.
784 (gdbscm_disasm_print_address): Remove.
785 (gdbscm_disassembler::gdbscm_disassembler): New.
786 (gdbscm_print_insn_from_port): Update.
787 * mips-tdep.c: Include disasm.h.
788 (gdb_print_insn_mips): Update code to get gdbarch.
789 * record-btrace.c (btrace_insn_history): Update.
790 * spu-tdep.c: Include disasm.h.
791 (struct spu_dis_asm_data): Remove.
792 (struct spu_dis_asm_info): New.
793 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
794 SPU id.
795 (gdb_print_insn_spu): Cast disassemble_info to
796 spu_dis_asm_info.
797
80d75874
YQ
7982017-01-26 Yao Qi <yao.qi@linaro.org>
799
800 * disasm.c (do_ui_file_delete): Delete.
801 (gdb_insn_length): Move code creating stream to ...
802 * utils.c (null_stream): ... here. New function.
803 * utils.h (null_stream): Declare.
804
60685cd0
SM
8052017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
806
807 * python/py-inferior.c (find_thread_object): Return directly
808 from the loop. Remove "found" variable.
809
eb1cdb62
JB
8102017-01-21 Joel Brobecker <brobecker@adacore.com>
811
812 GDB 7.12.1 released.
813
b1ce6568
SM
8142017-01-20 Simon Marchi <simon.marchi@ericsson.com>
815
816 * python/py-function.c (fnpy_call): Reorder declarations to have
817 the gdbpy_enter object declared first.
818 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
819
6f8b0407
SM
8202017-01-20 Simon Marchi <simon.marchi@ericsson.com>
821
fec93fb1 822 PR python/21068
6f8b0407
SM
823 * python/python-internal.h (PyMem_RawMalloc): Define for
824 Python < 3.4.
825 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
826 PyMem_RawMalloc instead of PyMem_Malloc.
827
78cbbba8
LM
8282017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
829 Luis Machado <lgustavo@codesourcery.com>
830
831 * NEWS (New commands): Mention flash-erase.
832 (New MI commands): Mention target-flash-erase.
833 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
834 command.
835 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
836 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
837 * target.c (flash_erase_command): New function.
838 (initialize_targets): Add new flash-erase command.
839 * target.h (flash_erase_command): New declaration.
840
2132fe85
JB
8412017-01-20 Joel Brobecker <brobecker@adacore.com>
842
843 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
844 HAVE_SYS_PROCFS_H is defined.
845
d1dff226
AH
8462017-01-18 Alan Hayward <alan.hayward@arm.com>
847
848 * remote.c (struct cached_reg): Change data into a pointer.
849 * (stop_reply_dtr): Free data pointers before deleting vector.
850 (process_stop_reply): Likewise.
851 (remote_parse_stop_reply): Allocate space for data
852
9890e433
AH
8532017-01-18 Alan Hayward <alan.hayward@arm.com>
854
855 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
856 MAX_REGISTER_SIZE.
857 (amd64_pseudo_register_read_value): Likewise.
858 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
859 (store_register_using_P): Likewise.
860 * regcache.c (regcache_xfer_part): Likewise.
861
7a36499a
IR
8622017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
863
864 Split real and pseudo registers.
865 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
866 (sparc32_pseudo_regnum): New enum.
867 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
868 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
869 (SPARC32_CP0_REGISTERS): New macro.
870 (sparc32_pseudo_register_name): New function.
871 (sparc32_register_name): Use sparc32_pseudo_register_name.
872 (sparc32_pseudo_register_type): New function.
873 (sparc32_register_type): Use sparc32_pseudo_register_type.
874 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
875 pseudo register numbers.
876 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
877 (SPARC64_CP0_REGISTERS): New macro.
878 (sparc64_pseudo_register_name): New function.
879 (sparc64_register_name): Use sparc64_pseudo_register_name.
880 (sparc64_pseudo_register_type): New function.
881 (sparc64_register_type): Use sparc64_pseudo_register_type.
882 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
883 pseudo register numbers.
884 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
885 sparc64_store_arguments): Handle pseudo register numbers.
886
6f8976bf
YQ
8872017-01-13 Yao Qi <yao.qi@linaro.org>
888
889 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
890 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
891 output.
892 (getpkt_or_notif_sane_1): Likewise.
893
e4241ace
YQ
8942017-01-13 Yao Qi <yao.qi@linaro.org>
895
896 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
897 of CC. Pass "-x c++-header" instead of "-x c".
898
3015c064
SM
8992017-01-12 Simon Marchi <simon.marchi@ericsson.com>
900
901 * remote.c (remote_can_async_p): Update comment.
902
fde1b17d
SM
9032017-01-12 Simon Marchi <simon.marchi@ericsson.com>
904
905 * linux-nat.c (linux_nat_can_async_p): Update comment.
906
ca1ca08b
SM
9072017-01-12 Simon Marchi <simon.marchi@ericsson.com>
908
909 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
910
4ad2da73
SM
9112017-01-11 Simon Marchi <simon.marchi@ericsson.com>
912
913 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
914
c8b23b3f
TT
9152017-01-10 Tom Tromey <tom@tromey.com>
916
917 * python/py-type.c (typy_legacy_template_argument): Update.
918 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
919 ~demangle_parse_info): Declare new members.
920 (cp_demangled_name_to_comp): Return unique_ptr.
921 (cp_demangled_name_parse_free)
922 (make_cleanup_cp_demangled_name_parse_free)
923 (cp_new_demangle_parse_info): Remove.
924 * cp-support.c (do_demangled_name_parse_free_cleanup)
925 (make_cleanup_cp_demangled_name_parse_free): Remove.
926 (inspect_type, cp_canonicalize_string_full)
927 (cp_canonicalize_string): Update.
928 (mangled_name_to_comp): Change return type.
929 (cp_class_name_from_physname, method_name_from_physname)
930 (cp_func_name, cp_remove_params): Update.
931 * cp-name-parser.y (demangle_parse_info): New constructor, from
932 cp_new_demangle_parse_info.
933 (~demangle_parse_info): New destructor, from
934 cp_demangled_name_parse_free.
935 (cp_merge_demangle_parse_infos): Update.
936 (cp_demangled_name_to_comp): Change return type.
937
1ac32117
TT
9382017-01-10 Tom Tromey <tom@tromey.com>
939
940 * top.c (prevent_dont_repeat): Change return type.
941 * python/python.c (execute_gdb_command): Use std::string.
942 Update.
943 * guile/guile.c (gdbscm_execute_gdb_command): Update.
944 * command.h (prevent_dont_repeat): Change return type.
945 * breakpoint.c (bpstat_do_actions_1): Update.
946
0cf08227
TT
9472017-01-10 Tom Tromey <tom@tromey.com>
948
949 * value.h (scoped_value_mark::~scoped_value_mark): Call
950 free_to_mark.
951 (scoped_value_mark::free_to_mark): New method.
952 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
953 scoped_value_mark.
954
eb115069
TT
9552017-01-10 Tom Tromey <tom@tromey.com>
956
957 * python/py-value.c (valpy_dereference, valpy_referenced_value)
958 (valpy_reference_value, valpy_const_value, valpy_get_address)
959 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
960 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
961 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
962 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
963 scoped_value_mark.
964 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
965 * value.h (scoped_value_mark): New class.
966
906768f9
TT
9672017-01-10 Tom Tromey <tom@tromey.com>
968
969 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
970 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
971 * psymtab.c (discard_psymtabs_upto): Remove.
972 (make_cleanup_discard_psymtabs): Remove.
973 (struct psymtab_state): Remove.
974
bef155c3
TT
9752017-01-10 Tom Tromey <tom@tromey.com>
976
977 * record-full.c (record_full_save_cleanups): Remove.
978 (record_full_save): Use gdb::unlinker.
979 * gcore.c (do_bfd_delete_cleanup): Remove.
980 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
981 cleanups.
982 * dwarf2read.c (unlink_if_set): Remove.
983 (write_psymtabs_to_index): Use gdb::unlinker.
984 * common/gdb_unlinker.h: New file.
985
192b62ce
TT
9862017-01-10 Tom Tromey <tom@tromey.com>
987
988 * windows-tdep.c (windows_xfer_shared_library): Update.
989 * windows-nat.c (windows_make_so): Update.
990 * utils.h (make_cleanup_bfd_unref): Remove.
991 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
992 * symfile.h (symfile_bfd_open)
993 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
994 * symfile.c (read_symbols, symbol_file_add)
995 (separate_debug_file_exists): Update.
996 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
997 (generic_load, reread_symbols): Update.
998 * symfile-mem.c (symbol_file_add_from_memory): Update.
999 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
1000 (spu_symbol_file_add_from_memory): Update.
1001 * solist.h (struct target_so_ops) <bfd_open>: Return
1002 gdb_bfd_ref_ptr.
1003 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
1004 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
1005 gdb_bfd_ref_ptr.
1006 (solib_map_sections, reload_shared_libraries_1): Update.
1007 * solib-svr4.c (enable_break): Update.
1008 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
1009 * solib-frv.c (enable_break2): Update.
1010 * solib-dsbt.c (enable_break): Update.
1011 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
1012 gdb_bfd_ref_ptr.
1013 (darwin_solib_get_all_image_info_addr_at_init): Update.
1014 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
1015 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
1016 * record-full.c (record_full_save): Update.
1017 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
1018 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1019 * minidebug.c (find_separate_debug_file_in_section): Return
1020 gdb_bfd_ref_ptr.
1021 * machoread.c (macho_add_oso_symfile): Change abfd to
1022 gdb_bfd_ref_ptr.
1023 (macho_symfile_read_all_oso): Update.
1024 (macho_check_dsym): Return gdb_bfd_ref_ptr.
1025 (macho_symfile_read): Update.
1026 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
1027 (jit_bfd_try_read_symtab): Update.
1028 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1029 (gdb_bfd_openw, gdb_bfd_openr_iovec)
1030 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
1031 gdb_bfd_ref_ptr.
1032 (gdb_bfd_ref_policy): New struct.
1033 (gdb_bfd_ref_ptr): New typedef.
1034 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1035 (gdb_bfd_openw, gdb_bfd_openr_iovec)
1036 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
1037 gdb_bfd_ref_ptr.
1038 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
1039 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
1040 (gcore_command): Update.
1041 * exec.c (exec_file_attach): Update.
1042 * elfread.c (elf_symfile_read): Update.
1043 * dwarf2read.c (dwarf2_get_dwz_file): Update.
1044 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
1045 (open_and_init_dwo_file): Update.
1046 (open_dwp_file): Return gdb_bfd_ref_ptr.
1047 (open_and_init_dwp_file): Update.
1048 * corelow.c (core_open): Update.
1049 * compile/compile-object-load.c (compile_object_load): Update.
1050 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
1051 * coffread.c (coff_symfile_read): Update.
1052 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
1053 gdb_bfd_ref_ptr. Rename.
1054 (dump_bfd_file, restore_command): Update.
1055 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
1056 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
1057 (find_separate_debug_file_by_buildid): Update.
1058
50315b21
TT
10592017-01-10 Tom Tromey <tom@tromey.com>
1060
1061 * common/gdb_ref_ptr.h: New file.
1062 * python/py-ref.h (struct gdbpy_ref_policy): New.
1063 (gdbpy_ref): Now a typedef.
1064
fc4007c9
TT
10652017-01-10 Tom Tromey <tom@tromey.com>
1066
1067 * utils.h (make_cleanup_htab_delete): Don't declare.
1068 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
1069 Remove.
1070 * linespec.c (decode_compound_collector): Add constructor,
1071 destructor.
1072 (lookup_prefix_sym): Remove cleanup.
1073 (symtab_collector): Add constructor, destructor.
1074 (collect_symtabs_from_filename): Remove cleanup.
1075 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
1076 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1077 Use htab_up.
1078 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
1079 * dwarf2read.c (dw2_expand_symtabs_matching)
1080 (dw2_map_symbol_filenames, dwarf_decode_macros)
1081 (write_psymtabs_to_index): Use htab_up.
1082 * dwarf2loc.c (func_verify_no_selftailcall)
1083 (call_site_find_chain_1, func_verify_no_selftailcall)
1084 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
1085 std::vector, gdb::unique_xmalloc_ptr.
1086 (call_sitep): Remove typedef.
1087 (dwarf2_locexpr_baton_eval): Remove unused variable.
1088
8dbcee67
TT
10892017-01-10 Tom Tromey <tom@tromey.com>
1090
1091 * python/python-internal.h (make_cleanup_py_decref)
1092 (make_cleanup_py_xdecref): Don't declare.
1093 * python/py-utils.c (py_decref, make_cleanup_py_decref)
1094 (py_xdecref, make_cleanup_py_xdecref): Remove.
1095
13df46cc
TT
10962017-01-10 Tom Tromey <tom@tromey.com>
1097
1098 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
1099 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
1100
06fc9bf7
TT
11012017-01-10 Tom Tromey <tom@tromey.com>
1102
1103 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
1104
830a4934
TT
11052017-01-10 Tom Tromey <tom@tromey.com>
1106
1107 * python/py-utils.c (unicode_to_encoded_string)
1108 (python_string_to_target_string)
1109 (python_string_to_target_python_string)
1110 (python_string_to_host_string, gdbpy_obj_to_string)
1111 (get_addr_from_python): Use gdbpy_ref.
1112
4586d543
TT
11132017-01-10 Tom Tromey <tom@tromey.com>
1114
1115 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
1116 gdbpy_ref.
1117
59876f8f
TT
11182017-01-10 Tom Tromey <tom@tromey.com>
1119
1120 * python/python.c (eval_python_command, gdbpy_decode_line)
1121 (gdbpy_run_events, gdbpy_start_type_printers)
1122 (gdbpy_apply_type_printers): Use gdbpy_ref.
1123
97d83487
TT
11242017-01-10 Tom Tromey <tom@tromey.com>
1125
1126 * python/py-param.c (get_doc_string, compute_enum_values): Use
1127 gdbpy_ref.
1128
9205649a
TT
11292017-01-10 Tom Tromey <tom@tromey.com>
1130
1131 * python/py-inferior.c (find_thread_object, build_inferior_list):
1132 Use gdbpy_ref.
1133
74c49d45
TT
11342017-01-10 Tom Tromey <tom@tromey.com>
1135
1136 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
1137
16361ffb
TT
11382017-01-10 Tom Tromey <tom@tromey.com>
1139
1140 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
1141 gdbpy_ref.
1142
905f2cca
TT
11432017-01-10 Tom Tromey <tom@tromey.com>
1144
1145 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
1146 extra incref.
1147 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
1148 Use gdbpy_ref.
1149
64081434
TT
11502017-01-10 Tom Tromey <tom@tromey.com>
1151
1152 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
1153 gdbpy_ref.
1154
59e9e831
TT
11552017-01-10 Tom Tromey <tom@tromey.com>
1156
1157 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
1158 decref results of PyArg_ParseTupleAndKeywords.
1159
9de10f6d
TT
11602017-01-10 Tom Tromey <tom@tromey.com>
1161
1162 * python/python.c (python_run_simple_file): Use
1163 unique_xmalloc_ptr, gdbpy_ref.
1164
2bd5759d
TT
11652017-01-10 Tom Tromey <tom@tromey.com>
1166
1167 * python/py-prettyprint.c (print_stack_unless_memory_error)
1168 (print_string_repr, print_children): Use gdbpy_ref.
1169 (dummy_python_frame): New class.
1170 (dummy_python_frame::dummy_python_frame): Rename from
1171 push_dummy_python_frame.
1172 (py_restore_tstate): Remove.
1173
3b4e0e01
TT
11742017-01-10 Tom Tromey <tom@tromey.com>
1175
1176 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
1177
17a22718
TT
11782017-01-10 Tom Tromey <tom@tromey.com>
1179
1180 * python/python.c (ensure_python_env, restore_python_env):
1181 Remove.
1182 * python/python-internal.h (ensure_python_env): Don't declare.
1183 * varobj.h (varobj_ensure_python_env): Don't declare.
1184 * varobj.c (varobj_ensure_python_env): Remove.
1185
68cdc557
TT
11862017-01-10 Tom Tromey <tom@tromey.com>
1187
1188 * varobj.c (varobj_value_get_print_value): Use
1189 gdbpy_enter_varobj.
1190
1eba6383
TT
11912017-01-10 Tom Tromey <tom@tromey.com>
1192
1193 * python/py-prettyprint.c (print_string_repr, print_children):
1194 Update.
1195 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
1196 of "encoding".
1197 * varobj.c (varobj_value_get_print_value): Update.
1198 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1199
bde7b3e3
TT
12002017-01-10 Tom Tromey <tom@tromey.com>
1201
1202 * varobj.c (varobj_get_display_hint)
1203 (dynamic_varobj_has_child_method, install_new_value_visualizer)
1204 (varobj_set_visualizer, free_variable): Use
1205 gdbpy_enter_varobj.
1206
a7785f8c
TT
12072017-01-10 Tom Tromey <tom@tromey.com>
1208
1209 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
1210 (do_finish_initialization): New function. Use gdbpy_ref.
1211 (gdbpy_finish_initialization): Use gdbpy_enter. Call
1212 do_finish_initialization.
1213
2865bfce
TT
12142017-01-10 Tom Tromey <tom@tromey.com>
1215
1216 * python/py-param.c (get_set_value, get_show_value): Use
1217 gdbpy_enter, gdbpy_ref.
1218
0e9dcc75
TT
12192017-01-10 Tom Tromey <tom@tromey.com>
1220
1221 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
1222
12a5cedd
TT
12232017-01-10 Tom Tromey <tom@tromey.com>
1224
1225 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
1226
788f2586
TT
12272017-01-10 Tom Tromey <tom@tromey.com>
1228
1229 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
1230 Use gdbpy_enter_varobj.
1231
6cd67bea
TT
12322017-01-10 Tom Tromey <tom@tromey.com>
1233
1234 * varobj.c (gdbpy_enter_varobj): New constructor.
1235 * python/python-internal.h (gdbpy_enter_varobj): New class.
1236 * python/py-varobj.c (py_varobj_get_iterator): Use
1237 gdbpy_enter_varobj.
1238
14b122bf
TT
12392017-01-10 Tom Tromey <tom@tromey.com>
1240
1241 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
1242 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
1243 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
1244 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
1245 unique_xmalloc_ptr.
1246 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
1247
bf1ca3b9
TT
12482017-01-10 Tom Tromey <tom@tromey.com>
1249
1250 * python/py-xmethods.c (invoke_match_method): Use
1251 gdbpy_ref.
1252
572a5524
TT
12532017-01-10 Tom Tromey <tom@tromey.com>
1254
1255 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
1256 gdbpy_enter, gdbpy_ref.
1257
396a78b6
TT
12582017-01-10 Tom Tromey <tom@tromey.com>
1259
1260 * python/python.c (python_interactive_command): Use gdbpy_enter.
1261
a88b13c7
TT
12622017-01-10 Tom Tromey <tom@tromey.com>
1263
1264 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
1265 gdbpy_ref.
1266
e9f0c363
TT
12672017-01-10 Tom Tromey <tom@tromey.com>
1268
1269 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
1270 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
1271
6349f452
TT
12722017-01-10 Tom Tromey <tom@tromey.com>
1273
1274 * utils.h (htab_deleter): New struct.
1275 (htab_up): New typedef.
1276 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
1277 gdbpy_enter, gdbpy_ref, htab_up.
1278
c0171de6
TT
12792017-01-10 Tom Tromey <tom@tromey.com>
1280
1281 * python/py-unwind.c (pending_frame_invalidate): Remove.
1282 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
1283
f18e226f
TT
12842017-01-10 Tom Tromey <tom@tromey.com>
1285
1286 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
1287 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
1288
c57af3f1
TT
12892017-01-10 Tom Tromey <tom@tromey.com>
1290
1291 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
1292
60e600ec
TT
12932017-01-10 Tom Tromey <tom@tromey.com>
1294
1295 * python/python.c (gdbpy_eval_from_control_command)
1296 (gdbpy_source_script, gdbpy_run_events)
1297 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
1298 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
1299 gdbpy_enter.
1300
bf7da5b0
TT
13012017-01-10 Tom Tromey <tom@tromey.com>
1302
1303 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
1304
2d38bced
TT
13052017-01-10 Tom Tromey <tom@tromey.com>
1306
1307 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
1308
07bc7329
TT
13092017-01-10 Tom Tromey <tom@tromey.com>
1310
1311 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1312 (python_on_inferior_call_pre, python_on_inferior_call_post)
1313 (python_on_memory_change, python_on_register_change)
1314 (python_inferior_exit, python_new_objfile, add_thread_object)
1315 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
1316
6e7c365e
TT
13172017-01-10 Tom Tromey <tom@tromey.com>
1318
1319 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
1320 (bpfinishpy_handle_exit): Use gdbpy_enter.
1321
6ba0cd40
TT
13222017-01-10 Tom Tromey <tom@tromey.com>
1323
1324 * python/py-cmd.c (cmdpy_destroyer)
1325 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
1326 gdbpy_enter.
1327
de2dc875
TT
13282017-01-10 Tom Tromey <tom@tromey.com>
1329
1330 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
1331 gdbpy_enter.
1332 (gdbpy_breakpoint_has_cond): Likewise.
1333
4ecee2c4
TT
13342017-01-10 Tom Tromey <tom@tromey.com>
1335
1336 * python/python.c (gdbpy_enter): New constructor.
1337 (~gdbpy_enter): New destructor.
1338 (restore_python_env, ensure_python_env): Rewrite.
1339 * python/python-internal.h (gdbpy_enter): New class.
1340
37fce74f
TT
13412017-01-10 Tom Tromey <tom@tromey.com>
1342
1343 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
1344
53a0cca3
TT
13452017-01-10 Tom Tromey <tom@tromey.com>
1346
1347 * python/py-value.c (value_has_field, get_field_flag)
1348 (get_field_type, valpy_getitem, convert_value_from_python): Use
1349 gdbpy_ref.
1350
ff3724f5
TT
13512017-01-10 Tom Tromey <tom@tromey.com>
1352
1353 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
1354 gdbpy_ref.
1355
0700aea5
TT
13562017-01-10 Tom Tromey <tom@tromey.com>
1357
1358 * python/py-prettyprint.c (search_pp_list)
1359 (find_pretty_printer_from_objfiles)
1360 (find_pretty_printer_from_progspace)
1361 (find_pretty_printer_from_gdb, find_pretty_printer)
1362 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
1363 gdbpy_ref.
1364
1bb44c9f
TT
13652017-01-10 Tom Tromey <tom@tromey.com>
1366
1367 * python/py-param.c (call_doc_function): Use gdbpy_ref.
1368
87ce03fd
TT
13692017-01-10 Tom Tromey <tom@tromey.com>
1370
1371 * python/py-linetable.c (build_line_table_tuple_from_pcs)
1372 (ltpy_get_all_source_lines): Use gdbpy_ref.
1373
ee0a3fb8
TT
13742017-01-10 Tom Tromey <tom@tromey.com>
1375
1376 * python/py-framefilter.c (extract_sym, extract_value)
1377 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
1378 gdbpy_ref.
1379
bf2a52fa
TT
13802017-01-10 Tom Tromey <tom@tromey.com>
1381
1382 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
1383
f59fe7f8
TT
13842017-01-10 Tom Tromey <tom@tromey.com>
1385
1386 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
1387
80bd970a
TT
13882017-01-10 Tom Tromey <tom@tromey.com>
1389
1390 * python/py-function.c (convert_values_to_python, fnpy_init): Use
1391 gdbpy_ref.
1392
d1b3de2e
TT
13932017-01-10 Tom Tromey <tom@tromey.com>
1394
1395 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
1396
3bb43384
TT
13972017-01-10 Tom Tromey <tom@tromey.com>
1398
1399 * python/py-type.c (convert_field, make_fielditem, typy_fields)
1400 (typy_range): Use gdbpy_ref.
1401
abf5651e
TT
14022017-01-10 Tom Tromey <tom@tromey.com>
1403
1404 * python/py-threadevent.c (create_thread_event_object): Use
1405 gdbpy_ref.
1406 * python/py-stopevent.c (create_stop_event_object): Simplify.
1407 (emit_stop_event): Use gdbpy_ref.
1408 * python/py-signalevent.c (create_signal_event_object): Use
1409 gdbpy_ref.
1410 * python/py-newobjfileevent.c (create_new_objfile_event_object)
1411 (emit_new_objfile_event, create_clear_objfiles_event_object)
1412 (emit_clear_objfiles_event): Use gdbpy_ref.
1413 * python/py-infevents.c (create_inferior_call_event_object)
1414 (create_register_changed_event_object)
1415 (create_memory_changed_event_object, emit_inferior_call_event)
1416 (emit_memory_changed_event, emit_register_changed_event): Use
1417 gdbpy_ref.
1418 * python/py-exitedevent.c (create_exited_event_object)
1419 (emit_exited_event): Use gdbpy_ref.
1420 * python/py-event.h (evpy_emit_event): Remove
1421 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
1422 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
1423 * python/py-continueevent.c (emit_continue_event): Use
1424 gdbpy_ref.
1425 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1426 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
1427 gdbpy_ref.
1428 * python/py-bpevent.c (create_breakpoint_event_object): Use
1429 gdbpy_ref.
1430
a68ff33e
TT
14312017-01-10 Tom Tromey <tom@tromey.com>
1432
1433 * python/py-ref.h: New file.
1434
7becfd03
SM
14352017-01-10 Simon Marchi <simon.marchi@ericsson.com>
1436
1437 * cli-out.c (cli_ui_out::do_redirect): Change return type to
1438 void.
1439 * cli-out.h (cli_ui_out::do_redirect): Likewise.
1440 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
1441 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
1442 * ui-out.c (ui_out::redirect): Likewise.
1443 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
1444 * cli/cli-logging.c (set_logging_redirect): Update call site of
1445 ui_out::redirect.
1446 (handle_redirections): Likewise.
1447 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
1448 * top.c (execute_command_to_string): Likewise.
1449 * utils.c (do_ui_out_redirect_pop): Likewise.
1450
df294654
SM
14512017-01-10 Simon Marchi <simon.marchi@ericsson.com>
1452
1453 * stack.c (_initialize_stack): Update "frame" command help message.
1454
f5e6296e
IB
14552017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
1456
1457 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
1458
0e2d6fa6
YQ
14592017-01-06 Yao Qi <yao.qi@linaro.org>
1460
1461 * x86-linux-nat.h: Include gdb_proc_service.h.
1462
44d6d3f9
YQ
14632017-01-06 Yao Qi <yao.qi@linaro.org>
1464
1465 * ser-base.h: Include serial.h.
1466
656731fe
YQ
14672017-01-06 Yao Qi <yao.qi@linaro.org>
1468
1469 * ppc-linux-tdep.h: Include ppc-tdep.h.
1470
1ca8f924
YQ
14712017-01-06 Yao Qi <yao.qi@linaro.org>
1472
1473 * nat/amd64-linux-siginfo.h: Include signal.h.
1474
bc3008c4
YQ
14752017-01-06 Yao Qi <yao.qi@linaro.org>
1476
1477 * nat/aarch64-linux-hw-point.h: Include break-common.h.
1478
66c80d03
YQ
14792017-01-06 Yao Qi <yao.qi@linaro.org>
1480
1481 * mi/mi-parse.h: Include mi-cmds.h.
1482
051d2dda
YQ
14832017-01-06 Yao Qi <yao.qi@linaro.org>
1484
1485 * inf-loop.c: Don't include "target.h".
1486 * inf-loop.h: Include it here.
1487
8018d34f
YQ
14882017-01-06 Yao Qi <yao.qi@linaro.org>
1489
1490 * dfp.h: Include "dboulest.h" and "expression.h".
1491
c0b8369c
YQ
14922017-01-06 Yao Qi <yao.qi@linaro.org>
1493
1494 * ax-gdb.h: Include "ax.h".
1495
ad5cba2a
YQ
14962017-01-06 Yao Qi <yao.qi@linaro.org>
1497
1498 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
1499 with nat/gdb_ptrace.h.
1500
1c33cd7f
YQ
15012017-01-05 Yao Qi <yao.qi@linaro.org>
1502
1503 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
1504 new line.
1505 (mips64_fbsd_sigframe_init): Likewise.
1506
c988ac1d
JB
15072017-01-04 John Baldwin <jhb@FreeBSD.org>
1508
1509 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
1510 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
1511
b268007c
JB
15122017-01-04 John Baldwin <jhb@FreeBSD.org>
1513
1514 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1515 * NEWS: Mention new FreeBSD/mips native configuration.
1516 * config/mips/fbsd.mh: New file.
1517 * configure.host: Add mips*-*-freebsd*.
1518 * mips-fbsd-nat.c: New file.
1519
387360da
JB
15202017-01-04 John Baldwin <jhb@FreeBSD.org>
1521
1522 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
1523 (ALLDEPFILES): Add mips-fbsd-tdep.c.
1524 * NEWS: Mention new FreeBSD/mips target.
1525 * configure.tgt: Add mips*-*-freebsd*.
1526 * mips-fbsd-tdep.c: New file.
1527 * mips-fbsd-tdep.h: New file.
1528
2aaaf250
YQ
15292017-01-04 Yao Qi <yao.qi@linaro.org>
1530
1531 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
1532 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
1533
61baf725
JB
15342017-01-01 Joel Brobecker <brobecker@adacore.com>
1535
1536 Update copyright year range in all GDB files.
1537
c113e7ff 15382017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 1539
c113e7ff 1540 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 1541
c113e7ff 1542For older changes see ChangeLog-2016.
c906108c
SS
1543\f
1544Local Variables:
1545mode: change-log
1546left-margin: 8
1547fill-column: 74
1548version-control: never
57da7796 1549coding: utf-8
c906108c 1550End:
This page took 2.122156 seconds and 4 git commands to generate.