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