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