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