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