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