Commit | Line | Data |
---|---|---|
3015c064 SM |
1 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
2 | ||
3 | * remote.c (remote_can_async_p): Update comment. | |
4 | ||
fde1b17d SM |
5 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
6 | ||
7 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
8 | ||
ca1ca08b SM |
9 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
10 | ||
11 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
12 | ||
4ad2da73 SM |
13 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
14 | ||
15 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
16 | ||
c8b23b3f TT |
17 | 2017-01-10 Tom Tromey <tom@tromey.com> |
18 | ||
19 | * python/py-type.c (typy_legacy_template_argument): Update. | |
20 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
21 | ~demangle_parse_info): Declare new members. | |
22 | (cp_demangled_name_to_comp): Return unique_ptr. | |
23 | (cp_demangled_name_parse_free) | |
24 | (make_cleanup_cp_demangled_name_parse_free) | |
25 | (cp_new_demangle_parse_info): Remove. | |
26 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
27 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
28 | (inspect_type, cp_canonicalize_string_full) | |
29 | (cp_canonicalize_string): Update. | |
30 | (mangled_name_to_comp): Change return type. | |
31 | (cp_class_name_from_physname, method_name_from_physname) | |
32 | (cp_func_name, cp_remove_params): Update. | |
33 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
34 | cp_new_demangle_parse_info. | |
35 | (~demangle_parse_info): New destructor, from | |
36 | cp_demangled_name_parse_free. | |
37 | (cp_merge_demangle_parse_infos): Update. | |
38 | (cp_demangled_name_to_comp): Change return type. | |
39 | ||
1ac32117 TT |
40 | 2017-01-10 Tom Tromey <tom@tromey.com> |
41 | ||
42 | * top.c (prevent_dont_repeat): Change return type. | |
43 | * python/python.c (execute_gdb_command): Use std::string. | |
44 | Update. | |
45 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
46 | * command.h (prevent_dont_repeat): Change return type. | |
47 | * breakpoint.c (bpstat_do_actions_1): Update. | |
48 | ||
0cf08227 TT |
49 | 2017-01-10 Tom Tromey <tom@tromey.com> |
50 | ||
51 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
52 | free_to_mark. | |
53 | (scoped_value_mark::free_to_mark): New method. | |
54 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
55 | scoped_value_mark. | |
56 | ||
eb115069 TT |
57 | 2017-01-10 Tom Tromey <tom@tromey.com> |
58 | ||
59 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
60 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
61 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
62 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
63 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
64 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
65 | scoped_value_mark. | |
66 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
67 | * value.h (scoped_value_mark): New class. | |
68 | ||
906768f9 TT |
69 | 2017-01-10 Tom Tromey <tom@tromey.com> |
70 | ||
71 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
72 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
73 | * psymtab.c (discard_psymtabs_upto): Remove. | |
74 | (make_cleanup_discard_psymtabs): Remove. | |
75 | (struct psymtab_state): Remove. | |
76 | ||
bef155c3 TT |
77 | 2017-01-10 Tom Tromey <tom@tromey.com> |
78 | ||
79 | * record-full.c (record_full_save_cleanups): Remove. | |
80 | (record_full_save): Use gdb::unlinker. | |
81 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
82 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
83 | cleanups. | |
84 | * dwarf2read.c (unlink_if_set): Remove. | |
85 | (write_psymtabs_to_index): Use gdb::unlinker. | |
86 | * common/gdb_unlinker.h: New file. | |
87 | ||
192b62ce TT |
88 | 2017-01-10 Tom Tromey <tom@tromey.com> |
89 | ||
90 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
91 | * windows-nat.c (windows_make_so): Update. | |
92 | * utils.h (make_cleanup_bfd_unref): Remove. | |
93 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
94 | * symfile.h (symfile_bfd_open) | |
95 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
96 | * symfile.c (read_symbols, symbol_file_add) | |
97 | (separate_debug_file_exists): Update. | |
98 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
99 | (generic_load, reread_symbols): Update. | |
100 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
101 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
102 | (spu_symbol_file_add_from_memory): Update. | |
103 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
104 | gdb_bfd_ref_ptr. | |
105 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
106 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
107 | gdb_bfd_ref_ptr. | |
108 | (solib_map_sections, reload_shared_libraries_1): Update. | |
109 | * solib-svr4.c (enable_break): Update. | |
110 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
111 | * solib-frv.c (enable_break2): Update. | |
112 | * solib-dsbt.c (enable_break): Update. | |
113 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
114 | gdb_bfd_ref_ptr. | |
115 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
116 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
117 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
118 | * record-full.c (record_full_save): Update. | |
119 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
120 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
121 | * minidebug.c (find_separate_debug_file_in_section): Return | |
122 | gdb_bfd_ref_ptr. | |
123 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
124 | gdb_bfd_ref_ptr. | |
125 | (macho_symfile_read_all_oso): Update. | |
126 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
127 | (macho_symfile_read): Update. | |
128 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
129 | (jit_bfd_try_read_symtab): Update. | |
130 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
131 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
132 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
133 | gdb_bfd_ref_ptr. | |
134 | (gdb_bfd_ref_policy): New struct. | |
135 | (gdb_bfd_ref_ptr): New typedef. | |
136 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
137 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
138 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
139 | gdb_bfd_ref_ptr. | |
140 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
141 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
142 | (gcore_command): Update. | |
143 | * exec.c (exec_file_attach): Update. | |
144 | * elfread.c (elf_symfile_read): Update. | |
145 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
146 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
147 | (open_and_init_dwo_file): Update. | |
148 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
149 | (open_and_init_dwp_file): Update. | |
150 | * corelow.c (core_open): Update. | |
151 | * compile/compile-object-load.c (compile_object_load): Update. | |
152 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
153 | * coffread.c (coff_symfile_read): Update. | |
154 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
155 | gdb_bfd_ref_ptr. Rename. | |
156 | (dump_bfd_file, restore_command): Update. | |
157 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
158 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
159 | (find_separate_debug_file_by_buildid): Update. | |
160 | ||
50315b21 TT |
161 | 2017-01-10 Tom Tromey <tom@tromey.com> |
162 | ||
163 | * common/gdb_ref_ptr.h: New file. | |
164 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
165 | (gdbpy_ref): Now a typedef. | |
166 | ||
fc4007c9 TT |
167 | 2017-01-10 Tom Tromey <tom@tromey.com> |
168 | ||
169 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
170 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
171 | Remove. | |
172 | * linespec.c (decode_compound_collector): Add constructor, | |
173 | destructor. | |
174 | (lookup_prefix_sym): Remove cleanup. | |
175 | (symtab_collector): Add constructor, destructor. | |
176 | (collect_symtabs_from_filename): Remove cleanup. | |
177 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
178 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
179 | Use htab_up. | |
180 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
181 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
182 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
183 | (write_psymtabs_to_index): Use htab_up. | |
184 | * dwarf2loc.c (func_verify_no_selftailcall) | |
185 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
186 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
187 | std::vector, gdb::unique_xmalloc_ptr. | |
188 | (call_sitep): Remove typedef. | |
189 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
190 | ||
8dbcee67 TT |
191 | 2017-01-10 Tom Tromey <tom@tromey.com> |
192 | ||
193 | * python/python-internal.h (make_cleanup_py_decref) | |
194 | (make_cleanup_py_xdecref): Don't declare. | |
195 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
196 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
197 | ||
13df46cc TT |
198 | 2017-01-10 Tom Tromey <tom@tromey.com> |
199 | ||
200 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
201 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
202 | ||
06fc9bf7 TT |
203 | 2017-01-10 Tom Tromey <tom@tromey.com> |
204 | ||
205 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
206 | ||
830a4934 TT |
207 | 2017-01-10 Tom Tromey <tom@tromey.com> |
208 | ||
209 | * python/py-utils.c (unicode_to_encoded_string) | |
210 | (python_string_to_target_string) | |
211 | (python_string_to_target_python_string) | |
212 | (python_string_to_host_string, gdbpy_obj_to_string) | |
213 | (get_addr_from_python): Use gdbpy_ref. | |
214 | ||
4586d543 TT |
215 | 2017-01-10 Tom Tromey <tom@tromey.com> |
216 | ||
217 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
218 | gdbpy_ref. | |
219 | ||
59876f8f TT |
220 | 2017-01-10 Tom Tromey <tom@tromey.com> |
221 | ||
222 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
223 | (gdbpy_run_events, gdbpy_start_type_printers) | |
224 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
225 | ||
97d83487 TT |
226 | 2017-01-10 Tom Tromey <tom@tromey.com> |
227 | ||
228 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
229 | gdbpy_ref. | |
230 | ||
9205649a TT |
231 | 2017-01-10 Tom Tromey <tom@tromey.com> |
232 | ||
233 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
234 | Use gdbpy_ref. | |
235 | ||
74c49d45 TT |
236 | 2017-01-10 Tom Tromey <tom@tromey.com> |
237 | ||
238 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
239 | ||
16361ffb TT |
240 | 2017-01-10 Tom Tromey <tom@tromey.com> |
241 | ||
242 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
243 | gdbpy_ref. | |
244 | ||
905f2cca TT |
245 | 2017-01-10 Tom Tromey <tom@tromey.com> |
246 | ||
247 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
248 | extra incref. | |
249 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
250 | Use gdbpy_ref. | |
251 | ||
64081434 TT |
252 | 2017-01-10 Tom Tromey <tom@tromey.com> |
253 | ||
254 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
255 | gdbpy_ref. | |
256 | ||
59e9e831 TT |
257 | 2017-01-10 Tom Tromey <tom@tromey.com> |
258 | ||
259 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
260 | decref results of PyArg_ParseTupleAndKeywords. | |
261 | ||
9de10f6d TT |
262 | 2017-01-10 Tom Tromey <tom@tromey.com> |
263 | ||
264 | * python/python.c (python_run_simple_file): Use | |
265 | unique_xmalloc_ptr, gdbpy_ref. | |
266 | ||
2bd5759d TT |
267 | 2017-01-10 Tom Tromey <tom@tromey.com> |
268 | ||
269 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
270 | (print_string_repr, print_children): Use gdbpy_ref. | |
271 | (dummy_python_frame): New class. | |
272 | (dummy_python_frame::dummy_python_frame): Rename from | |
273 | push_dummy_python_frame. | |
274 | (py_restore_tstate): Remove. | |
275 | ||
3b4e0e01 TT |
276 | 2017-01-10 Tom Tromey <tom@tromey.com> |
277 | ||
278 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
279 | ||
17a22718 TT |
280 | 2017-01-10 Tom Tromey <tom@tromey.com> |
281 | ||
282 | * python/python.c (ensure_python_env, restore_python_env): | |
283 | Remove. | |
284 | * python/python-internal.h (ensure_python_env): Don't declare. | |
285 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
286 | * varobj.c (varobj_ensure_python_env): Remove. | |
287 | ||
68cdc557 TT |
288 | 2017-01-10 Tom Tromey <tom@tromey.com> |
289 | ||
290 | * varobj.c (varobj_value_get_print_value): Use | |
291 | gdbpy_enter_varobj. | |
292 | ||
1eba6383 TT |
293 | 2017-01-10 Tom Tromey <tom@tromey.com> |
294 | ||
295 | * python/py-prettyprint.c (print_string_repr, print_children): | |
296 | Update. | |
297 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
298 | of "encoding". | |
299 | * varobj.c (varobj_value_get_print_value): Update. | |
300 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
301 | ||
bde7b3e3 TT |
302 | 2017-01-10 Tom Tromey <tom@tromey.com> |
303 | ||
304 | * varobj.c (varobj_get_display_hint) | |
305 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
306 | (varobj_set_visualizer, free_variable): Use | |
307 | gdbpy_enter_varobj. | |
308 | ||
a7785f8c TT |
309 | 2017-01-10 Tom Tromey <tom@tromey.com> |
310 | ||
311 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
312 | (do_finish_initialization): New function. Use gdbpy_ref. | |
313 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
314 | do_finish_initialization. | |
315 | ||
2865bfce TT |
316 | 2017-01-10 Tom Tromey <tom@tromey.com> |
317 | ||
318 | * python/py-param.c (get_set_value, get_show_value): Use | |
319 | gdbpy_enter, gdbpy_ref. | |
320 | ||
0e9dcc75 TT |
321 | 2017-01-10 Tom Tromey <tom@tromey.com> |
322 | ||
323 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
324 | ||
12a5cedd TT |
325 | 2017-01-10 Tom Tromey <tom@tromey.com> |
326 | ||
327 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
328 | ||
788f2586 TT |
329 | 2017-01-10 Tom Tromey <tom@tromey.com> |
330 | ||
331 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
332 | Use gdbpy_enter_varobj. | |
333 | ||
6cd67bea TT |
334 | 2017-01-10 Tom Tromey <tom@tromey.com> |
335 | ||
336 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
337 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
338 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
339 | gdbpy_enter_varobj. | |
340 | ||
14b122bf TT |
341 | 2017-01-10 Tom Tromey <tom@tromey.com> |
342 | ||
343 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
344 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
345 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
346 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
347 | unique_xmalloc_ptr. | |
348 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
349 | ||
bf1ca3b9 TT |
350 | 2017-01-10 Tom Tromey <tom@tromey.com> |
351 | ||
352 | * python/py-xmethods.c (invoke_match_method): Use | |
353 | gdbpy_ref. | |
354 | ||
572a5524 TT |
355 | 2017-01-10 Tom Tromey <tom@tromey.com> |
356 | ||
357 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
358 | gdbpy_enter, gdbpy_ref. | |
359 | ||
396a78b6 TT |
360 | 2017-01-10 Tom Tromey <tom@tromey.com> |
361 | ||
362 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
363 | ||
a88b13c7 TT |
364 | 2017-01-10 Tom Tromey <tom@tromey.com> |
365 | ||
366 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
367 | gdbpy_ref. | |
368 | ||
e9f0c363 TT |
369 | 2017-01-10 Tom Tromey <tom@tromey.com> |
370 | ||
371 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
372 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
373 | ||
6349f452 TT |
374 | 2017-01-10 Tom Tromey <tom@tromey.com> |
375 | ||
376 | * utils.h (htab_deleter): New struct. | |
377 | (htab_up): New typedef. | |
378 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
379 | gdbpy_enter, gdbpy_ref, htab_up. | |
380 | ||
c0171de6 TT |
381 | 2017-01-10 Tom Tromey <tom@tromey.com> |
382 | ||
383 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
384 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
385 | ||
f18e226f TT |
386 | 2017-01-10 Tom Tromey <tom@tromey.com> |
387 | ||
388 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
389 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
390 | ||
c57af3f1 TT |
391 | 2017-01-10 Tom Tromey <tom@tromey.com> |
392 | ||
393 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
394 | ||
60e600ec TT |
395 | 2017-01-10 Tom Tromey <tom@tromey.com> |
396 | ||
397 | * python/python.c (gdbpy_eval_from_control_command) | |
398 | (gdbpy_source_script, gdbpy_run_events) | |
399 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
400 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
401 | gdbpy_enter. | |
402 | ||
bf7da5b0 TT |
403 | 2017-01-10 Tom Tromey <tom@tromey.com> |
404 | ||
405 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
406 | ||
2d38bced TT |
407 | 2017-01-10 Tom Tromey <tom@tromey.com> |
408 | ||
409 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
410 | ||
07bc7329 TT |
411 | 2017-01-10 Tom Tromey <tom@tromey.com> |
412 | ||
413 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
414 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
415 | (python_on_memory_change, python_on_register_change) | |
416 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
417 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
418 | ||
6e7c365e TT |
419 | 2017-01-10 Tom Tromey <tom@tromey.com> |
420 | ||
421 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
422 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
423 | ||
6ba0cd40 TT |
424 | 2017-01-10 Tom Tromey <tom@tromey.com> |
425 | ||
426 | * python/py-cmd.c (cmdpy_destroyer) | |
427 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
428 | gdbpy_enter. | |
429 | ||
de2dc875 TT |
430 | 2017-01-10 Tom Tromey <tom@tromey.com> |
431 | ||
432 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
433 | gdbpy_enter. | |
434 | (gdbpy_breakpoint_has_cond): Likewise. | |
435 | ||
4ecee2c4 TT |
436 | 2017-01-10 Tom Tromey <tom@tromey.com> |
437 | ||
438 | * python/python.c (gdbpy_enter): New constructor. | |
439 | (~gdbpy_enter): New destructor. | |
440 | (restore_python_env, ensure_python_env): Rewrite. | |
441 | * python/python-internal.h (gdbpy_enter): New class. | |
442 | ||
37fce74f TT |
443 | 2017-01-10 Tom Tromey <tom@tromey.com> |
444 | ||
445 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
446 | ||
53a0cca3 TT |
447 | 2017-01-10 Tom Tromey <tom@tromey.com> |
448 | ||
449 | * python/py-value.c (value_has_field, get_field_flag) | |
450 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
451 | gdbpy_ref. | |
452 | ||
ff3724f5 TT |
453 | 2017-01-10 Tom Tromey <tom@tromey.com> |
454 | ||
455 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
456 | gdbpy_ref. | |
457 | ||
0700aea5 TT |
458 | 2017-01-10 Tom Tromey <tom@tromey.com> |
459 | ||
460 | * python/py-prettyprint.c (search_pp_list) | |
461 | (find_pretty_printer_from_objfiles) | |
462 | (find_pretty_printer_from_progspace) | |
463 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
464 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
465 | gdbpy_ref. | |
466 | ||
1bb44c9f TT |
467 | 2017-01-10 Tom Tromey <tom@tromey.com> |
468 | ||
469 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
470 | ||
87ce03fd TT |
471 | 2017-01-10 Tom Tromey <tom@tromey.com> |
472 | ||
473 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
474 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
475 | ||
ee0a3fb8 TT |
476 | 2017-01-10 Tom Tromey <tom@tromey.com> |
477 | ||
478 | * python/py-framefilter.c (extract_sym, extract_value) | |
479 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
480 | gdbpy_ref. | |
481 | ||
bf2a52fa TT |
482 | 2017-01-10 Tom Tromey <tom@tromey.com> |
483 | ||
484 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
485 | ||
f59fe7f8 TT |
486 | 2017-01-10 Tom Tromey <tom@tromey.com> |
487 | ||
488 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
489 | ||
80bd970a TT |
490 | 2017-01-10 Tom Tromey <tom@tromey.com> |
491 | ||
492 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
493 | gdbpy_ref. | |
494 | ||
d1b3de2e TT |
495 | 2017-01-10 Tom Tromey <tom@tromey.com> |
496 | ||
497 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
498 | ||
3bb43384 TT |
499 | 2017-01-10 Tom Tromey <tom@tromey.com> |
500 | ||
501 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
502 | (typy_range): Use gdbpy_ref. | |
503 | ||
abf5651e TT |
504 | 2017-01-10 Tom Tromey <tom@tromey.com> |
505 | ||
506 | * python/py-threadevent.c (create_thread_event_object): Use | |
507 | gdbpy_ref. | |
508 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
509 | (emit_stop_event): Use gdbpy_ref. | |
510 | * python/py-signalevent.c (create_signal_event_object): Use | |
511 | gdbpy_ref. | |
512 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
513 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
514 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
515 | * python/py-infevents.c (create_inferior_call_event_object) | |
516 | (create_register_changed_event_object) | |
517 | (create_memory_changed_event_object, emit_inferior_call_event) | |
518 | (emit_memory_changed_event, emit_register_changed_event): Use | |
519 | gdbpy_ref. | |
520 | * python/py-exitedevent.c (create_exited_event_object) | |
521 | (emit_exited_event): Use gdbpy_ref. | |
522 | * python/py-event.h (evpy_emit_event): Remove | |
523 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
524 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
525 | * python/py-continueevent.c (emit_continue_event): Use | |
526 | gdbpy_ref. | |
527 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
528 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
529 | gdbpy_ref. | |
530 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
531 | gdbpy_ref. | |
532 | ||
a68ff33e TT |
533 | 2017-01-10 Tom Tromey <tom@tromey.com> |
534 | ||
535 | * python/py-ref.h: New file. | |
536 | ||
7becfd03 SM |
537 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
538 | ||
539 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
540 | void. | |
541 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
542 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
543 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
544 | * ui-out.c (ui_out::redirect): Likewise. | |
545 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
546 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
547 | ui_out::redirect. | |
548 | (handle_redirections): Likewise. | |
549 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
550 | * top.c (execute_command_to_string): Likewise. | |
551 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
552 | ||
df294654 SM |
553 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
554 | ||
555 | * stack.c (_initialize_stack): Update "frame" command help message. | |
556 | ||
f5e6296e IB |
557 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
558 | ||
559 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
560 | ||
0e2d6fa6 YQ |
561 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
562 | ||
563 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
564 | ||
44d6d3f9 YQ |
565 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
566 | ||
567 | * ser-base.h: Include serial.h. | |
568 | ||
656731fe YQ |
569 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
570 | ||
571 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
572 | ||
1ca8f924 YQ |
573 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
574 | ||
575 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
576 | ||
bc3008c4 YQ |
577 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
578 | ||
579 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
580 | ||
66c80d03 YQ |
581 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
582 | ||
583 | * mi/mi-parse.h: Include mi-cmds.h. | |
584 | ||
051d2dda YQ |
585 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
586 | ||
587 | * inf-loop.c: Don't include "target.h". | |
588 | * inf-loop.h: Include it here. | |
589 | ||
8018d34f YQ |
590 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
591 | ||
592 | * dfp.h: Include "dboulest.h" and "expression.h". | |
593 | ||
c0b8369c YQ |
594 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
595 | ||
596 | * ax-gdb.h: Include "ax.h". | |
597 | ||
ad5cba2a YQ |
598 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
599 | ||
600 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
601 | with nat/gdb_ptrace.h. | |
602 | ||
1c33cd7f YQ |
603 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
604 | ||
605 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
606 | new line. | |
607 | (mips64_fbsd_sigframe_init): Likewise. | |
608 | ||
c988ac1d JB |
609 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
610 | ||
611 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
612 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
613 | ||
b268007c JB |
614 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
615 | ||
616 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
617 | * NEWS: Mention new FreeBSD/mips native configuration. | |
618 | * config/mips/fbsd.mh: New file. | |
619 | * configure.host: Add mips*-*-freebsd*. | |
620 | * mips-fbsd-nat.c: New file. | |
621 | ||
387360da JB |
622 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
623 | ||
624 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
625 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
626 | * NEWS: Mention new FreeBSD/mips target. | |
627 | * configure.tgt: Add mips*-*-freebsd*. | |
628 | * mips-fbsd-tdep.c: New file. | |
629 | * mips-fbsd-tdep.h: New file. | |
630 | ||
2aaaf250 YQ |
631 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
632 | ||
633 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
634 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
635 | ||
61baf725 JB |
636 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
637 | ||
638 | Update copyright year range in all GDB files. | |
639 | ||
c113e7ff | 640 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 641 | |
c113e7ff | 642 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 643 | |
c113e7ff | 644 | For older changes see ChangeLog-2016. |
c906108c SS |
645 | \f |
646 | Local Variables: | |
647 | mode: change-log | |
648 | left-margin: 8 | |
649 | fill-column: 74 | |
650 | version-control: never | |
57da7796 | 651 | coding: utf-8 |
c906108c | 652 | End: |