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