Add gdb_ref_ptr.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
50315b21
TT
12017-01-10 Tom Tromey <tom@tromey.com>
2
3 * common/gdb_ref_ptr.h: New file.
4 * python/py-ref.h (struct gdbpy_ref_policy): New.
5 (gdbpy_ref): Now a typedef.
6
fc4007c9
TT
72017-01-10 Tom Tromey <tom@tromey.com>
8
9 * utils.h (make_cleanup_htab_delete): Don't declare.
10 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11 Remove.
12 * linespec.c (decode_compound_collector): Add constructor,
13 destructor.
14 (lookup_prefix_sym): Remove cleanup.
15 (symtab_collector): Add constructor, destructor.
16 (collect_symtabs_from_filename): Remove cleanup.
17 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
18 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
19 Use htab_up.
20 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
21 * dwarf2read.c (dw2_expand_symtabs_matching)
22 (dw2_map_symbol_filenames, dwarf_decode_macros)
23 (write_psymtabs_to_index): Use htab_up.
24 * dwarf2loc.c (func_verify_no_selftailcall)
25 (call_site_find_chain_1, func_verify_no_selftailcall)
26 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
27 std::vector, gdb::unique_xmalloc_ptr.
28 (call_sitep): Remove typedef.
29 (dwarf2_locexpr_baton_eval): Remove unused variable.
30
8dbcee67
TT
312017-01-10 Tom Tromey <tom@tromey.com>
32
33 * python/python-internal.h (make_cleanup_py_decref)
34 (make_cleanup_py_xdecref): Don't declare.
35 * python/py-utils.c (py_decref, make_cleanup_py_decref)
36 (py_xdecref, make_cleanup_py_xdecref): Remove.
37
13df46cc
TT
382017-01-10 Tom Tromey <tom@tromey.com>
39
40 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
41 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
42
06fc9bf7
TT
432017-01-10 Tom Tromey <tom@tromey.com>
44
45 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
46
830a4934
TT
472017-01-10 Tom Tromey <tom@tromey.com>
48
49 * python/py-utils.c (unicode_to_encoded_string)
50 (python_string_to_target_string)
51 (python_string_to_target_python_string)
52 (python_string_to_host_string, gdbpy_obj_to_string)
53 (get_addr_from_python): Use gdbpy_ref.
54
4586d543
TT
552017-01-10 Tom Tromey <tom@tromey.com>
56
57 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
58 gdbpy_ref.
59
59876f8f
TT
602017-01-10 Tom Tromey <tom@tromey.com>
61
62 * python/python.c (eval_python_command, gdbpy_decode_line)
63 (gdbpy_run_events, gdbpy_start_type_printers)
64 (gdbpy_apply_type_printers): Use gdbpy_ref.
65
97d83487
TT
662017-01-10 Tom Tromey <tom@tromey.com>
67
68 * python/py-param.c (get_doc_string, compute_enum_values): Use
69 gdbpy_ref.
70
9205649a
TT
712017-01-10 Tom Tromey <tom@tromey.com>
72
73 * python/py-inferior.c (find_thread_object, build_inferior_list):
74 Use gdbpy_ref.
75
74c49d45
TT
762017-01-10 Tom Tromey <tom@tromey.com>
77
78 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
79
16361ffb
TT
802017-01-10 Tom Tromey <tom@tromey.com>
81
82 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
83 gdbpy_ref.
84
905f2cca
TT
852017-01-10 Tom Tromey <tom@tromey.com>
86
87 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
88 extra incref.
89 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
90 Use gdbpy_ref.
91
64081434
TT
922017-01-10 Tom Tromey <tom@tromey.com>
93
94 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
95 gdbpy_ref.
96
59e9e831
TT
972017-01-10 Tom Tromey <tom@tromey.com>
98
99 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
100 decref results of PyArg_ParseTupleAndKeywords.
101
9de10f6d
TT
1022017-01-10 Tom Tromey <tom@tromey.com>
103
104 * python/python.c (python_run_simple_file): Use
105 unique_xmalloc_ptr, gdbpy_ref.
106
2bd5759d
TT
1072017-01-10 Tom Tromey <tom@tromey.com>
108
109 * python/py-prettyprint.c (print_stack_unless_memory_error)
110 (print_string_repr, print_children): Use gdbpy_ref.
111 (dummy_python_frame): New class.
112 (dummy_python_frame::dummy_python_frame): Rename from
113 push_dummy_python_frame.
114 (py_restore_tstate): Remove.
115
3b4e0e01
TT
1162017-01-10 Tom Tromey <tom@tromey.com>
117
118 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
119
17a22718
TT
1202017-01-10 Tom Tromey <tom@tromey.com>
121
122 * python/python.c (ensure_python_env, restore_python_env):
123 Remove.
124 * python/python-internal.h (ensure_python_env): Don't declare.
125 * varobj.h (varobj_ensure_python_env): Don't declare.
126 * varobj.c (varobj_ensure_python_env): Remove.
127
68cdc557
TT
1282017-01-10 Tom Tromey <tom@tromey.com>
129
130 * varobj.c (varobj_value_get_print_value): Use
131 gdbpy_enter_varobj.
132
1eba6383
TT
1332017-01-10 Tom Tromey <tom@tromey.com>
134
135 * python/py-prettyprint.c (print_string_repr, print_children):
136 Update.
137 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
138 of "encoding".
139 * varobj.c (varobj_value_get_print_value): Update.
140 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
141
bde7b3e3
TT
1422017-01-10 Tom Tromey <tom@tromey.com>
143
144 * varobj.c (varobj_get_display_hint)
145 (dynamic_varobj_has_child_method, install_new_value_visualizer)
146 (varobj_set_visualizer, free_variable): Use
147 gdbpy_enter_varobj.
148
a7785f8c
TT
1492017-01-10 Tom Tromey <tom@tromey.com>
150
151 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
152 (do_finish_initialization): New function. Use gdbpy_ref.
153 (gdbpy_finish_initialization): Use gdbpy_enter. Call
154 do_finish_initialization.
155
2865bfce
TT
1562017-01-10 Tom Tromey <tom@tromey.com>
157
158 * python/py-param.c (get_set_value, get_show_value): Use
159 gdbpy_enter, gdbpy_ref.
160
0e9dcc75
TT
1612017-01-10 Tom Tromey <tom@tromey.com>
162
163 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
164
12a5cedd
TT
1652017-01-10 Tom Tromey <tom@tromey.com>
166
167 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
168
788f2586
TT
1692017-01-10 Tom Tromey <tom@tromey.com>
170
171 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
172 Use gdbpy_enter_varobj.
173
6cd67bea
TT
1742017-01-10 Tom Tromey <tom@tromey.com>
175
176 * varobj.c (gdbpy_enter_varobj): New constructor.
177 * python/python-internal.h (gdbpy_enter_varobj): New class.
178 * python/py-varobj.c (py_varobj_get_iterator): Use
179 gdbpy_enter_varobj.
180
14b122bf
TT
1812017-01-10 Tom Tromey <tom@tromey.com>
182
183 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
184 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
185 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
186 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
187 unique_xmalloc_ptr.
188 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
189
bf1ca3b9
TT
1902017-01-10 Tom Tromey <tom@tromey.com>
191
192 * python/py-xmethods.c (invoke_match_method): Use
193 gdbpy_ref.
194
572a5524
TT
1952017-01-10 Tom Tromey <tom@tromey.com>
196
197 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
198 gdbpy_enter, gdbpy_ref.
199
396a78b6
TT
2002017-01-10 Tom Tromey <tom@tromey.com>
201
202 * python/python.c (python_interactive_command): Use gdbpy_enter.
203
a88b13c7
TT
2042017-01-10 Tom Tromey <tom@tromey.com>
205
206 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
207 gdbpy_ref.
208
e9f0c363
TT
2092017-01-10 Tom Tromey <tom@tromey.com>
210
211 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
212 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
213
6349f452
TT
2142017-01-10 Tom Tromey <tom@tromey.com>
215
216 * utils.h (htab_deleter): New struct.
217 (htab_up): New typedef.
218 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
219 gdbpy_enter, gdbpy_ref, htab_up.
220
c0171de6
TT
2212017-01-10 Tom Tromey <tom@tromey.com>
222
223 * python/py-unwind.c (pending_frame_invalidate): Remove.
224 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
225
f18e226f
TT
2262017-01-10 Tom Tromey <tom@tromey.com>
227
228 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
229 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
230
c57af3f1
TT
2312017-01-10 Tom Tromey <tom@tromey.com>
232
233 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
234
60e600ec
TT
2352017-01-10 Tom Tromey <tom@tromey.com>
236
237 * python/python.c (gdbpy_eval_from_control_command)
238 (gdbpy_source_script, gdbpy_run_events)
239 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
240 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
241 gdbpy_enter.
242
bf7da5b0
TT
2432017-01-10 Tom Tromey <tom@tromey.com>
244
245 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
246
2d38bced
TT
2472017-01-10 Tom Tromey <tom@tromey.com>
248
249 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
250
07bc7329
TT
2512017-01-10 Tom Tromey <tom@tromey.com>
252
253 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
254 (python_on_inferior_call_pre, python_on_inferior_call_post)
255 (python_on_memory_change, python_on_register_change)
256 (python_inferior_exit, python_new_objfile, add_thread_object)
257 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
258
6e7c365e
TT
2592017-01-10 Tom Tromey <tom@tromey.com>
260
261 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
262 (bpfinishpy_handle_exit): Use gdbpy_enter.
263
6ba0cd40
TT
2642017-01-10 Tom Tromey <tom@tromey.com>
265
266 * python/py-cmd.c (cmdpy_destroyer)
267 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
268 gdbpy_enter.
269
de2dc875
TT
2702017-01-10 Tom Tromey <tom@tromey.com>
271
272 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
273 gdbpy_enter.
274 (gdbpy_breakpoint_has_cond): Likewise.
275
4ecee2c4
TT
2762017-01-10 Tom Tromey <tom@tromey.com>
277
278 * python/python.c (gdbpy_enter): New constructor.
279 (~gdbpy_enter): New destructor.
280 (restore_python_env, ensure_python_env): Rewrite.
281 * python/python-internal.h (gdbpy_enter): New class.
282
37fce74f
TT
2832017-01-10 Tom Tromey <tom@tromey.com>
284
285 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
286
53a0cca3
TT
2872017-01-10 Tom Tromey <tom@tromey.com>
288
289 * python/py-value.c (value_has_field, get_field_flag)
290 (get_field_type, valpy_getitem, convert_value_from_python): Use
291 gdbpy_ref.
292
ff3724f5
TT
2932017-01-10 Tom Tromey <tom@tromey.com>
294
295 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
296 gdbpy_ref.
297
0700aea5
TT
2982017-01-10 Tom Tromey <tom@tromey.com>
299
300 * python/py-prettyprint.c (search_pp_list)
301 (find_pretty_printer_from_objfiles)
302 (find_pretty_printer_from_progspace)
303 (find_pretty_printer_from_gdb, find_pretty_printer)
304 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
305 gdbpy_ref.
306
1bb44c9f
TT
3072017-01-10 Tom Tromey <tom@tromey.com>
308
309 * python/py-param.c (call_doc_function): Use gdbpy_ref.
310
87ce03fd
TT
3112017-01-10 Tom Tromey <tom@tromey.com>
312
313 * python/py-linetable.c (build_line_table_tuple_from_pcs)
314 (ltpy_get_all_source_lines): Use gdbpy_ref.
315
ee0a3fb8
TT
3162017-01-10 Tom Tromey <tom@tromey.com>
317
318 * python/py-framefilter.c (extract_sym, extract_value)
319 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
320 gdbpy_ref.
321
bf2a52fa
TT
3222017-01-10 Tom Tromey <tom@tromey.com>
323
324 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
325
f59fe7f8
TT
3262017-01-10 Tom Tromey <tom@tromey.com>
327
328 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
329
80bd970a
TT
3302017-01-10 Tom Tromey <tom@tromey.com>
331
332 * python/py-function.c (convert_values_to_python, fnpy_init): Use
333 gdbpy_ref.
334
d1b3de2e
TT
3352017-01-10 Tom Tromey <tom@tromey.com>
336
337 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
338
3bb43384
TT
3392017-01-10 Tom Tromey <tom@tromey.com>
340
341 * python/py-type.c (convert_field, make_fielditem, typy_fields)
342 (typy_range): Use gdbpy_ref.
343
abf5651e
TT
3442017-01-10 Tom Tromey <tom@tromey.com>
345
346 * python/py-threadevent.c (create_thread_event_object): Use
347 gdbpy_ref.
348 * python/py-stopevent.c (create_stop_event_object): Simplify.
349 (emit_stop_event): Use gdbpy_ref.
350 * python/py-signalevent.c (create_signal_event_object): Use
351 gdbpy_ref.
352 * python/py-newobjfileevent.c (create_new_objfile_event_object)
353 (emit_new_objfile_event, create_clear_objfiles_event_object)
354 (emit_clear_objfiles_event): Use gdbpy_ref.
355 * python/py-infevents.c (create_inferior_call_event_object)
356 (create_register_changed_event_object)
357 (create_memory_changed_event_object, emit_inferior_call_event)
358 (emit_memory_changed_event, emit_register_changed_event): Use
359 gdbpy_ref.
360 * python/py-exitedevent.c (create_exited_event_object)
361 (emit_exited_event): Use gdbpy_ref.
362 * python/py-event.h (evpy_emit_event): Remove
363 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
364 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
365 * python/py-continueevent.c (emit_continue_event): Use
366 gdbpy_ref.
367 * python/py-breakpoint.c (gdbpy_breakpoint_created)
368 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
369 gdbpy_ref.
370 * python/py-bpevent.c (create_breakpoint_event_object): Use
371 gdbpy_ref.
372
a68ff33e
TT
3732017-01-10 Tom Tromey <tom@tromey.com>
374
375 * python/py-ref.h: New file.
376
7becfd03
SM
3772017-01-10 Simon Marchi <simon.marchi@ericsson.com>
378
379 * cli-out.c (cli_ui_out::do_redirect): Change return type to
380 void.
381 * cli-out.h (cli_ui_out::do_redirect): Likewise.
382 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
383 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
384 * ui-out.c (ui_out::redirect): Likewise.
385 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
386 * cli/cli-logging.c (set_logging_redirect): Update call site of
387 ui_out::redirect.
388 (handle_redirections): Likewise.
389 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
390 * top.c (execute_command_to_string): Likewise.
391 * utils.c (do_ui_out_redirect_pop): Likewise.
392
df294654
SM
3932017-01-10 Simon Marchi <simon.marchi@ericsson.com>
394
395 * stack.c (_initialize_stack): Update "frame" command help message.
396
f5e6296e
IB
3972017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
398
399 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
400
0e2d6fa6
YQ
4012017-01-06 Yao Qi <yao.qi@linaro.org>
402
403 * x86-linux-nat.h: Include gdb_proc_service.h.
404
44d6d3f9
YQ
4052017-01-06 Yao Qi <yao.qi@linaro.org>
406
407 * ser-base.h: Include serial.h.
408
656731fe
YQ
4092017-01-06 Yao Qi <yao.qi@linaro.org>
410
411 * ppc-linux-tdep.h: Include ppc-tdep.h.
412
1ca8f924
YQ
4132017-01-06 Yao Qi <yao.qi@linaro.org>
414
415 * nat/amd64-linux-siginfo.h: Include signal.h.
416
bc3008c4
YQ
4172017-01-06 Yao Qi <yao.qi@linaro.org>
418
419 * nat/aarch64-linux-hw-point.h: Include break-common.h.
420
66c80d03
YQ
4212017-01-06 Yao Qi <yao.qi@linaro.org>
422
423 * mi/mi-parse.h: Include mi-cmds.h.
424
051d2dda
YQ
4252017-01-06 Yao Qi <yao.qi@linaro.org>
426
427 * inf-loop.c: Don't include "target.h".
428 * inf-loop.h: Include it here.
429
8018d34f
YQ
4302017-01-06 Yao Qi <yao.qi@linaro.org>
431
432 * dfp.h: Include "dboulest.h" and "expression.h".
433
c0b8369c
YQ
4342017-01-06 Yao Qi <yao.qi@linaro.org>
435
436 * ax-gdb.h: Include "ax.h".
437
ad5cba2a
YQ
4382017-01-06 Yao Qi <yao.qi@linaro.org>
439
440 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
441 with nat/gdb_ptrace.h.
442
1c33cd7f
YQ
4432017-01-05 Yao Qi <yao.qi@linaro.org>
444
445 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
446 new line.
447 (mips64_fbsd_sigframe_init): Likewise.
448
c988ac1d
JB
4492017-01-04 John Baldwin <jhb@FreeBSD.org>
450
451 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
452 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
453
b268007c
JB
4542017-01-04 John Baldwin <jhb@FreeBSD.org>
455
456 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
457 * NEWS: Mention new FreeBSD/mips native configuration.
458 * config/mips/fbsd.mh: New file.
459 * configure.host: Add mips*-*-freebsd*.
460 * mips-fbsd-nat.c: New file.
461
387360da
JB
4622017-01-04 John Baldwin <jhb@FreeBSD.org>
463
464 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
465 (ALLDEPFILES): Add mips-fbsd-tdep.c.
466 * NEWS: Mention new FreeBSD/mips target.
467 * configure.tgt: Add mips*-*-freebsd*.
468 * mips-fbsd-tdep.c: New file.
469 * mips-fbsd-tdep.h: New file.
470
2aaaf250
YQ
4712017-01-04 Yao Qi <yao.qi@linaro.org>
472
473 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
474 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
475
61baf725
JB
4762017-01-01 Joel Brobecker <brobecker@adacore.com>
477
478 Update copyright year range in all GDB files.
479
c113e7ff 4802017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 481
c113e7ff 482 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 483
c113e7ff 484For older changes see ChangeLog-2016.
c906108c
SS
485\f
486Local Variables:
487mode: change-log
488left-margin: 8
489fill-column: 74
490version-control: never
57da7796 491coding: utf-8
c906108c 492End:
This page took 2.119511 seconds and 4 git commands to generate.