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