Use gdbpy_enter in python.c
[binutils-gdb.git] / gdb / ChangeLog
1 2017-01-10 Tom Tromey <tom@tromey.com>
2
3 * python/python.c (gdbpy_eval_from_control_command)
4 (gdbpy_source_script, gdbpy_run_events)
5 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
6 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
7 gdbpy_enter.
8
9 2017-01-10 Tom Tromey <tom@tromey.com>
10
11 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12
13 2017-01-10 Tom Tromey <tom@tromey.com>
14
15 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16
17 2017-01-10 Tom Tromey <tom@tromey.com>
18
19 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
20 (python_on_inferior_call_pre, python_on_inferior_call_post)
21 (python_on_memory_change, python_on_register_change)
22 (python_inferior_exit, python_new_objfile, add_thread_object)
23 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
24
25 2017-01-10 Tom Tromey <tom@tromey.com>
26
27 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
28 (bpfinishpy_handle_exit): Use gdbpy_enter.
29
30 2017-01-10 Tom Tromey <tom@tromey.com>
31
32 * python/py-cmd.c (cmdpy_destroyer)
33 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
34 gdbpy_enter.
35
36 2017-01-10 Tom Tromey <tom@tromey.com>
37
38 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
39 gdbpy_enter.
40 (gdbpy_breakpoint_has_cond): Likewise.
41
42 2017-01-10 Tom Tromey <tom@tromey.com>
43
44 * python/python.c (gdbpy_enter): New constructor.
45 (~gdbpy_enter): New destructor.
46 (restore_python_env, ensure_python_env): Rewrite.
47 * python/python-internal.h (gdbpy_enter): New class.
48
49 2017-01-10 Tom Tromey <tom@tromey.com>
50
51 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
52
53 2017-01-10 Tom Tromey <tom@tromey.com>
54
55 * python/py-value.c (value_has_field, get_field_flag)
56 (get_field_type, valpy_getitem, convert_value_from_python): Use
57 gdbpy_ref.
58
59 2017-01-10 Tom Tromey <tom@tromey.com>
60
61 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
62 gdbpy_ref.
63
64 2017-01-10 Tom Tromey <tom@tromey.com>
65
66 * python/py-prettyprint.c (search_pp_list)
67 (find_pretty_printer_from_objfiles)
68 (find_pretty_printer_from_progspace)
69 (find_pretty_printer_from_gdb, find_pretty_printer)
70 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
71 gdbpy_ref.
72
73 2017-01-10 Tom Tromey <tom@tromey.com>
74
75 * python/py-param.c (call_doc_function): Use gdbpy_ref.
76
77 2017-01-10 Tom Tromey <tom@tromey.com>
78
79 * python/py-linetable.c (build_line_table_tuple_from_pcs)
80 (ltpy_get_all_source_lines): Use gdbpy_ref.
81
82 2017-01-10 Tom Tromey <tom@tromey.com>
83
84 * python/py-framefilter.c (extract_sym, extract_value)
85 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
86 gdbpy_ref.
87
88 2017-01-10 Tom Tromey <tom@tromey.com>
89
90 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
91
92 2017-01-10 Tom Tromey <tom@tromey.com>
93
94 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
95
96 2017-01-10 Tom Tromey <tom@tromey.com>
97
98 * python/py-function.c (convert_values_to_python, fnpy_init): Use
99 gdbpy_ref.
100
101 2017-01-10 Tom Tromey <tom@tromey.com>
102
103 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
104
105 2017-01-10 Tom Tromey <tom@tromey.com>
106
107 * python/py-type.c (convert_field, make_fielditem, typy_fields)
108 (typy_range): Use gdbpy_ref.
109
110 2017-01-10 Tom Tromey <tom@tromey.com>
111
112 * python/py-threadevent.c (create_thread_event_object): Use
113 gdbpy_ref.
114 * python/py-stopevent.c (create_stop_event_object): Simplify.
115 (emit_stop_event): Use gdbpy_ref.
116 * python/py-signalevent.c (create_signal_event_object): Use
117 gdbpy_ref.
118 * python/py-newobjfileevent.c (create_new_objfile_event_object)
119 (emit_new_objfile_event, create_clear_objfiles_event_object)
120 (emit_clear_objfiles_event): Use gdbpy_ref.
121 * python/py-infevents.c (create_inferior_call_event_object)
122 (create_register_changed_event_object)
123 (create_memory_changed_event_object, emit_inferior_call_event)
124 (emit_memory_changed_event, emit_register_changed_event): Use
125 gdbpy_ref.
126 * python/py-exitedevent.c (create_exited_event_object)
127 (emit_exited_event): Use gdbpy_ref.
128 * python/py-event.h (evpy_emit_event): Remove
129 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
130 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
131 * python/py-continueevent.c (emit_continue_event): Use
132 gdbpy_ref.
133 * python/py-breakpoint.c (gdbpy_breakpoint_created)
134 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
135 gdbpy_ref.
136 * python/py-bpevent.c (create_breakpoint_event_object): Use
137 gdbpy_ref.
138
139 2017-01-10 Tom Tromey <tom@tromey.com>
140
141 * python/py-ref.h: New file.
142
143 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
144
145 * cli-out.c (cli_ui_out::do_redirect): Change return type to
146 void.
147 * cli-out.h (cli_ui_out::do_redirect): Likewise.
148 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
149 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
150 * ui-out.c (ui_out::redirect): Likewise.
151 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
152 * cli/cli-logging.c (set_logging_redirect): Update call site of
153 ui_out::redirect.
154 (handle_redirections): Likewise.
155 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
156 * top.c (execute_command_to_string): Likewise.
157 * utils.c (do_ui_out_redirect_pop): Likewise.
158
159 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
160
161 * stack.c (_initialize_stack): Update "frame" command help message.
162
163 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
164
165 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
166
167 2017-01-06 Yao Qi <yao.qi@linaro.org>
168
169 * x86-linux-nat.h: Include gdb_proc_service.h.
170
171 2017-01-06 Yao Qi <yao.qi@linaro.org>
172
173 * ser-base.h: Include serial.h.
174
175 2017-01-06 Yao Qi <yao.qi@linaro.org>
176
177 * ppc-linux-tdep.h: Include ppc-tdep.h.
178
179 2017-01-06 Yao Qi <yao.qi@linaro.org>
180
181 * nat/amd64-linux-siginfo.h: Include signal.h.
182
183 2017-01-06 Yao Qi <yao.qi@linaro.org>
184
185 * nat/aarch64-linux-hw-point.h: Include break-common.h.
186
187 2017-01-06 Yao Qi <yao.qi@linaro.org>
188
189 * mi/mi-parse.h: Include mi-cmds.h.
190
191 2017-01-06 Yao Qi <yao.qi@linaro.org>
192
193 * inf-loop.c: Don't include "target.h".
194 * inf-loop.h: Include it here.
195
196 2017-01-06 Yao Qi <yao.qi@linaro.org>
197
198 * dfp.h: Include "dboulest.h" and "expression.h".
199
200 2017-01-06 Yao Qi <yao.qi@linaro.org>
201
202 * ax-gdb.h: Include "ax.h".
203
204 2017-01-06 Yao Qi <yao.qi@linaro.org>
205
206 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
207 with nat/gdb_ptrace.h.
208
209 2017-01-05 Yao Qi <yao.qi@linaro.org>
210
211 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
212 new line.
213 (mips64_fbsd_sigframe_init): Likewise.
214
215 2017-01-04 John Baldwin <jhb@FreeBSD.org>
216
217 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
218 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
219
220 2017-01-04 John Baldwin <jhb@FreeBSD.org>
221
222 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
223 * NEWS: Mention new FreeBSD/mips native configuration.
224 * config/mips/fbsd.mh: New file.
225 * configure.host: Add mips*-*-freebsd*.
226 * mips-fbsd-nat.c: New file.
227
228 2017-01-04 John Baldwin <jhb@FreeBSD.org>
229
230 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
231 (ALLDEPFILES): Add mips-fbsd-tdep.c.
232 * NEWS: Mention new FreeBSD/mips target.
233 * configure.tgt: Add mips*-*-freebsd*.
234 * mips-fbsd-tdep.c: New file.
235 * mips-fbsd-tdep.h: New file.
236
237 2017-01-04 Yao Qi <yao.qi@linaro.org>
238
239 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
240 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
241
242 2017-01-01 Joel Brobecker <brobecker@adacore.com>
243
244 Update copyright year range in all GDB files.
245
246 2017-01-01 Joel Brobecker <brobecker@adacore.com>
247
248 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
249
250 For older changes see ChangeLog-2016.
251 \f
252 Local Variables:
253 mode: change-log
254 left-margin: 8
255 fill-column: 74
256 version-control: never
257 coding: utf-8
258 End: