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