Use gdbpy_ref in py_print_frame
[external/binutils.git] / gdb / ChangeLog
1 2017-01-10  Tom Tromey  <tom@tromey.com>
2
3         * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
4
5 2017-01-10  Tom Tromey  <tom@tromey.com>
6
7         * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
8         gdbpy_ref.
9
10 2017-01-10  Tom Tromey  <tom@tromey.com>
11
12         * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref.  Remove
13         extra incref.
14         (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
15         Use gdbpy_ref.
16
17 2017-01-10  Tom Tromey  <tom@tromey.com>
18
19         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
20         gdbpy_ref.
21
22 2017-01-10  Tom Tromey  <tom@tromey.com>
23
24         * python/py-arch.c (archpy_disassemble): Use gdbpy_ref.  Don't
25         decref results of PyArg_ParseTupleAndKeywords.
26
27 2017-01-10  Tom Tromey  <tom@tromey.com>
28
29         * python/python.c (python_run_simple_file): Use
30         unique_xmalloc_ptr, gdbpy_ref.
31
32 2017-01-10  Tom Tromey  <tom@tromey.com>
33
34         * python/py-prettyprint.c (print_stack_unless_memory_error)
35         (print_string_repr, print_children): Use gdbpy_ref.
36         (dummy_python_frame): New class.
37         (dummy_python_frame::dummy_python_frame): Rename from
38         push_dummy_python_frame.
39         (py_restore_tstate): Remove.
40
41 2017-01-10  Tom Tromey  <tom@tromey.com>
42
43         * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
44
45 2017-01-10  Tom Tromey  <tom@tromey.com>
46
47         * python/python.c (ensure_python_env, restore_python_env):
48         Remove.
49         * python/python-internal.h (ensure_python_env): Don't declare.
50         * varobj.h (varobj_ensure_python_env): Don't declare.
51         * varobj.c (varobj_ensure_python_env): Remove.
52
53 2017-01-10  Tom Tromey  <tom@tromey.com>
54
55         * varobj.c (varobj_value_get_print_value): Use
56         gdbpy_enter_varobj.
57
58 2017-01-10  Tom Tromey  <tom@tromey.com>
59
60         * python/py-prettyprint.c (print_string_repr, print_children):
61         Update.
62         * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
63         of "encoding".
64         * varobj.c (varobj_value_get_print_value): Update.
65         * python/python-internal.h (gdbpy_extract_lazy_string): Update.
66
67 2017-01-10  Tom Tromey  <tom@tromey.com>
68
69         * varobj.c (varobj_get_display_hint)
70         (dynamic_varobj_has_child_method, install_new_value_visualizer)
71         (varobj_set_visualizer, free_variable): Use
72         gdbpy_enter_varobj.
73
74 2017-01-10  Tom Tromey  <tom@tromey.com>
75
76         * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
77         (do_finish_initialization): New function.  Use gdbpy_ref.
78         (gdbpy_finish_initialization): Use gdbpy_enter.  Call
79         do_finish_initialization.
80
81 2017-01-10  Tom Tromey  <tom@tromey.com>
82
83         * python/py-param.c (get_set_value, get_show_value): Use
84         gdbpy_enter, gdbpy_ref.
85
86 2017-01-10  Tom Tromey  <tom@tromey.com>
87
88         * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
89
90 2017-01-10  Tom Tromey  <tom@tromey.com>
91
92         * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
93
94 2017-01-10  Tom Tromey  <tom@tromey.com>
95
96         * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
97         Use gdbpy_enter_varobj.
98
99 2017-01-10  Tom Tromey  <tom@tromey.com>
100
101         * varobj.c (gdbpy_enter_varobj): New constructor.
102         * python/python-internal.h (gdbpy_enter_varobj): New class.
103         * python/py-varobj.c (py_varobj_get_iterator): Use
104         gdbpy_enter_varobj.
105
106 2017-01-10  Tom Tromey  <tom@tromey.com>
107
108         * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
109         gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
110         (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
111         (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
112         unique_xmalloc_ptr.
113         (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
114
115 2017-01-10  Tom Tromey  <tom@tromey.com>
116
117         * python/py-xmethods.c (invoke_match_method): Use
118         gdbpy_ref.
119
120 2017-01-10  Tom Tromey  <tom@tromey.com>
121
122         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
123         gdbpy_enter, gdbpy_ref.
124
125 2017-01-10  Tom Tromey  <tom@tromey.com>
126
127         * python/python.c (python_interactive_command): Use gdbpy_enter.
128
129 2017-01-10  Tom Tromey  <tom@tromey.com>
130
131         * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
132         gdbpy_ref.
133
134 2017-01-10  Tom Tromey  <tom@tromey.com>
135
136         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
137         gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
138
139 2017-01-10  Tom Tromey  <tom@tromey.com>
140
141         * utils.h (htab_deleter): New struct.
142         (htab_up): New typedef.
143         * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
144         gdbpy_enter, gdbpy_ref, htab_up.
145
146 2017-01-10  Tom Tromey  <tom@tromey.com>
147
148         * python/py-unwind.c (pending_frame_invalidate): Remove.
149         (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
150
151 2017-01-10  Tom Tromey  <tom@tromey.com>
152
153         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
154         (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
155
156 2017-01-10  Tom Tromey  <tom@tromey.com>
157
158         * python/py-type.c (save_objfile_types): Use gdbpy_enter.
159
160 2017-01-10  Tom Tromey  <tom@tromey.com>
161
162         * python/python.c (gdbpy_eval_from_control_command)
163         (gdbpy_source_script, gdbpy_run_events)
164         (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
165         (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
166         gdbpy_enter.
167
168 2017-01-10  Tom Tromey  <tom@tromey.com>
169
170         * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
171
172 2017-01-10  Tom Tromey  <tom@tromey.com>
173
174         * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
175
176 2017-01-10  Tom Tromey  <tom@tromey.com>
177
178         * python/py-inferior.c (python_on_normal_stop, python_on_resume)
179         (python_on_inferior_call_pre, python_on_inferior_call_post)
180         (python_on_memory_change, python_on_register_change)
181         (python_inferior_exit, python_new_objfile, add_thread_object)
182         (delete_thread_object, py_free_inferior): Use gdbpy_enter.
183
184 2017-01-10  Tom Tromey  <tom@tromey.com>
185
186         * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
187         (bpfinishpy_handle_exit): Use gdbpy_enter.
188
189 2017-01-10  Tom Tromey  <tom@tromey.com>
190
191         * python/py-cmd.c (cmdpy_destroyer)
192         (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
193         gdbpy_enter.
194
195 2017-01-10  Tom Tromey  <tom@tromey.com>
196
197         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
198         gdbpy_enter.
199         (gdbpy_breakpoint_has_cond): Likewise.
200
201 2017-01-10  Tom Tromey  <tom@tromey.com>
202
203         * python/python.c (gdbpy_enter): New constructor.
204         (~gdbpy_enter): New destructor.
205         (restore_python_env, ensure_python_env): Rewrite.
206         * python/python-internal.h (gdbpy_enter): New class.
207
208 2017-01-10  Tom Tromey  <tom@tromey.com>
209
210         * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
211
212 2017-01-10  Tom Tromey  <tom@tromey.com>
213
214         * python/py-value.c (value_has_field, get_field_flag)
215         (get_field_type, valpy_getitem, convert_value_from_python): Use
216         gdbpy_ref.
217
218 2017-01-10  Tom Tromey  <tom@tromey.com>
219
220         * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
221         gdbpy_ref.
222
223 2017-01-10  Tom Tromey  <tom@tromey.com>
224
225         * python/py-prettyprint.c (search_pp_list)
226         (find_pretty_printer_from_objfiles)
227         (find_pretty_printer_from_progspace)
228         (find_pretty_printer_from_gdb, find_pretty_printer)
229         (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
230         gdbpy_ref.
231
232 2017-01-10  Tom Tromey  <tom@tromey.com>
233
234         * python/py-param.c (call_doc_function): Use gdbpy_ref.
235
236 2017-01-10  Tom Tromey  <tom@tromey.com>
237
238         * python/py-linetable.c (build_line_table_tuple_from_pcs)
239         (ltpy_get_all_source_lines): Use gdbpy_ref.
240
241 2017-01-10  Tom Tromey  <tom@tromey.com>
242
243         * python/py-framefilter.c (extract_sym, extract_value)
244         (get_py_iter_from_func, bootstrap_python_frame_filters): Use
245         gdbpy_ref.
246
247 2017-01-10  Tom Tromey  <tom@tromey.com>
248
249         * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
250
251 2017-01-10  Tom Tromey  <tom@tromey.com>
252
253         * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
254
255 2017-01-10  Tom Tromey  <tom@tromey.com>
256
257         * python/py-function.c (convert_values_to_python, fnpy_init): Use
258         gdbpy_ref.
259
260 2017-01-10  Tom Tromey  <tom@tromey.com>
261
262         * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
263
264 2017-01-10  Tom Tromey  <tom@tromey.com>
265
266         * python/py-type.c (convert_field, make_fielditem, typy_fields)
267         (typy_range): Use gdbpy_ref.
268
269 2017-01-10  Tom Tromey  <tom@tromey.com>
270
271         * python/py-threadevent.c (create_thread_event_object): Use
272         gdbpy_ref.
273         * python/py-stopevent.c (create_stop_event_object): Simplify.
274         (emit_stop_event): Use gdbpy_ref.
275         * python/py-signalevent.c (create_signal_event_object): Use
276         gdbpy_ref.
277         * python/py-newobjfileevent.c (create_new_objfile_event_object)
278         (emit_new_objfile_event, create_clear_objfiles_event_object)
279         (emit_clear_objfiles_event): Use gdbpy_ref.
280         * python/py-infevents.c (create_inferior_call_event_object)
281         (create_register_changed_event_object)
282         (create_memory_changed_event_object, emit_inferior_call_event)
283         (emit_memory_changed_event, emit_register_changed_event): Use
284         gdbpy_ref.
285         * python/py-exitedevent.c (create_exited_event_object)
286         (emit_exited_event): Use gdbpy_ref.
287         * python/py-event.h (evpy_emit_event): Remove
288         CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
289         * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
290         * python/py-continueevent.c (emit_continue_event): Use
291         gdbpy_ref.
292         * python/py-breakpoint.c (gdbpy_breakpoint_created)
293         (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
294         gdbpy_ref.
295         * python/py-bpevent.c (create_breakpoint_event_object): Use
296         gdbpy_ref.
297
298 2017-01-10  Tom Tromey  <tom@tromey.com>
299
300         * python/py-ref.h: New file.
301
302 2017-01-10  Simon Marchi  <simon.marchi@ericsson.com>
303
304         * cli-out.c (cli_ui_out::do_redirect): Change return type to
305         void.
306         * cli-out.h (cli_ui_out::do_redirect): Likewise.
307         * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
308         * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
309         * ui-out.c (ui_out::redirect): Likewise.
310         * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
311         * cli/cli-logging.c (set_logging_redirect): Update call site of
312         ui_out::redirect.
313         (handle_redirections): Likewise.
314         * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
315         * top.c (execute_command_to_string): Likewise.
316         * utils.c (do_ui_out_redirect_pop): Likewise.
317
318 2017-01-10  Simon Marchi  <simon.marchi@ericsson.com>
319
320         * stack.c (_initialize_stack): Update "frame" command help message.
321
322 2017-01-08  Iain Buclaw  <ibuclaw@gdcproject.org>
323
324         * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
325
326 2017-01-06  Yao Qi  <yao.qi@linaro.org>
327
328         * x86-linux-nat.h: Include gdb_proc_service.h.
329
330 2017-01-06  Yao Qi  <yao.qi@linaro.org>
331
332         * ser-base.h: Include serial.h.
333
334 2017-01-06  Yao Qi  <yao.qi@linaro.org>
335
336         * ppc-linux-tdep.h: Include ppc-tdep.h.
337
338 2017-01-06  Yao Qi  <yao.qi@linaro.org>
339
340         * nat/amd64-linux-siginfo.h: Include signal.h.
341
342 2017-01-06  Yao Qi  <yao.qi@linaro.org>
343
344         * nat/aarch64-linux-hw-point.h: Include break-common.h.
345
346 2017-01-06  Yao Qi  <yao.qi@linaro.org>
347
348         * mi/mi-parse.h: Include mi-cmds.h.
349
350 2017-01-06  Yao Qi  <yao.qi@linaro.org>
351
352         * inf-loop.c: Don't include "target.h".
353         * inf-loop.h: Include it here.
354
355 2017-01-06  Yao Qi  <yao.qi@linaro.org>
356
357         * dfp.h: Include "dboulest.h" and "expression.h".
358
359 2017-01-06  Yao Qi  <yao.qi@linaro.org>
360
361         * ax-gdb.h: Include "ax.h".
362
363 2017-01-06  Yao Qi  <yao.qi@linaro.org>
364
365         * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
366         with nat/gdb_ptrace.h.
367
368 2017-01-05  Yao Qi  <yao.qi@linaro.org>
369
370         * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
371         new line.
372         (mips64_fbsd_sigframe_init): Likewise.
373
374 2017-01-04  John Baldwin  <jhb@FreeBSD.org>
375
376         * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
377         GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
378
379 2017-01-04  John Baldwin  <jhb@FreeBSD.org>
380
381         * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
382         * NEWS: Mention new FreeBSD/mips native configuration.
383         * config/mips/fbsd.mh: New file.
384         * configure.host: Add mips*-*-freebsd*.
385         * mips-fbsd-nat.c: New file.
386
387 2017-01-04  John Baldwin  <jhb@FreeBSD.org>
388
389         * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
390         (ALLDEPFILES): Add mips-fbsd-tdep.c.
391         * NEWS: Mention new FreeBSD/mips target.
392         * configure.tgt: Add mips*-*-freebsd*.
393         * mips-fbsd-tdep.c: New file.
394         * mips-fbsd-tdep.h: New file.
395
396 2017-01-04  Yao Qi  <yao.qi@linaro.org>
397
398         * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
399         use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
400
401 2017-01-01  Joel Brobecker  <brobecker@adacore.com>
402
403         Update copyright year range in all GDB files.
404
405 2017-01-01  Joel Brobecker  <brobecker@adacore.com>
406
407         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
408
409 For older changes see ChangeLog-2016.
410 \f
411 Local Variables:
412 mode: change-log
413 left-margin: 8
414 fill-column: 74
415 version-control: never
416 coding: utf-8
417 End: