Commit | Line | Data |
---|---|---|
bf223d3e PA |
1 | 2017-08-21 Pedro Alves <palves@redhat.com> |
2 | ||
3 | PR gdb/19487 | |
4 | * c-exp.y (variable production): Handle function aliases. | |
5 | * minsyms.c (msymbol_is_text): New function. | |
6 | * minsyms.h (msymbol_is_text): Declare. | |
7 | * symtab.c (find_function_alias_target): New function. | |
8 | * symtab.h (find_function_alias_target): Declare. | |
9 | ||
c973d0aa PA |
10 | 2017-08-21 Pedro Alves <palves@redhat.com> |
11 | ||
12 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
13 | typedefs. | |
14 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
15 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
16 | typedefs here. | |
17 | * valops.c (value_cast): Save "to" type before resolving | |
18 | stubs/typedefs. Use that type as resulting value's type. | |
19 | ||
2989a365 TT |
20 | 2017-08-18 Tom Tromey <tom@tromey.com> |
21 | Pedro Alves <palves@redhat.com> | |
22 | ||
23 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
24 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
25 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
26 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
27 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
28 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
29 | (linux_get_siginfo_data): Add "thread" argument. Use | |
30 | scoped_restore. | |
31 | * linux-nat.c (linux_child_follow_fork) | |
32 | (check_stopped_by_watchpoint): Use scoped_restore. | |
33 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
34 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
35 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
36 | * btrace.c (btrace_fetch): Use scoped_restore. | |
37 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
38 | (bsd_uthread_store_registers): Use scoped_restore. | |
39 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
40 | scoped_restore. | |
41 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
42 | (aix_thread_xfer_partial): Use scoped_restore. | |
43 | * inferior.h (save_inferior_ptid): Remove. | |
44 | ||
e60eb288 YQ |
45 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
46 | ||
47 | PR tdep/21818 | |
48 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
49 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
50 | ||
6d580b63 YQ |
51 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
52 | ||
53 | * NEWS: Mention GDBserver's new option "--selftest". | |
54 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
55 | * selftest.c: Move it to common/selftest.c. | |
56 | * selftest.h: Move it to common/selftest.h. | |
57 | * selftest-arch.c (reset): New function. | |
58 | (tests_with_arch): Call reset. | |
59 | ||
86dcbf50 YQ |
60 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
61 | ||
62 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
63 | instead of exception_fprintf and printf_filtered. | |
64 | ||
7649770c YQ |
65 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
66 | ||
67 | * selftest.c (register_self_test): Rename it to | |
68 | selftests::register_test. | |
69 | (run_self_tests): selftest::run_tests. | |
70 | * selftest.h: Update declarations. | |
71 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
72 | selftests::register_test_foreach_arch. | |
73 | * selftest-arch.h: Update declaration. | |
74 | * aarch64-tdep.c: Update. | |
75 | * arm-tdep.c: Likewise. | |
76 | * disasm-selftests.c: Likewise. | |
77 | * dwarf2loc.c: Likewise. | |
78 | * dwarf2-frame.c: Likewise. | |
79 | * findvar.c: Likewise. | |
80 | * gdbarch-selftests.c: Likewise. | |
81 | * maint.c (maintenance_selftest): Likewise. | |
82 | * regcache.c: Likewise. | |
83 | * rust-exp.y: Likewise. | |
84 | * selftest-arch.c: Likewise. | |
85 | * unittests/environ-selftests.c: Likewise. | |
86 | * unittests/function-view-selftests.c: Likewise. | |
87 | * unittests/offset-type-selftests.c: Likewise. | |
88 | * unittests/optional-selftests.c: Likewise. | |
89 | * unittests/scoped_restore-selftests.c: Likewise. | |
90 | * utils-selftests.c: Likewise. | |
91 | ||
b0cba12e PA |
92 | 2017-08-17 Pedro Alves <palves@redhat.com> |
93 | ||
94 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
95 | local. | |
96 | ||
4c8aa72d PA |
97 | 2017-08-17 Pedro Alves <palves@redhat.com> |
98 | ||
99 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
100 | field. | |
101 | (reset_die_in_process): Delete, replaced by ... | |
102 | (process_die_scope): ... this new class. Make it responsible for | |
103 | freeing cu->line_header too. | |
104 | (process_die): Use process_die_scope. | |
105 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
106 | cu->line_header_die_owner. Don't release the line header if it's | |
107 | owned by the CU. | |
108 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
109 | Don't release the line header here. | |
110 | ||
ba713918 AL |
111 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
112 | ||
113 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
114 | ||
44d0fb3a RK |
115 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
116 | ||
117 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
118 | Single-Key mode | |
119 | ||
a5afdb16 RK |
120 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
121 | ||
122 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
123 | mode command list. | |
124 | ||
47613aeb SH |
125 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
126 | ||
127 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
128 | ||
9c3cc999 SH |
129 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
130 | ||
131 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
132 | ||
206726fb SDJ |
133 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
134 | ||
135 | PR gdb/21954 | |
136 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
137 | the environment instead of resetting it. | |
138 | ||
0335ac6d JB |
139 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
140 | ||
141 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
142 | platforms. | |
143 | ||
d3abe1c8 TT |
144 | 2017-08-14 Tom Tromey <tom@tromey.com> |
145 | ||
146 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
147 | (print_binary_chars): Likewise. | |
148 | (BITS_IN_BYTES): Remove. | |
149 | ||
d6382fff TT |
150 | 2017-08-14 Tom Tromey <tom@tromey.com> |
151 | ||
152 | PR gdb/21675 | |
153 | * valprint.c (LOW_ZERO): Change value to 034. | |
154 | (print_octal_chars): Add static_asserts for octal constants. | |
155 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
156 | ||
f978cb06 TT |
157 | 2017-08-11 Tom Tromey <tom@tromey.com> |
158 | ||
159 | * symfile.c (add_symbol_file_command): Use std::vector. | |
160 | ||
2f5404b3 TT |
161 | 2017-08-14 Tom Tromey <tom@tromey.com> |
162 | ||
163 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
164 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
165 | std::move. | |
166 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
167 | ||
de7985c3 PA |
168 | 2017-08-11 Pedro Alves <palves@redhat.com> |
169 | ||
170 | * infrun.c (process_event_stop_test): Adjust | |
171 | function_name_is_marked_for_skip call. | |
172 | * skip.c: Include <list>. | |
173 | (skiplist_entry): Make it a class with private fields, and | |
174 | getters/setters. | |
175 | (skiplist_entry_chain): Delete. | |
176 | (skiplist_entries): New. | |
177 | (skiplist_entry_count): Delete. | |
178 | (highest_skiplist_entry_num): New. | |
179 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
180 | (add_skiplist_entry): Delete. | |
181 | (skiplist_entry::skiplist_entry): New. | |
182 | (skiplist_entry::add_entry): New. | |
183 | (skip_file_command, skip_function): Adjust. | |
184 | (compile_skip_regexp): Delete. | |
185 | (skip_command): Don't compile regexp here. Adjust to use | |
186 | skiplist_entry::add_entry. | |
187 | (skip_info): Adjust to use range-for and getters. | |
188 | (skip_enable_command, skip_disable_command): Adjust to use | |
189 | range-for and setters. | |
190 | (skip_delete_command): Adjust to use std::list. | |
191 | (add_skiplist_entry): Delete. | |
192 | (skip_file_p): Delete, refactored as ... | |
193 | (skiplist_entry::do_skip_file_p): ... this new method. | |
194 | (skip_gfile_p): Delete, refactored as ... | |
195 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
196 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
197 | (skiplist_entry::skip_function_p): ... this new method. | |
198 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
199 | the function sal by const reference. Adjust to use range-for and | |
200 | skiplist_entry methods. | |
201 | (_initialize_step_skip): Remove references to | |
202 | skiplist_entry_chain, skiplist_entry_count. | |
203 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
204 | takes the function sal by const reference. | |
205 | ||
be7d3cd5 YQ |
206 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
207 | ||
208 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
209 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
210 | (dwarf2_frame_cache): | |
211 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
212 | RETURN_MASK_ALL and set *this_case to NULL. | |
213 | * frame-unwind.h: Update comments. | |
214 | ||
1c90d9f0 YQ |
215 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
216 | ||
217 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
218 | (dwarf2_frame_state_copy_regs): Remove. | |
219 | (dwarf2_frame_state_free_regs): Remove. | |
220 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
221 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
222 | dwarf2_frame_state_alloc_regs. | |
223 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
224 | constructor. Call std::move. | |
225 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
226 | (dwarf2_frame_cache): Likewise. | |
227 | ||
228 | [GDB_SELF_TEST]: Include selftest.h and | |
229 | selftest-arch.h. | |
230 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
231 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
232 | execute_cfa_program_test. | |
233 | ||
234 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
235 | copy ctor, assignment operator, move assignment. | |
236 | <alloc_regs>: New method. | |
237 | <swap>: New method. | |
238 | (struct dwarf2_frame_state): Delete dtor. | |
239 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
240 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
241 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
242 | ||
afe37d6b YQ |
243 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
244 | ||
245 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
246 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
247 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
248 | (dwarf2_fetch_cfa_info): Update. | |
249 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
250 | rather than a pointer. Update code. | |
251 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
252 | dtor. | |
253 | <data_align, code_align, retaddr_column>: Change them to const. | |
254 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
255 | to bool. | |
256 | ||
b348037f YQ |
257 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
258 | ||
259 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
260 | <loc.exp>: New field. | |
261 | * dwarf2-frame.c (execute_cfa_program): Update. | |
262 | (dwarf2_frame_prev_register): Update. | |
263 | ||
e7c9de26 PA |
264 | 2017-08-10 Pedro Alves <palves@redhat.com> |
265 | ||
266 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
267 | ||
e8c6b620 JB |
268 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
269 | ||
270 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
271 | (fbsd_pending_children): Use std::list. | |
272 | (fbsd_remember_child): Likewise. | |
273 | (fbsd_is_child_pending): Likewise. | |
274 | (fbsd_pending_vfork_done): Use std::forward_list. | |
275 | (fbsd_add_vfork_done): Likewise. | |
276 | (fbsd_is_vfork_done_pending): Likewise. | |
277 | (fbsd_next_vfork_done): Likewise. | |
278 | ||
e4a26669 JB |
279 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
280 | ||
281 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
282 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
283 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
284 | for `mapfilename'. | |
285 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
286 | (fbsd_add_threads): Likewise. | |
287 | ||
142311d3 JB |
288 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
289 | ||
290 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
291 | "filestuff.h". | |
292 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
293 | ||
42fa2e0e TT |
294 | 2017-08-09 Tom Tromey <tom@tromey.com> |
295 | ||
296 | * skip.c (skiplist_entry): New constructor. | |
297 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
298 | (skiplist_entry::file_is_glob): Now bool. | |
299 | (skiplist_entry::file, skiplist_entry::function): Now | |
300 | std::string. | |
301 | (make_skip_entry): Return a unique_ptr. Use new. | |
302 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
303 | (make_free_skiplist_entry_cleanup): Remove. | |
304 | (skip_command, skip_disable_command, add_skiplist_entry) | |
305 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
306 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
307 | (function_name_is_marked_for_skip): Update. | |
308 | (skip_delete_command): Update. Use delete. | |
309 | ||
cd3af38d JW |
310 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
311 | ||
312 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
313 | (aarch64_linux_core_read_description): New function. | |
314 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
315 | ||
29592bde PA |
316 | 2017-08-09 Pedro Alves <palves@redhat.com> |
317 | ||
318 | * cp-name-parser.y (cp_comp_to_string): Return a | |
319 | gdb::unique_xmalloc_ptr<char>. | |
320 | * cp-support.c (replace_typedefs_qualified_name) | |
321 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
322 | (cp_canonicalize_string_full): Use op= instead of explicit | |
323 | convertion. | |
324 | (cp_class_name_from_physname, method_name_from_physname) | |
325 | (cp_func_name, cp_remove_params): Adjust to use | |
326 | gdb::unique_xmalloc_ptr<char>. | |
327 | * cp-support.h (cp_comp_to_string): Return a | |
328 | gdb::unique_xmalloc_ptr<char>. | |
329 | * python/py-type.c (typy_lookup_type): Adjust to use | |
330 | gdb::unique_xmalloc_ptr<char>. | |
331 | ||
b3340438 L |
332 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
333 | ||
334 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
335 | ||
e88e8651 YQ |
336 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
337 | Yao Qi <yao.qi@linaro.org> | |
338 | ||
339 | * cp-support.c (cp_canonicalize_string_full): Use | |
340 | gdb::unique_xmalloc_ptr<char>. | |
341 | (cp_canonicalize_string): Likewise. | |
342 | ||
f5a29eb0 YQ |
343 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
344 | ||
345 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
346 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
347 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
348 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
349 | * regformats/i386/amd64-avx.dat: Remove. | |
350 | * regformats/i386/amd64-mpx.dat: Remove. | |
351 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
352 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
353 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
354 | * regformats/i386/i386-mmx.dat: Remove. | |
355 | * regformats/i386/i386-mpx.dat: Remove. | |
356 | ||
57757c2f YQ |
357 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
358 | ||
359 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
360 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
361 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
362 | functions. | |
363 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
364 | and i386/x32-avx-avx512. | |
365 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
366 | and i386/x32.xml. | |
367 | * features/i386/x32-avx-avx512.c: Removed. | |
368 | * features/i386/x32-avx-avx512.xml: Removed. | |
369 | * features/i386/x32-avx.c: Removed. | |
370 | * features/i386/x32-avx.xml: Removed. | |
371 | * features/i386/x32.c: Removed. | |
372 | * features/i386/x32.xml: Removed. | |
373 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
374 | * regformats/i386/x32-avx.dat: Removed. | |
375 | * regformats/i386/x32.dat: Removed. | |
376 | ||
ba7b109b MR |
377 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
378 | ||
379 | PR breakpoints/21886 | |
380 | * mem-break.c (default_memory_insert_breakpoint): Use | |
381 | `->placed_address' rather than `->reqstd_address' for the | |
382 | breakpoint location. | |
383 | ||
e347efc3 MR |
384 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
385 | ||
386 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
387 | assertions. | |
388 | ||
0dba2a6c MR |
389 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
390 | ||
391 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
392 | a union of `tdep_info', `tdesc_data' and `id'. | |
393 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
394 | rather than `info.tdep_info'. | |
395 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
396 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
397 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
398 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
399 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
400 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
401 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
402 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
403 | `info.tdep_info'. | |
404 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
405 | `info.tdep_info'. | |
406 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
407 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
408 | `info.tdep_info'. | |
409 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
410 | * gdbarch.h: Regenerate. | |
411 | ||
16eb6b2d LS |
412 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
413 | ||
7b005726 | 414 | PR symtab/20899 |
16eb6b2d LS |
415 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
416 | ||
74cbb09e SM |
417 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
418 | ||
419 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
420 | (gdbsim_open): Rename gdb_argv args object to argv. | |
421 | ||
ee0c3293 TT |
422 | 2017-08-05 Tom Tromey <tom@tromey.com> |
423 | ||
424 | * compile/compile-object-load.c (compile_object_load): Use | |
425 | gdb::unique_xmalloc_ptr. | |
426 | * cli/cli-dump.c (scan_filename): Rename from | |
427 | scan_filename_with_cleanup. Change return type. | |
428 | (scan_expression): Rename from scan_expression_with_cleanup. | |
429 | Change return type. | |
430 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
431 | Use gdb::unique_xmalloc_ptr. Update. | |
432 | * cli/cli-cmds.c (find_and_open_script): Use | |
433 | gdb::unique_xmalloc_ptr. | |
434 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
435 | * symmisc.c (maintenance_print_symbols) | |
436 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
437 | * symfile.c (symfile_bfd_open, generic_load) | |
438 | (add_symbol_file_command, remove_symbol_file_command): Use | |
439 | gdb::unique_xmalloc_ptr. | |
440 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
441 | * psymtab.c (maintenance_print_psymbols): Use | |
442 | gdb::unique_xmalloc_ptr. | |
443 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
444 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
445 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
446 | (reload_shared_libraries_1): Likewise. | |
447 | ||
3232fabd TT |
448 | 2017-08-05 Tom Tromey <tom@tromey.com> |
449 | ||
450 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
451 | (rust_op_vector, rust_set_vector): New typedefs. | |
452 | (current_parser): New global. | |
453 | (work_obstack): Change to pointer type. Update all users. | |
454 | (rust_ast, pstate): Remove globals. | |
455 | (struct rust_parser): New. | |
456 | (%union) <params, field_inits>: Change type. | |
457 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
458 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
459 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
460 | (convert_params_to_types, convert_params_to_expression): Change | |
461 | type of "params". | |
462 | (ast_string): Change type of "fields". | |
463 | (rust_parse): Make a rust_parser. Remove cleanups. | |
464 | (rust_lex_tests): Make and install an auto_obstack. | |
465 | ||
f02fd774 YQ |
466 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
467 | ||
468 | * configure.srv (ipa_x32_linux_regobj): New. | |
469 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
470 | instead of X86_TDESC_AVX512. | |
471 | (initialize_low_tracepoint): Call | |
472 | init_registers_x32_avx_avx512_linux. | |
473 | ||
91975afd YQ |
474 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
475 | ||
476 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
477 | ||
2331fa3a RK |
478 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
479 | ||
480 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
481 | ||
744e4fe1 TT |
482 | 2017-08-03 Tom Tromey <tom@tromey.com> |
483 | ||
484 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
485 | Remove. | |
486 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
487 | ||
1c034b67 TT |
488 | 2017-08-03 Tom Tromey <tom@tromey.com> |
489 | ||
490 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
491 | ||
773a1edc TT |
492 | 2017-08-03 Tom Tromey <tom@tromey.com> |
493 | ||
494 | * utils.h (struct gdb_argv_deleter): New. | |
495 | (gdb_argv): New class. | |
496 | * utils.c (gdb_argv::reset): New method. | |
497 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
498 | * tracefile.c (tsave_command): Use gdb_argv. | |
499 | * top.c (new_ui_command): Use gdb_argv. | |
500 | * symmisc.c (maintenance_print_symbols) | |
501 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
502 | * symfile.c (symbol_file_command, generic_load) | |
503 | (remove_symbol_file_command): Use gdb_argv. | |
504 | * stack.c (backtrace_command): Use gdb_argv. | |
505 | * source.c (add_path, show_substitute_path_command) | |
506 | (unset_substitute_path_command, set_substitute_path_command): | |
507 | Use gdb_argv. | |
508 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
509 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
510 | * remote.c (extended_remote_run, remote_put_command) | |
511 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
512 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
513 | (gdbsim_open): Use gdb_argv. | |
514 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
515 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
516 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
517 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
518 | * infrun.c (handle_command): Use gdb_argv. | |
519 | * inferior.c (add_inferior_command, clone_inferior_command): | |
520 | Use gdb_argv. | |
521 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
522 | * exec.c (exec_file_command): Use gdb_argv. | |
523 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
524 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
525 | ||
0d50bde3 TT |
526 | 2017-08-03 Tom Tromey <tom@tromey.com> |
527 | ||
528 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
529 | ||
7f968c89 TT |
530 | 2017-08-03 Tom Tromey <tom@tromey.com> |
531 | ||
532 | * python/python.c (compute_python_string): Return std::string. | |
533 | (gdbpy_eval_from_control_command): Update. | |
534 | (do_start_initialization): Use std::string. | |
535 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
536 | xstrprintf. | |
537 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
538 | xstrprintf. | |
539 | ||
3c9ebddd TT |
540 | 2017-08-03 Tom Tromey <tom@tromey.com> |
541 | ||
542 | * top.h (do_restore_instream_cleanup): Remove. | |
543 | * top.c (do_restore_instream_cleanup): Remove. | |
544 | (read_command_file): Use scoped_restore. | |
545 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
546 | ||
b51b225e TT |
547 | 2017-08-03 Tom Tromey <tom@tromey.com> |
548 | ||
549 | * cli/cli-script.c (execute_user_command) | |
550 | (execute_control_command): Use scoped_restore. | |
551 | ||
ac991630 TT |
552 | 2017-08-03 Tom Tromey <tom@tromey.com> |
553 | ||
554 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
555 | (execute_user_command): Remove user_call_depth; use | |
556 | user_args_stack's size instead. | |
557 | ||
898e0c8e TT |
558 | 2017-08-03 Tom Tromey <tom@tromey.com> |
559 | ||
560 | * top.h (in_user_command): Remove. | |
561 | * top.c (in_user_command): Remove. | |
562 | * cli/cli-script.c (do_restore_user_call_depth) | |
563 | (execute_user_command): Update. | |
564 | ||
26fcd5d7 TT |
565 | 2017-08-03 Tom Tromey <tom@tromey.com> |
566 | ||
567 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
568 | * valarith.c (value_concat): Use std::vector. | |
569 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
570 | (simple_search_memory): Likewise. | |
571 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
572 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
573 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
574 | * elfread.c (elf_rel_plt_read): Use std::string. | |
575 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
576 | * cli/cli-dump.c (restore_section_callback): Use | |
577 | gdb::byte_vector. | |
578 | ||
7c218e6c TT |
579 | 2017-08-03 Tom Tromey <tom@tromey.com> |
580 | ||
581 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
582 | ||
31b68d4a TT |
583 | 2017-08-03 Tom Tromey <tom@tromey.com> |
584 | ||
585 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
586 | (tui_register_format): Use scoped_restore. | |
587 | ||
2ec845e7 TT |
588 | 2017-08-03 Tom Tromey <tom@tromey.com> |
589 | ||
590 | * reverse.c (exec_direction_default): Remove. | |
591 | (exec_reverse_once): Use scoped_restore. | |
592 | * remote.c (restore_remote_timeout): Remove. | |
593 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
594 | (readchar, remote_serial_write): Use scoped_restore. | |
595 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
596 | (source_cleanup_lines): Remove. | |
597 | (script_from_file): Use scoped_restore. | |
598 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
599 | (source_command): Use scoped_restore. | |
600 | ||
b3bc8453 TT |
601 | 2017-08-03 Tom Tromey <tom@tromey.com> |
602 | ||
603 | * utils.h (make_cleanup_free_so): Remove. | |
604 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
605 | * solist.h (struct so_deleter): New. | |
606 | (so_list_up): New typedef. | |
607 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
608 | ||
e3ad2841 TT |
609 | 2017-08-03 Tom Tromey <tom@tromey.com> |
610 | ||
611 | * utils.h (make_cleanup_restore_current_language): Remove. | |
612 | * utils.c (do_restore_current_language) | |
613 | (make_cleanup_restore_current_language): Remove. | |
614 | * parse.c (parse_exp_in_context_1) | |
615 | (parse_expression_with_language): Use | |
616 | scoped_restore_current_language. | |
617 | * mi/mi-main.c (mi_cmd_execute): Use | |
618 | scoped_restore_current_language. | |
619 | * language.h (scoped_restore_current_language): New class. | |
620 | ||
b80cf838 TT |
621 | 2017-08-03 Tom Tromey <tom@tromey.com> |
622 | ||
623 | * compile/compile.c (cleanup_unlink_file): Remove. | |
624 | (compile_to_object): Use gdb::unlinker. | |
625 | (eval_compile_command): Likewise. | |
626 | ||
fad0444a TT |
627 | 2017-08-03 Tom Tromey <tom@tromey.com> |
628 | ||
629 | * utils.h (make_cleanup_fclose): Remove. | |
630 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
631 | ||
6e7bc05c TT |
632 | 2017-08-03 Tom Tromey <tom@tromey.com> |
633 | ||
634 | * top.c (open_terminal_stream): Return gdb_file_up. | |
635 | (new_ui_command): Update. | |
636 | ||
4a45905b TT |
637 | 2017-08-03 Tom Tromey <tom@tromey.com> |
638 | ||
639 | * source.c (print_source_lines_base, forward_search_command) | |
640 | (reverse_search_command): Use gdb_file_up. | |
641 | ||
7cd06d6e TT |
642 | 2017-08-03 Tom Tromey <tom@tromey.com> |
643 | ||
644 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
645 | ||
ed166945 TT |
646 | 2017-08-03 Tom Tromey <tom@tromey.com> |
647 | ||
648 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
649 | Remove "streamp" and "full_path" parameters. | |
650 | (source_script_with_search): Update. | |
651 | * auto-load.c (source_script_file): Update. | |
652 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
653 | (open_script): New struct. | |
654 | ||
d419f42d TT |
655 | 2017-08-03 Tom Tromey <tom@tromey.com> |
656 | ||
657 | * xml-support.c (xml_fetch_content_from_file): Update. | |
658 | * ui-file.c (stdio_file::open): Update. | |
659 | * tracefile-tfile.c (tfile_start): Update. | |
660 | * remote.c (remote_file_put, remote_file_get): Update. | |
661 | * nat/linux-procfs.c (linux_proc_get_int) | |
662 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
663 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
664 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
665 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
666 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
667 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
668 | * linux-nat.c (linux_proc_pending_signals): Update. | |
669 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
670 | (file_closer): Remove. | |
671 | * compile/compile.c (compile_to_object): Update. | |
672 | * common/filestuff.h (struct gdb_file_deleter): New. | |
673 | (gdb_file_up): New typedef. | |
674 | (gdb_fopen_cloexec): Change return type. | |
675 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
676 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
677 | (dump_binary_file, restore_binary_file): Update. | |
678 | * auto-load.c (auto_load_objfile_script_1): Update. | |
679 | ||
4a2b031d TT |
680 | 2017-08-03 Tom Tromey <tom@tromey.com> |
681 | ||
682 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
683 | (info_static_tracepoint_markers_command): Likewise. | |
684 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
685 | * skip.c (skip_info): Use ui_out_emit_table. | |
686 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
687 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
688 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
689 | ui_out_emit_table. | |
690 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
691 | ui_out_emit_table. | |
692 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
693 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
694 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
695 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
696 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
697 | * ui-out.h (class ui_out_emit_table): New. | |
698 | ||
a4f320fd MR |
699 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
700 | ||
701 | * mips-tdep.c (mips_fpu_type_str): New function. | |
702 | (mips_dump_tdep): Call it. | |
703 | ||
a2f1f308 MR |
704 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
705 | ||
706 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
707 | `->mips_fpu_type'. | |
708 | ||
7e5ed83b XR |
709 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
710 | ||
711 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
712 | ||
4c9dc811 XR |
713 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
714 | ||
715 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
716 | ||
27d41eac YQ |
717 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
718 | ||
719 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
720 | * gdbcmd.h (maintenancechecklist): Declare it. | |
721 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
722 | Call i386_linux_read_description with different masks. | |
723 | * maint.c (maintenance_check_command): New function. | |
724 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
725 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
726 | (tdesc_type): Likewise. | |
727 | (tdesc_feature): Likewise. | |
728 | (target_desc): Likewise. | |
729 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
730 | (maintenance_check_xml_descriptions): New function. | |
731 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
732 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
733 | ||
ea03d0d3 YQ |
734 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
735 | ||
736 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
737 | Include features/i386/32bit-*.c. | |
738 | (i386_linux_read_description): Generate target description if it | |
739 | doesn't exist. | |
740 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
741 | functions. | |
742 | * features/i386/32bit-linux.c: Re-generated. | |
743 | * features/i386/32bit-sse.c: Likewise. | |
744 | * target-descriptions.c (print_c_feature::visit): Print code to | |
745 | set register number if needed. | |
746 | (print_c_feature) <m_next_regnum>: New field. | |
747 | ||
25aa13e5 YQ |
748 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
749 | ||
750 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
751 | (FEATURE_XMLFILES): New. | |
752 | (FEATURE_CFILES): New. | |
753 | New rules. | |
754 | (clean-cfiles): Remove generated c files. | |
755 | * features/i386/32bit-avx.c: Generated. | |
756 | * features/i386/32bit-avx512.c: Generated. | |
757 | * features/i386/32bit-core.c: Generated. | |
758 | * features/i386/32bit-linux.c: Generated. | |
759 | * features/i386/32bit-mpx.c: Generated. | |
760 | * features/i386/32bit-pkeys.c: Generated. | |
761 | * features/i386/32bit-sse.c: Generated. | |
762 | * target-descriptions.c: Include algorithm. | |
763 | (tdesc_element_visitor): Add method visit_end. | |
764 | (print_c_tdesc): Implement visit_end. | |
765 | (print_c_tdesc:: m_filename_after_features): Move it to | |
766 | protected. | |
767 | (print_c_feature): New class. | |
768 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
769 | name starts with "i386/32bit-". | |
770 | ||
6eb1e6a8 YQ |
771 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
772 | ||
773 | * target-descriptions.c (tdesc_element_visitor): New class. | |
774 | (tdesc_element): New class. | |
775 | (tdesc_reg): Inherit from tdesc_element. | |
776 | (tdesc_reg::accept): New function. | |
777 | (tdesc_type): Inherit from tdesc_element. | |
778 | (tdesc_type::accept): New function. | |
779 | (tdesc_feature): Inherit from tdesc_element. | |
780 | (tdesc_feature::accept): New function. | |
781 | (target_desc): Inherit from tdesc_element. | |
782 | (target_desc::target_desc): New. | |
783 | (target_desc::~target_desc): New. | |
784 | (target_desc::accept): New. | |
785 | (allocate_target_description): Use new. | |
786 | (free_target_description): Use delete. | |
787 | (print_c_tdesc): New class. | |
788 | (maint_print_c_tdesc_cmd): Adjust. | |
789 | ||
790 | * features/aarch64.c: Re-generated. | |
791 | * features/arc-arcompact.c: Re-generated. | |
792 | * features/arc-v2.c: Re-generated. | |
793 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
794 | * features/arm/arm-with-m.c: Re-generated. | |
795 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
796 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
797 | * features/arm/arm-with-neon.c: Re-generated. | |
798 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
799 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
800 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
801 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
802 | * features/i386/amd64-avx.c: Re-generated. | |
803 | * features/i386/amd64-avx-linux.c: Re-generated. | |
804 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
805 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
806 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
807 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
808 | * features/i386/amd64.c: Re-generated. | |
809 | * features/i386/amd64-linux.c: Re-generated. | |
810 | * features/i386/amd64-mpx.c: Re-generated. | |
811 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
812 | * features/i386/i386-avx-avx512.c: Re-generated. | |
813 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
814 | * features/i386/i386-avx.c: Re-generated. | |
815 | * features/i386/i386-avx-linux.c: Re-generated. | |
816 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
817 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
818 | * features/i386/i386-avx-mpx.c: Re-generated. | |
819 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
820 | * features/i386/i386.c: Re-generated. | |
821 | * features/i386/i386-linux.c: Re-generated. | |
822 | * features/i386/i386-mmx.c: Re-generated. | |
823 | * features/i386/i386-mmx-linux.c: Re-generated. | |
824 | * features/i386/i386-mpx.c: Re-generated. | |
825 | * features/i386/i386-mpx-linux.c: Re-generated. | |
826 | * features/i386/x32-avx-avx512.c: Re-generated. | |
827 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
828 | * features/i386/x32-avx.c: Re-generated. | |
829 | * features/i386/x32-avx-linux.c: Re-generated. | |
830 | * features/i386/x32.c: Re-generated. | |
831 | * features/i386/x32-linux.c: Re-generated. | |
832 | * features/microblaze.c: Re-generated. | |
833 | * features/microblaze-with-stack-protect.c: Re-generated. | |
834 | * features/mips64-dsp-linux.c: Re-generated. | |
835 | * features/mips64-linux.c: Re-generated. | |
836 | * features/mips-dsp-linux.c: Re-generated. | |
837 | * features/mips-linux.c: Re-generated. | |
838 | * features/nds32.c: Re-generated. | |
839 | * features/nios2.c: Re-generated. | |
840 | * features/nios2-linux.c: Re-generated. | |
841 | * features/rs6000/powerpc-32.c: Re-generated. | |
842 | * features/rs6000/powerpc-32l.c: Re-generated. | |
843 | * features/rs6000/powerpc-403.c: Re-generated. | |
844 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
845 | * features/rs6000/powerpc-405.c: Re-generated. | |
846 | * features/rs6000/powerpc-505.c: Re-generated. | |
847 | * features/rs6000/powerpc-601.c: Re-generated. | |
848 | * features/rs6000/powerpc-602.c: Re-generated. | |
849 | * features/rs6000/powerpc-603.c: Re-generated. | |
850 | * features/rs6000/powerpc-604.c: Re-generated. | |
851 | * features/rs6000/powerpc-64.c: Re-generated. | |
852 | * features/rs6000/powerpc-64l.c: Re-generated. | |
853 | * features/rs6000/powerpc-7400.c: Re-generated. | |
854 | * features/rs6000/powerpc-750.c: Re-generated. | |
855 | * features/rs6000/powerpc-860.c: Re-generated. | |
856 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
857 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
858 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
859 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
860 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
861 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
862 | * features/rs6000/powerpc-e500.c: Re-generated. | |
863 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
864 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
865 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
866 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
867 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
868 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
869 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
870 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
871 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
872 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
873 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
874 | * features/rs6000/rs6000.c: Re-generated. | |
875 | * features/s390-linux32.c: Re-generated. | |
876 | * features/s390-linux32v1.c: Re-generated. | |
877 | * features/s390-linux32v2.c: Re-generated. | |
878 | * features/s390-linux64.c: Re-generated. | |
879 | * features/s390-linux64v1.c: Re-generated. | |
880 | * features/s390-linux64v2.c: Re-generated. | |
881 | * features/s390-te-linux64.c: Re-generated. | |
882 | * features/s390-tevx-linux64.c: Re-generated. | |
883 | * features/s390-vx-linux64.c: Re-generated. | |
884 | * features/s390x-linux64.c: Re-generated. | |
885 | * features/s390x-linux64v1.c: Re-generated. | |
886 | * features/s390x-linux64v2.c: Re-generated. | |
887 | * features/s390x-te-linux64.c: Re-generated. | |
888 | * features/s390x-tevx-linux64.c: Re-generated. | |
889 | * features/s390x-vx-linux64.c: Re-generated. | |
890 | * features/sparc/sparc32-solaris.c: Re-generated. | |
891 | * features/sparc/sparc64-solaris.c: Re-generated. | |
892 | * features/tic6x-c62x.c: Re-generated. | |
893 | * features/tic6x-c62x-linux.c: Re-generated. | |
894 | * features/tic6x-c64x.c: Re-generated. | |
895 | * features/tic6x-c64x-linux.c: Re-generated. | |
896 | * features/tic6x-c64xp.c: Re-generated. | |
897 | * features/tic6x-c64xp-linux.c: Re-generated. | |
898 | ||
35b4818d YQ |
899 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
900 | ||
901 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
902 | (i386_linux_core_read_description): Call | |
903 | i386_linux_read_description. | |
904 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
905 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
906 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
907 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
908 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
909 | * x86-linux-nat.c (x86_linux_read_description): Call | |
910 | i386_linux_read_description. | |
911 | ||
8e2141c6 YQ |
912 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
913 | ||
914 | * NEWS: Mention it. | |
915 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
916 | command "maint print c-tdesc". | |
917 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
918 | name from 'arg'. | |
919 | ||
b468ff4c YQ |
920 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
921 | ||
922 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
923 | in-class initialization. | |
924 | (tdesc_create_feature): Call new instead of XCNEW. | |
925 | (free_target_description): Ue delete. | |
926 | ||
b9c0e1b4 JB |
927 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
928 | ||
929 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
930 | ||
a04b5337 YQ |
931 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
932 | ||
933 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
934 | constant. | |
935 | (amd64_x32_init_abi): Likewise. | |
936 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
937 | (amd64_x32_init_abi): Likewise. | |
938 | ||
02ad7fc2 YQ |
939 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
940 | ||
941 | PR tdep/21717 | |
942 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
943 | condition for FPSCR. | |
944 | (arm_linux_store_inferior_registers): Likewise. | |
945 | ||
b6f48cb0 TT |
946 | 2017-07-22 Tom Tromey <tom@tromey.com> |
947 | ||
948 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
949 | <syscalls_counts>: Now a std::vector. | |
950 | (get_catch_syscall_inferior_data): Use "new". | |
951 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
952 | (insert_catch_syscall, remove_catch_syscall) | |
953 | (clear_syscall_counts): Update. | |
954 | ||
e12c9b7a TT |
955 | 2017-07-22 Tom Tromey <tom@tromey.com> |
956 | ||
957 | * break-catch-syscall.c (syscall_catchpoint) | |
958 | <syscalls_to_be_caught>: Now a std::vector<int> | |
959 | (~syscall_catchpoint): Remove. | |
960 | (insert_catch_syscall, remove_catch_syscall) | |
961 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
962 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
963 | Update. | |
964 | (create_syscall_event_catchpoint): Change type of "filter" | |
965 | parameter. | |
966 | (catch_syscall_split_args): Return a std::vector. | |
967 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
968 | ||
4fa8aeac TT |
969 | 2017-07-22 Tom Tromey <tom@tromey.com> |
970 | ||
971 | * break-catch-throw.c (struct exception_catchpoint) | |
972 | <exception_rx>: Now a std::string. | |
973 | (~exception_catchpoint): Remove. | |
974 | (print_one_detail_exception_catchpoint): Update. | |
975 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
976 | (extract_exception_regexp): Return a std::string. | |
977 | (catch_exception_command_1): Update. | |
978 | ||
f746a154 TT |
979 | 2017-07-22 Tom Tromey <tom@tromey.com> |
980 | ||
981 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
982 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
983 | std::vector. | |
984 | <catch_all>: Now a bool. | |
985 | (~signal_catchpoint): Remove. | |
986 | (signal_catchpoint_insert_location) | |
987 | (signal_catchpoint_remove_location) | |
988 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
989 | (signal_catchpoint_print_mention) | |
990 | (signal_catchpoint_print_recreate) | |
991 | (signal_catchpoint_explains_signal): Update. | |
992 | (create_signal_catchpoint): Change type of "filter" and | |
993 | "catch_all". | |
994 | (catch_signal_split_args): Return a std::vector. Change type of | |
995 | "catch_all". | |
996 | (catch_signal_command): Update. | |
997 | ||
47e77640 PA |
998 | 2017-07-20 Pedro Alves <palves@redhat.com> |
999 | ||
1000 | * ada-lang.c (ada_language_defn): Make extern. | |
1001 | (_initialize_ada_language): Remove add_language call. | |
1002 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1003 | (asm_language_defn, minimal_language_defn): Make extern. | |
1004 | (_initialize_c_language): Delete. | |
1005 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
1006 | * d-lang.c (d_language_defn): Make extern. | |
1007 | (_initialize_d_language): Remove add_language calls. | |
1008 | * defs.h (enum language): Add comment. | |
1009 | * f-lang.c (f_language_defn): Make extern. | |
1010 | (_initialize_f_language): Remove add_language call. | |
1011 | * go-lang.c (go_language_defn): Make extern. | |
1012 | (_initialize_go_language): Remove add_language call. | |
1013 | * language.c: Include <algorithm>. | |
1014 | (languages): Redefine as const array. | |
1015 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
1016 | (set_language_command): Handle "local". Use for-range loop. | |
1017 | (set_language): Remove loop. | |
1018 | (language_enum): Rewrite. | |
1019 | (language_def, language_str): Remove loops. | |
1020 | (add_language): Delete. | |
1021 | (add_set_language_command): New, based on add_languages. | |
1022 | (skip_language_trampoline): Adjust. | |
1023 | (local_language_defn): Delete. | |
1024 | (language_gdbarch_post_init): Adjust. | |
1025 | (_initialize_language): Remove add_language calls. Call | |
1026 | add_set_language_command. | |
1027 | * language.h (add_language): Delete. | |
1028 | (auto_language_defn) | |
1029 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
1030 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
1031 | (d_language_defn, f_language_defn, go_language_defn) | |
1032 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
1033 | (pascal_language_defn, rust_language_defn): Declare. | |
1034 | * m2-lang.c (m2_language_defn): Make extern. | |
1035 | (_initialize_m2_language): Remove add_language call. | |
1036 | * objc-lang.c (objc_language_defn): Make extern. | |
1037 | (_initialize_objc_language): Remove add_language call. | |
1038 | * opencl-lang.c (opencl_language_defn): Make extern. | |
1039 | (_initialize_opencl_language): Remove add_language call. | |
1040 | * p-lang.c (pascal_language_defn): Make extern. | |
1041 | (_initialize_pascal_language): Delete. | |
1042 | * rust-lang.c (rust_language_defn): Make extern. | |
1043 | (_initialize_rust_language): Delete. | |
1044 | * utils.h (compare_cstrings): New static inline function. | |
1045 | ||
edb0c9cb PA |
1046 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1047 | ||
1048 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
1049 | (get_var_value): Constify parameters. | |
1050 | (get_int_var_value): Change prototype. | |
1051 | (to_fixed_range_type): Adjust. | |
1052 | * ada-lang.h (get_int_var_value): Change prototype. | |
1053 | ||
a778f165 PA |
1054 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1055 | ||
1056 | * dwarf2read.c (dw2_lookup_symbol): Use | |
1057 | SYMBOL_MATCHES_SEARCH_NAME. | |
1058 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
1059 | ||
42edd901 PA |
1060 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1061 | ||
1062 | * block.c (block_iter_name_step, block_iter_name_first) | |
1063 | (block_iter_name_next): Delete. | |
1064 | (block_lookup_symbol_primary): Adjust to use | |
1065 | dict_iter_match_first/dict_iter_match_next. | |
1066 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
1067 | declarations. | |
1068 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
1069 | dict_iter_match_first/dict_iter_match_next. | |
1070 | ||
cf325299 PA |
1071 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1072 | ||
1073 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
1074 | end of string. | |
1075 | ||
c5ed0576 DB |
1076 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
1077 | ||
1078 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
1079 | of dwo_cu's dwo_file. | |
1080 | ||
27841e76 YQ |
1081 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
1082 | ||
1083 | * remote.c (store_registers_using_G): Remove one line comment. | |
1084 | ||
cfb7e58b YQ |
1085 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
1086 | ||
1087 | * regcache.c (regcache_cpy): Simplify it. | |
1088 | (regcache::cpy_no_passthrough): Remove it. | |
1089 | * regcache.h (cpy_no_passthrough): Remove it. | |
1090 | (regcache_dup, regcache_cpy): Update comments. | |
1091 | ||
386535dd PA |
1092 | 2017-07-18 Pedro Alves <palves@redhat.com> |
1093 | ||
1094 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
1095 | completion_tracker instead of a VEC. | |
1096 | ||
c45ec17c PA |
1097 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1098 | ||
1099 | * completer.c (complete_source_filenames): New function. | |
1100 | (complete_address_and_linespec_locations): New function. | |
1101 | (location_completer): Use complete_address_and_linespec_locations. | |
1102 | (completion_tracker::build_completion_result): Honor the tracker's | |
1103 | request to suppress append. | |
1104 | * completer.h (completion_tracker::suppress_append_ws) | |
1105 | (completion_tracker::set_suppress_append_ws): New methods. | |
1106 | (completion_tracker::m_suppress_append_ws): New field. | |
1107 | (complete_source_filenames): New declaration. | |
1108 | * linespec.c (linespec_complete_what): New. | |
1109 | (struct ls_parser) <complete_what, completion_word, | |
1110 | completion_quote_char, completion_quote_end, completion_tracker>: | |
1111 | New fields. | |
1112 | (string_find_incomplete_keyword_at_end): New. | |
1113 | (linespec_lexer_lex_string): Record quote char. If in completion | |
1114 | mode, don't throw. | |
1115 | (linespec_lexer_consume_token): Advance the completion word point. | |
1116 | (linespec_lexer_peek_token): Save/restore completion info. | |
1117 | (save_stream_and_consume_token): New. | |
1118 | (set_completion_after_number): New. | |
1119 | (linespec_parse_basic): Set what to complete next depending on | |
1120 | token. Handle function and label completions specially. | |
1121 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
1122 | what to complete next depending on token type. Skip keyword if in | |
1123 | completion mode. | |
1124 | (complete_linespec_component, linespec_complete): New. | |
1125 | * linespec.h (linespec_complete): Declare. | |
1126 | ||
be966d42 PA |
1127 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1128 | ||
1129 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
1130 | Handle 'operator<' / 'operator<<'. | |
1131 | ||
a2459270 PA |
1132 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1133 | ||
1134 | * completer.c (collect_explicit_location_matches): Handle | |
1135 | MATCH_LABEL. | |
1136 | (convert_explicit_location_to_linespec): New, factored out from | |
1137 | ... | |
1138 | (convert_explicit_location_to_sals): ... this. | |
1139 | (complete_label): New. | |
1140 | (linespec_complete_label, find_label_symbols_in_block): New. | |
1141 | (find_label_symbols): Add completion_mode parameter and adjust to | |
1142 | call find_label_symbols_in_block. | |
1143 | * linespec.h (linespec_complete_label): Declare. | |
1144 | ||
c6756f62 PA |
1145 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1146 | ||
1147 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
1148 | complete_symbol_mode parameter. | |
1149 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
1150 | of the handle_brkchars tracker if used a custom word point. | |
1151 | * completer.c: Include "linespec.h". | |
1152 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
1153 | (advance_to_expression_complete_word_point): New. | |
1154 | (completion_tracker::completes_to_completion_word): New. | |
1155 | (complete_files_symbols): Pass down | |
1156 | complete_symbol_mode::EXPRESSION. | |
1157 | (explicit_options, probe_options): New. | |
1158 | (collect_explicit_location_matches): Complete on the | |
1159 | explictit_loc->foo instead of word. Use | |
1160 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
1161 | keyword and options completions. | |
1162 | (backup_text_ptr): Delete. | |
1163 | (skip_keyword): New. | |
1164 | (complete_explicit_location): Remove 'word' parameter. Add | |
1165 | language, quoted_arg_start and quoted_arg_end parameters. | |
1166 | Rewrite, parsing left to right. | |
1167 | (location_completer): Rewrite. | |
1168 | (location_completer_handle_brkchars): New function. | |
1169 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
1170 | (enum complete_line_internal_reason): Adjust comments. | |
1171 | (completion_tracker::discard_completions): New. | |
1172 | (completer_handle_brkchars_func_for_completer): Handle | |
1173 | location_completer. | |
1174 | (gdb_custom_word_point_brkchars) | |
1175 | (gdb_org_rl_basic_quote_characters): New. | |
1176 | (gdb_completion_word_break_characters_throw) | |
1177 | (completion_find_completion_word): Handle trackers that use a | |
1178 | custom word point. | |
1179 | (completion_tracker::advance_custom_word_point_by): New. | |
1180 | (completion_tracker::build_completion_result): Don't rely on | |
1181 | readline appending the quote char. | |
1182 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
1183 | use a custom word point. | |
1184 | (gdb_rl_attempted_completion_function): Restore | |
1185 | rl_basic_quote_characters. | |
1186 | * completer.h (class completion_tracker): Extend intro comment. | |
1187 | (completion_tracker::set_quote_char) | |
1188 | (completion_tracker::quote_char) | |
1189 | (completion_tracker::set_use_custom_word_point) | |
1190 | (completion_tracker::use_custom_word_point) | |
1191 | (completion_tracker::custom_word_point) | |
1192 | (completion_tracker::set_custom_word_point) | |
1193 | (completion_tracker::advance_custom_word_point_by) | |
1194 | (completion_tracker::completes_to_completion_word) | |
1195 | (completion_tracker::discard_completions): New methods. | |
1196 | (completion_tracker::m_quote_char) | |
1197 | (completion_tracker::m_use_custom_word_point) | |
1198 | (completion_tracker::m_custom_word_point): New fields. | |
1199 | (advance_to_expression_complete_word_point): Declare. | |
1200 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
1201 | complete_symbol_mode parameter. | |
1202 | * language.h (struct language_defn) | |
1203 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
1204 | parameter. | |
1205 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
1206 | (linespec_complete_function): New function. | |
1207 | (linespec_lexer_lex_keyword): Adjust. | |
1208 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
1209 | declarations. | |
1210 | * location.c (find_end_quote): New function. | |
1211 | (explicit_location_lex_one): Add explicit_completion_info | |
1212 | parameter. Save quoting info. Don't throw if being called for | |
1213 | completion. Don't handle Ada operators here. | |
1214 | (is_cp_operator, skip_op_false_positives, first_of) | |
1215 | (explicit_location_lex_one_function): New function. | |
1216 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
1217 | an explicit_completion_info pointer parameter. Handle it. Don't | |
1218 | use explicit_location_lex_one to lex function names. Use | |
1219 | explicit_location_lex_one_function instead. | |
1220 | * location.h (struct explicit_completion_info): New. | |
1221 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
1222 | an explicit_completion_info pointer parameter. | |
1223 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
1224 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
1225 | (default_collect_symbol_completion_matches) | |
1226 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
1227 | parameter. | |
1228 | (collect_symbol_completion_matches_type): Pass down | |
1229 | complete_symbol_mode::EXPRESSION. | |
1230 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
1231 | parameter. Handle LINESPEC mode. | |
1232 | * symtab.h (complete_symbol_mode): New. | |
1233 | (default_collect_symbol_completion_matches_break_on) | |
1234 | (default_collect_symbol_completion_matches) | |
1235 | (collect_symbol_completion_matches) | |
1236 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
1237 | parameter. | |
1238 | ||
1d550c82 PA |
1239 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1240 | ||
1241 | * utils.c (enum class strncmp_iw_mode): New. | |
1242 | (strcmp_iw): Rename to ... | |
1243 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
1244 | parameters. Handle them. | |
1245 | (strncmp_iw): New. | |
1246 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
1247 | * utils.h (strncmp_iw): Declare. | |
1248 | (strcmp_iw): Move describing comments here. | |
1249 | ||
8090b426 PA |
1250 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1251 | ||
1252 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
1253 | CP_OPERATOR_STR. | |
1254 | * c-typeprint.c (is_type_conversion_operator): Use | |
1255 | CP_OPERATOR_STR. | |
1256 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
1257 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
1258 | CP_OPERATOR_LEN. | |
1259 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
1260 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
1261 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
1262 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
1263 | CP_OPERATOR_STR. | |
1264 | * location.c: Include "cp-support.h". | |
1265 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
1266 | CP_OPERATOR_STR. | |
1267 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
1268 | CP_OPERATOR_LEN. | |
1269 | ||
6a2c1b87 PA |
1270 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1271 | ||
1272 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
1273 | along with completion_find_completion_word for handle_brkchars | |
1274 | phase. | |
1275 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
1276 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
1277 | (struct gdb_rl_completion_word_info): New. | |
1278 | (gdb_rl_find_completion_word): New. | |
1279 | (completion_find_completion_word): New. | |
1280 | * completer.h (completion_find_completion_word): Declare. | |
1281 | ||
eb3ff9a5 PA |
1282 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1283 | ||
1284 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
1285 | (symbol_completion_add): Replace vector parameter with | |
1286 | completion_tracker parameter. Use it. | |
1287 | (ada_make_symbol_completion_list): Rename to... | |
1288 | (ada_collect_symbol_completion_matches): ... this. Add | |
1289 | completion_tracker parameter and use it. | |
1290 | (ada_language_defn): Adjust. | |
1291 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
1292 | prototype and work with completion_tracker instead of VEC. | |
1293 | * breakpoint.c (condition_completer): Adjust prototype and work | |
1294 | with completion_tracker instead of VEC. | |
1295 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1296 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
1297 | * cli/cli-cmds.c (complete_command): Rework using | |
1298 | completion_tracker. Catch exceptions when completing. | |
1299 | * cli/cli-decode.c (integer_unlimited_completer) | |
1300 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
1301 | with completion_tracker instead of VEC. | |
1302 | * command.h (struct completion_tracker): Forward declare. | |
1303 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
1304 | types. | |
1305 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
1306 | * completer.c: Include <algorithm>. | |
1307 | (struct gdb_completer_state): New. | |
1308 | (current_completion): New global. | |
1309 | (readline_line_completion_function): Delete. | |
1310 | (noop_completer, filename_completer) | |
1311 | (filename_completer_handle_brkchars, complete_files_symbols) | |
1312 | (linespec_location_completer): Adjust to work with a | |
1313 | completion_tracker instead of a VEC. | |
1314 | (string_or_empty): New. | |
1315 | (collect_explicit_location_matches): Adjust to work with a | |
1316 | completion_tracker instead of a VEC. | |
1317 | (explicit_location_completer): Rename to ... | |
1318 | (complete_explicit_location): ... this and adjust to work with a | |
1319 | completion_tracker instead of a VEC. | |
1320 | (location_completer): Adjust to work with a completion_tracker | |
1321 | instead of a VEC. | |
1322 | (add_struct_fields): Adjust to work with a completion_list instead | |
1323 | of VEC. | |
1324 | (expression_completer): Rename to ... | |
1325 | (complete_expression): ... this and adjust to work with a | |
1326 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
1327 | (expression_completer): Reimplement on top of complete_expression. | |
1328 | (symbol_completer): Adjust to work with a completion_tracker | |
1329 | instead of a VEC. | |
1330 | (enum complete_line_internal_reason): Add describing comments. | |
1331 | (complete_line_internal_normal_command): Adjust to work with a | |
1332 | completion_tracker instead of a VEC. | |
1333 | (complete_line_internal): Rename to ... | |
1334 | (complete_line_internal_1): ... this and adjust to work with a | |
1335 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
1336 | handle_brkchars phase. | |
1337 | (new_completion_tracker): Delete. | |
1338 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
1339 | complete_line_internal_1. | |
1340 | (free_completion_tracker): Delete. | |
1341 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
1342 | (completion_tracker::completion_tracker) | |
1343 | (completion_tracker::~completion_tracker): New. | |
1344 | (maybe_add_completion): Delete. | |
1345 | (completion_tracker::maybe_add_completion) | |
1346 | (completion_tracker::add_completion) | |
1347 | (completion_tracker::add_completions): New. | |
1348 | (throw_max_completions_reached_error): Delete. | |
1349 | (complete_line): Adjust to work with a completion_tracker instead | |
1350 | of a VEC. Don't create a completion_tracker_t or check for max | |
1351 | completions here. | |
1352 | (command_completer, command_completer_handle_brkchars) | |
1353 | (signal_completer, reg_or_group_completer_1) | |
1354 | (reg_or_group_completer, default_completer_handle_brkchars): | |
1355 | Adjust to work with a completion_tracker. | |
1356 | (gdb_completion_word_break_characters_throw): New. | |
1357 | (gdb_completion_word_break_characters): Reimplement. | |
1358 | (line_completion_function): Delete. | |
1359 | (completion_tracker::recompute_lowest_common_denominator) | |
1360 | (expand_preserving_ws) | |
1361 | (completion_tracker::build_completion_result) | |
1362 | (completion_result::completion_result) | |
1363 | (completion_result::completion_result) | |
1364 | (completion_result::~completion_result) | |
1365 | (completion_result::completion_result) | |
1366 | (completion_result::release_match_list, compare_cstrings) | |
1367 | (completion_result::sort_match_list) | |
1368 | (completion_result::reset_match_list) | |
1369 | (gdb_rl_attempted_completion_function_throw) | |
1370 | (gdb_rl_attempted_completion_function): New. | |
1371 | * completer.h (completion_list, struct completion_result) | |
1372 | (class completion_tracker): New. | |
1373 | (complete_line): Add completion_tracker parameter. | |
1374 | (readline_line_completion_function): Delete. | |
1375 | (gdb_rl_attempted_completion_function): New. | |
1376 | (noop_completer, filename_completer, expression_completer) | |
1377 | (location_completer, symbol_completer, command_completer) | |
1378 | (signal_completer, reg_or_group_completer): Update prototypes. | |
1379 | (completion_tracker_t, new_completion_tracker) | |
1380 | (make_cleanup_free_completion_tracker): Delete. | |
1381 | (enum maybe_add_completion_enum): Delete. | |
1382 | (maybe_add_completion): Delete. | |
1383 | (throw_max_completions_reached_error): Delete. | |
1384 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
1385 | completion_tracker instead of a VEC. | |
1386 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
1387 | completion_tracker instead of a VEC. | |
1388 | * d-lang.c (d_language_defn): Adjust. | |
1389 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
1390 | completion_tracker instead of a VEC. | |
1391 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
1392 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
1393 | with a completion_tracker instead of a VEC. | |
1394 | (f_language_defn): Adjust. | |
1395 | * go-lang.c (go_language_defn): Adjust. | |
1396 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
1397 | Adjust to work with a completion_tracker instead of a VEC. | |
1398 | * infrun.c (handle_completer): Likewise. | |
1399 | * interps.c (interpreter_completer): Likewise. | |
1400 | * interps.h (interpreter_completer): Likewise. | |
1401 | * language.c (unknown_language_defn, auto_language_defn) | |
1402 | (local_language_defn): Adjust. | |
1403 | * language.h (language_defn::la_make_symbol_completion_list): | |
1404 | Rename to ... | |
1405 | (language_defn::la_collect_symbol_completion_matches): ... this | |
1406 | and adjust to work with a completion_tracker instead of a VEC. | |
1407 | * m2-lang.c (m2_language_defn): Adjust. | |
1408 | * objc-lang.c (objc_language_defn): Adjust. | |
1409 | * opencl-lang.c (opencl_language_defn): Adjust. | |
1410 | * p-lang.c (pascal_language_defn): Adjust. | |
1411 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
1412 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
1413 | with a completion_tracker. | |
1414 | * rust-lang.c (rust_language_defn): Adjust. | |
1415 | * symtab.c (free_completion_list, do_free_completion_list) | |
1416 | (return_val, completion_tracker): Delete. | |
1417 | (completion_list_add_name, completion_list_add_symbol) | |
1418 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
1419 | (completion_list_add_fields, add_symtab_completions): Add | |
1420 | completion_tracker parameter and use it. | |
1421 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
1422 | (default_collect_symbol_completion_matches_break_on): ... this. | |
1423 | Add completion_tracker parameter and use it instead of allocating | |
1424 | a completion tracker here. | |
1425 | (default_make_symbol_completion_list_break_on): Delete old | |
1426 | implementation. | |
1427 | (default_make_symbol_completion_list): Delete. | |
1428 | (default_collect_symbol_completion_matches): New. | |
1429 | (make_symbol_completion_list): Delete. | |
1430 | (collect_symbol_completion_matches): New. | |
1431 | (make_symbol_completion_type): Rename to ... | |
1432 | (collect_symbol_completion_matches_type): ... this. Add | |
1433 | completion_tracker parameter and use it instead of VEC. | |
1434 | (make_file_symbol_completion_list_1): Rename to... | |
1435 | (collect_file_symbol_completion_matches): ... this. Add | |
1436 | completion_tracker parameter and use it instead of VEC. | |
1437 | (make_file_symbol_completion_list): Delete. | |
1438 | (add_filename_to_list): Use completion_list instead of a VEC. | |
1439 | (add_partial_filename_data::list): Now a completion_list. | |
1440 | (make_source_files_completion_list): Work with a completion_list | |
1441 | instead of a VEC. | |
1442 | * symtab.h: Include "completer.h". | |
1443 | (default_make_symbol_completion_list_break_on) | |
1444 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
1445 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
1446 | (make_source_files_completion_list): Delete. | |
1447 | (default_collect_symbol_completion_matches_break_on) | |
1448 | (default_collect_symbol_completion_matches) | |
1449 | (collect_symbol_completion_matches) | |
1450 | (collect_symbol_completion_matches_type) | |
1451 | (collect_file_symbol_completion_matches) | |
1452 | (make_source_files_completion_list): New. | |
1453 | * top.c (init_main): Don't install a rl_completion_entry_function | |
1454 | hook. Install a rl_attempted_completion_function hook instead. | |
1455 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
1456 | completion_tracker. | |
1457 | * tui/tui-regs.c (tui_reggroup_completer): | |
1458 | * tui/tui-win.c (window_name_completer, focus_completer) | |
1459 | (winheight_completer): Adjust to work with a completion_tracker. | |
1460 | * value.c: Include "completer.h". | |
1461 | (complete_internalvar): Adjust to work with a completion_tracker. | |
1462 | * value.h (complete_internalvar): Likewise. | |
1463 | ||
6e1dbf8c PA |
1464 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1465 | ||
1466 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
1467 | renames. | |
1468 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
1469 | comments to completer_ftype's declaration. | |
1470 | <completer_handle_brkchars>: Change type to | |
1471 | completer_handle_brkchars_ftype. | |
1472 | * command.h (completer_ftype): Add describing comment and give | |
1473 | names to parameters. | |
1474 | (completer_ftype_void): Rename to ... | |
1475 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
1476 | (set_cmd_completer_handle_brkchars): Adjust. | |
1477 | * completer.c (filename_completer_handle_brkchars): New function. | |
1478 | (complete_line_internal_normal_command): New function, factored | |
1479 | out from ... | |
1480 | (complete_line_internal): ... here. | |
1481 | (command_completer_handle_brkchars) | |
1482 | (default_completer_handle_brkchars) | |
1483 | (completer_handle_brkchars_func_for_completer): New functions. | |
1484 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
1485 | declaration. | |
1486 | (completer_handle_brkchars_func_for_completer): New declaration. | |
1487 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
1488 | completer_handle_brkchars_func_for_completer. | |
1489 | ||
78b13106 PA |
1490 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1491 | ||
1492 | * completer.c (symbol_completer): New function, based on | |
1493 | make_symbol_completion_list_fn. | |
1494 | * completer.h (symbol_completer): New declaration. | |
1495 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
1496 | * python/py-cmd.c (completers): Adjust. | |
1497 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
1498 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
1499 | * cli/cli-decode.c (add_cmd): Adjust. | |
1500 | ||
bbf2f4df PA |
1501 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1502 | ||
1503 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
1504 | * dwarf2read.c: Include "filename-seen-cache.h". | |
1505 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
1506 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
1507 | * filename-seen-cache.c: New file. | |
1508 | * filename-seen-cache.h: New file. | |
1509 | * symtab.c: Include "filename-seen-cache.h". | |
1510 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
1511 | (create_filename_seen_cache, clear_filename_seen_cache) | |
1512 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
1513 | to filename-seen-cache.h/filename-seen-cache.c. | |
1514 | (output_source_filename, sources_info) | |
1515 | (maybe_add_partial_symtab_filename) | |
1516 | (make_source_files_completion_list): Adjust to use | |
1517 | filename_seen_cache. | |
1518 | ||
330cdd98 PA |
1519 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1520 | ||
1521 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
1522 | fields. | |
1523 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
1524 | dwarf2_debug_sections*)): New. | |
1525 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
1526 | dwarf2_per_objfile&)): Declare as deleted. | |
1527 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
1528 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
1529 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
1530 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
1531 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
1532 | ctor. Call dwarf2_per_objfile's ctor manually. | |
1533 | (dwarf2_locate_sections): Deleted/refactored as ... | |
1534 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
1535 | (free_cached_comp_units): Defer to | |
1536 | dwarf2_per_objfile::free_cached_comp_units. | |
1537 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
1538 | ||
8880f2a9 TT |
1539 | 2017-07-14 Tom Tromey <tom@tromey.com> |
1540 | ||
1541 | PR rust/21764: | |
1542 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
1543 | parameter. | |
1544 | <UNOP_SIZEOF>: Split into separate case. | |
1545 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
1546 | ||
65547233 TT |
1547 | 2017-07-14 Tom Tromey <tom@tromey.com> |
1548 | ||
1549 | PR rust/21763: | |
1550 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
1551 | case. | |
1552 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
1553 | treat LOC_TYPEDEF symbols as variables. | |
1554 | ||
8f14146e PA |
1555 | 2017-07-14 Pedro Alves <palves@redhat.com> |
1556 | ||
1557 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
1558 | symtabs matching all symtabs with SRCFILE as file name instead of | |
1559 | only considering the first hit, with lookup_symtab. | |
1560 | ||
2347965c SM |
1561 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1562 | ||
1563 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
1564 | operator_name parameters. | |
1565 | (gen_expr): Update function call. | |
1566 | ||
40f4af28 SM |
1567 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1568 | ||
1569 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
1570 | parameter. | |
1571 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
1572 | Likewise. | |
1573 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
1574 | parameter, use agent_expr::gdbarch instead, update function | |
1575 | calls. | |
1576 | (locexpr_tracepoint_var_ref): Likewise. | |
1577 | (loclist_tracepoint_var_ref): Likewise. | |
1578 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
1579 | (gen_traced_pop): Likewise. | |
1580 | (gen_frame_args_address): Likewise. | |
1581 | (gen_frame_locals_address): Likewise. | |
1582 | (gen_var_ref): Likewise. | |
1583 | (gen_struct_ref_recursive): Likewise. | |
1584 | (gen_static_field): Likewise. | |
1585 | (gen_maybe_namespace_elt): Likewise. | |
1586 | (gen_expr): Likewise. | |
1587 | (gen_trace_for_var): Likewise. | |
1588 | (gen_trace_for_expr): Likewise. | |
1589 | (gen_trace_for_return_address): Likewise. | |
1590 | ||
053f8057 SM |
1591 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1592 | ||
1593 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
1594 | parameter. | |
1595 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
1596 | ||
6661ad48 SM |
1597 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1598 | ||
1599 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
1600 | from ax, update calls. | |
1601 | (gen_usual_arithmetic): Likewise. | |
1602 | (gen_integral_promotions): Likewise. | |
1603 | (gen_bitfield_ref): Likewise. | |
1604 | (gen_primitive_field): Likewise. | |
1605 | (gen_struct_ref_recursive): Likewise. | |
1606 | (gen_struct_ref): Likewise. | |
1607 | (gen_maybe_namespace_elt): Likewise. | |
1608 | (gen_struct_elt_for_reference): Likewise. | |
1609 | (gen_namespace_elt): Likewise. | |
1610 | (gen_aggregate_elt_ref): Likewise. | |
1611 | (gen_expr): Get gdbarch from ax, update calls. | |
1612 | (gen_expr_binop_rest): Likewise. | |
1613 | ||
c55a47e7 PA |
1614 | 2017-07-13 Pedro Alves <palves@redhat.com> |
1615 | ||
1616 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
1617 | as default tdesc. | |
1618 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
1619 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
1620 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
1621 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
1622 | tdep. | |
1623 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
1624 | Get final tdesc from the tdep. | |
1625 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
1626 | default tdesc. | |
1627 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
1628 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
1629 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
1630 | Use it as default tdesc. | |
1631 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
1632 | down to amd_init_abi. No longer handle fallback tdesc here. | |
1633 | * amd64-tdep.h (tdesc_x32): Declare. | |
1634 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
1635 | parameter. | |
1636 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
1637 | as default tdesc. | |
1638 | ||
55efceab AA |
1639 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1640 | ||
1641 | * s390-linux-tdep.c (s390_process_record): Add support for | |
1642 | instructions new in arch12. | |
1643 | ||
0aa37b65 JB |
1644 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
1645 | ||
1646 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
1647 | PT_GETFSBASE and PT_GETGSBASE. | |
1648 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
1649 | PT_SETGSBASE. | |
1650 | ||
48aeef91 JB |
1651 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
1652 | ||
1653 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
1654 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
1655 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
1656 | those rules. | |
1657 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
1658 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
1659 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
1660 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
1661 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
1662 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
1663 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
1664 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
1665 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
1666 | * features/i386/amd64-avx.c: Regenerated. | |
1667 | * features/i386/amd64-mpx.c: Regenerated. | |
1668 | * features/i386/amd64.c: Regenerated. | |
1669 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
1670 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
1671 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
1672 | * regformats/i386/amd64-avx.dat: Regenerated. | |
1673 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
1674 | * regformats/i386/amd64.dat: Regenerated. | |
1675 | ||
77c501bc YQ |
1676 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
1677 | ||
1678 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
1679 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
1680 | ||
6dc8d757 AK |
1681 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
1682 | ||
1683 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
1684 | unsetenv. | |
1685 | * gnulib/aclocal.m4: Regenerate. | |
1686 | * gnulib/config.in: Regenerate. | |
1687 | * gnulib/configure: Regenerate. | |
1688 | * gnulib/import/Makefile.am: Regenerate. | |
1689 | * gnulib/import/Makefile.in: Regenerate. | |
1690 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
1691 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
1692 | * gnulib/import/m4/environ.m4: New file. | |
1693 | * gnulib/import/m4/setenv.m4: New file. | |
1694 | * gnulib/import/setenv.c: New file. | |
1695 | * gnulib/import/unsetenv.c: New file. | |
1696 | ||
266934d1 SM |
1697 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1698 | ||
1699 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
1700 | address when op is DW_OP_addr. | |
1701 | ||
03278692 TT |
1702 | 2017-07-09 Tom Tromey <tom@tromey.com> |
1703 | ||
1704 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
1705 | check and apply to outer type. | |
1706 | ||
4b654465 JB |
1707 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1708 | ||
1709 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
1710 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
1711 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
1712 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
1713 | ||
2af9fc44 JB |
1714 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1715 | ||
1716 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
1717 | ||
382b69bb JB |
1718 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1719 | ||
1720 | * corelow.c (get_core_siginfo): Remove. | |
1721 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
1722 | instead of get_core_siginfo. | |
1723 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
1724 | * gdbarch.h: Re-generate. | |
1725 | * gdbarch.c: Re-generate. | |
1726 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
1727 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
1728 | ||
6e5eab33 JB |
1729 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1730 | ||
1731 | * corelow.c (thread_section_name): Move to ... | |
1732 | * gdbcore.h (thread_section_name): ... here. | |
1733 | ||
929edea9 JB |
1734 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1735 | ||
1736 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
1737 | (struct siginfo32): New. | |
1738 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
1739 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
1740 | via ptrace(PT_LWPINFO). | |
1741 | ||
762c974a JB |
1742 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1743 | ||
1744 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
1745 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
1746 | (fbsd_get_siginfo_type): New. | |
1747 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
1748 | (_initialize_fbsd_tdep): New. | |
1749 | ||
33c5cd75 DB |
1750 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
1751 | ||
1752 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
1753 | a singular dwo_unit*) to support multiple CUs in the same way that | |
1754 | multiple TUs are supported. | |
1755 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
1756 | parsing multiple CUs from a DWO file. | |
1757 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
1758 | create_dwo_cu. | |
1759 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
1760 | htab_find, rather than comparing the signature to a singleton CU in | |
1761 | the dwo_file. | |
1762 | ||
8455d262 PA |
1763 | 2017-07-06 Pedro Alves <palves@redhat.com> |
1764 | ||
1765 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
1766 | ||
4da3eb35 PA |
1767 | 2017-07-04 Pedro Alves <palves@redhat.com> |
1768 | ||
1769 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
1770 | * gdbtypes.h (TYPE_STATIC): Delete. | |
1771 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
1772 | is_synchronized, is_native>: Delete. | |
1773 | <dummy>: Bump. | |
1774 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
1775 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
1776 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
1777 | ||
5bfd255c SM |
1778 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
1779 | ||
1780 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
1781 | ||
25c54127 EZ |
1782 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
1783 | ||
1784 | * .dir-locals.el: Automatically switch to C-style comments in | |
1785 | versions of Emacs that support the feature. | |
1786 | ||
dc4bde35 SDJ |
1787 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
1788 | Pedro Alves <palves@redhat.com> | |
1789 | ||
1790 | PR cli/21688 | |
1791 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
1792 | (process_next_line): New variable 'inline_cmd'. | |
1793 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
1794 | 'command_name_equals' and check for '!inline_cmd'. | |
1795 | ||
51ed89aa SDJ |
1796 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
1797 | ||
1798 | PR cli/21688 | |
1799 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
1800 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
1801 | and "guile" to use command_name_equals_not_inline. | |
1802 | ||
eb17d413 PA |
1803 | 2017-06-29 Pedro Alves <palves@redhat.com> |
1804 | ||
1805 | * completer.c (expression_completer): Call | |
1806 | linespec_location_completer instead of location_completer. | |
1807 | ||
195bcdd5 PA |
1808 | 2017-06-29 Pedro Alves <palves@redhat.com> |
1809 | ||
1810 | * completer.c (expression_completer): Remove code that recomputes | |
1811 | 'text' from 'word'. | |
1812 | ||
adc764e7 YQ |
1813 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
1814 | ||
1815 | * regformats/regdat.sh: Generate code with | |
1816 | "ifndef IN_PROCESS_AGENT". | |
1817 | ||
6e75794e PA |
1818 | 2017-06-28 Pedro Alves <palves@redhat.com> |
1819 | ||
1820 | * command.h: Include "common/scoped_restore.h". | |
1821 | ||
bc491f2e YQ |
1822 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
1823 | ||
1824 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
1825 | instead of obstack_grow. | |
1826 | ||
41664b45 DG |
1827 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
1828 | ||
1829 | PR gdb/21337 | |
1830 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
1831 | read_symbols. | |
1832 | ||
6da67eb1 PA |
1833 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1834 | ||
1835 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
1836 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
1837 | (completion_list_add_symbol, completion_list_add_msymbol): | |
1838 | ... these new functions. | |
1839 | (add_symtab_completions) | |
1840 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
1841 | ||
23732b1e PA |
1842 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1843 | ||
1844 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
1845 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
1846 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
1847 | dtor. | |
1848 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
1849 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
1850 | non-bitfield fields. Make minsyms_read bool. | |
1851 | * symfile.c (read_symbols): Adjust. | |
1852 | ||
a4d1e79a AH |
1853 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
1854 | ||
1855 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
1856 | (gdbsim_store_register): Likewise. | |
1857 | ||
8268c778 PA |
1858 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1859 | ||
1860 | * c-exp.y (name_obstack): Now an auto_obstack. | |
1861 | (yylex): Use auto_obstack::clear. | |
1862 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
1863 | freeing the obstack. | |
1864 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
1865 | * d-exp.y (name_obstack): Now an auto_obstack. | |
1866 | (yylex): Use auto_obstack::clear. | |
1867 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
1868 | freeing the obstack. | |
1869 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
1870 | auto_obstack. | |
1871 | * dwarf2read.c (create_addrmap_from_index) | |
1872 | (dwarf2_build_psymtabs_hard) | |
1873 | (update_enumeration_type_from_children): Likewise. | |
1874 | * gdb_obstack.h (auto_obstack): New type. | |
1875 | * go-exp.y (name_obstack): Now an auto_obstack. | |
1876 | (build_packaged_name): Use auto_obstack::clear. | |
1877 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
1878 | freeing the obstack. | |
1879 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
1880 | auto_obstack. | |
1881 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
1882 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
1883 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
1884 | reinitializing and freeing the obstack. | |
1885 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
1886 | (host_char_to_target): Use auto_obstack. | |
1887 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
1888 | * valprint.c (generic_emit_char, generic_printstr): Use | |
1889 | auto_obstack. | |
1890 | ||
db665f42 SM |
1891 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
1892 | ||
1893 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
1894 | thread. | |
1895 | (darwin_init_thread_list): Don't update dummy thread. | |
1896 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
1897 | ||
873c0814 SM |
1898 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
1899 | ||
1900 | * record-full.c (netorder16): Remove. | |
1901 | ||
8b5a7a6e SM |
1902 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
1903 | ||
1904 | * common/diagnostics.h: Define macros for GCC. | |
1905 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
1906 | * common/vec.h: Include diagnostics.h. | |
1907 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
1908 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
1909 | warning. | |
1910 | ||
d1435379 SM |
1911 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
1912 | ||
1913 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
1914 | New macro. | |
1915 | * ada-lex.l: Ignore deprecated register warnings. | |
1916 | ||
cc75e0fd SM |
1917 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
1918 | ||
1919 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
1920 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
1921 | ||
07809eaf SM |
1922 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
1923 | ||
1924 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
1925 | its own line. | |
1926 | ||
f076f034 SM |
1927 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
1928 | ||
1929 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
1930 | ||
0dd5cbc5 AH |
1931 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
1932 | ||
1933 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
1934 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
1935 | (xtensa_register_read_masked): Likewise. | |
1936 | ||
d4c6ce5b SDJ |
1937 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
1938 | ||
1939 | * common/environ.c (gdb_environ::unset): Update comment. | |
1940 | ||
16892a03 AH |
1941 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
1942 | ||
1943 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
1944 | registers. | |
1945 | ||
d7dcbefc AH |
1946 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
1947 | ||
1948 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
1949 | ||
b30ff123 YQ |
1950 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
1951 | ||
1952 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
1953 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
1954 | ||
4fa847d7 AH |
1955 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
1956 | ||
1957 | * remote.c (cached_reg): Move from here... | |
1958 | * regcache.h (cached_reg): ...to here. | |
1959 | * python/py-unwind.c (struct reg_info): Remove. | |
1960 | (cached_frame_info): Use cached_reg_t. | |
1961 | (pyuw_prev_register): Likewise. | |
1962 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
1963 | (pyuw_dealloc_cache): Free all registers. | |
1964 | ||
f4906a9a PA |
1965 | 2017-06-22 Pedro Alves <palves@redhat.com> |
1966 | Simon Marchi <simon.marchi@ericsson.com> | |
1967 | ||
1968 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
1969 | warning. | |
1970 | * common/diagnostics.h: New file. | |
1971 | ||
b45a1208 PA |
1972 | 2017-06-22 Pedro Alves <palves@redhat.com> |
1973 | ||
1974 | * common/agent.h: Add include guards. | |
1975 | ||
e4da2c61 SM |
1976 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
1977 | ||
1978 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
1979 | talk about addressable units instead of bytes. | |
1980 | ||
96160d60 SDJ |
1981 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
1982 | ||
1983 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
1984 | of '::const_iterator'. | |
1985 | ||
9a6c7d9c SDJ |
1986 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
1987 | ||
1988 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1989 | 'unittests/environ-selftests.c'. | |
1990 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
1991 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
1992 | Update code to use 'iconv_env' object. Remove call to | |
1993 | 'free_environ'. | |
1994 | * common/environ.c: Include <utility>. | |
1995 | (make_environ): Delete function. | |
1996 | (free_environ): Delete function. | |
1997 | (gdb_environ::clear): New function. | |
1998 | (gdb_environ::operator=): New function. | |
1999 | (gdb_environ::get): Likewise. | |
2000 | (environ_vector): Delete function. | |
2001 | (set_in_environ): Delete function. | |
2002 | (gdb_environ::set): New function. | |
2003 | (unset_in_environ): Delete function. | |
2004 | (gdb_environ::unset): New function. | |
2005 | (gdb_environ::envp): Likewise. | |
2006 | * common/environ.h: Include <vector>. | |
2007 | (struct gdb_environ): Delete; transform into... | |
2008 | (class gdb_environ): ... this class. | |
2009 | (free_environ): Delete prototype. | |
2010 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
2011 | environ_vector): Likewise. | |
2012 | * infcmd.c (run_command_1): Update code to call | |
2013 | 'envp' from 'gdb_environ' class. | |
2014 | (environment_info): Update code to call methods from 'gdb_environ' | |
2015 | class. | |
2016 | (unset_environment_command): Likewise. | |
2017 | (path_info): Likewise. | |
2018 | (path_command): Likewise. | |
2019 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
2020 | (inferior::inferior): Initialize 'environment' using the host's | |
2021 | information. | |
2022 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
2023 | Include "environ.h". | |
2024 | (class inferior) <environment>: Change type from 'struct | |
2025 | gdb_environ' to 'gdb_environ'. | |
2026 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
2027 | methods from 'gdb_environ' class. | |
2028 | * solib.c (solib_find_1): Likewise | |
2029 | * unittests/environ-selftests.c: New file. | |
2030 | ||
75c554cf YQ |
2031 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
2032 | ||
2033 | * features/i386/i386-linux.xml: Exchange the order of including | |
2034 | 32bit-linux.xml and 32bit-sse.xml. | |
2035 | * features/i386/i386-linux.c: Regenerated. | |
2036 | ||
72ddacb7 YQ |
2037 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
2038 | ||
2039 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
2040 | Delete copy ctor and assignment operator. | |
2041 | (tdesc_type): Likewise. | |
2042 | (tdesc_feature): Likewise. | |
2043 | (tdesc_free_reg): Remove. | |
2044 | (tdesc_create_reg): Use new. | |
2045 | (tdesc_free_type): Remove. | |
2046 | (tdesc_create_vector): Use new. | |
2047 | (tdesc_create_union): Likewise. | |
2048 | (tdesc_create_flags): Likewise. | |
2049 | (tdesc_create_enum): Likewise. | |
2050 | (tdesc_free_feature): Delete. | |
2051 | (free_target_description): Use delete. | |
2052 | ||
325c9fd4 JB |
2053 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
2054 | ||
2055 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
2056 | registers. | |
2057 | ||
16b7a719 PA |
2058 | 2017-06-19 Pedro Alves <palves@redhat.com> |
2059 | ||
2060 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
2061 | after gdb::unlinker. | |
2062 | ||
1c8e01c9 SDJ |
2063 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
2064 | ||
2065 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
2066 | gdb_environ to access an environment variable. | |
2067 | ||
ffce45d2 TP |
2068 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
2069 | ||
2070 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
2071 | gdb_byte*. | |
2072 | ||
1d4fbac9 SM |
2073 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2074 | ||
2075 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
2076 | ||
8465943a SM |
2077 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2078 | ||
2079 | * configure: Re-generate. | |
2080 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
2081 | ||
3e019bdc SM |
2082 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2083 | ||
2084 | * configure: Re-generate. | |
2085 | * warning.m4: Pass -Werror to compiler when checking for | |
2086 | supported warning flags. | |
2087 | ||
cf0dd6f0 SM |
2088 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2089 | ||
2090 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
2091 | ||
6f98355c YQ |
2092 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
2093 | Pedro Alves <palves@redhat.com> | |
2094 | Yao Qi <yao.qi@linaro.org> | |
2095 | ||
2096 | * defs.h (RequireLongest): New. | |
2097 | (extract_integer): Declare function template. | |
2098 | (extract_signed_integer): Remove the declaration, but define it | |
2099 | static inline. | |
2100 | (extract_unsigned_integer): Likewise. | |
2101 | (store_integer): Declare function template. | |
2102 | (store_signed_integer): Remove the declaration, but define it | |
2103 | static inline. | |
2104 | (store_unsigned_integer): Likewise. | |
2105 | * findvar.c (extract_integer): New function template. | |
2106 | (extract_signed_integer): Remove. | |
2107 | (extract_unsigned_integer): Remove. | |
2108 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
2109 | instantiations. | |
2110 | (store_integer): New function template. | |
2111 | (store_signed_integer): Remove. | |
2112 | (store_unsigned_integer): Remove. | |
2113 | (store_integer): Explicit instantiations. | |
2114 | * regcache.c (regcache_raw_read_signed): Update. | |
2115 | (regcache::raw_read): New function. | |
2116 | (regcache::raw_read_signed): Remove. | |
2117 | (regcache::raw_read_unsigned): Remove. | |
2118 | (regcache_raw_read_unsigned): Update. | |
2119 | (regcache_raw_write_unsigned): Update. | |
2120 | (regcache::raw_write_signed): Remove. | |
2121 | (regcache::raw_write): New function. | |
2122 | (regcache_cooked_read_signed): Update. | |
2123 | (regcache::raw_write_unsigned): Remove. | |
2124 | (regcache::cooked_read_signed): Remove. | |
2125 | (regcache_cooked_read_unsigned): Update. | |
2126 | (regcache::cooked_read_unsigned): Remove. | |
2127 | (regcache_cooked_write_signed): Update. | |
2128 | (regcache_cooked_write_unsigned): Update. | |
2129 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
2130 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
2131 | <raw_read, raw_write>: New. | |
2132 | <cooked_read_signed, cooked_write_signed>: Remove. | |
2133 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
2134 | <cooked_read, cooked_write>: New. | |
2135 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
2136 | (sh64_pseudo_register_write): Update. | |
2137 | ||
a87dc45a AK |
2138 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
2139 | ||
2140 | * arc-tdep.c (arc_disassembler_options): New variable. | |
2141 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
2142 | of default_print_insn. | |
2143 | (arc_delayed_print_insn): Set info->section when needed, | |
2144 | use default_print_insn to retrieve a disassembler. | |
2145 | ||
45159d6a SDJ |
2146 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
2147 | ||
2148 | PR gdb/21574 | |
2149 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
2150 | to mention $SHELL and startup-with-shell. | |
2151 | ||
b46c4cf0 MF |
2152 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
2153 | ||
2154 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
2155 | ||
6394c606 YQ |
2156 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
2157 | ||
2158 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
2159 | default_print_insn instead of print_insn_aarch64. | |
2160 | * arm-tdep.c (gdb_print_insn_arm): Call | |
2161 | default_print_insn instead of print_insn_big_arm | |
2162 | and print_insn_little_arm. | |
2163 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
2164 | instead of print_insn_i386. | |
2165 | * ia64-tdep.c (ia64_print_insn): Call | |
2166 | default_print_insn instead of print_insn_ia64. | |
2167 | * mips-tdep.c (gdb_print_insn_mips): Call | |
2168 | default_print_insn instead of print_insn_big_mips | |
2169 | and print_insn_little_mips. | |
2170 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
2171 | instead of print_insn_spu. | |
2172 | ||
d5722aa2 PA |
2173 | 2017-06-14 Pedro Alves <palves@redhat.com> |
2174 | ||
2175 | * ada-lang.c: Include "common/byte-vector.h". | |
2176 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
2177 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
2178 | of reserving it. | |
2179 | * common/byte-vector.h: Include "common/def-vector.h". | |
2180 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
2181 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
2182 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
2183 | * common/byte-vector.h: New file. | |
2184 | * common/def-vector.h: New file. | |
2185 | * common/default-init-alloc.h: New file. | |
2186 | * dwarf2loc.c: Include "common/byte-vector.h". | |
2187 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
2188 | instead of reserving it. | |
2189 | * dwarf2read.c: Include "common/byte-vector.h". | |
2190 | (data_buf::m_vec): Now a gdb::byte_vector. | |
2191 | * gdb_regex.c: Include "common/def-vector.h". | |
2192 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
2193 | * mi/mi-main.c: Include "common/byte-vector.h". | |
2194 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
2195 | * printcmd.c: Include "common/byte-vector.h". | |
2196 | (print_scalar_formatted): Use gdb::byte_vector. | |
2197 | * valprint.c: Include "common/byte-vector.h". | |
2198 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
2199 | gdb::byte_vector. | |
2200 | ||
01ec7a27 SM |
2201 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2202 | ||
2203 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
2204 | ||
848d9074 SM |
2205 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2206 | ||
2207 | * configure.nat: Factor out Darwin bits that are not | |
2208 | architecture-specific. Add fork-inferior.o. | |
2209 | ||
3b912944 SM |
2210 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2211 | ||
2212 | * configure.nat: Factor out AIX bits that are not | |
2213 | architecture-specific. Add fork-inferior.o. | |
2214 | ||
55acdf22 AA |
2215 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2216 | ||
2217 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
2218 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
2219 | wrappers that just call rw_pieced_value. | |
2220 | ||
f65e2044 AA |
2221 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2222 | ||
2223 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
2224 | memory piece, use write_memory_with_notification instead of | |
2225 | write_memory. | |
2226 | ||
23f945bf AA |
2227 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2228 | ||
2229 | * valops.c (read_value_memory): Change embedded_offset to | |
2230 | represent a bit offset instead of a byte offset. | |
2231 | * value.h (read_value_memory): Adjust comment. | |
2232 | ||
f236533e AA |
2233 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2234 | ||
2235 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
2236 | dest_offset_bits and source_offset_bits. | |
2237 | (write_pieced_value): Likewise. | |
2238 | ||
65d84b76 AA |
2239 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2240 | ||
2241 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
2242 | given by DW_OP_bit_piece. | |
2243 | (write_pieced_value): Likewise. | |
2244 | ||
242d31ab AA |
2245 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2246 | ||
2247 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
2248 | some other preparations to the places where sufficient information | |
2249 | is available. | |
2250 | (write_pieced_value): Likewise. | |
2251 | ||
03c8af18 AA |
2252 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2253 | ||
2254 | * dwarf2loc.c (bits_to_bytes): New function. | |
2255 | (read_pieced_value): Fix offset calculations for register pieces | |
2256 | on big-endian targets. | |
2257 | (write_pieced_value): Likewise. | |
2258 | ||
840989c1 AA |
2259 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2260 | ||
2261 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
2262 | (write_pieced_value): Likewise. | |
2263 | ||
359b19bb AA |
2264 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2265 | ||
2266 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
2267 | transfer the source value's least significant bits, instead of its | |
2268 | lowest-addressed ones. Rename type_len to max_offset. | |
2269 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
2270 | applicable. | |
2271 | ||
07c9ca3b AA |
2272 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2273 | ||
2274 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
2275 | truncate full bytes from dest_offset_bits before using it as an | |
2276 | offset into the buffer. | |
2277 | ||
f1cc9874 AA |
2278 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2279 | ||
2280 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
2281 | byte-wise check. | |
2282 | ||
cdaac320 AA |
2283 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2284 | ||
2285 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
2286 | calculation of this_size. | |
2287 | ||
af547a96 AA |
2288 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2289 | ||
2290 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
2291 | when targeting a bit-field. | |
2292 | (write_pieced_value): Likewise. | |
2293 | ||
ddd7882a AA |
2294 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2295 | ||
2296 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
2297 | (allocate_piece_closure): Drop addr_size parameter. | |
2298 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
2299 | allocate_piece_closure. | |
2300 | ||
e9352324 AA |
2301 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2302 | ||
2303 | PR gdb/21226 | |
2304 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
2305 | the LSB end, independent of endianness. | |
2306 | ||
d5d1163e AA |
2307 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2308 | ||
2309 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
2310 | size capping. | |
2311 | ||
032bb6ea YQ |
2312 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
2313 | ||
2314 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
2315 | mips-linux-tdep.c. | |
2316 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
2317 | to mips-linux-tdep.c. | |
2318 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
2319 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
2320 | functions. | |
2321 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
2322 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
2323 | (tdesc_mips64_dsp_linux): Declare. | |
2324 | ||
f12f6bad TT |
2325 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2326 | ||
2327 | * valprint.h (val_print_type_code_int): Remove. | |
2328 | * valprint.c (generic_val_print_int): Always call | |
2329 | val_print_scalar_formatted. | |
2330 | (val_print_type_code_int): Remove. | |
2331 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
2332 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
2333 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
2334 | * ada-valprint.c (ada_val_print_num): Use | |
2335 | val_print_scalar_formatted. | |
2336 | ||
d9109c80 TT |
2337 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2338 | ||
2339 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
2340 | Don't convert scalars to LONGEST. | |
2341 | ||
4ac0cb1c TT |
2342 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2343 | ||
2344 | PR exp/16225: | |
2345 | * valprint.h (print_decimal_chars): Update. | |
2346 | * valprint.c (maybe_negate_by_bytes): New function. | |
2347 | (print_decimal_chars): Add "is_signed" argument. | |
2348 | * printcmd.c (print_scalar_formatted): Update. | |
2349 | ||
30a25466 TT |
2350 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2351 | ||
2352 | PR exp/16225: | |
2353 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
2354 | * valprint.c (val_print_type_code_int): Update. | |
2355 | (print_binary_chars): Add "zero_pad" argument. | |
2356 | (emit_octal_digit): New function. | |
2357 | (print_octal_chars): Don't zero-pad. | |
2358 | (print_decimal_chars): Likewise. | |
2359 | (print_hex_chars): Add "zero_pad" argument. | |
2360 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
2361 | * regcache.c (regcache::dump): Update. | |
2362 | * printcmd.c (print_scalar_formatted): Update. | |
2363 | * infcmd.c (default_print_one_register_info): Update. | |
2364 | ||
b3464d03 PA |
2365 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2366 | Alan Hayward <alan.hayward@arm.com> | |
2367 | ||
2368 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
2369 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
2370 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
2371 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
2372 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
2373 | ||
4b76cda9 PA |
2374 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2375 | ||
2376 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
2377 | symtab_index_entry instead of vector of | |
2378 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
2379 | whether an element's name is NULL instead of checking whether the | |
2380 | element itself is NULL. | |
2381 | (find_slot): Change return type. Adjust. | |
2382 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
2383 | (write_hash_table): Adjust. | |
2384 | ||
e8f8bcb3 PA |
2385 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2386 | ||
2387 | * dwarf2read.c (recursively_count_psymbols): New function. | |
2388 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
2389 | pass estimate size of psyms_seen to unordered_set's ctor. | |
2390 | ||
70a1152b PA |
2391 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2392 | ||
2393 | * dwarf2read.c (write_hash_table): Check if key already exists | |
2394 | before emplacing. | |
2395 | ||
c2f134ac PA |
2396 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2397 | ||
2398 | * dwarf2read.c (data_buf::append_space): Rename to... | |
2399 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
2400 | (data_buf::append_uint): New method. | |
2401 | (add_address_entry, write_one_signatured_type) | |
2402 | (write_psymtabs_to_index): Use it. | |
2403 | ||
a81e6d4d PA |
2404 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2405 | ||
2406 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
2407 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
2408 | (data_buf::file_write): Call ::fwrite directly. | |
2409 | ||
6fd931f2 PA |
2410 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2411 | ||
2412 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
2413 | std::vector::erase. | |
2414 | ||
bc8f2430 JK |
2415 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2416 | ||
2417 | Code cleanup: C++ify .gdb_index producer. | |
2418 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
2419 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
2420 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
2421 | (create_strtab, add_string): Remove. | |
2422 | (file_write, data_buf): New. | |
2423 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
2424 | (struct mapped_symtab): Use std::vector for data. | |
2425 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
2426 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
2427 | Remove. | |
2428 | (find_slot): Change return type. Update it to the new data structures. | |
2429 | (hash_expand, add_index_entry): Update it to the new data structures. | |
2430 | (offset_type_compare): Remove. | |
2431 | (uniquify_cu_indices): Update it to the new data structures. | |
2432 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
2433 | (add_indices_to_cpool): Remove. | |
2434 | (write_hash_table): Update it to the new data structures. | |
2435 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
2436 | (eq_psymtab_cu_index): Remove. | |
2437 | (psym_index_map): New typedef. | |
2438 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
2439 | reference and std::unordered_map for cu_index_htab. | |
2440 | (add_address_entry, add_address_entry_worker, write_address_map) | |
2441 | (write_psymbols): Update it to the new data structures. | |
2442 | (write_obstack): Remove. | |
2443 | (struct signatured_type_index_data): Change types_list to a data_buf | |
2444 | reference and psyms_seen to a std::unordered_set reference. | |
2445 | (write_one_signatured_type, recursively_write_psymbols) | |
2446 | (write_psymtabs_to_index): Update it to the new data structures. | |
2447 | ||
c4dcb155 SM |
2448 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
2449 | ||
2450 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
2451 | separate-debug-file commands. | |
2452 | * symfile.h (separate_debug_file_debug): New global. | |
2453 | * symfile.c (separate_debug_file_debug): New global. | |
2454 | (separate_debug_file_exists, find_separate_debug_file): Add | |
2455 | debug output. | |
2456 | (_initialize_symfile): Add "set debug separate-debug-file" | |
2457 | command. | |
2458 | * build-id.c (build_id_to_debug_bfd, | |
2459 | find_separate_debug_file_by_buildid): Add debug output. | |
2460 | ||
6d45d4b4 SM |
2461 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
2462 | ||
2463 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
2464 | * gdbarch.h, gdbarch.c: Re-generate. | |
2465 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
2466 | displaced_step_free_closure. | |
2467 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
2468 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
2469 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
2470 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
2471 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
2472 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
2473 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
2474 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
2475 | * infrun.c (displaced_step_clear): Call xfree instead of | |
2476 | gdbarch_displaced_step_free_closure. | |
2477 | ||
2f91880f SDJ |
2478 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
2479 | ||
2480 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
2481 | NULL". | |
2482 | ||
b8b6e72f AH |
2483 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2484 | ||
2485 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
2486 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
2487 | (mn10300_push_dummy_call): Likewise. | |
2488 | ||
5369082e AH |
2489 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2490 | ||
2491 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
2492 | ||
ff4ca5ac AH |
2493 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2494 | ||
2495 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
2496 | ||
aefd8b33 SDJ |
2497 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2498 | ||
2499 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
2500 | able to start inferiors using a shell. | |
2501 | (New remote packets): Announce new packet "QStartupWithShell". | |
2502 | * remote.c: Add PACKET_QStartupWithShell. | |
2503 | (extended_remote_create_inferior): Handle new | |
2504 | PACKET_QStartupWithShell. | |
2505 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
2506 | PACKET_QStartupWithShell. | |
2507 | (_initialize_remote): Call "add_packet_config_cmd" for | |
2508 | QStartupShell. | |
2509 | ||
2090129c SDJ |
2510 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2511 | Pedro Alves <palves@redhat.com> | |
2512 | ||
2513 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
2514 | and "nat/fork-inferior.h". | |
2515 | * common/common-inferior.h: New file, with contents from | |
2516 | "gdb/inferior.h". | |
2517 | * commom/common-utils.c: Include "common-utils.h". | |
2518 | (stringify_argv): New function. | |
2519 | * common/common-utils.h (stringify_argv): New prototype. | |
2520 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
2521 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
2522 | * corefile.c (get_exec_file): Update comment. | |
2523 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
2524 | instead of "startup_inferior". | |
2525 | (darwin_create_inferior): Call "add_thread_silent" after | |
2526 | "fork_inferior". | |
2527 | * fork-child.c: Cleanup unnecessary includes. | |
2528 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
2529 | (environ): Likewise. | |
2530 | (exec_wrapper): Initialize. | |
2531 | (get_exec_wrapper): New function. | |
2532 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
2533 | "breakup_args_for_exec". | |
2534 | (escape_bang_in_quoted_argument): Move to | |
2535 | "common/common-fork-child.c". | |
2536 | (saved_ui): New variable. | |
2537 | (prefork_hook): New function. | |
2538 | (postfork_hook): Likewise. | |
2539 | (postfork_child_hook): Likewise. | |
2540 | (gdb_startup_inferior): Likewise. | |
2541 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
2542 | function to support gdbserver. | |
2543 | (startup_inferior): Likewise. | |
2544 | * gdbcore.h (get_exec_file): Remove declaration. | |
2545 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
2546 | instead of "startup_inferior". Call "add_thread_silent" after | |
2547 | "fork_inferior". | |
2548 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
2549 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
2550 | instead of "startup_inferior". Call "add_thread_silent" after | |
2551 | "fork_inferior". | |
2552 | * inferior.h: Include "common-inferior.h". | |
2553 | (trace_start_error): Move to "common/common-utils.h". | |
2554 | (trace_start_error_with_name): Likewise. | |
2555 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
2556 | (startup_inferior): Likewise. | |
2557 | (gdb_startup_inferior): New prototype. | |
2558 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
2559 | * nat/fork-inferior.h: New file. | |
2560 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
2561 | instead of "startup_inferior". Call "add_thread_silent" after | |
2562 | "fork_inferior". | |
2563 | * target.h (target_terminal_init): Move prototype to | |
2564 | "target/target.h". | |
2565 | (target_terminal_inferior): Likewise. | |
2566 | (target_terminal_ours): Likewise. | |
2567 | * target/target.h (target_terminal_init): New prototype, moved | |
2568 | from "target.h". | |
2569 | (target_terminal_inferior): Likewise. | |
2570 | (target_terminal_ours): Likewise. | |
2571 | * utils.c (gdb_flush_out_err): New function. | |
2572 | ||
043a4934 SDJ |
2573 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2574 | ||
2575 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
2576 | * common/common-gdbthread.h: New file, with parts from | |
2577 | "gdb/gdbthread.h". | |
2578 | * gdbthread.h: Include "common-gdbthread.h". | |
2579 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
2580 | ||
15652511 SDJ |
2581 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2582 | ||
2583 | * Makefile.in (SFILES): Add "common/job-control.c". | |
2584 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
2585 | (COMMON_OBS): Add "job-control.o". | |
2586 | * common/job-control.c: New file, with contents from | |
2587 | "gdb/inflow.c". | |
2588 | * common/job-control.h: New file, with contents from "terminal.h". | |
2589 | * fork-child.c: Include "job-control.h". | |
2590 | * inflow.c: Include "job-control.h". | |
2591 | (gdb_setpgid): Move to "common/common-inflow.c". | |
2592 | (_initialize_inflow): Move setting of "job_control" to | |
2593 | "handle_job_control". | |
2594 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
2595 | (gdb_setpgid): Likewise. | |
2596 | * top.c: Include "job_control.h". | |
2597 | * utils.c: Likewise. | |
2598 | (job_control): Moved to "job-control.c". | |
2599 | ||
2d7cc5c7 PA |
2600 | 2017-06-07 Pedro Alves <palves@redhat.com> |
2601 | ||
2602 | * Makefile.in (SFILES): Add gdb_regex.c. | |
2603 | (COMMON_OBS): Add gdb_regex.o. | |
2604 | * ada-lang.c (ada_add_standard_exceptions) | |
2605 | (ada_add_exceptions_from_frame, name_matches_regex) | |
2606 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
2607 | parameter type to compiled_regex. Adjust. | |
2608 | (ada_exceptions_list): Use compiled_regex. | |
2609 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
2610 | std::unique_ptr<compiled_regex>. | |
2611 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
2612 | call. | |
2613 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
2614 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
2615 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
2616 | std::unique_ptr<compiled_regex>. | |
2617 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
2618 | (check_status_catch_solib): Adjust to use compiled_regex. | |
2619 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
2620 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
2621 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
2622 | compiled_regex reference. Adjust to use it. | |
2623 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
2624 | declaration. Include "gdb_regex.h". | |
2625 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
2626 | * gdb_regex.c: New file. | |
2627 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
2628 | declarations. | |
2629 | (class compiled_regex): New. | |
2630 | * linux-tdep.c: Include "common/gdb_optional.h". | |
2631 | (struct mapping_regexes): New, factored out from | |
2632 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
2633 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
2634 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
2635 | * probe.c: Include "common/gdb_optional.h". | |
2636 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
2637 | cleanups. | |
2638 | * skip.c: Include "common/gdb_optional.h". | |
2639 | (skiplist_entry::compiled_function_regexp): Now a | |
2640 | gdb::optional<compiled_regex>. | |
2641 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
2642 | (free_skiplist_entry): Remove regfree call. | |
2643 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
2644 | compiled_regex and gdb::optional. | |
2645 | * symtab.c: Include "common/gdb_optional.h". | |
2646 | (search_symbols): Use compiled_regex and gdb::optional. | |
2647 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
2648 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
2649 | to gdb_regex.c. | |
2650 | ||
50d6adef AH |
2651 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2652 | ||
2653 | * regcache.c (regcache::save): Avoid buffer use. | |
2654 | (regcache::dump): Likewise. | |
2655 | ||
4a8a33c8 AH |
2656 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2657 | ||
2658 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
2659 | MAX_REGISTER_SIZE. | |
2660 | (sh_pseudo_register_write): Likewise. | |
2661 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
2662 | (sh64_pseudo_register_write): Likewise | |
2663 | ||
d1be909e AH |
2664 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2665 | ||
2666 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
2667 | V_REGISTER_SIZE. | |
2668 | (aarch64_pseudo_read_value): Likewise. | |
2669 | (aarch64_pseudo_write): Likewise. | |
2670 | ||
f4a65042 YQ |
2671 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
2672 | ||
2673 | * regformats/regdef.h (set_register_cache): Remove the | |
2674 | declaration. | |
2675 | ||
9f7fb0aa AH |
2676 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2677 | ||
2678 | * frame.c (frame_unwind_register_signed): Use | |
2679 | frame_unwind_register_value. | |
2680 | ||
e1e01040 PA |
2681 | 2017-06-06 Pedro Alves <palves@redhat.com> |
2682 | ||
2683 | PR breakpoints/21553 | |
2684 | * breakpoint.c (create_breakpoints_sal_default) | |
2685 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
2686 | gdb::unique_xmalloc_ptr for string parameters. | |
2687 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
2688 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
2689 | (base_breakpoint_create_breakpoints_sal) | |
2690 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
2691 | (strace_marker_create_breakpoints_sal) | |
2692 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
2693 | string parameters. | |
2694 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
2695 | gdb::unique_xmalloc_ptr for string parameters. | |
2696 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
2697 | parameters. | |
2698 | ||
fbe654c8 AH |
2699 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2700 | ||
2701 | * alpha-tdep.c (alpha_register_to_value): Use | |
2702 | get_frame_register_value. | |
2703 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
2704 | ||
ae0d01d6 AH |
2705 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2706 | ||
2707 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
2708 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
2709 | (ia64_value_to_register): Likewise. | |
2710 | (ia64_extract_return_value): Likewise. | |
2711 | (ia64_store_return_value): Likewise. | |
2712 | (ia64_push_dummy_call): Likewise. | |
2713 | ||
49cf576c JB |
2714 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
2715 | ||
2716 | GDB 8.0 released. | |
2717 | ||
26b6a6ab SM |
2718 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
2719 | ||
2720 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
2721 | ||
22827c51 SM |
2722 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
2723 | ||
2724 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
2725 | parameter. | |
2726 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
2727 | ||
0e05cf3a SM |
2728 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
2729 | ||
2730 | * event-loop.c (poll_timers): Unallocate timer using delete | |
2731 | instead of xfree. | |
2732 | ||
c1fc2657 SM |
2733 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2734 | ||
2735 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
2736 | (struct breakpoint) <~breakpoint>: New. | |
2737 | (struct watchpoint): Inherit from breakpoint. | |
2738 | <~watchpoint>: New. | |
2739 | <base>: Remove. | |
2740 | (struct tracepoint): Inherit from breakpoint. | |
2741 | <base>: Remove. | |
2742 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
2743 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
2744 | <~longjmp_breakpoint>: New. | |
2745 | <base>: Remove. | |
2746 | (new_breakpoint_from_type): Remove casts. | |
2747 | (watchpoint_in_thread_scope): Remove reference to base field. | |
2748 | (watchpoint_del_at_next_stop): Likewise. | |
2749 | (update_watchpoint): Likewise. | |
2750 | (watchpoint_check): Likewise. | |
2751 | (bpstat_check_watchpoint): Likewise. | |
2752 | (set_longjmp_breakpoint): Likewise. | |
2753 | (struct fork_catchpoint): Inherit from breakpoint. | |
2754 | <base>: Remove. | |
2755 | (struct solib_catchpoint): Inherit from breakpoint. | |
2756 | <~solib_catchpoint>: New. | |
2757 | <base>: Remove. | |
2758 | (dtor_catch_solib): Change to ... | |
2759 | (solib_catchpoint::~solib_catchpoint): ... this. | |
2760 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
2761 | (add_solib_catchpoint): Likewise. | |
2762 | (create_fork_vfork_event_catchpoint): Likewise. | |
2763 | (struct exec_catchpoint): Inherit from breakpoint. | |
2764 | <~exec_catchpoint>: New. | |
2765 | <base>: Remove. | |
2766 | (dtor_catch_exec): Change to ... | |
2767 | (exec_catchpoint::~exec_catchpoint): ... this. | |
2768 | (dtor_watchpoint): Change to ... | |
2769 | (watchpoint::~watchpoint): ... this. | |
2770 | (watch_command_1): Remove reference to base field. | |
2771 | (catch_exec_command_1): Likewise. | |
2772 | (base_breakpoint_dtor): Change to ... | |
2773 | (breakpoint::~breakpoint): ... this. | |
2774 | (base_breakpoint_ops): Remove dtor field value. | |
2775 | (longjmp_bkpt_dtor): Change to ... | |
2776 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
2777 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
2778 | field. | |
2779 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
2780 | (create_tracepoint_from_upload): Remove reference to base field. | |
2781 | (trace_pass_set_count): Likewise. | |
2782 | (initialize_breakpoint_ops): Don't initialize | |
2783 | momentary_breakpoint_ops, don't set dtors. | |
2784 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
2785 | <~ada_catchpoint>: New. | |
2786 | <base>: Remove. | |
2787 | (create_excep_cond_exprs): Remove reference to base field. | |
2788 | (dtor_exception): Change to ... | |
2789 | (ada_catchpoint::~ada_catchpoint): ... this. | |
2790 | (dtor_catch_exception): Remove. | |
2791 | (dtor_catch_exception_unhandled): Remove. | |
2792 | (dtor_catch_assert): Remove. | |
2793 | (create_ada_exception_catchpoint): Remove reference to base | |
2794 | field. | |
2795 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
2796 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
2797 | breakpoint. | |
2798 | <~signal_catchpoint>: New. | |
2799 | <base>: Remove. | |
2800 | (signal_catchpoint_dtor): Change to ... | |
2801 | (signal_catchpoint::~signal_catchpoint): ... this. | |
2802 | (create_signal_catchpoint): Remove reference to base field. | |
2803 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
2804 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
2805 | from breakpoint. | |
2806 | <~syscall_catchpoint>: New. | |
2807 | <base>: Remove. | |
2808 | (dtor_catch_syscall): Change to ... | |
2809 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
2810 | (create_syscall_event_catchpoint): Remove reference to base | |
2811 | field. | |
2812 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
2813 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
2814 | from breakpoint. | |
2815 | <~exception_catchpoint>: New. | |
2816 | <base>: Remove. | |
2817 | (dtor_exception_catchpoint): Change to ... | |
2818 | (exception_catchpoint::~exception_catchpoint): ... this. | |
2819 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
2820 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
2821 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
2822 | field. | |
2823 | * remote.c (remote_get_tracepoint_status): Likewise. | |
2824 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
2825 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
2826 | * tracepoint.c (actions_command): Likewise. | |
2827 | (validate_actionline): Likewise. | |
2828 | (tfind_1): Likewise. | |
2829 | (get_traceframe_location): Likewise. | |
2830 | (find_matching_tracepoint_location): Likewise. | |
2831 | (parse_tracepoint_status): Likewise. | |
2832 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
2833 | ||
3b0871f4 SM |
2834 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2835 | ||
2836 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
2837 | (is_tracepoint_type): Change return type to bool. | |
2838 | (is_longjmp_type): New function. | |
2839 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
2840 | (set_raw_breakpoint_without_location): Use | |
2841 | new_breakpoint_from_type. | |
2842 | (set_raw_breakpoint): Likewise. | |
2843 | ||
a5e364af SM |
2844 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2845 | ||
2846 | * breakpoint.c (new_breakpoint_from_type): New function. | |
2847 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
2848 | unique_ptr. | |
2849 | (create_breakpoint): Likewise. | |
2850 | ||
ae3b3f34 SM |
2851 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
2852 | ||
2853 | * memattr.c (mem_info_command): Rename to ... | |
2854 | (info_mem_command): ... this. | |
2855 | (mem_enable_command): Rename to ... | |
2856 | (enable_mem_command): ... this. | |
2857 | (mem_disable_command): Rename to ... | |
2858 | (disable_mem_command): ... this. | |
2859 | (mem_delete_command): Rename to ... | |
2860 | (delete_mem_command): ... this. | |
2861 | (_initialize_mem): Adjust function names. | |
2862 | ||
13ace077 MM |
2863 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
2864 | ||
2865 | * btrace.c (handle_pt_insn_events): New. | |
2866 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
2867 | STATUS. Split into this and ... | |
2868 | (handle_pt_insn_event_flags): ... this. | |
2869 | ||
c56ccc05 MM |
2870 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
2871 | ||
2872 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
2873 | and struct pt_insn.resynced. | |
2874 | * configure: Regenerated. | |
2875 | * config.in: Regenerated. | |
2876 | ||
08c3f6d2 TW |
2877 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2878 | ||
2879 | * btrace.c (ftrace_find_call_by_number): New function. | |
2880 | (ftrace_new_function): Store objects, not pointers. | |
2881 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
2882 | ftrace_new_gap, ftrace_update_function, | |
2883 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
2884 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
2885 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
2886 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
2887 | btrace_thread_info::functions now storing objects. | |
2888 | * btrace.h (struct btrace_thread_info): Add constructor. | |
2889 | (struct btrace_thread_info) <functions>: Make std::vector. | |
2890 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
2891 | Initialize with default values. | |
2892 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
2893 | btrace_thread_info::functions now storing objects. | |
2894 | ||
8ffd39f2 TW |
2895 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2896 | ||
2897 | * btrace.c: Remove typedef bfun_s. | |
2898 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
2899 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
2900 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
2901 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
2902 | instead of gdb VEC. | |
2903 | ||
4aeb0dfc TW |
2904 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2905 | ||
2906 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
2907 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
2908 | with btrace_thread_info::next_segment and | |
2909 | btrace_thread_info::prev_segment. | |
2910 | * btrace.h: Remove struct btrace_func_link. | |
2911 | (struct btrace_function): Replace pair of function segment pointers | |
2912 | with pair of indices. | |
2913 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
2914 | btpy_call_next_sibling): Replace references to | |
2915 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
2916 | btrace_thread_info::prev_segment. | |
2917 | * record-btrace.c (record_btrace_frame_this_id): Use | |
2918 | btrace_find_call_by_number. | |
2919 | ||
eb8f2b9c TW |
2920 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2921 | ||
2922 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
2923 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
2924 | btrace_insn_next, btrace_insn_prev): Remove references to | |
2925 | btrace_thread_info::flow. | |
2926 | * btrace.h (struct btrace_function): Remove FLOW. | |
2927 | ||
42bfe59e TW |
2928 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2929 | ||
2930 | * btrace.c (ftrace_find_call_by_number): New function. | |
2931 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
2932 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
2933 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
2934 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
2935 | index. | |
2936 | * btrace.h (struct btrace_function): Turn UP into an index. | |
2937 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
2938 | as an index. | |
2939 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
2940 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
2941 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
2942 | ||
b54b03bd TW |
2943 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2944 | ||
2945 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
2946 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
2947 | ftrace_update_function, ftrace_compute_global_level_offset, | |
2948 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
2949 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
2950 | btrace_insn_end, btrace_is_empty): Remove references to | |
2951 | btrace_thread_info::begin and btrace_thread_info::end. | |
2952 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
2953 | (struct btrace_thread_info) <functions>: Adjust comment. | |
2954 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
2955 | btrace_thread_info::begin. | |
2956 | ||
8286623c TW |
2957 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2958 | ||
2959 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
2960 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
2961 | ftrace_update_function): Remove arguments that implicitly were always | |
2962 | BTINFO->END. | |
2963 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
2964 | Don't pass BTINFO->END. | |
2965 | ||
a0f1b963 TW |
2966 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2967 | ||
2968 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
2969 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
2970 | btrace_find_insn_by_number): Replace function segment pointer with | |
2971 | index. | |
2972 | (btrace_insn_cmp): Simplify. | |
2973 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
2974 | insn_index. Replace function segment pointer with index into function | |
2975 | segment vector. | |
2976 | * record-btrace.c (record_btrace_call_history): Replace function | |
2977 | segment pointer use with index. | |
2978 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
2979 | vector. | |
2980 | (record_btrace_set_replay): Remove defunc't safety check. | |
2981 | ||
f158f208 TW |
2982 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2983 | ||
2984 | * btrace.c (btrace_ends_with_single_insn): New function. | |
2985 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
2986 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
2987 | btrace_find_call_by_number): Use index into call segment vector | |
2988 | instead of pointer. | |
2989 | (btrace_call_cmp): Simplify. | |
2990 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
2991 | pointer with index into vector. | |
2992 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
2993 | pointer. | |
2994 | ||
521103fd TW |
2995 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2996 | ||
2997 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
2998 | btrace_find_insn_by_number): Add btinfo to iterator. | |
2999 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
3000 | ||
17b89b34 TW |
3001 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3002 | ||
3003 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
3004 | and save pointers directly. | |
3005 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
3006 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
3007 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
3008 | changed signature of functions. | |
3009 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
3010 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
3011 | vector of btrace_functions. | |
3012 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
3013 | ||
2b51eddc TW |
3014 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3015 | ||
3016 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
3017 | Replace VEC_* with std::vector functions. | |
3018 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
3019 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
3020 | ||
db6be0d5 SM |
3021 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
3022 | ||
3023 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
3024 | "Removed targets and native configurations" up. Merge duplicate | |
3025 | "New commands" sub-sections. Add "New options" sub-sections. | |
3026 | ||
b057297a AH |
3027 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
3028 | ||
3029 | * defs.h (copy_integer_to_size): New declaration. | |
3030 | * findvar.c (copy_integer_to_size): New function. | |
3031 | (do_cint_test): New selftest function. | |
3032 | (copy_integer_to_size_test): Likewise. | |
3033 | (_initialize_findvar): Likewise. | |
3034 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
3035 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
3036 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
3037 | (mips64_fill_gregset): Use raw_collect_integer | |
3038 | (mips64_fill_fpregset): Use raw_supply_integer. | |
3039 | * regcache.c (regcache::raw_supply_integer): New function. | |
3040 | (regcache::raw_collect_integer): Likewise. | |
3041 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
3042 | (regcache::raw_collect_integer): Likewise. | |
3043 | ||
b77b02a5 YQ |
3044 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3045 | ||
3046 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
3047 | (COMMON_OBS): Add gdbarch-selftests.o. | |
3048 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
3049 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
3050 | * gdbarch-selftests.c: New file. | |
3051 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
3052 | GDB_SELF_TEST. | |
3053 | <raw_write>: Likewise. | |
3054 | ||
e521e87e YQ |
3055 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3056 | ||
3057 | * regcache.c (current_regcache): Change it to | |
3058 | regcache::current_regcache. | |
3059 | (regcache_observer_target_changed): Update. | |
3060 | (regcache_thread_ptid_changed): Make it a regcache static | |
3061 | method. | |
3062 | (regcache_thread_ptid_changed): Update. | |
3063 | (class regcache_access): New. | |
3064 | (current_regcache_test): Update. | |
3065 | (_initialize_regcache): Update. | |
3066 | * regcache.h: Include forward_list. | |
3067 | (regcache): Declare regcache_thread_ptid_changed and declare | |
3068 | registers_changed_ptid as friend. | |
3069 | ||
d8e07dda YQ |
3070 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3071 | ||
3072 | * i387-tdep.c (i387_register_to_value): Use register_size | |
3073 | instead of TYPE_LENGTH. | |
3074 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
3075 | ||
8c8f9122 YQ |
3076 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3077 | ||
3078 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
3079 | code isn't TYPE_CODE_FLT. | |
3080 | ||
68fce50f YQ |
3081 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3082 | ||
3083 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
3084 | length is 4. | |
3085 | (alpha_register_to_value): Remove type length check. | |
3086 | (alpha_value_to_register): Likewise. | |
3087 | ||
88954b49 YQ |
3088 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3089 | ||
3090 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
3091 | TYPE_CODE_FLT. | |
3092 | ||
e3ec9b69 YQ |
3093 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3094 | ||
3095 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
3096 | TYPE_CODE_FLT or not. | |
3097 | ||
cdd238da YQ |
3098 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3099 | ||
3100 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
3101 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
3102 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
3103 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
3104 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
3105 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
3106 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
3107 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
3108 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
3109 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
3110 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
3111 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
3112 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
3113 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
3114 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
3115 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
3116 | ||
7a3929c4 YQ |
3117 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3118 | ||
3119 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
3120 | and reinit_frame_cache. | |
3121 | * selftest.c (run_self_tests): Likewise. | |
3122 | ||
f4985dba YQ |
3123 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3124 | ||
3125 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
3126 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3127 | ||
ab20fa4a YQ |
3128 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3129 | ||
3130 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
3131 | set_gdbarch_print_insn. | |
3132 | ||
f532ab94 YQ |
3133 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3134 | ||
3135 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
3136 | set_gdbarch_print_insn. | |
3137 | ||
39503f82 YQ |
3138 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3139 | ||
3140 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
3141 | set_gdbarch_print_insn. | |
3142 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
3143 | * arch-utils.c: include dis-asm.h. | |
3144 | (default_print_insn): New function. | |
3145 | * arch-utils.h (default_print_insn): Declare. | |
3146 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3147 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
3148 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
3149 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3150 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
3151 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
3152 | * gdbarch.sh (print_insn): Use default_print_insn. | |
3153 | * gdbarch.c: Regenerated. | |
3154 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
3155 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
3156 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
3157 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
3158 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
3159 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
3160 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3161 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
3162 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
3163 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
3164 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
3165 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
3166 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
3167 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
3168 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
3169 | * nios2-tdep.c (nios2_print_insn): Remove. | |
3170 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3171 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
3172 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
3173 | * score-tdep.c (score_print_insn): Remove. | |
3174 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3175 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
3176 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
3177 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
3178 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
3179 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3180 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
3181 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
3182 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
3183 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
3184 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
3185 | ||
f7241d4f JB |
3186 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
3187 | ||
3188 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
3189 | (MIPS_FP0_REGNUM): Remove. | |
3190 | (MIPS_FSR_REGNUM): Remove. | |
3191 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
3192 | (mips_fbsd_supply_gregs): Likewise. | |
3193 | (mips_fbsd_collect_fpregs): Likewise. | |
3194 | (mips_fbsd_collect_gregs): Likewise. | |
3195 | ||
d489d81d JB |
3196 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
3197 | ||
3198 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
3199 | (getpfpregs_supplies): New function. | |
3200 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
3201 | getfpregs_supplies. | |
3202 | (mips_fbsd_store_inferior_registers): Likewise. | |
3203 | ||
e11b3cdc PA |
3204 | 2017-05-22 Pedro Alves <palves@redhat.com> |
3205 | ||
3206 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
3207 | maintainer. | |
3208 | ||
0f068fb5 AH |
3209 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
3210 | ||
3211 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
3212 | (store_register): Likewise. | |
3213 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
3214 | (get_decimal_float_return_value): Likewise. | |
3215 | (do_ppc_sysv_return_value): Likewise. | |
3216 | (ppc64_sysv_abi_push_integer): Likewise. | |
3217 | (ppc64_sysv_abi_push_freg): Likewise. | |
3218 | (ppc64_sysv_abi_return_value_base): Likewise. | |
3219 | (ppc64_sysv_abi_return_value): Likewise. | |
3220 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
3221 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
3222 | * rs6000-nat.c: Likewise. | |
3223 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
3224 | (rs6000_value_to_register): Likewise. | |
3225 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
3226 | ||
e6cf65f2 TT |
3227 | 2017-05-21 Tom Tromey <tom@tromey.com> |
3228 | ||
3229 | PR rust/21466: | |
3230 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
3231 | arrays as "[T]", not "[T; ]". | |
3232 | ||
43cc5389 TT |
3233 | 2017-05-19 Tom Tromey <tom@tromey.com> |
3234 | ||
3235 | PR rust/21484: | |
3236 | * rust-lang.c (exp_descriptor_rust): New function. | |
3237 | (rust_language_defn): Use it. | |
3238 | * p-lang.c (pascal_language_defn): Update. | |
3239 | * opencl-lang.c (opencl_language_defn): Update. | |
3240 | * objc-lang.c (objc_language_defn): Update. | |
3241 | * m2-lang.c (m2_language_defn): Update. | |
3242 | * language.h (struct language_defn) | |
3243 | <la_watch_location_expression>: New member. | |
3244 | * language.c (unknown_language_defn, auto_language_defn) | |
3245 | (local_language_defn): Update. | |
3246 | * go-lang.c (go_language_defn): Update. | |
3247 | * f-lang.c (f_language_defn): Update. | |
3248 | * d-lang.c (d_language_defn): Update. | |
3249 | * c-lang.h (c_watch_location_expression): Declare. | |
3250 | * c-lang.c (c_watch_location_expression): New function. | |
3251 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
3252 | (minimal_language_defn): Use it. | |
3253 | * breakpoint.c (watch_command_1): Call | |
3254 | la_watch_location_expression. | |
3255 | * ada-lang.c (ada_language_defn): Update. | |
3256 | ||
7a6e7fcc RO |
3257 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3258 | ||
6e7e1744 RO |
3259 | PR tui/21482 |
3260 | * gdb_curses.h (NOMACROS): Define. | |
3261 | (NCURSES_NOMACROS): Define. | |
3262 | ||
3263 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
3264 | ||
3265 | PR tui/21482 | |
7a6e7fcc RO |
3266 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
3267 | arg to char *. | |
3268 | * tui/tui-wingeneral.c (box_win): Likewise. | |
3269 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
3270 | (tui_show_source_line): Likewise. | |
3271 | (tui_show_exec_info_content): Likewise. | |
3272 | ||
1933fd8e VM |
3273 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
3274 | ||
3275 | * sparc-tdep.c (sparc_structure_return_p) | |
3276 | (sparc_arg_on_registers_p): New functions. | |
3277 | (sparc32_store_arguments): Use them. | |
3278 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
3279 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
3280 | Handle TYPE_CODE_ARRAY. | |
3281 | ||
21873064 YQ |
3282 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
3283 | ||
3284 | * cli/cli-decode.c (add_alias_cmd): New function. | |
3285 | * command.h (add_alias_cmd): Declare. | |
3286 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
3287 | instead call add_alias_cmd. | |
3288 | ||
2b351b19 PA |
3289 | 2017-05-17 Pedro Alves <palves@redhat.com> |
3290 | ||
3291 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
3292 | (nat_makefile_frag): ... this. All references updated. | |
3293 | * configure.ac: Likewise. | |
3294 | * configure.nat: Likewise. Enhance comments. | |
3295 | * configure: Regenerate. | |
3296 | ||
5f2ad7a3 RO |
3297 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3298 | ||
3299 | * procfs.c (procfs_create_inferior): Change prototype to match | |
3300 | definition. | |
3301 | ||
adf3dde5 EZ |
3302 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
3303 | ||
3304 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
3305 | C++ compiler warning. | |
3306 | ||
6830f270 TT |
3307 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3308 | ||
3309 | PR rust/21483: | |
3310 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
3311 | recurse, just call value_struct_elt directly. | |
3312 | ||
68f2f2e3 TT |
3313 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3314 | ||
3315 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
3316 | OP_RUST_ARRAY>: Fix. | |
3317 | ||
256afbc2 TT |
3318 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3319 | ||
3320 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
3321 | ||
94bb8dfe YQ |
3322 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
3323 | ||
3324 | * regcache.c: Include <forward_list>. | |
3325 | (struct regcache_list): Remove. | |
3326 | (current_regcache): Update. | |
3327 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
3328 | (regcache_thread_ptid_changed): Likewise. | |
3329 | (registers_changed_ptid): Likewise. | |
3330 | (current_regcache_size): Likewise. | |
3331 | ||
8248946c YQ |
3332 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
3333 | ||
3334 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
3335 | (current_regcache_size): New function. | |
3336 | (current_regcache_test): New function. | |
3337 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
3338 | ||
313c5961 AH |
3339 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3340 | ||
3341 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
3342 | (print_gp_register_row): Use get_frame_register_value. | |
3343 | ||
27bfc1d1 AH |
3344 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3345 | ||
3346 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
3347 | (mips_supply_fpregset): Likewise. | |
3348 | (mips64_supply_gregset): Likewise. | |
3349 | ||
146e6c5c AH |
3350 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3351 | ||
3352 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
3353 | regcache->raw_supply_zeroed. | |
3354 | ||
e50f25ec SDJ |
3355 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
3356 | ||
3357 | * configure.nat: Rearrange 'case' statements to match | |
3358 | host before cpu. | |
3359 | ||
21ea5acd SDJ |
3360 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
3361 | ||
3362 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
3363 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
3364 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
3365 | "@nat_extra_makefile_frag@". | |
3366 | (Makefile): Remove dependency on "@frags@". | |
3367 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
3368 | (data-directory/Makefile): Likewise. | |
3369 | * config/aarch64/linux.mh: Deleted; moved contents to | |
3370 | "gdb/configure.nat". | |
3371 | * config/alpha/alpha-linux.mh: Likewise. | |
3372 | * config/alpha/nbsd.mh: Likewise. | |
3373 | * config/arm/linux.mh: Likewise. | |
3374 | * config/arm/nbsdelf.mh: Likewise. | |
3375 | * config/i386/cygwin.mh: Likewise. | |
3376 | * config/i386/cygwin64.mh: Likewise. | |
3377 | * config/i386/darwin.mh: Likewise. | |
3378 | * config/i386/fbsd.mh: Likewise. | |
3379 | * config/i386/fbsd64.mh: Likewise. | |
3380 | * config/i386/go32.mh: Likewise. | |
3381 | * config/i386/i386gnu.mh: Likewise. | |
3382 | * config/i386/i386sol2.mh: Likewise. | |
3383 | * config/i386/linux.mh: Likewise. | |
3384 | * config/i386/linux64.mh: Likewise. | |
3385 | * config/i386/mingw.mh: Likewise. | |
3386 | * config/i386/mingw64.mh: Likewise. | |
3387 | * config/i386/nbsd64.mh: Likewise. | |
3388 | * config/i386/nbsdelf.mh: Likewise. | |
3389 | * config/i386/nto.mh: Likewise. | |
3390 | * config/i386/obsd.mh: Likewise. | |
3391 | * config/i386/obsd64.mh: Likewise. | |
3392 | * config/i386/sol2-64.mh: Likewise. | |
3393 | * config/ia64/linux.mh: Likewise. | |
3394 | * config/m32r/linux.mh: Likewise. | |
3395 | * config/m68k/linux.mh: Likewise. | |
3396 | * config/m68k/nbsdelf.mh: Likewise. | |
3397 | * config/m68k/obsd.mh: Likewise. | |
3398 | * config/m88k/obsd.mh: Likewise. | |
3399 | * config/mips/fbsd.mh: Likewise. | |
3400 | * config/mips/linux.mh: Likewise. | |
3401 | * config/mips/nbsd.mh: Likewise. | |
3402 | * config/mips/obsd64.mh: Likewise. | |
3403 | * config/pa/linux.mh: Likewise. | |
3404 | * config/pa/nbsd.mh: Likewise. | |
3405 | * config/pa/obsd.mh: Likewise. | |
3406 | * config/powerpc/aix.mh: Likewise. | |
3407 | * config/powerpc/fbsd.mh: Likewise. | |
3408 | * config/powerpc/linux.mh: Likewise. | |
3409 | * config/powerpc/nbsd.mh: Likewise. | |
3410 | * config/powerpc/obsd.mh: Likewise. | |
3411 | * config/powerpc/ppc64-linux.mh: Likewise. | |
3412 | * config/powerpc/spu-linux.mh: Likewise. | |
3413 | * config/s390/linux.mh: Likewise. | |
3414 | * config/sh/nbsd.mh: Likewise. | |
3415 | * config/sparc/fbsd.mh: Likewise. | |
3416 | * config/sparc/linux.mh: Likewise. | |
3417 | * config/sparc/linux64.mh: Likewise. | |
3418 | * config/sparc/nbsd64.mh: Likewise. | |
3419 | * config/sparc/nbsdelf.mh: Likewise. | |
3420 | * config/sparc/obsd64.mh: Likewise. | |
3421 | * config/sparc/sol2.mh: Likewise. | |
3422 | * config/tilegx/linux.mh: Likewise. | |
3423 | * config/vax/nbsdelf.mh: Likewise. | |
3424 | * config/vax/obsd.mh: Likewise. | |
3425 | * config/xtensa/linux.mh: Likewise. | |
3426 | * config/i386/i386gnu.mn: New file, with excerpts from | |
3427 | "config/i386/i386gnu.mh". | |
3428 | * configure: Regenerate. | |
3429 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
3430 | *.mh files under "gdb/config". | |
3431 | * configure.nat: New file, with contents from the | |
3432 | "gdb/config/*/*.mh" files. | |
3433 | ||
7ed1acaf TW |
3434 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
3435 | ||
3436 | * btrace.c (btrace_clear): Free insn vector. | |
3437 | ||
e13cb306 PA |
3438 | 2017-05-05 Pedro Alves <palves@redhat.com> |
3439 | ||
3440 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
3441 | * configure: Regenerate. | |
3442 | ||
5ed8105e PA |
3443 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3444 | ||
3445 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
3446 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
3447 | (COMMON_OBS): Add progspace-and-thread.o. | |
3448 | * breakpoint.c: Include "progspace-and-thread.h". | |
3449 | (update_inserted_breakpoint_locations) | |
3450 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
3451 | Use scoped_restore_current_pspace_and_thread. | |
3452 | (create_std_terminate_master_breakpoint): Use | |
3453 | scoped_restore_current_program_space. | |
3454 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
3455 | (print_breakpoint_location): Use | |
3456 | scoped_restore_current_program_space. | |
3457 | (bp_loc_is_permanent): Use | |
3458 | scoped_restore_current_pspace_and_thread. | |
3459 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
3460 | (download_tracepoint_locations): Use | |
3461 | scoped_restore_current_pspace_and_thread. | |
3462 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
3463 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
3464 | (enum step_over_calls_kind): Moved from inferior.h. | |
3465 | (class scoped_restore_current_thread): New class. | |
3466 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
3467 | declaration. | |
3468 | (scoped_restore_current_thread): New class. | |
3469 | * infcmd.c: Include "common/gdb_optional.h". | |
3470 | (continue_1, proceed_after_attach): Use | |
3471 | scoped_restore_current_thread. | |
3472 | (notice_new_inferior): Use scoped_restore_current_thread. | |
3473 | * inferior.c: Include "progspace-and-thread.h". | |
3474 | (restore_inferior, save_current_inferior): Delete. | |
3475 | (add_inferior_command, clone_inferior_command): Use | |
3476 | scoped_restore_current_pspace_and_thread. | |
3477 | * inferior.h (scoped_restore_current_inferior): New class. | |
3478 | * infrun.c: Include "progspace-and-thread.h" and | |
3479 | "common/gdb_optional.h". | |
3480 | (follow_fork_inferior): Use | |
3481 | scoped_restore_current_pspace_and_thread. | |
3482 | (scoped_restore_exited_inferior): New class. | |
3483 | (handle_vfork_child_exec_or_exit): Use | |
3484 | scoped_restore_exited_inferior, | |
3485 | scoped_restore_current_pspace_and_thread, | |
3486 | scoped_restore_current_thread and scoped_restore. | |
3487 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
3488 | * linespec.c (decode_line_full, decode_line_1): Use | |
3489 | scoped_restore_current_program_space. | |
3490 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
3491 | (exec_continue): Use scoped_restore_current_thread. | |
3492 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
3493 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
3494 | * proc-service.c (ps_pglobal_lookup): Use | |
3495 | scoped_restore_current_program_space. | |
3496 | * progspace-and-thread.c: New file. | |
3497 | * progspace-and-thread.h: New file. | |
3498 | * progspace.c (release_program_space, clone_program_space): Use | |
3499 | scoped_restore_current_program_space. | |
3500 | (restore_program_space, save_current_program_space) | |
3501 | (save_current_space_and_thread): Delete. | |
3502 | (switch_to_program_space_and_thread): Moved to | |
3503 | progspace-and-thread.c. | |
3504 | * progspace.h (save_current_program_space) | |
3505 | (save_current_space_and_thread): Delete declarations. | |
3506 | (scoped_restore_current_program_space): New class. | |
3507 | * remote.c (remote_btrace_maybe_reopen): Use | |
3508 | scoped_restore_current_thread. | |
3509 | * symtab.c: Include "progspace-and-thread.h". | |
3510 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
3511 | * thread.c (print_thread_info_1): Use | |
3512 | scoped_restore_current_thread. | |
3513 | (struct current_thread_cleanup): Delete. | |
3514 | (do_restore_current_thread_cleanup) | |
3515 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
3516 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
3517 | ... this new dtor. | |
3518 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
3519 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
3520 | ... this new ctor. | |
3521 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
3522 | (thread_apply_command): Use scoped_restore_current_thread. | |
3523 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
3524 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
3525 | ||
f6223dbb PA |
3526 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3527 | ||
3528 | * thread.c (make_cleanup_restore_current_thread): Move | |
3529 | find_thread_ptid call before the is_stopped call. Assert that the | |
3530 | thread is found. Replace is_stopped call by checking the thread's | |
3531 | state directly. Remove unnecessary NULL-thread check. | |
3532 | ||
3c3ae77e PA |
3533 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3534 | ||
3535 | * corelow.c (thread_section_name): New class. | |
3536 | (get_core_register_section, get_core_siginfo): Use it. | |
3537 | ||
45eba0ab AA |
3538 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3539 | ||
3540 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
3541 | (get_core_register_section): Remove xfree of NULL pointer. | |
3542 | ||
f81fdd35 AH |
3543 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
3544 | ||
3545 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
3546 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
3547 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
3548 | ||
35837774 SM |
3549 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
3550 | ||
3551 | * gdbarch.sh: Remove commented out definition of | |
3552 | TARGET_CHAR_BIT. | |
3553 | * gdbarch.h: Re-generate. | |
3554 | ||
c94fee56 SDJ |
3555 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
3556 | ||
3557 | * configure: Regenerate. | |
3558 | ||
d17f7b36 SM |
3559 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
3560 | ||
3561 | * solib-target.c (solib_target_relocate_section_addresses): | |
3562 | Remove num_section_bases, num_bases, segment_bases variables. | |
3563 | ||
b560ebd6 SM |
3564 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3565 | ||
3566 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
3567 | ||
f2f46dfc SM |
3568 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3569 | ||
3570 | * solib-target.c: Include <vector> | |
3571 | (struct lm_info_target) <~lm_info_target>: Remove. | |
3572 | <segment_bases, section_bases>: Change type to | |
3573 | std::vector<CORE_ADDR>. | |
3574 | (library_list_start_segment, library_list_start_section, | |
3575 | library_list_end_library, | |
3576 | solib_target_relocate_section_addresses): Adjust. | |
3577 | ||
a0ff9e1a SM |
3578 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3579 | ||
3580 | * gdbarch.sh (software_single_step): Change return type to | |
3581 | std::vector<CORE_ADDR>. | |
3582 | * gdbarch.c, gdbarch.h: Re-generate. | |
3583 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
3584 | Adjust. | |
3585 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
3586 | (thumb_get_next_pcs_raw): Adjust. | |
3587 | (arm_get_next_pcs_raw): Adjust. | |
3588 | (arm_get_next_pcs): Adjust. | |
3589 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
3590 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
3591 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
3592 | (alpha_software_single_step): Adjust. | |
3593 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
3594 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
3595 | * arm-tdep.c (arm_software_single_step): Adjust. | |
3596 | (arm_breakpoint_kind_from_current_state): Adjust. | |
3597 | * arm-tdep.h (arm_software_single_step): Adjust. | |
3598 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
3599 | * cris-tdep.c (cris_software_single_step): Adjust. | |
3600 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
3601 | (micromips_deal_with_atomic_sequence): Adjust. | |
3602 | (deal_with_atomic_sequence): Adjust. | |
3603 | (mips_software_single_step): Adjust. | |
3604 | * mips-tdep.h (mips_software_single_step): Adjust. | |
3605 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
3606 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
3607 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
3608 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
3609 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
3610 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
3611 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
3612 | * spu-tdep.c (spu_software_single_step): Adjust. | |
3613 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
3614 | ||
ea480a30 SM |
3615 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3616 | ||
3617 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
3618 | * gdbarch.h: Re-generate. | |
3619 | ||
d050f7d7 TW |
3620 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3621 | ||
3622 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
3623 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
3624 | * python/py-instruction.c, python/py-instruction.h: New file. | |
3625 | * python/py-record.c: Add py-instruction.h include. | |
3626 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
3627 | gdb.RecordInstruction. | |
3628 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
3629 | declaration. | |
3630 | * python/python.c (do_start_initialization): Add | |
3631 | gdbpy_initialize_instruction. | |
3632 | ||
14f819c8 TW |
3633 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3634 | ||
3635 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
3636 | Remove. | |
3637 | (btrace_func_from_recpy_func): New function. | |
3638 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
3639 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
3640 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
3641 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
3642 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
3643 | Also, use new helper functions. | |
3644 | (btpy_list_item): Use new helper functions. | |
3645 | (recpy_bt_function_call_history): Use new type name. | |
3646 | (btpy_call_getset): Remove. | |
3647 | (gdbpy_initialize_btrace): Remove code to initialize | |
3648 | gdb.BtraceFunctionCall. | |
3649 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
3650 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
3651 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
3652 | * python/py-record.c (recpy_func_type): New static object. | |
3653 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
3654 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
3655 | recpy_func_next): New function. | |
3656 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
3657 | (recpy_func_getset): New static object. | |
3658 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
3659 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
3660 | ||
0ed5da75 TW |
3661 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3662 | ||
3663 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
3664 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
3665 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
3666 | gdb.BtraceInstruction type. | |
3667 | (btrace_insn_from_recpy_insn): New function. | |
3668 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
3669 | btpy_new. | |
3670 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
3671 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
3672 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
3673 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
3674 | instead of btpy_object. | |
3675 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
3676 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
3677 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
3678 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
3679 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
3680 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
3681 | recpy_insn_type. | |
3682 | (btpy_insn_getset): Remove. | |
3683 | (gdbpy_initialize_btrace): Remove code to initialize | |
3684 | gdb.BtraceInstruction. Use recpy_element_object. | |
3685 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
3686 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
3687 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
3688 | * python/py-record.c (recpy_insn_type): New static object. | |
3689 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
3690 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
3691 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
3692 | New function. | |
3693 | (recpy_insn_getset): New static object. | |
3694 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
3695 | * python/py-record.h (recpy_element_object): New typedef. | |
3696 | (recpy_insn_type, recpy_insn_new): New export. | |
3697 | ||
913aeadd TW |
3698 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3699 | ||
3700 | * py-record-btrace.c (btpy_insn_new): Removed. | |
3701 | (btpy_insn_or_gap_new): New function. | |
3702 | (btpy_insn_error): Removed. | |
3703 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
3704 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
3705 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
3706 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
3707 | (btpy_insn_getset): Remove btpy_insn_error. | |
3708 | * py-record.c (recpy_gap_type): New static object. | |
3709 | (recpy_gap_object): New typedef. | |
3710 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
3711 | recpy_gap_reason_string): New function. | |
3712 | (recpy_gap_getset): New static object. | |
3713 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
3714 | * py-record.h (recpy_gap_new): New export. | |
3715 | ||
a3be24ad TW |
3716 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3717 | ||
3718 | * python/py-record.c (recpy_ptid): Remove. | |
3719 | (recpy_record_getset): Remove recpy_ptid. | |
3720 | ||
ae20e79a TW |
3721 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3722 | ||
3723 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
3724 | * python/py-record-btrace.c: Add "py-record.h" include. | |
3725 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
3726 | recpy_bt_end, recpy_bt_instruction_history, | |
3727 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
3728 | in gdb.Record object instead of current ptid. | |
3729 | * python/py-record.c: Include new "py-record.h" file. | |
3730 | (recpy_record_object): Moved to py-record.h. | |
3731 | * python/py-record.h: New file. | |
3732 | ||
8d0050ea TW |
3733 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3734 | ||
3735 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
3736 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
3737 | indentation. | |
3738 | ||
3f380b50 JB |
3739 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
3740 | ||
3741 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
3742 | the past maintainers section. | |
3743 | ||
07495424 YQ |
3744 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3745 | ||
3746 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
3747 | cleanup. | |
3748 | ||
deb1fa3e YQ |
3749 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3750 | Pedro Alves <palves@redhat.com> | |
3751 | ||
3752 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
3753 | (do_cooked_read): Moved above. | |
3754 | (regcache_dup): Use the tag dispatch ctor.. | |
3755 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
3756 | assignment operator, remove friend regcache_dup. | |
3757 | ||
b421c83c YQ |
3758 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3759 | ||
3760 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
3761 | call method save instead of regcache_cpy. | |
3762 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
3763 | ||
ef79d9a3 YQ |
3764 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3765 | ||
3766 | * regcache.c (struct regcache): Move to regcache.h | |
3767 | (regcache::arch): New method. | |
3768 | (regcache_get_ptid): Update. | |
3769 | (get_regcache_arch): Call arch method. | |
3770 | (get_regcache_aspace): Call method aspace. | |
3771 | (register_buffer): Change it to method. | |
3772 | (regcache_save): Change it to regcache::save. | |
3773 | (regcache_restore): Likewise. | |
3774 | (regcache_cpy_no_passthrough): Remove the declaration. | |
3775 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
3776 | (regcache_cpy_no_passthrough): Change it to method | |
3777 | cpy_no_passthrough. | |
3778 | (regcache_register_status): Change it to method | |
3779 | get_register_status. | |
3780 | (regcache_invalidate): Change it to method invalidate. | |
3781 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
3782 | (regcache_raw_update): Change it to method raw_update. | |
3783 | (regcache_raw_read): Likewise. | |
3784 | (regcache_raw_read_signed): Likewise. | |
3785 | (regcache_raw_read_unsigned): Likewise. | |
3786 | (regcache_raw_write_signed): Likewise. | |
3787 | (regcache_raw_write_unsigned): Likewise. | |
3788 | (regcache_cooked_read): Likewise. | |
3789 | (regcache_cooked_read_value): Likewise. | |
3790 | (regcache_cooked_read_signed): Likewise. | |
3791 | (regcache_cooked_read_unsigned): Likewise. | |
3792 | (regcache_cooked_write_signed): Likewise. | |
3793 | (regcache_cooked_write_unsigned): Likewise. | |
3794 | (regcache_raw_set_cached_value): Likewise. | |
3795 | (regcache_raw_write): Likewise. | |
3796 | (regcache_cooked_write): Likewise. | |
3797 | (regcache_xfer_part): Likewise. | |
3798 | (regcache_raw_read_part): Likewise. | |
3799 | (regcache_raw_write_part): Likewise. | |
3800 | (regcache_cooked_read_part): Likewise. | |
3801 | (regcache_cooked_write_part): Likewise. | |
3802 | (regcache_raw_supply): Likewise. | |
3803 | (regcache_raw_collect): Likewise. | |
3804 | (regcache_transfer_regset): Likewise. | |
3805 | (regcache_supply_regset): Likewise. | |
3806 | (regcache_collect_regset): Likewise. | |
3807 | (regcache_debug_print_register): Likewise. | |
3808 | (enum regcache_dump_what): Move it to regcache.h. | |
3809 | (regcache_dump): Change it to method dump. | |
3810 | * regcache.h (enum regcache_dump_what): New. | |
3811 | (class regcache): New. | |
3812 | * target.c (target_fetch_registers): Call method | |
3813 | debug_print_register. | |
3814 | (target_store_registers): Likewise. | |
3815 | ||
f8fdb78e SM |
3816 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3817 | ||
3818 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
3819 | (windows_make_so): Allocate lm_info_windows with new. | |
3820 | (windows_free_so): Free lm_info_windows with delete. | |
3821 | ||
9ccbfd7b SM |
3822 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3823 | ||
3824 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
3825 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
3826 | cleanup. | |
3827 | (darwin_free_so): Free lm_info_darwin with delete. | |
3828 | ||
76e75227 SM |
3829 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3830 | ||
3831 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
3832 | <l_addr_p>: Change type to bool. | |
3833 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
3834 | (svr4_free_so): Free lm_info_svr4 with delete. | |
3835 | (svr4_copy_library_list): Replace memcpy with call to copy | |
3836 | constructor. | |
3837 | (library_list_start_library, svr4_default_sos): Allocate | |
3838 | lm_info_svr4 with new. | |
3839 | ||
51046d9e SM |
3840 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3841 | ||
3842 | * solib-target.c (struct lm_info_target): Add destructor, | |
3843 | initialize fields. | |
3844 | <name>: Change type to std::string. | |
3845 | (library_list_start_library): Allocate lm_info_target with new. | |
3846 | (solib_target_free_library_list): Free lm_info_target with | |
3847 | delete. | |
3848 | (solib_target_current_sos): Adapt to std::string. | |
3849 | (solib_target_free_so): Free lm_info_target with delete. | |
3850 | ||
4023ae76 SM |
3851 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3852 | ||
3853 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
3854 | fields. | |
3855 | (frv_current_sos): Allocate lm_info_frv with new. | |
3856 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
3857 | allocate with new. | |
3858 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
3859 | ||
af43057b SM |
3860 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3861 | ||
3862 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
3863 | ||
b0911207 SM |
3864 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3865 | ||
3866 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
3867 | map field. | |
3868 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
3869 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
3870 | and allocate with new. | |
3871 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
3872 | ||
6c401f72 SM |
3873 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3874 | ||
3875 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
3876 | <filename, member_name>: Change type to std::string. | |
3877 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
3878 | (library_list_start_library): Allocate lm_info_aix with new. | |
3879 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
3880 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
3881 | with copy constructor. | |
3882 | ||
d0e449a1 SM |
3883 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3884 | ||
3885 | * solist.h (struct lm_info): Remove. | |
3886 | (struct lm_info_base): New class. | |
3887 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
3888 | * nto-tdep.c (struct lm_info): Remove. | |
3889 | (lm_addr): Adjust. | |
3890 | * solib-aix.c (struct lm_info): Rename to ... | |
3891 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
3892 | (lm_info_p): Rename to ... | |
3893 | (lm_info_aix_p): ... this, and adjust. | |
3894 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
3895 | solib_aix_parse_libraries, library_list_start_library, | |
3896 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
3897 | solib_aix_get_library_list, | |
3898 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
3899 | solib_aix_get_section_offsets, | |
3900 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
3901 | Adjust. | |
3902 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
3903 | * solib-darwin.c (struct lm_info): Rename to ... | |
3904 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
3905 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
3906 | * solib-dsbt.c (struct lm_info): Rename to ... | |
3907 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
3908 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
3909 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
3910 | dsbt_relocate_section_addresses): Adjust. | |
3911 | * solib-frv.c (struct lm_info): Rename to ... | |
3912 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
3913 | (main_executable_lm_info): Adjust. | |
3914 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
3915 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
3916 | find_canonical_descriptor_in_load_object, | |
3917 | frv_fdpic_find_canonical_descriptor): Adjust. | |
3918 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
3919 | to lm_info_svr4. | |
3920 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
3921 | svr4_clear_so, svr4_copy_library_list, | |
3922 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
3923 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
3924 | solist_update_incremental): Adjust. | |
3925 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
3926 | solib-svr4.c. | |
3927 | * solib-target.c (struct lm_info): Rename to ... | |
3928 | (struct lm_info_target): ... this. Extend lm_info_base. | |
3929 | (lm_info_p): Rename to ... | |
3930 | (lm_info_target_p): ... this. | |
3931 | (solib_target_parse_libraries, library_list_start_segment, | |
3932 | library_list_start_section, library_list_start_library, | |
3933 | library_list_end_library, solib_target_free_library_list, | |
3934 | solib_target_current_sos, solib_target_free_so, | |
3935 | solib_target_relocate_section_addresses): Adjust. | |
3936 | * windows-nat.c (struct lm_info): Rename to ... | |
3937 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
3938 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
3939 | windows_xfer_shared_libraries): Adjust. | |
3940 | ||
434a4023 SM |
3941 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3942 | ||
3943 | * solib-darwin.c (struct darwin_so_list): Remove. | |
3944 | (darwin_current_sos): Allocate an so_list object instead of a | |
3945 | darwin_so_list, separately allocate an lm_info object. | |
3946 | (darwin_free_so): Free lm_info. | |
3947 | ||
428544e8 JB |
3948 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
3949 | ||
3950 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
3951 | with fprintf_filtered. | |
3952 | ||
4621115f YQ |
3953 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3954 | ||
3955 | * regcache.c (regcache::regcache): New function. | |
3956 | (regcache::~regcache): New function. | |
3957 | (regcache_xmalloc_1): Remove. | |
3958 | (regcache_xmalloc): Call new regcache. | |
3959 | (regcache_xfree): Call delete regcache. | |
3960 | (get_thread_arch_aspace_regcache): Call new regcache. | |
3961 | ||
339053c2 YQ |
3962 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3963 | ||
3964 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
3965 | lwp instead of ptid_get_lwp. | |
3966 | ||
7974a605 YQ |
3967 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3968 | ||
3969 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
3970 | lwp_info instead of getting from inferior_ptid. | |
3971 | ||
e15c3eb4 KS |
3972 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
3973 | ||
3974 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
3975 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
3976 | (CV_CONVERSION_BADNESS): Define. | |
3977 | (rank_one_type): Remove overly restrictive rvalue reference | |
3978 | rank checks. | |
3979 | Add cv-qualifier checks and subranks for type equality. | |
3980 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
3981 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
3982 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
3983 | ||
72bc1d24 SM |
3984 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
3985 | ||
3986 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
3987 | count when creating the object. | |
3988 | ||
55bcecda UW |
3989 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
3990 | Ulrich Weigand <uweigand@de.ibm.com> | |
3991 | ||
3992 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
3993 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
3994 | is used in AIX. | |
3995 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
3996 | (process_xcoff_symbol): Likewise. | |
3997 | (scan_xcoff_symtab): Likewise. | |
3998 | ||
5c99fcf8 AH |
3999 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4000 | ||
4001 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
4002 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
4003 | (ia64_access_reg): Use get_frame_register_unsigned. | |
4004 | (ia64_access_rse_reg): Likewise. | |
4005 | (ia64_libunwind_frame_prev_register): Likewise. | |
4006 | ||
b41c5a85 JW |
4007 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
4008 | ||
4009 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
4010 | * gdbarch.c: Regenerated. | |
4011 | * gdbarch.h: Regenerated. | |
4012 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
4013 | visibility external. | |
4014 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
4015 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
4016 | (enum cfa_how_kind): Move to ... | |
4017 | (struct dwarf2_frame_state_reg_info): Likewise. | |
4018 | (struct dwarf2_frame_state): Likewise. | |
4019 | * dwarf2-frame.h: ... here. | |
4020 | (dwarf2_frame_state_alloc_regs): New declaration. | |
4021 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
4022 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
4023 | ||
c185f580 AH |
4024 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4025 | ||
4026 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
4027 | regcache_raw_read_unsigned. | |
4028 | (xtensa_pseudo_register_write): Likewise. | |
4029 | ||
19c45594 AH |
4030 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4031 | ||
4032 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
4033 | (nds32_pseudo_register_write): Likewise. | |
4034 | ||
4658f12e YQ |
4035 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
4036 | ||
4037 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
4038 | to bool. | |
4039 | (regcache_xmalloc_1): Update parameter type and callers update. | |
4040 | ||
d581dda8 YQ |
4041 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
4042 | ||
4043 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
4044 | set_gdbarch_wchar_bit. | |
4045 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
4046 | ||
debed3db PA |
4047 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4048 | ||
4049 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
4050 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
4051 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
4052 | macros. | |
4053 | ||
b0b92aeb PA |
4054 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4055 | ||
4056 | * common/common-defs.h: Include "common/poison.h". | |
4057 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
4058 | and adjust. | |
4059 | * common/poison.h: New file. | |
4060 | * common/traits.h: Include <type_traits>. | |
4061 | (Not, Or, Requires): New, moved from common/function-view.h. | |
4062 | ||
16c4d54a PA |
4063 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4064 | ||
4065 | * breakpoint.h (struct breakpoint): In-class initialize all | |
4066 | fields. Make boolean fields "bool". | |
4067 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
4068 | memset call and initializations no longer necessary. | |
4069 | ||
b5c36682 PA |
4070 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4071 | ||
4072 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
4073 | reference. | |
4074 | (pt_btrace_insn): New function. | |
4075 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
4076 | ||
5625a286 PA |
4077 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4078 | ||
4079 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
4080 | "base" field and inherit from "bp_location" instead. Add | |
4081 | non-default ctor. | |
4082 | (allocate_location_exception): Use new non-default ctor. | |
4083 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
4084 | (init_bp_location): Convert to ... | |
4085 | (bp_location::bp_location): ... this new ctor, and remove memset | |
4086 | call. | |
4087 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
4088 | * breakpoint.h (bp_location): Now a class. Declare default and | |
4089 | non-default ctors. In-class initialize all members. | |
4090 | (init_bp_location): Remove declaration. | |
4091 | ||
23bcc18f PA |
4092 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4093 | ||
4094 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
4095 | assignment operator. | |
4096 | ||
e1ba3053 YQ |
4097 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
4098 | ||
4099 | * doublest.c (convert_doublest_to_floatformat): Call | |
4100 | floatformat_totalsize_bytes. | |
4101 | ||
10f489e5 TT |
4102 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4103 | ||
4104 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
4105 | ui_out_emit_list. | |
4106 | * stack.c (print_frame): Use ui_out_emit_list. | |
4107 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
4108 | ui_out_emit_list. | |
4109 | * mi/mi-main.c (print_one_inferior) | |
4110 | (mi_cmd_data_list_register_names) | |
4111 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
4112 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
4113 | ui_out_emit_list. | |
4114 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
4115 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
4116 | ui_out_emit_tuple. | |
4117 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
4118 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
4119 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
4120 | ui_out_emit_list. | |
4121 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
4122 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
4123 | ui_out_emit_list. | |
4124 | ||
0092b74d TT |
4125 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4126 | ||
4127 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
4128 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
4129 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
4130 | ||
a14a62dd TT |
4131 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4132 | ||
4133 | * tracepoint.c (tvariables_info_1) | |
4134 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
4135 | ||
46b9c129 TT |
4136 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4137 | ||
4138 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
4139 | annotate_arg_emitter. | |
4140 | * breakpoint.c (print_mention_watchpoint) | |
4141 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
4142 | * annotate.h (struct annotate_arg_emitter): New. | |
4143 | ||
2e783024 TT |
4144 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4145 | ||
4146 | * record-btrace.c (record_btrace_insn_history) | |
4147 | (record_btrace_insn_history_range, record_btrace_call_history) | |
4148 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
4149 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
4150 | ui_out_emit_tuple. | |
4151 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
4152 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
4153 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
4154 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
4155 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
4156 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
4157 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
4158 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
4159 | ui_out_emit_tuple. | |
4160 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
4161 | (output_register, mi_cmd_data_read_memory) | |
4162 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
4163 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
4164 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
4165 | Use ui_out_emit_tuple. | |
4166 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
4167 | ui_out_emit_tuple. | |
4168 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
4169 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
4170 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
4171 | ui_out_emit_tuple. | |
4172 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
4173 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
4174 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
4175 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
4176 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
4177 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
4178 | * breakpoint.c (print_one_breakpoint_location) | |
4179 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
4180 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
4181 | ui_out_emit_tuple. | |
4182 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
4183 | ||
9be21bb4 SM |
4184 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
4185 | ||
4186 | * thread.c (print_thread_info_1): Remove dead code. | |
4187 | ||
0d4c07af JK |
4188 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
4189 | ||
4190 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
4191 | GDB_SELF_TEST. | |
4192 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
4193 | ||
4daf993d YQ |
4194 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
4195 | ||
4196 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
4197 | argument 3 with regcache. Get register status from | |
4198 | src->register_status and get register contents from | |
4199 | register_buffer (src, regnum). | |
4200 | (regcache_cpy): Update. | |
4201 | ||
a6c21d4a PA |
4202 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4203 | ||
4204 | * gdbthread.h (thread): Add missing closing parenthesis in | |
4205 | comment. | |
4206 | ||
3a3fd0fd PA |
4207 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4208 | ||
4209 | * common/refcounted-object.h: New file. | |
4210 | * gdbthread.h: Include "common/refcounted-object.h". | |
4211 | (thread_info): Inherit from refcounted_object and add comments. | |
4212 | (thread_info::incref, thread_info::decref) | |
4213 | (thread_info::m_refcount): Delete. | |
4214 | (thread_info::deletable): Use the refcounted_object::refcount() | |
4215 | method. | |
4216 | * inferior.c (current_inferior_): Add comment. | |
4217 | (set_current_inferior): Increment/decrement refcounts. | |
4218 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
4219 | not-deletable instead of comparing with the current inferior. | |
4220 | (initialize_inferiors): Increment the initial inferior's refcount. | |
4221 | * inferior.h (struct inferior): Forward declare. | |
4222 | Include "common/refcounted-object.h". | |
4223 | (current_inferior, set_current_inferior): Move declaration to | |
4224 | before struct inferior's definition, and fix comment. | |
4225 | (inferior): Inherit from refcounted_object. Add comments. | |
4226 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
4227 | inferior pointer directly instead of doing a ptid lookup. | |
4228 | (switch_to_no_thread): New function. | |
4229 | (switch_to_thread(thread_info *)): New function, factored out | |
4230 | from ... | |
4231 | (switch_to_thread(ptid_t)): ... this. | |
4232 | (restore_current_thread): Delete. | |
4233 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
4234 | fields, and add 'inf' field. | |
4235 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
4236 | alive instead of looking up an inferior by ptid. Use | |
4237 | switch_to_thread and switch_to_no_thread. | |
4238 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
4239 | instead of lookup up an inferior by id. Decref the inferior. | |
4240 | Don't restore 'removable'. | |
4241 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
4242 | in old, instead of the inferior number. Incref the inferior. | |
4243 | Don't save/clear 'removable'. | |
4244 | ||
9bcb1f16 PA |
4245 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4246 | ||
4247 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4248 | unittests/scoped_restore-selftests.c. | |
4249 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
4250 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
4251 | (scoped_restore_base::release): New public method. | |
4252 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
4253 | (scoped_restore_base::m_saved_var): New protected field. | |
4254 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
4255 | scoped_restore_base base class instead of m_saved_var directly. | |
4256 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
4257 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
4258 | scoped_restore_tmpl<T>&)): Likewise. | |
4259 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
4260 | method. | |
4261 | (scoped_restore_tmpl::saved_var): New method. | |
4262 | (scoped_restore_tmpl::m_saved_var): Delete. | |
4263 | * inferior.h (inferior::detaching): Now a bool. | |
4264 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
4265 | cleanup. | |
4266 | * unittests/scoped_restore-selftests.c: New file. | |
4267 | ||
26fcd539 PA |
4268 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4269 | ||
4270 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
4271 | Re-sort in alphabetic order. | |
4272 | ||
fdd243b0 PA |
4273 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4274 | ||
4275 | * xml-support.c (obstack_xml_printf): Delete. | |
4276 | * xml-support.h (obstack_xml_printf): Delete. | |
4277 | ||
4895cde2 PA |
4278 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4279 | ||
4280 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
4281 | vdebug, verror, body_text, start_element, end_element, name, | |
4282 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
4283 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
4284 | is_xinclude>: Make private and add m_ prefix. | |
4285 | (gdb_xml_parser::body_text): New method, based on ... | |
4286 | (gdb_xml_body_text): ... this. Adjust. | |
4287 | (gdb_xml_parser::vdebug): New method, based on ... | |
4288 | (gdb_xml_debug): ... this. Adjust. | |
4289 | (gdb_xml_parser::verror): New method, based on ... | |
4290 | (gdb_xml_error): ... this. Adjust. | |
4291 | (gdb_xml_parser::start_element): New method, based on ... | |
4292 | (gdb_xml_start_element): ... this. Adjust. | |
4293 | (gdb_xml_start_element_wrapper): Defer to | |
4294 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
4295 | (gdb_xml_parser::end_element): New method, based on ... | |
4296 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
4297 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
4298 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
4299 | (gdb_xml_parser::use_dtd): New method, based on ... | |
4300 | (gdb_xml_use_dtd): ... this. Adjust. | |
4301 | (gdb_xml_parser::parse): New method, based on ... | |
4302 | (gdb_xml_parse): ... this. Adjust. | |
4303 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
4304 | (xinclude_start_include): Adjust to call the parser's name method. | |
4305 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
4306 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
4307 | method. | |
4308 | (xml_process_xincludes): Adjust to call parser methods. | |
4309 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
4310 | declarations. | |
4311 | ||
bd8a901f PA |
4312 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4313 | ||
4314 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
4315 | gdb::optional<std::string>. | |
4316 | * xml-support.c: Include <string>. | |
4317 | (scope_level::scope_level(scope_level &&)) | |
4318 | (scope_level::~scope_level): Delete. | |
4319 | (scope_level::body): Now a std::string. | |
4320 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
4321 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
4322 | parameter. | |
4323 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
4324 | (xinclude_parsing_data::output): Now a std::string reference. | |
4325 | (xinclude_start_include): Adjust. | |
4326 | (xml_xinclude_default): Adjust. | |
4327 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
4328 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
4329 | and return bool. | |
4330 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
4331 | (tdesc_xml_cache): Delete. | |
4332 | (tdesc_xml_cache_s): Delete. | |
4333 | (xml_cache): Now an std::unordered_map. | |
4334 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
4335 | (target_fetch_description_xml): Change return type to | |
4336 | gdb::optional<std::string>, and adjust. | |
4337 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
4338 | (target_fetch_description_xml): Change return type to | |
4339 | gdb::optional<std::string>. | |
4340 | ||
d35d1958 PA |
4341 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4342 | ||
4343 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4344 | unittests/optional-selftests.c. | |
4345 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
4346 | * unittests/optional-selftests.c: New file. | |
4347 | * unittests/optional/assignment/1.cc: New file. | |
4348 | * unittests/optional/assignment/2.cc: New file. | |
4349 | * unittests/optional/assignment/3.cc: New file. | |
4350 | * unittests/optional/assignment/4.cc: New file. | |
4351 | * unittests/optional/assignment/5.cc: New file. | |
4352 | * unittests/optional/assignment/6.cc: New file. | |
4353 | * unittests/optional/assignment/7.cc: New file. | |
4354 | * unittests/optional/cons/copy.cc: New file. | |
4355 | * unittests/optional/cons/default.cc: New file. | |
4356 | * unittests/optional/cons/move.cc: New file. | |
4357 | * unittests/optional/cons/value.cc: New file. | |
4358 | * unittests/optional/in_place.cc: New file. | |
4359 | * unittests/optional/observers/1.cc: New file. | |
4360 | * unittests/optional/observers/2.cc: New file. | |
4361 | ||
22796e97 PA |
4362 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4363 | ||
4364 | * common/gdb_optional.h: Include common/traits.h. | |
4365 | (in_place_t): New type. | |
4366 | (in_place): New constexpr variable. | |
4367 | (optional::optional): Remove member initialization of | |
4368 | m_instantiated. | |
4369 | (optional::optional(in_place_t...)): New constructor. | |
4370 | (optional::~optional): Use reset. | |
4371 | (optional::optional(const optional&)): New. | |
4372 | (optional::optional(const optional&&)): New. | |
4373 | (optional::optional(T &)): New. | |
4374 | (optional::optional(T &&)): New. | |
4375 | (operator::operator=(const optional &)): New. | |
4376 | (operator::operator=(optional &&)): New. | |
4377 | (operator::operator= (const T &)) | |
4378 | (operator::operator= (T &&)) | |
4379 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
4380 | (operator::reset): New. | |
4381 | (operator::m_instantiated):: Add in-class initializer. | |
4382 | * common/traits.h: Include <type_traits>. | |
4383 | (struct And): New types. | |
4384 | ||
a7fc9b61 PA |
4385 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4386 | ||
4387 | * xml-support.c: Include <vector>. | |
4388 | (scope_level::scope_level(const gdb_xml_element *)) | |
4389 | (scope_level::scope_level(scope_level&&)): New. | |
4390 | (scope_level::~scope_level): New. | |
4391 | (scope_level_s): Delete. | |
4392 | (gdb_xml_parser::scopes): Now a std::vector. | |
4393 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
4394 | Use std::vector. | |
4395 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
4396 | scope cleanup code. | |
4397 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
4398 | of the scopes member. Use std::vector::emplace_back. | |
4399 | ||
010151c9 PA |
4400 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4401 | ||
4402 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
4403 | a bool. | |
4404 | (gdb_xml_end_element): Change type of first parameter. | |
4405 | (gdb_xml_cleanup): Rename to ... | |
4406 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
4407 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
4408 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
4409 | to this new ctor. | |
4410 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
4411 | using gdb_xml_create_parser_and_cleanup. | |
4412 | (xinclude_parsing_data): Add ctor/dtor. | |
4413 | (xml_xinclude_cleanup): Delete. | |
4414 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
4415 | instead of heap-allocating one. Create a local gdb_xml_parser | |
4416 | instead of heap-allocating one with | |
4417 | gdb_xml_create_parser_and_cleanup. | |
4418 | ||
d56060f0 JB |
4419 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
4420 | ||
4421 | PR threads/20743 | |
4422 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
4423 | (resume_all_threads_cb): Remove. | |
4424 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
4425 | iterate_over_threads. | |
4426 | ||
305d16a9 JB |
4427 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
4428 | ||
4429 | * NEWS: Create a new section for the next release branch. | |
4430 | Rename the section of the current branch, now that it has | |
4431 | been cut. | |
4432 | ||
8bb57231 JB |
4433 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
4434 | ||
4435 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
4436 | * version.in: Bump version to 8.0.50.DATE-git. | |
4437 | ||
096c92dd SDJ |
4438 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
4439 | ||
4440 | PR gdb/21385 | |
4441 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
4442 | independently of the host, and fix build breakage on Cygwin. | |
4443 | ||
0550c955 PA |
4444 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4445 | ||
4446 | * inferior.c (free_inferior): Convert to ... | |
4447 | (inferior::~inferior): ... this dtor. | |
4448 | (inferior::inferior): New ctor, factored out from ... | |
4449 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
4450 | expression. | |
4451 | (delete_inferior): Call delete instead of free_inferior. | |
4452 | * inferior.h (gdb_environ, continuation): Forward declare. | |
4453 | (inferior): Now a class. Add in-class initialization to all | |
4454 | members. Make boolean fields bool, except 'detaching'. | |
4455 | (inferior::inferior): New explicit ctor. | |
4456 | (inferior::~inferior): New. | |
4457 | ||
e3d60dfc PA |
4458 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4459 | ||
4460 | * inferior.c (init_inferior_list): Delete. | |
4461 | * inferior.h (init_inferior_list): Delete. | |
4462 | ||
5fd69d0a PA |
4463 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4464 | ||
4465 | PR threads/13217 | |
4466 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
4467 | (top level): Call it twice, with different thread sets. | |
4468 | ||
c6609450 PA |
4469 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4470 | ||
4471 | * thread.c: Include <algorithm>. | |
4472 | (thread_array_cleanup): Delete. | |
4473 | (scoped_inc_dec_ref): New class. | |
4474 | (live_threads_count): New function. | |
4475 | (set_thread_refcount): Delete. | |
4476 | (tp_array_compar_ascending): Now a bool. | |
4477 | (tp_array_compar): Convert to a std::sort comparison function. | |
4478 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
4479 | and live_threads_count. | |
4480 | ||
2a00d7ce PA |
4481 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4482 | ||
4483 | * infrun.c (follow_fork_inferior): Also switch the current | |
4484 | inferior. | |
4485 | ||
441d7c93 PA |
4486 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4487 | ||
4488 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
4489 | before calling create_internal_breakpoint. | |
4490 | ||
808480f6 PA |
4491 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4492 | ||
4493 | * fork-child.c (execv_argv): New class. | |
4494 | (breakup_args): Refactored as ... | |
4495 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
4496 | Copy arguments to storage and replace separators with NULL | |
4497 | terminators in place. | |
4498 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
4499 | (execv_argv::execv_argv): New ctor. | |
4500 | (execv_argv::init_for_shell): New method, factored out from | |
4501 | fork_inferior. Don't strdup strings into the vector. | |
4502 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
4503 | Remove free_vector_argv call. | |
4504 | ||
ad3d022a YQ |
4505 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
4506 | ||
4507 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
4508 | tdep->rx_psw_type. | |
4509 | ||
e6ddc3bf YQ |
4510 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
4511 | ||
4512 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
4513 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
4514 | ||
bfb8cf90 PA |
4515 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4516 | ||
4517 | * breakpoint.h (struct breakpoint): Reindent. | |
4518 | ||
f5336ca5 PA |
4519 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4520 | ||
4521 | * breakpoint.c (bp_location): Rename to ... | |
4522 | (bp_locations): ... this. All references updated. | |
4523 | (bp_location_count): Rename to ... | |
4524 | (bp_locations_count): ... this. All references updated. | |
4525 | (bp_location_placed_address_before_address_max): Rename to ... | |
4526 | (bp_locations_placed_address_before_address_max): ... this. All | |
4527 | references updated. | |
4528 | (bp_location_shadow_len_after_address_max): Rename to ... | |
4529 | (bp_locations_shadow_len_after_address_max): ... this. All | |
4530 | references updated. | |
4531 | (bp_location_compare_addrs): Rename to ... | |
4532 | (bp_locations_compare_addrs): ... this. All references updated. | |
4533 | (bp_location_compare):Rename to ... | |
4534 | (bp_locations_compare): ... this. All references updated. | |
4535 | (bp_location_target_extensions_update): Rename to ... | |
4536 | (bp_locations_target_extensions_update): ... this. All references | |
4537 | updated. | |
4538 | ||
be628ab8 SDJ |
4539 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4540 | ||
4541 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
4542 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
4543 | 'sgtty.h'. | |
4544 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
4545 | * inflow.c: Include "gdb_termios.h". | |
4546 | * ser-unix.c: Include "gdb_termios.h". | |
4547 | * terminal.h: Move terminal-related defines to | |
4548 | "common/gdb_termios.h". | |
4549 | ||
8e9e35b1 TT |
4550 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4551 | ||
4552 | * probe.c (parse_probes): Update. | |
4553 | * location.h (delete_event_location): Don't declare. | |
4554 | (event_location_deleter::operator()): Update. | |
4555 | * location.c (event_location_deleter::operator()): Rename from | |
4556 | delete_event_location. | |
4557 | * linespec.h (linespec_result) <location>: Change type to | |
4558 | event_location_up. | |
4559 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
4560 | (decode_objc): Update. | |
4561 | (linespec_result): Don't call delete_event_location. | |
4562 | * breakpoint.c (create_breakpoints_sal) | |
4563 | (bkpt_probe_create_sals_from_location) | |
4564 | (strace_marker_create_sals_from_location): Update. | |
4565 | ||
16e802b9 TT |
4566 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4567 | ||
4568 | * linespec.h (struct linespec_result): Add constructor and | |
4569 | destructor. | |
4570 | (init_linespec_result, destroy_linespec_result) | |
4571 | (make_cleanup_destroy_linespec_result): Don't declare. | |
4572 | * linespec.c (init_linespec_result): Remove. | |
4573 | (linespec_result::~linespec_result): Rename from | |
4574 | destroy_linespec_result. Update. | |
4575 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
4576 | Remove. | |
4577 | * breakpoint.c (create_breakpoint, break_range_command) | |
4578 | (decode_location_default): Update. | |
4579 | * ax-gdb.c (agent_command_1): Update. | |
4580 | ||
d28cd78a TT |
4581 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4582 | ||
4583 | * remote.c (remote_download_tracepoint): Update. | |
4584 | * python/py-breakpoint.c (bppy_get_location): Update. | |
4585 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
4586 | (gdbscm_breakpoint_location): Update. | |
4587 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
4588 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
4589 | Change type to event_location_up. | |
4590 | * breakpoint.c (create_overlay_event_breakpoint) | |
4591 | (create_longjmp_master_breakpoint) | |
4592 | (create_std_terminate_master_breakpoint) | |
4593 | (create_exception_master_breakpoint) | |
4594 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
4595 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
4596 | (init_breakpoint_sal, create_breakpoint) | |
4597 | (print_recreate_ranged_breakpoint, break_range_command) | |
4598 | (init_ada_exception_breakpoint, say_where): Update. | |
4599 | (base_breakpoint_dtor): Don't call delete_event_location. | |
4600 | (bkpt_print_recreate, tracepoint_print_recreate) | |
4601 | (dprintf_print_recreate, update_static_tracepoint) | |
4602 | (breakpoint_re_set_default): Update. | |
4603 | ||
711799d5 TT |
4604 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4605 | ||
4606 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
4607 | type of "to_do". Update. | |
4608 | (compute_stack_depth): Use std::vector. | |
4609 | ||
52d214d3 TT |
4610 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4611 | ||
4612 | * printcmd.c (find_instruction_backward): Use std::vector. | |
4613 | ||
4c404b8b TT |
4614 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4615 | ||
4616 | * symfile.c (objfilep): Remove typedef. | |
4617 | (reread_symbols): Use a std::vector. | |
4618 | ||
156d9eab TT |
4619 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4620 | ||
4621 | * mi/mi-main.c (exec_direction_forward): Remove. | |
4622 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
4623 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
4624 | scoped_restore. | |
4625 | * guile/guile.c (guile_repl_command, guile_command) | |
4626 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
4627 | * go-exp.y (go_parse): Use scoped_restore. | |
4628 | * d-exp.y (d_parse): Use scoped_restore. | |
4629 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
4630 | * c-exp.y (c_parse): Use scoped_restore. | |
4631 | ||
4d89769a TT |
4632 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4633 | ||
4634 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
4635 | (mi_parse): Update return type. | |
4636 | (mi_parse_free): Remove. | |
4637 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
4638 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
4639 | (mi_parse_cleanup): Remove. | |
4640 | (mi_parse): Return a unique_ptr. Use new. | |
4641 | * mi/mi-main.c (mi_execute_command): Update. | |
4642 | ||
4b217cc7 TT |
4643 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4644 | ||
4645 | * location.c (explicit_location_lex_one): Return a | |
4646 | unique_xmalloc_ptr. | |
4647 | (string_to_explicit_location): Update. Remove cleanups. | |
4648 | ||
59d3651b TT |
4649 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4650 | ||
4651 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
4652 | (compare_value_and_voffset): Change type. Update. | |
4653 | (compute_vtable_size): Change type of "offset_vec". | |
4654 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
4655 | (gnuv3_get_typeid): Remove extraneous declaration. | |
4656 | ||
b24b0d6c TT |
4657 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4658 | ||
4659 | * charset.h (wchar_iterator): Fix comment. | |
4660 | ||
80a3b8c5 TT |
4661 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4662 | ||
4663 | * charset.c (iconv_wrapper): New class. | |
4664 | (cleanup_iconv): Remove. | |
4665 | (convert_between_encodings): Use it. | |
4666 | ||
c83dd867 TT |
4667 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4668 | ||
4669 | * symfile.h (increment_reading_symtab): Update type. | |
4670 | * symfile.c (decrement_reading_symtab): Remove. | |
4671 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
4672 | * psymtab.c (psymtab_to_symtab): Update. | |
4673 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
4674 | ||
0e8621a0 TT |
4675 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4676 | ||
4677 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
4678 | and destructor. Change type of "handle". | |
4679 | (loaded_jit_reader): Define separately. | |
4680 | (jit_reader_load): Update. New "new". | |
4681 | (jit_reader_unload_command): Use "delete". | |
4682 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
4683 | (gdb_dlhandle_up): New typedef. | |
4684 | (gdb_dlopen, gdb_dlsym): Update types. | |
4685 | (gdb_dlclose): Remove. | |
4686 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
4687 | (gdb_dlsym): Change type of "handle". | |
4688 | (make_cleanup_dlclose): Remove. | |
4689 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
4690 | * compile/compile-c-support.c (load_libcc): Update. | |
4691 | ||
67d89901 TT |
4692 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4693 | ||
4694 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
4695 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
4696 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
4697 | type of "vec". Update. | |
4698 | (ltpy_get_pcs_for_line): Update. | |
4699 | * linespec.c (decode_digits_ordinary): Update. | |
4700 | ||
93921405 TT |
4701 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4702 | ||
4703 | * tracepoint.c (actions_command): Update. | |
4704 | * python/python.c (python_command, python_interactive_command): | |
4705 | Update. | |
4706 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
4707 | * guile/guile.c (guile_command): Update. | |
4708 | * defs.h (read_command_lines, read_command_lines_1): Return | |
4709 | command_line_up. | |
4710 | (command_lines_deleter): New struct. | |
4711 | (command_line_up): New typedef. | |
4712 | * compile/compile.c (compile_code_command) | |
4713 | (compile_print_command): Update. | |
4714 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
4715 | command_line_up. | |
4716 | (make_cleanup_free_command_lines): Remove. | |
4717 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
4718 | (copy_command_lines): Return command_line_up. | |
4719 | (while_command, if_command, read_command_lines, define_command) | |
4720 | (document_command): Update. | |
4721 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
4722 | Remove. | |
4723 | * breakpoint.h (breakpoint_set_commands): Change type of | |
4724 | "commands". | |
4725 | * breakpoint.c (breakpoint_set_commands): Change type of | |
4726 | "commands". Update. | |
4727 | (do_map_commands_command, update_dprintf_command_list) | |
4728 | (create_tracepoint_from_upload): Update. | |
4729 | ||
ffc2605c TT |
4730 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4731 | ||
4732 | * tracepoint.c (scope_info): Update. | |
4733 | * spu-tdep.c (spu_catch_start): Update. | |
4734 | * python/python.c (gdbpy_decode_line): Update. | |
4735 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
4736 | * python/py-breakpoint.c (bppy_init): Update. | |
4737 | * probe.c (parse_probes): Update. | |
4738 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
4739 | * location.h (event_location_deleter): New struct. | |
4740 | (event_location_up): New typedef. | |
4741 | (new_linespec_location, new_address_location, new_probe_location) | |
4742 | (new_explicit_location, copy_event_location) | |
4743 | (string_to_event_location, string_to_event_location_basic) | |
4744 | (string_to_explicit_location): Update return type. | |
4745 | (make_cleanup_delete_event_location): Remove. | |
4746 | * location.c (new_linespec_location, new_address_location) | |
4747 | (new_probe_location, new_explicit_location, copy_event_location): | |
4748 | Return event_location_up. | |
4749 | (delete_event_location_cleanup) | |
4750 | (make_cleanup_delete_event_location): Remove. | |
4751 | (string_to_explicit_location, string_to_event_location_basic) | |
4752 | (string_to_event_location): Return event_location_up. | |
4753 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
4754 | (decode_line_with_current_source) | |
4755 | (decode_line_with_last_displayed, decode_objc): Update. | |
4756 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
4757 | * completer.c (location_completer): Update. | |
4758 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
4759 | * breakpoint.c (create_overlay_event_breakpoint) | |
4760 | (create_longjmp_master_breakpoint) | |
4761 | (create_std_terminate_master_breakpoint) | |
4762 | (create_exception_master_breakpoint) | |
4763 | (create_thread_event_breakpoint): Update. | |
4764 | (init_breakpoint_sal): Update. Remove some dead code. | |
4765 | (create_breakpoint_sal): Change type of "location". Update. | |
4766 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
4767 | (dprintf_command, break_range_command, until_break_command) | |
4768 | (init_ada_exception_breakpoint) | |
4769 | (strace_marker_create_sals_from_location) | |
4770 | (update_static_tracepoint, trace_command, ftrace_command) | |
4771 | (strace_command, create_tracepoint_from_upload): Update. | |
4772 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
4773 | * ax-gdb.c (agent_command_1): Update. | |
4774 | ||
8f10c932 PA |
4775 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4776 | ||
4777 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
4778 | * configure.tgt: Handle i[34567]86-*-go32* and | |
4779 | i[34567]86-*-msdosdjgpp*. | |
4780 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
4781 | Make extern. | |
4782 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
4783 | i386-go32-tdep.c. | |
4784 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
4785 | * i386-go32-tdep.c: New file. | |
4786 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
4787 | declarations. | |
4788 | ||
0a31ccfb SM |
4789 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
4790 | ||
4791 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
4792 | ||
e9bb3fbb PA |
4793 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4794 | ||
4795 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
4796 | calls to set_gdbarch_gnu_triplet_regexp. | |
4797 | ||
53375380 PA |
4798 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4799 | ||
4800 | PR gdb/21323 | |
4801 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
4802 | New enum value. | |
4803 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
4804 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
4805 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
4806 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
4807 | * gdbarch.h, gdbarch.c: Regenerate. | |
4808 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
4809 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
4810 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
4811 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
4812 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
4813 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
4814 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
4815 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
4816 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
4817 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
4818 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
4819 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
4820 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
4821 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
4822 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
4823 | * windows-tdep.c (windows_init_abi): Likewise. | |
4824 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
4825 | ||
53e710ac PA |
4826 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4827 | ||
4828 | PR c++/21323 | |
4829 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
4830 | cplus_primitive_type_char32_t>: New enum values. | |
4831 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
4832 | and cplus_primitive_type_char32_t. | |
4833 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
4834 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
4835 | respectively. Otherwise, fallback to init_integer_type as before, | |
4836 | but make the type unsigned, and issue a complaint. | |
4837 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
4838 | ||
ab0538b8 AH |
4839 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
4840 | ||
5e0e0422 | 4841 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
4842 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
4843 | ||
5430098f SDJ |
4844 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4845 | ||
4846 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
4847 | 'const char *'. | |
4848 | ||
7c5ded6a SDJ |
4849 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4850 | ||
4851 | * common/common-utils.c (free_vector_argv): New function. | |
4852 | * common/common-utils.h: Include <vector>. | |
4853 | (free_vector_argv): New prototype. | |
4854 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
4855 | prototype in order to constify "exec_file" and accept a | |
4856 | "std::string" for "allargs". | |
4857 | * fork-child.c: Include <vector>. | |
4858 | (breakup_args): Rewrite function, using C++. | |
4859 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
4860 | and accept "std::string" for "allargs". Update the code to | |
4861 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
4862 | and "execvp". | |
4863 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
4864 | order to constify "exec_file" and accept a "std::string" for | |
4865 | "allargs". | |
4866 | * go32-nat.c (go32_create_inferior): Likewise. | |
4867 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
4868 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
4869 | "std::string" for inferior arguments. | |
4870 | * inferior.h (fork_inferior): Update prototype. | |
4871 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
4872 | prototype in order to constify "exec_file" and accept a | |
4873 | "std::string" for "allargs". | |
4874 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
4875 | * procfs.c (procfs_create_inferior): Likewise. | |
4876 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
4877 | * remote.c (extended_remote_run): Update code to accept | |
4878 | "std::string" as argument. | |
4879 | (extended_remote_create_inferior): Rewrite function prototype in | |
4880 | order to constify "exec_file" and accept a "std::string" for | |
4881 | "allargs". | |
4882 | * rs6000-nat.c (super_create_inferior): Likewise. | |
4883 | (rs6000_create_inferior): Likewise. | |
4884 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
4885 | * windows-nat.c (windows_create_inferior): Likewise. | |
4886 | ||
ae0eee42 PA |
4887 | 2017-04-11 Pedro Alves <palves@redhat.com> |
4888 | ||
4889 | * thread.c: Fix whitespace throughout. | |
4890 | ||
a6acac06 PR |
4891 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
4892 | ||
4893 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
4894 | ||
64403bd1 AH |
4895 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
4896 | ||
4897 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
4898 | ||
a5bef50f SDJ |
4899 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
4900 | ||
4901 | PR gdb/21364 | |
4902 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
4903 | instead of NULL. | |
4904 | ||
9295a5a9 PA |
4905 | 2017-04-10 Pedro Alves <palves@redhat.com> |
4906 | ||
4907 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
4908 | (ptid_to_global_thread_id, in_thread_list) | |
4909 | (do_captured_list_thread_ids, set_resumed, set_running) | |
4910 | (set_executing, set_stop_requested, finish_thread_state) | |
4911 | (validate_registers_access, can_access_registers_ptid) | |
4912 | (print_thread_info_1, switch_to_thread) | |
4913 | (do_restore_current_thread_cleanup) | |
4914 | (make_cleanup_restore_current_thread, thread_command) | |
4915 | (thread_name_command): Use operator== instead of ptid_equal. | |
4916 | ||
996812e3 PA |
4917 | 2017-04-10 Pedro Alves <palves@redhat.com> |
4918 | ||
4919 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
4920 | (current_thread_cleanup_chain): Delete. | |
4921 | (restore_current_thread_cleanup_dtor) | |
4922 | (make_cleanup_restore_current_thread): Remove references to | |
4923 | current_thread_cleanup_chain. | |
4924 | ||
845b344f AH |
4925 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
4926 | ||
4927 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
4928 | REG_UNKNOWN. | |
4929 | ||
803bdfe4 YQ |
4930 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
4931 | ||
4932 | PR gdb/19942 | |
4933 | * gdbthread.h (thread_info::deletable): New method. | |
4934 | (thread_info::incref): New method. | |
4935 | (thread_info::decref): New method. | |
4936 | (thread_info::refcount): Move it to private. | |
4937 | * infrun.c (save_stop_context): Call inc_refcount. | |
4938 | (release_stop_context_cleanup): Likewise. | |
4939 | * thread.c (set_thread_exited): New function. | |
4940 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
4941 | call set_thread_exited. | |
4942 | (delete_thread_1): Call set_thread_exited. | |
4943 | (current_thread_cleanup) <inferior_pid>: Remove. | |
4944 | <thread>: New field. | |
4945 | (restore_current_thread_ptid_changed): Removed. | |
4946 | (do_restore_current_thread_cleanup): Adjust. | |
4947 | (restore_current_thread_cleanup_dtor): Don't call | |
4948 | find_thread_ptid. | |
4949 | (set_thread_refcount): Use dec_refcount. | |
4950 | (make_cleanup_restore_current_thread): Adjust. | |
4951 | (thread_apply_all_command): Call inc_refcount. | |
4952 | (_initialize_thread): Don't call | |
4953 | observer_attach_thread_ptid_changed. | |
4954 | ||
8c25b497 YQ |
4955 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
4956 | ||
4957 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
4958 | exited. | |
4959 | ||
8473b447 SM |
4960 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
4961 | ||
4962 | * windows-nat.c (windows_detach): Initialize ptid with | |
4963 | minus_one_ptid. | |
4964 | ||
6670ec13 SM |
4965 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
4966 | ||
4967 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
4968 | ||
ba2f91bb AH |
4969 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
4970 | ||
4971 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
4972 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
4973 | (bfin_pseudo_register_write): Likewise | |
4974 | ||
436252de SM |
4975 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
4976 | ||
4977 | * common/ptid.h (struct ptid): Change to... | |
4978 | (class ptid_t): ... this. | |
4979 | <ptid_t>: New constructors. | |
4980 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
4981 | matches>: New methods. | |
4982 | <make_null, make_minus_one>: New static methods. | |
4983 | <pid>: Rename to... | |
4984 | <m_pid>: ...this. | |
4985 | <lwp>: Rename to... | |
4986 | <m_lwp>: ...this. | |
4987 | <tid>: Rename to... | |
4988 | <m_tid>: ...this. | |
4989 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
4990 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
4991 | as references, move comment to class ptid_t. | |
4992 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
4993 | ptid_t static methods. | |
4994 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
4995 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
4996 | Take ptid arguments as references, implement using ptid_t methods. | |
4997 | * unittests/ptid-selftests.c: New file. | |
4998 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4999 | unittests/ptid-selftests.c. | |
5000 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
5001 | ||
0dedf377 TP |
5002 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
5003 | ||
5004 | * python/python.c (python_run_simple_file): Cast mode literal to | |
5005 | non-const char pointer as expected by PyFile_FromString. | |
5006 | ||
4e9868d4 SM |
5007 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
5008 | ||
5009 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
5010 | minus_one_ptid and null_ptid. | |
5011 | ||
9bf2a700 PA |
5012 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5013 | ||
5014 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
5015 | * configure: Regenerate. | |
5016 | ||
a121b7c1 PA |
5017 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5018 | ||
5019 | * ada-exp.y (yyerror): Constify. | |
5020 | * ada-lang.c (bound_name, get_selections) | |
5021 | (ada_variant_discrim_type) | |
5022 | (ada_variant_discrim_name, ada_value_struct_elt) | |
5023 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
5024 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
5025 | (catch_ada_exception_command_split) | |
5026 | (catch_ada_assert_command_split, catch_assert_command) | |
5027 | (ada_op_name): Constify. | |
5028 | * ada-lang.h (ada_yyerror, get_selections) | |
5029 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
5030 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
5031 | * arm-tdep.c (arm_skip_stub): Constify. | |
5032 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
5033 | (gen_aggregate_elt_ref): Constify. | |
5034 | * bcache.c (print_bcache_statistics): Constify. | |
5035 | * bcache.h (print_bcache_statistics): Constify. | |
5036 | * break-catch-throw.c (catch_exception_command_1): | |
5037 | * breakpoint.c (struct ep_type_description::description): | |
5038 | Constify. | |
5039 | (add_solib_catchpoint): Constify. | |
5040 | (catch_fork_command_1): Add cast. | |
5041 | (add_catch_command): Constify. | |
5042 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
5043 | Constify. | |
5044 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
5045 | * buildsym.c (patch_subfile_names): Constify. | |
5046 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
5047 | Constify. | |
5048 | * c-exp.y (yyerror): Constify. | |
5049 | (token::oper): Constify. | |
5050 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
5051 | * c-varobj.c (cplus_describe_child): Constify. | |
5052 | * charset.c (find_charset_names): Add cast. | |
5053 | (find_charset_names): Constify array and add const_cast. | |
5054 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
5055 | (edit_command): Constify. | |
5056 | * cli/cli-decode.c (lookup_cmd): Constify. | |
5057 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
5058 | Constify. | |
5059 | (struct dump_context): Constify. | |
5060 | (add_dump_command, restore_command): Constify. | |
5061 | * cli/cli-script.c (get_command_line): Constify. | |
5062 | * cli/cli-script.h (get_command_line): Constify. | |
5063 | * cli/cli-utils.c (check_for_argument): Constify. | |
5064 | * cli/cli-utils.h (check_for_argument): Constify. | |
5065 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
5066 | * command.h (lookup_cmd): Constify. | |
5067 | * common/print-utils.c (decimal2str): Constify. | |
5068 | * completer.c (gdb_print_filename): Constify. | |
5069 | * corefile.c (set_gnutarget): Constify. | |
5070 | * cp-name-parser.y (yyerror): Constify. | |
5071 | * cp-valprint.c (cp_print_class_member): Constify. | |
5072 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
5073 | Constify. | |
5074 | * d-exp.y (yyerror): Constify. | |
5075 | (struct token::oper): Constify. | |
5076 | * d-lang.h (d_yyerror): Constify. | |
5077 | * dbxread.c (struct header_file_location::name): Constify. | |
5078 | (add_old_header_file, add_new_header_file, last_function_name) | |
5079 | (dbx_next_symbol_text, add_bincl_to_list) | |
5080 | (find_corresponding_bincl_psymtab, set_namestring) | |
5081 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
5082 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
5083 | * defs.h (command_line_input, print_address_symbolic) | |
5084 | (deprecated_readline_begin_hook): Constify. | |
5085 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
5086 | Constify. | |
5087 | * event-top.c (handle_line_of_input): Constify and add cast. | |
5088 | * exceptions.c (catch_errors): Constify. | |
5089 | * exceptions.h (catch_errors): Constify. | |
5090 | * expprint.c (print_subexp_standard, op_string, op_name) | |
5091 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
5092 | * expression.h (op_name, op_string, dump_raw_expression): | |
5093 | Constify. | |
5094 | * f-exp.y (yyerror): Constify. | |
5095 | (struct token::oper): Constify. | |
5096 | (struct f77_boolean_val::name): Constify. | |
5097 | * f-lang.c (f_word_break_characters): Constify. | |
5098 | * f-lang.h (f_yyerror): Constify. | |
5099 | * fork-child.c (fork_inferior): Add cast. | |
5100 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
5101 | (new_variant): Constify. | |
5102 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
5103 | * gdbarch.c: Regenerate. | |
5104 | * gdbcore.h (set_gnutarget): Constify. | |
5105 | * go-exp.y (yyerror): Constify. | |
5106 | (token::oper): Constify. | |
5107 | * go-lang.h (go_yyerror): Constify. | |
5108 | * go32-nat.c (go32_sysinfo): Constify. | |
5109 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
5110 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
5111 | * guile/scm-param.c (pascm_param_value): Constify. | |
5112 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
5113 | (h8300sx_register_name): Constify. | |
5114 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
5115 | Constify. | |
5116 | * ia64-tdep.c (ia64_register_names): Constify. | |
5117 | * infcmd.c (construct_inferior_arguments): Constify. | |
5118 | (path_command, attach_post_wait): Constify. | |
5119 | * language.c (show_range_command, show_case_command) | |
5120 | (unk_lang_error): Constify. | |
5121 | * language.h (language_defn::la_error) | |
5122 | (language_defn::la_name_of_this): Constify. | |
5123 | * linespec.c (decode_line_2): Constify. | |
5124 | * linux-thread-db.c (thread_db_err_str): Constify. | |
5125 | * lm32-tdep.c (lm32_register_name): Constify. | |
5126 | * m2-exp.y (yyerror): Constify. | |
5127 | * m2-lang.h (m2_yyerror): Constify. | |
5128 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
5129 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
5130 | * m88k-tdep.c (m88k_register_name): Constify. | |
5131 | * macroexp.c (appendmem): Constify. | |
5132 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
5133 | (upgrade_type, parse_external, parse_partial_symbols) | |
5134 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
5135 | (new_symbol): Constify. | |
5136 | * memattr.c (mem_info_command): Constify. | |
5137 | * mep-tdep.c (register_name_from_keyword): Constify. | |
5138 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
5139 | Constify. | |
5140 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
5141 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
5142 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
5143 | cast. | |
5144 | (mi_execute_async_cli_command): Constify. | |
5145 | * mips-tdep.c (mips_register_name): Constify. | |
5146 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
5147 | (am33_register_name, am33_2_register_name) | |
5148 | * moxie-tdep.c (moxie_register_names): Constify. | |
5149 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
5150 | * nto-tdep.c (nto_parse_redirection): Constify. | |
5151 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
5152 | (lookup_child_selector): Constify. | |
5153 | (objc_methcall::name): Constify. | |
5154 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
5155 | (lookup_struct_typedef): Constify. | |
5156 | * objfiles.c (pc_in_section): Constify. | |
5157 | * objfiles.h (pc_in_section): Constify. | |
5158 | * p-exp.y (struct token::oper): Constify. | |
5159 | (yyerror): Constify. | |
5160 | * p-lang.h (pascal_yyerror): Constify. | |
5161 | * parser-defs.h (op_name_standard): Constify. | |
5162 | (op_print::string): Constify. | |
5163 | (exp_descriptor::op_name): Constify. | |
5164 | * printcmd.c (print_address_symbolic): Constify. | |
5165 | * psymtab.c (print_partial_symbols): Constify. | |
5166 | * python/py-breakpoint.c (stop_func): Constify. | |
5167 | (bppy_get_expression): Constify. | |
5168 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
5169 | (cmdpy_function): Constify. | |
5170 | * python/py-event.c (evpy_add_attribute) | |
5171 | (gdbpy_initialize_event_generic): Constify. | |
5172 | * python/py-event.h (evpy_add_attribute) | |
5173 | (gdbpy_initialize_event_generic): Constify. | |
5174 | * python/py-evts.c (add_new_registry): Constify. | |
5175 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
5176 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
5177 | * python/py-inferior.c (get_buffer): Add cast. | |
5178 | * python/py-param.c (parm_constant::name): Constify. | |
5179 | * python/py-unwind.c (fprint_frame_id): Constify. | |
5180 | * python/python.c (gdbpy_parameter_value): Constify. | |
5181 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
5182 | * remote.c (memory_packet_config::name): Constify. | |
5183 | (show_packet_config_cmd, remote_write_bytes) | |
5184 | (remote_buffer_add_string): | |
5185 | * reverse.c (exec_reverse_once): Constify. | |
5186 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
5187 | * rust-exp.y (rustyyerror): Constify. | |
5188 | * rust-lang.c (rust_op_name): Constify. | |
5189 | * rust-lang.h (rustyyerror): Constify. | |
5190 | * serial.h (serial_ops::name): Constify. | |
5191 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
5192 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
5193 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
5194 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
5195 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
5196 | (sh_sh4al_dsp_register_name): Constify. | |
5197 | * sh64-tdep.c (sh64_register_name): Constify. | |
5198 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
5199 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
5200 | * stabsread.c (patch_block_stabs, read_type_number) | |
5201 | (ref_map::stabs, ref_add, process_reference) | |
5202 | (symbol_reference_defined, define_symbol, define_symbol) | |
5203 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
5204 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
5205 | (read_tilde_fields, read_struct_type, read_array_type) | |
5206 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
5207 | (read_huge_number, read_range_type, read_args, common_block_start) | |
5208 | (find_name_end): Constify. | |
5209 | * stabsread.h (common_block_start, define_symbol) | |
5210 | (process_one_symbol, symbol_reference_defined, ref_add): | |
5211 | * symfile.c (get_section_index, add_symbol_file_command): | |
5212 | * symfile.h (get_section_index): Constify. | |
5213 | * target-descriptions.c (tdesc_type::name): Constify. | |
5214 | (tdesc_free_type): Add cast. | |
5215 | * target.c (find_default_run_target): | |
5216 | (add_deprecated_target_alias, find_default_run_target) | |
5217 | (target_announce_detach): Constify. | |
5218 | (do_option): Constify. | |
5219 | * target.h (add_deprecated_target_alias): Constify. | |
5220 | * thread.c (print_thread_info_1): Constify. | |
5221 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
5222 | Constify. | |
5223 | (init_main): Add casts. | |
5224 | * top.h (handle_line_of_input): Constify. | |
5225 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
5226 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
5227 | (tfind_command): Rename to ... | |
5228 | (tfind_command_1): ... this and constify. | |
5229 | (tfind_command): New function. | |
5230 | (tfind_end_command, tfind_start_command): Adjust. | |
5231 | (encode_source_string): Constify. | |
5232 | * tracepoint.h (encode_source_string): Constify. | |
5233 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
5234 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
5235 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
5236 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
5237 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
5238 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
5239 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
5240 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
5241 | * tui/tui.c (tui_enable): Add cast. | |
5242 | * utils.c (defaulted_query): Constify. | |
5243 | (init_page_info): Add cast. | |
5244 | (puts_debug, subset_compare): Constify. | |
5245 | * utils.h (subset_compare): Constify. | |
5246 | * varobj.c (varobj_format_string): Constify. | |
5247 | * varobj.h (varobj_format_string): Constify. | |
5248 | * vax-tdep.c (vax_register_name): Constify. | |
5249 | * windows-nat.c (windows_detach): Constify. | |
5250 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
5251 | * xml-support.c (gdb_xml_end_element): Constify. | |
5252 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
5253 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
5254 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
5255 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
5256 | ||
995816ba PA |
5257 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5258 | ||
5259 | * proc-api.c (struct trans): Constify. | |
5260 | (procfs_note): Constify. | |
5261 | * proc-events.c (struct trans, syscall_table): | |
5262 | * proc-flags.c (struct trans): Constify. | |
5263 | * proc-utils.h (procfs_note): Constify. | |
5264 | * proc-why.c (struct trans): Constify. | |
5265 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
5266 | (procfs_detach): Constify. | |
5267 | * sol-thread.c (struct string_map): Constify. | |
5268 | (td_err_string, td_state_string): Constify. | |
5269 | ||
3e83a920 PA |
5270 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5271 | ||
5272 | * proc-api.c (procfs_filename): Don't initialize | |
5273 | procfs_filename. | |
5274 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
5275 | (_initialize_proc_api): Give procfs_filename a default value here. | |
5276 | ||
63160a43 PA |
5277 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5278 | ||
5279 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
5280 | 'cond_string' parameter. | |
5281 | (extract_exception_regexp): Constify 'string' parameter. | |
5282 | (catch_exception_command_1): Constify. | |
5283 | * breakpoint.c (init_catchpoint) | |
5284 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
5285 | parameter. | |
5286 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
5287 | (catch_exec_command_1): Constify. | |
5288 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
5289 | parameter. | |
5290 | (ep_parse_optional_if_clause): Constify. | |
5291 | * cli/cli-utils.c (remove_trailing_whitespace) | |
5292 | (check_for_argument): Constify. | |
5293 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
5294 | non-const overload. | |
5295 | (check_for_argument): Likewise. | |
5296 | ||
9b2eba3d PA |
5297 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5298 | ||
5299 | * event-top.c (command_line_handler): Add cast to execute_command | |
5300 | call. | |
5301 | * record-btrace.c (cmd_record_btrace_bts_start) | |
5302 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
5303 | (cmd_record_btrace_start): Add cast to execute_command call. | |
5304 | * record-full.c (record_full_goto_insn): | |
5305 | * record.c (record_start, record_stop): Add cast to | |
5306 | execute_command_to_string calls. | |
5307 | (cmd_record_start): Add cast to execute_command calls. | |
5308 | ||
2adadf51 PA |
5309 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5310 | ||
5311 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
5312 | static inline function. | |
5313 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
5314 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
5315 | * python/py-cmd.c (cmdpy_init): Likewise. | |
5316 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
5317 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
5318 | (infpy_search_memory): Likewise. | |
5319 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
5320 | (gdbpy_lookup_objfile): Likewise. | |
5321 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
5322 | (gdbpy_lookup_global_symbol): Likewise. | |
5323 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
5324 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
5325 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
5326 | Likewise. | |
5327 | ||
0d1f4ceb PA |
5328 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5329 | ||
5330 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
5331 | * python/py-block.c (block_object_getset) | |
5332 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
5333 | * python/py-event.c (event_object_getset) | |
5334 | (finish_breakpoint_object_getset): Likewise. | |
5335 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
5336 | * python/py-infthread.c (thread_object_getset): Likewise. | |
5337 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
5338 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
5339 | * python/py-objfile.c (objfile_getset): Likewise. | |
5340 | * python/py-progspace.c (pspace_getset): Likewise. | |
5341 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
5342 | Likewise. | |
5343 | * python/py-record.c (recpy_record_getset): Likewise. | |
5344 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
5345 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
5346 | Likewise. | |
5347 | * python/py-type.c (type_object_getset, field_object_getset): | |
5348 | Likewise. | |
5349 | * python/py-value.c (value_object_getset): Likewise. | |
5350 | ||
4d759979 PA |
5351 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5352 | ||
5353 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
5354 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
5355 | New functions. | |
5356 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
5357 | (PySys_GetObject, PySys_SetPath): New macros. | |
5358 | ||
fdf9e36f PA |
5359 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5360 | ||
5361 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
5362 | info_osdata_command. | |
5363 | * osdata.c (info_osdata_command): Rename to ... | |
5364 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
5365 | the 'from_tty' parameter. Accept NULL TYPE. | |
5366 | (info_osdata_command): New function. | |
5367 | * osdata.h (info_osdata_command): Remove declaration. | |
5368 | (info_osdata): New declaration. | |
5369 | ||
9f33b8b7 PA |
5370 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5371 | ||
5372 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
5373 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
5374 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
5375 | parameter. | |
5376 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
5377 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
5378 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
5379 | parameter. | |
5380 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
5381 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
5382 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
5383 | (mi_cmd_file_list_exec_source_files) | |
5384 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
5385 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
5386 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
5387 | parameter. | |
5388 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
5389 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
5390 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
5391 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
5392 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
5393 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
5394 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
5395 | 'command' parameter. | |
5396 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
5397 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
5398 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
5399 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
5400 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
5401 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
5402 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
5403 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
5404 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
5405 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
5406 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
5407 | parameter. | |
5408 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
5409 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
5410 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
5411 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
5412 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
5413 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
5414 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
5415 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
5416 | (mi_cmd_data_list_changed_registers) | |
5417 | (mi_cmd_data_write_register_values) | |
5418 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
5419 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
5420 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
5421 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
5422 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
5423 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
5424 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
5425 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
5426 | (mi_cmd_trace_frame_collected): Constify 'command' | |
5427 | parameter. | |
5428 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
5429 | 'command' parameter. | |
5430 | ||
67cb5b2d PA |
5431 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5432 | ||
5433 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
5434 | array. | |
5435 | (ada_get_gdb_completer_word_break_characters): Constify. | |
5436 | * completer.c (gdb_completer_command_word_break_characters) | |
5437 | (gdb_completer_file_name_break_characters) | |
5438 | (gdb_completer_quote_characters): Now const arrays. | |
5439 | (get_gdb_completer_quote_characters): Constify. | |
5440 | (set_rl_completer_word_break_characters): New function. | |
5441 | (set_gdb_completion_word_break_characters) | |
5442 | (complete_line_internal): Use it. | |
5443 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
5444 | (set_rl_completer_word_break_characters): Declare. | |
5445 | * f-lang.c (f_word_break_characters): Constify. | |
5446 | * language.c (default_word_break_characters): Constify. | |
5447 | * language.h (language_defn::la_word_break_characters): Constify. | |
5448 | (default_word_break_characters): Constify. | |
5449 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
5450 | ||
7a114964 PA |
5451 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5452 | ||
5453 | * aix-thread.c (aix_thread_pid_to_str) | |
5454 | (aix_thread_extra_thread_info): Constify. | |
5455 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
5456 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
5457 | (bsd_uthread_pid_to_str): Constify. | |
5458 | * corelow.c (core_pid_to_str): Constify. | |
5459 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
5460 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
5461 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
5462 | Constify. | |
5463 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
5464 | * go32-nat.c (go32_pid_to_str): Constify. | |
5465 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
5466 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
5467 | * inferior.c (inferior_pid_to_str): Constify. | |
5468 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
5469 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
5470 | * linux-thread-db.c (thread_db_pid_to_str) | |
5471 | (thread_db_extra_thread_info): Constify. | |
5472 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
5473 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
5474 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
5475 | * procfs.c (procfs_pid_to_str): Constify. | |
5476 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
5477 | (ravenscar_pid_to_str): Constify. | |
5478 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
5479 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
5480 | Constify. | |
5481 | * sol-thread.c (solaris_pid_to_str): Constify. | |
5482 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
5483 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
5484 | * target.c (default_pid_to_str, target_pid_to_str) | |
5485 | (normal_pid_to_str, default_pid_to_str): Constify. | |
5486 | * target.h (target_ops::to_pid_to_str) | |
5487 | (target_ops::to_extra_thread_info): Constify. | |
5488 | (target_pid_to_str, normal_pid_to_str): Constify. | |
5489 | * windows-nat.c (windows_pid_to_str): Constify. | |
5490 | * gdbarch.sh (core_pid_to_str): Constify. | |
5491 | * target-delegates.c: Regenerate. | |
5492 | * gdbarch.h, gdbarch.c: Regenerate. | |
5493 | ||
69bbf465 PA |
5494 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5495 | ||
5496 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
5497 | the memory of the temporary warning_pre_print override. | |
5498 | * utils.c (warning_pre_print): Constify. | |
5499 | * utils.h (warning_pre_print): Constify. | |
5500 | ||
be47f9e8 PA |
5501 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5502 | ||
5503 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
5504 | (shell_command): New function. | |
5505 | (make_command): Use std::string. | |
5506 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
5507 | ||
bde6261a PA |
5508 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5509 | ||
5510 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
5511 | * tracepoint.c (default_collect): Don't initialize. | |
5512 | ||
b38ef47f PA |
5513 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5514 | ||
5515 | * macroexp.c (macro_buffer::shared): Now a bool. | |
5516 | (init_buffer): Update. | |
5517 | (init_shared_buffer): Constify 'addr' parameter. | |
5518 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
5519 | casts. | |
5520 | ||
f995bbe8 PA |
5521 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5522 | ||
5523 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
5524 | * disasm.c (set_disassembler_options): Constify local. | |
5525 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
5526 | ||
4a596fe2 SDJ |
5527 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
5528 | ||
5529 | PR gdb/21352 | |
5530 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
5531 | option. | |
5532 | ||
2cad08ea YQ |
5533 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
5534 | ||
5535 | * frame.c (frame_unwind_register_unsigned): Call | |
5536 | frame_unwind_register_value. | |
5537 | ||
55a98976 YQ |
5538 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
5539 | ||
5540 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
5541 | Use gdb_test_multiple, and don't match anchor. | |
5542 | ||
4ac40124 PA |
5543 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5544 | ||
5545 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
5546 | (Write After Approval): Remove Simon Marchi. | |
5547 | ||
c053b654 PA |
5548 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5549 | ||
5550 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
5551 | initialize m_dummy. | |
5552 | ||
4c7bf4f9 JB |
5553 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5554 | ||
5555 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
5556 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
5557 | (amd64fbsd_supply_uthread): Remove function. | |
5558 | (amd64fbsd_collect_uthread): Remove function. | |
5559 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
5560 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
5561 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
5562 | (fbsd-nat.c): Update comment. | |
5563 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
5564 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
5565 | (i386fbsd_supply_uthread): Remove function. | |
5566 | (i386fbsd_collect_uthread): Remove function. | |
5567 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
5568 | ||
1e1a8bef JB |
5569 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5570 | ||
5571 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
5572 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
5573 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
5574 | * alpha-fbsd-tdep.c: Delete file. | |
5575 | * config/alpha/fbsd.mh: Delete file. | |
5576 | * configure.host: Delete alpha*-*-freebsd* and | |
5577 | alpha*-*-kfreebsd*-gnu. | |
5578 | * configure.tgt: Delete alpha*-*-freebsd* and | |
5579 | alpha*-*-kfreebsd*-gnu. | |
5580 | ||
49907934 JB |
5581 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5582 | ||
5583 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
5584 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
5585 | ||
6f77053d PA |
5586 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5587 | ||
5588 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
5589 | data fields, make them private and add "m_" prefixes. | |
5590 | (lnp_state_machine::lnp_state_machine): New ctor. | |
5591 | (record_line, check_line_address, handle_set_discriminator) | |
5592 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
5593 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
5594 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
5595 | (end_sequence, advance_line): New methods. | |
5596 | (m_gdbarch, m_record_lines_p): New fields. | |
5597 | (lnp_reader_state): Delete. | |
5598 | (dwarf_record_line): Rename to ... | |
5599 | (lnp_state_machine::record_line): ... adjust. | |
5600 | (init_lnp_state_machine): Delete. | |
5601 | (lnp_state_machine::lnp_state_machine): New. | |
5602 | (check_line_address): Rename to ... | |
5603 | (lnp_state_machine::check_line_address): This. | |
5604 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
5605 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
5606 | State machine internal state manipulation moved to | |
5607 | lnp_state_machine methods. | |
5608 | ||
9c541725 PA |
5609 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5610 | ||
5611 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5612 | unittests/offset-type-selftests.c. | |
5613 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
5614 | * common/offset-type.h: New file. | |
5615 | * common/preprocessor.h: New file. | |
5616 | * common/traits.h: New file. | |
5617 | * common/valid-expr.h: New file. | |
5618 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
5619 | sect_offset and cu_offset strong typedefs throughout. | |
5620 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
5621 | typedefs throughout. | |
5622 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
5623 | sect_offset and cu_offset strong typedefs throughout. | |
5624 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
5625 | typedefs throughout. | |
5626 | * gdbtypes.h: Include "common/offset-type.h". | |
5627 | (cu_offset): Now an offset type (strong typedef) instead of a | |
5628 | struct. | |
5629 | (sect_offset): Likewise. | |
5630 | (union call_site_parameter_u): Rename "param_offset" field to | |
5631 | "param_cu_off". | |
5632 | * unittests/offset-type-selftests.c: New file. | |
5633 | ||
ecfb656c PA |
5634 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5635 | ||
5636 | * common/underlying.h: New file. | |
5637 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
5638 | "common/underlying.h". | |
5639 | (dir_index, file_name_index): New types. | |
5640 | (file_entry): Use them. | |
5641 | (file_entry::include): Use to_underlying. | |
5642 | (line_header::add_file_name): Use dir_index. | |
5643 | (read_formatted_entries): Use gdb::optional. Read form before | |
5644 | writting to file_entry. | |
5645 | (dwarf_decode_line_header): Use dir_index. | |
5646 | (lnp_state_machine::current_file): Use to_underlying. | |
5647 | (lnp_state_machine::file): Change type to file_name_index. | |
5648 | (dwarf_record_line): Use to_underlying. | |
5649 | (init_lnp_state_machine): Use file_name_index. | |
5650 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
5651 | ||
d194f1fe PA |
5652 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5653 | ||
5654 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
5655 | operator bool, has_value and get methods. | |
5656 | ||
fff8551c PA |
5657 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5658 | ||
5659 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
5660 | fields. | |
5661 | (line_header): Initialize all data fields. Change type of | |
5662 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
5663 | Change type of include_dirs to std::vector<const char *>. Remove | |
5664 | num_include_dirs, include_dirs_size. Change type of file_names to | |
5665 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
5666 | (line_header::line_header): New. | |
5667 | (line_header::add_include_dir, line_header::add_file_name): New | |
5668 | methods. | |
5669 | (line_header::include_dir_at): Remove NULL check. | |
5670 | (line_header::file_name_at): Add const overload. | |
5671 | (line_header_up): New unique_ptr typedef. | |
5672 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
5673 | std::vector. Remove free_line_header call. | |
5674 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
5675 | free_line_header call. | |
5676 | (free_cu_line_header): Delete. | |
5677 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
5678 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
5679 | Adjust to use std::vector. | |
5680 | (free_line_header): Delete. | |
5681 | (free_line_header_voidp): Use delete. | |
5682 | (add_include_dir): Replace with ... | |
5683 | (line_header::add_include_dir): ... this method. Use std::vector. | |
5684 | (add_file_name): Replace with ... | |
5685 | (line_header::add_file_name): ... this method. Use std::vector. | |
5686 | (add_include_dir_stub): Delete. | |
5687 | (read_formatted_entries): Remove memset. | |
5688 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
5689 | raw pointer. Remove cleanup handling. Pass lambdas to | |
5690 | read_formatted_entries. Adjust to use line_header methods. | |
5691 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
5692 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
5693 | use std::vector. | |
5694 | ||
d62a8ae2 SM |
5695 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
5696 | ||
5697 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
5698 | instead of struct ptid. | |
5699 | ||
db3a1dc7 AH |
5700 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
5701 | ||
5702 | * frame.c (get_frame_register_bytes): Unwind using value. | |
5703 | (put_frame_register_bytes): Likewise. | |
5704 | ||
b1b45502 IB |
5705 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
5706 | ||
5707 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
5708 | aggregate-like. | |
5709 | ||
ec13808e JK |
5710 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5711 | ||
5712 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
5713 | ||
12316564 YQ |
5714 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
5715 | ||
5716 | * gdbthread.h (struct thread_info): Declare constructor and | |
5717 | destructor. Add some in-class member initializers. | |
5718 | * thread.c (free_thread): Remove. | |
5719 | (init_thread_list): Call delete instead of free_thread. | |
5720 | (new_thread): Call thread_info constructor. | |
5721 | (thread_info::thread_info): New function. | |
5722 | (thread_info::~thread_info): New function. | |
5723 | (delete_thread_1): Call delete instead of free_thread. | |
5724 | (make_cleanup_restore_current_thread): Move tp and frame to | |
5725 | inner block. | |
5726 | ||
fe5f7374 AK |
5727 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5728 | ||
5729 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
5730 | (arc_skip_prologue): Likewise. | |
5731 | (arc_make_frame_cache): Likewise. | |
5732 | (arc_pv_get_operand): New function. | |
5733 | (arc_is_in_prologue): Likewise. | |
5734 | (arc_analyze_prologue): Likewise. | |
5735 | (arc_print_frame_cache): Likewise. | |
5736 | (MAX_PROLOGUE_LENGTH): New constant. | |
5737 | ||
eea78757 AK |
5738 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5739 | ||
5740 | * configure.tgt: Add arc-insn.o. | |
5741 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
5742 | (dump_arc_instruction_command): New function. | |
5743 | (arc_fprintf_disasm): Likewise. | |
5744 | (arc_disassemble_info): Likewise. | |
5745 | (arc_insn_get_operand_value): Likewise. | |
5746 | (arc_insn_get_operand_value_signed): Likewise. | |
5747 | (arc_insn_get_memory_base_reg): Likewise. | |
5748 | (arc_insn_get_memory_offset): Likewise. | |
5749 | (arc_insn_get_branch_target): Likewise. | |
5750 | (arc_insn_dump): Likewise. | |
5751 | (arc_insn_get_linear_next_pc): Likewise. | |
5752 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
5753 | (arc_disassemble_info): Likewise. | |
5754 | (arc_insn_get_branch_target): Likewise. | |
5755 | (arc_insn_get_linear_next_pc): Likewise. | |
5756 | * NEWS: Mention new "maint print arc arc-instruction". | |
5757 | ||
3be78afd AK |
5758 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5759 | ||
5760 | * arc-tdep (maintenance_print_arc_list): New variable. | |
5761 | (maintenance_print_arc_command): New function. | |
5762 | ||
296ec4fa AK |
5763 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5764 | ||
5765 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
5766 | Add "limm" and "reserved". | |
5767 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
5768 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
5769 | * arc-tdep.h (arc_regnum): Likewise. | |
5770 | ||
f74f865e MF |
5771 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5772 | ||
5773 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
5774 | for THREADPTR register. | |
5775 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
5776 | register. | |
5777 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
5778 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
5779 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
5780 | ||
0d0bf81a MF |
5781 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5782 | ||
5783 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
5784 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
5785 | call0 ABI. | |
5786 | ||
0ce4291e MF |
5787 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5788 | ||
5789 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
5790 | for a single specified register or for all registers in | |
5791 | a0_base..a0_base + C0_NREGS range. | |
5792 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
5793 | specified register or for all registers in a0_base..a0_base + | |
5794 | C0_NREGS range. | |
5795 | ||
c56054f9 MF |
5796 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5797 | ||
5798 | * arch/xtensa.h (C0_NREGS): Add definition. | |
5799 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
5800 | ||
a4398628 MF |
5801 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5802 | ||
5803 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
5804 | Drop xtensa_default_isa initialization. | |
5805 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
5806 | ||
8c43009f PA |
5807 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5808 | ||
5809 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
5810 | (file_entry::include_dir): New method. | |
5811 | (line_header::include_dir_at, line_header::file_name_at): New | |
5812 | methods. | |
5813 | (setup_type_unit_groups, setup_type_unit_groups) | |
5814 | (psymtab_include_file_name): Simplify using the new methods. | |
5815 | (lnp_state_machine) <the_line_header>: New field. | |
5816 | <file>: Add comment. | |
5817 | (lnp_state_machine::current_file): New method. | |
5818 | (dwarf_record_line): Simplify using the new methods. | |
5819 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
5820 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
5821 | Simplify using the new methods. | |
5822 | ||
a7e80b9e PA |
5823 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5824 | ||
5825 | * cp-name-parser.y (make_empty): Delete. | |
5826 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
5827 | (direct_declarator, declarator_1): Use fill_comp instead of | |
5828 | make_empty. | |
5829 | ||
21047726 PA |
5830 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5831 | ||
5832 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
5833 | to ATTRIBUTE_PRINTF. | |
5834 | * solib-target.c (library_list_start_list): Print "string" not | |
5835 | "version". | |
5836 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
5837 | gdb_xml_error call. | |
5838 | ||
d721ba37 PA |
5839 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5840 | ||
5841 | * dwarf2read.c (struct file_and_directory): New. | |
5842 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
5843 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
5844 | (find_file_and_directory): Adjust to return a file_and_directory | |
5845 | object. | |
5846 | (read_file_scope): Adjust to use file_and_directory. Remove | |
5847 | make_cleanup/do_cleanups calls. | |
5848 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
5849 | make_cleanup/do_cleanups calls. | |
5850 | * python/python.c (do_start_initialization): Adjust to ldirname | |
5851 | returning a std::string. | |
5852 | * utils.c (ldirname): Now returns a std::string. | |
5853 | * utils.h (ldirname): Change return type to std::string. | |
5854 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
5855 | returning a std::string. | |
5856 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
5857 | ||
ed771251 AH |
5858 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
5859 | ||
5860 | * regcache.c (regcache_debug_print_register): New function. | |
5861 | * regcache.h (regcache_debug_print_register): New declaration. | |
5862 | * target.c (debug_print_register): Remove. | |
5863 | (target_fetch_registers): Call regcache_debug_print_register. | |
5864 | (target_store_registers): Likewise. | |
5865 | ||
568c1b9f PB |
5866 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
5867 | ||
5868 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
5869 | reference beyond the 'lh->include_dirs' array before accessing to | |
5870 | it. | |
5871 | (psymtab_include_file_name): Likewise. | |
5872 | (dwarf_decode_lines_1): Likewise. | |
5873 | (dwarf_decode_lines): Likewise. | |
5874 | (file_file_name): Likewise. | |
5875 | ||
3e00d44f SM |
5876 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
5877 | ||
5878 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
5879 | inferior_ptid. | |
5880 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
5881 | ps_lsetfpregs): Likewise. | |
5882 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
5883 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
5884 | ps_lsetfpregs): Likewise. | |
5885 | * target.c (target_fetch_registers, target_store_registers): | |
5886 | Remove asserts. | |
5887 | ||
077ae656 AH |
5888 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
5889 | ||
5890 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
5891 | ||
1e2b521d YQ |
5892 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5893 | ||
5894 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
5895 | (_initialize_aarch64_tdep): Register it. | |
5896 | (aarch64_record_load_store): Handle PRFM instruction. | |
5897 | (aarch64_process_record_test): New function. | |
5898 | ||
33877125 YQ |
5899 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5900 | ||
5901 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
5902 | indentation. | |
5903 | ||
a0eef940 YQ |
5904 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5905 | ||
5906 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
5907 | ||
3f2a3564 PR |
5908 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
5909 | ||
5910 | python/python.c (do_start_initialization): Fix memory leak. | |
5911 | ||
b67aeab0 SM |
5912 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
5913 | ||
5914 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
5915 | using get_ptrace_pid. | |
5916 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
5917 | inferior_ptid. | |
5918 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
5919 | inferior_ptid instead of pid. | |
5920 | ||
ffdbe864 YQ |
5921 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
5922 | ||
5923 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
5924 | namespace. | |
5925 | * arm-tdep.c: Likewise. | |
5926 | * linespec.c: Likewise. | |
5927 | * ui-out.c: Likewise. | |
5928 | ||
9d736fbf JG |
5929 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
5930 | ||
5931 | PR gdb/19637 | |
5932 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
5933 | ||
3de88e9a SM |
5934 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
5935 | ||
5936 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
5937 | windows_thread_info parameter and use it instead of | |
5938 | current_thread. | |
5939 | (windows_fetch_inferior_registers): Don't set current_thread, | |
5940 | pass the thread to do_windows_fetch_inferior_registers. Use | |
5941 | ptid from regcache instead of inferior_ptid. | |
5942 | (do_windows_store_inferior_registers): Add windows_thread_info | |
5943 | parameter and use it instead of current_thread. | |
5944 | (windows_store_inferior_registers): Don't set current_thread, | |
5945 | pass the thread to do_windows_store_inferior_registers. Use | |
5946 | ptid from regcache instead of inferior_ptid. | |
5947 | ||
0e7b8f61 SM |
5948 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
5949 | ||
5950 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
5951 | struct serial::current_timeout. | |
5952 | ||
5badf10a IR |
5953 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
5954 | ||
5955 | PR tdep/20928 | |
5956 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
5957 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
5958 | (sparc64_fsr_type): Fix %fsr decoding. | |
5959 | ||
cee59b3f TW |
5960 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
5961 | ||
5962 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
5963 | for Python 2. | |
5964 | ||
639a9038 SM |
5965 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
5966 | ||
5967 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
5968 | spu_store_inferior_registers): Use ptid from regcache, set and | |
5969 | restore inferior_ptid. | |
5970 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
5971 | Likewise. | |
5972 | ||
bcc0c096 SM |
5973 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
5974 | ||
5975 | * i386-linux-nat.c (fetch_register, store_register, | |
5976 | i386_linux_fetch_inferior_registers, | |
5977 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
5978 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
5979 | ia64_linux_store_register): Likewise. | |
5980 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
5981 | inf_ptrace_store_register): Likewise. | |
5982 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
5983 | m32r_linux_store_inferior_registers): Likewise. | |
5984 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
5985 | m68kbsd_store_inferior_registers): Likewise. | |
5986 | * m68k-linux-nat.c (fetch_register, store_register, | |
5987 | m68k_linux_fetch_inferior_registers, | |
5988 | m68k_linux_store_inferior_registers): Likewise. | |
5989 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
5990 | m88kbsd_store_inferior_registers): Likewise. | |
5991 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
5992 | mips_fbsd_store_inferior_registers): Likewise. | |
5993 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
5994 | mips64_linux_regsets_store_registers): Likewise. | |
5995 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
5996 | mipsnbsd_store_inferior_registers): Likewise. | |
5997 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
5998 | mips64obsd_store_inferior_registers): Likewise. | |
5999 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
6000 | Likewise. | |
6001 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
6002 | ppcfbsd_store_inferior_registers): Likewise. | |
6003 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
6004 | ppc_linux_store_inferior_registers): Likewise. | |
6005 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
6006 | ppcnbsd_store_inferior_registers): Likewise. | |
6007 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
6008 | ppcobsd_store_registers): Likewise. | |
6009 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
6010 | Likewise. | |
6011 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
6012 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
6013 | Likewise. | |
6014 | * record-btrace.c (record_btrace_fetch_registers, | |
6015 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
6016 | Likewise. | |
6017 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
6018 | Lookup inferior using ptid from regcache, instead of | |
6019 | current_inferior. | |
6020 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
6021 | ptid from regcache. | |
6022 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
6023 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
6024 | s390_linux_store_inferior_registers): Likewise. | |
6025 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
6026 | shnbsd_store_inferior_registers): Likewise. | |
6027 | * sol-thread.c (sol_thread_fetch_registers, | |
6028 | sol_thread_store_registers): Likewise. | |
6029 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
6030 | sparc_store_inferior_registers): Likewise. | |
6031 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
6032 | store_inferior_registers): Likewise. | |
6033 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
6034 | vaxbsd_store_inferior_registers): Likewise. | |
6035 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
6036 | store_xtregs): Likewise. | |
6037 | ||
c0f55cc6 AV |
6038 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6039 | ||
6040 | PR gdb/14441 | |
6041 | * NEWS: Mention support for rvalue references in GDB and python. | |
6042 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
6043 | supports both lvalue and rvalue references. | |
6044 | ||
15c0a2a9 AV |
6045 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6046 | ||
6047 | PR gdb/14441 | |
6048 | * gdbtypes.c (rank_one_type): Implement overloading | |
6049 | resolution rules regarding rvalue references. | |
6050 | ||
aa006118 AV |
6051 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6052 | ||
6053 | PR gdb/14441 | |
6054 | * aarch64-tdep.c (aarch64_type_align) | |
6055 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
6056 | lvalue reference type checks to general reference type checks. | |
6057 | * amd64-tdep.c (amd64_classify): Likewise. | |
6058 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
6059 | Likewise. | |
6060 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
6061 | (arm_store_return_value): Likewise. | |
6062 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
6063 | * c-typeprint.c (c_print_type): Likewise. | |
6064 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
6065 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
6066 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
6067 | * completer.c (expression_completer): Likewise. | |
6068 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
6069 | Likewise. | |
6070 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
6071 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
6072 | (value_of_dwarf_reg_entry): Likewise. | |
6073 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
6074 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
6075 | Likewise. | |
6076 | * findvar.c (extract_typed_address, store_typed_address): | |
6077 | Likewise. | |
6078 | * gdbtypes.c (rank_one_type): Likewise. | |
6079 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
6080 | * infcall.c (value_arg_coerce): Likewise. | |
6081 | * language.c (pointer_type): Likewise. | |
6082 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
6083 | Likewise. | |
6084 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
6085 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
6086 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
6087 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
6088 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
6089 | Likewise. | |
6090 | * printcmd.c (print_formatted, x_command): Likewise. | |
6091 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
6092 | Likewise. | |
6093 | * python/py-value.c (valpy_referenced_value) | |
6094 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
6095 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
6096 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
6097 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
6098 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
6099 | * symtab.c (lookup_symbol_aux): Likewise. | |
6100 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
6101 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
6102 | Likewise. | |
6103 | * valops.c (value_cast_pointers, value_cast) | |
6104 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
6105 | (value_struct_elt, value_struct_elt_bitpos) | |
6106 | (value_find_oload_method_list, find_overload_match) | |
6107 | (value_rtti_indirect_type): Likewise. | |
6108 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
6109 | Likewise. | |
6110 | * value.c (value_actual_type, value_as_address, unpack_long) | |
6111 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
6112 | (coerce_ref): Likewise. | |
6113 | * varobj.c (varobj_get_value_type): Likewise. | |
6114 | ||
3fcf899d AV |
6115 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6116 | ||
6117 | PR gdb/14441 | |
6118 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
6119 | table of constants. | |
6120 | * python/lib/gdb/command/explore.py: Support exploring values | |
6121 | of rvalue reference types. | |
6122 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
6123 | rvalue reference types. | |
6124 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
6125 | constant. | |
6126 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
6127 | check. | |
6128 | (valpy_reference_value): Add new parameter "refcode". | |
6129 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
6130 | New wrappers for valpy_reference_value(). | |
6131 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
6132 | (gdbpy_invoke_xmethod): Likewise. | |
6133 | ||
4297a3f0 AV |
6134 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6135 | ||
6136 | PR gdb/14441 | |
6137 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
6138 | DW_TAG_rvalue_reference_type DIE. | |
6139 | (read_tag_reference_type): Add new parameter "refcode". | |
6140 | ||
e1cb3213 AV |
6141 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6142 | ||
6143 | PR gdb/14441 | |
6144 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
6145 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
6146 | (c_type_print_base): Support printing rvalue reference types. | |
6147 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
6148 | rvalue reference values. | |
6149 | ||
e4347c89 AV |
6150 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6151 | ||
6152 | PR gdb/14441 | |
6153 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
6154 | typename. | |
6155 | * cp-support.c (replace_typedefs): Handle | |
6156 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
6157 | * python/py-type.c (typy_lookup_type): Likewise. | |
6158 | ||
53cc15f5 AV |
6159 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6160 | ||
6161 | PR gdb/14441 | |
6162 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
6163 | * parse.c (insert_type): Change assert statement. | |
6164 | (follow_types): Handle rvalue reference types. | |
6165 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
6166 | constant. | |
6167 | ||
a65cfae5 AV |
6168 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6169 | ||
6170 | PR gdb/14441 | |
6171 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
6172 | value_ref() interface. | |
6173 | * c-valprint.c (c_value_print): Likewise. | |
6174 | * infcall.c (value_arg_coerce): Likewise. | |
6175 | * python/py-value.c (valpy_reference_value): Likewise. | |
6176 | * valops.c (value_cast, value_reinterpret_cast) | |
6177 | (value_dynamic_cast, typecmp): Likewise. | |
6178 | (value_ref): Parameterize by kind of return value reference type. | |
6179 | * value.h (value_ref): Add new parameter "refcode". | |
6180 | ||
3b224330 AV |
6181 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6182 | ||
6183 | PR gdb/14441 | |
6184 | * dwarf2read.c (read_tag_reference_type): Use | |
6185 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6186 | * eval.c (evaluate_subexp_standard): Likewise. | |
6187 | * f-exp.y: Likewise. | |
6188 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
6189 | Generalize with rvalue reference types. | |
6190 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
6191 | convenience wrappers for lookup_reference_type(). | |
6192 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
6193 | reference kind parameter. | |
6194 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
6195 | wrappers for lookup_reference_type(). | |
6196 | * guile/scm-type.c (gdbscm_type_reference): Use | |
6197 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6198 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
6199 | * parse.c (follow_types): Likewise. | |
6200 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
6201 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
6202 | Likewise. | |
6203 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
6204 | (gdbpy_invoke_xmethod): Likewise. | |
6205 | * stabsread.c: Provide extra argument to make_reference_type() | |
6206 | call. | |
6207 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
6208 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6209 | ||
f9aeb8d4 AV |
6210 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6211 | ||
6212 | PR gdb/14441 | |
6213 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
6214 | (TYPE_IS_REFERENCE): New macro. | |
6215 | (struct type): Add rvalue_reference_type field. | |
6216 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
6217 | ||
51457a05 MAL |
6218 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
6219 | ||
6220 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
6221 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
6222 | New function definition. | |
6223 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
6224 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
6225 | New function declaration. | |
6226 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
6227 | * mi/mi-interp.h: New file. | |
6228 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
6229 | ALL_SO_LIBS macro | |
6230 | * solib.h (update_solib_list): New function declaration. | |
6231 | (so_list_head): Move macro. | |
6232 | * solist.h (ALL_SO_LIBS): New macro. | |
6233 | ||
e696b3ad MAL |
6234 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
6235 | ||
6236 | * infcmd.c (post_create_inferior): Remove unused argument in | |
6237 | call to solib_add. | |
6238 | * remote.c (remote_start_remote): Likewise. | |
6239 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
6240 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
6241 | (enable_break): Likewise. | |
6242 | * solib.c (update_solib_list): Remove unused target argument | |
6243 | and its documentation. | |
6244 | (solib_add): Remove unused target argument. Remove unused | |
6245 | argument in call to update_solib_list. | |
6246 | (info_sharedlibrary_command): Remove unused argument in call | |
6247 | to update_solib_list. | |
6248 | (sharedlibrary_command): Remove unused argument in call to | |
6249 | solib_add. | |
6250 | (handle_solib_event): Likewise. | |
6251 | (reload_shared_libraries): Likewise. | |
6252 | * solib.h (solib_add): Remove unused target argument. | |
6253 | ||
dcb84eda AA |
6254 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6255 | ||
6256 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
6257 | (s390_displaced_step_fixup): Cover relative branches with the | |
6258 | default fixup handling. This fixes lack of support for some | |
6259 | relative branch instructions. | |
6260 | ||
d9cb6cdc SM |
6261 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6262 | ||
6263 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
6264 | ptid from regcache. | |
6265 | ||
1afaf9f4 SM |
6266 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6267 | ||
6268 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
6269 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
6270 | ||
aac12e24 SM |
6271 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6272 | ||
6273 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
6274 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
6275 | ||
bbe1eef1 SM |
6276 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6277 | ||
6278 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
6279 | hppaobsd_store_registers): Use ptid from regcache. | |
6280 | ||
10799020 SM |
6281 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6282 | ||
6283 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
6284 | hppanbsd_store_registers): Use ptid from regcache. | |
6285 | ||
00204cf7 SM |
6286 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6287 | ||
6288 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
6289 | from regcache. Use get_ptrace_pid. | |
6290 | ||
11a33714 SM |
6291 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6292 | ||
6293 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
6294 | update doc. | |
6295 | ||
317cd492 SM |
6296 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6297 | ||
6298 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
6299 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
6300 | restore inferior_ptid. | |
6301 | ||
9ac8a7c2 SM |
6302 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6303 | ||
6304 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
6305 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
6306 | store_fp_regs): Use ptid from regcache. | |
6307 | ||
4ac4bb6a SM |
6308 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6309 | ||
6310 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
6311 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
6312 | store_vfp_regs): Use ptid from regcache. | |
6313 | ||
9bcbdca8 PA |
6314 | 2017-03-17 Pedro Alves <palves@redhat.com> |
6315 | ||
6316 | PR remote/21188 | |
6317 | * ser-base.c (ser_base_wait_for): Add comment. | |
6318 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
6319 | version. | |
6320 | * ser-unix.c (hardwire_raw): Remove reference to | |
6321 | scb->current_timeout. | |
6322 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
6323 | (hardwire_ops): Install ser_base_readchar instead of | |
6324 | hardwire_readchar. | |
6325 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
6326 | Remove fields. | |
6327 | ||
7503099f JG |
6328 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
6329 | ||
6330 | PR gdb/19637 | |
6331 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
6332 | Python 3. | |
6333 | ||
7942e96e AA |
6334 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6335 | ||
6336 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
6337 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
6338 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
6339 | byte_offset to subobj_byte_offset. Fix the handling of | |
6340 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
6341 | implicit pointer. | |
6342 | (dwarf2_evaluate_loc_desc): Adjust call to | |
6343 | dwarf2_evaluate_loc_desc_full. | |
6344 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
6345 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
6346 | ||
ba14f379 YQ |
6347 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6348 | ||
6349 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
6350 | and REVSH instructions. | |
6351 | ||
b121eeb9 YQ |
6352 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6353 | ||
6354 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
6355 | (arm_record_test): Declare. | |
6356 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
6357 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
6358 | align with the manual. | |
6359 | (thumb_record_misc): Adjust the code order to align with the | |
6360 | manual. | |
6361 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
6362 | (instruction_reader_thumb): New class. | |
6363 | (arm_record_test): New function. | |
6364 | ||
728a7913 YQ |
6365 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6366 | ||
6367 | * arm-tdep.c (abstract_memory_reader): New class. | |
6368 | (instruction_reader): New class. | |
6369 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
6370 | (decode_insn): Likewise. | |
6371 | ||
34b43320 DE |
6372 | 2017-03-16 Doug Evans <dje@google.com> |
6373 | ||
a7c0469f DE |
6374 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
6375 | member. Change type of TYPE member to SCM. All uses updated. | |
6376 | (lsscm_make_lazy_string_smob): Add assert. | |
6377 | (lsscm_make_lazy_string): Flag bad length values. | |
6378 | (lsscm_elt_type): New function. | |
6379 | (gdbscm_lazy_string_to_value): Rewrite to use | |
6380 | lsscm_safe_lazy_string_to_value. | |
6381 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
6382 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
6383 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
6384 | in incoming type. | |
6385 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
6386 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
6387 | ||
6388 | 2017-03-15 Doug Evans <dje@google.com> | |
6389 | ||
34b43320 DE |
6390 | PR python/17728, python/18439, python/18779 |
6391 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
6392 | member. Change type of TYPE member to PyObject *. All uses updated. | |
6393 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
6394 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
6395 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
6396 | Handle typedefs in incoming type. | |
6397 | (stpy_lazy_string_elt_type): New function. | |
6398 | (gdbpy_extract_lazy_string): Call it. | |
6399 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
6400 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
6401 | typedefs in incoming type. | |
6402 | ||
a3a5fecc DE |
6403 | 2017-03-16 Doug Evans <dje@google.com> |
6404 | ||
6405 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
6406 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
6407 | ||
28f1c605 JW |
6408 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
6409 | ||
6410 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
6411 | "ULONGEST" for "skip". | |
6412 | ||
87c336f6 AA |
6413 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6414 | ||
6415 | PR gdb/21220 | |
6416 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
6417 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
6418 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
6419 | over ptrace peek/poke until end of buffer or error. | |
6420 | ||
cf81cf60 SM |
6421 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
6422 | ||
6423 | * parse.c (length_of_subexp): Make static. | |
6424 | * parser-defs.h (length_of_subexp): Remove. | |
6425 | ||
a379284a AA |
6426 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6427 | ||
6428 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
6429 | as well. | |
6430 | ||
8a6200ba PA |
6431 | 2017-03-14 Pedro Alves <palves@redhat.com> |
6432 | ||
6433 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
6434 | (main): Use std::unique_ptr. Remove calls to | |
6435 | cp_demangled_name_parse_free. | |
6436 | ||
f79ec206 SM |
6437 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6438 | ||
6439 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
6440 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
6441 | of inferior_ptid. | |
6442 | ||
edb5fb00 SM |
6443 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6444 | ||
6445 | * aix-thread.c (aix_thread_fetch_registers, | |
6446 | aix_thread_store_registers): Use regcache->ptid instead of | |
6447 | inferior_ptid. | |
6448 | ||
55119686 SM |
6449 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6450 | ||
6451 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
6452 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
6453 | store_fpregs_to_thread): Use regcache->ptid instead of | |
6454 | inferior_ptid. | |
6455 | ||
6a06fbb7 SM |
6456 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6457 | ||
6458 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
6459 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
6460 | instead of inferior_ptid. | |
6461 | ||
c6386875 SM |
6462 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6463 | ||
6464 | * target.c (target_fetch_registers, target_store_registers): Add | |
6465 | assert. | |
6466 | ||
ddaaf0fb SM |
6467 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6468 | ||
6469 | * regcache.h (regcache_get_ptid): New function. | |
6470 | * regcache.c (regcache_get_ptid): New function. | |
6471 | ||
b9da89d1 | 6472 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
6473 | ||
6474 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
6475 | ||
5f4d1085 KS |
6476 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
6477 | ||
6478 | PR c++/8218 | |
6479 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
6480 | ||
c65d6b55 PA |
6481 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6482 | ||
6483 | PR gdb/18360 | |
6484 | * infrun.c (start_step_over, do_target_resume, resume) | |
6485 | (restart_threads): Assert we're not resuming a thread that is | |
6486 | meant to be stopped. | |
6487 | (infrun_thread_stop_requested_callback): Delete. | |
6488 | (infrun_thread_stop_requested): If the thread is internally | |
6489 | stopped, queue a pending stop event and clear the thread's | |
6490 | inline-frame state. | |
6491 | (handle_stop_requested): New function. | |
6492 | (handle_syscall_event, handle_inferior_event_1): Use | |
6493 | handle_stop_requested. | |
6494 | (handle_stop_requested): New function. | |
6495 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
6496 | at caller. | |
6497 | (finish_step_over): Clear step over info unconditionally. | |
6498 | (handle_signal_stop): If the user had interrupted the event | |
6499 | thread, consider the stop a random signal. | |
6500 | (handle_signal_stop) <signal arrived while stepping over | |
6501 | breakpoint>: Don't restart threads here. | |
6502 | (stop_waiting): Don't clear step-over info here. | |
6503 | ||
15c22686 PA |
6504 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6505 | ||
6506 | PR 21206 | |
6507 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
6508 | goes to argument 2, not 1. | |
6509 | ||
6e5d74e7 PA |
6510 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6511 | ||
6512 | PR cli/21218 | |
6513 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
6514 | display_gdb_prompt. | |
6515 | (command_line_input): Add comment. | |
6516 | ||
9753a2f6 PA |
6517 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6518 | ||
6519 | PR tui/21216 | |
6520 | * tui/tui-file.c (tui_file::write): New. | |
6521 | * tui/tui-file.h (tui_file): Override "write". | |
6522 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
6523 | factored out from ... | |
6524 | (tui_puts): ... here. | |
6525 | (tui_putc): Use them. | |
6526 | (tui_write): New function. | |
6527 | * tui/tui-io.h (tui_write): Declare. | |
6528 | ||
1672e0d9 SDJ |
6529 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
6530 | ||
6531 | * Makefile.in (SFILES): Replace "environ.c" with | |
6532 | "common/environ.c". | |
6533 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
6534 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
6535 | to... | |
6536 | * common/environ.c: ... here. | |
6537 | * environ.h: Moved to... | |
6538 | * common/environ.h: ... here. | |
6539 | ||
f7bb4e3a PB |
6540 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
6541 | ||
6542 | * gdbarch.sh (pstring_ptr): New static function. | |
6543 | (gdbarch_disassembler_options): Use it. | |
6544 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
6545 | not valid_disassembler_option->name. | |
6546 | * gdbarch.c: Regenerate. | |
6547 | ||
e45ced6c PB |
6548 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
6549 | ||
6550 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
6551 | ||
5f6fd321 PA |
6552 | 2017-03-07 Pedro Alves <palves@redhat.com> |
6553 | ||
6554 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
6555 | ||
6dbb839a | 6556 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
6557 | |
6558 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
6559 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
6560 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 6561 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 6562 | |
d274ecf4 SM |
6563 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
6564 | ||
6565 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
6566 | ||
df97be55 SM |
6567 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
6568 | ||
6569 | * remote.c (remote_add_target_side_commands): Use range-based | |
6570 | for loop. | |
6571 | ||
7d45f3df YQ |
6572 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
6573 | ||
6574 | PR gdb/21165 | |
6575 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
6576 | value is lazy. | |
6577 | * valprint.c (common_val_print): Likewise. | |
6578 | ||
65b48a81 PB |
6579 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
6580 | ||
6581 | * NEWS: Mention new set/show disassembler-options commands. | |
6582 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
6583 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
6584 | (prospective_options): New static variable. | |
6585 | (gdb_disassembler::gdb_disassembler): Initialize | |
6586 | m_di.disassembler_options. | |
6587 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
6588 | (get_disassembler_options): New function. | |
6589 | (set_disassembler_options): Likewise. | |
6590 | (set_disassembler_options_sfunc): Likewise. | |
6591 | (show_disassembler_options_sfunc): Likewise. | |
6592 | (disassembler_options_completer): Likewise. | |
6593 | (_initialize_disasm): Likewise. | |
6594 | * disasm.h (get_disassembler_options): New prototype. | |
6595 | (set_disassembler_options): Likewise. | |
6596 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
6597 | (gdbarch_verify_disassembler_options): Likewise. | |
6598 | * gdbarch.c: Regenerate. | |
6599 | * gdbarch.h: Likewise. | |
6600 | * arm-tdep.c (num_disassembly_options): Delete. | |
6601 | (set_disassembly_style): Likewise. | |
6602 | (arm_disassembler_options): New static variable. | |
6603 | (set_disassembly_style_sfunc): Convert short style name into long | |
6604 | option name. Call set_disassembler_options. | |
6605 | (show_disassembly_style_sfunc): New function. | |
6606 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
6607 | set_gdbarch_verify_disassembler_options. | |
6608 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
6609 | (arm_disassembler_options): Initialize. | |
6610 | (disasm_options): New variable. | |
6611 | (num_disassembly_options): Rename from this... | |
6612 | (num_disassembly_styles): ...to this. Compute by scanning through | |
6613 | disasm_options. | |
6614 | (valid_disassembly_styles): Initialize using disasm_options. | |
6615 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
6616 | set_arm_regname_option. | |
6617 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
6618 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
6619 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
6620 | set_gdbarch_verify_disassembler_options. | |
6621 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
6622 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
6623 | set_gdbarch_verify_disassembler_options. | |
6624 | ||
d538e36d SM |
6625 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
6626 | ||
6627 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
6628 | keyword from range-based for loop. | |
6629 | ||
83621223 SM |
6630 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
6631 | ||
6632 | * remote.c (remote_add_target_side_condition): Use range-based | |
6633 | for loop. Update comment. | |
6634 | ||
2123df0e YQ |
6635 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
6636 | ||
6637 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
6638 | ||
8e368124 AH |
6639 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
6640 | ||
6641 | * regcache.c (regcache_raw_update): New function. | |
6642 | (regcache_raw_read): Move code to regcache_raw_update. | |
6643 | * regcache.h (regcache_raw_update): New declaration. | |
6644 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
6645 | ||
a49dd8dd JK |
6646 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
6647 | ||
6648 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
6649 | header.signature and header.type_offset_in_tu. | |
6650 | ||
34e4bae9 PA |
6651 | 2017-02-24 Pedro Alves <palves@redhat.com> |
6652 | ||
6653 | * symtab.c (make_file_symbol_completion_list_1): Use | |
6654 | add_symtab_completions. | |
6655 | ||
b0e4b369 AH |
6656 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
6657 | ||
6658 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
6659 | ||
975c21ab AH |
6660 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
6661 | ||
6662 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
6663 | I386_MAX_REGISTER_SIZE. | |
6664 | (i386_pseudo_register_write): Likewise. | |
6665 | (i386_process_record): Likewise. | |
6666 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
6667 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
6668 | (store_register): Likewise. | |
6669 | ||
14bc53a8 PA |
6670 | 2017-02-23 Pedro Alves <palves@redhat.com> |
6671 | ||
6672 | * ada-lang.c: Include "common/function-view.h". | |
6673 | (ada_iterate_over_symbols): Adjust to use function_view as | |
6674 | callback type. | |
6675 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
6676 | (ada_make_symbol_completion_list): Use a lambda. | |
6677 | (ada_exc_search_name_matches): Delete. | |
6678 | (name_matches_regex): New. | |
6679 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
6680 | * compile/compile-c-support.c: Include "common/function-view.h". | |
6681 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
6682 | (write_macro_definitions): Use a lambda. | |
6683 | * dwarf2read.c: Include "common/function-view.h". | |
6684 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
6685 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
6686 | callback type. | |
6687 | * language.h: Include "common/function-view.h". | |
6688 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
6689 | function_view as callback type. | |
6690 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
6691 | * linespec.c: Include "common/function-view.h". | |
6692 | (collect_info::add_symbol): New method. | |
6693 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
6694 | symbol_matcher_data, iterate_name_matcher): Delete. | |
6695 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
6696 | as callback type and lambdas. | |
6697 | (iterate_over_file_blocks): Adjust to use function_view as | |
6698 | callback type. | |
6699 | (decode_compound_collector): Now a class with private fields. | |
6700 | (decode_compound_collector::release_symbols): New method. | |
6701 | (collect_one_symbol): Rename to... | |
6702 | (decode_compound_collector::operator()): ... this and adjust. | |
6703 | (lookup_prefix_sym): decode_compound_collector construction bits | |
6704 | move to decode_compound_collector ctor. Pass the | |
6705 | decode_compound_collector object directly as callback. Remove | |
6706 | cleanups and use decode_compound_collector::release_symbols | |
6707 | instead. | |
6708 | (symtab_collector): Now a class with private fields. | |
6709 | (symtab_collector::release_symtabs): New method. | |
6710 | (add_symtabs_to_list): Rename to... | |
6711 | (symtab_collector::operator()): ... this and adjust. | |
6712 | (collect_symtabs_from_filename): symtab_collector construction | |
6713 | bits move to symtab_collector ctor. Pass the symtab_collector | |
6714 | object directly as callback. Remove cleanups and use | |
6715 | symtab_collector::release_symtabs instead. | |
6716 | (collect_symbols): Delete. | |
6717 | (add_matching_symbols_to_info): Use lambdas. | |
6718 | * macrocmd.c (print_macro_callback): Delete. | |
6719 | (info_macro_command): Use a lambda. | |
6720 | (info_macros_command): Pass print_macro_definition as callable | |
6721 | directly. | |
6722 | (print_one_macro): Remove 'ignore' parameter. | |
6723 | (macro_list_command): Adjust. | |
6724 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
6725 | (macro_for_each_data::user_data): Delete field. | |
6726 | (foreach_macro): Adjust to call the function_view. | |
6727 | (macro_for_each): Adjust to use function_view as callback type. | |
6728 | (foreach_macro_in_scope): Adjust to call the function_view. | |
6729 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
6730 | type. | |
6731 | * macrotab.h: Include "common/function-view.h". | |
6732 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
6733 | Remove "user_data" parameter. | |
6734 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
6735 | function_view as callback type. | |
6736 | * psymtab.c (partial_map_expand_apply) | |
6737 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
6738 | Adjust to use function_view as callback type and to return bool. | |
6739 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
6740 | callback types. | |
6741 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
6742 | to use function_view as callback type and to return bool. | |
6743 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
6744 | callback types. | |
6745 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
6746 | as callback types. | |
6747 | * symfile.h: Include "common/function-view.h". | |
6748 | (expand_symtabs_file_matcher_ftype) | |
6749 | (expand_symtabs_symbol_matcher_ftype) | |
6750 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
6751 | return bool. | |
6752 | (quick_symbol_functions::map_symtabs_matching_filename) | |
6753 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
6754 | function_view as callback type and return bool. | |
6755 | (expand_symtabs_matching): Adjust to use function_view as callback | |
6756 | type. | |
6757 | (maintenance_expand_name_matcher) | |
6758 | (maintenance_expand_file_matcher): Delete. | |
6759 | (maintenance_expand_symtabs): Use lambdas. | |
6760 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
6761 | function_view as callback types and return bool. | |
6762 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
6763 | of a cleanup. | |
6764 | (lookup_symtab_callback): Delete. | |
6765 | (lookup_symtab): Use a lambda. | |
6766 | (iterate_over_symbols): Adjust to use function_view as callback | |
6767 | type. | |
6768 | (struct search_symbols_data, search_symbols_file_matches) | |
6769 | (search_symbols_name_matches): Delete. | |
6770 | (search_symbols): Use a pair of lambdas. | |
6771 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
6772 | (symtab_expansion_callback): Delete. | |
6773 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
6774 | * symtab.h: Include "common/function-view.h". | |
6775 | (iterate_over_some_symtabs): Adjust to use function_view as | |
6776 | callback type and return bool. | |
6777 | (iterate_over_symtabs): Adjust to use function_view as callback | |
6778 | type. | |
6779 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
6780 | bool. | |
6781 | (iterate_over_symbols): Adjust to use function_view as callback | |
6782 | type. | |
6783 | ||
07e253aa PA |
6784 | 2017-02-23 Pedro Alves <palves@redhat.com> |
6785 | ||
6786 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
6787 | (%.o) <unittests/%.c>: New pattern. | |
6788 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
6789 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
6790 | * common/function-view.h: New file. | |
6791 | * unittests/function-view-selftests.c: New file. | |
6792 | * configure: Regenerate. | |
6793 | ||
8eaf5320 SM |
6794 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
6795 | ||
6796 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
6797 | inferior_ptid. | |
6798 | * go32-nat.c (go32_thread_alive): Likewise. | |
6799 | ||
38768751 YQ |
6800 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
6801 | ||
6802 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
6803 | delete. | |
6804 | ||
0a8beaba YQ |
6805 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
6806 | ||
6807 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
6808 | xfree. | |
6809 | (update_dynamic_varobj_children): Likewise. | |
6810 | ||
58fdfd2c JK |
6811 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6812 | ||
6813 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
6814 | ||
1b90b139 SM |
6815 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
6816 | ||
6817 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
6818 | m_enum_value to 0 in default constructor. | |
6819 | ||
2039d74e EBM |
6820 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
6821 | ||
6822 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
6823 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
6824 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
6825 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
6826 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
6827 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
6828 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
6829 | IS_STORE_CONDITIONAL_INSN. | |
6830 | ||
7814882a JK |
6831 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6832 | ||
6833 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
6834 | ||
0ae60b63 JK |
6835 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6836 | ||
6837 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
6838 | ||
0224619f JK |
6839 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6840 | ||
6841 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
6842 | (dwarf2_const_value_attr, dump_die_shallow) | |
6843 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
6844 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
6845 | ||
0af92d60 JK |
6846 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6847 | ||
6848 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
6849 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
6850 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
6851 | ||
216f72a1 JK |
6852 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6853 | ||
6854 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
6855 | DW_AT_GNU_*. | |
6856 | * common/common-exceptions.h (enum errors): Likewise. | |
6857 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
6858 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
6859 | (dwarf_expr_context::execute_stack_op): Likewise. | |
6860 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
6861 | Likewise. | |
6862 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
6863 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
6864 | (show_entry_values_debug, call_site_to_target_addr) | |
6865 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
6866 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
6867 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
6868 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
6869 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
6870 | (disassemble_dwarf_expression): Likewise. | |
6871 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
6872 | (read_call_site_scope): Likewise. | |
6873 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
6874 | (struct call_site): Likewise. | |
6875 | * stack.c (read_frame_arg): Likewise. | |
6876 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
6877 | ||
43988095 JK |
6878 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6879 | ||
6880 | * defs.h (read_unsigned_leb128): New declaration. | |
6881 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
6882 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
6883 | (dwarf2_find_location_expression): Call also | |
6884 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
6885 | * dwarf2loc.h (dwarf2_version): New declaration. | |
6886 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
6887 | rnglists. | |
6888 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
6889 | .debug_rnglists. | |
6890 | (struct dwop_section_names): Add loclists_dwo. | |
6891 | (dwop_section_names): Add .debug_loclists.dwo. | |
6892 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
6893 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
6894 | (struct dwo_sections): Add loclists. | |
6895 | (struct attr_abbrev): Add implicit_const. | |
6896 | (read_indirect_line_string): New declaration. | |
6897 | (read_unsigned_leb128): Delete declaration. | |
6898 | (rcuh_kind): New definition. | |
6899 | (read_and_check_comp_unit_head): Change parameter | |
6900 | is_debug_types_section to section_kind. | |
6901 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
6902 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
6903 | section_kind. Handle DWARF-5. | |
6904 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
6905 | (read_and_check_comp_unit_head): Change parameter | |
6906 | is_debug_types_section to section_kind. | |
6907 | (read_and_check_type_unit_head): Delete function. | |
6908 | (read_abbrev_offset): Handle DWARF-5. | |
6909 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
6910 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
6911 | comp_unit_head. | |
6912 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
6913 | caller. | |
6914 | (create_all_type_units): Call create_debug_type_hash_table. | |
6915 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
6916 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
6917 | caller. | |
6918 | (skip_one_die): Handle DW_FORM_implicit_const. | |
6919 | (dwarf2_rnglists_process): New function. | |
6920 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
6921 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
6922 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
6923 | DW_FORM_line_strp. | |
6924 | (read_attribute): Handle DW_FORM_implicit_const. | |
6925 | (read_indirect_string_at_offset_from): New function from | |
6926 | read_indirect_string_at_offset. | |
6927 | (read_indirect_string_at_offset): Call | |
6928 | read_indirect_string_at_offset_from. | |
6929 | (read_indirect_line_string_at_offset): New function. | |
6930 | (read_indirect_string): New function comment. | |
6931 | (read_indirect_line_string): New function. | |
6932 | (read_unsigned_leb128): Make it global. | |
6933 | (dwarf2_string_attr): Handle DWARF-5. | |
6934 | (add_include_dir_stub, read_formatted_entries): New functions. | |
6935 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
6936 | Handle DWARF-5. | |
6937 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
6938 | (dwarf2_version): New function. | |
6939 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
6940 | rnglists. | |
6941 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
6942 | fields. | |
6943 | ||
22d2f3ab JK |
6944 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6945 | ||
6946 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
6947 | ||
5f46c5a5 JK |
6948 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6949 | ||
6950 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
6951 | dwarf2_ranges_read. | |
6952 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
6953 | dwarf2_ranges_process. | |
6954 | ||
78d4d2c5 JK |
6955 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6956 | ||
6957 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
6958 | create_debug_types_hash_table. | |
6959 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
6960 | (create_all_type_units, open_and_init_dwo_file): Update | |
6961 | create_debug_types_hash_table callers. | |
6962 | ||
1b076f25 SDJ |
6963 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
6964 | ||
6965 | PR gdb/16188 | |
6966 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
6967 | refer to 'ap', not 'args'. | |
6968 | ||
0db8980c SDJ |
6969 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
6970 | Pedro Alves <palves@redhat.com> | |
6971 | ||
6972 | PR gdb/16188 | |
6973 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
6974 | calls succeeded. | |
6975 | * fork-child.c (trace_start_error): New function. | |
6976 | (trace_start_error_with_name): Likewise. | |
6977 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
6978 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
6979 | * inferior.h (trace_start_error): New prototype. | |
6980 | (trace_start_error_with_name): Likewise. | |
6981 | ||
99e8a4f9 SDJ |
6982 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
6983 | ||
6984 | PR gdb/21164 | |
6985 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
6986 | NULL before using it. | |
6987 | * symmisc.c (maintenance_print_symbols): Likewise. | |
6988 | (maintenance_print_msymbols): Likewise. | |
6989 | ||
4e746bb6 TW |
6990 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
6991 | ||
6992 | * NEWS: Add record Python bindings entry. | |
6993 | ||
6994 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
6995 | ||
6996 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
6997 | py-record-full.o. | |
6998 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
6999 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
7000 | python/py-record-full.c, python/py-record-full.h: New file. | |
7001 | * python/py-record.c: Add include for py-record-btrace.h and | |
7002 | py-record-full.h. | |
7003 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
7004 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
7005 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
7006 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
7007 | New definition. | |
7008 | (gdbpy_initialize_btrace): New export. | |
7009 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
7010 | ||
7011 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7012 | ||
7013 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
7014 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
7015 | * python/py-record.c: New file. | |
7016 | * python/python-internal.h (gdbpy_start_recording, | |
7017 | gdbpy_current_recording, gdpy_stop_recording, | |
7018 | gdbpy_initialize_record): New export. | |
7019 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
7020 | (python_GdbMethods): Add gdbpy_start_recording, | |
7021 | gdbpy_current_recording and gdbpy_stop_recording. | |
7022 | ||
7023 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7024 | ||
7025 | * record-btrace.c (record_btrace_record_method): New function. | |
7026 | (init_record_btrace_ops): Initialize to_record_method. | |
7027 | * record-full.c (record_full_record_method): New function. | |
7028 | (init_record_full_ops, init_record_full_core_ops): Add | |
7029 | record_full_record_method. | |
7030 | * record.h (enum record_method): New enum. | |
7031 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
7032 | * target-delegates.c: Regenerate. | |
7033 | * target.c (target_record_method): New function. | |
7034 | * target.h: Include record.h. | |
7035 | (struct target_ops) <to_record_method>: New field. | |
7036 | (target_record_method): New export. | |
7037 | ||
7038 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7039 | ||
7040 | * record.h (record_start, record_stop): New export. | |
7041 | * record.c (record_start, record_stop): New function. | |
7042 | ||
7043 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7044 | ||
7045 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
7046 | into a vector. | |
7047 | (btrace_clear): Clear the vector. | |
7048 | (btrace_find_insn_by_number): Use binary search to find the correct | |
7049 | function call segment. | |
7050 | * btrace.h (brace_fun_p): New typedef. | |
7051 | (struct btrace_thread_info) <functions>: New field. | |
7052 | ||
7053 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7054 | ||
7055 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
7056 | * btrace.c (btrace_decode_error): ... here. New function. | |
7057 | * btrace.h (btrace_decode_error): New export. | |
7058 | ||
7059 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7060 | ||
7061 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
7062 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
7063 | btrace_find_insn_by_number): Remove special case for gaps. | |
7064 | * btrace.h (btrace_insn_get_error): New export. | |
7065 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
7066 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
7067 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
7068 | ||
3f77c769 TT |
7069 | 2017-02-14 Tom Tromey <tom@tromey.com> |
7070 | ||
7071 | PR python/13598: | |
7072 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
7073 | event. | |
7074 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
7075 | before_prompt registry. | |
7076 | * python/py-events.h (events_object) <before_prompt>: New field. | |
7077 | ||
4c2c7ac6 MM |
7078 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
7079 | ||
7080 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
7081 | ||
5cf30ebf LM |
7082 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
7083 | ||
7084 | * symfile (_initialize_symfile): Add usage text to the load command's | |
7085 | help text. | |
7086 | ||
26a06916 SM |
7087 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
7088 | ||
7089 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
7090 | ||
0b145e37 TT |
7091 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7092 | ||
7093 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
7094 | ||
2d8365c4 TT |
7095 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7096 | ||
7097 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
7098 | "cleanup" local. | |
7099 | * python/py-type.c (typy_legacy_template_argument): Remove | |
7100 | unnecessary "cleanup" local. | |
7101 | ||
2bb8f231 TT |
7102 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7103 | ||
7104 | * python/python.c (do_start_initialization): New function, from | |
7105 | _initialize_python. | |
7106 | (_initialize_python): Call do_start_initialization. | |
7107 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
7108 | goto. | |
7109 | ||
1bdfaf42 TT |
7110 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7111 | ||
7112 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
7113 | gdbpy_ref. | |
7114 | ||
88b6faea TT |
7115 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7116 | ||
7117 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
7118 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
7119 | gdbpy_ref. | |
7120 | * python/py-type.c (field_new): Use gdbpy_ref. | |
7121 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
7122 | gdbpy_ref. | |
7123 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
7124 | (py_free_pspace): Likewise. | |
7125 | (pspace_to_pspace_object): Likewise. | |
7126 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
7127 | (py_free_objfile): Likewise. | |
7128 | (objfile_to_objfile_object): Likewise. | |
7129 | * python/py-inferior.c (delete_thread_object): Use | |
7130 | gdbpy_ref. | |
7131 | (infpy_read_memory): Likewise. | |
7132 | (py_free_inferior): Likewise. | |
7133 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
7134 | gdbpy_ref. | |
7135 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
7136 | ||
7780f186 TT |
7137 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7138 | ||
7139 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
7140 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
7141 | used. | |
7142 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
7143 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
7144 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
7145 | python/py-framefilter.c, python/py-function.c, | |
7146 | python/py-inferior.c, python/py-infevents.c, | |
7147 | python/py-linetable.c, python/py-newobjfileevent.c, | |
7148 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
7149 | python/py-signalevent.c, python/py-stopevent.c, | |
7150 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
7151 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
7152 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
7153 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
7154 | ||
d4b0bb18 TT |
7155 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7156 | ||
7157 | * ui-out.h (ui_out_emit_type): New class. | |
7158 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
7159 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
7160 | and ui_out_emit_tuple. | |
7161 | (enumerate_locals): Likewise. | |
7162 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
7163 | ui_out_emit_list. | |
7164 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
7165 | ui_out_emit_list. | |
7166 | * common/gdb_optional.h: New file. | |
7167 | ||
f67f945c MG |
7168 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
7169 | ||
7170 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
7171 | ||
18da0c51 MG |
7172 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
7173 | ||
7174 | PR gdb/21122 | |
7175 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
7176 | of the 'commands' command to indicate that it takes a list argument. | |
7177 | ||
62c14536 SM |
7178 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
7179 | ||
7180 | * interps.c (current_interp_set_logging): Remove "return". | |
7181 | ||
ff6fa247 GB |
7182 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
7183 | ||
7184 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
7185 | dereference. | |
7186 | ||
a474bd8e PA |
7187 | 2017-02-08 Pedro Alves <palves@redhat.com> |
7188 | ||
7189 | * interps.c (interp::interp): Remove reference to quiet_p. | |
7190 | (interp_set): Make static. Remove dead "Switching to" output | |
7191 | code. | |
7192 | (interp_quiet_p, interp_set_quiet): Delete. | |
7193 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
7194 | * interps.h (interp_quiet_p): Make static. | |
7195 | (class interp) <quiet_p>: Remove field | |
7196 | ||
3d7b173c JG |
7197 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
7198 | ||
604c4576 JG |
7199 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
7200 | * cli/cli-decode.h (find_command_name_length): Declare. | |
7201 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
7202 | New functions. | |
7203 | (process_next_line): Use cli-decode to parse command names. | |
7204 | (build_command_line): Make args a constant pointer. | |
7205 | ||
7206 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 7207 | |
3d7b173c JG |
7208 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
7209 | Remove case-insensitive search. | |
7210 | ||
1291063d JM |
7211 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
7212 | ||
7213 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
7214 | at the end of the line. Avoids an ARI warning. | |
7215 | ||
20b477a7 LM |
7216 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
7217 | ||
7218 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
7219 | rdseed instructions. | |
7220 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
7221 | ||
3f7b46f2 IR |
7222 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
7223 | ||
7224 | PR tdep/20936 | |
7225 | Provide and use sparc32 and sparc64 target description XML files. | |
7226 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
7227 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
7228 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
7229 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
7230 | * features/sparc/sparc32-solaris.xml: New file. | |
7231 | * features/sparc/sparc64-solaris.xml: New file. | |
7232 | * features/sparc/sparc32-solaris.c: Generated. | |
7233 | * features/sparc/sparc64-solaris.c: Generated. | |
7234 | * sparc-tdep.h: Account for differences in target descriptions. | |
7235 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
7236 | (sparc32_register_type): Use target provided registers. | |
7237 | (validate_tdesc_registers): New function. | |
7238 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
7239 | Set pseudoregister functions. | |
7240 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
7241 | (sparc64_register_type): Use target provided registers. | |
7242 | (sparc64_init_abi): Set pseudoregister functions. | |
7243 | ||
f0fd41c1 TT |
7244 | 2017-02-03 Tom Tromey <tom@tromey.com> |
7245 | ||
7246 | PR rust/21097: | |
7247 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
7248 | with a single member. | |
7249 | ||
d6f9b0fb PA |
7250 | 2017-02-03 Pedro Alves <palves@redhat.com> |
7251 | ||
7252 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
7253 | (cli_interp_base::~cli_interp_base): New. | |
7254 | (cli_interp): New struct. | |
7255 | (as_cli_interp): Cast the interp itself to cli_interp. | |
7256 | (cli_interpreter_pre_command_loop): Rename to ... | |
7257 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
7258 | parameter. | |
7259 | (cli_interpreter_init): Rename to ... | |
7260 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
7261 | boolean. Make extern. | |
7262 | (cli_interpreter_resume): Rename to ... | |
7263 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
7264 | extern. | |
7265 | (cli_interpreter_suspend): Rename to ... | |
7266 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
7267 | extern. | |
7268 | (cli_interpreter_exec): Rename to ... | |
7269 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
7270 | extern. | |
7271 | (cli_interpreter_supports_command_editing): Rename to ... | |
7272 | (cli_interp_base::supports_command_editing): ... this. Remove | |
7273 | 'interp' parameter. Make extern. | |
7274 | (cli_ui_out): Rename to ... | |
7275 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
7276 | Make extern. | |
7277 | (cli_set_logging): Rename to ... | |
7278 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
7279 | parameter. Make extern. | |
7280 | (cli_interp_procs): Delete. | |
7281 | (cli_interp_factory): Adjust to use "new". | |
7282 | * cli/cli-interp.h: Include "interps.h". | |
7283 | (struct cli_interp_base): New struct. | |
7284 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
7285 | (interp_new): Delete. | |
7286 | (interp::interp, interp::~interp): New. | |
7287 | (interp_set): Use bool, and return void. Assume the interpreter | |
7288 | has suspend, init and resume methods, and that the all return | |
7289 | void. | |
7290 | (set_top_level_interpreter): interp_set returns void. | |
7291 | (interp_ui_out): Adapt. | |
7292 | (current_interp_set_logging): Adapt. | |
7293 | (interp_data): Delete. | |
7294 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
7295 | (interp_exec): Adapt. | |
7296 | (top_level_interpreter_data): Delete. | |
7297 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
7298 | (interp_suspend_ftype, interp_exec_ftype) | |
7299 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
7300 | (class interp): New. | |
7301 | (interp_new): Delete. | |
7302 | (interp_set): Now returns void. Use bool. | |
7303 | (interp_data, top_level_interpreter_data): Delete. | |
7304 | * mi/mi-common.h: Include interps.h. | |
7305 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
7306 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
7307 | pre_command_loop methods. | |
7308 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
7309 | (mi_interpreter_init): Rename to ... | |
7310 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
7311 | bool, return void and make extern. Adjust. | |
7312 | (mi_interpreter_resume): ... Rename to ... | |
7313 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
7314 | return void and make extern. Adjust. | |
7315 | (mi_interpreter_suspend): ... Rename to ... | |
7316 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
7317 | return void and make extern. Adjust. | |
7318 | (mi_interpreter_exec): ... Rename to ... | |
7319 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
7320 | extern. Adjust. | |
7321 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
7322 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
7323 | parameter and make extern. | |
7324 | (mi_on_normal_stop_1): Adjust. | |
7325 | (mi_ui_out): Rename to ... | |
7326 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
7327 | parameter and make extern. Adjust. | |
7328 | (mi_set_logging): Rename to ... | |
7329 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
7330 | parameter and make extern. Adjust. | |
7331 | (mi_interp_procs): Delete. | |
7332 | (mi_interp_factory): Adjust to use 'new'. | |
7333 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
7334 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
7335 | Adjust. | |
7336 | * tui/tui-interp.c (tui_interp): New class. | |
7337 | (as_tui_interp): Return a tui_interp pointer. | |
7338 | (tui_on_normal_stop, tui_on_signal_received) | |
7339 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
7340 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
7341 | to use interp::interp_ui_out. | |
7342 | (tui_init): Rename to ... | |
7343 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
7344 | bool, return void and make extern. Adjust. | |
7345 | (tui_resume): Rename to ... | |
7346 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
7347 | return void and make extern. Adjust. | |
7348 | (tui_suspend): Rename to ... | |
7349 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
7350 | return void and make extern. Adjust. | |
7351 | (tui_ui_out): Rename to ... | |
7352 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
7353 | parameter, and make extern. Adjust. | |
7354 | (tui_exec): Rename to ... | |
7355 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
7356 | make extern. | |
7357 | (tui_interp_procs): Delete. | |
7358 | (tui_interp_factory): Use "new". | |
7359 | ||
65c40c95 TT |
7360 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7361 | ||
7362 | * rust-exp.y (ends_raw_string, space_then_number) | |
7363 | (rust_identifier_start_p): Return bool. | |
7364 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
7365 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
7366 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
7367 | (rust_chartype_p): Return bool. | |
7368 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
7369 | Update. | |
7370 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
7371 | Return bool. | |
7372 | ||
b50f188d TT |
7373 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7374 | ||
7375 | * rust-lang.c: Reindent. | |
7376 | ||
03c85b11 TT |
7377 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7378 | ||
7379 | * rust-lang.h (rust_crate_for_block): Update. | |
7380 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
7381 | (rust_get_disr_info): Use std:;string, not | |
7382 | gdb::unique_xmalloc_ptr. | |
7383 | * rust-exp.y (crate_name): Update. | |
7384 | ||
9b6da501 PA |
7385 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7386 | ||
7387 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
7388 | field out of gdb_disassembler_test and make it static. | |
7389 | ||
ec4cb20b PA |
7390 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7391 | ||
7392 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
7393 | mi1_interp and mi_interp fields. | |
7394 | ||
5be5dbf0 PA |
7395 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7396 | ||
616268b6 PA |
7397 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
7398 | Moved from cli/cli-logging.c. | |
7399 | (cli_set_logging): New function. | |
7400 | (cli_interp_procs): Install cli_set_logging. | |
7401 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
7402 | Declare. | |
7403 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
7404 | Moved to cli/cli-interp.c. | |
7405 | (pop_output_files): Don't save outputs here. | |
7406 | (make_logging_output): New function. | |
7407 | (handle_redirections): Don't build tee nor save previous outputs | |
7408 | here. | |
7409 | * interps.c (current_interp_set_logging): Change prototype. | |
7410 | Assume there's always a set_logging_proc method installed. | |
7411 | * interps.h (interp_set_logging_ftype): Change prototype. | |
7412 | (current_interp_set_logging): Change prototype and adjust comment. | |
7413 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
7414 | use make_logging_output. | |
7415 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
7416 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
7417 | ||
5be5dbf0 PA |
7418 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
7419 | from ... | |
7420 | (set_logging_overwrite): ... here. | |
7421 | (logging_no_redirect_file): Delete. | |
7422 | (set_logging_redirect): Don't handle redirection on the fly. | |
7423 | Instead warn that "logging off" / "logging on" is necessary. | |
7424 | (pop_output_files): Delete references to logging_no_redirect_file. | |
7425 | (show_logging_command): Always speak in terms of what will happen | |
7426 | once logging is reenabled. | |
7427 | ||
c99cc448 PA |
7428 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7429 | ||
7430 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
7431 | ||
8b172ce7 PA |
7432 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7433 | ||
7434 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
7435 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
7436 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
7437 | instead of allocating new buffers, and to print using the object's | |
7438 | gdb_disassembler instead of calling gdb_print_insn. | |
7439 | (dump_insns): Use gdb_pretty_print_disassembler. | |
7440 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
7441 | (gdb_pretty_print_disassembler): New class. | |
7442 | * record-btrace.c (btrace_insn_history): Use | |
7443 | gdb_pretty_print_disassembler. | |
7444 | ||
d7e74731 PA |
7445 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7446 | ||
7447 | * ada-lang.c (type_as_string): Use string_file. | |
7448 | * ada-valprint.c (ada_print_floating): Use string_file. | |
7449 | * ada-varobj.c (ada_varobj_scalar_image) | |
7450 | (ada_varobj_get_value_image): Use string_file. | |
7451 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
7452 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
7453 | * breakpoint.c (update_inserted_breakpoint_locations) | |
7454 | (insert_breakpoint_locations, reattach_breakpoints) | |
7455 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
7456 | (print_it_watchpoint): Use string_file. | |
7457 | (save_breakpoints): Use stdio_file. | |
7458 | * c-exp.y (oper): Use string_file. | |
7459 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
7460 | tee_file. | |
7461 | (pop_output_files): Use delete. | |
7462 | (handle_redirections): Use stdio_file and tee_file. | |
7463 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
7464 | * compile/compile-c-support.c (c_compute_program): Use | |
7465 | string_file. | |
7466 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
7467 | 'string_file &' instead of a 'ui_file *'. | |
7468 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
7469 | of a 'ui_file *'. Use string_file. | |
7470 | (generate_c_for_variable_locations): Take a 'string_file &' | |
7471 | instead of a 'ui_file *'. | |
7472 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
7473 | Take a 'string_file &' instead of a 'ui_file *'. | |
7474 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
7475 | (print_label, pushf_register_address, pushf_register) | |
7476 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
7477 | 'ui_file *'. Adjust. | |
7478 | * compile/compile.c (compile_to_object): Use string_file. | |
7479 | * compile/compile.h (compile_dwarf_expr_to_c) | |
7480 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
7481 | 'ui_file *'. | |
7482 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
7483 | (replace_typedefs_qualified_name): Use string_file and | |
7484 | obstack_copy0. | |
7485 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
7486 | (gdb_disassembly): Adjust reference the null_stream global. | |
7487 | (do_ui_file_delete): Delete. | |
7488 | (gdb_insn_length): Use null_stream. | |
7489 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
7490 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
7491 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
7492 | 'string_file &' instead of a 'ui_file *'. | |
7493 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
7494 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
7495 | (dwarf2_compute_name): Use string_file. | |
7496 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
7497 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
7498 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
7499 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
7500 | string_file. | |
7501 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
7502 | 'string_file *' instead of a 'ui_file *'. | |
7503 | (gdbscm_arch_disassemble): Use string_file. | |
7504 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
7505 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
7506 | inherits from ui_file. | |
7507 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
7508 | (ioscm_file_port_put): Delete. | |
7509 | (ioscm_file_port_write): Rename to ... | |
7510 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
7511 | checks. | |
7512 | (ioscm_file_port_new): Delete. | |
7513 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
7514 | ui_file_up. | |
7515 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
7516 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
7517 | Use string_file. | |
7518 | * infcmd.c (print_return_value_1): Use string_file. | |
7519 | * infrun.c (print_target_wait_results): Use string_file. | |
7520 | * language.c (add_language): Use string_file. | |
7521 | * location.c (explicit_to_string_internal): Use string_file. | |
7522 | * main.c (captured_main_1): Use null_file. | |
7523 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
7524 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
7525 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
7526 | event_channel>: Change type to mi_console_file pointer. | |
7527 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
7528 | (mi_console_file_delete): Delete. | |
7529 | (struct mi_console_file): Delete. | |
7530 | (mi_console_file_magic): Delete. | |
7531 | (mi_console_file_new): Delete. | |
7532 | (mi_console_file::mi_console_file): New. | |
7533 | (mi_console_file_delete): Delete. | |
7534 | (mi_console_file_fputs): Delete. | |
7535 | (mi_console_file::write): New. | |
7536 | (mi_console_raw_packet): Delete. | |
7537 | (mi_console_file::flush): New. | |
7538 | (mi_console_file_flush): Delete. | |
7539 | (mi_console_set_raw): Rename to ... | |
7540 | (mi_console_file::set_raw): ... this. | |
7541 | * mi/mi-console.h (class mi_console_file): New class. | |
7542 | (mi_console_file_new, mi_console_set_raw): Delete. | |
7543 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
7544 | (mi_set_logging): Use delete and tee_file. Adjust. | |
7545 | * mi/mi-main.c (output_register): Use string_file. | |
7546 | (mi_cmd_data_evaluate_expression): Use string_file. | |
7547 | (mi_cmd_data_read_memory): Use string_file. | |
7548 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
7549 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
7550 | (mi_ui_out::rewind): Use main_stream and | |
7551 | string_file. | |
7552 | (mi_ui_out::put): Use main_stream and string_file. | |
7553 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
7554 | Allocate a 'string_file' instead. | |
7555 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
7556 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
7557 | (mi_ui_out::main_stream): Declare method. | |
7558 | * printcmd.c (eval_command): Use string_file. | |
7559 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
7560 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
7561 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
7562 | * python/py-frame.c (frapy_str): Use string_file. | |
7563 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
7564 | Use string_file. | |
7565 | * python/py-type.c (typy_str): Use string_file. | |
7566 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
7567 | * python/py-value.c (valpy_str): Use string_file. | |
7568 | * record-btrace.c (btrace_insn_history): Use string_file. | |
7569 | * regcache.c (regcache_print): Use stdio_file. | |
7570 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
7571 | * remote.c (escape_buffer): Use string_file. | |
7572 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
7573 | * serial.c (serial_open_ops_1): Use stdio_file. | |
7574 | (do_serial_close): Use delete. | |
7575 | * stack.c (print_frame_arg): Use string_file. | |
7576 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
7577 | (print_frame): Use string_file. | |
7578 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
7579 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
7580 | Take a 'string_file *' instead of a 'ui_file *'. | |
7581 | * top.c (new_ui): Use stdio_file and stderr_file. | |
7582 | (free_ui): Use delete. | |
7583 | (execute_command_to_string): Use string_file. | |
7584 | (quit_confirm): Use string_file. | |
7585 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
7586 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
7587 | * tui/tui-file.c: Don't include "ui-file.h". | |
7588 | (enum streamtype, struct tui_stream): Delete. | |
7589 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
7590 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
7591 | (tui_file::tui_file): New method. | |
7592 | (tui_file_fputs): Delete. | |
7593 | (tui_file_get_strbuf): Delete. | |
7594 | (tui_file::puts): New method. | |
7595 | (tui_file_adjust_strbuf): Delete. | |
7596 | (tui_file_flush): Delete. | |
7597 | (tui_file::flush): New method. | |
7598 | * tui/tui-file.h: Tweak intro comment. | |
7599 | Include ui-file.h. | |
7600 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
7601 | (tui_file_adjust_strbuf): Delete declarations. | |
7602 | (class tui_file): New class. | |
7603 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
7604 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
7605 | (tui_register_format): Use string_stream. | |
7606 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
7607 | (tui_get_function_from_frame): Use string_file. | |
7608 | * typeprint.c (type_to_string): Use string_file. | |
7609 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
7610 | (null_stream): New global. | |
7611 | (ui_file_delete): Delete. | |
7612 | (ui_file::ui_file): New. | |
7613 | (null_file_isatty): Delete. | |
7614 | (ui_file::~ui_file): New. | |
7615 | (null_file_rewind): Delete. | |
7616 | (ui_file::printf): New. | |
7617 | (null_file_put): Delete. | |
7618 | (null_file_flush): Delete. | |
7619 | (ui_file::putstr): New. | |
7620 | (null_file_write): Delete. | |
7621 | (ui_file::putstrn): New. | |
7622 | (null_file_read): Delete. | |
7623 | (ui_file::putc): New. | |
7624 | (null_file_fputs): Delete. | |
7625 | (null_file_write_async_safe): Delete. | |
7626 | (ui_file::vprintf): New. | |
7627 | (null_file_delete): Delete. | |
7628 | (null_file::write): New. | |
7629 | (null_file_fseek): Delete. | |
7630 | (null_file::puts): New. | |
7631 | (ui_file_data): Delete. | |
7632 | (null_file::write_async_safe): New. | |
7633 | (gdb_flush, ui_file_isatty): Adjust. | |
7634 | (ui_file_put, ui_file_rewind): Delete. | |
7635 | (ui_file_write): Adjust. | |
7636 | (ui_file_write_for_put): Delete. | |
7637 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
7638 | (ui_file_fseek): Delete. | |
7639 | (fputs_unfiltered): Adjust. | |
7640 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
7641 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
7642 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
7643 | (set_ui_file_data): Delete. | |
7644 | (string_file::~string_file, string_file::write) | |
7645 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
7646 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
7647 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
7648 | (struct mem_file): Delete. | |
7649 | (mem_file_new): Delete. | |
7650 | (stdio_file::stdio_file): New. | |
7651 | (mem_file_delete): Delete. | |
7652 | (stdio_file::stdio_file): New. | |
7653 | (mem_fileopen): Delete. | |
7654 | (stdio_file::~stdio_file): New. | |
7655 | (mem_file_rewind): Delete. | |
7656 | (stdio_file::set_stream): New. | |
7657 | (mem_file_put): Delete. | |
7658 | (stdio_file::open): New. | |
7659 | (mem_file_write): Delete. | |
7660 | (stdio_file_magic, struct stdio_file): Delete. | |
7661 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
7662 | (stdio_file::flush): New. | |
7663 | (stdio_file_read): Rename to ... | |
7664 | (stdio_file::read): ... this. Adjust. | |
7665 | (stdio_file_write): Rename to ... | |
7666 | (stdio_file::write): ... this. Adjust. | |
7667 | (stdio_file_write_async_safe): Rename to ... | |
7668 | (stdio_file::write_async_safe) ... this. Adjust. | |
7669 | (stdio_file_fputs): Rename to ... | |
7670 | (stdio_file::puts) ... this. Adjust. | |
7671 | (stdio_file_isatty): Delete. | |
7672 | (stdio_file_fseek): Delete. | |
7673 | (stdio_file::isatty): New. | |
7674 | (stderr_file_write): Rename to ... | |
7675 | (stderr_file::write) ... this. Adjust. | |
7676 | (stderr_file_fputs): Rename to ... | |
7677 | (stderr_file::puts) ... this. Adjust. | |
7678 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
7679 | (stderr_file::stderr_file): New. | |
7680 | (tee_file_magic): Delete. | |
7681 | (struct tee_file): Delete. | |
7682 | (tee_file::tee_file): New. | |
7683 | (tee_file_new): Delete. | |
7684 | (tee_file::~tee_file): New. | |
7685 | (tee_file_delete): Delete. | |
7686 | (tee_file_flush): Rename to ... | |
7687 | (tee_file::flush): ... this. Adjust. | |
7688 | (tee_file_write): Rename to ... | |
7689 | (tee_file::write): ... this. Adjust. | |
7690 | (tee_file::write_async_safe): New. | |
7691 | (tee_file_fputs): Rename to ... | |
7692 | (tee_file::puts): ... this. Adjust. | |
7693 | (tee_file_isatty): Rename to ... | |
7694 | (tee_file::isatty): ... this. Adjust. | |
7695 | * ui-file.h (struct obstack, struct ui_file): Don't | |
7696 | forward-declare. | |
7697 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
7698 | (ui_file_write_ftype) | |
7699 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
7700 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
7701 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
7702 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
7703 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
7704 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
7705 | (set_ui_file_fseek): Delete. | |
7706 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
7707 | (struct ui_file): New. | |
7708 | (ui_file_up): New. | |
7709 | (class null_file): New. | |
7710 | (null_stream): Declare. | |
7711 | (ui_file_write_for_put, ui_file_put): Delete. | |
7712 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
7713 | Delete. | |
7714 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
7715 | (gdb_fopen, tee_file_new): Delete. | |
7716 | (struct string_file): New. | |
7717 | (struct stdio_file): New. | |
7718 | (stdio_file_up): New. | |
7719 | (struct stderr_file): New. | |
7720 | (class tee_file): New. | |
7721 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
7722 | of a 'ui_file *'. Adjust. | |
7723 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
7724 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
7725 | (null_stream): Delete. | |
7726 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
7727 | Adjust. | |
7728 | * utils.h (struct ui_file): Delete forward declaration.. | |
7729 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
7730 | (error_stream): Take a 'string_file &' instead of a | |
7731 | 'ui_file *'. | |
7732 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
7733 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
7734 | * gdbarch.c: Regenerate. | |
7735 | ||
187808b0 PA |
7736 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7737 | ||
7738 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
7739 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
7740 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
7741 | Adjust to call gdb_print_insn instead of | |
7742 | gdb_disassembler::print_insn. | |
7743 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
7744 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
7745 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
7746 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
7747 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
7748 | declaration. | |
7749 | (gdb_pretty_print_insn): Re-add declaration. | |
7750 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
7751 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
7752 | ||
7a8eb317 SM |
7753 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
7754 | ||
7755 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
7756 | * disasm.c (gdb_disassembly): Likewise. | |
7757 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
7758 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
7759 | * stack.c (do_gdb_disassembly): Likewise. | |
7760 | ||
7346ef59 AA |
7761 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7762 | ||
7763 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
7764 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
7765 | targets. And if the implicit value is longer than needed, extract | |
7766 | the first bytes instead of the "least significant" ones. | |
7767 | ||
cd4007e4 MM |
7768 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
7769 | ||
7770 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
7771 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
7772 | (btrace_fetch): Assert can_access_registers_ptid. | |
7773 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
7774 | validate_registers_access. | |
7775 | ||
cf77c34e MM |
7776 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
7777 | ||
7778 | * gdbthread.h (can_access_registers_ptid): New. | |
7779 | * thread.c (can_access_registers_ptid): New. | |
7780 | ||
be85ce7d PA |
7781 | 2017-02-01 Pedro Alves <palves@redhat.com> |
7782 | ||
7783 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
7784 | ||
29b0b251 PA |
7785 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7786 | ||
7787 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
7788 | Fix typos. | |
7789 | ||
289b5b24 PA |
7790 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7791 | ||
7792 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
7793 | not used. | |
7794 | ||
b47413b4 PA |
7795 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7796 | ||
7797 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
7798 | ||
60adb36c PA |
7799 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7800 | ||
7801 | * common/scoped_restore.h | |
7802 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
7803 | change the value's parameter type to T2. | |
7804 | (make_scoped_restore): Likewise. | |
7805 | ||
2735833d WT |
7806 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7807 | Richard Henderson <rth@redhat.com> | |
7808 | ||
7809 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
7810 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
7811 | GS_BASE for older kernels. | |
7812 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
7813 | GS_BASE for older kernels. | |
7814 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
7815 | and GS_BASE to the offset table. | |
7816 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
7817 | system register group. | |
7818 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
7819 | for older kernels. | |
7820 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
7821 | amd64 ABI. | |
7822 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
7823 | AMD64_GSBASE_REGNUM. | |
7824 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
7825 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
7826 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
7827 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
7828 | i386/64bit-segments.xml in those rules. | |
7829 | * features/i386/64bit-segments.xml: New file. | |
7830 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
7831 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
7832 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
7833 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
7834 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
7835 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
7836 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
7837 | * features/i386/amd64-avx-linux.c: Regenerated. | |
7838 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
7839 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
7840 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
7841 | * features/i386/amd64-linux.c: Regenerated. | |
7842 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
7843 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
7844 | * features/i386/i386-avx-mpx.c: Regenerated. | |
7845 | * features/i386/x32-avx-linux.c: Regenerated. | |
7846 | * features/i386/x32-avx512-linux.c: Regenerated. | |
7847 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
7848 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
7849 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
7850 | * regformats/i386/amd64-linux.dat: Regenerated. | |
7851 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
7852 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
7853 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
7854 | * regformats/i386/x32-linux.dat: Regenerated. | |
7855 | ||
8884e97e WT |
7856 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7857 | ||
7858 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
7859 | Set to AMD64_NUM_REGS. | |
7860 | ||
7005d26a WT |
7861 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7862 | ||
7863 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
7864 | that checks validity of a register number. | |
7865 | ||
4bd2e1b2 KC |
7866 | 2017-01-27 Kees Cook <keescook@google.com> |
7867 | ||
7868 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
7869 | fetch_fpregs if target has fpa registers. | |
7870 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
7871 | has fpa registers. | |
7872 | ||
7cf1de6c AA |
7873 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7874 | ||
7875 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
7876 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
7877 | ||
874a1c8c AT |
7878 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
7879 | ||
7880 | * corelow.c (get_core_register_section): Check for regset | |
7881 | existence before checking for REGSET_VARIABLE_SIZE. | |
7882 | ||
d8b49cf0 YQ |
7883 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7884 | Pedro Alves <palves@redhat.com> | |
7885 | ||
7886 | PR gdb/20939 | |
7887 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
7888 | call memory_error, save memaddr instead. | |
7889 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
7890 | negative, cal memory_error. | |
7891 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
7892 | ||
658ca58c YQ |
7893 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7894 | ||
7895 | * disasm-selftests.c (memory_error_test): New function. | |
7896 | (_initialize_disasm_selftests): Register memory_error_test. | |
7897 | ||
79843d45 YQ |
7898 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7899 | ||
7900 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
7901 | selftest-arch.c. | |
7902 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
7903 | * disasm-selftests.c: New file. | |
7904 | * selftest-arch.c: New file. | |
7905 | * selftest-arch.h: New file. | |
7906 | ||
8cafda32 YQ |
7907 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7908 | ||
7909 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
7910 | to bfd_arch_mep. Don't return 0 if section is not | |
7911 | found. Call print_insn_mep. | |
7912 | ||
e47ad6c0 YQ |
7913 | 2017-01-26 Pedro Alves <palves@redhat.com> |
7914 | Yao Qi <yao.qi@linaro.org> | |
7915 | ||
7916 | * arm-tdep.c: Include "disasm.h". | |
7917 | (gdb_print_insn_arm): Update code to get gdbarch. | |
7918 | * disasm.c (dis_asm_read_memory): Change it to | |
7919 | gdb_disassembler::dis_asm_read_memory. | |
7920 | (dis_asm_memory_error): Likewise. | |
7921 | (dis_asm_print_address): Likewise. | |
7922 | (gdb_pretty_print_insn): Change it to | |
7923 | gdb_disassembler::pretty_print_insn. | |
7924 | (dump_insns): Add one argument gdb_disassemlber. All | |
7925 | callers updated. | |
7926 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
7927 | (do_mixed_source_and_assembly): Likewise. | |
7928 | (do_assembly_only): Likewise. | |
7929 | (gdb_disassembler::gdb_disassembler): New. | |
7930 | (gdb_disassembler::print_insn): New. | |
7931 | * disasm.h (class gdb_disassembler): New. | |
7932 | (gdb_pretty_print_insn): Remove declaration. | |
7933 | (gdb_disassemble_info): Likewise. | |
7934 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
7935 | (gdbscm_disasm_read_memory_worker): Update. | |
7936 | (gdbscm_disasm_read_memory): Update. | |
7937 | (gdbscm_disasm_memory_error): Remove. | |
7938 | (gdbscm_disasm_print_address): Remove. | |
7939 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
7940 | (gdbscm_print_insn_from_port): Update. | |
7941 | * mips-tdep.c: Include disasm.h. | |
7942 | (gdb_print_insn_mips): Update code to get gdbarch. | |
7943 | * record-btrace.c (btrace_insn_history): Update. | |
7944 | * spu-tdep.c: Include disasm.h. | |
7945 | (struct spu_dis_asm_data): Remove. | |
7946 | (struct spu_dis_asm_info): New. | |
7947 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
7948 | SPU id. | |
7949 | (gdb_print_insn_spu): Cast disassemble_info to | |
7950 | spu_dis_asm_info. | |
7951 | ||
80d75874 YQ |
7952 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7953 | ||
7954 | * disasm.c (do_ui_file_delete): Delete. | |
7955 | (gdb_insn_length): Move code creating stream to ... | |
7956 | * utils.c (null_stream): ... here. New function. | |
7957 | * utils.h (null_stream): Declare. | |
7958 | ||
60685cd0 SM |
7959 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
7960 | ||
7961 | * python/py-inferior.c (find_thread_object): Return directly | |
7962 | from the loop. Remove "found" variable. | |
7963 | ||
eb1cdb62 JB |
7964 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
7965 | ||
7966 | GDB 7.12.1 released. | |
7967 | ||
b1ce6568 SM |
7968 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
7969 | ||
7970 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
7971 | the gdbpy_enter object declared first. | |
7972 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
7973 | ||
6f8b0407 SM |
7974 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
7975 | ||
fec93fb1 | 7976 | PR python/21068 |
6f8b0407 SM |
7977 | * python/python-internal.h (PyMem_RawMalloc): Define for |
7978 | Python < 3.4. | |
7979 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
7980 | PyMem_RawMalloc instead of PyMem_Malloc. | |
7981 | ||
78cbbba8 LM |
7982 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
7983 | Luis Machado <lgustavo@codesourcery.com> | |
7984 | ||
7985 | * NEWS (New commands): Mention flash-erase. | |
7986 | (New MI commands): Mention target-flash-erase. | |
7987 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
7988 | command. | |
7989 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
7990 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
7991 | * target.c (flash_erase_command): New function. | |
7992 | (initialize_targets): Add new flash-erase command. | |
7993 | * target.h (flash_erase_command): New declaration. | |
7994 | ||
2132fe85 JB |
7995 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
7996 | ||
7997 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
7998 | HAVE_SYS_PROCFS_H is defined. | |
7999 | ||
d1dff226 AH |
8000 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
8001 | ||
8002 | * remote.c (struct cached_reg): Change data into a pointer. | |
8003 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
8004 | (process_stop_reply): Likewise. | |
8005 | (remote_parse_stop_reply): Allocate space for data | |
8006 | ||
9890e433 AH |
8007 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
8008 | ||
8009 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
8010 | MAX_REGISTER_SIZE. | |
8011 | (amd64_pseudo_register_read_value): Likewise. | |
8012 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
8013 | (store_register_using_P): Likewise. | |
8014 | * regcache.c (regcache_xfer_part): Likewise. | |
8015 | ||
7a36499a IR |
8016 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
8017 | ||
8018 | Split real and pseudo registers. | |
8019 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
8020 | (sparc32_pseudo_regnum): New enum. | |
8021 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
8022 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
8023 | (SPARC32_CP0_REGISTERS): New macro. | |
8024 | (sparc32_pseudo_register_name): New function. | |
8025 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
8026 | (sparc32_pseudo_register_type): New function. | |
8027 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
8028 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
8029 | pseudo register numbers. | |
8030 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
8031 | (SPARC64_CP0_REGISTERS): New macro. | |
8032 | (sparc64_pseudo_register_name): New function. | |
8033 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
8034 | (sparc64_pseudo_register_type): New function. | |
8035 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
8036 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
8037 | pseudo register numbers. | |
8038 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
8039 | sparc64_store_arguments): Handle pseudo register numbers. | |
8040 | ||
6f8976bf YQ |
8041 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
8042 | ||
8043 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
8044 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
8045 | output. | |
8046 | (getpkt_or_notif_sane_1): Likewise. | |
8047 | ||
e4241ace YQ |
8048 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
8049 | ||
8050 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
8051 | of CC. Pass "-x c++-header" instead of "-x c". | |
8052 | ||
3015c064 SM |
8053 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8054 | ||
8055 | * remote.c (remote_can_async_p): Update comment. | |
8056 | ||
fde1b17d SM |
8057 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8058 | ||
8059 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
8060 | ||
ca1ca08b SM |
8061 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8062 | ||
8063 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
8064 | ||
4ad2da73 SM |
8065 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
8066 | ||
8067 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
8068 | ||
c8b23b3f TT |
8069 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8070 | ||
8071 | * python/py-type.c (typy_legacy_template_argument): Update. | |
8072 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
8073 | ~demangle_parse_info): Declare new members. | |
8074 | (cp_demangled_name_to_comp): Return unique_ptr. | |
8075 | (cp_demangled_name_parse_free) | |
8076 | (make_cleanup_cp_demangled_name_parse_free) | |
8077 | (cp_new_demangle_parse_info): Remove. | |
8078 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
8079 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
8080 | (inspect_type, cp_canonicalize_string_full) | |
8081 | (cp_canonicalize_string): Update. | |
8082 | (mangled_name_to_comp): Change return type. | |
8083 | (cp_class_name_from_physname, method_name_from_physname) | |
8084 | (cp_func_name, cp_remove_params): Update. | |
8085 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
8086 | cp_new_demangle_parse_info. | |
8087 | (~demangle_parse_info): New destructor, from | |
8088 | cp_demangled_name_parse_free. | |
8089 | (cp_merge_demangle_parse_infos): Update. | |
8090 | (cp_demangled_name_to_comp): Change return type. | |
8091 | ||
1ac32117 TT |
8092 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8093 | ||
8094 | * top.c (prevent_dont_repeat): Change return type. | |
8095 | * python/python.c (execute_gdb_command): Use std::string. | |
8096 | Update. | |
8097 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
8098 | * command.h (prevent_dont_repeat): Change return type. | |
8099 | * breakpoint.c (bpstat_do_actions_1): Update. | |
8100 | ||
0cf08227 TT |
8101 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8102 | ||
8103 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
8104 | free_to_mark. | |
8105 | (scoped_value_mark::free_to_mark): New method. | |
8106 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
8107 | scoped_value_mark. | |
8108 | ||
eb115069 TT |
8109 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8110 | ||
8111 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
8112 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
8113 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
8114 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
8115 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
8116 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
8117 | scoped_value_mark. | |
8118 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
8119 | * value.h (scoped_value_mark): New class. | |
8120 | ||
906768f9 TT |
8121 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8122 | ||
8123 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
8124 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
8125 | * psymtab.c (discard_psymtabs_upto): Remove. | |
8126 | (make_cleanup_discard_psymtabs): Remove. | |
8127 | (struct psymtab_state): Remove. | |
8128 | ||
bef155c3 TT |
8129 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8130 | ||
8131 | * record-full.c (record_full_save_cleanups): Remove. | |
8132 | (record_full_save): Use gdb::unlinker. | |
8133 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
8134 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
8135 | cleanups. | |
8136 | * dwarf2read.c (unlink_if_set): Remove. | |
8137 | (write_psymtabs_to_index): Use gdb::unlinker. | |
8138 | * common/gdb_unlinker.h: New file. | |
8139 | ||
192b62ce TT |
8140 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8141 | ||
8142 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
8143 | * windows-nat.c (windows_make_so): Update. | |
8144 | * utils.h (make_cleanup_bfd_unref): Remove. | |
8145 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
8146 | * symfile.h (symfile_bfd_open) | |
8147 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
8148 | * symfile.c (read_symbols, symbol_file_add) | |
8149 | (separate_debug_file_exists): Update. | |
8150 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
8151 | (generic_load, reread_symbols): Update. | |
8152 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
8153 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
8154 | (spu_symbol_file_add_from_memory): Update. | |
8155 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
8156 | gdb_bfd_ref_ptr. | |
8157 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
8158 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
8159 | gdb_bfd_ref_ptr. | |
8160 | (solib_map_sections, reload_shared_libraries_1): Update. | |
8161 | * solib-svr4.c (enable_break): Update. | |
8162 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
8163 | * solib-frv.c (enable_break2): Update. | |
8164 | * solib-dsbt.c (enable_break): Update. | |
8165 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
8166 | gdb_bfd_ref_ptr. | |
8167 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
8168 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
8169 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
8170 | * record-full.c (record_full_save): Update. | |
8171 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
8172 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
8173 | * minidebug.c (find_separate_debug_file_in_section): Return | |
8174 | gdb_bfd_ref_ptr. | |
8175 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
8176 | gdb_bfd_ref_ptr. | |
8177 | (macho_symfile_read_all_oso): Update. | |
8178 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
8179 | (macho_symfile_read): Update. | |
8180 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
8181 | (jit_bfd_try_read_symtab): Update. | |
8182 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
8183 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
8184 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
8185 | gdb_bfd_ref_ptr. | |
8186 | (gdb_bfd_ref_policy): New struct. | |
8187 | (gdb_bfd_ref_ptr): New typedef. | |
8188 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
8189 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
8190 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
8191 | gdb_bfd_ref_ptr. | |
8192 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
8193 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
8194 | (gcore_command): Update. | |
8195 | * exec.c (exec_file_attach): Update. | |
8196 | * elfread.c (elf_symfile_read): Update. | |
8197 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
8198 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
8199 | (open_and_init_dwo_file): Update. | |
8200 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
8201 | (open_and_init_dwp_file): Update. | |
8202 | * corelow.c (core_open): Update. | |
8203 | * compile/compile-object-load.c (compile_object_load): Update. | |
8204 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
8205 | * coffread.c (coff_symfile_read): Update. | |
8206 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
8207 | gdb_bfd_ref_ptr. Rename. | |
8208 | (dump_bfd_file, restore_command): Update. | |
8209 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
8210 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
8211 | (find_separate_debug_file_by_buildid): Update. | |
8212 | ||
50315b21 TT |
8213 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8214 | ||
8215 | * common/gdb_ref_ptr.h: New file. | |
8216 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
8217 | (gdbpy_ref): Now a typedef. | |
8218 | ||
fc4007c9 TT |
8219 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8220 | ||
8221 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
8222 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
8223 | Remove. | |
8224 | * linespec.c (decode_compound_collector): Add constructor, | |
8225 | destructor. | |
8226 | (lookup_prefix_sym): Remove cleanup. | |
8227 | (symtab_collector): Add constructor, destructor. | |
8228 | (collect_symtabs_from_filename): Remove cleanup. | |
8229 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
8230 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
8231 | Use htab_up. | |
8232 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
8233 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
8234 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
8235 | (write_psymtabs_to_index): Use htab_up. | |
8236 | * dwarf2loc.c (func_verify_no_selftailcall) | |
8237 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
8238 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
8239 | std::vector, gdb::unique_xmalloc_ptr. | |
8240 | (call_sitep): Remove typedef. | |
8241 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
8242 | ||
8dbcee67 TT |
8243 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8244 | ||
8245 | * python/python-internal.h (make_cleanup_py_decref) | |
8246 | (make_cleanup_py_xdecref): Don't declare. | |
8247 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
8248 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
8249 | ||
13df46cc TT |
8250 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8251 | ||
8252 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
8253 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
8254 | ||
06fc9bf7 TT |
8255 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8256 | ||
8257 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
8258 | ||
830a4934 TT |
8259 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8260 | ||
8261 | * python/py-utils.c (unicode_to_encoded_string) | |
8262 | (python_string_to_target_string) | |
8263 | (python_string_to_target_python_string) | |
8264 | (python_string_to_host_string, gdbpy_obj_to_string) | |
8265 | (get_addr_from_python): Use gdbpy_ref. | |
8266 | ||
4586d543 TT |
8267 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8268 | ||
8269 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
8270 | gdbpy_ref. | |
8271 | ||
59876f8f TT |
8272 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8273 | ||
8274 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
8275 | (gdbpy_run_events, gdbpy_start_type_printers) | |
8276 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
8277 | ||
97d83487 TT |
8278 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8279 | ||
8280 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
8281 | gdbpy_ref. | |
8282 | ||
9205649a TT |
8283 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8284 | ||
8285 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
8286 | Use gdbpy_ref. | |
8287 | ||
74c49d45 TT |
8288 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8289 | ||
8290 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
8291 | ||
16361ffb TT |
8292 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8293 | ||
8294 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
8295 | gdbpy_ref. | |
8296 | ||
905f2cca TT |
8297 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8298 | ||
8299 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
8300 | extra incref. | |
8301 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
8302 | Use gdbpy_ref. | |
8303 | ||
64081434 TT |
8304 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8305 | ||
8306 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
8307 | gdbpy_ref. | |
8308 | ||
59e9e831 TT |
8309 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8310 | ||
8311 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
8312 | decref results of PyArg_ParseTupleAndKeywords. | |
8313 | ||
9de10f6d TT |
8314 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8315 | ||
8316 | * python/python.c (python_run_simple_file): Use | |
8317 | unique_xmalloc_ptr, gdbpy_ref. | |
8318 | ||
2bd5759d TT |
8319 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8320 | ||
8321 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
8322 | (print_string_repr, print_children): Use gdbpy_ref. | |
8323 | (dummy_python_frame): New class. | |
8324 | (dummy_python_frame::dummy_python_frame): Rename from | |
8325 | push_dummy_python_frame. | |
8326 | (py_restore_tstate): Remove. | |
8327 | ||
3b4e0e01 TT |
8328 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8329 | ||
8330 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
8331 | ||
17a22718 TT |
8332 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8333 | ||
8334 | * python/python.c (ensure_python_env, restore_python_env): | |
8335 | Remove. | |
8336 | * python/python-internal.h (ensure_python_env): Don't declare. | |
8337 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
8338 | * varobj.c (varobj_ensure_python_env): Remove. | |
8339 | ||
68cdc557 TT |
8340 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8341 | ||
8342 | * varobj.c (varobj_value_get_print_value): Use | |
8343 | gdbpy_enter_varobj. | |
8344 | ||
1eba6383 TT |
8345 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8346 | ||
8347 | * python/py-prettyprint.c (print_string_repr, print_children): | |
8348 | Update. | |
8349 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
8350 | of "encoding". | |
8351 | * varobj.c (varobj_value_get_print_value): Update. | |
8352 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
8353 | ||
bde7b3e3 TT |
8354 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8355 | ||
8356 | * varobj.c (varobj_get_display_hint) | |
8357 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
8358 | (varobj_set_visualizer, free_variable): Use | |
8359 | gdbpy_enter_varobj. | |
8360 | ||
a7785f8c TT |
8361 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8362 | ||
8363 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
8364 | (do_finish_initialization): New function. Use gdbpy_ref. | |
8365 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
8366 | do_finish_initialization. | |
8367 | ||
2865bfce TT |
8368 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8369 | ||
8370 | * python/py-param.c (get_set_value, get_show_value): Use | |
8371 | gdbpy_enter, gdbpy_ref. | |
8372 | ||
0e9dcc75 TT |
8373 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8374 | ||
8375 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
8376 | ||
12a5cedd TT |
8377 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8378 | ||
8379 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
8380 | ||
788f2586 TT |
8381 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8382 | ||
8383 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
8384 | Use gdbpy_enter_varobj. | |
8385 | ||
6cd67bea TT |
8386 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8387 | ||
8388 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
8389 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
8390 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
8391 | gdbpy_enter_varobj. | |
8392 | ||
14b122bf TT |
8393 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8394 | ||
8395 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
8396 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
8397 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
8398 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
8399 | unique_xmalloc_ptr. | |
8400 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
8401 | ||
bf1ca3b9 TT |
8402 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8403 | ||
8404 | * python/py-xmethods.c (invoke_match_method): Use | |
8405 | gdbpy_ref. | |
8406 | ||
572a5524 TT |
8407 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8408 | ||
8409 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
8410 | gdbpy_enter, gdbpy_ref. | |
8411 | ||
396a78b6 TT |
8412 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8413 | ||
8414 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
8415 | ||
a88b13c7 TT |
8416 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8417 | ||
8418 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
8419 | gdbpy_ref. | |
8420 | ||
e9f0c363 TT |
8421 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8422 | ||
8423 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
8424 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
8425 | ||
6349f452 TT |
8426 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8427 | ||
8428 | * utils.h (htab_deleter): New struct. | |
8429 | (htab_up): New typedef. | |
8430 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
8431 | gdbpy_enter, gdbpy_ref, htab_up. | |
8432 | ||
c0171de6 TT |
8433 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8434 | ||
8435 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
8436 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
8437 | ||
f18e226f TT |
8438 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8439 | ||
8440 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
8441 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
8442 | ||
c57af3f1 TT |
8443 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8444 | ||
8445 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
8446 | ||
60e600ec TT |
8447 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8448 | ||
8449 | * python/python.c (gdbpy_eval_from_control_command) | |
8450 | (gdbpy_source_script, gdbpy_run_events) | |
8451 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
8452 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
8453 | gdbpy_enter. | |
8454 | ||
bf7da5b0 TT |
8455 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8456 | ||
8457 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
8458 | ||
2d38bced TT |
8459 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8460 | ||
8461 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
8462 | ||
07bc7329 TT |
8463 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8464 | ||
8465 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
8466 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
8467 | (python_on_memory_change, python_on_register_change) | |
8468 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
8469 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
8470 | ||
6e7c365e TT |
8471 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8472 | ||
8473 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
8474 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
8475 | ||
6ba0cd40 TT |
8476 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8477 | ||
8478 | * python/py-cmd.c (cmdpy_destroyer) | |
8479 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
8480 | gdbpy_enter. | |
8481 | ||
de2dc875 TT |
8482 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8483 | ||
8484 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
8485 | gdbpy_enter. | |
8486 | (gdbpy_breakpoint_has_cond): Likewise. | |
8487 | ||
4ecee2c4 TT |
8488 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8489 | ||
8490 | * python/python.c (gdbpy_enter): New constructor. | |
8491 | (~gdbpy_enter): New destructor. | |
8492 | (restore_python_env, ensure_python_env): Rewrite. | |
8493 | * python/python-internal.h (gdbpy_enter): New class. | |
8494 | ||
37fce74f TT |
8495 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8496 | ||
8497 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
8498 | ||
53a0cca3 TT |
8499 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8500 | ||
8501 | * python/py-value.c (value_has_field, get_field_flag) | |
8502 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
8503 | gdbpy_ref. | |
8504 | ||
ff3724f5 TT |
8505 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8506 | ||
8507 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
8508 | gdbpy_ref. | |
8509 | ||
0700aea5 TT |
8510 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8511 | ||
8512 | * python/py-prettyprint.c (search_pp_list) | |
8513 | (find_pretty_printer_from_objfiles) | |
8514 | (find_pretty_printer_from_progspace) | |
8515 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
8516 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
8517 | gdbpy_ref. | |
8518 | ||
1bb44c9f TT |
8519 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8520 | ||
8521 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
8522 | ||
87ce03fd TT |
8523 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8524 | ||
8525 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
8526 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
8527 | ||
ee0a3fb8 TT |
8528 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8529 | ||
8530 | * python/py-framefilter.c (extract_sym, extract_value) | |
8531 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
8532 | gdbpy_ref. | |
8533 | ||
bf2a52fa TT |
8534 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8535 | ||
8536 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
8537 | ||
f59fe7f8 TT |
8538 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8539 | ||
8540 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
8541 | ||
80bd970a TT |
8542 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8543 | ||
8544 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
8545 | gdbpy_ref. | |
8546 | ||
d1b3de2e TT |
8547 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8548 | ||
8549 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
8550 | ||
3bb43384 TT |
8551 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8552 | ||
8553 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
8554 | (typy_range): Use gdbpy_ref. | |
8555 | ||
abf5651e TT |
8556 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8557 | ||
8558 | * python/py-threadevent.c (create_thread_event_object): Use | |
8559 | gdbpy_ref. | |
8560 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
8561 | (emit_stop_event): Use gdbpy_ref. | |
8562 | * python/py-signalevent.c (create_signal_event_object): Use | |
8563 | gdbpy_ref. | |
8564 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
8565 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
8566 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
8567 | * python/py-infevents.c (create_inferior_call_event_object) | |
8568 | (create_register_changed_event_object) | |
8569 | (create_memory_changed_event_object, emit_inferior_call_event) | |
8570 | (emit_memory_changed_event, emit_register_changed_event): Use | |
8571 | gdbpy_ref. | |
8572 | * python/py-exitedevent.c (create_exited_event_object) | |
8573 | (emit_exited_event): Use gdbpy_ref. | |
8574 | * python/py-event.h (evpy_emit_event): Remove | |
8575 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
8576 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
8577 | * python/py-continueevent.c (emit_continue_event): Use | |
8578 | gdbpy_ref. | |
8579 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
8580 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
8581 | gdbpy_ref. | |
8582 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
8583 | gdbpy_ref. | |
8584 | ||
a68ff33e TT |
8585 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8586 | ||
8587 | * python/py-ref.h: New file. | |
8588 | ||
7becfd03 SM |
8589 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
8590 | ||
8591 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
8592 | void. | |
8593 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
8594 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
8595 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
8596 | * ui-out.c (ui_out::redirect): Likewise. | |
8597 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
8598 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
8599 | ui_out::redirect. | |
8600 | (handle_redirections): Likewise. | |
8601 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
8602 | * top.c (execute_command_to_string): Likewise. | |
8603 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
8604 | ||
df294654 SM |
8605 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
8606 | ||
8607 | * stack.c (_initialize_stack): Update "frame" command help message. | |
8608 | ||
f5e6296e IB |
8609 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
8610 | ||
8611 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
8612 | ||
0e2d6fa6 YQ |
8613 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8614 | ||
8615 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
8616 | ||
44d6d3f9 YQ |
8617 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8618 | ||
8619 | * ser-base.h: Include serial.h. | |
8620 | ||
656731fe YQ |
8621 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8622 | ||
8623 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
8624 | ||
1ca8f924 YQ |
8625 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8626 | ||
8627 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
8628 | ||
bc3008c4 YQ |
8629 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8630 | ||
8631 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
8632 | ||
66c80d03 YQ |
8633 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8634 | ||
8635 | * mi/mi-parse.h: Include mi-cmds.h. | |
8636 | ||
051d2dda YQ |
8637 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8638 | ||
8639 | * inf-loop.c: Don't include "target.h". | |
8640 | * inf-loop.h: Include it here. | |
8641 | ||
8018d34f YQ |
8642 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8643 | ||
8644 | * dfp.h: Include "dboulest.h" and "expression.h". | |
8645 | ||
c0b8369c YQ |
8646 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8647 | ||
8648 | * ax-gdb.h: Include "ax.h". | |
8649 | ||
ad5cba2a YQ |
8650 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8651 | ||
8652 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
8653 | with nat/gdb_ptrace.h. | |
8654 | ||
1c33cd7f YQ |
8655 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
8656 | ||
8657 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
8658 | new line. | |
8659 | (mips64_fbsd_sigframe_init): Likewise. | |
8660 | ||
c988ac1d JB |
8661 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8662 | ||
8663 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
8664 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
8665 | ||
b268007c JB |
8666 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8667 | ||
8668 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
8669 | * NEWS: Mention new FreeBSD/mips native configuration. | |
8670 | * config/mips/fbsd.mh: New file. | |
8671 | * configure.host: Add mips*-*-freebsd*. | |
8672 | * mips-fbsd-nat.c: New file. | |
8673 | ||
387360da JB |
8674 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8675 | ||
8676 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
8677 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
8678 | * NEWS: Mention new FreeBSD/mips target. | |
8679 | * configure.tgt: Add mips*-*-freebsd*. | |
8680 | * mips-fbsd-tdep.c: New file. | |
8681 | * mips-fbsd-tdep.h: New file. | |
8682 | ||
2aaaf250 YQ |
8683 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
8684 | ||
8685 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
8686 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
8687 | ||
61baf725 JB |
8688 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
8689 | ||
6dbb839a | 8690 | Update copyright year range in all GDB files. |
61baf725 | 8691 | |
c113e7ff | 8692 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 8693 | |
c113e7ff | 8694 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 8695 | |
c113e7ff | 8696 | For older changes see ChangeLog-2016. |
c906108c SS |
8697 | \f |
8698 | Local Variables: | |
8699 | mode: change-log | |
8700 | left-margin: 8 | |
8701 | fill-column: 74 | |
8702 | version-control: never | |
57da7796 | 8703 | coding: utf-8 |
c906108c | 8704 | End: |