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