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