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