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