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