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