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