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