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