Use gdbpy_ref in python.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
59876f8f
TT
12017-01-10 Tom Tromey <tom@tromey.com>
2
3 * python/python.c (eval_python_command, gdbpy_decode_line)
4 (gdbpy_run_events, gdbpy_start_type_printers)
5 (gdbpy_apply_type_printers): Use gdbpy_ref.
6
97d83487
TT
72017-01-10 Tom Tromey <tom@tromey.com>
8
9 * python/py-param.c (get_doc_string, compute_enum_values): Use
10 gdbpy_ref.
11
9205649a
TT
122017-01-10 Tom Tromey <tom@tromey.com>
13
14 * python/py-inferior.c (find_thread_object, build_inferior_list):
15 Use gdbpy_ref.
16
74c49d45
TT
172017-01-10 Tom Tromey <tom@tromey.com>
18
19 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
20
16361ffb
TT
212017-01-10 Tom Tromey <tom@tromey.com>
22
23 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
24 gdbpy_ref.
25
905f2cca
TT
262017-01-10 Tom Tromey <tom@tromey.com>
27
28 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
29 extra incref.
30 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
31 Use gdbpy_ref.
32
64081434
TT
332017-01-10 Tom Tromey <tom@tromey.com>
34
35 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
36 gdbpy_ref.
37
59e9e831
TT
382017-01-10 Tom Tromey <tom@tromey.com>
39
40 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
41 decref results of PyArg_ParseTupleAndKeywords.
42
9de10f6d
TT
432017-01-10 Tom Tromey <tom@tromey.com>
44
45 * python/python.c (python_run_simple_file): Use
46 unique_xmalloc_ptr, gdbpy_ref.
47
2bd5759d
TT
482017-01-10 Tom Tromey <tom@tromey.com>
49
50 * python/py-prettyprint.c (print_stack_unless_memory_error)
51 (print_string_repr, print_children): Use gdbpy_ref.
52 (dummy_python_frame): New class.
53 (dummy_python_frame::dummy_python_frame): Rename from
54 push_dummy_python_frame.
55 (py_restore_tstate): Remove.
56
3b4e0e01
TT
572017-01-10 Tom Tromey <tom@tromey.com>
58
59 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
60
17a22718
TT
612017-01-10 Tom Tromey <tom@tromey.com>
62
63 * python/python.c (ensure_python_env, restore_python_env):
64 Remove.
65 * python/python-internal.h (ensure_python_env): Don't declare.
66 * varobj.h (varobj_ensure_python_env): Don't declare.
67 * varobj.c (varobj_ensure_python_env): Remove.
68
68cdc557
TT
692017-01-10 Tom Tromey <tom@tromey.com>
70
71 * varobj.c (varobj_value_get_print_value): Use
72 gdbpy_enter_varobj.
73
1eba6383
TT
742017-01-10 Tom Tromey <tom@tromey.com>
75
76 * python/py-prettyprint.c (print_string_repr, print_children):
77 Update.
78 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
79 of "encoding".
80 * varobj.c (varobj_value_get_print_value): Update.
81 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
82
bde7b3e3
TT
832017-01-10 Tom Tromey <tom@tromey.com>
84
85 * varobj.c (varobj_get_display_hint)
86 (dynamic_varobj_has_child_method, install_new_value_visualizer)
87 (varobj_set_visualizer, free_variable): Use
88 gdbpy_enter_varobj.
89
a7785f8c
TT
902017-01-10 Tom Tromey <tom@tromey.com>
91
92 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
93 (do_finish_initialization): New function. Use gdbpy_ref.
94 (gdbpy_finish_initialization): Use gdbpy_enter. Call
95 do_finish_initialization.
96
2865bfce
TT
972017-01-10 Tom Tromey <tom@tromey.com>
98
99 * python/py-param.c (get_set_value, get_show_value): Use
100 gdbpy_enter, gdbpy_ref.
101
0e9dcc75
TT
1022017-01-10 Tom Tromey <tom@tromey.com>
103
104 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
105
12a5cedd
TT
1062017-01-10 Tom Tromey <tom@tromey.com>
107
108 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
109
788f2586
TT
1102017-01-10 Tom Tromey <tom@tromey.com>
111
112 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
113 Use gdbpy_enter_varobj.
114
6cd67bea
TT
1152017-01-10 Tom Tromey <tom@tromey.com>
116
117 * varobj.c (gdbpy_enter_varobj): New constructor.
118 * python/python-internal.h (gdbpy_enter_varobj): New class.
119 * python/py-varobj.c (py_varobj_get_iterator): Use
120 gdbpy_enter_varobj.
121
14b122bf
TT
1222017-01-10 Tom Tromey <tom@tromey.com>
123
124 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
125 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
126 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
127 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
128 unique_xmalloc_ptr.
129 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
130
bf1ca3b9
TT
1312017-01-10 Tom Tromey <tom@tromey.com>
132
133 * python/py-xmethods.c (invoke_match_method): Use
134 gdbpy_ref.
135
572a5524
TT
1362017-01-10 Tom Tromey <tom@tromey.com>
137
138 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
139 gdbpy_enter, gdbpy_ref.
140
396a78b6
TT
1412017-01-10 Tom Tromey <tom@tromey.com>
142
143 * python/python.c (python_interactive_command): Use gdbpy_enter.
144
a88b13c7
TT
1452017-01-10 Tom Tromey <tom@tromey.com>
146
147 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
148 gdbpy_ref.
149
e9f0c363
TT
1502017-01-10 Tom Tromey <tom@tromey.com>
151
152 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
153 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
154
6349f452
TT
1552017-01-10 Tom Tromey <tom@tromey.com>
156
157 * utils.h (htab_deleter): New struct.
158 (htab_up): New typedef.
159 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
160 gdbpy_enter, gdbpy_ref, htab_up.
161
c0171de6
TT
1622017-01-10 Tom Tromey <tom@tromey.com>
163
164 * python/py-unwind.c (pending_frame_invalidate): Remove.
165 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
166
f18e226f
TT
1672017-01-10 Tom Tromey <tom@tromey.com>
168
169 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
170 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
171
c57af3f1
TT
1722017-01-10 Tom Tromey <tom@tromey.com>
173
174 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
175
60e600ec
TT
1762017-01-10 Tom Tromey <tom@tromey.com>
177
178 * python/python.c (gdbpy_eval_from_control_command)
179 (gdbpy_source_script, gdbpy_run_events)
180 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
181 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
182 gdbpy_enter.
183
bf7da5b0
TT
1842017-01-10 Tom Tromey <tom@tromey.com>
185
186 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
187
2d38bced
TT
1882017-01-10 Tom Tromey <tom@tromey.com>
189
190 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
191
07bc7329
TT
1922017-01-10 Tom Tromey <tom@tromey.com>
193
194 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
195 (python_on_inferior_call_pre, python_on_inferior_call_post)
196 (python_on_memory_change, python_on_register_change)
197 (python_inferior_exit, python_new_objfile, add_thread_object)
198 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
199
6e7c365e
TT
2002017-01-10 Tom Tromey <tom@tromey.com>
201
202 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
203 (bpfinishpy_handle_exit): Use gdbpy_enter.
204
6ba0cd40
TT
2052017-01-10 Tom Tromey <tom@tromey.com>
206
207 * python/py-cmd.c (cmdpy_destroyer)
208 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
209 gdbpy_enter.
210
de2dc875
TT
2112017-01-10 Tom Tromey <tom@tromey.com>
212
213 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
214 gdbpy_enter.
215 (gdbpy_breakpoint_has_cond): Likewise.
216
4ecee2c4
TT
2172017-01-10 Tom Tromey <tom@tromey.com>
218
219 * python/python.c (gdbpy_enter): New constructor.
220 (~gdbpy_enter): New destructor.
221 (restore_python_env, ensure_python_env): Rewrite.
222 * python/python-internal.h (gdbpy_enter): New class.
223
37fce74f
TT
2242017-01-10 Tom Tromey <tom@tromey.com>
225
226 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
227
53a0cca3
TT
2282017-01-10 Tom Tromey <tom@tromey.com>
229
230 * python/py-value.c (value_has_field, get_field_flag)
231 (get_field_type, valpy_getitem, convert_value_from_python): Use
232 gdbpy_ref.
233
ff3724f5
TT
2342017-01-10 Tom Tromey <tom@tromey.com>
235
236 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
237 gdbpy_ref.
238
0700aea5
TT
2392017-01-10 Tom Tromey <tom@tromey.com>
240
241 * python/py-prettyprint.c (search_pp_list)
242 (find_pretty_printer_from_objfiles)
243 (find_pretty_printer_from_progspace)
244 (find_pretty_printer_from_gdb, find_pretty_printer)
245 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
246 gdbpy_ref.
247
1bb44c9f
TT
2482017-01-10 Tom Tromey <tom@tromey.com>
249
250 * python/py-param.c (call_doc_function): Use gdbpy_ref.
251
87ce03fd
TT
2522017-01-10 Tom Tromey <tom@tromey.com>
253
254 * python/py-linetable.c (build_line_table_tuple_from_pcs)
255 (ltpy_get_all_source_lines): Use gdbpy_ref.
256
ee0a3fb8
TT
2572017-01-10 Tom Tromey <tom@tromey.com>
258
259 * python/py-framefilter.c (extract_sym, extract_value)
260 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
261 gdbpy_ref.
262
bf2a52fa
TT
2632017-01-10 Tom Tromey <tom@tromey.com>
264
265 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
266
f59fe7f8
TT
2672017-01-10 Tom Tromey <tom@tromey.com>
268
269 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
270
80bd970a
TT
2712017-01-10 Tom Tromey <tom@tromey.com>
272
273 * python/py-function.c (convert_values_to_python, fnpy_init): Use
274 gdbpy_ref.
275
d1b3de2e
TT
2762017-01-10 Tom Tromey <tom@tromey.com>
277
278 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
279
3bb43384
TT
2802017-01-10 Tom Tromey <tom@tromey.com>
281
282 * python/py-type.c (convert_field, make_fielditem, typy_fields)
283 (typy_range): Use gdbpy_ref.
284
abf5651e
TT
2852017-01-10 Tom Tromey <tom@tromey.com>
286
287 * python/py-threadevent.c (create_thread_event_object): Use
288 gdbpy_ref.
289 * python/py-stopevent.c (create_stop_event_object): Simplify.
290 (emit_stop_event): Use gdbpy_ref.
291 * python/py-signalevent.c (create_signal_event_object): Use
292 gdbpy_ref.
293 * python/py-newobjfileevent.c (create_new_objfile_event_object)
294 (emit_new_objfile_event, create_clear_objfiles_event_object)
295 (emit_clear_objfiles_event): Use gdbpy_ref.
296 * python/py-infevents.c (create_inferior_call_event_object)
297 (create_register_changed_event_object)
298 (create_memory_changed_event_object, emit_inferior_call_event)
299 (emit_memory_changed_event, emit_register_changed_event): Use
300 gdbpy_ref.
301 * python/py-exitedevent.c (create_exited_event_object)
302 (emit_exited_event): Use gdbpy_ref.
303 * python/py-event.h (evpy_emit_event): Remove
304 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
305 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
306 * python/py-continueevent.c (emit_continue_event): Use
307 gdbpy_ref.
308 * python/py-breakpoint.c (gdbpy_breakpoint_created)
309 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
310 gdbpy_ref.
311 * python/py-bpevent.c (create_breakpoint_event_object): Use
312 gdbpy_ref.
313
a68ff33e
TT
3142017-01-10 Tom Tromey <tom@tromey.com>
315
316 * python/py-ref.h: New file.
317
7becfd03
SM
3182017-01-10 Simon Marchi <simon.marchi@ericsson.com>
319
320 * cli-out.c (cli_ui_out::do_redirect): Change return type to
321 void.
322 * cli-out.h (cli_ui_out::do_redirect): Likewise.
323 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
324 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
325 * ui-out.c (ui_out::redirect): Likewise.
326 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
327 * cli/cli-logging.c (set_logging_redirect): Update call site of
328 ui_out::redirect.
329 (handle_redirections): Likewise.
330 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
331 * top.c (execute_command_to_string): Likewise.
332 * utils.c (do_ui_out_redirect_pop): Likewise.
333
df294654
SM
3342017-01-10 Simon Marchi <simon.marchi@ericsson.com>
335
336 * stack.c (_initialize_stack): Update "frame" command help message.
337
f5e6296e
IB
3382017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
339
340 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
341
0e2d6fa6
YQ
3422017-01-06 Yao Qi <yao.qi@linaro.org>
343
344 * x86-linux-nat.h: Include gdb_proc_service.h.
345
44d6d3f9
YQ
3462017-01-06 Yao Qi <yao.qi@linaro.org>
347
348 * ser-base.h: Include serial.h.
349
656731fe
YQ
3502017-01-06 Yao Qi <yao.qi@linaro.org>
351
352 * ppc-linux-tdep.h: Include ppc-tdep.h.
353
1ca8f924
YQ
3542017-01-06 Yao Qi <yao.qi@linaro.org>
355
356 * nat/amd64-linux-siginfo.h: Include signal.h.
357
bc3008c4
YQ
3582017-01-06 Yao Qi <yao.qi@linaro.org>
359
360 * nat/aarch64-linux-hw-point.h: Include break-common.h.
361
66c80d03
YQ
3622017-01-06 Yao Qi <yao.qi@linaro.org>
363
364 * mi/mi-parse.h: Include mi-cmds.h.
365
051d2dda
YQ
3662017-01-06 Yao Qi <yao.qi@linaro.org>
367
368 * inf-loop.c: Don't include "target.h".
369 * inf-loop.h: Include it here.
370
8018d34f
YQ
3712017-01-06 Yao Qi <yao.qi@linaro.org>
372
373 * dfp.h: Include "dboulest.h" and "expression.h".
374
c0b8369c
YQ
3752017-01-06 Yao Qi <yao.qi@linaro.org>
376
377 * ax-gdb.h: Include "ax.h".
378
ad5cba2a
YQ
3792017-01-06 Yao Qi <yao.qi@linaro.org>
380
381 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
382 with nat/gdb_ptrace.h.
383
1c33cd7f
YQ
3842017-01-05 Yao Qi <yao.qi@linaro.org>
385
386 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
387 new line.
388 (mips64_fbsd_sigframe_init): Likewise.
389
c988ac1d
JB
3902017-01-04 John Baldwin <jhb@FreeBSD.org>
391
392 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
393 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
394
b268007c
JB
3952017-01-04 John Baldwin <jhb@FreeBSD.org>
396
397 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
398 * NEWS: Mention new FreeBSD/mips native configuration.
399 * config/mips/fbsd.mh: New file.
400 * configure.host: Add mips*-*-freebsd*.
401 * mips-fbsd-nat.c: New file.
402
387360da
JB
4032017-01-04 John Baldwin <jhb@FreeBSD.org>
404
405 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
406 (ALLDEPFILES): Add mips-fbsd-tdep.c.
407 * NEWS: Mention new FreeBSD/mips target.
408 * configure.tgt: Add mips*-*-freebsd*.
409 * mips-fbsd-tdep.c: New file.
410 * mips-fbsd-tdep.h: New file.
411
2aaaf250
YQ
4122017-01-04 Yao Qi <yao.qi@linaro.org>
413
414 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
415 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
416
61baf725
JB
4172017-01-01 Joel Brobecker <brobecker@adacore.com>
418
419 Update copyright year range in all GDB files.
420
c113e7ff 4212017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 422
c113e7ff 423 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 424
c113e7ff 425For older changes see ChangeLog-2016.
c906108c
SS
426\f
427Local Variables:
428mode: change-log
429left-margin: 8
430fill-column: 74
431version-control: never
57da7796 432coding: utf-8
c906108c 433End:
This page took 2.17091 seconds and 4 git commands to generate.