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