Use gdbpy_ref in py-utils.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
830a4934
TT
12017-01-10 Tom Tromey <tom@tromey.com>
2
3 * python/py-utils.c (unicode_to_encoded_string)
4 (python_string_to_target_string)
5 (python_string_to_target_python_string)
6 (python_string_to_host_string, gdbpy_obj_to_string)
7 (get_addr_from_python): Use gdbpy_ref.
8
4586d543
TT
92017-01-10 Tom Tromey <tom@tromey.com>
10
11 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12 gdbpy_ref.
13
59876f8f
TT
142017-01-10 Tom Tromey <tom@tromey.com>
15
16 * python/python.c (eval_python_command, gdbpy_decode_line)
17 (gdbpy_run_events, gdbpy_start_type_printers)
18 (gdbpy_apply_type_printers): Use gdbpy_ref.
19
97d83487
TT
202017-01-10 Tom Tromey <tom@tromey.com>
21
22 * python/py-param.c (get_doc_string, compute_enum_values): Use
23 gdbpy_ref.
24
9205649a
TT
252017-01-10 Tom Tromey <tom@tromey.com>
26
27 * python/py-inferior.c (find_thread_object, build_inferior_list):
28 Use gdbpy_ref.
29
74c49d45
TT
302017-01-10 Tom Tromey <tom@tromey.com>
31
32 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
33
16361ffb
TT
342017-01-10 Tom Tromey <tom@tromey.com>
35
36 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
37 gdbpy_ref.
38
905f2cca
TT
392017-01-10 Tom Tromey <tom@tromey.com>
40
41 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
42 extra incref.
43 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
44 Use gdbpy_ref.
45
64081434
TT
462017-01-10 Tom Tromey <tom@tromey.com>
47
48 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
49 gdbpy_ref.
50
59e9e831
TT
512017-01-10 Tom Tromey <tom@tromey.com>
52
53 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
54 decref results of PyArg_ParseTupleAndKeywords.
55
9de10f6d
TT
562017-01-10 Tom Tromey <tom@tromey.com>
57
58 * python/python.c (python_run_simple_file): Use
59 unique_xmalloc_ptr, gdbpy_ref.
60
2bd5759d
TT
612017-01-10 Tom Tromey <tom@tromey.com>
62
63 * python/py-prettyprint.c (print_stack_unless_memory_error)
64 (print_string_repr, print_children): Use gdbpy_ref.
65 (dummy_python_frame): New class.
66 (dummy_python_frame::dummy_python_frame): Rename from
67 push_dummy_python_frame.
68 (py_restore_tstate): Remove.
69
3b4e0e01
TT
702017-01-10 Tom Tromey <tom@tromey.com>
71
72 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
73
17a22718
TT
742017-01-10 Tom Tromey <tom@tromey.com>
75
76 * python/python.c (ensure_python_env, restore_python_env):
77 Remove.
78 * python/python-internal.h (ensure_python_env): Don't declare.
79 * varobj.h (varobj_ensure_python_env): Don't declare.
80 * varobj.c (varobj_ensure_python_env): Remove.
81
68cdc557
TT
822017-01-10 Tom Tromey <tom@tromey.com>
83
84 * varobj.c (varobj_value_get_print_value): Use
85 gdbpy_enter_varobj.
86
1eba6383
TT
872017-01-10 Tom Tromey <tom@tromey.com>
88
89 * python/py-prettyprint.c (print_string_repr, print_children):
90 Update.
91 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
92 of "encoding".
93 * varobj.c (varobj_value_get_print_value): Update.
94 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
95
bde7b3e3
TT
962017-01-10 Tom Tromey <tom@tromey.com>
97
98 * varobj.c (varobj_get_display_hint)
99 (dynamic_varobj_has_child_method, install_new_value_visualizer)
100 (varobj_set_visualizer, free_variable): Use
101 gdbpy_enter_varobj.
102
a7785f8c
TT
1032017-01-10 Tom Tromey <tom@tromey.com>
104
105 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
106 (do_finish_initialization): New function. Use gdbpy_ref.
107 (gdbpy_finish_initialization): Use gdbpy_enter. Call
108 do_finish_initialization.
109
2865bfce
TT
1102017-01-10 Tom Tromey <tom@tromey.com>
111
112 * python/py-param.c (get_set_value, get_show_value): Use
113 gdbpy_enter, gdbpy_ref.
114
0e9dcc75
TT
1152017-01-10 Tom Tromey <tom@tromey.com>
116
117 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
118
12a5cedd
TT
1192017-01-10 Tom Tromey <tom@tromey.com>
120
121 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
122
788f2586
TT
1232017-01-10 Tom Tromey <tom@tromey.com>
124
125 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
126 Use gdbpy_enter_varobj.
127
6cd67bea
TT
1282017-01-10 Tom Tromey <tom@tromey.com>
129
130 * varobj.c (gdbpy_enter_varobj): New constructor.
131 * python/python-internal.h (gdbpy_enter_varobj): New class.
132 * python/py-varobj.c (py_varobj_get_iterator): Use
133 gdbpy_enter_varobj.
134
14b122bf
TT
1352017-01-10 Tom Tromey <tom@tromey.com>
136
137 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
138 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
139 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
140 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
141 unique_xmalloc_ptr.
142 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
143
bf1ca3b9
TT
1442017-01-10 Tom Tromey <tom@tromey.com>
145
146 * python/py-xmethods.c (invoke_match_method): Use
147 gdbpy_ref.
148
572a5524
TT
1492017-01-10 Tom Tromey <tom@tromey.com>
150
151 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
152 gdbpy_enter, gdbpy_ref.
153
396a78b6
TT
1542017-01-10 Tom Tromey <tom@tromey.com>
155
156 * python/python.c (python_interactive_command): Use gdbpy_enter.
157
a88b13c7
TT
1582017-01-10 Tom Tromey <tom@tromey.com>
159
160 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
161 gdbpy_ref.
162
e9f0c363
TT
1632017-01-10 Tom Tromey <tom@tromey.com>
164
165 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
166 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
167
6349f452
TT
1682017-01-10 Tom Tromey <tom@tromey.com>
169
170 * utils.h (htab_deleter): New struct.
171 (htab_up): New typedef.
172 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
173 gdbpy_enter, gdbpy_ref, htab_up.
174
c0171de6
TT
1752017-01-10 Tom Tromey <tom@tromey.com>
176
177 * python/py-unwind.c (pending_frame_invalidate): Remove.
178 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
179
f18e226f
TT
1802017-01-10 Tom Tromey <tom@tromey.com>
181
182 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
183 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
184
c57af3f1
TT
1852017-01-10 Tom Tromey <tom@tromey.com>
186
187 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
188
60e600ec
TT
1892017-01-10 Tom Tromey <tom@tromey.com>
190
191 * python/python.c (gdbpy_eval_from_control_command)
192 (gdbpy_source_script, gdbpy_run_events)
193 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
194 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
195 gdbpy_enter.
196
bf7da5b0
TT
1972017-01-10 Tom Tromey <tom@tromey.com>
198
199 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
200
2d38bced
TT
2012017-01-10 Tom Tromey <tom@tromey.com>
202
203 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
204
07bc7329
TT
2052017-01-10 Tom Tromey <tom@tromey.com>
206
207 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
208 (python_on_inferior_call_pre, python_on_inferior_call_post)
209 (python_on_memory_change, python_on_register_change)
210 (python_inferior_exit, python_new_objfile, add_thread_object)
211 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
212
6e7c365e
TT
2132017-01-10 Tom Tromey <tom@tromey.com>
214
215 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
216 (bpfinishpy_handle_exit): Use gdbpy_enter.
217
6ba0cd40
TT
2182017-01-10 Tom Tromey <tom@tromey.com>
219
220 * python/py-cmd.c (cmdpy_destroyer)
221 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
222 gdbpy_enter.
223
de2dc875
TT
2242017-01-10 Tom Tromey <tom@tromey.com>
225
226 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
227 gdbpy_enter.
228 (gdbpy_breakpoint_has_cond): Likewise.
229
4ecee2c4
TT
2302017-01-10 Tom Tromey <tom@tromey.com>
231
232 * python/python.c (gdbpy_enter): New constructor.
233 (~gdbpy_enter): New destructor.
234 (restore_python_env, ensure_python_env): Rewrite.
235 * python/python-internal.h (gdbpy_enter): New class.
236
37fce74f
TT
2372017-01-10 Tom Tromey <tom@tromey.com>
238
239 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
240
53a0cca3
TT
2412017-01-10 Tom Tromey <tom@tromey.com>
242
243 * python/py-value.c (value_has_field, get_field_flag)
244 (get_field_type, valpy_getitem, convert_value_from_python): Use
245 gdbpy_ref.
246
ff3724f5
TT
2472017-01-10 Tom Tromey <tom@tromey.com>
248
249 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
250 gdbpy_ref.
251
0700aea5
TT
2522017-01-10 Tom Tromey <tom@tromey.com>
253
254 * python/py-prettyprint.c (search_pp_list)
255 (find_pretty_printer_from_objfiles)
256 (find_pretty_printer_from_progspace)
257 (find_pretty_printer_from_gdb, find_pretty_printer)
258 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
259 gdbpy_ref.
260
1bb44c9f
TT
2612017-01-10 Tom Tromey <tom@tromey.com>
262
263 * python/py-param.c (call_doc_function): Use gdbpy_ref.
264
87ce03fd
TT
2652017-01-10 Tom Tromey <tom@tromey.com>
266
267 * python/py-linetable.c (build_line_table_tuple_from_pcs)
268 (ltpy_get_all_source_lines): Use gdbpy_ref.
269
ee0a3fb8
TT
2702017-01-10 Tom Tromey <tom@tromey.com>
271
272 * python/py-framefilter.c (extract_sym, extract_value)
273 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
274 gdbpy_ref.
275
bf2a52fa
TT
2762017-01-10 Tom Tromey <tom@tromey.com>
277
278 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
279
f59fe7f8
TT
2802017-01-10 Tom Tromey <tom@tromey.com>
281
282 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
283
80bd970a
TT
2842017-01-10 Tom Tromey <tom@tromey.com>
285
286 * python/py-function.c (convert_values_to_python, fnpy_init): Use
287 gdbpy_ref.
288
d1b3de2e
TT
2892017-01-10 Tom Tromey <tom@tromey.com>
290
291 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
292
3bb43384
TT
2932017-01-10 Tom Tromey <tom@tromey.com>
294
295 * python/py-type.c (convert_field, make_fielditem, typy_fields)
296 (typy_range): Use gdbpy_ref.
297
abf5651e
TT
2982017-01-10 Tom Tromey <tom@tromey.com>
299
300 * python/py-threadevent.c (create_thread_event_object): Use
301 gdbpy_ref.
302 * python/py-stopevent.c (create_stop_event_object): Simplify.
303 (emit_stop_event): Use gdbpy_ref.
304 * python/py-signalevent.c (create_signal_event_object): Use
305 gdbpy_ref.
306 * python/py-newobjfileevent.c (create_new_objfile_event_object)
307 (emit_new_objfile_event, create_clear_objfiles_event_object)
308 (emit_clear_objfiles_event): Use gdbpy_ref.
309 * python/py-infevents.c (create_inferior_call_event_object)
310 (create_register_changed_event_object)
311 (create_memory_changed_event_object, emit_inferior_call_event)
312 (emit_memory_changed_event, emit_register_changed_event): Use
313 gdbpy_ref.
314 * python/py-exitedevent.c (create_exited_event_object)
315 (emit_exited_event): Use gdbpy_ref.
316 * python/py-event.h (evpy_emit_event): Remove
317 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
318 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
319 * python/py-continueevent.c (emit_continue_event): Use
320 gdbpy_ref.
321 * python/py-breakpoint.c (gdbpy_breakpoint_created)
322 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
323 gdbpy_ref.
324 * python/py-bpevent.c (create_breakpoint_event_object): Use
325 gdbpy_ref.
326
a68ff33e
TT
3272017-01-10 Tom Tromey <tom@tromey.com>
328
329 * python/py-ref.h: New file.
330
7becfd03
SM
3312017-01-10 Simon Marchi <simon.marchi@ericsson.com>
332
333 * cli-out.c (cli_ui_out::do_redirect): Change return type to
334 void.
335 * cli-out.h (cli_ui_out::do_redirect): Likewise.
336 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
337 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
338 * ui-out.c (ui_out::redirect): Likewise.
339 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
340 * cli/cli-logging.c (set_logging_redirect): Update call site of
341 ui_out::redirect.
342 (handle_redirections): Likewise.
343 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
344 * top.c (execute_command_to_string): Likewise.
345 * utils.c (do_ui_out_redirect_pop): Likewise.
346
df294654
SM
3472017-01-10 Simon Marchi <simon.marchi@ericsson.com>
348
349 * stack.c (_initialize_stack): Update "frame" command help message.
350
f5e6296e
IB
3512017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
352
353 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
354
0e2d6fa6
YQ
3552017-01-06 Yao Qi <yao.qi@linaro.org>
356
357 * x86-linux-nat.h: Include gdb_proc_service.h.
358
44d6d3f9
YQ
3592017-01-06 Yao Qi <yao.qi@linaro.org>
360
361 * ser-base.h: Include serial.h.
362
656731fe
YQ
3632017-01-06 Yao Qi <yao.qi@linaro.org>
364
365 * ppc-linux-tdep.h: Include ppc-tdep.h.
366
1ca8f924
YQ
3672017-01-06 Yao Qi <yao.qi@linaro.org>
368
369 * nat/amd64-linux-siginfo.h: Include signal.h.
370
bc3008c4
YQ
3712017-01-06 Yao Qi <yao.qi@linaro.org>
372
373 * nat/aarch64-linux-hw-point.h: Include break-common.h.
374
66c80d03
YQ
3752017-01-06 Yao Qi <yao.qi@linaro.org>
376
377 * mi/mi-parse.h: Include mi-cmds.h.
378
051d2dda
YQ
3792017-01-06 Yao Qi <yao.qi@linaro.org>
380
381 * inf-loop.c: Don't include "target.h".
382 * inf-loop.h: Include it here.
383
8018d34f
YQ
3842017-01-06 Yao Qi <yao.qi@linaro.org>
385
386 * dfp.h: Include "dboulest.h" and "expression.h".
387
c0b8369c
YQ
3882017-01-06 Yao Qi <yao.qi@linaro.org>
389
390 * ax-gdb.h: Include "ax.h".
391
ad5cba2a
YQ
3922017-01-06 Yao Qi <yao.qi@linaro.org>
393
394 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
395 with nat/gdb_ptrace.h.
396
1c33cd7f
YQ
3972017-01-05 Yao Qi <yao.qi@linaro.org>
398
399 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
400 new line.
401 (mips64_fbsd_sigframe_init): Likewise.
402
c988ac1d
JB
4032017-01-04 John Baldwin <jhb@FreeBSD.org>
404
405 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
406 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
407
b268007c
JB
4082017-01-04 John Baldwin <jhb@FreeBSD.org>
409
410 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
411 * NEWS: Mention new FreeBSD/mips native configuration.
412 * config/mips/fbsd.mh: New file.
413 * configure.host: Add mips*-*-freebsd*.
414 * mips-fbsd-nat.c: New file.
415
387360da
JB
4162017-01-04 John Baldwin <jhb@FreeBSD.org>
417
418 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
419 (ALLDEPFILES): Add mips-fbsd-tdep.c.
420 * NEWS: Mention new FreeBSD/mips target.
421 * configure.tgt: Add mips*-*-freebsd*.
422 * mips-fbsd-tdep.c: New file.
423 * mips-fbsd-tdep.h: New file.
424
2aaaf250
YQ
4252017-01-04 Yao Qi <yao.qi@linaro.org>
426
427 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
428 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
429
61baf725
JB
4302017-01-01 Joel Brobecker <brobecker@adacore.com>
431
432 Update copyright year range in all GDB files.
433
c113e7ff 4342017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 435
c113e7ff 436 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 437
c113e7ff 438For older changes see ChangeLog-2016.
c906108c
SS
439\f
440Local Variables:
441mode: change-log
442left-margin: 8
443fill-column: 74
444version-control: never
57da7796 445coding: utf-8
c906108c 446End:
This page took 2.221578 seconds and 4 git commands to generate.