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