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