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