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