]>
Commit | Line | Data |
---|---|---|
d194f1fe PA |
1 | 2017-04-04 Pedro Alves <[email protected]> |
2 | ||
3 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
4 | operator bool, has_value and get methods. | |
5 | ||
fff8551c PA |
6 | 2017-04-04 Pedro Alves <[email protected]> |
7 | ||
8 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
9 | fields. | |
10 | (line_header): Initialize all data fields. Change type of | |
11 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
12 | Change type of include_dirs to std::vector<const char *>. Remove | |
13 | num_include_dirs, include_dirs_size. Change type of file_names to | |
14 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
15 | (line_header::line_header): New. | |
16 | (line_header::add_include_dir, line_header::add_file_name): New | |
17 | methods. | |
18 | (line_header::include_dir_at): Remove NULL check. | |
19 | (line_header::file_name_at): Add const overload. | |
20 | (line_header_up): New unique_ptr typedef. | |
21 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
22 | std::vector. Remove free_line_header call. | |
23 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
24 | free_line_header call. | |
25 | (free_cu_line_header): Delete. | |
26 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
27 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
28 | Adjust to use std::vector. | |
29 | (free_line_header): Delete. | |
30 | (free_line_header_voidp): Use delete. | |
31 | (add_include_dir): Replace with ... | |
32 | (line_header::add_include_dir): ... this method. Use std::vector. | |
33 | (add_file_name): Replace with ... | |
34 | (line_header::add_file_name): ... this method. Use std::vector. | |
35 | (add_include_dir_stub): Delete. | |
36 | (read_formatted_entries): Remove memset. | |
37 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
38 | raw pointer. Remove cleanup handling. Pass lambdas to | |
39 | read_formatted_entries. Adjust to use line_header methods. | |
40 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
41 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
42 | use std::vector. | |
43 | ||
d62a8ae2 SM |
44 | 2017-04-04 Simon Marchi <[email protected]> |
45 | ||
46 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
47 | instead of struct ptid. | |
48 | ||
db3a1dc7 AH |
49 | 2017-05-04 Alan Hayward <[email protected]> |
50 | ||
51 | * frame.c (get_frame_register_bytes): Unwind using value. | |
52 | (put_frame_register_bytes): Likewise. | |
53 | ||
ec13808e JK |
54 | 2017-03-29 Jan Kratochvil <[email protected]> |
55 | ||
56 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
57 | ||
12316564 YQ |
58 | 2017-03-29 Yao Qi <[email protected]> |
59 | ||
60 | * gdbthread.h (struct thread_info): Declare constructor and | |
61 | destructor. Add some in-class member initializers. | |
62 | * thread.c (free_thread): Remove. | |
63 | (init_thread_list): Call delete instead of free_thread. | |
64 | (new_thread): Call thread_info constructor. | |
65 | (thread_info::thread_info): New function. | |
66 | (thread_info::~thread_info): New function. | |
67 | (delete_thread_1): Call delete instead of free_thread. | |
68 | (make_cleanup_restore_current_thread): Move tp and frame to | |
69 | inner block. | |
70 | ||
fe5f7374 AK |
71 | 2017-03-28 Anton Kolesov <[email protected]> |
72 | ||
73 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
74 | (arc_skip_prologue): Likewise. | |
75 | (arc_make_frame_cache): Likewise. | |
76 | (arc_pv_get_operand): New function. | |
77 | (arc_is_in_prologue): Likewise. | |
78 | (arc_analyze_prologue): Likewise. | |
79 | (arc_print_frame_cache): Likewise. | |
80 | (MAX_PROLOGUE_LENGTH): New constant. | |
81 | ||
eea78757 AK |
82 | 2017-03-28 Anton Kolesov <[email protected]> |
83 | ||
84 | * configure.tgt: Add arc-insn.o. | |
85 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
86 | (dump_arc_instruction_command): New function. | |
87 | (arc_fprintf_disasm): Likewise. | |
88 | (arc_disassemble_info): Likewise. | |
89 | (arc_insn_get_operand_value): Likewise. | |
90 | (arc_insn_get_operand_value_signed): Likewise. | |
91 | (arc_insn_get_memory_base_reg): Likewise. | |
92 | (arc_insn_get_memory_offset): Likewise. | |
93 | (arc_insn_get_branch_target): Likewise. | |
94 | (arc_insn_dump): Likewise. | |
95 | (arc_insn_get_linear_next_pc): Likewise. | |
96 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
97 | (arc_disassemble_info): Likewise. | |
98 | (arc_insn_get_branch_target): Likewise. | |
99 | (arc_insn_get_linear_next_pc): Likewise. | |
100 | * NEWS: Mention new "maint print arc arc-instruction". | |
101 | ||
3be78afd AK |
102 | 2017-03-28 Anton Kolesov <[email protected]> |
103 | ||
104 | * arc-tdep (maintenance_print_arc_list): New variable. | |
105 | (maintenance_print_arc_command): New function. | |
106 | ||
296ec4fa AK |
107 | 2017-03-28 Anton Kolesov <[email protected]> |
108 | ||
109 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
110 | Add "limm" and "reserved". | |
111 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
112 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
113 | * arc-tdep.h (arc_regnum): Likewise. | |
114 | ||
f74f865e MF |
115 | 2017-03-27 Max Filippov <[email protected]> |
116 | ||
117 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
118 | for THREADPTR register. | |
119 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
120 | register. | |
121 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
122 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
123 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
124 | ||
0d0bf81a MF |
125 | 2017-03-27 Max Filippov <[email protected]> |
126 | ||
127 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
128 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
129 | call0 ABI. | |
130 | ||
0ce4291e MF |
131 | 2017-03-27 Max Filippov <[email protected]> |
132 | ||
133 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
134 | for a single specified register or for all registers in | |
135 | a0_base..a0_base + C0_NREGS range. | |
136 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
137 | specified register or for all registers in a0_base..a0_base + | |
138 | C0_NREGS range. | |
139 | ||
c56054f9 MF |
140 | 2017-03-27 Max Filippov <[email protected]> |
141 | ||
142 | * arch/xtensa.h (C0_NREGS): Add definition. | |
143 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
144 | ||
a4398628 MF |
145 | 2017-03-27 Max Filippov <[email protected]> |
146 | ||
147 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
148 | Drop xtensa_default_isa initialization. | |
149 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
150 | ||
8c43009f PA |
151 | 2017-03-27 Pedro Alves <[email protected]> |
152 | ||
153 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
154 | (file_entry::include_dir): New method. | |
155 | (line_header::include_dir_at, line_header::file_name_at): New | |
156 | methods. | |
157 | (setup_type_unit_groups, setup_type_unit_groups) | |
158 | (psymtab_include_file_name): Simplify using the new methods. | |
159 | (lnp_state_machine) <the_line_header>: New field. | |
160 | <file>: Add comment. | |
161 | (lnp_state_machine::current_file): New method. | |
162 | (dwarf_record_line): Simplify using the new methods. | |
163 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
164 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
165 | Simplify using the new methods. | |
166 | ||
a7e80b9e PA |
167 | 2017-03-27 Pedro Alves <[email protected]> |
168 | ||
169 | * cp-name-parser.y (make_empty): Delete. | |
170 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
171 | (direct_declarator, declarator_1): Use fill_comp instead of | |
172 | make_empty. | |
173 | ||
21047726 PA |
174 | 2017-03-27 Pedro Alves <[email protected]> |
175 | ||
176 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
177 | to ATTRIBUTE_PRINTF. | |
178 | * solib-target.c (library_list_start_list): Print "string" not | |
179 | "version". | |
180 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
181 | gdb_xml_error call. | |
182 | ||
d721ba37 PA |
183 | 2017-03-27 Pedro Alves <[email protected]> |
184 | ||
185 | * dwarf2read.c (struct file_and_directory): New. | |
186 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
187 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
188 | (find_file_and_directory): Adjust to return a file_and_directory | |
189 | object. | |
190 | (read_file_scope): Adjust to use file_and_directory. Remove | |
191 | make_cleanup/do_cleanups calls. | |
192 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
193 | make_cleanup/do_cleanups calls. | |
194 | * python/python.c (do_start_initialization): Adjust to ldirname | |
195 | returning a std::string. | |
196 | * utils.c (ldirname): Now returns a std::string. | |
197 | * utils.h (ldirname): Change return type to std::string. | |
198 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
199 | returning a std::string. | |
200 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
201 | ||
ed771251 AH |
202 | 2017-03-24 Alan Hayward <[email protected]> |
203 | ||
204 | * regcache.c (regcache_debug_print_register): New function. | |
205 | * regcache.h (regcache_debug_print_register): New declaration. | |
206 | * target.c (debug_print_register): Remove. | |
207 | (target_fetch_registers): Call regcache_debug_print_register. | |
208 | (target_store_registers): Likewise. | |
209 | ||
568c1b9f PB |
210 | 2017-03-24 Pádraig Brady <[email protected]> |
211 | ||
212 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
213 | reference beyond the 'lh->include_dirs' array before accessing to | |
214 | it. | |
215 | (psymtab_include_file_name): Likewise. | |
216 | (dwarf_decode_lines_1): Likewise. | |
217 | (dwarf_decode_lines): Likewise. | |
218 | (file_file_name): Likewise. | |
219 | ||
3e00d44f SM |
220 | 2017-03-23 Simon Marchi <[email protected]> |
221 | ||
222 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
223 | inferior_ptid. | |
224 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
225 | ps_lsetfpregs): Likewise. | |
226 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
227 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
228 | ps_lsetfpregs): Likewise. | |
229 | * target.c (target_fetch_registers, target_store_registers): | |
230 | Remove asserts. | |
231 | ||
077ae656 AH |
232 | 2017-03-23 Alan Hayward <[email protected]> |
233 | ||
234 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
235 | ||
1e2b521d YQ |
236 | 2017-03-23 Yao Qi <[email protected]> |
237 | ||
238 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
239 | (_initialize_aarch64_tdep): Register it. | |
240 | (aarch64_record_load_store): Handle PRFM instruction. | |
241 | (aarch64_process_record_test): New function. | |
242 | ||
33877125 YQ |
243 | 2017-03-23 Yao Qi <[email protected]> |
244 | ||
245 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
246 | indentation. | |
247 | ||
a0eef940 YQ |
248 | 2017-03-23 Yao Qi <[email protected]> |
249 | ||
250 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
251 | ||
3f2a3564 PR |
252 | 2017-03-23 Philipp Rudo <[email protected]> |
253 | ||
254 | python/python.c (do_start_initialization): Fix memory leak. | |
255 | ||
b67aeab0 SM |
256 | 2017-03-22 Simon Marchi <[email protected]> |
257 | ||
258 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
259 | using get_ptrace_pid. | |
260 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
261 | inferior_ptid. | |
262 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
263 | inferior_ptid instead of pid. | |
264 | ||
ffdbe864 YQ |
265 | 2017-03-22 Yao Qi <[email protected]> |
266 | ||
267 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
268 | namespace. | |
269 | * arm-tdep.c: Likewise. | |
270 | * linespec.c: Likewise. | |
271 | * ui-out.c: Likewise. | |
272 | ||
9d736fbf JG |
273 | 2017-03-22 Jonah Graham <[email protected]> |
274 | ||
275 | PR gdb/19637 | |
276 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
277 | ||
3de88e9a SM |
278 | 2017-03-21 Simon Marchi <[email protected]> |
279 | ||
280 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
281 | windows_thread_info parameter and use it instead of | |
282 | current_thread. | |
283 | (windows_fetch_inferior_registers): Don't set current_thread, | |
284 | pass the thread to do_windows_fetch_inferior_registers. Use | |
285 | ptid from regcache instead of inferior_ptid. | |
286 | (do_windows_store_inferior_registers): Add windows_thread_info | |
287 | parameter and use it instead of current_thread. | |
288 | (windows_store_inferior_registers): Don't set current_thread, | |
289 | pass the thread to do_windows_store_inferior_registers. Use | |
290 | ptid from regcache instead of inferior_ptid. | |
291 | ||
0e7b8f61 SM |
292 | 2017-03-21 Simon Marchi <[email protected]> |
293 | ||
294 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
295 | struct serial::current_timeout. | |
296 | ||
5badf10a IR |
297 | 2017-03-21 Ivo Raisr <[email protected]> |
298 | ||
299 | PR tdep/20928 | |
300 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
301 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
302 | (sparc64_fsr_type): Fix %fsr decoding. | |
303 | ||
cee59b3f TW |
304 | 2017-03-21 Tim Wiederhake <[email protected]> |
305 | ||
306 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
307 | for Python 2. | |
308 | ||
639a9038 SM |
309 | 2017-03-20 Simon Marchi <[email protected]> |
310 | ||
311 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
312 | spu_store_inferior_registers): Use ptid from regcache, set and | |
313 | restore inferior_ptid. | |
314 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
315 | Likewise. | |
316 | ||
bcc0c096 SM |
317 | 2017-03-20 Simon Marchi <[email protected]> |
318 | ||
319 | * i386-linux-nat.c (fetch_register, store_register, | |
320 | i386_linux_fetch_inferior_registers, | |
321 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
322 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
323 | ia64_linux_store_register): Likewise. | |
324 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
325 | inf_ptrace_store_register): Likewise. | |
326 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
327 | m32r_linux_store_inferior_registers): Likewise. | |
328 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
329 | m68kbsd_store_inferior_registers): Likewise. | |
330 | * m68k-linux-nat.c (fetch_register, store_register, | |
331 | m68k_linux_fetch_inferior_registers, | |
332 | m68k_linux_store_inferior_registers): Likewise. | |
333 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
334 | m88kbsd_store_inferior_registers): Likewise. | |
335 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
336 | mips_fbsd_store_inferior_registers): Likewise. | |
337 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
338 | mips64_linux_regsets_store_registers): Likewise. | |
339 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
340 | mipsnbsd_store_inferior_registers): Likewise. | |
341 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
342 | mips64obsd_store_inferior_registers): Likewise. | |
343 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
344 | Likewise. | |
345 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
346 | ppcfbsd_store_inferior_registers): Likewise. | |
347 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
348 | ppc_linux_store_inferior_registers): Likewise. | |
349 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
350 | ppcnbsd_store_inferior_registers): Likewise. | |
351 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
352 | ppcobsd_store_registers): Likewise. | |
353 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
354 | Likewise. | |
355 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
356 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
357 | Likewise. | |
358 | * record-btrace.c (record_btrace_fetch_registers, | |
359 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
360 | Likewise. | |
361 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
362 | Lookup inferior using ptid from regcache, instead of | |
363 | current_inferior. | |
364 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
365 | ptid from regcache. | |
366 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
367 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
368 | s390_linux_store_inferior_registers): Likewise. | |
369 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
370 | shnbsd_store_inferior_registers): Likewise. | |
371 | * sol-thread.c (sol_thread_fetch_registers, | |
372 | sol_thread_store_registers): Likewise. | |
373 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
374 | sparc_store_inferior_registers): Likewise. | |
375 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
376 | store_inferior_registers): Likewise. | |
377 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
378 | vaxbsd_store_inferior_registers): Likewise. | |
379 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
380 | store_xtregs): Likewise. | |
381 | ||
c0f55cc6 AV |
382 | 2017-03-20 Artemiy Volkov <[email protected]> |
383 | ||
384 | PR gdb/14441 | |
385 | * NEWS: Mention support for rvalue references in GDB and python. | |
386 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
387 | supports both lvalue and rvalue references. | |
388 | ||
15c0a2a9 AV |
389 | 2017-03-20 Artemiy Volkov <[email protected]> |
390 | ||
391 | PR gdb/14441 | |
392 | * gdbtypes.c (rank_one_type): Implement overloading | |
393 | resolution rules regarding rvalue references. | |
394 | ||
aa006118 AV |
395 | 2017-03-20 Artemiy Volkov <[email protected]> |
396 | ||
397 | PR gdb/14441 | |
398 | * aarch64-tdep.c (aarch64_type_align) | |
399 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
400 | lvalue reference type checks to general reference type checks. | |
401 | * amd64-tdep.c (amd64_classify): Likewise. | |
402 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
403 | Likewise. | |
404 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
405 | (arm_store_return_value): Likewise. | |
406 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
407 | * c-typeprint.c (c_print_type): Likewise. | |
408 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
409 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
410 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
411 | * completer.c (expression_completer): Likewise. | |
412 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
413 | Likewise. | |
414 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
415 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
416 | (value_of_dwarf_reg_entry): Likewise. | |
417 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
418 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
419 | Likewise. | |
420 | * findvar.c (extract_typed_address, store_typed_address): | |
421 | Likewise. | |
422 | * gdbtypes.c (rank_one_type): Likewise. | |
423 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
424 | * infcall.c (value_arg_coerce): Likewise. | |
425 | * language.c (pointer_type): Likewise. | |
426 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
427 | Likewise. | |
428 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
429 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
430 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
431 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
432 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
433 | Likewise. | |
434 | * printcmd.c (print_formatted, x_command): Likewise. | |
435 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
436 | Likewise. | |
437 | * python/py-value.c (valpy_referenced_value) | |
438 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
439 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
440 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
441 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
442 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
443 | * symtab.c (lookup_symbol_aux): Likewise. | |
444 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
445 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
446 | Likewise. | |
447 | * valops.c (value_cast_pointers, value_cast) | |
448 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
449 | (value_struct_elt, value_struct_elt_bitpos) | |
450 | (value_find_oload_method_list, find_overload_match) | |
451 | (value_rtti_indirect_type): Likewise. | |
452 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
453 | Likewise. | |
454 | * value.c (value_actual_type, value_as_address, unpack_long) | |
455 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
456 | (coerce_ref): Likewise. | |
457 | * varobj.c (varobj_get_value_type): Likewise. | |
458 | ||
3fcf899d AV |
459 | 2017-03-20 Artemiy Volkov <[email protected]> |
460 | ||
461 | PR gdb/14441 | |
462 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
463 | table of constants. | |
464 | * python/lib/gdb/command/explore.py: Support exploring values | |
465 | of rvalue reference types. | |
466 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
467 | rvalue reference types. | |
468 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
469 | constant. | |
470 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
471 | check. | |
472 | (valpy_reference_value): Add new parameter "refcode". | |
473 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
474 | New wrappers for valpy_reference_value(). | |
475 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
476 | (gdbpy_invoke_xmethod): Likewise. | |
477 | ||
4297a3f0 AV |
478 | 2017-03-20 Artemiy Volkov <[email protected]> |
479 | ||
480 | PR gdb/14441 | |
481 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
482 | DW_TAG_rvalue_reference_type DIE. | |
483 | (read_tag_reference_type): Add new parameter "refcode". | |
484 | ||
e1cb3213 AV |
485 | 2017-03-20 Artemiy Volkov <[email protected]> |
486 | ||
487 | PR gdb/14441 | |
488 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
489 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
490 | (c_type_print_base): Support printing rvalue reference types. | |
491 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
492 | rvalue reference values. | |
493 | ||
e4347c89 AV |
494 | 2017-03-20 Artemiy Volkov <[email protected]> |
495 | ||
496 | PR gdb/14441 | |
497 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
498 | typename. | |
499 | * cp-support.c (replace_typedefs): Handle | |
500 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
501 | * python/py-type.c (typy_lookup_type): Likewise. | |
502 | ||
53cc15f5 AV |
503 | 2017-03-20 Artemiy Volkov <[email protected]> |
504 | ||
505 | PR gdb/14441 | |
506 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
507 | * parse.c (insert_type): Change assert statement. | |
508 | (follow_types): Handle rvalue reference types. | |
509 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
510 | constant. | |
511 | ||
a65cfae5 AV |
512 | 2017-03-20 Artemiy Volkov <[email protected]> |
513 | ||
514 | PR gdb/14441 | |
515 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
516 | value_ref() interface. | |
517 | * c-valprint.c (c_value_print): Likewise. | |
518 | * infcall.c (value_arg_coerce): Likewise. | |
519 | * python/py-value.c (valpy_reference_value): Likewise. | |
520 | * valops.c (value_cast, value_reinterpret_cast) | |
521 | (value_dynamic_cast, typecmp): Likewise. | |
522 | (value_ref): Parameterize by kind of return value reference type. | |
523 | * value.h (value_ref): Add new parameter "refcode". | |
524 | ||
3b224330 AV |
525 | 2017-03-20 Artemiy Volkov <[email protected]> |
526 | ||
527 | PR gdb/14441 | |
528 | * dwarf2read.c (read_tag_reference_type): Use | |
529 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
530 | * eval.c (evaluate_subexp_standard): Likewise. | |
531 | * f-exp.y: Likewise. | |
532 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
533 | Generalize with rvalue reference types. | |
534 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
535 | convenience wrappers for lookup_reference_type(). | |
536 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
537 | reference kind parameter. | |
538 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
539 | wrappers for lookup_reference_type(). | |
540 | * guile/scm-type.c (gdbscm_type_reference): Use | |
541 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
542 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
543 | * parse.c (follow_types): Likewise. | |
544 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
545 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
546 | Likewise. | |
547 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
548 | (gdbpy_invoke_xmethod): Likewise. | |
549 | * stabsread.c: Provide extra argument to make_reference_type() | |
550 | call. | |
551 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
552 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
553 | ||
f9aeb8d4 AV |
554 | 2017-03-20 Artemiy Volkov <[email protected]> |
555 | ||
556 | PR gdb/14441 | |
557 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
558 | (TYPE_IS_REFERENCE): New macro. | |
559 | (struct type): Add rvalue_reference_type field. | |
560 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
561 | ||
51457a05 MAL |
562 | 2017-03-20 Marc-Andre Laperle <[email protected]> |
563 | ||
564 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
565 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
566 | New function definition. | |
567 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
568 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
569 | New function declaration. | |
570 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
571 | * mi/mi-interp.h: New file. | |
572 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
573 | ALL_SO_LIBS macro | |
574 | * solib.h (update_solib_list): New function declaration. | |
575 | (so_list_head): Move macro. | |
576 | * solist.h (ALL_SO_LIBS): New macro. | |
577 | ||
e696b3ad MAL |
578 | 2017-03-20 Marc-Andre Laperle <[email protected]> |
579 | ||
580 | * infcmd.c (post_create_inferior): Remove unused argument in | |
581 | call to solib_add. | |
582 | * remote.c (remote_start_remote): Likewise. | |
583 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
584 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
585 | (enable_break): Likewise. | |
586 | * solib.c (update_solib_list): Remove unused target argument | |
587 | and its documentation. | |
588 | (solib_add): Remove unused target argument. Remove unused | |
589 | argument in call to update_solib_list. | |
590 | (info_sharedlibrary_command): Remove unused argument in call | |
591 | to update_solib_list. | |
592 | (sharedlibrary_command): Remove unused argument in call to | |
593 | solib_add. | |
594 | (handle_solib_event): Likewise. | |
595 | (reload_shared_libraries): Likewise. | |
596 | * solib.h (solib_add): Remove unused target argument. | |
597 | ||
dcb84eda AA |
598 | 2017-03-20 Andreas Arnez <[email protected]> |
599 | ||
600 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
601 | (s390_displaced_step_fixup): Cover relative branches with the | |
602 | default fixup handling. This fixes lack of support for some | |
603 | relative branch instructions. | |
604 | ||
d9cb6cdc SM |
605 | 2017-03-17 Simon Marchi <[email protected]> |
606 | ||
607 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
608 | ptid from regcache. | |
609 | ||
1afaf9f4 SM |
610 | 2017-03-17 Simon Marchi <[email protected]> |
611 | ||
612 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
613 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
614 | ||
aac12e24 SM |
615 | 2017-03-17 Simon Marchi <[email protected]> |
616 | ||
617 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
618 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
619 | ||
bbe1eef1 SM |
620 | 2017-03-17 Simon Marchi <[email protected]> |
621 | ||
622 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
623 | hppaobsd_store_registers): Use ptid from regcache. | |
624 | ||
10799020 SM |
625 | 2017-03-17 Simon Marchi <[email protected]> |
626 | ||
627 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
628 | hppanbsd_store_registers): Use ptid from regcache. | |
629 | ||
00204cf7 SM |
630 | 2017-03-17 Simon Marchi <[email protected]> |
631 | ||
632 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
633 | from regcache. Use get_ptrace_pid. | |
634 | ||
11a33714 SM |
635 | 2017-03-17 Simon Marchi <[email protected]> |
636 | ||
637 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
638 | update doc. | |
639 | ||
317cd492 SM |
640 | 2017-03-17 Simon Marchi <[email protected]> |
641 | ||
642 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
643 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
644 | restore inferior_ptid. | |
645 | ||
9ac8a7c2 SM |
646 | 2017-03-17 Simon Marchi <[email protected]> |
647 | ||
648 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
649 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
650 | store_fp_regs): Use ptid from regcache. | |
651 | ||
4ac4bb6a SM |
652 | 2017-03-17 Simon Marchi <[email protected]> |
653 | ||
654 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
655 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
656 | store_vfp_regs): Use ptid from regcache. | |
657 | ||
9bcbdca8 PA |
658 | 2017-03-17 Pedro Alves <[email protected]> |
659 | ||
660 | PR remote/21188 | |
661 | * ser-base.c (ser_base_wait_for): Add comment. | |
662 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
663 | version. | |
664 | * ser-unix.c (hardwire_raw): Remove reference to | |
665 | scb->current_timeout. | |
666 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
667 | (hardwire_ops): Install ser_base_readchar instead of | |
668 | hardwire_readchar. | |
669 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
670 | Remove fields. | |
671 | ||
7503099f JG |
672 | 2017-03-17 Jonah Graham <[email protected]> |
673 | ||
674 | PR gdb/19637 | |
675 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
676 | Python 3. | |
677 | ||
7942e96e AA |
678 | 2017-03-16 Andreas Arnez <[email protected]> |
679 | ||
680 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
681 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
682 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
683 | byte_offset to subobj_byte_offset. Fix the handling of | |
684 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
685 | implicit pointer. | |
686 | (dwarf2_evaluate_loc_desc): Adjust call to | |
687 | dwarf2_evaluate_loc_desc_full. | |
688 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
689 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
690 | ||
ba14f379 YQ |
691 | 2017-03-16 Yao Qi <[email protected]> |
692 | ||
693 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
694 | and REVSH instructions. | |
695 | ||
b121eeb9 YQ |
696 | 2017-03-16 Yao Qi <[email protected]> |
697 | ||
698 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
699 | (arm_record_test): Declare. | |
700 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
701 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
702 | align with the manual. | |
703 | (thumb_record_misc): Adjust the code order to align with the | |
704 | manual. | |
705 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
706 | (instruction_reader_thumb): New class. | |
707 | (arm_record_test): New function. | |
708 | ||
728a7913 YQ |
709 | 2017-03-16 Yao Qi <[email protected]> |
710 | ||
711 | * arm-tdep.c (abstract_memory_reader): New class. | |
712 | (instruction_reader): New class. | |
713 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
714 | (decode_insn): Likewise. | |
715 | ||
34b43320 DE |
716 | 2017-03-16 Doug Evans <[email protected]> |
717 | ||
a7c0469f DE |
718 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
719 | member. Change type of TYPE member to SCM. All uses updated. | |
720 | (lsscm_make_lazy_string_smob): Add assert. | |
721 | (lsscm_make_lazy_string): Flag bad length values. | |
722 | (lsscm_elt_type): New function. | |
723 | (gdbscm_lazy_string_to_value): Rewrite to use | |
724 | lsscm_safe_lazy_string_to_value. | |
725 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
726 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
727 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
728 | in incoming type. | |
729 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
730 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
731 | ||
732 | 2017-03-15 Doug Evans <[email protected]> | |
733 | ||
34b43320 DE |
734 | PR python/17728, python/18439, python/18779 |
735 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
736 | member. Change type of TYPE member to PyObject *. All uses updated. | |
737 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
738 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
739 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
740 | Handle typedefs in incoming type. | |
741 | (stpy_lazy_string_elt_type): New function. | |
742 | (gdbpy_extract_lazy_string): Call it. | |
743 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
744 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
745 | typedefs in incoming type. | |
746 | ||
a3a5fecc DE |
747 | 2017-03-16 Doug Evans <[email protected]> |
748 | ||
749 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
750 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
751 | ||
28f1c605 JW |
752 | 2017-03-16 Jiong Wang <[email protected]> |
753 | ||
754 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
755 | "ULONGEST" for "skip". | |
756 | ||
87c336f6 AA |
757 | 2017-03-14 Andreas Arnez <[email protected]> |
758 | ||
759 | PR gdb/21220 | |
760 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
761 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
762 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
763 | over ptrace peek/poke until end of buffer or error. | |
764 | ||
cf81cf60 SM |
765 | 2017-03-14 Simon Marchi <[email protected]> |
766 | ||
767 | * parse.c (length_of_subexp): Make static. | |
768 | * parser-defs.h (length_of_subexp): Remove. | |
769 | ||
a379284a AA |
770 | 2017-03-14 Andreas Arnez <[email protected]> |
771 | ||
772 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
773 | as well. | |
774 | ||
8a6200ba PA |
775 | 2017-03-14 Pedro Alves <[email protected]> |
776 | ||
777 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
778 | (main): Use std::unique_ptr. Remove calls to | |
779 | cp_demangled_name_parse_free. | |
780 | ||
f79ec206 SM |
781 | 2017-03-13 Simon Marchi <[email protected]> |
782 | ||
783 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
784 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
785 | of inferior_ptid. | |
786 | ||
edb5fb00 SM |
787 | 2017-03-13 Simon Marchi <[email protected]> |
788 | ||
789 | * aix-thread.c (aix_thread_fetch_registers, | |
790 | aix_thread_store_registers): Use regcache->ptid instead of | |
791 | inferior_ptid. | |
792 | ||
55119686 SM |
793 | 2017-03-13 Simon Marchi <[email protected]> |
794 | ||
795 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
796 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
797 | store_fpregs_to_thread): Use regcache->ptid instead of | |
798 | inferior_ptid. | |
799 | ||
6a06fbb7 SM |
800 | 2017-03-13 Simon Marchi <[email protected]> |
801 | ||
802 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
803 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
804 | instead of inferior_ptid. | |
805 | ||
c6386875 SM |
806 | 2017-03-13 Simon Marchi <[email protected]> |
807 | ||
808 | * target.c (target_fetch_registers, target_store_registers): Add | |
809 | assert. | |
810 | ||
ddaaf0fb SM |
811 | 2017-03-13 Simon Marchi <[email protected]> |
812 | ||
813 | * regcache.h (regcache_get_ptid): New function. | |
814 | * regcache.c (regcache_get_ptid): New function. | |
815 | ||
b9da89d1 | 816 | 2017-03-13 Mark Wielaard <[email protected]> |
817 | ||
818 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
819 | ||
5f4d1085 KS |
820 | 2017-03-10 Keith Seitz <[email protected]> |
821 | ||
822 | PR c++/8218 | |
823 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
824 | ||
c65d6b55 PA |
825 | 2017-03-08 Pedro Alves <[email protected]> |
826 | ||
827 | PR gdb/18360 | |
828 | * infrun.c (start_step_over, do_target_resume, resume) | |
829 | (restart_threads): Assert we're not resuming a thread that is | |
830 | meant to be stopped. | |
831 | (infrun_thread_stop_requested_callback): Delete. | |
832 | (infrun_thread_stop_requested): If the thread is internally | |
833 | stopped, queue a pending stop event and clear the thread's | |
834 | inline-frame state. | |
835 | (handle_stop_requested): New function. | |
836 | (handle_syscall_event, handle_inferior_event_1): Use | |
837 | handle_stop_requested. | |
838 | (handle_stop_requested): New function. | |
839 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
840 | at caller. | |
841 | (finish_step_over): Clear step over info unconditionally. | |
842 | (handle_signal_stop): If the user had interrupted the event | |
843 | thread, consider the stop a random signal. | |
844 | (handle_signal_stop) <signal arrived while stepping over | |
845 | breakpoint>: Don't restart threads here. | |
846 | (stop_waiting): Don't clear step-over info here. | |
847 | ||
15c22686 PA |
848 | 2017-03-08 Pedro Alves <[email protected]> |
849 | ||
850 | PR 21206 | |
851 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
852 | goes to argument 2, not 1. | |
853 | ||
6e5d74e7 PA |
854 | 2017-03-08 Pedro Alves <[email protected]> |
855 | ||
856 | PR cli/21218 | |
857 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
858 | display_gdb_prompt. | |
859 | (command_line_input): Add comment. | |
860 | ||
9753a2f6 PA |
861 | 2017-03-08 Pedro Alves <[email protected]> |
862 | ||
863 | PR tui/21216 | |
864 | * tui/tui-file.c (tui_file::write): New. | |
865 | * tui/tui-file.h (tui_file): Override "write". | |
866 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
867 | factored out from ... | |
868 | (tui_puts): ... here. | |
869 | (tui_putc): Use them. | |
870 | (tui_write): New function. | |
871 | * tui/tui-io.h (tui_write): Declare. | |
872 | ||
1672e0d9 SDJ |
873 | 2017-03-07 Sergio Durigan Junior <[email protected]> |
874 | ||
875 | * Makefile.in (SFILES): Replace "environ.c" with | |
876 | "common/environ.c". | |
877 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
878 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
879 | to... | |
880 | * common/environ.c: ... here. | |
881 | * environ.h: Moved to... | |
882 | * common/environ.h: ... here. | |
883 | ||
f7bb4e3a PB |
884 | 2017-03-07 Peter Bergner <[email protected]> |
885 | ||
886 | * gdbarch.sh (pstring_ptr): New static function. | |
887 | (gdbarch_disassembler_options): Use it. | |
888 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
889 | not valid_disassembler_option->name. | |
890 | * gdbarch.c: Regenerate. | |
891 | ||
e45ced6c PB |
892 | 2017-03-07 Peter Bergner <[email protected]> |
893 | ||
894 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
895 | ||
5f6fd321 PA |
896 | 2017-03-07 Pedro Alves <[email protected]> |
897 | ||
898 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
899 | ||
6dbb839a | 900 | 2017-03-07 Walfred Tedeschi <[email protected]> |
4a612d6f WT |
901 | |
902 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
903 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
904 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 905 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 906 | |
d274ecf4 SM |
907 | 2017-03-06 Simon Marchi <[email protected]> |
908 | ||
909 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
910 | ||
df97be55 SM |
911 | 2017-03-03 Simon Marchi <[email protected]> |
912 | ||
913 | * remote.c (remote_add_target_side_commands): Use range-based | |
914 | for loop. | |
915 | ||
7d45f3df YQ |
916 | 2017-03-03 Yao Qi <[email protected]> |
917 | ||
918 | PR gdb/21165 | |
919 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
920 | value is lazy. | |
921 | * valprint.c (common_val_print): Likewise. | |
922 | ||
65b48a81 PB |
923 | 2017-02-28 Peter Bergner <[email protected]> |
924 | ||
925 | * NEWS: Mention new set/show disassembler-options commands. | |
926 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
927 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
928 | (prospective_options): New static variable. | |
929 | (gdb_disassembler::gdb_disassembler): Initialize | |
930 | m_di.disassembler_options. | |
931 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
932 | (get_disassembler_options): New function. | |
933 | (set_disassembler_options): Likewise. | |
934 | (set_disassembler_options_sfunc): Likewise. | |
935 | (show_disassembler_options_sfunc): Likewise. | |
936 | (disassembler_options_completer): Likewise. | |
937 | (_initialize_disasm): Likewise. | |
938 | * disasm.h (get_disassembler_options): New prototype. | |
939 | (set_disassembler_options): Likewise. | |
940 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
941 | (gdbarch_verify_disassembler_options): Likewise. | |
942 | * gdbarch.c: Regenerate. | |
943 | * gdbarch.h: Likewise. | |
944 | * arm-tdep.c (num_disassembly_options): Delete. | |
945 | (set_disassembly_style): Likewise. | |
946 | (arm_disassembler_options): New static variable. | |
947 | (set_disassembly_style_sfunc): Convert short style name into long | |
948 | option name. Call set_disassembler_options. | |
949 | (show_disassembly_style_sfunc): New function. | |
950 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
951 | set_gdbarch_verify_disassembler_options. | |
952 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
953 | (arm_disassembler_options): Initialize. | |
954 | (disasm_options): New variable. | |
955 | (num_disassembly_options): Rename from this... | |
956 | (num_disassembly_styles): ...to this. Compute by scanning through | |
957 | disasm_options. | |
958 | (valid_disassembly_styles): Initialize using disasm_options. | |
959 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
960 | set_arm_regname_option. | |
961 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
962 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
963 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
964 | set_gdbarch_verify_disassembler_options. | |
965 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
966 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
967 | set_gdbarch_verify_disassembler_options. | |
968 | ||
d538e36d SM |
969 | 2017-02-27 Simon Marchi <[email protected]> |
970 | ||
971 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
972 | keyword from range-based for loop. | |
973 | ||
83621223 SM |
974 | 2017-02-27 Simon Marchi <[email protected]> |
975 | ||
976 | * remote.c (remote_add_target_side_condition): Use range-based | |
977 | for loop. Update comment. | |
978 | ||
2123df0e YQ |
979 | 2017-02-27 Yao Qi <[email protected]> |
980 | ||
981 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
982 | ||
8e368124 AH |
983 | 2017-02-26 Alan Hayward <[email protected]> |
984 | ||
985 | * regcache.c (regcache_raw_update): New function. | |
986 | (regcache_raw_read): Move code to regcache_raw_update. | |
987 | * regcache.h (regcache_raw_update): New declaration. | |
988 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
989 | ||
a49dd8dd JK |
990 | 2017-02-26 Jan Kratochvil <[email protected]> |
991 | ||
992 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
993 | header.signature and header.type_offset_in_tu. | |
994 | ||
34e4bae9 PA |
995 | 2017-02-24 Pedro Alves <[email protected]> |
996 | ||
997 | * symtab.c (make_file_symbol_completion_list_1): Use | |
998 | add_symtab_completions. | |
999 | ||
b0e4b369 AH |
1000 | 2017-02-24 Alan Hayward <[email protected]> |
1001 | ||
1002 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
1003 | ||
975c21ab AH |
1004 | 2017-02-24 Alan Hayward <[email protected]> |
1005 | ||
1006 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
1007 | I386_MAX_REGISTER_SIZE. | |
1008 | (i386_pseudo_register_write): Likewise. | |
1009 | (i386_process_record): Likewise. | |
1010 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
1011 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
1012 | (store_register): Likewise. | |
1013 | ||
14bc53a8 PA |
1014 | 2017-02-23 Pedro Alves <[email protected]> |
1015 | ||
1016 | * ada-lang.c: Include "common/function-view.h". | |
1017 | (ada_iterate_over_symbols): Adjust to use function_view as | |
1018 | callback type. | |
1019 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
1020 | (ada_make_symbol_completion_list): Use a lambda. | |
1021 | (ada_exc_search_name_matches): Delete. | |
1022 | (name_matches_regex): New. | |
1023 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
1024 | * compile/compile-c-support.c: Include "common/function-view.h". | |
1025 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
1026 | (write_macro_definitions): Use a lambda. | |
1027 | * dwarf2read.c: Include "common/function-view.h". | |
1028 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
1029 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
1030 | callback type. | |
1031 | * language.h: Include "common/function-view.h". | |
1032 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
1033 | function_view as callback type. | |
1034 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
1035 | * linespec.c: Include "common/function-view.h". | |
1036 | (collect_info::add_symbol): New method. | |
1037 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
1038 | symbol_matcher_data, iterate_name_matcher): Delete. | |
1039 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
1040 | as callback type and lambdas. | |
1041 | (iterate_over_file_blocks): Adjust to use function_view as | |
1042 | callback type. | |
1043 | (decode_compound_collector): Now a class with private fields. | |
1044 | (decode_compound_collector::release_symbols): New method. | |
1045 | (collect_one_symbol): Rename to... | |
1046 | (decode_compound_collector::operator()): ... this and adjust. | |
1047 | (lookup_prefix_sym): decode_compound_collector construction bits | |
1048 | move to decode_compound_collector ctor. Pass the | |
1049 | decode_compound_collector object directly as callback. Remove | |
1050 | cleanups and use decode_compound_collector::release_symbols | |
1051 | instead. | |
1052 | (symtab_collector): Now a class with private fields. | |
1053 | (symtab_collector::release_symtabs): New method. | |
1054 | (add_symtabs_to_list): Rename to... | |
1055 | (symtab_collector::operator()): ... this and adjust. | |
1056 | (collect_symtabs_from_filename): symtab_collector construction | |
1057 | bits move to symtab_collector ctor. Pass the symtab_collector | |
1058 | object directly as callback. Remove cleanups and use | |
1059 | symtab_collector::release_symtabs instead. | |
1060 | (collect_symbols): Delete. | |
1061 | (add_matching_symbols_to_info): Use lambdas. | |
1062 | * macrocmd.c (print_macro_callback): Delete. | |
1063 | (info_macro_command): Use a lambda. | |
1064 | (info_macros_command): Pass print_macro_definition as callable | |
1065 | directly. | |
1066 | (print_one_macro): Remove 'ignore' parameter. | |
1067 | (macro_list_command): Adjust. | |
1068 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
1069 | (macro_for_each_data::user_data): Delete field. | |
1070 | (foreach_macro): Adjust to call the function_view. | |
1071 | (macro_for_each): Adjust to use function_view as callback type. | |
1072 | (foreach_macro_in_scope): Adjust to call the function_view. | |
1073 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
1074 | type. | |
1075 | * macrotab.h: Include "common/function-view.h". | |
1076 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
1077 | Remove "user_data" parameter. | |
1078 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
1079 | function_view as callback type. | |
1080 | * psymtab.c (partial_map_expand_apply) | |
1081 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
1082 | Adjust to use function_view as callback type and to return bool. | |
1083 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
1084 | callback types. | |
1085 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
1086 | to use function_view as callback type and to return bool. | |
1087 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
1088 | callback types. | |
1089 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
1090 | as callback types. | |
1091 | * symfile.h: Include "common/function-view.h". | |
1092 | (expand_symtabs_file_matcher_ftype) | |
1093 | (expand_symtabs_symbol_matcher_ftype) | |
1094 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
1095 | return bool. | |
1096 | (quick_symbol_functions::map_symtabs_matching_filename) | |
1097 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
1098 | function_view as callback type and return bool. | |
1099 | (expand_symtabs_matching): Adjust to use function_view as callback | |
1100 | type. | |
1101 | (maintenance_expand_name_matcher) | |
1102 | (maintenance_expand_file_matcher): Delete. | |
1103 | (maintenance_expand_symtabs): Use lambdas. | |
1104 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
1105 | function_view as callback types and return bool. | |
1106 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
1107 | of a cleanup. | |
1108 | (lookup_symtab_callback): Delete. | |
1109 | (lookup_symtab): Use a lambda. | |
1110 | (iterate_over_symbols): Adjust to use function_view as callback | |
1111 | type. | |
1112 | (struct search_symbols_data, search_symbols_file_matches) | |
1113 | (search_symbols_name_matches): Delete. | |
1114 | (search_symbols): Use a pair of lambdas. | |
1115 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
1116 | (symtab_expansion_callback): Delete. | |
1117 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
1118 | * symtab.h: Include "common/function-view.h". | |
1119 | (iterate_over_some_symtabs): Adjust to use function_view as | |
1120 | callback type and return bool. | |
1121 | (iterate_over_symtabs): Adjust to use function_view as callback | |
1122 | type. | |
1123 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
1124 | bool. | |
1125 | (iterate_over_symbols): Adjust to use function_view as callback | |
1126 | type. | |
1127 | ||
07e253aa PA |
1128 | 2017-02-23 Pedro Alves <[email protected]> |
1129 | ||
1130 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
1131 | (%.o) <unittests/%.c>: New pattern. | |
1132 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
1133 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
1134 | * common/function-view.h: New file. | |
1135 | * unittests/function-view-selftests.c: New file. | |
1136 | * configure: Regenerate. | |
1137 | ||
8eaf5320 SM |
1138 | 2017-02-23 Simon Marchi <[email protected]> |
1139 | ||
1140 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
1141 | inferior_ptid. | |
1142 | * go32-nat.c (go32_thread_alive): Likewise. | |
1143 | ||
38768751 YQ |
1144 | 2017-02-23 Yao Qi <[email protected]> |
1145 | ||
1146 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
1147 | delete. | |
1148 | ||
0a8beaba YQ |
1149 | 2017-02-23 Yao Qi <[email protected]> |
1150 | ||
1151 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
1152 | xfree. | |
1153 | (update_dynamic_varobj_children): Likewise. | |
1154 | ||
58fdfd2c JK |
1155 | 2017-02-21 Jan Kratochvil <[email protected]> |
1156 | ||
1157 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
1158 | ||
1b90b139 SM |
1159 | 2017-02-21 Simon Marchi <[email protected]> |
1160 | ||
1161 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
1162 | m_enum_value to 0 in default constructor. | |
1163 | ||
2039d74e EBM |
1164 | 2017-02-21 Edjunior Barbosa Machado <[email protected]> |
1165 | ||
1166 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
1167 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
1168 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
1169 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
1170 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
1171 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
1172 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
1173 | IS_STORE_CONDITIONAL_INSN. | |
1174 | ||
7814882a JK |
1175 | 2017-02-21 Jan Kratochvil <[email protected]> |
1176 | ||
1177 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
1178 | ||
0ae60b63 JK |
1179 | 2017-02-20 Jan Kratochvil <[email protected]> |
1180 | ||
1181 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
1182 | ||
0224619f JK |
1183 | 2017-02-20 Jan Kratochvil <[email protected]> |
1184 | ||
1185 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
1186 | (dwarf2_const_value_attr, dump_die_shallow) | |
1187 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
1188 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
1189 | ||
0af92d60 JK |
1190 | 2017-02-20 Jan Kratochvil <[email protected]> |
1191 | ||
1192 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
1193 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
1194 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
1195 | ||
216f72a1 JK |
1196 | 2017-02-20 Jan Kratochvil <[email protected]> |
1197 | ||
1198 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
1199 | DW_AT_GNU_*. | |
1200 | * common/common-exceptions.h (enum errors): Likewise. | |
1201 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
1202 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
1203 | (dwarf_expr_context::execute_stack_op): Likewise. | |
1204 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
1205 | Likewise. | |
1206 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
1207 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
1208 | (show_entry_values_debug, call_site_to_target_addr) | |
1209 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
1210 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
1211 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
1212 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
1213 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
1214 | (disassemble_dwarf_expression): Likewise. | |
1215 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
1216 | (read_call_site_scope): Likewise. | |
1217 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
1218 | (struct call_site): Likewise. | |
1219 | * stack.c (read_frame_arg): Likewise. | |
1220 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
1221 | ||
43988095 JK |
1222 | 2017-02-20 Jan Kratochvil <[email protected]> |
1223 | ||
1224 | * defs.h (read_unsigned_leb128): New declaration. | |
1225 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
1226 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
1227 | (dwarf2_find_location_expression): Call also | |
1228 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
1229 | * dwarf2loc.h (dwarf2_version): New declaration. | |
1230 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
1231 | rnglists. | |
1232 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
1233 | .debug_rnglists. | |
1234 | (struct dwop_section_names): Add loclists_dwo. | |
1235 | (dwop_section_names): Add .debug_loclists.dwo. | |
1236 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
1237 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
1238 | (struct dwo_sections): Add loclists. | |
1239 | (struct attr_abbrev): Add implicit_const. | |
1240 | (read_indirect_line_string): New declaration. | |
1241 | (read_unsigned_leb128): Delete declaration. | |
1242 | (rcuh_kind): New definition. | |
1243 | (read_and_check_comp_unit_head): Change parameter | |
1244 | is_debug_types_section to section_kind. | |
1245 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
1246 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
1247 | section_kind. Handle DWARF-5. | |
1248 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
1249 | (read_and_check_comp_unit_head): Change parameter | |
1250 | is_debug_types_section to section_kind. | |
1251 | (read_and_check_type_unit_head): Delete function. | |
1252 | (read_abbrev_offset): Handle DWARF-5. | |
1253 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
1254 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
1255 | comp_unit_head. | |
1256 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
1257 | caller. | |
1258 | (create_all_type_units): Call create_debug_type_hash_table. | |
1259 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
1260 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
1261 | caller. | |
1262 | (skip_one_die): Handle DW_FORM_implicit_const. | |
1263 | (dwarf2_rnglists_process): New function. | |
1264 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
1265 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
1266 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
1267 | DW_FORM_line_strp. | |
1268 | (read_attribute): Handle DW_FORM_implicit_const. | |
1269 | (read_indirect_string_at_offset_from): New function from | |
1270 | read_indirect_string_at_offset. | |
1271 | (read_indirect_string_at_offset): Call | |
1272 | read_indirect_string_at_offset_from. | |
1273 | (read_indirect_line_string_at_offset): New function. | |
1274 | (read_indirect_string): New function comment. | |
1275 | (read_indirect_line_string): New function. | |
1276 | (read_unsigned_leb128): Make it global. | |
1277 | (dwarf2_string_attr): Handle DWARF-5. | |
1278 | (add_include_dir_stub, read_formatted_entries): New functions. | |
1279 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
1280 | Handle DWARF-5. | |
1281 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
1282 | (dwarf2_version): New function. | |
1283 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
1284 | rnglists. | |
1285 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
1286 | fields. | |
1287 | ||
22d2f3ab JK |
1288 | 2017-02-20 Jan Kratochvil <[email protected]> |
1289 | ||
1290 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
1291 | ||
5f46c5a5 JK |
1292 | 2017-02-20 Jan Kratochvil <[email protected]> |
1293 | ||
1294 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
1295 | dwarf2_ranges_read. | |
1296 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
1297 | dwarf2_ranges_process. | |
1298 | ||
78d4d2c5 JK |
1299 | 2017-02-20 Jan Kratochvil <[email protected]> |
1300 | ||
1301 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
1302 | create_debug_types_hash_table. | |
1303 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
1304 | (create_all_type_units, open_and_init_dwo_file): Update | |
1305 | create_debug_types_hash_table callers. | |
1306 | ||
1b076f25 SDJ |
1307 | 2017-02-20 Sergio Durigan Junior <[email protected]> |
1308 | ||
1309 | PR gdb/16188 | |
1310 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
1311 | refer to 'ap', not 'args'. | |
1312 | ||
0db8980c SDJ |
1313 | 2017-02-20 Sergio Durigan Junior <[email protected]> |
1314 | Pedro Alves <[email protected]> | |
1315 | ||
1316 | PR gdb/16188 | |
1317 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
1318 | calls succeeded. | |
1319 | * fork-child.c (trace_start_error): New function. | |
1320 | (trace_start_error_with_name): Likewise. | |
1321 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
1322 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
1323 | * inferior.h (trace_start_error): New prototype. | |
1324 | (trace_start_error_with_name): Likewise. | |
1325 | ||
99e8a4f9 SDJ |
1326 | 2017-02-15 Sergio Durigan Junior <[email protected]> |
1327 | ||
1328 | PR gdb/21164 | |
1329 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
1330 | NULL before using it. | |
1331 | * symmisc.c (maintenance_print_symbols): Likewise. | |
1332 | (maintenance_print_msymbols): Likewise. | |
1333 | ||
4e746bb6 TW |
1334 | 2017-02-14 Tim Wiederhake <[email protected]> |
1335 | ||
1336 | * NEWS: Add record Python bindings entry. | |
1337 | ||
1338 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1339 | ||
1340 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
1341 | py-record-full.o. | |
1342 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
1343 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
1344 | python/py-record-full.c, python/py-record-full.h: New file. | |
1345 | * python/py-record.c: Add include for py-record-btrace.h and | |
1346 | py-record-full.h. | |
1347 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
1348 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
1349 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
1350 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
1351 | New definition. | |
1352 | (gdbpy_initialize_btrace): New export. | |
1353 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
1354 | ||
1355 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1356 | ||
1357 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
1358 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
1359 | * python/py-record.c: New file. | |
1360 | * python/python-internal.h (gdbpy_start_recording, | |
1361 | gdbpy_current_recording, gdpy_stop_recording, | |
1362 | gdbpy_initialize_record): New export. | |
1363 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
1364 | (python_GdbMethods): Add gdbpy_start_recording, | |
1365 | gdbpy_current_recording and gdbpy_stop_recording. | |
1366 | ||
1367 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1368 | ||
1369 | * record-btrace.c (record_btrace_record_method): New function. | |
1370 | (init_record_btrace_ops): Initialize to_record_method. | |
1371 | * record-full.c (record_full_record_method): New function. | |
1372 | (init_record_full_ops, init_record_full_core_ops): Add | |
1373 | record_full_record_method. | |
1374 | * record.h (enum record_method): New enum. | |
1375 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
1376 | * target-delegates.c: Regenerate. | |
1377 | * target.c (target_record_method): New function. | |
1378 | * target.h: Include record.h. | |
1379 | (struct target_ops) <to_record_method>: New field. | |
1380 | (target_record_method): New export. | |
1381 | ||
1382 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1383 | ||
1384 | * record.h (record_start, record_stop): New export. | |
1385 | * record.c (record_start, record_stop): New function. | |
1386 | ||
1387 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1388 | ||
1389 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
1390 | into a vector. | |
1391 | (btrace_clear): Clear the vector. | |
1392 | (btrace_find_insn_by_number): Use binary search to find the correct | |
1393 | function call segment. | |
1394 | * btrace.h (brace_fun_p): New typedef. | |
1395 | (struct btrace_thread_info) <functions>: New field. | |
1396 | ||
1397 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1398 | ||
1399 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
1400 | * btrace.c (btrace_decode_error): ... here. New function. | |
1401 | * btrace.h (btrace_decode_error): New export. | |
1402 | ||
1403 | 2017-02-14 Tim Wiederhake <[email protected]> | |
1404 | ||
1405 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
1406 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
1407 | btrace_find_insn_by_number): Remove special case for gaps. | |
1408 | * btrace.h (btrace_insn_get_error): New export. | |
1409 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
1410 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
1411 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
1412 | ||
3f77c769 TT |
1413 | 2017-02-14 Tom Tromey <[email protected]> |
1414 | ||
1415 | PR python/13598: | |
1416 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
1417 | event. | |
1418 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
1419 | before_prompt registry. | |
1420 | * python/py-events.h (events_object) <before_prompt>: New field. | |
1421 | ||
4c2c7ac6 MM |
1422 | 2017-02-14 Markus Metzger <[email protected]> |
1423 | ||
1424 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
1425 | ||
5cf30ebf LM |
1426 | 2017-02-13 Luis Machado <[email protected]> |
1427 | ||
1428 | * symfile (_initialize_symfile): Add usage text to the load command's | |
1429 | help text. | |
1430 | ||
26a06916 SM |
1431 | 2017-02-10 Simon Marchi <[email protected]> |
1432 | ||
1433 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
1434 | ||
0b145e37 TT |
1435 | 2017-02-10 Tom Tromey <[email protected]> |
1436 | ||
1437 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
1438 | ||
2d8365c4 TT |
1439 | 2017-02-10 Tom Tromey <[email protected]> |
1440 | ||
1441 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
1442 | "cleanup" local. | |
1443 | * python/py-type.c (typy_legacy_template_argument): Remove | |
1444 | unnecessary "cleanup" local. | |
1445 | ||
2bb8f231 TT |
1446 | 2017-02-10 Tom Tromey <[email protected]> |
1447 | ||
1448 | * python/python.c (do_start_initialization): New function, from | |
1449 | _initialize_python. | |
1450 | (_initialize_python): Call do_start_initialization. | |
1451 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
1452 | goto. | |
1453 | ||
1bdfaf42 TT |
1454 | 2017-02-10 Tom Tromey <[email protected]> |
1455 | ||
1456 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
1457 | gdbpy_ref. | |
1458 | ||
88b6faea TT |
1459 | 2017-02-10 Tom Tromey <[email protected]> |
1460 | ||
1461 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
1462 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
1463 | gdbpy_ref. | |
1464 | * python/py-type.c (field_new): Use gdbpy_ref. | |
1465 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
1466 | gdbpy_ref. | |
1467 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
1468 | (py_free_pspace): Likewise. | |
1469 | (pspace_to_pspace_object): Likewise. | |
1470 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
1471 | (py_free_objfile): Likewise. | |
1472 | (objfile_to_objfile_object): Likewise. | |
1473 | * python/py-inferior.c (delete_thread_object): Use | |
1474 | gdbpy_ref. | |
1475 | (infpy_read_memory): Likewise. | |
1476 | (py_free_inferior): Likewise. | |
1477 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
1478 | gdbpy_ref. | |
1479 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
1480 | ||
7780f186 TT |
1481 | 2017-02-10 Tom Tromey <[email protected]> |
1482 | ||
1483 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
1484 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
1485 | used. | |
1486 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
1487 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
1488 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
1489 | python/py-framefilter.c, python/py-function.c, | |
1490 | python/py-inferior.c, python/py-infevents.c, | |
1491 | python/py-linetable.c, python/py-newobjfileevent.c, | |
1492 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
1493 | python/py-signalevent.c, python/py-stopevent.c, | |
1494 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
1495 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
1496 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
1497 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
1498 | ||
d4b0bb18 TT |
1499 | 2017-02-10 Tom Tromey <[email protected]> |
1500 | ||
1501 | * ui-out.h (ui_out_emit_type): New class. | |
1502 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
1503 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
1504 | and ui_out_emit_tuple. | |
1505 | (enumerate_locals): Likewise. | |
1506 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
1507 | ui_out_emit_list. | |
1508 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
1509 | ui_out_emit_list. | |
1510 | * common/gdb_optional.h: New file. | |
1511 | ||
f67f945c MG |
1512 | 2017-02-10 Martin Galvan <[email protected]> |
1513 | ||
1514 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
1515 | ||
18da0c51 MG |
1516 | 2017-02-10 Martin Galvan <[email protected]> |
1517 | ||
1518 | PR gdb/21122 | |
1519 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
1520 | of the 'commands' command to indicate that it takes a list argument. | |
1521 | ||
62c14536 SM |
1522 | 2017-02-09 Simon Marchi <[email protected]> |
1523 | ||
1524 | * interps.c (current_interp_set_logging): Remove "return". | |
1525 | ||
ff6fa247 GB |
1526 | 2017-02-09 Gary Benson <[email protected]> |
1527 | ||
1528 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
1529 | dereference. | |
1530 | ||
a474bd8e PA |
1531 | 2017-02-08 Pedro Alves <[email protected]> |
1532 | ||
1533 | * interps.c (interp::interp): Remove reference to quiet_p. | |
1534 | (interp_set): Make static. Remove dead "Switching to" output | |
1535 | code. | |
1536 | (interp_quiet_p, interp_set_quiet): Delete. | |
1537 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
1538 | * interps.h (interp_quiet_p): Make static. | |
1539 | (class interp) <quiet_p>: Remove field | |
1540 | ||
3d7b173c JG |
1541 | 2017-02-08 Jerome Guitton <[email protected]> |
1542 | ||
604c4576 JG |
1543 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
1544 | * cli/cli-decode.h (find_command_name_length): Declare. | |
1545 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
1546 | New functions. | |
1547 | (process_next_line): Use cli-decode to parse command names. | |
1548 | (build_command_line): Make args a constant pointer. | |
1549 | ||
1550 | 2017-02-08 Jerome Guitton <[email protected]> | |
6dbb839a | 1551 | |
3d7b173c JG |
1552 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
1553 | Remove case-insensitive search. | |
1554 | ||
1291063d JM |
1555 | 2017-02-07 Jose E. Marchesi <[email protected]> |
1556 | ||
1557 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
1558 | at the end of the line. Avoids an ARI warning. | |
1559 | ||
20b477a7 LM |
1560 | 2017-02-06 Luis Machado <[email protected]> |
1561 | ||
1562 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
1563 | rdseed instructions. | |
1564 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
1565 | ||
3f7b46f2 IR |
1566 | 2017-02-06 Ivo Raisr <[email protected]> |
1567 | ||
1568 | PR tdep/20936 | |
1569 | Provide and use sparc32 and sparc64 target description XML files. | |
1570 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
1571 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
1572 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
1573 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
1574 | * features/sparc/sparc32-solaris.xml: New file. | |
1575 | * features/sparc/sparc64-solaris.xml: New file. | |
1576 | * features/sparc/sparc32-solaris.c: Generated. | |
1577 | * features/sparc/sparc64-solaris.c: Generated. | |
1578 | * sparc-tdep.h: Account for differences in target descriptions. | |
1579 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
1580 | (sparc32_register_type): Use target provided registers. | |
1581 | (validate_tdesc_registers): New function. | |
1582 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
1583 | Set pseudoregister functions. | |
1584 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
1585 | (sparc64_register_type): Use target provided registers. | |
1586 | (sparc64_init_abi): Set pseudoregister functions. | |
1587 | ||
f0fd41c1 TT |
1588 | 2017-02-03 Tom Tromey <[email protected]> |
1589 | ||
1590 | PR rust/21097: | |
1591 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
1592 | with a single member. | |
1593 | ||
d6f9b0fb PA |
1594 | 2017-02-03 Pedro Alves <[email protected]> |
1595 | ||
1596 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
1597 | (cli_interp_base::~cli_interp_base): New. | |
1598 | (cli_interp): New struct. | |
1599 | (as_cli_interp): Cast the interp itself to cli_interp. | |
1600 | (cli_interpreter_pre_command_loop): Rename to ... | |
1601 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
1602 | parameter. | |
1603 | (cli_interpreter_init): Rename to ... | |
1604 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
1605 | boolean. Make extern. | |
1606 | (cli_interpreter_resume): Rename to ... | |
1607 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
1608 | extern. | |
1609 | (cli_interpreter_suspend): Rename to ... | |
1610 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
1611 | extern. | |
1612 | (cli_interpreter_exec): Rename to ... | |
1613 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
1614 | extern. | |
1615 | (cli_interpreter_supports_command_editing): Rename to ... | |
1616 | (cli_interp_base::supports_command_editing): ... this. Remove | |
1617 | 'interp' parameter. Make extern. | |
1618 | (cli_ui_out): Rename to ... | |
1619 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
1620 | Make extern. | |
1621 | (cli_set_logging): Rename to ... | |
1622 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
1623 | parameter. Make extern. | |
1624 | (cli_interp_procs): Delete. | |
1625 | (cli_interp_factory): Adjust to use "new". | |
1626 | * cli/cli-interp.h: Include "interps.h". | |
1627 | (struct cli_interp_base): New struct. | |
1628 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
1629 | (interp_new): Delete. | |
1630 | (interp::interp, interp::~interp): New. | |
1631 | (interp_set): Use bool, and return void. Assume the interpreter | |
1632 | has suspend, init and resume methods, and that the all return | |
1633 | void. | |
1634 | (set_top_level_interpreter): interp_set returns void. | |
1635 | (interp_ui_out): Adapt. | |
1636 | (current_interp_set_logging): Adapt. | |
1637 | (interp_data): Delete. | |
1638 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
1639 | (interp_exec): Adapt. | |
1640 | (top_level_interpreter_data): Delete. | |
1641 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
1642 | (interp_suspend_ftype, interp_exec_ftype) | |
1643 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
1644 | (class interp): New. | |
1645 | (interp_new): Delete. | |
1646 | (interp_set): Now returns void. Use bool. | |
1647 | (interp_data, top_level_interpreter_data): Delete. | |
1648 | * mi/mi-common.h: Include interps.h. | |
1649 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
1650 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
1651 | pre_command_loop methods. | |
1652 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
1653 | (mi_interpreter_init): Rename to ... | |
1654 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
1655 | bool, return void and make extern. Adjust. | |
1656 | (mi_interpreter_resume): ... Rename to ... | |
1657 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
1658 | return void and make extern. Adjust. | |
1659 | (mi_interpreter_suspend): ... Rename to ... | |
1660 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
1661 | return void and make extern. Adjust. | |
1662 | (mi_interpreter_exec): ... Rename to ... | |
1663 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
1664 | extern. Adjust. | |
1665 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
1666 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
1667 | parameter and make extern. | |
1668 | (mi_on_normal_stop_1): Adjust. | |
1669 | (mi_ui_out): Rename to ... | |
1670 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
1671 | parameter and make extern. Adjust. | |
1672 | (mi_set_logging): Rename to ... | |
1673 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
1674 | parameter and make extern. Adjust. | |
1675 | (mi_interp_procs): Delete. | |
1676 | (mi_interp_factory): Adjust to use 'new'. | |
1677 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
1678 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
1679 | Adjust. | |
1680 | * tui/tui-interp.c (tui_interp): New class. | |
1681 | (as_tui_interp): Return a tui_interp pointer. | |
1682 | (tui_on_normal_stop, tui_on_signal_received) | |
1683 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
1684 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
1685 | to use interp::interp_ui_out. | |
1686 | (tui_init): Rename to ... | |
1687 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
1688 | bool, return void and make extern. Adjust. | |
1689 | (tui_resume): Rename to ... | |
1690 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
1691 | return void and make extern. Adjust. | |
1692 | (tui_suspend): Rename to ... | |
1693 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
1694 | return void and make extern. Adjust. | |
1695 | (tui_ui_out): Rename to ... | |
1696 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
1697 | parameter, and make extern. Adjust. | |
1698 | (tui_exec): Rename to ... | |
1699 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
1700 | make extern. | |
1701 | (tui_interp_procs): Delete. | |
1702 | (tui_interp_factory): Use "new". | |
1703 | ||
65c40c95 TT |
1704 | 2017-02-02 Tom Tromey <[email protected]> |
1705 | ||
1706 | * rust-exp.y (ends_raw_string, space_then_number) | |
1707 | (rust_identifier_start_p): Return bool. | |
1708 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
1709 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
1710 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
1711 | (rust_chartype_p): Return bool. | |
1712 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
1713 | Update. | |
1714 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
1715 | Return bool. | |
1716 | ||
b50f188d TT |
1717 | 2017-02-02 Tom Tromey <[email protected]> |
1718 | ||
1719 | * rust-lang.c: Reindent. | |
1720 | ||
03c85b11 TT |
1721 | 2017-02-02 Tom Tromey <[email protected]> |
1722 | ||
1723 | * rust-lang.h (rust_crate_for_block): Update. | |
1724 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
1725 | (rust_get_disr_info): Use std:;string, not | |
1726 | gdb::unique_xmalloc_ptr. | |
1727 | * rust-exp.y (crate_name): Update. | |
1728 | ||
9b6da501 PA |
1729 | 2017-02-02 Pedro Alves <[email protected]> |
1730 | ||
1731 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
1732 | field out of gdb_disassembler_test and make it static. | |
1733 | ||
ec4cb20b PA |
1734 | 2017-02-02 Pedro Alves <[email protected]> |
1735 | ||
1736 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
1737 | mi1_interp and mi_interp fields. | |
1738 | ||
5be5dbf0 PA |
1739 | 2017-02-02 Pedro Alves <[email protected]> |
1740 | ||
616268b6 PA |
1741 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
1742 | Moved from cli/cli-logging.c. | |
1743 | (cli_set_logging): New function. | |
1744 | (cli_interp_procs): Install cli_set_logging. | |
1745 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
1746 | Declare. | |
1747 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
1748 | Moved to cli/cli-interp.c. | |
1749 | (pop_output_files): Don't save outputs here. | |
1750 | (make_logging_output): New function. | |
1751 | (handle_redirections): Don't build tee nor save previous outputs | |
1752 | here. | |
1753 | * interps.c (current_interp_set_logging): Change prototype. | |
1754 | Assume there's always a set_logging_proc method installed. | |
1755 | * interps.h (interp_set_logging_ftype): Change prototype. | |
1756 | (current_interp_set_logging): Change prototype and adjust comment. | |
1757 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
1758 | use make_logging_output. | |
1759 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
1760 | 2017-02-02 Pedro Alves <[email protected]> | |
1761 | ||
5be5dbf0 PA |
1762 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
1763 | from ... | |
1764 | (set_logging_overwrite): ... here. | |
1765 | (logging_no_redirect_file): Delete. | |
1766 | (set_logging_redirect): Don't handle redirection on the fly. | |
1767 | Instead warn that "logging off" / "logging on" is necessary. | |
1768 | (pop_output_files): Delete references to logging_no_redirect_file. | |
1769 | (show_logging_command): Always speak in terms of what will happen | |
1770 | once logging is reenabled. | |
1771 | ||
c99cc448 PA |
1772 | 2017-02-02 Pedro Alves <[email protected]> |
1773 | ||
1774 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
1775 | ||
8b172ce7 PA |
1776 | 2017-02-02 Pedro Alves <[email protected]> |
1777 | ||
1778 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
1779 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
1780 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
1781 | instead of allocating new buffers, and to print using the object's | |
1782 | gdb_disassembler instead of calling gdb_print_insn. | |
1783 | (dump_insns): Use gdb_pretty_print_disassembler. | |
1784 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
1785 | (gdb_pretty_print_disassembler): New class. | |
1786 | * record-btrace.c (btrace_insn_history): Use | |
1787 | gdb_pretty_print_disassembler. | |
1788 | ||
d7e74731 PA |
1789 | 2017-02-02 Pedro Alves <[email protected]> |
1790 | ||
1791 | * ada-lang.c (type_as_string): Use string_file. | |
1792 | * ada-valprint.c (ada_print_floating): Use string_file. | |
1793 | * ada-varobj.c (ada_varobj_scalar_image) | |
1794 | (ada_varobj_get_value_image): Use string_file. | |
1795 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
1796 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
1797 | * breakpoint.c (update_inserted_breakpoint_locations) | |
1798 | (insert_breakpoint_locations, reattach_breakpoints) | |
1799 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
1800 | (print_it_watchpoint): Use string_file. | |
1801 | (save_breakpoints): Use stdio_file. | |
1802 | * c-exp.y (oper): Use string_file. | |
1803 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
1804 | tee_file. | |
1805 | (pop_output_files): Use delete. | |
1806 | (handle_redirections): Use stdio_file and tee_file. | |
1807 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
1808 | * compile/compile-c-support.c (c_compute_program): Use | |
1809 | string_file. | |
1810 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
1811 | 'string_file &' instead of a 'ui_file *'. | |
1812 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
1813 | of a 'ui_file *'. Use string_file. | |
1814 | (generate_c_for_variable_locations): Take a 'string_file &' | |
1815 | instead of a 'ui_file *'. | |
1816 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
1817 | Take a 'string_file &' instead of a 'ui_file *'. | |
1818 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
1819 | (print_label, pushf_register_address, pushf_register) | |
1820 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
1821 | 'ui_file *'. Adjust. | |
1822 | * compile/compile.c (compile_to_object): Use string_file. | |
1823 | * compile/compile.h (compile_dwarf_expr_to_c) | |
1824 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
1825 | 'ui_file *'. | |
1826 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
1827 | (replace_typedefs_qualified_name): Use string_file and | |
1828 | obstack_copy0. | |
1829 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
1830 | (gdb_disassembly): Adjust reference the null_stream global. | |
1831 | (do_ui_file_delete): Delete. | |
1832 | (gdb_insn_length): Use null_stream. | |
1833 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
1834 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
1835 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
1836 | 'string_file &' instead of a 'ui_file *'. | |
1837 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
1838 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
1839 | (dwarf2_compute_name): Use string_file. | |
1840 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
1841 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
1842 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
1843 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
1844 | string_file. | |
1845 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
1846 | 'string_file *' instead of a 'ui_file *'. | |
1847 | (gdbscm_arch_disassemble): Use string_file. | |
1848 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
1849 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
1850 | inherits from ui_file. | |
1851 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
1852 | (ioscm_file_port_put): Delete. | |
1853 | (ioscm_file_port_write): Rename to ... | |
1854 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
1855 | checks. | |
1856 | (ioscm_file_port_new): Delete. | |
1857 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
1858 | ui_file_up. | |
1859 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
1860 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
1861 | Use string_file. | |
1862 | * infcmd.c (print_return_value_1): Use string_file. | |
1863 | * infrun.c (print_target_wait_results): Use string_file. | |
1864 | * language.c (add_language): Use string_file. | |
1865 | * location.c (explicit_to_string_internal): Use string_file. | |
1866 | * main.c (captured_main_1): Use null_file. | |
1867 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
1868 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
1869 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
1870 | event_channel>: Change type to mi_console_file pointer. | |
1871 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
1872 | (mi_console_file_delete): Delete. | |
1873 | (struct mi_console_file): Delete. | |
1874 | (mi_console_file_magic): Delete. | |
1875 | (mi_console_file_new): Delete. | |
1876 | (mi_console_file::mi_console_file): New. | |
1877 | (mi_console_file_delete): Delete. | |
1878 | (mi_console_file_fputs): Delete. | |
1879 | (mi_console_file::write): New. | |
1880 | (mi_console_raw_packet): Delete. | |
1881 | (mi_console_file::flush): New. | |
1882 | (mi_console_file_flush): Delete. | |
1883 | (mi_console_set_raw): Rename to ... | |
1884 | (mi_console_file::set_raw): ... this. | |
1885 | * mi/mi-console.h (class mi_console_file): New class. | |
1886 | (mi_console_file_new, mi_console_set_raw): Delete. | |
1887 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
1888 | (mi_set_logging): Use delete and tee_file. Adjust. | |
1889 | * mi/mi-main.c (output_register): Use string_file. | |
1890 | (mi_cmd_data_evaluate_expression): Use string_file. | |
1891 | (mi_cmd_data_read_memory): Use string_file. | |
1892 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
1893 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
1894 | (mi_ui_out::rewind): Use main_stream and | |
1895 | string_file. | |
1896 | (mi_ui_out::put): Use main_stream and string_file. | |
1897 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
1898 | Allocate a 'string_file' instead. | |
1899 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
1900 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
1901 | (mi_ui_out::main_stream): Declare method. | |
1902 | * printcmd.c (eval_command): Use string_file. | |
1903 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
1904 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
1905 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
1906 | * python/py-frame.c (frapy_str): Use string_file. | |
1907 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
1908 | Use string_file. | |
1909 | * python/py-type.c (typy_str): Use string_file. | |
1910 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
1911 | * python/py-value.c (valpy_str): Use string_file. | |
1912 | * record-btrace.c (btrace_insn_history): Use string_file. | |
1913 | * regcache.c (regcache_print): Use stdio_file. | |
1914 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
1915 | * remote.c (escape_buffer): Use string_file. | |
1916 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
1917 | * serial.c (serial_open_ops_1): Use stdio_file. | |
1918 | (do_serial_close): Use delete. | |
1919 | * stack.c (print_frame_arg): Use string_file. | |
1920 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
1921 | (print_frame): Use string_file. | |
1922 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
1923 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
1924 | Take a 'string_file *' instead of a 'ui_file *'. | |
1925 | * top.c (new_ui): Use stdio_file and stderr_file. | |
1926 | (free_ui): Use delete. | |
1927 | (execute_command_to_string): Use string_file. | |
1928 | (quit_confirm): Use string_file. | |
1929 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
1930 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
1931 | * tui/tui-file.c: Don't include "ui-file.h". | |
1932 | (enum streamtype, struct tui_stream): Delete. | |
1933 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
1934 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
1935 | (tui_file::tui_file): New method. | |
1936 | (tui_file_fputs): Delete. | |
1937 | (tui_file_get_strbuf): Delete. | |
1938 | (tui_file::puts): New method. | |
1939 | (tui_file_adjust_strbuf): Delete. | |
1940 | (tui_file_flush): Delete. | |
1941 | (tui_file::flush): New method. | |
1942 | * tui/tui-file.h: Tweak intro comment. | |
1943 | Include ui-file.h. | |
1944 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
1945 | (tui_file_adjust_strbuf): Delete declarations. | |
1946 | (class tui_file): New class. | |
1947 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
1948 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
1949 | (tui_register_format): Use string_stream. | |
1950 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
1951 | (tui_get_function_from_frame): Use string_file. | |
1952 | * typeprint.c (type_to_string): Use string_file. | |
1953 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
1954 | (null_stream): New global. | |
1955 | (ui_file_delete): Delete. | |
1956 | (ui_file::ui_file): New. | |
1957 | (null_file_isatty): Delete. | |
1958 | (ui_file::~ui_file): New. | |
1959 | (null_file_rewind): Delete. | |
1960 | (ui_file::printf): New. | |
1961 | (null_file_put): Delete. | |
1962 | (null_file_flush): Delete. | |
1963 | (ui_file::putstr): New. | |
1964 | (null_file_write): Delete. | |
1965 | (ui_file::putstrn): New. | |
1966 | (null_file_read): Delete. | |
1967 | (ui_file::putc): New. | |
1968 | (null_file_fputs): Delete. | |
1969 | (null_file_write_async_safe): Delete. | |
1970 | (ui_file::vprintf): New. | |
1971 | (null_file_delete): Delete. | |
1972 | (null_file::write): New. | |
1973 | (null_file_fseek): Delete. | |
1974 | (null_file::puts): New. | |
1975 | (ui_file_data): Delete. | |
1976 | (null_file::write_async_safe): New. | |
1977 | (gdb_flush, ui_file_isatty): Adjust. | |
1978 | (ui_file_put, ui_file_rewind): Delete. | |
1979 | (ui_file_write): Adjust. | |
1980 | (ui_file_write_for_put): Delete. | |
1981 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
1982 | (ui_file_fseek): Delete. | |
1983 | (fputs_unfiltered): Adjust. | |
1984 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
1985 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
1986 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
1987 | (set_ui_file_data): Delete. | |
1988 | (string_file::~string_file, string_file::write) | |
1989 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
1990 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
1991 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
1992 | (struct mem_file): Delete. | |
1993 | (mem_file_new): Delete. | |
1994 | (stdio_file::stdio_file): New. | |
1995 | (mem_file_delete): Delete. | |
1996 | (stdio_file::stdio_file): New. | |
1997 | (mem_fileopen): Delete. | |
1998 | (stdio_file::~stdio_file): New. | |
1999 | (mem_file_rewind): Delete. | |
2000 | (stdio_file::set_stream): New. | |
2001 | (mem_file_put): Delete. | |
2002 | (stdio_file::open): New. | |
2003 | (mem_file_write): Delete. | |
2004 | (stdio_file_magic, struct stdio_file): Delete. | |
2005 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
2006 | (stdio_file::flush): New. | |
2007 | (stdio_file_read): Rename to ... | |
2008 | (stdio_file::read): ... this. Adjust. | |
2009 | (stdio_file_write): Rename to ... | |
2010 | (stdio_file::write): ... this. Adjust. | |
2011 | (stdio_file_write_async_safe): Rename to ... | |
2012 | (stdio_file::write_async_safe) ... this. Adjust. | |
2013 | (stdio_file_fputs): Rename to ... | |
2014 | (stdio_file::puts) ... this. Adjust. | |
2015 | (stdio_file_isatty): Delete. | |
2016 | (stdio_file_fseek): Delete. | |
2017 | (stdio_file::isatty): New. | |
2018 | (stderr_file_write): Rename to ... | |
2019 | (stderr_file::write) ... this. Adjust. | |
2020 | (stderr_file_fputs): Rename to ... | |
2021 | (stderr_file::puts) ... this. Adjust. | |
2022 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
2023 | (stderr_file::stderr_file): New. | |
2024 | (tee_file_magic): Delete. | |
2025 | (struct tee_file): Delete. | |
2026 | (tee_file::tee_file): New. | |
2027 | (tee_file_new): Delete. | |
2028 | (tee_file::~tee_file): New. | |
2029 | (tee_file_delete): Delete. | |
2030 | (tee_file_flush): Rename to ... | |
2031 | (tee_file::flush): ... this. Adjust. | |
2032 | (tee_file_write): Rename to ... | |
2033 | (tee_file::write): ... this. Adjust. | |
2034 | (tee_file::write_async_safe): New. | |
2035 | (tee_file_fputs): Rename to ... | |
2036 | (tee_file::puts): ... this. Adjust. | |
2037 | (tee_file_isatty): Rename to ... | |
2038 | (tee_file::isatty): ... this. Adjust. | |
2039 | * ui-file.h (struct obstack, struct ui_file): Don't | |
2040 | forward-declare. | |
2041 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
2042 | (ui_file_write_ftype) | |
2043 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
2044 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
2045 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
2046 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
2047 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
2048 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
2049 | (set_ui_file_fseek): Delete. | |
2050 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
2051 | (struct ui_file): New. | |
2052 | (ui_file_up): New. | |
2053 | (class null_file): New. | |
2054 | (null_stream): Declare. | |
2055 | (ui_file_write_for_put, ui_file_put): Delete. | |
2056 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
2057 | Delete. | |
2058 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
2059 | (gdb_fopen, tee_file_new): Delete. | |
2060 | (struct string_file): New. | |
2061 | (struct stdio_file): New. | |
2062 | (stdio_file_up): New. | |
2063 | (struct stderr_file): New. | |
2064 | (class tee_file): New. | |
2065 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
2066 | of a 'ui_file *'. Adjust. | |
2067 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
2068 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
2069 | (null_stream): Delete. | |
2070 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
2071 | Adjust. | |
2072 | * utils.h (struct ui_file): Delete forward declaration.. | |
2073 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
2074 | (error_stream): Take a 'string_file &' instead of a | |
2075 | 'ui_file *'. | |
2076 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
2077 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
2078 | * gdbarch.c: Regenerate. | |
2079 | ||
187808b0 PA |
2080 | 2017-02-02 Pedro Alves <[email protected]> |
2081 | ||
2082 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
2083 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
2084 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
2085 | Adjust to call gdb_print_insn instead of | |
2086 | gdb_disassembler::print_insn. | |
2087 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
2088 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
2089 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
2090 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
2091 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
2092 | declaration. | |
2093 | (gdb_pretty_print_insn): Re-add declaration. | |
2094 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
2095 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
2096 | ||
7a8eb317 SM |
2097 | 2017-02-01 Simon Marchi <[email protected]> |
2098 | ||
2099 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
2100 | * disasm.c (gdb_disassembly): Likewise. | |
2101 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
2102 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
2103 | * stack.c (do_gdb_disassembly): Likewise. | |
2104 | ||
7346ef59 AA |
2105 | 2017-02-01 Andreas Arnez <[email protected]> |
2106 | ||
2107 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
2108 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
2109 | targets. And if the implicit value is longer than needed, extract | |
2110 | the first bytes instead of the "least significant" ones. | |
2111 | ||
cd4007e4 MM |
2112 | 2017-02-01 Markus Metzger <[email protected]> |
2113 | ||
2114 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
2115 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
2116 | (btrace_fetch): Assert can_access_registers_ptid. | |
2117 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
2118 | validate_registers_access. | |
2119 | ||
cf77c34e MM |
2120 | 2017-02-01 Markus Metzger <[email protected]> |
2121 | ||
2122 | * gdbthread.h (can_access_registers_ptid): New. | |
2123 | * thread.c (can_access_registers_ptid): New. | |
2124 | ||
be85ce7d PA |
2125 | 2017-02-01 Pedro Alves <[email protected]> |
2126 | ||
2127 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
2128 | ||
29b0b251 PA |
2129 | 2017-01-31 Pedro Alves <[email protected]> |
2130 | ||
2131 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
2132 | Fix typos. | |
2133 | ||
289b5b24 PA |
2134 | 2017-01-31 Pedro Alves <[email protected]> |
2135 | ||
2136 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
2137 | not used. | |
2138 | ||
b47413b4 PA |
2139 | 2017-01-31 Pedro Alves <[email protected]> |
2140 | ||
2141 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
2142 | ||
60adb36c PA |
2143 | 2017-01-31 Pedro Alves <[email protected]> |
2144 | ||
2145 | * common/scoped_restore.h | |
2146 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
2147 | change the value's parameter type to T2. | |
2148 | (make_scoped_restore): Likewise. | |
2149 | ||
2735833d WT |
2150 | 2017-01-27 Walfred Tedeschi <[email protected]> |
2151 | Richard Henderson <[email protected]> | |
2152 | ||
2153 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
2154 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
2155 | GS_BASE for older kernels. | |
2156 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
2157 | GS_BASE for older kernels. | |
2158 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
2159 | and GS_BASE to the offset table. | |
2160 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
2161 | system register group. | |
2162 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
2163 | for older kernels. | |
2164 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
2165 | amd64 ABI. | |
2166 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
2167 | AMD64_GSBASE_REGNUM. | |
2168 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
2169 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
2170 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
2171 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
2172 | i386/64bit-segments.xml in those rules. | |
2173 | * features/i386/64bit-segments.xml: New file. | |
2174 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
2175 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
2176 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
2177 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
2178 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
2179 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
2180 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
2181 | * features/i386/amd64-avx-linux.c: Regenerated. | |
2182 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
2183 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
2184 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
2185 | * features/i386/amd64-linux.c: Regenerated. | |
2186 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
2187 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
2188 | * features/i386/i386-avx-mpx.c: Regenerated. | |
2189 | * features/i386/x32-avx-linux.c: Regenerated. | |
2190 | * features/i386/x32-avx512-linux.c: Regenerated. | |
2191 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
2192 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
2193 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
2194 | * regformats/i386/amd64-linux.dat: Regenerated. | |
2195 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
2196 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
2197 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
2198 | * regformats/i386/x32-linux.dat: Regenerated. | |
2199 | ||
8884e97e WT |
2200 | 2017-01-27 Walfred Tedeschi <[email protected]> |
2201 | ||
2202 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
2203 | Set to AMD64_NUM_REGS. | |
2204 | ||
7005d26a WT |
2205 | 2017-01-27 Walfred Tedeschi <[email protected]> |
2206 | ||
2207 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
2208 | that checks validity of a register number. | |
2209 | ||
4bd2e1b2 KC |
2210 | 2017-01-27 Kees Cook <[email protected]> |
2211 | ||
2212 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
2213 | fetch_fpregs if target has fpa registers. | |
2214 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
2215 | has fpa registers. | |
2216 | ||
7cf1de6c AA |
2217 | 2017-01-26 Andreas Arnez <[email protected]> |
2218 | ||
2219 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
2220 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
2221 | ||
874a1c8c AT |
2222 | 2017-01-26 Antoine Tremblay <[email protected]> |
2223 | ||
2224 | * corelow.c (get_core_register_section): Check for regset | |
2225 | existence before checking for REGSET_VARIABLE_SIZE. | |
2226 | ||
d8b49cf0 YQ |
2227 | 2017-01-26 Yao Qi <[email protected]> |
2228 | Pedro Alves <[email protected]> | |
2229 | ||
2230 | PR gdb/20939 | |
2231 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
2232 | call memory_error, save memaddr instead. | |
2233 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
2234 | negative, cal memory_error. | |
2235 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
2236 | ||
658ca58c YQ |
2237 | 2017-01-26 Yao Qi <[email protected]> |
2238 | ||
2239 | * disasm-selftests.c (memory_error_test): New function. | |
2240 | (_initialize_disasm_selftests): Register memory_error_test. | |
2241 | ||
79843d45 YQ |
2242 | 2017-01-26 Yao Qi <[email protected]> |
2243 | ||
2244 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
2245 | selftest-arch.c. | |
2246 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
2247 | * disasm-selftests.c: New file. | |
2248 | * selftest-arch.c: New file. | |
2249 | * selftest-arch.h: New file. | |
2250 | ||
8cafda32 YQ |
2251 | 2017-01-26 Yao Qi <[email protected]> |
2252 | ||
2253 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
2254 | to bfd_arch_mep. Don't return 0 if section is not | |
2255 | found. Call print_insn_mep. | |
2256 | ||
e47ad6c0 YQ |
2257 | 2017-01-26 Pedro Alves <[email protected]> |
2258 | Yao Qi <[email protected]> | |
2259 | ||
2260 | * arm-tdep.c: Include "disasm.h". | |
2261 | (gdb_print_insn_arm): Update code to get gdbarch. | |
2262 | * disasm.c (dis_asm_read_memory): Change it to | |
2263 | gdb_disassembler::dis_asm_read_memory. | |
2264 | (dis_asm_memory_error): Likewise. | |
2265 | (dis_asm_print_address): Likewise. | |
2266 | (gdb_pretty_print_insn): Change it to | |
2267 | gdb_disassembler::pretty_print_insn. | |
2268 | (dump_insns): Add one argument gdb_disassemlber. All | |
2269 | callers updated. | |
2270 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
2271 | (do_mixed_source_and_assembly): Likewise. | |
2272 | (do_assembly_only): Likewise. | |
2273 | (gdb_disassembler::gdb_disassembler): New. | |
2274 | (gdb_disassembler::print_insn): New. | |
2275 | * disasm.h (class gdb_disassembler): New. | |
2276 | (gdb_pretty_print_insn): Remove declaration. | |
2277 | (gdb_disassemble_info): Likewise. | |
2278 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
2279 | (gdbscm_disasm_read_memory_worker): Update. | |
2280 | (gdbscm_disasm_read_memory): Update. | |
2281 | (gdbscm_disasm_memory_error): Remove. | |
2282 | (gdbscm_disasm_print_address): Remove. | |
2283 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
2284 | (gdbscm_print_insn_from_port): Update. | |
2285 | * mips-tdep.c: Include disasm.h. | |
2286 | (gdb_print_insn_mips): Update code to get gdbarch. | |
2287 | * record-btrace.c (btrace_insn_history): Update. | |
2288 | * spu-tdep.c: Include disasm.h. | |
2289 | (struct spu_dis_asm_data): Remove. | |
2290 | (struct spu_dis_asm_info): New. | |
2291 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
2292 | SPU id. | |
2293 | (gdb_print_insn_spu): Cast disassemble_info to | |
2294 | spu_dis_asm_info. | |
2295 | ||
80d75874 YQ |
2296 | 2017-01-26 Yao Qi <[email protected]> |
2297 | ||
2298 | * disasm.c (do_ui_file_delete): Delete. | |
2299 | (gdb_insn_length): Move code creating stream to ... | |
2300 | * utils.c (null_stream): ... here. New function. | |
2301 | * utils.h (null_stream): Declare. | |
2302 | ||
60685cd0 SM |
2303 | 2017-01-23 Simon Marchi <[email protected]> |
2304 | ||
2305 | * python/py-inferior.c (find_thread_object): Return directly | |
2306 | from the loop. Remove "found" variable. | |
2307 | ||
eb1cdb62 JB |
2308 | 2017-01-21 Joel Brobecker <[email protected]> |
2309 | ||
2310 | GDB 7.12.1 released. | |
2311 | ||
b1ce6568 SM |
2312 | 2017-01-20 Simon Marchi <[email protected]> |
2313 | ||
2314 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
2315 | the gdbpy_enter object declared first. | |
2316 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
2317 | ||
6f8b0407 SM |
2318 | 2017-01-20 Simon Marchi <[email protected]> |
2319 | ||
fec93fb1 | 2320 | PR python/21068 |
6f8b0407 SM |
2321 | * python/python-internal.h (PyMem_RawMalloc): Define for |
2322 | Python < 3.4. | |
2323 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
2324 | PyMem_RawMalloc instead of PyMem_Malloc. | |
2325 | ||
78cbbba8 LM |
2326 | 2017-01-20 Mike Wrighton <[email protected]> |
2327 | Luis Machado <[email protected]> | |
2328 | ||
2329 | * NEWS (New commands): Mention flash-erase. | |
2330 | (New MI commands): Mention target-flash-erase. | |
2331 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
2332 | command. | |
2333 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
2334 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
2335 | * target.c (flash_erase_command): New function. | |
2336 | (initialize_targets): Add new flash-erase command. | |
2337 | * target.h (flash_erase_command): New declaration. | |
2338 | ||
2132fe85 JB |
2339 | 2017-01-20 Joel Brobecker <[email protected]> |
2340 | ||
2341 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
2342 | HAVE_SYS_PROCFS_H is defined. | |
2343 | ||
d1dff226 AH |
2344 | 2017-01-18 Alan Hayward <[email protected]> |
2345 | ||
2346 | * remote.c (struct cached_reg): Change data into a pointer. | |
2347 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
2348 | (process_stop_reply): Likewise. | |
2349 | (remote_parse_stop_reply): Allocate space for data | |
2350 | ||
9890e433 AH |
2351 | 2017-01-18 Alan Hayward <[email protected]> |
2352 | ||
2353 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
2354 | MAX_REGISTER_SIZE. | |
2355 | (amd64_pseudo_register_read_value): Likewise. | |
2356 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
2357 | (store_register_using_P): Likewise. | |
2358 | * regcache.c (regcache_xfer_part): Likewise. | |
2359 | ||
7a36499a IR |
2360 | 2017-01-16 Ivo Raisr <[email protected]> |
2361 | ||
2362 | Split real and pseudo registers. | |
2363 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
2364 | (sparc32_pseudo_regnum): New enum. | |
2365 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
2366 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
2367 | (SPARC32_CP0_REGISTERS): New macro. | |
2368 | (sparc32_pseudo_register_name): New function. | |
2369 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
2370 | (sparc32_pseudo_register_type): New function. | |
2371 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
2372 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
2373 | pseudo register numbers. | |
2374 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
2375 | (SPARC64_CP0_REGISTERS): New macro. | |
2376 | (sparc64_pseudo_register_name): New function. | |
2377 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
2378 | (sparc64_pseudo_register_type): New function. | |
2379 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
2380 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
2381 | pseudo register numbers. | |
2382 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
2383 | sparc64_store_arguments): Handle pseudo register numbers. | |
2384 | ||
6f8976bf YQ |
2385 | 2017-01-13 Yao Qi <[email protected]> |
2386 | ||
2387 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
2388 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
2389 | output. | |
2390 | (getpkt_or_notif_sane_1): Likewise. | |
2391 | ||
e4241ace YQ |
2392 | 2017-01-13 Yao Qi <[email protected]> |
2393 | ||
2394 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
2395 | of CC. Pass "-x c++-header" instead of "-x c". | |
2396 | ||
3015c064 SM |
2397 | 2017-01-12 Simon Marchi <[email protected]> |
2398 | ||
2399 | * remote.c (remote_can_async_p): Update comment. | |
2400 | ||
fde1b17d SM |
2401 | 2017-01-12 Simon Marchi <[email protected]> |
2402 | ||
2403 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
2404 | ||
ca1ca08b SM |
2405 | 2017-01-12 Simon Marchi <[email protected]> |
2406 | ||
2407 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
2408 | ||
4ad2da73 SM |
2409 | 2017-01-11 Simon Marchi <[email protected]> |
2410 | ||
2411 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
2412 | ||
c8b23b3f TT |
2413 | 2017-01-10 Tom Tromey <[email protected]> |
2414 | ||
2415 | * python/py-type.c (typy_legacy_template_argument): Update. | |
2416 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
2417 | ~demangle_parse_info): Declare new members. | |
2418 | (cp_demangled_name_to_comp): Return unique_ptr. | |
2419 | (cp_demangled_name_parse_free) | |
2420 | (make_cleanup_cp_demangled_name_parse_free) | |
2421 | (cp_new_demangle_parse_info): Remove. | |
2422 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
2423 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
2424 | (inspect_type, cp_canonicalize_string_full) | |
2425 | (cp_canonicalize_string): Update. | |
2426 | (mangled_name_to_comp): Change return type. | |
2427 | (cp_class_name_from_physname, method_name_from_physname) | |
2428 | (cp_func_name, cp_remove_params): Update. | |
2429 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
2430 | cp_new_demangle_parse_info. | |
2431 | (~demangle_parse_info): New destructor, from | |
2432 | cp_demangled_name_parse_free. | |
2433 | (cp_merge_demangle_parse_infos): Update. | |
2434 | (cp_demangled_name_to_comp): Change return type. | |
2435 | ||
1ac32117 TT |
2436 | 2017-01-10 Tom Tromey <[email protected]> |
2437 | ||
2438 | * top.c (prevent_dont_repeat): Change return type. | |
2439 | * python/python.c (execute_gdb_command): Use std::string. | |
2440 | Update. | |
2441 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
2442 | * command.h (prevent_dont_repeat): Change return type. | |
2443 | * breakpoint.c (bpstat_do_actions_1): Update. | |
2444 | ||
0cf08227 TT |
2445 | 2017-01-10 Tom Tromey <[email protected]> |
2446 | ||
2447 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
2448 | free_to_mark. | |
2449 | (scoped_value_mark::free_to_mark): New method. | |
2450 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
2451 | scoped_value_mark. | |
2452 | ||
eb115069 TT |
2453 | 2017-01-10 Tom Tromey <[email protected]> |
2454 | ||
2455 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
2456 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
2457 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
2458 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
2459 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
2460 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
2461 | scoped_value_mark. | |
2462 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
2463 | * value.h (scoped_value_mark): New class. | |
2464 | ||
906768f9 TT |
2465 | 2017-01-10 Tom Tromey <[email protected]> |
2466 | ||
2467 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
2468 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
2469 | * psymtab.c (discard_psymtabs_upto): Remove. | |
2470 | (make_cleanup_discard_psymtabs): Remove. | |
2471 | (struct psymtab_state): Remove. | |
2472 | ||
bef155c3 TT |
2473 | 2017-01-10 Tom Tromey <[email protected]> |
2474 | ||
2475 | * record-full.c (record_full_save_cleanups): Remove. | |
2476 | (record_full_save): Use gdb::unlinker. | |
2477 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
2478 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
2479 | cleanups. | |
2480 | * dwarf2read.c (unlink_if_set): Remove. | |
2481 | (write_psymtabs_to_index): Use gdb::unlinker. | |
2482 | * common/gdb_unlinker.h: New file. | |
2483 | ||
192b62ce TT |
2484 | 2017-01-10 Tom Tromey <[email protected]> |
2485 | ||
2486 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
2487 | * windows-nat.c (windows_make_so): Update. | |
2488 | * utils.h (make_cleanup_bfd_unref): Remove. | |
2489 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
2490 | * symfile.h (symfile_bfd_open) | |
2491 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
2492 | * symfile.c (read_symbols, symbol_file_add) | |
2493 | (separate_debug_file_exists): Update. | |
2494 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
2495 | (generic_load, reread_symbols): Update. | |
2496 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
2497 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
2498 | (spu_symbol_file_add_from_memory): Update. | |
2499 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
2500 | gdb_bfd_ref_ptr. | |
2501 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
2502 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
2503 | gdb_bfd_ref_ptr. | |
2504 | (solib_map_sections, reload_shared_libraries_1): Update. | |
2505 | * solib-svr4.c (enable_break): Update. | |
2506 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
2507 | * solib-frv.c (enable_break2): Update. | |
2508 | * solib-dsbt.c (enable_break): Update. | |
2509 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
2510 | gdb_bfd_ref_ptr. | |
2511 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
2512 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
2513 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
2514 | * record-full.c (record_full_save): Update. | |
2515 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
2516 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
2517 | * minidebug.c (find_separate_debug_file_in_section): Return | |
2518 | gdb_bfd_ref_ptr. | |
2519 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
2520 | gdb_bfd_ref_ptr. | |
2521 | (macho_symfile_read_all_oso): Update. | |
2522 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
2523 | (macho_symfile_read): Update. | |
2524 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
2525 | (jit_bfd_try_read_symtab): Update. | |
2526 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
2527 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
2528 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
2529 | gdb_bfd_ref_ptr. | |
2530 | (gdb_bfd_ref_policy): New struct. | |
2531 | (gdb_bfd_ref_ptr): New typedef. | |
2532 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
2533 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
2534 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
2535 | gdb_bfd_ref_ptr. | |
2536 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
2537 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
2538 | (gcore_command): Update. | |
2539 | * exec.c (exec_file_attach): Update. | |
2540 | * elfread.c (elf_symfile_read): Update. | |
2541 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
2542 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
2543 | (open_and_init_dwo_file): Update. | |
2544 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
2545 | (open_and_init_dwp_file): Update. | |
2546 | * corelow.c (core_open): Update. | |
2547 | * compile/compile-object-load.c (compile_object_load): Update. | |
2548 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
2549 | * coffread.c (coff_symfile_read): Update. | |
2550 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
2551 | gdb_bfd_ref_ptr. Rename. | |
2552 | (dump_bfd_file, restore_command): Update. | |
2553 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
2554 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
2555 | (find_separate_debug_file_by_buildid): Update. | |
2556 | ||
50315b21 TT |
2557 | 2017-01-10 Tom Tromey <[email protected]> |
2558 | ||
2559 | * common/gdb_ref_ptr.h: New file. | |
2560 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
2561 | (gdbpy_ref): Now a typedef. | |
2562 | ||
fc4007c9 TT |
2563 | 2017-01-10 Tom Tromey <[email protected]> |
2564 | ||
2565 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
2566 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
2567 | Remove. | |
2568 | * linespec.c (decode_compound_collector): Add constructor, | |
2569 | destructor. | |
2570 | (lookup_prefix_sym): Remove cleanup. | |
2571 | (symtab_collector): Add constructor, destructor. | |
2572 | (collect_symtabs_from_filename): Remove cleanup. | |
2573 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
2574 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
2575 | Use htab_up. | |
2576 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
2577 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
2578 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
2579 | (write_psymtabs_to_index): Use htab_up. | |
2580 | * dwarf2loc.c (func_verify_no_selftailcall) | |
2581 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
2582 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
2583 | std::vector, gdb::unique_xmalloc_ptr. | |
2584 | (call_sitep): Remove typedef. | |
2585 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
2586 | ||
8dbcee67 TT |
2587 | 2017-01-10 Tom Tromey <[email protected]> |
2588 | ||
2589 | * python/python-internal.h (make_cleanup_py_decref) | |
2590 | (make_cleanup_py_xdecref): Don't declare. | |
2591 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
2592 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
2593 | ||
13df46cc TT |
2594 | 2017-01-10 Tom Tromey <[email protected]> |
2595 | ||
2596 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
2597 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
2598 | ||
06fc9bf7 TT |
2599 | 2017-01-10 Tom Tromey <[email protected]> |
2600 | ||
2601 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
2602 | ||
830a4934 TT |
2603 | 2017-01-10 Tom Tromey <[email protected]> |
2604 | ||
2605 | * python/py-utils.c (unicode_to_encoded_string) | |
2606 | (python_string_to_target_string) | |
2607 | (python_string_to_target_python_string) | |
2608 | (python_string_to_host_string, gdbpy_obj_to_string) | |
2609 | (get_addr_from_python): Use gdbpy_ref. | |
2610 | ||
4586d543 TT |
2611 | 2017-01-10 Tom Tromey <[email protected]> |
2612 | ||
2613 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
2614 | gdbpy_ref. | |
2615 | ||
59876f8f TT |
2616 | 2017-01-10 Tom Tromey <[email protected]> |
2617 | ||
2618 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
2619 | (gdbpy_run_events, gdbpy_start_type_printers) | |
2620 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
2621 | ||
97d83487 TT |
2622 | 2017-01-10 Tom Tromey <[email protected]> |
2623 | ||
2624 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
2625 | gdbpy_ref. | |
2626 | ||
9205649a TT |
2627 | 2017-01-10 Tom Tromey <[email protected]> |
2628 | ||
2629 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
2630 | Use gdbpy_ref. | |
2631 | ||
74c49d45 TT |
2632 | 2017-01-10 Tom Tromey <[email protected]> |
2633 | ||
2634 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
2635 | ||
16361ffb TT |
2636 | 2017-01-10 Tom Tromey <[email protected]> |
2637 | ||
2638 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
2639 | gdbpy_ref. | |
2640 | ||
905f2cca TT |
2641 | 2017-01-10 Tom Tromey <[email protected]> |
2642 | ||
2643 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
2644 | extra incref. | |
2645 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
2646 | Use gdbpy_ref. | |
2647 | ||
64081434 TT |
2648 | 2017-01-10 Tom Tromey <[email protected]> |
2649 | ||
2650 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
2651 | gdbpy_ref. | |
2652 | ||
59e9e831 TT |
2653 | 2017-01-10 Tom Tromey <[email protected]> |
2654 | ||
2655 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
2656 | decref results of PyArg_ParseTupleAndKeywords. | |
2657 | ||
9de10f6d TT |
2658 | 2017-01-10 Tom Tromey <[email protected]> |
2659 | ||
2660 | * python/python.c (python_run_simple_file): Use | |
2661 | unique_xmalloc_ptr, gdbpy_ref. | |
2662 | ||
2bd5759d TT |
2663 | 2017-01-10 Tom Tromey <[email protected]> |
2664 | ||
2665 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
2666 | (print_string_repr, print_children): Use gdbpy_ref. | |
2667 | (dummy_python_frame): New class. | |
2668 | (dummy_python_frame::dummy_python_frame): Rename from | |
2669 | push_dummy_python_frame. | |
2670 | (py_restore_tstate): Remove. | |
2671 | ||
3b4e0e01 TT |
2672 | 2017-01-10 Tom Tromey <[email protected]> |
2673 | ||
2674 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
2675 | ||
17a22718 TT |
2676 | 2017-01-10 Tom Tromey <[email protected]> |
2677 | ||
2678 | * python/python.c (ensure_python_env, restore_python_env): | |
2679 | Remove. | |
2680 | * python/python-internal.h (ensure_python_env): Don't declare. | |
2681 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
2682 | * varobj.c (varobj_ensure_python_env): Remove. | |
2683 | ||
68cdc557 TT |
2684 | 2017-01-10 Tom Tromey <[email protected]> |
2685 | ||
2686 | * varobj.c (varobj_value_get_print_value): Use | |
2687 | gdbpy_enter_varobj. | |
2688 | ||
1eba6383 TT |
2689 | 2017-01-10 Tom Tromey <[email protected]> |
2690 | ||
2691 | * python/py-prettyprint.c (print_string_repr, print_children): | |
2692 | Update. | |
2693 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
2694 | of "encoding". | |
2695 | * varobj.c (varobj_value_get_print_value): Update. | |
2696 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
2697 | ||
bde7b3e3 TT |
2698 | 2017-01-10 Tom Tromey <[email protected]> |
2699 | ||
2700 | * varobj.c (varobj_get_display_hint) | |
2701 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
2702 | (varobj_set_visualizer, free_variable): Use | |
2703 | gdbpy_enter_varobj. | |
2704 | ||
a7785f8c TT |
2705 | 2017-01-10 Tom Tromey <[email protected]> |
2706 | ||
2707 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
2708 | (do_finish_initialization): New function. Use gdbpy_ref. | |
2709 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
2710 | do_finish_initialization. | |
2711 | ||
2865bfce TT |
2712 | 2017-01-10 Tom Tromey <[email protected]> |
2713 | ||
2714 | * python/py-param.c (get_set_value, get_show_value): Use | |
2715 | gdbpy_enter, gdbpy_ref. | |
2716 | ||
0e9dcc75 TT |
2717 | 2017-01-10 Tom Tromey <[email protected]> |
2718 | ||
2719 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
2720 | ||
12a5cedd TT |
2721 | 2017-01-10 Tom Tromey <[email protected]> |
2722 | ||
2723 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
2724 | ||
788f2586 TT |
2725 | 2017-01-10 Tom Tromey <[email protected]> |
2726 | ||
2727 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
2728 | Use gdbpy_enter_varobj. | |
2729 | ||
6cd67bea TT |
2730 | 2017-01-10 Tom Tromey <[email protected]> |
2731 | ||
2732 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
2733 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
2734 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
2735 | gdbpy_enter_varobj. | |
2736 | ||
14b122bf TT |
2737 | 2017-01-10 Tom Tromey <[email protected]> |
2738 | ||
2739 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
2740 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
2741 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
2742 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
2743 | unique_xmalloc_ptr. | |
2744 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
2745 | ||
bf1ca3b9 TT |
2746 | 2017-01-10 Tom Tromey <[email protected]> |
2747 | ||
2748 | * python/py-xmethods.c (invoke_match_method): Use | |
2749 | gdbpy_ref. | |
2750 | ||
572a5524 TT |
2751 | 2017-01-10 Tom Tromey <[email protected]> |
2752 | ||
2753 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
2754 | gdbpy_enter, gdbpy_ref. | |
2755 | ||
396a78b6 TT |
2756 | 2017-01-10 Tom Tromey <[email protected]> |
2757 | ||
2758 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
2759 | ||
a88b13c7 TT |
2760 | 2017-01-10 Tom Tromey <[email protected]> |
2761 | ||
2762 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
2763 | gdbpy_ref. | |
2764 | ||
e9f0c363 TT |
2765 | 2017-01-10 Tom Tromey <[email protected]> |
2766 | ||
2767 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
2768 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
2769 | ||
6349f452 TT |
2770 | 2017-01-10 Tom Tromey <[email protected]> |
2771 | ||
2772 | * utils.h (htab_deleter): New struct. | |
2773 | (htab_up): New typedef. | |
2774 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
2775 | gdbpy_enter, gdbpy_ref, htab_up. | |
2776 | ||
c0171de6 TT |
2777 | 2017-01-10 Tom Tromey <[email protected]> |
2778 | ||
2779 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
2780 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
2781 | ||
f18e226f TT |
2782 | 2017-01-10 Tom Tromey <[email protected]> |
2783 | ||
2784 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
2785 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
2786 | ||
c57af3f1 TT |
2787 | 2017-01-10 Tom Tromey <[email protected]> |
2788 | ||
2789 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
2790 | ||
60e600ec TT |
2791 | 2017-01-10 Tom Tromey <[email protected]> |
2792 | ||
2793 | * python/python.c (gdbpy_eval_from_control_command) | |
2794 | (gdbpy_source_script, gdbpy_run_events) | |
2795 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
2796 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
2797 | gdbpy_enter. | |
2798 | ||
bf7da5b0 TT |
2799 | 2017-01-10 Tom Tromey <[email protected]> |
2800 | ||
2801 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
2802 | ||
2d38bced TT |
2803 | 2017-01-10 Tom Tromey <[email protected]> |
2804 | ||
2805 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
2806 | ||
07bc7329 TT |
2807 | 2017-01-10 Tom Tromey <[email protected]> |
2808 | ||
2809 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
2810 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
2811 | (python_on_memory_change, python_on_register_change) | |
2812 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
2813 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
2814 | ||
6e7c365e TT |
2815 | 2017-01-10 Tom Tromey <[email protected]> |
2816 | ||
2817 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
2818 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
2819 | ||
6ba0cd40 TT |
2820 | 2017-01-10 Tom Tromey <[email protected]> |
2821 | ||
2822 | * python/py-cmd.c (cmdpy_destroyer) | |
2823 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
2824 | gdbpy_enter. | |
2825 | ||
de2dc875 TT |
2826 | 2017-01-10 Tom Tromey <[email protected]> |
2827 | ||
2828 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
2829 | gdbpy_enter. | |
2830 | (gdbpy_breakpoint_has_cond): Likewise. | |
2831 | ||
4ecee2c4 TT |
2832 | 2017-01-10 Tom Tromey <[email protected]> |
2833 | ||
2834 | * python/python.c (gdbpy_enter): New constructor. | |
2835 | (~gdbpy_enter): New destructor. | |
2836 | (restore_python_env, ensure_python_env): Rewrite. | |
2837 | * python/python-internal.h (gdbpy_enter): New class. | |
2838 | ||
37fce74f TT |
2839 | 2017-01-10 Tom Tromey <[email protected]> |
2840 | ||
2841 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
2842 | ||
53a0cca3 TT |
2843 | 2017-01-10 Tom Tromey <[email protected]> |
2844 | ||
2845 | * python/py-value.c (value_has_field, get_field_flag) | |
2846 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
2847 | gdbpy_ref. | |
2848 | ||
ff3724f5 TT |
2849 | 2017-01-10 Tom Tromey <[email protected]> |
2850 | ||
2851 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
2852 | gdbpy_ref. | |
2853 | ||
0700aea5 TT |
2854 | 2017-01-10 Tom Tromey <[email protected]> |
2855 | ||
2856 | * python/py-prettyprint.c (search_pp_list) | |
2857 | (find_pretty_printer_from_objfiles) | |
2858 | (find_pretty_printer_from_progspace) | |
2859 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
2860 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
2861 | gdbpy_ref. | |
2862 | ||
1bb44c9f TT |
2863 | 2017-01-10 Tom Tromey <[email protected]> |
2864 | ||
2865 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
2866 | ||
87ce03fd TT |
2867 | 2017-01-10 Tom Tromey <[email protected]> |
2868 | ||
2869 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
2870 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
2871 | ||
ee0a3fb8 TT |
2872 | 2017-01-10 Tom Tromey <[email protected]> |
2873 | ||
2874 | * python/py-framefilter.c (extract_sym, extract_value) | |
2875 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
2876 | gdbpy_ref. | |
2877 | ||
bf2a52fa TT |
2878 | 2017-01-10 Tom Tromey <[email protected]> |
2879 | ||
2880 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
2881 | ||
f59fe7f8 TT |
2882 | 2017-01-10 Tom Tromey <[email protected]> |
2883 | ||
2884 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
2885 | ||
80bd970a TT |
2886 | 2017-01-10 Tom Tromey <[email protected]> |
2887 | ||
2888 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
2889 | gdbpy_ref. | |
2890 | ||
d1b3de2e TT |
2891 | 2017-01-10 Tom Tromey <[email protected]> |
2892 | ||
2893 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
2894 | ||
3bb43384 TT |
2895 | 2017-01-10 Tom Tromey <[email protected]> |
2896 | ||
2897 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
2898 | (typy_range): Use gdbpy_ref. | |
2899 | ||
abf5651e TT |
2900 | 2017-01-10 Tom Tromey <[email protected]> |
2901 | ||
2902 | * python/py-threadevent.c (create_thread_event_object): Use | |
2903 | gdbpy_ref. | |
2904 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
2905 | (emit_stop_event): Use gdbpy_ref. | |
2906 | * python/py-signalevent.c (create_signal_event_object): Use | |
2907 | gdbpy_ref. | |
2908 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
2909 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
2910 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
2911 | * python/py-infevents.c (create_inferior_call_event_object) | |
2912 | (create_register_changed_event_object) | |
2913 | (create_memory_changed_event_object, emit_inferior_call_event) | |
2914 | (emit_memory_changed_event, emit_register_changed_event): Use | |
2915 | gdbpy_ref. | |
2916 | * python/py-exitedevent.c (create_exited_event_object) | |
2917 | (emit_exited_event): Use gdbpy_ref. | |
2918 | * python/py-event.h (evpy_emit_event): Remove | |
2919 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
2920 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
2921 | * python/py-continueevent.c (emit_continue_event): Use | |
2922 | gdbpy_ref. | |
2923 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
2924 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
2925 | gdbpy_ref. | |
2926 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
2927 | gdbpy_ref. | |
2928 | ||
a68ff33e TT |
2929 | 2017-01-10 Tom Tromey <[email protected]> |
2930 | ||
2931 | * python/py-ref.h: New file. | |
2932 | ||
7becfd03 SM |
2933 | 2017-01-10 Simon Marchi <[email protected]> |
2934 | ||
2935 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
2936 | void. | |
2937 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
2938 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
2939 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
2940 | * ui-out.c (ui_out::redirect): Likewise. | |
2941 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
2942 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
2943 | ui_out::redirect. | |
2944 | (handle_redirections): Likewise. | |
2945 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
2946 | * top.c (execute_command_to_string): Likewise. | |
2947 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
2948 | ||
df294654 SM |
2949 | 2017-01-10 Simon Marchi <[email protected]> |
2950 | ||
2951 | * stack.c (_initialize_stack): Update "frame" command help message. | |
2952 | ||
f5e6296e IB |
2953 | 2017-01-08 Iain Buclaw <[email protected]> |
2954 | ||
2955 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
2956 | ||
0e2d6fa6 YQ |
2957 | 2017-01-06 Yao Qi <[email protected]> |
2958 | ||
2959 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
2960 | ||
44d6d3f9 YQ |
2961 | 2017-01-06 Yao Qi <[email protected]> |
2962 | ||
2963 | * ser-base.h: Include serial.h. | |
2964 | ||
656731fe YQ |
2965 | 2017-01-06 Yao Qi <[email protected]> |
2966 | ||
2967 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
2968 | ||
1ca8f924 YQ |
2969 | 2017-01-06 Yao Qi <[email protected]> |
2970 | ||
2971 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
2972 | ||
bc3008c4 YQ |
2973 | 2017-01-06 Yao Qi <[email protected]> |
2974 | ||
2975 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
2976 | ||
66c80d03 YQ |
2977 | 2017-01-06 Yao Qi <[email protected]> |
2978 | ||
2979 | * mi/mi-parse.h: Include mi-cmds.h. | |
2980 | ||
051d2dda YQ |
2981 | 2017-01-06 Yao Qi <[email protected]> |
2982 | ||
2983 | * inf-loop.c: Don't include "target.h". | |
2984 | * inf-loop.h: Include it here. | |
2985 | ||
8018d34f YQ |
2986 | 2017-01-06 Yao Qi <[email protected]> |
2987 | ||
2988 | * dfp.h: Include "dboulest.h" and "expression.h". | |
2989 | ||
c0b8369c YQ |
2990 | 2017-01-06 Yao Qi <[email protected]> |
2991 | ||
2992 | * ax-gdb.h: Include "ax.h". | |
2993 | ||
ad5cba2a YQ |
2994 | 2017-01-06 Yao Qi <[email protected]> |
2995 | ||
2996 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
2997 | with nat/gdb_ptrace.h. | |
2998 | ||
1c33cd7f YQ |
2999 | 2017-01-05 Yao Qi <[email protected]> |
3000 | ||
3001 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
3002 | new line. | |
3003 | (mips64_fbsd_sigframe_init): Likewise. | |
3004 | ||
c988ac1d JB |
3005 | 2017-01-04 John Baldwin <[email protected]> |
3006 | ||
3007 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
3008 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
3009 | ||
b268007c JB |
3010 | 2017-01-04 John Baldwin <[email protected]> |
3011 | ||
3012 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
3013 | * NEWS: Mention new FreeBSD/mips native configuration. | |
3014 | * config/mips/fbsd.mh: New file. | |
3015 | * configure.host: Add mips*-*-freebsd*. | |
3016 | * mips-fbsd-nat.c: New file. | |
3017 | ||
387360da JB |
3018 | 2017-01-04 John Baldwin <[email protected]> |
3019 | ||
3020 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
3021 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
3022 | * NEWS: Mention new FreeBSD/mips target. | |
3023 | * configure.tgt: Add mips*-*-freebsd*. | |
3024 | * mips-fbsd-tdep.c: New file. | |
3025 | * mips-fbsd-tdep.h: New file. | |
3026 | ||
2aaaf250 YQ |
3027 | 2017-01-04 Yao Qi <[email protected]> |
3028 | ||
3029 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
3030 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
3031 | ||
61baf725 JB |
3032 | 2017-01-01 Joel Brobecker <[email protected]> |
3033 | ||
6dbb839a | 3034 | Update copyright year range in all GDB files. |
61baf725 | 3035 | |
c113e7ff | 3036 | 2017-01-01 Joel Brobecker <[email protected]> |
ce0db137 | 3037 | |
c113e7ff | 3038 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 3039 | |
c113e7ff | 3040 | For older changes see ChangeLog-2016. |
c906108c SS |
3041 | \f |
3042 | Local Variables: | |
3043 | mode: change-log | |
3044 | left-margin: 8 | |
3045 | fill-column: 74 | |
3046 | version-control: never | |
57da7796 | 3047 | coding: utf-8 |
c906108c | 3048 | End: |