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