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