Use gdbpy_ref rather than make_cleanup_py_decref
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
13df46cc
TT
12017-01-10 Tom Tromey <tom@tromey.com>
2
3 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
4 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
5
06fc9bf7
TT
62017-01-10 Tom Tromey <tom@tromey.com>
7
8 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
9
830a4934
TT
102017-01-10 Tom Tromey <tom@tromey.com>
11
12 * python/py-utils.c (unicode_to_encoded_string)
13 (python_string_to_target_string)
14 (python_string_to_target_python_string)
15 (python_string_to_host_string, gdbpy_obj_to_string)
16 (get_addr_from_python): Use gdbpy_ref.
17
4586d543
TT
182017-01-10 Tom Tromey <tom@tromey.com>
19
20 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
21 gdbpy_ref.
22
59876f8f
TT
232017-01-10 Tom Tromey <tom@tromey.com>
24
25 * python/python.c (eval_python_command, gdbpy_decode_line)
26 (gdbpy_run_events, gdbpy_start_type_printers)
27 (gdbpy_apply_type_printers): Use gdbpy_ref.
28
97d83487
TT
292017-01-10 Tom Tromey <tom@tromey.com>
30
31 * python/py-param.c (get_doc_string, compute_enum_values): Use
32 gdbpy_ref.
33
9205649a
TT
342017-01-10 Tom Tromey <tom@tromey.com>
35
36 * python/py-inferior.c (find_thread_object, build_inferior_list):
37 Use gdbpy_ref.
38
74c49d45
TT
392017-01-10 Tom Tromey <tom@tromey.com>
40
41 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
42
16361ffb
TT
432017-01-10 Tom Tromey <tom@tromey.com>
44
45 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
46 gdbpy_ref.
47
905f2cca
TT
482017-01-10 Tom Tromey <tom@tromey.com>
49
50 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
51 extra incref.
52 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
53 Use gdbpy_ref.
54
64081434
TT
552017-01-10 Tom Tromey <tom@tromey.com>
56
57 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
58 gdbpy_ref.
59
59e9e831
TT
602017-01-10 Tom Tromey <tom@tromey.com>
61
62 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
63 decref results of PyArg_ParseTupleAndKeywords.
64
9de10f6d
TT
652017-01-10 Tom Tromey <tom@tromey.com>
66
67 * python/python.c (python_run_simple_file): Use
68 unique_xmalloc_ptr, gdbpy_ref.
69
2bd5759d
TT
702017-01-10 Tom Tromey <tom@tromey.com>
71
72 * python/py-prettyprint.c (print_stack_unless_memory_error)
73 (print_string_repr, print_children): Use gdbpy_ref.
74 (dummy_python_frame): New class.
75 (dummy_python_frame::dummy_python_frame): Rename from
76 push_dummy_python_frame.
77 (py_restore_tstate): Remove.
78
3b4e0e01
TT
792017-01-10 Tom Tromey <tom@tromey.com>
80
81 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
82
17a22718
TT
832017-01-10 Tom Tromey <tom@tromey.com>
84
85 * python/python.c (ensure_python_env, restore_python_env):
86 Remove.
87 * python/python-internal.h (ensure_python_env): Don't declare.
88 * varobj.h (varobj_ensure_python_env): Don't declare.
89 * varobj.c (varobj_ensure_python_env): Remove.
90
68cdc557
TT
912017-01-10 Tom Tromey <tom@tromey.com>
92
93 * varobj.c (varobj_value_get_print_value): Use
94 gdbpy_enter_varobj.
95
1eba6383
TT
962017-01-10 Tom Tromey <tom@tromey.com>
97
98 * python/py-prettyprint.c (print_string_repr, print_children):
99 Update.
100 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
101 of "encoding".
102 * varobj.c (varobj_value_get_print_value): Update.
103 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
104
bde7b3e3
TT
1052017-01-10 Tom Tromey <tom@tromey.com>
106
107 * varobj.c (varobj_get_display_hint)
108 (dynamic_varobj_has_child_method, install_new_value_visualizer)
109 (varobj_set_visualizer, free_variable): Use
110 gdbpy_enter_varobj.
111
a7785f8c
TT
1122017-01-10 Tom Tromey <tom@tromey.com>
113
114 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
115 (do_finish_initialization): New function. Use gdbpy_ref.
116 (gdbpy_finish_initialization): Use gdbpy_enter. Call
117 do_finish_initialization.
118
2865bfce
TT
1192017-01-10 Tom Tromey <tom@tromey.com>
120
121 * python/py-param.c (get_set_value, get_show_value): Use
122 gdbpy_enter, gdbpy_ref.
123
0e9dcc75
TT
1242017-01-10 Tom Tromey <tom@tromey.com>
125
126 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
127
12a5cedd
TT
1282017-01-10 Tom Tromey <tom@tromey.com>
129
130 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
131
788f2586
TT
1322017-01-10 Tom Tromey <tom@tromey.com>
133
134 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
135 Use gdbpy_enter_varobj.
136
6cd67bea
TT
1372017-01-10 Tom Tromey <tom@tromey.com>
138
139 * varobj.c (gdbpy_enter_varobj): New constructor.
140 * python/python-internal.h (gdbpy_enter_varobj): New class.
141 * python/py-varobj.c (py_varobj_get_iterator): Use
142 gdbpy_enter_varobj.
143
14b122bf
TT
1442017-01-10 Tom Tromey <tom@tromey.com>
145
146 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
147 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
148 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
149 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
150 unique_xmalloc_ptr.
151 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
152
bf1ca3b9
TT
1532017-01-10 Tom Tromey <tom@tromey.com>
154
155 * python/py-xmethods.c (invoke_match_method): Use
156 gdbpy_ref.
157
572a5524
TT
1582017-01-10 Tom Tromey <tom@tromey.com>
159
160 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
161 gdbpy_enter, gdbpy_ref.
162
396a78b6
TT
1632017-01-10 Tom Tromey <tom@tromey.com>
164
165 * python/python.c (python_interactive_command): Use gdbpy_enter.
166
a88b13c7
TT
1672017-01-10 Tom Tromey <tom@tromey.com>
168
169 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
170 gdbpy_ref.
171
e9f0c363
TT
1722017-01-10 Tom Tromey <tom@tromey.com>
173
174 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
175 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
176
6349f452
TT
1772017-01-10 Tom Tromey <tom@tromey.com>
178
179 * utils.h (htab_deleter): New struct.
180 (htab_up): New typedef.
181 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
182 gdbpy_enter, gdbpy_ref, htab_up.
183
c0171de6
TT
1842017-01-10 Tom Tromey <tom@tromey.com>
185
186 * python/py-unwind.c (pending_frame_invalidate): Remove.
187 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
188
f18e226f
TT
1892017-01-10 Tom Tromey <tom@tromey.com>
190
191 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
192 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
193
c57af3f1
TT
1942017-01-10 Tom Tromey <tom@tromey.com>
195
196 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
197
60e600ec
TT
1982017-01-10 Tom Tromey <tom@tromey.com>
199
200 * python/python.c (gdbpy_eval_from_control_command)
201 (gdbpy_source_script, gdbpy_run_events)
202 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
203 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
204 gdbpy_enter.
205
bf7da5b0
TT
2062017-01-10 Tom Tromey <tom@tromey.com>
207
208 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
209
2d38bced
TT
2102017-01-10 Tom Tromey <tom@tromey.com>
211
212 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
213
07bc7329
TT
2142017-01-10 Tom Tromey <tom@tromey.com>
215
216 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
217 (python_on_inferior_call_pre, python_on_inferior_call_post)
218 (python_on_memory_change, python_on_register_change)
219 (python_inferior_exit, python_new_objfile, add_thread_object)
220 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
221
6e7c365e
TT
2222017-01-10 Tom Tromey <tom@tromey.com>
223
224 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
225 (bpfinishpy_handle_exit): Use gdbpy_enter.
226
6ba0cd40
TT
2272017-01-10 Tom Tromey <tom@tromey.com>
228
229 * python/py-cmd.c (cmdpy_destroyer)
230 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
231 gdbpy_enter.
232
de2dc875
TT
2332017-01-10 Tom Tromey <tom@tromey.com>
234
235 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
236 gdbpy_enter.
237 (gdbpy_breakpoint_has_cond): Likewise.
238
4ecee2c4
TT
2392017-01-10 Tom Tromey <tom@tromey.com>
240
241 * python/python.c (gdbpy_enter): New constructor.
242 (~gdbpy_enter): New destructor.
243 (restore_python_env, ensure_python_env): Rewrite.
244 * python/python-internal.h (gdbpy_enter): New class.
245
37fce74f
TT
2462017-01-10 Tom Tromey <tom@tromey.com>
247
248 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
249
53a0cca3
TT
2502017-01-10 Tom Tromey <tom@tromey.com>
251
252 * python/py-value.c (value_has_field, get_field_flag)
253 (get_field_type, valpy_getitem, convert_value_from_python): Use
254 gdbpy_ref.
255
ff3724f5
TT
2562017-01-10 Tom Tromey <tom@tromey.com>
257
258 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
259 gdbpy_ref.
260
0700aea5
TT
2612017-01-10 Tom Tromey <tom@tromey.com>
262
263 * python/py-prettyprint.c (search_pp_list)
264 (find_pretty_printer_from_objfiles)
265 (find_pretty_printer_from_progspace)
266 (find_pretty_printer_from_gdb, find_pretty_printer)
267 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
268 gdbpy_ref.
269
1bb44c9f
TT
2702017-01-10 Tom Tromey <tom@tromey.com>
271
272 * python/py-param.c (call_doc_function): Use gdbpy_ref.
273
87ce03fd
TT
2742017-01-10 Tom Tromey <tom@tromey.com>
275
276 * python/py-linetable.c (build_line_table_tuple_from_pcs)
277 (ltpy_get_all_source_lines): Use gdbpy_ref.
278
ee0a3fb8
TT
2792017-01-10 Tom Tromey <tom@tromey.com>
280
281 * python/py-framefilter.c (extract_sym, extract_value)
282 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
283 gdbpy_ref.
284
bf2a52fa
TT
2852017-01-10 Tom Tromey <tom@tromey.com>
286
287 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
288
f59fe7f8
TT
2892017-01-10 Tom Tromey <tom@tromey.com>
290
291 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
292
80bd970a
TT
2932017-01-10 Tom Tromey <tom@tromey.com>
294
295 * python/py-function.c (convert_values_to_python, fnpy_init): Use
296 gdbpy_ref.
297
d1b3de2e
TT
2982017-01-10 Tom Tromey <tom@tromey.com>
299
300 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
301
3bb43384
TT
3022017-01-10 Tom Tromey <tom@tromey.com>
303
304 * python/py-type.c (convert_field, make_fielditem, typy_fields)
305 (typy_range): Use gdbpy_ref.
306
abf5651e
TT
3072017-01-10 Tom Tromey <tom@tromey.com>
308
309 * python/py-threadevent.c (create_thread_event_object): Use
310 gdbpy_ref.
311 * python/py-stopevent.c (create_stop_event_object): Simplify.
312 (emit_stop_event): Use gdbpy_ref.
313 * python/py-signalevent.c (create_signal_event_object): Use
314 gdbpy_ref.
315 * python/py-newobjfileevent.c (create_new_objfile_event_object)
316 (emit_new_objfile_event, create_clear_objfiles_event_object)
317 (emit_clear_objfiles_event): Use gdbpy_ref.
318 * python/py-infevents.c (create_inferior_call_event_object)
319 (create_register_changed_event_object)
320 (create_memory_changed_event_object, emit_inferior_call_event)
321 (emit_memory_changed_event, emit_register_changed_event): Use
322 gdbpy_ref.
323 * python/py-exitedevent.c (create_exited_event_object)
324 (emit_exited_event): Use gdbpy_ref.
325 * python/py-event.h (evpy_emit_event): Remove
326 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
327 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
328 * python/py-continueevent.c (emit_continue_event): Use
329 gdbpy_ref.
330 * python/py-breakpoint.c (gdbpy_breakpoint_created)
331 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
332 gdbpy_ref.
333 * python/py-bpevent.c (create_breakpoint_event_object): Use
334 gdbpy_ref.
335
a68ff33e
TT
3362017-01-10 Tom Tromey <tom@tromey.com>
337
338 * python/py-ref.h: New file.
339
7becfd03
SM
3402017-01-10 Simon Marchi <simon.marchi@ericsson.com>
341
342 * cli-out.c (cli_ui_out::do_redirect): Change return type to
343 void.
344 * cli-out.h (cli_ui_out::do_redirect): Likewise.
345 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
346 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
347 * ui-out.c (ui_out::redirect): Likewise.
348 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
349 * cli/cli-logging.c (set_logging_redirect): Update call site of
350 ui_out::redirect.
351 (handle_redirections): Likewise.
352 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
353 * top.c (execute_command_to_string): Likewise.
354 * utils.c (do_ui_out_redirect_pop): Likewise.
355
df294654
SM
3562017-01-10 Simon Marchi <simon.marchi@ericsson.com>
357
358 * stack.c (_initialize_stack): Update "frame" command help message.
359
f5e6296e
IB
3602017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
361
362 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
363
0e2d6fa6
YQ
3642017-01-06 Yao Qi <yao.qi@linaro.org>
365
366 * x86-linux-nat.h: Include gdb_proc_service.h.
367
44d6d3f9
YQ
3682017-01-06 Yao Qi <yao.qi@linaro.org>
369
370 * ser-base.h: Include serial.h.
371
656731fe
YQ
3722017-01-06 Yao Qi <yao.qi@linaro.org>
373
374 * ppc-linux-tdep.h: Include ppc-tdep.h.
375
1ca8f924
YQ
3762017-01-06 Yao Qi <yao.qi@linaro.org>
377
378 * nat/amd64-linux-siginfo.h: Include signal.h.
379
bc3008c4
YQ
3802017-01-06 Yao Qi <yao.qi@linaro.org>
381
382 * nat/aarch64-linux-hw-point.h: Include break-common.h.
383
66c80d03
YQ
3842017-01-06 Yao Qi <yao.qi@linaro.org>
385
386 * mi/mi-parse.h: Include mi-cmds.h.
387
051d2dda
YQ
3882017-01-06 Yao Qi <yao.qi@linaro.org>
389
390 * inf-loop.c: Don't include "target.h".
391 * inf-loop.h: Include it here.
392
8018d34f
YQ
3932017-01-06 Yao Qi <yao.qi@linaro.org>
394
395 * dfp.h: Include "dboulest.h" and "expression.h".
396
c0b8369c
YQ
3972017-01-06 Yao Qi <yao.qi@linaro.org>
398
399 * ax-gdb.h: Include "ax.h".
400
ad5cba2a
YQ
4012017-01-06 Yao Qi <yao.qi@linaro.org>
402
403 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
404 with nat/gdb_ptrace.h.
405
1c33cd7f
YQ
4062017-01-05 Yao Qi <yao.qi@linaro.org>
407
408 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
409 new line.
410 (mips64_fbsd_sigframe_init): Likewise.
411
c988ac1d
JB
4122017-01-04 John Baldwin <jhb@FreeBSD.org>
413
414 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
415 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
416
b268007c
JB
4172017-01-04 John Baldwin <jhb@FreeBSD.org>
418
419 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
420 * NEWS: Mention new FreeBSD/mips native configuration.
421 * config/mips/fbsd.mh: New file.
422 * configure.host: Add mips*-*-freebsd*.
423 * mips-fbsd-nat.c: New file.
424
387360da
JB
4252017-01-04 John Baldwin <jhb@FreeBSD.org>
426
427 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
428 (ALLDEPFILES): Add mips-fbsd-tdep.c.
429 * NEWS: Mention new FreeBSD/mips target.
430 * configure.tgt: Add mips*-*-freebsd*.
431 * mips-fbsd-tdep.c: New file.
432 * mips-fbsd-tdep.h: New file.
433
2aaaf250
YQ
4342017-01-04 Yao Qi <yao.qi@linaro.org>
435
436 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
437 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
438
61baf725
JB
4392017-01-01 Joel Brobecker <brobecker@adacore.com>
440
441 Update copyright year range in all GDB files.
442
c113e7ff 4432017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 444
c113e7ff 445 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 446
c113e7ff 447For older changes see ChangeLog-2016.
c906108c
SS
448\f
449Local Variables:
450mode: change-log
451left-margin: 8
452fill-column: 74
453version-control: never
57da7796 454coding: utf-8
c906108c 455End:
This page took 2.21921 seconds and 4 git commands to generate.