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