Commit | Line | Data |
---|---|---|
7cbe16e9 SR |
1 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
2 | ||
3 | * gdb/symtab.c (find_pc_sect_line): fixed indentation. | |
4 | ||
4ee89e90 SR |
5 | 2018-03-20 Stephen Roberts <stephen.roberts@arm.com> |
6 | ||
7 | * gdb/symtab.c (find_pc_sect_line): now uses binary search. | |
8 | ||
92630041 TT |
9 | 2018-03-19 Tom Tromey <tom@tromey.com> |
10 | ||
11 | * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain | |
12 | "IDENT" production. | |
13 | ||
76727919 TT |
14 | 2018-03-19 Pedro Alves <palves@redhat.com> |
15 | Tom Tromey <tom@tromey.com> | |
16 | ||
17 | * unittests/observable-selftests.c: New file. | |
18 | * common/observable.h: New file. | |
19 | * observable.h: New file. | |
20 | * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, | |
21 | arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, | |
22 | breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, | |
23 | corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, | |
24 | extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, | |
25 | infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, | |
26 | linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, | |
27 | mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, | |
28 | ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, | |
29 | python/py-breakpoint.c, python/py-finishbreakpoint.c, | |
30 | python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, | |
31 | record-btrace.c, record-full.c, record.c, regcache.c, remote.c, | |
32 | riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, | |
33 | spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, | |
34 | symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, | |
35 | tui/tui-interp.c, valops.c: Update all users. | |
36 | * tui/tui-hooks.c (tui_bp_created_observer) | |
37 | (tui_bp_deleted_observer, tui_bp_modified_observer) | |
38 | (tui_inferior_exit_observer, tui_before_prompt_observer) | |
39 | (tui_normal_stop_observer, tui_register_changed_observer): | |
40 | Remove. | |
41 | (tui_observers_token): New global. | |
42 | (attach_or_detach, tui_attach_detach_observers): New functions. | |
43 | (tui_install_hooks, tui_remove_hooks): Use | |
44 | tui_attach_detach_observers. | |
45 | * record-btrace.c (record_btrace_thread_observer): Remove. | |
46 | (record_btrace_thread_observer_token): New global. | |
47 | * observer.sh: Remove. | |
48 | * observer.c: Rename to observable.c. | |
49 | * observable.c (namespace gdb_observers): Define new objects. | |
50 | (observer_debug): Move into gdb_observers namespace. | |
51 | (struct observer, struct observer_list, xalloc_observer_list_node) | |
52 | (xfree_observer_list_node, generic_observer_attach) | |
53 | (generic_observer_detach, generic_observer_notify): Remove. | |
54 | (_initialize_observer): Update. | |
55 | Don't include observer.inc. | |
56 | * Makefile.in (generated_files): Remove observer.h, observer.inc. | |
57 | (clean mostlyclean): Likewise. | |
58 | (observer.h, observer.inc): Remove targets. | |
59 | (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. | |
60 | (COMMON_SFILES): Use observable.c, not observer.c. | |
61 | * .gitignore: Remove observer.h. | |
62 | ||
1cb1f3da TT |
63 | 2018-03-18 Tom Tromey <tom@tromey.com> |
64 | ||
65 | * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use | |
66 | gdb::def_vector. | |
67 | (bfd_lookup_symbol_from_dyn_symtab): Likewise. | |
68 | ||
a06ab151 TT |
69 | 2018-03-17 Tom Tromey <tom@tromey.com> |
70 | ||
71 | * auto-load.c (auto_load_objfile_script_1): Use std::string. | |
72 | ||
770623f7 TT |
73 | 2018-03-17 Tom Tromey <tom@tromey.com> |
74 | ||
75 | * target.c (class scoped_target_fd): New. | |
76 | (target_fileio_close_cleanup): Remove. | |
77 | (target_fileio_read_alloc_1): Use scoped_target_fd. | |
78 | ||
39be3c7e SM |
79 | 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> |
80 | ||
81 | * silent-rules.mk: New. | |
82 | * Makefile.in: Include silent-rules.mk | |
83 | (srcdir, VPATH, top_srcdir): Move up. | |
84 | (COMPILE): Add ECHO_CXX. | |
85 | (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. | |
86 | (init.c): Add ECHO_INIT_C. | |
87 | (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. | |
88 | (version.c): Add ECHO_GEN. | |
89 | (printcmd.o): Add ECHO_CXX. | |
90 | (target-float.o): Add ECHO_CXX. | |
91 | (ada-exp.o): Add ECHO_CXX. | |
92 | (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. | |
93 | (insight$(EXEEXT)): Add ECHO_CXXLD. | |
94 | * gnulib/configure.ac: Add AM_SILENT_RULES. | |
95 | * gnulib/aclocal.m4: Re-generate. | |
96 | * gnulib/configure: Re-generate. | |
97 | * gnulib/import/Makefile.in: Re-generate. | |
98 | ||
37e136b1 TT |
99 | 2018-03-16 Tom Tromey <tom@tromey.com> |
100 | ||
101 | * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". | |
102 | * utils.h (make_cleanup_free_section_addr_info): Don't declare. | |
103 | * utils.c (do_free_section_addr_info) | |
104 | (make_cleanup_free_section_addr_info): Remove. | |
105 | * symfile.h (struct other_sections): Add constructor. | |
106 | (struct section_addr_info): Remove. | |
107 | (section_addr_info): New typedef. | |
108 | (struct sym_fns) <sym_offsets>: Change type of parameter. | |
109 | (build_section_addr_info_from_objfile) | |
110 | (relative_addr_info_to_section_offsets, addr_info_make_relative) | |
111 | (default_symfile_offsets, symbol_file_add) | |
112 | (symbol_file_add_from_bfd) | |
113 | (build_section_addr_info_from_section_table): Update. | |
114 | (alloc_section_addr_info, free_section_addr_info): Don't declare. | |
115 | * symfile.c (alloc_section_addr_info): Remove. | |
116 | (build_section_addr_info_from_section_table): Change return type. | |
117 | Update. | |
118 | (build_section_addr_info_from_bfd) | |
119 | (build_section_addr_info_from_objfile): Likewise. | |
120 | (free_section_addr_info): Remove. | |
121 | (relative_addr_info_to_section_offsets): Change type of "addrs". | |
122 | (addrs_section_compar): Now a std::sort comparator. | |
123 | (addrs_section_sort): Change return type. | |
124 | (addr_info_make_relative): Change type of "addrs". Update. | |
125 | (default_symfile_offsets, syms_from_objfile_1) | |
126 | (syms_from_objfile, symbol_file_add_with_addrs): Likewise. | |
127 | (symbol_file_add_separate): Update. | |
128 | (symbol_file_add): Change type of "addrs". Update. | |
129 | (add_symbol_file_command): Update. Remove cleanups. | |
130 | * symfile-mem.c (symbol_file_add_from_memory): Update. Remove | |
131 | cleanups. | |
132 | * symfile-debug.c (debug_sym_offsets): Change type of "info". | |
133 | * solib.c (solib_read_symbols): Update. | |
134 | * objfiles.c (objfile_relocate): Update. Remove cleanups. | |
135 | * machoread.c (macho_symfile_offsets): Update. | |
136 | * jit.c (jit_bfd_try_read_symtab): Update. | |
137 | ||
03afa6ef SM |
138 | 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> |
139 | ||
140 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
141 | unittests/utils-selftests.c. | |
142 | * unittests/utils-selftests.c: New file. | |
143 | ||
3ae9ce5d TT |
144 | 2018-03-14 Tom Tromey <tom@tromey.com> |
145 | ||
146 | PR cli/14977: | |
147 | * printcmd.c (printf_c_string, printf_wide_c_string): Special case | |
148 | for NULL. | |
149 | ||
b8c2339b TT |
150 | 2018-03-14 Tom Tromey <tom@tromey.com> |
151 | ||
152 | PR cli/19918: | |
153 | * printcmd.c (printf_pointer): Allow "-" in format. | |
154 | ||
80ae639d TT |
155 | 2018-03-14 Tom Tromey <tom@tromey.com> |
156 | ||
157 | * printcmd.c (_initialize_printcmd): Add usage to printf. | |
158 | ||
0d671d99 YQ |
159 | 2018-03-14 Yao Qi <qiyao@sourceware.org> |
160 | ||
161 | * MAINTAINERS: Update my email address. | |
162 | ||
b577b6af TT |
163 | 2018-03-13 Tom Tromey <tom@tromey.com> |
164 | ||
165 | * machoread.c (macho_check_dsym): Change filenamep to a | |
166 | std::string*. | |
167 | (macho_symfile_read): Update. | |
168 | * symfile.c (load_command): Use std::string. | |
169 | ||
89a3b63e AB |
170 | 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> |
171 | ||
172 | * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization | |
173 | to error message string. | |
174 | (riscv_register_name): Use xsnprintf instead of sprintf. | |
175 | (riscv_insn::fetch_instruction): Use gdb_assert instead of | |
176 | internal_error. | |
177 | (riscv_print_arg_location): Use gdb_assert_not_reached instead of | |
178 | error. | |
179 | (riscv_push_dummy_call): Likewise. | |
180 | ||
984c7238 TT |
181 | 2018-03-12 Tom Tromey <tom@tromey.com> |
182 | ||
183 | * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): | |
184 | Use gdb::byte_vector. | |
185 | * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. | |
186 | ||
933522d1 YQ |
187 | 2018-03-12 Yao Qi <yao.qi@linaro.org> |
188 | ||
189 | * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change | |
190 | parameter type to readable_regcache. | |
191 | * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update | |
192 | the declaration. | |
193 | ||
be2daae6 TT |
194 | 2018-03-11 Tom Tromey <tom@tromey.com> |
195 | ||
196 | * dwarf2read.c (struct nextfield): Add initializers. | |
197 | (struct nextfnfield): Remove. | |
198 | (struct fnfieldlist): Add initializers. Remove "length" and | |
199 | "head", use std::vector. | |
200 | (struct decl_field_list): Remove. | |
201 | (struct field_info): Add initializers. | |
202 | <fields, baseclasses>: Now std::vector. | |
203 | <nbaseclasses, nfnfields, typedef_field_list_count, | |
204 | nested_types_list_count>: Remove. | |
205 | (dwarf2_add_field, dwarf2_add_type_defn) | |
206 | (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) | |
207 | (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) | |
208 | (process_structure_scope): Update. | |
209 | ||
484cf504 TT |
210 | 2018-03-11 Tom Tromey <tom@tromey.com> |
211 | ||
212 | * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable | |
213 | for use by std::sort. | |
214 | (build_type_psymtabs_1): Use std::vector. | |
215 | ||
9bd8e0b0 EZ |
216 | 2018-03-09 Eli Zaretskii <eliz@gnu.org> |
217 | ||
218 | * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, | |
219 | and LIBMPFR in the printed configuration. | |
220 | ||
5dc1a704 TT |
221 | 2018-03-08 Tom Tromey <tom@tromey.com> |
222 | ||
223 | * source.c (get_filename_and_charpos): Use scoped_fd. | |
224 | * nto-procfs.c (procfs_open_1): Use scoped_fd. | |
225 | (procfs_pidlist): Likewise. | |
226 | * procfs.c (proc_get_LDT_entry): Use scoped_fd. | |
227 | (iterate_over_mappings): Likewise. | |
228 | ||
fdf07f3a TT |
229 | 2018-03-08 Tom Tromey <tom@tromey.com> |
230 | ||
231 | * infcall.c (struct call_return_meta_info) | |
232 | <stack_temporaries_enabled>: Remove. | |
233 | (get_call_return_value, call_function_by_hand_dummy): Update. | |
234 | * thread.c (disable_thread_stack_temporaries): Remove. | |
235 | (enable_thread_stack_temporaries): Remove. | |
236 | (thread_stack_temporaries_enabled_p): Return bool. | |
237 | (push_thread_stack_temporary, value_in_thread_stack_temporaries) | |
238 | (get_last_thread_stack_temporary): Update. | |
239 | * eval.c (evaluate_subexp): Update. | |
240 | * gdbthread.h (class enable_thread_stack_temporaries): Now a | |
241 | class, not a function. | |
242 | (value_ptr, value_vec): Remove typedefs. | |
243 | (class thread_info) <stack_temporaries_enabled>: Now bool. | |
244 | <stack_temporaries>: Now a std::vector. | |
245 | (thread_stack_temporaries_enabled_p) | |
246 | (value_in_thread_stack_temporaries): Return bool. | |
247 | ||
567a3e54 SM |
248 | 2018-03-08 Simon Marchi <simon.marchi@ericsson.com> |
249 | ||
250 | * remote.c (putpkt_binary): Fix omitted bytes reporting. | |
251 | (getpkt_or_notif_sane_1): Likewise. | |
252 | ||
00b40057 SM |
253 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
254 | ||
255 | * build-id.c (build_id_to_debug_bfd): Use std::string. | |
256 | ||
a8dbfd58 SM |
257 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
258 | ||
259 | * build-id.c (find_separate_debug_file_by_buildid): Return | |
260 | std::string. | |
261 | * build-id.h (find_separate_debug_file_by_buildid): Return | |
262 | std::string. | |
263 | * coffread.c (coff_symfile_read): Adjust to std::string. | |
264 | * elfread.c (elf_symfile_read): Adjust to std::string. | |
265 | * symfile.c (separate_debug_file_exists): Change parameter to | |
266 | std::string. | |
267 | (find_separate_debug_file): Return std::string. | |
268 | (find_separate_debug_file_by_debuglink): Return std::string. | |
269 | * symfile.h (find_separate_debug_file_by_debuglink): Return | |
270 | std::string. | |
271 | ||
e6a58aa8 SM |
272 | 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> |
273 | ||
274 | * common/xml-utils.c (xml_escape_text): Move code to... | |
275 | (xml_escape_text_append): ... this new function. | |
276 | * common/xml-utils.h (xml_escape_text_append): New declaration. | |
277 | * unittests/xml-utils-selftests.c (test_xml_escape_text_append): | |
278 | New function. | |
279 | (_initialize_xml_utils): register test_xml_escape_text_append as | |
280 | a selftest. | |
281 | ||
4ef0bef6 AH |
282 | 2018-03-07 Alan Hayward <alan.hayward@arm.com> |
283 | ||
284 | * defs.h: Remove MAX_REGISTER_SIZE. | |
285 | * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE | |
286 | asserts. | |
287 | * python/py-unwind.c (pyuw_sniffer): Likewise. | |
288 | ||
e0d3522b TT |
289 | 2018-03-07 Tom Tromey <tom@tromey.com> |
290 | ||
291 | * linux-tdep.c (linux_info_proc): Update. | |
292 | * target.h (struct target_ops) <to_fileio_readlink>: Return | |
293 | optional<string>. | |
294 | (target_fileio_readlink): Return optional<string>. | |
295 | * remote.c (remote_hostio_readlink): Return optional<string>. | |
296 | * inf-child.c (inf_child_fileio_readlink): Return | |
297 | optional<string>. | |
298 | * target.c (target_fileio_readlink): Return optional<string>. | |
299 | ||
ea005f31 AB |
300 | 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> |
301 | ||
302 | * regcache.c (cooked_read_test): Add riscv to the list of | |
303 | architectures that have a save_reggroup. | |
304 | ||
e95a97d4 AA |
305 | 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> |
306 | ||
307 | * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given | |
308 | value is not a dynamic class object. | |
309 | ||
d8344f3d TT |
310 | 2018-03-06 Tom Tromey <tom@tromey.com> |
311 | ||
312 | * rust-exp.y: Formatting fixes. | |
313 | ||
9add17f2 AB |
314 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
315 | ||
316 | * riscv-tdep.c (riscv_register_name): Remove target description | |
317 | support. | |
318 | (riscv_gdbarch_init): Remove target description check. | |
319 | ||
c9486dfe AB |
320 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
321 | ||
322 | * riscv-tdep.c: Remove 'Contributed by ...' lines from header | |
323 | comment. | |
324 | * riscv-tdep.h: Likewise. | |
325 | ||
d74aff3d AB |
326 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
327 | ||
328 | * riscv-tdep.c (riscv_pseudo_register_read): Delete. | |
329 | (riscv_pseudo_register_write): Delete. | |
330 | (riscv_gdbarch_init): Remove all use of pseudo registers. | |
331 | ||
7ea78b59 SM |
332 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
333 | ||
334 | * record-btrace.c (btrace_print_lines): Replace cleanup | |
335 | parameter with RAII equivalents. | |
336 | (btrace_insn_history): Replace cleanup with RAII equivalents. | |
337 | * ui-out.h (make_cleanup_ui_out_list_begin_end, | |
338 | make_cleanup_ui_out_tuple_begin_end): Remove. | |
339 | * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, | |
340 | make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, | |
341 | make_cleanup_ui_out_list_begin_end): Remove. | |
342 | ||
53127008 SM |
343 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
344 | ||
345 | * record-btrace.c (record_btrace_maybe_mark_async_event): Change | |
346 | parameter types to std::vector. Use bool. | |
347 | (record_btrace_wait): Replace VEC(tp_t) with | |
348 | std::vector<thread_info *>. | |
349 | * common/gdb_vecs.h (unordered_remove, ordered_remove): New. | |
350 | ||
228f1508 SM |
351 | 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
352 | ||
353 | * record-btrace.c (record_btrace_disable_callback): Remove. | |
354 | (struct scoped_btrace_disable): New. | |
355 | (record_btrace_open): Use scoped_btrace_disable. | |
356 | ||
b2970c23 AB |
357 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
358 | ||
359 | * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for | |
360 | reading values from registers. | |
361 | ||
fb294655 AB |
362 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
363 | ||
364 | * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz | |
365 | where appropriate. | |
366 | ||
cab5bb9d AB |
367 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
368 | ||
369 | * riscv-tdep.c (riscv_print_arg_location): Add header comment, | |
370 | change parameter type. Use GDB's print functions, and use | |
371 | core_addr_to_string where appropriate. | |
372 | (riscv_push_dummy_call): Use core_addr_to_string where | |
373 | appropriate, update call to riscv_print_arg_location, and reindent | |
374 | a few lines. | |
375 | (riscv_return_value): Update call to riscv_print_arg_location. | |
376 | ||
dbbb1059 AB |
377 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
378 | Tim Newsome <tim@sifive.com> | |
379 | Albert Ou <a0u@eecs.berkeley.edu> | |
380 | Darius Rad <darius@bluespec.com> | |
381 | ||
382 | * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o | |
383 | (HFILES_NO_SRCDIR): Add riscv-tdep.h. | |
384 | (ALLDEPFILES): Add riscv-tdep.c | |
385 | * configure.tgt: Add riscv support. | |
386 | * riscv-tdep.c: New file. | |
387 | * riscv-tdep.h: New file. | |
388 | * NEWS: Mention new target. | |
389 | * MAINTAINERS: Add entry for riscv. | |
390 | ||
5dc43913 AB |
391 | 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
392 | ||
393 | * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized | |
394 | fields within aggregates. | |
395 | ||
3dea1ef7 SM |
396 | 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> |
397 | ||
398 | * record-btrace.c (btrace_print_lines): Change type of flags to | |
399 | gdb_disassembly_flags. | |
400 | ||
7efba073 JB |
401 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
402 | ||
403 | * fbsd-nat.c: Include "inf-ptrace.h". | |
404 | (USE_SIGTRAP_SIGINFO): Conditionally define. | |
405 | [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. | |
406 | (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". | |
407 | [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New | |
408 | function. | |
409 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): | |
410 | Likewise. | |
411 | [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): | |
412 | Likewise. | |
413 | (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set | |
414 | "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", | |
415 | "supports_stopped_by_hw_breakpoint" target methods. | |
416 | ||
386a8676 JB |
417 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
418 | ||
419 | * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". | |
420 | * fbsd-nat.c (debug_fbsd_nat): New variable. | |
421 | (show_fbsd_nat_debug): New function. | |
422 | (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. | |
423 | (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. | |
424 | ||
12279366 JB |
425 | 2018-03-04 John Baldwin <jhb@FreeBSD.org> |
426 | ||
427 | * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. | |
428 | * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New | |
429 | prototype. | |
430 | * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. | |
431 | (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target | |
432 | method. | |
433 | ||
54693cf5 SM |
434 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
435 | ||
436 | * common/gdb_vecs.c (free_char_ptr_vec): Remove. | |
437 | * common/gdb_vecs.h (free_char_ptr_vec): Remove. | |
438 | ||
ccb2231c SM |
439 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
440 | ||
441 | * charset.c (struct charset_vector): New. | |
442 | (charsets): Change type to charset_vector. | |
443 | (find_charset_names): Adjust. | |
444 | (add_one): Adjust. | |
445 | (_initialize_charset): Adjust. | |
446 | ||
6fb16ce6 SM |
447 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
448 | ||
449 | * progspace.h (struct program_space) <deleted_solibs>: Change | |
450 | type to std::vector<std::string>. | |
451 | * progspace.c (clear_program_space_solib_cache): Adjust. | |
452 | * breakpoint.c (print_solib_event): Adjust. | |
453 | (check_status_catch_solib): Adjust. | |
454 | * solib.c (update_solib_list): Adjust. | |
455 | * ui-out.h (class ui_out) <field_string>: New overload. | |
456 | * ui-out.c (ui_out::field_string): New overload. | |
457 | ||
564b1e3f SM |
458 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
459 | ||
460 | * progspace.h (struct program_space): Add constructor and | |
461 | destructor, initialize fields. | |
462 | (add_program_space): Remove. | |
463 | * progspace.c (add_program_space): Rename to... | |
464 | (program_space::program_space): ... this. | |
465 | (release_program_space): Rename to... | |
466 | (program_space::~program_space): ... this. | |
467 | (delete_program_space): Use delete to delete program_space. | |
468 | (initialize_progspace): Use new to allocate program_space. | |
469 | * inferior.c (add_inferior_with_spaces): Likewise. | |
470 | (clone_inferior_command): Likewise. | |
471 | * infrun.c (follow_fork_inferior): Likewise. | |
472 | (handle_vfork_child_exec_or_exit): Likewise. | |
473 | ||
e80aaf61 SM |
474 | 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
475 | ||
476 | * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. | |
477 | (delim_string_to_char_ptr_vec): Return std::vector of | |
478 | gdb::unique_xmalloc_ptr. | |
479 | (dirnames_to_char_ptr_vec_append): Take std::vector of | |
480 | gdb::unique_xmalloc_ptr. | |
481 | (dirnames_to_char_ptr_vec): Return std::vector of | |
482 | gdb::unique_xmalloc_ptr. | |
483 | * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): | |
484 | Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. | |
485 | (delim_string_to_char_ptr_vec): Return an std::vector of | |
486 | gdb::unique_xmalloc_ptr, adjust the code. | |
487 | (dirnames_to_char_ptr_vec_append): Take an std::vector of | |
488 | gdb::unique_xmalloc_ptr, adjust the code. | |
489 | (dirnames_to_char_ptr_vec): Return an std::vector of | |
490 | gdb::unique_xmalloc_ptr, adjust the code. | |
491 | * auto-load.c (auto_load_safe_path_vec): Change type to | |
492 | std::vector of gdb::unique_xmalloc_ptr. | |
493 | (auto_load_expand_dir_vars): Return an std::vector of | |
494 | gdb::unique_xmalloc_ptr, adjust the code. | |
495 | (auto_load_safe_path_vec_update): Adjust. | |
496 | (filename_is_in_auto_load_safe_path_vec): Adjust. | |
497 | (auto_load_objfile_script_1): Adjust. | |
498 | * build-id.c (build_id_to_debug_bfd): Adjust. | |
499 | * linux-thread-db.c (thread_db_load_search): Adjust. | |
500 | * source.c (add_path): Adjust. | |
501 | (openp): Adjust. | |
502 | * symfile.c (find_separate_debug_file): Adjust. | |
503 | * utils.c (do_free_char_ptr_vec): Remove. | |
504 | (make_cleanup_free_char_ptr_vec): Remove. | |
505 | ||
ab818ade SDJ |
506 | 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> |
507 | ||
508 | PR gdb/22907 | |
509 | * common/pathstuff.c: Conditionally include "<windows.h>". | |
510 | ||
e1e6f073 GS |
511 | 2018-03-01 Georg Sauthoff <mail@georg.so> |
512 | ||
513 | PR gdb/22888 | |
514 | * gcore.in: Quote variables and switch interpreter to bash. | |
515 | ||
c7b15a66 TT |
516 | 2018-03-01 Tom Tromey <tom@tromey.com> |
517 | ||
518 | * dwarf2read.c (alloc_discriminant_info): Fix default_index | |
519 | assertion. Add assertion for discriminant_index. | |
520 | (quirk_rust_enum): Use correct base type name in univariant case. | |
521 | ||
0cb7c7b0 SM |
522 | 2018-03-01 Simon Marchi <simon.marchi@ericsson.com> |
523 | ||
524 | * record.c (get_call_history_modifiers): Return a | |
525 | record_print_flags. | |
526 | (cmd_record_call_history): Adjust. | |
527 | * record-btrace.c (record_btrace_call_history): Adjust. | |
528 | (record_btrace_call_history_range): Adjust. | |
529 | (record_btrace_call_history_from): Adjust. | |
530 | * target-debug.h (target_debug_print_record_print_flags): New. | |
531 | * target-delegates.c: Re-generate. | |
532 | * target.c (target_call_history): Change flags type. | |
533 | (target_call_history_from): Likewise. | |
534 | (target_call_history_range): Likewise. | |
535 | * target.h (struct target_ops) <target_call_history>: Likewise. | |
536 | (target_call_history_from): Likewise. | |
537 | (target_call_history_range): Likewise. | |
538 | ||
25e3c82c SDJ |
539 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
540 | Simon Marchi <simon.marchi@polymtl.ca> | |
541 | ||
542 | * common/common-utils.c: Include "sys/stat.h". | |
543 | (is_regular_file): Move here from "source.c"; change return | |
544 | type to "bool". | |
545 | * common/common-utils.h (is_regular_file): New prototype. | |
546 | * common/pathstuff.c (contains_dir_separator): New function. | |
547 | * common/pathstuff.h (contains_dir_separator): New prototype. | |
548 | * source.c: Don't include "sys/stat.h". | |
549 | (is_regular_file): Move to "common/common-utils.c". | |
550 | ||
b4987c95 SDJ |
551 | 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> |
552 | ||
553 | * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". | |
554 | (HFILES_NO_SRCDIR): Add "common/pathstuff.h". | |
555 | * auto-load.c: Include "common/pathstuff.h". | |
556 | * common/common-def.h (current_directory): Move here. | |
557 | * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New | |
558 | function. | |
559 | * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New | |
560 | prototype. | |
561 | * common/pathstuff.c: New file. | |
562 | * common/pathstuff.h: New file. | |
563 | * compile/compile.c: Include "common/pathstuff.h". | |
564 | * defs.h (current_directory): Move to "common/common-defs.h". | |
565 | * dwarf2read.c: Include "common/pathstuff.h". | |
566 | * exec.c: Likewise. | |
567 | * guile/scm-safe-call.c: Likewise. | |
568 | * linux-thread-db.c: Likewise. | |
569 | * main.c: Likewise. | |
570 | * nto-tdep.c: Likewise. | |
571 | * objfiles.c: Likewise. | |
572 | * source.c: Likewise. | |
573 | * symtab.c: Likewise. | |
574 | * utils.c: Include "common/pathstuff.h". | |
575 | (gdb_realpath): Move to "common/pathstuff.c". | |
576 | (gdb_realpath_keepfile): Likewise. | |
577 | (gdb_abspath): Likewise. | |
578 | * utils.h (gdb_realpath): Move to "common/pathstuff.h". | |
579 | (gdb_realpath_keepfile): Likewise. | |
580 | (gdb_abspath): Likewise. | |
581 | ||
f169cfdc JB |
582 | 2018-02-28 John Baldwin <jhb@FreeBSD.org> |
583 | ||
584 | * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a | |
585 | wildcard process pid for super_resume for kernels with a | |
586 | specific bug. | |
587 | ||
e05cac70 PM |
588 | 2018-02-27 Phil Muldoon <pmuldoon@redhat.com> |
589 | ||
590 | * compile/compile.c (get_args): Add additional comments | |
591 | explaining function. | |
592 | ||
55089490 TT |
593 | 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> |
594 | Tom Tromey <tom@tromey.com> | |
595 | ||
596 | * target.h (memory_write_request_s): Remove typedef. Don't define | |
597 | VEC. | |
598 | (target_write_memory_blocks): Change argument to std::vector. | |
599 | (struct memory_write_request): Add constructor. | |
600 | * target-memory.c (compare_block_starting_address): Return bool. | |
601 | Change argument types. | |
602 | (claim_memory): Change arguments to use std::vector. | |
603 | (split_regular_and_flash_blocks, blocks_to_erase) | |
604 | (compute_garbled_blocks): Likewise. | |
605 | (cleanup_request_data, cleanup_write_requests_vector): Remove. | |
606 | (target_write_memory_blocks): Change argument to std::vector. | |
607 | * symfile.c (struct load_section_data): Add constructor and | |
608 | destructor. Use std::vector for "requests". | |
609 | (struct load_progress_data): Add initializers. | |
610 | (load_section_callback): Update. Use "new". | |
611 | (clear_memory_write_data): Remove. | |
612 | (generic_load): Update. | |
613 | ||
0c305b61 AH |
614 | 2018-02-27 Alan Hayward <alan.hayward@arm.com> |
615 | ||
616 | * arch/aarch64.h: Use common/tdesc.h. | |
617 | ||
c5196c92 MR |
618 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
619 | ||
620 | * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD | |
621 | architecture with a 64-bit ABI. | |
622 | ||
37c33887 MR |
623 | 2018-02-26 Maciej W. Rozycki <macro@mips.com> |
624 | ||
625 | * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination | |
626 | ahead of target description loading. | |
627 | ||
d4dd3282 TT |
628 | 2018-02-26 Tom Tromey <tom@tromey.com> |
629 | ||
630 | * stack.c (backtrace_command_1): Update. | |
631 | * python/python-internal.h (gdbpy_apply_frame_filter): Change type | |
632 | of "flags". | |
633 | * python/py-framefilter.c (py_print_frame) | |
634 | (gdbpy_apply_frame_filter): Change type of "flags". | |
635 | * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type | |
636 | of "flags". | |
637 | (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) | |
638 | (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. | |
639 | * extension.h (enum frame_filter_flag): Rename from | |
640 | frame_filter_flags. | |
641 | (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. | |
642 | (apply_ext_lang_frame_filter): Change type of "flags". | |
643 | * extension.c (apply_ext_lang_frame_filter): Change type of | |
644 | "flags". | |
645 | * extension-priv.h (struct extension_language_ops) | |
646 | <apply_frame_filter>: Change type of "flags". | |
647 | ||
6893c19a TT |
648 | 2018-02-26 Tom Tromey <tom@tromey.com> |
649 | ||
650 | PR python/16497: | |
651 | * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix | |
652 | off-by-one in py_end computation. | |
653 | * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle | |
654 | PRINT_MORE_FRAMES. | |
655 | * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New | |
656 | constant. | |
657 | ||
2ddeaf8a TT |
658 | 2018-02-26 Tom Tromey <tom@tromey.com> |
659 | ||
660 | * dwarf2read.c (struct variant_field): New. | |
661 | (struct nextfield) <variant>: New field. | |
662 | (dwarf2_add_field): Handle DW_TAG_variant_part. | |
663 | (dwarf2_attach_fields_to_type): Attach a discriminant_info to a | |
664 | discriminated union. | |
665 | (read_structure_type): Handle DW_TAG_variant_part. | |
666 | (handle_struct_member_die): New function, extracted from | |
667 | process_structure_scope. Handle DW_TAG_variant. | |
668 | (process_structure_scope): Handle discriminated unions. Call | |
669 | handle_struct_member_die. | |
670 | ||
c9317f21 TT |
671 | 2018-02-26 Tom Tromey <tom@tromey.com> |
672 | ||
673 | * rust-lang.h (rust_last_path_segment): Declare. | |
674 | * rust-lang.c (rust_last_path_segment): Now public. Change | |
675 | contract. | |
676 | (struct disr_info): Remove. | |
677 | (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) | |
678 | (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) | |
679 | (rust_get_disr_info, rust_tuple_variant_type_p): Remove. | |
680 | (rust_enum_p, rust_enum_variant): New function. | |
681 | (rust_underscore_fields): Remove "offset" parameter. | |
682 | (rust_print_enum): New function. | |
683 | (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. | |
684 | <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. | |
685 | (rust_print_struct_def): Add "for_rust_enum" parameter. Handle | |
686 | enums. | |
687 | (rust_internal_print_type): New function, from rust_print_type. | |
688 | Remove enum code. | |
689 | (rust_print_type): Call rust_internal_print_type. | |
690 | (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: | |
691 | Update enum handling. | |
692 | * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. | |
693 | (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) | |
694 | (rust_union_quirks): New functions. | |
695 | (process_full_comp_unit, process_full_type_unit): Call | |
696 | rust_union_quirks. | |
697 | (process_structure_scope): Update rust_unions if necessary. | |
698 | ||
7c22600a TT |
699 | 2018-02-26 Tom Tromey <tom@tromey.com> |
700 | ||
701 | * value.h (value_union_variant): Declare. | |
702 | * valops.c (value_union_variant): New function. | |
703 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. | |
704 | (struct discriminant_info): New. | |
705 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New | |
706 | enumerator. | |
707 | (struct main_type) <flag_discriminated_union>: New field. | |
708 | ||
15ce8941 TT |
709 | 2018-02-26 Tom Tromey <tom@tromey.com> |
710 | ||
711 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
712 | unittests/unpack-selftests.c. | |
713 | * unittests/unpack-selftests.c: New file. | |
714 | * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. | |
715 | ||
48fbe735 YQ |
716 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
717 | ||
718 | * dwarf2read.c (struct partial_die_info) <read>: New method. | |
719 | (read_partial_die): Remove the declaration. | |
720 | (load_partial_dies): Update. | |
721 | (partial_die_info::partial_die_info): | |
722 | (read_partial_die): Change it to partial_die_info::read. | |
723 | ||
52356b79 YQ |
724 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
725 | ||
726 | * dwarf2read.c (struct partial_die_info) <fixup>: New method. | |
727 | (fixup_partial_die): Remove declaration. | |
728 | (scan_partial_symbols): Update. | |
729 | (partial_die_parent_scope): Likewise. | |
730 | (partial_die_full_name): Likewise. | |
731 | (fixup_partial_die): Change it to partial_die_info::fixup. | |
732 | ||
35cc7ed7 YQ |
733 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
734 | ||
735 | * dwarf2read.c (read_partial_die): Update the declaration. | |
736 | (load_partial_dies): Caller update. | |
737 | (read_partial_die): Remove one argument abbrev_len. | |
738 | ||
6f06d47b YQ |
739 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
740 | ||
741 | * dwarf2read.c (struct partial_die_info): Add ctor, delete | |
742 | assignment operator. | |
743 | (load_partial_dies): Use ctor and copy ctor. | |
744 | (read_partial_die): Update. | |
745 | (dwarf2_cu::find_partial_die): Use ctor. | |
746 | ||
d590ff25 YQ |
747 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
748 | ||
749 | * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. | |
750 | (find_partial_die_in_comp_unit): Change it to | |
751 | dwarf2_cu::find_partial_die. | |
752 | (find_partial_die): Update. | |
753 | ||
fd0a254f YQ |
754 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
755 | ||
756 | * dwarf2read.c (read_partial_die): Remove the code checking abbrev | |
757 | is NULL. | |
758 | ||
cd9983dd YQ |
759 | 2018-02-26 Yao Qi <yao.qi@linaro.org> |
760 | ||
761 | * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. | |
762 | ||
f46cd62a AH |
763 | 2018-02-26 Alan Hayward <alan.hayward@arm.com> |
764 | ||
765 | * arch/amd64.h: Use common/tdesc.h. | |
766 | * arch/i386.c: Likewise. | |
767 | * arch/i386.h: Likewise. | |
768 | * arch/tic6x.c: Likewise. | |
769 | * arch/tdesc.h: Move file from here... | |
770 | * common/tdesc.h: ...to here. | |
771 | * features/aarch64-core.c: Regenerate. | |
772 | * features/aarch64-fpu.c: Regenerate. | |
773 | * features/i386/32bit-avx.c: Regenerate. | |
774 | * features/i386/32bit-avx512.c: Regenerate. | |
775 | * features/i386/32bit-core.c: Regenerate. | |
776 | * features/i386/32bit-linux.c: Regenerate. | |
777 | * features/i386/32bit-mpx.c: Regenerate. | |
778 | * features/i386/32bit-pkeys.c: Regenerate. | |
779 | * features/i386/32bit-sse.c: Regenerate. | |
780 | * features/i386/64bit-avx.c: Regenerate. | |
781 | * features/i386/64bit-avx512.c: Regenerate. | |
782 | * features/i386/64bit-core.c: Regenerate. | |
783 | * features/i386/64bit-linux.c: Regenerate. | |
784 | * features/i386/64bit-mpx.c: Regenerate. | |
785 | * features/i386/64bit-pkeys.c: Regenerate. | |
786 | * features/i386/64bit-segments.c: Regenerate. | |
787 | * features/i386/64bit-sse.c: Regenerate. | |
788 | * features/i386/x32-core.c: Regenerate. | |
789 | * features/tic6x-c6xp.c: Regenerate. | |
790 | * features/tic6x-core.c: Regenerate. | |
791 | * features/tic6x-gp.c: Regenerate. | |
792 | * target-descriptions.c: Use common/tdesc.h. | |
793 | * target-descriptions.h: Likewise. | |
794 | ||
9b292f68 TT |
795 | 2018-02-24 Tom Tromey <tom@tromey.com> |
796 | ||
797 | * linux-thread-db.c (try_thread_db_load_from_pdir_1) | |
798 | (try_thread_db_load_from_dir, thread_db_load_search): Use | |
799 | std::string. | |
800 | (info_auto_load_libthread_db_compare): Return bool. Change | |
801 | argument types. | |
802 | (info_auto_load_libthread_db): Use std::vector, std::string. | |
803 | Remove cleanups. | |
804 | ||
281d762b TT |
805 | 2018-02-24 Tom Tromey <tom@tromey.com> |
806 | ||
807 | * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a | |
808 | std::string. | |
809 | * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a | |
810 | std::string*. | |
811 | * gdbarch.c: Rebuild. | |
812 | * gdbarch.h: Rebuild. | |
813 | * breakpoint.c (check_fast_tracepoint_sals): Use std::string. | |
814 | * arch-utils.h (default_fast_tracepoint_valid_at): Update. | |
815 | * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a | |
816 | std::string*. | |
817 | ||
9d8780f0 SM |
818 | 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> |
819 | ||
820 | * gdbtypes.h (sect_offset): Change type to uint64_t. | |
821 | (sect_offset_str): New function. | |
822 | * dwarf2read.c (create_addrmap_from_aranges): Use | |
823 | sect_offset_str. | |
824 | (error_check_comp_unit_head): Likewise. | |
825 | (create_debug_type_hash_table): Likewise. | |
826 | (read_cutu_die_from_dwo): Likewise. | |
827 | (init_cutu_and_read_dies): Likewise. | |
828 | (init_cutu_and_read_dies_no_follow): Likewise. | |
829 | (process_psymtab_comp_unit_reader): Likewise. | |
830 | (partial_die_parent_scope): Likewise. | |
831 | (peek_die_abbrev): Likewise. | |
832 | (process_queue): Likewise. | |
833 | (dwarf2_physname): Likewise. | |
834 | (read_namespace_alias): Likewise. | |
835 | (read_import_statement): Likewise. | |
836 | (create_dwo_cu_reader): Likewise. | |
837 | (create_cus_hash_table): Likewise. | |
838 | (lookup_dwo_cutu): Likewise. | |
839 | (inherit_abstract_dies): Likewise. | |
840 | (read_func_scope): Likewise. | |
841 | (read_call_site_scope): Likewise. | |
842 | (dwarf2_add_member_fn): Likewise. | |
843 | (read_common_block): Likewise. | |
844 | (read_module_type): Likewise. | |
845 | (read_typedef): Likewise. | |
846 | (read_subrange_type): Likewise. | |
847 | (load_partial_dies): Likewise. | |
848 | (read_partial_die): Likewise. | |
849 | (find_partial_die): Likewise. | |
850 | (read_str_index): Likewise. | |
851 | (dwarf2_string_attr): Likewise. | |
852 | (build_error_marker_type): Likewise. | |
853 | (lookup_die_type): Likewise. | |
854 | (dump_die_shallow): Likewise. | |
855 | (follow_die_ref): Likewise. | |
856 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
857 | (dwarf2_fetch_constant_bytes): Likewise. | |
858 | (follow_die_sig): Likewise. | |
859 | (get_signatured_type): Likewise. | |
860 | (get_DW_AT_signature_type): Likewise. | |
861 | (dwarf2_find_containing_comp_unit): Likewise. | |
862 | (set_die_type): Likewise. | |
863 | ||
8ec57239 JB |
864 | 2018-02-21 John Baldwin <jhb@FreeBSD.org> |
865 | ||
866 | * arch/aarch64.c: Include "common-defs.h". | |
867 | * arch/amd64.c: Likewise. | |
868 | * arch/i386.c: Likewise. | |
869 | ||
3eac2b65 TT |
870 | 2018-02-21 Tom Tromey <tom@tromey.com> |
871 | ||
872 | * value.h: (extract_field_op): Update. | |
873 | * eval.c (extract_field_op): Return a const char *. | |
874 | * expression.h (parse_expression_for_completion): Update. | |
875 | * completer.c (complete_expression): Update. | |
876 | (add_struct_fields): Make fieldname const. | |
877 | * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. | |
878 | (mark_completion_tag, parse_exp_in_context_1): Update. | |
879 | (parse_expression_for_completion): Change "name" to | |
880 | unique_xmalloc_ptr*. | |
881 | ||
6ccb583f TT |
882 | 2018-02-21 Tom Tromey <tom@tromey.com> |
883 | ||
884 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
885 | ||
c113ed0c YQ |
886 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
887 | ||
888 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
889 | readable_regcache. | |
890 | * gdbarch.sh (read_pc): Likewise. | |
891 | * gdbarch.c: Re-generated. | |
892 | * gdbarch.h: Re-generated. | |
893 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
894 | readable_regcache. | |
895 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
896 | * mips-tdep.c (mips_read_pc): Likewise. | |
897 | * spu-tdep.c (spu_read_pc): Likewise. | |
898 | ||
4c74fe6b YQ |
899 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
900 | ||
901 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
902 | * regcache-dump.c: New file. | |
903 | * regcache.c: Move register_dump to regcache-dump.c. | |
904 | (maintenance_print_registers): Likewise. | |
905 | (maintenance_print_raw_registers): Likewise. | |
906 | (maintenance_print_cooked_registers): Likewise. | |
907 | (maintenance_print_register_groups): Likewise. | |
908 | (maintenance_print_remote_registers): Likewise. | |
909 | (_initialize_regcache): Likewise. | |
910 | * regcache.h (register_dump): Moved from regcache.c. | |
911 | ||
796bb026 YQ |
912 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
913 | ||
914 | * regcache.c (regcache::regcache): Update. | |
915 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
916 | (get_thread_arch_aspace_regcache): Update. | |
917 | (regcache::raw_update): Update. | |
918 | (regcache::cooked_read): Remove some code. | |
919 | (regcache::cooked_read_value): Likewise. | |
920 | (regcache::raw_write): Remove assert on m_readonly_p. | |
921 | (regcache::raw_supply_integer): Move it to | |
922 | detached_regcache::raw_supply_integer. | |
923 | (regcache::raw_supply_zeroed): Likewise. | |
924 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
925 | declaration. | |
926 | <raw_supply_zeroed, invalidate>: Likewise. | |
927 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
928 | <invalidate>: Likewise. | |
929 | <m_readonly_p>: Removed. | |
930 | ||
215c69dc YQ |
931 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
932 | ||
933 | * infcmd.c (get_return_value): Let stop_regs point to | |
934 | get_current_regcache. | |
935 | * regcache.c (regcache::regcache): Remove. | |
936 | (register_dump_reg_buffer): New class. | |
937 | (regcache_print): Adjust. | |
938 | * regcache.h (regcache): Remove constructors. | |
939 | ||
f3384e66 YQ |
940 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
941 | ||
942 | * regcache.c (class register_dump): New class. | |
943 | (register_dump_regcache, register_dump_none): New class. | |
944 | (register_dump_remote, register_dump_groups): New class. | |
945 | (regcache_print): Update. | |
946 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
947 | (regcache) <dump>: Remove. | |
948 | ||
c8ec2f33 YQ |
949 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
950 | ||
951 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
952 | reg_buffer_rw *. | |
953 | (jit_unwind_reg_set_impl): Call raw_supply. | |
954 | (jit_frame_sniffer): Use reg_buffer_rw. | |
955 | * record-full.c (record_full_core_regbuf): Change its type. | |
956 | (record_full_core_open_1): Use reg_buffer_rw. | |
957 | (record_full_close): Likewise. | |
958 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
959 | (record_full_core_store_registers): Likewise. | |
960 | * regcache.c (regcache::get_register_status): Move it to | |
961 | reg_buffer. | |
962 | (regcache_raw_set_cached_value): Remove. | |
963 | (regcache::raw_set_cached_value): Remove. | |
964 | (regcache::raw_write): Call raw_supply. | |
965 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
966 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
967 | (reg_buffer_rw): New class. | |
968 | ||
daf6667d YQ |
969 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
970 | ||
971 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
972 | readonly_detached_regcache. | |
973 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
974 | * frame.c (frame_save_as_regcache): Change return type. | |
975 | (frame_pop): Update. | |
976 | * frame.h (frame_save_as_regcache): Update declaration. | |
977 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
978 | declaration. | |
979 | * infrun.c (infcall_suspend_state) <registers>: use | |
980 | readonly_detached_regcache. | |
981 | (save_infcall_suspend_state): Don't use regcache_dup. | |
982 | (get_infcall_suspend_state_regcache): Change return type. | |
983 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
984 | readonly_detached_regcache. | |
985 | <pc>: New field. | |
986 | (fork_save_infrun_state): Don't use regcache_dup. | |
987 | (info_checkpoints_command): Adjust. | |
988 | * mi/mi-main.c (register_changed_p): Update declaration. | |
989 | (mi_cmd_data_list_changed_registers): Use | |
990 | readonly_detached_regcache. | |
991 | (register_changed_p): Change parameter type to | |
992 | readonly_detached_regcache. | |
993 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
994 | readonly_detached_regcache. | |
995 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
996 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
997 | New. | |
998 | (regcache::save): Move it to reg_buffer. | |
999 | (regcache::restore): Change parameter type. | |
1000 | (regcache_dup): Remove. | |
1001 | * regcache.h (reg_buffer) <save>: New method. | |
1002 | (readonly_detached_regcache): New class. | |
1003 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
1004 | readonly_detached_regcache. | |
1005 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
1006 | ||
fc5b8736 YQ |
1007 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
1008 | ||
1009 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
1010 | (frame_pop): Use regcache method restore. | |
1011 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
1012 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
1013 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
1014 | save. | |
1015 | * regcache.c (regcache_save): Remove. | |
1016 | (regcache::restore): More asserts. | |
1017 | (regcache_cpy): Remove. | |
1018 | * regcache.h (regcache_save): Remove the declaration. | |
1019 | (regcache::restore): Move from private to public. | |
1020 | Remove the friend declaration of regcache_cpy. | |
1021 | (regcache_cpy): Remove declaration. | |
1022 | ||
849d0ba8 YQ |
1023 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
1024 | ||
1025 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
1026 | parameter type to 'readable_regcache *'. | |
1027 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
1028 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
1029 | (arm_pseudo_read): Likewise. | |
1030 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
1031 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
1032 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
1033 | * gdbarch.c: Re-generated. | |
1034 | * gdbarch.h: Re-generated. | |
1035 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
1036 | 'readable_regcache *'. | |
1037 | (pseudo_register_read_value): Likewise. | |
1038 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
1039 | (h8300_pseudo_register_read): Likewise. | |
1040 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
1041 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
1042 | (i386_pseudo_register_read_into_value): Likewise. | |
1043 | (i386_pseudo_register_read_value): Likewise. | |
1044 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
1045 | declaration. | |
1046 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
1047 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
1048 | (m32c_read_flg): Likewise. | |
1049 | (m32c_banked_register): Likewise. | |
1050 | (m32c_banked_read): Likewise. | |
1051 | (m32c_sb_read): Likewise. | |
1052 | (m32c_part_read): Likewise. | |
1053 | (m32c_cat_read): Likewise. | |
1054 | (m32c_r3r2r1r0_read): Likewise. | |
1055 | (m32c_pseudo_register_read): Likewise. | |
1056 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
1057 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
1058 | (mep_pseudo_cr64_read): Likewise. | |
1059 | (mep_pseudo_register_read): Likewise. | |
1060 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
1061 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
1062 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
1063 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
1064 | (regcache::cooked_read): Likewise. | |
1065 | (regcache::cooked_read_value): Likewise. | |
1066 | (regcache_cooked_read_signed): | |
1067 | (regcache::cooked_read): Likewise. | |
1068 | * regcache.h (readable_regcache): New class. | |
1069 | (regcache): Inherit readable_regcache. Move some methods to | |
1070 | readable_regcache. | |
1071 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
1072 | parameter type to 'readable_regcache *'. | |
1073 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
1074 | (e500_pseudo_register_read): Change parameter type to | |
1075 | 'readable_regcache *'. | |
1076 | (dfp_pseudo_register_read): Likewise. | |
1077 | (vsx_pseudo_register_read): Likewise. | |
1078 | (efpr_pseudo_register_read): Likewise. | |
1079 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
1080 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
1081 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
1082 | (sh64_pseudo_register_read): Likewise. | |
1083 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
1084 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
1085 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
1086 | (spu_pseudo_register_read): Likewise. | |
1087 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
1088 | (xtensa_pseudo_register_read): Likewise. | |
1089 | ||
31716595 YQ |
1090 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
1091 | ||
1092 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
1093 | (regcache::arch): Move it to reg_buffer::arch. | |
1094 | (regcache::register_buffer): Likewise. | |
1095 | (regcache::assert_regnum): Likewise. | |
1096 | (regcache::num_raw_registers): Likewise. | |
1097 | * regcache.h (reg_buffer): New class. | |
1098 | (regcache): Inherit reg_buffer. | |
1099 | ||
7104e59b SM |
1100 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
1101 | ||
1102 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
1103 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
1104 | ||
2d8adcbd MM |
1105 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
1106 | ||
1107 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
1108 | ||
b5884fa7 AH |
1109 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
1110 | ||
1111 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
1112 | (SFILES): Remove common/*.c files. | |
1113 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
1114 | * common/common.host: Add common reference. | |
1115 | * configure.ac: Likewise. | |
1116 | * configure: Regenerate. | |
1117 | ||
fd90ace4 YQ |
1118 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
1119 | ||
1120 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
1121 | (block_initialize_namespace): Use new. | |
1122 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
1123 | (dwarf2_free_objfile): Use delete. | |
1124 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
1125 | (copy_type_recursive): Use new. | |
1126 | * gdb_obstack.h (allocate_on_obstack): New. | |
1127 | ||
85046ae2 YQ |
1128 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
1129 | ||
1130 | PR gdb/22849 | |
1131 | * inferior.c (exit_inferior_1): Reset inf->control. | |
1132 | ||
355c559b JB |
1133 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
1134 | ||
1135 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
1136 | declaration. | |
1137 | ||
980548fd PA |
1138 | 2018-02-14 Pedro Alves <palves@redhat.com> |
1139 | ||
1140 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
1141 | frame_cleanup_after_sniffer on exception. | |
1142 | ||
692d6f97 TT |
1143 | 2018-02-14 Tom Tromey <tom@tromey.com> |
1144 | ||
1145 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
1146 | const. | |
1147 | (solib_bfd_open): Make pathname const. | |
1148 | * solib.c (solib_bfd_open): Make pathname const. | |
1149 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
1150 | (spu_bfd_open): Make pathname const. | |
1151 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
1152 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
1153 | ||
e0cc99a6 TT |
1154 | 2018-02-14 Tom Tromey <tom@tromey.com> |
1155 | ||
1156 | * symfile.c (symfile_bfd_open): Update. | |
1157 | * source.h (openp, source_full_path_of, find_and_open_source): | |
1158 | Change argument type to unique_xmalloc_ptr. | |
1159 | * source.c (openp): Take a unique_xmalloc_ptr. | |
1160 | (source_full_path_of, find_and_open_source): Likewise. | |
1161 | (open_source_file, symtab_to_fullname): Update. | |
1162 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
1163 | unique_xmalloc_ptr. | |
1164 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
1165 | (exec_file_find): Update. | |
1166 | * psymtab.c (psymtab_to_fullname): Update. | |
1167 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
1168 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
1169 | unique_xmalloc_ptr. | |
1170 | * exec.c (exec_file_attach): Update. | |
1171 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
1172 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
1173 | ||
b46a8d7c TT |
1174 | 2018-02-14 Tom Tromey <tom@tromey.com> |
1175 | ||
1176 | * solib.c: Include source.h. | |
1177 | * nto-tdep.c: Include source.h. | |
1178 | * mi/mi-cmd-env.c: Include source.h. | |
1179 | * infcmd.c: Include source.h. | |
1180 | * exec.c: Include source.h. | |
1181 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
1182 | (add_path, directory_switch, source_path, init_source_path): Move | |
1183 | declarations... | |
1184 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
1185 | (add_path, directory_switch, source_path, init_source_path): | |
1186 | ...here. | |
1187 | ||
797bc1cb TT |
1188 | 2018-02-14 Tom Tromey <tom@tromey.com> |
1189 | ||
1190 | * solist.h (exec_file_find, solib_find): Return | |
1191 | unique_xmalloc_ptr. | |
1192 | (solib_bfd_fopen): Take a const char *. | |
1193 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
1194 | (exec_file_find, solib_find): Likewise. | |
1195 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
1196 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
1197 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
1198 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
1199 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
1200 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
1201 | ||
f98b2e33 JB |
1202 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
1203 | ||
1204 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
1205 | ada_name_for_lookup in function's documentation. | |
1206 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
1207 | ||
24b9144d SM |
1208 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
1209 | ||
1210 | * defs.h (enum openp_flags): New enum. | |
1211 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
1212 | Move to enum openp_flags. | |
1213 | (openp_flags): New enum flags. | |
1214 | (openp): Change parameter type to openp_flags. | |
1215 | * source.c (openp): Change parameter type to openp_flags. | |
1216 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
1217 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
1218 | ||
387cd15b SM |
1219 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
1220 | ||
1221 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
1222 | per-command. | |
1223 | ||
b303c6f6 AB |
1224 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
1225 | ||
1226 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
1227 | into... | |
1228 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
1229 | (dw2_do_instantiate_symtab): Create instance of the new class | |
1230 | dwarf2_queue_guard, remove cleanup. | |
1231 | ||
9c3630e9 TT |
1232 | 2018-02-09 Tom Tromey <tom@tromey.com> |
1233 | ||
1234 | * source.c (find_source_lines): Don't reference past the end of | |
1235 | the vector. | |
1236 | ||
c4e12631 MM |
1237 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1238 | ||
1239 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
1240 | * btrace.c (btrace_enable): Likewise. | |
1241 | (parse_xml_btrace): Likewise. | |
1242 | (parse_xml_btrace_conf): Likewise. | |
1243 | ||
88711fbf MM |
1244 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1245 | ||
1246 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
1247 | (linux_enable_pt, linux_enable_bts): Call | |
1248 | diagnose_perf_event_open_fail. | |
1249 | ||
17ad2a4f MM |
1250 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1251 | ||
1252 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
1253 | Remove parameter and change return type. Update callers. Move it. | |
1254 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
1255 | (linux_enable_pt): Remove zero buffer size check. | |
1256 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
1257 | check. | |
1258 | ||
de6242d3 MM |
1259 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1260 | ||
1261 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
1262 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
1263 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
1264 | (linux_supports_pt, linux_supports_btrace): Remove. | |
1265 | (linux_enable_bts): Call cpu_supports_bts. | |
1266 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
1267 | * remote.c (remote_supports_btrace): Remove. | |
1268 | (init_remote_ops): Remove remote_supports_btrace. | |
1269 | * target-delegates.c: Regenerated. | |
1270 | * target.c (target_supports_btrace): Remove. | |
1271 | * target.h (target_ops) <to_supports_btrace>: Remove | |
1272 | (target_supports_btrace): Remove. | |
1273 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
1274 | linux_supports_btrace. | |
1275 | ||
9ee23a85 MM |
1276 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1277 | ||
1278 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
1279 | btrace failed. | |
1280 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
1281 | exception and use message in own exception. | |
1282 | ||
5c3284c1 MM |
1283 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1284 | ||
1285 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
1286 | (perf_event_pt_event_type): Use gdb_file_up. | |
1287 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
1288 | scoped_fd, and scoped_mmap. | |
1289 | ||
84696f37 MM |
1290 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1291 | ||
1292 | * common/scoped_mmap.h: New. | |
1293 | * unittests/scoped_mmap-selftest.c: New. | |
1294 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1295 | unittests/scoped_mmap-selftest.c. | |
1296 | ||
ea4a0888 MM |
1297 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
1298 | ||
1299 | * common/scoped_fd.h: New. | |
1300 | * unittests/scoped_fd-selftest.c: New. | |
1301 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
1302 | unittests/scoped_fd-selftest.c. | |
1303 | ||
869e8290 TT |
1304 | 2018-02-09 Tom Tromey <tom@tromey.com> |
1305 | ||
1306 | * auto-load.c (auto_load_section_scripts): Use | |
1307 | gdb::unique_xmalloc_ptr. | |
1308 | ||
a37a2ae7 TT |
1309 | 2018-02-09 Tom Tromey <tom@tromey.com> |
1310 | ||
1311 | * auto-load.c (execute_script_contents): Use std::string. | |
1312 | ||
4e725347 JB |
1313 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
1314 | ||
1315 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
1316 | Python function, rather than a new command. | |
1317 | ||
9a897d43 TT |
1318 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1319 | ||
1320 | * solib.c (solib_find_1): Use std::string. | |
1321 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
1322 | ||
58ef3771 TT |
1323 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1324 | ||
1325 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
1326 | ||
a9abc434 TT |
1327 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1328 | ||
1329 | * source.c (find_source_lines): Use gdb::def_vector. | |
1330 | ||
84f27c6f TT |
1331 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1332 | ||
1333 | * macrocmd.c (struct temporary_macro_definition): New. | |
1334 | (macro_define_command): Use temporary_macro_definition. Remove | |
1335 | cleanups. | |
1336 | (free_macro_definition_ptr): Remove. | |
1337 | ||
0354904b TT |
1338 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1339 | ||
1340 | * macroexp.c (maybe_expand): Use std::string. | |
1341 | ||
1739cf24 TT |
1342 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1343 | ||
1344 | * macroexp.c (struct macro_buffer): Add initializers for some | |
1345 | members. | |
1346 | (init_buffer, init_shared_buffer, free_buffer) | |
1347 | (free_buffer_return_text): Remove. | |
1348 | (macro_buffer): New constructors. | |
1349 | (~macro_buffer): New destructor. | |
1350 | (macro_buffer::set_shared): New method. | |
1351 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
1352 | (macro_buffer::appendmem): Now methods, not free functions. | |
1353 | (set_token, append_tokens_without_splicing, stringify) | |
1354 | (macro_stringify): Update. | |
1355 | (gather_arguments): Change return type. Remove argc_p argument, | |
1356 | add args_ptr argument. Use std::vector. | |
1357 | (substitute_args): Remove argc argument. Accept std::vector. | |
1358 | (expand): Update. Use std::vector. | |
1359 | (scan, macro_expand, macro_expand_next): Update. | |
1360 | ||
f6c2623e TT |
1361 | 2018-02-08 Tom Tromey <tom@tromey.com> |
1362 | ||
1363 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
1364 | Use unique_xmalloc_ptr. | |
1365 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
1366 | (default_macro_scope): Return unique_xmalloc_ptr. | |
1367 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
1368 | (default_macro_scope): Return unique_xmalloc_ptr. | |
1369 | * macroexp.h (macro_expand, macro_expand_once): Return | |
1370 | unique_xmalloc_ptr. | |
1371 | * macroexp.c (macro_expand, macro_expand_once): Return | |
1372 | unique_xmalloc_ptr. | |
1373 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
1374 | (info_macro_command, info_macros_command): Use | |
1375 | unique_xmalloc_ptr. | |
1376 | * compile/compile-c-support.c (write_macro_definitions): Use | |
1377 | unique_xmalloc_ptr. | |
1378 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
1379 | ||
c2e0e465 SM |
1380 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
1381 | ||
1382 | * value.c (value_static_field): Assign field type instead of | |
1383 | containing type when returning an optimized out value. | |
1384 | ||
3f8c94b4 YQ |
1385 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
1386 | ||
1387 | * ft32-tdep.c (ft32_read_pc): Remove. | |
1388 | (ft32_write_pc): Remove. | |
1389 | (ft32_gdbarch_init): Update. | |
1390 | * m32r-tdep.c (m32r_read_pc): Remove. | |
1391 | (m32r_gdbarch_init): Update. | |
1392 | * mep-tdep.c (mep_read_pc): Remove. | |
1393 | (mep_gdbarch_init): Update. | |
1394 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
1395 | (microblaze_gdbarch_init): Update. | |
1396 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
1397 | (mn10300_write_pc): Remove. | |
1398 | (mn10300_gdbarch_init): Update. | |
1399 | * moxie-tdep.c (moxie_read_pc): Remove. | |
1400 | (moxie_write_pc): Remove. | |
1401 | (moxie_gdbarch_init): Update. | |
1402 | ||
bca65a23 YQ |
1403 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
1404 | ||
1405 | * expprint.c (print_subexp_standard): Handle | |
1406 | OP_F77_UNDETERMINED_ARGLIST. | |
1407 | (dump_subexp_body_standard): Likewise. | |
1408 | ||
583e3f90 | 1409 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 1410 | |
583e3f90 YQ |
1411 | * target-descriptions.c (tdesc_element_visitor) Add empty |
1412 | implementations. | |
b8df6ca7 AH |
1413 | (tdesc_type): Move make_gdb_type from here. |
1414 | (tdesc_type_builtin): Likewise. | |
1415 | (tdesc_type_vector): Likewise. | |
1416 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
1417 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
1418 | (make_gdb_type_union): Likewise. | |
1419 | (make_gdb_type_flags): Likewise. | |
1420 | (make_gdb_type_enum): Likewise. | |
1421 | (make_gdb_type): New function. | |
1422 | (tdesc_register_type): Use static make_gdb_type. | |
1423 | ||
e813d34a RK |
1424 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
1425 | ||
1426 | * infcmd.c (default_print_one_register_info): Align natural-format | |
1427 | column values consistently one under another. | |
1428 | (pad_to_column): New function. | |
1429 | ||
0eb876f5 JB |
1430 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
1431 | ||
1432 | * dwarf2read.c (dwarf2_physname): Move commment. | |
1433 | ||
0625771b LS |
1434 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
1435 | ||
1436 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
1437 | pretty printing if pretty printing is enabled. | |
1438 | ||
59498c30 LS |
1439 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
1440 | ||
1441 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
1442 | names after a structop as a filename. | |
1443 | ||
2d9e6acb YQ |
1444 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
1445 | ||
1446 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
1447 | (arm_record_coproc_data_proc): Likewise. | |
1448 | ||
df95a9cf YQ |
1449 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
1450 | ||
1451 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
1452 | ||
07e5f5cf NP |
1453 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
1454 | ||
1455 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
1456 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
1457 | ||
3045b475 PA |
1458 | 2018-01-31 Pedro Alves <palves@redhat.com> |
1459 | ||
1460 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
1461 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
1462 | tcgetpgrp in HAVE_TERMIOS_H. | |
1463 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
1464 | _WIN32. | |
1465 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
1466 | always iterate over all inferiors. | |
1467 | (gdbsim_cntrl_c): Adjust. | |
1468 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
1469 | ||
929b5ad4 JB |
1470 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
1471 | ||
1472 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
1473 | index type is objfile-owned if the element type is as well. | |
1474 | ||
29236ca2 JB |
1475 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
1476 | ||
1477 | GDB 8.1 released. | |
1478 | ||
c81e8879 PR |
1479 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1480 | ||
1481 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
1482 | "features/s390x-linux64.c". | |
1483 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
1484 | s390_linux32 and s390x_linux64. | |
1485 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
1486 | default tdesc. | |
1487 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
1488 | "features/s390x-linux64.c". | |
1489 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
1490 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
1491 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
1492 | tdesc_s390x_linux64. | |
1493 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
1494 | tdesc_s390x_linux64 to... | |
1495 | * s390-tdep.h: ...here. | |
1496 | ||
e671cd59 PA |
1497 | 2018-01-30 Pedro Alves <palves@redhat.com> |
1498 | ||
1499 | PR gdb/13211 | |
1500 | * config.in, configure: Regenerate. | |
1501 | * configure.ac: Check for getpgid. | |
1502 | * go32-nat.c (go32_pass_ctrlc): New. | |
1503 | (go32_target): Install it. | |
1504 | * inf-child.c (inf_child_target): Install | |
1505 | child_terminal_save_inferior, child_pass_ctrlc and | |
1506 | child_interrupt. | |
1507 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
1508 | (inf_ptrace_target): No longer install it. | |
1509 | * infcmd.c (interrupt_target_1): Adjust. | |
1510 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
1511 | (child_interrupt): Declare. | |
1512 | (inferior::terminal_state): New. | |
1513 | * inflow.c (struct terminal_info): Update comments. | |
1514 | (inferior_process_group): Delete. | |
1515 | (terminal_is_ours): Delete. | |
1516 | (gdb_tty_state): New. | |
1517 | (child_terminal_init): Adjust. | |
1518 | (is_gdb_terminal, sharing_input_terminal_1) | |
1519 | (sharing_input_terminal): New functions. | |
1520 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
1521 | Set the process's actual process group in the foreground if | |
1522 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
1523 | mark terminal as the inferior's if not sharing GDB's terminal. | |
1524 | Don't check attach_flag. | |
1525 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
1526 | pass down a target_terminal_state. | |
1527 | (child_terminal_save_inferior): New, factored out from ... | |
1528 | (child_terminal_ours_1): ... this. Handle | |
1529 | target_terminal_state::is_ours_for_output. | |
1530 | (child_interrupt, child_pass_ctrlc): New. | |
1531 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
1532 | (copy_terminal_info): Copy the inferior's terminal state. | |
1533 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
1534 | * inflow.h (inferior_process_group): Delete. | |
1535 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
1536 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
1537 | (procfs_interrupt): Delete. | |
1538 | * remote.c (remote_serial_quit_handler): Adjust. | |
1539 | (remote_interrupt): Remove ptid parameter. Adjust. | |
1540 | * target-delegates.c: Regenerate. | |
1541 | * target.c: Include "terminal.h". | |
1542 | (target_terminal::terminal_state): Rename to ... | |
1543 | (target_terminal::m_terminal_state): ... this. | |
1544 | (target_terminal::init): Adjust. | |
1545 | (target_terminal::inferior): Adjust to per-inferior | |
1546 | terminal_state. | |
1547 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
1548 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
1549 | target_terminal_is_ours_kind. | |
1550 | (target_interrupt): Remove ptid parameter. Adjust. | |
1551 | (default_target_pass_ctrlc): Adjust. | |
1552 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
1553 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
1554 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
1555 | (target_pass_ctrlc): Update comment. | |
1556 | * target/target.h (target_terminal_state): New scoped enum, | |
1557 | factored out of ... | |
1558 | (target_terminal::terminal_state): ... here. | |
1559 | (target_terminal::inferior): Update comments. | |
1560 | (target_terminal::restore_inferior): New. | |
1561 | (target_terminal::is_inferior, target_terminal::is_ours) | |
1562 | (target_terminal::is_ours_for_output): Adjust. | |
1563 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
1564 | rename, and call restore_inferior() instead of inferior(). | |
1565 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
1566 | type. | |
1567 | (target_terminal::terminal_state): Rename to ... | |
1568 | (target_terminal::m_terminal_state): ... this and change type. | |
1569 | ||
9c3a5d93 PA |
1570 | 2018-01-30 Pedro Alves <palves@redhat.com> |
1571 | ||
1572 | * linux-nat.c (wait_for_signal): New function. | |
1573 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
1574 | directly. | |
1575 | (async_terminal_is_ours) | |
1576 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
1577 | (linux_nat_add_target): Don't override | |
1578 | to_terminal_inferior/to_terminal_ours. | |
1579 | ||
69ab5edb SDJ |
1580 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
1581 | ||
1582 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
1583 | ||
fc8e7e75 SM |
1584 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
1585 | ||
1586 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
1587 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
1588 | dwarf2_per_objfile_free here. | |
1589 | (dwarf2_per_objfile_free): Remove. | |
1590 | (_initialize_dwarf2_read): Don't register | |
1591 | dwarf2_per_objfile_free as a registry cleanup. | |
1592 | ||
b2a426e2 EZ |
1593 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
1594 | ||
1595 | Avoid compilation errors in MinGW native builds | |
1596 | ||
1597 | The error is triggered by including python-internal.h, and the | |
1598 | error message is: | |
1599 | ||
1600 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
1601 | from build-gnulib/import/math.h:27, | |
1602 | from d:/usr/Python26/include/pyport.h:235, | |
1603 | from d:/usr/Python26/include/Python.h:58, | |
1604 | from python/python-internal.h:94, | |
1605 | from python/py-arch.c:24: | |
1606 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
1607 | using ::hypot; | |
1608 | ^~~~~ | |
1609 | ||
1610 | This happens because Python headers define 'hypot' to expand t | |
1611 | '_hypot' in the Windows builds. | |
1612 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
1613 | 'hypoth'. This avoids a compilation error. | |
1614 | ||
0bdd8eac AH |
1615 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
1616 | ||
1617 | * MAINTAINERS (Write After Approval): Fix ordering. | |
1618 | ||
56ae9dc3 AH |
1619 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
1620 | ||
1621 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
1622 | ||
7433498b AM |
1623 | 2018-01-26 Alan Modra <amodra@gmail.com> |
1624 | ||
1625 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
1626 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
1627 | Remove nop. Make const. Comment. | |
1628 | (powerpc32_plt_stub_so_2): New. | |
1629 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
1630 | Correct count. Update uses. | |
1631 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
1632 | Move common code reading PLT entry word. Correct | |
1633 | powerpc32_plt_stub PLT address calculation. | |
1634 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
1635 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
1636 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
1637 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
1638 | (ppc64_standard_linkage8): Likewise. | |
1639 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
1640 | Correct insns description. | |
1641 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
1642 | ||
0f59d5fc PA |
1643 | 2018-01-24 Pedro Alves <palves@redhat.com> |
1644 | ||
1645 | GCC PR libstdc++/83906 | |
1646 | * gdbtypes.c (operator==(const dynamic_prop &, | |
1647 | const dynamic_prop &)): New. | |
1648 | (operator==(const range_bounds &, const range_bounds &)): New. | |
1649 | (check_types_equal): Use them instead of memcmp. | |
1650 | * gdbtypes.h (operator==(const dynamic_prop &, | |
1651 | const dynamic_prop &)): Declare. | |
1652 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
1653 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
1654 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
1655 | ||
ef8914a4 PR |
1656 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1657 | ||
1658 | * s390-linux-tdep.c (s390_record_address_mask) | |
1659 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
1660 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
1661 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
1662 | (s390_process_record): Move to s390-tdep.c. | |
1663 | (s390_linux_init_abi_any): Adjust. | |
1664 | * s390-tdep.c (s390_record_address_mask) | |
1665 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
1666 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
1667 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
1668 | (s390_process_record): Moved from s390-linux-tdep.c | |
1669 | (s390_gdbarch_init): Adjust. | |
1670 | ||
d6e58945 PR |
1671 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1672 | ||
1673 | * s390-linux-nat.c (s390-tdep.h): New include. | |
1674 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
1675 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
1676 | (ALLDEPFILES): Add s390-tdep.c. | |
1677 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
1678 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
1679 | * s390-tdep.h: ...this. New file. | |
1680 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
1681 | (_initialize_s390_tdep): Rename to... | |
1682 | (_initialize_s390_linux_tdep): ...this and adjust. | |
1683 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
1684 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
1685 | s390-tdep.h. | |
1686 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
1687 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
1688 | (s390_is_partial_instruction, s390_software_single_step) | |
1689 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
1690 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
1691 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
1692 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
1693 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
1694 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
1695 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
1696 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
1697 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
1698 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
1699 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
1700 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
1701 | (s390_address_class_type_flags_to_name) | |
1702 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
1703 | (s390_function_arg_float, s390_function_arg_vector) | |
1704 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
1705 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
1706 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
1707 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
1708 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
1709 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
1710 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
1711 | (s390_prologue_frame_unwind_cache) | |
1712 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
1713 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
1714 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
1715 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
1716 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
1717 | (s390_frame_base_address, s390_local_base_address) | |
1718 | (s390_frame_base, s390_gcc_target_options) | |
1719 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
1720 | (s390_validate_reg_range, s390_tdesc_valid) | |
1721 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
1722 | * s390-tdep.c: ...this. New file. | |
1723 | ||
9c0b896e PR |
1724 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1725 | ||
1726 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
1727 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
1728 | (s390_linux_init_abi_any): Use/set new hook. | |
1729 | ||
7042632b PR |
1730 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1731 | ||
1732 | * s390-linux-tdep.c (osabi.h): New include. | |
1733 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
1734 | (s390_linux_init_abi_any): New functions. | |
1735 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
1736 | ||
650f5e13 PR |
1737 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1738 | ||
1739 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
1740 | tdesc_has_registers check | |
1741 | ||
47c9317e PR |
1742 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1743 | ||
1744 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
1745 | (s390_validate_reg_range): New macro. | |
1746 | (s390_gdbarch_init): Adjust. | |
1747 | ||
095085d8 PR |
1748 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1749 | ||
1750 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
1751 | (s390_gdbarch_tdep_alloc): Adjust. | |
1752 | (s390_gdbarch_init): Adjust. | |
1753 | ||
ab9bcc67 PR |
1754 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1755 | ||
1756 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
1757 | <have_tdb>: Change type to bool. | |
1758 | (s390_gdbarch_tdep_alloc): Adjust. | |
1759 | (s390_gdbarch_init): Adjust. | |
1760 | ||
21f6f5ff PR |
1761 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1762 | ||
1763 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
1764 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
1765 | (s390_gdbarch_tdep_alloc): New function. | |
1766 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
1767 | instead of separate variables. | |
1768 | ||
0eb97953 PR |
1769 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
1770 | ||
1771 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
1772 | when looking for cached gdbarch and add comment for remaining. | |
1773 | ||
5c319bb2 PA |
1774 | 2018-01-22 Pedro Alves <palves@redhat.com> |
1775 | Sergio Durigan Junior <sergiodj@redhat.com> | |
1776 | ||
1777 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
1778 | case. | |
1779 | ||
d65ce302 MR |
1780 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
1781 | ||
1782 | * MAINTAINERS: Update my company e-mail address. | |
1783 | ||
ec7a5fcb YQ |
1784 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
1785 | ||
1786 | * regcache.c (cooked_write_test): New function. | |
1787 | (_initialize_regcache): Register the test. | |
1788 | ||
11f57cb6 YQ |
1789 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
1790 | ||
1791 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
1792 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
1793 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
1794 | (m32c_r3r2r1r0_read): Likewise. | |
1795 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
1796 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
1797 | ||
03f50fc8 YQ |
1798 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
1799 | ||
1800 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
1801 | method raw_read instead of regcache_raw_read. | |
1802 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
1803 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
1804 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
1805 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
1806 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
1807 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
1808 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
1809 | (i386_pseudo_register_read_into_value): Likewise. | |
1810 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
1811 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
1812 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
1813 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
1814 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
1815 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
1816 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
1817 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
1818 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
1819 | ||
dc711524 YQ |
1820 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
1821 | ||
1822 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
1823 | * configure.tgt: Remove target mt. | |
1824 | * mt-tdep.c: Remove. | |
1825 | * regcache.c (cooked_read_test): Remove the check for mt. | |
1826 | ||
3f5a868b YQ |
1827 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
1828 | ||
1829 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
1830 | instead of gdbarch_pseudo_register_read_value. | |
1831 | ||
de4cb04a JB |
1832 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
1833 | ||
1834 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
1835 | language is Ada. | |
1836 | ||
a9e40818 JB |
1837 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
1838 | ||
1839 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
1840 | the symtab_and_line's line number. | |
1841 | ||
e707fc44 AB |
1842 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1843 | ||
1844 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
1845 | floating varobj. | |
1846 | ||
03d0bf7b AB |
1847 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1848 | ||
1849 | * varobj.c (varobj_create): Remove out of date comment. | |
1850 | ||
ae451627 AB |
1851 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1852 | ||
1853 | PR mi/20395 | |
1854 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
1855 | updating innermost block. | |
1856 | * parse.c (innermost_block_tracker::update): Take extra type | |
1857 | parameter, and check types match before updating innermost block. | |
1858 | (write_dollar_variable): Update innermost block for registers. | |
1859 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
1860 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
1861 | m_types member. | |
1862 | (innermost_block_tracker::reset): Take type parameter. | |
1863 | (innermost_block_tracker::update): Take type parameter, and pass | |
1864 | type through as needed. | |
1865 | (innermost_block_tracker::m_types): New member. | |
1866 | * varobj.c (varobj_create): Pass type when reseting innermost | |
1867 | block. | |
1868 | ||
aee1fcdf AB |
1869 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1870 | ||
1871 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
1872 | * ada-lang.c (resolve_subexp): Likewise. | |
1873 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
1874 | (watch_command_1) Likewise. | |
1875 | * c-exp.y (variable): Likewise. | |
1876 | * d-exp.y (PrimaryExpression): Likewise. | |
1877 | * f-exp.y (variable): Likewise. | |
1878 | * go-exp.y (variable): Likewise. | |
1879 | * m2-exp.y (variable): Likewise. | |
1880 | * objfiles.c (objfile::~objfile): Likewise. | |
1881 | * p-exp.y (variable): Likewise. | |
1882 | * parse.c (innermost_block): Change type. | |
1883 | * parser-defs.h (class innermost_block_tracker): New. | |
1884 | (innermost_block): Change to innermost_block_tracker. | |
1885 | * printcmd.c (display_command): Switch to innermost_block API. | |
1886 | (do_one_display): Likewise. | |
1887 | * rust-exp.y (do_one_display): Likewise. | |
1888 | * symfile.c (clear_symtab_users): Likewise. | |
1889 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
1890 | use of innermost_block with block stored on varobj object. | |
1891 | ||
396af9a1 AB |
1892 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1893 | ||
1894 | * expression.h (innermost_block): Remove declaration. | |
1895 | * varobj.c: Add 'parser-defs.h' include. | |
1896 | ||
fcfcc376 TT |
1897 | 2018-01-19 Tom Tromey <tom@tromey.com> |
1898 | ||
1899 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
1900 | symbols in the static and global blocks. | |
1901 | ||
5a6c3296 JC |
1902 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
1903 | ||
1904 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
1905 | gdb_ptrace.h, and move including gdb_wait.h ... | |
1906 | * nat/linux-ptrace.h: ... to here. | |
1907 | ||
bc09b0c1 SM |
1908 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1909 | ||
1910 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
1911 | inf_ptrace_detach_success. | |
1912 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
1913 | instead of inferior_ptid, pass it to detach_inferior. | |
1914 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
1915 | parameter. | |
1916 | * inferior.c (detach_inferior): Add overload that takes an | |
1917 | inferior object. | |
1918 | * inferior.h (detach_inferior): Likewise. | |
1919 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
1920 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
1921 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
1922 | ||
6e1e1966 SM |
1923 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1924 | ||
1925 | * target.h (struct target_ops) <to_detach>: Add inferior | |
1926 | parameter. | |
1927 | (target_detach): Likewise. | |
1928 | * target.c (dispose_inferior): Pass inferior down. | |
1929 | (target_detach): Pass inferior down. Assert that it is equal to | |
1930 | the current inferior. | |
1931 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
1932 | * corefile.c (core_file_command): Pass current_inferior() down. | |
1933 | * corelow.c (core_detach): Add inferior parameter. | |
1934 | * darwin-nat.c (darwin_detach): Likewise. | |
1935 | * gnu-nat.c (gnu_detach): Likewise. | |
1936 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
1937 | * infcmd.c (detach_command): Pass current_inferior() down to | |
1938 | target_detach. | |
1939 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
1940 | target_detach. | |
1941 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
1942 | target_detach. | |
1943 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
1944 | * linux-thread-db.c (thread_db_detach): Likewise. | |
1945 | * nto-procfs.c (procfs_detach): Likewise. | |
1946 | * procfs.c (procfs_detach): Likewise. | |
1947 | * record.c (record_detach): Likewise. | |
1948 | * record.h (struct inferior): Forward-declare. | |
1949 | (record_detach): Add inferior parameter. | |
1950 | * remote-sim.c (gdbsim_detach): Likewise. | |
1951 | * remote.c (remote_detach_1): Likewise. | |
1952 | (remote_detach): Likewise. | |
1953 | (extended_remote_detach): Likewise. | |
1954 | * sol-thread.c (sol_thread_detach): Likewise. | |
1955 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
1956 | * target-delegates.c: Re-generate. | |
1957 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
1958 | * windows-nat.c (windows_detach): Add inferior parameter. | |
1959 | ||
6bd6f3b6 SM |
1960 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1961 | ||
1962 | * target.h (struct target_ops) <to_detach>: Remove args | |
1963 | parameter. | |
1964 | (target_detach): Likewise. | |
1965 | * target.c (dispose_inferior): Adjust. | |
1966 | (target_detach): Remove args parameter, adjust. | |
1967 | * aix-thread.c (aix_thread_detach): Adjust. | |
1968 | * corefile.c (core_file_command): Adjust. | |
1969 | * corelow.c (core_detach): Adjust. | |
1970 | * darwin-nat.c (darwin_detach): Adjust. | |
1971 | * gnu-nat.c (gnu_detach): Adjust. | |
1972 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
1973 | * infcmd.c (detach_command): Adjust | |
1974 | * infrun.c (follow_fork_inferior): Adjust. | |
1975 | (handle_vfork_child_exec_or_exit): Adjust. | |
1976 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
1977 | * linux-fork.h (linux_fork_detach): Likewise. | |
1978 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
1979 | * linux-thread-db.c (thread_db_detach): Likewise. | |
1980 | * nto-procfs.c (procfs_detach): Likewise. | |
1981 | * procfs.c (procfs_detach): Likewise. | |
1982 | (do_detach): Remove signo parameter. | |
1983 | * record.c (record_detach): Remove args parameter. | |
1984 | * record.h (record_detach): Likewise. | |
1985 | * remote-sim.c (gdbsim_detach): Likewise. | |
1986 | * remote.c (remote_detach_1): Likewise. | |
1987 | (remote_detach): Likewise. | |
1988 | (extended_remote_detach): Likewise. | |
1989 | * sol-thread.c (sol_thread_detach): Likewise. | |
1990 | * target-delegates.c: Re-generate. | |
1991 | * top.c (struct qt_args) <args>: Remove field. | |
1992 | (kill_or_detach): Don't pass args. | |
1993 | (quit_force): Don't set args. | |
1994 | * windows-nat.c (windows_detach): Remove args parameter. | |
1995 | ||
88af8ea8 YQ |
1996 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
1997 | ||
1998 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
1999 | (arm_linux_init_abi): Install it. | |
2000 | ||
dea445b9 YQ |
2001 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
2002 | ||
2003 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
2004 | arm-linux-gnueabihf. | |
2005 | ||
4a17f768 YQ |
2006 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
2007 | ||
2008 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
2009 | m_abbrevs. | |
2010 | (abbrev_table::add_abbrev): Update. | |
2011 | (abbrev_table::lookup_abbrev): Update. | |
2012 | ||
d679c21a YQ |
2013 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
2014 | ||
2015 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
2016 | ||
7d937cad SDJ |
2017 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
2018 | ||
2019 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
2020 | to "std::string". | |
2021 | ||
9e14690d TT |
2022 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2023 | ||
2024 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
2025 | ||
50a82047 TT |
2026 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2027 | ||
2028 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
2029 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
2030 | (create_array_type_with_stride): Update. | |
2031 | * dwarf2read.c (set_die_type): Update. | |
2032 | ||
c89b44cd TT |
2033 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2034 | ||
2035 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
2036 | (dwarf2_cu::method_info): Now a std::vector. | |
2037 | (add_to_method_list): Update. | |
2038 | (free_delayed_list): Remove. | |
2039 | (compute_delayed_physnames): Update. | |
2040 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
2041 | list. Remove cleanups. | |
2042 | (psymtab_include_file_name): Add name_holder parameter. Use | |
2043 | unique_xmalloc_ptr. | |
2044 | (dwarf_decode_lines): Update. | |
2045 | ||
fcd3b13d SM |
2046 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2047 | Simon Marchi <simon.marchi@ericsson.com> | |
2048 | ||
2049 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
2050 | (dwarf2_per_objfile::free_cached_comp_units) | |
2051 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
2052 | (init_cutu_and_read_dies_no_follow): Update. | |
2053 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
2054 | (dwarf2_cu::~dwarf2_cu): New. | |
2055 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
2056 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
2057 | ||
685af9cd TT |
2058 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2059 | Simon Marchi <simon.marchi@ericsson.com> | |
2060 | ||
2061 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
2062 | (struct die_reader_specs) <abbrev_table>: New member. | |
2063 | (struct abbrev_table): Add constructor. | |
2064 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
2065 | <abbrev_obstack>: Now an auto_obstack. | |
2066 | (abbrev_table_up): New typedef. | |
2067 | (init_cu_die_reader): Add abbrev_table parameter. | |
2068 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
2069 | Add result_dwo_abbrev_table. | |
2070 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
2071 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
2072 | Update. | |
2073 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
2074 | parameter. | |
2075 | (skip_children): Update. | |
2076 | (abbrev_table::alloc_abbrev): Rename from | |
2077 | abbrev_table_alloc_abbrev. | |
2078 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
2079 | (abbrev_table::lookup_abbrev): Rename from | |
2080 | abbrev_table_lookup_abbrev. | |
2081 | (abbrev_table_read_table): Return abbrev_table_up. | |
2082 | (abbrev_table_free, abbrev_table_free_cleanup) | |
2083 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
2084 | (load_partial_dies): Update. | |
2085 | ||
5e2db402 TT |
2086 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2087 | ||
2088 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
2089 | (read_func_scope, read_variable): Update. | |
2090 | (new_symbol): Remove. | |
2091 | (new_symbol_full): Rename to new_symbol. | |
2092 | ||
ee7f689e | 2093 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
2094 | |
2095 | PR gdb/16577 | |
2096 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
2097 | a warning instead of throwing an error, set section size to 0 and return | |
2098 | NULL. | |
2099 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
2100 | ||
4d9b86e1 SM |
2101 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
2102 | ||
2103 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
2104 | std::string. | |
2105 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
2106 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
2107 | Likewise. | |
2108 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
2109 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
2110 | ||
a7b2d0fb SM |
2111 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
2112 | ||
2113 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
2114 | ||
f517c180 EA |
2115 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
2116 | ||
2117 | PR gdb/21559 | |
2118 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
2119 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
2120 | * configure: Regenerate. | |
2121 | ||
7045b1ca YQ |
2122 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
2123 | ||
2124 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
2125 | function. | |
2126 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
2127 | gcc_target_options. | |
2128 | ||
db422fb2 PA |
2129 | 2018-01-15 Pedro Alves <palves@redhat.com> |
2130 | ||
2131 | * common/signals-state-save-restore.c | |
2132 | (save_original_signals_state): Fix typos. | |
2133 | ||
ba643918 SDJ |
2134 | 2017-01-12 Tom Tromey <tom@tromey.com> |
2135 | Sergio Durigan Junior <sergiodj@redhat.com> | |
2136 | ||
2137 | * Makefile.in (install-only): Install gdb-add-index. | |
2138 | ||
906b4aac JB |
2139 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
2140 | ||
2141 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
2142 | ||
bdf2a94a AA |
2143 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
2144 | ||
2145 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
2146 | insert_breakpoints fails. | |
2147 | ||
71d378ae PA |
2148 | 2018-01-11 Pedro Alves <palves@redhat.com> |
2149 | ||
2150 | PR gdb/22583 | |
2151 | * infrun.c (resume): Rename to ... | |
2152 | (resume_1): ... this. | |
2153 | (resume): Reimplement as wrapper around resume_1. | |
2154 | ||
3cada740 PA |
2155 | 2018-01-11 Pedro Alves <palves@redhat.com> |
2156 | ||
2157 | PR remote/22597 | |
2158 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
2159 | general thread instead of to 'magic_null_ptid'. | |
2160 | ||
618daa93 PA |
2161 | 2018-01-10 Pedro Alves <palves@redhat.com> |
2162 | ||
2163 | * language.h (language_get_symbol_name_matcher): Rename ... | |
2164 | (get_symbol_name_matcher): ... this. | |
2165 | * language.c (language_get_symbol_name_matcher): Ditto. | |
2166 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
2167 | callers adjusted. | |
2168 | ||
c63d3e8d PA |
2169 | 2018-01-10 Pedro Alves <palves@redhat.com> |
2170 | ||
2171 | PR gdb/22670 | |
2172 | * dwarf2read.c | |
2173 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
2174 | Adjust to use language_get_symbol_name_matcher instead of | |
2175 | language_defn::la_get_symbol_name_matcher. | |
2176 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
2177 | and the lookup name is a verbatim match, return Ada's matcher. | |
2178 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
2179 | (ada_lookup_name_info::verbatim_p):: New method. | |
2180 | ||
d4c2a405 PA |
2181 | 2018-01-10 Pedro Alves <palves@redhat.com> |
2182 | ||
2183 | PR gdb/22670 | |
2184 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
2185 | minsym's language is language_auto or language_cplus, pass down | |
2186 | language_ada instead. | |
2187 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
2188 | ||
8825213e PA |
2189 | 2018-01-10 Pedro Alves <palves@redhat.com> |
2190 | ||
2191 | PR gdb/22670 | |
2192 | * minsyms.c (linkage_name_str): New function. | |
2193 | (iterate_over_minimal_symbols): Use it. | |
2194 | ||
2d97a5d9 JB |
2195 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2196 | ||
2197 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
2198 | ||
92fce24d JB |
2199 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2200 | ||
2201 | * configure.ac: Check for kinfo_getfile in libutil. | |
2202 | * configure: Regenerate. | |
2203 | * config.in: Regenerate. | |
2204 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
2205 | (fbsd_fetch_cmdline): New. | |
2206 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
2207 | rather than calling error. | |
2208 | (fbsd_info_proc): New. | |
2209 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
2210 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
2211 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
2212 | ||
262f62f5 JB |
2213 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2214 | ||
2215 | * fbsd-nat.c (struct free_deleter): Remove. | |
2216 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
2217 | ||
b999e203 JB |
2218 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2219 | ||
2220 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
2221 | NULL for an empty pathname. | |
2222 | ||
d2176225 JB |
2223 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
2224 | ||
2225 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
2226 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
2227 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
2228 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
2229 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
2230 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
2231 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
2232 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
2233 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
2234 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
2235 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
2236 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
2237 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
2238 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
2239 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
2240 | ||
9c4ac400 ST |
2241 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
2242 | ||
2243 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
2244 | (gnu_xfer_auxv): New function. | |
2245 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
2246 | TARGET_OBJECT_AUXV. | |
2247 | ||
1e5ded6c YQ |
2248 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
2249 | Simon Marchi <simon.marchi@ericsson.com> | |
2250 | ||
2251 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
2252 | common/selftest.c. | |
2253 | (COMMON_OBS): Remove selftest.o. | |
2254 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
2255 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
2256 | * configure: Re-generated. | |
2257 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
2258 | GDB_SELF_TEST. | |
2259 | (maintenance_info_selftests): Likewise. | |
2260 | ||
04bafb1e XR |
2261 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
2262 | ||
2263 | * ada-valprint.c (val_print_packed_array_elements): Use | |
2264 | proper number of elements when printing an array indexed | |
2265 | by an enumeration type. | |
2266 | ||
518817b3 SM |
2267 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
2268 | ||
2269 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
2270 | (dw2_get_file_names_reader): Adjust. | |
2271 | (lookup_dwo_signatured_type): Adjust. | |
2272 | (lookup_dwp_signatured_type): Adjust. | |
2273 | (lookup_signatured_type): Adjust. | |
2274 | (create_type_unit_group): Adjust. | |
2275 | (get_type_unit_group): Adjust. | |
2276 | (process_psymtab_comp_unit_reader): Adjust. | |
2277 | (build_type_psymtabs_reader): Adjust. | |
2278 | (scan_partial_symbols): Adjust. | |
2279 | (add_partial_symbol): Adjust. | |
2280 | (add_partial_subprogram): Adjust. | |
2281 | (peek_die_abbrev): Adjust. | |
2282 | (fixup_go_packaging): Adjust. | |
2283 | (process_imported_unit_die): Adjust. | |
2284 | (dwarf2_compute_name): Adjust. | |
2285 | (dwarf2_physname): Adjust. | |
2286 | (read_import_statement): Adjust. | |
2287 | (handle_DW_AT_stmt_list): Adjust. | |
2288 | (read_file_scope): Adjust. | |
2289 | (read_func_scope): Adjust. | |
2290 | (read_lexical_block_scope): Adjust. | |
2291 | (read_call_site_scope): Adjust. | |
2292 | (read_variable): Adjust. | |
2293 | (dwarf2_rnglists_process): Adjust. | |
2294 | (dwarf2_ranges_process): Adjust. | |
2295 | (dwarf2_ranges_read): Adjust. | |
2296 | (dwarf2_get_pc_bounds): Adjust. | |
2297 | (dwarf2_record_block_ranges): Adjust. | |
2298 | (dwarf2_add_field): Adjust. | |
2299 | (dwarf2_add_member_fn): Adjust. | |
2300 | (read_structure_type): Adjust. | |
2301 | (process_structure_scope): Adjust. | |
2302 | (read_enumeration_type): Adjust. | |
2303 | (read_array_type): Adjust. | |
2304 | (mark_common_block_symbol_computed): Adjust. | |
2305 | (read_common_block): Adjust. | |
2306 | (read_namespace_type): Adjust. | |
2307 | (read_namespace): Adjust. | |
2308 | (read_module_type): Adjust. | |
2309 | (read_tag_pointer_type): Adjust. | |
2310 | (read_tag_ptr_to_member_type): Adjust. | |
2311 | (read_tag_string_type): Adjust. | |
2312 | (read_subroutine_type): Adjust. | |
2313 | (read_typedef): Adjust. | |
2314 | (read_base_type): Adjust. | |
2315 | (attr_to_dynamic_prop): Adjust. | |
2316 | (read_subrange_type): Adjust. | |
2317 | (read_unspecified_type): Adjust. | |
2318 | (dwarf2_read_abbrevs): Adjust. | |
2319 | (load_partial_dies): Adjust. | |
2320 | (read_partial_die): Adjust. | |
2321 | (find_partial_die): Adjust. | |
2322 | (guess_partial_die_structure_name): Adjust. | |
2323 | (fixup_partial_die): Adjust. | |
2324 | (read_attribute_value): Adjust. | |
2325 | (read_addr_index): Adjust. | |
2326 | (read_addr_index_from_leb128): Adjust. | |
2327 | (read_str_index): Adjust. | |
2328 | (dwarf2_string_attr): Adjust. | |
2329 | (get_debug_line_section): Adjust. | |
2330 | (dwarf_decode_line_header): Adjust. | |
2331 | (lnp_state_machine::check_line_address): Adjust. | |
2332 | (dwarf_decode_lines_1): Adjust. | |
2333 | (dwarf_decode_lines): Adjust. | |
2334 | (dwarf2_start_symtab): Adjust. | |
2335 | (var_decode_location): Adjust. | |
2336 | (new_symbol_full): Adjust. | |
2337 | (dwarf2_const_value_data): Adjust. | |
2338 | (dwarf2_const_value_attr): Adjust. | |
2339 | (dwarf2_const_value): Adjust. | |
2340 | (die_type): Adjust. | |
2341 | (die_containing_type): Adjust. | |
2342 | (build_error_marker_type): Adjust. | |
2343 | (lookup_die_type): Adjust. | |
2344 | (guess_full_die_structure_name): Adjust. | |
2345 | (anonymous_struct_prefix): Adjust. | |
2346 | (determine_prefix): Adjust. | |
2347 | (dwarf2_name): Adjust. | |
2348 | (follow_die_ref_or_sig): Adjust. | |
2349 | (follow_die_offset): Adjust. | |
2350 | (follow_die_ref): Adjust. | |
2351 | (follow_die_sig_1): Adjust. | |
2352 | (follow_die_sig): Adjust. | |
2353 | (get_signatured_type): Adjust. | |
2354 | (get_DW_AT_signature_type): Adjust. | |
2355 | (decode_locdesc): Adjust. | |
2356 | (dwarf_decode_macros): Adjust. | |
2357 | (cu_debug_loc_section): Adjust. | |
2358 | (fill_in_loclist_baton): Adjust. | |
2359 | (dwarf2_symbol_mark_computed): Adjust. | |
2360 | (init_one_comp_unit): Don't assign | |
2361 | dwarf2_cu::dwarf2_per_objfile. | |
2362 | (set_die_type): Adjust. | |
2363 | ||
ed2dc618 SM |
2364 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
2365 | ||
2366 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
2367 | <dwarf2_per_objfile>: New field. | |
2368 | (dwarf2_per_objfile): Remove global. | |
2369 | (get_dwarf2_per_objfile): New function. | |
2370 | (set_dwarf2_per_objfile): New function. | |
2371 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
2372 | dwarf2_per_objfile. | |
2373 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
2374 | (read_abbrev_offset): Likewise. | |
2375 | (read_indirect_string): Likewise. | |
2376 | (read_indirect_line_string): Likewise. | |
2377 | (read_indirect_string_at_offset): Likewise. | |
2378 | (read_indirect_string_from_dwz): Likewise. | |
2379 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
2380 | dwarf2_per_objfile. | |
2381 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
2382 | (create_all_comp_units): Change objfile parameter to | |
2383 | dwarf2_per_objfile. | |
2384 | (create_all_type_units): Likewise. | |
2385 | (process_queue): Add dwarf2_per_objfile parameter. | |
2386 | (read_and_check_comp_unit_head): Likewise. | |
2387 | (lookup_dwo_unit_in_dwp): Likewise. | |
2388 | (get_dwp_file): Likewise. | |
2389 | (process_cu_includes): Likewise. | |
2390 | (struct free_dwo_file_cleanup_data): New struct. | |
2391 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
2392 | set_dwarf2_per_objfile. | |
2393 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
2394 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
2395 | context, adjust calls. | |
2396 | (dw2_instantiate_symtab): Likewise. | |
2397 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
2398 | (dw2_get_cu): Likewise. | |
2399 | (create_cu_from_index_list): Change objfile parameter to | |
2400 | dwarf2_per_objfile. | |
2401 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
2402 | context, adjust calls. | |
2403 | (create_cus_from_index): Likewise. | |
2404 | (create_signatured_type_table_from_index): Change objfile | |
2405 | parameter to dwarf2_per_objfile. | |
2406 | (create_signatured_type_table_from_debug_names): Change objfile | |
2407 | parameter to dwarf2_per_objfile. | |
2408 | (create_addrmap_from_index): Likewise. | |
2409 | (create_addrmap_from_aranges): Likewise. | |
2410 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
2411 | (dw2_setup): Remove. | |
2412 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
2413 | context. | |
2414 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
2415 | get_dwarf2_per_objfile. | |
2416 | (dw2_forget_cached_source_info): Likewise. | |
2417 | (dw2_map_symtabs_matching_filename): Likewise. | |
2418 | (struct dw2_symtab_iterator) <index>: Remove. | |
2419 | <dwarf2_per_objfile>: New field. | |
2420 | (dw2_symtab_iter_init): Replace index parameter with | |
2421 | dwarf2_per_objfile. | |
2422 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
2423 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
2424 | (dw2_print_stats): Likewise. | |
2425 | (dw2_dump): Likewise. | |
2426 | (dw2_expand_symtabs_for_function): Likewise. | |
2427 | (dw2_expand_all_symtabs): Likewise. | |
2428 | (dw2_expand_symtabs_with_fullname): Likewise. | |
2429 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
2430 | with dwarf2_per_objfile. | |
2431 | (dw_expand_symtabs_matching_file_matcher): Add | |
2432 | dwarf2_per_objfile parameter and adjust calls. | |
2433 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
2434 | adjust calls. | |
2435 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
2436 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
2437 | adjust calls. | |
2438 | (create_cus_from_debug_names_list): Replace objfile parameter | |
2439 | with dwarf2_per_objfile and adjust calls. | |
2440 | (create_cus_from_debug_names): Likewise. | |
2441 | (dwarf2_read_debug_names): Likewise. | |
2442 | (mapped_debug_names::namei_to_name): Adjust call. | |
2443 | (dw2_debug_names_iterator::next): Likewise. | |
2444 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
2445 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
2446 | (dw2_debug_names_dump): Likewise. | |
2447 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
2448 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
2449 | (dwarf2_initialize_objfile): Likewise. | |
2450 | (dwarf2_build_psymtabs): Likewise. | |
2451 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
2452 | this_cu. | |
2453 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
2454 | (read_and_check_comp_unit_head): Likewise. | |
2455 | (read_abbrev_offset): Likewise. | |
2456 | (create_debug_type_hash_table): Likewise. | |
2457 | (create_debug_types_hash_table): Likewise. | |
2458 | (create_all_type_units): Replace objfile parameter with | |
2459 | dwarf2_per_objfile. | |
2460 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
2461 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
2462 | with dwarf2_per_objfile. | |
2463 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
2464 | (lookup_dwp_signatured_type): Likewise. | |
2465 | (lookup_signatured_type): Likewise. | |
2466 | (read_cutu_die_from_dwo): Likewise. | |
2467 | (init_tu_and_read_dwo_dies): Likewise. | |
2468 | (init_cutu_and_read_dies): Likewise. | |
2469 | (init_cutu_and_read_dies_no_follow): Likewise. | |
2470 | (allocate_type_unit_groups_table): Add objfile parameter. | |
2471 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
2472 | (get_type_unit_group): Likewise. | |
2473 | (process_psymtab_comp_unit): Update call. | |
2474 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
2475 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
2476 | (print_tu_stats): Likewise. | |
2477 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
2478 | in void* parameter. | |
2479 | (build_type_psymtabs): Change objfile parameter to | |
2480 | dwarf2_per_objfile. | |
2481 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
2482 | passed in void* parameter. | |
2483 | (process_skeletonless_type_units): Change objfile parameter to | |
2484 | dwarf2_per_objfile. | |
2485 | (set_partial_user): Likewise. | |
2486 | (dwarf2_build_psymtabs_hard): Likewise. | |
2487 | (read_comp_units_from_section): Likewise. | |
2488 | (create_all_comp_units): Likewise. | |
2489 | (scan_partial_symbols): Update calls. | |
2490 | (add_partial_symbol): Likewise. | |
2491 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
2492 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
2493 | (process_queue): Add dwarf2_per_objfile parameter. | |
2494 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
2495 | (compute_compunit_symtab_includes): Likewise. | |
2496 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
2497 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
2498 | (process_full_type_unit): Likewise. | |
2499 | (process_imported_unit_die): Update call. | |
2500 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
2501 | (read_file_scope): Likewise. | |
2502 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
2503 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
2504 | (create_cus_hash_table): Likewise. | |
2505 | (create_dwp_hash_table): Likewise. | |
2506 | (create_dwo_unit_in_dwp_v1): Likewise. | |
2507 | (create_dwp_v2_section): Likewise. | |
2508 | (create_dwo_unit_in_dwp_v2): Likewise. | |
2509 | (lookup_dwo_unit_in_dwp): Likewise. | |
2510 | (try_open_dwop_file): Likewise. | |
2511 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
2512 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
2513 | cleanup to include a reference to dwarf2_per_objfile. | |
2514 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
2515 | (open_and_init_dwp_file): Likewise. | |
2516 | (get_dwp_file): Likewise. | |
2517 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
2518 | (queue_and_load_all_dwo_tus): Update call. | |
2519 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
2520 | data. | |
2521 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
2522 | (dwarf2_ranges_process): Likewise. | |
2523 | (dwarf2_get_pc_bounds): Likewise. | |
2524 | (mark_common_block_symbol_computed): Likewise. | |
2525 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
2526 | (dwarf2_read_abbrevs): Update call. | |
2527 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
2528 | (find_partial_die): Likewise. | |
2529 | (fixup_partial_die): Likewise. | |
2530 | (read_attribute_value): Likewise. | |
2531 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
2532 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
2533 | parameter. | |
2534 | (read_indirect_string_from_dwz): Add objfile parameter. | |
2535 | (read_indirect_string): Add objfile parameter. | |
2536 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
2537 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
2538 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
2539 | call dw2_setup. | |
2540 | (read_str_index): Use dwarf2_per_objfile from cu. | |
2541 | (get_debug_line_section): Likewise. | |
2542 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
2543 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
2544 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
2545 | (build_error_marker_type): Likewise. | |
2546 | (lookup_die_type): Likewise. | |
2547 | (determine_prefix): Likewise. | |
2548 | (follow_die_offset): Likewise. | |
2549 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
2550 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
2551 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
2552 | (dwarf2_get_die_type): Likewise. | |
2553 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
2554 | (get_signatured_type): Likewise. | |
2555 | (get_DW_AT_signature_type): Likewise. | |
2556 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
2557 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
2558 | (cu_debug_loc_section): Likewise. | |
2559 | (fill_in_loclist_baton): Likewise. | |
2560 | (dwarf2_symbol_mark_computed): Likewise. | |
2561 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
2562 | dwarf2_per_objfile. | |
2563 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
2564 | parameter. | |
2565 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
2566 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
2567 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
2568 | (set_die_type): Use dwarf2_free_objfile from cu. | |
2569 | (get_die_type_at_offset): Likewise. | |
2570 | (dwarf2_per_objfile_free): Don't assign global variable. | |
2571 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
2572 | parameter, update m_debugstrlookup construction. | |
2573 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
2574 | parameter. | |
2575 | <m_dwarf2_per_objfile>: New field. | |
2576 | <lookup>: Use m_dwarf2_per_objfile. | |
2577 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
2578 | (psyms_seen_size): Likewise. | |
2579 | (write_gdbindex): Replace objfile parameter with | |
2580 | dwarf2_per_objfile. | |
2581 | (write_debug_names): Likewise. | |
2582 | (write_psymtabs_to_index): Likewise. | |
2583 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
2584 | calls. | |
2585 | ||
e3b94546 SM |
2586 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
2587 | ||
2588 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
2589 | <dwarf2_per_objfile>: New field. | |
2590 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
2591 | <dwarf2_per_objfile>: New field. | |
2592 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
2593 | of objfile. | |
2594 | (create_signatured_type_table_from_index): Likewise. | |
2595 | (create_debug_type_hash_table): Likewise. | |
2596 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
2597 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
2598 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
2599 | objfile. | |
2600 | (create_partial_symtab): Access objfile through | |
2601 | dwarf2_per_objfile. | |
2602 | (process_psymtab_comp_unit_reader): Likewise. | |
2603 | (read_comp_units_from_section): Likewise. | |
2604 | (scan_partial_symbols): Likewise. | |
2605 | (add_partial_symbol): Likewise. | |
2606 | (add_partial_subprogram): Likewise. | |
2607 | (peek_die_abbrev): Likewise. | |
2608 | (fixup_go_packaging): Likewise. | |
2609 | (process_full_comp_unit): Likewise. | |
2610 | (process_full_type_unit): Likewise. | |
2611 | (process_imported_unit_die): Likewise. | |
2612 | (dwarf2_compute_name): Likewise. | |
2613 | (dwarf2_physname): Likewise. | |
2614 | (read_import_statement): Likewise. | |
2615 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
2616 | objfile. | |
2617 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
2618 | (read_lexical_block_scope): Likewise. | |
2619 | (read_call_site_scope): Likewise. | |
2620 | (read_variable): Likewise. | |
2621 | (dwarf2_rnglists_process): Likewise. | |
2622 | (dwarf2_ranges_process): Likewise. | |
2623 | (dwarf2_ranges_read): Likewise. | |
2624 | (dwarf2_record_block_ranges): Likewise. | |
2625 | (dwarf2_add_field): Likewise. | |
2626 | (dwarf2_add_member_fn): Likewise. | |
2627 | (read_structure_type): Likewise. | |
2628 | (process_structure_scope): Likewise. | |
2629 | (read_enumeration_type): Likewise. | |
2630 | (read_array_type): Likewise. | |
2631 | (read_common_block): Likewise. | |
2632 | (read_namespace_type): Likewise. | |
2633 | (read_namespace): Likewise. | |
2634 | (read_module_type): Likewise. | |
2635 | (read_tag_pointer_type): Likewise. | |
2636 | (read_tag_ptr_to_member_type): Likewise. | |
2637 | (read_tag_string_type): Likewise. | |
2638 | (read_subroutine_type): Likewise. | |
2639 | (read_typedef): Likewise. | |
2640 | (read_base_type): Likewise. | |
2641 | (attr_to_dynamic_prop): Likewise. | |
2642 | (read_subrange_type): Likewise. | |
2643 | (read_unspecified_type): Likewise. | |
2644 | (load_partial_dies): Likewise. | |
2645 | (read_partial_die): Likewise. | |
2646 | (find_partial_die): Likewise. | |
2647 | (guess_partial_die_structure_name): Likewise. | |
2648 | (fixup_partial_die): Likewise. | |
2649 | (read_attribute_value): Likewise. | |
2650 | (read_addr_index_from_leb128): Likewise. | |
2651 | (dwarf2_read_addr_index): Likewise. | |
2652 | (dwarf2_string_attr): Likewise. | |
2653 | (lnp_state_machine::check_line_address): Likewise. | |
2654 | (dwarf_decode_lines_1): Likewise. | |
2655 | (dwarf_decode_lines): Likewise. | |
2656 | (dwarf2_start_symtab): Likewise. | |
2657 | (var_decode_location): Likewise. | |
2658 | (new_symbol_full): Likewise. | |
2659 | (dwarf2_const_value_data): Likewise. | |
2660 | (dwarf2_const_value_attr): Likewise. | |
2661 | (dwarf2_const_value): Likewise. | |
2662 | (die_type): Likewise. | |
2663 | (die_containing_type): Likewise. | |
2664 | (lookup_die_type): Likewise. | |
2665 | (guess_full_die_structure_name): Likewise. | |
2666 | (anonymous_struct_prefix): Likewise. | |
2667 | (dwarf2_name): Likewise. | |
2668 | (follow_die_ref_or_sig): Likewise. | |
2669 | (follow_die_offset): Likewise. | |
2670 | (follow_die_ref): Likewise. | |
2671 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
2672 | (dwarf2_fetch_constant_bytes): Likewise. | |
2673 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
2674 | (dwarf2_get_die_type): Likewise. | |
2675 | (follow_die_sig): Likewise. | |
2676 | (decode_locdesc): Likewise. | |
2677 | (dwarf2_per_cu_objfile): Likewise. | |
2678 | (dwarf2_per_cu_text_offset): Likewise. | |
2679 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
2680 | objfile. | |
2681 | (set_die_type): Access objfile through | |
2682 | dwarf2_per_objfile. | |
2683 | ||
b01ba14d SM |
2684 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
2685 | ||
2686 | * valprint.c (converted_character_d): Remove typedef. | |
2687 | (DEF_VEC_O (converted_character_d)): Remove. | |
2688 | (count_next_character): Use std::vector. | |
2689 | (print_converted_chars_to_obstack): Likewise. | |
2690 | (generic_printstr): Likewise. | |
2691 | ||
4d0fdd9b SM |
2692 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
2693 | ||
2694 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
2695 | <value>: Change type to unique_xmalloc_ptr. | |
2696 | (gdb_xml_value_s): Remove typedef. | |
2697 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
2698 | (gdb_xml_element_start_handler): Change parameter type to | |
2699 | std::vector. | |
2700 | (xml_find_attribute): Likewise. | |
2701 | * xml-support.c (xml_find_attribute): Change parameter type to | |
2702 | std::vector and adjust. | |
2703 | (gdb_xml_values_cleanup): Remove. | |
2704 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
2705 | (xinclude_start_include): Change paraeter type to std::vector | |
2706 | and adjust. | |
2707 | * btrace.c (check_xml_btrace_version): Likewise. | |
2708 | (parse_xml_btrace_block): Likewise. | |
2709 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
2710 | (parse_xml_btrace_pt): Likewise. | |
2711 | (parse_xml_btrace_conf_bts): Likewise. | |
2712 | (parse_xml_btrace_conf_pt): Likewise. | |
2713 | * memory-map.c (memory_map_start_memory): Likewise. | |
2714 | (memory_map_start_property): Likewise. | |
2715 | * osdata.c (osdata_start_osdata): Likewise. | |
2716 | (osdata_start_item): Likewise. | |
2717 | (osdata_start_column): Likewise. | |
2718 | * remote.c (start_thread): Likewise. | |
2719 | * solib-aix.c (library_list_start_library): Likewise. | |
2720 | (library_list_start_list): Likewise. | |
2721 | * solib-svr4.c (library_list_start_library): Likewise. | |
2722 | (svr4_library_list_start_list): Likewise. | |
2723 | * solib-target.c (library_list_start_segment): Likewise. | |
2724 | (library_list_start_section): Likewise. | |
2725 | (library_list_start_library): Likewise. | |
2726 | (library_list_start_list): Likewise. | |
2727 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
2728 | (traceframe_info_start_tvar): Likewise. | |
2729 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
2730 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
2731 | (tdesc_start_feature): Likewise. | |
2732 | (tdesc_start_reg): Likewise. | |
2733 | (tdesc_start_union): Likewise. | |
2734 | (tdesc_start_struct): Likewise. | |
2735 | (tdesc_start_flags): Likewise. | |
2736 | (tdesc_start_enum): Likewise. | |
2737 | (tdesc_start_field): Likewise. | |
2738 | (tdesc_start_enum_value): Likewise. | |
2739 | (tdesc_start_vector): Likewise. | |
2740 | ||
f979c73f SM |
2741 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
2742 | ||
2743 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
2744 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
2745 | Remove. | |
2746 | (python_xmethod_worker::clone): Remove. | |
2747 | * valops.c (find_overload_match): Use std::move instead of | |
2748 | clone. | |
2749 | ||
ba18742c SM |
2750 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
2751 | ||
2752 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
2753 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
2754 | <free_xmethod_worker_data>: Remove. | |
2755 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
2756 | <get_xmethod_arg_types>: Remove. | |
2757 | <get_xmethod_result_type>: Remove. | |
2758 | <invoke_xmethod>: Remove. | |
2759 | * extension.c (new_xmethod_worker): Remove. | |
2760 | (clone_xmethod_worker): Remove. | |
2761 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
2762 | pointer. | |
2763 | (get_xmethod_arg_types): Rename to... | |
2764 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
2765 | (get_xmethod_result_type): Rename to... | |
2766 | (xmethod_worker::get_result_type): ... this, and adjust. | |
2767 | (invoke_xmethod): Remove. | |
2768 | (free_xmethod_worker): Remove. | |
2769 | (free_xmethod_worker_vec): Remove. | |
2770 | * extension.h (enum ext_lang_rc): Move here from | |
2771 | extension-priv.h. | |
2772 | (struct xmethod_worker): Add constructor and destructor. | |
2773 | <data>: Remove. | |
2774 | <value>: Remove. | |
2775 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
2776 | virtual pure methods. | |
2777 | <get_arg_types, get_result_type>: New methods. | |
2778 | (xmethod_worker_ptr): Remove typedef. | |
2779 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
2780 | (xmethod_worker_vec): Remove typedef. | |
2781 | (xmethod_worker_up): New typedef. | |
2782 | (invoke_xmethod): Remove. | |
2783 | (clone_xmethod_worker): Remove. | |
2784 | (free_xmethod_worker): Remove. | |
2785 | (free_xmethod_worker_vec): Remove. | |
2786 | (get_xmethod_arg_types): Remove. | |
2787 | (get_xmethod_result_type): Remove. | |
2788 | * valops.c (find_method_list): Use std::vector, don't use | |
2789 | intermediate vector. | |
2790 | (value_find_oload_method_list): Use std::vector. | |
2791 | (find_overload_match): Use std::vector. | |
2792 | (find_oload_champ): Use std::vector. | |
2793 | * value.c (value_free): Use operator delete. | |
2794 | (value_of_xmethod): Rename to... | |
2795 | (value_from_xmethod): ... this. Don't assign | |
2796 | xmethod_worker::value, take rvalue-reference. | |
2797 | (result_type_of_xmethod): Adjust. | |
2798 | (call_xmethod): Adjust. | |
2799 | * value.h: Include extension.h. | |
2800 | (struct xmethod_worker): Don't forward-declare. | |
2801 | (value_of_xmethod): Rename to... | |
2802 | (value_from_xmethod): ... this, take rvalue-reference. | |
2803 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
2804 | (struct python_xmethod_worker): ... this, add constructor and | |
2805 | destructor. | |
2806 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
2807 | (gdbpy_free_xmethod_worker_data): Rename to... | |
2808 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
2809 | adjust. | |
2810 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
2811 | (python_xmethod_worker::clone): ... this and adjust. | |
2812 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
2813 | temporary vector. | |
2814 | (gdbpy_get_xmethod_arg_types): Rename to... | |
2815 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
2816 | (gdbpy_get_xmethod_result_type): Rename to... | |
2817 | (python_xmethod_worker::do_get_result_type): ... this and | |
2818 | adjust. | |
2819 | (gdbpy_invoke_xmethod): Rename to... | |
2820 | (python_xmethod_worker::invoke): ... this and adjust. | |
2821 | (new_python_xmethod_worker): Rename to... | |
2822 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
2823 | adjust. | |
2824 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
2825 | Remove. | |
2826 | (gdbpy_free_xmethod_worker_data): Remove. | |
2827 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
2828 | (gdbpy_get_xmethod_arg_types): Remove. | |
2829 | (gdbpy_get_xmethod_result_type): Remove. | |
2830 | (gdbpy_invoke_xmethod): Remove. | |
2831 | * python/python.c (python_extension_ops): Remove obsolete | |
2832 | callbacks. | |
2833 | ||
e379cee6 PA |
2834 | 2018-01-05 Pedro Alves <palves@redhat.com> |
2835 | ||
2836 | PR gdb/18653 | |
2837 | * common/signals-state-save-restore.c | |
2838 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
2839 | find a custom handler preinstalled, instead of internal erroring. | |
2840 | But only warn if !quiet. | |
2841 | * common/signals-state-save-restore.h | |
2842 | (save_original_signals_state): New parameter 'quiet'. | |
2843 | * main.c (captured_main_1): Move save_original_signals_state call | |
2844 | after option handling, and pass QUIET. | |
2845 | ||
a655456c PA |
2846 | 2018-01-05 Pedro Alves <palves@redhat.com> |
2847 | ||
2848 | * spu-tdep.c (spu_catch_start): Pass | |
2849 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
2850 | ||
de63c46b PA |
2851 | 2018-01-05 Pedro Alves <palves@redhat.com> |
2852 | ||
2853 | PR gdb/22670 | |
2854 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
2855 | (ada_get_symbol_name_matcher): Use it for | |
2856 | symbol_name_match_type::SEARCH_NAME. | |
2857 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
2858 | it down instead of assuming symbol_name_match_type::FULL. | |
2859 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
2860 | * c-valprint.c (print_unpacked_pointer): Use | |
2861 | lookup_symbol_search_name instead of lookup_symbol. | |
2862 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
2863 | symbol_name_match_type::SEARCH_NAME. | |
2864 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
2865 | symbol_name_match_type::FULL. | |
2866 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
2867 | symbol_name_match_type::SEARCH_NAME. | |
2868 | * infrun.c (insert_exception_resume_breakpoint): Use | |
2869 | lookup_symbol_search_name. | |
2870 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
2871 | * psymtab.c (maintenance_check_psymtabs): Use | |
2872 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
2873 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
2874 | SYMBOL_SEARCH_NAME. | |
2875 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
2876 | if symbol_name_match_type::SEARCH_NAME. | |
2877 | (lookup_symbol_in_language): Pass down | |
2878 | symbol_name_match_type::FULL. | |
2879 | (lookup_symbol_search_name): New. | |
2880 | (lookup_language_this): Pass down | |
2881 | symbol_name_match_type::SEARCH_NAME. | |
2882 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
2883 | 'match_type'. Pass it down. | |
2884 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
2885 | (lookup_symbol_search_name): New declaration. | |
2886 | (lookup_symbol_in_block): New 'match_type' parameter. | |
2887 | ||
f98fc17b PA |
2888 | 2018-01-05 Pedro Alves <palves@redhat.com> |
2889 | ||
2890 | PR gdb/22670 | |
2891 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
2892 | ada_lookup_symbol. | |
2893 | (ada_lookup_symbol): Reimplement in terms of | |
2894 | ada_lookup_symbol_list, bits factored out from | |
2895 | ada_lookup_encoded_symbol. | |
2896 | ||
342f8240 JB |
2897 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2898 | ||
2899 | * ada-exp.y (write_object_renaming): When subscripting an array | |
2900 | using a symbol as the index, pass the block in call to | |
2901 | ada_lookup_encoded_symbol when looking that symbol up. | |
2902 | ||
7150d33c JG |
2903 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
2904 | ||
2905 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
2906 | TYPE_INDEX_TYPE. | |
2907 | ||
cc0e770c JB |
2908 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2909 | ||
2910 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
2911 | the case where VALUE_LVAL (val0) is not lval_memory. | |
2912 | ||
f79da888 | 2913 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
2914 | |
2915 | * ada-valprint.c (print_optional_low_bound): Handle | |
2916 | character-indexed array printing like boolean-indexed array | |
2917 | printing. | |
2918 | ||
cd385f94 JB |
2919 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2920 | ||
2921 | * NEWS: Create a new section for the next release branch. | |
2922 | Rename the section of the current branch, now that it has | |
2923 | been cut. | |
2924 | ||
09aca949 JB |
2925 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2926 | ||
2927 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
2928 | * version.in: Bump version to 8.1.50.DATE-git. | |
2929 | ||
9f757bf7 XR |
2930 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
2931 | ||
2932 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
2933 | Add field. | |
2934 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
2935 | Add field. | |
2936 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
2937 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
2938 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
2939 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
2940 | Update all callers. | |
2941 | (create_excep_cond_exprs) <ex>: Add parameter. | |
2942 | (re_set_exception): Update create_excep_cond_exprs call. | |
2943 | (print_it_exception, print_one_exception, print_mention_exception) | |
2944 | (print_recreate_exception): Add "catch handler" handling. | |
2945 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
2946 | (check_status_catch_handlers, print_it_catch_handlers) | |
2947 | (print_one_catch_handlers, print_mention_catch_handlers) | |
2948 | (print_recreate_catch_handlers): New function. | |
2949 | (catch_handlers_breakpoint_ops): New variable. | |
2950 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
2951 | Add parameter. Add "catch handler" handling. | |
2952 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
2953 | Add "catch handler" handling. | |
2954 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
2955 | handling. | |
2956 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
2957 | call. | |
2958 | (catch_ada_handlers_command): New function. | |
2959 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
2960 | operations structure. | |
2961 | (_initialize_ada_language): Add "catch handlers" command entry. | |
2962 | * NEWS: Document "catch handlers" feature. | |
2963 | ||
9fe561ab JB |
2964 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2965 | ||
2966 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
2967 | account when creating the array type of the slice. | |
2968 | (ada_value_slice): Likewise. | |
2969 | ||
a405673c JB |
2970 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2971 | ||
2972 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
2973 | New enum value. | |
2974 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
2975 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
2976 | New parameter. Update all callers in this file. | |
2977 | (array_type_has_dynamic_stride): New function. | |
2978 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
2979 | of arrays with dynamic byte strides. | |
2980 | * dwarf2read.c (read_array_type): Add support for dynamic | |
2981 | DW_AT_byte_stride attributes. | |
2982 | ||
74a2f8ff JB |
2983 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2984 | ||
2985 | * dwarf2read.c (read_unspecified_type): Treat | |
2986 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
2987 | ||
e2882c85 JB |
2988 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2989 | ||
2990 | Update copyright year range in all GDB files. | |
2991 | ||
1690bb24 JB |
2992 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2993 | ||
2994 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
2995 | and gdb/testsuite/gdb.base/step-line.c. | |
2996 | ||
0f0c98a8 JB |
2997 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2998 | ||
2999 | * copyright.py (main): Dump the contents of | |
3000 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
3001 | even if BY_HAND is empty. | |
3002 | ||
82e1e79a JB |
3003 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
3004 | ||
3005 | * top.c (print_gdb_version): Update Copyright year in version | |
3006 | message. | |
3007 | ||
053f54e5 | 3008 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 3009 | |
053f54e5 | 3010 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 3011 | |
053f54e5 | 3012 | For older changes see ChangeLog-2017. |
c906108c SS |
3013 | \f |
3014 | Local Variables: | |
3015 | mode: change-log | |
3016 | left-margin: 8 | |
3017 | fill-column: 74 | |
3018 | version-control: never | |
57da7796 | 3019 | coding: utf-8 |
c906108c | 3020 | End: |