Commit | Line | Data |
---|---|---|
6ccb583f TT |
1 | 2018-02-21 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * infcall.c (call_function_by_hand_dummy): Use std::vector. | |
4 | ||
c113ed0c YQ |
5 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
6 | ||
7 | * avr-tdep.c (avr_read_pc): Change parameter type to | |
8 | readable_regcache. | |
9 | * gdbarch.sh (read_pc): Likewise. | |
10 | * gdbarch.c: Re-generated. | |
11 | * gdbarch.h: Re-generated. | |
12 | * hppa-tdep.c (hppa_read_pc): Change parameter type to | |
13 | readable_regcache. | |
14 | * ia64-tdep.c (ia64_read_pc): Likewise. | |
15 | * mips-tdep.c (mips_read_pc): Likewise. | |
16 | * spu-tdep.c (spu_read_pc): Likewise. | |
17 | ||
4c74fe6b YQ |
18 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
19 | ||
20 | * Makefile.in (COMMON_SFILES): Add regcache-dump.c | |
21 | * regcache-dump.c: New file. | |
22 | * regcache.c: Move register_dump to regcache-dump.c. | |
23 | (maintenance_print_registers): Likewise. | |
24 | (maintenance_print_raw_registers): Likewise. | |
25 | (maintenance_print_cooked_registers): Likewise. | |
26 | (maintenance_print_register_groups): Likewise. | |
27 | (maintenance_print_remote_registers): Likewise. | |
28 | (_initialize_regcache): Likewise. | |
29 | * regcache.h (register_dump): Moved from regcache.c. | |
30 | ||
796bb026 YQ |
31 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
32 | ||
33 | * regcache.c (regcache::regcache): Update. | |
34 | (regcache::invalidate): Move it to detached_regcache::invalidate. | |
35 | (get_thread_arch_aspace_regcache): Update. | |
36 | (regcache::raw_update): Update. | |
37 | (regcache::cooked_read): Remove some code. | |
38 | (regcache::cooked_read_value): Likewise. | |
39 | (regcache::raw_write): Remove assert on m_readonly_p. | |
40 | (regcache::raw_supply_integer): Move it to | |
41 | detached_regcache::raw_supply_integer. | |
42 | (regcache::raw_supply_zeroed): Likewise. | |
43 | * regcache.h (detached_regcache) <raw_supply_integer>: New | |
44 | declaration. | |
45 | <raw_supply_zeroed, invalidate>: Likewise. | |
46 | (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. | |
47 | <invalidate>: Likewise. | |
48 | <m_readonly_p>: Removed. | |
49 | ||
215c69dc YQ |
50 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
51 | ||
52 | * infcmd.c (get_return_value): Let stop_regs point to | |
53 | get_current_regcache. | |
54 | * regcache.c (regcache::regcache): Remove. | |
55 | (register_dump_reg_buffer): New class. | |
56 | (regcache_print): Adjust. | |
57 | * regcache.h (regcache): Remove constructors. | |
58 | ||
f3384e66 YQ |
59 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
60 | ||
61 | * regcache.c (class register_dump): New class. | |
62 | (register_dump_regcache, register_dump_none): New class. | |
63 | (register_dump_remote, register_dump_groups): New class. | |
64 | (regcache_print): Update. | |
65 | * regcache.h (regcache_dump_what): Move it to regcache.c. | |
66 | (regcache) <dump>: Remove. | |
67 | ||
c8ec2f33 YQ |
68 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
69 | ||
70 | * jit.c (struct jit_unwind_private) <regcache>: Change its type to | |
71 | reg_buffer_rw *. | |
72 | (jit_unwind_reg_set_impl): Call raw_supply. | |
73 | (jit_frame_sniffer): Use reg_buffer_rw. | |
74 | * record-full.c (record_full_core_regbuf): Change its type. | |
75 | (record_full_core_open_1): Use reg_buffer_rw. | |
76 | (record_full_close): Likewise. | |
77 | (record_full_core_fetch_registers): Use regcache->raw_supply. | |
78 | (record_full_core_store_registers): Likewise. | |
79 | * regcache.c (regcache::get_register_status): Move it to | |
80 | reg_buffer. | |
81 | (regcache_raw_set_cached_value): Remove. | |
82 | (regcache::raw_set_cached_value): Remove. | |
83 | (regcache::raw_write): Call raw_supply. | |
84 | (regcache::raw_supply): Move it to reg_buffer_rw. | |
85 | * regcache.h (regcache_raw_set_cached_value): Remove. | |
86 | (reg_buffer_rw): New class. | |
87 | ||
daf6667d YQ |
88 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
89 | ||
90 | * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use | |
91 | readonly_detached_regcache. | |
92 | (dummy_frame_prev_register): Use regcache->cooked_read. | |
93 | * frame.c (frame_save_as_regcache): Change return type. | |
94 | (frame_pop): Update. | |
95 | * frame.h (frame_save_as_regcache): Update declaration. | |
96 | * inferior.h (get_infcall_suspend_state_regcache): Update | |
97 | declaration. | |
98 | * infrun.c (infcall_suspend_state) <registers>: use | |
99 | readonly_detached_regcache. | |
100 | (save_infcall_suspend_state): Don't use regcache_dup. | |
101 | (get_infcall_suspend_state_regcache): Change return type. | |
102 | * linux-fork.c (struct fork_info) <savedregs>: Change to | |
103 | readonly_detached_regcache. | |
104 | <pc>: New field. | |
105 | (fork_save_infrun_state): Don't use regcache_dup. | |
106 | (info_checkpoints_command): Adjust. | |
107 | * mi/mi-main.c (register_changed_p): Update declaration. | |
108 | (mi_cmd_data_list_changed_registers): Use | |
109 | readonly_detached_regcache. | |
110 | (register_changed_p): Change parameter type to | |
111 | readonly_detached_regcache. | |
112 | * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use | |
113 | readonly_detached_regcache. | |
114 | (ppu2spu_sniffer): Construct a new readonly_detached_regcache. | |
115 | * regcache.c (readonly_detached_regcache::readonly_detached_regcache): | |
116 | New. | |
117 | (regcache::save): Move it to reg_buffer. | |
118 | (regcache::restore): Change parameter type. | |
119 | (regcache_dup): Remove. | |
120 | * regcache.h (reg_buffer) <save>: New method. | |
121 | (readonly_detached_regcache): New class. | |
122 | * spu-tdep.c (spu2ppu_cache) <regcache>: Use | |
123 | readonly_detached_regcache. | |
124 | (spu2ppu_sniffer): Construct a new readonly_detached_regcache. | |
125 | ||
fc5b8736 YQ |
126 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
127 | ||
128 | * frame.c (frame_save_as_regcache): Use regcache method save. | |
129 | (frame_pop): Use regcache method restore. | |
130 | * infrun.c (restore_infcall_suspend_state): Likewise. | |
131 | * linux-fork.c (fork_load_infrun_state): Likewise. | |
132 | * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method | |
133 | save. | |
134 | * regcache.c (regcache_save): Remove. | |
135 | (regcache::restore): More asserts. | |
136 | (regcache_cpy): Remove. | |
137 | * regcache.h (regcache_save): Remove the declaration. | |
138 | (regcache::restore): Move from private to public. | |
139 | Remove the friend declaration of regcache_cpy. | |
140 | (regcache_cpy): Remove declaration. | |
141 | ||
849d0ba8 YQ |
142 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
143 | ||
144 | * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change | |
145 | parameter type to 'readable_regcache *'. | |
146 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
147 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
148 | (arm_pseudo_read): Likewise. | |
149 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
150 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
151 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
152 | * gdbarch.c: Re-generated. | |
153 | * gdbarch.h: Re-generated. | |
154 | * gdbarch.sh (pseudo_register_read): Change parameter type to | |
155 | 'readable_regcache *'. | |
156 | (pseudo_register_read_value): Likewise. | |
157 | * h8300-tdep.c (pseudo_from_raw_register): Likewise. | |
158 | (h8300_pseudo_register_read): Likewise. | |
159 | * hppa-tdep.c (hppa_pseudo_register_read): Likewise. | |
160 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
161 | (i386_pseudo_register_read_into_value): Likewise. | |
162 | (i386_pseudo_register_read_value): Likewise. | |
163 | * i386-tdep.h (i386_pseudo_register_read_into_value): Update | |
164 | declaration. | |
165 | * ia64-tdep.c (ia64_pseudo_register_read): Likewise. | |
166 | * m32c-tdep.c (m32c_raw_read): Likewise. | |
167 | (m32c_read_flg): Likewise. | |
168 | (m32c_banked_register): Likewise. | |
169 | (m32c_banked_read): Likewise. | |
170 | (m32c_sb_read): Likewise. | |
171 | (m32c_part_read): Likewise. | |
172 | (m32c_cat_read): Likewise. | |
173 | (m32c_r3r2r1r0_read): Likewise. | |
174 | (m32c_pseudo_register_read): Likewise. | |
175 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
176 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
177 | (mep_pseudo_cr64_read): Likewise. | |
178 | (mep_pseudo_register_read): Likewise. | |
179 | * mips-tdep.c (mips_pseudo_register_read): Likewise. | |
180 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
181 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
182 | * regcache.c (regcache::raw_read): Move it to readable_regcache. | |
183 | (regcache::cooked_read): Likewise. | |
184 | (regcache::cooked_read_value): Likewise. | |
185 | (regcache_cooked_read_signed): | |
186 | (regcache::cooked_read): Likewise. | |
187 | * regcache.h (readable_regcache): New class. | |
188 | (regcache): Inherit readable_regcache. Move some methods to | |
189 | readable_regcache. | |
190 | * rl78-tdep.c (rl78_pseudo_register_read): Change | |
191 | parameter type to 'readable_regcache *'. | |
192 | * rs6000-tdep.c (do_regcache_raw_read): Remove. | |
193 | (e500_pseudo_register_read): Change parameter type to | |
194 | 'readable_regcache *'. | |
195 | (dfp_pseudo_register_read): Likewise. | |
196 | (vsx_pseudo_register_read): Likewise. | |
197 | (efpr_pseudo_register_read): Likewise. | |
198 | * s390-tdep.c (s390_pseudo_register_read): Likewise. | |
199 | * sh-tdep.c (sh_pseudo_register_read): Likewise. | |
200 | * sh64-tdep.c (pseudo_register_read_portions): Likewise. | |
201 | (sh64_pseudo_register_read): Likewise. | |
202 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
203 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
204 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
205 | (spu_pseudo_register_read): Likewise. | |
206 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
207 | (xtensa_pseudo_register_read): Likewise. | |
208 | ||
31716595 YQ |
209 | 2018-02-21 Yao Qi <yao.qi@linaro.org> |
210 | ||
211 | * regcache.c (regcache::regcache): Call reg_buffer ctor. | |
212 | (regcache::arch): Move it to reg_buffer::arch. | |
213 | (regcache::register_buffer): Likewise. | |
214 | (regcache::assert_regnum): Likewise. | |
215 | (regcache::num_raw_registers): Likewise. | |
216 | * regcache.h (reg_buffer): New class. | |
217 | (regcache): Inherit reg_buffer. | |
218 | ||
7104e59b SM |
219 | 2018-02-20 Simon Marchi <simon.marchi@ericsson.com> |
220 | ||
221 | * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, | |
222 | gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. | |
223 | ||
2d8adcbd MM |
224 | 2018-02-20 Markus Metzger <markus.t.metzger@intel.com> |
225 | ||
226 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. | |
227 | ||
b5884fa7 AH |
228 | 2018-02-19 Alan Hayward <alan.hayward@arm.com> |
229 | ||
230 | * Makefile.in: (COMMON_SFILES): Add common/*.c files. | |
231 | (SFILES): Remove common/*.c files. | |
232 | (COMMON_OBS): Remove some *.o files built from common/*.c files. | |
233 | * common/common.host: Add common reference. | |
234 | * configure.ac: Likewise. | |
235 | * configure: Regenerate. | |
236 | ||
fd90ace4 YQ |
237 | 2018-02-16 Yao Qi <yao.qi@linaro.org> |
238 | ||
239 | * block.c (block_namespace_info): Inherit allocate_on_obstack. | |
240 | (block_initialize_namespace): Use new. | |
241 | * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. | |
242 | (dwarf2_free_objfile): Use delete. | |
243 | * gdbtypes.c (type_pair): Inherit allocate_on_obstack. | |
244 | (copy_type_recursive): Use new. | |
245 | * gdb_obstack.h (allocate_on_obstack): New. | |
246 | ||
85046ae2 YQ |
247 | 2018-02-15 Yao Qi <yao.qi@linaro.org> |
248 | ||
249 | PR gdb/22849 | |
250 | * inferior.c (exit_inferior_1): Reset inf->control. | |
251 | ||
355c559b JB |
252 | 2018-02-15 Joel Brobecker <brobecker@adacore.com> |
253 | ||
254 | * ada-lang.c (ada_to_fixed_value_create): Delete advance | |
255 | declaration. | |
256 | ||
980548fd PA |
257 | 2018-02-14 Pedro Alves <palves@redhat.com> |
258 | ||
259 | * frame-unwind.c (frame_unwind_try_unwinder): Always call | |
260 | frame_cleanup_after_sniffer on exception. | |
261 | ||
692d6f97 TT |
262 | 2018-02-14 Tom Tromey <tom@tromey.com> |
263 | ||
264 | * solist.h (struct target_so_ops) <bfd_open>: Make pathname | |
265 | const. | |
266 | (solib_bfd_open): Make pathname const. | |
267 | * solib.c (solib_bfd_open): Make pathname const. | |
268 | * solib-spu.c (spu_bfd_fopen): Make name const. | |
269 | (spu_bfd_open): Make pathname const. | |
270 | * solib-darwin.c (darwin_bfd_open): Make pathname const. | |
271 | * solib-aix.c (solib_aix_bfd_open): Make pathname const. | |
272 | ||
e0cc99a6 TT |
273 | 2018-02-14 Tom Tromey <tom@tromey.com> |
274 | ||
275 | * symfile.c (symfile_bfd_open): Update. | |
276 | * source.h (openp, source_full_path_of, find_and_open_source): | |
277 | Change argument type to unique_xmalloc_ptr. | |
278 | * source.c (openp): Take a unique_xmalloc_ptr. | |
279 | (source_full_path_of, find_and_open_source): Likewise. | |
280 | (open_source_file, symtab_to_fullname): Update. | |
281 | * solist.h (struct target_so_ops) <find_and_open_solib>: Take a | |
282 | unique_xmalloc_ptr. | |
283 | * solib.c (solib_find_1): Use unique_xmalloc_ptr. | |
284 | (exec_file_find): Update. | |
285 | * psymtab.c (psymtab_to_fullname): Update. | |
286 | * nto-tdep.h (nto_find_and_open_solib): Update. | |
287 | * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a | |
288 | unique_xmalloc_ptr. | |
289 | * exec.c (exec_file_attach): Update. | |
290 | * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. | |
291 | * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. | |
292 | ||
b46a8d7c TT |
293 | 2018-02-14 Tom Tromey <tom@tromey.com> |
294 | ||
295 | * solib.c: Include source.h. | |
296 | * nto-tdep.c: Include source.h. | |
297 | * mi/mi-cmd-env.c: Include source.h. | |
298 | * infcmd.c: Include source.h. | |
299 | * exec.c: Include source.h. | |
300 | * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
301 | (add_path, directory_switch, source_path, init_source_path): Move | |
302 | declarations... | |
303 | * source.h (enum openp_flag, openp, source_full_path_of, mod_path) | |
304 | (add_path, directory_switch, source_path, init_source_path): | |
305 | ...here. | |
306 | ||
797bc1cb TT |
307 | 2018-02-14 Tom Tromey <tom@tromey.com> |
308 | ||
309 | * solist.h (exec_file_find, solib_find): Return | |
310 | unique_xmalloc_ptr. | |
311 | (solib_bfd_fopen): Take a const char *. | |
312 | * solib.c (solib_find_1): Return unique_xmalloc_ptr. | |
313 | (exec_file_find, solib_find): Likewise. | |
314 | (solib_bfd_fopen): Do not take ownership of "pathname". | |
315 | (solib_bfd_open): Use unique_xmalloc_ptr. | |
316 | * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. | |
317 | * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. | |
318 | * infrun.c (follow_exec): Use unique_xmalloc_ptr. | |
319 | * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. | |
320 | ||
f98b2e33 JB |
321 | 2018-02-14 Joel Brobecker <brobecker@adacore.com> |
322 | ||
323 | * ada-lang.c (name_match_type_from_name): Remove reference to | |
324 | ada_name_for_lookup in function's documentation. | |
325 | * ada-lang.h (ada_name_for_lookup): Delete declaration. | |
326 | ||
24b9144d SM |
327 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
328 | ||
329 | * defs.h (enum openp_flags): New enum. | |
330 | (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): | |
331 | Move to enum openp_flags. | |
332 | (openp_flags): New enum flags. | |
333 | (openp): Change parameter type to openp_flags. | |
334 | * source.c (openp): Change parameter type to openp_flags. | |
335 | * cli/cli-cmds.c (find_and_open_script): Use openp_flags. | |
336 | * dwarf2read.c (try_open_dwop_file): Use openp_flags. | |
337 | ||
387cd15b SM |
338 | 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> |
339 | ||
340 | * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show | |
341 | per-command. | |
342 | ||
b303c6f6 AB |
343 | 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> |
344 | ||
345 | * dwarf2read.c (dwarf2_release_queue): Delete function, move body | |
346 | into... | |
347 | (class dwarf2_queue_guard): ...the destructor of this new class. | |
348 | (dw2_do_instantiate_symtab): Create instance of the new class | |
349 | dwarf2_queue_guard, remove cleanup. | |
350 | ||
9c3630e9 TT |
351 | 2018-02-09 Tom Tromey <tom@tromey.com> |
352 | ||
353 | * source.c (find_source_lines): Don't reference past the end of | |
354 | the vector. | |
355 | ||
c4e12631 MM |
356 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
357 | ||
358 | * remote.c (remote_btrace_maybe_reopen): Change error message. | |
359 | * btrace.c (btrace_enable): Likewise. | |
360 | (parse_xml_btrace): Likewise. | |
361 | (parse_xml_btrace_conf): Likewise. | |
362 | ||
88711fbf MM |
363 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
364 | ||
365 | * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. | |
366 | (linux_enable_pt, linux_enable_bts): Call | |
367 | diagnose_perf_event_open_fail. | |
368 | ||
17ad2a4f MM |
369 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
370 | ||
371 | * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. | |
372 | Remove parameter and change return type. Update callers. Move it. | |
373 | (linux_enable_bts, linux_enable_pt): Improve error message. | |
374 | (linux_enable_pt): Remove zero buffer size check. | |
375 | (linux_enable_btrace): Improve error messages. Remove NULL return | |
376 | check. | |
377 | ||
de6242d3 MM |
378 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
379 | ||
380 | * btrace.c (btrace_enable): Remove target_supports_btrace call. | |
381 | * nat/linux-btrace.c (perf_event_pt_event_type): Move. | |
382 | (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) | |
383 | (linux_supports_pt, linux_supports_btrace): Remove. | |
384 | (linux_enable_bts): Call cpu_supports_bts. | |
385 | * nat/linux-btrace.h (linux_supports_btrace): Remove. | |
386 | * remote.c (remote_supports_btrace): Remove. | |
387 | (init_remote_ops): Remove remote_supports_btrace. | |
388 | * target-delegates.c: Regenerated. | |
389 | * target.c (target_supports_btrace): Remove. | |
390 | * target.h (target_ops) <to_supports_btrace>: Remove | |
391 | (target_supports_btrace): Remove. | |
392 | * x86-linux-nat.c (x86_linux_create_target): Remove | |
393 | linux_supports_btrace. | |
394 | ||
9ee23a85 MM |
395 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
396 | ||
397 | * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling | |
398 | btrace failed. | |
399 | * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling | |
400 | exception and use message in own exception. | |
401 | ||
5c3284c1 MM |
402 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
403 | ||
404 | * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. | |
405 | (perf_event_pt_event_type): Use gdb_file_up. | |
406 | (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, | |
407 | scoped_fd, and scoped_mmap. | |
408 | ||
84696f37 MM |
409 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
410 | ||
411 | * common/scoped_mmap.h: New. | |
412 | * unittests/scoped_mmap-selftest.c: New. | |
413 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
414 | unittests/scoped_mmap-selftest.c. | |
415 | ||
ea4a0888 MM |
416 | 2018-02-09 Markus Metzger <markus.t.metzger@intel.com> |
417 | ||
418 | * common/scoped_fd.h: New. | |
419 | * unittests/scoped_fd-selftest.c: New. | |
420 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add | |
421 | unittests/scoped_fd-selftest.c. | |
422 | ||
869e8290 TT |
423 | 2018-02-09 Tom Tromey <tom@tromey.com> |
424 | ||
425 | * auto-load.c (auto_load_section_scripts): Use | |
426 | gdb::unique_xmalloc_ptr. | |
427 | ||
a37a2ae7 TT |
428 | 2018-02-09 Tom Tromey <tom@tromey.com> |
429 | ||
430 | * auto-load.c (execute_script_contents): Use std::string. | |
431 | ||
4e725347 JB |
432 | 2018-02-09 Joel Brobecker <brobecker@adacore.com> |
433 | ||
434 | * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new | |
435 | Python function, rather than a new command. | |
436 | ||
9a897d43 TT |
437 | 2018-02-08 Tom Tromey <tom@tromey.com> |
438 | ||
439 | * solib.c (solib_find_1): Use std::string. | |
440 | (solib_bfd_fopen): Use unique_xmalloc_ptr. | |
441 | ||
58ef3771 TT |
442 | 2018-02-08 Tom Tromey <tom@tromey.com> |
443 | ||
444 | * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. | |
445 | ||
a9abc434 TT |
446 | 2018-02-08 Tom Tromey <tom@tromey.com> |
447 | ||
448 | * source.c (find_source_lines): Use gdb::def_vector. | |
449 | ||
84f27c6f TT |
450 | 2018-02-08 Tom Tromey <tom@tromey.com> |
451 | ||
452 | * macrocmd.c (struct temporary_macro_definition): New. | |
453 | (macro_define_command): Use temporary_macro_definition. Remove | |
454 | cleanups. | |
455 | (free_macro_definition_ptr): Remove. | |
456 | ||
0354904b TT |
457 | 2018-02-08 Tom Tromey <tom@tromey.com> |
458 | ||
459 | * macroexp.c (maybe_expand): Use std::string. | |
460 | ||
1739cf24 TT |
461 | 2018-02-08 Tom Tromey <tom@tromey.com> |
462 | ||
463 | * macroexp.c (struct macro_buffer): Add initializers for some | |
464 | members. | |
465 | (init_buffer, init_shared_buffer, free_buffer) | |
466 | (free_buffer_return_text): Remove. | |
467 | (macro_buffer): New constructors. | |
468 | (~macro_buffer): New destructor. | |
469 | (macro_buffer::set_shared): New method. | |
470 | (macro_buffer::resize_buffer, macro_buffer::appendc) | |
471 | (macro_buffer::appendmem): Now methods, not free functions. | |
472 | (set_token, append_tokens_without_splicing, stringify) | |
473 | (macro_stringify): Update. | |
474 | (gather_arguments): Change return type. Remove argc_p argument, | |
475 | add args_ptr argument. Use std::vector. | |
476 | (substitute_args): Remove argc argument. Accept std::vector. | |
477 | (expand): Update. Use std::vector. | |
478 | (scan, macro_expand, macro_expand_next): Update. | |
479 | ||
f6c2623e TT |
480 | 2018-02-08 Tom Tromey <tom@tromey.com> |
481 | ||
482 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
483 | Use unique_xmalloc_ptr. | |
484 | * macroscope.h: (sal_macro_scope, user_macro_scope) | |
485 | (default_macro_scope): Return unique_xmalloc_ptr. | |
486 | * macroscope.c (sal_macro_scope, user_macro_scope) | |
487 | (default_macro_scope): Return unique_xmalloc_ptr. | |
488 | * macroexp.h (macro_expand, macro_expand_once): Return | |
489 | unique_xmalloc_ptr. | |
490 | * macroexp.c (macro_expand, macro_expand_once): Return | |
491 | unique_xmalloc_ptr. | |
492 | * macrocmd.c (macro_expand_command, macro_expand_once_command) | |
493 | (info_macro_command, info_macros_command): Use | |
494 | unique_xmalloc_ptr. | |
495 | * compile/compile-c-support.c (write_macro_definitions): Use | |
496 | unique_xmalloc_ptr. | |
497 | * c-exp.y (c_parse): Use unique_xmalloc_ptr. | |
498 | ||
c2e0e465 SM |
499 | 2018-02-07 Simon Marchi <simon.marchi@ericsson.com> |
500 | ||
501 | * value.c (value_static_field): Assign field type instead of | |
502 | containing type when returning an optimized out value. | |
503 | ||
3f8c94b4 YQ |
504 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
505 | ||
506 | * ft32-tdep.c (ft32_read_pc): Remove. | |
507 | (ft32_write_pc): Remove. | |
508 | (ft32_gdbarch_init): Update. | |
509 | * m32r-tdep.c (m32r_read_pc): Remove. | |
510 | (m32r_gdbarch_init): Update. | |
511 | * mep-tdep.c (mep_read_pc): Remove. | |
512 | (mep_gdbarch_init): Update. | |
513 | * microblaze-tdep.c (microblaze_write_pc): Remove. | |
514 | (microblaze_gdbarch_init): Update. | |
515 | * mn10300-tdep.c (mn10300_read_pc): Remove. | |
516 | (mn10300_write_pc): Remove. | |
517 | (mn10300_gdbarch_init): Update. | |
518 | * moxie-tdep.c (moxie_read_pc): Remove. | |
519 | (moxie_write_pc): Remove. | |
520 | (moxie_gdbarch_init): Update. | |
521 | ||
bca65a23 YQ |
522 | 2018-02-06 Yao Qi <yao.qi@linaro.org> |
523 | ||
524 | * expprint.c (print_subexp_standard): Handle | |
525 | OP_F77_UNDETERMINED_ARGLIST. | |
526 | (dump_subexp_body_standard): Likewise. | |
527 | ||
583e3f90 | 528 | 2018-02-05 Alan Hayward <alan.hayward@arm.com> |
b8df6ca7 | 529 | |
583e3f90 YQ |
530 | * target-descriptions.c (tdesc_element_visitor) Add empty |
531 | implementations. | |
b8df6ca7 AH |
532 | (tdesc_type): Move make_gdb_type from here. |
533 | (tdesc_type_builtin): Likewise. | |
534 | (tdesc_type_vector): Likewise. | |
535 | (tdesc_type_with_fields): Move make_gdb_type_ functions from here. | |
536 | (make_gdb_type_struct): Move from tdesc_type_with_fields. | |
537 | (make_gdb_type_union): Likewise. | |
538 | (make_gdb_type_flags): Likewise. | |
539 | (make_gdb_type_enum): Likewise. | |
540 | (make_gdb_type): New function. | |
541 | (tdesc_register_type): Use static make_gdb_type. | |
542 | ||
e813d34a RK |
543 | 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> |
544 | ||
545 | * infcmd.c (default_print_one_register_info): Align natural-format | |
546 | column values consistently one under another. | |
547 | (pad_to_column): New function. | |
548 | ||
0eb876f5 JB |
549 | 2018-02-05 Joel Brobecker <brobecker@adacore.com> |
550 | ||
551 | * dwarf2read.c (dwarf2_physname): Move commment. | |
552 | ||
0625771b LS |
553 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
554 | ||
555 | * varobj.c (varobj_formatted_print_options): Allow recursive | |
556 | pretty printing if pretty printing is enabled. | |
557 | ||
59498c30 LS |
558 | 2018-02-01 Leszek Swirski <leszeks@google.com> |
559 | ||
560 | * c-exp.y (lex_one_token, classify_name, yylex): Don't classify | |
561 | names after a structop as a filename. | |
562 | ||
2d9e6acb YQ |
563 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
564 | ||
565 | * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. | |
566 | (arm_record_coproc_data_proc): Likewise. | |
567 | ||
df95a9cf YQ |
568 | 2018-02-01 Yao Qi <yao.qi@linaro.org> |
569 | ||
570 | * arm-tdep.c (arm_record_extension_space): Change ret to signed. | |
571 | ||
07e5f5cf NP |
572 | 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> |
573 | ||
574 | * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and | |
575 | assign shifted lr_reg to fdata->lr_register when lr_reg is set. | |
576 | ||
3045b475 PA |
577 | 2018-01-31 Pedro Alves <palves@redhat.com> |
578 | ||
579 | * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. | |
580 | * inflow.c (child_terminal_save_inferior): Wrap reference to | |
581 | tcgetpgrp in HAVE_TERMIOS_H. | |
582 | (child_interrupt, child_pass_ctrlc): Wrap references to signal in | |
583 | _WIN32. | |
584 | * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and | |
585 | always iterate over all inferiors. | |
586 | (gdbsim_cntrl_c): Adjust. | |
587 | * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. | |
588 | ||
929b5ad4 JB |
589 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
590 | ||
591 | * gdbtypes.c (lookup_array_range_type): Make sure the array's | |
592 | index type is objfile-owned if the element type is as well. | |
593 | ||
29236ca2 JB |
594 | 2018-01-31 Joel Brobecker <brobecker@adacore.com> |
595 | ||
596 | GDB 8.1 released. | |
597 | ||
c81e8879 PR |
598 | 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> |
599 | ||
600 | * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and | |
601 | "features/s390x-linux64.c". | |
602 | (_initialize_s390_linux_tdep): Remove initialization of tdescs | |
603 | s390_linux32 and s390x_linux64. | |
604 | (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set | |
605 | default tdesc. | |
606 | * s390-tdep.c: Include "features/s390-linux32.c" and | |
607 | "features/s390x-linux64.c". | |
608 | (s390_tdesc_valid): Add check for tdesc_has_registers. | |
609 | (s390_gdbarch_init): Make sure there is always a valid tdesc. | |
610 | (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and | |
611 | tdesc_s390x_linux64. | |
612 | * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and | |
613 | tdesc_s390x_linux64 to... | |
614 | * s390-tdep.h: ...here. | |
615 | ||
e671cd59 PA |
616 | 2018-01-30 Pedro Alves <palves@redhat.com> |
617 | ||
618 | PR gdb/13211 | |
619 | * config.in, configure: Regenerate. | |
620 | * configure.ac: Check for getpgid. | |
621 | * go32-nat.c (go32_pass_ctrlc): New. | |
622 | (go32_target): Install it. | |
623 | * inf-child.c (inf_child_target): Install | |
624 | child_terminal_save_inferior, child_pass_ctrlc and | |
625 | child_interrupt. | |
626 | * inf-ptrace.c (inf_ptrace_interrupt): Delete. | |
627 | (inf_ptrace_target): No longer install it. | |
628 | * infcmd.c (interrupt_target_1): Adjust. | |
629 | * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) | |
630 | (child_interrupt): Declare. | |
631 | (inferior::terminal_state): New. | |
632 | * inflow.c (struct terminal_info): Update comments. | |
633 | (inferior_process_group): Delete. | |
634 | (terminal_is_ours): Delete. | |
635 | (gdb_tty_state): New. | |
636 | (child_terminal_init): Adjust. | |
637 | (is_gdb_terminal, sharing_input_terminal_1) | |
638 | (sharing_input_terminal): New functions. | |
639 | (child_terminal_inferior): Adjust. Use sharing_input_terminal. | |
640 | Set the process's actual process group in the foreground if | |
641 | possible. Handle is_ours_for_output/is_ours distinction. Don't | |
642 | mark terminal as the inferior's if not sharing GDB's terminal. | |
643 | Don't check attach_flag. | |
644 | (child_terminal_ours_for_output, child_terminal_ours): Adjust to | |
645 | pass down a target_terminal_state. | |
646 | (child_terminal_save_inferior): New, factored out from ... | |
647 | (child_terminal_ours_1): ... this. Handle | |
648 | target_terminal_state::is_ours_for_output. | |
649 | (child_interrupt, child_pass_ctrlc): New. | |
650 | (inflow_inferior_exit): Clear the inferior's terminal_state. | |
651 | (copy_terminal_info): Copy the inferior's terminal state. | |
652 | (_initialize_inflow): Remove reference to terminal_is_ours. | |
653 | * inflow.h (inferior_process_group): Delete. | |
654 | * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. | |
655 | * procfs.c (procfs_target): Don't install procfs_interrupt. | |
656 | (procfs_interrupt): Delete. | |
657 | * remote.c (remote_serial_quit_handler): Adjust. | |
658 | (remote_interrupt): Remove ptid parameter. Adjust. | |
659 | * target-delegates.c: Regenerate. | |
660 | * target.c: Include "terminal.h". | |
661 | (target_terminal::terminal_state): Rename to ... | |
662 | (target_terminal::m_terminal_state): ... this. | |
663 | (target_terminal::init): Adjust. | |
664 | (target_terminal::inferior): Adjust to per-inferior | |
665 | terminal_state. | |
666 | (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. | |
667 | (target_terminal::ours, target_terminal::ours_for_output): Use | |
668 | target_terminal_is_ours_kind. | |
669 | (target_interrupt): Remove ptid parameter. Adjust. | |
670 | (default_target_pass_ctrlc): Adjust. | |
671 | * target.h (target_ops::to_terminal_save_inferior): New field. | |
672 | (target_ops::to_interrupt): Remove ptid_t parameter. | |
673 | (target_interrupt): Remove ptid_t parameter. Update comment. | |
674 | (target_pass_ctrlc): Update comment. | |
675 | * target/target.h (target_terminal_state): New scoped enum, | |
676 | factored out of ... | |
677 | (target_terminal::terminal_state): ... here. | |
678 | (target_terminal::inferior): Update comments. | |
679 | (target_terminal::restore_inferior): New. | |
680 | (target_terminal::is_inferior, target_terminal::is_ours) | |
681 | (target_terminal::is_ours_for_output): Adjust. | |
682 | (target_terminal::scoped_restore_terminal_state): Adjust to | |
683 | rename, and call restore_inferior() instead of inferior(). | |
684 | (target_terminal::scoped_restore_terminal_state::m_state): Change | |
685 | type. | |
686 | (target_terminal::terminal_state): Rename to ... | |
687 | (target_terminal::m_terminal_state): ... this and change type. | |
688 | ||
9c3a5d93 PA |
689 | 2018-01-30 Pedro Alves <palves@redhat.com> |
690 | ||
691 | * linux-nat.c (wait_for_signal): New function. | |
692 | (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend | |
693 | directly. | |
694 | (async_terminal_is_ours) | |
695 | (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. | |
696 | (linux_nat_add_target): Don't override | |
697 | to_terminal_inferior/to_terminal_ours. | |
698 | ||
69ab5edb SDJ |
699 | 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> |
700 | ||
701 | * remote.c (remote_follow_fork): Don't call "detach_inferior". | |
702 | ||
fc8e7e75 SM |
703 | 2018-01-28 Simon Marchi <simon.marchi@ericsson.com> |
704 | ||
705 | * dwarf2read.c (free_dwo_files): Add forward-declaration. | |
706 | (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from | |
707 | dwarf2_per_objfile_free here. | |
708 | (dwarf2_per_objfile_free): Remove. | |
709 | (_initialize_dwarf2_read): Don't register | |
710 | dwarf2_per_objfile_free as a registry cleanup. | |
711 | ||
b2a426e2 EZ |
712 | 2018-01-27 Eli Zaretskii <eliz@gnu.org> |
713 | ||
714 | Avoid compilation errors in MinGW native builds | |
715 | ||
716 | The error is triggered by including python-internal.h, and the | |
717 | error message is: | |
718 | ||
719 | In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, | |
720 | from build-gnulib/import/math.h:27, | |
721 | from d:/usr/Python26/include/pyport.h:235, | |
722 | from d:/usr/Python26/include/Python.h:58, | |
723 | from python/python-internal.h:94, | |
724 | from python/py-arch.c:24: | |
725 | d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared | |
726 | using ::hypot; | |
727 | ^~~~~ | |
728 | ||
729 | This happens because Python headers define 'hypot' to expand t | |
730 | '_hypot' in the Windows builds. | |
731 | * python/python-internal.h (_hypot) [__MINGW32__]: Define back to | |
732 | 'hypoth'. This avoids a compilation error. | |
733 | ||
0bdd8eac AH |
734 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
735 | ||
736 | * MAINTAINERS (Write After Approval): Fix ordering. | |
737 | ||
56ae9dc3 AH |
738 | 2018-01-26 Alan Hayward <alan.hayward@arm.com> |
739 | ||
740 | * MAINTAINERS (Write After Approval): Add Alan Hayward. | |
741 | ||
7433498b AM |
742 | 2018-01-26 Alan Modra <amodra@gmail.com> |
743 | ||
744 | * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. | |
745 | (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. | |
746 | Remove nop. Make const. Comment. | |
747 | (powerpc32_plt_stub_so_2): New. | |
748 | (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. | |
749 | Correct count. Update uses. | |
750 | (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. | |
751 | Move common code reading PLT entry word. Correct | |
752 | powerpc32_plt_stub PLT address calculation. | |
753 | * ppc64-tdep.c (ppc64_standard_linkage1): Make const. | |
754 | (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. | |
755 | (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. | |
756 | (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. | |
757 | (ppc64_standard_linkage8): Likewise. | |
758 | * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. | |
759 | Correct insns description. | |
760 | * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. | |
761 | ||
0f59d5fc PA |
762 | 2018-01-24 Pedro Alves <palves@redhat.com> |
763 | ||
764 | GCC PR libstdc++/83906 | |
765 | * gdbtypes.c (operator==(const dynamic_prop &, | |
766 | const dynamic_prop &)): New. | |
767 | (operator==(const range_bounds &, const range_bounds &)): New. | |
768 | (check_types_equal): Use them instead of memcmp. | |
769 | * gdbtypes.h (operator==(const dynamic_prop &, | |
770 | const dynamic_prop &)): Declare. | |
771 | (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. | |
772 | (operator==(const range_bounds &, const range_bounds &)): Declare. | |
773 | (operator!=(const range_bounds &, const range_bounds &)): Declare. | |
774 | ||
ef8914a4 PR |
775 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
776 | ||
777 | * s390-linux-tdep.c (s390_record_address_mask) | |
778 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
779 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
780 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
781 | (s390_process_record): Move to s390-tdep.c. | |
782 | (s390_linux_init_abi_any): Adjust. | |
783 | * s390-tdep.c (s390_record_address_mask) | |
784 | (s390_record_calc_disp_common, s390_record_calc_disp) | |
785 | (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) | |
786 | (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) | |
787 | (s390_process_record): Moved from s390-linux-tdep.c | |
788 | (s390_gdbarch_init): Adjust. | |
789 | ||
d6e58945 PR |
790 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
791 | ||
792 | * s390-linux-nat.c (s390-tdep.h): New include. | |
793 | * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. | |
794 | (HFILES_NO_SRCDIR): Add s390-tdep.h. | |
795 | (ALLDEPFILES): Add s390-tdep.c. | |
796 | * configure.tgt (s390*-*-linux*): Add s390-tdep.o. | |
797 | * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... | |
798 | * s390-tdep.h: ...this. New file. | |
799 | * s390-linux-tdep.c (s390-tdep.h): New include. | |
800 | (_initialize_s390_tdep): Rename to... | |
801 | (_initialize_s390_linux_tdep): ...this and adjust. | |
802 | (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) | |
803 | (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to | |
804 | s390-tdep.h. | |
805 | (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) | |
806 | (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) | |
807 | (s390_is_partial_instruction, s390_software_single_step) | |
808 | (is_non_branch_ril, s390_displaced_step_copy_insn) | |
809 | (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) | |
810 | (s390_prologue_data, s390_addr, s390_store, s390_load) | |
811 | (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) | |
812 | (s390_register_call_saved, s390_guess_tracepoint_registers) | |
813 | (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) | |
814 | (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) | |
815 | (s390_pseudo_register_name, s390_pseudo_register_type) | |
816 | (s390_pseudo_register_read, s390_pseudo_register_write) | |
817 | (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) | |
818 | (s390_ax_pseudo_register_push_stack, s390_gen_return_address) | |
819 | (s390_addr_bits_remove, s390_address_class_type_flags) | |
820 | (s390_address_class_type_flags_to_name) | |
821 | (s390_address_class_name_to_type_flags, s390_effective_inner_type) | |
822 | (s390_function_arg_float, s390_function_arg_vector) | |
823 | (is_power_of_two, s390_function_arg_integer, s390_arg_state) | |
824 | (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) | |
825 | (s390_frame_align, s390_register_return_value, s390_return_value) | |
826 | (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) | |
827 | (s390_unwind_pseudo_register, s390_adjust_frame_regnum) | |
828 | (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) | |
829 | (s390_trad_frame_prev_register, s390_unwind_cache) | |
830 | (s390_prologue_frame_unwind_cache) | |
831 | (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) | |
832 | (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) | |
833 | (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) | |
834 | (s390_stub_frame_this_id, s390_stub_frame_prev_register) | |
835 | (s390_stub_frame_sniffer, s390_stub_frame_unwind) | |
836 | (s390_frame_base_address, s390_local_base_address) | |
837 | (s390_frame_base, s390_gcc_target_options) | |
838 | (s390_gnu_triplet_regexp, s390_stap_is_single_operand) | |
839 | (s390_validate_reg_range, s390_tdesc_valid) | |
840 | (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... | |
841 | * s390-tdep.c: ...this. New file. | |
842 | ||
9c0b896e PR |
843 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
844 | ||
845 | * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. | |
846 | (s390_process_record, s390_gdbarch_tdep_alloc) | |
847 | (s390_linux_init_abi_any): Use/set new hook. | |
848 | ||
7042632b PR |
849 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
850 | ||
851 | * s390-linux-tdep.c (osabi.h): New include. | |
852 | (s390_linux_init_abi_31, s390_linux_init_abi_64) | |
853 | (s390_linux_init_abi_any): New functions. | |
854 | (s390_gdbarch_init, _initialize_s390_tdep): Adjust. | |
855 | ||
650f5e13 PR |
856 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
857 | ||
858 | * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for | |
859 | tdesc_has_registers check | |
860 | ||
47c9317e PR |
861 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
862 | ||
863 | * s390-linux-tdep.c (s390_tdesc_valid): New function. | |
864 | (s390_validate_reg_range): New macro. | |
865 | (s390_gdbarch_init): Adjust. | |
866 | ||
095085d8 PR |
867 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
868 | ||
869 | * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. | |
870 | (s390_gdbarch_tdep_alloc): Adjust. | |
871 | (s390_gdbarch_init): Adjust. | |
872 | ||
ab9bcc67 PR |
873 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
874 | ||
875 | * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> | |
876 | <have_tdb>: Change type to bool. | |
877 | (s390_gdbarch_tdep_alloc): Adjust. | |
878 | (s390_gdbarch_init): Adjust. | |
879 | ||
21f6f5ff PR |
880 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
881 | ||
882 | * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. | |
883 | (gdbarch_tdep) <have_upper, have_vx>: New fields. | |
884 | (s390_gdbarch_tdep_alloc): New function. | |
885 | (s390_gdbarch_init): Allocate tdep at start and use its fields | |
886 | instead of separate variables. | |
887 | ||
0eb97953 PR |
888 | 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> |
889 | ||
890 | * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks | |
891 | when looking for cached gdbarch and add comment for remaining. | |
892 | ||
5c319bb2 PA |
893 | 2018-01-22 Pedro Alves <palves@redhat.com> |
894 | Sergio Durigan Junior <sergiodj@redhat.com> | |
895 | ||
896 | * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" | |
897 | case. | |
898 | ||
d65ce302 MR |
899 | 2018-01-22 Maciej W. Rozycki <macro@mips.com> |
900 | ||
901 | * MAINTAINERS: Update my company e-mail address. | |
902 | ||
ec7a5fcb YQ |
903 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
904 | ||
905 | * regcache.c (cooked_write_test): New function. | |
906 | (_initialize_regcache): Register the test. | |
907 | ||
11f57cb6 YQ |
908 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
909 | ||
910 | * ia64-tdep.c (ia64_pseudo_register_read): Call | |
911 | regcache->cooked_read instead of regcache_cooked_read_unsigned. | |
912 | * m32c-tdep.c (m32c_cat_read): Likewise. | |
913 | (m32c_r3r2r1r0_read): Likewise. | |
914 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. | |
915 | * xtensa-tdep.c (xtensa_register_read_masked): Likewise. | |
916 | ||
03f50fc8 YQ |
917 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
918 | ||
919 | * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache | |
920 | method raw_read instead of regcache_raw_read. | |
921 | * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. | |
922 | * arm-tdep.c (arm_neon_quad_read): Likewise. | |
923 | * avr-tdep.c (avr_pseudo_register_read): Likewise. | |
924 | * bfin-tdep.c (bfin_pseudo_register_read): Likewise. | |
925 | * frv-tdep.c (frv_pseudo_register_read): Likewise. | |
926 | * h8300-tdep.c (h8300_pseudo_register_read): Likewise. | |
927 | * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. | |
928 | (i386_pseudo_register_read_into_value): Likewise. | |
929 | * mep-tdep.c (mep_pseudo_cr32_read): Likewise. | |
930 | * msp430-tdep.c (msp430_pseudo_register_read): Likewise. | |
931 | * nds32-tdep.c (nds32_pseudo_register_read): Likewise. | |
932 | * rl78-tdep.c (rl78_pseudo_register_read): Likewise. | |
933 | * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. | |
934 | * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. | |
935 | * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. | |
936 | * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. | |
937 | * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. | |
938 | ||
dc711524 YQ |
939 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
940 | ||
941 | * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. | |
942 | * configure.tgt: Remove target mt. | |
943 | * mt-tdep.c: Remove. | |
944 | * regcache.c (cooked_read_test): Remove the check for mt. | |
945 | ||
3f5a868b YQ |
946 | 2018-01-22 Yao Qi <yao.qi@linaro.org> |
947 | ||
948 | * jit.c (jit_frame_prev_register): Call regcache::cooked_read | |
949 | instead of gdbarch_pseudo_register_read_value. | |
950 | ||
de4cb04a JB |
951 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
952 | ||
953 | * dwarf2read.c (need_gnat_info): Return nonzero if the cu's | |
954 | language is Ada. | |
955 | ||
a9e40818 JB |
956 | 2018-01-22 Joel Brobecker <brobecker@adacore.com> |
957 | ||
958 | * linespec.c (create_sals_line_offset): Remove code that preserved | |
959 | the symtab_and_line's line number. | |
960 | ||
e707fc44 AB |
961 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
962 | ||
963 | * varobj.c (varobj_create): Don't set valid_block when creating a | |
964 | floating varobj. | |
965 | ||
03d0bf7b AB |
966 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
967 | ||
968 | * varobj.c (varobj_create): Remove out of date comment. | |
969 | ||
ae451627 AB |
970 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
971 | ||
972 | PR mi/20395 | |
973 | * ada-exp.y (write_var_from_sym): Pass extra parameter when | |
974 | updating innermost block. | |
975 | * parse.c (innermost_block_tracker::update): Take extra type | |
976 | parameter, and check types match before updating innermost block. | |
977 | (write_dollar_variable): Update innermost block for registers. | |
978 | * parser-defs.h (enum innermost_block_tracker_type): New enum. | |
979 | (innermost_block_tracker::innermost_block_tracker): Initialise | |
980 | m_types member. | |
981 | (innermost_block_tracker::reset): Take type parameter. | |
982 | (innermost_block_tracker::update): Take type parameter, and pass | |
983 | type through as needed. | |
984 | (innermost_block_tracker::m_types): New member. | |
985 | * varobj.c (varobj_create): Pass type when reseting innermost | |
986 | block. | |
987 | ||
aee1fcdf AB |
988 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
989 | ||
990 | * ada-exp.y (write_var_from_sym): Switch to innermost_block API. | |
991 | * ada-lang.c (resolve_subexp): Likewise. | |
992 | * breakpoint.c (set_breakpoint_condition) Likewise. | |
993 | (watch_command_1) Likewise. | |
994 | * c-exp.y (variable): Likewise. | |
995 | * d-exp.y (PrimaryExpression): Likewise. | |
996 | * f-exp.y (variable): Likewise. | |
997 | * go-exp.y (variable): Likewise. | |
998 | * m2-exp.y (variable): Likewise. | |
999 | * objfiles.c (objfile::~objfile): Likewise. | |
1000 | * p-exp.y (variable): Likewise. | |
1001 | * parse.c (innermost_block): Change type. | |
1002 | * parser-defs.h (class innermost_block_tracker): New. | |
1003 | (innermost_block): Change to innermost_block_tracker. | |
1004 | * printcmd.c (display_command): Switch to innermost_block API. | |
1005 | (do_one_display): Likewise. | |
1006 | * rust-exp.y (do_one_display): Likewise. | |
1007 | * symfile.c (clear_symtab_users): Likewise. | |
1008 | * varobj.c (varobj_create): Switch to innermost_block API, replace | |
1009 | use of innermost_block with block stored on varobj object. | |
1010 | ||
396af9a1 AB |
1011 | 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
1012 | ||
1013 | * expression.h (innermost_block): Remove declaration. | |
1014 | * varobj.c: Add 'parser-defs.h' include. | |
1015 | ||
fcfcc376 TT |
1016 | 2018-01-19 Tom Tromey <tom@tromey.com> |
1017 | ||
1018 | * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified | |
1019 | symbols in the static and global blocks. | |
1020 | ||
5a6c3296 JC |
1021 | 2018-01-19 James Clarke <jrtc27@jrtc27.com> |
1022 | ||
1023 | * nat/linux-ptrace.c: Remove unnecessary reinclusion of | |
1024 | gdb_ptrace.h, and move including gdb_wait.h ... | |
1025 | * nat/linux-ptrace.h: ... to here. | |
1026 | ||
bc09b0c1 SM |
1027 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1028 | ||
1029 | * inf-ptrace.c (inf_ptrace_detach): Adjust call to | |
1030 | inf_ptrace_detach_success. | |
1031 | (inf_ptrace_detach_success): Add inferior parameter, use it | |
1032 | instead of inferior_ptid, pass it to detach_inferior. | |
1033 | * inf-ptrace.h (inf_ptrace_detach_success): Add inferior | |
1034 | parameter. | |
1035 | * inferior.c (detach_inferior): Add overload that takes an | |
1036 | inferior object. | |
1037 | * inferior.h (detach_inferior): Likewise. | |
1038 | * linux-nat.c (linux_nat_detach): Use the inf parameter, don't | |
1039 | use inferior_ptid, adjust call to inf_ptrace_detach_success. | |
1040 | * linux-thread-db.c (thread_db_detach): Use inf parameter. | |
1041 | ||
6e1e1966 SM |
1042 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1043 | ||
1044 | * target.h (struct target_ops) <to_detach>: Add inferior | |
1045 | parameter. | |
1046 | (target_detach): Likewise. | |
1047 | * target.c (dispose_inferior): Pass inferior down. | |
1048 | (target_detach): Pass inferior down. Assert that it is equal to | |
1049 | the current inferior. | |
1050 | * aix-thread.c (aix_thread_detach): Pass inferior down. | |
1051 | * corefile.c (core_file_command): Pass current_inferior() down. | |
1052 | * corelow.c (core_detach): Add inferior parameter. | |
1053 | * darwin-nat.c (darwin_detach): Likewise. | |
1054 | * gnu-nat.c (gnu_detach): Likewise. | |
1055 | * inf-ptrace.c (inf_ptrace_detach): Likewise. | |
1056 | * infcmd.c (detach_command): Pass current_inferior() down to | |
1057 | target_detach. | |
1058 | * infrun.c (follow_fork_inferior): Pass parent_inf to | |
1059 | target_detach. | |
1060 | (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to | |
1061 | target_detach. | |
1062 | * linux-nat.c (linux_nat_detach): Add inferior parameter. | |
1063 | * linux-thread-db.c (thread_db_detach): Likewise. | |
1064 | * nto-procfs.c (procfs_detach): Likewise. | |
1065 | * procfs.c (procfs_detach): Likewise. | |
1066 | * record.c (record_detach): Likewise. | |
1067 | * record.h (struct inferior): Forward-declare. | |
1068 | (record_detach): Add inferior parameter. | |
1069 | * remote-sim.c (gdbsim_detach): Likewise. | |
1070 | * remote.c (remote_detach_1): Likewise. | |
1071 | (remote_detach): Likewise. | |
1072 | (extended_remote_detach): Likewise. | |
1073 | * sol-thread.c (sol_thread_detach): Likewise. | |
1074 | * target-debug.h (target_debug_print_inferior_p): New macro. | |
1075 | * target-delegates.c: Re-generate. | |
1076 | * top.c (kill_or_detach): Pass inferior down to target_detach. | |
1077 | * windows-nat.c (windows_detach): Add inferior parameter. | |
1078 | ||
6bd6f3b6 SM |
1079 | 2018-01-19 Simon Marchi <simon.marchi@ericsson.com> |
1080 | ||
1081 | * target.h (struct target_ops) <to_detach>: Remove args | |
1082 | parameter. | |
1083 | (target_detach): Likewise. | |
1084 | * target.c (dispose_inferior): Adjust. | |
1085 | (target_detach): Remove args parameter, adjust. | |
1086 | * aix-thread.c (aix_thread_detach): Adjust. | |
1087 | * corefile.c (core_file_command): Adjust. | |
1088 | * corelow.c (core_detach): Adjust. | |
1089 | * darwin-nat.c (darwin_detach): Adjust. | |
1090 | * gnu-nat.c (gnu_detach): Adjust. | |
1091 | * inf-ptrace.c (inf_ptrace_detach): Adjust. | |
1092 | * infcmd.c (detach_command): Adjust | |
1093 | * infrun.c (follow_fork_inferior): Adjust. | |
1094 | (handle_vfork_child_exec_or_exit): Adjust. | |
1095 | * linux-fork.c (linux_fork_detach): Remove args parameter. | |
1096 | * linux-fork.h (linux_fork_detach): Likewise. | |
1097 | * linux-nat.c (linux_nat_detach): Likewise, and adjust. | |
1098 | * linux-thread-db.c (thread_db_detach): Likewise. | |
1099 | * nto-procfs.c (procfs_detach): Likewise. | |
1100 | * procfs.c (procfs_detach): Likewise. | |
1101 | (do_detach): Remove signo parameter. | |
1102 | * record.c (record_detach): Remove args parameter. | |
1103 | * record.h (record_detach): Likewise. | |
1104 | * remote-sim.c (gdbsim_detach): Likewise. | |
1105 | * remote.c (remote_detach_1): Likewise. | |
1106 | (remote_detach): Likewise. | |
1107 | (extended_remote_detach): Likewise. | |
1108 | * sol-thread.c (sol_thread_detach): Likewise. | |
1109 | * target-delegates.c: Re-generate. | |
1110 | * top.c (struct qt_args) <args>: Remove field. | |
1111 | (kill_or_detach): Don't pass args. | |
1112 | (quit_force): Don't set args. | |
1113 | * windows-nat.c (windows_detach): Remove args parameter. | |
1114 | ||
88af8ea8 YQ |
1115 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
1116 | ||
1117 | * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. | |
1118 | (arm_linux_init_abi): Install it. | |
1119 | ||
dea445b9 YQ |
1120 | 2018-01-19 Yao Qi <yao.qi@linaro.org> |
1121 | ||
1122 | * osabi.c (gdb_osabi_names): Extend the regexp for | |
1123 | arm-linux-gnueabihf. | |
1124 | ||
4a17f768 YQ |
1125 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
1126 | ||
1127 | * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to | |
1128 | m_abbrevs. | |
1129 | (abbrev_table::add_abbrev): Update. | |
1130 | (abbrev_table::lookup_abbrev): Update. | |
1131 | ||
d679c21a YQ |
1132 | 2018-01-18 Yao Qi <yao.qi@linaro.org> |
1133 | ||
1134 | * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. | |
1135 | ||
7d937cad SDJ |
1136 | 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> |
1137 | ||
1138 | * compile/compile.c (compile_to_object): Convert "triplet_rx" | |
1139 | to "std::string". | |
1140 | ||
9e14690d TT |
1141 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1142 | ||
1143 | * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. | |
1144 | ||
50a82047 TT |
1145 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1146 | ||
1147 | * gdbtypes.h (add_dyn_prop): Remove objfile parameter. | |
1148 | * gdbtypes.c (add_dyn_prop): Remove objfile parameter. | |
1149 | (create_array_type_with_stride): Update. | |
1150 | * dwarf2read.c (set_die_type): Update. | |
1151 | ||
c89b44cd TT |
1152 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1153 | ||
1154 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
1155 | (dwarf2_cu::method_info): Now a std::vector. | |
1156 | (add_to_method_list): Update. | |
1157 | (free_delayed_list): Remove. | |
1158 | (compute_delayed_physnames): Update. | |
1159 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
1160 | list. Remove cleanups. | |
1161 | (psymtab_include_file_name): Add name_holder parameter. Use | |
1162 | unique_xmalloc_ptr. | |
1163 | (dwarf_decode_lines): Update. | |
1164 | ||
fcd3b13d SM |
1165 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1166 | Simon Marchi <simon.marchi@ericsson.com> | |
1167 | ||
1168 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
1169 | (dwarf2_per_objfile::free_cached_comp_units) | |
1170 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
1171 | (init_cutu_and_read_dies_no_follow): Update. | |
1172 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
1173 | (dwarf2_cu::~dwarf2_cu): New. | |
1174 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
1175 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
1176 | ||
685af9cd TT |
1177 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1178 | Simon Marchi <simon.marchi@ericsson.com> | |
1179 | ||
1180 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
1181 | (struct die_reader_specs) <abbrev_table>: New member. | |
1182 | (struct abbrev_table): Add constructor. | |
1183 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
1184 | <abbrev_obstack>: Now an auto_obstack. | |
1185 | (abbrev_table_up): New typedef. | |
1186 | (init_cu_die_reader): Add abbrev_table parameter. | |
1187 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
1188 | Add result_dwo_abbrev_table. | |
1189 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
1190 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
1191 | Update. | |
1192 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
1193 | parameter. | |
1194 | (skip_children): Update. | |
1195 | (abbrev_table::alloc_abbrev): Rename from | |
1196 | abbrev_table_alloc_abbrev. | |
1197 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
1198 | (abbrev_table::lookup_abbrev): Rename from | |
1199 | abbrev_table_lookup_abbrev. | |
1200 | (abbrev_table_read_table): Return abbrev_table_up. | |
1201 | (abbrev_table_free, abbrev_table_free_cleanup) | |
1202 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
1203 | (load_partial_dies): Update. | |
1204 | ||
5e2db402 TT |
1205 | 2018-01-17 Tom Tromey <tom@tromey.com> |
1206 | ||
1207 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
1208 | (read_func_scope, read_variable): Update. | |
1209 | (new_symbol): Remove. | |
1210 | (new_symbol_full): Rename to new_symbol. | |
1211 | ||
ee7f689e | 1212 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
1213 | |
1214 | PR gdb/16577 | |
1215 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
1216 | a warning instead of throwing an error, set section size to 0 and return | |
1217 | NULL. | |
1218 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
1219 | ||
4d9b86e1 SM |
1220 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
1221 | ||
1222 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
1223 | std::string. | |
1224 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
1225 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
1226 | Likewise. | |
1227 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
1228 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
1229 | ||
a7b2d0fb SM |
1230 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
1231 | ||
1232 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
1233 | ||
f517c180 EA |
1234 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
1235 | ||
1236 | PR gdb/21559 | |
1237 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
1238 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
1239 | * configure: Regenerate. | |
1240 | ||
7045b1ca YQ |
1241 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
1242 | ||
1243 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
1244 | function. | |
1245 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
1246 | gcc_target_options. | |
1247 | ||
db422fb2 PA |
1248 | 2018-01-15 Pedro Alves <palves@redhat.com> |
1249 | ||
1250 | * common/signals-state-save-restore.c | |
1251 | (save_original_signals_state): Fix typos. | |
1252 | ||
ba643918 SDJ |
1253 | 2017-01-12 Tom Tromey <tom@tromey.com> |
1254 | Sergio Durigan Junior <sergiodj@redhat.com> | |
1255 | ||
1256 | * Makefile.in (install-only): Install gdb-add-index. | |
1257 | ||
906b4aac JB |
1258 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
1259 | ||
1260 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
1261 | ||
bdf2a94a AA |
1262 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1263 | ||
1264 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
1265 | insert_breakpoints fails. | |
1266 | ||
71d378ae PA |
1267 | 2018-01-11 Pedro Alves <palves@redhat.com> |
1268 | ||
1269 | PR gdb/22583 | |
1270 | * infrun.c (resume): Rename to ... | |
1271 | (resume_1): ... this. | |
1272 | (resume): Reimplement as wrapper around resume_1. | |
1273 | ||
3cada740 PA |
1274 | 2018-01-11 Pedro Alves <palves@redhat.com> |
1275 | ||
1276 | PR remote/22597 | |
1277 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
1278 | general thread instead of to 'magic_null_ptid'. | |
1279 | ||
618daa93 PA |
1280 | 2018-01-10 Pedro Alves <palves@redhat.com> |
1281 | ||
1282 | * language.h (language_get_symbol_name_matcher): Rename ... | |
1283 | (get_symbol_name_matcher): ... this. | |
1284 | * language.c (language_get_symbol_name_matcher): Ditto. | |
1285 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
1286 | callers adjusted. | |
1287 | ||
c63d3e8d PA |
1288 | 2018-01-10 Pedro Alves <palves@redhat.com> |
1289 | ||
1290 | PR gdb/22670 | |
1291 | * dwarf2read.c | |
1292 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
1293 | Adjust to use language_get_symbol_name_matcher instead of | |
1294 | language_defn::la_get_symbol_name_matcher. | |
1295 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
1296 | and the lookup name is a verbatim match, return Ada's matcher. | |
1297 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
1298 | (ada_lookup_name_info::verbatim_p):: New method. | |
1299 | ||
d4c2a405 PA |
1300 | 2018-01-10 Pedro Alves <palves@redhat.com> |
1301 | ||
1302 | PR gdb/22670 | |
1303 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
1304 | minsym's language is language_auto or language_cplus, pass down | |
1305 | language_ada instead. | |
1306 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
1307 | ||
8825213e PA |
1308 | 2018-01-10 Pedro Alves <palves@redhat.com> |
1309 | ||
1310 | PR gdb/22670 | |
1311 | * minsyms.c (linkage_name_str): New function. | |
1312 | (iterate_over_minimal_symbols): Use it. | |
1313 | ||
2d97a5d9 JB |
1314 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
1315 | ||
1316 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
1317 | ||
92fce24d JB |
1318 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
1319 | ||
1320 | * configure.ac: Check for kinfo_getfile in libutil. | |
1321 | * configure: Regenerate. | |
1322 | * config.in: Regenerate. | |
1323 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
1324 | (fbsd_fetch_cmdline): New. | |
1325 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
1326 | rather than calling error. | |
1327 | (fbsd_info_proc): New. | |
1328 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
1329 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
1330 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
1331 | ||
262f62f5 JB |
1332 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
1333 | ||
1334 | * fbsd-nat.c (struct free_deleter): Remove. | |
1335 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
1336 | ||
b999e203 JB |
1337 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
1338 | ||
1339 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
1340 | NULL for an empty pathname. | |
1341 | ||
d2176225 JB |
1342 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
1343 | ||
1344 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
1345 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
1346 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
1347 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
1348 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
1349 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
1350 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
1351 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
1352 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
1353 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
1354 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
1355 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
1356 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
1357 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
1358 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
1359 | ||
9c4ac400 ST |
1360 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
1361 | ||
1362 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
1363 | (gnu_xfer_auxv): New function. | |
1364 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
1365 | TARGET_OBJECT_AUXV. | |
1366 | ||
1e5ded6c YQ |
1367 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
1368 | Simon Marchi <simon.marchi@ericsson.com> | |
1369 | ||
1370 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
1371 | common/selftest.c. | |
1372 | (COMMON_OBS): Remove selftest.o. | |
1373 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
1374 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
1375 | * configure: Re-generated. | |
1376 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
1377 | GDB_SELF_TEST. | |
1378 | (maintenance_info_selftests): Likewise. | |
1379 | ||
04bafb1e XR |
1380 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
1381 | ||
1382 | * ada-valprint.c (val_print_packed_array_elements): Use | |
1383 | proper number of elements when printing an array indexed | |
1384 | by an enumeration type. | |
1385 | ||
518817b3 SM |
1386 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
1387 | ||
1388 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
1389 | (dw2_get_file_names_reader): Adjust. | |
1390 | (lookup_dwo_signatured_type): Adjust. | |
1391 | (lookup_dwp_signatured_type): Adjust. | |
1392 | (lookup_signatured_type): Adjust. | |
1393 | (create_type_unit_group): Adjust. | |
1394 | (get_type_unit_group): Adjust. | |
1395 | (process_psymtab_comp_unit_reader): Adjust. | |
1396 | (build_type_psymtabs_reader): Adjust. | |
1397 | (scan_partial_symbols): Adjust. | |
1398 | (add_partial_symbol): Adjust. | |
1399 | (add_partial_subprogram): Adjust. | |
1400 | (peek_die_abbrev): Adjust. | |
1401 | (fixup_go_packaging): Adjust. | |
1402 | (process_imported_unit_die): Adjust. | |
1403 | (dwarf2_compute_name): Adjust. | |
1404 | (dwarf2_physname): Adjust. | |
1405 | (read_import_statement): Adjust. | |
1406 | (handle_DW_AT_stmt_list): Adjust. | |
1407 | (read_file_scope): Adjust. | |
1408 | (read_func_scope): Adjust. | |
1409 | (read_lexical_block_scope): Adjust. | |
1410 | (read_call_site_scope): Adjust. | |
1411 | (read_variable): Adjust. | |
1412 | (dwarf2_rnglists_process): Adjust. | |
1413 | (dwarf2_ranges_process): Adjust. | |
1414 | (dwarf2_ranges_read): Adjust. | |
1415 | (dwarf2_get_pc_bounds): Adjust. | |
1416 | (dwarf2_record_block_ranges): Adjust. | |
1417 | (dwarf2_add_field): Adjust. | |
1418 | (dwarf2_add_member_fn): Adjust. | |
1419 | (read_structure_type): Adjust. | |
1420 | (process_structure_scope): Adjust. | |
1421 | (read_enumeration_type): Adjust. | |
1422 | (read_array_type): Adjust. | |
1423 | (mark_common_block_symbol_computed): Adjust. | |
1424 | (read_common_block): Adjust. | |
1425 | (read_namespace_type): Adjust. | |
1426 | (read_namespace): Adjust. | |
1427 | (read_module_type): Adjust. | |
1428 | (read_tag_pointer_type): Adjust. | |
1429 | (read_tag_ptr_to_member_type): Adjust. | |
1430 | (read_tag_string_type): Adjust. | |
1431 | (read_subroutine_type): Adjust. | |
1432 | (read_typedef): Adjust. | |
1433 | (read_base_type): Adjust. | |
1434 | (attr_to_dynamic_prop): Adjust. | |
1435 | (read_subrange_type): Adjust. | |
1436 | (read_unspecified_type): Adjust. | |
1437 | (dwarf2_read_abbrevs): Adjust. | |
1438 | (load_partial_dies): Adjust. | |
1439 | (read_partial_die): Adjust. | |
1440 | (find_partial_die): Adjust. | |
1441 | (guess_partial_die_structure_name): Adjust. | |
1442 | (fixup_partial_die): Adjust. | |
1443 | (read_attribute_value): Adjust. | |
1444 | (read_addr_index): Adjust. | |
1445 | (read_addr_index_from_leb128): Adjust. | |
1446 | (read_str_index): Adjust. | |
1447 | (dwarf2_string_attr): Adjust. | |
1448 | (get_debug_line_section): Adjust. | |
1449 | (dwarf_decode_line_header): Adjust. | |
1450 | (lnp_state_machine::check_line_address): Adjust. | |
1451 | (dwarf_decode_lines_1): Adjust. | |
1452 | (dwarf_decode_lines): Adjust. | |
1453 | (dwarf2_start_symtab): Adjust. | |
1454 | (var_decode_location): Adjust. | |
1455 | (new_symbol_full): Adjust. | |
1456 | (dwarf2_const_value_data): Adjust. | |
1457 | (dwarf2_const_value_attr): Adjust. | |
1458 | (dwarf2_const_value): Adjust. | |
1459 | (die_type): Adjust. | |
1460 | (die_containing_type): Adjust. | |
1461 | (build_error_marker_type): Adjust. | |
1462 | (lookup_die_type): Adjust. | |
1463 | (guess_full_die_structure_name): Adjust. | |
1464 | (anonymous_struct_prefix): Adjust. | |
1465 | (determine_prefix): Adjust. | |
1466 | (dwarf2_name): Adjust. | |
1467 | (follow_die_ref_or_sig): Adjust. | |
1468 | (follow_die_offset): Adjust. | |
1469 | (follow_die_ref): Adjust. | |
1470 | (follow_die_sig_1): Adjust. | |
1471 | (follow_die_sig): Adjust. | |
1472 | (get_signatured_type): Adjust. | |
1473 | (get_DW_AT_signature_type): Adjust. | |
1474 | (decode_locdesc): Adjust. | |
1475 | (dwarf_decode_macros): Adjust. | |
1476 | (cu_debug_loc_section): Adjust. | |
1477 | (fill_in_loclist_baton): Adjust. | |
1478 | (dwarf2_symbol_mark_computed): Adjust. | |
1479 | (init_one_comp_unit): Don't assign | |
1480 | dwarf2_cu::dwarf2_per_objfile. | |
1481 | (set_die_type): Adjust. | |
1482 | ||
ed2dc618 SM |
1483 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
1484 | ||
1485 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
1486 | <dwarf2_per_objfile>: New field. | |
1487 | (dwarf2_per_objfile): Remove global. | |
1488 | (get_dwarf2_per_objfile): New function. | |
1489 | (set_dwarf2_per_objfile): New function. | |
1490 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
1491 | dwarf2_per_objfile. | |
1492 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
1493 | (read_abbrev_offset): Likewise. | |
1494 | (read_indirect_string): Likewise. | |
1495 | (read_indirect_line_string): Likewise. | |
1496 | (read_indirect_string_at_offset): Likewise. | |
1497 | (read_indirect_string_from_dwz): Likewise. | |
1498 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
1499 | dwarf2_per_objfile. | |
1500 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
1501 | (create_all_comp_units): Change objfile parameter to | |
1502 | dwarf2_per_objfile. | |
1503 | (create_all_type_units): Likewise. | |
1504 | (process_queue): Add dwarf2_per_objfile parameter. | |
1505 | (read_and_check_comp_unit_head): Likewise. | |
1506 | (lookup_dwo_unit_in_dwp): Likewise. | |
1507 | (get_dwp_file): Likewise. | |
1508 | (process_cu_includes): Likewise. | |
1509 | (struct free_dwo_file_cleanup_data): New struct. | |
1510 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
1511 | set_dwarf2_per_objfile. | |
1512 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
1513 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
1514 | context, adjust calls. | |
1515 | (dw2_instantiate_symtab): Likewise. | |
1516 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
1517 | (dw2_get_cu): Likewise. | |
1518 | (create_cu_from_index_list): Change objfile parameter to | |
1519 | dwarf2_per_objfile. | |
1520 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
1521 | context, adjust calls. | |
1522 | (create_cus_from_index): Likewise. | |
1523 | (create_signatured_type_table_from_index): Change objfile | |
1524 | parameter to dwarf2_per_objfile. | |
1525 | (create_signatured_type_table_from_debug_names): Change objfile | |
1526 | parameter to dwarf2_per_objfile. | |
1527 | (create_addrmap_from_index): Likewise. | |
1528 | (create_addrmap_from_aranges): Likewise. | |
1529 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
1530 | (dw2_setup): Remove. | |
1531 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
1532 | context. | |
1533 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
1534 | get_dwarf2_per_objfile. | |
1535 | (dw2_forget_cached_source_info): Likewise. | |
1536 | (dw2_map_symtabs_matching_filename): Likewise. | |
1537 | (struct dw2_symtab_iterator) <index>: Remove. | |
1538 | <dwarf2_per_objfile>: New field. | |
1539 | (dw2_symtab_iter_init): Replace index parameter with | |
1540 | dwarf2_per_objfile. | |
1541 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
1542 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
1543 | (dw2_print_stats): Likewise. | |
1544 | (dw2_dump): Likewise. | |
1545 | (dw2_expand_symtabs_for_function): Likewise. | |
1546 | (dw2_expand_all_symtabs): Likewise. | |
1547 | (dw2_expand_symtabs_with_fullname): Likewise. | |
1548 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
1549 | with dwarf2_per_objfile. | |
1550 | (dw_expand_symtabs_matching_file_matcher): Add | |
1551 | dwarf2_per_objfile parameter and adjust calls. | |
1552 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
1553 | adjust calls. | |
1554 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
1555 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
1556 | adjust calls. | |
1557 | (create_cus_from_debug_names_list): Replace objfile parameter | |
1558 | with dwarf2_per_objfile and adjust calls. | |
1559 | (create_cus_from_debug_names): Likewise. | |
1560 | (dwarf2_read_debug_names): Likewise. | |
1561 | (mapped_debug_names::namei_to_name): Adjust call. | |
1562 | (dw2_debug_names_iterator::next): Likewise. | |
1563 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
1564 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
1565 | (dw2_debug_names_dump): Likewise. | |
1566 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
1567 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
1568 | (dwarf2_initialize_objfile): Likewise. | |
1569 | (dwarf2_build_psymtabs): Likewise. | |
1570 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
1571 | this_cu. | |
1572 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
1573 | (read_and_check_comp_unit_head): Likewise. | |
1574 | (read_abbrev_offset): Likewise. | |
1575 | (create_debug_type_hash_table): Likewise. | |
1576 | (create_debug_types_hash_table): Likewise. | |
1577 | (create_all_type_units): Replace objfile parameter with | |
1578 | dwarf2_per_objfile. | |
1579 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
1580 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
1581 | with dwarf2_per_objfile. | |
1582 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
1583 | (lookup_dwp_signatured_type): Likewise. | |
1584 | (lookup_signatured_type): Likewise. | |
1585 | (read_cutu_die_from_dwo): Likewise. | |
1586 | (init_tu_and_read_dwo_dies): Likewise. | |
1587 | (init_cutu_and_read_dies): Likewise. | |
1588 | (init_cutu_and_read_dies_no_follow): Likewise. | |
1589 | (allocate_type_unit_groups_table): Add objfile parameter. | |
1590 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
1591 | (get_type_unit_group): Likewise. | |
1592 | (process_psymtab_comp_unit): Update call. | |
1593 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
1594 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
1595 | (print_tu_stats): Likewise. | |
1596 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
1597 | in void* parameter. | |
1598 | (build_type_psymtabs): Change objfile parameter to | |
1599 | dwarf2_per_objfile. | |
1600 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
1601 | passed in void* parameter. | |
1602 | (process_skeletonless_type_units): Change objfile parameter to | |
1603 | dwarf2_per_objfile. | |
1604 | (set_partial_user): Likewise. | |
1605 | (dwarf2_build_psymtabs_hard): Likewise. | |
1606 | (read_comp_units_from_section): Likewise. | |
1607 | (create_all_comp_units): Likewise. | |
1608 | (scan_partial_symbols): Update calls. | |
1609 | (add_partial_symbol): Likewise. | |
1610 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
1611 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
1612 | (process_queue): Add dwarf2_per_objfile parameter. | |
1613 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
1614 | (compute_compunit_symtab_includes): Likewise. | |
1615 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
1616 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
1617 | (process_full_type_unit): Likewise. | |
1618 | (process_imported_unit_die): Update call. | |
1619 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
1620 | (read_file_scope): Likewise. | |
1621 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
1622 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
1623 | (create_cus_hash_table): Likewise. | |
1624 | (create_dwp_hash_table): Likewise. | |
1625 | (create_dwo_unit_in_dwp_v1): Likewise. | |
1626 | (create_dwp_v2_section): Likewise. | |
1627 | (create_dwo_unit_in_dwp_v2): Likewise. | |
1628 | (lookup_dwo_unit_in_dwp): Likewise. | |
1629 | (try_open_dwop_file): Likewise. | |
1630 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
1631 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
1632 | cleanup to include a reference to dwarf2_per_objfile. | |
1633 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
1634 | (open_and_init_dwp_file): Likewise. | |
1635 | (get_dwp_file): Likewise. | |
1636 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
1637 | (queue_and_load_all_dwo_tus): Update call. | |
1638 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
1639 | data. | |
1640 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
1641 | (dwarf2_ranges_process): Likewise. | |
1642 | (dwarf2_get_pc_bounds): Likewise. | |
1643 | (mark_common_block_symbol_computed): Likewise. | |
1644 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
1645 | (dwarf2_read_abbrevs): Update call. | |
1646 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
1647 | (find_partial_die): Likewise. | |
1648 | (fixup_partial_die): Likewise. | |
1649 | (read_attribute_value): Likewise. | |
1650 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
1651 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
1652 | parameter. | |
1653 | (read_indirect_string_from_dwz): Add objfile parameter. | |
1654 | (read_indirect_string): Add objfile parameter. | |
1655 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
1656 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
1657 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
1658 | call dw2_setup. | |
1659 | (read_str_index): Use dwarf2_per_objfile from cu. | |
1660 | (get_debug_line_section): Likewise. | |
1661 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
1662 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
1663 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
1664 | (build_error_marker_type): Likewise. | |
1665 | (lookup_die_type): Likewise. | |
1666 | (determine_prefix): Likewise. | |
1667 | (follow_die_offset): Likewise. | |
1668 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
1669 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
1670 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
1671 | (dwarf2_get_die_type): Likewise. | |
1672 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
1673 | (get_signatured_type): Likewise. | |
1674 | (get_DW_AT_signature_type): Likewise. | |
1675 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
1676 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
1677 | (cu_debug_loc_section): Likewise. | |
1678 | (fill_in_loclist_baton): Likewise. | |
1679 | (dwarf2_symbol_mark_computed): Likewise. | |
1680 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
1681 | dwarf2_per_objfile. | |
1682 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
1683 | parameter. | |
1684 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
1685 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
1686 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
1687 | (set_die_type): Use dwarf2_free_objfile from cu. | |
1688 | (get_die_type_at_offset): Likewise. | |
1689 | (dwarf2_per_objfile_free): Don't assign global variable. | |
1690 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
1691 | parameter, update m_debugstrlookup construction. | |
1692 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
1693 | parameter. | |
1694 | <m_dwarf2_per_objfile>: New field. | |
1695 | <lookup>: Use m_dwarf2_per_objfile. | |
1696 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
1697 | (psyms_seen_size): Likewise. | |
1698 | (write_gdbindex): Replace objfile parameter with | |
1699 | dwarf2_per_objfile. | |
1700 | (write_debug_names): Likewise. | |
1701 | (write_psymtabs_to_index): Likewise. | |
1702 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
1703 | calls. | |
1704 | ||
e3b94546 SM |
1705 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
1706 | ||
1707 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
1708 | <dwarf2_per_objfile>: New field. | |
1709 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
1710 | <dwarf2_per_objfile>: New field. | |
1711 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
1712 | of objfile. | |
1713 | (create_signatured_type_table_from_index): Likewise. | |
1714 | (create_debug_type_hash_table): Likewise. | |
1715 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
1716 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
1717 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
1718 | objfile. | |
1719 | (create_partial_symtab): Access objfile through | |
1720 | dwarf2_per_objfile. | |
1721 | (process_psymtab_comp_unit_reader): Likewise. | |
1722 | (read_comp_units_from_section): Likewise. | |
1723 | (scan_partial_symbols): Likewise. | |
1724 | (add_partial_symbol): Likewise. | |
1725 | (add_partial_subprogram): Likewise. | |
1726 | (peek_die_abbrev): Likewise. | |
1727 | (fixup_go_packaging): Likewise. | |
1728 | (process_full_comp_unit): Likewise. | |
1729 | (process_full_type_unit): Likewise. | |
1730 | (process_imported_unit_die): Likewise. | |
1731 | (dwarf2_compute_name): Likewise. | |
1732 | (dwarf2_physname): Likewise. | |
1733 | (read_import_statement): Likewise. | |
1734 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
1735 | objfile. | |
1736 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
1737 | (read_lexical_block_scope): Likewise. | |
1738 | (read_call_site_scope): Likewise. | |
1739 | (read_variable): Likewise. | |
1740 | (dwarf2_rnglists_process): Likewise. | |
1741 | (dwarf2_ranges_process): Likewise. | |
1742 | (dwarf2_ranges_read): Likewise. | |
1743 | (dwarf2_record_block_ranges): Likewise. | |
1744 | (dwarf2_add_field): Likewise. | |
1745 | (dwarf2_add_member_fn): Likewise. | |
1746 | (read_structure_type): Likewise. | |
1747 | (process_structure_scope): Likewise. | |
1748 | (read_enumeration_type): Likewise. | |
1749 | (read_array_type): Likewise. | |
1750 | (read_common_block): Likewise. | |
1751 | (read_namespace_type): Likewise. | |
1752 | (read_namespace): Likewise. | |
1753 | (read_module_type): Likewise. | |
1754 | (read_tag_pointer_type): Likewise. | |
1755 | (read_tag_ptr_to_member_type): Likewise. | |
1756 | (read_tag_string_type): Likewise. | |
1757 | (read_subroutine_type): Likewise. | |
1758 | (read_typedef): Likewise. | |
1759 | (read_base_type): Likewise. | |
1760 | (attr_to_dynamic_prop): Likewise. | |
1761 | (read_subrange_type): Likewise. | |
1762 | (read_unspecified_type): Likewise. | |
1763 | (load_partial_dies): Likewise. | |
1764 | (read_partial_die): Likewise. | |
1765 | (find_partial_die): Likewise. | |
1766 | (guess_partial_die_structure_name): Likewise. | |
1767 | (fixup_partial_die): Likewise. | |
1768 | (read_attribute_value): Likewise. | |
1769 | (read_addr_index_from_leb128): Likewise. | |
1770 | (dwarf2_read_addr_index): Likewise. | |
1771 | (dwarf2_string_attr): Likewise. | |
1772 | (lnp_state_machine::check_line_address): Likewise. | |
1773 | (dwarf_decode_lines_1): Likewise. | |
1774 | (dwarf_decode_lines): Likewise. | |
1775 | (dwarf2_start_symtab): Likewise. | |
1776 | (var_decode_location): Likewise. | |
1777 | (new_symbol_full): Likewise. | |
1778 | (dwarf2_const_value_data): Likewise. | |
1779 | (dwarf2_const_value_attr): Likewise. | |
1780 | (dwarf2_const_value): Likewise. | |
1781 | (die_type): Likewise. | |
1782 | (die_containing_type): Likewise. | |
1783 | (lookup_die_type): Likewise. | |
1784 | (guess_full_die_structure_name): Likewise. | |
1785 | (anonymous_struct_prefix): Likewise. | |
1786 | (dwarf2_name): Likewise. | |
1787 | (follow_die_ref_or_sig): Likewise. | |
1788 | (follow_die_offset): Likewise. | |
1789 | (follow_die_ref): Likewise. | |
1790 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
1791 | (dwarf2_fetch_constant_bytes): Likewise. | |
1792 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
1793 | (dwarf2_get_die_type): Likewise. | |
1794 | (follow_die_sig): Likewise. | |
1795 | (decode_locdesc): Likewise. | |
1796 | (dwarf2_per_cu_objfile): Likewise. | |
1797 | (dwarf2_per_cu_text_offset): Likewise. | |
1798 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
1799 | objfile. | |
1800 | (set_die_type): Access objfile through | |
1801 | dwarf2_per_objfile. | |
1802 | ||
b01ba14d SM |
1803 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
1804 | ||
1805 | * valprint.c (converted_character_d): Remove typedef. | |
1806 | (DEF_VEC_O (converted_character_d)): Remove. | |
1807 | (count_next_character): Use std::vector. | |
1808 | (print_converted_chars_to_obstack): Likewise. | |
1809 | (generic_printstr): Likewise. | |
1810 | ||
4d0fdd9b SM |
1811 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
1812 | ||
1813 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
1814 | <value>: Change type to unique_xmalloc_ptr. | |
1815 | (gdb_xml_value_s): Remove typedef. | |
1816 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
1817 | (gdb_xml_element_start_handler): Change parameter type to | |
1818 | std::vector. | |
1819 | (xml_find_attribute): Likewise. | |
1820 | * xml-support.c (xml_find_attribute): Change parameter type to | |
1821 | std::vector and adjust. | |
1822 | (gdb_xml_values_cleanup): Remove. | |
1823 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
1824 | (xinclude_start_include): Change paraeter type to std::vector | |
1825 | and adjust. | |
1826 | * btrace.c (check_xml_btrace_version): Likewise. | |
1827 | (parse_xml_btrace_block): Likewise. | |
1828 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
1829 | (parse_xml_btrace_pt): Likewise. | |
1830 | (parse_xml_btrace_conf_bts): Likewise. | |
1831 | (parse_xml_btrace_conf_pt): Likewise. | |
1832 | * memory-map.c (memory_map_start_memory): Likewise. | |
1833 | (memory_map_start_property): Likewise. | |
1834 | * osdata.c (osdata_start_osdata): Likewise. | |
1835 | (osdata_start_item): Likewise. | |
1836 | (osdata_start_column): Likewise. | |
1837 | * remote.c (start_thread): Likewise. | |
1838 | * solib-aix.c (library_list_start_library): Likewise. | |
1839 | (library_list_start_list): Likewise. | |
1840 | * solib-svr4.c (library_list_start_library): Likewise. | |
1841 | (svr4_library_list_start_list): Likewise. | |
1842 | * solib-target.c (library_list_start_segment): Likewise. | |
1843 | (library_list_start_section): Likewise. | |
1844 | (library_list_start_library): Likewise. | |
1845 | (library_list_start_list): Likewise. | |
1846 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
1847 | (traceframe_info_start_tvar): Likewise. | |
1848 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
1849 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
1850 | (tdesc_start_feature): Likewise. | |
1851 | (tdesc_start_reg): Likewise. | |
1852 | (tdesc_start_union): Likewise. | |
1853 | (tdesc_start_struct): Likewise. | |
1854 | (tdesc_start_flags): Likewise. | |
1855 | (tdesc_start_enum): Likewise. | |
1856 | (tdesc_start_field): Likewise. | |
1857 | (tdesc_start_enum_value): Likewise. | |
1858 | (tdesc_start_vector): Likewise. | |
1859 | ||
f979c73f SM |
1860 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
1861 | ||
1862 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
1863 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
1864 | Remove. | |
1865 | (python_xmethod_worker::clone): Remove. | |
1866 | * valops.c (find_overload_match): Use std::move instead of | |
1867 | clone. | |
1868 | ||
ba18742c SM |
1869 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
1870 | ||
1871 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
1872 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
1873 | <free_xmethod_worker_data>: Remove. | |
1874 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
1875 | <get_xmethod_arg_types>: Remove. | |
1876 | <get_xmethod_result_type>: Remove. | |
1877 | <invoke_xmethod>: Remove. | |
1878 | * extension.c (new_xmethod_worker): Remove. | |
1879 | (clone_xmethod_worker): Remove. | |
1880 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
1881 | pointer. | |
1882 | (get_xmethod_arg_types): Rename to... | |
1883 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
1884 | (get_xmethod_result_type): Rename to... | |
1885 | (xmethod_worker::get_result_type): ... this, and adjust. | |
1886 | (invoke_xmethod): Remove. | |
1887 | (free_xmethod_worker): Remove. | |
1888 | (free_xmethod_worker_vec): Remove. | |
1889 | * extension.h (enum ext_lang_rc): Move here from | |
1890 | extension-priv.h. | |
1891 | (struct xmethod_worker): Add constructor and destructor. | |
1892 | <data>: Remove. | |
1893 | <value>: Remove. | |
1894 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
1895 | virtual pure methods. | |
1896 | <get_arg_types, get_result_type>: New methods. | |
1897 | (xmethod_worker_ptr): Remove typedef. | |
1898 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
1899 | (xmethod_worker_vec): Remove typedef. | |
1900 | (xmethod_worker_up): New typedef. | |
1901 | (invoke_xmethod): Remove. | |
1902 | (clone_xmethod_worker): Remove. | |
1903 | (free_xmethod_worker): Remove. | |
1904 | (free_xmethod_worker_vec): Remove. | |
1905 | (get_xmethod_arg_types): Remove. | |
1906 | (get_xmethod_result_type): Remove. | |
1907 | * valops.c (find_method_list): Use std::vector, don't use | |
1908 | intermediate vector. | |
1909 | (value_find_oload_method_list): Use std::vector. | |
1910 | (find_overload_match): Use std::vector. | |
1911 | (find_oload_champ): Use std::vector. | |
1912 | * value.c (value_free): Use operator delete. | |
1913 | (value_of_xmethod): Rename to... | |
1914 | (value_from_xmethod): ... this. Don't assign | |
1915 | xmethod_worker::value, take rvalue-reference. | |
1916 | (result_type_of_xmethod): Adjust. | |
1917 | (call_xmethod): Adjust. | |
1918 | * value.h: Include extension.h. | |
1919 | (struct xmethod_worker): Don't forward-declare. | |
1920 | (value_of_xmethod): Rename to... | |
1921 | (value_from_xmethod): ... this, take rvalue-reference. | |
1922 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
1923 | (struct python_xmethod_worker): ... this, add constructor and | |
1924 | destructor. | |
1925 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
1926 | (gdbpy_free_xmethod_worker_data): Rename to... | |
1927 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
1928 | adjust. | |
1929 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
1930 | (python_xmethod_worker::clone): ... this and adjust. | |
1931 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
1932 | temporary vector. | |
1933 | (gdbpy_get_xmethod_arg_types): Rename to... | |
1934 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
1935 | (gdbpy_get_xmethod_result_type): Rename to... | |
1936 | (python_xmethod_worker::do_get_result_type): ... this and | |
1937 | adjust. | |
1938 | (gdbpy_invoke_xmethod): Rename to... | |
1939 | (python_xmethod_worker::invoke): ... this and adjust. | |
1940 | (new_python_xmethod_worker): Rename to... | |
1941 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
1942 | adjust. | |
1943 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
1944 | Remove. | |
1945 | (gdbpy_free_xmethod_worker_data): Remove. | |
1946 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
1947 | (gdbpy_get_xmethod_arg_types): Remove. | |
1948 | (gdbpy_get_xmethod_result_type): Remove. | |
1949 | (gdbpy_invoke_xmethod): Remove. | |
1950 | * python/python.c (python_extension_ops): Remove obsolete | |
1951 | callbacks. | |
1952 | ||
e379cee6 PA |
1953 | 2018-01-05 Pedro Alves <palves@redhat.com> |
1954 | ||
1955 | PR gdb/18653 | |
1956 | * common/signals-state-save-restore.c | |
1957 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
1958 | find a custom handler preinstalled, instead of internal erroring. | |
1959 | But only warn if !quiet. | |
1960 | * common/signals-state-save-restore.h | |
1961 | (save_original_signals_state): New parameter 'quiet'. | |
1962 | * main.c (captured_main_1): Move save_original_signals_state call | |
1963 | after option handling, and pass QUIET. | |
1964 | ||
a655456c PA |
1965 | 2018-01-05 Pedro Alves <palves@redhat.com> |
1966 | ||
1967 | * spu-tdep.c (spu_catch_start): Pass | |
1968 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
1969 | ||
de63c46b PA |
1970 | 2018-01-05 Pedro Alves <palves@redhat.com> |
1971 | ||
1972 | PR gdb/22670 | |
1973 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
1974 | (ada_get_symbol_name_matcher): Use it for | |
1975 | symbol_name_match_type::SEARCH_NAME. | |
1976 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
1977 | it down instead of assuming symbol_name_match_type::FULL. | |
1978 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
1979 | * c-valprint.c (print_unpacked_pointer): Use | |
1980 | lookup_symbol_search_name instead of lookup_symbol. | |
1981 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
1982 | symbol_name_match_type::SEARCH_NAME. | |
1983 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
1984 | symbol_name_match_type::FULL. | |
1985 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
1986 | symbol_name_match_type::SEARCH_NAME. | |
1987 | * infrun.c (insert_exception_resume_breakpoint): Use | |
1988 | lookup_symbol_search_name. | |
1989 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
1990 | * psymtab.c (maintenance_check_psymtabs): Use | |
1991 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
1992 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
1993 | SYMBOL_SEARCH_NAME. | |
1994 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
1995 | if symbol_name_match_type::SEARCH_NAME. | |
1996 | (lookup_symbol_in_language): Pass down | |
1997 | symbol_name_match_type::FULL. | |
1998 | (lookup_symbol_search_name): New. | |
1999 | (lookup_language_this): Pass down | |
2000 | symbol_name_match_type::SEARCH_NAME. | |
2001 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
2002 | 'match_type'. Pass it down. | |
2003 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
2004 | (lookup_symbol_search_name): New declaration. | |
2005 | (lookup_symbol_in_block): New 'match_type' parameter. | |
2006 | ||
f98fc17b PA |
2007 | 2018-01-05 Pedro Alves <palves@redhat.com> |
2008 | ||
2009 | PR gdb/22670 | |
2010 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
2011 | ada_lookup_symbol. | |
2012 | (ada_lookup_symbol): Reimplement in terms of | |
2013 | ada_lookup_symbol_list, bits factored out from | |
2014 | ada_lookup_encoded_symbol. | |
2015 | ||
342f8240 JB |
2016 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2017 | ||
2018 | * ada-exp.y (write_object_renaming): When subscripting an array | |
2019 | using a symbol as the index, pass the block in call to | |
2020 | ada_lookup_encoded_symbol when looking that symbol up. | |
2021 | ||
7150d33c JG |
2022 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
2023 | ||
2024 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
2025 | TYPE_INDEX_TYPE. | |
2026 | ||
cc0e770c JB |
2027 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2028 | ||
2029 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
2030 | the case where VALUE_LVAL (val0) is not lval_memory. | |
2031 | ||
f79da888 | 2032 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
2033 | |
2034 | * ada-valprint.c (print_optional_low_bound): Handle | |
2035 | character-indexed array printing like boolean-indexed array | |
2036 | printing. | |
2037 | ||
cd385f94 JB |
2038 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2039 | ||
2040 | * NEWS: Create a new section for the next release branch. | |
2041 | Rename the section of the current branch, now that it has | |
2042 | been cut. | |
2043 | ||
09aca949 JB |
2044 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
2045 | ||
2046 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
2047 | * version.in: Bump version to 8.1.50.DATE-git. | |
2048 | ||
9f757bf7 XR |
2049 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
2050 | ||
2051 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
2052 | Add field. | |
2053 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
2054 | Add field. | |
2055 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
2056 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
2057 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
2058 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
2059 | Update all callers. | |
2060 | (create_excep_cond_exprs) <ex>: Add parameter. | |
2061 | (re_set_exception): Update create_excep_cond_exprs call. | |
2062 | (print_it_exception, print_one_exception, print_mention_exception) | |
2063 | (print_recreate_exception): Add "catch handler" handling. | |
2064 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
2065 | (check_status_catch_handlers, print_it_catch_handlers) | |
2066 | (print_one_catch_handlers, print_mention_catch_handlers) | |
2067 | (print_recreate_catch_handlers): New function. | |
2068 | (catch_handlers_breakpoint_ops): New variable. | |
2069 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
2070 | Add parameter. Add "catch handler" handling. | |
2071 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
2072 | Add "catch handler" handling. | |
2073 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
2074 | handling. | |
2075 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
2076 | call. | |
2077 | (catch_ada_handlers_command): New function. | |
2078 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
2079 | operations structure. | |
2080 | (_initialize_ada_language): Add "catch handlers" command entry. | |
2081 | * NEWS: Document "catch handlers" feature. | |
2082 | ||
9fe561ab JB |
2083 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2084 | ||
2085 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
2086 | account when creating the array type of the slice. | |
2087 | (ada_value_slice): Likewise. | |
2088 | ||
a405673c JB |
2089 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2090 | ||
2091 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
2092 | New enum value. | |
2093 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
2094 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
2095 | New parameter. Update all callers in this file. | |
2096 | (array_type_has_dynamic_stride): New function. | |
2097 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
2098 | of arrays with dynamic byte strides. | |
2099 | * dwarf2read.c (read_array_type): Add support for dynamic | |
2100 | DW_AT_byte_stride attributes. | |
2101 | ||
74a2f8ff JB |
2102 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
2103 | ||
2104 | * dwarf2read.c (read_unspecified_type): Treat | |
2105 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
2106 | ||
e2882c85 JB |
2107 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2108 | ||
2109 | Update copyright year range in all GDB files. | |
2110 | ||
1690bb24 JB |
2111 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2112 | ||
2113 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
2114 | and gdb/testsuite/gdb.base/step-line.c. | |
2115 | ||
0f0c98a8 JB |
2116 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2117 | ||
2118 | * copyright.py (main): Dump the contents of | |
2119 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
2120 | even if BY_HAND is empty. | |
2121 | ||
82e1e79a JB |
2122 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
2123 | ||
2124 | * top.c (print_gdb_version): Update Copyright year in version | |
2125 | message. | |
2126 | ||
053f54e5 | 2127 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 2128 | |
053f54e5 | 2129 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 2130 | |
053f54e5 | 2131 | For older changes see ChangeLog-2017. |
c906108c SS |
2132 | \f |
2133 | Local Variables: | |
2134 | mode: change-log | |
2135 | left-margin: 8 | |
2136 | fill-column: 74 | |
2137 | version-control: never | |
57da7796 | 2138 | coding: utf-8 |
c906108c | 2139 | End: |