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