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