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