Commit | Line | Data |
---|---|---|
bc09b0c1 SM |
1 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
2 | ||
3 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
4 | inf_ptrace_detach_success. | |
5 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
6 | instead of inferior_ptid, pass it to detach_inferior. | |
7 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
8 | parameter. | |
9 | * inferior.c (detach_inferior): Add overload that takes an | |
10 | inferior object. | |
11 | * inferior.h (detach_inferior): Likewise. | |
12 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
13 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
14 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
15 | ||
6e1e1966 SM |
16 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
17 | ||
18 | * target.h (struct target_ops) <to_detach>: Add inferior | |
19 | parameter. | |
20 | (target_detach): Likewise. | |
21 | * target.c (dispose_inferior): Pass inferior down. | |
22 | (target_detach): Pass inferior down. Assert that it is equal to | |
23 | the current inferior. | |
24 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
25 | * corefile.c (core_file_command): Pass current_inferior() down. | |
26 | * corelow.c (core_detach): Add inferior parameter. | |
27 | * darwin-nat.c (darwin_detach): Likewise. | |
28 | * gnu-nat.c (gnu_detach): Likewise. | |
29 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
30 | * infcmd.c (detach_command): Pass current_inferior() down to | |
31 | target_detach. | |
32 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
33 | target_detach. | |
34 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
35 | target_detach. | |
36 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
37 | * linux-thread-db.c (thread_db_detach): Likewise. | |
38 | * nto-procfs.c (procfs_detach): Likewise. | |
39 | * procfs.c (procfs_detach): Likewise. | |
40 | * record.c (record_detach): Likewise. | |
41 | * record.h (struct inferior): Forward-declare. | |
42 | (record_detach): Add inferior parameter. | |
43 | * remote-sim.c (gdbsim_detach): Likewise. | |
44 | * remote.c (remote_detach_1): Likewise. | |
45 | (remote_detach): Likewise. | |
46 | (extended_remote_detach): Likewise. | |
47 | * sol-thread.c (sol_thread_detach): Likewise. | |
48 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
49 | * target-delegates.c: Re-generate. | |
50 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
51 | * windows-nat.c (windows_detach): Add inferior parameter. | |
52 | ||
6bd6f3b6 SM |
53 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
54 | ||
55 | * target.h (struct target_ops) <to_detach>: Remove args | |
56 | parameter. | |
57 | (target_detach): Likewise. | |
58 | * target.c (dispose_inferior): Adjust. | |
59 | (target_detach): Remove args parameter, adjust. | |
60 | * aix-thread.c (aix_thread_detach): Adjust. | |
61 | * corefile.c (core_file_command): Adjust. | |
62 | * corelow.c (core_detach): Adjust. | |
63 | * darwin-nat.c (darwin_detach): Adjust. | |
64 | * gnu-nat.c (gnu_detach): Adjust. | |
65 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
66 | * infcmd.c (detach_command): Adjust | |
67 | * infrun.c (follow_fork_inferior): Adjust. | |
68 | (handle_vfork_child_exec_or_exit): Adjust. | |
69 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
70 | * linux-fork.h (linux_fork_detach): Likewise. | |
71 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
72 | * linux-thread-db.c (thread_db_detach): Likewise. | |
73 | * nto-procfs.c (procfs_detach): Likewise. | |
74 | * procfs.c (procfs_detach): Likewise. | |
75 | (do_detach): Remove signo parameter. | |
76 | * record.c (record_detach): Remove args parameter. | |
77 | * record.h (record_detach): Likewise. | |
78 | * remote-sim.c (gdbsim_detach): Likewise. | |
79 | * remote.c (remote_detach_1): Likewise. | |
80 | (remote_detach): Likewise. | |
81 | (extended_remote_detach): Likewise. | |
82 | * sol-thread.c (sol_thread_detach): Likewise. | |
83 | * target-delegates.c: Re-generate. | |
84 | * top.c (struct qt_args) <args>: Remove field. | |
85 | (kill_or_detach): Don't pass args. | |
86 | (quit_force): Don't set args. | |
87 | * windows-nat.c (windows_detach): Remove args parameter. | |
88 | ||
88af8ea8 YQ |
89 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
90 | ||
91 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
92 | (arm_linux_init_abi): Install it. | |
93 | ||
dea445b9 YQ |
94 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
95 | ||
96 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
97 | arm-linux-gnueabihf. | |
98 | ||
4a17f768 YQ |
99 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
100 | ||
101 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
102 | m_abbrevs. | |
103 | (abbrev_table::add_abbrev): Update. | |
104 | (abbrev_table::lookup_abbrev): Update. | |
105 | ||
d679c21a YQ |
106 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
107 | ||
108 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
109 | ||
7d937cad SDJ |
110 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
111 | ||
112 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
113 | to "std::string". | |
114 | ||
9e14690d TT |
115 | 2018-01-17 Tom Tromey <tom@tromey.com> |
116 | ||
117 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
118 | ||
50a82047 TT |
119 | 2018-01-17 Tom Tromey <tom@tromey.com> |
120 | ||
121 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
122 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
123 | (create_array_type_with_stride): Update. | |
124 | * dwarf2read.c (set_die_type): Update. | |
125 | ||
c89b44cd TT |
126 | 2018-01-17 Tom Tromey <tom@tromey.com> |
127 | ||
128 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
129 | (dwarf2_cu::method_info): Now a std::vector. | |
130 | (add_to_method_list): Update. | |
131 | (free_delayed_list): Remove. | |
132 | (compute_delayed_physnames): Update. | |
133 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
134 | list. Remove cleanups. | |
135 | (psymtab_include_file_name): Add name_holder parameter. Use | |
136 | unique_xmalloc_ptr. | |
137 | (dwarf_decode_lines): Update. | |
138 | ||
fcd3b13d SM |
139 | 2018-01-17 Tom Tromey <tom@tromey.com> |
140 | Simon Marchi <simon.marchi@ericsson.com> | |
141 | ||
142 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
143 | (dwarf2_per_objfile::free_cached_comp_units) | |
144 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
145 | (init_cutu_and_read_dies_no_follow): Update. | |
146 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
147 | (dwarf2_cu::~dwarf2_cu): New. | |
148 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
149 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
150 | ||
685af9cd TT |
151 | 2018-01-17 Tom Tromey <tom@tromey.com> |
152 | Simon Marchi <simon.marchi@ericsson.com> | |
153 | ||
154 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
155 | (struct die_reader_specs) <abbrev_table>: New member. | |
156 | (struct abbrev_table): Add constructor. | |
157 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
158 | <abbrev_obstack>: Now an auto_obstack. | |
159 | (abbrev_table_up): New typedef. | |
160 | (init_cu_die_reader): Add abbrev_table parameter. | |
161 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
162 | Add result_dwo_abbrev_table. | |
163 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
164 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
165 | Update. | |
166 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
167 | parameter. | |
168 | (skip_children): Update. | |
169 | (abbrev_table::alloc_abbrev): Rename from | |
170 | abbrev_table_alloc_abbrev. | |
171 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
172 | (abbrev_table::lookup_abbrev): Rename from | |
173 | abbrev_table_lookup_abbrev. | |
174 | (abbrev_table_read_table): Return abbrev_table_up. | |
175 | (abbrev_table_free, abbrev_table_free_cleanup) | |
176 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
177 | (load_partial_dies): Update. | |
178 | ||
5e2db402 TT |
179 | 2018-01-17 Tom Tromey <tom@tromey.com> |
180 | ||
181 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
182 | (read_func_scope, read_variable): Update. | |
183 | (new_symbol): Remove. | |
184 | (new_symbol_full): Rename to new_symbol. | |
185 | ||
ee7f689e | 186 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
187 | |
188 | PR gdb/16577 | |
189 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
190 | a warning instead of throwing an error, set section size to 0 and return | |
191 | NULL. | |
192 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
193 | ||
4d9b86e1 SM |
194 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
195 | ||
196 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
197 | std::string. | |
198 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
199 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
200 | Likewise. | |
201 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
202 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
203 | ||
a7b2d0fb SM |
204 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
205 | ||
206 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
207 | ||
f517c180 EA |
208 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
209 | ||
210 | PR gdb/21559 | |
211 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
212 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
213 | * configure: Regenerate. | |
214 | ||
7045b1ca YQ |
215 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
216 | ||
217 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
218 | function. | |
219 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
220 | gcc_target_options. | |
221 | ||
db422fb2 PA |
222 | 2018-01-15 Pedro Alves <palves@redhat.com> |
223 | ||
224 | * common/signals-state-save-restore.c | |
225 | (save_original_signals_state): Fix typos. | |
226 | ||
ba643918 SDJ |
227 | 2017-01-12 Tom Tromey <tom@tromey.com> |
228 | Sergio Durigan Junior <sergiodj@redhat.com> | |
229 | ||
230 | * Makefile.in (install-only): Install gdb-add-index. | |
231 | ||
906b4aac JB |
232 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
233 | ||
234 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
235 | ||
bdf2a94a AA |
236 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
237 | ||
238 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
239 | insert_breakpoints fails. | |
240 | ||
71d378ae PA |
241 | 2018-01-11 Pedro Alves <palves@redhat.com> |
242 | ||
243 | PR gdb/22583 | |
244 | * infrun.c (resume): Rename to ... | |
245 | (resume_1): ... this. | |
246 | (resume): Reimplement as wrapper around resume_1. | |
247 | ||
3cada740 PA |
248 | 2018-01-11 Pedro Alves <palves@redhat.com> |
249 | ||
250 | PR remote/22597 | |
251 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
252 | general thread instead of to 'magic_null_ptid'. | |
253 | ||
618daa93 PA |
254 | 2018-01-10 Pedro Alves <palves@redhat.com> |
255 | ||
256 | * language.h (language_get_symbol_name_matcher): Rename ... | |
257 | (get_symbol_name_matcher): ... this. | |
258 | * language.c (language_get_symbol_name_matcher): Ditto. | |
259 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
260 | callers adjusted. | |
261 | ||
c63d3e8d PA |
262 | 2018-01-10 Pedro Alves <palves@redhat.com> |
263 | ||
264 | PR gdb/22670 | |
265 | * dwarf2read.c | |
266 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
267 | Adjust to use language_get_symbol_name_matcher instead of | |
268 | language_defn::la_get_symbol_name_matcher. | |
269 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
270 | and the lookup name is a verbatim match, return Ada's matcher. | |
271 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
272 | (ada_lookup_name_info::verbatim_p):: New method. | |
273 | ||
d4c2a405 PA |
274 | 2018-01-10 Pedro Alves <palves@redhat.com> |
275 | ||
276 | PR gdb/22670 | |
277 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
278 | minsym's language is language_auto or language_cplus, pass down | |
279 | language_ada instead. | |
280 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
281 | ||
8825213e PA |
282 | 2018-01-10 Pedro Alves <palves@redhat.com> |
283 | ||
284 | PR gdb/22670 | |
285 | * minsyms.c (linkage_name_str): New function. | |
286 | (iterate_over_minimal_symbols): Use it. | |
287 | ||
2d97a5d9 JB |
288 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
289 | ||
290 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
291 | ||
92fce24d JB |
292 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
293 | ||
294 | * configure.ac: Check for kinfo_getfile in libutil. | |
295 | * configure: Regenerate. | |
296 | * config.in: Regenerate. | |
297 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
298 | (fbsd_fetch_cmdline): New. | |
299 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
300 | rather than calling error. | |
301 | (fbsd_info_proc): New. | |
302 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
303 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
304 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
305 | ||
262f62f5 JB |
306 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
307 | ||
308 | * fbsd-nat.c (struct free_deleter): Remove. | |
309 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
310 | ||
b999e203 JB |
311 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
312 | ||
313 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
314 | NULL for an empty pathname. | |
315 | ||
d2176225 JB |
316 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
317 | ||
318 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
319 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
320 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
321 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
322 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
323 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
324 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
325 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
326 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
327 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
328 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
329 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
330 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
331 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
332 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
333 | ||
9c4ac400 ST |
334 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
335 | ||
336 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
337 | (gnu_xfer_auxv): New function. | |
338 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
339 | TARGET_OBJECT_AUXV. | |
340 | ||
1e5ded6c YQ |
341 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
342 | Simon Marchi <simon.marchi@ericsson.com> | |
343 | ||
344 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
345 | common/selftest.c. | |
346 | (COMMON_OBS): Remove selftest.o. | |
347 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
348 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
349 | * configure: Re-generated. | |
350 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
351 | GDB_SELF_TEST. | |
352 | (maintenance_info_selftests): Likewise. | |
353 | ||
04bafb1e XR |
354 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
355 | ||
356 | * ada-valprint.c (val_print_packed_array_elements): Use | |
357 | proper number of elements when printing an array indexed | |
358 | by an enumeration type. | |
359 | ||
518817b3 SM |
360 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
361 | ||
362 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
363 | (dw2_get_file_names_reader): Adjust. | |
364 | (lookup_dwo_signatured_type): Adjust. | |
365 | (lookup_dwp_signatured_type): Adjust. | |
366 | (lookup_signatured_type): Adjust. | |
367 | (create_type_unit_group): Adjust. | |
368 | (get_type_unit_group): Adjust. | |
369 | (process_psymtab_comp_unit_reader): Adjust. | |
370 | (build_type_psymtabs_reader): Adjust. | |
371 | (scan_partial_symbols): Adjust. | |
372 | (add_partial_symbol): Adjust. | |
373 | (add_partial_subprogram): Adjust. | |
374 | (peek_die_abbrev): Adjust. | |
375 | (fixup_go_packaging): Adjust. | |
376 | (process_imported_unit_die): Adjust. | |
377 | (dwarf2_compute_name): Adjust. | |
378 | (dwarf2_physname): Adjust. | |
379 | (read_import_statement): Adjust. | |
380 | (handle_DW_AT_stmt_list): Adjust. | |
381 | (read_file_scope): Adjust. | |
382 | (read_func_scope): Adjust. | |
383 | (read_lexical_block_scope): Adjust. | |
384 | (read_call_site_scope): Adjust. | |
385 | (read_variable): Adjust. | |
386 | (dwarf2_rnglists_process): Adjust. | |
387 | (dwarf2_ranges_process): Adjust. | |
388 | (dwarf2_ranges_read): Adjust. | |
389 | (dwarf2_get_pc_bounds): Adjust. | |
390 | (dwarf2_record_block_ranges): Adjust. | |
391 | (dwarf2_add_field): Adjust. | |
392 | (dwarf2_add_member_fn): Adjust. | |
393 | (read_structure_type): Adjust. | |
394 | (process_structure_scope): Adjust. | |
395 | (read_enumeration_type): Adjust. | |
396 | (read_array_type): Adjust. | |
397 | (mark_common_block_symbol_computed): Adjust. | |
398 | (read_common_block): Adjust. | |
399 | (read_namespace_type): Adjust. | |
400 | (read_namespace): Adjust. | |
401 | (read_module_type): Adjust. | |
402 | (read_tag_pointer_type): Adjust. | |
403 | (read_tag_ptr_to_member_type): Adjust. | |
404 | (read_tag_string_type): Adjust. | |
405 | (read_subroutine_type): Adjust. | |
406 | (read_typedef): Adjust. | |
407 | (read_base_type): Adjust. | |
408 | (attr_to_dynamic_prop): Adjust. | |
409 | (read_subrange_type): Adjust. | |
410 | (read_unspecified_type): Adjust. | |
411 | (dwarf2_read_abbrevs): Adjust. | |
412 | (load_partial_dies): Adjust. | |
413 | (read_partial_die): Adjust. | |
414 | (find_partial_die): Adjust. | |
415 | (guess_partial_die_structure_name): Adjust. | |
416 | (fixup_partial_die): Adjust. | |
417 | (read_attribute_value): Adjust. | |
418 | (read_addr_index): Adjust. | |
419 | (read_addr_index_from_leb128): Adjust. | |
420 | (read_str_index): Adjust. | |
421 | (dwarf2_string_attr): Adjust. | |
422 | (get_debug_line_section): Adjust. | |
423 | (dwarf_decode_line_header): Adjust. | |
424 | (lnp_state_machine::check_line_address): Adjust. | |
425 | (dwarf_decode_lines_1): Adjust. | |
426 | (dwarf_decode_lines): Adjust. | |
427 | (dwarf2_start_symtab): Adjust. | |
428 | (var_decode_location): Adjust. | |
429 | (new_symbol_full): Adjust. | |
430 | (dwarf2_const_value_data): Adjust. | |
431 | (dwarf2_const_value_attr): Adjust. | |
432 | (dwarf2_const_value): Adjust. | |
433 | (die_type): Adjust. | |
434 | (die_containing_type): Adjust. | |
435 | (build_error_marker_type): Adjust. | |
436 | (lookup_die_type): Adjust. | |
437 | (guess_full_die_structure_name): Adjust. | |
438 | (anonymous_struct_prefix): Adjust. | |
439 | (determine_prefix): Adjust. | |
440 | (dwarf2_name): Adjust. | |
441 | (follow_die_ref_or_sig): Adjust. | |
442 | (follow_die_offset): Adjust. | |
443 | (follow_die_ref): Adjust. | |
444 | (follow_die_sig_1): Adjust. | |
445 | (follow_die_sig): Adjust. | |
446 | (get_signatured_type): Adjust. | |
447 | (get_DW_AT_signature_type): Adjust. | |
448 | (decode_locdesc): Adjust. | |
449 | (dwarf_decode_macros): Adjust. | |
450 | (cu_debug_loc_section): Adjust. | |
451 | (fill_in_loclist_baton): Adjust. | |
452 | (dwarf2_symbol_mark_computed): Adjust. | |
453 | (init_one_comp_unit): Don't assign | |
454 | dwarf2_cu::dwarf2_per_objfile. | |
455 | (set_die_type): Adjust. | |
456 | ||
ed2dc618 SM |
457 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
458 | ||
459 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
460 | <dwarf2_per_objfile>: New field. | |
461 | (dwarf2_per_objfile): Remove global. | |
462 | (get_dwarf2_per_objfile): New function. | |
463 | (set_dwarf2_per_objfile): New function. | |
464 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
465 | dwarf2_per_objfile. | |
466 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
467 | (read_abbrev_offset): Likewise. | |
468 | (read_indirect_string): Likewise. | |
469 | (read_indirect_line_string): Likewise. | |
470 | (read_indirect_string_at_offset): Likewise. | |
471 | (read_indirect_string_from_dwz): Likewise. | |
472 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
473 | dwarf2_per_objfile. | |
474 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
475 | (create_all_comp_units): Change objfile parameter to | |
476 | dwarf2_per_objfile. | |
477 | (create_all_type_units): Likewise. | |
478 | (process_queue): Add dwarf2_per_objfile parameter. | |
479 | (read_and_check_comp_unit_head): Likewise. | |
480 | (lookup_dwo_unit_in_dwp): Likewise. | |
481 | (get_dwp_file): Likewise. | |
482 | (process_cu_includes): Likewise. | |
483 | (struct free_dwo_file_cleanup_data): New struct. | |
484 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
485 | set_dwarf2_per_objfile. | |
486 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
487 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
488 | context, adjust calls. | |
489 | (dw2_instantiate_symtab): Likewise. | |
490 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
491 | (dw2_get_cu): Likewise. | |
492 | (create_cu_from_index_list): Change objfile parameter to | |
493 | dwarf2_per_objfile. | |
494 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
495 | context, adjust calls. | |
496 | (create_cus_from_index): Likewise. | |
497 | (create_signatured_type_table_from_index): Change objfile | |
498 | parameter to dwarf2_per_objfile. | |
499 | (create_signatured_type_table_from_debug_names): Change objfile | |
500 | parameter to dwarf2_per_objfile. | |
501 | (create_addrmap_from_index): Likewise. | |
502 | (create_addrmap_from_aranges): Likewise. | |
503 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
504 | (dw2_setup): Remove. | |
505 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
506 | context. | |
507 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
508 | get_dwarf2_per_objfile. | |
509 | (dw2_forget_cached_source_info): Likewise. | |
510 | (dw2_map_symtabs_matching_filename): Likewise. | |
511 | (struct dw2_symtab_iterator) <index>: Remove. | |
512 | <dwarf2_per_objfile>: New field. | |
513 | (dw2_symtab_iter_init): Replace index parameter with | |
514 | dwarf2_per_objfile. | |
515 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
516 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
517 | (dw2_print_stats): Likewise. | |
518 | (dw2_dump): Likewise. | |
519 | (dw2_expand_symtabs_for_function): Likewise. | |
520 | (dw2_expand_all_symtabs): Likewise. | |
521 | (dw2_expand_symtabs_with_fullname): Likewise. | |
522 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
523 | with dwarf2_per_objfile. | |
524 | (dw_expand_symtabs_matching_file_matcher): Add | |
525 | dwarf2_per_objfile parameter and adjust calls. | |
526 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
527 | adjust calls. | |
528 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
529 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
530 | adjust calls. | |
531 | (create_cus_from_debug_names_list): Replace objfile parameter | |
532 | with dwarf2_per_objfile and adjust calls. | |
533 | (create_cus_from_debug_names): Likewise. | |
534 | (dwarf2_read_debug_names): Likewise. | |
535 | (mapped_debug_names::namei_to_name): Adjust call. | |
536 | (dw2_debug_names_iterator::next): Likewise. | |
537 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
538 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
539 | (dw2_debug_names_dump): Likewise. | |
540 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
541 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
542 | (dwarf2_initialize_objfile): Likewise. | |
543 | (dwarf2_build_psymtabs): Likewise. | |
544 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
545 | this_cu. | |
546 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
547 | (read_and_check_comp_unit_head): Likewise. | |
548 | (read_abbrev_offset): Likewise. | |
549 | (create_debug_type_hash_table): Likewise. | |
550 | (create_debug_types_hash_table): Likewise. | |
551 | (create_all_type_units): Replace objfile parameter with | |
552 | dwarf2_per_objfile. | |
553 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
554 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
555 | with dwarf2_per_objfile. | |
556 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
557 | (lookup_dwp_signatured_type): Likewise. | |
558 | (lookup_signatured_type): Likewise. | |
559 | (read_cutu_die_from_dwo): Likewise. | |
560 | (init_tu_and_read_dwo_dies): Likewise. | |
561 | (init_cutu_and_read_dies): Likewise. | |
562 | (init_cutu_and_read_dies_no_follow): Likewise. | |
563 | (allocate_type_unit_groups_table): Add objfile parameter. | |
564 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
565 | (get_type_unit_group): Likewise. | |
566 | (process_psymtab_comp_unit): Update call. | |
567 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
568 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
569 | (print_tu_stats): Likewise. | |
570 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
571 | in void* parameter. | |
572 | (build_type_psymtabs): Change objfile parameter to | |
573 | dwarf2_per_objfile. | |
574 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
575 | passed in void* parameter. | |
576 | (process_skeletonless_type_units): Change objfile parameter to | |
577 | dwarf2_per_objfile. | |
578 | (set_partial_user): Likewise. | |
579 | (dwarf2_build_psymtabs_hard): Likewise. | |
580 | (read_comp_units_from_section): Likewise. | |
581 | (create_all_comp_units): Likewise. | |
582 | (scan_partial_symbols): Update calls. | |
583 | (add_partial_symbol): Likewise. | |
584 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
585 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
586 | (process_queue): Add dwarf2_per_objfile parameter. | |
587 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
588 | (compute_compunit_symtab_includes): Likewise. | |
589 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
590 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
591 | (process_full_type_unit): Likewise. | |
592 | (process_imported_unit_die): Update call. | |
593 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
594 | (read_file_scope): Likewise. | |
595 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
596 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
597 | (create_cus_hash_table): Likewise. | |
598 | (create_dwp_hash_table): Likewise. | |
599 | (create_dwo_unit_in_dwp_v1): Likewise. | |
600 | (create_dwp_v2_section): Likewise. | |
601 | (create_dwo_unit_in_dwp_v2): Likewise. | |
602 | (lookup_dwo_unit_in_dwp): Likewise. | |
603 | (try_open_dwop_file): Likewise. | |
604 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
605 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
606 | cleanup to include a reference to dwarf2_per_objfile. | |
607 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
608 | (open_and_init_dwp_file): Likewise. | |
609 | (get_dwp_file): Likewise. | |
610 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
611 | (queue_and_load_all_dwo_tus): Update call. | |
612 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
613 | data. | |
614 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
615 | (dwarf2_ranges_process): Likewise. | |
616 | (dwarf2_get_pc_bounds): Likewise. | |
617 | (mark_common_block_symbol_computed): Likewise. | |
618 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
619 | (dwarf2_read_abbrevs): Update call. | |
620 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
621 | (find_partial_die): Likewise. | |
622 | (fixup_partial_die): Likewise. | |
623 | (read_attribute_value): Likewise. | |
624 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
625 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
626 | parameter. | |
627 | (read_indirect_string_from_dwz): Add objfile parameter. | |
628 | (read_indirect_string): Add objfile parameter. | |
629 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
630 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
631 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
632 | call dw2_setup. | |
633 | (read_str_index): Use dwarf2_per_objfile from cu. | |
634 | (get_debug_line_section): Likewise. | |
635 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
636 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
637 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
638 | (build_error_marker_type): Likewise. | |
639 | (lookup_die_type): Likewise. | |
640 | (determine_prefix): Likewise. | |
641 | (follow_die_offset): Likewise. | |
642 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
643 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
644 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
645 | (dwarf2_get_die_type): Likewise. | |
646 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
647 | (get_signatured_type): Likewise. | |
648 | (get_DW_AT_signature_type): Likewise. | |
649 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
650 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
651 | (cu_debug_loc_section): Likewise. | |
652 | (fill_in_loclist_baton): Likewise. | |
653 | (dwarf2_symbol_mark_computed): Likewise. | |
654 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
655 | dwarf2_per_objfile. | |
656 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
657 | parameter. | |
658 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
659 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
660 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
661 | (set_die_type): Use dwarf2_free_objfile from cu. | |
662 | (get_die_type_at_offset): Likewise. | |
663 | (dwarf2_per_objfile_free): Don't assign global variable. | |
664 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
665 | parameter, update m_debugstrlookup construction. | |
666 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
667 | parameter. | |
668 | <m_dwarf2_per_objfile>: New field. | |
669 | <lookup>: Use m_dwarf2_per_objfile. | |
670 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
671 | (psyms_seen_size): Likewise. | |
672 | (write_gdbindex): Replace objfile parameter with | |
673 | dwarf2_per_objfile. | |
674 | (write_debug_names): Likewise. | |
675 | (write_psymtabs_to_index): Likewise. | |
676 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
677 | calls. | |
678 | ||
e3b94546 SM |
679 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
680 | ||
681 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
682 | <dwarf2_per_objfile>: New field. | |
683 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
684 | <dwarf2_per_objfile>: New field. | |
685 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
686 | of objfile. | |
687 | (create_signatured_type_table_from_index): Likewise. | |
688 | (create_debug_type_hash_table): Likewise. | |
689 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
690 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
691 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
692 | objfile. | |
693 | (create_partial_symtab): Access objfile through | |
694 | dwarf2_per_objfile. | |
695 | (process_psymtab_comp_unit_reader): Likewise. | |
696 | (read_comp_units_from_section): Likewise. | |
697 | (scan_partial_symbols): Likewise. | |
698 | (add_partial_symbol): Likewise. | |
699 | (add_partial_subprogram): Likewise. | |
700 | (peek_die_abbrev): Likewise. | |
701 | (fixup_go_packaging): Likewise. | |
702 | (process_full_comp_unit): Likewise. | |
703 | (process_full_type_unit): Likewise. | |
704 | (process_imported_unit_die): Likewise. | |
705 | (dwarf2_compute_name): Likewise. | |
706 | (dwarf2_physname): Likewise. | |
707 | (read_import_statement): Likewise. | |
708 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
709 | objfile. | |
710 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
711 | (read_lexical_block_scope): Likewise. | |
712 | (read_call_site_scope): Likewise. | |
713 | (read_variable): Likewise. | |
714 | (dwarf2_rnglists_process): Likewise. | |
715 | (dwarf2_ranges_process): Likewise. | |
716 | (dwarf2_ranges_read): Likewise. | |
717 | (dwarf2_record_block_ranges): Likewise. | |
718 | (dwarf2_add_field): Likewise. | |
719 | (dwarf2_add_member_fn): Likewise. | |
720 | (read_structure_type): Likewise. | |
721 | (process_structure_scope): Likewise. | |
722 | (read_enumeration_type): Likewise. | |
723 | (read_array_type): Likewise. | |
724 | (read_common_block): Likewise. | |
725 | (read_namespace_type): Likewise. | |
726 | (read_namespace): Likewise. | |
727 | (read_module_type): Likewise. | |
728 | (read_tag_pointer_type): Likewise. | |
729 | (read_tag_ptr_to_member_type): Likewise. | |
730 | (read_tag_string_type): Likewise. | |
731 | (read_subroutine_type): Likewise. | |
732 | (read_typedef): Likewise. | |
733 | (read_base_type): Likewise. | |
734 | (attr_to_dynamic_prop): Likewise. | |
735 | (read_subrange_type): Likewise. | |
736 | (read_unspecified_type): Likewise. | |
737 | (load_partial_dies): Likewise. | |
738 | (read_partial_die): Likewise. | |
739 | (find_partial_die): Likewise. | |
740 | (guess_partial_die_structure_name): Likewise. | |
741 | (fixup_partial_die): Likewise. | |
742 | (read_attribute_value): Likewise. | |
743 | (read_addr_index_from_leb128): Likewise. | |
744 | (dwarf2_read_addr_index): Likewise. | |
745 | (dwarf2_string_attr): Likewise. | |
746 | (lnp_state_machine::check_line_address): Likewise. | |
747 | (dwarf_decode_lines_1): Likewise. | |
748 | (dwarf_decode_lines): Likewise. | |
749 | (dwarf2_start_symtab): Likewise. | |
750 | (var_decode_location): Likewise. | |
751 | (new_symbol_full): Likewise. | |
752 | (dwarf2_const_value_data): Likewise. | |
753 | (dwarf2_const_value_attr): Likewise. | |
754 | (dwarf2_const_value): Likewise. | |
755 | (die_type): Likewise. | |
756 | (die_containing_type): Likewise. | |
757 | (lookup_die_type): Likewise. | |
758 | (guess_full_die_structure_name): Likewise. | |
759 | (anonymous_struct_prefix): Likewise. | |
760 | (dwarf2_name): Likewise. | |
761 | (follow_die_ref_or_sig): Likewise. | |
762 | (follow_die_offset): Likewise. | |
763 | (follow_die_ref): Likewise. | |
764 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
765 | (dwarf2_fetch_constant_bytes): Likewise. | |
766 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
767 | (dwarf2_get_die_type): Likewise. | |
768 | (follow_die_sig): Likewise. | |
769 | (decode_locdesc): Likewise. | |
770 | (dwarf2_per_cu_objfile): Likewise. | |
771 | (dwarf2_per_cu_text_offset): Likewise. | |
772 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
773 | objfile. | |
774 | (set_die_type): Access objfile through | |
775 | dwarf2_per_objfile. | |
776 | ||
b01ba14d SM |
777 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
778 | ||
779 | * valprint.c (converted_character_d): Remove typedef. | |
780 | (DEF_VEC_O (converted_character_d)): Remove. | |
781 | (count_next_character): Use std::vector. | |
782 | (print_converted_chars_to_obstack): Likewise. | |
783 | (generic_printstr): Likewise. | |
784 | ||
4d0fdd9b SM |
785 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
786 | ||
787 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
788 | <value>: Change type to unique_xmalloc_ptr. | |
789 | (gdb_xml_value_s): Remove typedef. | |
790 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
791 | (gdb_xml_element_start_handler): Change parameter type to | |
792 | std::vector. | |
793 | (xml_find_attribute): Likewise. | |
794 | * xml-support.c (xml_find_attribute): Change parameter type to | |
795 | std::vector and adjust. | |
796 | (gdb_xml_values_cleanup): Remove. | |
797 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
798 | (xinclude_start_include): Change paraeter type to std::vector | |
799 | and adjust. | |
800 | * btrace.c (check_xml_btrace_version): Likewise. | |
801 | (parse_xml_btrace_block): Likewise. | |
802 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
803 | (parse_xml_btrace_pt): Likewise. | |
804 | (parse_xml_btrace_conf_bts): Likewise. | |
805 | (parse_xml_btrace_conf_pt): Likewise. | |
806 | * memory-map.c (memory_map_start_memory): Likewise. | |
807 | (memory_map_start_property): Likewise. | |
808 | * osdata.c (osdata_start_osdata): Likewise. | |
809 | (osdata_start_item): Likewise. | |
810 | (osdata_start_column): Likewise. | |
811 | * remote.c (start_thread): Likewise. | |
812 | * solib-aix.c (library_list_start_library): Likewise. | |
813 | (library_list_start_list): Likewise. | |
814 | * solib-svr4.c (library_list_start_library): Likewise. | |
815 | (svr4_library_list_start_list): Likewise. | |
816 | * solib-target.c (library_list_start_segment): Likewise. | |
817 | (library_list_start_section): Likewise. | |
818 | (library_list_start_library): Likewise. | |
819 | (library_list_start_list): Likewise. | |
820 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
821 | (traceframe_info_start_tvar): Likewise. | |
822 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
823 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
824 | (tdesc_start_feature): Likewise. | |
825 | (tdesc_start_reg): Likewise. | |
826 | (tdesc_start_union): Likewise. | |
827 | (tdesc_start_struct): Likewise. | |
828 | (tdesc_start_flags): Likewise. | |
829 | (tdesc_start_enum): Likewise. | |
830 | (tdesc_start_field): Likewise. | |
831 | (tdesc_start_enum_value): Likewise. | |
832 | (tdesc_start_vector): Likewise. | |
833 | ||
f979c73f SM |
834 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
835 | ||
836 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
837 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
838 | Remove. | |
839 | (python_xmethod_worker::clone): Remove. | |
840 | * valops.c (find_overload_match): Use std::move instead of | |
841 | clone. | |
842 | ||
ba18742c SM |
843 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
844 | ||
845 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
846 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
847 | <free_xmethod_worker_data>: Remove. | |
848 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
849 | <get_xmethod_arg_types>: Remove. | |
850 | <get_xmethod_result_type>: Remove. | |
851 | <invoke_xmethod>: Remove. | |
852 | * extension.c (new_xmethod_worker): Remove. | |
853 | (clone_xmethod_worker): Remove. | |
854 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
855 | pointer. | |
856 | (get_xmethod_arg_types): Rename to... | |
857 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
858 | (get_xmethod_result_type): Rename to... | |
859 | (xmethod_worker::get_result_type): ... this, and adjust. | |
860 | (invoke_xmethod): Remove. | |
861 | (free_xmethod_worker): Remove. | |
862 | (free_xmethod_worker_vec): Remove. | |
863 | * extension.h (enum ext_lang_rc): Move here from | |
864 | extension-priv.h. | |
865 | (struct xmethod_worker): Add constructor and destructor. | |
866 | <data>: Remove. | |
867 | <value>: Remove. | |
868 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
869 | virtual pure methods. | |
870 | <get_arg_types, get_result_type>: New methods. | |
871 | (xmethod_worker_ptr): Remove typedef. | |
872 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
873 | (xmethod_worker_vec): Remove typedef. | |
874 | (xmethod_worker_up): New typedef. | |
875 | (invoke_xmethod): Remove. | |
876 | (clone_xmethod_worker): Remove. | |
877 | (free_xmethod_worker): Remove. | |
878 | (free_xmethod_worker_vec): Remove. | |
879 | (get_xmethod_arg_types): Remove. | |
880 | (get_xmethod_result_type): Remove. | |
881 | * valops.c (find_method_list): Use std::vector, don't use | |
882 | intermediate vector. | |
883 | (value_find_oload_method_list): Use std::vector. | |
884 | (find_overload_match): Use std::vector. | |
885 | (find_oload_champ): Use std::vector. | |
886 | * value.c (value_free): Use operator delete. | |
887 | (value_of_xmethod): Rename to... | |
888 | (value_from_xmethod): ... this. Don't assign | |
889 | xmethod_worker::value, take rvalue-reference. | |
890 | (result_type_of_xmethod): Adjust. | |
891 | (call_xmethod): Adjust. | |
892 | * value.h: Include extension.h. | |
893 | (struct xmethod_worker): Don't forward-declare. | |
894 | (value_of_xmethod): Rename to... | |
895 | (value_from_xmethod): ... this, take rvalue-reference. | |
896 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
897 | (struct python_xmethod_worker): ... this, add constructor and | |
898 | destructor. | |
899 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
900 | (gdbpy_free_xmethod_worker_data): Rename to... | |
901 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
902 | adjust. | |
903 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
904 | (python_xmethod_worker::clone): ... this and adjust. | |
905 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
906 | temporary vector. | |
907 | (gdbpy_get_xmethod_arg_types): Rename to... | |
908 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
909 | (gdbpy_get_xmethod_result_type): Rename to... | |
910 | (python_xmethod_worker::do_get_result_type): ... this and | |
911 | adjust. | |
912 | (gdbpy_invoke_xmethod): Rename to... | |
913 | (python_xmethod_worker::invoke): ... this and adjust. | |
914 | (new_python_xmethod_worker): Rename to... | |
915 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
916 | adjust. | |
917 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
918 | Remove. | |
919 | (gdbpy_free_xmethod_worker_data): Remove. | |
920 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
921 | (gdbpy_get_xmethod_arg_types): Remove. | |
922 | (gdbpy_get_xmethod_result_type): Remove. | |
923 | (gdbpy_invoke_xmethod): Remove. | |
924 | * python/python.c (python_extension_ops): Remove obsolete | |
925 | callbacks. | |
926 | ||
e379cee6 PA |
927 | 2018-01-05 Pedro Alves <palves@redhat.com> |
928 | ||
929 | PR gdb/18653 | |
930 | * common/signals-state-save-restore.c | |
931 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
932 | find a custom handler preinstalled, instead of internal erroring. | |
933 | But only warn if !quiet. | |
934 | * common/signals-state-save-restore.h | |
935 | (save_original_signals_state): New parameter 'quiet'. | |
936 | * main.c (captured_main_1): Move save_original_signals_state call | |
937 | after option handling, and pass QUIET. | |
938 | ||
a655456c PA |
939 | 2018-01-05 Pedro Alves <palves@redhat.com> |
940 | ||
941 | * spu-tdep.c (spu_catch_start): Pass | |
942 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
943 | ||
de63c46b PA |
944 | 2018-01-05 Pedro Alves <palves@redhat.com> |
945 | ||
946 | PR gdb/22670 | |
947 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
948 | (ada_get_symbol_name_matcher): Use it for | |
949 | symbol_name_match_type::SEARCH_NAME. | |
950 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
951 | it down instead of assuming symbol_name_match_type::FULL. | |
952 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
953 | * c-valprint.c (print_unpacked_pointer): Use | |
954 | lookup_symbol_search_name instead of lookup_symbol. | |
955 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
956 | symbol_name_match_type::SEARCH_NAME. | |
957 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
958 | symbol_name_match_type::FULL. | |
959 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
960 | symbol_name_match_type::SEARCH_NAME. | |
961 | * infrun.c (insert_exception_resume_breakpoint): Use | |
962 | lookup_symbol_search_name. | |
963 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
964 | * psymtab.c (maintenance_check_psymtabs): Use | |
965 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
966 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
967 | SYMBOL_SEARCH_NAME. | |
968 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
969 | if symbol_name_match_type::SEARCH_NAME. | |
970 | (lookup_symbol_in_language): Pass down | |
971 | symbol_name_match_type::FULL. | |
972 | (lookup_symbol_search_name): New. | |
973 | (lookup_language_this): Pass down | |
974 | symbol_name_match_type::SEARCH_NAME. | |
975 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
976 | 'match_type'. Pass it down. | |
977 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
978 | (lookup_symbol_search_name): New declaration. | |
979 | (lookup_symbol_in_block): New 'match_type' parameter. | |
980 | ||
f98fc17b PA |
981 | 2018-01-05 Pedro Alves <palves@redhat.com> |
982 | ||
983 | PR gdb/22670 | |
984 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
985 | ada_lookup_symbol. | |
986 | (ada_lookup_symbol): Reimplement in terms of | |
987 | ada_lookup_symbol_list, bits factored out from | |
988 | ada_lookup_encoded_symbol. | |
989 | ||
342f8240 JB |
990 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
991 | ||
992 | * ada-exp.y (write_object_renaming): When subscripting an array | |
993 | using a symbol as the index, pass the block in call to | |
994 | ada_lookup_encoded_symbol when looking that symbol up. | |
995 | ||
7150d33c JG |
996 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
997 | ||
998 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
999 | TYPE_INDEX_TYPE. | |
1000 | ||
cc0e770c JB |
1001 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
1002 | ||
1003 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
1004 | the case where VALUE_LVAL (val0) is not lval_memory. | |
1005 | ||
f79da888 | 1006 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
1007 | |
1008 | * ada-valprint.c (print_optional_low_bound): Handle | |
1009 | character-indexed array printing like boolean-indexed array | |
1010 | printing. | |
1011 | ||
cd385f94 JB |
1012 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
1013 | ||
1014 | * NEWS: Create a new section for the next release branch. | |
1015 | Rename the section of the current branch, now that it has | |
1016 | been cut. | |
1017 | ||
09aca949 JB |
1018 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
1019 | ||
1020 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
1021 | * version.in: Bump version to 8.1.50.DATE-git. | |
1022 | ||
9f757bf7 XR |
1023 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
1024 | ||
1025 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
1026 | Add field. | |
1027 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
1028 | Add field. | |
1029 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
1030 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
1031 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
1032 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
1033 | Update all callers. | |
1034 | (create_excep_cond_exprs) <ex>: Add parameter. | |
1035 | (re_set_exception): Update create_excep_cond_exprs call. | |
1036 | (print_it_exception, print_one_exception, print_mention_exception) | |
1037 | (print_recreate_exception): Add "catch handler" handling. | |
1038 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
1039 | (check_status_catch_handlers, print_it_catch_handlers) | |
1040 | (print_one_catch_handlers, print_mention_catch_handlers) | |
1041 | (print_recreate_catch_handlers): New function. | |
1042 | (catch_handlers_breakpoint_ops): New variable. | |
1043 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
1044 | Add parameter. Add "catch handler" handling. | |
1045 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
1046 | Add "catch handler" handling. | |
1047 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
1048 | handling. | |
1049 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
1050 | call. | |
1051 | (catch_ada_handlers_command): New function. | |
1052 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
1053 | operations structure. | |
1054 | (_initialize_ada_language): Add "catch handlers" command entry. | |
1055 | * NEWS: Document "catch handlers" feature. | |
1056 | ||
9fe561ab JB |
1057 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
1058 | ||
1059 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
1060 | account when creating the array type of the slice. | |
1061 | (ada_value_slice): Likewise. | |
1062 | ||
a405673c JB |
1063 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
1064 | ||
1065 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
1066 | New enum value. | |
1067 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
1068 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
1069 | New parameter. Update all callers in this file. | |
1070 | (array_type_has_dynamic_stride): New function. | |
1071 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
1072 | of arrays with dynamic byte strides. | |
1073 | * dwarf2read.c (read_array_type): Add support for dynamic | |
1074 | DW_AT_byte_stride attributes. | |
1075 | ||
74a2f8ff JB |
1076 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
1077 | ||
1078 | * dwarf2read.c (read_unspecified_type): Treat | |
1079 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
1080 | ||
e2882c85 JB |
1081 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
1082 | ||
1083 | Update copyright year range in all GDB files. | |
1084 | ||
1690bb24 JB |
1085 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
1086 | ||
1087 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
1088 | and gdb/testsuite/gdb.base/step-line.c. | |
1089 | ||
0f0c98a8 JB |
1090 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
1091 | ||
1092 | * copyright.py (main): Dump the contents of | |
1093 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
1094 | even if BY_HAND is empty. | |
1095 | ||
82e1e79a JB |
1096 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
1097 | ||
1098 | * top.c (print_gdb_version): Update Copyright year in version | |
1099 | message. | |
1100 | ||
053f54e5 | 1101 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 1102 | |
053f54e5 | 1103 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 1104 | |
053f54e5 | 1105 | For older changes see ChangeLog-2017. |
c906108c SS |
1106 | \f |
1107 | Local Variables: | |
1108 | mode: change-log | |
1109 | left-margin: 8 | |
1110 | fill-column: 74 | |
1111 | version-control: never | |
57da7796 | 1112 | coding: utf-8 |
c906108c | 1113 | End: |