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