Commit | Line | Data |
---|---|---|
b270e6f9 TT |
1 | 2017-08-22 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * breakpoint.h (install_breakpoint): Update. | |
4 | * breakpoint.c (add_solib_catchpoint): Update. | |
5 | (install_breakpoint): Change argument to a std::unique_ptr. | |
6 | (create_fork_vfork_event_catchpoint): Use std::unique_ptr. | |
7 | (create_breakpoint_sal, create_breakpoint): Update. | |
8 | (watch_command_1, catch_exec_command_1) | |
9 | (strace_marker_create_breakpoints_sal): Use std::unique_ptr. | |
10 | (add_to_breakpoint_chain): Change argument to a std::unique_ptr. | |
11 | Return the breakpoint. | |
12 | (set_raw_breakpoint_without_location, set_raw_breakpoint) | |
13 | (new_single_step_breakpoint): Update. | |
14 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use | |
15 | std::unique_ptr. | |
16 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
17 | std::unique_ptr. | |
18 | * break-catch-sig.c (create_signal_catchpoint): Use | |
19 | std::unique_ptr. | |
20 | * ada-lang.c (create_ada_exception_catchpoint): Use | |
21 | std::unique_ptr. | |
22 | ||
36bd8eaa TT |
23 | 2017-08-22 Tom Tromey <tom@tromey.com> |
24 | ||
25 | * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr. | |
26 | ||
56f37645 TT |
27 | 2017-08-22 Tom Tromey <tom@tromey.com> |
28 | ||
29 | * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr. | |
30 | (lookup_partial_symbol): Update. | |
31 | ||
0b581c69 TT |
32 | 2017-08-22 Tom Tromey <tom@tromey.com> |
33 | ||
34 | * source.h (rewrite_source_path): Return a unique_xmalloc_ptr. | |
35 | * source.c (rewrite_source_path): Return a unique_xmalloc_ptr. | |
36 | (find_and_open_source, symtab_to_fullname): Update. | |
37 | * psymtab.c (psymtab_to_fullname): Update. | |
38 | ||
14278e1f TT |
39 | 2017-08-22 Tom Tromey <tom@tromey.com> |
40 | ||
41 | * exec.c (exec_file_attach): Update. | |
42 | * linux-thread-db.c (try_thread_db_load): Update. | |
43 | * guile/scm-safe-call.c (gdbscm_safe_source_script): Update. | |
44 | * utils.c (gdb_realpath): Change return type. | |
45 | (gdb_realpath_keepfile): Update. | |
46 | (gdb_realpath_check_trailer, gdb_realpath_tests): New functions. | |
47 | (_initialize_utils): Register the new self test. | |
48 | * source.c (openp): Update. | |
49 | (find_and_open_source): Update. | |
50 | * nto-tdep.c (nto_find_and_open_solib): Update. | |
51 | * main.c (set_gdb_data_directory): Update. | |
52 | (captured_main_1): Update. | |
53 | * dwarf2read.c (dwarf2_get_dwz_file): Update | |
54 | (dw2_map_symbol_filenames): Update. | |
55 | * auto-load.c (auto_load_safe_path_vec_update): Update. | |
56 | (filename_is_in_auto_load_safe_path_vec): Change type of | |
57 | "filename_realp". | |
58 | (auto_load_objfile_script): Update. | |
59 | (file_is_auto_load_safe): Update. Use std::string. | |
60 | * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr. | |
61 | ||
4971c9a7 TT |
62 | 2017-08-22 Tom Tromey <tom@tromey.com> |
63 | ||
64 | * utils.c (gdb_realpath_keepfile): Return a | |
65 | gdb::unique_xmalloc_ptr. | |
66 | * exec.c (exec_file_attach): Update. | |
67 | * utils.h (gdb_realpath_keepfile): Return a | |
68 | gdb::unique_xmalloc_ptr. | |
69 | ||
e3e41d58 TT |
70 | 2017-08-22 Tom Tromey <tom@tromey.com> |
71 | ||
72 | * compile/compile.c (compile_file_command): Use | |
73 | gdb::unique_xmalloc_ptr, std::string. | |
74 | * utils.c (gdb_abspath): Change return type. | |
75 | * source.c (openp): Update. | |
76 | * objfiles.c (allocate_objfile): Update. | |
77 | * main.c (set_gdb_data_directory): Update. | |
78 | * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr. | |
79 | ||
0d999a6e ZZ |
80 | 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com> |
81 | ||
82 | * cli-cmds.c (list_commands): List actual code around more than | |
83 | one location. | |
84 | ||
329d5e7e JB |
85 | 2017-08-21 John Baldwin <jhb@FreeBSD.org> |
86 | ||
87 | * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'. | |
88 | ||
bf223d3e PA |
89 | 2017-08-21 Pedro Alves <palves@redhat.com> |
90 | ||
91 | PR gdb/19487 | |
92 | * c-exp.y (variable production): Handle function aliases. | |
93 | * minsyms.c (msymbol_is_text): New function. | |
94 | * minsyms.h (msymbol_is_text): Declare. | |
95 | * symtab.c (find_function_alias_target): New function. | |
96 | * symtab.h (find_function_alias_target): Declare. | |
97 | ||
c973d0aa PA |
98 | 2017-08-21 Pedro Alves <palves@redhat.com> |
99 | ||
100 | * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past | |
101 | typedefs. | |
102 | * typeprint.c (whatis_exp): If handling "whatis", and expression | |
103 | is OP_TYPE, strip one typedef level. Otherwise don't strip | |
104 | typedefs here. | |
105 | * valops.c (value_cast): Save "to" type before resolving | |
106 | stubs/typedefs. Use that type as resulting value's type. | |
107 | ||
2989a365 TT |
108 | 2017-08-18 Tom Tromey <tom@tromey.com> |
109 | Pedro Alves <palves@redhat.com> | |
110 | ||
111 | * spu-multiarch.c (parse_spufs_run): Use scoped_restore. | |
112 | * sol-thread.c (sol_thread_resume, sol_thread_wait) | |
113 | (sol_thread_xfer_partial, rw_common): Use scoped_restore. | |
114 | * procfs.c (procfs_do_thread_registers): Use scoped_restore. | |
115 | * proc-service.c (ps_xfer_memory): Use scoped_restore. | |
116 | * linux-tdep.c (linux_corefile_thread): Remove a cleanup. | |
117 | (linux_get_siginfo_data): Add "thread" argument. Use | |
118 | scoped_restore. | |
119 | * linux-nat.c (linux_child_follow_fork) | |
120 | (check_stopped_by_watchpoint): Use scoped_restore. | |
121 | * infrun.c (displaced_step_prepare_throw, write_memory_ptid) | |
122 | (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore. | |
123 | (restore_inferior_ptid, save_inferior_ptid): Remove. | |
124 | * btrace.c (btrace_fetch): Use scoped_restore. | |
125 | * bsd-uthread.c (bsd_uthread_fetch_registers) | |
126 | (bsd_uthread_store_registers): Use scoped_restore. | |
127 | * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use | |
128 | scoped_restore. | |
129 | * aix-thread.c (aix_thread_resume, aix_thread_wait) | |
130 | (aix_thread_xfer_partial): Use scoped_restore. | |
131 | * inferior.h (save_inferior_ptid): Remove. | |
132 | ||
e60eb288 YQ |
133 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
134 | ||
135 | PR tdep/21818 | |
136 | * arm-tdep.c (gdb_print_insn_arm): Mark | |
137 | USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL. | |
138 | ||
6d580b63 YQ |
139 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
140 | ||
141 | * NEWS: Mention GDBserver's new option "--selftest". | |
142 | * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c. | |
143 | * selftest.c: Move it to common/selftest.c. | |
144 | * selftest.h: Move it to common/selftest.h. | |
145 | * selftest-arch.c (reset): New function. | |
146 | (tests_with_arch): Call reset. | |
147 | ||
86dcbf50 YQ |
148 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
149 | ||
150 | * selftest.c (run_tests): Don't call QUIT. Call debug_printf | |
151 | instead of exception_fprintf and printf_filtered. | |
152 | ||
7649770c YQ |
153 | 2017-08-18 Yao Qi <yao.qi@linaro.org> |
154 | ||
155 | * selftest.c (register_self_test): Rename it to | |
156 | selftests::register_test. | |
157 | (run_self_tests): selftest::run_tests. | |
158 | * selftest.h: Update declarations. | |
159 | * selftest-arch.c (register_self_test_foreach_arch): Rename it to | |
160 | selftests::register_test_foreach_arch. | |
161 | * selftest-arch.h: Update declaration. | |
162 | * aarch64-tdep.c: Update. | |
163 | * arm-tdep.c: Likewise. | |
164 | * disasm-selftests.c: Likewise. | |
165 | * dwarf2loc.c: Likewise. | |
166 | * dwarf2-frame.c: Likewise. | |
167 | * findvar.c: Likewise. | |
168 | * gdbarch-selftests.c: Likewise. | |
169 | * maint.c (maintenance_selftest): Likewise. | |
170 | * regcache.c: Likewise. | |
171 | * rust-exp.y: Likewise. | |
172 | * selftest-arch.c: Likewise. | |
173 | * unittests/environ-selftests.c: Likewise. | |
174 | * unittests/function-view-selftests.c: Likewise. | |
175 | * unittests/offset-type-selftests.c: Likewise. | |
176 | * unittests/optional-selftests.c: Likewise. | |
177 | * unittests/scoped_restore-selftests.c: Likewise. | |
178 | * utils-selftests.c: Likewise. | |
179 | ||
b0cba12e PA |
180 | 2017-08-17 Pedro Alves <palves@redhat.com> |
181 | ||
182 | * cli/cli-cmds.c (source_command): Delete 'old_source_verbose' | |
183 | local. | |
184 | ||
4c8aa72d PA |
185 | 2017-08-17 Pedro Alves <palves@redhat.com> |
186 | ||
187 | * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New | |
188 | field. | |
189 | (reset_die_in_process): Delete, replaced by ... | |
190 | (process_die_scope): ... this new class. Make it responsible for | |
191 | freeing cu->line_header too. | |
192 | (process_die): Use process_die_scope. | |
193 | (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in | |
194 | cu->line_header_die_owner. Don't release the line header if it's | |
195 | owned by the CU. | |
196 | (setup_type_unit_groups): Make the CU/DIE own the line header. | |
197 | Don't release the line header here. | |
198 | ||
ba713918 AL |
199 | 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change) |
200 | ||
201 | * elfread.c (elf_read_minimal_symbols): xfree synthsyms. | |
202 | ||
44d0fb3a RK |
203 | 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com> |
204 | ||
205 | * NEWS: Mention new shortcuts for nexti and stepi in TUI | |
206 | Single-Key mode | |
207 | ||
a5afdb16 RK |
208 | 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com> |
209 | ||
210 | * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key | |
211 | mode command list. | |
212 | ||
47613aeb SH |
213 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
214 | ||
215 | * MAINTAINERS (Write After Approval): Add Stafford Horne. | |
216 | ||
9c3cc999 SH |
217 | 2017-08-15 Stafford Horne <shorne@gmail.com> |
218 | ||
219 | * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname. | |
220 | ||
206726fb SDJ |
221 | 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com> |
222 | ||
223 | PR gdb/21954 | |
224 | * infcmd.c (unset_environment_command): Use the 'clear' method on | |
225 | the environment instead of resetting it. | |
226 | ||
0335ac6d JB |
227 | 2017-08-15 John Baldwin <jhb@FreeBSD.org> |
228 | ||
229 | * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian | |
230 | platforms. | |
231 | ||
d3abe1c8 TT |
232 | 2017-08-14 Tom Tromey <tom@tromey.com> |
233 | ||
234 | * valprint.c (print_octal_chars): Use HOST_CHAR_BIT. | |
235 | (print_binary_chars): Likewise. | |
236 | (BITS_IN_BYTES): Remove. | |
237 | ||
d6382fff TT |
238 | 2017-08-14 Tom Tromey <tom@tromey.com> |
239 | ||
240 | PR gdb/21675 | |
241 | * valprint.c (LOW_ZERO): Change value to 034. | |
242 | (print_octal_chars): Add static_asserts for octal constants. | |
243 | * printcmd.c (print_scalar_formatted): Add 'd' case. | |
244 | ||
f978cb06 TT |
245 | 2017-08-11 Tom Tromey <tom@tromey.com> |
246 | ||
247 | * symfile.c (add_symbol_file_command): Use std::vector. | |
248 | ||
2f5404b3 TT |
249 | 2017-08-14 Tom Tromey <tom@tromey.com> |
250 | ||
251 | * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. | |
252 | * break-catch-syscall.c (create_syscall_event_catchpoint): Use | |
253 | std::move. | |
254 | * break-catch-sig.c (create_signal_catchpoint): Use std::move. | |
255 | ||
de7985c3 PA |
256 | 2017-08-11 Pedro Alves <palves@redhat.com> |
257 | ||
258 | * infrun.c (process_event_stop_test): Adjust | |
259 | function_name_is_marked_for_skip call. | |
260 | * skip.c: Include <list>. | |
261 | (skiplist_entry): Make it a class with private fields, and | |
262 | getters/setters. | |
263 | (skiplist_entry_chain): Delete. | |
264 | (skiplist_entries): New. | |
265 | (skiplist_entry_count): Delete. | |
266 | (highest_skiplist_entry_num): New. | |
267 | (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete. | |
268 | (add_skiplist_entry): Delete. | |
269 | (skiplist_entry::skiplist_entry): New. | |
270 | (skiplist_entry::add_entry): New. | |
271 | (skip_file_command, skip_function): Adjust. | |
272 | (compile_skip_regexp): Delete. | |
273 | (skip_command): Don't compile regexp here. Adjust to use | |
274 | skiplist_entry::add_entry. | |
275 | (skip_info): Adjust to use range-for and getters. | |
276 | (skip_enable_command, skip_disable_command): Adjust to use | |
277 | range-for and setters. | |
278 | (skip_delete_command): Adjust to use std::list. | |
279 | (add_skiplist_entry): Delete. | |
280 | (skip_file_p): Delete, refactored as ... | |
281 | (skiplist_entry::do_skip_file_p): ... this new method. | |
282 | (skip_gfile_p): Delete, refactored as ... | |
283 | (skiplist_entry::do_gskip_file_p): ... this new method. | |
284 | (skip_function_p, skip_rfunction_p): Delete, refactored as ... | |
285 | (skiplist_entry::skip_function_p): ... this new method. | |
286 | (function_name_is_marked_for_skip): Now returns bool, and takes | |
287 | the function sal by const reference. Adjust to use range-for and | |
288 | skiplist_entry methods. | |
289 | (_initialize_step_skip): Remove references to | |
290 | skiplist_entry_chain, skiplist_entry_count. | |
291 | * skip.h (function_name_is_marked_for_skip): Now returns bool, and | |
292 | takes the function sal by const reference. | |
293 | ||
be7d3cd5 YQ |
294 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
295 | ||
296 | * dwarf2-frame.c (clear_pointer_cleanup): Remove. | |
297 | (dwarf2_frame_cache): Remove reset_cache_cleanup. | |
298 | (dwarf2_frame_cache): | |
299 | * frame-unwind.c (frame_unwind_try_unwinder): Catch | |
300 | RETURN_MASK_ALL and set *this_case to NULL. | |
301 | * frame-unwind.h: Update comments. | |
302 | ||
1c90d9f0 YQ |
303 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
304 | ||
305 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove. | |
306 | (dwarf2_frame_state_copy_regs): Remove. | |
307 | (dwarf2_frame_state_free_regs): Remove. | |
308 | (dwarf2_frame_state::~dwarf2_frame_state): Remove. | |
309 | (dwarf2_restore_rule): Call method .alloc_regs instead of | |
310 | dwarf2_frame_state_alloc_regs. | |
311 | (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info | |
312 | constructor. Call std::move. | |
313 | (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs. | |
314 | (dwarf2_frame_cache): Likewise. | |
315 | ||
316 | [GDB_SELF_TEST]: Include selftest.h and | |
317 | selftest-arch.h. | |
318 | [GDB_SELF_TEST] (execute_cfa_program_test): New function. | |
319 | (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register | |
320 | execute_cfa_program_test. | |
321 | ||
322 | * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor, | |
323 | copy ctor, assignment operator, move assignment. | |
324 | <alloc_regs>: New method. | |
325 | <swap>: New method. | |
326 | (struct dwarf2_frame_state): Delete dtor. | |
327 | (dwarf2_frame_state_alloc_regs): Remove declaration. | |
328 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call | |
329 | dwarf2_frame_state_alloc_regs, use .alloc_regs instead. | |
330 | ||
afe37d6b YQ |
331 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
332 | ||
333 | * dwarf2-frame.c (dwarf2_frame_state_free): Remove. | |
334 | (dwarf2_frame_state::dwarf2_frame_state): New. | |
335 | (dwarf2_frame_state::~dwarf2_frame_state): New. | |
336 | (dwarf2_fetch_cfa_info): Update. | |
337 | (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object | |
338 | rather than a pointer. Update code. | |
339 | * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and | |
340 | dtor. | |
341 | <data_align, code_align, retaddr_column>: Change them to const. | |
342 | <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them | |
343 | to bool. | |
344 | ||
b348037f YQ |
345 | 2017-08-11 Yao Qi <yao.qi@linaro.org> |
346 | ||
347 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove. | |
348 | <loc.exp>: New field. | |
349 | * dwarf2-frame.c (execute_cfa_program): Update. | |
350 | (dwarf2_frame_prev_register): Update. | |
351 | ||
e7c9de26 PA |
352 | 2017-08-10 Pedro Alves <palves@redhat.com> |
353 | ||
354 | * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define. | |
355 | ||
e8c6b620 JB |
356 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
357 | ||
358 | * fbsd-nat.c (struct fbsd_fork_info): Remove. | |
359 | (fbsd_pending_children): Use std::list. | |
360 | (fbsd_remember_child): Likewise. | |
361 | (fbsd_is_child_pending): Likewise. | |
362 | (fbsd_pending_vfork_done): Use std::forward_list. | |
363 | (fbsd_add_vfork_done): Likewise. | |
364 | (fbsd_is_vfork_done_pending): Likewise. | |
365 | (fbsd_next_vfork_done): Likewise. | |
366 | ||
e4a26669 JB |
367 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
368 | ||
369 | * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New. | |
370 | (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr. | |
371 | [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string | |
372 | for `mapfilename'. | |
373 | (fbsd_xfer_partial): Use gdb::byte_vector. | |
af3881e6 | 374 | (fbsd_add_threads): Use gdb::unique_xmalloc_ptr. |
e4a26669 | 375 | |
142311d3 JB |
376 | 2017-08-09 John Baldwin <jhb@FreeBSD.org> |
377 | ||
378 | * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and | |
379 | "filestuff.h". | |
380 | (fbsd_find_memory_regions): Fix `mapfile' initialization. | |
381 | ||
42fa2e0e TT |
382 | 2017-08-09 Tom Tromey <tom@tromey.com> |
383 | ||
384 | * skip.c (skiplist_entry): New constructor. | |
385 | (skiplist_entry::enabled, skiplist_entry::function_is_regexp) | |
386 | (skiplist_entry::file_is_glob): Now bool. | |
387 | (skiplist_entry::file, skiplist_entry::function): Now | |
388 | std::string. | |
389 | (make_skip_entry): Return a unique_ptr. Use new. | |
390 | (free_skiplist_entry, free_skiplist_entry_cleanup) | |
391 | (make_free_skiplist_entry_cleanup): Remove. | |
392 | (skip_command, skip_disable_command, add_skiplist_entry) | |
393 | (skip_form_bytes, compile_skip_regexp, skip_command, skip_info) | |
394 | (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p) | |
395 | (function_name_is_marked_for_skip): Update. | |
396 | (skip_delete_command): Update. Use delete. | |
397 | ||
cd3af38d JW |
398 | 2017-08-09 Jiong Wang <jiong.wang@arm.com> |
399 | ||
400 | * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h". | |
401 | (aarch64_linux_core_read_description): New function. | |
402 | (aarch64_linux_init_abi): Register gdbarch_core_read_description. | |
403 | ||
29592bde PA |
404 | 2017-08-09 Pedro Alves <palves@redhat.com> |
405 | ||
406 | * cp-name-parser.y (cp_comp_to_string): Return a | |
407 | gdb::unique_xmalloc_ptr<char>. | |
408 | * cp-support.c (replace_typedefs_qualified_name) | |
409 | (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>. | |
410 | (cp_canonicalize_string_full): Use op= instead of explicit | |
411 | convertion. | |
412 | (cp_class_name_from_physname, method_name_from_physname) | |
413 | (cp_func_name, cp_remove_params): Adjust to use | |
414 | gdb::unique_xmalloc_ptr<char>. | |
415 | * cp-support.h (cp_comp_to_string): Return a | |
416 | gdb::unique_xmalloc_ptr<char>. | |
417 | * python/py-type.c (typy_lookup_type): Adjust to use | |
418 | gdb::unique_xmalloc_ptr<char>. | |
419 | ||
b3340438 L |
420 | 2017-08-09 H.J. Lu <hongjiu.lu@intel.com> |
421 | ||
422 | * dwarf2read.c (dwarf2_string_attr): Fix a typo. | |
423 | ||
e88e8651 YQ |
424 | 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com> |
425 | Yao Qi <yao.qi@linaro.org> | |
426 | ||
427 | * cp-support.c (cp_canonicalize_string_full): Use | |
428 | gdb::unique_xmalloc_ptr<char>. | |
429 | (cp_canonicalize_string): Likewise. | |
430 | ||
f5a29eb0 YQ |
431 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
432 | ||
433 | * features/Makefile (WHICH): Remove i386/ non-linux stuff. | |
434 | * regformats/i386/amd64-avx-avx512.dat: Remove. | |
435 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove. | |
436 | * regformats/i386/amd64-avx-mpx.dat:Remove. | |
437 | * regformats/i386/amd64-avx.dat: Remove. | |
438 | * regformats/i386/amd64-mpx.dat: Remove. | |
439 | * regformats/i386/i386-avx-avx512.dat: Remove. | |
440 | * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove. | |
441 | * regformats/i386/i386-avx-mpx.dat: Remove. | |
442 | * regformats/i386/i386-mmx.dat: Remove. | |
443 | * regformats/i386/i386-mpx.dat: Remove. | |
444 | ||
57757c2f YQ |
445 | 2017-08-09 Yao Qi <yao.qi@linaro.org> |
446 | ||
447 | * amd64-tdep.h (tdesc_x32): Remove the declaration. | |
448 | * amd64-tdep.c: Don't include features/i386/x32*.c. | |
449 | (_initialize_amd64_tdep): Don't call initialize_tdesc_x32* | |
450 | functions. | |
451 | * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx, | |
452 | and i386/x32-avx-avx512. | |
453 | (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml, | |
454 | and i386/x32.xml. | |
455 | * features/i386/x32-avx-avx512.c: Removed. | |
456 | * features/i386/x32-avx-avx512.xml: Removed. | |
457 | * features/i386/x32-avx.c: Removed. | |
458 | * features/i386/x32-avx.xml: Removed. | |
459 | * features/i386/x32.c: Removed. | |
460 | * features/i386/x32.xml: Removed. | |
461 | * regformats/i386/x32-avx-avx512.dat: Removed. | |
462 | * regformats/i386/x32-avx.dat: Removed. | |
463 | * regformats/i386/x32.dat: Removed. | |
464 | ||
ba7b109b MR |
465 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
466 | ||
467 | PR breakpoints/21886 | |
468 | * mem-break.c (default_memory_insert_breakpoint): Use | |
469 | `->placed_address' rather than `->reqstd_address' for the | |
470 | breakpoint location. | |
471 | ||
e347efc3 MR |
472 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
473 | ||
474 | * arch-utils.c (default_print_insn): Remove arch/mach/endian | |
475 | assertions. | |
476 | ||
0dba2a6c MR |
477 | 2017-08-07 Maciej W. Rozycki <macro@imgtec.com> |
478 | ||
479 | * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with | |
480 | a union of `tdep_info', `tdesc_data' and `id'. | |
481 | * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data' | |
482 | rather than `info.tdep_info'. | |
483 | * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise. | |
484 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
485 | * i386-tdep.c (i386_gdbarch_init): Likewise. | |
486 | * mips-linux-tdep.c (mips_linux_init_abi): Likewise. | |
487 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
488 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
489 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
490 | * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than | |
491 | `info.tdep_info'. | |
492 | (ppc_linux_init_abi): Use `info.tdesc_data' rather than | |
493 | `info.tdep_info'. | |
494 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
495 | * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than | |
496 | `info.tdep_info'. | |
497 | * spu-tdep.c (spu_gdbarch_init): Likewise. | |
498 | * gdbarch.h: Regenerate. | |
499 | ||
16eb6b2d LS |
500 | 2017-08-07 Leszek Swirski <leszeks@google.com> |
501 | ||
7b005726 | 502 | PR symtab/20899 |
16eb6b2d LS |
503 | * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt. |
504 | ||
74cbb09e SM |
505 | 2017-08-07 Simon Marchi <simon.marchi@ericsson.com> |
506 | ||
507 | * remote-sim.c (gdbsim_load): Remove char **argv local variable. | |
508 | (gdbsim_open): Rename gdb_argv args object to argv. | |
509 | ||
ee0c3293 TT |
510 | 2017-08-05 Tom Tromey <tom@tromey.com> |
511 | ||
512 | * compile/compile-object-load.c (compile_object_load): Use | |
513 | gdb::unique_xmalloc_ptr. | |
514 | * cli/cli-dump.c (scan_filename): Rename from | |
515 | scan_filename_with_cleanup. Change return type. | |
516 | (scan_expression): Rename from scan_expression_with_cleanup. | |
517 | Change return type. | |
518 | (dump_memory_to_file, dump_value_to_file, restore_command): | |
519 | Use gdb::unique_xmalloc_ptr. Update. | |
520 | * cli/cli-cmds.c (find_and_open_script): Use | |
521 | gdb::unique_xmalloc_ptr. | |
522 | * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr. | |
523 | * symmisc.c (maintenance_print_symbols) | |
524 | (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr. | |
525 | * symfile.c (symfile_bfd_open, generic_load) | |
526 | (add_symbol_file_command, remove_symbol_file_command): Use | |
527 | gdb::unique_xmalloc_ptr. | |
528 | * source.c (openp): Use gdb::unique_xmalloc_ptr. | |
529 | * psymtab.c (maintenance_print_psymbols): Use | |
530 | gdb::unique_xmalloc_ptr. | |
531 | * corelow.c (core_open): Use gdb::unique_xmalloc_ptr. | |
532 | * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr. | |
533 | * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr. | |
534 | (reload_shared_libraries_1): Likewise. | |
535 | ||
3232fabd TT |
536 | 2017-08-05 Tom Tromey <tom@tromey.com> |
537 | ||
538 | * rust-exp.y (rust_op_ptr, set_field): Remove typedefs. | |
539 | (rust_op_vector, rust_set_vector): New typedefs. | |
540 | (current_parser): New global. | |
541 | (work_obstack): Change to pointer type. Update all users. | |
542 | (rust_ast, pstate): Remove globals. | |
543 | (struct rust_parser): New. | |
544 | (%union) <params, field_inits>: Change type. | |
545 | (start, tuple_expr, unit_expr, struct_expr_list, literal) | |
546 | (field_expr, expr_list, maybe_expr_list, type_list): Update. | |
547 | (ast_call_ish, ast_path, ast_function_type, ast_tuple_type) | |
548 | (convert_params_to_types, convert_params_to_expression): Change | |
549 | type of "params". | |
550 | (ast_string): Change type of "fields". | |
551 | (rust_parse): Make a rust_parser. Remove cleanups. | |
552 | (rust_lex_tests): Make and install an auto_obstack. | |
553 | ||
f02fd774 YQ |
554 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
555 | ||
556 | * configure.srv (ipa_x32_linux_regobj): New. | |
557 | * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512 | |
558 | instead of X86_TDESC_AVX512. | |
559 | (initialize_low_tracepoint): Call | |
560 | init_registers_x32_avx_avx512_linux. | |
561 | ||
91975afd YQ |
562 | 2017-08-04 Yao Qi <yao.qi@linaro.org> |
563 | ||
564 | * utils.h (gdb_argv): Add namespace std for nullptr_t. | |
565 | ||
2331fa3a RK |
566 | 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com> |
567 | ||
568 | * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev. | |
569 | ||
744e4fe1 TT |
570 | 2017-08-03 Tom Tromey <tom@tromey.com> |
571 | ||
572 | * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv): | |
573 | Remove. | |
574 | * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove. | |
575 | ||
1c034b67 TT |
576 | 2017-08-03 Tom Tromey <tom@tromey.com> |
577 | ||
578 | * python/py-param.c (compute_enum_values): Use gdb_argv. | |
579 | ||
773a1edc TT |
580 | 2017-08-03 Tom Tromey <tom@tromey.com> |
581 | ||
582 | * utils.h (struct gdb_argv_deleter): New. | |
583 | (gdb_argv): New class. | |
584 | * utils.c (gdb_argv::reset): New method. | |
585 | * tracepoint.c (delete_trace_variable_command): Use gdb_argv. | |
586 | * tracefile.c (tsave_command): Use gdb_argv. | |
587 | * top.c (new_ui_command): Use gdb_argv. | |
588 | * symmisc.c (maintenance_print_symbols) | |
589 | (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv. | |
590 | * symfile.c (symbol_file_command, generic_load) | |
591 | (remove_symbol_file_command): Use gdb_argv. | |
592 | * stack.c (backtrace_command): Use gdb_argv. | |
593 | * source.c (add_path, show_substitute_path_command) | |
594 | (unset_substitute_path_command, set_substitute_path_command): | |
595 | Use gdb_argv. | |
596 | * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv. | |
597 | * ser-mingw.c (pipe_windows_open): Use gdb_argv. | |
598 | * remote.c (extended_remote_run, remote_put_command) | |
599 | (remote_get_command, remote_delete_command): Use gdb_argv. | |
600 | * remote-sim.c (gdbsim_load, gdbsim_create_inferior) | |
601 | (gdbsim_open): Use gdb_argv. | |
602 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv. | |
603 | * psymtab.c (maintenance_print_psymbols): Use gdb_argv. | |
604 | * procfs.c (procfs_info_proc): Use gdb_argv. | |
605 | * interps.c (interpreter_exec_cmd): Use gdb_argv. | |
606 | * infrun.c (handle_command): Use gdb_argv. | |
607 | * inferior.c (add_inferior_command, clone_inferior_command): | |
608 | Use gdb_argv. | |
609 | * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv. | |
610 | * exec.c (exec_file_command): Use gdb_argv. | |
611 | * cli/cli-cmds.c (alias_command): Use gdb_argv. | |
612 | * compile/compile.c (build_argc_argv): Use gdb_argv. | |
613 | ||
0d50bde3 TT |
614 | 2017-08-03 Tom Tromey <tom@tromey.com> |
615 | ||
616 | * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr. | |
617 | ||
7f968c89 TT |
618 | 2017-08-03 Tom Tromey <tom@tromey.com> |
619 | ||
620 | * python/python.c (compute_python_string): Return std::string. | |
621 | (gdbpy_eval_from_control_command): Update. | |
622 | (do_start_initialization): Use std::string. | |
623 | * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not | |
624 | xstrprintf. | |
625 | * python/py-breakpoint.c (local_setattro): Use string_printf, not | |
626 | xstrprintf. | |
627 | ||
3c9ebddd TT |
628 | 2017-08-03 Tom Tromey <tom@tromey.com> |
629 | ||
630 | * top.h (do_restore_instream_cleanup): Remove. | |
631 | * top.c (do_restore_instream_cleanup): Remove. | |
632 | (read_command_file): Use scoped_restore. | |
633 | * cli/cli-script.c (execute_user_command): Use scoped_restore. | |
634 | ||
b51b225e TT |
635 | 2017-08-03 Tom Tromey <tom@tromey.com> |
636 | ||
637 | * cli/cli-script.c (execute_user_command) | |
638 | (execute_control_command): Use scoped_restore. | |
639 | ||
ac991630 TT |
640 | 2017-08-03 Tom Tromey <tom@tromey.com> |
641 | ||
642 | * cli/cli-script.c (do_restore_user_call_depth): Remove. | |
643 | (execute_user_command): Remove user_call_depth; use | |
644 | user_args_stack's size instead. | |
645 | ||
898e0c8e TT |
646 | 2017-08-03 Tom Tromey <tom@tromey.com> |
647 | ||
648 | * top.h (in_user_command): Remove. | |
649 | * top.c (in_user_command): Remove. | |
650 | * cli/cli-script.c (do_restore_user_call_depth) | |
651 | (execute_user_command): Update. | |
652 | ||
26fcd5d7 TT |
653 | 2017-08-03 Tom Tromey <tom@tromey.com> |
654 | ||
655 | * valops.c (search_struct_method): Use gdb::byte_vector. | |
656 | * valarith.c (value_concat): Use std::vector. | |
657 | * target.c (memory_xfer_partial): Use gdb::byte_vector. | |
658 | (simple_search_memory): Likewise. | |
659 | * printcmd.c (find_string_backward): Use gdb::byte_vector. | |
660 | * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector. | |
661 | * gcore.c (gcore_copy_callback): Use gdb::byte_vector. | |
662 | * elfread.c (elf_rel_plt_read): Use std::string. | |
663 | * cp-valprint.c (cp_print_value): Use gdb::byte_vector. | |
664 | * cli/cli-dump.c (restore_section_callback): Use | |
665 | gdb::byte_vector. | |
666 | ||
7c218e6c TT |
667 | 2017-08-03 Tom Tromey <tom@tromey.com> |
668 | ||
669 | * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr. | |
670 | ||
31b68d4a TT |
671 | 2017-08-03 Tom Tromey <tom@tromey.com> |
672 | ||
673 | * tui/tui-regs.c (tui_restore_gdbout): Remove. | |
674 | (tui_register_format): Use scoped_restore. | |
675 | ||
2ec845e7 TT |
676 | 2017-08-03 Tom Tromey <tom@tromey.com> |
677 | ||
678 | * reverse.c (exec_direction_default): Remove. | |
679 | (exec_reverse_once): Use scoped_restore. | |
680 | * remote.c (restore_remote_timeout): Remove. | |
681 | (remote_flash_erase, remote_flash_write, remote_flash_done) | |
682 | (readchar, remote_serial_write): Use scoped_restore. | |
683 | * cli/cli-script.c (struct source_cleanup_lines_args) | |
684 | (source_cleanup_lines): Remove. | |
685 | (script_from_file): Use scoped_restore. | |
686 | * cli/cli-cmds.c (source_verbose_cleanup): Remove. | |
687 | (source_command): Use scoped_restore. | |
688 | ||
b3bc8453 TT |
689 | 2017-08-03 Tom Tromey <tom@tromey.com> |
690 | ||
691 | * utils.h (make_cleanup_free_so): Remove. | |
692 | * utils.c (do_free_so, make_cleanup_free_so): Remove. | |
693 | * solist.h (struct so_deleter): New. | |
694 | (so_list_up): New typedef. | |
695 | * solib-svr4.c (svr4_read_so_list): Use so_list_up. | |
696 | ||
e3ad2841 TT |
697 | 2017-08-03 Tom Tromey <tom@tromey.com> |
698 | ||
699 | * utils.h (make_cleanup_restore_current_language): Remove. | |
700 | * utils.c (do_restore_current_language) | |
701 | (make_cleanup_restore_current_language): Remove. | |
702 | * parse.c (parse_exp_in_context_1) | |
703 | (parse_expression_with_language): Use | |
704 | scoped_restore_current_language. | |
705 | * mi/mi-main.c (mi_cmd_execute): Use | |
706 | scoped_restore_current_language. | |
707 | * language.h (scoped_restore_current_language): New class. | |
708 | ||
b80cf838 TT |
709 | 2017-08-03 Tom Tromey <tom@tromey.com> |
710 | ||
711 | * compile/compile.c (cleanup_unlink_file): Remove. | |
712 | (compile_to_object): Use gdb::unlinker. | |
713 | (eval_compile_command): Likewise. | |
714 | ||
fad0444a TT |
715 | 2017-08-03 Tom Tromey <tom@tromey.com> |
716 | ||
717 | * utils.h (make_cleanup_fclose): Remove. | |
718 | * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove. | |
719 | ||
6e7bc05c TT |
720 | 2017-08-03 Tom Tromey <tom@tromey.com> |
721 | ||
722 | * top.c (open_terminal_stream): Return gdb_file_up. | |
723 | (new_ui_command): Update. | |
724 | ||
4a45905b TT |
725 | 2017-08-03 Tom Tromey <tom@tromey.com> |
726 | ||
727 | * source.c (print_source_lines_base, forward_search_command) | |
728 | (reverse_search_command): Use gdb_file_up. | |
729 | ||
7cd06d6e TT |
730 | 2017-08-03 Tom Tromey <tom@tromey.com> |
731 | ||
732 | * fbsd-nat.c (fbsd_find_memory_regions): Update. | |
733 | ||
ed166945 TT |
734 | 2017-08-03 Tom Tromey <tom@tromey.com> |
735 | ||
736 | * cli/cli-cmds.c (find_and_open_script): Change return type. | |
737 | Remove "streamp" and "full_path" parameters. | |
738 | (source_script_with_search): Update. | |
739 | * auto-load.c (source_script_file): Update. | |
740 | * cli/cli-cmds.h (find_and_open_script): Change type. | |
741 | (open_script): New struct. | |
742 | ||
d419f42d TT |
743 | 2017-08-03 Tom Tromey <tom@tromey.com> |
744 | ||
745 | * xml-support.c (xml_fetch_content_from_file): Update. | |
746 | * ui-file.c (stdio_file::open): Update. | |
747 | * tracefile-tfile.c (tfile_start): Update. | |
748 | * remote.c (remote_file_put, remote_file_get): Update. | |
749 | * nat/linux-procfs.c (linux_proc_get_int) | |
750 | (linux_proc_pid_get_state, linux_proc_tid_get_name): Update. | |
751 | * nat/linux-osdata.c (linux_common_core_of_thread): Update. | |
752 | (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus) | |
753 | (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem) | |
754 | (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update. | |
755 | * nat/linux-btrace.c (linux_determine_kernel_start): Update. | |
756 | * linux-nat.c (linux_proc_pending_signals): Update. | |
757 | * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up. | |
758 | (file_closer): Remove. | |
759 | * compile/compile.c (compile_to_object): Update. | |
760 | * common/filestuff.h (struct gdb_file_deleter): New. | |
761 | (gdb_file_up): New typedef. | |
762 | (gdb_fopen_cloexec): Change return type. | |
763 | * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up. | |
764 | * cli/cli-dump.c (fopen_with_cleanup): Remove. | |
765 | (dump_binary_file, restore_binary_file): Update. | |
766 | * auto-load.c (auto_load_objfile_script_1): Update. | |
767 | ||
4a2b031d TT |
768 | 2017-08-03 Tom Tromey <tom@tromey.com> |
769 | ||
770 | * tracepoint.c (tvariables_info_1): Use ui_out_emit_table. | |
771 | (info_static_tracepoint_markers_command): Likewise. | |
772 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_table. | |
773 | * skip.c (skip_info): Use ui_out_emit_table. | |
774 | * progspace.c (print_program_space): Use ui_out_emit_table. | |
775 | * osdata.c (info_osdata): Use ui_out_emit_table. | |
776 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use | |
777 | ui_out_emit_table. | |
778 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
779 | ui_out_emit_table. | |
780 | * inferior.c (print_inferior): Use ui_out_emit_table. | |
781 | * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table. | |
782 | * breakpoint.c (breakpoint_1): Use ui_out_emit_table. | |
783 | * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table. | |
784 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table. | |
785 | * ui-out.h (class ui_out_emit_table): New. | |
786 | ||
a4f320fd MR |
787 | 2017-08-02 Maciej W. Rozycki <macro@imgtec.com> |
788 | ||
789 | * mips-tdep.c (mips_fpu_type_str): New function. | |
790 | (mips_dump_tdep): Call it. | |
791 | ||
a2f1f308 MR |
792 | 2017-08-01 Maciej W. Rozycki <macro@imgtec.com> |
793 | ||
794 | * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access | |
795 | `->mips_fpu_type'. | |
796 | ||
7e5ed83b XR |
797 | 2017-07-31 Xavier Roirand <roirand@adacore.com> |
798 | ||
799 | * solib-darwin.c (DYLD_VERSION_MAX): Increase value. | |
800 | ||
4c9dc811 XR |
801 | 2017-07-27 Xavier Roirand <roirand@adacore.com> |
802 | ||
803 | * MAINTAINERS (Write After Approval): Add Xavier Roirand. | |
804 | ||
27d41eac YQ |
805 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
806 | ||
807 | * cli/cli-cmds.c (maintenancechecklist): New variable. | |
808 | * gdbcmd.h (maintenancechecklist): Declare it. | |
809 | * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]: | |
810 | Call i386_linux_read_description with different masks. | |
811 | * maint.c (maintenance_check_command): New function. | |
812 | (_initialize_maint_cmds): Call add_prefix_cmd. | |
813 | * target-descriptions.c (tdesc_reg): override operator != and ==. | |
814 | (tdesc_type): Likewise. | |
815 | (tdesc_feature): Likewise. | |
816 | (target_desc): Likewise. | |
817 | [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function. | |
818 | (maintenance_check_xml_descriptions): New function. | |
819 | (_initialize_target_descriptions) Add command "xml-descriptions". | |
820 | * target-descriptions.h (selftests::record_xml_tdesc): Declare. | |
821 | ||
ea03d0d3 YQ |
822 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
823 | ||
824 | * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c. | |
825 | Include features/i386/32bit-*.c. | |
826 | (i386_linux_read_description): Generate target description if it | |
827 | doesn't exist. | |
828 | (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386 | |
829 | functions. | |
830 | * features/i386/32bit-linux.c: Re-generated. | |
831 | * features/i386/32bit-sse.c: Likewise. | |
832 | * target-descriptions.c (print_c_feature::visit): Print code to | |
833 | set register number if needed. | |
834 | (print_c_feature) <m_next_regnum>: New field. | |
835 | ||
25aa13e5 YQ |
836 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
837 | ||
838 | * features/Makefile (CFILES): Rename with TDESC_CFILES. | |
839 | (FEATURE_XMLFILES): New. | |
840 | (FEATURE_CFILES): New. | |
841 | New rules. | |
842 | (clean-cfiles): Remove generated c files. | |
843 | * features/i386/32bit-avx.c: Generated. | |
844 | * features/i386/32bit-avx512.c: Generated. | |
845 | * features/i386/32bit-core.c: Generated. | |
846 | * features/i386/32bit-linux.c: Generated. | |
847 | * features/i386/32bit-mpx.c: Generated. | |
848 | * features/i386/32bit-pkeys.c: Generated. | |
849 | * features/i386/32bit-sse.c: Generated. | |
850 | * target-descriptions.c: Include algorithm. | |
851 | (tdesc_element_visitor): Add method visit_end. | |
852 | (print_c_tdesc): Implement visit_end. | |
853 | (print_c_tdesc:: m_filename_after_features): Move it to | |
854 | protected. | |
855 | (print_c_feature): New class. | |
856 | (maint_print_c_tdesc_cmd): Use print_c_feature if XML file | |
857 | name starts with "i386/32bit-". | |
858 | ||
6eb1e6a8 YQ |
859 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
860 | ||
861 | * target-descriptions.c (tdesc_element_visitor): New class. | |
862 | (tdesc_element): New class. | |
863 | (tdesc_reg): Inherit from tdesc_element. | |
864 | (tdesc_reg::accept): New function. | |
865 | (tdesc_type): Inherit from tdesc_element. | |
866 | (tdesc_type::accept): New function. | |
867 | (tdesc_feature): Inherit from tdesc_element. | |
868 | (tdesc_feature::accept): New function. | |
869 | (target_desc): Inherit from tdesc_element. | |
870 | (target_desc::target_desc): New. | |
871 | (target_desc::~target_desc): New. | |
872 | (target_desc::accept): New. | |
873 | (allocate_target_description): Use new. | |
874 | (free_target_description): Use delete. | |
875 | (print_c_tdesc): New class. | |
876 | (maint_print_c_tdesc_cmd): Adjust. | |
877 | ||
878 | * features/aarch64.c: Re-generated. | |
879 | * features/arc-arcompact.c: Re-generated. | |
880 | * features/arc-v2.c: Re-generated. | |
881 | * features/arm/arm-with-iwmmxt.c: Re-generated. | |
882 | * features/arm/arm-with-m.c: Re-generated. | |
883 | * features/arm/arm-with-m-fpa-layout.c: Re-generated. | |
884 | * features/arm/arm-with-m-vfp-d16.c: Re-generated. | |
885 | * features/arm/arm-with-neon.c: Re-generated. | |
886 | * features/arm/arm-with-vfpv2.c: Re-generated. | |
887 | * features/arm/arm-with-vfpv3.c: Re-generated. | |
888 | * features/i386/amd64-avx-avx512.c: Re-generated. | |
889 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
890 | * features/i386/amd64-avx.c: Re-generated. | |
891 | * features/i386/amd64-avx-linux.c: Re-generated. | |
892 | * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated. | |
893 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
894 | * features/i386/amd64-avx-mpx.c: Re-generated. | |
895 | * features/i386/amd64-avx-mpx-linux.c: Re-generated. | |
896 | * features/i386/amd64.c: Re-generated. | |
897 | * features/i386/amd64-linux.c: Re-generated. | |
898 | * features/i386/amd64-mpx.c: Re-generated. | |
899 | * features/i386/amd64-mpx-linux.c: Re-generated. | |
900 | * features/i386/i386-avx-avx512.c: Re-generated. | |
901 | * features/i386/i386-avx-avx512-linux.c: Re-generated. | |
902 | * features/i386/i386-avx.c: Re-generated. | |
903 | * features/i386/i386-avx-linux.c: Re-generated. | |
904 | * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated. | |
905 | * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated. | |
906 | * features/i386/i386-avx-mpx.c: Re-generated. | |
907 | * features/i386/i386-avx-mpx-linux.c: Re-generated. | |
908 | * features/i386/i386.c: Re-generated. | |
909 | * features/i386/i386-linux.c: Re-generated. | |
910 | * features/i386/i386-mmx.c: Re-generated. | |
911 | * features/i386/i386-mmx-linux.c: Re-generated. | |
912 | * features/i386/i386-mpx.c: Re-generated. | |
913 | * features/i386/i386-mpx-linux.c: Re-generated. | |
914 | * features/i386/x32-avx-avx512.c: Re-generated. | |
915 | * features/i386/x32-avx-avx512-linux.c: Re-generated. | |
916 | * features/i386/x32-avx.c: Re-generated. | |
917 | * features/i386/x32-avx-linux.c: Re-generated. | |
918 | * features/i386/x32.c: Re-generated. | |
919 | * features/i386/x32-linux.c: Re-generated. | |
920 | * features/microblaze.c: Re-generated. | |
921 | * features/microblaze-with-stack-protect.c: Re-generated. | |
922 | * features/mips64-dsp-linux.c: Re-generated. | |
923 | * features/mips64-linux.c: Re-generated. | |
924 | * features/mips-dsp-linux.c: Re-generated. | |
925 | * features/mips-linux.c: Re-generated. | |
926 | * features/nds32.c: Re-generated. | |
927 | * features/nios2.c: Re-generated. | |
928 | * features/nios2-linux.c: Re-generated. | |
929 | * features/rs6000/powerpc-32.c: Re-generated. | |
930 | * features/rs6000/powerpc-32l.c: Re-generated. | |
931 | * features/rs6000/powerpc-403.c: Re-generated. | |
932 | * features/rs6000/powerpc-403gc.c : Re-generated. | |
933 | * features/rs6000/powerpc-405.c: Re-generated. | |
934 | * features/rs6000/powerpc-505.c: Re-generated. | |
935 | * features/rs6000/powerpc-601.c: Re-generated. | |
936 | * features/rs6000/powerpc-602.c: Re-generated. | |
937 | * features/rs6000/powerpc-603.c: Re-generated. | |
938 | * features/rs6000/powerpc-604.c: Re-generated. | |
939 | * features/rs6000/powerpc-64.c: Re-generated. | |
940 | * features/rs6000/powerpc-64l.c: Re-generated. | |
941 | * features/rs6000/powerpc-7400.c: Re-generated. | |
942 | * features/rs6000/powerpc-750.c: Re-generated. | |
943 | * features/rs6000/powerpc-860.c: Re-generated. | |
944 | * features/rs6000/powerpc-altivec32.c: Re-generated. | |
945 | * features/rs6000/powerpc-altivec32l.c: Re-generated. | |
946 | * features/rs6000/powerpc-altivec64.c: Re-generated. | |
947 | * features/rs6000/powerpc-altivec64l.c: Re-generated. | |
948 | * features/rs6000/powerpc-cell32l.c: Re-generated. | |
949 | * features/rs6000/powerpc-cell64l.c: Re-generated. | |
950 | * features/rs6000/powerpc-e500.c: Re-generated. | |
951 | * features/rs6000/powerpc-e500l.c: Re-generated. | |
952 | * features/rs6000/powerpc-isa205-32l.c: Re-generated. | |
953 | * features/rs6000/powerpc-isa205-64l.c: Re-generated. | |
954 | * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated. | |
955 | * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated. | |
956 | * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated. | |
957 | * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated. | |
958 | * features/rs6000/powerpc-vsx32.c: Re-generated. | |
959 | * features/rs6000/powerpc-vsx32l.c: Re-generated. | |
960 | * features/rs6000/powerpc-vsx64.c: Re-generated. | |
961 | * features/rs6000/powerpc-vsx64l.c: Re-generated. | |
962 | * features/rs6000/rs6000.c: Re-generated. | |
963 | * features/s390-linux32.c: Re-generated. | |
964 | * features/s390-linux32v1.c: Re-generated. | |
965 | * features/s390-linux32v2.c: Re-generated. | |
966 | * features/s390-linux64.c: Re-generated. | |
967 | * features/s390-linux64v1.c: Re-generated. | |
968 | * features/s390-linux64v2.c: Re-generated. | |
969 | * features/s390-te-linux64.c: Re-generated. | |
970 | * features/s390-tevx-linux64.c: Re-generated. | |
971 | * features/s390-vx-linux64.c: Re-generated. | |
972 | * features/s390x-linux64.c: Re-generated. | |
973 | * features/s390x-linux64v1.c: Re-generated. | |
974 | * features/s390x-linux64v2.c: Re-generated. | |
975 | * features/s390x-te-linux64.c: Re-generated. | |
976 | * features/s390x-tevx-linux64.c: Re-generated. | |
977 | * features/s390x-vx-linux64.c: Re-generated. | |
978 | * features/sparc/sparc32-solaris.c: Re-generated. | |
979 | * features/sparc/sparc64-solaris.c: Re-generated. | |
980 | * features/tic6x-c62x.c: Re-generated. | |
981 | * features/tic6x-c62x-linux.c: Re-generated. | |
982 | * features/tic6x-c64x.c: Re-generated. | |
983 | * features/tic6x-c64x-linux.c: Re-generated. | |
984 | * features/tic6x-c64xp.c: Re-generated. | |
985 | * features/tic6x-c64xp-linux.c: Re-generated. | |
986 | ||
35b4818d YQ |
987 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
988 | ||
989 | * i386-linux-tdep.c (i386_linux_read_description): New function. | |
990 | (i386_linux_core_read_description): Call | |
991 | i386_linux_read_description. | |
992 | * i386-linux-tdep.h (i386_linux_read_description): Declare. | |
993 | (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations. | |
994 | (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise | |
995 | (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise. | |
996 | (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise. | |
997 | * x86-linux-nat.c (x86_linux_read_description): Call | |
998 | i386_linux_read_description. | |
999 | ||
8e2141c6 YQ |
1000 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
1001 | ||
1002 | * NEWS: Mention it. | |
1003 | * features/Makefile (%.c: %.xml): Pass the xml file name to | |
1004 | command "maint print c-tdesc". | |
1005 | * target-descriptions.c (maint_print_c_tdesc_cmd): Get file | |
1006 | name from 'arg'. | |
1007 | ||
b468ff4c YQ |
1008 | 2017-07-26 Yao Qi <yao.qi@linaro.org> |
1009 | ||
1010 | * target-descriptions.c (target_desc): Add ctor and dtor. Do | |
1011 | in-class initialization. | |
1012 | (tdesc_create_feature): Call new instead of XCNEW. | |
1013 | (free_target_description): Ue delete. | |
1014 | ||
b9c0e1b4 JB |
1015 | 2017-07-25 John Baldwin <jhb@FreeBSD.org> |
1016 | ||
1017 | * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo. | |
1018 | ||
a04b5337 YQ |
1019 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
1020 | ||
1021 | * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc | |
1022 | constant. | |
1023 | (amd64_x32_init_abi): Likewise. | |
1024 | * amd64-tdep.h (amd64_init_abi): Update declaration. | |
1025 | (amd64_x32_init_abi): Likewise. | |
1026 | ||
02ad7fc2 YQ |
1027 | 2017-07-25 Yao Qi <yao.qi@linaro.org> |
1028 | ||
1029 | PR tdep/21717 | |
1030 | * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update | |
1031 | condition for FPSCR. | |
1032 | (arm_linux_store_inferior_registers): Likewise. | |
1033 | ||
b6f48cb0 TT |
1034 | 2017-07-22 Tom Tromey <tom@tromey.com> |
1035 | ||
1036 | * break-catch-syscall.c (struct catch_syscall_inferior_data) | |
1037 | <syscalls_counts>: Now a std::vector. | |
1038 | (get_catch_syscall_inferior_data): Use "new". | |
1039 | (catch_syscall_inferior_data_cleanup): Use "delete". | |
1040 | (insert_catch_syscall, remove_catch_syscall) | |
1041 | (clear_syscall_counts): Update. | |
1042 | ||
e12c9b7a TT |
1043 | 2017-07-22 Tom Tromey <tom@tromey.com> |
1044 | ||
1045 | * break-catch-syscall.c (syscall_catchpoint) | |
1046 | <syscalls_to_be_caught>: Now a std::vector<int> | |
1047 | (~syscall_catchpoint): Remove. | |
1048 | (insert_catch_syscall, remove_catch_syscall) | |
1049 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
1050 | (print_mention_catch_syscall, print_recreate_catch_syscall): | |
1051 | Update. | |
1052 | (create_syscall_event_catchpoint): Change type of "filter" | |
1053 | parameter. | |
1054 | (catch_syscall_split_args): Return a std::vector. | |
1055 | (catch_syscall_command_1, catching_syscall_number_1): Update. | |
1056 | ||
4fa8aeac TT |
1057 | 2017-07-22 Tom Tromey <tom@tromey.com> |
1058 | ||
1059 | * break-catch-throw.c (struct exception_catchpoint) | |
1060 | <exception_rx>: Now a std::string. | |
1061 | (~exception_catchpoint): Remove. | |
1062 | (print_one_detail_exception_catchpoint): Update. | |
1063 | (handle_gnu_v3_exceptions): Change type of except_rx. | |
1064 | (extract_exception_regexp): Return a std::string. | |
1065 | (catch_exception_command_1): Update. | |
1066 | ||
f746a154 TT |
1067 | 2017-07-22 Tom Tromey <tom@tromey.com> |
1068 | ||
1069 | * break-catch-sig.c (gdb_signal_type): Remove typedef. | |
1070 | (struct signal_catchpoint) <signals_to_be_caught>: Now a | |
1071 | std::vector. | |
1072 | <catch_all>: Now a bool. | |
1073 | (~signal_catchpoint): Remove. | |
1074 | (signal_catchpoint_insert_location) | |
1075 | (signal_catchpoint_remove_location) | |
1076 | (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one) | |
1077 | (signal_catchpoint_print_mention) | |
1078 | (signal_catchpoint_print_recreate) | |
1079 | (signal_catchpoint_explains_signal): Update. | |
1080 | (create_signal_catchpoint): Change type of "filter" and | |
1081 | "catch_all". | |
1082 | (catch_signal_split_args): Return a std::vector. Change type of | |
1083 | "catch_all". | |
1084 | (catch_signal_command): Update. | |
1085 | ||
47e77640 PA |
1086 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1087 | ||
1088 | * ada-lang.c (ada_language_defn): Make extern. | |
1089 | (_initialize_ada_language): Remove add_language call. | |
1090 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1091 | (asm_language_defn, minimal_language_defn): Make extern. | |
1092 | (_initialize_c_language): Delete. | |
1093 | * completer.c (compare_cstrings): Delete, moved to utils.h. | |
1094 | * d-lang.c (d_language_defn): Make extern. | |
1095 | (_initialize_d_language): Remove add_language calls. | |
1096 | * defs.h (enum language): Add comment. | |
1097 | * f-lang.c (f_language_defn): Make extern. | |
1098 | (_initialize_f_language): Remove add_language call. | |
1099 | * go-lang.c (go_language_defn): Make extern. | |
1100 | (_initialize_go_language): Remove add_language call. | |
1101 | * language.c: Include <algorithm>. | |
1102 | (languages): Redefine as const array. | |
1103 | (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete. | |
1104 | (set_language_command): Handle "local". Use for-range loop. | |
1105 | (set_language): Remove loop. | |
1106 | (language_enum): Rewrite. | |
1107 | (language_def, language_str): Remove loops. | |
1108 | (add_language): Delete. | |
1109 | (add_set_language_command): New, based on add_languages. | |
1110 | (skip_language_trampoline): Adjust. | |
1111 | (local_language_defn): Delete. | |
1112 | (language_gdbarch_post_init): Adjust. | |
1113 | (_initialize_language): Remove add_language calls. Call | |
1114 | add_set_language_command. | |
1115 | * language.h (add_language): Delete. | |
1116 | (auto_language_defn) | |
1117 | (unknown_language_defn, minimal_language_defn, ada_language_defn) | |
1118 | (asm_language_defn, c_language_defn, cplus_language_defn) | |
1119 | (d_language_defn, f_language_defn, go_language_defn) | |
1120 | (m2_language_defn, objc_language_defn, opencl_language_defn) | |
1121 | (pascal_language_defn, rust_language_defn): Declare. | |
1122 | * m2-lang.c (m2_language_defn): Make extern. | |
1123 | (_initialize_m2_language): Remove add_language call. | |
1124 | * objc-lang.c (objc_language_defn): Make extern. | |
1125 | (_initialize_objc_language): Remove add_language call. | |
1126 | * opencl-lang.c (opencl_language_defn): Make extern. | |
1127 | (_initialize_opencl_language): Remove add_language call. | |
1128 | * p-lang.c (pascal_language_defn): Make extern. | |
1129 | (_initialize_pascal_language): Delete. | |
1130 | * rust-lang.c (rust_language_defn): Make extern. | |
1131 | (_initialize_rust_language): Delete. | |
1132 | * utils.h (compare_cstrings): New static inline function. | |
1133 | ||
edb0c9cb PA |
1134 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1135 | ||
1136 | * ada-lang.c (ada_to_fixed_type_1): Adjust. | |
1137 | (get_var_value): Constify parameters. | |
1138 | (get_int_var_value): Change prototype. | |
1139 | (to_fixed_range_type): Adjust. | |
1140 | * ada-lang.h (get_int_var_value): Change prototype. | |
1141 | ||
a778f165 PA |
1142 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1143 | ||
1144 | * dwarf2read.c (dw2_lookup_symbol): Use | |
1145 | SYMBOL_MATCHES_SEARCH_NAME. | |
1146 | * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME. | |
1147 | ||
42edd901 PA |
1148 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1149 | ||
1150 | * block.c (block_iter_name_step, block_iter_name_first) | |
1151 | (block_iter_name_next): Delete. | |
1152 | (block_lookup_symbol_primary): Adjust to use | |
1153 | dict_iter_match_first/dict_iter_match_next. | |
1154 | * block.h (block_iter_name_first, block_iter_name_next): Delete | |
1155 | declarations. | |
1156 | (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use | |
1157 | dict_iter_match_first/dict_iter_match_next. | |
1158 | ||
cf325299 PA |
1159 | 2017-07-20 Pedro Alves <palves@redhat.com> |
1160 | ||
1161 | * cp-support.c (cp_find_first_component_aux): Add missing case for | |
1162 | end of string. | |
1163 | ||
c5ed0576 DB |
1164 | 2017-07-18 David Blaikie <dblaikie@gmail.com> |
1165 | ||
1166 | * dwarf2read.c (create_cus_hash_table): Re-add lost initialization | |
1167 | of dwo_cu's dwo_file. | |
1168 | ||
27841e76 YQ |
1169 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
1170 | ||
1171 | * remote.c (store_registers_using_G): Remove one line comment. | |
1172 | ||
cfb7e58b YQ |
1173 | 2017-07-18 Yao Qi <yao.qi@linaro.org> |
1174 | ||
1175 | * regcache.c (regcache_cpy): Simplify it. | |
1176 | (regcache::cpy_no_passthrough): Remove it. | |
1177 | * regcache.h (cpy_no_passthrough): Remove it. | |
1178 | (regcache_dup, regcache_cpy): Update comments. | |
1179 | ||
386535dd PA |
1180 | 2017-07-18 Pedro Alves <palves@redhat.com> |
1181 | ||
1182 | * remote-sim.c (sim_command_completer): Adjust to work with a | |
1183 | completion_tracker instead of a VEC. | |
1184 | ||
c45ec17c PA |
1185 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1186 | ||
1187 | * completer.c (complete_source_filenames): New function. | |
1188 | (complete_address_and_linespec_locations): New function. | |
1189 | (location_completer): Use complete_address_and_linespec_locations. | |
1190 | (completion_tracker::build_completion_result): Honor the tracker's | |
1191 | request to suppress append. | |
1192 | * completer.h (completion_tracker::suppress_append_ws) | |
1193 | (completion_tracker::set_suppress_append_ws): New methods. | |
1194 | (completion_tracker::m_suppress_append_ws): New field. | |
1195 | (complete_source_filenames): New declaration. | |
1196 | * linespec.c (linespec_complete_what): New. | |
1197 | (struct ls_parser) <complete_what, completion_word, | |
1198 | completion_quote_char, completion_quote_end, completion_tracker>: | |
1199 | New fields. | |
1200 | (string_find_incomplete_keyword_at_end): New. | |
1201 | (linespec_lexer_lex_string): Record quote char. If in completion | |
1202 | mode, don't throw. | |
1203 | (linespec_lexer_consume_token): Advance the completion word point. | |
1204 | (linespec_lexer_peek_token): Save/restore completion info. | |
1205 | (save_stream_and_consume_token): New. | |
1206 | (set_completion_after_number): New. | |
1207 | (linespec_parse_basic): Set what to complete next depending on | |
1208 | token. Handle function and label completions specially. | |
1209 | (parse_linespec): Disable objc shortcut in completion mode. Set | |
1210 | what to complete next depending on token type. Skip keyword if in | |
1211 | completion mode. | |
1212 | (complete_linespec_component, linespec_complete): New. | |
1213 | * linespec.h (linespec_complete): Declare. | |
1214 | ||
be966d42 PA |
1215 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1216 | ||
1217 | * linespec.c (linespec_lexer_lex_string, find_toplevel_char): | |
1218 | Handle 'operator<' / 'operator<<'. | |
1219 | ||
a2459270 PA |
1220 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1221 | ||
1222 | * completer.c (collect_explicit_location_matches): Handle | |
1223 | MATCH_LABEL. | |
1224 | (convert_explicit_location_to_linespec): New, factored out from | |
1225 | ... | |
1226 | (convert_explicit_location_to_sals): ... this. | |
1227 | (complete_label): New. | |
1228 | (linespec_complete_label, find_label_symbols_in_block): New. | |
1229 | (find_label_symbols): Add completion_mode parameter and adjust to | |
1230 | call find_label_symbols_in_block. | |
1231 | * linespec.h (linespec_complete_label): Declare. | |
1232 | ||
c6756f62 PA |
1233 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1234 | ||
1235 | * ada-lang.c (ada_collect_symbol_completion_matches): Add | |
1236 | complete_symbol_mode parameter. | |
1237 | * cli/cli-cmds.c (complete_command): Get the completion result out | |
1238 | of the handle_brkchars tracker if used a custom word point. | |
1239 | * completer.c: Include "linespec.h". | |
1240 | (enum explicit_location_match_type) <MATCH_LINE>: New enumerator. | |
1241 | (advance_to_expression_complete_word_point): New. | |
1242 | (completion_tracker::completes_to_completion_word): New. | |
1243 | (complete_files_symbols): Pass down | |
1244 | complete_symbol_mode::EXPRESSION. | |
1245 | (explicit_options, probe_options): New. | |
1246 | (collect_explicit_location_matches): Complete on the | |
1247 | explictit_loc->foo instead of word. Use | |
1248 | linespec_complete_function. Handle MATCH_LINE. Handle offering | |
1249 | keyword and options completions. | |
1250 | (backup_text_ptr): Delete. | |
1251 | (skip_keyword): New. | |
1252 | (complete_explicit_location): Remove 'word' parameter. Add | |
1253 | language, quoted_arg_start and quoted_arg_end parameters. | |
1254 | Rewrite, parsing left to right. | |
1255 | (location_completer): Rewrite. | |
1256 | (location_completer_handle_brkchars): New function. | |
1257 | (symbol_completer): Pass down complete_symbol_mode::EXPRESSION. | |
1258 | (enum complete_line_internal_reason): Adjust comments. | |
1259 | (completion_tracker::discard_completions): New. | |
1260 | (completer_handle_brkchars_func_for_completer): Handle | |
1261 | location_completer. | |
1262 | (gdb_custom_word_point_brkchars) | |
1263 | (gdb_org_rl_basic_quote_characters): New. | |
1264 | (gdb_completion_word_break_characters_throw) | |
1265 | (completion_find_completion_word): Handle trackers that use a | |
1266 | custom word point. | |
1267 | (completion_tracker::advance_custom_word_point_by): New. | |
1268 | (completion_tracker::build_completion_result): Don't rely on | |
1269 | readline appending the quote char. | |
1270 | (gdb_rl_attempted_completion_function_throw): Handle trackers that | |
1271 | use a custom word point. | |
1272 | (gdb_rl_attempted_completion_function): Restore | |
1273 | rl_basic_quote_characters. | |
1274 | * completer.h (class completion_tracker): Extend intro comment. | |
1275 | (completion_tracker::set_quote_char) | |
1276 | (completion_tracker::quote_char) | |
1277 | (completion_tracker::set_use_custom_word_point) | |
1278 | (completion_tracker::use_custom_word_point) | |
1279 | (completion_tracker::custom_word_point) | |
1280 | (completion_tracker::set_custom_word_point) | |
1281 | (completion_tracker::advance_custom_word_point_by) | |
1282 | (completion_tracker::completes_to_completion_word) | |
1283 | (completion_tracker::discard_completions): New methods. | |
1284 | (completion_tracker::m_quote_char) | |
1285 | (completion_tracker::m_use_custom_word_point) | |
1286 | (completion_tracker::m_custom_word_point): New fields. | |
1287 | (advance_to_expression_complete_word_point): Declare. | |
1288 | * f-lang.c (f_collect_symbol_completion_matches): Add | |
1289 | complete_symbol_mode parameter. | |
1290 | * language.h (struct language_defn) | |
1291 | <la_collect_symbol_completion_matches>: Add complete_symbol_mode | |
1292 | parameter. | |
1293 | * linespec.c (linespec_keywords): Add NULL terminator. Make extern. | |
1294 | (linespec_complete_function): New function. | |
1295 | (linespec_lexer_lex_keyword): Adjust. | |
1296 | * linespec.h (linespec_keywords, linespec_complete_function): New | |
1297 | declarations. | |
1298 | * location.c (find_end_quote): New function. | |
1299 | (explicit_location_lex_one): Add explicit_completion_info | |
1300 | parameter. Save quoting info. Don't throw if being called for | |
1301 | completion. Don't handle Ada operators here. | |
1302 | (is_cp_operator, skip_op_false_positives, first_of) | |
1303 | (explicit_location_lex_one_function): New function. | |
1304 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
1305 | an explicit_completion_info pointer parameter. Handle it. Don't | |
1306 | use explicit_location_lex_one to lex function names. Use | |
1307 | explicit_location_lex_one_function instead. | |
1308 | * location.h (struct explicit_completion_info): New. | |
1309 | (string_to_explicit_location): Replace 'dont_throw' parameter with | |
1310 | an explicit_completion_info pointer parameter. | |
1311 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
1312 | Add complete_symbol_mode parameter. Handle LINESPEC mode. | |
1313 | (default_collect_symbol_completion_matches) | |
1314 | (collect_symbol_completion_matches): Add complete_symbol_mode | |
1315 | parameter. | |
1316 | (collect_symbol_completion_matches_type): Pass down | |
1317 | complete_symbol_mode::EXPRESSION. | |
1318 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
1319 | parameter. Handle LINESPEC mode. | |
1320 | * symtab.h (complete_symbol_mode): New. | |
1321 | (default_collect_symbol_completion_matches_break_on) | |
1322 | (default_collect_symbol_completion_matches) | |
1323 | (collect_symbol_completion_matches) | |
1324 | (collect_file_symbol_completion_matches): Add complete_symbol_mode | |
1325 | parameter. | |
1326 | ||
1d550c82 PA |
1327 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1328 | ||
1329 | * utils.c (enum class strncmp_iw_mode): New. | |
1330 | (strcmp_iw): Rename to ... | |
1331 | (strncmp_iw_with_mode): ... this. Add string2_len and mode | |
1332 | parameters. Handle them. | |
1333 | (strncmp_iw): New. | |
1334 | (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode. | |
1335 | * utils.h (strncmp_iw): Declare. | |
1336 | (strcmp_iw): Move describing comments here. | |
1337 | ||
8090b426 PA |
1338 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1339 | ||
1340 | * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and | |
1341 | CP_OPERATOR_STR. | |
1342 | * c-typeprint.c (is_type_conversion_operator): Use | |
1343 | CP_OPERATOR_STR. | |
1344 | * cp-support.c (LENGTH_OF_OPERATOR): Delete. | |
1345 | (cp_find_first_component_aux): Use CP_OPERATOR_STR and | |
1346 | CP_OPERATOR_LEN. | |
1347 | * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New. | |
1348 | * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR. | |
1349 | * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR. | |
1350 | * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and | |
1351 | CP_OPERATOR_STR. | |
1352 | * location.c: Include "cp-support.h". | |
1353 | (explicit_location_lex_one): Use CP_OPERATOR_LEN and | |
1354 | CP_OPERATOR_STR. | |
1355 | * symtab.c (operator_chars): Use CP_OPERATOR_STR and | |
1356 | CP_OPERATOR_LEN. | |
1357 | ||
6a2c1b87 PA |
1358 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1359 | ||
1360 | * cli/cli-cmds.c (complete_command): Use a completion tracker | |
1361 | along with completion_find_completion_word for handle_brkchars | |
1362 | phase. | |
1363 | * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE) | |
1364 | (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New. | |
1365 | (struct gdb_rl_completion_word_info): New. | |
1366 | (gdb_rl_find_completion_word): New. | |
1367 | (completion_find_completion_word): New. | |
1368 | * completer.h (completion_find_completion_word): Declare. | |
1369 | ||
eb3ff9a5 PA |
1370 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1371 | ||
1372 | * ada-lang.c (symbol_completion_match): Adjust comments. | |
1373 | (symbol_completion_add): Replace vector parameter with | |
1374 | completion_tracker parameter. Use it. | |
1375 | (ada_make_symbol_completion_list): Rename to... | |
1376 | (ada_collect_symbol_completion_matches): ... this. Add | |
1377 | completion_tracker parameter and use it. | |
1378 | (ada_language_defn): Adjust. | |
1379 | * break-catch-syscall.c (catch_syscall_completer): Adjust | |
1380 | prototype and work with completion_tracker instead of VEC. | |
1381 | * breakpoint.c (condition_completer): Adjust prototype and work | |
1382 | with completion_tracker instead of VEC. | |
1383 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1384 | (asm_language_defn, minimal_language_defn): Adjust to renames. | |
1385 | * cli/cli-cmds.c (complete_command): Rework using | |
1386 | completion_tracker. Catch exceptions when completing. | |
1387 | * cli/cli-decode.c (integer_unlimited_completer) | |
1388 | (complete_on_cmdlist, complete_on_enum): Adjust prototype and work | |
1389 | with completion_tracker instead of VEC. | |
1390 | * command.h (struct completion_tracker): Forward declare. | |
1391 | (completer_ftype, completer_handle_brkchars_ftype): Change | |
1392 | types. | |
1393 | (complete_on_cmdlist, complete_on_enum): Adjust. | |
1394 | * completer.c: Include <algorithm>. | |
1395 | (struct gdb_completer_state): New. | |
1396 | (current_completion): New global. | |
1397 | (readline_line_completion_function): Delete. | |
1398 | (noop_completer, filename_completer) | |
1399 | (filename_completer_handle_brkchars, complete_files_symbols) | |
1400 | (linespec_location_completer): Adjust to work with a | |
1401 | completion_tracker instead of a VEC. | |
1402 | (string_or_empty): New. | |
1403 | (collect_explicit_location_matches): Adjust to work with a | |
1404 | completion_tracker instead of a VEC. | |
1405 | (explicit_location_completer): Rename to ... | |
1406 | (complete_explicit_location): ... this and adjust to work with a | |
1407 | completion_tracker instead of a VEC. | |
1408 | (location_completer): Adjust to work with a completion_tracker | |
1409 | instead of a VEC. | |
1410 | (add_struct_fields): Adjust to work with a completion_list instead | |
1411 | of VEC. | |
1412 | (expression_completer): Rename to ... | |
1413 | (complete_expression): ... this and adjust to work with a | |
1414 | completion_tracker instead of a VEC. Use complete_files_symbols. | |
1415 | (expression_completer): Reimplement on top of complete_expression. | |
1416 | (symbol_completer): Adjust to work with a completion_tracker | |
1417 | instead of a VEC. | |
1418 | (enum complete_line_internal_reason): Add describing comments. | |
1419 | (complete_line_internal_normal_command): Adjust to work with a | |
1420 | completion_tracker instead of a VEC. | |
1421 | (complete_line_internal): Rename to ... | |
1422 | (complete_line_internal_1): ... this and adjust to work with a | |
1423 | completion_tracker instead of a VEC. Assert TEXT is NULL in the | |
1424 | handle_brkchars phase. | |
1425 | (new_completion_tracker): Delete. | |
1426 | (complete_line_internal): Reimplement as TRY/CATCH wrapper around | |
1427 | complete_line_internal_1. | |
1428 | (free_completion_tracker): Delete. | |
1429 | (INITIAL_COMPLETION_HTAB_SIZE): New. | |
1430 | (completion_tracker::completion_tracker) | |
1431 | (completion_tracker::~completion_tracker): New. | |
1432 | (maybe_add_completion): Delete. | |
1433 | (completion_tracker::maybe_add_completion) | |
1434 | (completion_tracker::add_completion) | |
1435 | (completion_tracker::add_completions): New. | |
1436 | (throw_max_completions_reached_error): Delete. | |
1437 | (complete_line): Adjust to work with a completion_tracker instead | |
1438 | of a VEC. Don't create a completion_tracker_t or check for max | |
1439 | completions here. | |
1440 | (command_completer, command_completer_handle_brkchars) | |
1441 | (signal_completer, reg_or_group_completer_1) | |
1442 | (reg_or_group_completer, default_completer_handle_brkchars): | |
1443 | Adjust to work with a completion_tracker. | |
1444 | (gdb_completion_word_break_characters_throw): New. | |
1445 | (gdb_completion_word_break_characters): Reimplement. | |
1446 | (line_completion_function): Delete. | |
1447 | (completion_tracker::recompute_lowest_common_denominator) | |
1448 | (expand_preserving_ws) | |
1449 | (completion_tracker::build_completion_result) | |
1450 | (completion_result::completion_result) | |
1451 | (completion_result::completion_result) | |
1452 | (completion_result::~completion_result) | |
1453 | (completion_result::completion_result) | |
1454 | (completion_result::release_match_list, compare_cstrings) | |
1455 | (completion_result::sort_match_list) | |
1456 | (completion_result::reset_match_list) | |
1457 | (gdb_rl_attempted_completion_function_throw) | |
1458 | (gdb_rl_attempted_completion_function): New. | |
1459 | * completer.h (completion_list, struct completion_result) | |
1460 | (class completion_tracker): New. | |
1461 | (complete_line): Add completion_tracker parameter. | |
1462 | (readline_line_completion_function): Delete. | |
1463 | (gdb_rl_attempted_completion_function): New. | |
1464 | (noop_completer, filename_completer, expression_completer) | |
1465 | (location_completer, symbol_completer, command_completer) | |
1466 | (signal_completer, reg_or_group_completer): Update prototypes. | |
1467 | (completion_tracker_t, new_completion_tracker) | |
1468 | (make_cleanup_free_completion_tracker): Delete. | |
1469 | (enum maybe_add_completion_enum): Delete. | |
1470 | (maybe_add_completion): Delete. | |
1471 | (throw_max_completions_reached_error): Delete. | |
1472 | * corefile.c (complete_set_gnutarget): Adjust to work with a | |
1473 | completion_tracker instead of a VEC. | |
1474 | * cp-abi.c (cp_abi_completer): Adjust to work with a | |
1475 | completion_tracker instead of a VEC. | |
1476 | * d-lang.c (d_language_defn): Adjust. | |
1477 | * disasm.c (disassembler_options_completer): Adjust to work with a | |
1478 | completion_tracker instead of a VEC. | |
1479 | * f-lang.c (f_make_symbol_completion_list): Rename to ... | |
1480 | (f_collect_symbol_completion_matches): ... this. Adjust to work | |
1481 | with a completion_tracker instead of a VEC. | |
1482 | (f_language_defn): Adjust. | |
1483 | * go-lang.c (go_language_defn): Adjust. | |
1484 | * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer): | |
1485 | Adjust to work with a completion_tracker instead of a VEC. | |
1486 | * infrun.c (handle_completer): Likewise. | |
1487 | * interps.c (interpreter_completer): Likewise. | |
1488 | * interps.h (interpreter_completer): Likewise. | |
1489 | * language.c (unknown_language_defn, auto_language_defn) | |
1490 | (local_language_defn): Adjust. | |
1491 | * language.h (language_defn::la_make_symbol_completion_list): | |
1492 | Rename to ... | |
1493 | (language_defn::la_collect_symbol_completion_matches): ... this | |
1494 | and adjust to work with a completion_tracker instead of a VEC. | |
1495 | * m2-lang.c (m2_language_defn): Adjust. | |
1496 | * objc-lang.c (objc_language_defn): Adjust. | |
1497 | * opencl-lang.c (opencl_language_defn): Adjust. | |
1498 | * p-lang.c (pascal_language_defn): Adjust. | |
1499 | * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word. | |
1500 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work | |
1501 | with a completion_tracker. | |
1502 | * rust-lang.c (rust_language_defn): Adjust. | |
1503 | * symtab.c (free_completion_list, do_free_completion_list) | |
1504 | (return_val, completion_tracker): Delete. | |
1505 | (completion_list_add_name, completion_list_add_symbol) | |
1506 | (completion_list_add_msymbol, completion_list_objc_symbol) | |
1507 | (completion_list_add_fields, add_symtab_completions): Add | |
1508 | completion_tracker parameter and use it. | |
1509 | (default_make_symbol_completion_list_break_on_1): Rename to... | |
1510 | (default_collect_symbol_completion_matches_break_on): ... this. | |
1511 | Add completion_tracker parameter and use it instead of allocating | |
1512 | a completion tracker here. | |
1513 | (default_make_symbol_completion_list_break_on): Delete old | |
1514 | implementation. | |
1515 | (default_make_symbol_completion_list): Delete. | |
1516 | (default_collect_symbol_completion_matches): New. | |
1517 | (make_symbol_completion_list): Delete. | |
1518 | (collect_symbol_completion_matches): New. | |
1519 | (make_symbol_completion_type): Rename to ... | |
1520 | (collect_symbol_completion_matches_type): ... this. Add | |
1521 | completion_tracker parameter and use it instead of VEC. | |
1522 | (make_file_symbol_completion_list_1): Rename to... | |
1523 | (collect_file_symbol_completion_matches): ... this. Add | |
1524 | completion_tracker parameter and use it instead of VEC. | |
1525 | (make_file_symbol_completion_list): Delete. | |
1526 | (add_filename_to_list): Use completion_list instead of a VEC. | |
1527 | (add_partial_filename_data::list): Now a completion_list. | |
1528 | (make_source_files_completion_list): Work with a completion_list | |
1529 | instead of a VEC. | |
1530 | * symtab.h: Include "completer.h". | |
1531 | (default_make_symbol_completion_list_break_on) | |
1532 | (default_make_symbol_completion_list, make_symbol_completion_list) | |
1533 | (make_symbol_completion_type, make_file_symbol_completion_list) | |
1534 | (make_source_files_completion_list): Delete. | |
1535 | (default_collect_symbol_completion_matches_break_on) | |
1536 | (default_collect_symbol_completion_matches) | |
1537 | (collect_symbol_completion_matches) | |
1538 | (collect_symbol_completion_matches_type) | |
1539 | (collect_file_symbol_completion_matches) | |
1540 | (make_source_files_completion_list): New. | |
1541 | * top.c (init_main): Don't install a rl_completion_entry_function | |
1542 | hook. Install a rl_attempted_completion_function hook instead. | |
1543 | * tui/tui-layout.c (layout_completer): Adjust to work with a | |
1544 | completion_tracker. | |
1545 | * tui/tui-regs.c (tui_reggroup_completer): | |
1546 | * tui/tui-win.c (window_name_completer, focus_completer) | |
1547 | (winheight_completer): Adjust to work with a completion_tracker. | |
1548 | * value.c: Include "completer.h". | |
1549 | (complete_internalvar): Adjust to work with a completion_tracker. | |
1550 | * value.h (complete_internalvar): Likewise. | |
1551 | ||
6e1dbf8c PA |
1552 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1553 | ||
1554 | * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to | |
1555 | renames. | |
1556 | * cli/cli-decode.h (struct cmd_list_element) <completer>: Move | |
1557 | comments to completer_ftype's declaration. | |
1558 | <completer_handle_brkchars>: Change type to | |
1559 | completer_handle_brkchars_ftype. | |
1560 | * command.h (completer_ftype): Add describing comment and give | |
1561 | names to parameters. | |
1562 | (completer_ftype_void): Rename to ... | |
1563 | (completer_handle_brkchars_ftype) ... this. Add describing comment. | |
1564 | (set_cmd_completer_handle_brkchars): Adjust. | |
1565 | * completer.c (filename_completer_handle_brkchars): New function. | |
1566 | (complete_line_internal_normal_command): New function, factored | |
1567 | out from ... | |
1568 | (complete_line_internal): ... here. | |
1569 | (command_completer_handle_brkchars) | |
1570 | (default_completer_handle_brkchars) | |
1571 | (completer_handle_brkchars_func_for_completer): New functions. | |
1572 | * completer.h (set_gdb_completion_word_break_characters): Delete | |
1573 | declaration. | |
1574 | (completer_handle_brkchars_func_for_completer): New declaration. | |
1575 | * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use | |
1576 | completer_handle_brkchars_func_for_completer. | |
1577 | ||
78b13106 PA |
1578 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1579 | ||
1580 | * completer.c (symbol_completer): New function, based on | |
1581 | make_symbol_completion_list_fn. | |
1582 | * completer.h (symbol_completer): New declaration. | |
1583 | * guile/scm-cmd.c (cmdscm_completers): Adjust. | |
1584 | * python/py-cmd.c (completers): Adjust. | |
1585 | * symtab.c (make_symbol_completion_list_fn): Delete. | |
1586 | * symtab.h (make_symbol_completion_list_fn): Delete. | |
1587 | * cli/cli-decode.c (add_cmd): Adjust. | |
1588 | ||
bbf2f4df PA |
1589 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1590 | ||
1591 | * Makefile.in (COMMON_OBS): Add filename-seen-cache.o. | |
1592 | * dwarf2read.c: Include "filename-seen-cache.h". | |
1593 | * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field. | |
1594 | (dw2_map_symbol_filenames): Build and use a filenames_seen_cache. | |
1595 | * filename-seen-cache.c: New file. | |
1596 | * filename-seen-cache.h: New file. | |
1597 | * symtab.c: Include "filename-seen-cache.h". | |
1598 | (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE) | |
1599 | (create_filename_seen_cache, clear_filename_seen_cache) | |
1600 | (delete_filename_seen_cache, filename_seen): Delete, parts moved | |
1601 | to filename-seen-cache.h/filename-seen-cache.c. | |
1602 | (output_source_filename, sources_info) | |
1603 | (maybe_add_partial_symtab_filename) | |
1604 | (make_source_files_completion_list): Adjust to use | |
1605 | filename_seen_cache. | |
1606 | ||
330cdd98 PA |
1607 | 2017-07-17 Pedro Alves <palves@redhat.com> |
1608 | ||
1609 | * dwarf2read.c (dwarf2_per_objfile): In-class initialize all | |
1610 | fields. | |
1611 | (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const | |
1612 | dwarf2_debug_sections*)): New. | |
1613 | (dwarf2_per_objfile::dwarf2_per_objfile(const | |
1614 | dwarf2_per_objfile&)): Declare as deleted. | |
1615 | (dwarf2_per_objfile::operator=): Declare as deleted. | |
1616 | (dwarf2_per_objfile::dwarf2_per_objfile) | |
1617 | (dwarf2_per_objfile::~dwarf2_per_objfile) | |
1618 | (dwarf2_per_objfile::free_cached_comp_units): New. | |
1619 | (dwarf2_has_info): dwarf2_per_objfile initialization code moved to | |
1620 | ctor. Call dwarf2_per_objfile's ctor manually. | |
1621 | (dwarf2_locate_sections): Deleted/refactored as ... | |
1622 | (dwarf2_per_objfile::locate_sections): ... this new method. | |
1623 | (free_cached_comp_units): Defer to | |
1624 | dwarf2_per_objfile::free_cached_comp_units. | |
1625 | (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually. | |
1626 | ||
8880f2a9 TT |
1627 | 2017-07-14 Tom Tromey <tom@tromey.com> |
1628 | ||
1629 | PR rust/21764: | |
1630 | * rust-exp.y (convert_ast_to_expression): Add "want_type" | |
1631 | parameter. | |
1632 | <UNOP_SIZEOF>: Split into separate case. | |
1633 | <UNOP_VAR_VALUE>: Handle want_type. Add error case. | |
1634 | ||
65547233 TT |
1635 | 2017-07-14 Tom Tromey <tom@tromey.com> |
1636 | ||
1637 | PR rust/21763: | |
1638 | * symtab.c (symbol_matches_domain): Add language_rust to special | |
1639 | case. | |
1640 | * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't | |
1641 | treat LOC_TYPEDEF symbols as variables. | |
1642 | ||
8f14146e PA |
1643 | 2017-07-14 Pedro Alves <palves@redhat.com> |
1644 | ||
1645 | * symtab.c (make_file_symbol_completion_list_1): Iterate over | |
1646 | symtabs matching all symtabs with SRCFILE as file name instead of | |
1647 | only considering the first hit, with lookup_symtab. | |
1648 | ||
2347965c SM |
1649 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1650 | ||
1651 | * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and | |
1652 | operator_name parameters. | |
1653 | (gen_expr): Update function call. | |
1654 | ||
40f4af28 SM |
1655 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1656 | ||
1657 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch | |
1658 | parameter. | |
1659 | * symtab.h (struct symbol_computed_ops::tracepoint_var_ref): | |
1660 | Likewise. | |
1661 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch | |
1662 | parameter, use agent_expr::gdbarch instead, update function | |
1663 | calls. | |
1664 | (locexpr_tracepoint_var_ref): Likewise. | |
1665 | (loclist_tracepoint_var_ref): Likewise. | |
1666 | * ax-gdb.c (gen_trace_static_fields): Likewise. | |
1667 | (gen_traced_pop): Likewise. | |
1668 | (gen_frame_args_address): Likewise. | |
1669 | (gen_frame_locals_address): Likewise. | |
1670 | (gen_var_ref): Likewise. | |
1671 | (gen_struct_ref_recursive): Likewise. | |
1672 | (gen_static_field): Likewise. | |
1673 | (gen_maybe_namespace_elt): Likewise. | |
1674 | (gen_expr): Likewise. | |
1675 | (gen_trace_for_var): Likewise. | |
1676 | (gen_trace_for_expr): Likewise. | |
1677 | (gen_trace_for_return_address): Likewise. | |
1678 | ||
053f8057 SM |
1679 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1680 | ||
1681 | * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax | |
1682 | parameter. | |
1683 | (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call. | |
1684 | ||
6661ad48 SM |
1685 | 2017-07-14 Simon Marchi <simon.marchi@ericsson.com> |
1686 | ||
1687 | * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch | |
1688 | from ax, update calls. | |
1689 | (gen_usual_arithmetic): Likewise. | |
1690 | (gen_integral_promotions): Likewise. | |
1691 | (gen_bitfield_ref): Likewise. | |
1692 | (gen_primitive_field): Likewise. | |
1693 | (gen_struct_ref_recursive): Likewise. | |
1694 | (gen_struct_ref): Likewise. | |
1695 | (gen_maybe_namespace_elt): Likewise. | |
1696 | (gen_struct_elt_for_reference): Likewise. | |
1697 | (gen_namespace_elt): Likewise. | |
1698 | (gen_aggregate_elt_ref): Likewise. | |
1699 | (gen_expr): Get gdbarch from ax, update calls. | |
1700 | (gen_expr_binop_rest): Likewise. | |
1701 | ||
c55a47e7 PA |
1702 | 2017-07-13 Pedro Alves <palves@redhat.com> |
1703 | ||
1704 | * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64 | |
1705 | as default tdesc. | |
1706 | * amd64-dicos-tdep.c (amd64_dicos_init_abi): | |
1707 | * amd64-fbsd-tdep.c (amd64fbsd_init_abi): | |
1708 | * amd64-linux-tdep.c (amd64_linux_init_abi): Pass | |
1709 | tdesc_amd64_linux as default tdesc. Get final tdesc from the | |
1710 | tdep. | |
1711 | (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc. | |
1712 | Get final tdesc from the tdep. | |
1713 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as | |
1714 | default tdesc. | |
1715 | * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise. | |
1716 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise. | |
1717 | * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter. | |
1718 | Use it as default tdesc. | |
1719 | (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it | |
1720 | down to amd_init_abi. No longer handle fallback tdesc here. | |
1721 | * amd64-tdep.h (tdesc_x32): Declare. | |
1722 | (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc' | |
1723 | parameter. | |
1724 | * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64 | |
1725 | as default tdesc. | |
1726 | ||
55efceab AA |
1727 | 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1728 | ||
1729 | * s390-linux-tdep.c (s390_process_record): Add support for | |
1730 | instructions new in arch12. | |
1731 | ||
0aa37b65 JB |
1732 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
1733 | ||
1734 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
1735 | PT_GETFSBASE and PT_GETGSBASE. | |
1736 | (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and | |
1737 | PT_SETGSBASE. | |
1738 | ||
48aeef91 JB |
1739 | 2017-07-11 John Baldwin <jhb@FreeBSD.org> |
1740 | ||
1741 | * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat) | |
1742 | (amd64-avx-mpx.dat, amd64-avx-avx512.dat) | |
1743 | (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in | |
1744 | those rules. | |
1745 | * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml. | |
1746 | * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml. | |
1747 | * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml. | |
1748 | * features/i386/amd64-avx.xml: Add 64bit-segments.xml. | |
1749 | * features/i386/amd64-mpx.xml: Add 64bit-segments.xml. | |
1750 | * features/i386/amd64.xml: Add 64bit-segments.xml. | |
1751 | * features/i386/amd64-avx-avx512.c: Regenerated. | |
1752 | * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated. | |
1753 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
1754 | * features/i386/amd64-avx.c: Regenerated. | |
1755 | * features/i386/amd64-mpx.c: Regenerated. | |
1756 | * features/i386/amd64.c: Regenerated. | |
1757 | * regformats/i386/amd64-avx-avx512.dat: Regenerated. | |
1758 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
1759 | * regformats/i386/amd64-avx-mpx.dat: Regenerated. | |
1760 | * regformats/i386/amd64-avx.dat: Regenerated. | |
1761 | * regformats/i386/amd64-mpx.dat: Regenerated. | |
1762 | * regformats/i386/amd64.dat: Regenerated. | |
1763 | ||
77c501bc YQ |
1764 | 2017-07-10 Yao Qi <yao.qi@linaro.org> |
1765 | ||
1766 | * features/i386/amd64-avx-avx512-linux.c: Re-generated. | |
1767 | * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated. | |
1768 | ||
6dc8d757 AK |
1769 | 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com> |
1770 | ||
1771 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and | |
1772 | unsetenv. | |
1773 | * gnulib/aclocal.m4: Regenerate. | |
1774 | * gnulib/config.in: Regenerate. | |
1775 | * gnulib/configure: Regenerate. | |
1776 | * gnulib/import/Makefile.am: Regenerate. | |
1777 | * gnulib/import/Makefile.in: Regenerate. | |
1778 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
1779 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
1780 | * gnulib/import/m4/environ.m4: New file. | |
1781 | * gnulib/import/m4/setenv.m4: New file. | |
1782 | * gnulib/import/setenv.c: New file. | |
1783 | * gnulib/import/unsetenv.c: New file. | |
1784 | ||
266934d1 SM |
1785 | 2017-07-09 Simon Marchi <simon.marchi@ericsson.com> |
1786 | ||
1787 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read | |
1788 | address when op is DW_OP_addr. | |
1789 | ||
03278692 TT |
1790 | 2017-07-09 Tom Tromey <tom@tromey.com> |
1791 | ||
1792 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size | |
1793 | check and apply to outer type. | |
1794 | ||
4b654465 JB |
1795 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1796 | ||
1797 | * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS) | |
1798 | (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI) | |
1799 | (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New. | |
1800 | (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
1801 | ||
2af9fc44 JB |
1802 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1803 | ||
1804 | * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name. | |
1805 | ||
382b69bb JB |
1806 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1807 | ||
1808 | * corelow.c (get_core_siginfo): Remove. | |
1809 | (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method | |
1810 | instead of get_core_siginfo. | |
1811 | * gdbarch.sh (core_xfer_siginfo): New gdbarch callback. | |
1812 | * gdbarch.h: Re-generate. | |
1813 | * gdbarch.c: Re-generate. | |
1814 | * linux-tdep.c (linux_core_xfer_siginfo): New. | |
1815 | (linux_init_abi): Install gdbarch "core_xfer_siginfo" method. | |
1816 | ||
6e5eab33 JB |
1817 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1818 | ||
1819 | * corelow.c (thread_section_name): Move to ... | |
1820 | * gdbcore.h (thread_section_name): ... here. | |
1821 | ||
929edea9 JB |
1822 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1823 | ||
1824 | * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32) | |
1825 | (struct siginfo32): New. | |
1826 | [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New. | |
1827 | (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO | |
1828 | via ptrace(PT_LWPINFO). | |
1829 | ||
762c974a JB |
1830 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1831 | ||
1832 | * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data) | |
1833 | (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data) | |
1834 | (fbsd_get_siginfo_type): New. | |
1835 | (fbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
1836 | (_initialize_fbsd_tdep): New. | |
1837 | ||
33c5cd75 DB |
1838 | 2017-07-06 David Blaikie <dblaikie@gmail.com> |
1839 | ||
1840 | * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than | |
1841 | a singular dwo_unit*) to support multiple CUs in the same way that | |
1842 | multiple TUs are supported. | |
1843 | (create_cus_hash_table): Replace create_dwo_cu with a function for | |
1844 | parsing multiple CUs from a DWO file. | |
1845 | (open_and_init_dwo_file): Use create_cus_hash_table rather than | |
1846 | create_dwo_cu. | |
1847 | (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with | |
1848 | htab_find, rather than comparing the signature to a singleton CU in | |
1849 | the dwo_file. | |
1850 | ||
8455d262 PA |
1851 | 2017-07-06 Pedro Alves <palves@redhat.com> |
1852 | ||
1853 | * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition. | |
1854 | ||
4da3eb35 PA |
1855 | 2017-07-04 Pedro Alves <palves@redhat.com> |
1856 | ||
1857 | * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC. | |
1858 | * gdbtypes.h (TYPE_STATIC): Delete. | |
1859 | (struct fn_field) <is_public, is_abstract, is_static, is_final, | |
1860 | is_synchronized, is_native>: Delete. | |
1861 | <dummy>: Bump. | |
1862 | (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL) | |
1863 | (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE) | |
1864 | (TYPE_FN_FIELD_ABSTRACT): Delete. | |
1865 | ||
5bfd255c SM |
1866 | 2017-07-03 Simon Marchi <simon.marchi@ericsson.com> |
1867 | ||
1868 | * buffer.h (buffer_finish): Fix spelling mistakes. | |
1869 | ||
25c54127 EZ |
1870 | 2017-07-01 Eli Zaretskii <eliz@gnu.org> |
1871 | ||
1872 | * .dir-locals.el: Automatically switch to C-style comments in | |
1873 | versions of Emacs that support the feature. | |
1874 | ||
dc4bde35 SDJ |
1875 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
1876 | Pedro Alves <palves@redhat.com> | |
1877 | ||
1878 | PR cli/21688 | |
1879 | * cli/cli-script.c (command_name_equals_not_inline): Remove function. | |
1880 | (process_next_line): New variable 'inline_cmd'. | |
1881 | Adjust 'if' clauses for "python", "compile" and "guile" to use | |
1882 | 'command_name_equals' and check for '!inline_cmd'. | |
1883 | ||
51ed89aa SDJ |
1884 | 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com> |
1885 | ||
1886 | PR cli/21688 | |
1887 | * cli/cli-script.c (command_name_equals_not_inline): New function. | |
1888 | (process_next_line): Adjust 'if' clauses for "python", "compile" | |
1889 | and "guile" to use command_name_equals_not_inline. | |
1890 | ||
eb17d413 PA |
1891 | 2017-06-29 Pedro Alves <palves@redhat.com> |
1892 | ||
1893 | * completer.c (expression_completer): Call | |
1894 | linespec_location_completer instead of location_completer. | |
1895 | ||
195bcdd5 PA |
1896 | 2017-06-29 Pedro Alves <palves@redhat.com> |
1897 | ||
1898 | * completer.c (expression_completer): Remove code that recomputes | |
1899 | 'text' from 'word'. | |
1900 | ||
adc764e7 YQ |
1901 | 2017-06-29 Yao Qi <yao.qi@linaro.org> |
1902 | ||
1903 | * regformats/regdat.sh: Generate code with | |
1904 | "ifndef IN_PROCESS_AGENT". | |
1905 | ||
6e75794e PA |
1906 | 2017-06-28 Pedro Alves <palves@redhat.com> |
1907 | ||
1908 | * command.h: Include "common/scoped_restore.h". | |
1909 | ||
bc491f2e YQ |
1910 | 2017-06-28 Yao Qi <yao.qi@linaro.org> |
1911 | ||
1912 | * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str | |
1913 | instead of obstack_grow. | |
1914 | ||
41664b45 DG |
1915 | 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com> |
1916 | ||
1917 | PR gdb/21337 | |
1918 | * symfile.c (reread_symbols): Call objfiles_changed just before | |
1919 | read_symbols. | |
1920 | ||
6da67eb1 PA |
1921 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1922 | ||
1923 | * symtab.c (COMPLETION_LIST_ADD_SYMBOL) | |
1924 | (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ... | |
1925 | (completion_list_add_symbol, completion_list_add_msymbol): | |
1926 | ... these new functions. | |
1927 | (add_symtab_completions) | |
1928 | (default_make_symbol_completion_list_break_on_1): Adjust. | |
1929 | ||
23732b1e PA |
1930 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1931 | ||
1932 | * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of | |
1933 | bfd_zalloc. Call objfile_per_bfd_storage's ctor. | |
1934 | (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's | |
1935 | dtor. | |
1936 | * objfiles.h (objfile_per_bfd_storage): Add ctor. Make | |
1937 | 'storage_obstack' field an auto_obstack. In-class initialize all | |
1938 | non-bitfield fields. Make minsyms_read bool. | |
1939 | * symfile.c (read_symbols): Adjust. | |
1940 | ||
a4d1e79a AH |
1941 | 2017-06-27 Alan Hayward <alan.hayward@arm.com> |
1942 | ||
1943 | * remote-sim.c (gdbsim_fetch_register): Use byte_vector. | |
1944 | (gdbsim_store_register): Likewise. | |
1945 | ||
8268c778 PA |
1946 | 2017-06-27 Pedro Alves <palves@redhat.com> |
1947 | ||
1948 | * c-exp.y (name_obstack): Now an auto_obstack. | |
1949 | (yylex): Use auto_obstack::clear. | |
1950 | (c_parse): Use auto_obstack::clear instead of reinitializing and | |
1951 | freeing the obstack. | |
1952 | * c-lang.c (evaluate_subexp_c): Use auto_obstack. | |
1953 | * d-exp.y (name_obstack): Now an auto_obstack. | |
1954 | (yylex): Use auto_obstack::clear. | |
1955 | (d_parse): Use auto_obstack::clear instead of reinitializing and | |
1956 | freeing the obstack. | |
1957 | * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use | |
1958 | auto_obstack. | |
1959 | * dwarf2read.c (create_addrmap_from_index) | |
1960 | (dwarf2_build_psymtabs_hard) | |
1961 | (update_enumeration_type_from_children): Likewise. | |
1962 | * gdb_obstack.h (auto_obstack): New type. | |
1963 | * go-exp.y (name_obstack): Now an auto_obstack. | |
1964 | (build_packaged_name): Use auto_obstack::clear. | |
1965 | (go_parse): Use auto_obstack::clear instead of reinitializing and | |
1966 | freeing the obstack. | |
1967 | * linux-tdep.c (linux_make_mappings_corefile_notes): Use | |
1968 | auto_obstack. | |
1969 | * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack. | |
1970 | * rust-exp.y (work_obstack): Now an auto_obstack. | |
1971 | (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of | |
1972 | reinitializing and freeing the obstack. | |
1973 | * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete. | |
1974 | (host_char_to_target): Use auto_obstack. | |
1975 | * utils.h (make_cleanup_obstack_free): Delete declaration. | |
1976 | * valprint.c (generic_emit_char, generic_printstr): Use | |
1977 | auto_obstack. | |
1978 | ||
db665f42 SM |
1979 | 2017-06-27 Simon Marchi <simon.marchi@ericsson.com> |
1980 | ||
1981 | * darwin-nat.c (darwin_check_new_threads): Don't handle dummy | |
1982 | thread. | |
1983 | (darwin_init_thread_list): Don't update dummy thread. | |
1984 | (darwin_create_inferior, darwin_attach): Don't add a dummy thread. | |
1985 | ||
873c0814 SM |
1986 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
1987 | ||
1988 | * record-full.c (netorder16): Remove. | |
1989 | ||
8b5a7a6e SM |
1990 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
1991 | ||
1992 | * common/diagnostics.h: Define macros for GCC. | |
1993 | (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro. | |
1994 | * common/vec.h: Include diagnostics.h. | |
1995 | (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro. | |
1996 | (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function | |
1997 | warning. | |
1998 | ||
d1435379 SM |
1999 | 2017-06-26 Simon Marchi <simon.marchi@ericsson.com> |
2000 | ||
2001 | * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER): | |
2002 | New macro. | |
2003 | * ada-lex.l: Ignore deprecated register warnings. | |
2004 | ||
cc75e0fd SM |
2005 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
2006 | ||
2007 | * main.c (get_init_files): Replace "SYSTEM_GDBINIT + | |
2008 | datadir_len" with "&SYSTEM_GDBINIT[datadir_len]". | |
2009 | ||
07809eaf SM |
2010 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
2011 | ||
2012 | * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on | |
2013 | its own line. | |
2014 | ||
f076f034 SM |
2015 | 2017-06-25 Simon Marchi <simon.marchi@ericsson.com> |
2016 | ||
2017 | * nat/x86-dregs.c (x86_show_dr): Print registers one per line. | |
2018 | ||
0dd5cbc5 AH |
2019 | 2017-06-23 Alan Hayward <alan.hayward@arm.com> |
2020 | ||
2021 | * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add. | |
2022 | (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE. | |
2023 | (xtensa_register_read_masked): Likewise. | |
2024 | ||
d4c6ce5b SDJ |
2025 | 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> |
2026 | ||
2027 | * common/environ.c (gdb_environ::unset): Update comment. | |
2028 | ||
16892a03 AH |
2029 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
2030 | ||
2031 | * python/py-unwind.c (pyuw_sniffer): Allocate space for | |
2032 | registers. | |
2033 | ||
d7dcbefc AH |
2034 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
2035 | ||
2036 | * record-full.c (record_full_exec_insn): Use byte_vector. | |
2037 | ||
b30ff123 YQ |
2038 | 2017-06-22 Yao Qi <yao.qi@linaro.org> |
2039 | ||
2040 | * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated. | |
2041 | * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated. | |
2042 | ||
4fa847d7 AH |
2043 | 2017-06-22 Alan Hayward <alan.hayward@arm.com> |
2044 | ||
2045 | * remote.c (cached_reg): Move from here... | |
2046 | * regcache.h (cached_reg): ...to here. | |
2047 | * python/py-unwind.c (struct reg_info): Remove. | |
2048 | (cached_frame_info): Use cached_reg_t. | |
2049 | (pyuw_prev_register): Likewise. | |
2050 | (pyuw_sniffer): Use cached_reg_t and allocate registers. | |
2051 | (pyuw_dealloc_cache): Free all registers. | |
2052 | ||
f4906a9a PA |
2053 | 2017-06-22 Pedro Alves <palves@redhat.com> |
2054 | Simon Marchi <simon.marchi@ericsson.com> | |
2055 | ||
2056 | * unittests/environ-selftests.c (run_tests): Ignore -Wself-move | |
2057 | warning. | |
2058 | * common/diagnostics.h: New file. | |
2059 | ||
b45a1208 PA |
2060 | 2017-06-22 Pedro Alves <palves@redhat.com> |
2061 | ||
2062 | * common/agent.h: Add include guards. | |
2063 | ||
e4da2c61 SM |
2064 | 2017-06-21 Simon Marchi <simon.marchi@ericsson.com> |
2065 | ||
2066 | * target.h (struct target_ops) <to_xfer_partial>: Update doc to | |
2067 | talk about addressable units instead of bytes. | |
2068 | ||
96160d60 SDJ |
2069 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2070 | ||
2071 | * common/environ.c (gdb_environ::unset): Use '::iterator' instead | |
2072 | of '::const_iterator'. | |
2073 | ||
9a6c7d9c SDJ |
2074 | 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2075 | ||
2076 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
2077 | 'unittests/environ-selftests.c'. | |
2078 | (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'. | |
2079 | * charset.c (find_charset_names): Declare object 'iconv_env'. | |
2080 | Update code to use 'iconv_env' object. Remove call to | |
2081 | 'free_environ'. | |
2082 | * common/environ.c: Include <utility>. | |
2083 | (make_environ): Delete function. | |
2084 | (free_environ): Delete function. | |
2085 | (gdb_environ::clear): New function. | |
2086 | (gdb_environ::operator=): New function. | |
2087 | (gdb_environ::get): Likewise. | |
2088 | (environ_vector): Delete function. | |
2089 | (set_in_environ): Delete function. | |
2090 | (gdb_environ::set): New function. | |
2091 | (unset_in_environ): Delete function. | |
2092 | (gdb_environ::unset): New function. | |
2093 | (gdb_environ::envp): Likewise. | |
2094 | * common/environ.h: Include <vector>. | |
2095 | (struct gdb_environ): Delete; transform into... | |
2096 | (class gdb_environ): ... this class. | |
2097 | (free_environ): Delete prototype. | |
2098 | (init_environ, get_in_environ, set_in_environ, unset_in_environ, | |
2099 | environ_vector): Likewise. | |
2100 | * infcmd.c (run_command_1): Update code to call | |
2101 | 'envp' from 'gdb_environ' class. | |
2102 | (environment_info): Update code to call methods from 'gdb_environ' | |
2103 | class. | |
2104 | (unset_environment_command): Likewise. | |
2105 | (path_info): Likewise. | |
2106 | (path_command): Likewise. | |
2107 | * inferior.c (inferior::~inferior): Delete call to 'free_environ'. | |
2108 | (inferior::inferior): Initialize 'environment' using the host's | |
2109 | information. | |
2110 | * inferior.h: Remove forward declaration of 'struct gdb_environ'. | |
2111 | Include "environ.h". | |
2112 | (class inferior) <environment>: Change type from 'struct | |
2113 | gdb_environ' to 'gdb_environ'. | |
2114 | * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call | |
2115 | methods from 'gdb_environ' class. | |
2116 | * solib.c (solib_find_1): Likewise | |
2117 | * unittests/environ-selftests.c: New file. | |
2118 | ||
75c554cf YQ |
2119 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
2120 | ||
2121 | * features/i386/i386-linux.xml: Exchange the order of including | |
2122 | 32bit-linux.xml and 32bit-sse.xml. | |
2123 | * features/i386/i386-linux.c: Regenerated. | |
2124 | ||
72ddacb7 YQ |
2125 | 2017-06-20 Yao Qi <yao.qi@linaro.org> |
2126 | ||
2127 | * target-descriptions.c (tdesc_reg): Add ctor, dtor. | |
2128 | Delete copy ctor and assignment operator. | |
2129 | (tdesc_type): Likewise. | |
2130 | (tdesc_feature): Likewise. | |
2131 | (tdesc_free_reg): Remove. | |
2132 | (tdesc_create_reg): Use new. | |
2133 | (tdesc_free_type): Remove. | |
2134 | (tdesc_create_vector): Use new. | |
2135 | (tdesc_create_union): Likewise. | |
2136 | (tdesc_create_flags): Likewise. | |
2137 | (tdesc_create_enum): Likewise. | |
2138 | (tdesc_free_feature): Delete. | |
2139 | (free_target_description): Use delete. | |
2140 | ||
325c9fd4 JB |
2141 | 2017-06-19 John Baldwin <jhb@FreeBSD.org> |
2142 | ||
2143 | * mips-tdep.c (print_gp_register_row): Don't error for unavailable | |
2144 | registers. | |
2145 | ||
16b7a719 PA |
2146 | 2017-06-19 Pedro Alves <palves@redhat.com> |
2147 | ||
2148 | * dwarf2read.c (write_psymtabs_to_index): Construct file_closer | |
2149 | after gdb::unlinker. | |
2150 | ||
1c8e01c9 SDJ |
2151 | 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com> |
2152 | ||
2153 | * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of | |
2154 | gdb_environ to access an environment variable. | |
2155 | ||
ffce45d2 TP |
2156 | 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
2157 | ||
2158 | * nat/linux-ptrace.c (linux_fork_to_function): Add cast to | |
2159 | gdb_byte*. | |
2160 | ||
1d4fbac9 SM |
2161 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2162 | ||
2163 | * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF. | |
2164 | ||
8465943a SM |
2165 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2166 | ||
2167 | * configure: Re-generate. | |
2168 | * warning.m4 (build_warnings): Add -Wno-mismatched-tags. | |
2169 | ||
3e019bdc SM |
2170 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2171 | ||
2172 | * configure: Re-generate. | |
2173 | * warning.m4: Pass -Werror to compiler when checking for | |
2174 | supported warning flags. | |
2175 | ||
cf0dd6f0 SM |
2176 | 2017-06-17 Simon Marchi <simon.marchi@ericsson.com> |
2177 | ||
2178 | * Makefile.in (COMPILE.pre): Add "-x c++". | |
2179 | ||
6f98355c YQ |
2180 | 2017-06-16 Alan Hayward <alan.hayward@arm.com> |
2181 | Pedro Alves <palves@redhat.com> | |
2182 | Yao Qi <yao.qi@linaro.org> | |
2183 | ||
2184 | * defs.h (RequireLongest): New. | |
2185 | (extract_integer): Declare function template. | |
2186 | (extract_signed_integer): Remove the declaration, but define it | |
2187 | static inline. | |
2188 | (extract_unsigned_integer): Likewise. | |
2189 | (store_integer): Declare function template. | |
2190 | (store_signed_integer): Remove the declaration, but define it | |
2191 | static inline. | |
2192 | (store_unsigned_integer): Likewise. | |
2193 | * findvar.c (extract_integer): New function template. | |
2194 | (extract_signed_integer): Remove. | |
2195 | (extract_unsigned_integer): Remove. | |
2196 | (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit | |
2197 | instantiations. | |
2198 | (store_integer): New function template. | |
2199 | (store_signed_integer): Remove. | |
2200 | (store_unsigned_integer): Remove. | |
2201 | (store_integer): Explicit instantiations. | |
2202 | * regcache.c (regcache_raw_read_signed): Update. | |
2203 | (regcache::raw_read): New function. | |
2204 | (regcache::raw_read_signed): Remove. | |
2205 | (regcache::raw_read_unsigned): Remove. | |
2206 | (regcache_raw_read_unsigned): Update. | |
2207 | (regcache_raw_write_unsigned): Update. | |
2208 | (regcache::raw_write_signed): Remove. | |
2209 | (regcache::raw_write): New function. | |
2210 | (regcache_cooked_read_signed): Update. | |
2211 | (regcache::raw_write_unsigned): Remove. | |
2212 | (regcache::cooked_read_signed): Remove. | |
2213 | (regcache_cooked_read_unsigned): Update. | |
2214 | (regcache::cooked_read_unsigned): Remove. | |
2215 | (regcache_cooked_write_signed): Update. | |
2216 | (regcache_cooked_write_unsigned): Update. | |
2217 | * regcache.h (regcache) <raw_read_signed>: Remove. | |
2218 | <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove. | |
2219 | <raw_read, raw_write>: New. | |
2220 | <cooked_read_signed, cooked_write_signed>: Remove. | |
2221 | <cooked_write_unsigned, cooked_read_unsigned>: Remove. | |
2222 | <cooked_read, cooked_write>: New. | |
2223 | * sh64-tdep.c (sh64_pseudo_register_read): Update. | |
2224 | (sh64_pseudo_register_write): Update. | |
2225 | ||
a87dc45a AK |
2226 | 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com> |
2227 | ||
2228 | * arc-tdep.c (arc_disassembler_options): New variable. | |
2229 | (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead | |
2230 | of default_print_insn. | |
2231 | (arc_delayed_print_insn): Set info->section when needed, | |
2232 | use default_print_insn to retrieve a disassembler. | |
2233 | ||
45159d6a SDJ |
2234 | 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com> |
2235 | ||
2236 | PR gdb/21574 | |
2237 | * infcmd.c (_initialize_infcmd): Expand "help run" documentation | |
2238 | to mention $SHELL and startup-with-shell. | |
2239 | ||
b46c4cf0 MF |
2240 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
2241 | ||
2242 | * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers. | |
2243 | ||
6394c606 YQ |
2244 | 2017-06-14 Yao Qi <yao.qi@linaro.org> |
2245 | ||
2246 | * aarch64-tdep.c (aarch64_gdb_print_insn): Call | |
2247 | default_print_insn instead of print_insn_aarch64. | |
2248 | * arm-tdep.c (gdb_print_insn_arm): Call | |
2249 | default_print_insn instead of print_insn_big_arm | |
2250 | and print_insn_little_arm. | |
2251 | * i386-tdep.c (i386_print_insn): Call default_print_insn | |
2252 | instead of print_insn_i386. | |
2253 | * ia64-tdep.c (ia64_print_insn): Call | |
2254 | default_print_insn instead of print_insn_ia64. | |
2255 | * mips-tdep.c (gdb_print_insn_mips): Call | |
2256 | default_print_insn instead of print_insn_big_mips | |
2257 | and print_insn_little_mips. | |
2258 | * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn | |
2259 | instead of print_insn_spu. | |
2260 | ||
d5722aa2 PA |
2261 | 2017-06-14 Pedro Alves <palves@redhat.com> |
2262 | ||
2263 | * ada-lang.c: Include "common/byte-vector.h". | |
2264 | (ada_value_primitive_packed_val): Use gdb::byte_vector. | |
2265 | * charset.c (wchar_iterator::iterate): Resize the vector instead | |
2266 | of reserving it. | |
2267 | * common/byte-vector.h: Include "common/def-vector.h". | |
2268 | (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>. | |
2269 | * cli/cli-dump.c: Include "common/byte-vector.h". | |
2270 | (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector. | |
2271 | * common/byte-vector.h: New file. | |
2272 | * common/def-vector.h: New file. | |
2273 | * common/default-init-alloc.h: New file. | |
2274 | * dwarf2loc.c: Include "common/byte-vector.h". | |
2275 | (rw_pieced_value): Use gdb::byte_vector, and resize the vector | |
2276 | instead of reserving it. | |
2277 | * dwarf2read.c: Include "common/byte-vector.h". | |
2278 | (data_buf::m_vec): Now a gdb::byte_vector. | |
2279 | * gdb_regex.c: Include "common/def-vector.h". | |
2280 | (compiled_regex::compiled_regex): Use gdb::def_vector<char>. | |
2281 | * mi/mi-main.c: Include "common/byte-vector.h". | |
2282 | (mi_cmd_data_read_memory): Use gdb::byte_vector. | |
2283 | * printcmd.c: Include "common/byte-vector.h". | |
2284 | (print_scalar_formatted): Use gdb::byte_vector. | |
2285 | * valprint.c: Include "common/byte-vector.h". | |
2286 | (maybe_negate_by_bytes, print_decimal_chars): Use | |
2287 | gdb::byte_vector. | |
2288 | ||
01ec7a27 SM |
2289 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2290 | ||
2291 | * darwin-nat.c: Include "nat/fork-inferior.h". | |
2292 | ||
848d9074 SM |
2293 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2294 | ||
2295 | * configure.nat: Factor out Darwin bits that are not | |
2296 | architecture-specific. Add fork-inferior.o. | |
2297 | ||
3b912944 SM |
2298 | 2017-06-13 Simon Marchi <simon.marchi@ericsson.com> |
2299 | ||
2300 | * configure.nat: Factor out AIX bits that are not | |
2301 | architecture-specific. Add fork-inferior.o. | |
2302 | ||
55acdf22 AA |
2303 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2304 | ||
2305 | * dwarf2loc.c (rw_pieced_value): New. Merge logic from... | |
2306 | (read_pieced_value, write_pieced_value): ...here. Reduce to | |
2307 | wrappers that just call rw_pieced_value. | |
2308 | ||
f65e2044 AA |
2309 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2310 | ||
2311 | * dwarf2loc.c (write_pieced_value): When writing the data for a | |
2312 | memory piece, use write_memory_with_notification instead of | |
2313 | write_memory. | |
2314 | ||
23f945bf AA |
2315 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2316 | ||
2317 | * valops.c (read_value_memory): Change embedded_offset to | |
2318 | represent a bit offset instead of a byte offset. | |
2319 | * value.h (read_value_memory): Adjust comment. | |
2320 | ||
f236533e AA |
2321 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2322 | ||
2323 | * dwarf2loc.c (read_pieced_value): Remove unnecessary variables | |
2324 | dest_offset_bits and source_offset_bits. | |
2325 | (write_pieced_value): Likewise. | |
2326 | ||
65d84b76 AA |
2327 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2328 | ||
2329 | * dwarf2loc.c (read_pieced_value): Respect the piece offset, as | |
2330 | given by DW_OP_bit_piece. | |
2331 | (write_pieced_value): Likewise. | |
2332 | ||
242d31ab AA |
2333 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2334 | ||
2335 | * dwarf2loc.c (read_pieced_value): Move the buffer allocation and | |
2336 | some other preparations to the places where sufficient information | |
2337 | is available. | |
2338 | (write_pieced_value): Likewise. | |
2339 | ||
03c8af18 AA |
2340 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2341 | ||
2342 | * dwarf2loc.c (bits_to_bytes): New function. | |
2343 | (read_pieced_value): Fix offset calculations for register pieces | |
2344 | on big-endian targets. | |
2345 | (write_pieced_value): Likewise. | |
2346 | ||
840989c1 AA |
2347 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2348 | ||
2349 | * dwarf2loc.c (read_pieced_value): Remove buffer_size variable. | |
2350 | (write_pieced_value): Likewise. | |
2351 | ||
359b19bb AA |
2352 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2353 | ||
2354 | * dwarf2loc.c (write_pieced_value): When writing to a bit-field, | |
2355 | transfer the source value's least significant bits, instead of its | |
2356 | lowest-addressed ones. Rename type_len to max_offset. | |
2357 | (read_pieced_value): Mirror above changes to write_pieced_value as | |
2358 | applicable. | |
2359 | ||
07c9ca3b AA |
2360 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2361 | ||
2362 | * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY, | |
2363 | truncate full bytes from dest_offset_bits before using it as an | |
2364 | offset into the buffer. | |
2365 | ||
f1cc9874 AA |
2366 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2367 | ||
2368 | * dwarf2loc.c (write_pieced_value): Include transfer size in | |
2369 | byte-wise check. | |
2370 | ||
cdaac320 AA |
2371 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2372 | ||
2373 | * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the | |
2374 | calculation of this_size. | |
2375 | ||
af547a96 AA |
2376 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2377 | ||
2378 | * dwarf2loc.c (read_pieced_value): Respect parent value's offset | |
2379 | when targeting a bit-field. | |
2380 | (write_pieced_value): Likewise. | |
2381 | ||
ddd7882a AA |
2382 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2383 | ||
2384 | * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field. | |
2385 | (allocate_piece_closure): Drop addr_size parameter. | |
2386 | (dwarf2_evaluate_loc_desc_full): Adjust call to | |
2387 | allocate_piece_closure. | |
2388 | ||
e9352324 AA |
2389 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2390 | ||
2391 | PR gdb/21226 | |
2392 | * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at | |
2393 | the LSB end, independent of endianness. | |
2394 | ||
d5d1163e AA |
2395 | 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2396 | ||
2397 | * dwarf2loc.c (write_pieced_value): Fix order of calculations for | |
2398 | size capping. | |
2399 | ||
032bb6ea YQ |
2400 | 2017-06-13 Yao Qi <yao.qi@linaro.org> |
2401 | ||
2402 | * mips-linux-nat.c: Move include features/mips*-linux.c to | |
2403 | mips-linux-tdep.c. | |
2404 | (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls | |
2405 | to mips-linux-tdep.c. | |
2406 | * mips-linux-tdep.c: Include features/mips*-linux.c | |
2407 | (_initialize_mips_linux_tdep): Call initialize_tdesc_mips* | |
2408 | functions. | |
2409 | * mips-linux-tdep.h (tdesc_mips_linux): Declare. | |
2410 | (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare. | |
2411 | (tdesc_mips64_dsp_linux): Declare. | |
2412 | ||
f12f6bad TT |
2413 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2414 | ||
2415 | * valprint.h (val_print_type_code_int): Remove. | |
2416 | * valprint.c (generic_val_print_int): Always call | |
2417 | val_print_scalar_formatted. | |
2418 | (val_print_type_code_int): Remove. | |
2419 | * printcmd.c (print_scalar_formatted): Handle options->format==0. | |
2420 | * f-valprint.c (f_val_print): Use val_print_scalar_formatted. | |
2421 | * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted. | |
2422 | * ada-valprint.c (ada_val_print_num): Use | |
2423 | val_print_scalar_formatted. | |
2424 | ||
d9109c80 TT |
2425 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2426 | ||
2427 | * printcmd.c (print_scalar_formatted): Unify the two switches. | |
2428 | Don't convert scalars to LONGEST. | |
2429 | ||
4ac0cb1c TT |
2430 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2431 | ||
2432 | PR exp/16225: | |
2433 | * valprint.h (print_decimal_chars): Update. | |
2434 | * valprint.c (maybe_negate_by_bytes): New function. | |
2435 | (print_decimal_chars): Add "is_signed" argument. | |
2436 | * printcmd.c (print_scalar_formatted): Update. | |
2437 | ||
30a25466 TT |
2438 | 2017-06-12 Tom Tromey <tom@tromey.com> |
2439 | ||
2440 | PR exp/16225: | |
2441 | * valprint.h (print_binary_chars, print_hex_chars): Update. | |
2442 | * valprint.c (val_print_type_code_int): Update. | |
2443 | (print_binary_chars): Add "zero_pad" argument. | |
2444 | (emit_octal_digit): New function. | |
2445 | (print_octal_chars): Don't zero-pad. | |
2446 | (print_decimal_chars): Likewise. | |
2447 | (print_hex_chars): Add "zero_pad" argument. | |
2448 | * sh64-tdep.c (sh64_do_fp_register): Update. | |
2449 | * regcache.c (regcache::dump): Update. | |
2450 | * printcmd.c (print_scalar_formatted): Update. | |
2451 | * infcmd.c (default_print_one_register_info): Update. | |
2452 | ||
b3464d03 PA |
2453 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2454 | Alan Hayward <alan.hayward@arm.com> | |
2455 | ||
2456 | * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New. | |
2457 | (mips_eabi_push_dummy_call): Rename local 'regsize' to | |
2458 | 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and | |
2459 | use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it. | |
2460 | Assert that abi_regsize bytes fit in 'ref_valbuf'. | |
2461 | ||
4b76cda9 PA |
2462 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2463 | ||
2464 | * dwarf2read.c (mapped_symtab::data): Now a vector of | |
2465 | symtab_index_entry instead of vector of | |
2466 | std::unique_ptr<symtab_index_entry>. All users adjusted to check | |
2467 | whether an element's name is NULL instead of checking whether the | |
2468 | element itself is NULL. | |
2469 | (find_slot): Change return type. Adjust. | |
2470 | (hash_expand, , add_index_entry, uniquify_cu_indices) | |
2471 | (write_hash_table): Adjust. | |
2472 | ||
e8f8bcb3 PA |
2473 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2474 | ||
2475 | * dwarf2read.c (recursively_count_psymbols): New function. | |
2476 | (write_psymtabs_to_index): Call it to compute number of psyms and | |
2477 | pass estimate size of psyms_seen to unordered_set's ctor. | |
2478 | ||
70a1152b PA |
2479 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2480 | ||
2481 | * dwarf2read.c (write_hash_table): Check if key already exists | |
2482 | before emplacing. | |
2483 | ||
c2f134ac PA |
2484 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2485 | ||
2486 | * dwarf2read.c (data_buf::append_space): Rename to... | |
2487 | (data_buf::grow): ... this, and make private. Adjust all callers. | |
2488 | (data_buf::append_uint): New method. | |
2489 | (add_address_entry, write_one_signatured_type) | |
2490 | (write_psymtabs_to_index): Use it. | |
2491 | ||
a81e6d4d PA |
2492 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2493 | ||
2494 | * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete. | |
2495 | (file_write (FILE *, const std::vector<Elem>&)): Delete. | |
2496 | (data_buf::file_write): Call ::fwrite directly. | |
2497 | ||
6fd931f2 PA |
2498 | 2017-06-12 Pedro Alves <palves@redhat.com> |
2499 | ||
2500 | * dwarf2read.c (uniquify_cu_indices): Use std::unique and | |
2501 | std::vector::erase. | |
2502 | ||
bc8f2430 JK |
2503 | 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2504 | ||
2505 | Code cleanup: C++ify .gdb_index producer. | |
2506 | * dwarf2read.c: Include <unordered_set> and <unordered_map>. | |
2507 | (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type. | |
2508 | (struct strtab_entry, hash_strtab_entry, eq_strtab_entry) | |
2509 | (create_strtab, add_string): Remove. | |
2510 | (file_write, data_buf): New. | |
2511 | (struct symtab_index_entry): Use std::vector for cu_indices. | |
2512 | (struct mapped_symtab): Use std::vector for data. | |
2513 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry) | |
2514 | (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab): | |
2515 | Remove. | |
2516 | (find_slot): Change return type. Update it to the new data structures. | |
2517 | (hash_expand, add_index_entry): Update it to the new data structures. | |
2518 | (offset_type_compare): Remove. | |
2519 | (uniquify_cu_indices): Update it to the new data structures. | |
2520 | (c_str_view, c_str_view_hasher, vector_hasher): New. | |
2521 | (add_indices_to_cpool): Remove. | |
2522 | (write_hash_table): Update it to the new data structures. | |
2523 | (struct psymtab_cu_index_map, hash_psymtab_cu_index) | |
2524 | (eq_psymtab_cu_index): Remove. | |
2525 | (psym_index_map): New typedef. | |
2526 | (struct addrmap_index_data): Change addr_obstack pointer to data_buf | |
2527 | reference and std::unordered_map for cu_index_htab. | |
2528 | (add_address_entry, add_address_entry_worker, write_address_map) | |
2529 | (write_psymbols): Update it to the new data structures. | |
2530 | (write_obstack): Remove. | |
2531 | (struct signatured_type_index_data): Change types_list to a data_buf | |
2532 | reference and psyms_seen to a std::unordered_set reference. | |
2533 | (write_one_signatured_type, recursively_write_psymbols) | |
2534 | (write_psymtabs_to_index): Update it to the new data structures. | |
2535 | ||
c4dcb155 SM |
2536 | 2017-06-11 Simon Marchi <simon.marchi@ericsson.com> |
2537 | ||
2538 | * NEWS (Changes since GDB 8.0): Announce {set,show} debug | |
2539 | separate-debug-file commands. | |
2540 | * symfile.h (separate_debug_file_debug): New global. | |
2541 | * symfile.c (separate_debug_file_debug): New global. | |
2542 | (separate_debug_file_exists, find_separate_debug_file): Add | |
2543 | debug output. | |
2544 | (_initialize_symfile): Add "set debug separate-debug-file" | |
2545 | command. | |
2546 | * build-id.c (build_id_to_debug_bfd, | |
2547 | find_separate_debug_file_by_buildid): Add debug output. | |
2548 | ||
6d45d4b4 SM |
2549 | 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca> |
2550 | ||
2551 | * gdbarch.sh (displaced_step_free_closure): Remove. | |
2552 | * gdbarch.h, gdbarch.c: Re-generate. | |
2553 | * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set | |
2554 | displaced_step_free_closure. | |
2555 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise. | |
2556 | * arm-linux-tdep.c (arm_linux_init_abi): Likewise. | |
2557 | * i386-linux-tdep.c (i386_linux_init_abi): Likewise. | |
2558 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
2559 | * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. | |
2560 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
2561 | * arch-utils.h (simple_displaced_step_free_closure): Remove. | |
2562 | * arch-utils.c (simple_displaced_step_free_closure): Remove. | |
2563 | * infrun.c (displaced_step_clear): Call xfree instead of | |
2564 | gdbarch_displaced_step_free_closure. | |
2565 | ||
2f91880f SDJ |
2566 | 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com> |
2567 | ||
2568 | * common/common-utils.c (stringify_argv): Check for "arg[0] != | |
2569 | NULL". | |
2570 | ||
b8b6e72f AH |
2571 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2572 | ||
2573 | * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add. | |
2574 | (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE. | |
2575 | (mn10300_push_dummy_call): Likewise. | |
2576 | ||
5369082e AH |
2577 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2578 | ||
2579 | * mi/mi-main.c (register_changed_p): Use value_contents_eq. | |
2580 | ||
ff4ca5ac AH |
2581 | 2017-06-08 Alan Hayward <alan.hayward@arm.com> |
2582 | ||
2583 | * mi/mi-main.c (register_changed_p): Use cooked_read_value. | |
2584 | ||
aefd8b33 SDJ |
2585 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2586 | ||
2587 | * NEWS (Changes since GDB 8.0): Announce that GDBserver is now | |
2588 | able to start inferiors using a shell. | |
2589 | (New remote packets): Announce new packet "QStartupWithShell". | |
2590 | * remote.c: Add PACKET_QStartupWithShell. | |
2591 | (extended_remote_create_inferior): Handle new | |
2592 | PACKET_QStartupWithShell. | |
2593 | (remote_protocol_features) <QStartupWithShell>: New entry for | |
2594 | PACKET_QStartupWithShell. | |
2595 | (_initialize_remote): Call "add_packet_config_cmd" for | |
2596 | QStartupShell. | |
2597 | ||
2090129c SDJ |
2598 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2599 | Pedro Alves <palves@redhat.com> | |
2600 | ||
2601 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h" | |
2602 | and "nat/fork-inferior.h". | |
2603 | * common/common-inferior.h: New file, with contents from | |
2604 | "gdb/inferior.h". | |
2605 | * commom/common-utils.c: Include "common-utils.h". | |
2606 | (stringify_argv): New function. | |
2607 | * common/common-utils.h (stringify_argv): New prototype. | |
2608 | * configure.nat: Add "fork-inferior.o" as a dependency for | |
2609 | "*linux*", "fbsd*" and "nbsd*" hosts. | |
2610 | * corefile.c (get_exec_file): Update comment. | |
2611 | * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior" | |
2612 | instead of "startup_inferior". | |
2613 | (darwin_create_inferior): Call "add_thread_silent" after | |
2614 | "fork_inferior". | |
2615 | * fork-child.c: Cleanup unnecessary includes. | |
2616 | (SHELL_FILE): Move to "common/common-fork-child.c". | |
2617 | (environ): Likewise. | |
2618 | (exec_wrapper): Initialize. | |
2619 | (get_exec_wrapper): New function. | |
2620 | (breakup_args): Move to "common/common-fork-child.c"; rename to | |
2621 | "breakup_args_for_exec". | |
2622 | (escape_bang_in_quoted_argument): Move to | |
2623 | "common/common-fork-child.c". | |
2624 | (saved_ui): New variable. | |
2625 | (prefork_hook): New function. | |
2626 | (postfork_hook): Likewise. | |
2627 | (postfork_child_hook): Likewise. | |
2628 | (gdb_startup_inferior): Likewise. | |
2629 | (fork_inferior): Move to "common/common-fork-child.c". Update | |
2630 | function to support gdbserver. | |
2631 | (startup_inferior): Likewise. | |
2632 | * gdbcore.h (get_exec_file): Remove declaration. | |
2633 | * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior" | |
2634 | instead of "startup_inferior". Call "add_thread_silent" after | |
2635 | "fork_inferior". | |
2636 | * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h". | |
2637 | (inf_ptrace_create_inferior): Call "gdb_startup_inferior" | |
2638 | instead of "startup_inferior". Call "add_thread_silent" after | |
2639 | "fork_inferior". | |
2640 | * inferior.h: Include "common-inferior.h". | |
2641 | (trace_start_error): Move to "common/common-utils.h". | |
2642 | (trace_start_error_with_name): Likewise. | |
2643 | (fork_inferior): Move prototype to "nat/fork-inferior.h". | |
2644 | (startup_inferior): Likewise. | |
2645 | (gdb_startup_inferior): New prototype. | |
2646 | * nat/fork-inferior.c: New file, with contents from "fork-child.c". | |
2647 | * nat/fork-inferior.h: New file. | |
2648 | * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior" | |
2649 | instead of "startup_inferior". Call "add_thread_silent" after | |
2650 | "fork_inferior". | |
2651 | * target.h (target_terminal_init): Move prototype to | |
2652 | "target/target.h". | |
2653 | (target_terminal_inferior): Likewise. | |
2654 | (target_terminal_ours): Likewise. | |
2655 | * target/target.h (target_terminal_init): New prototype, moved | |
2656 | from "target.h". | |
2657 | (target_terminal_inferior): Likewise. | |
2658 | (target_terminal_ours): Likewise. | |
2659 | * utils.c (gdb_flush_out_err): New function. | |
2660 | ||
043a4934 SDJ |
2661 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2662 | ||
2663 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h". | |
2664 | * common/common-gdbthread.h: New file, with parts from | |
2665 | "gdb/gdbthread.h". | |
2666 | * gdbthread.h: Include "common-gdbthread.h". | |
2667 | (switch_to_thread): Moved to "common/common-gdbthread.h". | |
2668 | ||
15652511 SDJ |
2669 | 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com> |
2670 | ||
2671 | * Makefile.in (SFILES): Add "common/job-control.c". | |
2672 | (HFILES_NO_SRCDIR): Add "common/job-control.h". | |
2673 | (COMMON_OBS): Add "job-control.o". | |
2674 | * common/job-control.c: New file, with contents from | |
2675 | "gdb/inflow.c". | |
2676 | * common/job-control.h: New file, with contents from "terminal.h". | |
2677 | * fork-child.c: Include "job-control.h". | |
2678 | * inflow.c: Include "job-control.h". | |
2679 | (gdb_setpgid): Move to "common/common-inflow.c". | |
2680 | (_initialize_inflow): Move setting of "job_control" to | |
2681 | "handle_job_control". | |
2682 | * terminal.h (job_control): Moved to "common/common-terminal.h". | |
2683 | (gdb_setpgid): Likewise. | |
2684 | * top.c: Include "job_control.h". | |
2685 | * utils.c: Likewise. | |
2686 | (job_control): Moved to "job-control.c". | |
2687 | ||
2d7cc5c7 PA |
2688 | 2017-06-07 Pedro Alves <palves@redhat.com> |
2689 | ||
2690 | * Makefile.in (SFILES): Add gdb_regex.c. | |
2691 | (COMMON_OBS): Add gdb_regex.o. | |
2692 | * ada-lang.c (ada_add_standard_exceptions) | |
2693 | (ada_add_exceptions_from_frame, name_matches_regex) | |
2694 | (ada_add_global_exceptions, ada_exceptions_list_1): Change regex | |
2695 | parameter type to compiled_regex. Adjust. | |
2696 | (ada_exceptions_list): Use compiled_regex. | |
2697 | * break-catch-throw.c (exception_catchpoint::pattern): Now a | |
2698 | std::unique_ptr<compiled_regex>. | |
2699 | (exception_catchpoint::~exception_catchpoint): Remove regfree | |
2700 | call. | |
2701 | (check_status_exception_catchpoint): Adjust to use compiled_regex. | |
2702 | (handle_gnu_v3_exceptions): Adjust to use compiled_regex. | |
2703 | * breakpoint.c (solib_catchpoint::compiled): Now a | |
2704 | std::unique_ptr<compiled_regex>. | |
2705 | (solib_catchpoint::~solib_catchpoint): Remove regfree call. | |
2706 | (check_status_catch_solib): Adjust to use compiled_regex. | |
2707 | (add_solib_catchpoint): Adjust to use compiled_regex. | |
2708 | * cli/cli-cmds.c (apropos_command): Use compiled_regex. | |
2709 | * cli/cli-decode.c (apropos_cmd): Change regex parameter to | |
2710 | compiled_regex reference. Adjust to use it. | |
2711 | * cli/cli-decode.h: Remove struct re_pattern_buffer forward | |
2712 | declaration. Include "gdb_regex.h". | |
2713 | (apropos_cmd): Change regex parameter to compiled_regex reference. | |
2714 | * gdb_regex.c: New file. | |
2715 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete | |
2716 | declarations. | |
2717 | (class compiled_regex): New. | |
2718 | * linux-tdep.c: Include "common/gdb_optional.h". | |
2719 | (struct mapping_regexes): New, factored out from | |
2720 | mapping_is_anonymous_p, and adjusted to use compiled_regex. | |
2721 | (mapping_is_anonymous_p): Use mapping_regexes wrapped in a | |
2722 | gdb::optional and remove cleanups. Adjust to compiled_regex. | |
2723 | * probe.c: Include "common/gdb_optional.h". | |
2724 | (collect_probes): Use compiled_regex and gdb::optional and remove | |
2725 | cleanups. | |
2726 | * skip.c: Include "common/gdb_optional.h". | |
2727 | (skiplist_entry::compiled_function_regexp): Now a | |
2728 | gdb::optional<compiled_regex>. | |
2729 | (skiplist_entry::compiled_function_regexp_is_valid): Delete field. | |
2730 | (free_skiplist_entry): Remove regfree call. | |
2731 | (compile_skip_regexp, skip_rfunction_p): Adjust to use | |
2732 | compiled_regex and gdb::optional. | |
2733 | * symtab.c: Include "common/gdb_optional.h". | |
2734 | (search_symbols): Use compiled_regex and gdb::optional. | |
2735 | * utils.c (do_regfree_cleanup, make_regfree_cleanup) | |
2736 | (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved | |
2737 | to gdb_regex.c. | |
2738 | ||
50d6adef AH |
2739 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2740 | ||
2741 | * regcache.c (regcache::save): Avoid buffer use. | |
2742 | (regcache::dump): Likewise. | |
2743 | ||
4a8a33c8 AH |
2744 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2745 | ||
2746 | * sh-tdep.c (sh_pseudo_register_read): Remove | |
2747 | MAX_REGISTER_SIZE. | |
2748 | (sh_pseudo_register_write): Likewise. | |
2749 | * sh64-tdep.c (sh64_pseudo_register_read): Likewise. | |
2750 | (sh64_pseudo_register_write): Likewise | |
2751 | ||
d1be909e AH |
2752 | 2017-06-07 Alan Hayward <alan.hayward@arm.com> |
2753 | ||
2754 | * aarch64-tdep.c (aarch64_store_return_value): Use | |
2755 | V_REGISTER_SIZE. | |
2756 | (aarch64_pseudo_read_value): Likewise. | |
2757 | (aarch64_pseudo_write): Likewise. | |
2758 | ||
f4a65042 YQ |
2759 | 2017-06-06 Yao Qi <yao.qi@linaro.org> |
2760 | ||
2761 | * regformats/regdef.h (set_register_cache): Remove the | |
2762 | declaration. | |
2763 | ||
9f7fb0aa AH |
2764 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2765 | ||
2766 | * frame.c (frame_unwind_register_signed): Use | |
2767 | frame_unwind_register_value. | |
2768 | ||
e1e01040 PA |
2769 | 2017-06-06 Pedro Alves <palves@redhat.com> |
2770 | ||
2771 | PR breakpoints/21553 | |
2772 | * breakpoint.c (create_breakpoints_sal_default) | |
2773 | (init_breakpoint_sal, create_breakpoint_sal): Use | |
2774 | gdb::unique_xmalloc_ptr for string parameters. | |
2775 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
2776 | parameters. Replace cleanups with gdb::unique_xmalloc_ptr. | |
2777 | (base_breakpoint_create_breakpoints_sal) | |
2778 | (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal) | |
2779 | (strace_marker_create_breakpoints_sal) | |
2780 | (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for | |
2781 | string parameters. | |
2782 | * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use | |
2783 | gdb::unique_xmalloc_ptr for string parameters. | |
2784 | (create_breakpoint): Constify 'extra_string' and 'cond_string' | |
2785 | parameters. | |
2786 | ||
fbe654c8 AH |
2787 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2788 | ||
2789 | * alpha-tdep.c (alpha_register_to_value): Use | |
2790 | get_frame_register_value. | |
2791 | (alpha_value_to_register): Use ALPHA_REGISTER_SIZE. | |
2792 | ||
ae0d01d6 AH |
2793 | 2017-06-06 Alan Hayward <alan.hayward@arm.com> |
2794 | ||
2795 | * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add. | |
2796 | (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE. | |
2797 | (ia64_value_to_register): Likewise. | |
2798 | (ia64_extract_return_value): Likewise. | |
2799 | (ia64_store_return_value): Likewise. | |
2800 | (ia64_push_dummy_call): Likewise. | |
2801 | ||
49cf576c JB |
2802 | 2017-06-04 Joel Brobecker <brobecker@adacore.com> |
2803 | ||
2804 | GDB 8.0 released. | |
2805 | ||
26b6a6ab SM |
2806 | 2017-06-03 Simon Marchi <simon.marchi@ericsson.com> |
2807 | ||
2808 | * x86-linux-nat.c (struct arch_lwp_info): Remove. | |
2809 | ||
22827c51 SM |
2810 | 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca> |
2811 | ||
2812 | * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST | |
2813 | parameter. | |
2814 | (linux_nat_attach): Adjust call to linux_nat_post_attach_wait. | |
2815 | ||
0e05cf3a SM |
2816 | 2017-06-02 Simon Marchi <simon.marchi@ericsson.com> |
2817 | ||
2818 | * event-loop.c (poll_timers): Unallocate timer using delete | |
2819 | instead of xfree. | |
2820 | ||
c1fc2657 SM |
2821 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2822 | ||
2823 | * breakpoint.h (struct breakpoint_ops) <dtor>: Remove. | |
2824 | (struct breakpoint) <~breakpoint>: New. | |
2825 | (struct watchpoint): Inherit from breakpoint. | |
2826 | <~watchpoint>: New. | |
2827 | <base>: Remove. | |
2828 | (struct tracepoint): Inherit from breakpoint. | |
2829 | <base>: Remove. | |
2830 | * breakpoint.c (longjmp_breakpoint_ops): Remove. | |
2831 | (struct longjmp_breakpoint): Inherit from breakpoint. | |
2832 | <~longjmp_breakpoint>: New. | |
2833 | <base>: Remove. | |
2834 | (new_breakpoint_from_type): Remove casts. | |
2835 | (watchpoint_in_thread_scope): Remove reference to base field. | |
2836 | (watchpoint_del_at_next_stop): Likewise. | |
2837 | (update_watchpoint): Likewise. | |
2838 | (watchpoint_check): Likewise. | |
2839 | (bpstat_check_watchpoint): Likewise. | |
2840 | (set_longjmp_breakpoint): Likewise. | |
2841 | (struct fork_catchpoint): Inherit from breakpoint. | |
2842 | <base>: Remove. | |
2843 | (struct solib_catchpoint): Inherit from breakpoint. | |
2844 | <~solib_catchpoint>: New. | |
2845 | <base>: Remove. | |
2846 | (dtor_catch_solib): Change to ... | |
2847 | (solib_catchpoint::~solib_catchpoint): ... this. | |
2848 | (breakpoint_hit_catch_solib): Remove reference to base field. | |
2849 | (add_solib_catchpoint): Likewise. | |
2850 | (create_fork_vfork_event_catchpoint): Likewise. | |
2851 | (struct exec_catchpoint): Inherit from breakpoint. | |
2852 | <~exec_catchpoint>: New. | |
2853 | <base>: Remove. | |
2854 | (dtor_catch_exec): Change to ... | |
2855 | (exec_catchpoint::~exec_catchpoint): ... this. | |
2856 | (dtor_watchpoint): Change to ... | |
2857 | (watchpoint::~watchpoint): ... this. | |
2858 | (watch_command_1): Remove reference to base field. | |
2859 | (catch_exec_command_1): Likewise. | |
2860 | (base_breakpoint_dtor): Change to ... | |
2861 | (breakpoint::~breakpoint): ... this. | |
2862 | (base_breakpoint_ops): Remove dtor field value. | |
2863 | (longjmp_bkpt_dtor): Change to ... | |
2864 | (longjmp_breakpoint::~longjmp_breakpoint): ... this. | |
2865 | (strace_marker_create_breakpoints_sal): Remove reference to base | |
2866 | field. | |
2867 | (delete_breakpoint): Don't manually call breakpoint destructor. | |
2868 | (create_tracepoint_from_upload): Remove reference to base field. | |
2869 | (trace_pass_set_count): Likewise. | |
2870 | (initialize_breakpoint_ops): Don't initialize | |
2871 | momentary_breakpoint_ops, don't set dtors. | |
2872 | * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint. | |
2873 | <~ada_catchpoint>: New. | |
2874 | <base>: Remove. | |
2875 | (create_excep_cond_exprs): Remove reference to base field. | |
2876 | (dtor_exception): Change to ... | |
2877 | (ada_catchpoint::~ada_catchpoint): ... this. | |
2878 | (dtor_catch_exception): Remove. | |
2879 | (dtor_catch_exception_unhandled): Remove. | |
2880 | (dtor_catch_assert): Remove. | |
2881 | (create_ada_exception_catchpoint): Remove reference to base | |
2882 | field. | |
2883 | (initialize_ada_catchpoint_ops): Don't set dtors. | |
2884 | * break-catch-sig.c (struct signal_catchpoint): Inherit from | |
2885 | breakpoint. | |
2886 | <~signal_catchpoint>: New. | |
2887 | <base>: Remove. | |
2888 | (signal_catchpoint_dtor): Change to ... | |
2889 | (signal_catchpoint::~signal_catchpoint): ... this. | |
2890 | (create_signal_catchpoint): Remove reference to base field. | |
2891 | (initialize_signal_catchpoint_ops): Don't set dtor. | |
2892 | * break-catch-syscall.c (struct syscall_catchpoint): Inherit | |
2893 | from breakpoint. | |
2894 | <~syscall_catchpoint>: New. | |
2895 | <base>: Remove. | |
2896 | (dtor_catch_syscall): Change to ... | |
2897 | (syscall_catchpoint::~syscall_catchpoint): ... this. | |
2898 | (create_syscall_event_catchpoint): Remove reference to base | |
2899 | field. | |
2900 | (initialize_syscall_catchpoint_ops): Don't set dtor. | |
2901 | * break-catch-throw.c (struct exception_catchpoint): Inherit | |
2902 | from breakpoint. | |
2903 | <~exception_catchpoint>: New. | |
2904 | <base>: Remove. | |
2905 | (dtor_exception_catchpoint): Change to ... | |
2906 | (exception_catchpoint::~exception_catchpoint): ... this. | |
2907 | (handle_gnu_v3_exceptions): Remove reference to base field. | |
2908 | (initialize_throw_catchpoint_ops): Don't set dtor. | |
2909 | * ctf.c (ctf_get_traceframe_address): Remove reference to base | |
2910 | field. | |
2911 | * remote.c (remote_get_tracepoint_status): Likewise. | |
2912 | * tracefile-tfile.c (tfile_get_traceframe_address): Likewise. | |
2913 | * tracefile.c (tracefile_fetch_registers): Likewise. | |
2914 | * tracepoint.c (actions_command): Likewise. | |
2915 | (validate_actionline): Likewise. | |
2916 | (tfind_1): Likewise. | |
2917 | (get_traceframe_location): Likewise. | |
2918 | (find_matching_tracepoint_location): Likewise. | |
2919 | (parse_tracepoint_status): Likewise. | |
2920 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise. | |
2921 | ||
3b0871f4 SM |
2922 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2923 | ||
2924 | * breakpoint.c (struct longjmp_breakpoint): New struct. | |
2925 | (is_tracepoint_type): Change return type to bool. | |
2926 | (is_longjmp_type): New function. | |
2927 | (new_breakpoint_from_type): Handle longjmp kinds of breakpoints. | |
2928 | (set_raw_breakpoint_without_location): Use | |
2929 | new_breakpoint_from_type. | |
2930 | (set_raw_breakpoint): Likewise. | |
2931 | ||
a5e364af SM |
2932 | 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca> |
2933 | ||
2934 | * breakpoint.c (new_breakpoint_from_type): New function. | |
2935 | (create_breakpoint_sal): Use new_breakpoint_from_type and | |
2936 | unique_ptr. | |
2937 | (create_breakpoint): Likewise. | |
2938 | ||
ae3b3f34 SM |
2939 | 2017-05-31 Simon Marchi <simon.marchi@ericsson.com> |
2940 | ||
2941 | * memattr.c (mem_info_command): Rename to ... | |
2942 | (info_mem_command): ... this. | |
2943 | (mem_enable_command): Rename to ... | |
2944 | (enable_mem_command): ... this. | |
2945 | (mem_disable_command): Rename to ... | |
2946 | (disable_mem_command): ... this. | |
2947 | (mem_delete_command): Rename to ... | |
2948 | (delete_mem_command): ... this. | |
2949 | (_initialize_mem): Adjust function names. | |
2950 | ||
13ace077 MM |
2951 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
2952 | ||
2953 | * btrace.c (handle_pt_insn_events): New. | |
2954 | (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into | |
2955 | STATUS. Split into this and ... | |
2956 | (handle_pt_insn_event_flags): ... this. | |
2957 | ||
c56ccc05 MM |
2958 | 2017-05-31 Markus Metzger <markus.t.metzger@intel.com> |
2959 | ||
2960 | * configure.ac: Check for pt_insn_event, struct pt_insn.enabled, | |
2961 | and struct pt_insn.resynced. | |
2962 | * configure: Regenerated. | |
2963 | * config.in: Regenerated. | |
2964 | ||
08c3f6d2 TW |
2965 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2966 | ||
2967 | * btrace.c (ftrace_find_call_by_number): New function. | |
2968 | (ftrace_new_function): Store objects, not pointers. | |
2969 | (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch, | |
2970 | ftrace_new_gap, ftrace_update_function, | |
2971 | ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear, | |
2972 | btrace_insn_get, btrace_insn_get_error, btrace_insn_end, | |
2973 | btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number, | |
2974 | btrace_ends_with_single_insn, btrace_call_get): Account for | |
2975 | btrace_thread_info::functions now storing objects. | |
2976 | * btrace.h (struct btrace_thread_info): Add constructor. | |
2977 | (struct btrace_thread_info) <functions>: Make std::vector. | |
2978 | (struct btrace_thread_info) <prev, next, up, insn, errcode, flags): | |
2979 | Initialize with default values. | |
2980 | * record-btrace.c (record_btrace_frame_sniffer): Account for | |
2981 | btrace_thread_info::functions now storing objects. | |
2982 | ||
8ffd39f2 TW |
2983 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2984 | ||
2985 | * btrace.c: Remove typedef bfun_s. | |
2986 | (ftrace_new_gap): Directly add gaps to the list of gaps. | |
2987 | (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags, | |
2988 | ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1, | |
2989 | btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector | |
2990 | instead of gdb VEC. | |
2991 | ||
4aeb0dfc TW |
2992 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
2993 | ||
2994 | * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun, | |
2995 | ftrace_bridge_gap): Replace references to btrace_thread_info::segment | |
2996 | with btrace_thread_info::next_segment and | |
2997 | btrace_thread_info::prev_segment. | |
2998 | * btrace.h: Remove struct btrace_func_link. | |
2999 | (struct btrace_function): Replace pair of function segment pointers | |
3000 | with pair of indices. | |
3001 | * python/py-record-btrace.c (btpy_call_prev_sibling, | |
3002 | btpy_call_next_sibling): Replace references to | |
3003 | btrace_thread_info::segment with btrace_thread_info::next_segment and | |
3004 | btrace_thread_info::prev_segment. | |
3005 | * record-btrace.c (record_btrace_frame_this_id): Use | |
3006 | btrace_find_call_by_number. | |
3007 | ||
eb8f2b9c TW |
3008 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3009 | ||
3010 | * btrace.c (ftrace_new_function, ftrace_fixup_level, | |
3011 | ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps, | |
3012 | btrace_insn_next, btrace_insn_prev): Remove references to | |
3013 | btrace_thread_info::flow. | |
3014 | * btrace.h (struct btrace_function): Remove FLOW. | |
3015 | ||
42bfe59e TW |
3016 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3017 | ||
3018 | * btrace.c (ftrace_find_call_by_number): New function. | |
3019 | (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall, | |
3020 | ftrace_get_caller, ftrace_find_call, ftrace_new_return, | |
3021 | ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace, | |
3022 | ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an | |
3023 | index. | |
3024 | * btrace.h (struct btrace_function): Turn UP into an index. | |
3025 | * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up | |
3026 | as an index. | |
3027 | * record-btrace.c (record_btrace_frame_unwind_stop_reason, | |
3028 | record_btrace_frame_prev_register, record_btrace_frame_sniffer, | |
3029 | record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number. | |
3030 | ||
b54b03bd TW |
3031 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3032 | ||
3033 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
3034 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
3035 | ftrace_update_function, ftrace_compute_global_level_offset, | |
3036 | btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt, | |
3037 | btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number, | |
3038 | btrace_insn_end, btrace_is_empty): Remove references to | |
3039 | btrace_thread_info::begin and btrace_thread_info::end. | |
3040 | * btrace.h (struct btrace_thread_info): Remove BEGIN and END. | |
3041 | (struct btrace_thread_info) <functions>: Adjust comment. | |
3042 | * record-btrace.c (record_btrace_start_replaying): Remove reference to | |
3043 | btrace_thread_info::begin. | |
3044 | ||
8286623c TW |
3045 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3046 | ||
3047 | * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall, | |
3048 | ftrace_new_return, ftrace_new_switch, ftrace_new_gap, | |
3049 | ftrace_update_function): Remove arguments that implicitly were always | |
3050 | BTINFO->END. | |
3051 | (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt): | |
3052 | Don't pass BTINFO->END. | |
3053 | ||
a0f1b963 TW |
3054 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3055 | ||
3056 | * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number, | |
3057 | btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev, | |
3058 | btrace_find_insn_by_number): Replace function segment pointer with | |
3059 | index. | |
3060 | (btrace_insn_cmp): Simplify. | |
3061 | * btrace.h: (struct btrace_insn_iterator) Rename index to | |
3062 | insn_index. Replace function segment pointer with index into function | |
3063 | segment vector. | |
3064 | * record-btrace.c (record_btrace_call_history): Replace function | |
3065 | segment pointer use with index. | |
3066 | (record_btrace_frame_sniffer): Retrieve function call segment through | |
3067 | vector. | |
3068 | (record_btrace_set_replay): Remove defunc't safety check. | |
3069 | ||
f158f208 TW |
3070 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3071 | ||
3072 | * btrace.c (btrace_ends_with_single_insn): New function. | |
3073 | (btrace_call_get, btrace_call_number, btrace_call_begin, | |
3074 | btrace_call_end, btrace_call_next, btrace_call_prev, | |
3075 | btrace_find_call_by_number): Use index into call segment vector | |
3076 | instead of pointer. | |
3077 | (btrace_call_cmp): Simplify. | |
3078 | * btrace.h (struct btrace_call_iterator): Replace function call segment | |
3079 | pointer with index into vector. | |
3080 | * record-btrace.c (record_btrace_call_history): Use index instead of | |
3081 | pointer. | |
3082 | ||
521103fd TW |
3083 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3084 | ||
3085 | * btrace.c (btrace_insn_begin, btrace_insn_end, | |
3086 | btrace_find_insn_by_number): Add btinfo to iterator. | |
3087 | * btrace.h (struct btrace_insn_iterator): Add btinfo. | |
3088 | ||
17b89b34 TW |
3089 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3090 | ||
3091 | * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments | |
3092 | and save pointers directly. | |
3093 | (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return, | |
3094 | ftrace_new_switch, ftrace_new_gap, ftrace_update_function, | |
3095 | ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for | |
3096 | changed signature of functions. | |
3097 | (btrace_compute_ftrace_pt): Adjust for changed signature of functions. | |
3098 | (btrace_fetch): Remove code that adds btrace_function pointers to | |
3099 | vector of btrace_functions. | |
3100 | (btrace_clear): Simplify freeing vector of btrace_functions. | |
3101 | ||
2b51eddc TW |
3102 | 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com> |
3103 | ||
3104 | * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number): | |
3105 | Replace VEC_* with std::vector functions. | |
3106 | * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P. | |
3107 | (struct btrace_thread_info)<functions>: Change type to std::vector. | |
3108 | ||
db6be0d5 SM |
3109 | 2017-05-30 Simon Marchi <simon.marchi@ericsson.com> |
3110 | ||
3111 | * NEWS (Changes in GDB 8.0): Remove extra empty line. Move | |
3112 | "Removed targets and native configurations" up. Merge duplicate | |
3113 | "New commands" sub-sections. Add "New options" sub-sections. | |
3114 | ||
b057297a AH |
3115 | 2017-05-26 Alan Hayward <alan.hayward@arm.com> |
3116 | ||
3117 | * defs.h (copy_integer_to_size): New declaration. | |
3118 | * findvar.c (copy_integer_to_size): New function. | |
3119 | (do_cint_test): New selftest function. | |
3120 | (copy_integer_to_size_test): Likewise. | |
3121 | (_initialize_findvar): Likewise. | |
3122 | * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer. | |
3123 | (mips_fbsd_collect_reg): Use raw_collect_integer. | |
3124 | * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer. | |
3125 | (mips64_fill_gregset): Use raw_collect_integer | |
3126 | (mips64_fill_fpregset): Use raw_supply_integer. | |
3127 | * regcache.c (regcache::raw_supply_integer): New function. | |
3128 | (regcache::raw_collect_integer): Likewise. | |
3129 | * regcache.h: (regcache::raw_supply_integer): New declaration. | |
3130 | (regcache::raw_collect_integer): Likewise. | |
3131 | ||
b77b02a5 YQ |
3132 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3133 | ||
3134 | * Makefile.in (SFILES): Add gdbarch-selftests.c. | |
3135 | (COMMON_OBS): Add gdbarch-selftests.o. | |
3136 | * frame.c [GDB_SELF_TESTS] (create_new_frame): New function. | |
3137 | * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare. | |
3138 | * gdbarch-selftests.c: New file. | |
3139 | * regcache.h (regcache) <~regcache>: Mark it virtual if | |
3140 | GDB_SELF_TEST. | |
3141 | <raw_write>: Likewise. | |
3142 | ||
e521e87e YQ |
3143 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3144 | ||
3145 | * regcache.c (current_regcache): Change it to | |
3146 | regcache::current_regcache. | |
3147 | (regcache_observer_target_changed): Update. | |
3148 | (regcache_thread_ptid_changed): Make it a regcache static | |
3149 | method. | |
3150 | (regcache_thread_ptid_changed): Update. | |
3151 | (class regcache_access): New. | |
3152 | (current_regcache_test): Update. | |
3153 | (_initialize_regcache): Update. | |
3154 | * regcache.h: Include forward_list. | |
3155 | (regcache): Declare regcache_thread_ptid_changed and declare | |
3156 | registers_changed_ptid as friend. | |
3157 | ||
d8e07dda YQ |
3158 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3159 | ||
3160 | * i387-tdep.c (i387_register_to_value): Use register_size | |
3161 | instead of TYPE_LENGTH. | |
3162 | * m68k-tdep.c (m68k_register_to_value): Likewise. | |
3163 | ||
8c8f9122 YQ |
3164 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3165 | ||
3166 | * i387-tdep.c (i387_convert_register_p): Return false if type | |
3167 | code isn't TYPE_CODE_FLT. | |
3168 | ||
68fce50f YQ |
3169 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3170 | ||
3171 | * alpha-tdep.c (alpha_convert_register_p): Return true if type | |
3172 | length is 4. | |
3173 | (alpha_register_to_value): Remove type length check. | |
3174 | (alpha_value_to_register): Likewise. | |
3175 | ||
88954b49 YQ |
3176 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3177 | ||
3178 | * ia64-tdep.c (ia64_convert_register_p): Check type's code is | |
3179 | TYPE_CODE_FLT. | |
3180 | ||
e3ec9b69 YQ |
3181 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3182 | ||
3183 | * m68k-tdep.c (m68k_convert_register_p): Check type's code is | |
3184 | TYPE_CODE_FLT or not. | |
3185 | ||
cdd238da YQ |
3186 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3187 | ||
3188 | * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW. | |
3189 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
3190 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
3191 | * cris-tdep.c (cris_gdbarch_init): Likewise. | |
3192 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
3193 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
3194 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
3195 | * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise. | |
3196 | * mep-tdep.c (mep_gdbarch_init): Likewise. | |
3197 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
3198 | * mips-tdep.c (mips_gdbarch_init): Likewise. | |
3199 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
3200 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
3201 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
3202 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
3203 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
3204 | ||
7a3929c4 YQ |
3205 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3206 | ||
3207 | * selftest-arch.c (tests_with_arch): Call registers_changed | |
3208 | and reinit_frame_cache. | |
3209 | * selftest.c (run_self_tests): Likewise. | |
3210 | ||
f4985dba YQ |
3211 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3212 | ||
3213 | * rs6000-tdep.c (gdb_print_insn_powerpc): Remove. | |
3214 | (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3215 | ||
ab20fa4a YQ |
3216 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3217 | ||
3218 | * rl78-tdep.c (rl78_gdbarch_init): Don't call | |
3219 | set_gdbarch_print_insn. | |
3220 | ||
f532ab94 YQ |
3221 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3222 | ||
3223 | * h8300-tdep.c (h8300_gdbarch_init): Don't call | |
3224 | set_gdbarch_print_insn. | |
3225 | ||
39503f82 YQ |
3226 | 2017-05-24 Yao Qi <yao.qi@linaro.org> |
3227 | ||
3228 | * alpha-tdep.c (alpha_gdbarch_init): Don't call | |
3229 | set_gdbarch_print_insn. | |
3230 | * arc-tdep.c (arc_gdbarch_init): Likewise. | |
3231 | * arch-utils.c: include dis-asm.h. | |
3232 | (default_print_insn): New function. | |
3233 | * arch-utils.h (default_print_insn): Declare. | |
3234 | * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3235 | * bfin-tdep.c (bfin_gdbarch_init): Likewise. | |
3236 | * cris-tdep.c (cris_delayed_get_disassembler): Remove. | |
3237 | (cris_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3238 | * frv-tdep.c (frv_gdbarch_init): Likewise. | |
3239 | * ft32-tdep.c (ft32_gdbarch_init): Likewise. | |
3240 | * gdbarch.sh (print_insn): Use default_print_insn. | |
3241 | * gdbarch.c: Regenerated. | |
3242 | * hppa-tdep.c (hppa_gdbarch_init): Likewise. | |
3243 | * iq2000-tdep.c (iq2000_gdbarch_init): Likewise. | |
3244 | * lm32-tdep.c (lm32_gdbarch_init): Likewise. | |
3245 | * m32c-tdep.c (m32c_gdbarch_init): Likewise. | |
3246 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
3247 | * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove. | |
3248 | (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3249 | * m68k-tdep.c (m68k_gdbarch_init): Likewise. | |
3250 | * m88k-tdep.c (m88k_gdbarch_init): Likewise. | |
3251 | * microblaze-tdep.c (microblaze_gdbarch_init): Likewise. | |
3252 | * mn10300-tdep.c (mn10300_gdbarch_init): Likewise. | |
3253 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
3254 | * msp430-tdep.c (msp430_gdbarch_init): Likewise. | |
3255 | * mt-tdep.c (mt_gdbarch_init): Likewise. | |
3256 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
3257 | * nios2-tdep.c (nios2_print_insn): Remove. | |
3258 | (nios2_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3259 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
3260 | * s390-linux-tdep.c (s390_gdbarch_init): Likewise. | |
3261 | * score-tdep.c (score_print_insn): Remove. | |
3262 | (score_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3263 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
3264 | * sh64-tdep.c (sh64_gdbarch_init): Likewise. | |
3265 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
3266 | * tic6x-tdep.c (tic6x_print_insn): Remove. | |
3267 | (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn. | |
3268 | * tilegx-tdep.c (tilegx_gdbarch_init): Likewise. | |
3269 | * v850-tdep.c (v850_gdbarch_init): Likewise. | |
3270 | * vax-tdep.c (vax_gdbarch_init): Likewise. | |
3271 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
3272 | * xtensa-tdep.c (xtensa_gdbarch_init): Likewise. | |
3273 | ||
f7241d4f JB |
3274 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
3275 | ||
3276 | * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove. | |
3277 | (MIPS_FP0_REGNUM): Remove. | |
3278 | (MIPS_FSR_REGNUM): Remove. | |
3279 | (mips_fbsd_supply_fpregs): Use mips_regnum. | |
3280 | (mips_fbsd_supply_gregs): Likewise. | |
3281 | (mips_fbsd_collect_fpregs): Likewise. | |
3282 | (mips_fbsd_collect_gregs): Likewise. | |
3283 | ||
d489d81d JB |
3284 | 2017-05-23 John Baldwin <jhb@FreeBSD.org> |
3285 | ||
3286 | * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison. | |
3287 | (getpfpregs_supplies): New function. | |
3288 | (mips_fbsd_fetch_inferior_registers): Remove early exit and use | |
3289 | getfpregs_supplies. | |
3290 | (mips_fbsd_store_inferior_registers): Likewise. | |
3291 | ||
e11b3cdc PA |
3292 | 2017-05-22 Pedro Alves <palves@redhat.com> |
3293 | ||
3294 | * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD | |
3295 | maintainer. | |
3296 | ||
0f068fb5 AH |
3297 | 2017-05-22 Alan Hayward <alan.hayward@arm.com> |
3298 | ||
3299 | * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE. | |
3300 | (store_register): Likewise. | |
3301 | * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. | |
3302 | (get_decimal_float_return_value): Likewise. | |
3303 | (do_ppc_sysv_return_value): Likewise. | |
3304 | (ppc64_sysv_abi_push_integer): Likewise. | |
3305 | (ppc64_sysv_abi_push_freg): Likewise. | |
3306 | (ppc64_sysv_abi_return_value_base): Likewise. | |
3307 | (ppc64_sysv_abi_return_value): Likewise. | |
3308 | * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. | |
3309 | * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. | |
3310 | * rs6000-nat.c: Likewise. | |
3311 | * rs6000-tdep.c (rs6000_register_to_value): Likewise. | |
3312 | (rs6000_value_to_register): Likewise. | |
3313 | * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add. | |
3314 | ||
e6cf65f2 TT |
3315 | 2017-05-21 Tom Tromey <tom@tromey.com> |
3316 | ||
3317 | PR rust/21466: | |
3318 | * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized | |
3319 | arrays as "[T]", not "[T; ]". | |
3320 | ||
43cc5389 TT |
3321 | 2017-05-19 Tom Tromey <tom@tromey.com> |
3322 | ||
3323 | PR rust/21484: | |
3324 | * rust-lang.c (exp_descriptor_rust): New function. | |
3325 | (rust_language_defn): Use it. | |
3326 | * p-lang.c (pascal_language_defn): Update. | |
3327 | * opencl-lang.c (opencl_language_defn): Update. | |
3328 | * objc-lang.c (objc_language_defn): Update. | |
3329 | * m2-lang.c (m2_language_defn): Update. | |
3330 | * language.h (struct language_defn) | |
3331 | <la_watch_location_expression>: New member. | |
3332 | * language.c (unknown_language_defn, auto_language_defn) | |
3333 | (local_language_defn): Update. | |
3334 | * go-lang.c (go_language_defn): Update. | |
3335 | * f-lang.c (f_language_defn): Update. | |
3336 | * d-lang.c (d_language_defn): Update. | |
3337 | * c-lang.h (c_watch_location_expression): Declare. | |
3338 | * c-lang.c (c_watch_location_expression): New function. | |
3339 | (c_language_defn, cplus_language_defn, asm_language_defn) | |
3340 | (minimal_language_defn): Use it. | |
3341 | * breakpoint.c (watch_command_1): Call | |
3342 | la_watch_location_expression. | |
3343 | * ada-lang.c (ada_language_defn): Update. | |
3344 | ||
7a6e7fcc RO |
3345 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3346 | ||
6e7e1744 RO |
3347 | PR tui/21482 |
3348 | * gdb_curses.h (NOMACROS): Define. | |
3349 | (NCURSES_NOMACROS): Define. | |
3350 | ||
3351 | 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
3352 | ||
3353 | PR tui/21482 | |
7a6e7fcc RO |
3354 | * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr |
3355 | arg to char *. | |
3356 | * tui/tui-wingeneral.c (box_win): Likewise. | |
3357 | * tui/tui-winsource.c (tui_erase_source_content): Likewise. | |
3358 | (tui_show_source_line): Likewise. | |
3359 | (tui_show_exec_info_content): Likewise. | |
3360 | ||
1933fd8e VM |
3361 | 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> |
3362 | ||
3363 | * sparc-tdep.c (sparc_structure_return_p) | |
3364 | (sparc_arg_on_registers_p): New functions. | |
3365 | (sparc32_store_arguments): Use them. | |
3366 | * sparc64-tdep.c (sparc64_16_byte_align_p) | |
3367 | (sparc64_store_floating_fields, sparc64_extract_floating_fields): | |
3368 | Handle TYPE_CODE_ARRAY. | |
3369 | ||
21873064 YQ |
3370 | 2017-05-17 Yao Qi <yao.qi@linaro.org> |
3371 | ||
3372 | * cli/cli-decode.c (add_alias_cmd): New function. | |
3373 | * command.h (add_alias_cmd): Declare. | |
3374 | * infcmd.c (_initialize_infcmd): Don't call add_com_alias, | |
3375 | instead call add_alias_cmd. | |
3376 | ||
2b351b19 PA |
3377 | 2017-05-17 Pedro Alves <palves@redhat.com> |
3378 | ||
3379 | * Makefile.in (nat_extra_makefile_frag): Rename to ... | |
3380 | (nat_makefile_frag): ... this. All references updated. | |
3381 | * configure.ac: Likewise. | |
3382 | * configure.nat: Likewise. Enhance comments. | |
3383 | * configure: Regenerate. | |
3384 | ||
5f2ad7a3 RO |
3385 | 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3386 | ||
3387 | * procfs.c (procfs_create_inferior): Change prototype to match | |
3388 | definition. | |
3389 | ||
adf3dde5 EZ |
3390 | 2017-05-13 Eli Zaretskii <eliz@gnu.org> |
3391 | ||
3392 | * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a | |
3393 | C++ compiler warning. | |
3394 | ||
6830f270 TT |
3395 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3396 | ||
3397 | PR rust/21483: | |
3398 | * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't | |
3399 | recurse, just call value_struct_elt directly. | |
3400 | ||
68f2f2e3 TT |
3401 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3402 | ||
3403 | * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS, | |
3404 | OP_RUST_ARRAY>: Fix. | |
3405 | ||
256afbc2 TT |
3406 | 2017-05-12 Tom Tromey <tom@tromey.com> |
3407 | ||
3408 | * rust-lang.c (rust_print_subexp): Replace "return" with "break". | |
3409 | ||
94bb8dfe YQ |
3410 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
3411 | ||
3412 | * regcache.c: Include <forward_list>. | |
3413 | (struct regcache_list): Remove. | |
3414 | (current_regcache): Update. | |
3415 | (get_thread_arch_aspace_regcache): Update for std::forward_list. | |
3416 | (regcache_thread_ptid_changed): Likewise. | |
3417 | (registers_changed_ptid): Likewise. | |
3418 | (current_regcache_size): Likewise. | |
3419 | ||
8248946c YQ |
3420 | 2017-05-09 Yao Qi <yao.qi@linaro.org> |
3421 | ||
3422 | * regcache.c [GDB_SELF_TEST]: Include selftest.h. | |
3423 | (current_regcache_size): New function. | |
3424 | (current_regcache_test): New function. | |
3425 | (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test. | |
3426 | ||
313c5961 AH |
3427 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3428 | ||
3429 | * mips-tdep.c (mips_o32_return_value): Remove unused buffer. | |
3430 | (print_gp_register_row): Use get_frame_register_value. | |
3431 | ||
27bfc1d1 AH |
3432 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3433 | ||
3434 | * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed. | |
3435 | (mips_supply_fpregset): Likewise. | |
3436 | (mips64_supply_gregset): Likewise. | |
3437 | ||
146e6c5c AH |
3438 | 2017-05-08 Alan Hayward <alan.hayward@arm.com> |
3439 | ||
3440 | * mn10300-linux-tdep.c (am33_supply_gregset_method): Use | |
3441 | regcache->raw_supply_zeroed. | |
3442 | ||
e50f25ec SDJ |
3443 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
3444 | ||
3445 | * configure.nat: Rearrange 'case' statements to match | |
3446 | host before cpu. | |
3447 | ||
21ea5acd SDJ |
3448 | 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
3449 | ||
3450 | * Makefile.in: Remove "@host_makefile_frag@". Add variables | |
3451 | NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS, | |
3452 | NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add | |
3453 | "@nat_extra_makefile_frag@". | |
3454 | (Makefile): Remove dependency on "@frags@". | |
3455 | ($(GNULIB_BUILDDIR)/Makefile): Likewise. | |
3456 | (data-directory/Makefile): Likewise. | |
3457 | * config/aarch64/linux.mh: Deleted; moved contents to | |
3458 | "gdb/configure.nat". | |
3459 | * config/alpha/alpha-linux.mh: Likewise. | |
3460 | * config/alpha/nbsd.mh: Likewise. | |
3461 | * config/arm/linux.mh: Likewise. | |
3462 | * config/arm/nbsdelf.mh: Likewise. | |
3463 | * config/i386/cygwin.mh: Likewise. | |
3464 | * config/i386/cygwin64.mh: Likewise. | |
3465 | * config/i386/darwin.mh: Likewise. | |
3466 | * config/i386/fbsd.mh: Likewise. | |
3467 | * config/i386/fbsd64.mh: Likewise. | |
3468 | * config/i386/go32.mh: Likewise. | |
3469 | * config/i386/i386gnu.mh: Likewise. | |
3470 | * config/i386/i386sol2.mh: Likewise. | |
3471 | * config/i386/linux.mh: Likewise. | |
3472 | * config/i386/linux64.mh: Likewise. | |
3473 | * config/i386/mingw.mh: Likewise. | |
3474 | * config/i386/mingw64.mh: Likewise. | |
3475 | * config/i386/nbsd64.mh: Likewise. | |
3476 | * config/i386/nbsdelf.mh: Likewise. | |
3477 | * config/i386/nto.mh: Likewise. | |
3478 | * config/i386/obsd.mh: Likewise. | |
3479 | * config/i386/obsd64.mh: Likewise. | |
3480 | * config/i386/sol2-64.mh: Likewise. | |
3481 | * config/ia64/linux.mh: Likewise. | |
3482 | * config/m32r/linux.mh: Likewise. | |
3483 | * config/m68k/linux.mh: Likewise. | |
3484 | * config/m68k/nbsdelf.mh: Likewise. | |
3485 | * config/m68k/obsd.mh: Likewise. | |
3486 | * config/m88k/obsd.mh: Likewise. | |
3487 | * config/mips/fbsd.mh: Likewise. | |
3488 | * config/mips/linux.mh: Likewise. | |
3489 | * config/mips/nbsd.mh: Likewise. | |
3490 | * config/mips/obsd64.mh: Likewise. | |
3491 | * config/pa/linux.mh: Likewise. | |
3492 | * config/pa/nbsd.mh: Likewise. | |
3493 | * config/pa/obsd.mh: Likewise. | |
3494 | * config/powerpc/aix.mh: Likewise. | |
3495 | * config/powerpc/fbsd.mh: Likewise. | |
3496 | * config/powerpc/linux.mh: Likewise. | |
3497 | * config/powerpc/nbsd.mh: Likewise. | |
3498 | * config/powerpc/obsd.mh: Likewise. | |
3499 | * config/powerpc/ppc64-linux.mh: Likewise. | |
3500 | * config/powerpc/spu-linux.mh: Likewise. | |
3501 | * config/s390/linux.mh: Likewise. | |
3502 | * config/sh/nbsd.mh: Likewise. | |
3503 | * config/sparc/fbsd.mh: Likewise. | |
3504 | * config/sparc/linux.mh: Likewise. | |
3505 | * config/sparc/linux64.mh: Likewise. | |
3506 | * config/sparc/nbsd64.mh: Likewise. | |
3507 | * config/sparc/nbsdelf.mh: Likewise. | |
3508 | * config/sparc/obsd64.mh: Likewise. | |
3509 | * config/sparc/sol2.mh: Likewise. | |
3510 | * config/tilegx/linux.mh: Likewise. | |
3511 | * config/vax/nbsdelf.mh: Likewise. | |
3512 | * config/vax/obsd.mh: Likewise. | |
3513 | * config/xtensa/linux.mh: Likewise. | |
3514 | * config/i386/i386gnu.mn: New file, with excerpts from | |
3515 | "config/i386/i386gnu.mh". | |
3516 | * configure: Regenerate. | |
3517 | * configure.ac: Rewrite code to use "gdb/configure.nat" instead of | |
3518 | *.mh files under "gdb/config". | |
3519 | * configure.nat: New file, with contents from the | |
3520 | "gdb/config/*/*.mh" files. | |
3521 | ||
7ed1acaf TW |
3522 | 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com> |
3523 | ||
3524 | * btrace.c (btrace_clear): Free insn vector. | |
3525 | ||
e13cb306 PA |
3526 | 2017-05-05 Pedro Alves <palves@redhat.com> |
3527 | ||
3528 | * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized. | |
3529 | * configure: Regenerate. | |
3530 | ||
5ed8105e PA |
3531 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3532 | ||
3533 | * Makefile.in (SFILES): Add progspace-and-thread.c. | |
3534 | (HFILES_NO_SRCDIR): Add progspace-and-thread.h. | |
3535 | (COMMON_OBS): Add progspace-and-thread.o. | |
3536 | * breakpoint.c: Include "progspace-and-thread.h". | |
3537 | (update_inserted_breakpoint_locations) | |
3538 | (insert_breakpoint_locations, create_longjmp_master_breakpoint): | |
3539 | Use scoped_restore_current_pspace_and_thread. | |
3540 | (create_std_terminate_master_breakpoint): Use | |
3541 | scoped_restore_current_program_space. | |
3542 | (remove_breakpoint): Use scoped_restore_current_pspace_and_thread. | |
3543 | (print_breakpoint_location): Use | |
3544 | scoped_restore_current_program_space. | |
3545 | (bp_loc_is_permanent): Use | |
3546 | scoped_restore_current_pspace_and_thread. | |
3547 | (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread. | |
3548 | (download_tracepoint_locations): Use | |
3549 | scoped_restore_current_pspace_and_thread. | |
3550 | (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread. | |
3551 | * exec.c (exec_close_1): Use scoped_restore_current_program_space. | |
3552 | (enum step_over_calls_kind): Moved from inferior.h. | |
3553 | (class scoped_restore_current_thread): New class. | |
3554 | * gdbthread.h (make_cleanup_restore_current_thread): Delete | |
3555 | declaration. | |
3556 | (scoped_restore_current_thread): New class. | |
3557 | * infcmd.c: Include "common/gdb_optional.h". | |
3558 | (continue_1, proceed_after_attach): Use | |
3559 | scoped_restore_current_thread. | |
3560 | (notice_new_inferior): Use scoped_restore_current_thread. | |
3561 | * inferior.c: Include "progspace-and-thread.h". | |
3562 | (restore_inferior, save_current_inferior): Delete. | |
3563 | (add_inferior_command, clone_inferior_command): Use | |
3564 | scoped_restore_current_pspace_and_thread. | |
3565 | * inferior.h (scoped_restore_current_inferior): New class. | |
3566 | * infrun.c: Include "progspace-and-thread.h" and | |
3567 | "common/gdb_optional.h". | |
3568 | (follow_fork_inferior): Use | |
3569 | scoped_restore_current_pspace_and_thread. | |
3570 | (scoped_restore_exited_inferior): New class. | |
3571 | (handle_vfork_child_exec_or_exit): Use | |
3572 | scoped_restore_exited_inferior, | |
3573 | scoped_restore_current_pspace_and_thread, | |
3574 | scoped_restore_current_thread and scoped_restore. | |
3575 | (fetch_inferior_event): Use scoped_restore_current_thread. | |
3576 | * linespec.c (decode_line_full, decode_line_1): Use | |
3577 | scoped_restore_current_program_space. | |
3578 | * mi/mi-main.c: Include "progspace-and-thread.h". | |
3579 | (exec_continue): Use scoped_restore_current_thread. | |
3580 | (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread. | |
3581 | (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread. | |
3582 | * proc-service.c (ps_pglobal_lookup): Use | |
3583 | scoped_restore_current_program_space. | |
3584 | * progspace-and-thread.c: New file. | |
3585 | * progspace-and-thread.h: New file. | |
3586 | * progspace.c (release_program_space, clone_program_space): Use | |
3587 | scoped_restore_current_program_space. | |
3588 | (restore_program_space, save_current_program_space) | |
3589 | (save_current_space_and_thread): Delete. | |
3590 | (switch_to_program_space_and_thread): Moved to | |
3591 | progspace-and-thread.c. | |
3592 | * progspace.h (save_current_program_space) | |
3593 | (save_current_space_and_thread): Delete declarations. | |
3594 | (scoped_restore_current_program_space): New class. | |
3595 | * remote.c (remote_btrace_maybe_reopen): Use | |
3596 | scoped_restore_current_thread. | |
3597 | * symtab.c: Include "progspace-and-thread.h". | |
3598 | (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread. | |
3599 | * thread.c (print_thread_info_1): Use | |
3600 | scoped_restore_current_thread. | |
3601 | (struct current_thread_cleanup): Delete. | |
3602 | (do_restore_current_thread_cleanup) | |
3603 | (restore_current_thread_cleanup_dtor): Rename/convert both to ... | |
3604 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
3605 | ... this new dtor. | |
3606 | (make_cleanup_restore_current_thread): Rename/convert to ... | |
3607 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
3608 | ... this new ctor. | |
3609 | (thread_apply_all_command): Use scoped_restore_current_thread. | |
3610 | (thread_apply_command): Use scoped_restore_current_thread. | |
3611 | * tracepoint.c (tdump_command): Use scoped_restore_current_thread. | |
3612 | * varobj.c (value_of_root_1): Use scoped_restore_current_thread. | |
3613 | ||
f6223dbb PA |
3614 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3615 | ||
3616 | * thread.c (make_cleanup_restore_current_thread): Move | |
3617 | find_thread_ptid call before the is_stopped call. Assert that the | |
3618 | thread is found. Replace is_stopped call by checking the thread's | |
3619 | state directly. Remove unnecessary NULL-thread check. | |
3620 | ||
3c3ae77e PA |
3621 | 2017-05-04 Pedro Alves <palves@redhat.com> |
3622 | ||
3623 | * corelow.c (thread_section_name): New class. | |
3624 | (get_core_register_section, get_core_siginfo): Use it. | |
3625 | ||
45eba0ab AA |
3626 | 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com> |
3627 | ||
3628 | * corelow.c (sniff_core_bfd): Remove extra semicolon. | |
3629 | (get_core_register_section): Remove xfree of NULL pointer. | |
3630 | ||
f81fdd35 AH |
3631 | 2017-05-03 Alan Hayward <alan.hayward@arm.com> |
3632 | ||
3633 | * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed. | |
3634 | * regcache.c (regcache::raw_supply_zeroed): New function. | |
3635 | * regcache.h (regcache::raw_supply_zeroed): New declaration. | |
3636 | ||
35837774 SM |
3637 | 2017-05-03 Simon Marchi <simon.marchi@ericsson.com> |
3638 | ||
3639 | * gdbarch.sh: Remove commented out definition of | |
3640 | TARGET_CHAR_BIT. | |
3641 | * gdbarch.h: Re-generate. | |
3642 | ||
c94fee56 SDJ |
3643 | 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com> |
3644 | ||
3645 | * configure: Regenerate. | |
3646 | ||
d17f7b36 SM |
3647 | 2017-05-02 Simon Marchi <simon.marchi@ericsson.com> |
3648 | ||
3649 | * solib-target.c (solib_target_relocate_section_addresses): | |
3650 | Remove num_section_bases, num_bases, segment_bases variables. | |
3651 | ||
b560ebd6 SM |
3652 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3653 | ||
3654 | * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove. | |
3655 | ||
f2f46dfc SM |
3656 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3657 | ||
3658 | * solib-target.c: Include <vector> | |
3659 | (struct lm_info_target) <~lm_info_target>: Remove. | |
3660 | <segment_bases, section_bases>: Change type to | |
3661 | std::vector<CORE_ADDR>. | |
3662 | (library_list_start_segment, library_list_start_section, | |
3663 | library_list_end_library, | |
3664 | solib_target_relocate_section_addresses): Adjust. | |
3665 | ||
a0ff9e1a SM |
3666 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3667 | ||
3668 | * gdbarch.sh (software_single_step): Change return type to | |
3669 | std::vector<CORE_ADDR>. | |
3670 | * gdbarch.c, gdbarch.h: Re-generate. | |
3671 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
3672 | Adjust. | |
3673 | (arm_deal_with_atomic_sequence_raw): Adjust. | |
3674 | (thumb_get_next_pcs_raw): Adjust. | |
3675 | (arm_get_next_pcs_raw): Adjust. | |
3676 | (arm_get_next_pcs): Adjust. | |
3677 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust. | |
3678 | * aarch64-tdep.c (aarch64_software_single_step): Adjust. | |
3679 | * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust. | |
3680 | (alpha_software_single_step): Adjust. | |
3681 | * alpha-tdep.h (alpha_software_single_step): Adjust. | |
3682 | * arm-linux-tdep.c (arm_linux_software_single_step): Adjust. | |
3683 | * arm-tdep.c (arm_software_single_step): Adjust. | |
3684 | (arm_breakpoint_kind_from_current_state): Adjust. | |
3685 | * arm-tdep.h (arm_software_single_step): Adjust. | |
3686 | * breakpoint.c (insert_single_step_breakpoint): Adjust. | |
3687 | * cris-tdep.c (cris_software_single_step): Adjust. | |
3688 | * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust. | |
3689 | (micromips_deal_with_atomic_sequence): Adjust. | |
3690 | (deal_with_atomic_sequence): Adjust. | |
3691 | (mips_software_single_step): Adjust. | |
3692 | * mips-tdep.h (mips_software_single_step): Adjust. | |
3693 | * moxie-tdep.c (moxie_software_single_step): Adjust. | |
3694 | * nios2-tdep.c (nios2_software_single_step): Adjust. | |
3695 | * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust. | |
3696 | * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust. | |
3697 | * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust. | |
3698 | * s390-linux-tdep.c (s390_software_single_step): Adjust. | |
3699 | * sparc-tdep.c (sparc_software_single_step): Adjust. | |
3700 | * spu-tdep.c (spu_software_single_step): Adjust. | |
3701 | * tic6x-tdep.c (tic6x_software_single_step): Adjust. | |
3702 | ||
ea480a30 SM |
3703 | 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca> |
3704 | ||
3705 | * gdbarch.sh: Use semi-colon as field separator instead of colon. | |
3706 | * gdbarch.h: Re-generate. | |
3707 | ||
d050f7d7 TW |
3708 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3709 | ||
3710 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o. | |
3711 | (SUBDIR_PYTHON_SRCS): Add py-instruction.c. | |
3712 | * python/py-instruction.c, python/py-instruction.h: New file. | |
3713 | * python/py-record.c: Add py-instruction.h include. | |
3714 | (gdbpy_initialize_record): Make gdb.Instruction a super class of | |
3715 | gdb.RecordInstruction. | |
3716 | * python/python-internal.h: Add gdbpy_initialize_instruction | |
3717 | declaration. | |
3718 | * python/python.c (do_start_initialization): Add | |
3719 | gdbpy_initialize_instruction. | |
3720 | ||
14f819c8 TW |
3721 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3722 | ||
3723 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type): | |
3724 | Remove. | |
3725 | (btrace_func_from_recpy_func): New function. | |
3726 | (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove. | |
3727 | (btpy_call_level, btpy_call_symbol, btpy_call_instructions, | |
3728 | btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ... | |
3729 | (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions, | |
3730 | recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This. | |
3731 | Also, use new helper functions. | |
3732 | (btpy_list_item): Use new helper functions. | |
3733 | (recpy_bt_function_call_history): Use new type name. | |
3734 | (btpy_call_getset): Remove. | |
3735 | (gdbpy_initialize_btrace): Remove code to initialize | |
3736 | gdb.BtraceFunctionCall. | |
3737 | * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level, | |
3738 | recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up, | |
3739 | recpy_bt_func_prev, recpy_bt_func_next): New export. | |
3740 | * python/py-record.c (recpy_func_type): New static object. | |
3741 | (recpy_func_new, recpy_func_level, recpy_func_symbol, | |
3742 | recpy_func_instructions, recpy_func_up, recpy_func_prev, | |
3743 | recpy_func_next): New function. | |
3744 | (recpy_element_hash, recpy_element_richcompare): Updated comment. | |
3745 | (recpy_func_getset): New static object. | |
3746 | (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction. | |
3747 | * python/py-record.h (recpy_func_type, recpy_func_new): New export. | |
3748 | ||
0ed5da75 TW |
3749 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3750 | ||
3751 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove. | |
3752 | (btpy_object, btpy_insn_type, btpy_new): Remove. | |
3753 | (btpy_list_object): Use gdb.RecordInstruction type instead of | |
3754 | gdb.BtraceInstruction type. | |
3755 | (btrace_insn_from_recpy_insn): New function. | |
3756 | (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of | |
3757 | btpy_new. | |
3758 | (btpy_call_new, btpy_list_item): Do not use btpy_new anymore. | |
3759 | (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol, | |
3760 | btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling, | |
3761 | btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object | |
3762 | instead of btpy_object. | |
3763 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
3764 | btpy_insn_data, btpy_insn_decode): Rename to ... | |
3765 | (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size, | |
3766 | recpy_bt_insn_is_speculative, recpy_bt_insn_data, | |
3767 | recpy_bt_insn_decode): This. Also, use new helper functions. | |
3768 | (btpy_list_position, recpy_bt_goto): Use recpy_element_object and | |
3769 | recpy_insn_type. | |
3770 | (btpy_insn_getset): Remove. | |
3771 | (gdbpy_initialize_btrace): Remove code to initialize | |
3772 | gdb.BtraceInstruction. Use recpy_element_object. | |
3773 | * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal, | |
3774 | recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded, | |
3775 | recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export. | |
3776 | * python/py-record.c (recpy_insn_type): New static object. | |
3777 | (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data, | |
3778 | recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative, | |
3779 | recpy_element_number, recpy_element_hash, recpy_element_richcompare): | |
3780 | New function. | |
3781 | (recpy_insn_getset): New static object. | |
3782 | (gdbpy_initialize_record): Initialize gdb.RecordInstruction. | |
3783 | * python/py-record.h (recpy_element_object): New typedef. | |
3784 | (recpy_insn_type, recpy_insn_new): New export. | |
3785 | ||
913aeadd TW |
3786 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3787 | ||
3788 | * py-record-btrace.c (btpy_insn_new): Removed. | |
3789 | (btpy_insn_or_gap_new): New function. | |
3790 | (btpy_insn_error): Removed. | |
3791 | (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative, | |
3792 | btpy_insn_data, btpy_insn_decode): Remove code path for gaps. | |
3793 | (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call | |
3794 | btpy_insn_or_gap_new instead of btpy_insn_new. | |
3795 | (btpy_insn_getset): Remove btpy_insn_error. | |
3796 | * py-record.c (recpy_gap_type): New static object. | |
3797 | (recpy_gap_object): New typedef. | |
3798 | (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code, | |
3799 | recpy_gap_reason_string): New function. | |
3800 | (recpy_gap_getset): New static object. | |
3801 | (gdbpy_initialize_record): Initialize gdb.RecordGap type. | |
3802 | * py-record.h (recpy_gap_new): New export. | |
3803 | ||
a3be24ad TW |
3804 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3805 | ||
3806 | * python/py-record.c (recpy_ptid): Remove. | |
3807 | (recpy_record_getset): Remove recpy_ptid. | |
3808 | ||
ae20e79a TW |
3809 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3810 | ||
3811 | * btrace.c (btrace_fetch): Set inferior_ptid. | |
3812 | * python/py-record-btrace.c: Add "py-record.h" include. | |
3813 | (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin, | |
3814 | recpy_bt_end, recpy_bt_instruction_history, | |
3815 | recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored | |
3816 | in gdb.Record object instead of current ptid. | |
3817 | * python/py-record.c: Include new "py-record.h" file. | |
3818 | (recpy_record_object): Moved to py-record.h. | |
3819 | * python/py-record.h: New file. | |
3820 | ||
8d0050ea TW |
3821 | 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com> |
3822 | ||
3823 | * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN, | |
3824 | BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix | |
3825 | indentation. | |
3826 | ||
3f380b50 JB |
3827 | 2017-05-01 Joel Brobecker <brobecker@adacore.com> |
3828 | ||
3829 | * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to | |
3830 | the past maintainers section. | |
3831 | ||
07495424 YQ |
3832 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3833 | ||
3834 | * infcmd.c (get_return_value): Use regcache ctor, and remove | |
3835 | cleanup. | |
3836 | ||
deb1fa3e YQ |
3837 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3838 | Pedro Alves <palves@redhat.com> | |
3839 | ||
3840 | * regcache.c (regcache::regcache): New tag dispatch ctor. | |
3841 | (do_cooked_read): Moved above. | |
3842 | (regcache_dup): Use the tag dispatch ctor.. | |
3843 | * regcache.h (regcache): Declare ctor, delete copy ctor and | |
3844 | assignment operator, remove friend regcache_dup. | |
3845 | ||
b421c83c YQ |
3846 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3847 | ||
3848 | * regcache.c (regcache_dup): Assert !src->m_readonly_p and | |
3849 | call method save instead of regcache_cpy. | |
3850 | * regcache.h (struct regcache): Make regcache_dup a friend. | |
3851 | ||
ef79d9a3 YQ |
3852 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
3853 | ||
3854 | * regcache.c (struct regcache): Move to regcache.h | |
3855 | (regcache::arch): New method. | |
3856 | (regcache_get_ptid): Update. | |
3857 | (get_regcache_arch): Call arch method. | |
3858 | (get_regcache_aspace): Call method aspace. | |
3859 | (register_buffer): Change it to method. | |
3860 | (regcache_save): Change it to regcache::save. | |
3861 | (regcache_restore): Likewise. | |
3862 | (regcache_cpy_no_passthrough): Remove the declaration. | |
3863 | (regcache_cpy): Call methods restore and cpy_no_passthrough. | |
3864 | (regcache_cpy_no_passthrough): Change it to method | |
3865 | cpy_no_passthrough. | |
3866 | (regcache_register_status): Change it to method | |
3867 | get_register_status. | |
3868 | (regcache_invalidate): Change it to method invalidate. | |
3869 | (regcache_thread_ptid_changed): Use methods ptid and set_ptid. | |
3870 | (regcache_raw_update): Change it to method raw_update. | |
3871 | (regcache_raw_read): Likewise. | |
3872 | (regcache_raw_read_signed): Likewise. | |
3873 | (regcache_raw_read_unsigned): Likewise. | |
3874 | (regcache_raw_write_signed): Likewise. | |
3875 | (regcache_raw_write_unsigned): Likewise. | |
3876 | (regcache_cooked_read): Likewise. | |
3877 | (regcache_cooked_read_value): Likewise. | |
3878 | (regcache_cooked_read_signed): Likewise. | |
3879 | (regcache_cooked_read_unsigned): Likewise. | |
3880 | (regcache_cooked_write_signed): Likewise. | |
3881 | (regcache_cooked_write_unsigned): Likewise. | |
3882 | (regcache_raw_set_cached_value): Likewise. | |
3883 | (regcache_raw_write): Likewise. | |
3884 | (regcache_cooked_write): Likewise. | |
3885 | (regcache_xfer_part): Likewise. | |
3886 | (regcache_raw_read_part): Likewise. | |
3887 | (regcache_raw_write_part): Likewise. | |
3888 | (regcache_cooked_read_part): Likewise. | |
3889 | (regcache_cooked_write_part): Likewise. | |
3890 | (regcache_raw_supply): Likewise. | |
3891 | (regcache_raw_collect): Likewise. | |
3892 | (regcache_transfer_regset): Likewise. | |
3893 | (regcache_supply_regset): Likewise. | |
3894 | (regcache_collect_regset): Likewise. | |
3895 | (regcache_debug_print_register): Likewise. | |
3896 | (enum regcache_dump_what): Move it to regcache.h. | |
3897 | (regcache_dump): Change it to method dump. | |
3898 | * regcache.h (enum regcache_dump_what): New. | |
3899 | (class regcache): New. | |
3900 | * target.c (target_fetch_registers): Call method | |
3901 | debug_print_register. | |
3902 | (target_store_registers): Likewise. | |
3903 | ||
f8fdb78e SM |
3904 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3905 | ||
3906 | * windows-nat.c (struct lm_info_windows): Initialize field. | |
3907 | (windows_make_so): Allocate lm_info_windows with new. | |
3908 | (windows_free_so): Free lm_info_windows with delete. | |
3909 | ||
9ccbfd7b SM |
3910 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3911 | ||
3912 | * solib-darwin.c (struct lm_info_darwin): Initialize field. | |
3913 | (darwin_current_sos): Allocate lm_info_darwin with new, remove | |
3914 | cleanup. | |
3915 | (darwin_free_so): Free lm_info_darwin with delete. | |
3916 | ||
76e75227 SM |
3917 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3918 | ||
3919 | * solib-svr4.h (struct lm_info_svr4): Initialize fields. | |
3920 | <l_addr_p>: Change type to bool. | |
3921 | * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new. | |
3922 | (svr4_free_so): Free lm_info_svr4 with delete. | |
3923 | (svr4_copy_library_list): Replace memcpy with call to copy | |
3924 | constructor. | |
3925 | (library_list_start_library, svr4_default_sos): Allocate | |
3926 | lm_info_svr4 with new. | |
3927 | ||
51046d9e SM |
3928 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3929 | ||
3930 | * solib-target.c (struct lm_info_target): Add destructor, | |
3931 | initialize fields. | |
3932 | <name>: Change type to std::string. | |
3933 | (library_list_start_library): Allocate lm_info_target with new. | |
3934 | (solib_target_free_library_list): Free lm_info_target with | |
3935 | delete. | |
3936 | (solib_target_current_sos): Adapt to std::string. | |
3937 | (solib_target_free_so): Free lm_info_target with delete. | |
3938 | ||
4023ae76 SM |
3939 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3940 | ||
3941 | * solib-frv.c (struct lm_info_frv): Add destructor, initialize | |
3942 | fields. | |
3943 | (frv_current_sos): Allocate lm_info_frv with new. | |
3944 | (frv_relocate_main_executable): Free lm_info_frv with delete, | |
3945 | allocate with new. | |
3946 | (frv_clear_solib, frv_free_so): Free lm_info_frv with delete. | |
3947 | ||
af43057b SM |
3948 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3949 | ||
3950 | * solib-frv.c (struct lm_info_frv): Fix indentation. | |
3951 | ||
b0911207 SM |
3952 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3953 | ||
3954 | * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize | |
3955 | map field. | |
3956 | (dsbt_current_sos): Allocate lm_info_dsbt with new. | |
3957 | (dsbt_relocate_main_executable): Free lm_info_dsbt with delete | |
3958 | and allocate with new. | |
3959 | (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete. | |
3960 | ||
6c401f72 SM |
3961 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3962 | ||
3963 | * solib-aix.c (struct lm_info_aix): Initialize fields in-class. | |
3964 | <filename, member_name>: Change type to std::string. | |
3965 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove. | |
3966 | (library_list_start_library): Allocate lm_info_aix with new. | |
3967 | (solib_aix_free_library_list, solib_aix_free_so): Free with delete. | |
3968 | (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix | |
3969 | with copy constructor. | |
3970 | ||
d0e449a1 SM |
3971 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
3972 | ||
3973 | * solist.h (struct lm_info): Remove. | |
3974 | (struct lm_info_base): New class. | |
3975 | (struct so_list) <lm_info>: Change type to lm_info_base *. | |
3976 | * nto-tdep.c (struct lm_info): Remove. | |
3977 | (lm_addr): Adjust. | |
3978 | * solib-aix.c (struct lm_info): Rename to ... | |
3979 | (struct lm_info_aix): ... this. Extend lm_info_base. | |
3980 | (lm_info_p): Rename to ... | |
3981 | (lm_info_aix_p): ... this, and adjust. | |
3982 | (solib_aix_new_lm_info, solib_aix_xfree_lm_info, | |
3983 | solib_aix_parse_libraries, library_list_start_library, | |
3984 | solib_aix_free_library_list, solib_aix_parse_libraries, | |
3985 | solib_aix_get_library_list, | |
3986 | solib_aix_relocate_section_addresses, solib_aix_free_so, | |
3987 | solib_aix_get_section_offsets, | |
3988 | solib_aix_solib_create_inferior_hook, solib_aix_current_sos): | |
3989 | Adjust. | |
3990 | (struct solib_aix_inferior_data) <library_list>: Adjust. | |
3991 | * solib-darwin.c (struct lm_info): Rename to ... | |
3992 | (struct lm_info_darwin): ... this. Extend lm_info_base. | |
3993 | (darwin_current_sos, darwin_relocate_section_addresses): Adjust. | |
3994 | * solib-dsbt.c (struct lm_info): Rename to ... | |
3995 | (struct lm_info_dsbt): ... this. Extend lm_info_base. | |
3996 | (struct dsbt_info) <main_executable_lm_info): Adjust. | |
3997 | (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so, | |
3998 | dsbt_relocate_section_addresses): Adjust. | |
3999 | * solib-frv.c (struct lm_info): Rename to ... | |
4000 | (struct lm_info_frv): ... this. Extend lm_info_base. | |
4001 | (main_executable_lm_info): Adjust. | |
4002 | (frv_current_sos, frv_relocate_main_executable, frv_free_so, | |
4003 | frv_relocate_section_addresses, frv_fdpic_find_global_pointer, | |
4004 | find_canonical_descriptor_in_load_object, | |
4005 | frv_fdpic_find_canonical_descriptor): Adjust. | |
4006 | * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed | |
4007 | to lm_info_svr4. | |
4008 | (lm_info_read, lm_addr_check, svr4_keep_data_in_core, | |
4009 | svr4_clear_so, svr4_copy_library_list, | |
4010 | library_list_start_library, svr4_default_sos, svr4_read_so_list, | |
4011 | svr4_current_sos, svr4_fetch_objfile_link_map, | |
4012 | solist_update_incremental): Adjust. | |
4013 | * solib-svr4.h (struct lm_info_svr4): Move here from | |
4014 | solib-svr4.c. | |
4015 | * solib-target.c (struct lm_info): Rename to ... | |
4016 | (struct lm_info_target): ... this. Extend lm_info_base. | |
4017 | (lm_info_p): Rename to ... | |
4018 | (lm_info_target_p): ... this. | |
4019 | (solib_target_parse_libraries, library_list_start_segment, | |
4020 | library_list_start_section, library_list_start_library, | |
4021 | library_list_end_library, solib_target_free_library_list, | |
4022 | solib_target_current_sos, solib_target_free_so, | |
4023 | solib_target_relocate_section_addresses): Adjust. | |
4024 | * windows-nat.c (struct lm_info): Rename to ... | |
4025 | (struct lm_info_windows): ... this. Extend lm_info_base. | |
4026 | (windows_make_so, handle_load_dll, handle_unload_dll, | |
4027 | windows_xfer_shared_libraries): Adjust. | |
4028 | ||
434a4023 SM |
4029 | 2017-04-28 Simon Marchi <simon.marchi@ericsson.com> |
4030 | ||
4031 | * solib-darwin.c (struct darwin_so_list): Remove. | |
4032 | (darwin_current_sos): Allocate an so_list object instead of a | |
4033 | darwin_so_list, separately allocate an lm_info object. | |
4034 | (darwin_free_so): Free lm_info. | |
4035 | ||
428544e8 JB |
4036 | 2017-04-28 John Baldwin <jhb@FreeBSD.org> |
4037 | ||
4038 | * mips-tdep.c (print_gp_register_row): Replace printf_filtered | |
4039 | with fprintf_filtered. | |
4040 | ||
4621115f YQ |
4041 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
4042 | ||
4043 | * regcache.c (regcache::regcache): New function. | |
4044 | (regcache::~regcache): New function. | |
4045 | (regcache_xmalloc_1): Remove. | |
4046 | (regcache_xmalloc): Call new regcache. | |
4047 | (regcache_xfree): Call delete regcache. | |
4048 | (get_thread_arch_aspace_regcache): Call new regcache. | |
4049 | ||
339053c2 YQ |
4050 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
4051 | ||
4052 | * mips-linux-nat.c (mips_linux_new_thread): Use ptid method | |
4053 | lwp instead of ptid_get_lwp. | |
4054 | ||
7974a605 YQ |
4055 | 2017-04-28 Yao Qi <yao.qi@linaro.org> |
4056 | ||
4057 | * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from | |
4058 | lwp_info instead of getting from inferior_ptid. | |
4059 | ||
e15c3eb4 KS |
4060 | 2017-04-27 Keith Seitz <keiths@redhat.com> |
4061 | ||
4062 | * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS) | |
4063 | DIFFERENT_REFERENCE_TYPE_BADNESS): Remove. | |
4064 | (CV_CONVERSION_BADNESS): Define. | |
4065 | (rank_one_type): Remove overly restrictive rvalue reference | |
4066 | rank checks. | |
4067 | Add cv-qualifier checks and subranks for type equality. | |
4068 | * gdbtypes.h (REFERENCE_CONVERSION_RVALUE, | |
4069 | REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS, | |
4070 | CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare. | |
4071 | ||
72bc1d24 SM |
4072 | 2017-04-27 Simon Marchi <simon.marchi@ericsson.com> |
4073 | ||
4074 | * python/py-inferior.c (inferior_to_inferior_object): Increment reference | |
4075 | count when creating the object. | |
4076 | ||
55bcecda UW |
4077 | 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> |
4078 | Ulrich Weigand <uweigand@de.ibm.com> | |
4079 | ||
4080 | * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary | |
4081 | entry if xlc -qfuncsect or gcc -ffunction-sections compiler option | |
4082 | is used in AIX. | |
4083 | (read_xcoff_symtab): Handle C_WEAKEXT storage class. | |
4084 | (process_xcoff_symbol): Likewise. | |
4085 | (scan_xcoff_symtab): Likewise. | |
4086 | ||
5c99fcf8 AH |
4087 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4088 | ||
4089 | * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned. | |
4090 | (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer. | |
4091 | (ia64_access_reg): Use get_frame_register_unsigned. | |
4092 | (ia64_access_rse_reg): Likewise. | |
4093 | (ia64_libunwind_frame_prev_register): Likewise. | |
4094 | ||
b41c5a85 JW |
4095 | 2017-04-26 Jiong Wang <jiong.wang@arm.com> |
4096 | ||
4097 | * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op. | |
4098 | * gdbarch.c: Regenerated. | |
4099 | * gdbarch.h: Regenerated. | |
4100 | * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the | |
4101 | visibility external. | |
4102 | (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI | |
4103 | between DW_CFA_lo_user and DW_CFA_high_user inclusive. | |
4104 | (enum cfa_how_kind): Move to ... | |
4105 | (struct dwarf2_frame_state_reg_info): Likewise. | |
4106 | (struct dwarf2_frame_state): Likewise. | |
4107 | * dwarf2-frame.h: ... here. | |
4108 | (dwarf2_frame_state_alloc_regs): New declaration. | |
4109 | * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function. | |
4110 | (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook. | |
4111 | ||
c185f580 AH |
4112 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4113 | ||
4114 | * xtensa-tdep.c (xtensa_pseudo_register_read): Use | |
4115 | regcache_raw_read_unsigned. | |
4116 | (xtensa_pseudo_register_write): Likewise. | |
4117 | ||
19c45594 AH |
4118 | 2017-04-26 Alan Hayward <alan.hayward@arm.com> |
4119 | ||
4120 | * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors. | |
4121 | (nds32_pseudo_register_write): Likewise. | |
4122 | ||
4658f12e YQ |
4123 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
4124 | ||
4125 | * regcache.c (struct regcache) <readonly_p>: Change its type | |
4126 | to bool. | |
4127 | (regcache_xmalloc_1): Update parameter type and callers update. | |
4128 | ||
d581dda8 YQ |
4129 | 2017-04-25 Yao Qi <yao.qi@linaro.org> |
4130 | ||
4131 | * aarch64-tdep.c (aarch64_gdbarch_init): Don't call | |
4132 | set_gdbarch_wchar_bit. | |
4133 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
4134 | ||
debed3db PA |
4135 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4136 | ||
4137 | * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable) | |
4138 | (BothAreRelocatable, memcopy, memmove): Don't define. | |
4139 | * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New | |
4140 | macros. | |
4141 | ||
b0b92aeb PA |
4142 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4143 | ||
4144 | * common/common-defs.h: Include "common/poison.h". | |
4145 | * common/function-view.h: (Not, Or, Requires): Move to traits.h | |
4146 | and adjust. | |
4147 | * common/poison.h: New file. | |
4148 | * common/traits.h: Include <type_traits>. | |
4149 | (Not, Or, Requires): New, moved from common/function-view.h. | |
4150 | ||
16c4d54a PA |
4151 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4152 | ||
4153 | * breakpoint.h (struct breakpoint): In-class initialize all | |
4154 | fields. Make boolean fields "bool". | |
4155 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
4156 | memset call and initializations no longer necessary. | |
4157 | ||
b5c36682 PA |
4158 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4159 | ||
4160 | * btrace.c (pt_btrace_insn_flags): Change parameter type to | |
4161 | reference. | |
4162 | (pt_btrace_insn): New function. | |
4163 | (ftrace_add_pt): Remove memset call and use pt_btrace_insn. | |
4164 | ||
5625a286 PA |
4165 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4166 | ||
4167 | * ada-lang.c (ada_catchpoint_location): Now a "class". Remove | |
4168 | "base" field and inherit from "bp_location" instead. Add | |
4169 | non-default ctor. | |
4170 | (allocate_location_exception): Use new non-default ctor. | |
4171 | * breakpoint.c (get_first_locp_gte_addr): Remove memset call. | |
4172 | (init_bp_location): Convert to ... | |
4173 | (bp_location::bp_location): ... this new ctor, and remove memset | |
4174 | call. | |
4175 | (base_breakpoint_allocate_location): Use the new non-default ctor. | |
4176 | * breakpoint.h (bp_location): Now a class. Declare default and | |
4177 | non-default ctors. In-class initialize all members. | |
4178 | (init_bp_location): Remove declaration. | |
4179 | ||
23bcc18f PA |
4180 | 2017-04-25 Pedro Alves <palves@redhat.com> |
4181 | ||
4182 | * common/enum-flags.h (enum_flags): Don't implement copy ctor and | |
4183 | assignment operator. | |
4184 | ||
e1ba3053 YQ |
4185 | 2017-04-24 Yao Qi <yao.qi@linaro.org> |
4186 | ||
4187 | * doublest.c (convert_doublest_to_floatformat): Call | |
4188 | floatformat_totalsize_bytes. | |
4189 | ||
10f489e5 TT |
4190 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4191 | ||
4192 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use | |
4193 | ui_out_emit_list. | |
4194 | * stack.c (print_frame): Use ui_out_emit_list. | |
4195 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
4196 | ui_out_emit_list. | |
4197 | * mi/mi-main.c (print_one_inferior) | |
4198 | (mi_cmd_data_list_register_names) | |
4199 | (mi_cmd_data_list_register_values, mi_cmd_list_features) | |
4200 | (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use | |
4201 | ui_out_emit_list. | |
4202 | * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list. | |
4203 | (mi_output_solib_attribs): Use ui_out_emit_list, | |
4204 | ui_out_emit_tuple. | |
4205 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list. | |
4206 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) | |
4207 | (mi_cmd_stack_list_args, list_args_or_locals): Use | |
4208 | ui_out_emit_list. | |
4209 | * disasm.c (do_assembly_only): Use ui_out_emit_list. | |
4210 | * breakpoint.c (print_solib_event, output_thread_groups): Use | |
4211 | ui_out_emit_list. | |
4212 | ||
0092b74d TT |
4213 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4214 | ||
4215 | * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple. | |
4216 | * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple. | |
4217 | * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple. | |
4218 | ||
a14a62dd TT |
4219 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4220 | ||
4221 | * tracepoint.c (tvariables_info_1) | |
4222 | (print_one_static_tracepoint_marker): Use ui_out_emit_tuple. | |
4223 | ||
46b9c129 TT |
4224 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4225 | ||
4226 | * stack.c (print_frame_arg): Use ui_out_emit_tuple, | |
4227 | annotate_arg_emitter. | |
4228 | * breakpoint.c (print_mention_watchpoint) | |
4229 | (print_mention_masked_watchpoint): Use ui_out_emit_tuple. | |
4230 | * annotate.h (struct annotate_arg_emitter): New. | |
4231 | ||
2e783024 TT |
4232 | 2017-04-22 Tom Tromey <tom@tromey.com> |
4233 | ||
4234 | * record-btrace.c (record_btrace_insn_history) | |
4235 | (record_btrace_insn_history_range, record_btrace_call_history) | |
4236 | (record_btrace_call_history_range): Use ui_out_emit_tuple. | |
4237 | * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use | |
4238 | ui_out_emit_tuple. | |
4239 | * stack.c (print_frame_info): Use ui_out_emit_tuple. | |
4240 | * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple. | |
4241 | * skip.c (skip_info): Use ui_out_emit_tuple. | |
4242 | * remote.c (show_remote_cmd): Use ui_out_emit_tuple. | |
4243 | * progspace.c (print_program_space): Use ui_out_emit_tuple. | |
4244 | * probe.c (info_probes_for_ops): Use ui_out_emit_tuple. | |
4245 | * osdata.c (info_osdata): Use ui_out_emit_tuple. | |
4246 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use | |
4247 | ui_out_emit_tuple. | |
4248 | * mi/mi-main.c (print_one_inferior, list_available_thread_groups) | |
4249 | (output_register, mi_cmd_data_read_memory) | |
4250 | (mi_cmd_data_read_memory_bytes, mi_load_progress) | |
4251 | (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple. | |
4252 | * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one): | |
4253 | Use ui_out_emit_tuple. | |
4254 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use | |
4255 | ui_out_emit_tuple. | |
4256 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
4257 | (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple. | |
4258 | * linux-thread-db.c (info_auto_load_libthread_db): Use | |
4259 | ui_out_emit_tuple. | |
4260 | * inferior.c (print_inferior): Use ui_out_emit_tuple. | |
4261 | * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple. | |
4262 | * disasm.c (do_mixed_source_and_assembly_deprecated) | |
4263 | (do_mixed_source_and_assembly): Use ui_out_emit_tuple. | |
4264 | * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple. | |
4265 | * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple. | |
4266 | * breakpoint.c (print_one_breakpoint_location) | |
4267 | (print_one_breakpoint): Use ui_out_emit_tuple. | |
4268 | * auto-load.c (print_script, info_auto_load_cmd): Use | |
4269 | ui_out_emit_tuple. | |
4270 | * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple. | |
4271 | ||
9be21bb4 SM |
4272 | 2017-04-21 Simon Marchi <simon.marchi@ericsson.com> |
4273 | ||
4274 | * thread.c (print_thread_info_1): Remove dead code. | |
4275 | ||
0d4c07af JK |
4276 | 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
4277 | ||
4278 | * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if | |
4279 | GDB_SELF_TEST. | |
4280 | * arm-tdep.c (selftests::arm_record_test): Likewise. | |
4281 | ||
4daf993d YQ |
4282 | 2017-04-21 Yao Qi <yao.qi@linaro.org> |
4283 | ||
4284 | * regcache.c (regcache_restore): Remove argument 2. Replace | |
4285 | argument 3 with regcache. Get register status from | |
4286 | src->register_status and get register contents from | |
4287 | register_buffer (src, regnum). | |
4288 | (regcache_cpy): Update. | |
4289 | ||
a6c21d4a PA |
4290 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4291 | ||
4292 | * gdbthread.h (thread): Add missing closing parenthesis in | |
4293 | comment. | |
4294 | ||
3a3fd0fd PA |
4295 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4296 | ||
4297 | * common/refcounted-object.h: New file. | |
4298 | * gdbthread.h: Include "common/refcounted-object.h". | |
4299 | (thread_info): Inherit from refcounted_object and add comments. | |
4300 | (thread_info::incref, thread_info::decref) | |
4301 | (thread_info::m_refcount): Delete. | |
4302 | (thread_info::deletable): Use the refcounted_object::refcount() | |
4303 | method. | |
4304 | * inferior.c (current_inferior_): Add comment. | |
4305 | (set_current_inferior): Increment/decrement refcounts. | |
4306 | (prune_inferiors, remove_inferior_command): Skip inferiors marked | |
4307 | not-deletable instead of comparing with the current inferior. | |
4308 | (initialize_inferiors): Increment the initial inferior's refcount. | |
4309 | * inferior.h (struct inferior): Forward declare. | |
4310 | Include "common/refcounted-object.h". | |
4311 | (current_inferior, set_current_inferior): Move declaration to | |
4312 | before struct inferior's definition, and fix comment. | |
4313 | (inferior): Inherit from refcounted_object. Add comments. | |
4314 | * thread.c (switch_to_thread_no_regs): Reference the thread's | |
4315 | inferior pointer directly instead of doing a ptid lookup. | |
4316 | (switch_to_no_thread): New function. | |
4317 | (switch_to_thread(thread_info *)): New function, factored out | |
4318 | from ... | |
4319 | (switch_to_thread(ptid_t)): ... this. | |
4320 | (restore_current_thread): Delete. | |
4321 | (current_thread_cleanup): Remove 'inf_id' and 'was_removable' | |
4322 | fields, and add 'inf' field. | |
4323 | (do_restore_current_thread_cleanup): Check whether old->inf is | |
4324 | alive instead of looking up an inferior by ptid. Use | |
4325 | switch_to_thread and switch_to_no_thread. | |
4326 | (restore_current_thread_cleanup_dtor): Use old->inf directly | |
4327 | instead of lookup up an inferior by id. Decref the inferior. | |
4328 | Don't restore 'removable'. | |
4329 | (make_cleanup_restore_current_thread): Same the inferior pointer | |
4330 | in old, instead of the inferior number. Incref the inferior. | |
4331 | Don't save/clear 'removable'. | |
4332 | ||
9bcb1f16 PA |
4333 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4334 | ||
4335 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4336 | unittests/scoped_restore-selftests.c. | |
4337 | (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o. | |
4338 | * common/scoped_restore.h (scoped_restore_base): Make "class". | |
4339 | (scoped_restore_base::release): New public method. | |
4340 | (scoped_restore_base::scoped_restore_base): New protected ctor. | |
4341 | (scoped_restore_base::m_saved_var): New protected field. | |
4342 | (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the | |
4343 | scoped_restore_base base class instead of m_saved_var directly. | |
4344 | (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise. | |
4345 | (scoped_restore_tmpl::scoped_restore_tmpl(const | |
4346 | scoped_restore_tmpl<T>&)): Likewise. | |
4347 | (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var | |
4348 | method. | |
4349 | (scoped_restore_tmpl::saved_var): New method. | |
4350 | (scoped_restore_tmpl::m_saved_var): Delete. | |
4351 | * inferior.h (inferior::detaching): Now a bool. | |
4352 | * infrun.c (prepare_for_detach): Use a scoped_restore instead of a | |
4353 | cleanup. | |
4354 | * unittests/scoped_restore-selftests.c: New file. | |
4355 | ||
26fcd539 PA |
4356 | 2017-04-19 Pedro Alves <palves@redhat.com> |
4357 | ||
4358 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): | |
4359 | Re-sort in alphabetic order. | |
4360 | ||
fdd243b0 PA |
4361 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4362 | ||
4363 | * xml-support.c (obstack_xml_printf): Delete. | |
4364 | * xml-support.h (obstack_xml_printf): Delete. | |
4365 | ||
4895cde2 PA |
4366 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4367 | ||
4368 | * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse, | |
4369 | vdebug, verror, body_text, start_element, end_element, name, | |
4370 | user_data, set_is_xinclude, set_error, expat_parser>: New methods. | |
4371 | <name, user_data, expat_parser, scopes, error, last_line, dtd_name, | |
4372 | is_xinclude>: Make private and add m_ prefix. | |
4373 | (gdb_xml_parser::body_text): New method, based on ... | |
4374 | (gdb_xml_body_text): ... this. Adjust. | |
4375 | (gdb_xml_parser::vdebug): New method, based on ... | |
4376 | (gdb_xml_debug): ... this. Adjust. | |
4377 | (gdb_xml_parser::verror): New method, based on ... | |
4378 | (gdb_xml_error): ... this. Adjust. | |
4379 | (gdb_xml_parser::start_element): New method, based on ... | |
4380 | (gdb_xml_start_element): ... this. Adjust. | |
4381 | (gdb_xml_start_element_wrapper): Defer to | |
4382 | gdb_xml_parser::start_element and gdb_xml_parser::set_error. | |
4383 | (gdb_xml_parser::end_element): New method, based on ... | |
4384 | (gdb_xml_end_element_wrapper): ... this. Adjust. | |
4385 | (gdb_xml_parser::~gdb_xml_parser): Adjust. | |
4386 | (gdb_xml_parser::gdb_xml_parser): Adjust to field renames. | |
4387 | (gdb_xml_parser::use_dtd): New method, based on ... | |
4388 | (gdb_xml_use_dtd): ... this. Adjust. | |
4389 | (gdb_xml_parser::parse): New method, based on ... | |
4390 | (gdb_xml_parse): ... this. Adjust. | |
4391 | (gdb_xml_parse_quick): Adjust to call the parser's parse method. | |
4392 | (xinclude_start_include): Adjust to call the parser's name method. | |
4393 | (xml_xinclude_default, xml_xinclude_start_doctype) | |
4394 | (xml_xinclude_end_doctype): Adjust to call the parser's user_data | |
4395 | method. | |
4396 | (xml_process_xincludes): Adjust to call parser methods. | |
4397 | * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete | |
4398 | declarations. | |
4399 | ||
bd8a901f PA |
4400 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4401 | ||
4402 | * tracefile-tfile.c (tfile_write_tdesc): Adjust to use | |
4403 | gdb::optional<std::string>. | |
4404 | * xml-support.c: Include <string>. | |
4405 | (scope_level::scope_level(scope_level &&)) | |
4406 | (scope_level::~scope_level): Delete. | |
4407 | (scope_level::body): Now a std::string. | |
4408 | (gdb_xml_body_text, gdb_xml_end_element): Adjust. | |
4409 | (xinclude_parsing_data::xinclude_parsing_data): Add 'output' | |
4410 | parameter. | |
4411 | (xinclude_parsing_data::~xinclude_parsing_data): Delete. | |
4412 | (xinclude_parsing_data::output): Now a std::string reference. | |
4413 | (xinclude_start_include): Adjust. | |
4414 | (xml_xinclude_default): Adjust. | |
4415 | (xml_process_xincludes): Add 'output' parameter, and return bool. | |
4416 | * xml-support.h (xml_process_xincludes): Add 'output' parameter, | |
4417 | and return bool. | |
4418 | * xml-tdesc.c: Include <unordered_map> and <string>. | |
4419 | (tdesc_xml_cache): Delete. | |
4420 | (tdesc_xml_cache_s): Delete. | |
4421 | (xml_cache): Now an std::unordered_map. | |
4422 | (tdesc_parse_xml): Adjust to use std::string and unordered_map. | |
4423 | (target_fetch_description_xml): Change return type to | |
4424 | gdb::optional<std::string>, and adjust. | |
4425 | * xml-tdesc.h: Include "common/gdb_optional.h" and <string>. | |
4426 | (target_fetch_description_xml): Change return type to | |
4427 | gdb::optional<std::string>. | |
4428 | ||
d35d1958 PA |
4429 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4430 | ||
4431 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
4432 | unittests/optional-selftests.c. | |
4433 | (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o. | |
4434 | * unittests/optional-selftests.c: New file. | |
4435 | * unittests/optional/assignment/1.cc: New file. | |
4436 | * unittests/optional/assignment/2.cc: New file. | |
4437 | * unittests/optional/assignment/3.cc: New file. | |
4438 | * unittests/optional/assignment/4.cc: New file. | |
4439 | * unittests/optional/assignment/5.cc: New file. | |
4440 | * unittests/optional/assignment/6.cc: New file. | |
4441 | * unittests/optional/assignment/7.cc: New file. | |
4442 | * unittests/optional/cons/copy.cc: New file. | |
4443 | * unittests/optional/cons/default.cc: New file. | |
4444 | * unittests/optional/cons/move.cc: New file. | |
4445 | * unittests/optional/cons/value.cc: New file. | |
4446 | * unittests/optional/in_place.cc: New file. | |
4447 | * unittests/optional/observers/1.cc: New file. | |
4448 | * unittests/optional/observers/2.cc: New file. | |
4449 | ||
22796e97 PA |
4450 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4451 | ||
4452 | * common/gdb_optional.h: Include common/traits.h. | |
4453 | (in_place_t): New type. | |
4454 | (in_place): New constexpr variable. | |
4455 | (optional::optional): Remove member initialization of | |
4456 | m_instantiated. | |
4457 | (optional::optional(in_place_t...)): New constructor. | |
4458 | (optional::~optional): Use reset. | |
4459 | (optional::optional(const optional&)): New. | |
4460 | (optional::optional(const optional&&)): New. | |
4461 | (optional::optional(T &)): New. | |
4462 | (optional::optional(T &&)): New. | |
4463 | (operator::operator=(const optional &)): New. | |
4464 | (operator::operator=(optional &&)): New. | |
4465 | (operator::operator= (const T &)) | |
4466 | (operator::operator= (T &&)) | |
4467 | (operator::emplace (Args &&... args)): Return a T&. Use reset. | |
4468 | (operator::reset): New. | |
4469 | (operator::m_instantiated):: Add in-class initializer. | |
4470 | * common/traits.h: Include <type_traits>. | |
4471 | (struct And): New types. | |
4472 | ||
a7fc9b61 PA |
4473 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4474 | ||
4475 | * xml-support.c: Include <vector>. | |
4476 | (scope_level::scope_level(const gdb_xml_element *)) | |
4477 | (scope_level::scope_level(scope_level&&)): New. | |
4478 | (scope_level::~scope_level): New. | |
4479 | (scope_level_s): Delete. | |
4480 | (gdb_xml_parser::scopes): Now a std::vector. | |
4481 | (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element): | |
4482 | Use std::vector. | |
4483 | (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary | |
4484 | scope cleanup code. | |
4485 | (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization | |
4486 | of the scopes member. Use std::vector::emplace_back. | |
4487 | ||
010151c9 PA |
4488 | 2017-04-18 Pedro Alves <palves@redhat.com> |
4489 | ||
4490 | * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude | |
4491 | a bool. | |
4492 | (gdb_xml_end_element): Change type of first parameter. | |
4493 | (gdb_xml_cleanup): Rename to ... | |
4494 | (gdb_xml_parser::~gdb_xml_parser): ... this. | |
4495 | (gdb_xml_create_parser_and_cleanup): Delete with ... | |
4496 | (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out | |
4497 | to this new ctor. | |
4498 | (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of | |
4499 | using gdb_xml_create_parser_and_cleanup. | |
4500 | (xinclude_parsing_data): Add ctor/dtor. | |
4501 | (xml_xinclude_cleanup): Delete. | |
4502 | (xml_process_xincludes): Create a local xinclude_parsing_data | |
4503 | instead of heap-allocating one. Create a local gdb_xml_parser | |
4504 | instead of heap-allocating one with | |
4505 | gdb_xml_create_parser_and_cleanup. | |
4506 | ||
d56060f0 JB |
4507 | 2017-04-18 John Baldwin <jhb@FreeBSD.org> |
4508 | ||
4509 | PR threads/20743 | |
4510 | * fbsd-nat.c (resume_one_thread_cb): Remove. | |
4511 | (resume_all_threads_cb): Remove. | |
4512 | (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of | |
4513 | iterate_over_threads. | |
4514 | ||
305d16a9 JB |
4515 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
4516 | ||
4517 | * NEWS: Create a new section for the next release branch. | |
4518 | Rename the section of the current branch, now that it has | |
4519 | been cut. | |
4520 | ||
8bb57231 JB |
4521 | 2017-04-17 Joel Brobecker <brobecker@adacore.com> |
4522 | ||
4523 | GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db): | |
4524 | * version.in: Bump version to 8.0.50.DATE-git. | |
4525 | ||
096c92dd SDJ |
4526 | 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com> |
4527 | ||
4528 | PR gdb/21385 | |
4529 | * windows-nat.c (windows_create_inferior): Declare 'allargs' | |
4530 | independently of the host, and fix build breakage on Cygwin. | |
4531 | ||
0550c955 PA |
4532 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4533 | ||
4534 | * inferior.c (free_inferior): Convert to ... | |
4535 | (inferior::~inferior): ... this dtor. | |
4536 | (inferior::inferior): New ctor, factored out from ... | |
4537 | (add_inferior_silent): ... here. Allocate the inferior with a new | |
4538 | expression. | |
4539 | (delete_inferior): Call delete instead of free_inferior. | |
4540 | * inferior.h (gdb_environ, continuation): Forward declare. | |
4541 | (inferior): Now a class. Add in-class initialization to all | |
4542 | members. Make boolean fields bool, except 'detaching'. | |
4543 | (inferior::inferior): New explicit ctor. | |
4544 | (inferior::~inferior): New. | |
4545 | ||
e3d60dfc PA |
4546 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4547 | ||
4548 | * inferior.c (init_inferior_list): Delete. | |
4549 | * inferior.h (init_inferior_list): Delete. | |
4550 | ||
5fd69d0a PA |
4551 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4552 | ||
4553 | PR threads/13217 | |
4554 | * gdb.threads/threadapply.exp (thr_apply_detach): New procedure. | |
4555 | (top level): Call it twice, with different thread sets. | |
4556 | ||
c6609450 PA |
4557 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4558 | ||
4559 | * thread.c: Include <algorithm>. | |
4560 | (thread_array_cleanup): Delete. | |
4561 | (scoped_inc_dec_ref): New class. | |
4562 | (live_threads_count): New function. | |
4563 | (set_thread_refcount): Delete. | |
4564 | (tp_array_compar_ascending): Now a bool. | |
4565 | (tp_array_compar): Convert to a std::sort comparison function. | |
4566 | (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref | |
4567 | and live_threads_count. | |
4568 | ||
2a00d7ce PA |
4569 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4570 | ||
4571 | * infrun.c (follow_fork_inferior): Also switch the current | |
4572 | inferior. | |
4573 | ||
441d7c93 PA |
4574 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4575 | ||
4576 | * breakpoint.c (watch_command_1): Save watchpoint-frame info | |
4577 | before calling create_internal_breakpoint. | |
4578 | ||
808480f6 PA |
4579 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4580 | ||
4581 | * fork-child.c (execv_argv): New class. | |
4582 | (breakup_args): Refactored as ... | |
4583 | (execv_argv::init_for_no_shell): .. this method of execv_argv. | |
4584 | Copy arguments to storage and replace separators with NULL | |
4585 | terminators in place. | |
4586 | (escape_bang_in_quoted_argument): Adjust to return bool. | |
4587 | (execv_argv::execv_argv): New ctor. | |
4588 | (execv_argv::init_for_shell): New method, factored out from | |
4589 | fork_inferior. Don't strdup strings into the vector. | |
4590 | (fork_inferior): Eliminate "shell" local and use execv_argv. Use | |
4591 | Remove free_vector_argv call. | |
4592 | ||
ad3d022a YQ |
4593 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
4594 | ||
4595 | * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of | |
4596 | tdep->rx_psw_type. | |
4597 | ||
e6ddc3bf YQ |
4598 | 2017-04-13 Yao Qi <yao.qi@linaro.org> |
4599 | ||
4600 | * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. | |
4601 | * rx-tdep.c (rx_gdbarch_init): Likewise. | |
4602 | ||
bfb8cf90 PA |
4603 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4604 | ||
4605 | * breakpoint.h (struct breakpoint): Reindent. | |
4606 | ||
f5336ca5 PA |
4607 | 2017-04-13 Pedro Alves <palves@redhat.com> |
4608 | ||
4609 | * breakpoint.c (bp_location): Rename to ... | |
4610 | (bp_locations): ... this. All references updated. | |
4611 | (bp_location_count): Rename to ... | |
4612 | (bp_locations_count): ... this. All references updated. | |
4613 | (bp_location_placed_address_before_address_max): Rename to ... | |
4614 | (bp_locations_placed_address_before_address_max): ... this. All | |
4615 | references updated. | |
4616 | (bp_location_shadow_len_after_address_max): Rename to ... | |
4617 | (bp_locations_shadow_len_after_address_max): ... this. All | |
4618 | references updated. | |
4619 | (bp_location_compare_addrs): Rename to ... | |
4620 | (bp_locations_compare_addrs): ... this. All references updated. | |
4621 | (bp_location_compare):Rename to ... | |
4622 | (bp_locations_compare): ... this. All references updated. | |
4623 | (bp_location_target_extensions_update): Rename to ... | |
4624 | (bp_locations_target_extensions_update): ... this. All references | |
4625 | updated. | |
4626 | ||
be628ab8 SDJ |
4627 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4628 | ||
4629 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h". | |
4630 | * common/common.m4: Check headers 'termios.h', 'termio.h' and | |
4631 | 'sgtty.h'. | |
4632 | * common/gdb_termios.h: New file, with parts of "terminal.h". | |
4633 | * inflow.c: Include "gdb_termios.h". | |
4634 | * ser-unix.c: Include "gdb_termios.h". | |
4635 | * terminal.h: Move terminal-related defines to | |
4636 | "common/gdb_termios.h". | |
4637 | ||
8e9e35b1 TT |
4638 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4639 | ||
4640 | * probe.c (parse_probes): Update. | |
4641 | * location.h (delete_event_location): Don't declare. | |
4642 | (event_location_deleter::operator()): Update. | |
4643 | * location.c (event_location_deleter::operator()): Rename from | |
4644 | delete_event_location. | |
4645 | * linespec.h (linespec_result) <location>: Change type to | |
4646 | event_location_up. | |
4647 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
4648 | (decode_objc): Update. | |
4649 | (linespec_result): Don't call delete_event_location. | |
4650 | * breakpoint.c (create_breakpoints_sal) | |
4651 | (bkpt_probe_create_sals_from_location) | |
4652 | (strace_marker_create_sals_from_location): Update. | |
4653 | ||
16e802b9 TT |
4654 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4655 | ||
4656 | * linespec.h (struct linespec_result): Add constructor and | |
4657 | destructor. | |
4658 | (init_linespec_result, destroy_linespec_result) | |
4659 | (make_cleanup_destroy_linespec_result): Don't declare. | |
4660 | * linespec.c (init_linespec_result): Remove. | |
4661 | (linespec_result::~linespec_result): Rename from | |
4662 | destroy_linespec_result. Update. | |
4663 | (cleanup_linespec_result, make_cleanup_destroy_linespec_result): | |
4664 | Remove. | |
4665 | * breakpoint.c (create_breakpoint, break_range_command) | |
4666 | (decode_location_default): Update. | |
4667 | * ax-gdb.c (agent_command_1): Update. | |
4668 | ||
d28cd78a TT |
4669 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4670 | ||
4671 | * remote.c (remote_download_tracepoint): Update. | |
4672 | * python/py-breakpoint.c (bppy_get_location): Update. | |
4673 | * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob) | |
4674 | (gdbscm_breakpoint_location): Update. | |
4675 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update. | |
4676 | * breakpoint.h (struct breakpoint) <location, location_range_end>: | |
4677 | Change type to event_location_up. | |
4678 | * breakpoint.c (create_overlay_event_breakpoint) | |
4679 | (create_longjmp_master_breakpoint) | |
4680 | (create_std_terminate_master_breakpoint) | |
4681 | (create_exception_master_breakpoint) | |
4682 | (breakpoint_event_location_empty_p, print_breakpoint_location) | |
4683 | (print_one_breakpoint_location, create_thread_event_breakpoint) | |
4684 | (init_breakpoint_sal, create_breakpoint) | |
4685 | (print_recreate_ranged_breakpoint, break_range_command) | |
4686 | (init_ada_exception_breakpoint, say_where): Update. | |
4687 | (base_breakpoint_dtor): Don't call delete_event_location. | |
4688 | (bkpt_print_recreate, tracepoint_print_recreate) | |
4689 | (dprintf_print_recreate, update_static_tracepoint) | |
4690 | (breakpoint_re_set_default): Update. | |
4691 | ||
711799d5 TT |
4692 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4693 | ||
4694 | * compile/compile-loc2c.c (compute_stack_depth_worker): Change | |
4695 | type of "to_do". Update. | |
4696 | (compute_stack_depth): Use std::vector. | |
4697 | ||
52d214d3 TT |
4698 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4699 | ||
4700 | * printcmd.c (find_instruction_backward): Use std::vector. | |
4701 | ||
4c404b8b TT |
4702 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4703 | ||
4704 | * symfile.c (objfilep): Remove typedef. | |
4705 | (reread_symbols): Use a std::vector. | |
4706 | ||
156d9eab TT |
4707 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4708 | ||
4709 | * mi/mi-main.c (exec_direction_forward): Remove. | |
4710 | (exec_reverse_continue, mi_execute_command): Use scoped_restore. | |
4711 | * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use | |
4712 | scoped_restore. | |
4713 | * guile/guile.c (guile_repl_command, guile_command) | |
4714 | (gdbscm_execute_gdb_command): Use scoped_restore. | |
4715 | * go-exp.y (go_parse): Use scoped_restore. | |
4716 | * d-exp.y (d_parse): Use scoped_restore. | |
4717 | * cli/cli-decode.c (cmd_func): Use scoped_restore. | |
4718 | * c-exp.y (c_parse): Use scoped_restore. | |
4719 | ||
4d89769a TT |
4720 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4721 | ||
4722 | * mi/mi-parse.h (struct mi_parse): Add constructor, destructor. | |
4723 | (mi_parse): Update return type. | |
4724 | (mi_parse_free): Remove. | |
4725 | * mi/mi-parse.c (mi_parse::mi_parse): New constructor. | |
4726 | (mi_parse::~mi_parse): Rename from mi_parse_free. | |
4727 | (mi_parse_cleanup): Remove. | |
4728 | (mi_parse): Return a unique_ptr. Use new. | |
4729 | * mi/mi-main.c (mi_execute_command): Update. | |
4730 | ||
4b217cc7 TT |
4731 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4732 | ||
4733 | * location.c (explicit_location_lex_one): Return a | |
4734 | unique_xmalloc_ptr. | |
4735 | (string_to_explicit_location): Update. Remove cleanups. | |
4736 | ||
59d3651b TT |
4737 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4738 | ||
4739 | * gnu-v3-abi.c (value_and_voffset_p): Remove typedef. | |
4740 | (compare_value_and_voffset): Change type. Update. | |
4741 | (compute_vtable_size): Change type of "offset_vec". | |
4742 | (gnuv3_print_vtable): Use std::vector. Remove cleanups. | |
4743 | (gnuv3_get_typeid): Remove extraneous declaration. | |
4744 | ||
b24b0d6c TT |
4745 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4746 | ||
4747 | * charset.h (wchar_iterator): Fix comment. | |
4748 | ||
80a3b8c5 TT |
4749 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4750 | ||
4751 | * charset.c (iconv_wrapper): New class. | |
4752 | (cleanup_iconv): Remove. | |
4753 | (convert_between_encodings): Use it. | |
4754 | ||
c83dd867 TT |
4755 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4756 | ||
4757 | * symfile.h (increment_reading_symtab): Update type. | |
4758 | * symfile.c (decrement_reading_symtab): Remove. | |
4759 | (increment_reading_symtab): Return a scoped_restore_tmpl<int>. | |
4760 | * psymtab.c (psymtab_to_symtab): Update. | |
4761 | * dwarf2read.c (dw2_instantiate_symtab): Update. | |
4762 | ||
0e8621a0 TT |
4763 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4764 | ||
4765 | * jit.c (struct jit_reader): Declare separately. Add constructor | |
4766 | and destructor. Change type of "handle". | |
4767 | (loaded_jit_reader): Define separately. | |
4768 | (jit_reader_load): Update. New "new". | |
4769 | (jit_reader_unload_command): Use "delete". | |
4770 | * gdb-dlfcn.h (struct dlclose_deleter): New. | |
4771 | (gdb_dlhandle_up): New typedef. | |
4772 | (gdb_dlopen, gdb_dlsym): Update types. | |
4773 | (gdb_dlclose): Remove. | |
4774 | * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up. | |
4775 | (gdb_dlsym): Change type of "handle". | |
4776 | (make_cleanup_dlclose): Remove. | |
4777 | (dlclose_deleter::operator()): Rename from gdb_dlclose. | |
4778 | * compile/compile-c-support.c (load_libcc): Update. | |
4779 | ||
67d89901 TT |
4780 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4781 | ||
4782 | * symtab.h (find_pcs_for_symtab_line): Change return type. | |
4783 | * symtab.c (find_pcs_for_symtab_line): Change return type. | |
4784 | * python/py-linetable.c (build_line_table_tuple_from_pcs): Change | |
4785 | type of "vec". Update. | |
4786 | (ltpy_get_pcs_for_line): Update. | |
4787 | * linespec.c (decode_digits_ordinary): Update. | |
4788 | ||
93921405 TT |
4789 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4790 | ||
4791 | * tracepoint.c (actions_command): Update. | |
4792 | * python/python.c (python_command, python_interactive_command): | |
4793 | Update. | |
4794 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. | |
4795 | * guile/guile.c (guile_command): Update. | |
4796 | * defs.h (read_command_lines, read_command_lines_1): Return | |
4797 | command_line_up. | |
4798 | (command_lines_deleter): New struct. | |
4799 | (command_line_up): New typedef. | |
4800 | * compile/compile.c (compile_code_command) | |
4801 | (compile_print_command): Update. | |
4802 | * cli/cli-script.h (get_command_line, copy_command_lines): Return | |
4803 | command_line_up. | |
4804 | (make_cleanup_free_command_lines): Remove. | |
4805 | * cli/cli-script.c (get_command_line, read_command_lines_1) | |
4806 | (copy_command_lines): Return command_line_up. | |
4807 | (while_command, if_command, read_command_lines, define_command) | |
4808 | (document_command): Update. | |
4809 | (do_free_command_lines_cleanup, make_cleanup_free_command_lines): | |
4810 | Remove. | |
4811 | * breakpoint.h (breakpoint_set_commands): Change type of | |
4812 | "commands". | |
4813 | * breakpoint.c (breakpoint_set_commands): Change type of | |
4814 | "commands". Update. | |
4815 | (do_map_commands_command, update_dprintf_command_list) | |
4816 | (create_tracepoint_from_upload): Update. | |
4817 | ||
ffc2605c TT |
4818 | 2017-04-12 Tom Tromey <tom@tromey.com> |
4819 | ||
4820 | * tracepoint.c (scope_info): Update. | |
4821 | * spu-tdep.c (spu_catch_start): Update. | |
4822 | * python/python.c (gdbpy_decode_line): Update. | |
4823 | * python/py-finishbreakpoint.c (bpfinishpy_init): Update. | |
4824 | * python/py-breakpoint.c (bppy_init): Update. | |
4825 | * probe.c (parse_probes): Update. | |
4826 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update. | |
4827 | * location.h (event_location_deleter): New struct. | |
4828 | (event_location_up): New typedef. | |
4829 | (new_linespec_location, new_address_location, new_probe_location) | |
4830 | (new_explicit_location, copy_event_location) | |
4831 | (string_to_event_location, string_to_event_location_basic) | |
4832 | (string_to_explicit_location): Update return type. | |
4833 | (make_cleanup_delete_event_location): Remove. | |
4834 | * location.c (new_linespec_location, new_address_location) | |
4835 | (new_probe_location, new_explicit_location, copy_event_location): | |
4836 | Return event_location_up. | |
4837 | (delete_event_location_cleanup) | |
4838 | (make_cleanup_delete_event_location): Remove. | |
4839 | (string_to_explicit_location, string_to_event_location_basic) | |
4840 | (string_to_event_location): Return event_location_up. | |
4841 | * linespec.c (canonicalize_linespec, event_location_to_sals) | |
4842 | (decode_line_with_current_source) | |
4843 | (decode_line_with_last_displayed, decode_objc): Update. | |
4844 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update. | |
4845 | * completer.c (location_completer): Update. | |
4846 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
4847 | * breakpoint.c (create_overlay_event_breakpoint) | |
4848 | (create_longjmp_master_breakpoint) | |
4849 | (create_std_terminate_master_breakpoint) | |
4850 | (create_exception_master_breakpoint) | |
4851 | (create_thread_event_breakpoint): Update. | |
4852 | (init_breakpoint_sal): Update. Remove some dead code. | |
4853 | (create_breakpoint_sal): Change type of "location". Update. | |
4854 | (create_breakpoints_sal, create_breakpoint, break_command_1) | |
4855 | (dprintf_command, break_range_command, until_break_command) | |
4856 | (init_ada_exception_breakpoint) | |
4857 | (strace_marker_create_sals_from_location) | |
4858 | (update_static_tracepoint, trace_command, ftrace_command) | |
4859 | (strace_command, create_tracepoint_from_upload): Update. | |
4860 | * break-catch-throw.c (re_set_exception_catchpoint): Update. | |
4861 | * ax-gdb.c (agent_command_1): Update. | |
4862 | ||
8f10c932 PA |
4863 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4864 | ||
4865 | * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o. | |
4866 | * configure.tgt: Handle i[34567]86-*-go32* and | |
4867 | i[34567]86-*-msdosdjgpp*. | |
4868 | * i386-tdep.c (i386_svr4_reg_to_regnum): | |
4869 | Make extern. | |
4870 | (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to | |
4871 | i386-go32-tdep.c. | |
4872 | (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c. | |
4873 | * i386-go32-tdep.c: New file. | |
4874 | * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New | |
4875 | declarations. | |
4876 | ||
0a31ccfb SM |
4877 | 2017-04-12 Simon Marchi <simon.marchi@ericsson.com> |
4878 | ||
4879 | * aix-thread.c (pd_status2str): Change return type to const char *. | |
4880 | ||
e9bb3fbb PA |
4881 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4882 | ||
4883 | * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove | |
4884 | calls to set_gdbarch_gnu_triplet_regexp. | |
4885 | ||
53375380 PA |
4886 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4887 | ||
4888 | PR gdb/21323 | |
4889 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>: | |
4890 | New enum value. | |
4891 | (cplus_language_arch_info): Register cplus_primitive_type_wchar_t. | |
4892 | * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field. | |
4893 | * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type. | |
4894 | * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values. | |
4895 | * gdbarch.h, gdbarch.c: Regenerate. | |
4896 | * aarch64-tdep.c (aarch64_gdbarch_init): Override | |
4897 | gdbarch_wchar_bit and gdbarch_wchar_signed. | |
4898 | * alpha-tdep.c (alpha_gdbarch_init): Likewise. | |
4899 | * arm-tdep.c (arm_gdbarch_init): Likewise. | |
4900 | * avr-tdep.c (avr_gdbarch_init): Likewise. | |
4901 | * h8300-tdep.c (h8300_gdbarch_init): Likewise. | |
4902 | * i386-nto-tdep.c (i386nto_init_abi): Likewise. | |
4903 | * i386-tdep.c (i386_go32_init_abi): Likewise. | |
4904 | * m32r-tdep.c (m32r_gdbarch_init): Likewise. | |
4905 | * moxie-tdep.c (moxie_gdbarch_init): Likewise. | |
4906 | * nds32-tdep.c (nds32_gdbarch_init): Likewise. | |
4907 | * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise. | |
4908 | * sh-tdep.c (sh_gdbarch_init): Likewise. | |
4909 | * sparc-tdep.c (sparc32_gdbarch_init): Likewise. | |
4910 | * sparc64-tdep.c (sparc64_init_abi): Likewise. | |
4911 | * windows-tdep.c (windows_init_abi): Likewise. | |
4912 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. | |
4913 | ||
53e710ac PA |
4914 | 2017-04-12 Pedro Alves <palves@redhat.com> |
4915 | ||
4916 | PR c++/21323 | |
4917 | * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t, | |
4918 | cplus_primitive_type_char32_t>: New enum values. | |
4919 | (cplus_language_arch_info): Register cplus_primitive_type_char16_t | |
4920 | and cplus_primitive_type_char32_t. | |
4921 | * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or | |
4922 | 32, use the archtecture's built-in type for char16_t and char32_t, | |
4923 | respectively. Otherwise, fallback to init_integer_type as before, | |
4924 | but make the type unsigned, and issue a complaint. | |
4925 | * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned. | |
4926 | ||
ab0538b8 AH |
4927 | 2017-04-12 Alan Hayward <alan.hayward@arm.com> |
4928 | ||
5e0e0422 | 4929 | * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added. |
ab0538b8 AH |
4930 | (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE. |
4931 | ||
5430098f SDJ |
4932 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4933 | ||
4934 | * windows-nat.c (windows_create_inferior): Declare 'toexec' as | |
4935 | 'const char *'. | |
4936 | ||
7c5ded6a SDJ |
4937 | 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com> |
4938 | ||
4939 | * common/common-utils.c (free_vector_argv): New function. | |
4940 | * common/common-utils.h: Include <vector>. | |
4941 | (free_vector_argv): New prototype. | |
4942 | * darwin-nat.c (darwin_create_inferior): Rewrite function | |
4943 | prototype in order to constify "exec_file" and accept a | |
4944 | "std::string" for "allargs". | |
4945 | * fork-child.c: Include <vector>. | |
4946 | (breakup_args): Rewrite function, using C++. | |
4947 | (fork_inferior): Rewrite function header, constify "exec_file_arg" | |
4948 | and accept "std::string" for "allargs". Update the code to | |
4949 | calculate "argv" based on "allargs". Update calls to "exec_fun" | |
4950 | and "execvp". | |
4951 | * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in | |
4952 | order to constify "exec_file" and accept a "std::string" for | |
4953 | "allargs". | |
4954 | * go32-nat.c (go32_create_inferior): Likewise. | |
4955 | * inf-ptrace.c (inf_ptrace_create_inferior): Likewise. | |
4956 | * infcmd.c (run_command_1): Constify "exec_file". Use | |
4957 | "std::string" for inferior arguments. | |
4958 | * inferior.h (fork_inferior): Update prototype. | |
4959 | * linux-nat.c (linux_nat_create_inferior): Rewrite function | |
4960 | prototype in order to constify "exec_file" and accept a | |
4961 | "std::string" for "allargs". | |
4962 | * nto-procfs.c (procfs_create_inferior): Likewise. | |
4963 | * procfs.c (procfs_create_inferior): Likewise. | |
4964 | * remote-sim.c (gdbsim_create_inferior): Likewise. | |
4965 | * remote.c (extended_remote_run): Update code to accept | |
4966 | "std::string" as argument. | |
4967 | (extended_remote_create_inferior): Rewrite function prototype in | |
4968 | order to constify "exec_file" and accept a "std::string" for | |
4969 | "allargs". | |
4970 | * rs6000-nat.c (super_create_inferior): Likewise. | |
4971 | (rs6000_create_inferior): Likewise. | |
4972 | * target.h (struct target_ops) <to_create_inferior>: Likewise. | |
4973 | * windows-nat.c (windows_create_inferior): Likewise. | |
4974 | ||
ae0eee42 PA |
4975 | 2017-04-11 Pedro Alves <palves@redhat.com> |
4976 | ||
4977 | * thread.c: Fix whitespace throughout. | |
4978 | ||
a6acac06 PR |
4979 | 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com> |
4980 | ||
4981 | * linux-nat.c (linux_nat_detach): Remove delete_lwp call. | |
4982 | ||
64403bd1 AH |
4983 | 2017-04-11 Alan Hayward <alan.hayward@arm.com> |
4984 | ||
4985 | * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE | |
4986 | ||
a5bef50f SDJ |
4987 | 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com> |
4988 | ||
4989 | PR gdb/21364 | |
4990 | * osdata.c (info_osdata): Check if 'type' is an empty string | |
4991 | instead of NULL. | |
4992 | ||
9295a5a9 PA |
4993 | 2017-04-10 Pedro Alves <palves@redhat.com> |
4994 | ||
4995 | * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid) | |
4996 | (ptid_to_global_thread_id, in_thread_list) | |
4997 | (do_captured_list_thread_ids, set_resumed, set_running) | |
4998 | (set_executing, set_stop_requested, finish_thread_state) | |
4999 | (validate_registers_access, can_access_registers_ptid) | |
5000 | (print_thread_info_1, switch_to_thread) | |
5001 | (do_restore_current_thread_cleanup) | |
5002 | (make_cleanup_restore_current_thread, thread_command) | |
5003 | (thread_name_command): Use operator== instead of ptid_equal. | |
5004 | ||
996812e3 PA |
5005 | 2017-04-10 Pedro Alves <palves@redhat.com> |
5006 | ||
5007 | * thread.c (struct current_thread_cleanup) <next>: Delete field. | |
5008 | (current_thread_cleanup_chain): Delete. | |
5009 | (restore_current_thread_cleanup_dtor) | |
5010 | (make_cleanup_restore_current_thread): Remove references to | |
5011 | current_thread_cleanup_chain. | |
5012 | ||
845b344f AH |
5013 | 2017-04-10 Alan Hayward <alan.hayward@arm.com> |
5014 | ||
5015 | * msp430-tdep.c (msp430_pseudo_register_read): Never return | |
5016 | REG_UNKNOWN. | |
5017 | ||
803bdfe4 YQ |
5018 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
5019 | ||
5020 | PR gdb/19942 | |
5021 | * gdbthread.h (thread_info::deletable): New method. | |
5022 | (thread_info::incref): New method. | |
5023 | (thread_info::decref): New method. | |
5024 | (thread_info::refcount): Move it to private. | |
5025 | * infrun.c (save_stop_context): Call inc_refcount. | |
5026 | (release_stop_context_cleanup): Likewise. | |
5027 | * thread.c (set_thread_exited): New function. | |
5028 | (init_thread_list): Delete "tp" only it is deletable, otherwise | |
5029 | call set_thread_exited. | |
5030 | (delete_thread_1): Call set_thread_exited. | |
5031 | (current_thread_cleanup) <inferior_pid>: Remove. | |
5032 | <thread>: New field. | |
5033 | (restore_current_thread_ptid_changed): Removed. | |
5034 | (do_restore_current_thread_cleanup): Adjust. | |
5035 | (restore_current_thread_cleanup_dtor): Don't call | |
5036 | find_thread_ptid. | |
5037 | (set_thread_refcount): Use dec_refcount. | |
5038 | (make_cleanup_restore_current_thread): Adjust. | |
5039 | (thread_apply_all_command): Call inc_refcount. | |
5040 | (_initialize_thread): Don't call | |
5041 | observer_attach_thread_ptid_changed. | |
5042 | ||
8c25b497 YQ |
5043 | 2017-04-10 Yao Qi <yao.qi@linaro.org> |
5044 | ||
5045 | * thread.c (delete_thread_1): Hoist code on marking thread as | |
5046 | exited. | |
5047 | ||
8473b447 SM |
5048 | 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
5049 | ||
5050 | * windows-nat.c (windows_detach): Initialize ptid with | |
5051 | minus_one_ptid. | |
5052 | ||
6670ec13 SM |
5053 | 2017-04-07 Simon Marchi <simon.marchi@ericsson.com> |
5054 | ||
5055 | * unittests/ptid-selftests.c: Fix erroneous assert messages. | |
5056 | ||
ba2f91bb AH |
5057 | 2017-04-07 Alan Hayward <alan.hayward@arm.com> |
5058 | ||
5059 | * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add. | |
5060 | (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE. | |
5061 | (bfin_pseudo_register_write): Likewise | |
5062 | ||
436252de SM |
5063 | 2017-04-06 Simon Marchi <simon.marchi@ericsson.com> |
5064 | ||
5065 | * common/ptid.h (struct ptid): Change to... | |
5066 | (class ptid_t): ... this. | |
5067 | <ptid_t>: New constructors. | |
5068 | <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=, | |
5069 | matches>: New methods. | |
5070 | <make_null, make_minus_one>: New static methods. | |
5071 | <pid>: Rename to... | |
5072 | <m_pid>: ...this. | |
5073 | <lwp>: Rename to... | |
5074 | <m_lwp>: ...this. | |
5075 | <tid>: Rename to... | |
5076 | <m_tid>: ...this. | |
5077 | (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, | |
5078 | ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments | |
5079 | as references, move comment to class ptid_t. | |
5080 | * common/ptid.c (null_ptid, minus_one_ptid): Initialize with | |
5081 | ptid_t static methods. | |
5082 | (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid, | |
5083 | ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): | |
5084 | Take ptid arguments as references, implement using ptid_t methods. | |
5085 | * unittests/ptid-selftests.c: New file. | |
5086 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5087 | unittests/ptid-selftests.c. | |
5088 | (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o. | |
5089 | ||
0dedf377 TP |
5090 | 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com> |
5091 | ||
5092 | * python/python.c (python_run_simple_file): Cast mode literal to | |
5093 | non-const char pointer as expected by PyFile_FromString. | |
5094 | ||
4e9868d4 SM |
5095 | 2017-04-05 Simon Marchi <simon.marchi@ericsson.com> |
5096 | ||
5097 | * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with | |
5098 | minus_one_ptid and null_ptid. | |
5099 | ||
9bf2a700 PA |
5100 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5101 | ||
5102 | * warning.m4 (build_warnings): Remove -Wno-write-strings. | |
5103 | * configure: Regenerate. | |
5104 | ||
a121b7c1 PA |
5105 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5106 | ||
5107 | * ada-exp.y (yyerror): Constify. | |
5108 | * ada-lang.c (bound_name, get_selections) | |
5109 | (ada_variant_discrim_type) | |
5110 | (ada_variant_discrim_name, ada_value_struct_elt) | |
5111 | (ada_lookup_struct_elt_type, is_unchecked_variant) | |
5112 | (ada_which_variant_applies, standard_exc, ada_get_next_arg) | |
5113 | (catch_ada_exception_command_split) | |
5114 | (catch_ada_assert_command_split, catch_assert_command) | |
5115 | (ada_op_name): Constify. | |
5116 | * ada-lang.h (ada_yyerror, get_selections) | |
5117 | (ada_variant_discrim_name, ada_value_struct_elt): Constify. | |
5118 | * arc-tdep.c (arc_print_frame_cache): Constify. | |
5119 | * arm-tdep.c (arm_skip_stub): Constify. | |
5120 | * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref) | |
5121 | (gen_aggregate_elt_ref): Constify. | |
5122 | * bcache.c (print_bcache_statistics): Constify. | |
5123 | * bcache.h (print_bcache_statistics): Constify. | |
5124 | * break-catch-throw.c (catch_exception_command_1): | |
5125 | * breakpoint.c (struct ep_type_description::description): | |
5126 | Constify. | |
5127 | (add_solib_catchpoint): Constify. | |
5128 | (catch_fork_command_1): Add cast. | |
5129 | (add_catch_command): Constify. | |
5130 | * breakpoint.h (add_catch_command, add_solib_catchpoint): | |
5131 | Constify. | |
5132 | * bsd-uthread.c (bsd_uthread_state): Constify. | |
5133 | * buildsym.c (patch_subfile_names): Constify. | |
5134 | * buildsym.h (next_symbol_text_func, patch_subfile_names): | |
5135 | Constify. | |
5136 | * c-exp.y (yyerror): Constify. | |
5137 | (token::oper): Constify. | |
5138 | * c-lang.h (c_yyerror, cp_print_class_member): Constify. | |
5139 | * c-varobj.c (cplus_describe_child): Constify. | |
5140 | * charset.c (find_charset_names): Add cast. | |
5141 | (find_charset_names): Constify array and add const_cast. | |
5142 | * cli/cli-cmds.c (complete_command, cd_command): Constify. | |
5143 | (edit_command): Constify. | |
5144 | * cli/cli-decode.c (lookup_cmd): Constify. | |
5145 | * cli/cli-dump.c (dump_memory_command, dump_value_command): | |
5146 | Constify. | |
5147 | (struct dump_context): Constify. | |
5148 | (add_dump_command, restore_command): Constify. | |
5149 | * cli/cli-script.c (get_command_line): Constify. | |
5150 | * cli/cli-script.h (get_command_line): Constify. | |
5151 | * cli/cli-utils.c (check_for_argument): Constify. | |
5152 | * cli/cli-utils.h (check_for_argument): Constify. | |
5153 | * coff-pe-read.c (struct read_pe_section_data): Constify. | |
5154 | * command.h (lookup_cmd): Constify. | |
5155 | * common/print-utils.c (decimal2str): Constify. | |
5156 | * completer.c (gdb_print_filename): Constify. | |
5157 | * corefile.c (set_gnutarget): Constify. | |
5158 | * cp-name-parser.y (yyerror): Constify. | |
5159 | * cp-valprint.c (cp_print_class_member): Constify. | |
5160 | * cris-tdep.c (cris_register_name, crisv32_register_name): | |
5161 | Constify. | |
5162 | * d-exp.y (yyerror): Constify. | |
5163 | (struct token::oper): Constify. | |
5164 | * d-lang.h (d_yyerror): Constify. | |
5165 | * dbxread.c (struct header_file_location::name): Constify. | |
5166 | (add_old_header_file, add_new_header_file, last_function_name) | |
5167 | (dbx_next_symbol_text, add_bincl_to_list) | |
5168 | (find_corresponding_bincl_psymtab, set_namestring) | |
5169 | (find_stab_function_addr, read_dbx_symtab, start_psymtab) | |
5170 | (dbx_end_psymtab, read_ofile_symtab, process_one_symbol): | |
5171 | * defs.h (command_line_input, print_address_symbolic) | |
5172 | (deprecated_readline_begin_hook): Constify. | |
5173 | * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name): | |
5174 | Constify. | |
5175 | * event-top.c (handle_line_of_input): Constify and add cast. | |
5176 | * exceptions.c (catch_errors): Constify. | |
5177 | * exceptions.h (catch_errors): Constify. | |
5178 | * expprint.c (print_subexp_standard, op_string, op_name) | |
5179 | (op_name_standard, dump_raw_expression, dump_raw_expression): | |
5180 | * expression.h (op_name, op_string, dump_raw_expression): | |
5181 | Constify. | |
5182 | * f-exp.y (yyerror): Constify. | |
5183 | (struct token::oper): Constify. | |
5184 | (struct f77_boolean_val::name): Constify. | |
5185 | * f-lang.c (f_word_break_characters): Constify. | |
5186 | * f-lang.h (f_yyerror): Constify. | |
5187 | * fork-child.c (fork_inferior): Add cast. | |
5188 | * frv-tdep.c (struct gdbarch_tdep::register_names): Constify. | |
5189 | (new_variant): Constify. | |
5190 | * gdbarch.sh (pstring_ptr, pstring_list): Constify. | |
5191 | * gdbarch.c: Regenerate. | |
5192 | * gdbcore.h (set_gnutarget): Constify. | |
5193 | * go-exp.y (yyerror): Constify. | |
5194 | (token::oper): Constify. | |
5195 | * go-lang.h (go_yyerror): Constify. | |
5196 | * go32-nat.c (go32_sysinfo): Constify. | |
5197 | * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify. | |
5198 | * guile/scm-cmd.c (cmdscm_function): Constify. | |
5199 | * guile/scm-param.c (pascm_param_value): Constify. | |
5200 | * h8300-tdep.c (h8300_register_name, h8300s_register_name) | |
5201 | (h8300sx_register_name): Constify. | |
5202 | * hppa-tdep.c (hppa32_register_name, hppa64_register_name): | |
5203 | Constify. | |
5204 | * ia64-tdep.c (ia64_register_names): Constify. | |
5205 | * infcmd.c (construct_inferior_arguments): Constify. | |
5206 | (path_command, attach_post_wait): Constify. | |
5207 | * language.c (show_range_command, show_case_command) | |
5208 | (unk_lang_error): Constify. | |
5209 | * language.h (language_defn::la_error) | |
5210 | (language_defn::la_name_of_this): Constify. | |
5211 | * linespec.c (decode_line_2): Constify. | |
5212 | * linux-thread-db.c (thread_db_err_str): Constify. | |
5213 | * lm32-tdep.c (lm32_register_name): Constify. | |
5214 | * m2-exp.y (yyerror): Constify. | |
5215 | * m2-lang.h (m2_yyerror): Constify. | |
5216 | * m32r-tdep.c (m32r_register_names): Constify and make static. | |
5217 | * m68hc11-tdep.c (m68hc11_register_names): Constify. | |
5218 | * m88k-tdep.c (m88k_register_name): Constify. | |
5219 | * macroexp.c (appendmem): Constify. | |
5220 | * mdebugread.c (fdr_name, add_data_symbol, parse_type) | |
5221 | (upgrade_type, parse_external, parse_partial_symbols) | |
5222 | (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab) | |
5223 | (new_symbol): Constify. | |
5224 | * memattr.c (mem_info_command): Constify. | |
5225 | * mep-tdep.c (register_name_from_keyword): Constify. | |
5226 | * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env): | |
5227 | Constify. | |
5228 | * mi/mi-cmd-stack.c (list_args_or_locals): Constify. | |
5229 | * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify. | |
5230 | * mi/mi-main.c (captured_mi_execute_command): Constify and add | |
5231 | cast. | |
5232 | (mi_execute_async_cli_command): Constify. | |
5233 | * mips-tdep.c (mips_register_name): Constify. | |
5234 | * mn10300-tdep.c (register_name, mn10300_generic_register_name) | |
5235 | (am33_register_name, am33_2_register_name) | |
5236 | * moxie-tdep.c (moxie_register_names): Constify. | |
5237 | * nat/linux-osdata.c (osdata_type): Constify fields. | |
5238 | * nto-tdep.c (nto_parse_redirection): Constify. | |
5239 | * objc-lang.c (lookup_struct_typedef, lookup_objc_class) | |
5240 | (lookup_child_selector): Constify. | |
5241 | (objc_methcall::name): Constify. | |
5242 | * objc-lang.h (lookup_objc_class, lookup_child_selector) | |
5243 | (lookup_struct_typedef): Constify. | |
5244 | * objfiles.c (pc_in_section): Constify. | |
5245 | * objfiles.h (pc_in_section): Constify. | |
5246 | * p-exp.y (struct token::oper): Constify. | |
5247 | (yyerror): Constify. | |
5248 | * p-lang.h (pascal_yyerror): Constify. | |
5249 | * parser-defs.h (op_name_standard): Constify. | |
5250 | (op_print::string): Constify. | |
5251 | (exp_descriptor::op_name): Constify. | |
5252 | * printcmd.c (print_address_symbolic): Constify. | |
5253 | * psymtab.c (print_partial_symbols): Constify. | |
5254 | * python/py-breakpoint.c (stop_func): Constify. | |
5255 | (bppy_get_expression): Constify. | |
5256 | * python/py-cmd.c (cmdpy_completer::name): Constify. | |
5257 | (cmdpy_function): Constify. | |
5258 | * python/py-event.c (evpy_add_attribute) | |
5259 | (gdbpy_initialize_event_generic): Constify. | |
5260 | * python/py-event.h (evpy_add_attribute) | |
5261 | (gdbpy_initialize_event_generic): Constify. | |
5262 | * python/py-evts.c (add_new_registry): Constify. | |
5263 | * python/py-finishbreakpoint.c (outofscope_func): Constify. | |
5264 | * python/py-framefilter.c (get_py_iter_from_func): Constify. | |
5265 | * python/py-inferior.c (get_buffer): Add cast. | |
5266 | * python/py-param.c (parm_constant::name): Constify. | |
5267 | * python/py-unwind.c (fprint_frame_id): Constify. | |
5268 | * python/python.c (gdbpy_parameter_value): Constify. | |
5269 | * remote-fileio.c (remote_fio_func_map): Make 'name' const. | |
5270 | * remote.c (memory_packet_config::name): Constify. | |
5271 | (show_packet_config_cmd, remote_write_bytes) | |
5272 | (remote_buffer_add_string): | |
5273 | * reverse.c (exec_reverse_once): Constify. | |
5274 | * rs6000-tdep.c (variant::name, variant::description): Constify. | |
5275 | * rust-exp.y (rustyyerror): Constify. | |
5276 | * rust-lang.c (rust_op_name): Constify. | |
5277 | * rust-lang.h (rustyyerror): Constify. | |
5278 | * serial.h (serial_ops::name): Constify. | |
5279 | * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name) | |
5280 | (sh_sh3e_register_name, sh_sh2e_register_name) | |
5281 | (sh_sh2a_register_name, sh_sh2a_nofpu_register_name) | |
5282 | (sh_sh_dsp_register_name, sh_sh3_dsp_register_name) | |
5283 | (sh_sh4_register_name, sh_sh4_nofpu_register_name) | |
5284 | (sh_sh4al_dsp_register_name): Constify. | |
5285 | * sh64-tdep.c (sh64_register_name): Constify. | |
5286 | * solib-darwin.c (lookup_symbol_from_bfd): Constify. | |
5287 | * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify. | |
5288 | * stabsread.c (patch_block_stabs, read_type_number) | |
5289 | (ref_map::stabs, ref_add, process_reference) | |
5290 | (symbol_reference_defined, define_symbol, define_symbol) | |
5291 | (error_type, read_type, read_member_functions, read_cpp_abbrev) | |
5292 | (read_one_struct_field, read_struct_fields, read_baseclasses) | |
5293 | (read_tilde_fields, read_struct_type, read_array_type) | |
5294 | (read_enum_type, read_sun_builtin_type, read_sun_floating_type) | |
5295 | (read_huge_number, read_range_type, read_args, common_block_start) | |
5296 | (find_name_end): Constify. | |
5297 | * stabsread.h (common_block_start, define_symbol) | |
5298 | (process_one_symbol, symbol_reference_defined, ref_add): | |
5299 | * symfile.c (get_section_index, add_symbol_file_command): | |
5300 | * symfile.h (get_section_index): Constify. | |
5301 | * target-descriptions.c (tdesc_type::name): Constify. | |
5302 | (tdesc_free_type): Add cast. | |
5303 | * target.c (find_default_run_target): | |
5304 | (add_deprecated_target_alias, find_default_run_target) | |
5305 | (target_announce_detach): Constify. | |
5306 | (do_option): Constify. | |
5307 | * target.h (add_deprecated_target_alias): Constify. | |
5308 | * thread.c (print_thread_info_1): Constify. | |
5309 | * top.c (deprecated_readline_begin_hook, command_line_input): | |
5310 | Constify. | |
5311 | (init_main): Add casts. | |
5312 | * top.h (handle_line_of_input): Constify. | |
5313 | * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify. | |
5314 | * tracepoint.c (tvariables_info_1, trace_status_mi): Constify. | |
5315 | (tfind_command): Rename to ... | |
5316 | (tfind_command_1): ... this and constify. | |
5317 | (tfind_command): New function. | |
5318 | (tfind_end_command, tfind_start_command): Adjust. | |
5319 | (encode_source_string): Constify. | |
5320 | * tracepoint.h (encode_source_string): Constify. | |
5321 | * tui/tui-data.c (tui_partial_win_by_name): Constify. | |
5322 | * tui/tui-data.h (tui_partial_win_by_name): Constify. | |
5323 | * tui/tui-source.c (tui_set_source_content_nil): Constify. | |
5324 | * tui/tui-source.h (tui_set_source_content_nil): Constify. | |
5325 | * tui/tui-win.c (parse_scrolling_args): Constify. | |
5326 | * tui/tui-windata.c (tui_erase_data_content): Constify. | |
5327 | * tui/tui-windata.h (tui_erase_data_content): Constify. | |
5328 | * tui/tui-winsource.c (tui_erase_source_content): Constify. | |
5329 | * tui/tui.c (tui_enable): Add cast. | |
5330 | * utils.c (defaulted_query): Constify. | |
5331 | (init_page_info): Add cast. | |
5332 | (puts_debug, subset_compare): Constify. | |
5333 | * utils.h (subset_compare): Constify. | |
5334 | * varobj.c (varobj_format_string): Constify. | |
5335 | * varobj.h (varobj_format_string): Constify. | |
5336 | * vax-tdep.c (vax_register_name): Constify. | |
5337 | * windows-nat.c (windows_detach): Constify. | |
5338 | * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify. | |
5339 | * xml-support.c (gdb_xml_end_element): Constify. | |
5340 | * xml-tdesc.c (tdesc_start_reg): Constify. | |
5341 | * xstormy16-tdep.c (xstormy16_register_name): Constify. | |
5342 | * xtensa-tdep.c (xtensa_find_register_by_name): Constify. | |
5343 | * xtensa-tdep.h (xtensa_register_t::name): Constify. | |
5344 | ||
995816ba PA |
5345 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5346 | ||
5347 | * proc-api.c (struct trans): Constify. | |
5348 | (procfs_note): Constify. | |
5349 | * proc-events.c (struct trans, syscall_table): | |
5350 | * proc-flags.c (struct trans): Constify. | |
5351 | * proc-utils.h (procfs_note): Constify. | |
5352 | * proc-why.c (struct trans): Constify. | |
5353 | * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) | |
5354 | (procfs_detach): Constify. | |
5355 | * sol-thread.c (struct string_map): Constify. | |
5356 | (td_err_string, td_state_string): Constify. | |
5357 | ||
3e83a920 PA |
5358 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5359 | ||
5360 | * proc-api.c (procfs_filename): Don't initialize | |
5361 | procfs_filename. | |
5362 | (prepare_to_trace): Assume procfs_filename is non-NULL. | |
5363 | (_initialize_proc_api): Give procfs_filename a default value here. | |
5364 | ||
63160a43 PA |
5365 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5366 | ||
5367 | * break-catch-throw.c (handle_gnu_v3_exceptions): Constify | |
5368 | 'cond_string' parameter. | |
5369 | (extract_exception_regexp): Constify 'string' parameter. | |
5370 | (catch_exception_command_1): Constify. | |
5371 | * breakpoint.c (init_catchpoint) | |
5372 | (create_fork_vfork_event_catchpoint): Constify 'cond_string' | |
5373 | parameter. | |
5374 | (ep_parse_optional_if_clause, catch_fork_command_1) | |
5375 | (catch_exec_command_1): Constify. | |
5376 | * breakpoint.h (init_catchpoint): Constify 'cond_string' | |
5377 | parameter. | |
5378 | (ep_parse_optional_if_clause): Constify. | |
5379 | * cli/cli-utils.c (remove_trailing_whitespace) | |
5380 | (check_for_argument): Constify. | |
5381 | * cli/cli-utils.h (remove_trailing_whitespace): Constify and add | |
5382 | non-const overload. | |
5383 | (check_for_argument): Likewise. | |
5384 | ||
9b2eba3d PA |
5385 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5386 | ||
5387 | * event-top.c (command_line_handler): Add cast to execute_command | |
5388 | call. | |
5389 | * record-btrace.c (cmd_record_btrace_bts_start) | |
5390 | (cmd_record_btrace_pt_start, cmd_record_btrace_start) | |
5391 | (cmd_record_btrace_start): Add cast to execute_command call. | |
5392 | * record-full.c (record_full_goto_insn): | |
5393 | * record.c (record_start, record_stop): Add cast to | |
5394 | execute_command_to_string calls. | |
5395 | (cmd_record_start): Add cast to execute_command calls. | |
5396 | ||
2adadf51 PA |
5397 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5398 | ||
5399 | * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New | |
5400 | static inline function. | |
5401 | * python/py-arch.c (archpy_disassemble): Constify 'keywords' | |
5402 | array and use gdb_PyArg_ParseTupleAndKeywords. | |
5403 | * python/py-cmd.c (cmdpy_init): Likewise. | |
5404 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
5405 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory) | |
5406 | (infpy_search_memory): Likewise. | |
5407 | * python/py-objfile.c (objfpy_add_separate_debug_file) | |
5408 | (gdbpy_lookup_objfile): Likewise. | |
5409 | * python/py-symbol.c (gdbpy_lookup_symbol) | |
5410 | (gdbpy_lookup_global_symbol): Likewise. | |
5411 | * python/py-type.c (gdbpy_lookup_type): Likewise. | |
5412 | * python/py-value.c (valpy_lazy_string, valpy_string): Likewise. | |
5413 | * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush): | |
5414 | Likewise. | |
5415 | ||
0d1f4ceb PA |
5416 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5417 | ||
5418 | * python/python-internal.h (gdb_PyGetSetDef): New type. | |
5419 | * python/py-block.c (block_object_getset) | |
5420 | (breakpoint_object_getset): Now a gdb_PyGetSetDef array. | |
5421 | * python/py-event.c (event_object_getset) | |
5422 | (finish_breakpoint_object_getset): Likewise. | |
5423 | * python/py-inferior.c (inferior_object_getset): Likewise. | |
5424 | * python/py-infthread.c (thread_object_getset): Likewise. | |
5425 | * python/py-lazy-string.c (lazy_string_object_getset): Likewise. | |
5426 | * python/py-linetable.c (linetable_entry_object_getset): Likewise. | |
5427 | * python/py-objfile.c (objfile_getset): Likewise. | |
5428 | * python/py-progspace.c (pspace_getset): Likewise. | |
5429 | * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset): | |
5430 | Likewise. | |
5431 | * python/py-record.c (recpy_record_getset): Likewise. | |
5432 | * python/py-symbol.c (symbol_object_getset): Likewise. | |
5433 | * python/py-symtab.c (symtab_object_getset, sal_object_getset): | |
5434 | Likewise. | |
5435 | * python/py-type.c (type_object_getset, field_object_getset): | |
5436 | Likewise. | |
5437 | * python/py-value.c (value_object_getset): Likewise. | |
5438 | ||
4d759979 PA |
5439 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5440 | ||
5441 | * python/python-internal.h (gdb_PyObject_CallMethod) | |
5442 | (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath): | |
5443 | New functions. | |
5444 | (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException) | |
5445 | (PySys_GetObject, PySys_SetPath): New macros. | |
5446 | ||
fdf9e36f PA |
5447 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5448 | ||
5449 | * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of | |
5450 | info_osdata_command. | |
5451 | * osdata.c (info_osdata_command): Rename to ... | |
5452 | (info_osdata): ... this. Constify 'type' parameter, and remove | |
5453 | the 'from_tty' parameter. Accept NULL TYPE. | |
5454 | (info_osdata_command): New function. | |
5455 | * osdata.h (info_osdata_command): Remove declaration. | |
5456 | (info_osdata): New declaration. | |
5457 | ||
9f33b8b7 PA |
5458 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5459 | ||
5460 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert) | |
5461 | (mi_cmd_dprintf_insert, mi_cmd_break_passcount) | |
5462 | (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command' | |
5463 | parameter. | |
5464 | * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception) | |
5465 | (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter. | |
5466 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command' | |
5467 | parameter. | |
5468 | * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path) | |
5469 | (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show) | |
5470 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) | |
5471 | (mi_cmd_file_list_exec_source_files) | |
5472 | (mi_cmd_file_list_shared_libraries): Constify 'command' parameter. | |
5473 | * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions) | |
5474 | (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command' | |
5475 | parameter. | |
5476 | * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters) | |
5477 | (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth) | |
5478 | (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) | |
5479 | (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame) | |
5480 | (mi_cmd_stack_info_frame): Constify 'command' parameter. | |
5481 | * mi/mi-cmd-target.c (mi_cmd_target_file_get) | |
5482 | (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify | |
5483 | 'command' parameter. | |
5484 | * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete) | |
5485 | (mi_cmd_var_set_format, mi_cmd_var_set_visualizer) | |
5486 | (mi_cmd_var_set_frozen, mi_cmd_var_show_format) | |
5487 | (mi_cmd_var_info_num_children, mi_cmd_var_list_children) | |
5488 | (mi_cmd_var_info_type, mi_cmd_var_info_path_expression) | |
5489 | (mi_cmd_var_info_expression, mi_cmd_var_show_attributes) | |
5490 | (mi_cmd_var_evaluate_expression, mi_cmd_var_assign) | |
5491 | (mi_cmd_var_update, mi_cmd_enable_pretty_printing) | |
5492 | (mi_cmd_var_set_update_range): Constify 'command' parameter. | |
5493 | * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter. | |
5494 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command' | |
5495 | parameter. | |
5496 | * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next) | |
5497 | (mi_cmd_exec_next_instruction, mi_cmd_exec_step) | |
5498 | (mi_cmd_exec_step_instruction, mi_cmd_exec_finish) | |
5499 | (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue) | |
5500 | (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach) | |
5501 | (mi_cmd_target_flash_erase, mi_cmd_thread_select) | |
5502 | (mi_cmd_thread_list_ids, mi_cmd_thread_info) | |
5503 | (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names) | |
5504 | (mi_cmd_data_list_changed_registers) | |
5505 | (mi_cmd_data_write_register_values) | |
5506 | (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory) | |
5507 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory) | |
5508 | (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings) | |
5509 | (mi_cmd_list_features, mi_cmd_list_target_features) | |
5510 | (mi_cmd_add_inferior, mi_cmd_remove_inferior) | |
5511 | (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables) | |
5512 | (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start) | |
5513 | (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info) | |
5514 | (mi_cmd_trace_frame_collected): Constify 'command' | |
5515 | parameter. | |
5516 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify | |
5517 | 'command' parameter. | |
5518 | ||
67cb5b2d PA |
5519 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5520 | ||
5521 | * ada-lang.c (ada_completer_word_break_characters): Now a const | |
5522 | array. | |
5523 | (ada_get_gdb_completer_word_break_characters): Constify. | |
5524 | * completer.c (gdb_completer_command_word_break_characters) | |
5525 | (gdb_completer_file_name_break_characters) | |
5526 | (gdb_completer_quote_characters): Now const arrays. | |
5527 | (get_gdb_completer_quote_characters): Constify. | |
5528 | (set_rl_completer_word_break_characters): New function. | |
5529 | (set_gdb_completion_word_break_characters) | |
5530 | (complete_line_internal): Use it. | |
5531 | * completer.h (get_gdb_completer_quote_characters): Constify. | |
5532 | (set_rl_completer_word_break_characters): Declare. | |
5533 | * f-lang.c (f_word_break_characters): Constify. | |
5534 | * language.c (default_word_break_characters): Constify. | |
5535 | * language.h (language_defn::la_word_break_characters): Constify. | |
5536 | (default_word_break_characters): Constify. | |
5537 | * top.c (init_main): Use set_rl_completer_word_break_characters. | |
5538 | ||
7a114964 PA |
5539 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5540 | ||
5541 | * aix-thread.c (aix_thread_pid_to_str) | |
5542 | (aix_thread_extra_thread_info): Constify. | |
5543 | * bsd-kvm.c (bsd_kvm_pid_to_str): Constify. | |
5544 | * bsd-uthread.c (bsd_uthread_extra_thread_info) | |
5545 | (bsd_uthread_pid_to_str): Constify. | |
5546 | * corelow.c (core_pid_to_str): Constify. | |
5547 | * darwin-nat.c (darwin_pid_to_str): Constify. | |
5548 | * fbsd-nat.c (fbsd_pid_to_str): Constify. | |
5549 | * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str): | |
5550 | Constify. | |
5551 | * gnu-nat.c (gnu_pid_to_str): Constify. | |
5552 | * go32-nat.c (go32_pid_to_str): Constify. | |
5553 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify. | |
5554 | * inf-ptrace.c (inf_ptrace_pid_to_str): Constify. | |
5555 | * inferior.c (inferior_pid_to_str): Constify. | |
5556 | * linux-nat.c (linux_nat_pid_to_str): Constify. | |
5557 | * linux-tdep.c (linux_core_pid_to_str): Constify. | |
5558 | * linux-thread-db.c (thread_db_pid_to_str) | |
5559 | (thread_db_extra_thread_info): Constify. | |
5560 | * nto-tdep.c (nto_extra_thread_info): Constify. | |
5561 | * nto-tdep.h (nto_extra_thread_info): Constify. | |
5562 | * obsd-nat.c (obsd_pid_to_str): Constify. | |
5563 | * procfs.c (procfs_pid_to_str): Constify. | |
5564 | * ravenscar-thread.c (ravenscar_extra_thread_info) | |
5565 | (ravenscar_pid_to_str): Constify. | |
5566 | * remote-sim.c (gdbsim_pid_to_str): Constify. | |
5567 | * remote.c (remote_threads_extra_info, remote_pid_to_str): | |
5568 | Constify. | |
5569 | * sol-thread.c (solaris_pid_to_str): Constify. | |
5570 | * sol2-tdep.c (sol2_core_pid_to_str): Constify. | |
5571 | * sol2-tdep.h (sol2_core_pid_to_str): Constify. | |
5572 | * target.c (default_pid_to_str, target_pid_to_str) | |
5573 | (normal_pid_to_str, default_pid_to_str): Constify. | |
5574 | * target.h (target_ops::to_pid_to_str) | |
5575 | (target_ops::to_extra_thread_info): Constify. | |
5576 | (target_pid_to_str, normal_pid_to_str): Constify. | |
5577 | * windows-nat.c (windows_pid_to_str): Constify. | |
5578 | * gdbarch.sh (core_pid_to_str): Constify. | |
5579 | * target-delegates.c: Regenerate. | |
5580 | * gdbarch.h, gdbarch.c: Regenerate. | |
5581 | ||
69bbf465 PA |
5582 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5583 | ||
5584 | * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage | |
5585 | the memory of the temporary warning_pre_print override. | |
5586 | * utils.c (warning_pre_print): Constify. | |
5587 | * utils.h (warning_pre_print): Constify. | |
5588 | ||
be47f9e8 PA |
5589 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5590 | ||
5591 | * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter. | |
5592 | (shell_command): New function. | |
5593 | (make_command): Use std::string. | |
5594 | (init_cli_cmds): Register shell_command instead of shell_escape. | |
5595 | ||
bde6261a PA |
5596 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5597 | ||
5598 | * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize. | |
5599 | * tracepoint.c (default_collect): Don't initialize. | |
5600 | ||
b38ef47f PA |
5601 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5602 | ||
5603 | * macroexp.c (macro_buffer::shared): Now a bool. | |
5604 | (init_buffer): Update. | |
5605 | (init_shared_buffer): Constify 'addr' parameter. | |
5606 | (substitute_args, expand, macro_expand, macro_expand_next): Remove | |
5607 | casts. | |
5608 | ||
f995bbe8 PA |
5609 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5610 | ||
5611 | * arm-tdep.c (show_disassembly_style_sfunc): Constify local. | |
5612 | * disasm.c (set_disassembler_options): Constify local. | |
5613 | * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment. | |
5614 | ||
4a596fe2 SDJ |
5615 | 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
5616 | ||
5617 | PR gdb/21352 | |
5618 | * tracefile.c (tsave_command): Fix argument parsing for '-r' | |
5619 | option. | |
5620 | ||
2cad08ea YQ |
5621 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
5622 | ||
5623 | * frame.c (frame_unwind_register_unsigned): Call | |
5624 | frame_unwind_register_value. | |
5625 | ||
55a98976 YQ |
5626 | 2017-04-05 Yao Qi <yao.qi@linaro.org> |
5627 | ||
5628 | * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint): | |
5629 | Use gdb_test_multiple, and don't match anchor. | |
5630 | ||
4ac40124 PA |
5631 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5632 | ||
5633 | * MAINTAINERS (Global Maintainers): Add Simon Marchi. | |
5634 | (Write After Approval): Remove Simon Marchi. | |
5635 | ||
c053b654 PA |
5636 | 2017-04-05 Pedro Alves <palves@redhat.com> |
5637 | ||
5638 | * common/gdb_optional.h (optional::optional): Make constexpr and | |
5639 | initialize m_dummy. | |
5640 | ||
4c7bf4f9 JB |
5641 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5642 | ||
5643 | * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
5644 | (amd64fbsd_jmp_buf_reg_offset): Remove. | |
5645 | (amd64fbsd_supply_uthread): Remove function. | |
5646 | (amd64fbsd_collect_uthread): Remove function. | |
5647 | (amd64fbsd_init_abi): Don't set bsd-uthread callbacks. | |
5648 | * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o. | |
5649 | (x86_64-*-freebsd*): Remove bsd-uthread.o. | |
5650 | (fbsd-nat.c): Update comment. | |
5651 | * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include. | |
5652 | (i386fbsd_jmp_buf_reg_offset): Remove. | |
5653 | (i386fbsd_supply_uthread): Remove function. | |
5654 | (i386fbsd_collect_uthread): Remove function. | |
5655 | (i386fbsd_init_abi): Don't set bsd-uthread callbacks. | |
5656 | ||
1e1a8bef JB |
5657 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5658 | ||
5659 | * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o. | |
5660 | (ALLDEPFILES): Remove alpha-fbsd-tdep.c | |
5661 | * NEWS: Mention that support for FreeBSD/alpha was removed. | |
5662 | * alpha-fbsd-tdep.c: Delete file. | |
5663 | * config/alpha/fbsd.mh: Delete file. | |
5664 | * configure.host: Delete alpha*-*-freebsd* and | |
5665 | alpha*-*-kfreebsd*-gnu. | |
5666 | * configure.tgt: Delete alpha*-*-freebsd* and | |
5667 | alpha*-*-kfreebsd*-gnu. | |
5668 | ||
49907934 JB |
5669 | 2017-04-04 John Baldwin <jhb@FreeBSD.org> |
5670 | ||
5671 | * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers, | |
5672 | amd64bsd_store_inferior_registers): Use ptid from regcache. | |
5673 | ||
6f77053d PA |
5674 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5675 | ||
5676 | * dwarf2read.c (lnp_state_machine): Now a class. Initialize all | |
5677 | data fields, make them private and add "m_" prefixes. | |
5678 | (lnp_state_machine::lnp_state_machine): New ctor. | |
5679 | (record_line, check_line_address, handle_set_discriminator) | |
5680 | (handle_set_address, handle_advance_pc, handle_special_opcode) | |
5681 | (handle_advance_line, handle_set_file, handle_negate_stmt) | |
5682 | (handle_const_add_pc, handle_fixed_advance_pc, handle_copy) | |
5683 | (end_sequence, advance_line): New methods. | |
5684 | (m_gdbarch, m_record_lines_p): New fields. | |
5685 | (lnp_reader_state): Delete. | |
5686 | (dwarf_record_line): Rename to ... | |
5687 | (lnp_state_machine::record_line): ... adjust. | |
5688 | (init_lnp_state_machine): Delete. | |
5689 | (lnp_state_machine::lnp_state_machine): New. | |
5690 | (check_line_address): Rename to ... | |
5691 | (lnp_state_machine::check_line_address): This. | |
5692 | (dwarf_decode_lines_1): Remove reference to "reader_state". | |
5693 | Adjust lnp_state_machine having a non-default ctor. Use bool. | |
5694 | State machine internal state manipulation moved to | |
5695 | lnp_state_machine methods. | |
5696 | ||
9c541725 PA |
5697 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5698 | ||
5699 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
5700 | unittests/offset-type-selftests.c. | |
5701 | (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o. | |
5702 | * common/offset-type.h: New file. | |
5703 | * common/preprocessor.h: New file. | |
5704 | * common/traits.h: New file. | |
5705 | * common/valid-expr.h: New file. | |
5706 | * dwarf2expr.c: Include "common/underlying.h". Adjust to use | |
5707 | sect_offset and cu_offset strong typedefs throughout. | |
5708 | * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong | |
5709 | typedefs throughout. | |
5710 | * dwarf2loc.c: Include "common/underlying.h". Adjust to use | |
5711 | sect_offset and cu_offset strong typedefs throughout. | |
5712 | * dwarf2read.c: Adjust to use sect_offset and cu_offset strong | |
5713 | typedefs throughout. | |
5714 | * gdbtypes.h: Include "common/offset-type.h". | |
5715 | (cu_offset): Now an offset type (strong typedef) instead of a | |
5716 | struct. | |
5717 | (sect_offset): Likewise. | |
5718 | (union call_site_parameter_u): Rename "param_offset" field to | |
5719 | "param_cu_off". | |
5720 | * unittests/offset-type-selftests.c: New file. | |
5721 | ||
ecfb656c PA |
5722 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5723 | ||
5724 | * common/underlying.h: New file. | |
5725 | * dwarf2read.c: Include "common/gdb_optional.h" and | |
5726 | "common/underlying.h". | |
5727 | (dir_index, file_name_index): New types. | |
5728 | (file_entry): Use them. | |
5729 | (file_entry::include): Use to_underlying. | |
5730 | (line_header::add_file_name): Use dir_index. | |
5731 | (read_formatted_entries): Use gdb::optional. Read form before | |
5732 | writting to file_entry. | |
5733 | (dwarf_decode_line_header): Use dir_index. | |
5734 | (lnp_state_machine::current_file): Use to_underlying. | |
5735 | (lnp_state_machine::file): Change type to file_name_index. | |
5736 | (dwarf_record_line): Use to_underlying. | |
5737 | (init_lnp_state_machine): Use file_name_index. | |
5738 | (dwarf_decode_lines_1): Use dir_index and file_name_index. | |
5739 | ||
d194f1fe PA |
5740 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5741 | ||
5742 | * common/gdb_optional.h (gdb::optiona): Add operator->, operator*, | |
5743 | operator bool, has_value and get methods. | |
5744 | ||
fff8551c PA |
5745 | 2017-04-04 Pedro Alves <palves@redhat.com> |
5746 | ||
5747 | * dwarf2read.c (struct file_entry): Add ctors, and initialize all | |
5748 | fields. | |
5749 | (line_header): Initialize all data fields. Change type of | |
5750 | standard_opcode_lengths to std::unique_ptr<unsigned char[]>. | |
5751 | Change type of include_dirs to std::vector<const char *>. Remove | |
5752 | num_include_dirs, include_dirs_size. Change type of file_names to | |
5753 | std::vector<file_entry>. Remove num_file_names, file_names_size. | |
5754 | (line_header::line_header): New. | |
5755 | (line_header::add_include_dir, line_header::add_file_name): New | |
5756 | methods. | |
5757 | (line_header::include_dir_at): Remove NULL check. | |
5758 | (line_header::file_name_at): Add const overload. | |
5759 | (line_header_up): New unique_ptr typedef. | |
5760 | (dw2_get_file_names_reader): Use line_header_up. Adjust to use | |
5761 | std::vector. Remove free_line_header call. | |
5762 | (dwarf2_build_include_psymtabs): Use line_header_up. Remove | |
5763 | free_line_header call. | |
5764 | (free_cu_line_header): Delete. | |
5765 | (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list) | |
5766 | (setup_type_unit_groups): Use line_header_up instead of cleanups. | |
5767 | Adjust to use std::vector. | |
5768 | (free_line_header): Delete. | |
5769 | (free_line_header_voidp): Use delete. | |
5770 | (add_include_dir): Replace with ... | |
5771 | (line_header::add_include_dir): ... this method. Use std::vector. | |
5772 | (add_file_name): Replace with ... | |
5773 | (line_header::add_file_name): ... this method. Use std::vector. | |
5774 | (add_include_dir_stub): Delete. | |
5775 | (read_formatted_entries): Remove memset. | |
5776 | (dwarf_decode_line_header): Return a line_header_up instead of a | |
5777 | raw pointer. Remove cleanup handling. Pass lambdas to | |
5778 | read_formatted_entries. Adjust to use line_header methods. | |
5779 | (dwarf_decode_lines_1): Adjust to use line_header methods. | |
5780 | (dwarf_decode_lines, file_file_name, file_full_name): Adjust to | |
5781 | use std::vector. | |
5782 | ||
d62a8ae2 SM |
5783 | 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca> |
5784 | ||
5785 | * remote.c (set_general_thread, set_continue_thread): Use ptid_t | |
5786 | instead of struct ptid. | |
5787 | ||
db3a1dc7 AH |
5788 | 2017-05-04 Alan Hayward <alan.hayward@arm.com> |
5789 | ||
5790 | * frame.c (get_frame_register_bytes): Unwind using value. | |
5791 | (put_frame_register_bytes): Likewise. | |
5792 | ||
b1b45502 IB |
5793 | 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org> |
5794 | ||
5795 | * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being | |
5796 | aggregate-like. | |
5797 | ||
ec13808e JK |
5798 | 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5799 | ||
5800 | * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS. | |
5801 | ||
12316564 YQ |
5802 | 2017-03-29 Yao Qi <yao.qi@linaro.org> |
5803 | ||
5804 | * gdbthread.h (struct thread_info): Declare constructor and | |
5805 | destructor. Add some in-class member initializers. | |
5806 | * thread.c (free_thread): Remove. | |
5807 | (init_thread_list): Call delete instead of free_thread. | |
5808 | (new_thread): Call thread_info constructor. | |
5809 | (thread_info::thread_info): New function. | |
5810 | (thread_info::~thread_info): New function. | |
5811 | (delete_thread_1): Call delete instead of free_thread. | |
5812 | (make_cleanup_restore_current_thread): Move tp and frame to | |
5813 | inner block. | |
5814 | ||
fe5f7374 AK |
5815 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5816 | ||
5817 | * arc-tdep.c (arc_frame_cache): Add support for prologue analysis. | |
5818 | (arc_skip_prologue): Likewise. | |
5819 | (arc_make_frame_cache): Likewise. | |
5820 | (arc_pv_get_operand): New function. | |
5821 | (arc_is_in_prologue): Likewise. | |
5822 | (arc_analyze_prologue): Likewise. | |
5823 | (arc_print_frame_cache): Likewise. | |
5824 | (MAX_PROLOGUE_LENGTH): New constant. | |
5825 | ||
eea78757 AK |
5826 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5827 | ||
5828 | * configure.tgt: Add arc-insn.o. | |
5829 | * arc-tdep.c (arc_delayed_print_insn): Make non-static. | |
5830 | (dump_arc_instruction_command): New function. | |
5831 | (arc_fprintf_disasm): Likewise. | |
5832 | (arc_disassemble_info): Likewise. | |
5833 | (arc_insn_get_operand_value): Likewise. | |
5834 | (arc_insn_get_operand_value_signed): Likewise. | |
5835 | (arc_insn_get_memory_base_reg): Likewise. | |
5836 | (arc_insn_get_memory_offset): Likewise. | |
5837 | (arc_insn_get_branch_target): Likewise. | |
5838 | (arc_insn_dump): Likewise. | |
5839 | (arc_insn_get_linear_next_pc): Likewise. | |
5840 | * arc-tdep.h (arc_delayed_print_insn): Add function declaration. | |
5841 | (arc_disassemble_info): Likewise. | |
5842 | (arc_insn_get_branch_target): Likewise. | |
5843 | (arc_insn_get_linear_next_pc): Likewise. | |
5844 | * NEWS: Mention new "maint print arc arc-instruction". | |
5845 | ||
3be78afd AK |
5846 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5847 | ||
5848 | * arc-tdep (maintenance_print_arc_list): New variable. | |
5849 | (maintenance_print_arc_command): New function. | |
5850 | ||
296ec4fa AK |
5851 | 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com> |
5852 | ||
5853 | * arc-tdep.c (core_v2_register_names, core_arcompact_register_names) | |
5854 | Add "limm" and "reserved". | |
5855 | (arc_cannot_fetch_register, arc_cannot_store_register): Add | |
5856 | ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM. | |
5857 | * arc-tdep.h (arc_regnum): Likewise. | |
5858 | ||
f74f865e MF |
5859 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5860 | ||
5861 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
5862 | for THREADPTR register. | |
5863 | (supply_gregset_reg): Call regcache_raw_supply for THREADPTR | |
5864 | register. | |
5865 | * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition. | |
5866 | (xtensa_derive_tdep): Initialize tdep->threadptr_regnum. | |
5867 | * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field. | |
5868 | ||
0d0bf81a MF |
5869 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5870 | ||
5871 | * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all | |
5872 | registers above gdbarch_num_regs (gdbarch) as privileged in | |
5873 | call0 ABI. | |
5874 | ||
0ce4291e MF |
5875 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5876 | ||
5877 | * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect | |
5878 | for a single specified register or for all registers in | |
5879 | a0_base..a0_base + C0_NREGS range. | |
5880 | (supply_gregset_reg): Call regcache_raw_supply for a single | |
5881 | specified register or for all registers in a0_base..a0_base + | |
5882 | C0_NREGS range. | |
5883 | ||
c56054f9 MF |
5884 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5885 | ||
5886 | * arch/xtensa.h (C0_NREGS): Add definition. | |
5887 | * xtensa-tdep.c (C0_NREGS): Remove definition. | |
5888 | ||
a4398628 MF |
5889 | 2017-03-27 Max Filippov <jcmvbkbc@gmail.com> |
5890 | ||
5891 | * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue): | |
5892 | Drop xtensa_default_isa initialization. | |
5893 | (xtensa_gdbarch_init): Initialize xtensa_default_isa. | |
5894 | ||
8c43009f PA |
5895 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5896 | ||
5897 | * dwarf2read.c (file_entry) <dir_index>: Add comment. | |
5898 | (file_entry::include_dir): New method. | |
5899 | (line_header::include_dir_at, line_header::file_name_at): New | |
5900 | methods. | |
5901 | (setup_type_unit_groups, setup_type_unit_groups) | |
5902 | (psymtab_include_file_name): Simplify using the new methods. | |
5903 | (lnp_state_machine) <the_line_header>: New field. | |
5904 | <file>: Add comment. | |
5905 | (lnp_state_machine::current_file): New method. | |
5906 | (dwarf_record_line): Simplify using the new methods. | |
5907 | (init_lnp_state_machine): Initialize the "the_line_header" field. | |
5908 | (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name): | |
5909 | Simplify using the new methods. | |
5910 | ||
a7e80b9e PA |
5911 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5912 | ||
5913 | * cp-name-parser.y (make_empty): Delete. | |
5914 | (demangler_special, nested_name, ptr_operator, array_indicator) | |
5915 | (direct_declarator, declarator_1): Use fill_comp instead of | |
5916 | make_empty. | |
5917 | ||
21047726 PA |
5918 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5919 | ||
5920 | * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument | |
5921 | to ATTRIBUTE_PRINTF. | |
5922 | * solib-target.c (library_list_start_list): Print "string" not | |
5923 | "version". | |
5924 | * xml-tdesc.c (tdesc_start_field): Pass "field_name" to | |
5925 | gdb_xml_error call. | |
5926 | ||
d721ba37 PA |
5927 | 2017-03-27 Pedro Alves <palves@redhat.com> |
5928 | ||
5929 | * dwarf2read.c (struct file_and_directory): New. | |
5930 | (dwarf2_get_dwz_file): Adjust to use std::string. | |
5931 | (dw2_get_file_names_reader): Adjust to use file_and_directory. | |
5932 | (find_file_and_directory): Adjust to return a file_and_directory | |
5933 | object. | |
5934 | (read_file_scope): Adjust to use file_and_directory. Remove | |
5935 | make_cleanup/do_cleanups calls. | |
5936 | (open_and_init_dwp_file): Adjust to use std::string. Remove | |
5937 | make_cleanup/do_cleanups calls. | |
5938 | * python/python.c (do_start_initialization): Adjust to ldirname | |
5939 | returning a std::string. | |
5940 | * utils.c (ldirname): Now returns a std::string. | |
5941 | * utils.h (ldirname): Change return type to std::string. | |
5942 | * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname | |
5943 | returning a std::string. | |
5944 | * xml-tdesc.c (file_read_description_xml): Likewise. | |
5945 | ||
ed771251 AH |
5946 | 2017-03-24 Alan Hayward <alan.hayward@arm.com> |
5947 | ||
5948 | * regcache.c (regcache_debug_print_register): New function. | |
5949 | * regcache.h (regcache_debug_print_register): New declaration. | |
5950 | * target.c (debug_print_register): Remove. | |
5951 | (target_fetch_registers): Call regcache_debug_print_register. | |
5952 | (target_store_registers): Likewise. | |
5953 | ||
568c1b9f PB |
5954 | 2017-03-24 Pádraig Brady <pbrady@fb.com> |
5955 | ||
5956 | * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't | |
5957 | reference beyond the 'lh->include_dirs' array before accessing to | |
5958 | it. | |
5959 | (psymtab_include_file_name): Likewise. | |
5960 | (dwarf_decode_lines_1): Likewise. | |
5961 | (dwarf_decode_lines): Likewise. | |
5962 | (file_file_name): Likewise. | |
5963 | ||
3e00d44f SM |
5964 | 2017-03-23 Simon Marchi <simon.marchi@ericsson.com> |
5965 | ||
5966 | * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore | |
5967 | inferior_ptid. | |
5968 | * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
5969 | ps_lsetfpregs): Likewise. | |
5970 | * regcache.c (regcache_raw_update, regcache_raw_write): Likewise. | |
5971 | * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, | |
5972 | ps_lsetfpregs): Likewise. | |
5973 | * target.c (target_fetch_registers, target_store_registers): | |
5974 | Remove asserts. | |
5975 | ||
077ae656 AH |
5976 | 2017-03-23 Alan Hayward <alan.hayward@arm.com> |
5977 | ||
5978 | * sol-thread.c (sol_thread_store_registers): Remove regcache calls. | |
5979 | ||
1e2b521d YQ |
5980 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5981 | ||
5982 | * aarch64-tdep.c (aarch64_process_record_test): Declare. | |
5983 | (_initialize_aarch64_tdep): Register it. | |
5984 | (aarch64_record_load_store): Handle PRFM instruction. | |
5985 | (aarch64_process_record_test): New function. | |
5986 | ||
33877125 YQ |
5987 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5988 | ||
5989 | * aarch64-tdep.c (aarch64_record_load_store): Fix code | |
5990 | indentation. | |
5991 | ||
a0eef940 YQ |
5992 | 2017-03-23 Yao Qi <yao.qi@linaro.org> |
5993 | ||
5994 | * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE. | |
5995 | ||
3f2a3564 PR |
5996 | 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
5997 | ||
5998 | python/python.c (do_start_initialization): Fix memory leak. | |
5999 | ||
b67aeab0 SM |
6000 | 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca> |
6001 | ||
6002 | * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid | |
6003 | using get_ptrace_pid. | |
6004 | * linux-nat.c (linux_nat_xfer_partial): Don't set/restore | |
6005 | inferior_ptid. | |
6006 | (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of | |
6007 | inferior_ptid instead of pid. | |
6008 | ||
ffdbe864 YQ |
6009 | 2017-03-22 Yao Qi <yao.qi@linaro.org> |
6010 | ||
6011 | * aarch64-tdep.c: Wrap locally used classes in anonymous | |
6012 | namespace. | |
6013 | * arm-tdep.c: Likewise. | |
6014 | * linespec.c: Likewise. | |
6015 | * ui-out.c: Likewise. | |
6016 | ||
9d736fbf JG |
6017 | 2017-03-22 Jonah Graham <jonah@kichwacoders.com> |
6018 | ||
6019 | PR gdb/19637 | |
6020 | * python/lib/gdb/printer/bound_registers.py: Import sys. | |
6021 | ||
3de88e9a SM |
6022 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
6023 | ||
6024 | * windows-nat.c (do_windows_fetch_inferior_registers): Add | |
6025 | windows_thread_info parameter and use it instead of | |
6026 | current_thread. | |
6027 | (windows_fetch_inferior_registers): Don't set current_thread, | |
6028 | pass the thread to do_windows_fetch_inferior_registers. Use | |
6029 | ptid from regcache instead of inferior_ptid. | |
6030 | (do_windows_store_inferior_registers): Add windows_thread_info | |
6031 | parameter and use it instead of current_thread. | |
6032 | (windows_store_inferior_registers): Don't set current_thread, | |
6033 | pass the thread to do_windows_store_inferior_registers. Use | |
6034 | ptid from regcache instead of inferior_ptid. | |
6035 | ||
0e7b8f61 SM |
6036 | 2017-03-21 Simon Marchi <simon.marchi@ericsson.com> |
6037 | ||
6038 | * ser-mingw.c (ser_windows_raw): Remove reference to | |
6039 | struct serial::current_timeout. | |
6040 | ||
5badf10a IR |
6041 | 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com> |
6042 | ||
6043 | PR tdep/20928 | |
6044 | * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field. | |
6045 | * gdb/sparc64-tdep.c (sparc64_ccr_type): New function. | |
6046 | (sparc64_fsr_type): Fix %fsr decoding. | |
6047 | ||
cee59b3f TW |
6048 | 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com> |
6049 | ||
6050 | * python/py-record-btrace.c (btpy_insn_data): Change return type | |
6051 | for Python 2. | |
6052 | ||
639a9038 SM |
6053 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
6054 | ||
6055 | * spu-linux-nat.c (spu_fetch_inferior_registers, | |
6056 | spu_store_inferior_registers): Use ptid from regcache, set and | |
6057 | restore inferior_ptid. | |
6058 | * spu-multiarch.c (spu_fetch_registers, spu_store_registers): | |
6059 | Likewise. | |
6060 | ||
bcc0c096 SM |
6061 | 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca> |
6062 | ||
6063 | * i386-linux-nat.c (fetch_register, store_register, | |
6064 | i386_linux_fetch_inferior_registers, | |
6065 | i386_linux_store_inferior_registers): Use ptid from regcache. | |
6066 | * ia64-linux-nat.c (ia64_linux_fetch_register, | |
6067 | ia64_linux_store_register): Likewise. | |
6068 | * inf-ptrace.c (inf_ptrace_fetch_register, | |
6069 | inf_ptrace_store_register): Likewise. | |
6070 | * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers, | |
6071 | m32r_linux_store_inferior_registers): Likewise. | |
6072 | * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers, | |
6073 | m68kbsd_store_inferior_registers): Likewise. | |
6074 | * m68k-linux-nat.c (fetch_register, store_register, | |
6075 | m68k_linux_fetch_inferior_registers, | |
6076 | m68k_linux_store_inferior_registers): Likewise. | |
6077 | * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers, | |
6078 | m88kbsd_store_inferior_registers): Likewise. | |
6079 | * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers, | |
6080 | mips_fbsd_store_inferior_registers): Likewise. | |
6081 | * mips-linux-nat.c (mips64_linux_regsets_fetch_registers, | |
6082 | mips64_linux_regsets_store_registers): Likewise. | |
6083 | * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers, | |
6084 | mipsnbsd_store_inferior_registers): Likewise. | |
6085 | * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers, | |
6086 | mips64obsd_store_inferior_registers): Likewise. | |
6087 | * nto-procfs.c (procfs_fetch_registers, procfs_store_registers): | |
6088 | Likewise. | |
6089 | * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers, | |
6090 | ppcfbsd_store_inferior_registers): Likewise. | |
6091 | * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers, | |
6092 | ppc_linux_store_inferior_registers): Likewise. | |
6093 | * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers, | |
6094 | ppcnbsd_store_inferior_registers): Likewise. | |
6095 | * ppc-obsd-nat.c (ppcobsd_fetch_registers, | |
6096 | ppcobsd_store_registers): Likewise. | |
6097 | * procfs.c (procfs_fetch_registers, procfs_store_registers): | |
6098 | Likewise. | |
6099 | * ravenscar-thread.c (ravenscar_fetch_registers, | |
6100 | ravenscar_store_registers, ravenscar_prepare_to_store): | |
6101 | Likewise. | |
6102 | * record-btrace.c (record_btrace_fetch_registers, | |
6103 | record_btrace_store_registers, record_btrace_prepare_to_store): | |
6104 | Likewise. | |
6105 | * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): | |
6106 | Lookup inferior using ptid from regcache, instead of | |
6107 | current_inferior. | |
6108 | * remote.c (remote_fetch_registers, remote_store_registers): Use | |
6109 | ptid from regcache. | |
6110 | * rs6000-nat.c (fetch_register, store_register): Likewise. | |
6111 | * s390-linux-nat.c (s390_linux_fetch_inferior_registers, | |
6112 | s390_linux_store_inferior_registers): Likewise. | |
6113 | * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers, | |
6114 | shnbsd_store_inferior_registers): Likewise. | |
6115 | * sol-thread.c (sol_thread_fetch_registers, | |
6116 | sol_thread_store_registers): Likewise. | |
6117 | * sparc-nat.c (sparc_fetch_inferior_registers, | |
6118 | sparc_store_inferior_registers): Likewise. | |
6119 | * tilegx-linux-nat.c (fetch_inferior_registers, | |
6120 | store_inferior_registers): Likewise. | |
6121 | * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers, | |
6122 | vaxbsd_store_inferior_registers): Likewise. | |
6123 | * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs, | |
6124 | store_xtregs): Likewise. | |
6125 | ||
c0f55cc6 AV |
6126 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6127 | ||
6128 | PR gdb/14441 | |
6129 | * NEWS: Mention support for rvalue references in GDB and python. | |
6130 | * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB | |
6131 | supports both lvalue and rvalue references. | |
6132 | ||
15c0a2a9 AV |
6133 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6134 | ||
6135 | PR gdb/14441 | |
6136 | * gdbtypes.c (rank_one_type): Implement overloading | |
6137 | resolution rules regarding rvalue references. | |
6138 | ||
aa006118 AV |
6139 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6140 | ||
6141 | PR gdb/14441 | |
6142 | * aarch64-tdep.c (aarch64_type_align) | |
6143 | (aarch64_extract_return_value, aarch64_store_return_value): Change | |
6144 | lvalue reference type checks to general reference type checks. | |
6145 | * amd64-tdep.c (amd64_classify): Likewise. | |
6146 | * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register): | |
6147 | Likewise. | |
6148 | * arm-tdep.c (arm_type_align, arm_extract_return_value) | |
6149 | (arm_store_return_value): Likewise. | |
6150 | * ax-gdb.c (gen_fetch, gen_cast): Likewise. | |
6151 | * c-typeprint.c (c_print_type): Likewise. | |
6152 | * c-varobj.c (adjust_value_for_child_access, c_value_of_variable) | |
6153 | (cplus_number_of_children, cplus_describe_child): Likewise. | |
6154 | * compile/compile-c-symbols.c (generate_vla_size): Likewise. | |
6155 | * completer.c (expression_completer): Likewise. | |
6156 | * cp-support.c (make_symbol_overload_list_adl_namespace): | |
6157 | Likewise. | |
6158 | * darwin-nat-info.c (info_mach_region_command): Likewise. | |
6159 | * dwarf2loc.c (entry_data_value_coerce_ref) | |
6160 | (value_of_dwarf_reg_entry): Likewise. | |
6161 | * eval.c (ptrmath_type_p, evaluate_subexp_standard) | |
6162 | (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): | |
6163 | Likewise. | |
6164 | * findvar.c (extract_typed_address, store_typed_address): | |
6165 | Likewise. | |
6166 | * gdbtypes.c (rank_one_type): Likewise. | |
6167 | * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise. | |
6168 | * infcall.c (value_arg_coerce): Likewise. | |
6169 | * language.c (pointer_type): Likewise. | |
6170 | * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer): | |
6171 | Likewise. | |
6172 | * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise. | |
6173 | * mn10300-tdep.c (mn10300_type_align): Likewise. | |
6174 | * msp430-tdep.c (msp430_push_dummy_call): Likewise. | |
6175 | * ppc-sysv-tdep.c (do_ppc_sysv_return_value) | |
6176 | (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value): | |
6177 | Likewise. | |
6178 | * printcmd.c (print_formatted, x_command): Likewise. | |
6179 | * python/py-type.c (typy_get_composite, typy_template_argument): | |
6180 | Likewise. | |
6181 | * python/py-value.c (valpy_referenced_value) | |
6182 | (valpy_get_dynamic_type, value_has_field): Likewise. | |
6183 | * s390-linux-tdep.c (s390_function_arg_integer): Likewise. | |
6184 | * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise. | |
6185 | * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise. | |
6186 | * spu-tdep.c (spu_scalar_value_p): Likewise. | |
6187 | * symtab.c (lookup_symbol_aux): Likewise. | |
6188 | * typeprint.c (whatis_exp, print_type_scalar): Likewise. | |
6189 | * valarith.c (binop_types_user_defined_p, unop_user_defined_p): | |
6190 | Likewise. | |
6191 | * valops.c (value_cast_pointers, value_cast) | |
6192 | (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp) | |
6193 | (value_struct_elt, value_struct_elt_bitpos) | |
6194 | (value_find_oload_method_list, find_overload_match) | |
6195 | (value_rtti_indirect_type): Likewise. | |
6196 | * valprint.c (val_print_scalar_type_p, generic_val_print): | |
6197 | Likewise. | |
6198 | * value.c (value_actual_type, value_as_address, unpack_long) | |
6199 | (pack_long, pack_unsigned_long, coerce_ref_if_computed) | |
6200 | (coerce_ref): Likewise. | |
6201 | * varobj.c (varobj_get_value_type): Likewise. | |
6202 | ||
3fcf899d AV |
6203 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6204 | ||
6205 | PR gdb/14441 | |
6206 | * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to | |
6207 | table of constants. | |
6208 | * python/lib/gdb/command/explore.py: Support exploring values | |
6209 | of rvalue reference types. | |
6210 | * python/lib/gdb/types.py: Implement get_basic_type() for | |
6211 | rvalue reference types. | |
6212 | * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New | |
6213 | constant. | |
6214 | * python/py-value.c (valpy_getitem): Add an rvalue reference | |
6215 | check. | |
6216 | (valpy_reference_value): Add new parameter "refcode". | |
6217 | (valpy_lvalue_reference_value, valpy_rvalue_reference_value): | |
6218 | New wrappers for valpy_reference_value(). | |
6219 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
6220 | (gdbpy_invoke_xmethod): Likewise. | |
6221 | ||
4297a3f0 AV |
6222 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6223 | ||
6224 | PR gdb/14441 | |
6225 | * dwarf2read.c (process_die, read_type_die_1): Handle the | |
6226 | DW_TAG_rvalue_reference_type DIE. | |
6227 | (read_tag_reference_type): Add new parameter "refcode". | |
6228 | ||
e1cb3213 AV |
6229 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6230 | ||
6231 | PR gdb/14441 | |
6232 | * c-typeprint.c (c_print_type, c_type_print_varspec_prefix) | |
6233 | (c_type_print_modifier, c_type_print_varspec_suffix) | |
6234 | (c_type_print_base): Support printing rvalue reference types. | |
6235 | * c-valprint.c (c_val_print, c_value_print): Support printing | |
6236 | rvalue reference values. | |
6237 | ||
e4347c89 AV |
6238 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6239 | ||
6240 | PR gdb/14441 | |
6241 | * cp-name-parser.y (ptr_operator): Handle the '&&' token in | |
6242 | typename. | |
6243 | * cp-support.c (replace_typedefs): Handle | |
6244 | DEMANGLE_COMPONENT_RVALUE_REFERENCE. | |
6245 | * python/py-type.c (typy_lookup_type): Likewise. | |
6246 | ||
53cc15f5 AV |
6247 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6248 | ||
6249 | PR gdb/14441 | |
6250 | * c-exp.y (ptr_operator): Handle the '&&' token in the typename. | |
6251 | * parse.c (insert_type): Change assert statement. | |
6252 | (follow_types): Handle rvalue reference types. | |
6253 | * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New | |
6254 | constant. | |
6255 | ||
a65cfae5 AV |
6256 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6257 | ||
6258 | PR gdb/14441 | |
6259 | * ada-lang.c (ada_evaluate_subexp): Adhere to the new | |
6260 | value_ref() interface. | |
6261 | * c-valprint.c (c_value_print): Likewise. | |
6262 | * infcall.c (value_arg_coerce): Likewise. | |
6263 | * python/py-value.c (valpy_reference_value): Likewise. | |
6264 | * valops.c (value_cast, value_reinterpret_cast) | |
6265 | (value_dynamic_cast, typecmp): Likewise. | |
6266 | (value_ref): Parameterize by kind of return value reference type. | |
6267 | * value.h (value_ref): Add new parameter "refcode". | |
6268 | ||
3b224330 AV |
6269 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6270 | ||
6271 | PR gdb/14441 | |
6272 | * dwarf2read.c (read_tag_reference_type): Use | |
6273 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6274 | * eval.c (evaluate_subexp_standard): Likewise. | |
6275 | * f-exp.y: Likewise. | |
6276 | * gdbtypes.c (make_reference_type, lookup_reference_type): | |
6277 | Generalize with rvalue reference types. | |
6278 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New | |
6279 | convenience wrappers for lookup_reference_type(). | |
6280 | * gdbtypes.h (make_reference_type, lookup_reference_type): Add a | |
6281 | reference kind parameter. | |
6282 | (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add | |
6283 | wrappers for lookup_reference_type(). | |
6284 | * guile/scm-type.c (gdbscm_type_reference): Use | |
6285 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6286 | * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise. | |
6287 | * parse.c (follow_types): Likewise. | |
6288 | * python/py-type.c (typy_reference, typy_lookup_type): Likewise. | |
6289 | * python/py-value.c (valpy_get_dynamic_type, valpy_getitem): | |
6290 | Likewise. | |
6291 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type) | |
6292 | (gdbpy_invoke_xmethod): Likewise. | |
6293 | * stabsread.c: Provide extra argument to make_reference_type() | |
6294 | call. | |
6295 | * valops.c (value_ref, value_rtti_indirect_type): Use | |
6296 | lookup_lvalue_reference_type() instead of lookup_reference_type(). | |
6297 | ||
f9aeb8d4 AV |
6298 | 2017-03-20 Artemiy Volkov <artemiyv@acm.org> |
6299 | ||
6300 | PR gdb/14441 | |
6301 | * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant. | |
6302 | (TYPE_IS_REFERENCE): New macro. | |
6303 | (struct type): Add rvalue_reference_type field. | |
6304 | (TYPE_RVALUE_REFERENCE_TYPE): New macro. | |
6305 | ||
51457a05 MAL |
6306 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
6307 | ||
6308 | * NEWS: Add an entry about new '-file-list-shared-libraries' command. | |
6309 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): | |
6310 | New function definition. | |
6311 | * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command. | |
6312 | * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries): | |
6313 | New function declaration. | |
6314 | * mi/mi-interp.c (mi_output_solib_attribs): New Function. | |
6315 | * mi/mi-interp.h: New file. | |
6316 | * solib.c (info_sharedlibrary_command): Replace for loop with | |
6317 | ALL_SO_LIBS macro | |
6318 | * solib.h (update_solib_list): New function declaration. | |
6319 | (so_list_head): Move macro. | |
6320 | * solist.h (ALL_SO_LIBS): New macro. | |
6321 | ||
e696b3ad MAL |
6322 | 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com> |
6323 | ||
6324 | * infcmd.c (post_create_inferior): Remove unused argument in | |
6325 | call to solib_add. | |
6326 | * remote.c (remote_start_remote): Likewise. | |
6327 | * solib-frv.c (frv_fetch_objfile_link_map): Likewise. | |
6328 | * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise. | |
6329 | (enable_break): Likewise. | |
6330 | * solib.c (update_solib_list): Remove unused target argument | |
6331 | and its documentation. | |
6332 | (solib_add): Remove unused target argument. Remove unused | |
6333 | argument in call to update_solib_list. | |
6334 | (info_sharedlibrary_command): Remove unused argument in call | |
6335 | to update_solib_list. | |
6336 | (sharedlibrary_command): Remove unused argument in call to | |
6337 | solib_add. | |
6338 | (handle_solib_event): Likewise. | |
6339 | (reload_shared_libraries): Likewise. | |
6340 | * solib.h (solib_add): Remove unused target argument. | |
6341 | ||
dcb84eda AA |
6342 | 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6343 | ||
6344 | * s390-linux-tdep.c (is_rsi, is_rie): Remove functions. | |
6345 | (s390_displaced_step_fixup): Cover relative branches with the | |
6346 | default fixup handling. This fixes lack of support for some | |
6347 | relative branch instructions. | |
6348 | ||
d9cb6cdc SM |
6349 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6350 | ||
6351 | * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use | |
6352 | ptid from regcache. | |
6353 | ||
1afaf9f4 SM |
6354 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6355 | ||
6356 | * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers, | |
6357 | i386_darwin_store_inferior_registers): Use ptid from regcache. | |
6358 | ||
aac12e24 SM |
6359 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6360 | ||
6361 | * i386-bsd-nat.c (i386bsd_fetch_inferior_registers, | |
6362 | i386bsd_store_inferior_registers): Use ptid from regcache. | |
6363 | ||
bbe1eef1 SM |
6364 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6365 | ||
6366 | * hppa-obsd-nat.c (hppaobsd_fetch_registers, | |
6367 | hppaobsd_store_registers): Use ptid from regcache. | |
6368 | ||
10799020 SM |
6369 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6370 | ||
6371 | * hppa-nbsd-nat.c (hppanbsd_fetch_registers, | |
6372 | hppanbsd_store_registers): Use ptid from regcache. | |
6373 | ||
00204cf7 SM |
6374 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6375 | ||
6376 | * hppa-linux-nat.c (fetch_register, store_register): Use ptid | |
6377 | from regcache. Use get_ptrace_pid. | |
6378 | ||
11a33714 SM |
6379 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6380 | ||
6381 | * corelow.c (get_core_register_section): Use ptid from regcache, | |
6382 | update doc. | |
6383 | ||
317cd492 SM |
6384 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6385 | ||
6386 | * bsd-uthread.c (bsd_uthread_fetch_registers, | |
6387 | bsd_uthread_store_registers): Use ptid from regcache, set and | |
6388 | restore inferior_ptid. | |
6389 | ||
9ac8a7c2 SM |
6390 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6391 | ||
6392 | * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register, | |
6393 | fetch_fp_regs, store_register, store_regs, store_fp_register, | |
6394 | store_fp_regs): Use ptid from regcache. | |
6395 | ||
4ac4bb6a SM |
6396 | 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca> |
6397 | ||
6398 | * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs, | |
6399 | store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs, | |
6400 | store_vfp_regs): Use ptid from regcache. | |
6401 | ||
9bcbdca8 PA |
6402 | 2017-03-17 Pedro Alves <palves@redhat.com> |
6403 | ||
6404 | PR remote/21188 | |
6405 | * ser-base.c (ser_base_wait_for): Add comment. | |
6406 | (do_ser_base_readchar): Improve comment based on the ser-unix.c's | |
6407 | version. | |
6408 | * ser-unix.c (hardwire_raw): Remove reference to | |
6409 | scb->current_timeout. | |
6410 | (wait_for, do_hardwire_readchar, hardwire_readchar): Delete. | |
6411 | (hardwire_ops): Install ser_base_readchar instead of | |
6412 | hardwire_readchar. | |
6413 | * serial.h (struct serial) <current_timeout, timeout_remaining>: | |
6414 | Remove fields. | |
6415 | ||
7503099f JG |
6416 | 2017-03-17 Jonah Graham <jonah@kichwacoders.com> |
6417 | ||
6418 | PR gdb/19637 | |
6419 | * python/lib/gdb/printer/bound_registers.py: Add support for | |
6420 | Python 3. | |
6421 | ||
7942e96e AA |
6422 | 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6423 | ||
6424 | * dwarf2loc.c (indirect_synthetic_pointer): Get data type of | |
6425 | pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full. | |
6426 | (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename | |
6427 | byte_offset to subobj_byte_offset. Fix the handling of | |
6428 | DWARF_VALUE_STACK on big-endian targets when coming via an | |
6429 | implicit pointer. | |
6430 | (dwarf2_evaluate_loc_desc): Adjust call to | |
6431 | dwarf2_evaluate_loc_desc_full. | |
6432 | * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration. | |
6433 | * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function. | |
6434 | ||
ba14f379 YQ |
6435 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6436 | ||
6437 | * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16, | |
6438 | and REVSH instructions. | |
6439 | ||
b121eeb9 YQ |
6440 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6441 | ||
6442 | * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h". | |
6443 | (arm_record_test): Declare. | |
6444 | (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test. | |
6445 | (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to | |
6446 | align with the manual. | |
6447 | (thumb_record_misc): Adjust the code order to align with the | |
6448 | manual. | |
6449 | (thumb2_record_decode_insn_handler): Fix instruction matching. | |
6450 | (instruction_reader_thumb): New class. | |
6451 | (arm_record_test): New function. | |
6452 | ||
728a7913 YQ |
6453 | 2017-03-16 Yao Qi <yao.qi@linaro.org> |
6454 | ||
6455 | * arm-tdep.c (abstract_memory_reader): New class. | |
6456 | (instruction_reader): New class. | |
6457 | (extract_arm_insn): Add argument 'reader'. Callers updated. | |
6458 | (decode_insn): Likewise. | |
6459 | ||
34b43320 DE |
6460 | 2017-03-16 Doug Evans <dje@google.com> |
6461 | ||
a7c0469f DE |
6462 | * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH |
6463 | member. Change type of TYPE member to SCM. All uses updated. | |
6464 | (lsscm_make_lazy_string_smob): Add assert. | |
6465 | (lsscm_make_lazy_string): Flag bad length values. | |
6466 | (lsscm_elt_type): New function. | |
6467 | (gdbscm_lazy_string_to_value): Rewrite to use | |
6468 | lsscm_safe_lazy_string_to_value. | |
6469 | (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR. | |
6470 | * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length | |
6471 | values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs | |
6472 | in incoming type. | |
6473 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
6474 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
6475 | ||
6476 | 2017-03-15 Doug Evans <dje@google.com> | |
6477 | ||
34b43320 DE |
6478 | PR python/17728, python/18439, python/18779 |
6479 | * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH | |
6480 | member. Change type of TYPE member to PyObject *. All uses updated. | |
6481 | (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR. | |
6482 | (gdbpy_create_lazy_string_object): Flag bad length values. | |
6483 | Handle TYPE_CODE_ARRAY with possibly different user-provided length. | |
6484 | Handle typedefs in incoming type. | |
6485 | (stpy_lazy_string_elt_type): New function. | |
6486 | (gdbpy_extract_lazy_string): Call it. | |
6487 | * python/py-value.c (valpy_lazy_string): Flag bad length values. | |
6488 | Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle | |
6489 | typedefs in incoming type. | |
6490 | ||
a3a5fecc DE |
6491 | 2017-03-16 Doug Evans <dje@google.com> |
6492 | ||
6493 | * guile/guile-internal.h (tyscm_scm_to_type): Declare. | |
6494 | * guile/scm-type.c (tyscm_scm_to_type): New function. | |
6495 | ||
28f1c605 JW |
6496 | 2017-03-16 Jiong Wang <jiong.wang@arm.com> |
6497 | ||
6498 | * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to | |
6499 | "ULONGEST" for "skip". | |
6500 | ||
87c336f6 AA |
6501 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6502 | ||
6503 | PR gdb/21220 | |
6504 | * inf-ptrace.c (inf_ptrace_xfer_partial): In "case | |
6505 | TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke... | |
6506 | (inf_ptrace_peek_poke): ...here. New function. Now also loop | |
6507 | over ptrace peek/poke until end of buffer or error. | |
6508 | ||
cf81cf60 SM |
6509 | 2017-03-14 Simon Marchi <simon.marchi@ericsson.com> |
6510 | ||
6511 | * parse.c (length_of_subexp): Make static. | |
6512 | * parser-defs.h (length_of_subexp): Remove. | |
6513 | ||
a379284a AA |
6514 | 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com> |
6515 | ||
6516 | * linux-nat.c (linux_proc_xfer_partial): Handle write operations | |
6517 | as well. | |
6518 | ||
8a6200ba PA |
6519 | 2017-03-14 Pedro Alves <palves@redhat.com> |
6520 | ||
6521 | * cp-name-parser.y (cp_demangled_name_to_comp): Update comment. | |
6522 | (main): Use std::unique_ptr. Remove calls to | |
6523 | cp_demangled_name_parse_free. | |
6524 | ||
f79ec206 SM |
6525 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6526 | ||
6527 | * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers, | |
6528 | alphabsd_store_inferior_registers): Use regcache->ptid instead | |
6529 | of inferior_ptid. | |
6530 | ||
edb5fb00 SM |
6531 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6532 | ||
6533 | * aix-thread.c (aix_thread_fetch_registers, | |
6534 | aix_thread_store_registers): Use regcache->ptid instead of | |
6535 | inferior_ptid. | |
6536 | ||
55119686 SM |
6537 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6538 | ||
6539 | * aarch64-linux-nat.c (fetch_gregs_from_thread, | |
6540 | store_gregs_to_thread, fetch_fpregs_from_thread, | |
6541 | store_fpregs_to_thread): Use regcache->ptid instead of | |
6542 | inferior_ptid. | |
6543 | ||
6a06fbb7 SM |
6544 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6545 | ||
6546 | * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers, | |
6547 | amd64_linux_fetch_inferior_registers): Use regcache->ptid | |
6548 | instead of inferior_ptid. | |
6549 | ||
c6386875 SM |
6550 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6551 | ||
6552 | * target.c (target_fetch_registers, target_store_registers): Add | |
6553 | assert. | |
6554 | ||
ddaaf0fb SM |
6555 | 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca> |
6556 | ||
6557 | * regcache.h (regcache_get_ptid): New function. | |
6558 | * regcache.c (regcache_get_ptid): New function. | |
6559 | ||
b9da89d1 | 6560 | 2017-03-13 Mark Wielaard <mark@klomp.org> |
6561 | ||
6562 | * cp-name-parser.y (make_empty): Initialize d_printing to zero. | |
6563 | ||
5f4d1085 KS |
6564 | 2017-03-10 Keith Seitz <keiths@redhat.com> |
6565 | ||
6566 | PR c++/8218 | |
6567 | * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. | |
6568 | ||
c65d6b55 PA |
6569 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6570 | ||
6571 | PR gdb/18360 | |
6572 | * infrun.c (start_step_over, do_target_resume, resume) | |
6573 | (restart_threads): Assert we're not resuming a thread that is | |
6574 | meant to be stopped. | |
6575 | (infrun_thread_stop_requested_callback): Delete. | |
6576 | (infrun_thread_stop_requested): If the thread is internally | |
6577 | stopped, queue a pending stop event and clear the thread's | |
6578 | inline-frame state. | |
6579 | (handle_stop_requested): New function. | |
6580 | (handle_syscall_event, handle_inferior_event_1): Use | |
6581 | handle_stop_requested. | |
6582 | (handle_stop_requested): New function. | |
6583 | (handle_signal_stop): Set the thread's stop_signal here instead of | |
6584 | at caller. | |
6585 | (finish_step_over): Clear step over info unconditionally. | |
6586 | (handle_signal_stop): If the user had interrupted the event | |
6587 | thread, consider the stop a random signal. | |
6588 | (handle_signal_stop) <signal arrived while stepping over | |
6589 | breakpoint>: Don't restart threads here. | |
6590 | (stop_waiting): Don't clear step-over info here. | |
6591 | ||
15c22686 PA |
6592 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6593 | ||
6594 | PR 21206 | |
6595 | * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull | |
6596 | goes to argument 2, not 1. | |
6597 | ||
6e5d74e7 PA |
6598 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6599 | ||
6600 | PR cli/21218 | |
6601 | * top.c (gdb_readline_wrapper): Avoid passing NULL to | |
6602 | display_gdb_prompt. | |
6603 | (command_line_input): Add comment. | |
6604 | ||
9753a2f6 PA |
6605 | 2017-03-08 Pedro Alves <palves@redhat.com> |
6606 | ||
6607 | PR tui/21216 | |
6608 | * tui/tui-file.c (tui_file::write): New. | |
6609 | * tui/tui-file.h (tui_file): Override "write". | |
6610 | * tui/tui-io.c (do_tui_putc, update_start_line): New functions, | |
6611 | factored out from ... | |
6612 | (tui_puts): ... here. | |
6613 | (tui_putc): Use them. | |
6614 | (tui_write): New function. | |
6615 | * tui/tui-io.h (tui_write): Declare. | |
6616 | ||
1672e0d9 SDJ |
6617 | 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com> |
6618 | ||
6619 | * Makefile.in (SFILES): Replace "environ.c" with | |
6620 | "common/environ.c". | |
6621 | (HFILES_NO_SRCDIR): Likewise, for "environ.h". | |
6622 | * environ.c: Include "common-defs.h" instead of "defs.h. Moved | |
6623 | to... | |
6624 | * common/environ.c: ... here. | |
6625 | * environ.h: Moved to... | |
6626 | * common/environ.h: ... here. | |
6627 | ||
f7bb4e3a PB |
6628 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
6629 | ||
6630 | * gdbarch.sh (pstring_ptr): New static function. | |
6631 | (gdbarch_disassembler_options): Use it. | |
6632 | (gdbarch_verify_disassembler_options): Print valid_disassembler_options, | |
6633 | not valid_disassembler_option->name. | |
6634 | * gdbarch.c: Regenerate. | |
6635 | ||
e45ced6c PB |
6636 | 2017-03-07 Peter Bergner <bergner@vnet.ibm.com> |
6637 | ||
6638 | * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete. | |
6639 | ||
5f6fd321 PA |
6640 | 2017-03-07 Pedro Alves <palves@redhat.com> |
6641 | ||
6642 | * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout. | |
6643 | ||
6dbb839a | 6644 | 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com> |
4a612d6f WT |
6645 | |
6646 | * i387-tdep.h (i387_reset_bnd_regs): Add function definition. | |
6647 | * i387-tdep.c (i387_reset_bnd_regs): Add function implementation. | |
6648 | * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs. | |
6dbb839a | 6649 | * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs. |
4a612d6f | 6650 | |
d274ecf4 SM |
6651 | 2017-03-06 Simon Marchi <simon.marchi@ericsson.com> |
6652 | ||
6653 | * xtensa-linux-nat.c (fetch_gregs): Remove const. | |
6654 | ||
df97be55 SM |
6655 | 2017-03-03 Simon Marchi <simon.marchi@ericsson.com> |
6656 | ||
6657 | * remote.c (remote_add_target_side_commands): Use range-based | |
6658 | for loop. | |
6659 | ||
7d45f3df YQ |
6660 | 2017-03-03 Yao Qi <yao.qi@linaro.org> |
6661 | ||
6662 | PR gdb/21165 | |
6663 | * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if | |
6664 | value is lazy. | |
6665 | * valprint.c (common_val_print): Likewise. | |
6666 | ||
65b48a81 PB |
6667 | 2017-02-28 Peter Bergner <bergner@vnet.ibm.com> |
6668 | ||
6669 | * NEWS: Mention new set/show disassembler-options commands. | |
6670 | * doc/gdb.texinfo: Document new set/show disassembler-options commands. | |
6671 | * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h". | |
6672 | (prospective_options): New static variable. | |
6673 | (gdb_disassembler::gdb_disassembler): Initialize | |
6674 | m_di.disassembler_options. | |
6675 | (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options. | |
6676 | (get_disassembler_options): New function. | |
6677 | (set_disassembler_options): Likewise. | |
6678 | (set_disassembler_options_sfunc): Likewise. | |
6679 | (show_disassembler_options_sfunc): Likewise. | |
6680 | (disassembler_options_completer): Likewise. | |
6681 | (_initialize_disasm): Likewise. | |
6682 | * disasm.h (get_disassembler_options): New prototype. | |
6683 | (set_disassembler_options): Likewise. | |
6684 | * gdbarch.sh (gdbarch_disassembler_options): New variable. | |
6685 | (gdbarch_verify_disassembler_options): Likewise. | |
6686 | * gdbarch.c: Regenerate. | |
6687 | * gdbarch.h: Likewise. | |
6688 | * arm-tdep.c (num_disassembly_options): Delete. | |
6689 | (set_disassembly_style): Likewise. | |
6690 | (arm_disassembler_options): New static variable. | |
6691 | (set_disassembly_style_sfunc): Convert short style name into long | |
6692 | option name. Call set_disassembler_options. | |
6693 | (show_disassembly_style_sfunc): New function. | |
6694 | (arm_gdbarch_init): Call set_gdbarch_disassembler_options and | |
6695 | set_gdbarch_verify_disassembler_options. | |
6696 | (_initialize_arm_tdep): Delete regnames variable and update callers. | |
6697 | (arm_disassembler_options): Initialize. | |
6698 | (disasm_options): New variable. | |
6699 | (num_disassembly_options): Rename from this... | |
6700 | (num_disassembly_styles): ...to this. Compute by scanning through | |
6701 | disasm_options. | |
6702 | (valid_disassembly_styles): Initialize using disasm_options. | |
6703 | Remove calls to parse_arm_disassembler_option, get_arm_regnames and | |
6704 | set_arm_regname_option. | |
6705 | Pass show_disassembly_style_sfunc to the "disassembler" setshow command. | |
6706 | * rs6000-tdep.c (powerpc_disassembler_options): New static variable. | |
6707 | (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and | |
6708 | set_gdbarch_verify_disassembler_options. | |
6709 | * s390-tdep.c (s390_disassembler_options): New static variable. | |
6710 | (s390_gdbarch_init):all set_gdbarch_disassembler_options and | |
6711 | set_gdbarch_verify_disassembler_options. | |
6712 | ||
d538e36d SM |
6713 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
6714 | ||
6715 | * remote.c (remote_add_target_side_condition): Remove "struct" | |
6716 | keyword from range-based for loop. | |
6717 | ||
83621223 SM |
6718 | 2017-02-27 Simon Marchi <simon.marchi@ericsson.com> |
6719 | ||
6720 | * remote.c (remote_add_target_side_condition): Use range-based | |
6721 | for loop. Update comment. | |
6722 | ||
2123df0e YQ |
6723 | 2017-02-27 Yao Qi <yao.qi@linaro.org> |
6724 | ||
6725 | * f-typeprint.c (f_print_type): Check "varstring" is empty first. | |
6726 | ||
8e368124 AH |
6727 | 2017-02-26 Alan Hayward <alan.hayward@arm.com> |
6728 | ||
6729 | * regcache.c (regcache_raw_update): New function. | |
6730 | (regcache_raw_read): Move code to regcache_raw_update. | |
6731 | * regcache.h (regcache_raw_update): New declaration. | |
6732 | * remote.c (remote_prepare_to_store): Call regcache_raw_update. | |
6733 | ||
a49dd8dd JK |
6734 | 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
6735 | ||
6736 | * dwarf2read.c (create_debug_type_hash_table): Initialize | |
6737 | header.signature and header.type_offset_in_tu. | |
6738 | ||
34e4bae9 PA |
6739 | 2017-02-24 Pedro Alves <palves@redhat.com> |
6740 | ||
6741 | * symtab.c (make_file_symbol_completion_list_1): Use | |
6742 | add_symtab_completions. | |
6743 | ||
b0e4b369 AH |
6744 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
6745 | ||
6746 | * stack.c (frame_info): Use frame_unwind_register_value to avoid buf. | |
6747 | ||
975c21ab AH |
6748 | 2017-02-24 Alan Hayward <alan.hayward@arm.com> |
6749 | ||
6750 | * i386-tdep.c (i386_pseudo_register_read_into_value): Use | |
6751 | I386_MAX_REGISTER_SIZE. | |
6752 | (i386_pseudo_register_write): Likewise. | |
6753 | (i386_process_record): Likewise. | |
6754 | * i387-tdep.c (i387_supply_xsave): Likewise. | |
6755 | * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE. | |
6756 | (store_register): Likewise. | |
6757 | ||
14bc53a8 PA |
6758 | 2017-02-23 Pedro Alves <palves@redhat.com> |
6759 | ||
6760 | * ada-lang.c: Include "common/function-view.h". | |
6761 | (ada_iterate_over_symbols): Adjust to use function_view as | |
6762 | callback type. | |
6763 | (struct add_partial_datum, ada_complete_symbol_matcher): Delete. | |
6764 | (ada_make_symbol_completion_list): Use a lambda. | |
6765 | (ada_exc_search_name_matches): Delete. | |
6766 | (name_matches_regex): New. | |
6767 | (ada_add_global_exceptions): Use a lambda and name_matches_regex. | |
6768 | * compile/compile-c-support.c: Include "common/function-view.h". | |
6769 | (print_one_macro): Change prototype to accept a ui_file pointer. | |
6770 | (write_macro_definitions): Use a lambda. | |
6771 | * dwarf2read.c: Include "common/function-view.h". | |
6772 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
6773 | (dw2_expand_symtabs_matching): Adjust to use function_view as | |
6774 | callback type. | |
6775 | * language.h: Include "common/function-view.h". | |
6776 | (struct language_defn) <la_iterate_over_symbols>: Adjust to use | |
6777 | function_view as callback type. | |
6778 | (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter. | |
6779 | * linespec.c: Include "common/function-view.h". | |
6780 | (collect_info::add_symbol): New method. | |
6781 | (struct symbol_and_data_callback, iterate_inline_only, struct | |
6782 | symbol_matcher_data, iterate_name_matcher): Delete. | |
6783 | (iterate_over_all_matching_symtabs): Adjust to use function_view | |
6784 | as callback type and lambdas. | |
6785 | (iterate_over_file_blocks): Adjust to use function_view as | |
6786 | callback type. | |
6787 | (decode_compound_collector): Now a class with private fields. | |
6788 | (decode_compound_collector::release_symbols): New method. | |
6789 | (collect_one_symbol): Rename to... | |
6790 | (decode_compound_collector::operator()): ... this and adjust. | |
6791 | (lookup_prefix_sym): decode_compound_collector construction bits | |
6792 | move to decode_compound_collector ctor. Pass the | |
6793 | decode_compound_collector object directly as callback. Remove | |
6794 | cleanups and use decode_compound_collector::release_symbols | |
6795 | instead. | |
6796 | (symtab_collector): Now a class with private fields. | |
6797 | (symtab_collector::release_symtabs): New method. | |
6798 | (add_symtabs_to_list): Rename to... | |
6799 | (symtab_collector::operator()): ... this and adjust. | |
6800 | (collect_symtabs_from_filename): symtab_collector construction | |
6801 | bits move to symtab_collector ctor. Pass the symtab_collector | |
6802 | object directly as callback. Remove cleanups and use | |
6803 | symtab_collector::release_symtabs instead. | |
6804 | (collect_symbols): Delete. | |
6805 | (add_matching_symbols_to_info): Use lambdas. | |
6806 | * macrocmd.c (print_macro_callback): Delete. | |
6807 | (info_macro_command): Use a lambda. | |
6808 | (info_macros_command): Pass print_macro_definition as callable | |
6809 | directly. | |
6810 | (print_one_macro): Remove 'ignore' parameter. | |
6811 | (macro_list_command): Adjust. | |
6812 | * macrotab.c (macro_for_each_data::fn): Now a function_view. | |
6813 | (macro_for_each_data::user_data): Delete field. | |
6814 | (foreach_macro): Adjust to call the function_view. | |
6815 | (macro_for_each): Adjust to use function_view as callback type. | |
6816 | (foreach_macro_in_scope): Adjust to call the function_view. | |
6817 | (macro_for_each_in_scope): Adjust to use function_view as callback | |
6818 | type. | |
6819 | * macrotab.h: Include "common/function-view.h". | |
6820 | (macro_callback_fn): Declare a prototype instead of a pointer. | |
6821 | Remove "user_data" parameter. | |
6822 | (macro_for_each, macro_for_each_in_scope): Adjust to use | |
6823 | function_view as callback type. | |
6824 | * psymtab.c (partial_map_expand_apply) | |
6825 | (psym_map_symtabs_matching_filename, recursively_search_psymtabs): | |
6826 | Adjust to use function_view as callback type and to return bool. | |
6827 | (psym_expand_symtabs_matching): Adjust to use function_view as | |
6828 | callback types. | |
6829 | * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust | |
6830 | to use function_view as callback type and to return bool. | |
6831 | (debug_qf_expand_symtabs_matching): Adjust to use function_view as | |
6832 | callback types. | |
6833 | * symfile.c (expand_symtabs_matching): Adjust to use function_view | |
6834 | as callback types. | |
6835 | * symfile.h: Include "common/function-view.h". | |
6836 | (expand_symtabs_file_matcher_ftype) | |
6837 | (expand_symtabs_symbol_matcher_ftype) | |
6838 | (expand_symtabs_exp_notify_ftype): Remove "data" parameter and | |
6839 | return bool. | |
6840 | (quick_symbol_functions::map_symtabs_matching_filename) | |
6841 | (quick_symbol_functions::expand_symtabs_matching): Adjust to use | |
6842 | function_view as callback type and return bool. | |
6843 | (expand_symtabs_matching): Adjust to use function_view as callback | |
6844 | type. | |
6845 | (maintenance_expand_name_matcher) | |
6846 | (maintenance_expand_file_matcher): Delete. | |
6847 | (maintenance_expand_symtabs): Use lambdas. | |
6848 | * symtab.c (iterate_over_some_symtabs): Adjust to use | |
6849 | function_view as callback types and return bool. | |
6850 | (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead | |
6851 | of a cleanup. | |
6852 | (lookup_symtab_callback): Delete. | |
6853 | (lookup_symtab): Use a lambda. | |
6854 | (iterate_over_symbols): Adjust to use function_view as callback | |
6855 | type. | |
6856 | (struct search_symbols_data, search_symbols_file_matches) | |
6857 | (search_symbols_name_matches): Delete. | |
6858 | (search_symbols): Use a pair of lambdas. | |
6859 | (struct add_name_data, add_macro_name, symbol_completion_matcher) | |
6860 | (symtab_expansion_callback): Delete. | |
6861 | (default_make_symbol_completion_list_break_on_1): Use lambdas. | |
6862 | * symtab.h: Include "common/function-view.h". | |
6863 | (iterate_over_some_symtabs): Adjust to use function_view as | |
6864 | callback type and return bool. | |
6865 | (iterate_over_symtabs): Adjust to use function_view as callback | |
6866 | type. | |
6867 | (symbol_found_callback_ftype): Remove 'data' parameter and return | |
6868 | bool. | |
6869 | (iterate_over_symbols): Adjust to use function_view as callback | |
6870 | type. | |
6871 | ||
07e253aa PA |
6872 | 2017-02-23 Pedro Alves <palves@redhat.com> |
6873 | ||
6874 | * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New. | |
6875 | (%.o) <unittests/%.c>: New pattern. | |
6876 | * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to | |
6877 | CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS. | |
6878 | * common/function-view.h: New file. | |
6879 | * unittests/function-view-selftests.c: New file. | |
6880 | * configure: Regenerate. | |
6881 | ||
8eaf5320 SM |
6882 | 2017-02-23 Simon Marchi <simon.marchi@ericsson.com> |
6883 | ||
6884 | * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of | |
6885 | inferior_ptid. | |
6886 | * go32-nat.c (go32_thread_alive): Likewise. | |
6887 | ||
38768751 YQ |
6888 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
6889 | ||
6890 | * varobj-iter.h (varobj_iter_delete): Call xfree instead of | |
6891 | delete. | |
6892 | ||
0a8beaba YQ |
6893 | 2017-02-23 Yao Qi <yao.qi@linaro.org> |
6894 | ||
6895 | * varobj.c (varobj_clear_saved_item): Use delete instead of | |
6896 | xfree. | |
6897 | (update_dynamic_varobj_children): Likewise. | |
6898 | ||
58fdfd2c JK |
6899 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6900 | ||
6901 | * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR. | |
6902 | ||
1b90b139 SM |
6903 | 2017-02-21 Simon Marchi <simon.marchi@ericsson.com> |
6904 | ||
6905 | * common/enum-flags.h (enum_flags::enum_flags): Initialize | |
6906 | m_enum_value to 0 in default constructor. | |
6907 | ||
2039d74e EBM |
6908 | 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> |
6909 | ||
6910 | * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK. | |
6911 | (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK. | |
6912 | (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION, | |
6913 | STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines. | |
6914 | (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros. | |
6915 | (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN. | |
6916 | (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and | |
6917 | IS_STORE_CONDITIONAL_INSN. | |
6918 | ||
7814882a JK |
6919 | 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
6920 | ||
6921 | * dwarf2_rnglists_process: Initialize range_beginning and range_end. | |
6922 | ||
0ae60b63 JK |
6923 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6924 | ||
6925 | * NEWS (Changes since GDB 7.12): Add DWARF-5. | |
6926 | ||
0224619f JK |
6927 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6928 | ||
6929 | * dwarf2read.c (skip_one_die, read_attribute_value) | |
6930 | (dwarf2_const_value_attr, dump_die_shallow) | |
6931 | (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) | |
6932 | (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16. | |
6933 | ||
0af92d60 JK |
6934 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6935 | ||
6936 | * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*. | |
6937 | (dwarf_parse_macro_header): Accept DWARF version 5. | |
6938 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*. | |
6939 | ||
216f72a1 JK |
6940 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6941 | ||
6942 | * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and | |
6943 | DW_AT_GNU_*. | |
6944 | * common/common-exceptions.h (enum errors): Likewise. | |
6945 | * dwarf2-frame.c (class dwarf_expr_executor): Likewise. | |
6946 | * dwarf2expr.c (dwarf_block_to_dwarf_reg) | |
6947 | (dwarf_expr_context::execute_stack_op): Likewise. | |
6948 | * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece): | |
6949 | Likewise. | |
6950 | * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type) | |
6951 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
6952 | (show_entry_values_debug, call_site_to_target_addr) | |
6953 | (func_addr_to_tail_call_list, func_verify_no_selftailcall) | |
6954 | (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value) | |
6955 | (entry_data_value_free_closure, value_of_dwarf_reg_entry) | |
6956 | (value_of_dwarf_block_entry, indirect_pieced_value) | |
6957 | (symbol_needs_eval_context::push_dwarf_reg_entry_value): | |
6958 | (disassemble_dwarf_expression): Likewise. | |
6959 | * dwarf2read.c (process_die, inherit_abstract_dies) | |
6960 | (read_call_site_scope): Likewise. | |
6961 | * gdbtypes.h (struct func_type, struct call_site_parameter) | |
6962 | (struct call_site): Likewise. | |
6963 | * stack.c (read_frame_arg): Likewise. | |
6964 | * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise. | |
6965 | ||
43988095 JK |
6966 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6967 | ||
6968 | * defs.h (read_unsigned_leb128): New declaration. | |
6969 | * dwarf2loc.c (decode_debug_loclists_addresses): New function. | |
6970 | (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*. | |
6971 | (dwarf2_find_location_expression): Call also | |
6972 | decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length. | |
6973 | * dwarf2loc.h (dwarf2_version): New declaration. | |
6974 | * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str, | |
6975 | rnglists. | |
6976 | (dwarf2_elf_names): Add .debug_loclists, .debug_line_str, | |
6977 | .debug_rnglists. | |
6978 | (struct dwop_section_names): Add loclists_dwo. | |
6979 | (dwop_section_names): Add .debug_loclists.dwo. | |
6980 | (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu. | |
6981 | (struct dwarf2_per_cu_data): Add dwarf_version. | |
6982 | (struct dwo_sections): Add loclists. | |
6983 | (struct attr_abbrev): Add implicit_const. | |
6984 | (read_indirect_line_string): New declaration. | |
6985 | (read_unsigned_leb128): Delete declaration. | |
6986 | (rcuh_kind): New definition. | |
6987 | (read_and_check_comp_unit_head): Change parameter | |
6988 | is_debug_types_section to section_kind. | |
6989 | (dwarf2_locate_sections): Handle loclists, line_str and rnglists. | |
6990 | (read_comp_unit_head): Change parameter abfd to section, add parameter | |
6991 | section_kind. Handle DWARF-5. | |
6992 | (error_check_comp_unit_head): Accept also DWARF version 5. | |
6993 | (read_and_check_comp_unit_head): Change parameter | |
6994 | is_debug_types_section to section_kind. | |
6995 | (read_and_check_type_unit_head): Delete function. | |
6996 | (read_abbrev_offset): Handle DWARF-5. | |
6997 | (create_debug_type_hash_table): Add parameter section_kind. Process | |
6998 | only DW_UT_type. Use signature and type_offset_in_tu from struct | |
6999 | comp_unit_head. | |
7000 | (create_debug_types_hash_table): Update create_debug_type_hash_table | |
7001 | caller. | |
7002 | (create_all_type_units): Call create_debug_type_hash_table. | |
7003 | (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change | |
7004 | read_and_check_type_unit_head caller to read_and_check_comp_unit_head | |
7005 | caller. | |
7006 | (skip_one_die): Handle DW_FORM_implicit_const. | |
7007 | (dwarf2_rnglists_process): New function. | |
7008 | (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5. | |
7009 | (abbrev_table_read_table): Handle DW_FORM_implicit_const. | |
7010 | (read_attribute_value): Handle DW_FORM_implicit_const, | |
7011 | DW_FORM_line_strp. | |
7012 | (read_attribute): Handle DW_FORM_implicit_const. | |
7013 | (read_indirect_string_at_offset_from): New function from | |
7014 | read_indirect_string_at_offset. | |
7015 | (read_indirect_string_at_offset): Call | |
7016 | read_indirect_string_at_offset_from. | |
7017 | (read_indirect_line_string_at_offset): New function. | |
7018 | (read_indirect_string): New function comment. | |
7019 | (read_indirect_line_string): New function. | |
7020 | (read_unsigned_leb128): Make it global. | |
7021 | (dwarf2_string_attr): Handle DWARF-5. | |
7022 | (add_include_dir_stub, read_formatted_entries): New functions. | |
7023 | (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section): | |
7024 | Handle DWARF-5. | |
7025 | (per_cu_header_read_in): Update read_comp_unit_head caller. | |
7026 | (dwarf2_version): New function. | |
7027 | * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and | |
7028 | rnglists. | |
7029 | * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections | |
7030 | fields. | |
7031 | ||
22d2f3ab JK |
7032 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
7033 | ||
7034 | * dwarf2read.c (abbrev_table_read_table): Read the data only once. | |
7035 | ||
5f46c5a5 JK |
7036 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
7037 | ||
7038 | * dwarf2read.c (dwarf2_ranges_process): New function from | |
7039 | dwarf2_ranges_read. | |
7040 | (dwarf2_ranges_read, dwarf2_record_block_ranges): Use | |
7041 | dwarf2_ranges_process. | |
7042 | ||
78d4d2c5 JK |
7043 | 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
7044 | ||
7045 | * dwarf2read.c (create_debug_type_hash_table): New function from | |
7046 | create_debug_types_hash_table. | |
7047 | (create_debug_types_hash_table): Call create_debug_type_hash_table. | |
7048 | (create_all_type_units, open_and_init_dwo_file): Update | |
7049 | create_debug_types_hash_table callers. | |
7050 | ||
1b076f25 SDJ |
7051 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
7052 | ||
7053 | PR gdb/16188 | |
7054 | * fork-child.c (trace_start_error): Fix thinko. va_end should | |
7055 | refer to 'ap', not 'args'. | |
7056 | ||
0db8980c SDJ |
7057 | 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
7058 | Pedro Alves <palves@redhat.com> | |
7059 | ||
7060 | PR gdb/16188 | |
7061 | * darwin-nat.c (darwin_ptrace_me): Check if calls to system | |
7062 | calls succeeded. | |
7063 | * fork-child.c (trace_start_error): New function. | |
7064 | (trace_start_error_with_name): Likewise. | |
7065 | * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded. | |
7066 | * inf-ptrace.c (inf_ptrace_me): Likewise. | |
7067 | * inferior.h (trace_start_error): New prototype. | |
7068 | (trace_start_error_with_name): Likewise. | |
7069 | ||
99e8a4f9 SDJ |
7070 | 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com> |
7071 | ||
7072 | PR gdb/21164 | |
7073 | * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not | |
7074 | NULL before using it. | |
7075 | * symmisc.c (maintenance_print_symbols): Likewise. | |
7076 | (maintenance_print_msymbols): Likewise. | |
7077 | ||
4e746bb6 TW |
7078 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> |
7079 | ||
7080 | * NEWS: Add record Python bindings entry. | |
7081 | ||
7082 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7083 | ||
7084 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o, | |
7085 | py-record-full.o. | |
7086 | (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c. | |
7087 | * python/py-record-btrace.c, python/py-record-btrace.h, | |
7088 | python/py-record-full.c, python/py-record-full.h: New file. | |
7089 | * python/py-record.c: Add include for py-record-btrace.h and | |
7090 | py-record-full.h. | |
7091 | (recpy_method, recpy_format, recpy_goto, recpy_replay_position, | |
7092 | recpy_instruction_history, recpy_function_call_history, recpy_begin, | |
7093 | recpy_end): Use functions from py-record-btrace.c and py-record-full.c. | |
7094 | * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t): | |
7095 | New definition. | |
7096 | (gdbpy_initialize_btrace): New export. | |
7097 | * python/python.c (_initialize_python): Add gdbpy_initialize_btrace. | |
7098 | ||
7099 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7100 | ||
7101 | * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o. | |
7102 | (SUBDIR_PYTHON_SRCS): Add python/py-record.c. | |
7103 | * python/py-record.c: New file. | |
7104 | * python/python-internal.h (gdbpy_start_recording, | |
7105 | gdbpy_current_recording, gdpy_stop_recording, | |
7106 | gdbpy_initialize_record): New export. | |
7107 | * python/python.c (_initialize_python): Add gdbpy_initialize_record. | |
7108 | (python_GdbMethods): Add gdbpy_start_recording, | |
7109 | gdbpy_current_recording and gdbpy_stop_recording. | |
7110 | ||
7111 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7112 | ||
7113 | * record-btrace.c (record_btrace_record_method): New function. | |
7114 | (init_record_btrace_ops): Initialize to_record_method. | |
7115 | * record-full.c (record_full_record_method): New function. | |
7116 | (init_record_full_ops, init_record_full_core_ops): Add | |
7117 | record_full_record_method. | |
7118 | * record.h (enum record_method): New enum. | |
7119 | * target-debug.h (target_debug_print_enum_record_method: New define. | |
7120 | * target-delegates.c: Regenerate. | |
7121 | * target.c (target_record_method): New function. | |
7122 | * target.h: Include record.h. | |
7123 | (struct target_ops) <to_record_method>: New field. | |
7124 | (target_record_method): New export. | |
7125 | ||
7126 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7127 | ||
7128 | * record.h (record_start, record_stop): New export. | |
7129 | * record.c (record_start, record_stop): New function. | |
7130 | ||
7131 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7132 | ||
7133 | * btrace.c (btrace_fetch): Copy function call segments pointer | |
7134 | into a vector. | |
7135 | (btrace_clear): Clear the vector. | |
7136 | (btrace_find_insn_by_number): Use binary search to find the correct | |
7137 | function call segment. | |
7138 | * btrace.h (brace_fun_p): New typedef. | |
7139 | (struct btrace_thread_info) <functions>: New field. | |
7140 | ||
7141 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7142 | ||
7143 | * record-btrace.c (btrace_ui_out_decode_error): Move most of it ... | |
7144 | * btrace.c (btrace_decode_error): ... here. New function. | |
7145 | * btrace.h (btrace_decode_error): New export. | |
7146 | ||
7147 | 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com> | |
7148 | ||
7149 | * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function. | |
7150 | (ftrace_new_function, btrace_insn_number, btrace_insn_cmp, | |
7151 | btrace_find_insn_by_number): Remove special case for gaps. | |
7152 | * btrace.h (btrace_insn_get_error): New export. | |
7153 | (btrace_insn_number, btrace_find_insn_by_number): Adjust comment. | |
7154 | * record-btrace.c (btrace_insn_history): Print number for gaps. | |
7155 | (record_btrace_info, record_btrace_goto): Handle gaps. | |
7156 | ||
3f77c769 TT |
7157 | 2017-02-14 Tom Tromey <tom@tromey.com> |
7158 | ||
7159 | PR python/13598: | |
7160 | * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt | |
7161 | event. | |
7162 | * python/py-evts.c (gdbpy_initialize_py_events): Add | |
7163 | before_prompt registry. | |
7164 | * python/py-events.h (events_object) <before_prompt>: New field. | |
7165 | ||
4c2c7ac6 MM |
7166 | 2017-02-14 Markus Metzger <markus.t.metzger@intel.com> |
7167 | ||
7168 | * btrace.c (ftrace_new_switch): Preserve up link and flags. | |
7169 | ||
5cf30ebf LM |
7170 | 2017-02-13 Luis Machado <lgustavo@codesourcery.com> |
7171 | ||
7172 | * symfile (_initialize_symfile): Add usage text to the load command's | |
7173 | help text. | |
7174 | ||
26a06916 SM |
7175 | 2017-02-10 Simon Marchi <simon.marchi@ericsson.com> |
7176 | ||
7177 | * utils.c (defaulted_query): Don't query on secondary UIs. | |
7178 | ||
0b145e37 TT |
7179 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7180 | ||
7181 | * rust-lang.c (rust_get_disr_info): Remove unused variable. | |
7182 | ||
2d8365c4 TT |
7183 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7184 | ||
7185 | * python/py-value.c (valpy_richcompare_throw): Remove unnecessary | |
7186 | "cleanup" local. | |
7187 | * python/py-type.c (typy_legacy_template_argument): Remove | |
7188 | unnecessary "cleanup" local. | |
7189 | ||
2bb8f231 TT |
7190 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7191 | ||
7192 | * python/python.c (do_start_initialization): New function, from | |
7193 | _initialize_python. | |
7194 | (_initialize_python): Call do_start_initialization. | |
7195 | * python/py-linetable.c (ltpy_iternext): Use explicit returns, not | |
7196 | goto. | |
7197 | ||
1bdfaf42 TT |
7198 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7199 | ||
7200 | * python/py-prettyprint.c (pretty_print_one_value): Use | |
7201 | gdbpy_ref. | |
7202 | ||
88b6faea TT |
7203 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7204 | ||
7205 | * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref. | |
7206 | * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use | |
7207 | gdbpy_ref. | |
7208 | * python/py-type.c (field_new): Use gdbpy_ref. | |
7209 | * python/py-symtab.c (symtab_and_line_to_sal_object): Use | |
7210 | gdbpy_ref. | |
7211 | * python/py-progspace.c (pspy_new): Use gdbpy_ref. | |
7212 | (py_free_pspace): Likewise. | |
7213 | (pspace_to_pspace_object): Likewise. | |
7214 | * python/py-objfile.c (objfpy_new): Use gdbpy_ref. | |
7215 | (py_free_objfile): Likewise. | |
7216 | (objfile_to_objfile_object): Likewise. | |
7217 | * python/py-inferior.c (delete_thread_object): Use | |
7218 | gdbpy_ref. | |
7219 | (infpy_read_memory): Likewise. | |
7220 | (py_free_inferior): Likewise. | |
7221 | * python/py-evtregistry.c (create_eventregistry_object): Use | |
7222 | gdbpy_ref. | |
7223 | * python/py-event.c (create_event_object): Use gdbpy_ref. | |
7224 | ||
7780f186 TT |
7225 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7226 | ||
7227 | * python/py-ref.h (gdbpy_ref_policy): Now a template. | |
7228 | (gdbpy_ref): Now a template; allow subclasses of PyObject to be | |
7229 | used. | |
7230 | * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c, | |
7231 | python/py-cmd.c, python/py-continueevent.c, python/py-event.c, | |
7232 | python/py-exitedevent.c, python/py-finishbreakpoint.c, | |
7233 | python/py-framefilter.c, python/py-function.c, | |
7234 | python/py-inferior.c, python/py-infevents.c, | |
7235 | python/py-linetable.c, python/py-newobjfileevent.c, | |
7236 | python/py-param.c, python/py-prettyprint.c, python/py-ref.h, | |
7237 | python/py-signalevent.c, python/py-stopevent.c, | |
7238 | python/py-symbol.c, python/py-threadevent.c, python/py-type.c, | |
7239 | python/py-unwind.c, python/py-utils.c, python/py-value.c, | |
7240 | python/py-varobj.c, python/py-xmethods.c, python/python.c, | |
7241 | varobj.c: Change gdbpy_ref to gdbpy_ref<>. | |
7242 | ||
d4b0bb18 TT |
7243 | 2017-02-10 Tom Tromey <tom@tromey.com> |
7244 | ||
7245 | * ui-out.h (ui_out_emit_type): New class. | |
7246 | (ui_out_emit_tuple, ui_out_emit_list): New typedefs. | |
7247 | * python/py-framefilter.c (py_print_single_arg): Use gdb::optional | |
7248 | and ui_out_emit_tuple. | |
7249 | (enumerate_locals): Likewise. | |
7250 | (py_mi_print_variables, py_print_locals, py_print_args): Use | |
7251 | ui_out_emit_list. | |
7252 | (py_print_frame): Use gdb::optional, ui_out_emit_tuple, | |
7253 | ui_out_emit_list. | |
7254 | * common/gdb_optional.h: New file. | |
7255 | ||
f67f945c MG |
7256 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
7257 | ||
7258 | * MAINTAINERS (Write After Approval): Update my e-mail address. | |
7259 | ||
18da0c51 MG |
7260 | 2017-02-10 Martin Galvan <martingalvan@sourceware.org> |
7261 | ||
7262 | PR gdb/21122 | |
7263 | * breakpoint.c (_initialize_breakpoint): Update the help description | |
7264 | of the 'commands' command to indicate that it takes a list argument. | |
7265 | ||
62c14536 SM |
7266 | 2017-02-09 Simon Marchi <simon.marchi@ericsson.com> |
7267 | ||
7268 | * interps.c (current_interp_set_logging): Remove "return". | |
7269 | ||
ff6fa247 GB |
7270 | 2017-02-09 Gary Benson <gbenson@redhat.com> |
7271 | ||
7272 | * symtab.c (add_symtab_completions): Prevent NULL pointer | |
7273 | dereference. | |
7274 | ||
a474bd8e PA |
7275 | 2017-02-08 Pedro Alves <palves@redhat.com> |
7276 | ||
7277 | * interps.c (interp::interp): Remove reference to quiet_p. | |
7278 | (interp_set): Make static. Remove dead "Switching to" output | |
7279 | code. | |
7280 | (interp_quiet_p, interp_set_quiet): Delete. | |
7281 | (interpreter_exec_cmd): Don't set the interpreter quiet. | |
7282 | * interps.h (interp_quiet_p): Make static. | |
7283 | (class interp) <quiet_p>: Remove field | |
7284 | ||
3d7b173c JG |
7285 | 2017-02-08 Jerome Guitton <guitton@adacore.com> |
7286 | ||
604c4576 JG |
7287 | * cli/cli-decode.c (find_command_name_length): Make it extern. |
7288 | * cli/cli-decode.h (find_command_name_length): Declare. | |
7289 | * cli/cli-script.c (command_name_equals, line_first_arg): | |
7290 | New functions. | |
7291 | (process_next_line): Use cli-decode to parse command names. | |
7292 | (build_command_line): Make args a constant pointer. | |
7293 | ||
7294 | 2017-02-08 Jerome Guitton <guitton@adacore.com> | |
6dbb839a | 7295 | |
3d7b173c JG |
7296 | * cli-decode.c (lookup_cmd_1, lookup_cmd_composition): |
7297 | Remove case-insensitive search. | |
7298 | ||
1291063d JM |
7299 | 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
7300 | ||
7301 | * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator | |
7302 | at the end of the line. Avoids an ARI warning. | |
7303 | ||
20b477a7 LM |
7304 | 2017-02-06 Luis Machado <lgustavo@codesourcery.com> |
7305 | ||
7306 | * NEWS: Mention support for record/replay of Intel 64 rdrand and | |
7307 | rdseed instructions. | |
7308 | i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed. | |
7309 | ||
3f7b46f2 IR |
7310 | 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com> |
7311 | ||
7312 | PR tdep/20936 | |
7313 | Provide and use sparc32 and sparc64 target description XML files. | |
7314 | * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml, | |
7315 | features/sparc/sparc32-fpu.xml: New files for sparc 32-bit. | |
7316 | * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml, | |
7317 | features/sparc/sparc64-fpu.xml: New files for sparc 64-bit. | |
7318 | * features/sparc/sparc32-solaris.xml: New file. | |
7319 | * features/sparc/sparc64-solaris.xml: New file. | |
7320 | * features/sparc/sparc32-solaris.c: Generated. | |
7321 | * features/sparc/sparc64-solaris.c: Generated. | |
7322 | * sparc-tdep.h: Account for differences in target descriptions. | |
7323 | * sparc-tdep.c (sparc32_register_name): Use target provided registers. | |
7324 | (sparc32_register_type): Use target provided registers. | |
7325 | (validate_tdesc_registers): New function. | |
7326 | (sparc32_gdbarch_init): Use tdesc_has_registers. | |
7327 | Set pseudoregister functions. | |
7328 | * sparc64-tdep.c (sparc64_register_name): Use target provided registers. | |
7329 | (sparc64_register_type): Use target provided registers. | |
7330 | (sparc64_init_abi): Set pseudoregister functions. | |
7331 | ||
f0fd41c1 TT |
7332 | 2017-02-03 Tom Tromey <tom@tromey.com> |
7333 | ||
7334 | PR rust/21097: | |
7335 | * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums | |
7336 | with a single member. | |
7337 | ||
d6f9b0fb PA |
7338 | 2017-02-03 Pedro Alves <palves@redhat.com> |
7339 | ||
7340 | * cli/cli-interp.c (cli_interp_base::cli_interp_base) | |
7341 | (cli_interp_base::~cli_interp_base): New. | |
7342 | (cli_interp): New struct. | |
7343 | (as_cli_interp): Cast the interp itself to cli_interp. | |
7344 | (cli_interpreter_pre_command_loop): Rename to ... | |
7345 | (cli_interp_base::pre_command_loop): ... this. Remove 'self' | |
7346 | parameter. | |
7347 | (cli_interpreter_init): Rename to ... | |
7348 | (cli_interp::init): ... this. Remove 'self' parameter. Use | |
7349 | boolean. Make extern. | |
7350 | (cli_interpreter_resume): Rename to ... | |
7351 | (cli_interp::resume): ... this. Remove 'data' parameter. Make | |
7352 | extern. | |
7353 | (cli_interpreter_suspend): Rename to ... | |
7354 | (cli_interp::suspend): ... this. Remove 'data' parameter. Make | |
7355 | extern. | |
7356 | (cli_interpreter_exec): Rename to ... | |
7357 | (cli_interp::exec): ... this. Remove 'data' parameter. Make | |
7358 | extern. | |
7359 | (cli_interpreter_supports_command_editing): Rename to ... | |
7360 | (cli_interp_base::supports_command_editing): ... this. Remove | |
7361 | 'interp' parameter. Make extern. | |
7362 | (cli_ui_out): Rename to ... | |
7363 | (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter. | |
7364 | Make extern. | |
7365 | (cli_set_logging): Rename to ... | |
7366 | (cli_interp_base::set_logging): ... this. Remove 'interp' | |
7367 | parameter. Make extern. | |
7368 | (cli_interp_procs): Delete. | |
7369 | (cli_interp_factory): Adjust to use "new". | |
7370 | * cli/cli-interp.h: Include "interps.h". | |
7371 | (struct cli_interp_base): New struct. | |
7372 | * interps.c (struct interp): Delete. Fields moved to interps.h. | |
7373 | (interp_new): Delete. | |
7374 | (interp::interp, interp::~interp): New. | |
7375 | (interp_set): Use bool, and return void. Assume the interpreter | |
7376 | has suspend, init and resume methods, and that the all return | |
7377 | void. | |
7378 | (set_top_level_interpreter): interp_set returns void. | |
7379 | (interp_ui_out): Adapt. | |
7380 | (current_interp_set_logging): Adapt. | |
7381 | (interp_data): Delete. | |
7382 | (interp_pre_command_loop, interp_supports_command_editing): Adapt. | |
7383 | (interp_exec): Adapt. | |
7384 | (top_level_interpreter_data): Delete. | |
7385 | * interps.h (interp_init_ftype, interp_resume_ftype) | |
7386 | (interp_suspend_ftype, interp_exec_ftype) | |
7387 | (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete. | |
7388 | (class interp): New. | |
7389 | (interp_new): Delete. | |
7390 | (interp_set): Now returns void. Use bool. | |
7391 | (interp_data, top_level_interpreter_data): Delete. | |
7392 | * mi/mi-common.h: Include interps.h. | |
7393 | (class mi_interp): Inherit from interp. Define a ctor. Declare | |
7394 | init, resume, suspect, exec, interp_ui_out, set_logging and | |
7395 | pre_command_loop methods. | |
7396 | * mi/mi-interp.c (as_mi_interp): Cast the interp itself. | |
7397 | (mi_interpreter_init): Rename to ... | |
7398 | (mi_interp::init): ... this. Remove the 'interp' parameter, use | |
7399 | bool, return void and make extern. Adjust. | |
7400 | (mi_interpreter_resume): ... Rename to ... | |
7401 | (mi_interp::resume): ... this. Remove the 'data' parameter, | |
7402 | return void and make extern. Adjust. | |
7403 | (mi_interpreter_suspend): ... Rename to ... | |
7404 | (mi_interp::suspend): ... this. Remove the 'data' parameter, | |
7405 | return void and make extern. Adjust. | |
7406 | (mi_interpreter_exec): ... Rename to ... | |
7407 | (mi_interp::exec): ... this. Remove the 'data' parameter and make | |
7408 | extern. Adjust. | |
7409 | (mi_interpreter_pre_command_loop): ... Rename to ... | |
7410 | (mi_interp::pre_command_loop): ... this. Remove the 'self' | |
7411 | parameter and make extern. | |
7412 | (mi_on_normal_stop_1): Adjust. | |
7413 | (mi_ui_out): Rename to ... | |
7414 | (mi_interp::interp_ui_out): ... this. Remove the 'interp' | |
7415 | parameter and make extern. Adjust. | |
7416 | (mi_set_logging): Rename to ... | |
7417 | (mi_interp::set_logging): ... this. Remove the 'interp' | |
7418 | parameter and make extern. Adjust. | |
7419 | (mi_interp_procs): Delete. | |
7420 | (mi_interp_factory): Adjust to use 'new'. | |
7421 | * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command) | |
7422 | (mi_print_exception, mi_execute_command, mi_load_progress): | |
7423 | Adjust. | |
7424 | * tui/tui-interp.c (tui_interp): New class. | |
7425 | (as_tui_interp): Return a tui_interp pointer. | |
7426 | (tui_on_normal_stop, tui_on_signal_received) | |
7427 | (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited) | |
7428 | (tui_on_no_history, tui_on_user_selected_context_changed): Adjust | |
7429 | to use interp::interp_ui_out. | |
7430 | (tui_init): Rename to ... | |
7431 | (tui_interp::init): ... this. Remove the 'self' parameter, use | |
7432 | bool, return void and make extern. Adjust. | |
7433 | (tui_resume): Rename to ... | |
7434 | (tui_interp::resume): ... this. Remove the 'data' parameter, | |
7435 | return void and make extern. Adjust. | |
7436 | (tui_suspend): Rename to ... | |
7437 | (tui_interp::suspend): ... this. Remove the 'data' parameter, | |
7438 | return void and make extern. Adjust. | |
7439 | (tui_ui_out): Rename to ... | |
7440 | (tui_interp::interp_ui_out): ... this. Remove the 'self' | |
7441 | parameter, and make extern. Adjust. | |
7442 | (tui_exec): Rename to ... | |
7443 | (tui_interp::exec): ... this. Remove the 'data' parameter and | |
7444 | make extern. | |
7445 | (tui_interp_procs): Delete. | |
7446 | (tui_interp_factory): Use "new". | |
7447 | ||
65c40c95 TT |
7448 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7449 | ||
7450 | * rust-exp.y (ends_raw_string, space_then_number) | |
7451 | (rust_identifier_start_p): Return bool. | |
7452 | * rust-lang.c (rust_tuple_type_p, rust_underscore_fields) | |
7453 | (rust_tuple_struct_type_p, rust_tuple_variant_type_p) | |
7454 | (rust_slice_type_p, rust_range_type_p, rust_u8_type_p) | |
7455 | (rust_chartype_p): Return bool. | |
7456 | (val_print_struct, rust_print_struct_def, rust_print_type): | |
7457 | Update. | |
7458 | * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p): | |
7459 | Return bool. | |
7460 | ||
b50f188d TT |
7461 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7462 | ||
7463 | * rust-lang.c: Reindent. | |
7464 | ||
03c85b11 TT |
7465 | 2017-02-02 Tom Tromey <tom@tromey.com> |
7466 | ||
7467 | * rust-lang.h (rust_crate_for_block): Update. | |
7468 | * rust-lang.c (rust_crate_for_block): Return std::string. | |
7469 | (rust_get_disr_info): Use std:;string, not | |
7470 | gdb::unique_xmalloc_ptr. | |
7471 | * rust-exp.y (crate_name): Update. | |
7472 | ||
9b6da501 PA |
7473 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7474 | ||
7475 | * disasm-selftests.c (print_one_insn_test): Move the "verbose" | |
7476 | field out of gdb_disassembler_test and make it static. | |
7477 | ||
ec4cb20b PA |
7478 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7479 | ||
7480 | * mi/mi-common.h (struct mi_interp): Delete the mi2_interp, | |
7481 | mi1_interp and mi_interp fields. | |
7482 | ||
5be5dbf0 PA |
7483 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7484 | ||
616268b6 PA |
7485 | * cli/cli-interp.c (struct saved_output_files, saved_output): |
7486 | Moved from cli/cli-logging.c. | |
7487 | (cli_set_logging): New function. | |
7488 | (cli_interp_procs): Install cli_set_logging. | |
7489 | * cli/cli-interp.h (make_logging_output, cli_set_logging): | |
7490 | Declare. | |
7491 | * cli/cli-logging.c (struct saved_output_files, saved_output): | |
7492 | Moved to cli/cli-interp.c. | |
7493 | (pop_output_files): Don't save outputs here. | |
7494 | (make_logging_output): New function. | |
7495 | (handle_redirections): Don't build tee nor save previous outputs | |
7496 | here. | |
7497 | * interps.c (current_interp_set_logging): Change prototype. | |
7498 | Assume there's always a set_logging_proc method installed. | |
7499 | * interps.h (interp_set_logging_ftype): Change prototype. | |
7500 | (current_interp_set_logging): Change prototype and adjust comment. | |
7501 | * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to | |
7502 | use make_logging_output. | |
7503 | * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging. | |
7504 | 2017-02-02 Pedro Alves <palves@redhat.com> | |
7505 | ||
5be5dbf0 PA |
7506 | * cli/cli-logging.c (maybe_warn_already_logging): New factored out |
7507 | from ... | |
7508 | (set_logging_overwrite): ... here. | |
7509 | (logging_no_redirect_file): Delete. | |
7510 | (set_logging_redirect): Don't handle redirection on the fly. | |
7511 | Instead warn that "logging off" / "logging on" is necessary. | |
7512 | (pop_output_files): Delete references to logging_no_redirect_file. | |
7513 | (show_logging_command): Always speak in terms of what will happen | |
7514 | once logging is reenabled. | |
7515 | ||
c99cc448 PA |
7516 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7517 | ||
7518 | * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment. | |
7519 | ||
8b172ce7 PA |
7520 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7521 | ||
7522 | * disasm.c (gdb_pretty_print_insn): Rename to ... | |
7523 | (gdb_pretty_print_disassembler::pretty_print_insn): ... this. | |
7524 | Remove gdbarch parameter. Adapt to clear the object's buffers | |
7525 | instead of allocating new buffers, and to print using the object's | |
7526 | gdb_disassembler instead of calling gdb_print_insn. | |
7527 | (dump_insns): Use gdb_pretty_print_disassembler. | |
7528 | * disasm.h (gdb_pretty_print_insn): Delete declaration. | |
7529 | (gdb_pretty_print_disassembler): New class. | |
7530 | * record-btrace.c (btrace_insn_history): Use | |
7531 | gdb_pretty_print_disassembler. | |
7532 | ||
d7e74731 PA |
7533 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7534 | ||
7535 | * ada-lang.c (type_as_string): Use string_file. | |
7536 | * ada-valprint.c (ada_print_floating): Use string_file. | |
7537 | * ada-varobj.c (ada_varobj_scalar_image) | |
7538 | (ada_varobj_get_value_image): Use string_file. | |
7539 | * aix-thread.c (aix_thread_extra_thread_info): Use string_file. | |
7540 | * arm-tdep.c (_initialize_arm_tdep): Use string_printf. | |
7541 | * breakpoint.c (update_inserted_breakpoint_locations) | |
7542 | (insert_breakpoint_locations, reattach_breakpoints) | |
7543 | (print_breakpoint_location, print_one_detail_ranged_breakpoint) | |
7544 | (print_it_watchpoint): Use string_file. | |
7545 | (save_breakpoints): Use stdio_file. | |
7546 | * c-exp.y (oper): Use string_file. | |
7547 | * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and | |
7548 | tee_file. | |
7549 | (pop_output_files): Use delete. | |
7550 | (handle_redirections): Use stdio_file and tee_file. | |
7551 | * cli/cli-setshow.c (do_show_command): Use string_file. | |
7552 | * compile/compile-c-support.c (c_compute_program): Use | |
7553 | string_file. | |
7554 | * compile/compile-c-symbols.c (generate_vla_size): Take a | |
7555 | 'string_file &' instead of a 'ui_file *'. | |
7556 | (generate_c_for_for_one_variable): Take a 'string_file &' instead | |
7557 | of a 'ui_file *'. Use string_file. | |
7558 | (generate_c_for_variable_locations): Take a 'string_file &' | |
7559 | instead of a 'ui_file *'. | |
7560 | * compile/compile-internal.h (generate_c_for_for_one_variable): | |
7561 | Take a 'string_file &' instead of a 'ui_file *'. | |
7562 | * compile/compile-loc2c.c (push, pushf, unary, binary) | |
7563 | (print_label, pushf_register_address, pushf_register) | |
7564 | (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a | |
7565 | 'ui_file *'. Adjust. | |
7566 | * compile/compile.c (compile_to_object): Use string_file. | |
7567 | * compile/compile.h (compile_dwarf_expr_to_c) | |
7568 | (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a | |
7569 | 'ui_file *'. | |
7570 | * cp-support.c (inspect_type): Use string_file and obstack_copy0. | |
7571 | (replace_typedefs_qualified_name): Use string_file and | |
7572 | obstack_copy0. | |
7573 | * disasm.c (gdb_pretty_print_insn): Use string_file. | |
7574 | (gdb_disassembly): Adjust reference the null_stream global. | |
7575 | (do_ui_file_delete): Delete. | |
7576 | (gdb_insn_length): Use null_stream. | |
7577 | * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file. | |
7578 | * dwarf2loc.c (dwarf2_compile_property_to_c) | |
7579 | (locexpr_generate_c_location, loclist_generate_c_location): Take a | |
7580 | 'string_file &' instead of a 'ui_file *'. | |
7581 | * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise. | |
7582 | * dwarf2read.c (do_ui_file_peek_last): Delete. | |
7583 | (dwarf2_compute_name): Use string_file. | |
7584 | * event-top.c (gdb_setup_readline): Use stdio_file. | |
7585 | * gdbarch.sh (verify_gdbarch): Use string_file. | |
7586 | * gdbtypes.c (safe_parse_type): Use null_stream. | |
7587 | * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use | |
7588 | string_file. | |
7589 | * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a | |
7590 | 'string_file *' instead of a 'ui_file *'. | |
7591 | (gdbscm_arch_disassemble): Use string_file. | |
7592 | * guile/scm-frame.c (frscm_print_frame_smob): Use string_file. | |
7593 | * guile/scm-ports.c (class ioscm_file_port): Now a class that | |
7594 | inherits from ui_file. | |
7595 | (ioscm_file_port_delete, ioscm_file_port_rewind) | |
7596 | (ioscm_file_port_put): Delete. | |
7597 | (ioscm_file_port_write): Rename to ... | |
7598 | (ioscm_file_port::write): ... this. Remove file_port_magic | |
7599 | checks. | |
7600 | (ioscm_file_port_new): Delete. | |
7601 | (ioscm_with_output_to_port_worker): Use ioscm_file_port and | |
7602 | ui_file_up. | |
7603 | * guile/scm-type.c (tyscm_type_name): Use string_file. | |
7604 | * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print): | |
7605 | Use string_file. | |
7606 | * infcmd.c (print_return_value_1): Use string_file. | |
7607 | * infrun.c (print_target_wait_results): Use string_file. | |
7608 | * language.c (add_language): Use string_file. | |
7609 | * location.c (explicit_to_string_internal): Use string_file. | |
7610 | * main.c (captured_main_1): Use null_file. | |
7611 | * maint.c (maintenance_print_architecture): Use stdio_file. | |
7612 | * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file. | |
7613 | * mi/mi-common.h (struct mi_interp) <out, err, log, targ, | |
7614 | event_channel>: Change type to mi_console_file pointer. | |
7615 | * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush) | |
7616 | (mi_console_file_delete): Delete. | |
7617 | (struct mi_console_file): Delete. | |
7618 | (mi_console_file_magic): Delete. | |
7619 | (mi_console_file_new): Delete. | |
7620 | (mi_console_file::mi_console_file): New. | |
7621 | (mi_console_file_delete): Delete. | |
7622 | (mi_console_file_fputs): Delete. | |
7623 | (mi_console_file::write): New. | |
7624 | (mi_console_raw_packet): Delete. | |
7625 | (mi_console_file::flush): New. | |
7626 | (mi_console_file_flush): Delete. | |
7627 | (mi_console_set_raw): Rename to ... | |
7628 | (mi_console_file::set_raw): ... this. | |
7629 | * mi/mi-console.h (class mi_console_file): New class. | |
7630 | (mi_console_file_new, mi_console_set_raw): Delete. | |
7631 | * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file. | |
7632 | (mi_set_logging): Use delete and tee_file. Adjust. | |
7633 | * mi/mi-main.c (output_register): Use string_file. | |
7634 | (mi_cmd_data_evaluate_expression): Use string_file. | |
7635 | (mi_cmd_data_read_memory): Use string_file. | |
7636 | (mi_cmd_execute, print_variable_or_computed): Use string_file. | |
7637 | * mi/mi-out.c (mi_ui_out::main_stream): New. | |
7638 | (mi_ui_out::rewind): Use main_stream and | |
7639 | string_file. | |
7640 | (mi_ui_out::put): Use main_stream and string_file. | |
7641 | (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
7642 | Allocate a 'string_file' instead. | |
7643 | (mi_out_new): Don't allocate a mem_fileopen stream here. | |
7644 | * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter. | |
7645 | (mi_ui_out::main_stream): Declare method. | |
7646 | * printcmd.c (eval_command): Use string_file. | |
7647 | * psymtab.c (maintenance_print_psymbols): Use stdio_file. | |
7648 | * python/py-arch.c (archpy_disassemble): Use string_file. | |
7649 | * python/py-breakpoint.c (bppy_get_commands): Use string_file. | |
7650 | * python/py-frame.c (frapy_str): Use string_file. | |
7651 | * python/py-framefilter.c (py_print_type, py_print_single_arg): | |
7652 | Use string_file. | |
7653 | * python/py-type.c (typy_str): Use string_file. | |
7654 | * python/py-unwind.c (unwind_infopy_str): Use string_file. | |
7655 | * python/py-value.c (valpy_str): Use string_file. | |
7656 | * record-btrace.c (btrace_insn_history): Use string_file. | |
7657 | * regcache.c (regcache_print): Use stdio_file. | |
7658 | * reggroups.c (maintenance_print_reggroups): Use stdio_file. | |
7659 | * remote.c (escape_buffer): Use string_file. | |
7660 | * rust-lang.c (rust_get_disr_info): Use string_file. | |
7661 | * serial.c (serial_open_ops_1): Use stdio_file. | |
7662 | (do_serial_close): Use delete. | |
7663 | * stack.c (print_frame_arg): Use string_file. | |
7664 | (print_frame_args): Remove local mem_fileopen stream, not used. | |
7665 | (print_frame): Use string_file. | |
7666 | * symmisc.c (maintenance_print_symbols): Use stdio_file. | |
7667 | * symtab.h (struct symbol_computed_ops) <generate_c_location>: | |
7668 | Take a 'string_file *' instead of a 'ui_file *'. | |
7669 | * top.c (new_ui): Use stdio_file and stderr_file. | |
7670 | (free_ui): Use delete. | |
7671 | (execute_command_to_string): Use string_file. | |
7672 | (quit_confirm): Use string_file. | |
7673 | * tracepoint.c (collection_list::append_exp): Use string_file. | |
7674 | * tui/tui-disasm.c (tui_disassemble): Use string_file. | |
7675 | * tui/tui-file.c: Don't include "ui-file.h". | |
7676 | (enum streamtype, struct tui_stream): Delete. | |
7677 | (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen) | |
7678 | (tui_file_isatty, tui_file_rewind, tui_file_put): Delete. | |
7679 | (tui_file::tui_file): New method. | |
7680 | (tui_file_fputs): Delete. | |
7681 | (tui_file_get_strbuf): Delete. | |
7682 | (tui_file::puts): New method. | |
7683 | (tui_file_adjust_strbuf): Delete. | |
7684 | (tui_file_flush): Delete. | |
7685 | (tui_file::flush): New method. | |
7686 | * tui/tui-file.h: Tweak intro comment. | |
7687 | Include ui-file.h. | |
7688 | (tui_fileopen, tui_sfileopen, tui_file_get_strbuf) | |
7689 | (tui_file_adjust_strbuf): Delete declarations. | |
7690 | (class tui_file): New class. | |
7691 | * tui/tui-io.c (tui_initialize_io): Use tui_file. | |
7692 | * tui/tui-regs.c (tui_restore_gdbout): Use delete. | |
7693 | (tui_register_format): Use string_stream. | |
7694 | * tui/tui-stack.c (tui_make_status_line): Use string_file. | |
7695 | (tui_get_function_from_frame): Use string_file. | |
7696 | * typeprint.c (type_to_string): Use string_file. | |
7697 | * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete. | |
7698 | (null_stream): New global. | |
7699 | (ui_file_delete): Delete. | |
7700 | (ui_file::ui_file): New. | |
7701 | (null_file_isatty): Delete. | |
7702 | (ui_file::~ui_file): New. | |
7703 | (null_file_rewind): Delete. | |
7704 | (ui_file::printf): New. | |
7705 | (null_file_put): Delete. | |
7706 | (null_file_flush): Delete. | |
7707 | (ui_file::putstr): New. | |
7708 | (null_file_write): Delete. | |
7709 | (ui_file::putstrn): New. | |
7710 | (null_file_read): Delete. | |
7711 | (ui_file::putc): New. | |
7712 | (null_file_fputs): Delete. | |
7713 | (null_file_write_async_safe): Delete. | |
7714 | (ui_file::vprintf): New. | |
7715 | (null_file_delete): Delete. | |
7716 | (null_file::write): New. | |
7717 | (null_file_fseek): Delete. | |
7718 | (null_file::puts): New. | |
7719 | (ui_file_data): Delete. | |
7720 | (null_file::write_async_safe): New. | |
7721 | (gdb_flush, ui_file_isatty): Adjust. | |
7722 | (ui_file_put, ui_file_rewind): Delete. | |
7723 | (ui_file_write): Adjust. | |
7724 | (ui_file_write_for_put): Delete. | |
7725 | (ui_file_write_async_safe, ui_file_read): Adjust. | |
7726 | (ui_file_fseek): Delete. | |
7727 | (fputs_unfiltered): Adjust. | |
7728 | (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind) | |
7729 | (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe) | |
7730 | (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek) | |
7731 | (set_ui_file_data): Delete. | |
7732 | (string_file::~string_file, string_file::write) | |
7733 | (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup) | |
7734 | (do_ui_file_as_string, ui_file_as_string): Delete. | |
7735 | (do_ui_file_obsavestring, ui_file_obsavestring): Delete. | |
7736 | (struct mem_file): Delete. | |
7737 | (mem_file_new): Delete. | |
7738 | (stdio_file::stdio_file): New. | |
7739 | (mem_file_delete): Delete. | |
7740 | (stdio_file::stdio_file): New. | |
7741 | (mem_fileopen): Delete. | |
7742 | (stdio_file::~stdio_file): New. | |
7743 | (mem_file_rewind): Delete. | |
7744 | (stdio_file::set_stream): New. | |
7745 | (mem_file_put): Delete. | |
7746 | (stdio_file::open): New. | |
7747 | (mem_file_write): Delete. | |
7748 | (stdio_file_magic, struct stdio_file): Delete. | |
7749 | (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete. | |
7750 | (stdio_file::flush): New. | |
7751 | (stdio_file_read): Rename to ... | |
7752 | (stdio_file::read): ... this. Adjust. | |
7753 | (stdio_file_write): Rename to ... | |
7754 | (stdio_file::write): ... this. Adjust. | |
7755 | (stdio_file_write_async_safe): Rename to ... | |
7756 | (stdio_file::write_async_safe) ... this. Adjust. | |
7757 | (stdio_file_fputs): Rename to ... | |
7758 | (stdio_file::puts) ... this. Adjust. | |
7759 | (stdio_file_isatty): Delete. | |
7760 | (stdio_file_fseek): Delete. | |
7761 | (stdio_file::isatty): New. | |
7762 | (stderr_file_write): Rename to ... | |
7763 | (stderr_file::write) ... this. Adjust. | |
7764 | (stderr_file_fputs): Rename to ... | |
7765 | (stderr_file::puts) ... this. Adjust. | |
7766 | (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete. | |
7767 | (stderr_file::stderr_file): New. | |
7768 | (tee_file_magic): Delete. | |
7769 | (struct tee_file): Delete. | |
7770 | (tee_file::tee_file): New. | |
7771 | (tee_file_new): Delete. | |
7772 | (tee_file::~tee_file): New. | |
7773 | (tee_file_delete): Delete. | |
7774 | (tee_file_flush): Rename to ... | |
7775 | (tee_file::flush): ... this. Adjust. | |
7776 | (tee_file_write): Rename to ... | |
7777 | (tee_file::write): ... this. Adjust. | |
7778 | (tee_file::write_async_safe): New. | |
7779 | (tee_file_fputs): Rename to ... | |
7780 | (tee_file::puts): ... this. Adjust. | |
7781 | (tee_file_isatty): Rename to ... | |
7782 | (tee_file::isatty): ... this. Adjust. | |
7783 | * ui-file.h (struct obstack, struct ui_file): Don't | |
7784 | forward-declare. | |
7785 | (ui_file_new, ui_file_flush_ftype, set_ui_file_flush) | |
7786 | (ui_file_write_ftype) | |
7787 | (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs) | |
7788 | (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe) | |
7789 | (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype) | |
7790 | (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind) | |
7791 | (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put) | |
7792 | (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype) | |
7793 | (set_ui_file_fseek): Delete. | |
7794 | (ui_file_data, ui_file_delete, ui_file_rewind) | |
7795 | (struct ui_file): New. | |
7796 | (ui_file_up): New. | |
7797 | (class null_file): New. | |
7798 | (null_stream): Declare. | |
7799 | (ui_file_write_for_put, ui_file_put): Delete. | |
7800 | (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring): | |
7801 | Delete. | |
7802 | (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen) | |
7803 | (gdb_fopen, tee_file_new): Delete. | |
7804 | (struct string_file): New. | |
7805 | (struct stdio_file): New. | |
7806 | (stdio_file_up): New. | |
7807 | (struct stderr_file): New. | |
7808 | (class tee_file): New. | |
7809 | * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead | |
7810 | of a 'ui_file *'. Adjust. | |
7811 | * ui-out.h (class ui_out) <field_stream>: Likewise. | |
7812 | * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete) | |
7813 | (null_stream): Delete. | |
7814 | (error_stream): Take a 'string_file &' instead of a 'ui_file *'. | |
7815 | Adjust. | |
7816 | * utils.h (struct ui_file): Delete forward declaration.. | |
7817 | (make_cleanup_ui_file_delete, null_stream): Delete declarations. | |
7818 | (error_stream): Take a 'string_file &' instead of a | |
7819 | 'ui_file *'. | |
7820 | * varobj.c (varobj_value_get_print_value): Use string_file. | |
7821 | * xtensa-tdep.c (xtensa_verify_config): Use string_file. | |
7822 | * gdbarch.c: Regenerate. | |
7823 | ||
187808b0 PA |
7824 | 2017-02-02 Pedro Alves <palves@redhat.com> |
7825 | ||
7826 | * disasm.c (gdb_disassembler::pretty_print_insn): Rename to... | |
7827 | (gdb_pretty_print_insn): ... this. Now a free function. Add back | |
7828 | a 'gdbarch' parameter. Allocate a mem_fileopen stream here. | |
7829 | Adjust to call gdb_print_insn instead of | |
7830 | gdb_disassembler::print_insn. | |
7831 | (dump_insns, do_mixed_source_and_assembly_deprecated) | |
7832 | (do_mixed_source_and_assembly, do_assembly_only): Add back a | |
7833 | 'gdbarch' parameter. Remove gdb_disassembler parameter. | |
7834 | (gdb_disassembly): Don't allocate a gdb_disassembler here. | |
7835 | * disasm.h (gdb_disassembler::pretty_print_insn): Delete | |
7836 | declaration. | |
7837 | (gdb_pretty_print_insn): Re-add declaration. | |
7838 | * record-btrace.c (btrace_insn_history): Don't allocate a | |
7839 | gdb_disassembler here. Adjust to call gdb_pretty_print_insn. | |
7840 | ||
7a8eb317 SM |
7841 | 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca> |
7842 | ||
7843 | * disasm.h (gdb_disassembly): Remove file_string parameter. | |
7844 | * disasm.c (gdb_disassembly): Likewise. | |
7845 | * cli/cli-cmds.c (print_disassembly): Adapt. | |
7846 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise. | |
7847 | * stack.c (do_gdb_disassembly): Likewise. | |
7848 | ||
7346ef59 AA |
7849 | 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7850 | ||
7851 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For | |
7852 | DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian | |
7853 | targets. And if the implicit value is longer than needed, extract | |
7854 | the first bytes instead of the "least significant" ones. | |
7855 | ||
cd4007e4 MM |
7856 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
7857 | ||
7858 | * btrace.c (btrace_enable): Do not call btrace_add_pc for | |
7859 | BTRACE_FORMAT_PT or if can_access_registers_ptid returns false. | |
7860 | (btrace_fetch): Assert can_access_registers_ptid. | |
7861 | * record-btrace.c (require_btrace_thread, record_btrace_info): Call | |
7862 | validate_registers_access. | |
7863 | ||
cf77c34e MM |
7864 | 2017-02-01 Markus Metzger <markus.t.metzger@intel.com> |
7865 | ||
7866 | * gdbthread.h (can_access_registers_ptid): New. | |
7867 | * thread.c (can_access_registers_ptid): New. | |
7868 | ||
be85ce7d PA |
7869 | 2017-02-01 Pedro Alves <palves@redhat.com> |
7870 | ||
7871 | * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length. | |
7872 | ||
29b0b251 PA |
7873 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7874 | ||
7875 | * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified): | |
7876 | Fix typos. | |
7877 | ||
289b5b24 PA |
7878 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7879 | ||
7880 | * stack.c (print_frame_args): Remove local mem_fileopen stream, | |
7881 | not used. | |
7882 | ||
b47413b4 PA |
7883 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7884 | ||
7885 | * varobj.c (varobj_value_get_print_value): Remove xstrdup call. | |
7886 | ||
60adb36c PA |
7887 | 2017-01-31 Pedro Alves <palves@redhat.com> |
7888 | ||
7889 | * common/scoped_restore.h | |
7890 | (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and | |
7891 | change the value's parameter type to T2. | |
7892 | (make_scoped_restore): Likewise. | |
7893 | ||
2735833d WT |
7894 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7895 | Richard Henderson <rth@redhat.com> | |
7896 | ||
7897 | * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define. | |
7898 | (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE | |
7899 | GS_BASE for older kernels. | |
7900 | (amd64_linux_store_inferior_registers): Add case to store FS_BASE | |
7901 | GS_BASE for older kernels. | |
7902 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE | |
7903 | and GS_BASE to the offset table. | |
7904 | (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the | |
7905 | system register group. | |
7906 | * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case | |
7907 | for older kernels. | |
7908 | * amd64-tdep.c (amd64_init_abi): Add segment registers for the | |
7909 | amd64 ABI. | |
7910 | * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and | |
7911 | AMD64_GSBASE_REGNUM. | |
7912 | (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1. | |
7913 | * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat) | |
7914 | (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat) | |
7915 | (x32-avx-linux.dat, x32-avx512-linux.dat): Add | |
7916 | i386/64bit-segments.xml in those rules. | |
7917 | * features/i386/64bit-segments.xml: New file. | |
7918 | * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml. | |
7919 | * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml. | |
7920 | * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml. | |
7921 | * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml. | |
7922 | * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml. | |
7923 | * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml. | |
7924 | * features/i386/amd64-linux.xml: Add 64bit-segments.xml. | |
7925 | * features/i386/amd64-avx-linux.c: Regenerated. | |
7926 | * features/i386/amd64-avx-mpx-linux.c: Regenerated. | |
7927 | * features/i386/amd64-avx-mpx.c: Regenerated. | |
7928 | * features/i386/amd64-avx512-linux.c: Regenerated. | |
7929 | * features/i386/amd64-linux.c: Regenerated. | |
7930 | * features/i386/amd64-mpx-linux.c: Regenerated. | |
7931 | * features/i386/i386-avx-mpx-linux.c: Regenerated. | |
7932 | * features/i386/i386-avx-mpx.c: Regenerated. | |
7933 | * features/i386/x32-avx-linux.c: Regenerated. | |
7934 | * features/i386/x32-avx512-linux.c: Regenerated. | |
7935 | * regformats/i386/amd64-avx-linux.dat: Regenerated. | |
7936 | * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated. | |
7937 | * regformats/i386/amd64-avx512-linux.dat: Regenerated. | |
7938 | * regformats/i386/amd64-linux.dat: Regenerated. | |
7939 | * regformats/i386/amd64-mpx-linux.dat: Regenerated. | |
7940 | * regformats/i386/x32-avx-linux.dat: Regenerated. | |
7941 | * regformats/i386/x32-avx512-linux.dat: Regenerated. | |
7942 | * regformats/i386/x32-linux.dat: Regenerated. | |
7943 | ||
8884e97e WT |
7944 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7945 | ||
7946 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): | |
7947 | Set to AMD64_NUM_REGS. | |
7948 | ||
7005d26a WT |
7949 | 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com> |
7950 | ||
7951 | * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic | |
7952 | that checks validity of a register number. | |
7953 | ||
4bd2e1b2 KC |
7954 | 2017-01-27 Kees Cook <keescook@google.com> |
7955 | ||
7956 | * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call | |
7957 | fetch_fpregs if target has fpa registers. | |
7958 | (arm_linux_store_inferior_registers): Call store_fpregs if target | |
7959 | has fpa registers. | |
7960 | ||
7cf1de6c AA |
7961 | 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com> |
7962 | ||
7963 | * cris-tdep.c (cris_gdbarch_init): Remove check for | |
7964 | info.byte_order and force it to BFD_ENDIAN_LITTLE. | |
7965 | ||
874a1c8c AT |
7966 | 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com> |
7967 | ||
7968 | * corelow.c (get_core_register_section): Check for regset | |
7969 | existence before checking for REGSET_VARIABLE_SIZE. | |
7970 | ||
d8b49cf0 YQ |
7971 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7972 | Pedro Alves <palves@redhat.com> | |
7973 | ||
7974 | PR gdb/20939 | |
7975 | * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't | |
7976 | call memory_error, save memaddr instead. | |
7977 | (gdb_disassembler::print_insn): If gdbarch_print_insn returns | |
7978 | negative, cal memory_error. | |
7979 | * disasm.h (gdb_disassembler) <m_err_memaddr>: New field. | |
7980 | ||
658ca58c YQ |
7981 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7982 | ||
7983 | * disasm-selftests.c (memory_error_test): New function. | |
7984 | (_initialize_disasm_selftests): Register memory_error_test. | |
7985 | ||
79843d45 YQ |
7986 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7987 | ||
7988 | * Makefile.in (SFILES): Add disasm-selftests.c and | |
7989 | selftest-arch.c. | |
7990 | (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o. | |
7991 | * disasm-selftests.c: New file. | |
7992 | * selftest-arch.c: New file. | |
7993 | * selftest-arch.h: New file. | |
7994 | ||
8cafda32 YQ |
7995 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
7996 | ||
7997 | * mep-tdep.c (mep_gdb_print_insn): Set info->arch | |
7998 | to bfd_arch_mep. Don't return 0 if section is not | |
7999 | found. Call print_insn_mep. | |
8000 | ||
e47ad6c0 YQ |
8001 | 2017-01-26 Pedro Alves <palves@redhat.com> |
8002 | Yao Qi <yao.qi@linaro.org> | |
8003 | ||
8004 | * arm-tdep.c: Include "disasm.h". | |
8005 | (gdb_print_insn_arm): Update code to get gdbarch. | |
8006 | * disasm.c (dis_asm_read_memory): Change it to | |
8007 | gdb_disassembler::dis_asm_read_memory. | |
8008 | (dis_asm_memory_error): Likewise. | |
8009 | (dis_asm_print_address): Likewise. | |
8010 | (gdb_pretty_print_insn): Change it to | |
8011 | gdb_disassembler::pretty_print_insn. | |
8012 | (dump_insns): Add one argument gdb_disassemlber. All | |
8013 | callers updated. | |
8014 | (do_mixed_source_and_assembly_deprecated): Likewise. | |
8015 | (do_mixed_source_and_assembly): Likewise. | |
8016 | (do_assembly_only): Likewise. | |
8017 | (gdb_disassembler::gdb_disassembler): New. | |
8018 | (gdb_disassembler::print_insn): New. | |
8019 | * disasm.h (class gdb_disassembler): New. | |
8020 | (gdb_pretty_print_insn): Remove declaration. | |
8021 | (gdb_disassemble_info): Likewise. | |
8022 | * guile/scm-disasm.c (class gdbscm_disassembler): New. | |
8023 | (gdbscm_disasm_read_memory_worker): Update. | |
8024 | (gdbscm_disasm_read_memory): Update. | |
8025 | (gdbscm_disasm_memory_error): Remove. | |
8026 | (gdbscm_disasm_print_address): Remove. | |
8027 | (gdbscm_disassembler::gdbscm_disassembler): New. | |
8028 | (gdbscm_print_insn_from_port): Update. | |
8029 | * mips-tdep.c: Include disasm.h. | |
8030 | (gdb_print_insn_mips): Update code to get gdbarch. | |
8031 | * record-btrace.c (btrace_insn_history): Update. | |
8032 | * spu-tdep.c: Include disasm.h. | |
8033 | (struct spu_dis_asm_data): Remove. | |
8034 | (struct spu_dis_asm_info): New. | |
8035 | (spu_dis_asm_print_address): Use spu_dis_asm_info to get | |
8036 | SPU id. | |
8037 | (gdb_print_insn_spu): Cast disassemble_info to | |
8038 | spu_dis_asm_info. | |
8039 | ||
80d75874 YQ |
8040 | 2017-01-26 Yao Qi <yao.qi@linaro.org> |
8041 | ||
8042 | * disasm.c (do_ui_file_delete): Delete. | |
8043 | (gdb_insn_length): Move code creating stream to ... | |
8044 | * utils.c (null_stream): ... here. New function. | |
8045 | * utils.h (null_stream): Declare. | |
8046 | ||
60685cd0 SM |
8047 | 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
8048 | ||
8049 | * python/py-inferior.c (find_thread_object): Return directly | |
8050 | from the loop. Remove "found" variable. | |
8051 | ||
eb1cdb62 JB |
8052 | 2017-01-21 Joel Brobecker <brobecker@adacore.com> |
8053 | ||
8054 | GDB 7.12.1 released. | |
8055 | ||
b1ce6568 SM |
8056 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
8057 | ||
8058 | * python/py-function.c (fnpy_call): Reorder declarations to have | |
8059 | the gdbpy_enter object declared first. | |
8060 | * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise. | |
8061 | ||
6f8b0407 SM |
8062 | 2017-01-20 Simon Marchi <simon.marchi@ericsson.com> |
8063 | ||
fec93fb1 | 8064 | PR python/21068 |
6f8b0407 SM |
8065 | * python/python-internal.h (PyMem_RawMalloc): Define for |
8066 | Python < 3.4. | |
8067 | * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use | |
8068 | PyMem_RawMalloc instead of PyMem_Malloc. | |
8069 | ||
78cbbba8 LM |
8070 | 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com> |
8071 | Luis Machado <lgustavo@codesourcery.com> | |
8072 | ||
8073 | * NEWS (New commands): Mention flash-erase. | |
8074 | (New MI commands): Mention target-flash-erase. | |
8075 | * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI | |
8076 | command. | |
8077 | * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration. | |
8078 | * mi/mi-main.c (mi_cmd_target_flash_erase): New function. | |
8079 | * target.c (flash_erase_command): New function. | |
8080 | (initialize_targets): Add new flash-erase command. | |
8081 | * target.h (flash_erase_command): New declaration. | |
8082 | ||
2132fe85 JB |
8083 | 2017-01-20 Joel Brobecker <brobecker@adacore.com> |
8084 | ||
8085 | * nat/linux-ptrace.c: Only include <sys/procfs.h> if | |
8086 | HAVE_SYS_PROCFS_H is defined. | |
8087 | ||
d1dff226 AH |
8088 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
8089 | ||
8090 | * remote.c (struct cached_reg): Change data into a pointer. | |
8091 | * (stop_reply_dtr): Free data pointers before deleting vector. | |
8092 | (process_stop_reply): Likewise. | |
8093 | (remote_parse_stop_reply): Allocate space for data | |
8094 | ||
9890e433 AH |
8095 | 2017-01-18 Alan Hayward <alan.hayward@arm.com> |
8096 | ||
8097 | * amd64-tdep.c (amd64_pseudo_register_read_value): remove | |
8098 | MAX_REGISTER_SIZE. | |
8099 | (amd64_pseudo_register_read_value): Likewise. | |
8100 | * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE. | |
8101 | (store_register_using_P): Likewise. | |
8102 | * regcache.c (regcache_xfer_part): Likewise. | |
8103 | ||
7a36499a IR |
8104 | 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com> |
8105 | ||
8106 | Split real and pseudo registers. | |
8107 | * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro. | |
8108 | (sparc32_pseudo_regnum): New enum. | |
8109 | * sparc64-tdep.h (sparc64_pseudo_regnum): New enum. | |
8110 | * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro. | |
8111 | (SPARC32_CP0_REGISTERS): New macro. | |
8112 | (sparc32_pseudo_register_name): New function. | |
8113 | (sparc32_register_name): Use sparc32_pseudo_register_name. | |
8114 | (sparc32_pseudo_register_type): New function. | |
8115 | (sparc32_register_type): Use sparc32_pseudo_register_type. | |
8116 | (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle | |
8117 | pseudo register numbers. | |
8118 | * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro. | |
8119 | (SPARC64_CP0_REGISTERS): New macro. | |
8120 | (sparc64_pseudo_register_name): New function. | |
8121 | (sparc64_register_name): Use sparc64_pseudo_register_name. | |
8122 | (sparc64_pseudo_register_type): New function. | |
8123 | (sparc64_register_type): Use sparc64_pseudo_register_type. | |
8124 | (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle | |
8125 | pseudo register numbers. | |
8126 | (sparc64_store_floating_fields, sparc64_extract_floating_fields, | |
8127 | sparc64_store_arguments): Handle pseudo register numbers. | |
8128 | ||
6f8976bf YQ |
8129 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
8130 | ||
8131 | * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro. | |
8132 | (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug | |
8133 | output. | |
8134 | (getpkt_or_notif_sane_1): Likewise. | |
8135 | ||
e4241ace YQ |
8136 | 2017-01-13 Yao Qi <yao.qi@linaro.org> |
8137 | ||
8138 | * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead | |
8139 | of CC. Pass "-x c++-header" instead of "-x c". | |
8140 | ||
3015c064 SM |
8141 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8142 | ||
8143 | * remote.c (remote_can_async_p): Update comment. | |
8144 | ||
fde1b17d SM |
8145 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8146 | ||
8147 | * linux-nat.c (linux_nat_can_async_p): Update comment. | |
8148 | ||
ca1ca08b SM |
8149 | 2017-01-12 Simon Marchi <simon.marchi@ericsson.com> |
8150 | ||
8151 | * serial.c (serial_open): Forget about "pc" and "lpt" serial interface. | |
8152 | ||
4ad2da73 SM |
8153 | 2017-01-11 Simon Marchi <simon.marchi@ericsson.com> |
8154 | ||
8155 | * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment. | |
8156 | ||
c8b23b3f TT |
8157 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8158 | ||
8159 | * python/py-type.c (typy_legacy_template_argument): Update. | |
8160 | * cp-support.h (struct demangle_parse_info) (demangle_parse_info, | |
8161 | ~demangle_parse_info): Declare new members. | |
8162 | (cp_demangled_name_to_comp): Return unique_ptr. | |
8163 | (cp_demangled_name_parse_free) | |
8164 | (make_cleanup_cp_demangled_name_parse_free) | |
8165 | (cp_new_demangle_parse_info): Remove. | |
8166 | * cp-support.c (do_demangled_name_parse_free_cleanup) | |
8167 | (make_cleanup_cp_demangled_name_parse_free): Remove. | |
8168 | (inspect_type, cp_canonicalize_string_full) | |
8169 | (cp_canonicalize_string): Update. | |
8170 | (mangled_name_to_comp): Change return type. | |
8171 | (cp_class_name_from_physname, method_name_from_physname) | |
8172 | (cp_func_name, cp_remove_params): Update. | |
8173 | * cp-name-parser.y (demangle_parse_info): New constructor, from | |
8174 | cp_new_demangle_parse_info. | |
8175 | (~demangle_parse_info): New destructor, from | |
8176 | cp_demangled_name_parse_free. | |
8177 | (cp_merge_demangle_parse_infos): Update. | |
8178 | (cp_demangled_name_to_comp): Change return type. | |
8179 | ||
1ac32117 TT |
8180 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8181 | ||
8182 | * top.c (prevent_dont_repeat): Change return type. | |
8183 | * python/python.c (execute_gdb_command): Use std::string. | |
8184 | Update. | |
8185 | * guile/guile.c (gdbscm_execute_gdb_command): Update. | |
8186 | * command.h (prevent_dont_repeat): Change return type. | |
8187 | * breakpoint.c (bpstat_do_actions_1): Update. | |
8188 | ||
0cf08227 TT |
8189 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8190 | ||
8191 | * value.h (scoped_value_mark::~scoped_value_mark): Call | |
8192 | free_to_mark. | |
8193 | (scoped_value_mark::free_to_mark): New method. | |
8194 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use | |
8195 | scoped_value_mark. | |
8196 | ||
eb115069 TT |
8197 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8198 | ||
8199 | * python/py-value.c (valpy_dereference, valpy_referenced_value) | |
8200 | (valpy_reference_value, valpy_const_value, valpy_get_address) | |
8201 | (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast) | |
8202 | (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative) | |
8203 | (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark. | |
8204 | * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
8205 | scoped_value_mark. | |
8206 | * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark. | |
8207 | * value.h (scoped_value_mark): New class. | |
8208 | ||
906768f9 TT |
8209 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8210 | ||
8211 | * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder. | |
8212 | * psympriv.h (make_cleanup_discard_psymtabs): Don't declare. | |
8213 | * psymtab.c (discard_psymtabs_upto): Remove. | |
8214 | (make_cleanup_discard_psymtabs): Remove. | |
8215 | (struct psymtab_state): Remove. | |
8216 | ||
bef155c3 TT |
8217 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8218 | ||
8219 | * record-full.c (record_full_save_cleanups): Remove. | |
8220 | (record_full_save): Use gdb::unlinker. | |
8221 | * gcore.c (do_bfd_delete_cleanup): Remove. | |
8222 | (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove | |
8223 | cleanups. | |
8224 | * dwarf2read.c (unlink_if_set): Remove. | |
8225 | (write_psymtabs_to_index): Use gdb::unlinker. | |
8226 | * common/gdb_unlinker.h: New file. | |
8227 | ||
192b62ce TT |
8228 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8229 | ||
8230 | * windows-tdep.c (windows_xfer_shared_library): Update. | |
8231 | * windows-nat.c (windows_make_so): Update. | |
8232 | * utils.h (make_cleanup_bfd_unref): Remove. | |
8233 | * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove. | |
8234 | * symfile.h (symfile_bfd_open) | |
8235 | (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr. | |
8236 | * symfile.c (read_symbols, symbol_file_add) | |
8237 | (separate_debug_file_exists): Update. | |
8238 | (symfile_bfd_open): Return gdb_bfd_ref_ptr. | |
8239 | (generic_load, reread_symbols): Update. | |
8240 | * symfile-mem.c (symbol_file_add_from_memory): Update. | |
8241 | * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr. | |
8242 | (spu_symbol_file_add_from_memory): Update. | |
8243 | * solist.h (struct target_so_ops) <bfd_open>: Return | |
8244 | gdb_bfd_ref_ptr. | |
8245 | (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr. | |
8246 | * solib.c (solib_bfd_fopen, solib_bfd_open): Return | |
8247 | gdb_bfd_ref_ptr. | |
8248 | (solib_map_sections, reload_shared_libraries_1): Update. | |
8249 | * solib-svr4.c (enable_break): Update. | |
8250 | * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr. | |
8251 | * solib-frv.c (enable_break2): Update. | |
8252 | * solib-dsbt.c (enable_break): Update. | |
8253 | * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return | |
8254 | gdb_bfd_ref_ptr. | |
8255 | (darwin_solib_get_all_image_info_addr_at_init): Update. | |
8256 | (darwin_bfd_open): Return gdb_bfd_ref_ptr. | |
8257 | * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr. | |
8258 | * record-full.c (record_full_save): Update. | |
8259 | * python/py-objfile.c (objfpy_add_separate_debug_file): Update. | |
8260 | * procfs.c (insert_dbx_link_bpt_in_file): Update. | |
8261 | * minidebug.c (find_separate_debug_file_in_section): Return | |
8262 | gdb_bfd_ref_ptr. | |
8263 | * machoread.c (macho_add_oso_symfile): Change abfd to | |
8264 | gdb_bfd_ref_ptr. | |
8265 | (macho_symfile_read_all_oso): Update. | |
8266 | (macho_check_dsym): Return gdb_bfd_ref_ptr. | |
8267 | (macho_symfile_read): Update. | |
8268 | * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr. | |
8269 | (jit_bfd_try_read_symtab): Update. | |
8270 | * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
8271 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
8272 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
8273 | gdb_bfd_ref_ptr. | |
8274 | (gdb_bfd_ref_policy): New struct. | |
8275 | (gdb_bfd_ref_ptr): New typedef. | |
8276 | * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) | |
8277 | (gdb_bfd_openw, gdb_bfd_openr_iovec) | |
8278 | (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return | |
8279 | gdb_bfd_ref_ptr. | |
8280 | * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
8281 | * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr. | |
8282 | (gcore_command): Update. | |
8283 | * exec.c (exec_file_attach): Update. | |
8284 | * elfread.c (elf_symfile_read): Update. | |
8285 | * dwarf2read.c (dwarf2_get_dwz_file): Update. | |
8286 | (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr. | |
8287 | (open_and_init_dwo_file): Update. | |
8288 | (open_dwp_file): Return gdb_bfd_ref_ptr. | |
8289 | (open_and_init_dwp_file): Update. | |
8290 | * corelow.c (core_open): Update. | |
8291 | * compile/compile-object-load.c (compile_object_load): Update. | |
8292 | * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator. | |
8293 | * coffread.c (coff_symfile_read): Update. | |
8294 | * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return | |
8295 | gdb_bfd_ref_ptr. Rename. | |
8296 | (dump_bfd_file, restore_command): Update. | |
8297 | * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
8298 | * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr. | |
8299 | (find_separate_debug_file_by_buildid): Update. | |
8300 | ||
50315b21 TT |
8301 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8302 | ||
8303 | * common/gdb_ref_ptr.h: New file. | |
8304 | * python/py-ref.h (struct gdbpy_ref_policy): New. | |
8305 | (gdbpy_ref): Now a typedef. | |
8306 | ||
fc4007c9 TT |
8307 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8308 | ||
8309 | * utils.h (make_cleanup_htab_delete): Don't declare. | |
8310 | * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete): | |
8311 | Remove. | |
8312 | * linespec.c (decode_compound_collector): Add constructor, | |
8313 | destructor. | |
8314 | (lookup_prefix_sym): Remove cleanup. | |
8315 | (symtab_collector): Add constructor, destructor. | |
8316 | (collect_symtabs_from_filename): Remove cleanup. | |
8317 | * disasm.c (do_mixed_source_and_assembly): Use htab_up. | |
8318 | * compile/compile-c-symbols.c (generate_c_for_variable_locations): | |
8319 | Use htab_up. | |
8320 | * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up. | |
8321 | * dwarf2read.c (dw2_expand_symtabs_matching) | |
8322 | (dw2_map_symbol_filenames, dwarf_decode_macros) | |
8323 | (write_psymtabs_to_index): Use htab_up. | |
8324 | * dwarf2loc.c (func_verify_no_selftailcall) | |
8325 | (call_site_find_chain_1, func_verify_no_selftailcall) | |
8326 | (chain_candidate, call_site_find_chain_1): Use std::unordered_set, | |
8327 | std::vector, gdb::unique_xmalloc_ptr. | |
8328 | (call_sitep): Remove typedef. | |
8329 | (dwarf2_locexpr_baton_eval): Remove unused variable. | |
8330 | ||
8dbcee67 TT |
8331 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8332 | ||
8333 | * python/python-internal.h (make_cleanup_py_decref) | |
8334 | (make_cleanup_py_xdecref): Don't declare. | |
8335 | * python/py-utils.c (py_decref, make_cleanup_py_decref) | |
8336 | (py_xdecref, make_cleanup_py_xdecref): Remove. | |
8337 | ||
13df46cc TT |
8338 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8339 | ||
8340 | * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref. | |
8341 | (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref. | |
8342 | ||
06fc9bf7 TT |
8343 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8344 | ||
8345 | * python/py-framefilter.c (enumerate_args): Use gdbpy_ref. | |
8346 | ||
830a4934 TT |
8347 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8348 | ||
8349 | * python/py-utils.c (unicode_to_encoded_string) | |
8350 | (python_string_to_target_string) | |
8351 | (python_string_to_target_python_string) | |
8352 | (python_string_to_host_string, gdbpy_obj_to_string) | |
8353 | (get_addr_from_python): Use gdbpy_ref. | |
8354 | ||
4586d543 TT |
8355 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8356 | ||
8357 | * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use | |
8358 | gdbpy_ref. | |
8359 | ||
59876f8f TT |
8360 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8361 | ||
8362 | * python/python.c (eval_python_command, gdbpy_decode_line) | |
8363 | (gdbpy_run_events, gdbpy_start_type_printers) | |
8364 | (gdbpy_apply_type_printers): Use gdbpy_ref. | |
8365 | ||
97d83487 TT |
8366 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8367 | ||
8368 | * python/py-param.c (get_doc_string, compute_enum_values): Use | |
8369 | gdbpy_ref. | |
8370 | ||
9205649a TT |
8371 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8372 | ||
8373 | * python/py-inferior.c (find_thread_object, build_inferior_list): | |
8374 | Use gdbpy_ref. | |
8375 | ||
74c49d45 TT |
8376 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8377 | ||
8378 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
8379 | ||
16361ffb TT |
8380 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8381 | ||
8382 | * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use | |
8383 | gdbpy_ref. | |
8384 | ||
905f2cca TT |
8385 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8386 | ||
8387 | * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove | |
8388 | extra incref. | |
8389 | (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init): | |
8390 | Use gdbpy_ref. | |
8391 | ||
64081434 TT |
8392 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8393 | ||
8394 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
8395 | gdbpy_ref. | |
8396 | ||
59e9e831 TT |
8397 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8398 | ||
8399 | * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't | |
8400 | decref results of PyArg_ParseTupleAndKeywords. | |
8401 | ||
9de10f6d TT |
8402 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8403 | ||
8404 | * python/python.c (python_run_simple_file): Use | |
8405 | unique_xmalloc_ptr, gdbpy_ref. | |
8406 | ||
2bd5759d TT |
8407 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8408 | ||
8409 | * python/py-prettyprint.c (print_stack_unless_memory_error) | |
8410 | (print_string_repr, print_children): Use gdbpy_ref. | |
8411 | (dummy_python_frame): New class. | |
8412 | (dummy_python_frame::dummy_python_frame): Rename from | |
8413 | push_dummy_python_frame. | |
8414 | (py_restore_tstate): Remove. | |
8415 | ||
3b4e0e01 TT |
8416 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8417 | ||
8418 | * python/py-framefilter.c (py_print_frame): Use gdbpy_ref. | |
8419 | ||
17a22718 TT |
8420 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8421 | ||
8422 | * python/python.c (ensure_python_env, restore_python_env): | |
8423 | Remove. | |
8424 | * python/python-internal.h (ensure_python_env): Don't declare. | |
8425 | * varobj.h (varobj_ensure_python_env): Don't declare. | |
8426 | * varobj.c (varobj_ensure_python_env): Remove. | |
8427 | ||
68cdc557 TT |
8428 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8429 | ||
8430 | * varobj.c (varobj_value_get_print_value): Use | |
8431 | gdbpy_enter_varobj. | |
8432 | ||
1eba6383 TT |
8433 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8434 | ||
8435 | * python/py-prettyprint.c (print_string_repr, print_children): | |
8436 | Update. | |
8437 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type | |
8438 | of "encoding". | |
8439 | * varobj.c (varobj_value_get_print_value): Update. | |
8440 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
8441 | ||
bde7b3e3 TT |
8442 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8443 | ||
8444 | * varobj.c (varobj_get_display_hint) | |
8445 | (dynamic_varobj_has_child_method, install_new_value_visualizer) | |
8446 | (varobj_set_visualizer, free_variable): Use | |
8447 | gdbpy_enter_varobj. | |
8448 | ||
a7785f8c TT |
8449 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8450 | ||
8451 | * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref. | |
8452 | (do_finish_initialization): New function. Use gdbpy_ref. | |
8453 | (gdbpy_finish_initialization): Use gdbpy_enter. Call | |
8454 | do_finish_initialization. | |
8455 | ||
2865bfce TT |
8456 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8457 | ||
8458 | * python/py-param.c (get_set_value, get_show_value): Use | |
8459 | gdbpy_enter, gdbpy_ref. | |
8460 | ||
0e9dcc75 TT |
8461 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8462 | ||
8463 | * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref. | |
8464 | ||
12a5cedd TT |
8465 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8466 | ||
8467 | * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref. | |
8468 | ||
788f2586 TT |
8469 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8470 | ||
8471 | * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next): | |
8472 | Use gdbpy_enter_varobj. | |
8473 | ||
6cd67bea TT |
8474 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8475 | ||
8476 | * varobj.c (gdbpy_enter_varobj): New constructor. | |
8477 | * python/python-internal.h (gdbpy_enter_varobj): New class. | |
8478 | * python/py-varobj.c (py_varobj_get_iterator): Use | |
8479 | gdbpy_enter_varobj. | |
8480 | ||
14b122bf TT |
8481 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8482 | ||
8483 | * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use | |
8484 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
8485 | (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter. | |
8486 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, | |
8487 | unique_xmalloc_ptr. | |
8488 | (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter. | |
8489 | ||
bf1ca3b9 TT |
8490 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8491 | ||
8492 | * python/py-xmethods.c (invoke_match_method): Use | |
8493 | gdbpy_ref. | |
8494 | ||
572a5524 TT |
8495 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8496 | ||
8497 | * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use | |
8498 | gdbpy_enter, gdbpy_ref. | |
8499 | ||
396a78b6 TT |
8500 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8501 | ||
8502 | * python/python.c (python_interactive_command): Use gdbpy_enter. | |
8503 | ||
a88b13c7 TT |
8504 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8505 | ||
8506 | * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter, | |
8507 | gdbpy_ref. | |
8508 | ||
e9f0c363 TT |
8509 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8510 | ||
8511 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use | |
8512 | gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr. | |
8513 | ||
6349f452 TT |
8514 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8515 | ||
8516 | * utils.h (htab_deleter): New struct. | |
8517 | (htab_up): New typedef. | |
8518 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Use | |
8519 | gdbpy_enter, gdbpy_ref, htab_up. | |
8520 | ||
c0171de6 TT |
8521 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8522 | ||
8523 | * python/py-unwind.c (pending_frame_invalidate): Remove. | |
8524 | (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref. | |
8525 | ||
f18e226f TT |
8526 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8527 | ||
8528 | * python/py-xmethods.c (gdbpy_free_xmethod_worker_data) | |
8529 | (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter. | |
8530 | ||
c57af3f1 TT |
8531 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8532 | ||
8533 | * python/py-type.c (save_objfile_types): Use gdbpy_enter. | |
8534 | ||
60e600ec TT |
8535 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8536 | ||
8537 | * python/python.c (gdbpy_eval_from_control_command) | |
8538 | (gdbpy_source_script, gdbpy_run_events) | |
8539 | (gdbpy_source_objfile_script, gdbpy_execute_objfile_script) | |
8540 | (gdbpy_free_type_printers, gdbpy_finish_initialization): Use | |
8541 | gdbpy_enter. | |
8542 | ||
bf7da5b0 TT |
8543 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8544 | ||
8545 | * python/py-progspace.c (py_free_pspace): Use gdbpy_enter. | |
8546 | ||
2d38bced TT |
8547 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8548 | ||
8549 | * python/py-objfile.c (py_free_objfile): Use gdbpy_enter. | |
8550 | ||
07bc7329 TT |
8551 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8552 | ||
8553 | * python/py-inferior.c (python_on_normal_stop, python_on_resume) | |
8554 | (python_on_inferior_call_pre, python_on_inferior_call_post) | |
8555 | (python_on_memory_change, python_on_register_change) | |
8556 | (python_inferior_exit, python_new_objfile, add_thread_object) | |
8557 | (delete_thread_object, py_free_inferior): Use gdbpy_enter. | |
8558 | ||
6e7c365e TT |
8559 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8560 | ||
8561 | * python/py-finishbreakpoint.c (bpfinishpy_handle_stop) | |
8562 | (bpfinishpy_handle_exit): Use gdbpy_enter. | |
8563 | ||
6ba0cd40 TT |
8564 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8565 | ||
8566 | * python/py-cmd.c (cmdpy_destroyer) | |
8567 | (cmdpy_completer_handle_brkchars, cmdpy_completer): Use | |
8568 | gdbpy_enter. | |
8569 | ||
de2dc875 TT |
8570 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8571 | ||
8572 | * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use | |
8573 | gdbpy_enter. | |
8574 | (gdbpy_breakpoint_has_cond): Likewise. | |
8575 | ||
4ecee2c4 TT |
8576 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8577 | ||
8578 | * python/python.c (gdbpy_enter): New constructor. | |
8579 | (~gdbpy_enter): New destructor. | |
8580 | (restore_python_env, ensure_python_env): Rewrite. | |
8581 | * python/python-internal.h (gdbpy_enter): New class. | |
8582 | ||
37fce74f TT |
8583 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8584 | ||
8585 | * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref. | |
8586 | ||
53a0cca3 TT |
8587 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8588 | ||
8589 | * python/py-value.c (value_has_field, get_field_flag) | |
8590 | (get_field_type, valpy_getitem, convert_value_from_python): Use | |
8591 | gdbpy_ref. | |
8592 | ||
ff3724f5 TT |
8593 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8594 | ||
8595 | * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use | |
8596 | gdbpy_ref. | |
8597 | ||
0700aea5 TT |
8598 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8599 | ||
8600 | * python/py-prettyprint.c (search_pp_list) | |
8601 | (find_pretty_printer_from_objfiles) | |
8602 | (find_pretty_printer_from_progspace) | |
8603 | (find_pretty_printer_from_gdb, find_pretty_printer) | |
8604 | (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use | |
8605 | gdbpy_ref. | |
8606 | ||
1bb44c9f TT |
8607 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8608 | ||
8609 | * python/py-param.c (call_doc_function): Use gdbpy_ref. | |
8610 | ||
87ce03fd TT |
8611 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8612 | ||
8613 | * python/py-linetable.c (build_line_table_tuple_from_pcs) | |
8614 | (ltpy_get_all_source_lines): Use gdbpy_ref. | |
8615 | ||
ee0a3fb8 TT |
8616 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8617 | ||
8618 | * python/py-framefilter.c (extract_sym, extract_value) | |
8619 | (get_py_iter_from_func, bootstrap_python_frame_filters): Use | |
8620 | gdbpy_ref. | |
8621 | ||
bf2a52fa TT |
8622 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8623 | ||
8624 | * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref. | |
8625 | ||
f59fe7f8 TT |
8626 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8627 | ||
8628 | * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref. | |
8629 | ||
80bd970a TT |
8630 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8631 | ||
8632 | * python/py-function.c (convert_values_to_python, fnpy_init): Use | |
8633 | gdbpy_ref. | |
8634 | ||
d1b3de2e TT |
8635 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8636 | ||
8637 | * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref. | |
8638 | ||
3bb43384 TT |
8639 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8640 | ||
8641 | * python/py-type.c (convert_field, make_fielditem, typy_fields) | |
8642 | (typy_range): Use gdbpy_ref. | |
8643 | ||
abf5651e TT |
8644 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8645 | ||
8646 | * python/py-threadevent.c (create_thread_event_object): Use | |
8647 | gdbpy_ref. | |
8648 | * python/py-stopevent.c (create_stop_event_object): Simplify. | |
8649 | (emit_stop_event): Use gdbpy_ref. | |
8650 | * python/py-signalevent.c (create_signal_event_object): Use | |
8651 | gdbpy_ref. | |
8652 | * python/py-newobjfileevent.c (create_new_objfile_event_object) | |
8653 | (emit_new_objfile_event, create_clear_objfiles_event_object) | |
8654 | (emit_clear_objfiles_event): Use gdbpy_ref. | |
8655 | * python/py-infevents.c (create_inferior_call_event_object) | |
8656 | (create_register_changed_event_object) | |
8657 | (create_memory_changed_event_object, emit_inferior_call_event) | |
8658 | (emit_memory_changed_event, emit_register_changed_event): Use | |
8659 | gdbpy_ref. | |
8660 | * python/py-exitedevent.c (create_exited_event_object) | |
8661 | (emit_exited_event): Use gdbpy_ref. | |
8662 | * python/py-event.h (evpy_emit_event): Remove | |
8663 | CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation. | |
8664 | * python/py-event.c (evpy_emit_event): Use gdbpy_ref. | |
8665 | * python/py-continueevent.c (emit_continue_event): Use | |
8666 | gdbpy_ref. | |
8667 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
8668 | (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use | |
8669 | gdbpy_ref. | |
8670 | * python/py-bpevent.c (create_breakpoint_event_object): Use | |
8671 | gdbpy_ref. | |
8672 | ||
a68ff33e TT |
8673 | 2017-01-10 Tom Tromey <tom@tromey.com> |
8674 | ||
8675 | * python/py-ref.h: New file. | |
8676 | ||
7becfd03 SM |
8677 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
8678 | ||
8679 | * cli-out.c (cli_ui_out::do_redirect): Change return type to | |
8680 | void. | |
8681 | * cli-out.h (cli_ui_out::do_redirect): Likewise. | |
8682 | * mi/mi-out.c (mi_ui_out::do_redirect): Likewise. | |
8683 | * mi/mi-out.h (mi_ui_out::do_redirect): Likewise. | |
8684 | * ui-out.c (ui_out::redirect): Likewise. | |
8685 | * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise. | |
8686 | * cli/cli-logging.c (set_logging_redirect): Update call site of | |
8687 | ui_out::redirect. | |
8688 | (handle_redirections): Likewise. | |
8689 | * scm-ports.c (ioscm_with_output_to_port_worker): Likewise. | |
8690 | * top.c (execute_command_to_string): Likewise. | |
8691 | * utils.c (do_ui_out_redirect_pop): Likewise. | |
8692 | ||
df294654 SM |
8693 | 2017-01-10 Simon Marchi <simon.marchi@ericsson.com> |
8694 | ||
8695 | * stack.c (_initialize_stack): Update "frame" command help message. | |
8696 | ||
f5e6296e IB |
8697 | 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org> |
8698 | ||
8699 | * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE. | |
8700 | ||
0e2d6fa6 YQ |
8701 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8702 | ||
8703 | * x86-linux-nat.h: Include gdb_proc_service.h. | |
8704 | ||
44d6d3f9 YQ |
8705 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8706 | ||
8707 | * ser-base.h: Include serial.h. | |
8708 | ||
656731fe YQ |
8709 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8710 | ||
8711 | * ppc-linux-tdep.h: Include ppc-tdep.h. | |
8712 | ||
1ca8f924 YQ |
8713 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8714 | ||
8715 | * nat/amd64-linux-siginfo.h: Include signal.h. | |
8716 | ||
bc3008c4 YQ |
8717 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8718 | ||
8719 | * nat/aarch64-linux-hw-point.h: Include break-common.h. | |
8720 | ||
66c80d03 YQ |
8721 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8722 | ||
8723 | * mi/mi-parse.h: Include mi-cmds.h. | |
8724 | ||
051d2dda YQ |
8725 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8726 | ||
8727 | * inf-loop.c: Don't include "target.h". | |
8728 | * inf-loop.h: Include it here. | |
8729 | ||
8018d34f YQ |
8730 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8731 | ||
8732 | * dfp.h: Include "dboulest.h" and "expression.h". | |
8733 | ||
c0b8369c YQ |
8734 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8735 | ||
8736 | * ax-gdb.h: Include "ax.h". | |
8737 | ||
ad5cba2a YQ |
8738 | 2017-01-06 Yao Qi <yao.qi@linaro.org> |
8739 | ||
8740 | * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h | |
8741 | with nat/gdb_ptrace.h. | |
8742 | ||
1c33cd7f YQ |
8743 | 2017-01-05 Yao Qi <yao.qi@linaro.org> |
8744 | ||
8745 | * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to | |
8746 | new line. | |
8747 | (mips64_fbsd_sigframe_init): Likewise. | |
8748 | ||
c988ac1d JB |
8749 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8750 | ||
8751 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use | |
8752 | GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF. | |
8753 | ||
b268007c JB |
8754 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8755 | ||
8756 | * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c. | |
8757 | * NEWS: Mention new FreeBSD/mips native configuration. | |
8758 | * config/mips/fbsd.mh: New file. | |
8759 | * configure.host: Add mips*-*-freebsd*. | |
8760 | * mips-fbsd-nat.c: New file. | |
8761 | ||
387360da JB |
8762 | 2017-01-04 John Baldwin <jhb@FreeBSD.org> |
8763 | ||
8764 | * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o. | |
8765 | (ALLDEPFILES): Add mips-fbsd-tdep.c. | |
8766 | * NEWS: Mention new FreeBSD/mips target. | |
8767 | * configure.tgt: Add mips*-*-freebsd*. | |
8768 | * mips-fbsd-tdep.c: New file. | |
8769 | * mips-fbsd-tdep.h: New file. | |
8770 | ||
2aaaf250 YQ |
8771 | 2017-01-04 Yao Qi <yao.qi@linaro.org> |
8772 | ||
8773 | * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to), | |
8774 | use c->frame_id when the piece location is DWARF_VALUE_REGISTER. | |
8775 | ||
61baf725 JB |
8776 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
8777 | ||
6dbb839a | 8778 | Update copyright year range in all GDB files. |
61baf725 | 8779 | |
c113e7ff | 8780 | 2017-01-01 Joel Brobecker <brobecker@adacore.com> |
ce0db137 | 8781 | |
c113e7ff | 8782 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016. |
ce0db137 | 8783 | |
c113e7ff | 8784 | For older changes see ChangeLog-2016. |
c906108c SS |
8785 | \f |
8786 | Local Variables: | |
8787 | mode: change-log | |
8788 | left-margin: 8 | |
8789 | fill-column: 74 | |
8790 | version-control: never | |
57da7796 | 8791 | coding: utf-8 |
c906108c | 8792 | End: |