Fix two -Wnarrowing warnings in xtensa-tdep.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-08-27 Tom Tromey <tom@tromey.com>
2
3 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
5
6 2018-08-27 Tom Tromey <tom@tromey.com>
7
8 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
9 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
10 ULONGEST_MAX.
11 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
12 ULONGEST_MAX.
13 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
14 ULONGEST_MAX.
15 * sparc-linux-tdep.c (sparc32_linux_sigframe)
16 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
17 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
18 ULONGEST_MAX.
19 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
20 (ppc64_linux_sigaction_tramp_frame)
21 (ppc32_linux_sighandler_tramp_frame)
22 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
23 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
24 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
25 * mn10300-linux-tdep.c (am33_linux_sigframe)
26 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
27 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
28 * mips-linux-tdep.c (mips_linux_o32_sigframe)
29 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
30 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
31 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
32 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
33 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
34 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
35 * microblaze-linux-tdep.c
36 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
37 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
38 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
39 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
40 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
41 * common/common-types.h (ULONGEST_MAX): New define.
42 (CORE_ADDR_MAX): Fix formatting.
43 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
44 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
45 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
46 (arm_linux_rt_sigreturn_tramp_frame)
47 (arm_eabi_linux_sigreturn_tramp_frame)
48 (arm_eabi_linux_rt_sigreturn_tramp_frame)
49 (thumb2_eabi_linux_sigreturn_tramp_frame)
50 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
51 (arm_linux_restart_syscall_tramp_frame)
52 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
53 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
54 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
55 ULONGEST_MAX.
56 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
57
58 2018-08-27 Tom Tromey <tom@tromey.com>
59
60 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
61 CORE_ADDR_MAX.
62 * mips-tdep.c (mips_deal_with_atomic_sequence)
63 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
64 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
65 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
66 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
67 CORE_ADDR_MAX.
68 * aarch64-tdep.c (aarch64_software_single_step): Use
69 CORE_ADDR_MAX.
70
71 2018-08-27 Tom Tromey <tom@tromey.com>
72
73 * linespec.c (complete_linespec_component): Add cast to "char".
74 * completer.c (completion_tracker::build_completion_result): Add
75 cast to "char".
76
77 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * solist.h (struct solist, struct target_so_ops): Fix
80 indentation.
81
82 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * ada-tasks.c (ada_task_info_s): Remove typedef.
85 (DEF_VEC_O(ada_task_info_s)): Remove.
86 (struct ada_tasks_inferior_data): Initialize fields.
87 <task_list>: Make an std::vector.
88 (get_ada_tasks_inferior_data): Allocate with new.
89 (ada_get_task_number): Adjust.
90 (get_task_number_from_id): Likewise.
91 (valid_task_id): Likewise.
92 (ada_get_task_info_from_ptid): Likewise.
93 (iterate_over_live_ada_tasks): Likewise.
94 (add_ada_task): Likewise.
95 (read_known_tasks): Likewise.
96 (ada_build_task_list): Likewise.
97 (print_ada_task_info): Likewise.
98 (info_task): Likewise.
99 (task_command_1): Likewise.
100
101 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
102
103 * ada-lang.c (add_angle_brackets): Return std::string.
104
105 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
106
107 * python/py-threadevent.c (py_get_event_thread): Initialize
108 pythread.
109
110 2018-08-24 Pedro Alves <palves@redhat.com>
111
112 * python/py-bpevent.c (create_breakpoint_event_object): Use
113 copy-initialization.
114 * python/py-continueevent.c (emit_continue_event): Use
115 copy-initialization.
116 * python/py-exitedevent.c (create_exited_event_object): Return a
117 gdbpy_ref<>.
118 (emit_exited_event): Use copy-initialization.
119 * python/py-inferior.c (python_new_inferior)
120 (python_inferior_deleted, add_thread_object): Use
121 copy-initialization.
122 * python/py-infevents.c (create_inferior_call_event_object)
123 (create_register_changed_event_object)
124 (create_memory_changed_event_object): Return a gdbpy_ref<>.
125 (emit_inferior_call_event, emit_memory_changed_event)
126 (emit_register_changed_event): Use copy-initialization.
127 * python/py-newobjfileevent.c (create_new_objfile_event_object):
128 Return a gdbpy_ref<>.
129 (emit_new_objfile_event): Use copy-initialization.
130 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
131 (emit_clear_objfiles_event): Use copy-initialization.
132 * python/py-signalevent.c (create_signal_event_object): Use
133 copy-initialization.
134 * python/py-threadevent.c (create_thread_event_object): Use
135 copy-initialization.
136
137 2018-08-24 Pedro Alves <palves@redhat.com>
138 Simon Marchi <simon.marchi@ericsson.com>
139
140 PR gdb/23379
141 * python/py-continueevent.c: Include "gdbthread.h".
142 (create_continue_event_object): Add intro comment. Add 'ptid'
143 parameter. Use it to find thread to pass to
144 create_thread_event_object.
145 (emit_continue_event): Pass PTID down to
146 create_continue_event_object.
147 * python/py-event.h (py_get_event_thread): Declare.
148 (create_thread_event_object): Remove default from 'thread'
149 parameter.
150 * python/py-stopevent.c (create_stop_event_object): Use
151 py_get_event_thread.
152 * python/py-threadevent.c (get_event_thread): Rename to ...
153 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
154 and use it to find the thread.
155 (create_thread_event_object): Assert that THREAD isn't null.
156 Don't find the event thread here.
157
158 2018-08-23 Kevin Buettner <kevinb@redhat.com>
159
160 * block.h (blockrange, blockranges): New struct declarations.
161 (struct block): Add new field named `ranges'.
162 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
163 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
164 macros for accessing ranges in struct block.
165 (make_blockranges): New declaration.
166 block.c (make_blockranges): New function.
167 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
168 for block.
169 * symtab.h (find_pc_partial_function): Add new parameter `block'.
170 * blockframe.c (cache_pc_function_block): New static global.
171 (clear_pc_function_cache): Clear cache_pc_function_block.
172 (find_pc_partial_function): Move comment to symtab.h. Add
173 support for non-contiguous blocks.
174 * cli/cli-cmds.c (block.h): Include.
175 (print_disassembly): Handle printing of non-contiguous blocks.
176 (disassemble_current_function): Likewise.
177 (disassemble_command): Likewise.
178
179 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
180 BLOCK_START.
181 * blockframe.c (get_pc_function_start): Likewise.
182 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
183 (gcc_symbol_address): Likewise.
184 * compile/compile-object-run.c (compile_object_run): Likewise.
185 * compile/compile.c (get_expr_block_and_pc): Likewise.
186 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
187 (func_addr_to_tail_call_list): Likewise.
188 * findvar.c (default_read_var_value): Likewise.
189 * inline-frame.c (inline_frame_this_id): Likewise.
190 (skip-inline_frames): Likewise.
191 * infcmd.c (until_next_command): Likewise.
192 * linespec.c (convert_linespec_to_sals): Likewise.
193 * parse.c (parse_exp_in_context_1): Likewise.
194 * printcmd.c (build_address_symbolic): likewise.
195 (info_address_command): Likewise.
196 symtab.c (find_function_start_sal): Likewise.
197 (skip_prologue_sal): Likewise.
198 (find_function_alias_target): Likewise.
199 (find_gnu_ifunc): Likewise.
200 * stack.c (find_frame_funname): Likewise.
201 * symtab.c (fixup_symbol_section): Likewise.
202 (find_function_start_sal): Likewise.
203 (skip_prologue_sal): Likewsie.
204 (find_function_alias_target): Likewise.
205 (find_gnu_ifunc): Likewise.
206 * tracepoint.c (info_scope_command): Likewise.
207 * value.c (value_fn_field): Likewise.
208
209 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
210 in place of find_pc_partial_function.
211 * blockframe.c (find_function_entry_range_from_pc): New function.
212 * symtab.h (find_function_entry_range_from_pc): Declare and document.
213 * objfiles.c (objfile_relocate1): Relocate start and end addresses
214 for each range in a block.
215
216
217 2018-08-23 Xavier Roirand <roirand@adacore.com>
218
219 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
220 incrementation.
221
222 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * solib-svr4.c (read_program_headers_from_bfd): Return
225 gdb::optional<gdb::byte_vector>.
226 (svr4_exec_displacement): Adjust.
227
228 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * solib-svr4.c (read_program_header): Return
231 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
232 (find_program_interpreter): Return
233 gdb::optional<gdb::byte_vector>.
234 (scan_dyntag_auxv): Adjust.
235 (enable_break): Adjust.
236 (svr4_exec_displacement): Adjust.
237
238 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
241 * inf-child.c (inf_child_target::terminal_save_inferior): New.
242
243 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * guile/scm-string.c (gdbscm_scm_from_printf): Use
246 string_vprintf.
247 * guile/scm-utils.c (gdbscm_printf): Likewise.
248 * serial.c (serial_printf): Likewise.
249 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
250
251 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
252
253 * stack.c (print_frame): Print frame architecture when printing on
254 an MI output.
255 * NEWS: Mention new "arch" attribute in frame output.
256
257 2018-08-21 Alan Hayward <alan.hayward@arm.com>
258
259 * arch/aarch64.h (aarch64_regnum): Update comment.
260
261 2018-08-21 Alan Hayward <alan.hayward@arm.com>
262
263 * NEWS: Add SVE to 8.2 section.
264
265 2018-08-21 Pedro Alves <palves@redhat.com>
266
267 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
268 out from gdbscm_parse_function_args.
269 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
270 gdbscm_parse_function_args_1.
271
272 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
273
274 PR gdb/17816
275 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
276 operator.
277
278 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
279
280 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
281
282 2018-08-19 Michael Spang <spang@google.com>
283
284 PR gdb/11786
285 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
286 for PT_TLS segments.
287
288 2018-08-18 Kevin Buettner <kevinb@redhat.com>
289
290 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
291 dwarf_variable_value.
292 * dwarf2-frame.c (class dwarf_expr_executor):
293 Add override for dwarf_variable_value.
294 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
295 (class symbol_needs_eval_context): Likewise.
296 (indirect_synthetic_pointer): Add forward declaration.
297 (sect_variable_value): New function.
298 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
299 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
300 for DW_OP_GNU_variable_value.
301
302 2018-08-16 Tom Tromey <tom@tromey.com>
303
304 * top.c (read_command_file): Update.
305 (command_line_input): Remove "repeat" argument.
306 * ada-lang.c (get_selections): Update.
307 * linespec.c (decode_line_2): Update.
308 * defs.h (command_line_input): Remove argument.
309 * cli/cli-script.c (read_next_line): Update.
310 * python/py-gdb-readline.c: Update.
311
312 2018-08-17 Tom Tromey <tom@tromey.com>
313
314 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
315 command_line_input.
316
317 2018-08-15 Tom Tromey <tom@tromey.com>
318
319 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
320
321 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
322
323 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
324 If used, use find_pc_partial_function to find address range
325 to disassemble.
326 * mi/mi-main.c (mi_cmd_list_features): Report
327 "data-disassemble-a-option" feature.
328 * NEWS: Mention new -data-disassemble option -a.
329
330 2018-08-13 Tom Tromey <tom@tromey.com>
331
332 * common/common-defs.h (_FORTIFY_SOURCE): Define.
333
334 2018-08-13 Alan Hayward <alan.hayward@arm.com>
335
336 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
337 (aarch64_linux_collect_sve_regset): Likewise.
338 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
339 * regcache.h (regcache_map_entry_size): New function.
340
341 2018-08-13 Alan Hayward <alan.hayward@arm.com>
342
343 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
344 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
345 (SVE_HEADER_VL_LENGTH): Likewise.
346 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
347 (SVE_HEADER_FLAGS_LENGTH): Likewise.
348 (SVE_HEADER_RESERVED_LENGTH): Likewise.
349 (SVE_HEADER_SIZE_OFFSET): Likewise.
350 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
351 (SVE_HEADER_VL_OFFSET): Likewise.
352 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
353 (SVE_HEADER_FLAGS_OFFSET): Likewise.
354 (SVE_HEADER_RESERVED_OFFSET): Likewise.
355 (SVE_HEADER_SIZE): Likewise.
356 (aarch64_linux_core_read_vq): Add function.
357 (aarch64_linux_core_read_description): Check for SVE section.
358
359 2018-08-13 Alan Hayward <alan.hayward@arm.com>
360
361 * aarch64-fbsd-tdep.c
362 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
363 collect_size.
364 * aarch64-linux-tdep.c
365 (aarch64_linux_iterate_over_regset_sections): Likewise.
366 * alpha-linux-tdep.c
367 (alpha_linux_iterate_over_regset_sections):
368 * alpha-nbsd-tdep.c
369 (alphanbsd_iterate_over_regset_sections): Likewise.
370 * amd64-fbsd-tdep.c
371 (amd64fbsd_iterate_over_regset_sections): Likewise.
372 * amd64-linux-tdep.c
373 (amd64_linux_iterate_over_regset_sections): Likewise.
374 * arm-bsd-tdep.c
375 (armbsd_iterate_over_regset_sections): Likewise.
376 * arm-fbsd-tdep.c
377 (arm_fbsd_iterate_over_regset_sections): Likewise.
378 * arm-linux-tdep.c
379 (arm_linux_iterate_over_regset_sections): Likewise.
380 * corelow.c (get_core_registers_cb): Likewise.
381 (core_target::fetch_registers): Likewise.
382 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
383 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
384 * gdbarch.h (void): Regenerate.
385 * gdbarch.sh: Add supply_size and collect_size.
386 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
387 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
388 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
389 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
390 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
391 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
392 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
393 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
394 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
395 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
396 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
397 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
398 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
399 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
400 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
401 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
402 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
403 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
404 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
405 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
406 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
407 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
408 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
409 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
410 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
411 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
412 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
413 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
414 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
415 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
416
417 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
418
419 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
420 with string_printf.
421
422 2018-08-10 Keith Seitz <keiths@redhat.com>
423
424 * compile/compile-c-support.c (add_code_header, add_code_footer):
425 Move into policy class.
426 (c_push_user_expression, pop_user_expression_nop)
427 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
428 (compile_program): New host class.
429 (c_compile_program): New typedef.
430 (c_compute_porgram): Use c_compile_program.
431
432 2018-08-10 Keith Seitz <keiths@redhat.com>
433
434 * compile/compile-internal.h (compile_instance::~compile_instance):
435 Remove calls to htab_delete.
436 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
437 * compile.c (compile_instance::compile_instance): Initialize
438 htab unique pointers.
439 (compile_instance::get_cached_type, compile_instance::insert_type)
440 (compile_instance::error_symbol_once): Update for unique_ptr.
441
442 2018-08-10 Keith Seitz <keiths@redhat.com>
443
444 * compile/compile-c-symbols.c (struct symbol_error)
445 (hash_symbol_error, eq_symbol_error, del_symbol_error)
446 (compile_instance::insert_symbol_error)
447 (compile_instance::error_symbol_once): Move to ...
448 * compile/compile.c: ... here.
449
450 2018-08-10 Keith Seitz <keiths@redhat.com>
451
452 * compile/compile-c-support.c (c_get_compile_context): Use `new'
453 instead of `new_compile_instance'.
454 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
455 Update description.
456 If the symbol error map is not initialized, create it.
457 (generate_c_for_for_one_symbol): Do not check/initialize
458 the symbol error map.
459 * compile/compile-c-types.c (compile_c_instance): Make a class.
460 Update all callers.
461 (compile_instance::compile_instance): Initialize the type cache.
462 (get_cached_type): New function.
463 (insert_type): Update description.
464 (compile_c_instance::m_default_cflags): Define.
465 (convert_type): Update description. Use get_cached_type.
466 (delete_instance): Moved to destructor.
467 (new_compile_instance): Moved to constructor.
468 * compile/compile-c.h (compile_c_instance): Make class inheriting
469 from compile_instance.
470 <base>: Remove field.
471 <type_map, symbol_err_map>: Move to base class.
472 <c_plugin>: Rename to `m_plugin' and remove pointer type.
473 * compile/compile-internal.h (compile_instance): Make class.
474 <type_map_t, symbol_err_map_t>: Define.
475 <fe>: Rename to `m_gcc_fe'.
476 <scope, block, gcc_target_options>: Add `m_' prefix.
477 <m_type_map, m_symbol_err_map>: New fields, moved from
478 compile_c_instance.
479 <destroy>: Remove.
480 (convert_type, new_compile_instance): Remove.
481 * compile/compile.c (cleanup_compile_instance): Remove.
482 (compile_to_object): Use unique_ptr to eliminate cleanups.
483 (compile_instance::set_print_callback, compile_instance::version)
484 (compile_instance::set_verbose)
485 (compile_instance::set_driver_filename)
486 (compile_instance::set_triplet_regexp)
487 (compile_instance::set_arguments)
488 (compile_instance::set_source_file)
489 (compile_instance::compile): Define.
490
491 2018-08-10 Keith Seitz <keiths@redhat.com>
492
493 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
494 * compile/compile-c-types.c: Define GCC_METHODN macros and include
495 gcc-c-fe.def to define C plugin.
496 (delete_instance): Delete `c_plugin'.
497 (new_compile_instance): Initialize `c_plugin'.
498 * compile/compile-c.h: Include gcc_c_plugin.h.
499 (struct compile_c_instance) <c_plugin>: New member.
500 * gcc-c-plugin.h: New file.
501 Update all callers with API change.
502
503 2018-08-10 Keith Seitz <keiths@redhat.com>
504
505 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
506 (HFILES_NO_SRCDIR): ... to here.
507 Add compile-internal.h and compile-c.h.
508 * compile/compile-c-support.c: Include compile-c.h.
509 * compile/compile-c-symbols.c: Include compile-c.h.
510 (generate_c_for_variable_locations): Update comment.
511 * compile/compile-c-types.c: Include compile-c.h.
512 * compile/compile-c.h: New file -- moved C language declarations
513 from other files here.
514 * compile/compile-internal.h: Do not include hashtab.h or
515 common/enum-flags.h.
516 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
517 (gcc_convert_symbol, gcc_symbol_address)
518 (generate_c_for_variable_locations, c_get_mode_for_size)
519 (c_get_range_decl_name): Definitions moved to compile-c.h.
520 * compile/compile-loc2c.c: Include compile-c.h.
521
522 2018-08-10 Keith Seitz <keiths@redhat.com>
523
524 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
525 (c_symbol_substitution_name): ... this.
526 Update all callers.
527
528 2018-08-10 Keith Seitz <keiths@redhat.com>
529
530 * compile/compile-c-support.c (c_compute_program): Use
531 unique_xmalloc_ptr to eliminate cleanup.
532 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
533 Return a unique_xmalloc_ptr and eliminate cleanup.
534 * compile/compile-internal.h (generate_c_for_variable_locations):
535 Return unique_xmalloc_ptr and update description.
536
537 2018-08-10 Alan Hayward <alan.hayward@arm.com>
538
539 * corelow.c (core_target::get_core_register_section): Rename
540 min_size to section_min_size.
541
542 2018-08-09 Jim Wilson <jimw@sifive.com>
543
544 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
545 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
546 * NEWS: Mention new GNU/Linux RISC-V target.
547 * configure.host: Add riscv*-*-linux*.
548 * configure.nat: Add riscv*.
549 * configure.tgt: Add riscv*-*-linux*.
550 * riscv-linux-nat.c: New file.
551 * riscv-linux-tdep.c: New file.
552
553 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * infrun.c (resume): Make static, add forward declaration.
556 (proceed): Update header comment.
557 * infrun.h (resume): Delete declaration.
558
559 2018-08-09 Tom Tromey <tom@tromey.com>
560
561 * riscv-tdep.h: Minor formatting fixes.
562
563 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
564
565 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
566 * dwarf-index-cache.c (create_dir_and_check): Likewise.
567 (test_mkdir_recursive): Likewise.
568 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
569
570 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * valarith.c (value_subscripted_rvalue): If an array is not in
573 memory, and we don't know the upper bound, then we can't know that
574 the requested element exists or not.
575
576 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
577
578 * target.c (str_comma_list_concat_elem): Fix typo in comment.
579 (target_options_to_string): Add comment.
580
581 2018-08-08 Tom Tromey <tom@tromey.com>
582
583 * unittests/scoped_mmap-selftests.c: Check result of "write".
584
585 2018-08-08 Jim Wilson <jimw@sifive.com>
586
587 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
588 (decode_register_index_short): New.
589 (decode_j_type_insn, decode_cj_type_insn): New.
590 (decode_b_type_insn, decode_cb_type_insn): New.
591 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
592 local xlen. Check xlen when decoding ambiguous compressed insns. In
593 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
594 is_c_sw_insn instead of is_sw_insn.
595 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
596 (riscv_software_single_step): New.
597 * riscv-tdep.h (riscv_software_single_step): Declare.
598
599 * riscv-tdep.c (riscv_isa_xlen): Drop static.
600 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
601
602 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 PR gdb/18050:
605 * target.c (dispose_inferior): Don't dispose of inferiors that are
606 already killed.
607
608 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
609
610 * remote.c (remote_target::download_tracepoint): Change char* to
611 const char*.
612
613 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * target.h (target_options_to_string): Return an std::string.
616 * target.c (str_comma_list_concat_elem): Return void, use
617 std::string.
618 (do_option): Likewise.
619 (target_options_to_string): Return an std::string.
620 * linux-nat.c (linux_nat_target::wait): Adjust.
621 * target-debug.h (target_debug_print_options): Adjust.
622
623 2018-08-07 Tom Tromey <tom@tromey.com>
624
625 * Makefile.in (CPPFLAGS): New variable.
626 (INTERNAL_CPPFLAGS): Use it.
627
628 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
629
630 * NEWS: Mention the index cache.
631
632 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
633
634 * common/pathstuff.h (get_standard_cache_dir): New.
635 * common/pathstuff.c (get_standard_cache_dir): New.
636 * build-id.h (build_id_to_string): New.
637 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
638 DEBUG_STR_SUFFIX): Move to here.
639 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
640 DEBUG_STR_SUFFIX): Move from there.
641 (write_psymtabs_to_index): Make non-static, add basename
642 parameter. Write to temporary files, rename when done.
643 (save_gdb_index_command): Adjust call to
644 write_psymtabs_to_index.
645 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
646 field.
647 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
648 (get_gdb_index_contents_from_cache): New.
649 (get_gdb_index_contents_from_cache_dwz): New.
650 (dwarf2_initialize_objfile): Read index from cache.
651 (dwarf2_build_psymtabs): Save to index.
652 * dwarf-index-cache.h: New file.
653 * dwarf-index-cache.c: New file.
654 * dwarf-index-write.h: New file.
655
656 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
657
658 * gnulib/aclocal.m4: Re-generate.
659 * gnulib/config.in: Re-generate.
660 * gnulib/configure: Re-generate.
661 * gnulib/import/Makefile.am: Re-generate.
662 * gnulib/import/Makefile.in: Re-generate.
663 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
664 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
665 * gnulib/import/m4/mkdir.m4: New file.
666 * gnulib/import/mkdir.c: New file.
667 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
668 module.
669
670 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
671
672 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
673 * common/scoped_mmap.c: New file.
674 * common/scoped_mmap.h (destroy): New method.
675 (~scoped_mmap, reset): Use destroy.
676 (scoped_mmap): New move constructor.
677 (mmap_file): New declaration.
678 * unittests/scoped_mmap-selftests.c (test_normal,
679 test_invalid_filename, run_tests): New functions.
680 (_initialize_scoped_mmap_selftests): Register selftest.
681
682 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
683
684 * dwarf2read.c (read_gdb_index_from_section): Rename to...
685 (read_gdb_index_from_buffer): ... this. Remove section
686 parameter, add buffer parameter.
687 (get_gdb_index_contents_ftype,
688 get_gdb_index_contents_dwz_ftype): New typedefs.
689 (dwarf2_read_gdb_index): Add callback parameters to get the
690 index contents.
691 (get_gdb_index_contents_from_section): New.
692 (dwarf2_initialize_objfile): Update call to
693 dwarf2_read_gdb_index.
694
695 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
696
697 * common/filestuff.h (gdb_fopen_cloexec): New overload.
698 (gdb_open_cloexec): Likewise.
699 * nat/linux-osdata.c (command_from_pid): Use string_printf.
700 (commandline_from_pid): Likewise.
701 (linux_xfer_osdata_threads): Likewise.
702 (linux_xfer_osdata_fds): Likewise.
703 * ada-lang.c (is_package_name): Likewise.
704 * auxv.c (procfs_xfer_auxv): Likewise.
705 * breakpoint.c (print_one_breakpoint_location): Use
706 uiout::field_fmt.
707 (print_one_catch_solib): Use string_printf.
708 * coff-pe-read.c (add_pe_exported_sym): Likewise.
709 (add_pe_forwarded_sym): Likewise.
710 * dwarf2read.c (create_type_unit_group): Likewise.
711 (build_error_marker_type): Likewise.
712 * infcall.c (get_function_name): Likewise.
713 * valprint.c (print_converted_chars_to_obstack): Likewise.
714 * xtensa-tdep.c (xtensa_register_type): Likewise.
715
716 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
717
718 * remote.c (remote_target::download_tracepoint): Fix format
719 string errors.
720
721 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
722
723 * tracefile.c: Include common/byte-vector.h.
724 (trace_save): Change type of buf to gdb::byte_vector. Initialize
725 with trace_regblock_size if needed. Update uses of buf.
726
727 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
728
729 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
730 std::vector<unsigned char>.
731 * tracepoint.c (collection_list::collection_list): Remove
732 m_regs_mask initializer from initializer list. Resize
733 m_regs_mask using the largest remote register number.
734 (collection_list::add_remote_register): Remove size check on
735 m_regs_mask. Use at to access element.
736 (collection_list::stringify): Change type of temp_buf to
737 gdb::char_vector. Update uses of temp_buf. Resize if needed to
738 stringify the register mask. Use pack_hex_byte for the register
739 mask.
740
741 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
742
743 * tracepoint.h (class collection_list) <add_register>: Remove.
744 <add_remote_register, add_ax_registers, add_local_register>:
745 Declare.
746 <add_memrange>: Add scope parameter.
747 * tracepoint.c (encode_actions_1): Likewise.
748 (collection_list::add_register): Rename to ...
749 (collection_list::add_remote_register): ... this. Update
750 comment.
751 (collection_list::add_ax_registers, add_local_register): New
752 methods.
753 (collection_list::add_memrange): Add scope parameter. Call
754 add_local_register instead of add_register.
755 (finalize_tracepoint_aexpr): New function.
756 (collection_list::collect_symbol): Update calls to add_memrange.
757 Call add_local_register instead of add_register. Call
758 add_ax_registers. Call finalize_tracepoint_aexpr.
759 (encode_actions_1): Get remote regnos for $reg action. Call
760 add_remote_register, add_ax_registers, and add_local_register.
761 Update call to add_memrange. Call finalize_tracepoint_aexpr.
762 (validate_actionline): Call finalize_tracepoint_aexpr.
763
764 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
765
766 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
767 Replace array buf with gdb::char_vector buf, of size
768 get_remote_packet_size (). Replace references to buf and
769 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
770 and xsnprintf with snprintf. Raise errors if the buffer is too
771 small.
772
773 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
774
775 * remote.c (remote_target::download_tracepoint): Fix the has_more
776 predicate in the QTDP action list iteration.
777
778 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
779
780 * remote.c (remote_target::download_tracepoint): Fix indentation
781 in for block.
782
783 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784
785 * proc-api.c (_initialize_proc_api): Remove c, unused.
786 * procfs.c (procfs_init_inferior): Remove signals, unused.
787 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
788 unused.
789
790 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
791 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
794 'W_STOPCODE (0)' as this could be ambiguous.
795
796 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
797
798 * ser-tcp.c (net_open): Fix thinko when deciding whether to
799 disable TCP's Nagle algorithm (use "ai_protocol" instead of
800 "ai_socktype").
801
802 2018-08-02 Tom Tromey <tom@tromey.com>
803
804 PR symtab/16842.
805 * dwarf2read.c (read_func_scope): Set symtab on template parameter
806 symbols.
807 (process_structure_scope): Likewise.
808
809 2018-08-02 Xavier Roirand <roirand@adacore.com>
810
811 PR gdb/22629:
812 * darwin-nat.c (darwin_kill_inferior): Fix handling of
813 kill inferior.
814
815 2018-08-02 Tom Tromey <tom@tromey.com>
816
817 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
818 (darwin_suspend_inferior, darwin_resume_inferior)
819 (darwin_decode_notify_message, darwin_resume_inferior_threads)
820 (darwin_check_new_threads): Check result of get_darwin_inferior.
821
822 2018-07-31 Joel Brobecker <brobecker@adacore.com>
823
824 GDB 8.1.1 released.
825
826 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
827
828 * varobj.c (varobj_get_path_expr_parent): Report an error if
829 parent is a dynamic varobj.
830
831 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
832
833 * gnulib/aclocal.m4: Re-generate.
834 * gnulib/config.in: Re-generate.
835 * gnulib/configure: Re-generate.
836 * gnulib/import/Makefile.in: Re-generate.
837 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
838 * gnulib/import/m4/onceonly.m4: Re-generate.
839
840 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
841
842 * target-descriptions.c (struct xml_test_tdesc): New.
843 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
844 (record_xml_tdesc): Update.
845 (maintenance_check_xml_descriptions): Update.
846 * target-descriptions.h (record_xml_tdesc): Update comment.
847
848 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
851 checking array bounds are defined.
852
853 2018-07-30 Tom Tromey <tom@tromey.com>
854
855 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
856 irreflexivity violation.
857
858 2018-07-30 Tom Tromey <tom@tromey.com>
859
860 * cli/cli-decode.c (lookup_cmd): Remove lint code.
861 * value.c (unpack_long): Remove lint code.
862 * valops.c (value_ind): Remove lint code.
863 * valarith.c (value_x_binop, value_x_unop, value_equal)
864 (value_pos): Remove lint code.
865
866 2018-07-28 Tom de Vries <tdevries@suse.de>
867
868 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
869 with undefined upper bound as <optimized out>.
870
871 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
872
873 * gcore.in: Rename variable "name" to "prefix". Expand
874 "usage" text.
875
876 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
877
878 * windows-nat.c (windows_nat_target::create_inferior): Update to
879 call close() in global namespace.
880
881 2018-07-26 Tom Tromey <tom@tromey.com>
882
883 * dwarf-index-write.c (add_address_entry): Don't add objfile
884 offsets.
885 * dbxread.c (find_stab_function): Rename from
886 find_stab_function_addr. Return a bound_minimal_symbol.
887 (read_dbx_symtab): Use raw_text_low, raw_text_high.
888 Don't add objfile offsets.
889 (end_psymtab): Use raw_text_low, raw_text_high,
890 MSYMBOL_VALUE_RAW_ADDRESS.
891 (read_ofile_symtab): Update.
892 (process_one_symbol): Update.
893 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
894 offsets.
895 (dw2_relocate): Remove.
896 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
897 searching addrmap.
898 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
899 Update.
900 (process_psymtab_comp_unit_reader, add_partial_symbol)
901 (add_partial_subprogram, dwarf2_ranges_read): Update.
902 (load_partial_dies): Update.
903 (add_address_entry): Don't add objfile offsets.
904 (dwarf2_build_include_psymtabs): Update.
905 (create_addrmap_from_aranges): Don't add objfile offsets.
906 (dw2_find_pc_sect_compunit_symtab): Update.
907 * mdebugread.c (parse_symbol): Don't add objfile offsets.
908 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
909 Update.
910 (parse_partial_symbols): Don't add objfile offsets. Use
911 raw_text_low, raw_text_high. Update.
912 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
913 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
914 or call 'relocate' quick function. Clear psymbol_map.
915 * psympriv.h (struct partial_symbol) <address>: Add section
916 offset.
917 <set_unrelocated_address>: Rename from set_address.
918 <raw_text_low, raw_text_high>: New methods.
919 <text_low, text_high>: Add objfile parameter.
920 (add_psymbol_to_bcache): Add 'section' parameter. Call
921 set_unrelocated_address.
922 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
923 (find_pc_psymbol): Update.
924 (fixup_psymbol_section, relocate_psymtabs): Remove.
925 (dump_psymtab, psym_functions): Update.
926 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
927 parameter.
928 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
929 (start_psymtab_common): Update.
930 * symfile-debug.c (debug_qf_relocate): Remove.
931 (debug_sym_quick_functions): Update.
932 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
933 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
934 Update.
935
936 2018-07-26 Tom Tromey <tromey@redhat.com>
937
938 * dbxread.c (end_psymtab): Use text_high_valid and
939 text_low_valid.
940 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
941 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
942 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
943 Update comment.
944 <text_low_valid, text_high_valid>: New fields.
945 <set_text_low, set_text_high>: Update.
946 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
947
948 2018-07-26 Tom Tromey <tom@tromey.com>
949
950 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
951 Update.
952 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
953 textlow and texthigh fields.
954 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
955 Update.
956 * mdebugread.c (parse_lines, parse_partial_symbols)
957 (psymtab_to_symtab_1): Update.
958 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
959 Rename fields. Update comment. Now private.
960 <text_low, text_high, set_text_low, set_text_high>: New methods.
961 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
962 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
963 (start_psymtab_common, maintenance_info_psymtabs)
964 (maintenance_check_psymtabs): Update.
965 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
966 texthigh fields.
967 (scan_xcoff_symtab): Update.
968
969 2018-07-26 Tom Tromey <tromey@redhat.com>
970
971 * psympriv.h (struct partial_symbol) <unrelocated_address,
972 address, set_address>: New methods.
973 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
974 (fixup_psymbol_section, relocate_psymtabs): Update.
975 (print_partial_symbols): Add 'objfile' parameter. Update.
976 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
977 Update.
978
979 2018-07-26 Tom Tromey <tom@tromey.com>
980
981 * dwarf-index-write.c (write_psymbols, debug_names::insert)
982 (debug_names::write_psymbols): Update.
983 * psympriv.h (struct partial_symbol): Derive from
984 general_symbol_info.
985 <obj_section>: New method.
986 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
987 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
988 (find_pc_sect_psymbol, fixup_psymbol_section)
989 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
990 (print_partial_symbols, recursively_search_psymtabs)
991 (compare_psymbols, psymbol_hash, psymbol_compare)
992 (add_psymbol_to_bcache, maintenance_check_psymtabs)
993 (psymbol_name_matches, psym_fill_psymbol_map): Update.
994
995 2018-07-26 Tom Tromey <tromey@redhat.com>
996
997 * dbxread.c (end_psymtab): Remove dead code.
998
999 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1000
1001 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1002 DWARF unwinders are disabled.
1003 * dwarf2-frame.c: Add dwarf2read.h include.
1004 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1005 disabled.
1006 (dwarf2_frame_unwinders_enabled_p): Define.
1007 (show_dwarf_unwinders_enabled_p): New function.
1008 (_initialize_dwarf2_frame): Register switch to control DWARF
1009 unwinder use.
1010 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1011 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1012 (show_dwarf_cmdlist): Remove static keyword.
1013 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1014 (show_dwarf_cmdlist): Declare.
1015 * NEWS: Document new feature.
1016
1017 2018-07-26 Tom de Vries <tdevries@suse.de>
1018
1019 PR breakpoints/23366
1020 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1021
1022 2018-07-26 Tom de Vries <tdevries@suse.de>
1023
1024 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1025 DW_AT_count can't be translated to a dynamic prop.
1026
1027 2018-07-25 Tom de Vries <tdevries@suse.de>
1028
1029 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1030 try/catch.
1031
1032 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1033
1034 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1035
1036 2018-07-25 Joel Brobecker <brobecker@adacore.com>
1037
1038 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1039
1040 2018-07-24 Keith Seitz <keiths@redhat.comt
1041
1042 PR symtab/23010
1043 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1044 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1045 instead of add_symbol_to_list.
1046 (read_file_scope): Call prepare_one_comp_unit before reading
1047 any other DIEs.
1048
1049 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1050
1051 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1052
1053 2018-07-24 Tom Tromey <tom@tromey.com>
1054
1055 * utils.c (malloc, realloc, free): Don't declare.
1056 * configure, config.in: Rebuild.
1057 * configure.ac: Don't check for declarations of free, malloc, or
1058 realloc.
1059
1060 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * aarch64-linux-nat.c
1063 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1064 variable.
1065 * arm-linux-nat.c (fetch_regs): Likewise.
1066 (store_regs): Likewise.
1067 (fetch_vfp_regs): Likewise.
1068 (store_vfp_regs): Likewise.
1069 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1070 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1071 (arm_linux_nat_target::insert_watchpoint): Likewise.
1072 (arm_linux_nat_target::remove_watchpoint): Likewise.
1073 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1074 Likewise.
1075 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1076 Likewise.
1077 * ppc-linux-nat.c (fetch_register): Likewise.
1078 (fetch_all_gp_regs): Likewise.
1079 (fetch_ppc_registers): Likewise.
1080 (store_all_gp_regs): Likewise.
1081 (store_ppc_registers): Likewise.
1082 (hwdebug_insert_point): Likewise.
1083 (can_use_watchpoint_cond_accel): Likewise.
1084 * remote-sim.c (gdb_os_write_stdout): Likewise.
1085
1086 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1087 Tom Tromey <tom@tromey.com>
1088
1089 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1090 test for it.
1091 * configure: Rebuild.
1092
1093 2018-07-22 Tom Tromey <tom@tromey.com>
1094
1095 * regformats/regdat.sh: Define xmltarget_${name} inside
1096 #ifndef IN_PROCESS_AGENT.
1097
1098 2018-07-22 Tom Tromey <tom@tromey.com>
1099
1100 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1101
1102 2018-07-22 Tom Tromey <tom@tromey.com>
1103
1104 * symfile.c (reread_symbols): Notify iter, not objfile.
1105
1106 2018-07-22 Tom Tromey <tom@tromey.com>
1107
1108 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1109 Use arch_ops.
1110 (ravenscar_thread_target::prepare_to_store): Likewise.
1111
1112 2018-07-22 Tom Tromey <tom@tromey.com>
1113
1114 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1115 unused variable. Call value_fetch_lazy when needed.
1116 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1117 Remove unused variable. Call value_fetch_lazy when needed.
1118
1119 2018-07-22 Tom Tromey <tom@tromey.com>
1120
1121 * m32c-tdep.c (mark_dma): Return void.
1122 (make_regs): Remove unused declarations.
1123
1124 2018-07-22 Tom Tromey <tom@tromey.com>
1125
1126 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1127 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1128 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1129 bkscm_get_valid_block_smob_arg_unsafe for effect.
1130
1131 2018-07-22 Tom Tromey <tom@tromey.com>
1132
1133 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1134 value_type.
1135
1136 2018-07-22 Tom Tromey <tom@tromey.com>
1137
1138 * windows-nat.c (saved_context): Conditionally define.
1139 * remote.c (remote_target::remote_btrace_maybe_reopen):
1140 Conditionally declare "warned".
1141 * inflow.c (sigquit_ours): Conditionally define.
1142 (new_tty): Move "tty" declaration inside #if.
1143 * guile/guile.c (guile_datadir): Conditionally define.
1144 * charset.c (set_be_le_names): Move some declarations inside #if.
1145 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1146 #if.
1147 (parse_xml_btrace_conf): Likewise.
1148
1149 2018-07-22 Tom Tromey <tom@tromey.com>
1150
1151 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1152
1153 2018-07-22 Tom Tromey <tom@tromey.com>
1154
1155 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1156 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1157 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1158 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1159 * stack.c (frame_apply_level_command): Remove unused variable.
1160 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1161 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1162 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1163 unused variable.
1164 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1165 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1166 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1167 variable.
1168 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1169 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1170 variable.
1171 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1172 Remove unused variable.
1173 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1174 variable.
1175 * common/tdesc.c (print_xml_feature::visit): Remove unused
1176 variable.
1177 * compile/compile-object-load.c (store_regs): Remove unused
1178 variables.
1179 * complaints.c (clear_complaints): Remove unused variable.
1180 * corelow.c (core_target_open): Remove unused variable.
1181 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1182 variable.
1183 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1184 variable.
1185 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1186 variable.
1187 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1188 variable.
1189 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1190 variable.
1191 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1192 variable.
1193 * ia64-tdep.c (examine_prologue): Remove unused variable.
1194 * infcall.c (run_inferior_call): Remove unused variable.
1195 * inferior.c (exit_inferior): Remove unused variable.
1196 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1197 * linespec.c (decode_line_2): Remove unused variable.
1198 * linux-nat.c (super_close): Remove.
1199 * linux-tdep.c (linux_info_proc): Remove unused variable.
1200 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1201 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1202 Remove unused variable.
1203 * parse.c (find_minsym_type_and_address): Remove unused variable.
1204 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1205 variable.
1206 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1207 variable.
1208 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1209 variables.
1210 * record-btrace.c (record_btrace_target::store_registers): Remove
1211 unused variable.
1212 (cmd_show_record_btrace_cpu): Remove unused variable.
1213 * riscv-tdep.c (riscv_register_reggroup_p)
1214 (riscv_push_dummy_call, riscv_return_value): Remove unused
1215 variable.
1216 * rust-exp.y (literal): Remove unused variable.
1217 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1218 unused variable.
1219 <STRUCTOP_ANONYMOUS>: Likewise.
1220 * s390-linux-tdep.c (s390_linux_init_abi_31)
1221 (s390_linux_init_abi_64): Remove unused variable.
1222 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1223 (file_select_thread, net_windows_open, _initialize_ser_windows):
1224 Remove unused variables.
1225 * symtab.c (find_pc_sect_line): Remove unused variable.
1226 * target-memory.c (compute_garbled_blocks): Remove unused
1227 variable.
1228 (target_write_memory_blocks): Remove unused variable.
1229 * target.c (target_stack::unpush): Remove unused variables.
1230 * tracepoint.c (start_tracing, all_tracepoint_actions)
1231 (merge_uploaded_trace_state_variables)
1232 (print_one_static_tracepoint_marker): Remove unused variable.
1233 * unittests/basic_string_view/element_access/char/1.cc (test01):
1234 Remove unused variable.
1235 * windows-nat.c (windows_continue, windows_add_all_dlls)
1236 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1237 Remove unused variables.
1238
1239 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1242 attr_profile in HAVE_ELF.
1243 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1244 HAVE_ELF.
1245
1246 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * frame.c (frame_register_unwind): Change parameter name.
1249 (frame_unwind_register): Likewise.
1250 (frame_unwind_register_value): Likewise.
1251 (frame_unwind_register_signed): Likewise.
1252 (frame_unwind_register_unsigned): Likewise.
1253 * frame.h (frame_register_unwind): Likewise.
1254 (frame_unwind_register): Likewise.
1255 (frame_unwind_register_value): Likewise.
1256 (frame_unwind_register_signed): Likewise.
1257 (frame_unwind_register_unsigned): Likewise.
1258 (frame_unwind_arch): Likewise.
1259
1260 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1261
1262 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1263 ISA maintenance.
1264
1265 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1266
1267 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1268 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1269 hand.
1270
1271 2018-07-20 Keith Seitz <keiths@redhat.com>
1272
1273 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1274 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1275 m_compunit_symtab, m_language>: Add "m_" prefix.
1276 Update all uses.
1277 * buildsym.c: Update all uses.
1278
1279 2018-07-20 Tom Tromey <tom@tromey.com>
1280
1281 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1282 * buildsym.h (record_line_ftype): Remove typedef.
1283
1284 2018-07-20 Tom Tromey <tom@tromey.com>
1285
1286 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1287 (end_expandable_symtab): Likewise.
1288 (end_symtab_get_static_block): Likewise.
1289 (end_symtab_from_static_block): Likewise.
1290 * buildsym-legacy.c (augment_type_symtab): Remove.
1291 (end_expandable_symtab): Remove.
1292 (end_symtab_get_static_block): Remove.
1293 (end_symtab_from_static_block): Remove.
1294
1295 2018-07-20 Tom Tromey <tom@tromey.com>
1296
1297 * dwarf2read.c: Include buildsym.h.
1298 (struct dwarf2_cu) <builder>: New method.
1299 (fixup_go_packaging): Update.
1300 (process_full_comp_unit, process_full_type_unit): Update. Don't
1301 use scoped_free_pendings.
1302 (using_directives): Add "cu" parameter, remove "language".
1303 (read_import_statement, setup_type_unit_groups, )
1304 (read_func_scope, read_lexical_block_scope)
1305 (dwarf2_record_block_ranges, read_namespace): Update.
1306 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1307 (lnp_state_machine::handle_end_sequence): Update.
1308 (class lnp_state_machine) <m_cu>: New member.
1309 <m_record_line_callback>: Remove.
1310 <m_currently_recording_lines>: New member.
1311 (lnp_state_machine::handle_set_file): Update.
1312 (noop_record_line): Remove.
1313 (dwarf_record_line_p): Add cu parameter.
1314 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1315 (lnp_state_machine::record_line)
1316 (lnp_state_machine::lnp_state_machine)
1317 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1318 (dwarf_decode_lines): Update.
1319 (dwarf2_start_subfile): Add cu parameter.
1320 (dwarf2_start_symtab, new_symbol): Update.
1321 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1322 Remove dwarf2_per_objfile parameter.
1323 (dwarf_decode_macros): Update.
1324
1325 2018-07-20 Tom Tromey <tom@tromey.com>
1326
1327 * stabsread.c (define_symbol): Update.
1328 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1329 * dwarf2read.c (new_symbol): Update.
1330 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1331 * cp-namespace.c: Include buildsym.h.
1332 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1333 * buildsym-legacy.c (get_buildsym_compunit): New function.
1334
1335 2018-07-20 Tom Tromey <tom@tromey.com>
1336
1337 * xcoffread.c: Include buildsym-legacy.h.
1338 * windows-nat.c: Include buildsym-legacy.h.
1339 * stabsread.c: Include buildsym-legacy.h.
1340 * mdebugread.c: Include buildsym-legacy.h.
1341 * buildsym-legacy.h: New file.
1342 * buildsym-legacy.c: New file, from buildsym.c.
1343 * go32-nat.c: Include buildsym-legacy.h.
1344 * dwarf2read.c: Include buildsym-legacy.h.
1345 * dbxread.c: Include buildsym-legacy.h.
1346 * cp-namespace.c: Include buildsym-legacy.h.
1347 * coffread.c: Include buildsym-legacy.h.
1348 * buildsym.h: Move some contents to buildsym-legacy.h.
1349 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1350 buildsym-legacy.c.
1351 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1352
1353 2018-07-20 Tom Tromey <tom@tromey.com>
1354
1355 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1356 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1357 (buildsym_compunit::buildsym_compunit)
1358 (buildsym_compunit::~buildsym_compunit)
1359 (buildsym_compunit::get_macro_table): Define.
1360
1361 2018-07-20 Tom Tromey <tom@tromey.com>
1362
1363 * buildsym.c (reset_symtab_globals): Remove.
1364 (buildsym_compunit::end_symtab_from_static_block): Update.
1365 (buildsym_compunit::augment_type_symtab): Update.
1366 (end_symtab_from_static_block): Call free_buildsym_compunit.
1367 (augment_type_symtab, end_symtab, end_expandable_symtab):
1368 Likewise.
1369
1370 2018-07-20 Tom Tromey <tom@tromey.com>
1371
1372 * arch-utils.c: Do not include buildsym.h.
1373 * mipsread.c: Do not include buildsym.h.
1374 * machoread.c: Do not include buildsym.h.
1375 * elfread.c: Do not include buildsym.h.
1376
1377 2018-07-20 Tom Tromey <tom@tromey.com>
1378
1379 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1380 initialization.
1381 (buildsym_compunit): Add new constructor.
1382 (struct buildsym_compunit) <get_last_source_file, finish_block,
1383 record_block_range, start_subfile, patch_subfile_names,
1384 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1385 set_last_source_start_addr, get_last_source_start_addr,
1386 get_local_using_directives, set_local_using_directives,
1387 get_global_using_directives, outermost_context_p,
1388 get_current_context_stack, get_context_stack_depth,
1389 get_current_subfile, get_local_symbols, get_file_symbols,
1390 get_global_symbols, record_debugformat, record_producer,
1391 push_context, pop_context, end_symtab_get_static_block,
1392 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1393 New public methods.
1394 <record_pending_block, finish_block_internal, make_blockvector,
1395 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1396 private methods.
1397 Update all users.
1398
1399 2018-05-22 Tom Tromey <tom@tromey.com>
1400
1401 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1402 parameter.
1403 (finish_block_internal): Update.
1404
1405 2018-07-20 Tom Tromey <tom@tromey.com>
1406
1407 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1408 parameter.
1409 (finish_block_internal): Update.
1410
1411 2018-07-20 Tom Tromey <tom@tromey.com>
1412
1413 * buildsym.h (EXTERN): Don't define or undef.
1414 * buildsym.c (EXTERN): Don't define.
1415
1416 2018-07-20 Tom Tromey <tom@tromey.com>
1417
1418 * buildsym.c: Remove TODO comment.
1419
1420 2018-07-20 Tom Tromey <tom@tromey.com>
1421
1422 * coffread.c (coff_symtab_read): Update.
1423 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1424 (xcoff_new_init): Update.
1425 * mipsread.c (mipscoff_new_init): Update.
1426 * mdebugread.c (mdebug_build_psymtabs): Update.
1427 * elfread.c (elf_new_init): Update.
1428 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1429 Update.
1430 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1431 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1432 (stabsect_build_psymtabs): Update.
1433 * buildsym.h (buildsym_init): Don't declare.
1434 * buildsym.c: Update comment.
1435 (prepare_for_building): Remove.
1436 (start_symtab, restart_symtab): Update.
1437 (reset_symtab_globals): Update comment.
1438 (buildsym_init): Remove.
1439
1440 2018-07-20 Tom Tromey <tom@tromey.com>
1441
1442 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
1443 * stabsread.c (patch_block_stabs, define_symbol, read_type)
1444 (read_enum_type, common_block_start, common_block_end)
1445 (cleanup_undefined_types_1, finish_global_stabs): Update.
1446 * mdebugread.c (psymtab_to_symtab_1): Update.
1447 * dwarf2read.c (fixup_go_packaging, read_func_scope)
1448 (read_lexical_block_scope, new_symbol): Update.
1449 * dbxread.c (process_one_symbol): Update.
1450 * coffread.c (coff_symtab_read, process_coff_symbol)
1451 (coff_read_enum_type): Update.
1452 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
1453 declare.
1454 (get_local_symbols, get_file_symbols, get_global_symbols): New
1455 functions.
1456 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
1457 m_global_symbols.
1458 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
1459 (~scoped_free_pendings): Update.
1460 (finish_block, prepare_for_building, reset_symtab_globals)
1461 (end_symtab_get_static_block, end_symtab_with_blockvector)
1462 (augment_type_symtab, push_context): Update.
1463 (get_local_symbols, get_file_symbols, get_global_symbols): New
1464 functions.
1465 (buildsym_init): Update.
1466
1467 2018-07-20 Tom Tromey <tom@tromey.com>
1468
1469 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
1470 (process_full_type_unit): Likewise.
1471 (dwarf2_start_symtab): Set list_in_scope.
1472
1473 2018-07-20 Tom Tromey <tom@tromey.com>
1474
1475 * dwarf2read.c (process_psymtab_comp_unit_reader)
1476 (build_type_psymtabs_reader): Do not set list_in_scope.
1477
1478 2018-07-20 Tom Tromey <tom@tromey.com>
1479
1480 * buildsym.c (free_pendings): Remove.
1481 (add_symbol_to_list, scoped_free_pendings)
1482 (finish_block_internal, buildsym_init): Update.
1483
1484 2018-07-20 Tom Tromey <tom@tromey.com>
1485
1486 * xcoffread.c (read_xcoff_symtab): Update.
1487 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
1488 Update.
1489 * dbxread.c (process_one_symbol): Update.
1490 * coffread.c (coff_symtab_read): Update.
1491 * buildsym.h (finish_block): Update.
1492 * buildsym.c (finish_block): Remove "listhead" argument.
1493 (end_symtab_get_static_block): Update.
1494
1495 2018-07-20 Tom Tromey <tom@tromey.com>
1496
1497 * buildsym.h (class scoped_free_pendings): Remove constructor.
1498 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
1499 method.
1500 <m_pending_block_obstack, m_pending_blocks>: New members.
1501 (pending_block_obstack, pending_blocks): Remove.
1502 (scoped_free_pendings::scoped_free_pendings): Default.
1503 (~scoped_free_pendings): Update.
1504 (free_pending_blocks): Remove.
1505 (finish_block_internal, record_pending_block, make_blockvector)
1506 (end_symtab_get_static_block, augment_type_symtab, push_context)
1507 (buildsym_init): Update.
1508
1509 2018-07-20 Tom Tromey <tom@tromey.com>
1510
1511 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
1512 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
1513 members.
1514 (pending_addrmap, pending_addrmap_obstack)
1515 (pending_addrmap_interesting): Remove.
1516 (scoped_free_pendings, record_block_range, make_blockvector)
1517 (prepare_for_building, reset_symtab_globals, buildsym_init):
1518 Update.
1519
1520 2018-07-20 Tom Tromey <tom@tromey.com>
1521
1522 * xcoffread.c (process_linenos): Update.
1523 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
1524 * mdebugread.c (psymtab_to_symtab_1): Update.
1525 * dwarf2read.c (setup_type_unit_groups)
1526 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
1527 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
1528 * dbxread.c (process_one_symbol): Update.
1529 * coffread.c (coff_symtab_read, enter_linenos)
1530 (process_coff_symbol): Update.
1531 * buildsym.h (current_subfile): Don't declare.
1532 (get_current_subfile): Declare.
1533 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
1534 member.
1535 (start_subfile, free_buildsym_compunit, push_subfile)
1536 (prepare_for_building, start_symtab): Update.
1537 (get_current_subfile): New function.
1538
1539 2018-07-20 Tom Tromey <tom@tromey.com>
1540
1541 * coffread.c (coff_symtab_read): Update.
1542 * xcoffread.c (read_xcoff_symtab): Update.
1543 * dwarf2read.c (new_symbol): Update.
1544 (read_func_scope, read_lexical_block_scope): Update.
1545 * dbxread.c (process_one_symbol): Update.
1546 * buildsym.h (context_stack, context_stack_depth): Don't declare.
1547 (outermost_context_p): Remove macro.
1548 (outermost_context_p, get_current_context_stack)
1549 (get_context_stack_depth): Declare.
1550 (pop_context): Return struct context_stack.
1551 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
1552 member.
1553 (context_stack_size): Remove.
1554 (INITIAL_CONTEXT_STACK_SIZE): Remove.
1555 (prepare_for_building, end_symtab_get_static_block)
1556 (augment_type_symtab, push_context): Update.
1557 (pop_context): Return struct context_stack.
1558 (outermost_context_p, get_current_context_stack)
1559 (get_context_stack_depth): New functions.
1560 (buildsym_init): Update.
1561
1562 2018-07-20 Tom Tromey <tom@tromey.com>
1563
1564 * rust-exp.y: Now a pure parser. Update all rules.
1565 (%union): Move earlier.
1566 (current_parser, work_obstack): Remove globals.
1567 (rust_parser, ~rust_parser): Update.
1568 (class rust_parser) <copy_name, concat3, crate_name, super_name,
1569 lex_character, lex_number, lex_string, lex_identifier,
1570 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
1571 convert_name, convert_params_to_expression,
1572 convert_ast_to_expression, ast_basic_type, ast_operation,
1573 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
1574 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
1575 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
1576 ast_array_type, ast_slice_type, ast_reference_type,
1577 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
1578 (rust_parse): Update.
1579 (rustyyerror, rustyylex): Add parser parameter.
1580 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
1581 (rust_lex_stringish_test, rust_lex_test_sequence)
1582 (rust_lex_test_trailing_dot, rust_lex_test_completion)
1583 (rust_lex_test_push_back, rust_lex_tests): Update.
1584
1585 2018-07-19 Pedro Alves <palves@redhat.com>
1586
1587 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
1588 gdb::unique_xmalloc_ptr.
1589 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
1590 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
1591 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
1592 copy-initialization.
1593 * guile/scm-pretty-print.c (ppscm_print_children): Use
1594 gdb::unique_xmalloc_ptr instead of cleanups.
1595 (gdbscm_apply_val_pretty_printer): Remove cleanups.
1596 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
1597 gdb::unique_xmalloc_ptr.
1598 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1599 Adjust to use gdb::unique_xmalloc_ptr.
1600 * guile/scm-utils.c (extract_arg): Adjust.
1601 * guile/scm-value.c (gdbscm_value_field): Adjust to use
1602 gdb::unique_xmalloc_ptr instead of a cleanup.
1603
1604 2018-07-19 Tom Tromey <tom@tromey.com>
1605
1606 * utils.c (do_value_free_to_mark)
1607 (make_cleanup_value_free_to_mark): Remove.
1608 * utils.h (make_cleanup_value_free_to_mark): Remove.
1609
1610 2018-07-19 Pedro Alves <palves@redhat.com>
1611
1612 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
1613 forwarding reference.
1614
1615 2018-07-18 Pedro Alves <palves@redhat.com>
1616
1617 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
1618 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
1619 cleanup.
1620
1621 2018-07-18 Pedro Alves <palves@redhat.com>
1622
1623 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
1624 exceptions.
1625 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
1626 (gdbscm_wrap): New.
1627 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
1628 directly instead of a cleanup.
1629 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
1630 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
1631 (vlscm_binop_gdbthrow): New, factored out from ...
1632 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
1633 (vlscm_rich_compare): Use gdbscm_wrap.
1634 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
1635 instead of a cleanup.
1636 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
1637 cleanup.
1638 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
1639 Use xfree directly instead of a cleanup.
1640 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
1641 Adjust to use gdbscm_wrap and scoped_value_mark.
1642 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
1643 (gdbscm_value_address, gdbscm_value_dereference)
1644 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
1645 scoped_value_mark.
1646 (gdbscm_value_dynamic_type): Use scoped_value_mark.
1647 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
1648 scoped_value_mark.
1649 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
1650 gdbscm_wrap and scoped_value_mark.
1651 (gdbscm_value_to_string): Use xfree directly instead of a
1652 cleanup. Move 'buffer' unique_ptr to TRY scope.
1653 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
1654 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
1655 scoped_value_mark.
1656 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
1657 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
1658 scoped_value_mark.
1659 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
1660 gdbscm_wrap.
1661
1662 2018-07-18 Tom de Vries <tdevries@suse.de>
1663
1664 * findvar.c (default_read_var_value): Also resolve dynamic type for
1665 LOC_OPTIMIZED_OUT vars.
1666
1667 2018-07-18 Maciej W. Rozycki <macro@mips.com>
1668
1669 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
1670 decoding.
1671
1672 2018-07-17 Tom Tromey <tom@tromey.com>
1673
1674 * guile/scm-param.c (pascm_set_func, pascm_show_func)
1675 (compute_enum_list, pascm_set_param_value_x)
1676 (gdbscm_parameter_value): Update.
1677 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
1678 (gdbscm_scm_to_host_string): Update.
1679 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
1680 Update.
1681 * guile/scm-cmd.c (cmdscm_add_completion): Update.
1682 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
1683 * guile/scm-string.c (gdbscm_scm_to_string): Return
1684 unique_xmalloc_ptr.
1685 (gdbscm_scm_to_host_string): Likewise.
1686
1687 2018-07-17 Tom Tromey <tom@tromey.com>
1688
1689 * guile/guile.c (gdbscm_eval_from_control_command): Update.
1690 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
1691 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
1692 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
1693 unique_xmalloc_ptr.
1694
1695 2018-07-17 Tom Tromey <tom@tromey.com>
1696
1697 * guile/scm-param.c (pascm_signal_setshow_error): Update.
1698 * guile/guile-internal.h (gdbscm_exception_message_to_string):
1699 Update.
1700 * guile/scm-cmd.c (cmdscm_function): Update.
1701 * guile/scm-pretty-print.c
1702 (ppscm_print_exception_unless_memory_error): Update.
1703 * guile/scm-exception.c (gdbscm_exception_message_to_string):
1704 Return unique_xmalloc_ptr.
1705
1706 2018-07-17 Tom Tromey <tom@tromey.com>
1707
1708 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
1709 Use string_printf.
1710
1711 2018-07-17 Jim Wilson <jimw@sifive.com>
1712
1713 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
1714 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
1715 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
1716 unecessary braces after EF_RISCV_RVC test. Delete call to
1717 set_gdbarch_decr_pc_after_break.
1718
1719 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
1720 RISCV_LAST_FP_REGNUM + 1.
1721 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
1722
1723 2018-07-17 Tom Tromey <tom@tromey.com>
1724
1725 * configure.ac: Remove --disable-gdbcli.
1726 * configure: Rebuild.
1727 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
1728 (SUBDIR_CLI_CFLAGS): Remove.
1729 (SFILES): Use SUBDIR_CLI_SRCS.
1730 (COMMON_OBS): Use SUBDIR_CLI_OBS.
1731
1732 2018-07-17 Tom Tromey <tom@tromey.com>
1733
1734 PR gdb/18624:
1735 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
1736
1737 2018-07-16 Jim Wilson <jimw@sifive.com>
1738
1739 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
1740
1741 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1742
1743 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
1744 variable.
1745 (libunwind_frame_sniffer): Likewise.
1746 (libunwind_frame_prev_register): Likewise.
1747 (libunwind_sigtramp_frame_sniffer): Likewise.
1748 * ia64-tdep.c (ia64_access_reg): Likewise.
1749 (ia64_access_rse_reg): Likewise.
1750 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
1751 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
1752
1753 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1754
1755 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
1756
1757 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
1758
1759 * remote-sim.c (gdbsim_target::close,
1760 gdbsim_target::mourn_inferior): Remove unused variables.
1761
1762 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * ia64-tdep.c (ktab_buf): New global.
1765 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
1766 (get_kernel_table): Adjust.
1767
1768 2018-07-16 Tom Tromey <tom@tromey.com>
1769
1770 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
1771 * dwarf2read.c (using_directives, new_symbol): Use
1772 outermost_context_p.
1773 * dbxread.c (process_one_symbol): Use outermost_context_p.
1774 * coffread.c (coff_symtab_read): Use outermost_context_p.
1775
1776 2018-07-16 Tom Tromey <tom@tromey.com>
1777
1778 * dwarf2read.c (using_directives, read_func_scope)
1779 (read_lexical_block_scope): Update.
1780 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1781 * buildsym.h (local_using_directives, global_using_directives):
1782 Don't declare.
1783 (get_local_using_directives, set_local_using_directives)
1784 (get_global_using_directives): Declare.
1785 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
1786 m_global_using_directives>: New members.
1787 (finish_block_internal, prepare_for_building)
1788 (reset_symtab_globals, end_symtab_get_static_block)
1789 (push_context): Update.
1790 (get_local_using_directives, set_local_using_directives)
1791 (get_global_using_directives): New functions.
1792 (buildsym_init): Update.
1793
1794 2018-07-16 Tom Tromey <tom@tromey.com>
1795
1796 * xcoffread.c (xcoff_initial_scan): Don't call
1797 free_pending_blocks.
1798 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
1799 * buildsym.h (class scoped_free_pendings): Add constructor.
1800 (free_pending_blocks): Don't declare.
1801 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
1802 (free_pending_blocks): Now static.
1803
1804 2018-07-16 Tom Tromey <tom@tromey.com>
1805
1806 * buildsym.h (push_subfile, pop_subfile): Update declarations.
1807 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
1808 member.
1809 (struct subfile_stack): Remove.
1810 (subfile_stack): Remove.
1811 (push_subfile, pop_subfile, buildsym_init): Update.
1812
1813 2018-07-16 Tom Tromey <tom@tromey.com>
1814
1815 * buildsym.c (push_subfile): Use gdb_assert.
1816 (pop_subfile): Use gdb_assert.
1817
1818 2018-07-16 Tom Tromey <tom@tromey.com>
1819
1820 * buildsym.h (merge_symbol_lists): Remove.
1821 * buildsym.c (merge_symbol_lists): Remove.
1822
1823 2018-07-16 Tom Tromey <tom@tromey.com>
1824
1825 * stabsread.c (scan_file_globals): Update comment.
1826 * stabsread.h (scan_file_globals): Move from buildsym.h.
1827 * buildsym.h (scan_file_globals): Move to stabsread.h.
1828
1829 2018-07-16 Tom Tromey <tom@tromey.com>
1830
1831 * xcoffread.c (xcoff_new_init): Update.
1832 * mipsread.c (mipscoff_new_init): Update.
1833 * mdebugread.c (mdebug_build_psymtabs): Update.
1834 * elfread.c (elf_new_init): Update.
1835 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
1836 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
1837 * buildsym.h (buildsym_new_init): Don't declare.
1838 * buildsym.c (buildsym_new_init): Remove.
1839
1840 2018-07-16 Tom Tromey <tom@tromey.com>
1841
1842 * stabsread.h (within_function): Move from buildsym.h.
1843 * stabsread.c (start_stabs): Clear within_function.
1844 * coffread.c (coff_start_symtab): Clear within_function.
1845 * buildsym.h (within_function): Move to stabsread.h.
1846 * buildsym.c (prepare_for_building): Update.
1847
1848 2018-07-16 Tom Tromey <tom@tromey.com>
1849
1850 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
1851 * dwarf2read.c (dwarf2_start_symtab): Don't set
1852 processing_gcc_compilation.
1853 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
1854
1855 2018-07-16 Tom Tromey <tom@tromey.com>
1856
1857 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
1858 (next_symbol_text_func): Move from buildsym.h.
1859 * stabsread.c (hashname): Move from buildsym.c.
1860 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
1861 (next_symbol_text_func, hashname): Move to stabsread.h.
1862 * buildsym.c: Don't include bcache.h
1863 (hashname): Move to stasbread.c.
1864
1865 2018-07-16 Tom Tromey <tom@tromey.com>
1866
1867 * buildsym.h (context_stack_size): Don't declare.
1868 * buildsym.c (context_stack_size): New global.
1869
1870 2018-07-16 Tom Tromey <tom@tromey.com>
1871
1872 * dbxread.c (processing_acc_compilation): New global.
1873 * buildsym.h (processing_acc_compilation): Don't declare.
1874
1875 2018-07-16 Tom Tromey <tom@tromey.com>
1876
1877 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
1878 * dbxread.c (read_ofile_symtab): Update.
1879 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
1880 * buildsym.h (last_source_start_addr): Remove.
1881 (set_last_source_start_addr, get_last_source_start_addr):
1882 Declare.
1883 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
1884 parameter.
1885 (struct buildsym_compunit) <m_last_source_start_addr>: New
1886 member.
1887 (prepare_for_building): Remove start_addr parameter.
1888 (start_symtab, restart_symtab, end_symtab_get_static_block)
1889 (end_symtab_with_blockvector): Update.
1890 (set_last_source_start_addr, get_last_source_start_addr): New
1891 functions.
1892
1893 2018-07-16 Tom Tromey <tom@tromey.com>
1894
1895 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
1896 member.
1897 (have_line_numbers): Remove.
1898 (record_line, prepare_for_building, end_symtab_get_static_block)
1899 (augment_type_symtab): Update.
1900
1901 2018-07-16 Tom Tromey <tom@tromey.com>
1902
1903 * buildsym.c (~buildsym_compunit): Free the macro table.
1904 (struct buildsym_compunit) <get_macro_table, release_macros>: New
1905 methods.
1906 <m_pending_macros>: New member.
1907 (pending_macros): Remove.
1908 (~scoped_free_pendings, get_macro_table, prepare_for_building)
1909 (reset_symtab_globals, end_symtab_get_static_block)
1910 (end_symtab_with_blockvector, augment_type_symtab)
1911 (buildsym_init): Update.
1912
1913 2018-07-16 Tom Tromey <tom@tromey.com>
1914
1915 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
1916 parameter.
1917 (buildsym_compunit::set_last_source_file): New method.
1918 <m_last_source_file>: New member.
1919 (prepare_for_building): Remove "name" parameter.
1920 (start_symtab, restart_symtab, reset_symtab_globals): Update.
1921 (last_source_file): Remove.
1922 (set_last_source_file, get_last_source_file): Update.
1923
1924 2018-07-16 Tom Tromey <tom@tromey.com>
1925
1926 * buildsym.c (prepare_for_building): Add assert.
1927
1928 2018-07-16 Tom Tromey <tom@tromey.com>
1929
1930 * buildsym.c (~buildsym_compunit): Update.
1931 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
1932 (start_subfile, patch_subfile_names)
1933 (end_symtab_with_blockvector): Update.
1934
1935 2018-07-16 Tom Tromey <tom@tromey.com>
1936
1937 * buildsym.c (struct buildsym_compunit): Add constructor,
1938 destructor, initializers.
1939 (start_buildsym_compunit): Remove.
1940 (free_buildsym_compunit): Use "delete".
1941 (start_symtab, restart_symtab): Use "new".
1942
1943 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * symfile.c (set_objfile_default_section_offset): Remove struct
1946 keyword.
1947
1948 2018-07-14 Stafford Horne <shorne@gmail.com>
1949
1950 * (Responsible Maintainers): Add myself as or1k maintainer.
1951
1952 2018-07-13 Tom Tromey <tom@tromey.com>
1953
1954 * symfile.c (set_objfile_default_section_offset): Use extra braces
1955 around initializer.
1956
1957 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
1958
1959 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
1960 non-branching basr.
1961
1962 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1963
1964 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1965 unittests/cli-utils-selftests.c
1966 * unittests/cli-utils-selftests.c: New file.
1967
1968 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1969
1970 * NEWS: Mention new commands. Mention change to 'thread apply'.
1971
1972 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1973
1974 * thread.c (thr_try_catch_cmd): New function.
1975 (thread_apply_all_command): Handle qcs flags.
1976 (thread_apply_command): Handle qcs flags.
1977 (taas_command): New function.
1978 (tfaas_command): New function.
1979 (_initialize_thread): Update to setup the new commands 'taas
1980 and 'tfaas'. Change doc string for 'thread apply'.
1981
1982 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1983
1984 * stack.c: (trailing_outermost_frame): New function, mostly
1985 extracted from backtrace_command_1.
1986 (leading_innermost_frame): New function.
1987 (backtrace_command_1): Update to call trailing_outermost_frame.
1988 (frame_apply_command_count): New function.
1989 (frame_apply_level_command): New function.
1990 (frame_apply_all_command): New function.
1991 (frame_apply_command): New function.
1992 (faas_command): New function.
1993 (frame_cmd_list): New variable.
1994 (_initialize_stack): Update to setup the new commands 'frame apply'
1995 and 'faas'.
1996
1997 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1998
1999 * cli-utils.c (number_or_range_parser::get_number): Only handle
2000 numbers or convenience var as numbers.
2001 (parse_flags): New function.
2002 (parse_flags_qcs): New function.
2003 (number_or_range_parser::finished): Ensure parsing end is detected
2004 before end of string.
2005 * cli-utils.h (parse_flags): New function.
2006 (parse_flags_qcs): New function.
2007 (number_or_range_parser): Remove m_finished bool.
2008 (number_or_range_parser::skip_range): Set m_in_range to false.
2009
2010 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2011
2012 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2013 on Windows.
2014
2015 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2016 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 Paul Fertser <fercerpav@gmail.com>
2018 Tsutomu Seki <sekiriki@gmail.com>
2019 Pedro Alves <palves@redhat.com>
2020
2021 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2022 'unittests/parse-connection-spec-selftests.c'.
2023 (COMMON_SFILES): Add 'common/netstuff.c'.
2024 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2025 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2026 * common/netstuff.c: New file.
2027 * common/netstuff.h: New file.
2028 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2029 (wait_for_connect): Update comment. New parameter
2030 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2031 Use 'sock' directly instead of 'scb->fd'.
2032 (try_connect): New function, with code from 'net_open'.
2033 (net_open): Rewrite main loop to deal with multiple
2034 sockets/addresses. Handle IPv6-style hostnames; implement
2035 support for IPv6 connections.
2036 * unittests/parse-connection-spec-selftests.c: New file.
2037
2038 2018-07-11 Pedro Alves <palves@redhat.com>
2039
2040 PR gdb/23377
2041 * remote.c (remote_target::remote_detach_pid): Call
2042 set_current_process.
2043
2044 2018-07-11 Pedro Alves <palves@redhat.com>
2045
2046 * h8300-tdep.c (h8300_gdbarch_init): Remove
2047 set_gdbarch_ecoff_reg_to_regnum calls.
2048
2049 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2050
2051 PR c++/23373
2052 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2053 offsets/sizes for static members of a class/struct.
2054
2055 2018-07-11 Alan Hayward <alan.hayward@arm.com>
2056
2057 * target-descriptions.c (tdesc_register_bitsize): Rename.
2058 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2059 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2060 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2061
2062 2018-07-10 Tom Tromey <tom@tromey.com>
2063
2064 * breakpoint.c (moribund_locations): Now static and a
2065 std::vector.
2066 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2067 (build_bpstat_chain, update_global_location_list)
2068 (breakpoint_retire_moribund): Update.
2069 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2070 VEC.
2071
2072 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2075 (riscv_register_reggroup_p): Use new function, remove unneeded
2076 parenthesis.
2077 (riscv_push_dummy_call): Extend assert to compare against xlen or
2078 flen based on register type.
2079
2080 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2083
2084 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * remote.c (show_hardware_watchpoint_limit): New function.
2087 (show_hardware_watchpoint_length_limit): New function.
2088 (show_hardware_breakpoint_limit): New function.
2089 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2090 where appropriate, update help text.
2091
2092 2018-07-09 Tom Tromey <tom@tromey.com>
2093
2094 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2095 (CLIBS): Don't mention NAT_CLIBS.
2096
2097 2018-07-09 Tom Tromey <tom@tromey.com>
2098
2099 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2100 (LIBGDB_OBS, clean mostlyclean): Update.
2101 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2102
2103 2018-07-09 Tom Tromey <tom@tromey.com>
2104
2105 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2106 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2107 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2108
2109 2018-07-09 Tom Tromey <tom@tromey.com>
2110
2111 * Makefile.in (ALLDEPFILES): Remove exec.c.
2112 (COMMON_OBS): Remove exec.o.
2113 (COMMON_SFILES): Add exec.c.
2114
2115 2018-07-09 Tom Tromey <tom@tromey.com>
2116
2117 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2118
2119 2018-07-09 Tom Tromey <tom@tromey.com>
2120
2121 * Makefile.in (clean mostlyclean): Remove stamp-version.
2122 (version.c): Depend on stamp-version.
2123 (stamp-version): New rule, from version.c rule.
2124
2125 2018-07-09 Tom Tromey <tom@tromey.com>
2126
2127 * Makefile.in (init.c): Depend on stamp-init.
2128 (stamp-init): New rule, from init.c rule.
2129 (clean mostlyclean): Remove stamp-init.
2130
2131 2018-07-09 Tom Tromey <tom@tromey.com>
2132
2133 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2134 SUBDIR_GCC_COMPILE_SRCS.
2135
2136 2018-07-09 Tom Tromey <tom@tromey.com>
2137
2138 * Makefile.in (init.c): Remove some unused sed rules.
2139
2140 2018-07-09 Tom Tromey <tom@tromey.com>
2141
2142 * Makefile.in (TSOBS): Remove.
2143 (INIT_FILES): Update.
2144 (LIBGDB_OBS): Update.
2145 (COMMON_SFILES): Add inflow.c.
2146 (SFILES): Remove inflow.c.
2147
2148 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2151
2152 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2155 get_saveloc_name, is_signal_frame_name, step_name,
2156 init_remote_name, create_addr_space_name,
2157 destroy_addr_space_name, search_unwind_table_name,
2158 find_dyn_list_name): Constify.
2159
2160 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2161
2162 * darwin-nat.c (darwin_pthread_kill): New function.
2163 (darwin_resume_thread): Use darwin_pthread_kill.
2164
2165 2018-07-05 Tom de Vries <tdevries@suse.de>
2166
2167 * macroexp.c (macro_buffer) <operator=>: New member function.
2168
2169 2018-07-04 Tom Tromey <tom@tromey.com>
2170
2171 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2172
2173 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2176 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2177 * maint.c: Likewise.
2178 * top.c: Likewise.
2179
2180 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2181
2182 * NEWS: Create a new section for the next release branch.
2183 Rename the section of the current branch, now that it has
2184 been cut.
2185
2186 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2187
2188 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2189 * version.in: Bump version to 8.2.50.DATE-git.
2190
2191 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2192 Pedro Alves <palves@redhat.com>
2193
2194 * linux-nat.c (linux_init_ptrace): Rename to ...
2195 (linux_init_ptrace_procfs): ... this. Call
2196 linux_proc_init_warnings.
2197 (linux_nat_target::post_attach)
2198 (linux_nat_target::post_startup_inferior): Adjust.
2199 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2200 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2201
2202 2018-07-04 Tom de Vries <tdevries@suse.de>
2203
2204 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2205 check ...
2206 (read_comp_unit_head): ... here.
2207
2208 2018-07-03 Tom Tromey <tom@tromey.com>
2209
2210 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2211 (stop_tracing, tstatus_command)
2212 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2213 (print_one_static_tracepoint_marker): Update.
2214 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2215 std::vector.
2216 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2217 VEC.
2218 (all_tracepoints, static_tracepoints_here): Return std::vector.
2219
2220 2018-07-03 Tom Tromey <tom@tromey.com>
2221
2222 * common/ptid.c (ptid_equal): Remove.
2223 * common/ptid.h (ptid_equal): Don't declare.
2224 * ada-tasks.c: Update.
2225 * breakpoint.c: Update.
2226 * common/agent.c: Update.
2227 * corelow.c: Update.
2228 * darwin-nat-info.c: Update.
2229 * darwin-nat.c: Update.
2230 * dcache.c: Update.
2231 * dtrace-probe.c: Update.
2232 * dummy-frame.c: Update.
2233 * fbsd-nat.c: Update.
2234 * frame.c: Update.
2235 * gdbthread.h: Update.
2236 * gnu-nat.c: Update.
2237 * go32-nat.c: Update.
2238 * inf-loop.c: Update.
2239 * inf-ptrace.c: Update.
2240 * infcall.c: Update.
2241 * infcmd.c: Update.
2242 * inflow.c: Update.
2243 * infrun.c: Update.
2244 * linux-fork.c: Update.
2245 * linux-nat.c: Update.
2246 * linux-thread-db.c: Update.
2247 * mi/mi-cmd-var.c: Update.
2248 * mi/mi-interp.c: Update.
2249 * mi/mi-main.c: Update.
2250 * nto-procfs.c: Update.
2251 * ppc-linux-tdep.c: Update.
2252 * procfs.c: Update.
2253 * python/py-inferior.c: Update.
2254 * python/py-record-btrace.c: Update.
2255 * python/py-record.c: Update.
2256 * ravenscar-thread.c: Update.
2257 * regcache.c: Update.
2258 * remote-sim.c: Update.
2259 * remote.c: Update.
2260 * sol-thread.c: Update.
2261 * solib.c: Update.
2262 * target.c: Update.
2263 * tui/tui-stack.c: Update.
2264 * varobj.c: Update.
2265 * windows-nat.c: Update.
2266 * windows-tdep.c: Update.
2267
2268 2018-07-03 Tom Tromey <tom@tromey.com>
2269
2270 * common/ptid.c (ptid_match): Remove.
2271 * common/ptid.h (ptid_match): Don't declare.
2272 * fbsd-nat.c: Update.
2273 * infcmd.c: Update.
2274 * infrun.c: Update.
2275 * linux-nat.c: Update.
2276 * record-btrace.c: Update.
2277 * regcache.c: Update.
2278 * remote.c: Update.
2279
2280 2018-07-03 Tom Tromey <tom@tromey.com>
2281
2282 * common/ptid.c (ptid_tid_p): Remove.
2283 * common/ptid.h (ptid_tid_p): Don't declare.
2284 * sol-thread.c: Update.
2285
2286 2018-07-03 Tom Tromey <tom@tromey.com>
2287
2288 * common/ptid.c (ptid_lwp_p): Remove.
2289 * common/ptid.h (ptid_lwp_p): Don't declare.
2290 * fbsd-nat.c: Update.
2291 * linux-nat.c: Update.
2292 * nat/linux-procfs.c: Update.
2293 * nat/x86-linux-dregs.c: Update.
2294 * sol-thread.c: Update.
2295
2296 2018-07-03 Tom Tromey <tom@tromey.com>
2297
2298 * common/ptid.c (ptid_is_pid): Remove.
2299 * common/ptid.h (ptid_is_pid): Don't declare.
2300 * infrun.c: Update.
2301 * linux-nat.c: Update.
2302 * mi/mi-interp.c: Update.
2303 * remote.c: Update.
2304 * thread.c: Update.
2305
2306 2018-07-03 Tom Tromey <tom@tromey.com>
2307
2308 * common/ptid.c (ptid_get_tid): Remove.
2309 * common/ptid.h (ptid_get_tid): Don't declare.
2310 * ada-tasks.c: Update.
2311 * aix-thread.c: Update.
2312 * bsd-uthread.c: Update.
2313 * darwin-nat.c: Update.
2314 * fbsd-nat.c: Update.
2315 * i386-darwin-nat.c: Update.
2316 * infrun.c: Update.
2317 * linux-tdep.c: Update.
2318 * nto-procfs.c: Update.
2319 * ppc-ravenscar-thread.c: Update.
2320 * python/py-infthread.c: Update.
2321 * ravenscar-thread.c: Update.
2322 * sol-thread.c: Update.
2323 * sparc-ravenscar-thread.c: Update.
2324 * windows-nat.c: Update.
2325
2326 2018-07-03 Tom Tromey <tom@tromey.com>
2327
2328 * common/ptid.c (ptid_get_lwp): Remove.
2329 * common/ptid.h (ptid_get_lwp): Don't declare.
2330 * aarch64-linux-nat.c: Update.
2331 * ada-tasks.c: Update.
2332 * aix-thread.c: Update.
2333 * amd64-linux-nat.c: Update.
2334 * arm-linux-nat.c: Update.
2335 * corelow.c: Update.
2336 * fbsd-nat.c: Update.
2337 * fbsd-tdep.c: Update.
2338 * gnu-nat.c: Update.
2339 * i386-cygwin-tdep.c: Update.
2340 * i386-gnu-nat.c: Update.
2341 * i386-linux-nat.c: Update.
2342 * ia64-linux-nat.c: Update.
2343 * inf-ptrace.c: Update.
2344 * infrun.c: Update.
2345 * linux-fork.c: Update.
2346 * linux-nat.c: Update.
2347 * linux-tdep.c: Update.
2348 * linux-thread-db.c: Update.
2349 * mips-linux-nat.c: Update.
2350 * nat/aarch64-linux-hw-point.c: Update.
2351 * nat/aarch64-linux.c: Update.
2352 * nat/linux-btrace.c: Update.
2353 * nat/linux-osdata.c: Update.
2354 * nat/linux-procfs.c: Update.
2355 * nat/x86-linux-dregs.c: Update.
2356 * obsd-nat.c: Update.
2357 * ppc-fbsd-nat.c: Update.
2358 * ppc-linux-nat.c: Update.
2359 * procfs.c: Update.
2360 * python/py-infthread.c: Update.
2361 * ravenscar-thread.c: Update.
2362 * remote.c: Update.
2363 * s390-linux-nat.c: Update.
2364 * sol-thread.c: Update.
2365 * sol2-tdep.c: Update.
2366 * spu-linux-nat.c: Update.
2367 * x86-linux-nat.c: Update.
2368 * xtensa-linux-nat.c: Update.
2369
2370 2018-07-03 Tom Tromey <tom@tromey.com>
2371
2372 * common/ptid.c (ptid_get_pid): Remove.
2373 * common/ptid.h (ptid_get_pid): Don't declare.
2374 * aarch64-linux-nat.c: Update.
2375 * ada-lang.c: Update.
2376 * aix-thread.c: Update.
2377 * alpha-bsd-nat.c: Update.
2378 * amd64-fbsd-nat.c: Update.
2379 * amd64-linux-nat.c: Update.
2380 * arm-linux-nat.c: Update.
2381 * arm-nbsd-nat.c: Update.
2382 * auxv.c: Update.
2383 * break-catch-syscall.c: Update.
2384 * breakpoint.c: Update.
2385 * bsd-uthread.c: Update.
2386 * corelow.c: Update.
2387 * ctf.c: Update.
2388 * darwin-nat.c: Update.
2389 * fbsd-nat.c: Update.
2390 * fbsd-tdep.c: Update.
2391 * gcore.c: Update.
2392 * gnu-nat.c: Update.
2393 * hppa-nbsd-nat.c: Update.
2394 * hppa-obsd-nat.c: Update.
2395 * i386-fbsd-nat.c: Update.
2396 * ia64-linux-nat.c: Update.
2397 * inf-ptrace.c: Update.
2398 * infcmd.c: Update.
2399 * inferior.c: Update.
2400 * inferior.h: Update.
2401 * inflow.c: Update.
2402 * infrun.c: Update.
2403 * linux-fork.c: Update.
2404 * linux-nat.c: Update.
2405 * linux-tdep.c: Update.
2406 * linux-thread-db.c: Update.
2407 * m68k-bsd-nat.c: Update.
2408 * mi/mi-interp.c: Update.
2409 * mi/mi-main.c: Update.
2410 * mips-linux-nat.c: Update.
2411 * mips-nbsd-nat.c: Update.
2412 * mips64-obsd-nat.c: Update.
2413 * nat/aarch64-linux-hw-point.c: Update.
2414 * nat/aarch64-linux.c: Update.
2415 * nat/linux-btrace.c: Update.
2416 * nat/linux-osdata.c: Update.
2417 * nat/linux-procfs.c: Update.
2418 * nat/x86-linux-dregs.c: Update.
2419 * nto-procfs.c: Update.
2420 * obsd-nat.c: Update.
2421 * ppc-linux-nat.c: Update.
2422 * ppc-nbsd-nat.c: Update.
2423 * ppc-obsd-nat.c: Update.
2424 * proc-service.c: Update.
2425 * procfs.c: Update.
2426 * python/py-inferior.c: Update.
2427 * python/py-infthread.c: Update.
2428 * ravenscar-thread.c: Update.
2429 * record.c: Update.
2430 * remote-sim.c: Update.
2431 * remote.c: Update.
2432 * rs6000-nat.c: Update.
2433 * s390-linux-nat.c: Update.
2434 * sh-nbsd-nat.c: Update.
2435 * sol-thread.c: Update.
2436 * sparc-nat.c: Update.
2437 * sparc64-tdep.c: Update.
2438 * spu-linux-nat.c: Update.
2439 * spu-tdep.c: Update.
2440 * target-debug.h: Update.
2441 * target.c: Update.
2442 * thread.c: Update.
2443 * tid-parse.c: Update.
2444 * tracefile-tfile.c: Update.
2445 * vax-bsd-nat.c: Update.
2446 * windows-nat.c: Update.
2447 * x86-linux-nat.c: Update.
2448 * x86-nat.c: Update.
2449
2450 2018-07-03 Tom Tromey <tom@tromey.com>
2451
2452 * common/ptid.c (pid_to_ptid): Remove.
2453 * common/ptid.h (pid_to_ptid): Don't declare.
2454 * aix-thread.c: Update.
2455 * arm-linux-nat.c: Update.
2456 * common/ptid.c: Update.
2457 * common/ptid.h: Update.
2458 * corelow.c: Update.
2459 * ctf.c: Update.
2460 * darwin-nat.c: Update.
2461 * fbsd-nat.c: Update.
2462 * fork-child.c: Update.
2463 * gnu-nat.c: Update.
2464 * go32-nat.c: Update.
2465 * inf-ptrace.c: Update.
2466 * infcmd.c: Update.
2467 * inferior.c: Update.
2468 * infrun.c: Update.
2469 * linux-fork.c: Update.
2470 * linux-nat.c: Update.
2471 * nat/aarch64-linux-hw-point.c: Update.
2472 * nat/fork-inferior.c: Update.
2473 * nat/x86-linux-dregs.c: Update.
2474 * nto-procfs.c: Update.
2475 * obsd-nat.c: Update.
2476 * procfs.c: Update.
2477 * progspace.c: Update.
2478 * remote.c: Update.
2479 * rs6000-nat.c: Update.
2480 * s390-linux-nat.c: Update.
2481 * sol-thread.c: Update.
2482 * spu-linux-nat.c: Update.
2483 * target.c: Update.
2484 * top.c: Update.
2485 * tracefile-tfile.c: Update.
2486 * windows-nat.c: Update.
2487
2488 2018-07-03 Tom Tromey <tom@tromey.com>
2489
2490 * common/ptid.h (ptid_build): Don't declare.
2491 * common/ptid.c (ptid_build): Remove.
2492 * aix-thread.c: Update.
2493 * bsd-kvm.c: Update.
2494 * bsd-uthread.c: Update.
2495 * common/agent.c: Update.
2496 * common/ptid.c: Update.
2497 * common/ptid.h: Update.
2498 * corelow.c: Update.
2499 * darwin-nat.c: Update.
2500 * fbsd-nat.c: Update.
2501 * gnu-nat.c: Update.
2502 * linux-fork.c: Update.
2503 * linux-nat.c: Update.
2504 * linux-thread-db.c: Update.
2505 * nat/linux-osdata.c: Update.
2506 * nat/linux-procfs.c: Update.
2507 * nto-procfs.c: Update.
2508 * obsd-nat.c: Update.
2509 * proc-service.c: Update.
2510 * procfs.c: Update.
2511 * ravenscar-thread.c: Update.
2512 * remote-sim.c: Update.
2513 * remote.c: Update.
2514 * sol-thread.c: Update.
2515 * target.c: Update.
2516 * windows-nat.c: Update.
2517
2518 2018-07-03 Tom Tromey <tom@tromey.com>
2519
2520 * infrun.c (follow_exec): Use exit_inferior_silent.
2521 * inferior.c (exit_inferior_num_silent): Remove.
2522 * inferior.h (exit_inferior_num_silent): Don't declare.
2523
2524 2018-07-03 Tom Tromey <tom@tromey.com>
2525
2526 PR cli/23340:
2527 * darwin-nat.c (darwin_attach_pid): Reset inferior and
2528 inferior_ptid on error.
2529
2530 2018-07-02 Maciej W. Rozycki <macro@mips.com>
2531 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 PR tdep/8282
2534 * disasm.h (gdb_disassembler): Add
2535 `m_disassembler_options_holder'. member
2536 * disasm.c (get_all_disassembler_options): New function.
2537 (gdb_disassembler::gdb_disassembler): Use it.
2538 (gdb_buffered_insn_length_init_dis): Likewise.
2539 (gdb_buffered_insn_length): Adjust accordingly.
2540 (set_disassembler_options): Handle options with arguments.
2541 (show_disassembler_options_sfunc): Likewise. Add a leading new
2542 line if showing options with descriptions.
2543 (disassembler_options_completer): Adapt to using the
2544 `disasm_options_and_args_t' structure.
2545 * mips-tdep.c (mips_disassembler_options): New variable.
2546 (mips_disassembler_options_o32): Likewise.
2547 (mips_disassembler_options_n32): Likewise.
2548 (mips_disassembler_options_n64): Likewise.
2549 (gdb_print_insn_mips): Don't set `disassembler_options'.
2550 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
2551 functions.
2552 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
2553 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
2554 `gdbarch_disassembler_options_implicit' and
2555 `gdbarch_valid_disassembler_options'.
2556 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
2557 `disasm_options_and_args_t' structure.
2558 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
2559 method.
2560 (valid_disassembler_options): Switch from `disasm_options_t' to
2561 the `disasm_options_and_args_t' structure.
2562 * NEWS: Document `set disassembler-options' support for the MIPS
2563 target.
2564 * gdbarch.h: Regenerate.
2565 * gdbarch.c: Regenerate.
2566
2567 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
2568
2569 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
2570
2571 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2572
2573 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
2574 parameter in call to amd64_target_description.
2575 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
2576 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
2577 (amd64fbsd_init_abi): Likewise.
2578 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
2579 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
2580 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
2581 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
2582
2583 2018-06-29 Pedro Alves <palves@redhat.com>
2584
2585 * gdb/amd64-tdep.h (amd64_create_target_description): Add
2586 "segments" parameter.
2587 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
2588 (_initialize_amd64_tdep): Update call to
2589 amd64_create_target_description.
2590 (amd64_target_description): Add "segments" parameter. Adjust
2591 the implementation to use it.
2592 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
2593 call to amd64_create_target_description.
2594 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
2595 * gdb/arch/amd64.h (amd64_create_target_description): Add
2596 "segments" register.
2597 * gdb/arch/amd64.c (amd64_create_target_description): Add
2598 "segments" parameter. Call create_feature_i386_64bit_segments
2599 only if SEGMENTS is true.
2600 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
2601 call to amd64_create_target_description.
2602
2603 2018-06-29 Pedro Alves <palves@redhat.com>
2604
2605 * thread.c (thread_target_id_str): New, factored out from ...
2606 (print_thread_info_1): ... here. Use it to compute the max
2607 "Target Id" column width.
2608
2609 2018-06-29 Pedro Alves <palves@redhat.com>
2610
2611 * remote.c (remote_target::extra_thread_info): Delete
2612 'display_buf' and 'n' locals. from the cache, regardless of
2613 packet mechanims is in use. Use cache for qThreadExtra and qP
2614 methods too.
2615
2616 2018-06-29 Pedro Alves <palves@redhat.com>
2617
2618 * blockframe.c (find_pc_sect_containing_function): New function.
2619 * breakpoint.c (print_breakpoint_location): Don't call
2620 find_pc_sect_function.
2621 * linespec.c (create_sals_line_offset): Record the location's
2622 symbol in the sal.
2623 * linespec.c (convert_address_location_to_sals): Fill in sal's
2624 symbol with find_pc_sect_containing_function.
2625 * symtab.c (find_function_start_sal): Rename to ...
2626 (find_function_start_sal_1): ... this.
2627 (find_function_start_sal): Reimplement as wrapper around
2628 find_function_start_sal_1, and use
2629 find_pc_sect_containing_function to fill in the sal's symbol.
2630 (find_function_start_sal(symbol*, bool)): Adjust.
2631 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
2632 comments.
2633 (find_pc_sect_containing_function): Declare.
2634
2635 2018-06-29 Pedro Alves <palves@redhat.com>
2636
2637 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
2638 true if the the location has no symbol.
2639
2640 2018-06-28 Tom Tromey <tom@tromey.com>
2641
2642 * NEWS: Mention --enable-codesign.
2643 * silent-rules.mk (ECHO_SIGN): New variable.
2644 * configure.ac: Add --enable-codesign.
2645 * configure: Rebuild.
2646 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
2647 (gdb$(EXEEXT)): Optionally invoke codesign.
2648
2649 2018-06-28 Pedro Alves <palves@redhat.com>
2650
2651 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
2652 comments.
2653 (switch_to_thread_no_regs): Adjust comment.
2654 * infcmd.c (stop_pc): Delete.
2655 (post_create_inferior, info_program_command): Replace references
2656 to stop_pc with references to thread_info->suspend.stop_pc.
2657 * inferior.h (stop_pc): Delete declaration.
2658 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
2659 (handle_inferior_event_1, handle_signal_stop)
2660 (process_event_stop_test, keep_going_stepped_thread)
2661 (handle_step_into_function, handle_step_into_function_backward)
2662 (print_stop_location): Replace references to stop_pc with
2663 references to thread_info->suspend.stop_pc.
2664 (struct infcall_suspend_state) <stop_pc>: Delete field.
2665 (save_infcall_suspend_state, restore_infcall_suspend_state):
2666 Remove references to inf_stat->stop_pc.
2667 * linux-fork.c (fork_load_infrun_state): Likewise.
2668 * record-btrace.c (record_btrace_set_replay): Likewise.
2669 * record-full.c (record_full_goto_entry): Likewise.
2670 * remote.c (print_one_stopped_thread): Likewise.
2671 * target.c (target_resume): Extend comment.
2672 * thread.c (set_executing_thread): New.
2673 (set_executing): Use it.
2674 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
2675 Remove references to stop_pc.
2676
2677 2018-06-28 Pedro Alves <palves@redhat.com>
2678
2679 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
2680 Moving fetching stop_pc until after ecs->event_thread is refreshed.
2681
2682 2018-06-28 Tom Tromey <tom@tromey.com>
2683
2684 * coffread.c (coff_symfile_finish): Update.
2685 * xcoffread.c (xcoff_symfile_finish): Update.
2686 * elfread.c (elf_symfile_finish): Update.
2687 * symfile.h (dwarf2_free_objfile): Don't declare.
2688 * dwarf2read.c (_initialize_dwarf2_read): Use
2689 register_objfile_data_with_cleanup.
2690 (dwarf2_free_objfile): Now static. Change signature.
2691
2692 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2693
2694 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
2695 option "-o" to add-symbol-file-load to add an offset to each
2696 section's load address.
2697 * symfile.c (set_objfile_default_section_offset): New function.
2698
2699 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2700
2701 * symfile.c (add_symbol_file_command): Make sure that sections
2702 with the same name are sorted in the same order.
2703
2704 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2705
2706 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
2707 require the second argument. If omitted, load sections at the
2708 addresses specified in the file.
2709
2710 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2711
2712 * symfile.c (symbol_file_command, symbol_file_add_main_1)
2713 (_initialize_symfile): Add option "-o" to symbol-file to add an
2714 offset to each section of the symbol file.
2715
2716 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
2717
2718 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
2719
2720 2018-06-27 Tom Tromey <tom@tromey.com>
2721
2722 * stack.c (_initialize_stack): Update "func" help text.
2723
2724 2018-06-27 Tom Tromey <tom@tromey.com>
2725
2726 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
2727 std::vector.
2728 (unwind_infopy_str, pyuw_create_unwind_info)
2729 (unwind_infopy_add_saved_register, pyuw_sniffer)
2730 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
2731 Update.
2732 (struct saved_reg): Add constructor.
2733 <value>: Now a gdbpy_ref<>.
2734
2735 2018-06-27 Tom Tromey <tom@tromey.com>
2736
2737 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
2738
2739 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2740
2741 * gdb-gdb.py.in: Format using autopep8.
2742
2743 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2744
2745 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
2746 (type_lookup_function): Recognize CORE_ADDR values.
2747
2748 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2749
2750 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
2751 print tag_name.
2752
2753 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2754
2755 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
2756 <__lt__>: Add.
2757
2758 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2759
2760 * gdb-gdb.py: Move to...
2761 * gdb-gdb.py.in: ... here.
2762 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
2763 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
2764 dependencies.
2765 (distclean): Remove gdb-gdb.py when cleaning.
2766 (gdb-gdb.py, gdb-gdb.gdb): New rules.
2767 * configure: Re-generate.
2768
2769 2018-06-27 Pedro Alves <palves@redhat.com>
2770
2771 * proc-service.c (get_ps_regcache): New.
2772 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2773 (ps_lsetfpregs): Use it.
2774
2775 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
2776
2777 PR gdb/21695
2778 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
2779 (dwarf_decode_lines_1): Adjust.
2780
2781 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
2782
2783 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
2784 override.
2785 <info_proc>: Likewise.
2786
2787 2018-06-26 Joel Brobecker <brobecker@adacore.com>
2788
2789 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
2790 to windows_fetch_one_register, and only handle the case of
2791 fetching one register. Move the code that reloads the context
2792 and iterates over all registers if R is negative to...
2793 (windows_nat_target::fetch_registers): ... here.
2794 (do_windows_store_inferior_registers): Rename to
2795 windows_store_one_register, and only handle the case of storing
2796 one register. Move the code that handles the case where r is
2797 negative to...
2798 (windows_nat_target::store_registers) ... here.
2799
2800 2018-06-26 Tom Tromey <tom@tromey.com>
2801
2802 PR rust/22574:
2803 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
2804 * rust-lang.c (rust_print_struct_def): Add podata parameter.
2805 Update.
2806 (rust_internal_print_type): Add podata parameter.
2807 (rust_print_type): Update.
2808
2809 2018-06-26 Tom Tromey <tom@tromey.com>
2810
2811 * typeprint.h (struct print_offset_data) <update, finish,
2812 maybe_print_hole>: New methods.
2813 <indentation>: New constant.
2814 * typeprint.c (print_offset_data::indentation): Define.
2815 (print_offset_data::maybe_print_hole, print_offset_data::update)
2816 (print_offset_data::finish): Move from c-typeprint.c and rename.
2817 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
2818 (print_spaces_filtered_with_print_options): Update.
2819 (c_print_type_union_field_offset, maybe_print_hole)
2820 (c_print_type_struct_field_offset): Move to typeprint.c and
2821 rename.
2822 (c_type_print_base_struct_union): Update.
2823
2824 2018-06-25 Pedro Alves <palves@redhat.com>
2825
2826 * gdbthread.h (thread_info_ref, delete_thread)
2827 (delete_thread_silent, first_thread_of_inferior)
2828 (any_thread_of_inferior, switch_to_thread)
2829 (enable_thread_stack_temporaries)
2830 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2831 (get_last_thread_stack_temporary)
2832 (value_in_thread_stack_temporaries, can_access_registers_thread):
2833 Spell out "struct thread_info" instead of just "thread_info".
2834 * inferior.h (notice_new_inferior): Likewise.
2835
2836 2018-06-25 Pedro Alves <palves@redhat.com>
2837
2838 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2839 pass thread_info pointer to delete_thread.
2840 (windows_nat_target::detach): Pass inferior pointer to
2841 detach_inferior.
2842 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
2843 delete_thread.
2844 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
2845 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
2846 and pass a thread_info pointer to delete_thread.
2847 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
2848 pass thread_info pointer to delete_thread.
2849 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
2850 delete_thread_silent call.
2851 * procfs.c (procfs_target::detach): Pass inferior pointer to
2852 detach_inferior.
2853 (procfs_target::wait): Pass thread_info pointer to delete_thread.
2854 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
2855 delete_thread_silent call.
2856 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
2857 pass thread_info pointer to delete_thread.
2858 (windows_nat_target::detach): Pass inferior pointer to
2859 delete_inferior.
2860
2861 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2862
2863 * regcache.c (readable_regcache::read_part): Fix asserts.
2864 (reg_buffer::raw_collect_part): New function.
2865 (regcache::write_part): Fix asserts.
2866 (reg_buffer::raw_supply_part): New function.
2867 (regcache::transfer_regset_register): New helper function.
2868 (regcache::transfer_regset): Call new functions.
2869 (regcache_supply_regset): Use gdb_byte*.
2870 (regcache::supply_regset): Likewise.
2871 (regcache_collect_regset): Likewise.
2872 (regcache::collect_regset): Likewise.
2873 * regcache.h (reg_buffer::raw_collect_part): New declaration.
2874 (reg_buffer::raw_supply_part): Likewise.
2875 (regcache::transfer_regset_register): Likewise.
2876 (regcache::transfer_regset): Use gdb_byte*.
2877
2878 2018-06-22 Alan Hayward <alan.hayward@arm.com>
2879
2880 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
2881
2882 2018-06-21 Pedro Alves <palves@redhat.com>
2883
2884 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
2885 instead of a ptid_t. All callers adjusted.
2886 * ada-tasks.c (ada_get_task_number): Likewise. All callers
2887 adjusted.
2888 (print_ada_task_info, display_current_task_id, task_command_1):
2889 Adjust.
2890 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
2891 inferior_thread.
2892 (breakpoint_kind): Adjust.
2893 (remove_breakpoints_pid): Rename to ...
2894 (remove_breakpoints_inf): ... this. Adjust to take an inferior
2895 pointer. All callers adjusted.
2896 (bpstat_clear_actions): Use inferior_thread.
2897 (get_bpstat_thread): New.
2898 (bpstat_do_actions): Use it.
2899 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
2900 to take a thread_info pointer. All callers adjusted.
2901 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
2902 (breakpoint_re_set_thread): Use inferior_thread.
2903 * breakpoint.h (struct inferior): Forward declare.
2904 (bpstat_stop_status): Update.
2905 (remove_breakpoints_pid): Delete.
2906 (remove_breakpoints_inf): New.
2907 * bsd-uthread.c (bsd_uthread_target::wait)
2908 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
2909 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
2910 (maint_btrace_packet_history_cmd)
2911 (maint_btrace_clear_packet_history_cmd): Adjust.
2912 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
2913 inferior_thread.
2914 * cli/cli-interp.c: Include "inferior.h".
2915 * common/refcounted-object.h (struct
2916 refcounted_object_ref_policy): New.
2917 * compile/compile-object-load.c: Include gdbthread.h.
2918 (store_regs): Use inferior_thread.
2919 * corelow.c (core_target::close): Use current_inferior.
2920 (core_target_open): Adjust to use first_thread_of_inferior and use
2921 the current inferior.
2922 * ctf.c (ctf_target::close): Adjust to use current_inferior.
2923 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
2924 <thread>: ... this new field. All references adjusted.
2925 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
2926 Take a thread_info pointer instead of a ptid_t.
2927 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
2928 (dummy_frame_discard, register_dummy_frame_dtor): Take a
2929 thread_info pointer instead of a ptid_t.
2930 * elfread.c: Include "inferior.h".
2931 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
2932 Use inferior_thread.
2933 * eval.c (evaluate_subexp): Likewise.
2934 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
2935 inferior_thread.
2936 * gdb_proc_service.h (struct thread_info): Forward declare.
2937 (struct ps_prochandle) <ptid>: Delete, replaced by ...
2938 <thread>: ... this new field. All references adjusted.
2939 * gdbarch.h, gdbarch.c: Regenerate.
2940 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
2941 'thread' parameter. All implementations and callers adjusted.
2942 * gdbthread.h (thread_info) <set_running>: New method.
2943 (delete_thread, delete_thread_silent): Take a thread_info pointer
2944 instead of a ptid.
2945 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
2946 (first_thread_of_process): Delete, replaced by ...
2947 (first_thread_of_inferior): ... this new function. All callers
2948 adjusted.
2949 (any_live_thread_of_process): Delete, replaced by ...
2950 (any_live_thread_of_inferior): ... this new function. All callers
2951 adjusted.
2952 (switch_to_thread, switch_to_no_thread): Declare.
2953 (is_executing): Delete.
2954 (enable_thread_stack_temporaries): Update comment.
2955 <enable_thread_stack_temporaries>: Take a thread_info pointer
2956 instead of a ptid_t. Incref the thread.
2957 <~enable_thread_stack_temporaries>: Decref the thread.
2958 <m_ptid>: Delete
2959 <m_thr>: New.
2960 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
2961 (get_last_thread_stack_temporary)
2962 (value_in_thread_stack_temporaries, can_access_registers_thread):
2963 Take a thread_info pointer instead of a ptid_t. All callers
2964 adjusted.
2965 * infcall.c (get_call_return_value): Use inferior_thread.
2966 (run_inferior_call): Work with thread pointers instead of ptid_t.
2967 (call_function_by_hand_dummy): Work with thread pointers instead
2968 of ptid_t. Use thread_info_ref.
2969 * infcmd.c (proceed_thread_callback): Access thread's state
2970 directly.
2971 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
2972 access thread's state directly.
2973 (continue_command): Use inferior_thread.
2974 (info_program_command): Use find_thread_ptid and access thread
2975 state directly.
2976 (proceed_after_attach_callback): Use thread state directly.
2977 (notice_new_inferior): Take a thread_info pointer instead of a
2978 ptid_t. All callers adjusted.
2979 (exit_inferior): Take an inferior pointer instead of a pid. All
2980 callers adjusted.
2981 (exit_inferior_silent): New.
2982 (detach_inferior): Delete.
2983 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
2984 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
2985 (detach_inferior_command, kill_inferior_command): Use
2986 find_inferior_id instead of valid_gdb_inferior_id and
2987 gdb_inferior_id_to_pid.
2988 (inferior_command): Use inferior and thread pointers.
2989 * inferior.h (struct thread_info): Forward declare.
2990 (notice_new_inferior): Take a thread_info pointer instead of a
2991 ptid_t. All callers adjusted.
2992 (detach_inferior): Delete declaration.
2993 (exit_inferior, exit_inferior_silent): Take an inferior pointer
2994 instead of a pid. All callers adjusted.
2995 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2996 (valid_gdb_inferior_id): Delete.
2997 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
2998 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
2999 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3000 ...
3001 <inf>: ... this new field.
3002 <step_ptid>: Delete, replaced by ...
3003 <step_thread>: ... this new field.
3004 (get_displaced_stepping_state): Take an inferior pointer instead
3005 of a pid. All callers adjusted.
3006 (displaced_step_in_progress_any_inferior): Adjust.
3007 (displaced_step_in_progress_thread): Take a thread pointer instead
3008 of a ptid_t. All callers adjusted.
3009 (displaced_step_in_progress, add_displaced_stepping_state): Take
3010 an inferior pointer instead of a pid. All callers adjusted.
3011 (get_displaced_step_closure_by_addr): Adjust.
3012 (remove_displaced_stepping_state): Take an inferior pointer
3013 instead of a pid. All callers adjusted.
3014 (displaced_step_prepare_throw, displaced_step_prepare)
3015 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3016 All callers adjusted.
3017 (start_step_over): Adjust.
3018 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3019 displaced step queue.
3020 (do_target_resume): Adjust.
3021 (fetch_inferior_event): Use inferior_thread.
3022 (context_switch, get_inferior_stop_soon): Take an
3023 execution_control_state pointer instead of a ptid_t. All callers
3024 adjusted.
3025 (switch_to_thread_cleanup): Delete.
3026 (stop_all_threads): Use scoped_restore_current_thread.
3027 * inline-frame.c: Include "gdbthread.h".
3028 (inline_state) <inline_state>: Take a thread pointer instead of a
3029 ptid_t. All callers adjusted.
3030 <ptid>: Delete, replaced by ...
3031 <thread>: ... this new field.
3032 (find_inline_frame_state): Take a thread pointer instead of a
3033 ptid_t. All callers adjusted.
3034 (skip_inline_frames, step_into_inline_frame)
3035 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3036 pointer instead of a ptid_t. All callers adjusted.
3037 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3038 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3039 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3040 pointers directly.
3041 * linux-nat.c (get_detach_signal): Likewise.
3042 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3043 (thread_db_notice_clone): Adjust.
3044 (thread_db_find_new_threads_silently)
3045 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3046 a thread pointer instead of a ptid_t. All callers adjusted.
3047 * mi/mi-cmd-var.c: Include "inferior.h".
3048 (mi_cmd_var_update_iter): Update to use thread pointers.
3049 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3050 inferior directly.
3051 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3052 out to ...
3053 (mi_output_running): ... this new function.
3054 (mi_on_resume_1): Adjust to use it.
3055 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3056 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3057 directly.
3058 (interrupt_thread_callback): : Adjust to use thread and inferior
3059 pointers.
3060 * proc-service.c: Include "gdbthread.h".
3061 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3062 * progspace-and-thread.c: Include "inferior.h".
3063 * progspace.c: Include "inferior.h".
3064 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3065 hold a reference to an inferior_object.
3066 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3067 inferior_thread.
3068 * python/py-inferior.c (struct inferior_object): Give the type a
3069 tag name instead of a typedef.
3070 (python_on_normal_stop): No need to check if the current thread is
3071 listed.
3072 (inferior_to_inferior_object): Change return type to
3073 inferior_object. All callers adjusted.
3074 (find_thread_object): Delete, bits factored out to ...
3075 (thread_to_thread_object): ... this new function.
3076 * python/py-infthread.c (create_thread_object): Use
3077 inferior_to_inferior_object.
3078 (thpy_is_stopped): Use thread pointer directly.
3079 (gdbpy_selected_thread): Use inferior_thread.
3080 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3081 field, replaced with ...
3082 <thread>: ... this new field. All users adjusted.
3083 (btpy_insn_or_gap_new): Drop const.
3084 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3085 callers adjusted.
3086 * python/py-record.c: Include "gdbthread.h".
3087 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3088 a ptid_t. All callers adjusted.
3089 (gdbpy_current_recording): Use inferior_thread.
3090 * python/py-record.h (recpy_record_object) <ptid>: Delete
3091 field, replaced with ...
3092 <thread>: ... this new field. All users adjusted.
3093 (recpy_element_object) <ptid>: Delete
3094 field, replaced with ...
3095 <thread>: ... this new field. All users adjusted.
3096 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3097 a ptid_t. All callers adjusted.
3098 * python/py-threadevent.c: Include "gdbthread.h".
3099 (get_event_thread): Use thread_to_thread_object.
3100 * python/python-internal.h (struct inferior_object): Forward
3101 declare.
3102 (find_thread_object, find_inferior_object): Delete declarations.
3103 (thread_to_thread_object, inferior_to_inferior_object): New
3104 declarations.
3105 * record-btrace.c: Include "inferior.h".
3106 (require_btrace_thread): Use inferior_thread.
3107 (record_btrace_frame_sniffer)
3108 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3109 (get_thread_current_frame): Use scoped_restore_current_thread and
3110 switch_to_thread.
3111 (get_thread_current_frame): Use thread pointer directly.
3112 (record_btrace_replay_at_breakpoint): Use thread's inferior
3113 pointer directly.
3114 * record-full.c: Include "inferior.h".
3115 * regcache.c: Include "gdbthread.h".
3116 (get_thread_arch_regcache): Use the inferior's address space
3117 directly.
3118 (get_thread_regcache, registers_changed_thread): New.
3119 * regcache.h (get_thread_regcache(thread_info *thread)): New
3120 overload.
3121 (registers_changed_thread): New.
3122 (remote_target) <remote_detach_1>: Swap order of parameters.
3123 (remote_add_thread): <remote_add_thread>: Return the new thread.
3124 (get_remote_thread_info(ptid_t)): New overload.
3125 (remote_target::remote_notice_new_inferior): Use thread pointers
3126 directly.
3127 (remote_target::process_initial_stop_replies): Use
3128 thread_info::set_running.
3129 (remote_target::remote_detach_1, remote_target::detach)
3130 (extended_remote_target::detach): Adjust.
3131 * stack.c (frame_show_address): Use inferior_thread.
3132 * target-debug.h (target_debug_print_thread_info_pp): New.
3133 * target-delegates.c: Regenerate.
3134 * target.c (default_thread_address_space): Delete.
3135 (memory_xfer_partial_1): Use current_inferior.
3136 (target_detach): Use current_inferior.
3137 (target_thread_address_space): Delete.
3138 (generic_mourn_inferior): Use current_inferior.
3139 * target.h (struct target_ops) <thread_address_space>: Delete.
3140 (target_thread_address_space): Delete.
3141 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3142 pointers directly.
3143 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3144 thread pointer instead of a ptid_t. Adjust all callers.
3145 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3146 (first_thread_of_process): Delete, replaced by ...
3147 (first_thread_of_inferior): ... this new function. All callers
3148 adjusted.
3149 (any_thread_of_process): Rename to ...
3150 (any_thread_of_inferior): ... this, and take an inferior pointer.
3151 (any_live_thread_of_process): Rename to ...
3152 (any_live_thread_of_inferior): ... this, and take an inferior
3153 pointer.
3154 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3155 (value_in_thread_stack_temporaries)
3156 (get_last_thread_stack_temporary): Take a thread pointer instead
3157 of a ptid_t. Adjust all callers.
3158 (thread_info::set_running): New.
3159 (validate_registers_access): Use inferior_thread.
3160 (can_access_registers_ptid): Rename to ...
3161 (can_access_registers_thread): ... this, and take a thread
3162 pointer.
3163 (print_thread_info_1): Adjust to compare thread pointers instead
3164 of ptids.
3165 (switch_to_no_thread, switch_to_thread): Make extern.
3166 (scoped_restore_current_thread::~scoped_restore_current_thread):
3167 Use m_thread pointer directly.
3168 (scoped_restore_current_thread::scoped_restore_current_thread):
3169 Use inferior_thread.
3170 (thread_command): Use thread pointer directly.
3171 (thread_num_make_value_helper): Use inferior_thread.
3172 * top.c (execute_command): Use inferior_thread.
3173 * tui/tui-interp.c: Include "inferior.h".
3174 * varobj.c (varobj_create): Use inferior_thread.
3175 (value_of_root_1): Use find_thread_global_id instead of
3176 global_thread_id_to_ptid.
3177
3178 2018-06-21 Alan Hayward <alan.hayward@arm.com>
3179
3180 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3181 possible.
3182 (regcache::write_part): Likewise.
3183 (readable_regcache::cooked_read_part): Update comment.
3184 (readable_regcache::cooked_write_part): Likewise.
3185 * regcache.h: (readable_regcache::read_part): Likewise.
3186 (regcache::write_part): Likewise.
3187
3188 2018-06-21 Richard Bunt <richard.bunt@arm.com>
3189 Dirk Schubert <dirk.schubert@arm.com>
3190
3191 * aarch64-linux-nat.c (post_attach): New.
3192 (aarch64_linux_nat_target::post_attach): Override post_attach to
3193 record the number of hardware debug registers.
3194
3195 2018-06-20 Tom Tromey <tom@tromey.com>
3196
3197 * python/py-param.c (add_setshow_generic): Make parameters const.
3198 (parmpy_init): Update.
3199
3200 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * regcache.h (regcache_cooked_read_ftype): Rename to...
3203 (register_read_ftype): ...this, change type to function_view.
3204 (class reg_buffer) <save>: Remove src parameter.
3205 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3206 parameter non-const in first overload. Remove src parameter in
3207 second overload.
3208 * regcache.c (do_cooked_read): Remove.
3209 (readonly_detached_regcache::readonly_detached_regcache): Make
3210 parameter non-const, adjust call to other constructor.
3211 (reg_buffer::save): Remove src parameter.
3212 * frame.c (do_frame_register_read): Remove.
3213 (frame_save_as_regcache): Use lambda function.
3214 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3215 parameter to ppu2spu_data *.
3216 (ppu2spu_sniffer): Use lambda function.
3217
3218 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * record-full.c (record_full_target::insert_breakpoint): Remove
3221 "struct" keyword, add const.
3222
3223 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3226 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3227 * configure.ac: Remove AC_PREREQ, add missing quoting.
3228 * gnulib/configure.ac: Modernize usage of
3229 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3230 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3231 (AUTOMAKE_VERSION): Bump to 1.15.1.
3232 * configure: Re-generate.
3233 * config.in: Re-generate.
3234 * aclocal.m4: Re-generate.
3235 * gnulib/aclocal.m4: Re-generate.
3236 * gnulib/config.in: Re-generate.
3237 * gnulib/configure: Re-generate.
3238 * gnulib/import/Makefile.in: Re-generate.
3239
3240 2018-06-19 Pedro Alves <palves@redhat.com>
3241
3242 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3243 (lookup_minimal_symbol_by_pc_section): ... here with
3244 gdb_assert_not_reached added.
3245
3246 2018-06-19 Pedro Alves <palves@redhat.com>
3247
3248 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3249 parameter with a block parameter. Compare location's block symbol
3250 with the frame's block instead of addresses.
3251 (skip_inline_frames): Pass the current block instead of the
3252 frame's address. Break out as soon as we determine the frame
3253 should not be skipped.
3254
3255 2018-06-18 Tom Tromey <tom@tromey.com>
3256
3257 * solib-aix.c (solib_aix_get_section_offsets): Return
3258 unique_xmalloc_ptr.
3259 (solib_aix_solib_create_inferior_hook): Update.
3260
3261 2018-06-18 Tom Tromey <tom@tromey.com>
3262
3263 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3264
3265 2018-06-18 Tom Tromey <tom@tromey.com>
3266
3267 * solib-frv.c (frv_relocate_main_executable): Use
3268 unique_xmalloc_ptr.
3269 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3270 unique_xmalloc_ptr.
3271
3272 2018-06-18 Tom Tromey <tom@tromey.com>
3273
3274 * objfiles.h (inhibit_section_map_updates): Update.
3275 (resume_section_map_updates, resume_section_map_updates_cleanup):
3276 Remove.
3277 * solib-svr4.c (svr4_handle_solib_event): Update.
3278 * objfiles.c (inhibit_section_map_updates): Return
3279 scoped_restore_tmpl<int>.
3280 (resume_section_map_updates, resume_section_map_updates_cleanup):
3281 Remove.
3282
3283 2018-06-18 Tom Tromey <tom@tromey.com>
3284
3285 * valprint.h (read_string): Update.
3286 * valprint.c (read_string): Change type of "buffer".
3287 (val_print_string): Update.
3288 * python/py-value.c (valpy_string): Update.
3289 * language.h (struct language_defn) <la_get_string>: Change
3290 type of "buffer".
3291 (default_get_string, c_get_string): Update.
3292 * language.c (default_get_string): Change type of "buffer".
3293 * guile/scm-value.c (gdbscm_value_to_string): Update.
3294 * c-lang.c (c_get_string): Change type of "buffer".
3295
3296 2018-06-18 Tom Tromey <tom@tromey.com>
3297
3298 * ser-mingw.c (struct pipe_state_destroyer): New.
3299 (pipe_state_up): New typedef.
3300 (cleanup_pipe_state): Remove.
3301 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3302
3303 2018-06-18 Tom Tromey <tom@tromey.com>
3304
3305 * rust-lang.h (rust_yyerror): Don't declare.
3306 * rust-lang.c (rust_language_defn): Update.
3307 * rust-exp.y (yyerror): Now static.
3308 * parse.c (parse_exp_in_context_1): Update.
3309 * p-lang.h (p_yyerror): Don't declare.
3310 * p-lang.c (p_language_defn): Update.
3311 * p-exp.y (yyerror): Now static.
3312 * opencl-lang.c (opencl_language_defn): Update.
3313 * objc-lang.c (objc_language_defn): Update.
3314 * m2-lang.h (m2_yyerror): Don't declare.
3315 * m2-lang.c (m2_language_defn): Update.
3316 * m2-exp.y (yyerror): Now static.
3317 * language.h (struct language_defn) <la_error>: Remove.
3318 * language.c (unk_lang_error): Remove.
3319 (unknown_language_defn, auto_language_defn): Remove.
3320 * go-lang.h (go_yyerror): Don't declare.
3321 * go-lang.c (go_language_defn): Update.
3322 * go-exp.y (yyerror): Now static.
3323 * f-lang.h (f_yyerror): Don't declare.
3324 * f-lang.c (f_language_defn): Update.
3325 * f-exp.y (yyerror): Now static.
3326 * d-lang.h (d_yyerror): Don't declare.
3327 * d-lang.c (d_language_defn): Update.
3328 * d-exp.y (yyerror): Now static.
3329 * c-lang.h (c_yyerror): Don't declare.
3330 * c-lang.c (c_language_defn, cplus_language_defn)
3331 (asm_language_defn, minimal_language_defn): Update.
3332 * c-exp.y (yyerror): Now static.
3333 * ada-lang.h (ada_yyerror): Don't declare.
3334 * ada-lang.c (ada_language_defn): Update.
3335 * ada-exp.y (yyerror): Now static.
3336
3337 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3338
3339 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3340 (store_sveregs_to_thread): Likewise.
3341 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3342 (aarch64_linux_store_inferior_registers): Likewise.
3343 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3344 function.
3345 (aarch64_sve_regs_copy_to_regcache): Likewise.
3346 (aarch64_sve_regs_copy_from_regcache): Likewise.
3347 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3348 declaration.
3349 (aarch64_sve_regs_copy_to_regcache): Likewise.
3350 (aarch64_sve_regs_copy_from_regcache): Likewise.
3351 (sve_context): Structure from Linux headers.
3352 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3353 (SVE_SIG_ZREG_SIZE): Likewise.
3354 (SVE_SIG_PREG_SIZE): Likewise.
3355 (SVE_SIG_FFR_SIZE): Likewise.
3356 (SVE_SIG_REGS_OFFSET): Likewise.
3357 (SVE_SIG_ZREGS_OFFSET): Likewise.
3358 (SVE_SIG_ZREG_OFFSET): Likewise.
3359 (SVE_SIG_ZREGS_SIZE): Likewise.
3360 (SVE_SIG_PREGS_OFFSET): Likewise.
3361 (SVE_SIG_PREG_OFFSET): Likewise.
3362 (SVE_SIG_PREGS_SIZE): Likewise.
3363 (SVE_SIG_FFR_OFFSET): Likewise.
3364 (SVE_SIG_REGS_SIZE): Likewise.
3365 (SVE_SIG_CONTEXT_SIZE): Likewise.
3366 (SVE_PT_REGS_MASK): Likewise.
3367 (SVE_PT_REGS_FPSIMD): Likewise.
3368 (SVE_PT_REGS_SVE): Likewise.
3369 (SVE_PT_VL_INHERIT): Likewise.
3370 (SVE_PT_VL_ONEXEC): Likewise.
3371 (SVE_PT_REGS_OFFSET): Likewise.
3372 (SVE_PT_FPSIMD_OFFSET): Likewise.
3373 (SVE_PT_FPSIMD_SIZE): Likewise.
3374 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3375 (SVE_PT_SVE_PREG_SIZE): Likewise.
3376 (SVE_PT_SVE_FFR_SIZE): Likewise.
3377 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3378 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3379 (__SVE_SIG_TO_PT): Likewise.
3380 (SVE_PT_SVE_OFFSET): Likewise.
3381 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3382 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3383 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3384 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3385 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3386 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3387 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3388 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3389 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3390 (SVE_PT_SVE_SIZE): Likewise.
3391 (SVE_PT_SIZE): Likewise.
3392 (HAS_SVE_STATE): New define.
3393
3394 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3395
3396 * nat/aarch64-sve-linux-sigcontext.h: New file.
3397 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3398 new files.
3399 (SVE_VQ_MIN): Likewise.
3400 (SVE_VQ_MAX): Likewise.
3401 (SVE_VL_MIN): Likewise.
3402 (SVE_VL_MAX): Likewise.
3403 (SVE_NUM_ZREGS): Likewise.
3404 (SVE_NUM_PREGS): Likewise.
3405 (sve_vl_valid): Likewise.
3406 (struct user_sve_header): Likewise.
3407
3408 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3409 Richard Bunt <Richard.Bunt@arm.com>
3410
3411 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3412 was requested by GDB.
3413
3414 2018-06-15 Tom de Vries <tdevries@suse.de>
3415
3416 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3417
3418 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 * gnulib/update-gnulib.sh: Print expected versions of
3421 autoconf/aclocal.
3422
3423 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3424
3425 * arch-utils.c (default_type_align): Use type_length_units.
3426 * gdbtypes.c (type_align): Use type_length_units.
3427
3428 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3429
3430 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3431 of 'define' command.
3432
3433 2018-06-14 Tom de Vries <tdevries@suse.de>
3434
3435 PR cli/22573
3436 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
3437 get_no_prettyformat_print_options.
3438
3439 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
3440
3441 * sparc-nat.h: Include target.h.
3442 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
3443 <fetch_registers>: Remove this argument in function call.
3444 <store_registers>: Remove this argument in function call, remove
3445 extra semicolon.
3446 <low_forget_process>: Call sparc64_forget_process instead of
3447 sparc_forget_process.
3448
3449 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3450
3451 * procfs.c (_initialize_procfs): Use add_inf_child_target.
3452 (procfs_target::make_corefile_notes): Adjust to new
3453 target_read_alloc return type.
3454
3455 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3456 Stephen Roberts <stephen.roberts@arm.com>
3457
3458 PR gdb/22882
3459 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
3460 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
3461 Move should_notify_stop local into more inner scope.
3462
3463 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3464 Stephen Roberts <stephen.roberts@arm.com>
3465
3466 PR gdb/22882
3467 * infrun.c (resume_1): Add call to mark_async_event_handler.
3468
3469 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * infrun.c (do_target_wait): Change old version of $pc printed.
3472
3473 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
3474
3475 * dwarf2read.c (read_index_from_section): Rename to...
3476 (read_gdb_index_from_section): ... this, update all callers.
3477 (dwarf2_read_index): Rename to...
3478 (dwarf2_read_gdb_index): ... this, update all callers.
3479
3480 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
3481
3482 * gdb/hppa-linux-nat.c
3483 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
3484 hppa_linux_nat_target::fetch_registers.
3485
3486 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3487
3488 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
3489 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
3490 (AARCH64_DWARF_SVE_FFR): Likewise.
3491 (AARCH64_DWARF_SVE_P0): Likewise.
3492 (AARCH64_DWARF_SVE_Z0): Likewise.
3493
3494 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3495
3496 * common/common-regcache.h (raw_compare): New function.
3497 * regcache.c (regcache::raw_compare): Likewise.
3498 * regcache.h (regcache::raw_compare): New declaration.
3499
3500 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3501
3502 * common/common-regcache.h (reg_buffer_common): New structure.
3503 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
3504 (reg_buffer::raw_supply): Likewise.
3505 (reg_buffer::raw_supply_integer): Likewise.
3506 (reg_buffer::raw_supply_zeroed): Likewise.
3507 (reg_buffer::raw_collect): Likewise.
3508 (reg_buffer::raw_collect_integer): Likewise.
3509 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
3510 (reg_buffer::raw_supply): Likewise.
3511 (reg_buffer::raw_supply_integer): Likewise.
3512 (reg_buffer::raw_supply_zeroed): Likewise.
3513 (reg_buffer::raw_collect): Likewise.
3514 (reg_buffer::raw_collect_integer): Likewise.
3515
3516 2018-06-10 Tom Tromey <tom@tromey.com>
3517
3518 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
3519 (class remote_state) <stop_reply_queue>: Now std::vector.
3520 (remote_state::~remote_state)
3521 (remote_target::stop_reply_queue_length): Update.
3522 (struct queue_iter_param, remove_child_of_pending_fork)
3523 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
3524 (check_pending_event_prevents_wildcard_vcont_callback)
3525 (remove_stop_reply_for_inferior)
3526 (remove_stop_reply_of_remote_state)
3527 (remote_notif_remove_once_on_match)
3528 (stop_reply_match_ptid_and_ws)
3529 (remote_kill_child_of_pending_fork): Remove.
3530 (remote_target::remove_new_fork_children)
3531 (remote_target::check_pending_events_prevent_wildcard_vcont)
3532 (remote_target::discard_pending_stop_replies)
3533 (remote_target::discard_pending_stop_replies_in_queue)
3534 (remote_target::remote_notif_remove_queued_reply)
3535 (remote_target::queued_stop_reply)
3536 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
3537 (remote_target::wait, remote_target::kill_new_fork_children)
3538 (remote_target::async): Update.
3539
3540 2018-06-10 Tom Tromey <tom@tromey.com>
3541
3542 * record-full.c (record_full_arch_list_cleanups): Remove.
3543 (record_full_message): Use try/catch.
3544 (record_full_wait_cleanups): Remove.
3545 (record_full_wait_1): Use try/catch.
3546 (record_full_restore): Likewise.
3547
3548 2018-06-10 Tom Tromey <tom@tromey.com>
3549
3550 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
3551 declare VEC. Add constructor.
3552 <in_target_beneath>: Now bool.
3553 (record_full_breakpoints): Now a std::vector, static.
3554 (record_full_sync_record_breakpoints)
3555 (record_full_init_record_breakpoints)
3556 (record_full_target::insert_breakpoint)
3557 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
3558
3559 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
3560
3561 * dwarf2read.c (process_cu_includes): Remove struct keyword.
3562 * serial.c (serial_interface_lookup): Remove struct keyword.
3563
3564 2018-06-10 Tom Tromey <tom@tromey.com>
3565
3566 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
3567 method.
3568 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
3569 a method.
3570 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
3571 method.
3572 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
3573 "beneath" as a method.
3574 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
3575 Use "beneath" as a method.
3576
3577 2018-06-10 Tom Tromey <tom@tromey.com>
3578
3579 * tracefile.c (struct trace_file_writer_deleter): New.
3580 <operator()>: Rename from trace_file_writer_xfree.
3581 (trace_file_writer_up): New typedef.
3582 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
3583
3584 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3585
3586 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
3587 <m_registers, m_register_status>: Change type to
3588 std::unique_ptr.
3589 * regcache.c (reg_buffer::reg_buffer): Use new instead of
3590 XCNEWVEC.
3591
3592 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
3593
3594 * common/common-regcache.h (enum register_status): Add
3595 underlying type "signed char".
3596 * regcache.h (reg_buffer) <m_register_status>: Change type to
3597 register_status *.
3598 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
3599 register_status instead of signed char.
3600 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
3601 (reg_buffer::get_register_status): Remove cast.
3602 (readable_regcache::raw_read): Remove cast.
3603 (readable_regcache::cooked_read): Remove cast.
3604
3605 2018-06-09 Tom Tromey <tom@tromey.com>
3606
3607 * source.c (reverse_search_command, forward_search_command): Use
3608 scoped_fd.
3609
3610 2018-06-09 Tom Tromey <tom@tromey.com>
3611
3612 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
3613 (serial_ops_list): Now static, std::vector.
3614 (serial_interface_lookup, serial_add_interface): Update.
3615
3616 2018-06-09 Tom Tromey <tom@tromey.com>
3617
3618 * dwarf2read.c (process_cu_includes): Update.
3619 (process_full_comp_unit): Update.
3620 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
3621 std::vector.
3622
3623 2018-06-08 Paul Koning <paul_koning@dell.com>
3624
3625 PR gdb/23252
3626
3627 * python/python.c (do_start_initialization):
3628 Avoid call to internal Python API.
3629 (init__gdb_module): New function.
3630
3631 2018-06-08 Gary Benson <gbenson@redhat.com>
3632
3633 * linux-thread-db.c (valprint.h): New include.
3634 (struct check_thread_db_info): New structure.
3635 (check_thread_db_on_load, tdb_testinfo): New static globals.
3636 (check_thread_db, check_thread_db_callback): New functions.
3637 (try_thread_db_load_1): Run integrity checks if requested.
3638 (maintenance_check_libthread_db): New function.
3639 (_initialize_thread_db): Register "maint check libthread-db"
3640 and "maint set/show check-libthread-db".
3641 * NEWS: Mention the above new commands.
3642
3643 2018-06-08 Tom Tromey <tom@tromey.com>
3644
3645 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
3646 now a method.
3647
3648 2018-06-08 Tom Tromey <tom@tromey.com>
3649
3650 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
3651
3652 2018-06-08 Tom Tromey <tom@tromey.com>
3653
3654 * common/btrace-common.h (struct btrace_data): Add constructor,
3655 destructor, move assignment operator.
3656 <empty, clear, fini>: New methods.
3657 <format>: Initialize.
3658 (btrace_data_init, btrace_data_fini, btrace_data_clear)
3659 (btrace_data_empty): Don't declare.
3660 * common/btrace-common.c (btrace_data_init): Remove.
3661 (btrace_data::fini): Rename from btrace_data_fini.
3662 (btrace_data::empty): Rename from btrace_data_empty.
3663 (btrace_data::clear): Rename from btrace_data_clear. Return
3664 bool.
3665 * btrace.h (make_cleanup_btrace_data): Don't declare.
3666 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
3667 (parse_xml_btrace): Update.
3668 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
3669 (maint_btrace_clear_packet_history_cmd): Update.
3670
3671 2018-06-07 Pedro Alves <palves@redhat.com>
3672
3673 * target.h (target_ops) <beneath>: Now a method. All references
3674 updated.
3675 (class target_stack): New.
3676 * target.c (g_target_stack): New.
3677 (g_current_top_target): Delete.
3678 (current_top_target): Get the top target out of g_target_stack.
3679 (target_stack::push, target_stack::unpush): New.
3680 (push_target, unpush_target): Reimplement.
3681 (target_is_pushed): Reimplement in terms of g_target_stack.
3682 (target_ops::beneath, target_stack::find_beneath): New.
3683
3684 2018-06-07 Pedro Alves <palves@redhat.com>
3685
3686 * target.h (find_target_beneath): Delete declaration.
3687 * target.c (find_target_beneath): Delete definition.
3688 * aix-thread.c: All callers of find_target_beneath adjusted to
3689 call target_ops::beneath instead.
3690 * bsd-uthread.c: Likewise.
3691 * linux-thread-db.c: Likewise.
3692 * ravenscar-thread.c: Likewise.
3693 * sol-thread.c: Likewise.
3694 * spu-multiarch.c: Likewise.
3695
3696 2018-06-07 Pedro Alves <palves@redhat.com>
3697
3698 * target.h (target_ops) <beneath>: Now a method. All references
3699 updated.
3700 (target_ops) <m_beneath>: New.
3701 * target.c (target_ops::beneath): New.
3702 * corelow.c: Adjust all references to target_ops::beneath.
3703 * linux-thread-db.c: Likewise.
3704 * make-target-delegates: Likewise.
3705 * record-btrace.c: Likewise.
3706 * record-full.c: Likewise.
3707 * remote.c: Likewise.
3708 * target.c: Likewise.
3709 * target-delegates.c: Regenerate.
3710
3711 2018-06-07 Pedro Alves <palves@redhat.com>
3712
3713 * target.h (target_stack): Delete.
3714 (current_top_target): Declare function.
3715 * target.c (target_stack): Delete.
3716 (g_current_top_target): New.
3717 (current_top_target): New function.
3718 * auxv.c: Use current_top_target instead of target_stack
3719 throughout.
3720 * avr-tdep.c: Likewise.
3721 * breakpoint.c: Likewise.
3722 * corefile.c: Likewise.
3723 * elfread.c: Likewise.
3724 * eval.c: Likewise.
3725 * exceptions.c: Likewise.
3726 * frame.c: Likewise.
3727 * gdbarch-selftests.c: Likewise.
3728 * gnu-v3-abi.c: Likewise.
3729 * ia64-tdep.c: Likewise.
3730 * ia64-vms-tdep.c: Likewise.
3731 * infcall.c: Likewise.
3732 * infcmd.c: Likewise.
3733 * infrun.c: Likewise.
3734 * linespec.c: Likewise.
3735 * linux-tdep.c: Likewise.
3736 * minsyms.c: Likewise.
3737 * ppc-linux-nat.c: Likewise.
3738 * ppc-linux-tdep.c: Likewise.
3739 * procfs.c: Likewise.
3740 * regcache.c: Likewise.
3741 * remote.c: Likewise.
3742 * rs6000-tdep.c: Likewise.
3743 * s390-linux-nat.c: Likewise.
3744 * s390-tdep.c: Likewise.
3745 * solib-aix.c: Likewise.
3746 * solib-darwin.c: Likewise.
3747 * solib-dsbt.c: Likewise.
3748 * solib-spu.c: Likewise.
3749 * solib-svr4.c: Likewise.
3750 * solib-target.c: Likewise.
3751 * sparc-tdep.c: Likewise.
3752 * sparc64-tdep.c: Likewise.
3753 * spu-tdep.c: Likewise.
3754 * symfile.c: Likewise.
3755 * symtab.c: Likewise.
3756 * target-descriptions.c: Likewise.
3757 * target-memory.c: Likewise.
3758 * target.c: Likewise.
3759 * target.h: Likewise.
3760 * tracefile-tfile.c: Likewise.
3761 * tracepoint.c: Likewise.
3762 * valops.c: Likewise.
3763 * valprint.c: Likewise.
3764 * value.c: Likewise.
3765 * windows-tdep.c: Likewise.
3766 * mi/mi-main.c: Likewise.
3767
3768 2018-06-07 Tom Tromey <tom@tromey.com>
3769
3770 * valprint.h (build_address_symbolic): Declare.
3771 * printcmd.c (print_address_symbolic): Update.
3772 (build_address_symbolic): Change "name" and "filename" to
3773 std::string.
3774 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3775 Update.
3776 * defs.h (build_address_symbolic): Remove declaration.
3777
3778 2018-06-07 Alan Hayward <alan.hayward@arm.com>
3779
3780 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
3781 (aarch64_vnv_type): Add function.
3782 (aarch64_pseudo_register_name): Add V regs for SVE.
3783 (aarch64_pseudo_register_type): Likewise.
3784 (aarch64_pseudo_register_reggroup_p): Likewise.
3785 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
3786 (aarch64_pseudo_read_value): Add V regs for SVE.
3787 (aarch64_pseudo_write_2): Use V0 offset for SVE
3788 (aarch64_pseudo_write): Add V regs for SVE.
3789 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
3790
3791 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
3792
3793 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
3794 (sve_vl_from_vq): Likewise.
3795
3796 2018-06-05 Tom Tromey <tom@tromey.com>
3797
3798 * cli/cli-cmds.c (show_version): Update.
3799 * top.c (print_gdb_version): Add "interactive" parameter.
3800 Update.
3801 * main.c (captured_main_1): Update.
3802 * top.h (print_gdb_version): Add "interactive" parameter and a
3803 comment.
3804
3805 2018-06-05 David Malcolm <dmalcolm@redhat.com>
3806
3807 * common/enum-flags.h: Add trailing semicolon to example in
3808 comment.
3809
3810 2018-06-05 Tom Tromey <tom@tromey.com>
3811
3812 PR cli/12326:
3813 * NEWS: Add entry about pager.
3814 * utils.c (pagination_disabled_for_command): New global.
3815 (prompt_for_continue): Allow "c" response to prompt.
3816 (reinitialize_more_filter): Clear
3817 pagination_disabled_for_command.
3818 (fputs_maybe_filtered): Check pagination_disabled_for_command.
3819
3820 2018-06-04 Tom Tromey <tom@tromey.com>
3821
3822 * ada-lang.h (ada_lookup_symbol_list): Update.
3823 * ada-lang.c (resolve_subexp): Update.
3824 (symbols_are_identical_enums): Change type of syms. Remove nsyms
3825 parameter.
3826 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
3827 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
3828 results parameter to std::vector.
3829 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
3830 Update.
3831 * ada-exp.y (block_lookup): Update.
3832 (select_possible_type_sym): Change type of syms. Remove nsyms
3833 parameter.
3834 (write_var_or_type, write_name_assoc): Update.
3835
3836 2018-06-04 Joel Brobecker <brobecker@adacore.com>
3837
3838 * windows-nat.c (windows_nat_target::xfer_partial): Return
3839 TARGET_XFER_E_IO if we need to delegate to the target beneath
3840 but BENEATH is NULL.
3841
3842 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
3843
3844 * Makefile.in (config.status): Add configure.nat as a
3845 dependency.
3846
3847 2018-06-04 Tom Tromey <tom@tromey.com>
3848
3849 * cp-name-parser.y (cpname_state): Add method declarations.
3850 (HANDLE_QUAL): Update.
3851 (cpname_state::d_grab, cpname_state::fill_comp)
3852 (cpname_state::make_operator, cpname_state::make_dtor)
3853 (cpname_state::make_builtin_type, cpname_state::make_name)
3854 (cpname_state::d_qualify, cpname_state::d_int_type)
3855 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
3856 (%union): Move earlier.
3857
3858 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3859
3860 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
3861
3862 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3863
3864 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
3865 (aarch64_pseudo_write_1): Likewise.
3866 (aarch64_pseudo_read_value): Use helper.
3867 (aarch64_pseudo_write): Likewise.
3868
3869 2018-06-04 Pedro Alves <palves@redhat.com>
3870
3871 * darwin-nat.c (darwin_ops): Delete.
3872 (darwin_attach_pid): Use get_native_target.
3873
3874 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3875
3876 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
3877 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
3878
3879 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3880
3881 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
3882 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
3883 (aarch64_gdbarch_init): Check for SVE.
3884 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
3885
3886 2018-06-04 Alan Hayward <alan.hayward@arm.com>
3887
3888 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
3889 * aarch64-tdep.h (aarch64_read_description): Likewise.
3890 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3891 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3892 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
3893 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
3894 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
3895
3896 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
3897
3898 * value.c (value_fetch_lazy_bitfield): New.
3899 (value_fetch_lazy_memory): New.
3900 (value_fetch_lazy_register): New.
3901 (value_fetch_lazy): Factor out to smaller functions.
3902
3903 2018-06-01 Tom Tromey <tom@tromey.com>
3904
3905 * cp-name-parser.y (backslashable, represented): Now const.
3906
3907 2018-06-01 Tom Tromey <tom@tromey.com>
3908
3909 * cp-name-parser.y: Include parser-defs.h.
3910 (parser_fprintf): Remove declaration.
3911
3912 2018-06-01 Tom Tromey <tom@tromey.com>
3913
3914 * cp-name-parser.y: Use %pure-parser, %lex-param, and
3915 %parse-param.
3916 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
3917 (global_result): Remove globals.
3918 (struct cpname_state): New.
3919 (yyparse): Don't declare.
3920 (yylex, yyerror): Move declarations after %union.
3921 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
3922 (make_name): Add state parameter.
3923 Update all callers.
3924 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
3925 parameter.
3926 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
3927 Update.
3928 (yylex): Add lvalp, state parameters.
3929 (yyerror): Add state parameter.
3930 (cp_demangled_name_to_comp): Update.
3931
3932 2018-06-01 Tom Tromey <tom@tromey.com>
3933
3934 * cp-name-parser.y (parser_fprintf): Declare.
3935 (GDB_YY_REMAP_PREFIX): Define.
3936 Include yy-remap.h. Don't redefine yy* identifiers.
3937
3938 2018-06-01 Tom Tromey <tom@tromey.com>
3939
3940 * python/py-type.c (typy_legacy_template_argument): Update.
3941 * cp-support.h (cp_demangled_name_to_comp): Update.
3942 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
3943 parameter to be a "std::string *".
3944 (main): Update.
3945
3946 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
3947
3948 * ada-lex.l: Include "diagnostics.h" instead of
3949 "common/diagnostics.h".
3950 * unittests/environ-selftests.c: Likewise.
3951 * common/diagnostics.h: Moved to ../include.
3952
3953 2018-06-01 Joel Brobecker <brobecker@adacore.com>
3954
3955 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
3956 to language_mode_manual while calling breakpoint_re_set_one.
3957
3958 2018-06-01 Tom Tromey <tom@tromey.com>
3959
3960 * valops.c (value_cast_structs, destructor_name_p): Update.
3961 * symtab.c (gdb_mangle_name): Update.
3962 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
3963 Update.
3964 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
3965 (pascal_object_print_value_fields, pascal_object_print_value):
3966 Update.
3967 * p-typeprint.c (pascal_type_print_derivation_info): Update.
3968 * linespec.c (find_methods): Update.
3969 * gdbtypes.h (type_name_no_tag): Remove.
3970 (type_name_or_error): Rename from type_name_no_tag_or_error.
3971 * gdbtypes.c (type_name_no_tag): Remove.
3972 (type_name_or_error): Rename from type_name_no_tag_or_error.
3973 (lookup_struct_elt_type, check_typedef): Update.
3974 * expprint.c (print_subexp_standard): Update.
3975 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
3976 * d-namespace.c (d_lookup_nested_symbol): Update.
3977 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
3978 (cp_print_class_member): Update.
3979 * cp-namespace.c (cp_lookup_nested_symbol): Update.
3980 * completer.c (add_struct_fields): Update.
3981 * c-typeprint.c (cp_type_print_derivation_info)
3982 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
3983 Update.
3984 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
3985 (ada_prefer_type, ada_is_exception_sym): Update.
3986
3987 2018-06-01 Tom Tromey <tom@tromey.com>
3988
3989 * valops.c (enum_constant_from_type, value_namespace_elt)
3990 (value_maybe_namespace_elt): Update.
3991 * valarith.c (find_size_for_pointer_math): Update.
3992 * target-descriptions.c (make_gdb_type): Update.
3993 * symmisc.c (print_symbol): Update.
3994 * stabsread.c (define_symbol, read_type)
3995 (complain_about_struct_wipeout, add_undefined_type)
3996 (cleanup_undefined_types_1): Update.
3997 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
3998 (rust_range_type_p, val_print_struct, rust_print_struct_def)
3999 (rust_internal_print_type, rust_composite_type)
4000 (rust_evaluate_funcall, rust_evaluate_subexp)
4001 (rust_inclusive_range_type_p): Update.
4002 * python/py-type.c (typy_get_tag): Update.
4003 * p-typeprint.c (pascal_type_print_base): Update.
4004 * mdebugread.c (parse_symbol, parse_type): Update.
4005 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4006 Update.
4007 * guile/scm-type.c (gdbscm_type_tag): Update.
4008 * go-lang.c (sixg_string_p): Update.
4009 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4010 Update.
4011 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4012 (TYPE_TAG_NAME): Remove.
4013 * gdbtypes.c (type_name_no_tag): Simplify.
4014 (check_typedef, check_types_equal, recursive_dump_type)
4015 (copy_type_recursive, arch_composite_type): Update.
4016 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4017 in summary mode when needed.
4018 * eval.c (evaluate_funcall): Update.
4019 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4020 (process_structure_scope, read_enumeration_type)
4021 (read_namespace_type, read_module_type, determine_prefix): Update.
4022 * cp-support.c (inspect_type): Update.
4023 * coffread.c (process_coff_symbol, decode_base_type): Update.
4024 * c-varobj.c (c_is_path_expr_parent): Update.
4025 * c-typeprint.c (c_type_print_base_struct_union): Update.
4026 (c_type_print_base_1): Update. Print struct/class/union/enum in
4027 summary when using C language.
4028 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4029 (gen_maybe_namespace_elt): Update.
4030 * ada-lang.c (ada_type_name): Simplify.
4031 (empty_record, ada_template_to_fixed_record_type_1)
4032 (template_to_static_fixed_type)
4033 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4034
4035 2018-06-01 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4038 c_print_type.
4039 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4040 (c_print_type): Update.
4041 (c_print_type): New overload.
4042 (c_type_print_varspec_prefix, c_type_print_args)
4043 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4044 (c_type_print_base_struct_union, c_type_print_base_1)
4045 (cp_type_print_method_args): Add "language" parameter.
4046 (c_type_print_base): Update.
4047 * c-lang.h (c_print_type): Add new overload.
4048
4049 2018-06-01 Tom Tromey <tom@tromey.com>
4050
4051 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4052 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4053
4054 2018-06-01 Alan Hayward <alan.hayward@arm.com>
4055
4056 * aarch64-tdep.c (aarch64_sve_register_names): New const
4057 var.
4058 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4059 (AARCH64_SVE_Z_REGS_NUM): New define.
4060 (AARCH64_SVE_P_REGS_NUM): Likewise.
4061 (AARCH64_SVE_NUM_REGS): Likewise.
4062
4063 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
4064
4065 * nat/linux-ptrace.h [__alpha__]
4066 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4067 definitions.
4068
4069 2018-05-31 Maciej W. Rozycki <macro@mips.com>
4070
4071 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4072 the endianness selected.
4073 * NEWS: Document `set endian auto' mode operation update.
4074
4075 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4076
4077 * Makefile.in: Add new header.
4078 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4079 (sve_vl_from_vg): Likewise.
4080 (sve_vq_from_vl): Likewise.
4081 (sve_vl_from_vq): Likewise.
4082 (sve_vq_from_vg): Likewise.
4083 (sve_vg_from_vq): Likewise.
4084 * configure.nat: Add new c file.
4085 * nat/aarch64-sve-linux-ptrace.c: New file.
4086 * nat/aarch64-sve-linux-ptrace.h: New file.
4087
4088 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4089
4090 * aarch64-linux-nat.c (aarch64_linux_read_description):
4091 Add parmeter zero.
4092 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4093 Likewise.
4094 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4095 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4096 (aarch64_gdbarch_init): Add parmeter zero.
4097 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4098 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4099 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4100 parmeter.
4101 * doc/gdb.texinfo: Describe SVE feature
4102 * features/aarch64-sve.c: New file.
4103
4104 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
4105
4106 PR gdb/23210
4107 * gdbarch.sh (significant_addr_bit): Default to zero when
4108 not set by target architecture.
4109 * gdbarch.c: Re-generated.
4110 * utils.c (address_significant): Update.
4111
4112 2018-05-30 Joel Brobecker <brobecker@adacore.com>
4113
4114 * stack.c (func_command): Remove trailing newline in call to error.
4115
4116 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4117
4118 * regcache.h (regcache_raw_collect): Remove, update callers to
4119 use regcache::raw_collect.
4120 * regcache.c (regcache_raw_collect): Remove.
4121
4122 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4123
4124 * regcache.h (regcache_raw_supply): Remove, update callers to
4125 use detached_regcache::raw_supply.
4126 * regcache.c (regcache_raw_supply): Remove.
4127
4128 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4129
4130 * regcache.h (regcache_cooked_write_part): Remove, update
4131 callers to use regcache::cooked_write_part.
4132 * regcache.c (regcache_cooked_write_part): Remove.
4133
4134 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4135
4136 * regcache.h (regcache_cooked_read_part): Remove, update callers
4137 to use readable_regcache::cooked_read_part.
4138 * regcache.c (regcache_cooked_read_part): Remove.
4139
4140 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4141
4142 * regcache.h (regcache_cooked_read_value): Remove, update
4143 callers to use readable_regcache::cooked_read_value.
4144 * regcache.c (regcache_cooked_read_value): Remove.
4145
4146 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4147
4148 * regcache.h (regcache_cooked_write): Remove, update callers to
4149 use regcache::cooked_write.
4150 * regcache.c (regcache_cooked_write): Remove.
4151
4152 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4153
4154 * regcache.h (regcache_invalidate): Remove, update callers to
4155 use detached_regcache::invalidate instead.
4156 * regcache.c (regcache_invalidate): Remove.
4157
4158 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4159
4160 * regcache.h (regcache_raw_write_part): Remove, update callers
4161 to use regcache::raw_write_part instead.
4162 * regcache.c (regcache_raw_write_part): Remove.
4163
4164 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4165
4166 * regcache.h (regcache_raw_read_part): Remove, update callers to
4167 use readable_regcache::raw_read_part instead.
4168 * regcache.c (regcache_raw_read_part): Remove.
4169
4170 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4171
4172 * regcache.h (regcache_cooked_read): Remove, update callers to
4173 use readable_regcache::cooked_read instead.
4174 * regcache.c (regcache_cooked_read): Remove.
4175
4176 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4177
4178 * regcache.h (regcache_raw_write): Remove, update callers to use
4179 regcache::raw_write instead.
4180 * regcache.c (regcache_raw_write): Remove.
4181
4182 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4183
4184 * regcache.h (regcache_raw_read): Remove, update callers to use
4185 readable_regcache::raw_read instead.
4186 * regcache.c (regcache_raw_read): Remove.
4187
4188 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4189
4190 * regcache.h (regcache_raw_update): Remove, update callers to
4191 use readable_regcache::raw_update instead.
4192 * regcache.c (regcache_raw_update): Remove.
4193
4194 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4195
4196 * regcache.h (regcache_register_status): Remove, update callers
4197 to use reg_buffer::get_register_status directly instead.
4198 * regcache.c (regcache_register_status): Remove.
4199
4200 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4201
4202 * regcache.h (regcache_get_ptid): Remove, update all callers to
4203 call regcache::ptid instead.
4204 * regcache.c (regcache_get_ptid): Remove.
4205
4206 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4207
4208 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4209
4210 2018-05-30 Pedro Alves <palves@redhat.com>
4211
4212 * common/common-exceptions.h (exception_rethrow): Use
4213 ATTRIBUTE_NORETURN.
4214
4215 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4216
4217 * breakpoint.c (print_solib_event, check_status_catch_solib):
4218 Remove struct keyword in range-based for loops.
4219 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4220 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4221 Likewise.
4222 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4223 Likewise.
4224 * symfile.c (addr_info_make_relative): Likewise.
4225 * thread.c (value_in_thread_stack_temporaries): Likewise.
4226
4227 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
4228
4229 PR gdb/16841
4230 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4231 aggregate type to get its real type before accessing it.
4232
4233 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
4234
4235 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4236 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4237 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4238 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4239 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4240 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4241 * printcmd.c (info_address_command): Likewise.
4242
4243 2018-05-29 Tom Tromey <tom@tromey.com>
4244
4245 * windows-nat.c (handle_exception): Update fall-through comment.
4246
4247 2018-05-29 Tom Tromey <tom@tromey.com>
4248
4249 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4250 (struct program_space) <added_solibs>: Now a std::vector.
4251 * breakpoint.c (print_solib_event): Update.
4252 (check_status_catch_solib): Update.
4253 * progspace.c (clear_program_space_solib_cache): Update.
4254 * solib.c (update_solib_list): Update.
4255
4256 2018-05-29 Tom Tromey <tom@tromey.com>
4257
4258 * python/py-type.c (typy_richcompare): Update.
4259 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4260 * gdbtypes.h (types_deeply_equal): Return bool.
4261 (types_equal): Likewise.
4262 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4263 declare VEC.
4264 (check_types_equal): Change worklist to std::vector. Return
4265 bool.
4266 (struct type_equality_entry): Add constructor.
4267 (compare_maybe_null_strings): Return bool.
4268 (check_types_worklist): Return bool. Change worklist to
4269 std::vector.
4270 (types_deeply_equal): Use std::vector.
4271 (types_equal): Return bool.
4272 (compare_maybe_null_strings): Simplify.
4273
4274 2018-05-29 Tom Tromey <tom@tromey.com>
4275
4276 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4277
4278 2018-05-29 Tom Tromey <tom@tromey.com>
4279
4280 * objc-lang.h: Don't include cp-support.h.
4281 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4282 declare VEC.
4283
4284 2018-05-27 Tom Tromey <tom@tromey.com>
4285
4286 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4287
4288 2018-05-25 Tom Tromey <tom@tromey.com>
4289
4290 * value.c (value::location): Initialize.
4291
4292 2018-05-25 Tom Tromey <tom@tromey.com>
4293
4294 * dbxread.c (init_bincl_list): Remove.
4295 (bincl_list): Now a std::vector.
4296 (bincls_allocated, next_bincl): Remove.
4297 (free_bincl_list, do_free_bincl_list_cleanup)
4298 (make_cleanup_free_bincl_list): Remove.
4299 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4300 unique_xmalloc_ptr.
4301 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4302 (struct header_file_location): Add constructor.
4303 (add_bincl_to_list): Remove.
4304
4305 2018-05-25 Tom Tromey <tom@tromey.com>
4306
4307 * tui/tui.c (tui_enable): Update.
4308 * mi/mi-interp.c (mi_interp::init): Update.
4309 * interps.h (class interp) <name>: New method.
4310 <m_name>: Rename from name.
4311 (~scoped_restore_interp): Update.
4312 * interps.c (interp::interp): Update.
4313 (interp_add, interp_set, interp_lookup_existing)
4314 (current_interp_named_p): Update.
4315
4316 2018-05-25 Tom Tromey <tom@tromey.com>
4317
4318 * interps.c (interp_name): Remove.
4319 * mi/mi-interp.c (mi_interp::init): Update.
4320 * interps.h (interp_name): Remove.
4321 (~scoped_restore_interp): Update.
4322 * tui/tui.c (tui_enable): Update.
4323
4324 2018-05-25 Tom Tromey <tom@tromey.com>
4325
4326 * utils.c (fputs_maybe_filtered): Update.
4327 * linespec.c (decode_line_full): Update.
4328 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4329 (mi_print_breakpoint_for_event, mi_solib_loaded)
4330 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4331 (mi_user_selected_context_changed): Update.
4332 * mi/mi-main.c (mi_execute_command): Update.
4333 * cli/cli-script.c (execute_control_command): Update.
4334 * python/python.c (execute_gdb_command): Update.
4335 * solib.c (info_sharedlibrary_command): Update.
4336 * interps.c (interp_ui_out): Remove.
4337 * interps.h (interp_ui_out): Remove.
4338
4339 2018-05-25 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4342 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4343 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4344
4345 2018-05-25 Tom Tromey <tom@tromey.com>
4346
4347 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4348 * interps.c (interp_exec): Use scoped_restore.
4349
4350 2018-05-25 Tom Tromey <tom@tromey.com>
4351
4352 * remote.c (remote_target::remote_file_get): Use
4353 gdb::byte_vector.
4354 (remote_target::remote_file_put): Likewise.
4355
4356 2018-05-25 Tom Tromey <tom@tromey.com>
4357
4358 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4359 a std::string.
4360 (get_pe_section_index, add_pe_exported_sym): Update.
4361 (read_pe_exported_syms): Use gdb::def_vector.
4362
4363 2018-05-25 Tom Tromey <tom@tromey.com>
4364
4365 * frame.c (remove_prev_frame): Remove.
4366 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4367
4368 2018-05-25 Maciej W. Rozycki <macro@mips.com>
4369
4370 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4371 Remove prototypes.
4372 * mips-linux-nat.c (supply_fpregset): Always call
4373 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4374 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4375 `mips_fill_fpregset'.
4376 * mips-linux-tdep.c (mips_supply_fpregset)
4377 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4378 (mips_fill_fpregset_wrapper): Remove functions.
4379 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4380 (mips_linux_fpregset): Remove variable.
4381 (mips_linux_iterate_over_regset_sections): Use
4382 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4383 (mips_linux_o32_sigframe_init): Remove comment.
4384
4385 2018-05-25 Pedro Alves <palves@redhat.com>
4386
4387 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4388 (struct readahead_cache, struct packet_reg, struct
4389 remote_arch_state, class remote_state): Move higher up in the
4390 file.
4391 (remote_target::m_remote_state): Now an object instead of a pointer.
4392 (remote_target::get_remote_state): Adjust.
4393
4394 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * stack.c (select_and_print_frame): Delete.
4397 (struct function_bounds): Move struct within function.
4398 (func_command): Most content moved into new function
4399 find_frame_for_function, use new function, print result, add
4400 function comment.
4401 (find_frame_for_function): New function, now returns a result.
4402
4403 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4404
4405 * stack.c (iterate_over_block_arg_vars): Fix comment.
4406 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4407
4408 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4409
4410 PR gdb/23203
4411 * frame.c
4412 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4413 Define.
4414 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4415 Define.
4416 * frame.h (class scoped_restore_selected_frame): New class.
4417 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4418 of any exception, use scoped_restore_selected_frame to restore the
4419 frame instead.
4420
4421 2018-05-24 Pedro Alves <palves@redhat.com>
4422
4423 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4424 override.
4425
4426 2018-05-23 Tom Tromey <tom@tromey.com>
4427
4428 * complaints.c (struct complaints): Remove.
4429 (symfile_complaint_book): Remove.
4430 (series): New global.
4431 (complaint_internal): Update.
4432 (clear_complaints): Update.
4433
4434 2018-05-23 Tom Tromey <tom@tromey.com>
4435
4436 * complaints.c (counters): New global.
4437 (struct complain): Remove.
4438 (struct complaints) <root>: Remove.
4439 (complaint_sentinel): Remove.
4440 (symfile_complaint_book): Update.
4441 (find_complaint) Remove.
4442 (complaint_internal, clear_complaints): Update.
4443
4444 2018-05-23 Tom Tromey <tom@tromey.com>
4445
4446 * complaints.c (struct complain) <file, line>: Remove.
4447 (find_complaint): Remove file, line parameters.
4448 (complaint_internal): Update.
4449
4450 2018-05-23 Tom Tromey <tom@tromey.com>
4451
4452 * complaints.c (vcomplaint): Remove.
4453 (complaint_internal) Merge in contents of vcomplaint.
4454
4455 2018-05-23 Tom Tromey <tom@tromey.com>
4456
4457 * complaints.c (struct complaints) <explanation>: Remove.
4458 (symfile_explanations): Remove.
4459 (symfile_complaint_book): Update.
4460 (vcomplaint): Update.
4461 (struct explanation): Remove.
4462
4463 2018-05-23 Tom Tromey <tom@tromey.com>
4464
4465 * complaints.c (symfile_complaints): Remove.
4466 (complaint_internal): Remove "complaints" parameter.
4467 (clear_complaints, vcomplaint): Remove "c" parameter.
4468 (get_complaints): Remove.
4469 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
4470 (dwarf2_debug_line_missing_file_complaint)
4471 (dwarf2_debug_line_missing_end_sequence_complaint)
4472 (dwarf2_complex_location_expr_complaint)
4473 (dwarf2_const_value_length_mismatch_complaint)
4474 (dwarf2_section_buffer_overflow_complaint)
4475 (dwarf2_macro_malformed_definition_complaint)
4476 (dwarf2_invalid_attrib_class_complaint)
4477 (create_addrmap_from_index, dw2_symtab_iter_next)
4478 (dw2_expand_marked_cus)
4479 (dw2_debug_names_iterator::find_vec_in_debug_names)
4480 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
4481 (create_debug_type_hash_table, init_cutu_and_read_dies)
4482 (partial_die_parent_scope, add_partial_enumeration)
4483 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
4484 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
4485 (read_import_statement, read_file_scope, create_dwo_cu_reader)
4486 (create_cus_hash_table, create_dwp_hash_table)
4487 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4488 (dwarf2_rnglists_process, dwarf2_ranges_process)
4489 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
4490 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
4491 (handle_struct_member_die, process_structure_scope)
4492 (read_array_type, read_common_block, read_module_type)
4493 (read_tag_pointer_type, read_typedef, read_base_type)
4494 (read_subrange_type, load_partial_dies, partial_die_info::read)
4495 (partial_die_info::read, partial_die_info::read)
4496 (partial_die_info::read, read_checked_initial_length_and_offset)
4497 (dwarf2_string_attr, read_formatted_entries)
4498 (dwarf_decode_line_header)
4499 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4500 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
4501 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
4502 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4503 (get_signatured_type, get_DW_AT_signature_type)
4504 (decode_locdesc, file_file_name, consume_improper_spaces)
4505 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
4506 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4507 (dwarf2_symbol_mark_computed, set_die_type)
4508 (read_attribute_value): Update.
4509 * stap-probe.c (handle_stap_probe, get_stap_base_address):
4510 Update.
4511 * dbxread.c (unknown_symtype_complaint)
4512 (lbrac_mismatch_complaint, repeated_header_complaint)
4513 (set_namestring, function_outside_compilation_unit_complaint)
4514 (read_dbx_symtab, process_one_symbol): Update.
4515 * gdbtypes.c (stub_noname_complaint): Update.
4516 * windows-nat.c (handle_unload_dll): Update.
4517 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
4518 (decode_base_type): Update.
4519 * xcoffread.c (bf_notfound_complaint, ef_complaint)
4520 (eb_complaint, record_include_begin, record_include_end)
4521 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
4522 (process_xcoff_symbol, read_symbol)
4523 (function_outside_compilation_unit_complaint)
4524 (scan_xcoff_symtab): Update.
4525 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
4526 * buildsym.c (finish_block_internal, make_blockvector)
4527 (end_symtab_get_static_block, augment_type_symtab): Update.
4528 * dtrace-probe.c (dtrace_process_dof)
4529 (dtrace_static_probe_ops::get_probes): Update.
4530 * complaints.h (struct complaint): Don't declare.
4531 (symfile_complaints): Remove.
4532 (complaint_internal): Remove "complaints" parameter.
4533 (complaint): Likewise.
4534 (clear_complaints): Likewise.
4535 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4536 (reread_symbols): Update.
4537 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
4538 (dwarf2_frame_cache, decode_frame_entry): Update.
4539 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
4540 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4541 (info_selectors_command): Update.
4542 * macrotab.c (macro_include, check_for_redefinition)
4543 (macro_undef): Update.
4544 * objfiles.c (filter_overlapping_sections): Update.
4545 * stabsread.c (invalid_cpp_abbrev_complaint)
4546 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
4547 (define_symbol, error_type, read_type, rs6000_builtin_type)
4548 (stabs_method_name_from_physname, read_member_functions)
4549 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
4550 (attach_fields_to_type, complain_about_struct_wipeout)
4551 (read_range_type, read_args, common_block_start)
4552 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
4553 Update.
4554 * mdebugread.c (index_complaint, unknown_ext_complaint)
4555 (basic_type_complaint, bad_tag_guess_complaint)
4556 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
4557 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
4558 (parse_procedure, parse_lines)
4559 (function_outside_compilation_unit_complaint)
4560 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
4561 (bad_tag_guess_complaint, reg_value_complaint): Update.
4562 * cp-support.c (demangled_name_complaint): Update.
4563 * macroscope.c (sal_macro_scope): Update.
4564 * dwarf-index-write.c (class debug_names): Update.
4565
4566 2018-05-23 Tom Tromey <tom@tromey.com>
4567
4568 * complaints.c (clear_complaints): Remove "noisy" parameter.
4569 * complaints.h (clear_complaints): Update.
4570 * symfile.c (syms_from_objfile_1, finish_new_objfile)
4571 (reread_symbols): Update.
4572
4573 2018-05-23 Tom Tromey <tom@tromey.com>
4574
4575 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
4576 SUBSEQUENT_MESSAGE.
4577 (vcomplaint, clear_complaints): Update.
4578 (symfile_explanations): Remove some messages.
4579
4580 2018-05-23 Tom Tromey <tom@tromey.com>
4581
4582 * complaints.c (internal_complaint): Remove.
4583 * complaints.h (internal_complaint): Remove.
4584
4585 2018-05-22 Maciej W. Rozycki <macro@mips.com>
4586
4587 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
4588
4589 2018-05-22 Pedro Alves <palves@redhat.com>
4590
4591 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
4592 (remote_fileio_badfd, remote_fileio_return_errno)
4593 (remote_fileio_return_success, remote_fileio_func_open)
4594 (remote_fileio_func_open, remote_fileio_func_close)
4595 (remote_fileio_func_read, remote_fileio_func_write)
4596 (remote_fileio_func_lseek, remote_fileio_func_rename)
4597 (remote_fileio_func_unlink, remote_fileio_func_stat)
4598 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4599 (remote_fileio_func_isatty, remote_fileio_func_system): Add
4600 remote_target parameter.
4601 (remote_fio_func_map) <func>: Add remote_target parameter.
4602 (do_remote_fileio_request, remote_fileio_request):
4603 * remote-fileio.h (remote_fileio_request):
4604 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
4605 remote_target parameter.
4606 (remote_notif_process, handle_notification): Adjust to pass down
4607 the remote.
4608 (remote_notif_state_allocate): Add remote_target parameter. Save
4609 it.
4610 * remote-notif.h (struct remote_target): Forward declare.
4611 (struct notif_client) <parse, ack, can_get_pending_events>: Add
4612 remote_target parameter.
4613 (struct remote_notif_state) <remote>: New field.
4614 (remote_notif_ack, remote_notif_parse): Add remote_target
4615 parameter.
4616 (remote_notif_state_allocate, remote_notif_state_allocate): Add
4617 remote_target parameter.
4618 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
4619 (threads_listing_context, rmt_thread_action, protocol_feature)
4620 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
4621 (packet_result, struct threads_listing_context, remote_state):
4622 Move definitions and declarations higher up.
4623 (remote_target) <~remote_target>: Declare.
4624 (remote_download_command_source, remote_file_put, remote_file_get)
4625 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
4626 (remote_hostio_pread_vFile, remote_hostio_send_command)
4627 (remote_hostio_set_filesystem, remote_hostio_open)
4628 (remote_hostio_close, remote_hostio_unlink, remote_state)
4629 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
4630 (get_memory_write_packet_size, get_memory_read_packet_size)
4631 (append_pending_thread_resumptions, remote_detach_1)
4632 (append_resumption, remote_resume_with_vcont)
4633 (add_current_inferior_and_thread, wait_ns, wait_as)
4634 (process_stop_reply, remote_notice_new_inferior)
4635 (process_initial_stop_replies, remote_add_thread)
4636 (btrace_sync_conf, remote_btrace_maybe_reopen)
4637 (remove_new_fork_children, kill_new_fork_children)
4638 (discard_pending_stop_replies, stop_reply_queue_length)
4639 (check_pending_events_prevent_wildcard_vcont)
4640 (discard_pending_stop_replies_in_queue, stop_reply)
4641 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
4642 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
4643 (remote_interrupt_as, remote_interrupt_ns)
4644 (remote_get_noisy_reply, remote_query_attached)
4645 (remote_add_inferior, remote_current_thread, get_current_thread)
4646 (set_thread, set_general_thread, set_continue_thread)
4647 (set_general_process, write_ptid)
4648 (remote_unpack_thread_info_response, remote_get_threadinfo)
4649 (parse_threadlist_response, remote_get_threadlist)
4650 (remote_threadlist_iterator, remote_get_threads_with_ql)
4651 (remote_get_threads_with_qxfer)
4652 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
4653 (get_offsets, remote_check_symbols, remote_supported_packet)
4654 (remote_query_supported, remote_packet_size)
4655 (remote_serial_quit_handler, remote_detach_pid)
4656 (remote_vcont_probe, remote_resume_with_hc)
4657 (send_interrupt_sequence, interrupt_query)
4658 (remote_notif_get_pending_events, fetch_register_using_p)
4659 (send_g_packet, process_g_packet, fetch_registers_using_g)
4660 (store_register_using_P, store_registers_using_G)
4661 (set_remote_traceframe, check_binary_download)
4662 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
4663 (remote_xfer_live_readonly_partial, remote_read_bytes)
4664 (remote_send_printf, remote_flash_write, readchar)
4665 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
4666 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
4667 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
4668 (extended_remote_disable_randomization, extended_remote_run)
4669 (send_environment_packet, extended_remote_environment_support)
4670 (extended_remote_set_inferior_cwd, remote_write_qxfer)
4671 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
4672 (packet_command): Now methods of ...
4673 (remote_target): ... this class.
4674 (m_remote_state) <remote_target>: New field.
4675 (struct remote_state) <stop_reply_queue,
4676 remote_async_inferior_event_token, wait_forever_enabled_p>: New
4677 fields.
4678 (remote_state::remote_state): Allocate stop_reply_queue.
4679 (remote_state): Delete global.
4680 (get_remote_state_raw): Delete.
4681 (remote_target::get_remote_state): Allocate m_remote_state on
4682 demand.
4683 (get_current_remote_target): New.
4684 (remote_ops, extended_remote_ops): Delete.
4685 (wait_forever_enabled_p, remote_async_inferior_event_token):
4686 Delete, moved to struct remote_state.
4687 (remote_target::close): Delete self. Destruction bits split to
4688 ...
4689 (remote_target::~remote_target): ... this.
4690 (show_memory_packet_size): Adjust to use
4691 get_current_remote_target.
4692 (struct protocol_feature) <func>: Add remote_target parameter.
4693 All callers adjusted.
4694 (curr_quit_handler_target): New.
4695 (remote_serial_quit_handler): Reimplement.
4696 (remote_target::open_1): Adjust to use get_current_remote_target.
4697 Heap-allocate remote_target/extended_remote_target instances.
4698 (vcont_builder::vcont_builder): Add remote_target parameter, and
4699 save it in m_remote. All callers adjusted.
4700 (vcont_builder::m_remote): New field.
4701 (vcont_builder::restart, vcont_builder::flush)
4702 (vcont_builder::push_action): Use it.
4703 (remote_target::commit_resume): Use it.
4704 (struct queue_iter_param) <remote>: New field.
4705 (remote_target::remove_new_fork_children): Fill in 'remote' field.
4706 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
4707 (check_pending_event_prevents_wildcard_vcont_callback)
4708 (remote_target::check_pending_events_prevent_wildcard_vcont)
4709 (remote_target::discard_pending_stop_replies)
4710 (remote_target::discard_pending_stop_replies_in_queue)
4711 (remote_target::remote_notif_remove_queued_reply): Fill in
4712 'remote' field.
4713 (remote_notif_get_pending_events): New.
4714 (remote_target::readchar, remote_target::remote_serial_write):
4715 Save/restore curr_quit_handler_target.
4716 (putpkt): New.
4717 (kill_new_fork_children): Fill in 'remote' field.
4718 (packet_command): Use get_current_remote_target, defer to
4719 remote_target method of same name.
4720 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
4721 parameter, and save it in m_remote. All callers adjusted.
4722 (scoped_remote_fd::release): Use m_remote.
4723 (scoped_remote_fd::m_remote): New field.
4724 (remote_file_put, remote_file_get, remote_file_delete): Use
4725 get_current_remote_target, defer to remote_target method of same
4726 name.
4727 (remote_btrace_reset): Add remote_state paremeter. Update all
4728 callers.
4729 (remote_async_inferior_event_handler). Pass down 'data'.
4730 (remote_new_objfile): Use get_current_remote_target.
4731 (remote_target::vcont_r_supported): New.
4732 (set_range_stepping): Use get_current_remote_target and
4733 remote_target::vcont_r_supported.
4734 (_initialize_remote): Don't allocate 'remote_state' and
4735 'stop_reply_queue' globals.
4736 * remote.h (struct remote_target): Forward declare.
4737 (getpkt, putpkt, remote_notif_get_pending_events): Add
4738 'remote_target' parameter.
4739
4740 2018-05-22 Pedro Alves <palves@redhat.com>
4741
4742 * remote.c (vcont_builder): Now a class. Make all data members
4743 private.
4744 (vcont_builder) <vcont_builder, restart, flush, push_action>:
4745 Declare methods.
4746 (vcont_builder_restart): Rename to ...
4747 (vcont_builder::restart): ... this.
4748 (vcont_builder_flush): Rename to ...
4749 (vcont_builder::flush): ... this.
4750 (vcont_builder_push_action): Rename to ...
4751 (vcont_builder::push_action): ... this.
4752 (remote_target::commit_resume): Adjust.
4753
4754 2018-05-22 Pedro Alves <palves@redhat.com>
4755
4756 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
4757 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
4758 (get_fixed_memory_packet_size): New.
4759 (get_memory_packet_size): Use it.
4760 (set_memory_packet_size): Don't override the config size with
4761 DEFAULT_MAX_MEMORY_PACKET_SIZE.
4762 (show_memory_packet_size): Use get_fixed_memory_packet_size.
4763 Don't refer to get_memory_packet_size if not connected to a remote
4764 target. Show "(default)" if configured size is 0.
4765
4766 2018-05-22 Pedro Alves <palves@redhat.com>
4767
4768 * remote.c (remote_target::mourn_inferior): Move
4769 discard_pending_stop_replies call here from ...
4770 (_initialize_remote): ... here.
4771
4772 2018-05-22 Pedro Alves <palves@redhat.com>
4773
4774 * remote.c (compare_section_command): Remove set_general_process
4775 call.
4776
4777 2018-05-22 Pedro Alves <palves@redhat.com>
4778
4779 * remote.c (struct packet_reg, struct remote_arch_state):
4780 Move higher up in the file.
4781 (remote_state) <m_arch_states>: Store remote_arch_state values
4782 instead of remote_arch_state pointers.
4783 (remote_state::get_remote_arch_state): Adjust.
4784
4785 2018-05-22 Pedro Alves <palves@redhat.com>
4786
4787 * remote.c: Include <unordered_map>.
4788 (remote_state): Now a class.
4789 (remote_state) <get_remote_arch_state>: Declare method.
4790 <get_remote_arch_state>: New field.
4791 (remote_arch_state) <remote_arch_state>: Declare ctor.
4792 <regs>: Now a unique_ptr.
4793 (remote_gdbarch_data_handle): Delete.
4794 (get_remote_arch_state): Delete.
4795 (remote_state::get_remote_arch_state): New.
4796 (get_remote_state): Adjust to call remote_state's
4797 get_remote_arch_state method.
4798 (init_remote_state): Delete, bits factored out to ...
4799 (remote_arch_state::remote_arch_state): ... this new method.
4800 (get_remote_packet_size, get_memory_packet_size)
4801 (process_g_packet, remote_target::fetch_registers)
4802 (remote_target::prepare_to_store, store_registers_using_G)
4803 (remote_target::store_registers, remote_target::get_trace_status):
4804 Adjust to call remote_state's method.
4805 (_initialize_remote): Remove reference to
4806 remote_gdbarch_data_handle.
4807
4808 2018-05-22 Pedro Alves <palves@redhat.com>
4809
4810 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
4811 pread>: New method declarations.
4812 (remote_target::open_1): Adjust.
4813 (readahead_cache_invalidate): Rename to ...
4814 (readahead_cache::invalidate): ... this, and adjust to be a class
4815 method.
4816 (readahead_cache_invalidate_fd): Rename to ...
4817 (readahead_cache::invalidate_fd): ... this, and adjust to be a
4818 class method.
4819 (remote_hostio_pwrite): Adjust.
4820 (remote_hostio_pread_from_cache): Rename to ...
4821 (readahead_cache::pread): ... this, and adjust to be a class
4822 method.
4823 (remote_hostio_close): Adjust.
4824
4825 2018-05-22 Pedro Alves <palves@redhat.com>
4826
4827 * remote.c (remote_hostio_close_cleanup): Delete.
4828 (class scoped_remote_fd): New.
4829 (remote_file_put, remote_file_get): Use it.
4830
4831 2018-05-22 Pedro Alves <palves@redhat.com>
4832
4833 (struct vCont_action_support): Use bool and initialize all fields.
4834 (struct readahead_cache): Initialize all fields.
4835 (remote_state): Use bool and initialize all fields.
4836 (remote_state::remote_state, remote_state::~remote_state): New.
4837 (new_remote_state): Delete.
4838 (_initialize_remote): Use new to allocate remote_state.
4839
4840 2018-05-22 Pedro Alves <palves@redhat.com>
4841 張俊芝 <zjz@zjz.name>
4842
4843 PR gdb/22973
4844 * c-exp.y: Include "c-support.h".
4845 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
4846 of tolower. Use c_ident_is_alpha to scan names.
4847 * c-lang.c: Include "c-support.h".
4848 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
4849 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
4850 * c-support.h: New file, with bits factored out from ...
4851 * cp-name-parser.y: ... this file.
4852 Include "c-support.h".
4853 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
4854 c-support.h and renamed.
4855 (symbol_end, yylex): Adjust.
4856
4857 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4858
4859 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
4860 parameter type to CORE_ADDR.
4861 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
4862 parameter type in declaration to CORE_ADDR.
4863 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
4864 target_auxv_search to get AT_HWCAP and use the result to get the
4865 target description.
4866 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
4867 to CORE_ADDR. Remove the cast of the return value to unsigned
4868 long. Fix error predicate of target_auxv_search.
4869 (ppc_linux_nat_target::read_description): Change the type of the
4870 hwcap variable to CORE_ADDR.
4871
4872 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4873
4874 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
4875 if the size of fpscr is larger than 32 bits.
4876
4877 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4878
4879 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
4880 (ppc32_linux_vsxregmap): New global.
4881 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
4882 regcache_supply_regset, and regcache_collect_regset.
4883 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
4884 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
4885 (fetch_vsx_register, store_vsx_register): Remove.
4886 (fetch_vsx_registers): Add regno parameter. Get regset using
4887 ppc_linux_vsxregset. Use regset to supply registers.
4888 (store_vsx_registers): Add regno parameter. Get regset using
4889 ppc_linux_vsxregset. Use regset to collect registers.
4890 (fetch_register): Call fetch_vsx_registers instead of
4891 fetch_vsx_register.
4892 (store_register): Call store_vsx_registers instead of
4893 store_vsx_register.
4894 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
4895 new regno parameter.
4896 (store_ppc_registers): Call store_vsx_registers with -1 for the
4897 new regno parameter.
4898 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
4899 (ppc_collect_vsxregset): Remove.
4900
4901 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4902
4903 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
4904 offset fields.
4905 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
4906 for vector register offset fields.
4907 (ppc64_fbsd_reg_offsets): Likewise.
4908 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4909 to vector register offset fields.
4910 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
4911 to vector register offset fields.
4912 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
4913 vector register offset fields.
4914 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
4915 initializers for vector register offset fields.
4916 (rs6000_aix64_reg_offsets): Likewise.
4917 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
4918 (ppc_supply_vrregset): Remove.
4919 (ppc_collect_vrregset): Remove.
4920 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
4921 (ppc_linux_vrregset) : New function.
4922 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
4923 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
4924 (ppc32_linux_vrregset): Remove.
4925 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
4926 and use result instead of ppc32_linux_vrregset.
4927 (ppc32_linux_reg_offsets): Remove initializers for vector register
4928 offset fields.
4929 (ppc64_linux_reg_offsets): Likewise.
4930 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
4931 * ppc-linux-nat.c: Include regset.h.
4932 (gdb_vrregset_t): Adjust comment to account for little-endian
4933 mode.
4934 (supply_vrregset, fill_vrregset): Remove.
4935 (fetch_altivec_register, store_altivec_register): Remove.
4936 (fetch_altivec_registers): Add regno parameter. Get regset using
4937 ppc_linux_vrregset. Use regset to supply registers.
4938 (store_altivec_registers): Add regno parameter. Get regset using
4939 ppc_linux_vrregset. Use regset to collect registers.
4940 (fetch_register): Call fetch_altivec_registers instead of
4941 fetch_altivec_register.
4942 (store_register): Call store_altivec_registers instead of
4943 store_altivec_register.
4944 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
4945 the new regno parameter.
4946 (store_ppc_registers): Call store_altivec_registers with -1 for
4947 the new regno parameter.
4948
4949 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4950
4951 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
4952 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
4953 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
4954 (gdb_vrregset_t): Change array type size to
4955 PPC_LINUX_SIZEOF_VRREGSET.
4956 (gdb_vsxregset_t): Change array type size to
4957 PPC_LINUX_SIZEOF_VSXREGSET.
4958 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
4959 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
4960 PPC_LINUX_SIZEOF_VSXREGSET.
4961
4962 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4963
4964 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
4965 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
4966 nat/ppc-linux.c.
4967 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
4968 ppc_linux_target_wordsize with tid.
4969 (ppc_linux_nat_target::read_description): Call ppc_linux_target
4970 wordsize with tid.
4971 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
4972 (ppc64_64bit_inferior_p): Add static and inline specifiers.
4973 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
4974 tid parameter. Remove static specifier.
4975 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
4976 (ppc_linux_target_wordsize): New declaration.
4977
4978 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
4979
4980 * arch/ppc-linux-common.c: New file.
4981 * arch/ppc-linux-common.h: New file.
4982 * arch/ppc-linux-tdesc.h: New file.
4983 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
4984 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
4985 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
4986 arch/ppc-linux-tdesc.h.
4987 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
4988 arch/ppc-linux-tdesc.h.
4989 (ppc_linux_nat_target::read_description): Remove target
4990 description matching code. Fill a ppc_linux_features struct and
4991 call ppc_linux_match_description with it. Move comment about ISA
4992 2.05 to ppc-linux-common.c.
4993 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
4994 arch/ppc-linux-tdesc.h.
4995 (ppc_linux_core_read_description): Remove target description
4996 matching code. Fill a ppc_linux_features struct and call
4997 ppc_linux_match_description with it.
4998 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
4999 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5000 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5001 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5002 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5003 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5004 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5005 (tdesc_powerpc_e500l): Remove.
5006
5007 2018-05-22 Joel Brobecker <brobecker@adacore.com>
5008
5009 * ada-lang.c (catch_assert_command): Pass empty string instead
5010 of NULL for excep_string argument.
5011
5012 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5013
5014 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5015 the width of the requested register exceeds the width of the
5016 `ptrace' data type.
5017
5018 2018-05-21 Tom Tromey <tom@tromey.com>
5019
5020 * printcmd.c (output_command): Remove.
5021 (output_command_const): Rename to output_command.
5022 * valprint.h (output_command): Rename from output_command_const.
5023 * tracepoint.c (trace_dump_actions): Call output_command.
5024
5025 2018-05-21 Tom Tromey <tom@tromey.com>
5026
5027 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5028 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5029 * ada-lang.h (create_ada_exception_catchpoint): Update.
5030 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5031 std::string.
5032 (create_excep_cond_exprs, ~ada_catchpoint)
5033 (should_stop_exception, print_one_exception)
5034 (print_mention_exception, print_recreate_exception): Update.
5035 (ada_get_next_arg): Remove.
5036 (catch_ada_exception_command_split): Use std::string. Change type
5037 of "excep_string", "cond_string".
5038 (catch_ada_exception_command): Update.
5039 (create_ada_exception_catchpoint): Change type of excep_string.
5040 (ada_exception_sal): Remove excep_string parameter.
5041 (~ada_catchpoint): Remove.
5042
5043 2018-05-21 Tom Tromey <tom@tromey.com>
5044
5045 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5046 cleanup.
5047
5048 2018-05-21 Tom Tromey <tom@tromey.com>
5049
5050 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5051 Return unique_xmalloc_ptr.
5052 (print_it_exception): Update.
5053
5054 2018-05-21 Tom Tromey <tom@tromey.com>
5055
5056 * tracepoint.c (trace_dump_actions): Use std::string.
5057
5058 2018-05-21 Tom Tromey <tom@tromey.com>
5059
5060 * symfile.c (reread_symbols): Use std::string for original_name.
5061
5062 2018-05-21 Tom Tromey <tom@tromey.com>
5063
5064 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5065 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5066 constructor.
5067
5068 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5071 instance to...
5072 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5073 * objfiles.c (get_objfile_bfd_data): Allocate
5074 objfile_per_bfd_storage with obstack_new when allocating on
5075 obstack.
5076
5077 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5078
5079 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5080 OBSTACK_ZALLOC.
5081 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5082 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5083 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5084 (add_pending): Likewise.
5085 (parse_symbol): Likewise.
5086 (parse_partial_symbols): Likewise.
5087 (psymtab_to_symtab_1): Likewise.
5088 (new_psymtab): Likewise.
5089 (elfmdebug_build_psymtabs): Likewise.
5090 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5091 * objfiles.c (get_objfile_bfd_data): Likewise.
5092 (objfile_register_static_link): Likewise.
5093 * psymtab.c (allocate_psymtab): Likewise.
5094 * stabsread.c (read_member_functions): Likewise.
5095 * xcoffread.c (xcoff_end_psymtab): Likewise.
5096
5097 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5098
5099 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5100 compiler supports std::is_trivially_constructible.
5101 * common/poison.h: Include obstack.h.
5102 (IsMallocable): Define to is_trivially_constructible if the
5103 compiler supports it, define to true_type otherwise.
5104 (xobnew): New.
5105 (XOBNEW): Redefine.
5106 (xobnewvec): New.
5107 (XOBNEWVEC): Redefine.
5108 * gdb_obstack.h (obstack_zalloc): New.
5109 (OBSTACK_ZALLOC): Redefine.
5110 (obstack_calloc): New.
5111 (OBSTACK_CALLOC): Redefine.
5112 (obstack_new): New.
5113 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5114 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5115 gdbarch.c.
5116 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5117 obstack_calloc/obstack_zalloc.
5118 (gdbarch_obstack_zalloc): Remove.
5119 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5120
5121 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5122
5123 * stack.c (backtrace_command_1): Remove useless variable int i.
5124
5125 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126
5127 * stack.c (print_frame_info): Fix comment.
5128
5129 2018-05-18 Tom Tromey <tom@tromey.com>
5130
5131 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5132 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5133 (~dwarf2_per_objfile): Update
5134 (dwarf2_get_dwz_file): Use new.
5135 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5136 unique_ptr.
5137
5138 2018-05-18 Tom Tromey <tom@tromey.com>
5139
5140 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5141 unique_ptr.
5142 * dwarf2read.c (struct dwp_file): Add constructor and
5143 initializers.
5144 (open_and_init_dwp_file): Return a unique_ptr.
5145 (dwarf2_per_objfile, create_dwp_hash_table)
5146 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5147 (lookup_dwo_unit_in_dwp): Update.
5148 (open_and_init_dwp_file, get_dwp_file): Update.
5149
5150 2018-05-18 Tom Tromey <tom@tromey.com>
5151
5152 * dwarf2read.c (dwarf2_per_objfile): Update.
5153 (struct mapped_index): Add initializers.
5154 (dwarf2_read_index): Use new.
5155 (dw2_symtab_iter_init): Update.
5156 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5157 unique_ptr.
5158
5159 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5160
5161 * dwarf2read.c (mapped_index) <total_size>: Remove.
5162
5163 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5164
5165 * unittests/format_pieces-selftests.c (test_format_specifier):
5166 Add ARI comments.
5167
5168 2018-05-18 Tom Tromey <tom@tromey.com>
5169
5170 * c-typeprint.c (maybe_print_hole): New function.
5171 (c_print_type_struct_field_offset): Update.
5172 (c_type_print_base_struct_union): Call maybe_print_hole.
5173
5174 2018-05-17 Keith Seitz <keiths@redhat.com>
5175
5176 * breakpoint.c (build_bpstat_chain): New function, moved from
5177 bpstat_stop_status.
5178 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5179 If no stop chain is passed, call build_bpstat_chain to build it.
5180 * breakpoint.h (build_bpstat_chain): Declare.
5181 (bpstat_stop_status): Move documentation here from breakpoint.c.
5182 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5183 build the stop chain and pass it to skip_inline_frames.
5184 Pass this stop chain to bpstat_stop_status.
5185 * inline-frame.c: Include breakpoint.h.
5186 (stopped_by_user_bp_inline_frame): New function.
5187 (skip_inline_frames): Add parameter `stop_chain'.
5188 Move documention to inline-frame.h.
5189 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5190 whether the frame should be elided.
5191 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5192 Add moved documentation and update for new parameter.
5193
5194 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5195
5196 PR cli/14975
5197 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5198 unittests/format_pieces-selftests.c.
5199 * common/format.h (format_piece) <operator==>: New.
5200 (format_pieces) <operator[]>: Remove.
5201 * common/format.c (format_pieces::format_pieces): Handle \e.
5202 * unittests/format_pieces-selftests.c: New.
5203
5204 2018-05-17 Tom Tromey <tom@tromey.com>
5205
5206 PR symtab/23010:
5207 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5208 (dw2_instantiate_symtab): Add skip_partial parameter.
5209 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5210 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5211 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5212 (dw2_expand_symtabs_matching_one)
5213 (dw2_find_pc_sect_compunit_symtab)
5214 (dw2_debug_names_lookup_symbol)
5215 (dw2_debug_names_expand_symtabs_for_function): Update.
5216 (init_cutu_and_read_dies): Add skip_partial parameter.
5217 (process_psymtab_comp_unit, build_type_psymtabs_1)
5218 (process_skeletonless_type_unit, load_partial_comp_unit)
5219 (psymtab_to_symtab_1): Update.
5220 (load_full_comp_unit): Add skip_partial parameter.
5221 (process_imported_unit_die, dwarf2_read_addr_index)
5222 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5223 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5224 (read_signatured_type): Update.
5225
5226 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5227
5228 * value.c (release_value): Remove unused variable.
5229 (record_latest_value): Likewise.
5230 (access_value_history): Likewise.
5231 (preserve_values): Likewise.
5232
5233 2018-05-17 Tom Tromey <tom@tromey.com>
5234
5235 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5236 Initialize.
5237
5238 2018-05-16 Maciej W. Rozycki <macro@mips.com>
5239
5240 PR gdb/22286
5241 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5242 Also handle registers whose width is not a multiple of
5243 PTRACE_TYPE_RET.
5244 (linux_nat_trad_target::store_register): Likewise.
5245
5246 2018-05-16 Tom Tromey <tom@tromey.com>
5247
5248 * gdbcore.h (core_bfd): Redefine.
5249 * corelow.c (core_target::close): Update.
5250 (core_target_open): Update.
5251 * progspace.h (struct program_space) <cbfd>: Now a
5252 gdb_bfd_ref_ptr.
5253
5254 2018-05-16 Tom Tromey <tom@tromey.com>
5255
5256 PR cli/19551:
5257 * symfile-add-flags.h (enum symfile_add_flags)
5258 <SYMFILE_NOT_FILENAME>: New constant.
5259 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5260 objfile name from BFD.
5261 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5262 * minidebug.c (find_separate_debug_file_in_section): Put
5263 ".gnu_debugdata" into BFD's file name.
5264
5265 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5266
5267 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5268 Remove.
5269
5270 2018-05-15 Tamar Christina <tamar.christina@arm.com>
5271
5272 PR binutils/21446
5273 * aarch64-tdep.c (aarch64_analyze_prologue,
5274 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5275 Indicate not interested in errors.
5276
5277 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5278
5279 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5280 Supply the MIPS_ZERO_REGNUM register.
5281
5282 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5283
5284 * mips-tdep.c (mask_address_var): Make variable static.
5285
5286 2018-05-14 Tom Tromey <tom@tromey.com>
5287
5288 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5289
5290 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5291
5292 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5293 FXSAVE_ADDR for the mxcsr register.
5294
5295 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5296
5297 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
5298
5299 2018-05-11 Pedro Alves <palves@redhat.com>
5300
5301 * corelow.c (core_target) <core_target>: No longer inline.
5302 Initialize m_core_gdbarch, m_core_vec and build the section table
5303 here.
5304 <~core_target>: New.
5305 <core_gdbarch, get_core_register_section>: New methods.
5306 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5307 factored out from ...
5308 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5309 (core_ops): Delete.
5310 (sniff_core_bfd): Add gdbarch parameter.
5311 (core_close): Delete, merged into ...
5312 (core_target::close): ... here. Delete self.
5313 (core_close_cleanup): Delete.
5314 (core_target_open): Allocate a core_target on the heap. Use a
5315 unique_ptr instead of a cleanup. Bits moved into the core_target
5316 ctor. Adjust to use core_target methods instead of globals.
5317 (get_core_register_section): Rename to ...
5318 (core_target::get_core_register_section): ... this and adjust.
5319 (struct get_core_registers_cb_data): New.
5320 (get_core_registers_cb): Use it. Use bool.
5321 (core_target::fetch_registers, core_target::files_info)
5322 (core_target::xfer_partial, core_target::read_description)
5323 (core_target::pid_to, core_target::thread_name): Adjust to
5324 reference class fields instead of globals.
5325 * target.h (struct target_ops_deleter, target_ops_up): New.
5326
5327 2018-05-11 Pedro Alves <palves@redhat.com>
5328
5329 * corefile.c (core_file_command): Move to corelow.c.
5330 * corelow.c (the_core_target): Delete.
5331 (core_file_command): Moved from corefile.c. Check exec_bfd
5332 instead of the_core_target. Use target_detach instead of calling
5333 into the_core_target directly.
5334 (maybe_say_no_core_file_now): New.
5335 (core_target::detach): Use it.
5336 (_initialize_corelow): Remove references to the_core_target.
5337 * gdbcore.h (the_core_target): Delete.
5338
5339 2018-05-11 Tom Tromey <tromey@redhat.com>
5340 Pedro Alves <palves@redhat.com>
5341
5342 * corefile.c (core_bfd): Remove.
5343 * gdbcore.h (core_bfd): Now a macro.
5344 * progspace.h (struct program_space) <cbfd>: New field.
5345
5346 2018-05-11 Tom Tromey <tom@tromey.com>
5347
5348 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5349 gdb::def_vector.
5350
5351 2018-05-10 Tom Tromey <tom@tromey.com>
5352
5353 * configure: Rebuild.
5354 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5355
5356 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5357
5358 PR server/23158:
5359 * regformats/regdat.sh: Adjust script, following the addition
5360 of the new expedite_regs parameter to init_target_desc.
5361
5362 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
5363
5364 PR gdb/23127
5365 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5366 set_gdbarch_significant_addr_bit.
5367 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5368 set_gdbarch_significant_addr_bit.
5369 * utils.c (address_significant): Update to sign extend addr.
5370
5371 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5372
5373 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5374 (xtensa_linux_init_abi): Limit tdep->num_regs by
5375 tdep->num_nopriv_regs.
5376 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5377 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5378 not initialized.
5379
5380 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5381
5382 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5383
5384 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5387 (I387_MXCSR_INIT_VAL): New constant.
5388 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5389 buffer if it was supplied by the inferior.
5390 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5391 (i387_xsave_get_clear_bv): New function.
5392 (i387_supply_xsave): Only read x87 control registers from the
5393 xsave buffer if the feature is enabled, and the state will have
5394 been written, otherwise, provide a suitable default.
5395 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5396 including x87 control registers. Update control registers if they
5397 have changed from the default value, and mark features as enabled
5398 as required.
5399 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5400
5401 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5402
5403 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5404
5405 2018-05-07 Tom Tromey <tom@tromey.com>
5406
5407 * configure: Rebuild.
5408 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5409
5410 2018-05-07 Tom Tromey <tom@tromey.com>
5411
5412 PR tdep/20362:
5413 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5414 bit. Use correct value for VDIV.
5415
5416 2018-05-04 Tom Tromey <tom@tromey.com>
5417
5418 * configure: Rebuild.
5419 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5420
5421 2018-05-04 Tom Tromey <tom@tromey.com>
5422
5423 * linux-record.c (record_linux_system_call) <case
5424 RECORD_SYS_RECVFROM>: Add "break".
5425
5426 2018-05-04 Tom Tromey <tom@tromey.com>
5427
5428 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5429 Add missing "break".
5430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5431 Add missing "break".
5432
5433 2018-05-04 Tom Tromey <tom@tromey.com>
5434
5435 * rs6000-tdep.c (ppc_process_record_op4)
5436 (ppc_process_record_op63): Add fall-through comment.
5437
5438 2018-05-04 Tom Tromey <tom@tromey.com>
5439
5440 * i386-tdep.c (i386_process_record): Add fall-through comment.
5441
5442 2018-05-04 Tom Tromey <tom@tromey.com>
5443
5444 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
5445 comment.
5446
5447 2018-05-04 Tom Tromey <tom@tromey.com>
5448
5449 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
5450 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
5451 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
5452 comment.
5453 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
5454 comment.
5455 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
5456 comment.
5457
5458 2018-05-04 Tom Tromey <tom@tromey.com>
5459
5460 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
5461
5462 2018-05-04 Tom Tromey <tom@tromey.com>
5463
5464 * s390-tdep.c (s390_process_record): Fix fall-through comments.
5465 * xcoffread.c (scan_xcoff_symtab): Move comment later.
5466 * symfile.c (section_is_mapped): Fix fall-through comment.
5467 * stabsread.c (define_symbol, read_member_functions): Fix
5468 fall-through comment.
5469 * s390-linux-tdep.c (s390_process_record): Fix fall-through
5470 comment.
5471 * remote.c (remote_wait_as): Fix fall-through comment.
5472 * p-exp.y (yylex): Fix fall-through comment.
5473 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
5474 comment.
5475 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
5476 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
5477 * jv-exp.y (yylex): Fix fall-through comment.
5478 * go-exp.y (lex_one_token): Fix fall-through comment.
5479 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
5480 fall-through comment.
5481 * f-exp.y (yylex): Fix fall-through comment.
5482 * dwarf2read.c (process_die): Fix fall-through comments.
5483 * dbxread.c (process_one_symbol): Fix fall-through comment.
5484 * d-exp.y (lex_one_token): Fix fall-through comment.
5485 * cp-name-parser.y (yylex): Fix fall-through comment.
5486 * coffread.c (coff_symtab_read): Fix fall-through comment.
5487 * c-exp.y (lex_one_token): Fix fall-through comment.
5488 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
5489 comment.
5490 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
5491 comment.
5492
5493 2018-05-04 Tom Tromey <tom@tromey.com>
5494
5495 PR python/22730:
5496 * NEWS: Mention gdb.execute change.
5497 * gdbcmd.h (execute_control_command): Don't declare.
5498 * python/python.c (execute_gdb_command): Use read_command_lines_1,
5499 execute_control_commands, execute_control_commands_to_string.
5500 * cli/cli-script.h (execute_control_commands)
5501 (execute_control_commands_to_string): Declare.
5502 (execute_control_command): Add from_tty parameter.
5503 * cli/cli-script.c (execute_control_commands)
5504 (execute_control_commands_to_string): New functions.
5505 (execute_user_command): Use execute_control_commands.
5506 (execute_control_command_1): Add "from_tty" parameter. Update.
5507 (execute_control_command): Likewise.
5508
5509 2018-05-04 Tom Tromey <tom@tromey.com>
5510
5511 PR python/22731:
5512 * NEWS: Mention that breakpoint commands are writable.
5513 * python/py-breakpoint.c (bppy_set_commands): New function.
5514 (breakpoint_object_getset) <"commands">: Use it.
5515
5516 2018-05-04 Tom Tromey <tom@tromey.com>
5517
5518 * tracepoint.c (actions_command): Update.
5519 * mi/mi-cmd-break.c (mi_command_line_array)
5520 (mi_command_line_array_cnt, mi_command_line_array_ptr)
5521 (mi_read_next_line): Remove.
5522 (mi_cmd_break_commands): Update.
5523 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
5524 function_view.
5525 * cli/cli-script.c (get_command_line): Update.
5526 (process_next_line): Use function_view. Constify.
5527 (recurse_read_control_structure, read_command_lines)
5528 (read_command_lines_1): Change argument types to function_view.
5529 (do_define_command, document_command): Update.
5530 * breakpoint.h (check_tracepoint_command): Don't declare.
5531 * breakpoint.c (check_tracepoint_command): Remove.
5532 (commands_command_1, create_tracepoint_from_upload): Update.
5533
5534 2018-05-04 Tom Tromey <tom@tromey.com>
5535
5536 PR gdb/11750:
5537 * cli/cli-script.h (enum command_control_type) <define_control>:
5538 New constant.
5539 * cli/cli-script.c (multi_line_command_p): Handle define_control.
5540 (build_command_line, execute_control_command_1)
5541 (process_next_line): Likewise.
5542 (do_define_command): New function, extracted from define_command.
5543 (define_command): Use it.
5544
5545 2018-05-04 Tom Tromey <tom@tromey.com>
5546
5547 * tracepoint.c (actions_command): Update.
5548 * cli/cli-script.h (read_command_lines): Update.
5549 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
5550 (MAX_TMPBUF): Remove define.
5551 (define_command): Use string_printf.
5552 (document_command): Likewise.
5553 * breakpoint.c (commands_command_1): Update.
5554
5555 2018-05-04 Tom Tromey <tom@tromey.com>
5556
5557 * top.c (execute_command): Update.
5558 * cli/cli-script.h (print_command_lines): Now varargs.
5559 * cli/cli-script.c (print_command_lines): Now varargs.
5560 (execute_control_command_1) <case while_control, case if_control>:
5561 Update.
5562
5563 2018-05-04 Tom Tromey <tom@tromey.com>
5564
5565 * tracepoint.c (all_tracepoint_actions): Rename from
5566 all_tracepoint_actions_and_cleanup. Change return type.
5567 (actions_command, encode_actions_1, encode_actions)
5568 (trace_dump_actions, tdump_command): Update.
5569 * remote.c (remote_download_command_source): Update.
5570 * python/python.c (gdbpy_eval_from_control_command)
5571 (python_command, python_interactive_command): Update.
5572 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
5573 * guile/guile.c (guile_command)
5574 (gdbscm_eval_from_control_command, guile_command): Update.
5575 * compile/compile.c (compile_code_command)
5576 (compile_print_command, compile_to_object): Update.
5577 * cli/cli-script.h (struct command_lines_deleter): New.
5578 (counted_command_line): New typedef.
5579 (struct command_line): Add constructor, destructor.
5580 <body_list>: Remove.
5581 <body_list_0, body_list_1>: New members.
5582 (command_line_up): Remove typedef.
5583 (read_command_lines, read_command_lines_1, get_command_line):
5584 Update.
5585 (copy_command_lines): Don't declare.
5586 * cli/cli-script.c (build_command_line): Use "new".
5587 (get_command_line): Return counted_command_line.
5588 (print_command_lines, execute_user_command)
5589 (execute_control_command_1, while_command, if_command): Update.
5590 (realloc_body_list): Remove.
5591 (process_next_line, recurse_read_control_structure): Update.
5592 (read_command_lines, read_command_lines_1): Return counted_command_line.
5593 (free_command_lines): Use "delete".
5594 (copy_command_lines): Remove.
5595 (define_command, document_command, show_user_1): Update.
5596 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
5597 a counted_command_line.
5598 * breakpoint.h (counted_command_line): Remove typedef.
5599 (breakpoint_set_commands): Update.
5600 * breakpoint.c (check_no_tracepoint_commands)
5601 (validate_commands_for_breakpoint): Update.
5602 (breakpoint_set_commands): Change commands to be a
5603 counted_command_line.
5604 (commands_command_1, update_dprintf_command_list)
5605 (create_tracepoint_from_upload): Update.
5606
5607 2018-05-04 Tom Tromey <tom@tromey.com>
5608
5609 * cli/cli-decode.h (cmd_list_element): New constructor.
5610 (~cmd_list_element): New destructor.
5611 (struct cmd_list_element): Add initializers.
5612 * cli/cli-decode.c (do_add_cmd): Use "new".
5613 (delete_cmd): Use "delete".
5614
5615 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Pedro Alves <palves@redhat.com>
5617
5618 PR breakpoints/19806 and support for PR external/20207.
5619 * NEWS: Mention Aarch64 watchpoint improvements.
5620 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
5621 watchpoints and PR external/20207 watchpoints.
5622 * nat/aarch64-linux-hw-point.c
5623 (kernel_supports_any_contiguous_range): New.
5624 (aarch64_watchpoint_offset): New.
5625 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
5626 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
5627 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
5628 (aarch64_align_watchpoint): New parameters aligned_offset_p and
5629 next_addr_orig_p. Support PR external/20207 watchpoints.
5630 (aarch64_downgrade_regs): New.
5631 (aarch64_dr_state_insert_one_point): New parameters offset and
5632 addr_orig.
5633 (aarch64_dr_state_remove_one_point): Likewise.
5634 (aarch64_handle_breakpoint): Update caller.
5635 (aarch64_handle_aligned_watchpoint): Likewise.
5636 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
5637 aligned_offset.
5638 (aarch64_linux_set_debug_regs): Remove const from state. Call
5639 aarch64_downgrade_regs.
5640 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
5641 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
5642 (DR_CONTROL_MASK): ... this.
5643 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
5644 (unsigned int aarch64_watchpoint_offset): New prototype.
5645 (aarch64_linux_set_debug_regs): Remove const from state.
5646 * utils.c (align_up, align_down): Move to ...
5647 * common/common-utils.c (align_up, align_down): ... here.
5648 * utils.h (align_up, align_down): Move to ...
5649 * common/common-utils.h (align_up, align_down): ... here.
5650
5651 2018-05-04 Joel Brobecker <brobecker@adacore.com>
5652
5653 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
5654 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
5655 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
5656 Re-implement to match the ABI as summarized in GCC's
5657 gcc/config/sparc/sparc.c. All callers updated.
5658 (sparc32_store_arguments): Remove assertion.
5659
5660 2018-05-04 Tom Tromey <tom@tromey.com>
5661
5662 * printcmd.c: Don't include tui.h.
5663 (decode_format): Use skip_spaces.
5664
5665 2018-05-04 Tom Tromey <tom@tromey.com>
5666
5667 PR gdb/22619:
5668 * printcmd.c (last_count): New global.
5669 (x_command): Use saved count when repeating.
5670
5671 2018-05-04 Tom Tromey <tom@tromey.com>
5672
5673 * nto-procfs.c (do_closedir_cleanup): Remove.
5674 (procfs_pidlist): Use gdb_dir_up.
5675 * procfs.c (do_closedir_cleanup): Remove.
5676 (proc_update_threads): Use gdb_dir_up.
5677 * common/filestuff.h (struct gdb_dir_deleter): New.
5678 (gdb_dir_up): New typedef.
5679
5680 2018-05-04 Tom Tromey <tom@tromey.com>
5681
5682 * ada-lang.c (print_mention_exception): Use std::string.
5683
5684 2018-05-04 Tom Tromey <tom@tromey.com>
5685
5686 * ada-lang.c (create_excep_cond_exprs): Update.
5687 (ada_exception_catchpoint_cond_string): Use std::string.
5688
5689 2018-05-04 Tom Tromey <tom@tromey.com>
5690
5691 * ada-lang.c (xget_renaming_scope): Return std::string.
5692 (old_renaming_is_invisible): Update.
5693
5694 2018-05-04 Tom Tromey <tom@tromey.com>
5695
5696 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
5697 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
5698
5699 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5700
5701 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
5702
5703 2018-05-04 Tom Tromey <tom@tromey.com>
5704
5705 * remote.c (remote_query_supported_append): Change type.
5706 (remote_check_symbols): Update.
5707
5708 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
5709
5710 PR gdb/11420
5711 * configure.ac: Prepend libpython.
5712 * python/python-config.py: Likewise.
5713 * configure: Regenerate.
5714
5715 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
5716
5717 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
5718
5719 2018-05-03 Pedro Alves <palves@redhat.com>
5720
5721 * s390-linux-nat.c
5722 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
5723 override. Write 'true' instead of '1'.
5724 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
5725 declaration.
5726
5727 2018-05-02 Pedro Alves <palves@redhat.com>
5728
5729 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
5730 add_inf_child_target.
5731 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
5732 add_inf_child_target.
5733 * aix-thread.c (aix_thread_target_info): New.
5734 (aix_thread_target) <shortname, longname, doc>: Delete.
5735 <info>: New.
5736 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
5737 add_inf_child_target.
5738 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
5739 add_inf_child_target.
5740 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
5741 add_inf_child_target.
5742 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
5743 add_inf_child_target.
5744 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
5745 add_inf_child_target.
5746 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
5747 add_inf_child_target.
5748 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
5749 add_inf_child_target.
5750 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
5751 add_inf_child_target.
5752 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
5753 add_inf_child_target.
5754 * bfd-target.c (target_bfd_target_info): New.
5755 (target_bfd) <shortname, longname, doc>: Delete.
5756 <info>: New.
5757 * bsd-kvm.c (bsd_kvm_target_info): New.
5758 (bsd_kvm_target) <shortname, longname, doc>: Delete.
5759 <info>: New.
5760 (bsd_kvm_target::open): Rename to ...
5761 (bsd_kvm_target_open): ... this. Adjust.
5762 * bsd-uthread.c (bsd_uthread_target_info): New.
5763 (bsd_uthread_target) <shortname, longname, doc>: Delete.
5764 <info>: New.
5765 * corefile.c (core_file_command): Adjust.
5766 * corelow.c (core_target_info): New.
5767 (core_target) <shortname, longname, doc>: Delete.
5768 <info>: New.
5769 (core_target::open): Rename to ...
5770 (core_target_open): ... this. Adjust.
5771 * ctf.c (ctf_target_info): New.
5772 (ctf_target) <shortname, longname, doc>: Delete.
5773 <info>: New.
5774 (ctf_target::open): Rename to ...
5775 (ctf_target_open): ... this.
5776 (_initialize_ctf): Adjust.
5777 * exec.c (exec_target_info): New.
5778 (exec_target) <shortname, longname, doc>: Delete.
5779 <info>: New.
5780 (exec_target::open): Rename to ...
5781 (exec_target_open): ... this.
5782 * gdbcore.h (core_target_open): Declare.
5783 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
5784 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
5785 add_inf_child_target.
5786 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
5787 add_inf_child_target.
5788 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
5789 add_inf_child_target.
5790 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
5791 add_inf_child_target.
5792 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
5793 add_inf_child_target.
5794 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
5795 add_inf_child_target.
5796 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
5797 add_inf_child_target.
5798 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
5799 add_inf_child_target.
5800 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
5801 add_inf_child_target.
5802 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
5803 add_inf_child_target.
5804 * inf-child.c (inf_child_target_info): New.
5805 (inf_child_target::info): New.
5806 (inf_child_open_target): Remove 'target' parameter. Use
5807 get_native_target instead.
5808 (inf_child_target::open): Delete.
5809 (add_inf_child_target): New.
5810 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
5811 Delete.
5812 <info>: New.
5813 (add_inf_child_target): Declare.
5814 (inf_child_open_target): Declare.
5815 * linux-thread-db.c (thread_db_target_info): New.
5816 (thread_db_target) <shortname, longname, doc>: Delete.
5817 <info>: New.
5818 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
5819 add_inf_child_target.
5820 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
5821 add_inf_child_target.
5822 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
5823 add_inf_child_target.
5824 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
5825 add_inf_child_target.
5826 * make-target-delegates (print_class): Adjust.
5827 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
5828 add_inf_child_target.
5829 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
5830 add_inf_child_target.
5831 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
5832 add_inf_child_target.
5833 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
5834 add_inf_child_target.
5835 * nto-procfs.c (nto_native_target_info): New.
5836 (nto_procfs_target_native) <shortname, longname, doc>:
5837 Delete.
5838 <info>: New.
5839 (nto_procfs_target_info): New.
5840 (nto_procfs_target_procfs) <shortname, longname, doc>:
5841 Delete.
5842 <info>: New.
5843 (init_procfs_targets): Adjust.
5844 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
5845 add_inf_child_target.
5846 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
5847 add_inf_child_target.
5848 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
5849 add_inf_child_target.
5850 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
5851 add_inf_child_target.
5852 * ravenscar-thread.c (ravenscar_target_info): New.
5853 (ravenscar_thread_target) <shortname, longname, doc>:
5854 Delete.
5855 <info>: New.
5856 * record-btrace.c (record_btrace_target_info):
5857 (record_btrace_target) <shortname, longname, doc>: Delete.
5858 <info>: New.
5859 (record_btrace_target::open): Rename to ...
5860 (record_btrace_target_open): ... this. Adjust.
5861 * record-full.c (record_longname, record_doc): New.
5862 (record_full_base_target) <shortname, longname, doc>: Delete.
5863 <info>: New.
5864 (record_full_target_info): New.
5865 (record_full_target): <shortname>: Delete.
5866 <info>: New.
5867 (record_full_core_open_1, record_full_open_1): Update comments.
5868 (record_full_base_target::open): Rename to ...
5869 (record_full_open): ... this.
5870 (cmd_record_full_restore): Update.
5871 (_initialize_record_full): Update.
5872 * remote-sim.c (remote_sim_target_info): New.
5873 (gdbsim_target) <shortname, longname, doc>: Delete.
5874 <info>: New.
5875 (gdbsim_target::open): Rename to ...
5876 (gdbsim_target_open): ... this.
5877 (_initialize_remote_sim): Adjust.
5878 * remote.c (remote_doc): New.
5879 (remote_target_info): New.
5880 (remote_target) <shortname, longname, doc>: Delete.
5881 <info>: New.
5882 (extended_remote_target_info): New.
5883 (extended_remote_target) <shortname, longname, doc>: Delete.
5884 <info>: New.
5885 (remote_target::open_1): Make static. Adjust.
5886 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
5887 * s390-linux-nat.c (_initialize_s390_nat): Use
5888 add_inf_child_target.
5889 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
5890 add_inf_child_target.
5891 * sol-thread.c (thread_db_target_info): New.
5892 (sol_thread_target) <shortname, longname, doc>: Delete.
5893 <info>: New.
5894 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
5895 add_inf_child_target.
5896 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
5897 add_inf_child_target.
5898 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
5899 add_inf_child_target.
5900 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
5901 add_inf_child_target.
5902 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
5903 add_inf_child_target.
5904 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
5905 add_inf_child_target.
5906 * spu-linux-nat.c (_initialize_spu_nat): Use
5907 add_inf_child_target.
5908 * spu-multiarch.c (spu_multiarch_target_info): New.
5909 (spu_multiarch_target) <shortname, longname, doc>: Delete.
5910 <info>: New.
5911 * target-delegates.c: Regenerate.
5912 * target.c: Include <unordered_map>.
5913 (target_ops_p): Delete.
5914 (DEF_VEC_P(target_ops_p)): Delete.
5915 (target_factories): New.
5916 (test_target_info): New.
5917 (test_target_ops::info): New.
5918 (open_target): Adjust to use target_factories.
5919 (add_target_with_completer): Rename to ...
5920 (add_target): ... this. Change prototype. Register target_info
5921 and open callback in target_factories. Register target_info in
5922 command context instead of target_ops.
5923 (add_target): Delete old implementation.
5924 (add_deprecated_target_alias): Change prototype. Adjust.
5925 (the_native_target): New.
5926 (set_native_target, get_native_target): New.
5927 (find_default_run_target): Use the_native_target.
5928 (find_attach_target, find_run_target): Simplify.
5929 (target_ops::open): Delete.
5930 (dummy_target_info): New.
5931 (dummy_target::shortname, dummy_target::longname)
5932 (dummy_target::doc): Delete.
5933 (dummy_target::info): New.
5934 (debug_target::shortname, debug_target::longname)
5935 (debug_target::doc): Delete.
5936 (debug_target::info): New.
5937 * target.h (struct target_info): New.
5938 (target_ops::~target_ops): Add comment.
5939 (target_ops::info): New.
5940 (target_ops::shortname, target_ops::longname, target_ops::doc): No
5941 longer virtual. Implement in terms of target_info.
5942 (set_native_target, get_native_target): Declare.
5943 (target_open_ftype): New.
5944 (add_target, add_target_with_completer)
5945 (add_deprecated_target_alias): Change prototype.
5946 (test_target) <shortname, longname, doc>: Delete.
5947 <info>: New.
5948 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
5949 add_inf_child_target.
5950 * tracefile-tfile.c (tfile_target_info): New.
5951 (tfile_target) <shortname, longname, doc>: Delete.
5952 <info>: New.
5953 (tfile_target::open): Rename to ...
5954 (tfile_target_open): ... this.
5955 (_initialize_tracefile_tfile): Adjust.
5956 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
5957 add_inf_child_target.
5958 * windows-nat.c (_initialize_windows_nat): Use
5959 add_inf_child_target.
5960 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
5961 add_inf_child_target.
5962
5963 2018-05-02 Pedro Alves <palves@redhat.com>
5964
5965 * linux-nat.h (linux_nat_target) <low_new_thread,
5966 low_delete_thread, low_new_fork, low_forget_process,
5967 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
5968 New virtual methods.
5969 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5970 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
5971 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
5972 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5973 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
5974 Delete.
5975 * linux-fork.c (delete_fork): Adjust to call low method.
5976 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
5977 (linux_nat_new_fork, linux_nat_forget_process_hook)
5978 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
5979 (linux_nat_status_is_event):
5980 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
5981 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
5982 to call low method.
5983 (sigtrap_is_event): Rename to ...
5984 (linux_nat_target::low_status_is_event): ... this.
5985 (linux_nat_set_status_is_event): Delete.
5986 (save_stop_reason, linux_nat_wait_1)
5987 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
5988 low methods.
5989 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
5990 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5991 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
5992 (linux_nat_set_prepare_to_resume): Delete.
5993 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
5994 low virtual methods.
5995 * amd64-linux-nat.c: Likewise.
5996 * arm-linux-nat.c: Likewise.
5997 * i386-linux-nat.c: Likewise.
5998 * ia64-linux-nat.c: Likewise.
5999 * mips-linux-nat.c: Likewise.
6000 * ppc-linux-nat.c: Likewise.
6001 * s390-linux-nat.c: Likewise.
6002 * sparc64-linux-nat.c: Likewise.
6003 * x86-linux-nat.c: Likewise.
6004 * x86-linux-nat.h: Include "nat/x86-linux.h".
6005 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6006 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6007 Override methods.
6008
6009 2018-05-02 Pedro Alves <palves@redhat.com>
6010
6011 * target.h (target_ops)
6012 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6013 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6014 stopped_by_watchpoint, have_continuable_watchpoint,
6015 stopped_data_address, watchpoint_addr_within_range,
6016 can_accel_watchpoint_condition, can_run, thread_alive,
6017 has_all_memory, has_memory, has_stack, has_registers,
6018 has_execution, can_async_p, is_async_p, supports_non_stop,
6019 always_non_stop_p, can_execute_reverse, supports_multi_process,
6020 supports_enable_disable_tracepoint,
6021 supports_disable_randomization, supports_string_tracing,
6022 supports_evaluation_of_breakpoint_conditions,
6023 can_run_breakpoint_commands, filesystem_is_local,
6024 can_download_tracepoint, get_trace_state_variable_value,
6025 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6026 record_is_replaying, record_will_replay,
6027 augmented_libraries_svr4_read>: Adjust to return bool.
6028 * aarch64-linux-nat.c: All implementations adjusted.
6029 * aix-thread.c: All implementations adjusted.
6030 * arm-linux-nat.c: All implementations adjusted.
6031 * breakpoint.c: All implementations adjusted.
6032 * bsd-kvm.c: All implementations adjusted.
6033 * bsd-uthread.c: All implementations adjusted.
6034 * corelow.c: All implementations adjusted.
6035 * ctf.c: All implementations adjusted.
6036 * darwin-nat.c: All implementations adjusted.
6037 * darwin-nat.h: All implementations adjusted.
6038 * exec.c: All implementations adjusted.
6039 * fbsd-nat.c: All implementations adjusted.
6040 * fbsd-nat.h: All implementations adjusted.
6041 * gnu-nat.c: All implementations adjusted.
6042 * gnu-nat.h: All implementations adjusted.
6043 * go32-nat.c: All implementations adjusted.
6044 * ia64-linux-nat.c: All implementations adjusted.
6045 * inf-child.c: All implementations adjusted.
6046 * inf-child.h: All implementations adjusted.
6047 * inf-ptrace.c: All implementations adjusted.
6048 * inf-ptrace.h: All implementations adjusted.
6049 * linux-nat.c: All implementations adjusted.
6050 * linux-nat.h: All implementations adjusted.
6051 * mips-linux-nat.c: All implementations adjusted.
6052 * nto-procfs.c: All implementations adjusted.
6053 * ppc-linux-nat.c: All implementations adjusted.
6054 * procfs.c: All implementations adjusted.
6055 * ravenscar-thread.c: All implementations adjusted.
6056 * record-btrace.c: All implementations adjusted.
6057 * record-full.c: All implementations adjusted.
6058 * remote-sim.c: All implementations adjusted.
6059 * remote.c: All implementations adjusted.
6060 * s390-linux-nat.c: All implementations adjusted.
6061 * sol-thread.c: All implementations adjusted.
6062 * spu-multiarch.c: All implementations adjusted.
6063 * target-delegates.c: All implementations adjusted.
6064 * target.c: All implementations adjusted.
6065 * target.h: All implementations adjusted.
6066 * tracefile-tfile.c: All implementations adjusted.
6067 * tracefile.c: All implementations adjusted.
6068 * tracefile.h: All implementations adjusted.
6069 * windows-nat.c: All implementations adjusted.
6070 * x86-linux-nat.h: All implementations adjusted.
6071 * x86-nat.h: All implementations adjusted.
6072
6073 2018-05-02 Pedro Alves <palves@redhat.com>
6074
6075 * make-target-delegates (scan_target_h): Don't trim lines here.
6076 Replace sequences of tabs and/or whitespace with a single
6077 whitespace.
6078 (top level, parsing methods): Trim each line before processing it
6079 here.
6080
6081 2018-05-02 Pedro Alves <palves@redhat.com>
6082 John Baldwin <jhb@freebsd.org>
6083
6084 * target.h (enum strata) <debug_stratum>: New.
6085 (struct target_ops) <all delegation methods>: Replace by C++
6086 virtual methods, and drop "to_" prefix. All references updated
6087 throughout.
6088 <to_shortname, to_longname, to_doc, to_data,
6089 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6090 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6091 virtual methods. All references updated throughout.
6092 <can_attach, supports_terminal_ours, can_create_inferior,
6093 get_thread_control_capabilities, attach_no_wait>: New
6094 virtual methods.
6095 <insert_breakpoint, remove_breakpoint>: Now
6096 TARGET_DEFAULT_NORETURN methods.
6097 <info_proc>: Now returns bool.
6098 <to_magic>: Delete.
6099 (OPS_MAGIC): Delete.
6100 (current_target): Delete. All references replaced by references
6101 to ...
6102 (target_stack): ... this. New.
6103 (target_shortname, target_longname): Adjust.
6104 (target_can_run): Now a function declaration.
6105 (default_child_has_all_memory, default_child_has_memory)
6106 (default_child_has_stack, default_child_has_registers)
6107 (default_child_has_execution): Remove target_ops parameter.
6108 (complete_target_initialization): Delete.
6109 (memory_breakpoint_target): New template class.
6110 (test_target_ops): Refactor as a C++ class with virtual methods.
6111 * make-target-delegates (NAME_PART): Tighten.
6112 (POINTER_PART, CP_SYMBOL): New.
6113 (SIMPLE_RETURN_PART): Reimplement.
6114 (VEC_RETURN_PART): Expect less.
6115 (RETURN_PART, VIRTUAL_PART): New.
6116 (METHOD): Adjust to C++ virtual methods.
6117 (scan_target_h): Remove reference to C99.
6118 (dname): Output "target_ops::" prefix.
6119 (write_function_header): Adjust to output a C++ class method.
6120 (write_declaration): New.
6121 (write_delegator): Adjust to output a C++ class method.
6122 (tdname): Output "dummy_target::" prefix.
6123 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6124 method.
6125 (tdefault_names, debug_names): Delete.
6126 (return_types, tdefaults, styles, argtypes_array): New.
6127 (top level): All methods are delegators.
6128 (print_class): New.
6129 (top level): Print dummy_target and debug_target classes.
6130 * target-delegates.c: Regenerate.
6131 * target-debug.h (target_debug_print_enum_info_proc_what)
6132 (target_debug_print_thread_control_capabilities)
6133 (target_debug_print_thread_info_p): New.
6134 * target.c (dummy_target): Delete.
6135 (the_dummy_target, the_debug_target): New.
6136 (target_stack): Now extern.
6137 (set_targetdebug): Push/unpush debug target.
6138 (default_child_has_all_memory, default_child_has_memory)
6139 (default_child_has_stack, default_child_has_registers)
6140 (default_child_has_execution): Remove target_ops parameter.
6141 (complete_target_initialization): Delete.
6142 (add_target_with_completer): No longer call
6143 complete_target_initialization.
6144 (target_supports_terminal_ours): Use regular delegation.
6145 (update_current_target): Delete.
6146 (push_target): No longer check magic number. Don't call
6147 update_current_target.
6148 (unpush_target): Don't call update_current_target.
6149 (target_is_pushed): No longer check magic number.
6150 (target_require_runnable): Skip for all stratums over
6151 process_stratum.
6152 (target_ops::info_proc): New.
6153 (target_info_proc): Use find_target_at and
6154 find_default_run_target.
6155 (target_supports_disable_randomization): Use regular delegation.
6156 (target_get_osdata): Use find_target_at.
6157 (target_ops::open, target_ops::close, target_ops::can_attach)
6158 (target_ops::attach, target_ops::can_create_inferior)
6159 (target_ops::create_inferior, target_ops::can_run)
6160 (target_can_run): New.
6161 (default_fileio_target): Use regular delegation.
6162 (target_ops::fileio_open, target_ops::fileio_pwrite)
6163 (target_ops::fileio_pread, target_ops::fileio_fstat)
6164 (target_ops::fileio_close, target_ops::fileio_unlink)
6165 (target_ops::fileio_readlink): New.
6166 (target_fileio_open_1, target_fileio_unlink)
6167 (target_fileio_readlink): Always call the target method. Handle
6168 FILEIO_ENOSYS.
6169 (return_zero, return_zero_has_execution): Delete.
6170 (init_dummy_target): Delete.
6171 (dummy_target::dummy_target, dummy_target::shortname)
6172 (dummy_target::longname, dummy_target::doc)
6173 (debug_target::debug_target, debug_target::shortname)
6174 (debug_target::longname, debug_target::doc): New.
6175 (target_supports_delete_record): Use regular delegation.
6176 (setup_target_debug): Delete.
6177 (maintenance_print_target_stack): Skip debug_stratum.
6178 (initialize_targets): Instantiate the_dummy_target and
6179 the_debug_target.
6180 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6181 use target_stack.
6182 (target_auxv_search, fprint_target_auxv): Adjust.
6183 (info_auxv_command): Adjust to use target_stack.
6184 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6185 * exceptions.c (print_flush): Handle a NULL target_stack.
6186 * regcache.c (target_ops_no_register): Refactor as class with
6187 virtual methods.
6188
6189 * exec.c (exec_target): New class.
6190 (exec_ops): Now an exec_target.
6191 (exec_open, exec_close_1, exec_get_section_table)
6192 (exec_xfer_partial, exec_files_info, exec_has_memory)
6193 (exec_make_note_section): Refactor as exec_target methods.
6194 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6195 Delete.
6196 (exec_target::find_memory_regions): New.
6197 (_initialize_exec): Don't call init_exec_ops.
6198 * gdbcore.h (exec_file_clear): Delete.
6199
6200 * corefile.c (core_target): Delete.
6201 (core_file_command): Adjust.
6202 * corelow.c (core_target): New class.
6203 (the_core_target): New.
6204 (core_close): Remove target_ops parameter.
6205 (core_close_cleanup): Adjust.
6206 (core_target::close): New.
6207 (core_open, core_detach, get_core_registers, core_files_info)
6208 (core_xfer_partial, core_thread_alive, core_read_description)
6209 (core_pid_to_str, core_thread_name, core_has_memory)
6210 (core_has_stack, core_has_registers, core_info_proc): Rework as
6211 core_target methods.
6212 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6213 (_initialize_corelow): Initialize the_core_target.
6214 * gdbcore.h (core_target): Delete.
6215 (the_core_target): New.
6216
6217 * ctf.c: (ctf_target): New class.
6218 (ctf_ops): Now a ctf_target.
6219 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6220 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6221 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6222 methods.
6223 (init_ctf_ops): Delete.
6224 (_initialize_ctf): Don't call it.
6225 * tracefile-tfile.c (tfile_target): New class.
6226 (tfile_ops): Now a tfile_target.
6227 (tfile_open, tfile_close, tfile_files_info)
6228 (tfile_get_tracepoint_status, tfile_trace_find)
6229 (tfile_fetch_registers, tfile_xfer_partial)
6230 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6231 Refactor as tfile_target methods.
6232 (tfile_xfer_partial_features): Remove target_ops parameter.
6233 (init_tfile_ops): Delete.
6234 (_initialize_tracefile_tfile): Don't call it.
6235 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6236 (tracefile_has_stack, tracefile_has_registers)
6237 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6238 tracefile_target methods.
6239 (init_tracefile_ops): Delete.
6240 (tracefile_target::tracefile_target): New.
6241 * tracefile.h: Include "target.h".
6242 (tracefile_target): New class.
6243 (init_tracefile_ops): Delete.
6244
6245 * spu-multiarch.c (spu_multiarch_target): New class.
6246 (spu_ops): Now a spu_multiarch_target.
6247 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6248 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6249 (spu_search_memory, spu_mourn_inferior): Refactor as
6250 spu_multiarch_target methods.
6251 (init_spu_ops): Delete.
6252 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6253 complete_target_initialization.
6254
6255 * ravenscar-thread.c (ravenscar_thread_target): New class.
6256 (ravenscar_ops): Now a ravenscar_thread_target.
6257 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6258 (ravenscar_thread_alive, ravenscar_pid_to_str)
6259 (ravenscar_fetch_registers, ravenscar_store_registers)
6260 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6261 (ravenscar_stopped_by_hw_breakpoint)
6262 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6263 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6264 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6265 methods.
6266 (init_ravenscar_thread_ops): Delete.
6267 (_initialize_ravenscar): Remove references to
6268 init_ravenscar_thread_ops and complete_target_initialization.
6269
6270 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6271 (bsd_uthread_target): New class.
6272 (bsd_uthread_ops): Now a bsd_uthread_target.
6273 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6274 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6275 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6276 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6277 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6278 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6279 (bsd_uthread_target): Delete function.
6280 (_initialize_bsd_uthread): Remove reference to
6281 complete_target_initialization.
6282
6283 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6284 (target_bfd): ... this new class.
6285 (target_bfd_xfer_partial, target_bfd_get_section_table)
6286 (target_bfd_close): Refactor as target_bfd methods.
6287 (target_bfd::~target_bfd): New.
6288 (target_bfd_reopen): Adjust.
6289 (target_bfd::close): New.
6290
6291 * record-btrace.c (record_btrace_target): New class.
6292 (record_btrace_ops): Now a record_btrace_target.
6293 (record_btrace_open, record_btrace_stop_recording)
6294 (record_btrace_disconnect, record_btrace_close)
6295 (record_btrace_async, record_btrace_info)
6296 (record_btrace_insn_history, record_btrace_insn_history_range)
6297 (record_btrace_insn_history_from, record_btrace_call_history)
6298 (record_btrace_call_history_range)
6299 (record_btrace_call_history_from, record_btrace_record_method)
6300 (record_btrace_is_replaying, record_btrace_will_replay)
6301 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6302 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6303 (record_btrace_store_registers, record_btrace_prepare_to_store)
6304 (record_btrace_to_get_unwinder)
6305 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6306 (record_btrace_commit_resume, record_btrace_wait)
6307 (record_btrace_stop, record_btrace_can_execute_reverse)
6308 (record_btrace_stopped_by_sw_breakpoint)
6309 (record_btrace_supports_stopped_by_sw_breakpoint)
6310 (record_btrace_stopped_by_hw_breakpoint)
6311 (record_btrace_supports_stopped_by_hw_breakpoint)
6312 (record_btrace_update_thread_list, record_btrace_thread_alive)
6313 (record_btrace_goto_begin, record_btrace_goto_end)
6314 (record_btrace_goto, record_btrace_stop_replaying_all)
6315 (record_btrace_execution_direction)
6316 (record_btrace_prepare_to_generate_core)
6317 (record_btrace_done_generating_core): Refactor as
6318 record_btrace_target methods.
6319 (init_record_btrace_ops): Delete.
6320 (_initialize_record_btrace): Remove reference to
6321 init_record_btrace_ops.
6322 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6323 the execution_direction global.
6324 (record_full_base_target, record_full_target)
6325 (record_full_core_target): New classes.
6326 (record_full_ops): Now a record_full_target.
6327 (record_full_core_ops): Now a record_full_core_target.
6328 (record_full_target::detach, record_full_target::disconnect)
6329 (record_full_core_target::disconnect)
6330 (record_full_target::mourn_inferior, record_full_target::kill):
6331 New.
6332 (record_full_open, record_full_close, record_full_async): Refactor
6333 as methods of the record_full_base_target class.
6334 (record_full_resume, record_full_commit_resume): Refactor
6335 as methods of the record_full_target class.
6336 (record_full_wait, record_full_stopped_by_watchpoint)
6337 (record_full_stopped_data_address)
6338 (record_full_stopped_by_sw_breakpoint)
6339 (record_full_supports_stopped_by_sw_breakpoint)
6340 (record_full_stopped_by_hw_breakpoint)
6341 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6342 methods of the record_full_base_target class.
6343 (record_full_store_registers, record_full_xfer_partial)
6344 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6345 Refactor as methods of the record_full_target class.
6346 (record_full_can_execute_reverse, record_full_get_bookmark)
6347 (record_full_goto_bookmark, record_full_execution_direction)
6348 (record_full_record_method, record_full_info, record_full_delete)
6349 (record_full_is_replaying, record_full_will_replay)
6350 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6351 (record_full_stop_replaying): Refactor as methods of the
6352 record_full_base_target class.
6353 (record_full_core_resume, record_full_core_kill)
6354 (record_full_core_fetch_registers)
6355 (record_full_core_prepare_to_store)
6356 (record_full_core_store_registers, record_full_core_xfer_partial)
6357 (record_full_core_insert_breakpoint)
6358 (record_full_core_remove_breakpoint)
6359 (record_full_core_has_execution): Refactor
6360 as methods of the record_full_core_target class.
6361 (record_full_base_target::supports_delete_record): New.
6362 (init_record_full_ops): Delete.
6363 (init_record_full_core_ops): Delete.
6364 (record_full_save): Refactor as method of the
6365 record_full_base_target class.
6366 (_initialize_record_full): Remove references to
6367 init_record_full_ops and init_record_full_core_ops.
6368
6369 * remote.c (remote_target, extended_remote_target): New classes.
6370 (remote_ops): Now a remote_target.
6371 (extended_remote_ops): Now an extended_remote_target.
6372 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6373 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6374 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6375 (remote_pass_signals, remote_set_syscall_catchpoint)
6376 (remote_program_signals, )
6377 (remote_thread_always_alive): Remove target_ops parameter.
6378 (remote_thread_alive, remote_thread_name)
6379 (remote_update_thread_list, remote_threads_extra_info)
6380 (remote_static_tracepoint_marker_at)
6381 (remote_static_tracepoint_markers_by_strid)
6382 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6383 (remote_open): Refactor as methods of remote_target.
6384 (extended_remote_open, extended_remote_detach)
6385 (extended_remote_attach, extended_remote_post_attach):
6386 (extended_remote_supports_disable_randomization)
6387 (extended_remote_create_inferior): : Refactor as method of
6388 extended_remote_target.
6389 (remote_set_permissions, remote_open_1, remote_detach)
6390 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6391 (remote_resume, remote_commit_resume, remote_stop)
6392 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6393 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6394 (remote_prepare_to_store, remote_store_registers)
6395 (remote_flash_erase, remote_flash_done, remote_files_info)
6396 (remote_kill, remote_mourn, remote_insert_breakpoint)
6397 (remote_remove_breakpoint, remote_insert_watchpoint)
6398 (remote_watchpoint_addr_within_range)
6399 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6400 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6401 (remote_supports_stopped_by_sw_breakpoint)
6402 (remote_stopped_by_hw_breakpoint)
6403 (remote_supports_stopped_by_hw_breakpoint)
6404 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6405 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6406 (remote_verify_memory): Refactor as methods of remote_target.
6407 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6408 parameter.
6409 (remote_xfer_partial, remote_get_memory_xfer_limit)
6410 (remote_search_memory, remote_rcmd, remote_memory_map)
6411 (remote_pid_to_str, remote_get_thread_local_address)
6412 (remote_get_tib_address, remote_read_description): Refactor as
6413 methods of remote_target.
6414 (remote_target::fileio_open, remote_target::fileio_pwrite)
6415 (remote_target::fileio_pread, remote_target::fileio_close): New.
6416 (remote_hostio_readlink, remote_hostio_fstat)
6417 (remote_filesystem_is_local, remote_can_execute_reverse)
6418 (remote_supports_non_stop, remote_supports_disable_randomization)
6419 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6420 (remote_supports_enable_disable_tracepoint)
6421 (remote_supports_string_tracing)
6422 (remote_can_run_breakpoint_commands, remote_trace_init)
6423 (remote_download_tracepoint, remote_can_download_tracepoint)
6424 (remote_download_trace_state_variable, remote_enable_tracepoint)
6425 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6426 (remote_trace_start, remote_get_trace_status)
6427 (remote_get_tracepoint_status, remote_trace_stop)
6428 (remote_trace_find, remote_get_trace_state_variable_value)
6429 (remote_save_trace_data, remote_get_raw_trace_data)
6430 (remote_set_disconnected_tracing, remote_core_of_thread)
6431 (remote_set_circular_trace_buffer, remote_traceframe_info)
6432 (remote_get_min_fast_tracepoint_insn_len)
6433 (remote_set_trace_buffer_size, remote_set_trace_notes)
6434 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6435 (remote_disable_btrace, remote_teardown_btrace)
6436 (remote_read_btrace, remote_btrace_conf)
6437 (remote_augmented_libraries_svr4_read, remote_load)
6438 (remote_pid_to_exec_file, remote_can_do_single_step)
6439 (remote_execution_direction, remote_thread_handle_to_thread_info):
6440 Refactor as methods of remote_target.
6441 (init_remote_ops, init_extended_remote_ops): Delete.
6442 (remote_can_async_p, remote_is_async_p, remote_async)
6443 (remote_thread_events, remote_upload_tracepoints)
6444 (remote_upload_trace_state_variables): Refactor as methods of
6445 remote_target.
6446 (_initialize_remote): Remove references to init_remote_ops and
6447 init_extended_remote_ops.
6448
6449 * remote-sim.c (gdbsim_target): New class.
6450 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
6451 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
6452 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
6453 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
6454 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
6455 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
6456 Refactor as methods of gdbsim_target.
6457 (gdbsim_ops): Now a gdbsim_target.
6458 (init_gdbsim_ops): Delete.
6459 (gdbsim_cntrl_c): Adjust.
6460 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
6461
6462 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
6463 (the_amd64_linux_nat_target): New.
6464 (amd64_linux_fetch_inferior_registers)
6465 (amd64_linux_store_inferior_registers): Refactor as methods of
6466 amd64_linux_nat_target.
6467 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
6468 * i386-linux-nat.c: Don't include "linux-nat.h".
6469 (i386_linux_nat_target): New class.
6470 (the_i386_linux_nat_target): New.
6471 (i386_linux_fetch_inferior_registers)
6472 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
6473 as methods of i386_linux_nat_target.
6474 (_initialize_i386_linux_nat): Adjust. Set linux_target.
6475 * inf-child.c (inf_child_ops): Delete.
6476 (inf_child_fetch_inferior_registers)
6477 (inf_child_store_inferior_registers): Delete.
6478 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
6479 methods of inf_child_target.
6480 (inf_child_target::supports_terminal_ours)
6481 (inf_child_target::terminal_init)
6482 (inf_child_target::terminal_inferior)
6483 (inf_child_target::terminal_ours_for_output)
6484 (inf_child_target::terminal_ours, inf_child_target::interrupt)
6485 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
6486 New.
6487 (inf_child_open, inf_child_disconnect, inf_child_close)
6488 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
6489 (inf_child_post_startup_inferior, inf_child_can_run)
6490 (inf_child_pid_to_exec_file): Refactor as methods of
6491 inf_child_target.
6492 (inf_child_follow_fork): Delete.
6493 (inf_child_target::can_create_inferior)
6494 (inf_child_target::can_attach): New.
6495 (inf_child_target::has_all_memory, inf_child_target::has_memory)
6496 (inf_child_target::has_stack, inf_child_target::has_registers)
6497 (inf_child_target::has_execution): New.
6498 (inf_child_fileio_open, inf_child_fileio_pwrite)
6499 (inf_child_fileio_pread, inf_child_fileio_fstat)
6500 (inf_child_fileio_close, inf_child_fileio_unlink)
6501 (inf_child_fileio_readlink, inf_child_use_agent)
6502 (inf_child_can_use_agent): Refactor as methods of
6503 inf_child_target.
6504 (return_zero, inf_child_target): Delete.
6505 (inf_child_target::inf_child_target): New.
6506 * inf-child.h: Include "target.h".
6507 (inf_child_target): Delete function prototype.
6508 (inf_child_target): New class.
6509 (inf_child_open_target, inf_child_mourn_inferior)
6510 (inf_child_maybe_unpush_target): Delete.
6511 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
6512 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
6513 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
6514 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
6515 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
6516 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
6517 (inf_ptrace_wait, inf_ptrace_xfer_partial)
6518 (inf_ptrace_thread_alive, inf_ptrace_files_info)
6519 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
6520 methods of inf_ptrace_target.
6521 (inf_ptrace_target): Delete function.
6522 * inf-ptrace.h: Include "inf-child.h".
6523 (inf_ptrace_target): Delete function declaration.
6524 (inf_ptrace_target): New class.
6525 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
6526 * linux-nat.c (linux_target): New.
6527 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
6528 (linux_nat_target::~linux_nat_target): New.
6529 (linux_child_post_attach, linux_child_post_startup_inferior)
6530 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
6531 (linux_child_remove_fork_catchpoint)
6532 (linux_child_insert_vfork_catchpoint)
6533 (linux_child_remove_vfork_catchpoint)
6534 (linux_child_insert_exec_catchpoint)
6535 (linux_child_remove_exec_catchpoint)
6536 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
6537 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
6538 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
6539 (linux_nat_stopped_data_address)
6540 (linux_nat_stopped_by_sw_breakpoint)
6541 (linux_nat_supports_stopped_by_sw_breakpoint)
6542 (linux_nat_stopped_by_hw_breakpoint)
6543 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
6544 (linux_nat_kill, linux_nat_mourn_inferior)
6545 (linux_nat_xfer_partial, linux_nat_thread_alive)
6546 (linux_nat_update_thread_list, linux_nat_pid_to_str)
6547 (linux_nat_thread_name, linux_child_pid_to_exec_file)
6548 (linux_child_static_tracepoint_markers_by_strid)
6549 (linux_nat_is_async_p, linux_nat_can_async_p)
6550 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
6551 (linux_nat_supports_multi_process)
6552 (linux_nat_supports_disable_randomization, linux_nat_async)
6553 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
6554 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
6555 (linux_nat_fileio_open, linux_nat_fileio_readlink)
6556 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
6557 methods of linux_nat_target.
6558 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
6559 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
6560 parameter.
6561 (check_stopped_by_watchpoint): Adjust.
6562 (linux_xfer_partial): Delete.
6563 (linux_target_install_ops, linux_target, linux_nat_add_target):
6564 Delete.
6565 (linux_nat_target::linux_nat_target): New.
6566 * linux-nat.h: Include "inf-ptrace.h".
6567 (linux_nat_target): New.
6568 (linux_target, linux_target_install_ops, linux_nat_add_target):
6569 Delete function declarations.
6570 (linux_target): Declare global.
6571 * linux-thread-db.c (thread_db_target): New.
6572 (thread_db_target::thread_db_target): New.
6573 (thread_db_ops): Delete.
6574 (the_thread_db_target): New.
6575 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
6576 (thread_db_update_thread_list, thread_db_pid_to_str)
6577 (thread_db_extra_thread_info)
6578 (thread_db_thread_handle_to_thread_info)
6579 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
6580 (thread_db_resume): Refactor as methods of thread_db_target.
6581 (init_thread_db_ops): Delete.
6582 (_initialize_thread_db): Remove reference to init_thread_db_ops.
6583 * x86-linux-nat.c: Don't include "linux-nat.h".
6584 (super_post_startup_inferior): Delete.
6585 (x86_linux_nat_target::~x86_linux_nat_target): New.
6586 (x86_linux_child_post_startup_inferior)
6587 (x86_linux_read_description, x86_linux_enable_btrace)
6588 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
6589 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
6590 methods of x86_linux_nat_target.
6591 (x86_linux_create_target): Delete. Bits folded ...
6592 (x86_linux_add_target): ... here. Now takes a linux_nat_target
6593 pointer.
6594 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
6595 (x86_linux_nat_target): New class.
6596 (x86_linux_create_target): Delete.
6597 (x86_linux_add_target): Now takes a linux_nat_target pointer.
6598 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
6599 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
6600 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
6601 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
6602 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
6603 make extern.
6604 (x86_use_watchpoints): Delete.
6605 * x86-nat.h: Include "breakpoint.h" and "target.h".
6606 (x86_use_watchpoints): Delete.
6607 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
6608 (x86_stopped_by_watchpoint, x86_stopped_data_address)
6609 (x86_insert_watchpoint, x86_remove_watchpoint)
6610 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
6611 (x86_stopped_by_hw_breakpoint): New declarations.
6612 (x86_nat_target): New template class.
6613
6614 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
6615 (the_ppc_linux_nat_target): New.
6616 (ppc_linux_fetch_inferior_registers)
6617 (ppc_linux_can_use_hw_breakpoint)
6618 (ppc_linux_region_ok_for_hw_watchpoint)
6619 (ppc_linux_ranged_break_num_registers)
6620 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
6621 (ppc_linux_insert_mask_watchpoint)
6622 (ppc_linux_remove_mask_watchpoint)
6623 (ppc_linux_can_accel_watchpoint_condition)
6624 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
6625 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
6626 (ppc_linux_watchpoint_addr_within_range)
6627 (ppc_linux_masked_watch_num_registers)
6628 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
6629 (ppc_linux_read_description): Refactor as methods of
6630 ppc_linux_nat_target.
6631 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
6632
6633 * procfs.c (procfs_xfer_partial): Delete forward declaration.
6634 (procfs_target): New class.
6635 (the_procfs_target): New.
6636 (procfs_target): Delete function.
6637 (procfs_auxv_parse, procfs_attach, procfs_detach)
6638 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
6639 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
6640 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
6641 (procfs_create_inferior, procfs_update_thread_list)
6642 (procfs_thread_alive, procfs_pid_to_str)
6643 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
6644 (procfs_stopped_data_address, procfs_insert_watchpoint)
6645 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
6646 (proc_find_memory_regions, procfs_info_proc)
6647 (procfs_make_note_section): Refactor as methods of procfs_target.
6648 (_initialize_procfs): Adjust.
6649 * sol-thread.c (sol_thread_target): New class.
6650 (sol_thread_ops): Now a sol_thread_target.
6651 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
6652 (sol_thread_fetch_registers, sol_thread_store_registers)
6653 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
6654 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
6655 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
6656 (init_sol_thread_ops): Delete.
6657 (_initialize_sol_thread): Adjust. Remove references to
6658 init_sol_thread_ops and complete_target_initialization.
6659
6660 * windows-nat.c (windows_nat_target): New class.
6661 (windows_fetch_inferior_registers)
6662 (windows_store_inferior_registers, windows_resume, windows_wait)
6663 (windows_attach, windows_detach, windows_pid_to_exec_file)
6664 (windows_files_info, windows_create_inferior)
6665 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
6666 (windows_close, windows_pid_to_str, windows_xfer_partial)
6667 (windows_get_tib_address, windows_get_ada_task_ptid)
6668 (windows_thread_name, windows_thread_alive): Refactor as
6669 windows_nat_target methods.
6670 (do_initial_windows_stuff): Adjust.
6671 (windows_target): Delete function.
6672 (_initialize_windows_nat): Adjust.
6673
6674 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
6675 (darwin_mourn_inferior, darwin_kill_inferior)
6676 (darwin_create_inferior, darwin_attach, darwin_detach)
6677 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
6678 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
6679 (darwin_supports_multi_process): Refactor as darwin_nat_target
6680 methods.
6681 (darwin_resume_to, darwin_files_info): Delete.
6682 (_initialize_darwin_inferior): Rename to ...
6683 (_initialize_darwin_nat): ... this. Adjust to C++ification.
6684 * darwin-nat.h: Include "inf-child.h".
6685 (darwin_nat_target): New class.
6686 (darwin_complete_target): Delete.
6687 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
6688 (darwin_target): New.
6689 (i386_darwin_fetch_inferior_registers)
6690 (i386_darwin_store_inferior_registers): Refactor as methods of
6691 darwin_nat_target.
6692 (darwin_complete_target): Delete, with ...
6693 (_initialize_i386_darwin_nat): ... bits factored out here.
6694
6695 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
6696 (the_alpha_linux_nat_target): New.
6697 (alpha_linux_register_u_offset): Refactor as
6698 alpha_linux_nat_target method.
6699 (_initialize_alpha_linux_nat): Adjust.
6700 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
6701 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
6702 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
6703 methods of linux_nat_trad_target.
6704 (linux_trad_target): Delete.
6705 * linux-nat-trad.h (linux_trad_target): Delete function.
6706 (linux_nat_trad_target): New class.
6707 * mips-linux-nat.c (mips_linux_nat_target): New class.
6708 (super_fetch_registers, super_store_registers, super_close):
6709 Delete.
6710 (the_mips_linux_nat_target): New.
6711 (mips64_linux_regsets_fetch_registers)
6712 (mips64_linux_regsets_store_registers)
6713 (mips64_linux_fetch_registers, mips64_linux_store_registers)
6714 (mips_linux_register_u_offset, mips_linux_read_description)
6715 (mips_linux_can_use_hw_breakpoint)
6716 (mips_linux_stopped_by_watchpoint)
6717 (mips_linux_stopped_data_address)
6718 (mips_linux_region_ok_for_hw_watchpoint)
6719 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
6720 (mips_linux_close): Refactor as methods of mips_linux_nat.
6721 (_initialize_mips_linux_nat): Adjust to C++ification.
6722
6723 * aix-thread.c (aix_thread_target): New class.
6724 (aix_thread_ops): Now an aix_thread_target.
6725 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
6726 (aix_thread_fetch_registers, aix_thread_store_registers)
6727 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
6728 (aix_thread_thread_alive, aix_thread_pid_to_str)
6729 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
6730 Refactor as methods of aix_thread_target.
6731 (init_aix_thread_ops): Delete.
6732 (_initialize_aix_thread): Remove references to init_aix_thread_ops
6733 and complete_target_initialization.
6734 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
6735 (rs6000_nat_target): New class.
6736 (the_rs6000_nat_target): New.
6737 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
6738 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
6739 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
6740 (super_create_inferior): Delete.
6741 (_initialize_rs6000_nat): Adjust to C++ification.
6742
6743 * arm-linux-nat.c (arm_linux_nat_target): New class.
6744 (the_arm_linux_nat_target): New.
6745 (arm_linux_fetch_inferior_registers)
6746 (arm_linux_store_inferior_registers, arm_linux_read_description)
6747 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
6748 (arm_linux_remove_hw_breakpoint)
6749 (arm_linux_region_ok_for_hw_watchpoint)
6750 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
6751 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
6752 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
6753 arm_linux_nat_target.
6754 (_initialize_arm_linux_nat): Adjust to C++ification.
6755
6756 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
6757 (the_aarch64_linux_nat_target): New.
6758 (aarch64_linux_fetch_inferior_registers)
6759 (aarch64_linux_store_inferior_registers)
6760 (aarch64_linux_child_post_startup_inferior)
6761 (aarch64_linux_read_description)
6762 (aarch64_linux_can_use_hw_breakpoint)
6763 (aarch64_linux_insert_hw_breakpoint)
6764 (aarch64_linux_remove_hw_breakpoint)
6765 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
6766 (aarch64_linux_region_ok_for_hw_watchpoint)
6767 (aarch64_linux_stopped_data_address)
6768 (aarch64_linux_stopped_by_watchpoint)
6769 (aarch64_linux_watchpoint_addr_within_range)
6770 (aarch64_linux_can_do_single_step): Refactor as methods of
6771 aarch64_linux_nat_target.
6772 (super_post_startup_inferior): Delete.
6773 (_initialize_aarch64_linux_nat): Adjust to C++ification.
6774
6775 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
6776 (the_hppa_linux_nat_target): New.
6777 (hppa_linux_fetch_inferior_registers)
6778 (hppa_linux_store_inferior_registers): Refactor as methods of
6779 hppa_linux_nat_target.
6780 (_initialize_hppa_linux_nat): Adjust to C++ification.
6781
6782 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
6783 (the_ia64_linux_nat_target): New.
6784 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6785 (ia64_linux_stopped_data_address)
6786 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
6787 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
6788 ia64_linux_nat_target methods.
6789 (super_xfer_partial): Delete.
6790 (_initialize_ia64_linux_nat): Adjust to C++ification.
6791
6792 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
6793 (the_m32r_linux_nat_target): New.
6794 (m32r_linux_fetch_inferior_registers)
6795 (m32r_linux_store_inferior_registers): Refactor as
6796 m32r_linux_nat_target methods.
6797 (_initialize_m32r_linux_nat): Adjust to C++ification.
6798
6799 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
6800 (the_m68k_linux_nat_target): New.
6801 (m68k_linux_fetch_inferior_registers)
6802 (m68k_linux_store_inferior_registers): Refactor as
6803 m68k_linux_nat_target methods.
6804 (_initialize_m68k_linux_nat): Adjust to C++ification.
6805
6806 * s390-linux-nat.c (s390_linux_nat_target): New class.
6807 (the_s390_linux_nat_target): New.
6808 (s390_linux_fetch_inferior_registers)
6809 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
6810 (s390_insert_watchpoint, s390_remove_watchpoint)
6811 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
6812 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
6813 (s390_auxv_parse, s390_read_description): Refactor as methods of
6814 s390_linux_nat_target.
6815 (_initialize_s390_nat): Adjust to C++ification.
6816
6817 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
6818 (the_sparc_linux_nat_target): New.
6819 (_initialize_sparc_linux_nat): Adjust to C++ification.
6820 * sparc-nat.c (sparc_fetch_inferior_registers)
6821 (sparc_store_inferior_registers): Remove target_ops parameter.
6822 * sparc-nat.h (sparc_fetch_inferior_registers)
6823 (sparc_store_inferior_registers): Remove target_ops parameter.
6824 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
6825 (the_sparc64_linux_nat_target): New.
6826 (_initialize_sparc64_linux_nat): Adjust to C++ification.
6827
6828 * spu-linux-nat.c (spu_linux_nat_target): New class.
6829 (the_spu_linux_nat_target): New.
6830 (spu_child_post_startup_inferior, spu_child_post_attach)
6831 (spu_child_wait, spu_fetch_inferior_registers)
6832 (spu_store_inferior_registers, spu_xfer_partial)
6833 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
6834 methods.
6835 (_initialize_spu_nat): Adjust to C++ification.
6836
6837 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
6838 (the_tilegx_linux_nat_target): New.
6839 (fetch_inferior_registers, store_inferior_registers):
6840 Refactor as methods.
6841 (_initialize_tile_linux_nat): Adjust to C++ification.
6842
6843 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
6844 (the_xtensa_linux_nat_target): New.
6845 (xtensa_linux_fetch_inferior_registers)
6846 (xtensa_linux_store_inferior_registers): Refactor as
6847 xtensa_linux_nat_target methods.
6848 (_initialize_xtensa_linux_nat): Adjust to C++ification.
6849
6850 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
6851 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
6852 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
6853 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
6854 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
6855 (fbsd_stopped_by_sw_breakpoint)
6856 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
6857 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
6858 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
6859 (fbsd_post_startup_inferior, fbsd_post_attach)
6860 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
6861 (fbsd_set_syscall_catchpoint)
6862 (super_xfer_partial, super_resume, super_wait)
6863 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
6864 (fbsd_handle_debug_trap): Remove target_ops parameter.
6865 (fbsd_nat_add_target): Delete.
6866 * fbsd-nat.h: Include "inf-ptrace.h".
6867 (fbsd_nat_add_target): Delete.
6868 (USE_SIGTRAP_SIGINFO): Define.
6869 (fbsd_nat_target): New class.
6870
6871 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
6872 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
6873 (amd64bsd_target): Delete.
6874 * amd64-bsd-nat.h: New file.
6875 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
6876 "x86-bsd-nat.h".
6877 (amd64_fbsd_nat_target): New class.
6878 (the_amd64_fbsd_nat_target): New.
6879 (amd64fbsd_read_description): Refactor as method of
6880 amd64_fbsd_nat_target.
6881 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6882 (_initialize_amd64fbsd_nat): Adjust to C++ification.
6883 * amd64-nat.h (amd64bsd_target): Delete function declaration.
6884 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
6885 (i386bsd_store_inferior_registers): Remove target_ops parameter.
6886 (i386bsd_target): Delete.
6887 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
6888 (i386bsd_fetch_inferior_registers)
6889 (i386bsd_store_inferior_registers): Declare.
6890 (i386_bsd_nat_target): New class.
6891 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
6892 (the_i386_fbsd_nat_target): New.
6893 (i386fbsd_resume, i386fbsd_read_description): Refactor as
6894 i386_fbsd_nat_target methods.
6895 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
6896 (_initialize_i386fbsd_nat): Adjust to C++ification.
6897 * x86-bsd-nat.c (super_mourn_inferior): Delete.
6898 (x86bsd_mourn_inferior, x86bsd_target): Delete.
6899 (_initialize_x86_bsd_nat): Adjust to C++ification.
6900 * x86-bsd-nat.h: Include "x86-nat.h".
6901 (x86bsd_target): Delete declaration.
6902 (x86bsd_nat_target): New class.
6903
6904 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
6905 (the_aarch64_fbsd_nat_target): New.
6906 (aarch64_fbsd_fetch_inferior_registers)
6907 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
6908 aarch64_fbsd_nat_target.
6909 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
6910 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
6911 (the_alpha_bsd_nat_target): New.
6912 (alphabsd_fetch_inferior_registers)
6913 (alphabsd_store_inferior_registers): Refactor as
6914 alpha_bsd_nat_target methods.
6915 (_initialize_alphabsd_nat): Refactor as methods of
6916 alpha_bsd_nat_target.
6917 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
6918 (the_amd64_nbsd_nat_target): New.
6919 (_initialize_amd64nbsd_nat): Adjust to C++ification.
6920 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
6921 (the_amd64_obsd_nat_target): New.
6922 (_initialize_amd64obsd_nat): Adjust to C++ification.
6923 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
6924 (the_arm_fbsd_nat_target): New.
6925 (arm_fbsd_fetch_inferior_registers)
6926 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
6927 (_initialize_arm_fbsd_nat): Refactor as methods of
6928 arm_fbsd_nat_target.
6929 (_initialize_arm_fbsd_nat): Adjust to C++ification.
6930 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
6931 (the_arm_netbsd_nat_target): New.
6932 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
6933 arm_netbsd_nat_target.
6934 (_initialize_arm_netbsd_nat): Adjust to C++ification.
6935 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
6936 (the_hppa_nbsd_nat_target): New.
6937 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
6938 hppa_nbsd_nat_target methods.
6939 (_initialize_hppanbsd_nat): Adjust to C++ification.
6940 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
6941 (the_hppa_obsd_nat_target): New.
6942 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
6943 methods of hppa_obsd_nat_target.
6944 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
6945 add_target.
6946 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
6947 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
6948 add_target.
6949 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
6950 (_initialize_i386obsd_nat): Use add_target.
6951 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
6952 (the_m68k_bsd_nat_target): New.
6953 (m68kbsd_fetch_inferior_registers)
6954 (m68kbsd_store_inferior_registers): Refactor as methods of
6955 m68k_bsd_nat_target.
6956 (_initialize_m68kbsd_nat): Adjust to C++ification.
6957 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
6958 (the_mips_fbsd_nat_target): New.
6959 (mips_fbsd_fetch_inferior_registers)
6960 (mips_fbsd_store_inferior_registers): Refactor as methods of
6961 mips_fbsd_nat_target.
6962 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
6963 add_target.
6964 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
6965 (the_mips_nbsd_nat_target): New.
6966 (mipsnbsd_fetch_inferior_registers)
6967 (mipsnbsd_store_inferior_registers): Refactor as methods of
6968 mips_nbsd_nat_target.
6969 (_initialize_mipsnbsd_nat): Adjust to C++ification.
6970 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
6971 (the_mips64_obsd_nat_target): New.
6972 (mips64obsd_fetch_inferior_registers)
6973 (mips64obsd_store_inferior_registers): Refactor as methods of
6974 mips64_obsd_nat_target.
6975 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
6976 add_target.
6977 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
6978 nbsd_nat_target.
6979 * nbsd-nat.h: Include "inf-ptrace.h".
6980 (nbsd_nat_target): New class.
6981 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
6982 (obsd_wait): Refactor as methods of obsd_nat_target.
6983 (obsd_add_target): Delete.
6984 * obsd-nat.h: Include "inf-ptrace.h".
6985 (obsd_nat_target): New class.
6986 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
6987 (the_ppc_fbsd_nat_target): New.
6988 (ppcfbsd_fetch_inferior_registers)
6989 (ppcfbsd_store_inferior_registers): Refactor as methods of
6990 ppc_fbsd_nat_target.
6991 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
6992 add_target.
6993 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
6994 (the_ppc_nbsd_nat_target): New.
6995 (ppcnbsd_fetch_inferior_registers)
6996 (ppcnbsd_store_inferior_registers): Refactor as methods of
6997 ppc_nbsd_nat_target.
6998 (_initialize_ppcnbsd_nat): Adjust to C++ification.
6999 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7000 (the_ppc_obsd_nat_target): New.
7001 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7002 methods of ppc_obsd_nat_target.
7003 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7004 add_target.
7005 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7006 (the_sh_nbsd_nat_target): New.
7007 (shnbsd_fetch_inferior_registers)
7008 (shnbsd_store_inferior_registers): Refactor as methods of
7009 sh_nbsd_nat_target.
7010 (_initialize_shnbsd_nat): Adjust to C++ification.
7011 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7012 (inf_ptrace_xfer_partial): Delete.
7013 (sparc_xfer_partial, sparc_target): Delete.
7014 * sparc-nat.h (sparc_fetch_inferior_registers)
7015 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7016 (sparc_target): Delete function declaration.
7017 (sparc_target): New template class.
7018 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7019 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7020 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7021 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7022 add_target.
7023 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7024 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7025 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7026 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7027 add_target.
7028 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7029 (the_vax_bsd_nat_target): New.
7030 (vaxbsd_fetch_inferior_registers)
7031 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7032 methods.
7033 (_initialize_vaxbsd_nat): Adjust to C++ification.
7034
7035 * bsd-kvm.c (bsd_kvm_target): New class.
7036 (bsd_kvm_ops): Now a bsd_kvm_target.
7037 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7038 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7039 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7040 bsd_kvm_target.
7041 (bsd_kvm_return_one): Delete.
7042 (bsd_kvm_add_target): Adjust to C++ification.
7043
7044 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7045 (nto_procfs_target_procfs): New classes.
7046 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7047 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7048 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7049 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7050 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7051 (procfs_remove_hw_breakpoint, procfs_resume)
7052 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7053 (procfs_kill_inferior, procfs_store_registers)
7054 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7055 as methods of nto_procfs_target.
7056 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7057 (nto_native_ops): Delete.
7058 (procfs_open, procfs_native_open): Delete.
7059 (nto_native_ops): Now an nto_procfs_target_native.
7060 (init_procfs_targets): Adjust to C++ification.
7061 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7062 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7063 Refactor as methods of nto_procfs_target.
7064
7065 * go32-nat.c (go32_nat_target): New class.
7066 (the_go32_nat_target): New.
7067 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7068 (go32_store_registers, go32_xfer_partial, go32_files_info)
7069 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7070 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7071 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7072 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7073 (go32_target): Delete.
7074 (_initialize_go32_nat): Adjust to C++ification.
7075
7076 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7077 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7078 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7079 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7080 gnu_nat_target.
7081 (gnu_target): Delete.
7082 * gnu-nat.h (gnu_target): Delete.
7083 (gnu_nat_target): New class.
7084 * i386-gnu-nat.c (gnu_base_target): New.
7085 (i386_gnu_nat_target): New class.
7086 (the_i386_gnu_nat_target): New.
7087 (_initialize_i386gnu_nat): Adjust to C++ification.
7088
7089 2018-05-02 Pedro Alves <palves@redhat.com>
7090
7091 * bfd-target.c (target_bfd_xclose): Rename to ...
7092 (target_bfd_close): ... this.
7093 (target_bfd_reopen): Adjust.
7094 * target.c (target_close): Remove references to to_xclose.
7095 * target.h (target_ops::to_xclose): Delete.
7096 (target_ops::to_close): Update comments.
7097
7098 2018-05-02 Pedro Alves <palves@redhat.com>
7099
7100 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7101 "linux-nat.h".
7102 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7103 * inf-ptrace.c (inf_ptrace_register_u_offset)
7104 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7105 (inf_ptrace_store_register, inf_ptrace_store_registers)
7106 (inf_ptrace_trad_target): Move to ...
7107 * linux-nat-trad.c: ... this new file.
7108 * linux-nat-trad.h: New file.
7109 * linux-nat.c (linux_target_install_ops): Make extern.
7110 (linux_trad_target): Delete.
7111 * linux-nat.h (linux_trad_target): Delete declaration.
7112 (linux_target_install_ops): Declare.
7113 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7114 "linux-nat.h".
7115
7116 2018-05-02 Pedro Alves <palves@redhat.com>
7117
7118 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7119 procfs_target/add_target here.
7120 * procfs.c (procfs_target): Make static.
7121 (_initialize_procfs): Call add_target here.
7122 * procfs.h (struct target_ops): Remove forward declaration.
7123 (procfs_target): Remove declaration.
7124 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7125
7126 2018-05-02 Pedro Alves <palves@redhat.com>
7127
7128 * procfs.c (procfs_stopped_by_watchpoint)
7129 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7130 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7131 Forward declare.
7132 (procfs_use_watchpoints): Delete, move contents...
7133 (procfs_target): ... here.
7134 * procfs.h (procfs_use_watchpoints): Delete declaration.
7135 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7136 procfs_use_watchpoints.
7137 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7138 procfs_use_watchpoints.
7139
7140 2018-05-02 Tom Tromey <tom@tromey.com>
7141
7142 PR python/20084:
7143 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7144 and var_zuinteger_unlimited.
7145 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7146 and PARAM_ZUINTEGER_UNLIMITED.
7147 (set_parameter_value): Handle var_zuinteger and
7148 var_zuinteger_unlimited.
7149 (add_setshow_generic): Likewise.
7150 (parmpy_init): Likewise.
7151
7152 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7153
7154 PR rust/23124
7155 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7156 pointer is not null before dereferencing it.
7157
7158 2018-04-30 Tom Tromey <tom@tromey.com>
7159
7160 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7161 is_mi_like_p.
7162
7163 2018-04-30 Tom Tromey <tom@tromey.com>
7164
7165 * breakpoint.c (mention): Remove use of is_mi_like_p.
7166 (print_mention_ranged_breakpoint): Likewise.
7167 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7168 of is_mi_like_p.
7169
7170 2018-04-30 Tom Tromey <tom@tromey.com>
7171
7172 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7173
7174 2018-04-30 Tom Tromey <tom@tromey.com>
7175
7176 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7177 (info_spu_event_command): Remove some uses of is_mi_like_p.
7178
7179 2018-04-30 Tom Tromey <tom@tromey.com>
7180
7181 * python/py-framefilter.c (py_print_single_arg)
7182 (enumerate_locals, py_print_args, py_print_frame): Remove some
7183 uses of is_mi_like_p.
7184
7185 2018-04-30 Tom Tromey <tom@tromey.com>
7186
7187 * ui-out.c: Update.
7188 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7189 * ui-out.h (ui_out::is_mi_like_p): Now const.
7190 (ui_out::do_is_mi_like_p): Now const.
7191 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7192
7193 2018-04-30 Tom Tromey <tom@tromey.com>
7194
7195 * varobj.c (varobj_set_visualizer): Use new_reference.
7196 * python/python.c (gdbpy_decode_line): Use new_reference.
7197 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7198 new_reference.
7199
7200 2018-04-30 Tom Tromey <tom@tromey.com>
7201
7202 * varobj.c (install_new_value): Use new_reference.
7203 * value.h (value_incref): Return void. Swap intro comment with
7204 value_decref.
7205 * value.c (set_value_parent): Use new_reference.
7206 (value_incref): Return void. Update intro comment.
7207 (release_value): Use new_reference.
7208 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7209
7210 2018-04-30 Tom Tromey <tom@tromey.com>
7211
7212 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7213 * gdb_bfd.h (new_bfd_ref): Remove.
7214 (gdb_bfd_open): Update comment.
7215 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7216 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7217 (gdb_bfd_fdopenr): Use new_reference.
7218 * exec.c (exec_file_attach): Use new_reference.
7219
7220 2018-04-30 Tom Tromey <tom@tromey.com>
7221
7222 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7223 method.
7224
7225 2018-04-30 Tom Tromey <tom@tromey.com>
7226
7227 * jit.c (jit_read_code_entry): Use type_align.
7228 * i386-tdep.c (i386_gdbarch_init): Don't call
7229 set_gdbarch_long_long_align_bit.
7230 * gdbarch.sh: Remove long_long_align_bit.
7231 * gdbarch.c, gdbarch.h: Rebuild.
7232 * arc-tdep.c (arc_type_align): New function.
7233 (arc_gdbarch_init): Use arc_type_align. Don't call
7234 set_gdbarch_long_long_align_bit.
7235
7236 2018-04-30 Tom Tromey <tom@tromey.com>
7237
7238 * rust-lang.c (rust_type_alignment): Remove.
7239 (rust_composite_type): Use type_align.
7240
7241 2018-04-30 Tom Tromey <tom@tromey.com>
7242
7243 * NEWS: Mention Type.align.
7244 * python/py-type.c (typy_get_alignof): New function.
7245 (type_object_getset): Add "alignof".
7246
7247 2018-04-30 Tom Tromey <tom@tromey.com>
7248
7249 PR exp/17095:
7250 * NEWS: Update.
7251 * std-operator.def (UNOP_ALIGNOF): New operator.
7252 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7253 New.
7254 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7255 * c-lang.c (c_op_print_tab): Add alignof.
7256 * c-exp.y (ALIGNOF): New token.
7257 (exp): Add "ALIGNOF" production.
7258 (ident_tokens): Add _Alignof and alignof.
7259
7260 2018-04-30 Tom Tromey <tom@tromey.com>
7261
7262 * i386-tdep.c (i386_type_align): New function.
7263 (i386_gdbarch_init): Update.
7264 * gdbarch.sh (type_align): New method.
7265 * gdbarch.c, gdbarch.h: Rebuild.
7266 * arch-utils.h (default_type_align): Declare.
7267 * arch-utils.c (default_type_align): New function.
7268 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7269 (struct type) <align_log2>: New field.
7270 <instance_flags>: Now a bitfield.
7271 (TYPE_RAW_ALIGN): New macro.
7272 (type_align, type_raw_align, set_type_align): Declare.
7273 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7274 functions.
7275 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7276 (get_alignment, maybe_set_alignment): New functions.
7277 (read_structure_type, read_enumeration_type, read_array_type)
7278 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7279 (read_subrange_type, read_base_type): Set type alignment.
7280
7281 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * dwarf2read.c (read_index_from_section): Use bool.
7284
7285 2018-04-29 Fabian Groffen <grobian@gentoo.org>
7286
7287 PR gdb/22950
7288 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7289 with #ifdef.
7290
7291 2018-04-29 John Reiser <jreiser@BitWagon.com>
7292
7293 PR build/22873
7294 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7295 last step, and do it atomically.
7296
7297 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
7298
7299 * compile/compile-c-types.c (convert_int, convert_float):
7300 Update for C FE v1.
7301
7302 2018-04-27 Tom Tromey <tom@tromey.com>
7303
7304 PR rust/22545:
7305 * rust-lang.c (rust_inclusive_range_type_p): New function.
7306 (rust_range): Handle inclusive ranges.
7307 (rust_compute_range): Likewise.
7308 * rust-exp.y (struct rust_op) <inclusive>: New field.
7309 (DOTDOTEQ): New constant.
7310 (range_expr): Add "..=" productions.
7311 (operator_tokens): Add "..=" token.
7312 (ast_range): Add "inclusive" parameter.
7313 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7314 ranges.
7315 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7316 bounds values.
7317 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7318 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7319 Update comments.
7320 * expprint.c (print_subexp_standard): Handle new bounds values.
7321 (dump_subexp_body_standard): Likewise.
7322
7323 2018-04-27 Tom Tromey <tom@tromey.com>
7324
7325 * configure: Rebuild.
7326 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7327 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7328 "OVERRIDE".
7329 (class symbol_needs_eval_context): Likewise.
7330 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7331 (mock_mapped_index::symbol_name_at): Use "override". Remove
7332 "virtual".
7333 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7334 "override".
7335 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7336 * aarch64-tdep.c (instruction_reader::read): Use "override".
7337 (instruction_reader_test::read): Likewise.
7338 * arm-tdep.c (instruction_reader::read): Use "override".
7339 (instruction_reader_thumb::read): Likewise.
7340
7341 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7342
7343 PR remote/9665
7344 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7345 instead of remote_send.
7346 (remote_send): Remove.
7347
7348 2018-04-26 Pedro Alves <palves@redhat.com>
7349
7350 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7351 find_function_start_sal instead of find_pc_line.
7352
7353 2018-04-26 Pedro Alves <palves@redhat.com>
7354
7355 * breakpoint.c (set_breakpoint_location_function): Handle
7356 mst_data_gnu_ifunc.
7357 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7358 * elfread.c (elf_symtab_read): Give data symbols with
7359 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7360 (elf_rel_plt_read): Update comment.
7361 * linespec.c (convert_linespec_to_sals): Handle
7362 mst_data_gnu_ifunc.
7363 (minsym_found): Handle mst_data_gnu_ifunc.
7364 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7365 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7366 * parse.c (find_minsym_type_and_address): Handle
7367 mst_data_gnu_ifunc.
7368 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7369 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7370 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7371 comment.
7372 <mst_data_gnu_ifunc>: New enumerator.
7373
7374 2018-04-26 Pedro Alves <palves@redhat.com>
7375
7376 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7377 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7378 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7379 Handle it.
7380 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7381 (lookup_minimal_symbol_by_pc): Adjust.
7382 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7383 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7384 * minsyms.h (lookup_msym_prefer): New enum.
7385 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7386 parameter by a lookup_msym_prefer parameter.
7387
7388 2018-04-26 Pedro Alves <palves@redhat.com>
7389
7390 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7391 ends in "@plt" instead of looking at the symbol's section.
7392
7393 2018-04-26 Pedro Alves <palves@redhat.com>
7394
7395 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7396 all references.
7397 (find_pc_partial_function_gnu_ifunc): Rename to ...
7398 (find_pc_partial_function): ... this, and remove references to
7399 'is_gnu_ifunc_p'.
7400 (find_pc_partial_function): Delete old implementation.
7401 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7402
7403 2018-04-26 Pedro Alves <palves@redhat.com>
7404
7405 * linespec.c (struct bound_minimal_symbol_search_key): New.
7406 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7407 skip first line if we found a GNU ifunc minimal symbol by name.
7408 (compare_msymbols): Change parameters to work with a destructured
7409 lhs minsym.
7410 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7411 functions.
7412
7413 2018-04-26 Pedro Alves <palves@redhat.com>
7414
7415 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7416 ifunc targets here. Instead, if we have an ifunc minsym, use its
7417 address/name.
7418 (add_location_to_breakpoint): Store the minsym and the objfile in
7419 the breakpoint location.
7420 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7421 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7422 Record the minsym in the sal.
7423 * symtab.h (symtab_and_line) <msymbol>: New field.
7424
7425 2018-04-26 Pedro Alves <palves@redhat.com>
7426
7427 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7428 unless we actually resolved the ifunc.
7429
7430 2018-04-26 Pedro Alves <palves@redhat.com>
7431
7432 * c-exp.y (variable production): Prefer ifunc minsyms over
7433 regular function symbols.
7434 * symtab.c (find_gnu_ifunc): New function.
7435 * minsyms.h (lookup_msym_prefer): New enum.
7436 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7437 parameter by a lookup_msym_prefer parameter.
7438 * symtab.h (find_gnu_ifunc): New declaration.
7439
7440 2018-04-26 Pedro Alves <palves@redhat.com>
7441
7442 * blockframe.c (find_gnu_ifunc_target_type): New function.
7443 (find_function_type): New.
7444 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
7445 return a value with a memory address.
7446 (eval_call): For calls to GNU ifunc functions, try to find the
7447 type of the target function from the type that the resolver
7448 returns.
7449 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
7450 symbols.
7451 * infcall.c (find_function_return_type): Delete.
7452 (find_function_addr): Add 'function_type' parameter. For calls to
7453 GNU ifunc functions, try to find the type of the target function
7454 from the type that the resolver returns, and return it via
7455 FUNCTION_TYPE.
7456 (call_function_by_hand_dummy): Adjust to use the function type
7457 returned by find_function_addr.
7458 (find_function_addr): Add 'function_type' parameter and move
7459 description here.
7460 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
7461 declarations.
7462
7463 2018-04-26 Pedro Alves <palves@redhat.com>
7464
7465 * c-exp.y (variable production): Skip finding an alias for ifunc
7466 symbols.
7467
7468 2018-04-26 Pedro Alves <palves@redhat.com>
7469
7470 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
7471
7472 2018-04-25 Pedro Alves <palves@redhat.com>
7473
7474 * infcmd.c (kill_command): Print the pid as string, not the whole
7475 thread's ptid. Add comment. s/has been killed/killed/ in output
7476 message.
7477 * remote.c (remote_detach_1): Print the pid as string, not the
7478 whole thread's ptid.
7479
7480 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 Sergio Durigan Junior <sergiodj@redhat.com>
7482 Pedro Alves <palves@redhat.com>
7483
7484 * infcmd.c (kill_command): Print message when inferior has
7485 been killed.
7486 * inferior.c (print_inferior_events): Remove 'static'. Set as
7487 '1'.
7488 (add_inferior): Improve message printed when
7489 'print_inferior_events' is on.
7490 (exit_inferior): Remove message printed when
7491 'print_inferior_events' is on.
7492 (detach_inferior): Improve message printed when
7493 'print_inferior_events' is on.
7494 (initialize_inferiors): Use 'add_inferior_silent' to set
7495 'current_inferior_'.
7496 * inferior.h (print_inferior_events): Declare here as
7497 'extern'.
7498 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
7499 '[Detaching...]' messages when 'print_inferior_events' is on.
7500 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
7501 as prefix/suffix for messages. Remove periods. Fix erroneous
7502 'Detaching after fork from child...', replace it by '... from
7503 parent...'.
7504 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
7505 prefix/suffix when printing 'Detaching...' messages. Print
7506 them when 'print_inferior_events' is on.
7507 * remote.c (remote_detach_1): Print message when detaching
7508 from inferior and '!is_fork_parent'.
7509
7510 2018-04-24 Tom Tromey <tom@tromey.com>
7511
7512 * cli-out.h: Reindent.
7513
7514 2018-04-24 Tom Tromey <tom@tromey.com>
7515
7516 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
7517 (cli_ui_out::do_field_string): Use fputs_filtered.
7518 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
7519
7520 2018-04-23 Tom Tromey <tom@tromey.com>
7521
7522 * guile/scm-frame.c (gdbscm_frame_read_var): Use
7523 gdb::unique_xmalloc_ptr.
7524
7525 2018-04-23 Tom Tromey <tom@tromey.com>
7526
7527 * configure: Rebuild.
7528
7529 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
7530
7531 PR gdb/23095
7532 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
7533 prepare_for_testing. Set normal_bp to r_debug_state if target
7534 is bsd.
7535
7536 2018-04-21 Pedro Alves <palves@redhat.com>
7537 Rajendra SY <rajendra.sy@gmail.com>
7538
7539 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
7540 * remote.c (extended_remote_attach): In all-stop mode, mark the
7541 thread as executing.
7542
7543 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7544
7545 * thread.c (thread_apply_all_command): Fix comment.
7546 (thread_command): Fix comment.
7547
7548 2018-04-10 Alan Hayward <alan.hayward@arm.com>
7549
7550 * common/tdesc.h (tdesc_create_feature): Remove xml filename
7551 parameter.
7552 * features/aarch64-core.c (create_feature_aarch64_core):
7553 Regenerate.
7554 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
7555 Likewise.
7556 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
7557 Likewise.
7558 * features/i386/32bit-avx512.c
7559 (create_feature_i386_32bit_avx512): Likewise.
7560 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
7561 Likewise.
7562 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
7563 Likewise.
7564 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
7565 Likewise.
7566 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
7567 Likewise.
7568 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
7569 Likewise.
7570 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
7571 Likewise.
7572 * features/i386/64bit-avx512.c
7573 (create_feature_i386_64bit_avx512): Likewise.
7574 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
7575 Likewise.
7576 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
7577 Likewise.
7578 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
7579 Likewise.
7580 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
7581 Likewise.
7582 * features/i386/64bit-segments.c
7583 (create_feature_i386_64bit_segments): Likewise.
7584 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
7585 Likewise.
7586 * features/i386/x32-core.c
7587 (create_feature_i386_x32_core): Likewise.
7588 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
7589 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
7590 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
7591 * target-descriptions.c: In generated code, don't pass xml
7592 filename.
7593
7594 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7595
7596 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
7597 (print_xml_feature::visit_post): Likewise.
7598 (print_xml_feature::visit): Likewise.
7599 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
7600 (print_xml_feature): Add new class.
7601 * regformats/regdat.sh: Null xmltarget on feature targets.
7602 * target-descriptions.c (struct target_desc): Add xmltarget.
7603 (maintenance_check_tdesc_xml_convert): Add unittest function.
7604 (tdesc_get_features_xml): Add function to get xml.
7605 (maintenance_check_xml_descriptions): Test xml generation.
7606 * xml-tdesc.c (string_read_description_xml): Add function.
7607 * xml-tdesc.h (string_read_description_xml): Add declaration.
7608
7609 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7610
7611 * features/Makefile: Add feature marker to targets with new style
7612 target descriptions.
7613 * regformats/aarch64.dat: Regenerate.
7614 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
7615 * regformats/i386/amd64-avx-linux.dat: Likewise.
7616 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
7617 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
7618 * regformats/i386/amd64-linux.dat: Likewise.
7619 * regformats/i386/amd64-mpx-linux.dat: Likewise.
7620 * regformats/i386/amd64.dat: Likewise.
7621 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
7622 * regformats/i386/i386-avx-linux.dat: Likewise.
7623 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
7624 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
7625 * regformats/i386/i386-linux.dat: Likewise.
7626 * regformats/i386/i386-mmx-linux.dat: Likewise.
7627 * regformats/i386/i386-mpx-linux.dat: Likewise.
7628 * regformats/i386/i386.dat: Likewise.
7629 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
7630 * regformats/i386/x32-avx-linux.dat: Likewise.
7631 * regformats/i386/x32-linux.dat: Likewise.
7632 * regformats/tic6x-c62x-linux.dat: Likewise.
7633 * regformats/tic6x-c64x-linux.dat: Likewise.
7634 * regformats/tic6x-c64xp-linux.dat: Likewise.
7635 * regformats/regdat.sh: Parse feature marker.
7636
7637 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7638
7639 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
7640 (tdesc_osabi_name): Likewise.
7641 * target-descriptions.c (tdesc_architecture_name): Add new
7642 function.
7643 (tdesc_osabi_name): Likewise.
7644
7645 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7646
7647 * common/tdesc.c (tdesc_predefined_type): Move to here.
7648 (tdesc_named_type): Likewise.
7649 (tdesc_create_vector): Likewise.
7650 (tdesc_create_struct): Likewise.
7651 (tdesc_set_struct_size): Likewise.
7652 (tdesc_create_union): Likewise.
7653 (tdesc_create_flags): Likewise.
7654 (tdesc_create_enum): Likewise.
7655 (tdesc_add_field): Likewise.
7656 (tdesc_add_typed_bitfield): Likewise.
7657 (tdesc_add_bitfield): Likewise.
7658 (tdesc_add_flag): Likewise.
7659 (tdesc_add_enum_value): Likewise.
7660 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
7661 (struct tdesc_type_vector): Likewise.
7662 (struct tdesc_type_field): Likewise.
7663 (struct tdesc_type_with_fields): Likewise.
7664 (tdesc_create_enum): Add declaration.
7665 (tdesc_add_typed_bitfield): Likewise.
7666 (tdesc_add_enum_value): Likewise.
7667 * target-descriptions.c (tdesc_type_field): Move from here.
7668 (tdesc_type_builtin): Likewise.
7669 (tdesc_type_vector): Likewise.
7670 (tdesc_type_with_fields): Likewise.
7671 (tdesc_predefined_types): Likewise.
7672 (tdesc_named_type): Likewise.
7673 (tdesc_create_vector): Likewise.
7674 (tdesc_create_struct): Likewise.
7675 (tdesc_set_struct_size): Likewise.
7676 (tdesc_create_union): Likewise.
7677 (tdesc_create_flags): Likewise.
7678 (tdesc_create_enum): Likewise.
7679 (tdesc_add_field): Likewise.
7680 (tdesc_add_typed_bitfield): Likewise.
7681 (tdesc_add_bitfield): Likewise.
7682 (tdesc_add_flag): Likewise.
7683 (tdesc_add_enum_value): Likewise.
7684 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
7685 (tdesc_add_typed_bitfield): Likewise.
7686 (tdesc_add_enum_value): Likewise.
7687
7688 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7689
7690 * common/tdesc.c (tdesc_feature::accept): Move to here.
7691 (tdesc_feature::operator==): Likewise.
7692 (tdesc_create_reg): Likewise.
7693 * common/tdesc.h (tdesc_type_kind): Likewise.
7694 (struct tdesc_type): Likewise.
7695 (struct tdesc_feature): Likewise.
7696 * regformats/regdat.sh: Create a feature.
7697 * target-descriptions.c (tdesc_type_kind): Move from here.
7698 (tdesc_type): Likewise.
7699 (tdesc_type_up): Likewise.
7700 (tdesc_feature): Likewise.
7701 (tdesc_create_reg): Likewise.
7702
7703 2018-04-18 Alan Hayward <alan.hayward@arm.com>
7704
7705 * Makefile.in: Add arch/tdesc.c
7706 * common/tdesc.c: New file.
7707 * common/tdesc.h (tdesc_element_visitor): Move to here.
7708 (tdesc_element): Likewise.
7709 (tdesc_reg): Likewise.
7710 (tdesc_reg_up): Likewise.
7711 * regformats/regdef.h (reg): Add offset to constructors.
7712 * target-descriptions.c (tdesc_element_visitor): Move from here.
7713 (tdesc_element): Likewise.
7714 (tdesc_reg): Likewise.
7715 (tdesc_reg_up): Likewise.
7716
7717 2018-04-17 Tom Tromey <tom@tromey.com>
7718
7719 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
7720 discriminant field.
7721
7722 2018-04-17 Tom Tromey <tom@tromey.com>
7723
7724 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
7725
7726 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7727
7728 * symtab.c (print_symbol_info): Skip printing filename and line
7729 number when `last' is NULL.
7730 (symtab_symbol_info): Use empty string instead of NULL for first
7731 invocation of print_symbol_info.
7732 (rbreak_command): Pass NULL to `last' parameter of
7733 print_symbol_info.
7734
7735 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
7736
7737 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
7738 instead of nullptr.
7739
7740 2018-04-16 Pedro Alves <palves@redhat.com>
7741
7742 * MAINTAINERS (sh): Remove.
7743 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
7744 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
7745 (ALLDEPFILES): Remove sh64-tdep.c.
7746 * NEWS: Mentions that support for SH-5/SH64 is removed.
7747 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
7748 (sh*-*-openbsd*): Ditto.
7749 (sh64-*-elf*): Remove.
7750 (sh*): Remove.
7751 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
7752 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
7753 * sh-tdep.c: No longer include "sh64-tdep.h".
7754 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
7755 * sh64-tdep.c, sh64-tdep.h: Remove files.
7756
7757 2018-04-16 Pedro Alves <palves@redhat.com>
7758
7759 * MAINTAINERS: Remove m88k.
7760 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
7761 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
7762 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
7763 * NEWS: Mention that support for m88k was removed.
7764 * configure.host (m88*-*-*): Remove support.
7765 * configure.nat (m88k-*-*): Remove support.
7766 * configure.tgt (m88*-*-openbsd*): Remove.
7767 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
7768
7769 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
7770
7771 * configure.tgt (x86_tobjs): New variable.
7772 (amd64_tobjs, i386_tobjs): Use it.
7773
7774 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7775
7776 * symtab.c (print_symbol_info): Precede the symbol definition by
7777 the line number when available.
7778 * NEWS: Advertise this enhancement.
7779
7780 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7781
7782 * NEWS (New options): announce set/show record btrace cpu.
7783 * btrace.c: Include record-btrace.h.
7784 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
7785 the vendor is unknown.
7786 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
7787 Maybe overwrite the btrace configuration's cpu.
7788 (btrace_compute_ftrace): Add cpu parameter. Update callers.
7789 (btrace_fetch): Add cpu parameter. Update callers.
7790 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
7791 Maybe overwrite the btrace configuration's cpu. Skip enabling
7792 errata workarounds if the vendor is unknown.
7793 * python/py-record-btrace.c: Include record-btrace.h.
7794 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
7795 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
7796 * record-btrace.c (record_btrace_cpu_state_kind): New.
7797 (record_btrace_cpu): New.
7798 (set_record_btrace_cpu_cmdlist): New.
7799 (record_btrace_get_cpu): New.
7800 (require_btrace_thread, record_btrace_info)
7801 (record_btrace_resume_thread): Call record_btrace_get_cpu.
7802 (cmd_set_record_btrace_cpu_none): New.
7803 (cmd_set_record_btrace_cpu_auto): New.
7804 (cmd_set_record_btrace_cpu): New.
7805 (cmd_show_record_btrace_cpu): New.
7806 (_initialize_record_btrace): Initialize set/show record btrace cpu
7807 commands.
7808 * record-btrace.h (record_btrace_get_cpu): New.
7809
7810 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7811
7812 * record.c (set_record_command): Fix typo in message.
7813
7814 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7815
7816 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
7817
7818 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
7819
7820 * infrun.c (process_event_stop_test): Call
7821 gdbarch_in_indirect_branch_thunk.
7822 * gdbarch.sh (in_indirect_branch_thunk): New.
7823 * gdbarch.c: Regenerated.
7824 * gdbarch.h: Regenerated.
7825 * x86-tdep.h: New.
7826 * x86-tdep.c: New.
7827 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
7828 (HFILES_NO_SRCDIR): Add x86-tdep.h.
7829 (ALLDEPFILES): Add x86-tdep.c.
7830 * arch-utils.h (default_in_indirect_branch_thunk): New.
7831 * arch-utils.c (default_in_indirect_branch_thunk): New.
7832 * i386-tdep: Include x86-tdep.h.
7833 (i386_in_indirect_branch_thunk): New.
7834 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
7835 function.
7836 * amd64-tdep: Include x86-tdep.h.
7837 (amd64_in_indirect_branch_thunk): New.
7838 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
7839
7840 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7841
7842 PR gdb/23053
7843 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
7844 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
7845 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
7846 regression.
7847
7848 2018-04-12 Tom Tromey <tom@tromey.com>
7849
7850 * rust-lang.c (rust_print_struct_def): Remove univariant code.
7851 (rust_evaluate_subexp): Likewise.
7852
7853 2018-04-12 Pedro Alves <palves@redhat.com>
7854
7855 * procfs.c (procfs_detach): Make forward declaration's prototype
7856 match definition's protototype.
7857 (proc_get_LDT_entry): Remove stale do_cleanups call.
7858
7859 2018-04-12 Pedro Alves <palves@redhat.com>
7860
7861 * target.h (target_ops::to_has_exited): Delete.
7862 (target_has_exited): Delete.
7863 * target-delegates.c: Regenerate.
7864
7865 2018-04-11 Pedro Alves <palves@redhat.com>
7866
7867 * target.c (fileio_fh_t::t): Add comment.
7868 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7869 (target_fileio_close): Handle a NULL target.
7870 (invalidate_fileio_fh): New.
7871 (target_close): Call it.
7872 * remote.c (remote_hostio_send_command): No longer check whether
7873 remote_desc is open.
7874
7875 2018-04-11 Pedro Alves <palves@redhat.com>
7876
7877 * target.c (fileio_fh_t): Make it a named struct instead of a
7878 typedef.
7879 (fileio_fh_t::is_closed): New method.
7880 (DEF_VEC_O (fileio_fh_t)): Remove.
7881 (fileio_fhandles): Now a std::vector.
7882 (is_closed_fileio_fh): Delete.
7883 (acquire_fileio_fd): Adjust. Rename parameters.
7884 (release_fileio_fd): Adjust.
7885 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
7886 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
7887 (target_fileio_close): Adjust.
7888
7889 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
7890
7891 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
7892 index.
7893
7894 2018-04-10 Pedro Alves <palves@redhat.com>
7895
7896 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
7897 (scoped_finish_thread_state): New class.
7898 * infcmd.c (run_command_1): Use it instead of finish_thread_state
7899 cleanup.
7900 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
7901 (fetch_inferior_event, normal_stop): Likewise.
7902 * thread.c (finish_thread_state_cleanup): Delete.
7903
7904 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7905 Pedro Alves <palves@redhat.com>
7906
7907 * value.c: Include "selftest.h" and "common/array-view.h".
7908 (struct range) <operator ==>: New.
7909 (test_ranges_contain): New.
7910 (check_ranges_vector): New.
7911 (test_insert_into_bit_range_vector): New.
7912 (_initialize_values): Register selftests.
7913 * common/array-view.h (operator==, operator!=): New.
7914
7915 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * common/gdb_vecs.h (unordered_remove): Add overload that takes
7918 an iterator.
7919 * inline-frame.c: Include <algorithm>.
7920 (struct inline_state): Add constructor.
7921 (inline_state_s): Remove.
7922 (DEF_VEC_O(inline_state_s)): Remove.
7923 (inline_states): Change type to std::vector.
7924 (find_inline_frame_state): Adjust to std::vector.
7925 (allocate_inline_frame_state): Remove.
7926 (clear_inline_frame_state): Adjust to std::vector.
7927 (skip_inline_frames): Adjust to std::vector.
7928
7929 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7930
7931 * tracepoint.h (struct trace_state_variable): Add constructor.
7932 <name>: Change type to std::string.
7933 * tracepoint.c (tsv_s): Remove.
7934 (DEF_VEC_O(tsv_s)): Remove.
7935 (tvariables): Change to std::vector.
7936 (create_trace_state_variable): Adjust to std::vector.
7937 (find_trace_state_variable): Likewise.
7938 (find_trace_state_variable_by_number): Likewise.
7939 (delete_trace_state_variable): Likewise.
7940 (trace_variable_command): Adjust to std::string.
7941 (delete_trace_variable_command): Likewise.
7942 (tvariables_info_1): Adjust to std::vector.
7943 (save_trace_state_variables): Likewise.
7944 (start_tracing): Likewise.
7945 (merge_uploaded_trace_state_variables): Adjust to std::vector
7946 and std::string.
7947 * target.h (struct target_ops)
7948 <to_download_trace_state_variable>: Pass reference to
7949 trace_state_variable.
7950 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
7951 * target-delegates.c: Re-generate.
7952 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
7953 (mi_tsv_deleted): Likewise.
7954 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
7955 * remote.c (remote_download_trace_state_variable): Change
7956 pointer to reference and adjust.
7957 * make-target-delegates (parse_argtypes): Handle references.
7958 (write_function_header): Likewise.
7959 (munge_type): Likewise.
7960
7961 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7962
7963 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7964 string_view-selftests.c.
7965 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
7966 testsuite.
7967 * unittests/basic_string_view/cons/char/1.cc: Likewise.
7968 * unittests/basic_string_view/cons/char/2.cc: Likewise.
7969 * unittests/basic_string_view/cons/char/3.cc: Likewise.
7970 * unittests/basic_string_view/element_access/char/1.cc:
7971 Likewise.
7972 * unittests/basic_string_view/element_access/char/empty.cc:
7973 Likewise.
7974 * unittests/basic_string_view/element_access/char/front_back.cc:
7975 Likewise.
7976 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
7977 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
7978 Likewise.
7979 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
7980 Likewise.
7981 * unittests/basic_string_view/modifiers/swap/char/1.cc:
7982 Likewise.
7983 * unittests/basic_string_view/operations/compare/char/1.cc:
7984 Likewise.
7985 * unittests/basic_string_view/operations/compare/char/13650.cc:
7986 Likewise.
7987 * unittests/basic_string_view/operations/copy/char/1.cc:
7988 Likewise.
7989 * unittests/basic_string_view/operations/data/char/1.cc:
7990 Likewise.
7991 * unittests/basic_string_view/operations/find/char/1.cc:
7992 Likewise.
7993 * unittests/basic_string_view/operations/find/char/2.cc:
7994 Likewise.
7995 * unittests/basic_string_view/operations/find/char/3.cc:
7996 Likewise.
7997 * unittests/basic_string_view/operations/find/char/4.cc:
7998 Likewise.
7999 * unittests/basic_string_view/operations/rfind/char/1.cc:
8000 Likewise.
8001 * unittests/basic_string_view/operations/rfind/char/2.cc:
8002 Likewise.
8003 * unittests/basic_string_view/operations/rfind/char/3.cc:
8004 Likewise.
8005 * unittests/basic_string_view/operations/substr/char/1.cc:
8006 Likewise.
8007 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8008 * unittests/string_view-selftests.c: New file.
8009
8010 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * unittests/basic_string_view/capacity/1.cc: New file.
8013 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8014 * unittests/basic_string_view/cons/char/1.cc: New file.
8015 * unittests/basic_string_view/cons/char/2.cc: New file.
8016 * unittests/basic_string_view/cons/char/3.cc: New file.
8017 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8018 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8019 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8020 * unittests/basic_string_view/element_access/char/1.cc: New file.
8021 * unittests/basic_string_view/element_access/char/2.cc: New file.
8022 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8023 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8024 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8025 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8026 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8027 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8028 * unittests/basic_string_view/include.cc: New file.
8029 * unittests/basic_string_view/inserters/char/1.cc: New file.
8030 * unittests/basic_string_view/inserters/char/2.cc: New file.
8031 * unittests/basic_string_view/inserters/char/3.cc: New file.
8032 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8033 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8034 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8035 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8036 * unittests/basic_string_view/literals/types.cc: New file.
8037 * unittests/basic_string_view/literals/values.cc: New file.
8038 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8039 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8040 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8041 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8042 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8043 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8044 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8045 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8046 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8047 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8048 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8049 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8050 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8051 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8052 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8053 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8054 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8055 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8056 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8057 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8058 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8059 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8060 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8061 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8062 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8063 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8064 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8065 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8066 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8067 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8068 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8069 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8070 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8071 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8072 * unittests/basic_string_view/operators/char/2.cc: New file.
8073 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8074 * unittests/basic_string_view/range_access/char/1.cc: New file.
8075 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8076 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8077 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8078 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8079 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8080 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8081 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8082 * unittests/basic_string_view/typedefs.cc: New file.
8083 * unittests/basic_string_view/types/1.cc: New file.
8084
8085 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8086
8087 * common/gdb_string_view.h: Remove libstdc++ implementation
8088 details, adjust to gdb reality.
8089 * common/gdb_string_view.tcc: Likewise.
8090 * cli/cli-script.c (struct string_view): Remove.
8091 (user_args) <m_args>: Change element type to gdb::string_view.
8092 (user_args::insert_args): Adjust.
8093
8094 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * common/gdb_string_view.h: New file.
8097 * common/gdb_string_view.tcc: New file.
8098
8099 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8100
8101 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8102 * configure: Re-generate.
8103
8104 2018-04-09 Pedro Alves <palves@redhat.com>
8105
8106 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8107 (set_target_gdbarch): Call
8108 gdb::observers::architecture_changed.notify instead of
8109 observer_notify_architecture_changed.
8110
8111 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8112
8113 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8114 (do_restore_current_traceframe_cleanup): Remove.
8115 (restore_current_traceframe_cleanup_dtor): Remove.
8116 (make_cleanup_restore_current_traceframe): Remove.
8117 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8118 New.
8119 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8120 * infrun.c (fetch_inferior_event): Use
8121 scoped_restore_current_traceframe.
8122
8123 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8124
8125 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8126 Remove.
8127 <n_allocated_type_units>: Remove.
8128 <all_type_units>: Change to std::vector.
8129 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8130 to std::vector change.
8131 (dwarf2_per_objfile::get_cutu): Likewise.
8132 (dwarf2_per_objfile::get_tu): Likewise.
8133 (create_signatured_type_table_from_index): Likewise.
8134 (create_signatured_type_table_from_debug_names): Likewise.
8135 (dw2_symtab_iter_next): Likewise.
8136 (dw2_print_stats): Likewise.
8137 (dw2_expand_all_symtabs): Likewise.
8138 (dw2_expand_marked_cus): Likewise.
8139 (dw2_debug_names_iterator::next): Likewise.
8140 (dwarf2_initialize_objfile): Likewise.
8141 (add_signatured_type_cu_to_table): Likewise.
8142 (create_all_type_units): Likewise.
8143 (add_type_unit): Likewise.
8144 (struct tu_abbrev_offset): Add constructor.
8145 (build_type_psymtabs_1): Adjust to std::vector change.
8146 (print_tu_stats): Likewise.
8147 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8148 (write_debug_names): Likewise.
8149
8150 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8151
8152 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8153 Make an std::vector.
8154 <n_comp_units>: Remove.
8155 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8156 to std::vector change.
8157 (dwarf2_per_objfile::get_cutu): Likewise.
8158 (dwarf2_per_objfile::get_cu): Likewise.
8159 (create_cus_from_index): Likewise.
8160 (create_addrmap_from_index): Likewise.
8161 (create_addrmap_from_aranges): Likewise.
8162 (dwarf2_read_index): Likewise.
8163 (dw2_find_last_source_symtab): Likewise.
8164 (dw2_map_symtabs_matching_filename): Likewise.
8165 (dw2_symtab_iter_next): Likewise.
8166 (dw2_print_stats): Likewise.
8167 (dw2_expand_all_symtabs): Likewise.
8168 (dw2_expand_symtabs_with_fullname): Likewise.
8169 (dw2_expand_marked_cus): Likewise.
8170 (dw2_map_symbol_filenames): Likewise.
8171 (create_cus_from_debug_names): Likewise.
8172 (dwarf2_read_debug_names): Likewise.
8173 (dw2_debug_names_iterator::next): Likewise.
8174 (dwarf2_initialize_objfile): Likewise.
8175 (set_partial_user): Likewise.
8176 (dwarf2_build_psymtabs_hard): Likewise.
8177 (read_comp_units_from_section): Remove arguments, adjust to
8178 std::vector change.
8179 (create_all_comp_units): Adjust to std::vector and
8180 read_comp_units_from_section changes.
8181 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8182 change.
8183 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8184 (psyms_seen_size): Likewise.
8185 (write_gdbindex): Likewise.
8186 (write_debug_names): Likewise.
8187
8188 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8189
8190 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8191 with dwarf2_per_objfile.
8192 (create_cus_from_index): Likewise.
8193 (create_signatured_type_table_from_index): Likewise.
8194 (dwarf2_read_index): Likewise.
8195 (dwarf2_initialize_objfile): Likewise.
8196 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8197 per_cu rather than get_dwarf2_per_objfile.
8198
8199 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8200
8201 * dwarf2read.h (struct signatured_type): Forward declare.
8202 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8203 New methods.
8204 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8205 (dw2_get_cutu): ...this.
8206 (dwarf2_per_objfile::get_cu): Rename from...
8207 (dw2_get_cu): ...this.
8208 (dwarf2_per_objfile::get_tu): New.
8209 (create_addrmap_from_index): Adjust.
8210 (create_addrmap_from_aranges): Adjust.
8211 (dw2_find_last_source_symtab): Adjust.
8212 (dw2_map_symtabs_matching_filename): Adjust.
8213 (dw2_symtab_iter_next): Adjust.
8214 (dw2_print_stats): Adjust.
8215 (dw2_expand_all_symtabs): Adjust.
8216 (dw2_expand_symtabs_with_fullname): Adjust.
8217 (dw2_expand_marked_cus): Adjust.
8218 (dw_expand_symtabs_matching_file_matcher): Adjust.
8219 (dw2_map_symbol_filenames): Adjust.
8220 (dw2_debug_names_iterator::next): Adjust.
8221 (dwarf2_initialize_objfile): Adjust.
8222 (set_partial_user): Adjust.
8223 (dwarf2_build_psymtabs_hard): Adjust.
8224
8225 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8226
8227 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8228 Remove unused variables.
8229 (dw2_map_symtabs_matching_filename): Likewise.
8230 (dwarf2_record_block_ranges): Likewise.
8231 (dwarf2_read_addr_index): Likewise.
8232 (follow_die_offset): Likewise.
8233
8234 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8235
8236 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8237 to symbol_file_add_main.
8238
8239 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8240
8241 PR mi/22299
8242 * mi/mi-console.c (do_fputc_async_safe): New.
8243 (mi_console_file::write_async_safe): New.
8244 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8245 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8246 New.
8247 * ui-file.c (ui_file::putstrn): Adjust call to
8248 fputstrn_unfiltered.
8249 * utils.c (printchar): Replace do_fputs and do_fprintf
8250 parameters by do_fputc.
8251 (fputstr_filtered): Adjust call to printchar.
8252 (fputstr_unfiltered): Likewise.
8253 (fputstrn_filtered): Likewise.
8254 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8255 printchar.
8256 * utils.h (do_fputc_ftype): New typedef.
8257 (fputstrn_unfiltered): Add do_fputc parameter.
8258
8259 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8260
8261 * regformats/i386/i386-avx.dat: Remove.
8262
8263 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8264
8265 PR gdb/22979
8266 * amd64-tdep.c (amd64_none_init_abi): New function.
8267 (amd64_x32_none_init_abi): New function.
8268 (_initialize_amd64_tdep): Register handlers for x86-64 and
8269 x64_32 with GDB_OSABI_NONE.
8270 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8271 GDB_OSABI_NONE osabi.
8272
8273 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8274
8275 PR gdb/22980
8276 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8277 GDB_OSABI_NONE.
8278 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8279 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8280
8281 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8282
8283 * common/byte-vector.h (char_vector): New type.
8284 * target.h (target_read_alloc): Return
8285 gdb::optional<byte_vector>.
8286 (target_read_stralloc): Return gdb::optional<char_vector>.
8287 (target_get_osdata): Return gdb::optional<char_vector>.
8288 * target.c (target_read_alloc_1): Templatize. Replacement
8289 manual memory management with vector.
8290 (target_read_alloc): Change return type, adjust.
8291 (target_read_stralloc): Change return type, adjust.
8292 (target_get_osdata): Change return type, adjust.
8293 * auxv.c (struct auxv_info) <length>: Remove.
8294 <data>: Change type to gdb::optional<byte_vector>.
8295 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8296 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8297 (target_auxv_search): Adjust.
8298 (fprint_target_auxv): Adjust.
8299 * avr-tdep.c (avr_io_reg_read_command): Adjust.
8300 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8301 (linux_make_corefile_notes): Adjust.
8302 * osdata.c (get_osdata): Adjust.
8303 * remote.c (remote_get_threads_with_qxfer): Adjust.
8304 (remote_memory_map): Adjust.
8305 (remote_traceframe_info): Adjust.
8306 (btrace_read_config): Adjust.
8307 (remote_read_btrace): Adjust.
8308 (remote_pid_to_exec_file): Adjust.
8309 * solib-aix.c (solib_aix_get_library_list): Adjust.
8310 * solib-dsbt.c (decode_loadmap): Don't free buf.
8311 (dsbt_get_initial_loadmaps): Adjust.
8312 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8313 * solib-target.c (solib_target_current_sos): Adjust.
8314 * tracepoint.c (sdata_make_value): Adjust.
8315 * xml-support.c (xinclude_start_include): Adjust.
8316 (xml_fetch_content_from_file): Adjust.
8317 * xml-support.h (xml_fetch_another): Change return type.
8318 (xml_fetch_content_from_file): Change return type.
8319 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8320 * xml-tdesc.c (file_read_description_xml): Adjust.
8321 (fetch_available_features_from_target): Change return type.
8322 (target_fetch_description_xml): Adjust.
8323 (target_read_description_xml): Adjust.
8324
8325 2018-04-06 Tom Tromey <tom@tromey.com>
8326
8327 * value.c (~value): Update.
8328 (struct value) <contents>: Now unique_xmalloc_ptr.
8329 (value_contents_bits_eq, allocate_value_contents)
8330 (value_contents_raw, value_contents_all_raw)
8331 (value_contents_for_printing, value_contents_for_printing_const)
8332 (set_value_enclosing_type): Update.
8333
8334 2018-04-06 Tom Tromey <tom@tromey.com>
8335
8336 * value.c (range_s): Remove typedef, VEC.
8337 (struct range): Add operator<.
8338 (range_lessthan): Remove.
8339 (ranges_contain): Change type.
8340 (~value): Update.
8341 (struct value) <unavailable, optimized_out>: Now std::vector.
8342 (value_entirely_available)
8343 (value_entirely_covered_by_range_vector)
8344 (value_entirely_unavailable, value_entirely_optimized_out):
8345 Update.
8346 (insert_into_bit_range_vector): Change argument type.
8347 (find_first_range_overlap): Likewise.
8348 (struct ranges_and_idx, value_contents_bits_eq)
8349 (require_not_optimized_out, require_available): Update.
8350 (ranges_copy_adjusted): Change argument types.
8351 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8352
8353 2018-04-06 Tom Tromey <tom@tromey.com>
8354
8355 * value.c (~value): Update.
8356 (struct value) <parent>: Now a value_ref_ptr.
8357 (value_parent, set_value_parent, value_address, value_copy):
8358 Update.
8359
8360 2018-04-06 Tom Tromey <tom@tromey.com>
8361
8362 * value.c (struct value): Add constructor, destructor, and member
8363 initializers.
8364 (allocate_value_lazy, value_decref): Update.
8365
8366 2018-04-06 Tom Tromey <tom@tromey.com>
8367
8368 * value.c (struct value) <released, next>: Remove.
8369 (all_values): Now a std::vector.
8370 (allocate_value_lazy): Update.
8371 (value_next): Remove.
8372 (value_mark, value_free_to_mark, release_value)
8373 (value_release_to_mark): Update.
8374
8375 2018-04-06 Tom Tromey <tom@tromey.com>
8376
8377 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8378 (free_value_chain): Remove.
8379 * value.c (free_value_chain): Remove.
8380 (value_release_to_mark): Return a std::vector.
8381 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8382 std::vector.
8383 (check_condition): Update.
8384 * eval.c (fetch_subexp_value): Change "val_chain" to a
8385 std::vector.
8386 * breakpoint.c (update_watchpoint): Update.
8387 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8388
8389 2018-04-06 Tom Tromey <tom@tromey.com>
8390
8391 * value.h (free_all_values): Remove.
8392 * value.c (free_all_values): Remove.
8393
8394 2018-04-06 Tom Tromey <tom@tromey.com>
8395
8396 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8397 (value_history_chain, value_history_count): Remove.
8398 (value_history): New global.
8399 (record_latest_value, access_value_history, show_values)
8400 (preserve_values): Update.
8401
8402 2018-04-06 Tom Tromey <tom@tromey.com>
8403
8404 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8405 * varobj.c (varobj_set_display_format, varobj_set_value)
8406 (install_default_visualizer, construct_visualizer)
8407 (install_new_value, ~varobj, varobj_get_value_type)
8408 (my_value_of_variable, varobj_editable_p): Update.
8409 * c-varobj.c (c_describe_child, c_value_of_variable)
8410 (cplus_number_of_children, cplus_describe_child): Update.
8411 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8412 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8413 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8414
8415 2018-04-06 Tom Tromey <tom@tromey.com>
8416
8417 * printcmd.c (last_examine_address): Change type to
8418 value_ref_ptr.
8419 (do_examine, x_command): Update.
8420
8421 2018-04-06 Tom Tromey <tom@tromey.com>
8422
8423 * value.c (release_value): Update.
8424 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8425 (struct bpstats) <val>: Now a value_ref_ptr.
8426 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8427 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8428 (~watchpoint, print_it_watchpoint, watch_command_1)
8429 (invalidate_bp_value_on_memory_change): Update.
8430
8431 2018-04-06 Tom Tromey <tom@tromey.com>
8432
8433 * varobj.c (varobj_clear_saved_item)
8434 (update_dynamic_varobj_children, install_new_value, ~varobj):
8435 Update.
8436 * value.h (value_incref): Move declaration earlier.
8437 (value_decref): Rename from value_free.
8438 (struct value_ref_policy): New.
8439 (value_ref_ptr): New typedef.
8440 (struct value_deleter): Remove.
8441 (gdb_value_up): Remove typedef.
8442 (release_value): Change return type.
8443 (release_value_or_incref): Remove.
8444 * value.c (set_value_parent): Update.
8445 (value_incref): Change return type.
8446 (value_decref): Rename from value_free.
8447 (value_free_to_mark, free_all_values, free_value_chain): Update.
8448 (release_value): Return value_ref_ptr.
8449 (release_value_or_incref): Remove.
8450 (record_latest_value, set_internalvar, clear_internalvar):
8451 Update.
8452 * stack.c (info_frame_command): Don't call value_free.
8453 * python/py-value.c (valpy_dealloc, valpy_new)
8454 (value_to_value_object): Update.
8455 * printcmd.c (do_examine): Update.
8456 * opencl-lang.c (lval_func_free_closure): Update.
8457 * mi/mi-main.c (register_changed_p): Don't call value_free.
8458 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
8459 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
8460 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
8461 value_free.
8462 * guile/scm-value.c (vlscm_free_value_smob)
8463 (vlscm_scm_from_value): Update.
8464 * frame.c (frame_register_unwind, frame_unwind_register_signed)
8465 (frame_unwind_register_unsigned, get_frame_register_bytes)
8466 (put_frame_register_bytes): Don't call value_free.
8467 * findvar.c (address_from_register): Don't call value_free.
8468 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
8469 * dwarf2loc.c (entry_data_value_free_closure)
8470 (value_of_dwarf_reg_entry, free_pieced_value_closure)
8471 (dwarf2_evaluate_loc_desc_full): Update.
8472 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8473 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8474 (~watchpoint, watch_command_1)
8475 (invalidate_bp_value_on_memory_change): Update.
8476 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
8477
8478 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 PR gdb/23022
8481 * warning.m4: Add -Wno-error=deprecated-register.
8482 * configure: Re-generate.
8483
8484 2018-04-05 Tom Tromey <tom@tromey.com>
8485
8486 * linespec.h: Remove include of "vec.h".
8487
8488 2018-04-05 Tom Tromey <tom@tromey.com>
8489
8490 * linespec.c (typep): Remove typedef.
8491 (find_methods, find_superclass_methods): Take a std::vector.
8492 (find_method): Use std::vector.
8493
8494 2018-04-05 Tom Tromey <tom@tromey.com>
8495
8496 * utils.c (compare_strings): Remove.
8497 * utils.h (compare_strings): Remove.
8498 * objc-lang.h (find_imps): Update.
8499 * objc-lang.c (find_methods): Take a std::vector.
8500 (uniquify_strings, find_imps): Likewise.
8501 * linespec.c (find_methods): Take a std::vector.
8502 (decode_objc): Use std::vector.
8503 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
8504 a std::vector.
8505 (find_method, find_function_symbols): Use std::vector.
8506
8507 2018-04-05 Tom Tromey <tom@tromey.com>
8508
8509 * completer.c (completion_tracker::completion_tracker): Remove
8510 cast.
8511 (completion_tracker::discard_completions): Likewise.
8512 * breakpoint.c (ambiguous_names_p): Remove cast.
8513 * ada-lang.c (_initialize_ada_language): Remove cast.
8514 * utils.h (streq): Update.
8515 (streq_hash): Add new declaration.
8516 * utils.c (streq): Return bool.
8517 (streq_hash): New function.
8518
8519 2018-04-05 Tom Tromey <tom@tromey.com>
8520
8521 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
8522 Remove a string copy.
8523
8524 2018-04-05 Tom Tromey <tom@tromey.com>
8525
8526 * linespec.c (filter_results): Use std::vector.
8527 (decode_line_2, decode_line_full): Update.
8528
8529 2018-04-05 Tom Tromey <tom@tromey.com>
8530
8531 * linespec.c (canonical_to_fullform): Return std::string.
8532 (filter_results): Update.
8533 (struct decode_line_2_item): Add constructor.
8534 <fullform, displayform>: Now std::string.
8535 (decode_line_2_compare_items): Now a std::sort comparator.
8536 (decode_line_2): Update.
8537
8538 2018-04-05 Tom Tromey <tom@tromey.com>
8539
8540 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
8541 (unexpected_linespec_error): Update.
8542 (linespec_parse_basic, parse_linespec): Update.
8543
8544 2018-04-05 Tom Tromey <tom@tromey.com>
8545
8546 * linespec.c (linespec_parse_basic): Reindent.
8547
8548 2018-04-05 Tom Tromey <tom@tromey.com>
8549
8550 * minsyms.h (iterate_over_minimal_symbols): Update.
8551 * minsyms.c (iterate_over_minimal_symbols): Take a
8552 gdb::function_view.
8553 * linespec.c (struct collect_minsyms): Remove.
8554 (compare_msyms): Now a std::sort comparator.
8555 (add_minsym): Add parameters.
8556 (search_minsyms_for_name): Update. Use std::vector.
8557
8558 2018-04-03 Tom Tromey <tom@tromey.com>
8559
8560 * mipsread.c (read_alphacoff_dynamic_symtab): Use
8561 gdb::byte_vector.
8562
8563 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8564
8565 * MAINTAINERS (Write After Approval): Add Weimin Pan.
8566
8567 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
8568
8569 PR gdb/16959
8570 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
8571 printing static type.
8572
8573 2018-04-01 Tom Tromey <tom@tromey.com>
8574
8575 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
8576 (rs6000_xfer_shared_libraries): Update.
8577
8578 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8579
8580 * common/gdb_vecs.h (char_ptr): Remove.
8581 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
8582
8583 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8584
8585 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
8586 with std::vector.
8587 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
8588
8589 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
8590
8591 * tracepoint.h (struct uploaded_tp): Initialize fields.
8592 <actions, step_actions, cmd_strings>: Change type to
8593 std::vector<char *>.
8594 * tracepoint.c (get_uploaded_tp): Allocate with new.
8595 (free_uploaded_tps): Free with delete.
8596 (parse_tracepoint_definition): Adjust to std::vector change.
8597 * breakpoint.c (read_uploaded_action): Likewise.
8598 (create_tracepoint_from_upload): Likewise.
8599 * ctf.c (ctf_write_uploaded_tp): Likewise.
8600 (SET_ARRAY_FIELD): Likewise.
8601 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
8602
8603 2018-03-30 Tom Tromey <tom@tromey.com>
8604
8605 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
8606 std::unique_ptr.
8607 (svr4_keep_data_in_core): Update.
8608 (svr4_read_so_list): Update.
8609
8610 2018-03-30 Tom Tromey <tom@tromey.com>
8611
8612 * windows-nat.c (handle_output_debug_string, handle_exception):
8613 Update.
8614 * target.h (target_read_string): Update.
8615 * target.c (target_read_string): Change "string" to
8616 unique_xmalloc_ptr.
8617 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8618 Update.
8619 * solib-frv.c (frv_current_sos): Update.
8620 * solib-dsbt.c (dsbt_current_sos): Update.
8621 * solib-darwin.c (darwin_current_sos): Update.
8622 * linux-thread-db.c (inferior_has_bug): Update.
8623 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
8624 Update. Remove alloca.
8625 * ada-lang.c (ada_main_name): Update.
8626
8627 2018-03-30 Tom Tromey <tom@tromey.com>
8628
8629 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
8630 (struct dwo_file_deleter): New.
8631 (dwo_file_up): New typedef.
8632 (open_and_init_dwo_file): Use dwo_file_up.
8633 (free_dwo_file_cleanup): Remove.
8634
8635 2018-03-30 Tom Tromey <tom@tromey.com>
8636
8637 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
8638 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
8639
8640 2018-03-30 Tom Tromey <tom@tromey.com>
8641
8642 * dwarf2read.c (class free_cached_comp_units): New class.
8643 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
8644 (free_cached_comp_units): Remove function.
8645
8646 2018-03-30 Tom Tromey <tom@tromey.com>
8647
8648 * utils.h (make_cleanup_unpush_target): Remove.
8649 * inf-ptrace.c (struct target_unpusher): New.
8650 (target_unpush_up) New typedef.
8651 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
8652 target_unpush_up.
8653 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
8654
8655 2018-03-27 Tom Tromey <tom@tromey.com>
8656
8657 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
8658
8659 2018-03-27 Pedro Alves <palves@redhat.com>
8660 Tom Tromey <tom@tromey.com>
8661
8662 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
8663 destructor. Now a class.
8664 (gdb_readline_wrapper_cleanup): Remove function.
8665 (gdb_readline_wrapper): Remove cleanups.
8666
8667 2018-03-27 Tom Tromey <tom@tromey.com>
8668
8669 * typeprint.h (struct type_print_options) <local_typedefs,
8670 global_typedefs>: Remove "struct" keyword.
8671 (class typedef_hash_table): New class.
8672 (recursively_update_typedef_hash, add_template_parameters)
8673 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
8674 (find_typedef_in_hash): Don't declare.
8675 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
8676 (typedef_hash_table::recursively_update): Rename from
8677 recursively_update_typedef_hash. Now a member.
8678 (typedef_hash_table::add_template_parameters): Rename from
8679 add_template_parameters. Now a member.
8680 (typedef_hash_table::typedef_hash_table): Now a constructor;
8681 rename from create_typedef_hash.
8682 (typedef_hash_table::~typedef_hash_table): Now a destructor;
8683 rename from free_typedef_hash.
8684 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
8685 (do_free_global_table): Remove.
8686 (typedef_hash_table::typedef_hash_table): New constructor; renamed
8687 from copy_type_recursive.
8688 (create_global_typedef_table): Remove.
8689 (typedef_hash_table::find_global_typedef): Now a member of
8690 typedef_hash_table.
8691 (typedef_hash_table::find_typedef): Rename from
8692 find_typedef_in_hash; now a member.
8693 (whatis_exp): Update.
8694 * extension.h (struct ext_lang_type_printers): Add constructor and
8695 destructor.
8696 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
8697 declare.
8698 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
8699 Now a constructor; rename from start_ext_lang_type_printers.
8700 (ext_lang_type_printers): Now a destructor; rename from
8701 free_ext_lang_type_printers.
8702 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
8703 Update.
8704 (c_type_print_base_struct_union): Update. Remove cleanups.
8705
8706 2018-03-27 Tom Tromey <tom@tromey.com>
8707
8708 * dwarf-index-write.c: Include <cmath>.
8709
8710 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8711
8712 * NEWS: Add entry describing new "set|show varsize-limit" command.
8713 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
8714 command.
8715 * printcmd.c (_initialize_printcmd): Add "set var" alias of
8716 "set variable".
8717
8718 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
8719
8720 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
8721 dwarf-index-write.c
8722 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
8723 * dwarf-index-common.c: New file.
8724 * dwarf-index-common.h: New file.
8725 * dwarf-index-write.c: New file.
8726 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
8727 (struct dwarf2_section_info): Move from here.
8728 (dwarf2_section_info_def): Likewise.
8729 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
8730 (offset_type): Likewise.
8731 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
8732 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
8733 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
8734 (byte_swap): Likewise.
8735 (MAYBE_SWAP): Likewise.
8736 (dwarf2_per_cu_ptr): Likewise.
8737 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
8738 (struct tu_stats): Likewise.
8739 (struct dwarf2_per_objfile): Likewise.
8740 (struct dwarf2_per_cu_data): Likewise.
8741 (struct signatured_type): Likewise.
8742 (sig_type_ptr): Likewise.
8743 (DEF_VEC_P (sig_type_ptr)): Likewise.
8744 (INDEX4_SUFFIX): Likewise.
8745 (INDEX5_SUFFIX): Likewise.
8746 (DEBUG_STR_SUFFIX): Likewise.
8747 (dwarf2_read_section): Make non-static.
8748 (mapped_index_string_hash): Move from here.
8749 (dwarf5_djb_hash): Likewise.
8750 (file_write): Likewise.
8751 (class data_buf): Likewise.
8752 (struct symtab_index_entry): Likewise.
8753 (struct mapped_symtab): Likewise.
8754 (find_slot): Likewise.
8755 (hash_expand): Likewise.
8756 (add_index_entry): Likewise.
8757 (uniquify_cu_indices): Likewise.
8758 (class c_str_view): Likewise.
8759 (class c_str_view_hasher): Likewise.
8760 (class vector_hasher): Likewise.
8761 (write_hash_table): Likewise.
8762 (psym_index_map): Likewise.
8763 (struct addrmap_index_data): Likewise.
8764 (add_address_entry): Likewise.
8765 (add_address_entry_worker): Likewise.
8766 (write_address_map): Likewise.
8767 (symbol_kind): Likewise.
8768 (write_psymbols): Likewise.
8769 (struct signatured_type_index_data): Likewise.
8770 (write_one_signatured_type): Likewise.
8771 (recursively_count_psymbols): Likewise.
8772 (recursively_write_psymbols): Likewise.
8773 (class debug_names): Likewise.
8774 (check_dwarf64_offsets): Likewise.
8775 (psyms_seen_size): Likewise.
8776 (write_gdbindex): Likewise.
8777 (write_debug_names): Likewise.
8778 (assert_file_size): Likewise.
8779 (write_psymtabs_to_index): Likewise.
8780 (save_gdb_index_command): Likewise.
8781 (_initialize_dwarf2_read): Don't register the "save gdb-index"
8782 command.
8783 * dwarf2read.h: New file.
8784
8785 2018-03-27 Joel Brobecker <brobecker@adacore.com>
8786
8787 PR gdb/22670
8788 * dwarf2read.c (dwarf2_physname): Do not return the demangled
8789 symbol name if the CU's language stores symbol names in linkage
8790 format.
8791 * language.h (struct language_defn)
8792 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
8793 all instances of this struct.
8794
8795 2018-03-26 Tom Tromey <tom@tromey.com>
8796
8797 * stack.c (backtrace_command_1): Remove verbose code.
8798
8799 2018-03-26 Tom Tromey <tom@tromey.com>
8800
8801 * python/py-framefilter.c (py_print_type): Don't catch
8802 exceptions. Return void.
8803 (py_print_value): Likewise.
8804 (py_print_single_arg): Likewise.
8805 (enumerate_args): Don't catch exceptions.
8806 (py_print_args): Likewise.
8807 (py_print_frame): Likewise.
8808 (gdbpy_apply_frame_filter): Catch exceptions here.
8809
8810 2018-03-26 Tom Tromey <tom@tromey.com>
8811
8812 * stack.c (_initialize_stack): Remove trailing newlines from help
8813 text. Add "Usage" line to "backtrace" help.
8814
8815 2018-03-26 Tom Tromey <tom@tromey.com>
8816
8817 PR python/16486:
8818 * python/py-framefilter.c (py_print_args): Call wrap_hint.
8819
8820 2018-03-26 Tom Tromey <tom@tromey.com>
8821
8822 * python/py-framefilter.c (py_print_single_arg): Return
8823 EXT_LANG_BT_ERROR from catch.
8824
8825 2018-03-26 Tom Tromey <tom@tromey.com>
8826
8827 PR backtrace/15584:
8828 * stack.c (backtrace_command_1): Move some code into no-filters
8829 "if".
8830
8831 2018-03-26 Tom Tromey <tom@tromey.com>
8832
8833 * python/py-framefilter.c (throw_quit_or_print_exception): New
8834 function.
8835 (gdbpy_apply_frame_filter): Use it.
8836
8837 2018-03-26 Tom Tromey <tom@tromey.com>
8838
8839 PR cli/17716:
8840 * python/py-framefilter.c (py_print_type, py_print_value)
8841 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
8842 RETURN_MASK_ERROR.
8843
8844 2018-03-26 Tom Tromey <tom@tromey.com>
8845
8846 * python/py-framefilter.c (enumerate_args): Use
8847 gdb::unique_xmalloc_ptr.
8848
8849 2018-03-26 Tom Tromey <tom@tromey.com>
8850
8851 * python/py-framefilter.c (py_print_frame): Return
8852 EXT_LANG_BT_OK.
8853 (gdbpy_apply_frame_filter): Update comment.
8854 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
8855 Remove.
8856 <EXT_LANG_BT_NO_FILTERS>: Change value.
8857
8858 2018-03-26 Tom Tromey <tom@tromey.com>
8859
8860 PR backtrace/15582:
8861 * stack.c (backtrace_command): Parse "hide" argument.
8862 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
8863 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
8864 constant.
8865
8866 2018-03-26 Tom Tromey <tom@tromey.com>
8867
8868 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
8869 add "flags".
8870 (backtrace_command): Remove "fulltrace", add "flags".
8871
8872 2018-03-26 Tom Tromey <tom@tromey.com>
8873
8874 * stack.c (backtrace_command): Rewrite command line parsing.
8875
8876 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8877
8878 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
8879
8880 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
8881
8882 * filename-seen-cache.h: Add include guard.
8883
8884 2018-03-26 Keith Seitz <keiths@redhat.com>
8885
8886 * symfile.c (place_section): Remove "struct" from section_addr_info
8887 in comment.
8888 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
8889 "struct" keyword from section_addr_info.
8890
8891 2018-03-26 Alan Hayward <alan.hayward@arm.com>
8892
8893 * regformats/regdef.h (reg): Add constructors.
8894
8895 2018-03-25 Pedro Alves <palves@redhat.com>
8896
8897 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
8898 if then/else bodies in var_func_name extraction.
8899
8900 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
8901
8902 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
8903 lookup_minimal_symbol() to find symbol entry.
8904 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
8905
8906 2018-03-23 Keith Seitz <keiths@redhat.com>
8907
8908 PR c++/22968
8909 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
8910 nested type definitions for C++, too.
8911
8912 2018-03-23 Tom Tromey <tom@tromey.com>
8913
8914 * machoread.c (struct oso_el): Add a constructor. Don't define as
8915 a typedef.
8916 (macho_register_oso): Remove.
8917 (macho_symtab_read): Take a std::vector.
8918 (oso_el_compare_name): Now a std::sort comparator.
8919 (macho_symfile_read_all_oso): Take a std::vector.
8920 (macho_symfile_read): Use std::vector. Remove cleanups.
8921
8922 2018-03-22 Tom Tromey <tom@tromey.com>
8923
8924 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
8925 (record_full_goto_bookmark): Use std::string.
8926
8927 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8928
8929 PR tdep/18295
8930 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
8931 a single mask.
8932
8933 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8934
8935 * rs6000-tdep.c (store_insn_p): New function.
8936 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
8937 and cr_reg to their unshifted values. Use store_insn_p to
8938 match LR saves using either R1 or fdata->alloca_reg. Use
8939 store_insn_p to match CR saves. Set alloca_reg_offset
8940 when alloca_reg and framep are set. Remove lr_reg shift
8941 when assigning to fdata->lr_register.
8942
8943 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
8944
8945 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
8946 command line args instead of emitting a warning.
8947
8948 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8949
8950 * tracepoint.h (struct static_tracepoint_marker): Initialize
8951 fields, define default constructor, move constructor and move
8952 assignment, disable the rest.
8953 <str_id, extra>: Make std::string.
8954 (release_static_tracepoint_marker): Remove.
8955 (free_current_marker): Remove.
8956 * tracepoint.c (free_current_marker): Remove.
8957 (parse_static_tracepoint_marker_definition): Adjust to
8958 std::string, use new hex2str overload.
8959 (release_static_tracepoint_marker): Remove.
8960 (print_one_static_tracepoint_marker): Get marker by reference
8961 and adjust to std::string.
8962 (info_static_tracepoint_markers_command): Adjust to std::vector
8963 changes
8964 * target.h (static_tracepoint_marker_p): Remove typedef.
8965 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
8966 (struct target_ops) <to_static_tracepoint_marker_at>: Return
8967 bool.
8968 <to_static_tracepoint_markers_by_strid>: Return std::vector.
8969 * target-debug.h
8970 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
8971 (target_debug_print_std_vector_static_tracepoint_marker): New.
8972 (target_debug_print_struct_static_tracepoint_marker_p): Rename
8973 to...
8974 (target_debug_print_static_tracepoint_marker_p): ... this.
8975 * target-delegates.c: Re-generate.
8976 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
8977 Make std::string.
8978 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
8979 (decode_static_tracepoint_spec): Adjust to std::vector.
8980 (tracepoint_print_one_detail): Adjust to std::string.
8981 (strace_marker_decode_location): Adjust to std::string.
8982 (update_static_tracepoint): Adjust to std::string, remove call
8983 to release_static_tracepoint_marker.
8984 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8985 Adjust to std::vector.
8986 * remote.c (remote_static_tracepoint_marker_at): Return bool.
8987 (remote_static_tracepoint_markers_by_strid): Adjust to
8988 std::vector.
8989 * common/rsp-low.h (hex2str): New overload with explicit count
8990 of bytes.
8991 * common/rsp-low.c (hex2str): New overload with explicit count
8992 of bytes.
8993 * unittests/rsp-low-selftests.c (test_hex2str): New function.
8994 (_initialize_rsp_low_selftests): Add test_hex2str test.
8995 * unittests/tracepoint-selftests.c
8996 (test_parse_static_tracepoint_marker_definition): Adjust to
8997 std::string.
8998
8999 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9000
9001 * tracepoint.c (parse_static_tracepoint_marker_definition):
9002 Consider case where the definition is followed by more
9003 definitions.
9004 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9005 tracepoint-selftests.c.
9006 * unittests/tracepoint-selftests.c: New.
9007
9008 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9009
9010 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9011 Carvalho.
9012
9013 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9014
9015 * symtab.c (find_pc_sect_line): fixed indentation.
9016
9017 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9018
9019 * symtab.c (find_pc_sect_line): now uses binary search.
9020
9021 2018-03-19 Tom Tromey <tom@tromey.com>
9022
9023 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9024 "IDENT" production.
9025
9026 2018-03-19 Pedro Alves <palves@redhat.com>
9027 Tom Tromey <tom@tromey.com>
9028
9029 * unittests/observable-selftests.c: New file.
9030 * common/observable.h: New file.
9031 * observable.h: New file.
9032 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9033 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9034 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9035 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9036 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9037 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9038 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9039 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9040 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9041 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9042 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9043 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9044 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9045 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9046 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9047 tui/tui-interp.c, valops.c: Update all users.
9048 * tui/tui-hooks.c (tui_bp_created_observer)
9049 (tui_bp_deleted_observer, tui_bp_modified_observer)
9050 (tui_inferior_exit_observer, tui_before_prompt_observer)
9051 (tui_normal_stop_observer, tui_register_changed_observer):
9052 Remove.
9053 (tui_observers_token): New global.
9054 (attach_or_detach, tui_attach_detach_observers): New functions.
9055 (tui_install_hooks, tui_remove_hooks): Use
9056 tui_attach_detach_observers.
9057 * record-btrace.c (record_btrace_thread_observer): Remove.
9058 (record_btrace_thread_observer_token): New global.
9059 * observer.sh: Remove.
9060 * observer.c: Rename to observable.c.
9061 * observable.c (namespace gdb_observers): Define new objects.
9062 (observer_debug): Move into gdb_observers namespace.
9063 (struct observer, struct observer_list, xalloc_observer_list_node)
9064 (xfree_observer_list_node, generic_observer_attach)
9065 (generic_observer_detach, generic_observer_notify): Remove.
9066 (_initialize_observer): Update.
9067 Don't include observer.inc.
9068 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9069 (clean mostlyclean): Likewise.
9070 (observer.h, observer.inc): Remove targets.
9071 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9072 (COMMON_SFILES): Use observable.c, not observer.c.
9073 * .gitignore: Remove observer.h.
9074
9075 2018-03-18 Tom Tromey <tom@tromey.com>
9076
9077 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9078 gdb::def_vector.
9079 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9080
9081 2018-03-17 Tom Tromey <tom@tromey.com>
9082
9083 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9084
9085 2018-03-17 Tom Tromey <tom@tromey.com>
9086
9087 * target.c (class scoped_target_fd): New.
9088 (target_fileio_close_cleanup): Remove.
9089 (target_fileio_read_alloc_1): Use scoped_target_fd.
9090
9091 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9092
9093 * silent-rules.mk: New.
9094 * Makefile.in: Include silent-rules.mk
9095 (srcdir, VPATH, top_srcdir): Move up.
9096 (COMPILE): Add ECHO_CXX.
9097 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9098 (init.c): Add ECHO_INIT_C.
9099 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9100 (version.c): Add ECHO_GEN.
9101 (printcmd.o): Add ECHO_CXX.
9102 (target-float.o): Add ECHO_CXX.
9103 (ada-exp.o): Add ECHO_CXX.
9104 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9105 (insight$(EXEEXT)): Add ECHO_CXXLD.
9106 * gnulib/configure.ac: Add AM_SILENT_RULES.
9107 * gnulib/aclocal.m4: Re-generate.
9108 * gnulib/configure: Re-generate.
9109 * gnulib/import/Makefile.in: Re-generate.
9110
9111 2018-03-16 Tom Tromey <tom@tromey.com>
9112
9113 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9114 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9115 * utils.c (do_free_section_addr_info)
9116 (make_cleanup_free_section_addr_info): Remove.
9117 * symfile.h (struct other_sections): Add constructor.
9118 (struct section_addr_info): Remove.
9119 (section_addr_info): New typedef.
9120 (struct sym_fns) <sym_offsets>: Change type of parameter.
9121 (build_section_addr_info_from_objfile)
9122 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9123 (default_symfile_offsets, symbol_file_add)
9124 (symbol_file_add_from_bfd)
9125 (build_section_addr_info_from_section_table): Update.
9126 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9127 * symfile.c (alloc_section_addr_info): Remove.
9128 (build_section_addr_info_from_section_table): Change return type.
9129 Update.
9130 (build_section_addr_info_from_bfd)
9131 (build_section_addr_info_from_objfile): Likewise.
9132 (free_section_addr_info): Remove.
9133 (relative_addr_info_to_section_offsets): Change type of "addrs".
9134 (addrs_section_compar): Now a std::sort comparator.
9135 (addrs_section_sort): Change return type.
9136 (addr_info_make_relative): Change type of "addrs". Update.
9137 (default_symfile_offsets, syms_from_objfile_1)
9138 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9139 (symbol_file_add_separate): Update.
9140 (symbol_file_add): Change type of "addrs". Update.
9141 (add_symbol_file_command): Update. Remove cleanups.
9142 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9143 cleanups.
9144 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9145 * solib.c (solib_read_symbols): Update.
9146 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9147 * machoread.c (macho_symfile_offsets): Update.
9148 * jit.c (jit_bfd_try_read_symtab): Update.
9149
9150 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9151
9152 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9153 unittests/utils-selftests.c.
9154 * unittests/utils-selftests.c: New file.
9155
9156 2018-03-14 Tom Tromey <tom@tromey.com>
9157
9158 PR cli/14977:
9159 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9160 for NULL.
9161
9162 2018-03-14 Tom Tromey <tom@tromey.com>
9163
9164 PR cli/19918:
9165 * printcmd.c (printf_pointer): Allow "-" in format.
9166
9167 2018-03-14 Tom Tromey <tom@tromey.com>
9168
9169 * printcmd.c (_initialize_printcmd): Add usage to printf.
9170
9171 2018-03-14 Yao Qi <qiyao@sourceware.org>
9172
9173 * MAINTAINERS: Update my email address.
9174
9175 2018-03-13 Tom Tromey <tom@tromey.com>
9176
9177 * machoread.c (macho_check_dsym): Change filenamep to a
9178 std::string*.
9179 (macho_symfile_read): Update.
9180 * symfile.c (load_command): Use std::string.
9181
9182 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9185 to error message string.
9186 (riscv_register_name): Use xsnprintf instead of sprintf.
9187 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9188 internal_error.
9189 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9190 error.
9191 (riscv_push_dummy_call): Likewise.
9192
9193 2018-03-12 Tom Tromey <tom@tromey.com>
9194
9195 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9196 Use gdb::byte_vector.
9197 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9198
9199 2018-03-12 Yao Qi <yao.qi@linaro.org>
9200
9201 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9202 parameter type to readable_regcache.
9203 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9204 the declaration.
9205
9206 2018-03-11 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2read.c (struct nextfield): Add initializers.
9209 (struct nextfnfield): Remove.
9210 (struct fnfieldlist): Add initializers. Remove "length" and
9211 "head", use std::vector.
9212 (struct decl_field_list): Remove.
9213 (struct field_info): Add initializers.
9214 <fields, baseclasses>: Now std::vector.
9215 <nbaseclasses, nfnfields, typedef_field_list_count,
9216 nested_types_list_count>: Remove.
9217 (dwarf2_add_field, dwarf2_add_type_defn)
9218 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9219 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9220 (process_structure_scope): Update.
9221
9222 2018-03-11 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9225 for use by std::sort.
9226 (build_type_psymtabs_1): Use std::vector.
9227
9228 2018-03-09 Eli Zaretskii <eliz@gnu.org>
9229
9230 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9231 and LIBMPFR in the printed configuration.
9232
9233 2018-03-08 Tom Tromey <tom@tromey.com>
9234
9235 * source.c (get_filename_and_charpos): Use scoped_fd.
9236 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9237 (procfs_pidlist): Likewise.
9238 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9239 (iterate_over_mappings): Likewise.
9240
9241 2018-03-08 Tom Tromey <tom@tromey.com>
9242
9243 * infcall.c (struct call_return_meta_info)
9244 <stack_temporaries_enabled>: Remove.
9245 (get_call_return_value, call_function_by_hand_dummy): Update.
9246 * thread.c (disable_thread_stack_temporaries): Remove.
9247 (enable_thread_stack_temporaries): Remove.
9248 (thread_stack_temporaries_enabled_p): Return bool.
9249 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9250 (get_last_thread_stack_temporary): Update.
9251 * eval.c (evaluate_subexp): Update.
9252 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9253 class, not a function.
9254 (value_ptr, value_vec): Remove typedefs.
9255 (class thread_info) <stack_temporaries_enabled>: Now bool.
9256 <stack_temporaries>: Now a std::vector.
9257 (thread_stack_temporaries_enabled_p)
9258 (value_in_thread_stack_temporaries): Return bool.
9259
9260 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9261
9262 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9263 (getpkt_or_notif_sane_1): Likewise.
9264
9265 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9266
9267 * build-id.c (build_id_to_debug_bfd): Use std::string.
9268
9269 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9270
9271 * build-id.c (find_separate_debug_file_by_buildid): Return
9272 std::string.
9273 * build-id.h (find_separate_debug_file_by_buildid): Return
9274 std::string.
9275 * coffread.c (coff_symfile_read): Adjust to std::string.
9276 * elfread.c (elf_symfile_read): Adjust to std::string.
9277 * symfile.c (separate_debug_file_exists): Change parameter to
9278 std::string.
9279 (find_separate_debug_file): Return std::string.
9280 (find_separate_debug_file_by_debuglink): Return std::string.
9281 * symfile.h (find_separate_debug_file_by_debuglink): Return
9282 std::string.
9283
9284 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9285
9286 * common/xml-utils.c (xml_escape_text): Move code to...
9287 (xml_escape_text_append): ... this new function.
9288 * common/xml-utils.h (xml_escape_text_append): New declaration.
9289 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9290 New function.
9291 (_initialize_xml_utils): register test_xml_escape_text_append as
9292 a selftest.
9293
9294 2018-03-07 Alan Hayward <alan.hayward@arm.com>
9295
9296 * defs.h: Remove MAX_REGISTER_SIZE.
9297 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
9298 asserts.
9299 * python/py-unwind.c (pyuw_sniffer): Likewise.
9300
9301 2018-03-07 Tom Tromey <tom@tromey.com>
9302
9303 * linux-tdep.c (linux_info_proc): Update.
9304 * target.h (struct target_ops) <to_fileio_readlink>: Return
9305 optional<string>.
9306 (target_fileio_readlink): Return optional<string>.
9307 * remote.c (remote_hostio_readlink): Return optional<string>.
9308 * inf-child.c (inf_child_fileio_readlink): Return
9309 optional<string>.
9310 * target.c (target_fileio_readlink): Return optional<string>.
9311
9312 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9313
9314 * regcache.c (cooked_read_test): Add riscv to the list of
9315 architectures that have a save_reggroup.
9316
9317 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9318
9319 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9320 value is not a dynamic class object.
9321
9322 2018-03-06 Tom Tromey <tom@tromey.com>
9323
9324 * rust-exp.y: Formatting fixes.
9325
9326 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9327
9328 * riscv-tdep.c (riscv_register_name): Remove target description
9329 support.
9330 (riscv_gdbarch_init): Remove target description check.
9331
9332 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9335 comment.
9336 * riscv-tdep.h: Likewise.
9337
9338 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9341 (riscv_pseudo_register_write): Delete.
9342 (riscv_gdbarch_init): Remove all use of pseudo registers.
9343
9344 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9345
9346 * record-btrace.c (btrace_print_lines): Replace cleanup
9347 parameter with RAII equivalents.
9348 (btrace_insn_history): Replace cleanup with RAII equivalents.
9349 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9350 make_cleanup_ui_out_tuple_begin_end): Remove.
9351 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9352 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9353 make_cleanup_ui_out_list_begin_end): Remove.
9354
9355 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9356
9357 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9358 parameter types to std::vector. Use bool.
9359 (record_btrace_wait): Replace VEC(tp_t) with
9360 std::vector<thread_info *>.
9361 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9362
9363 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9364
9365 * record-btrace.c (record_btrace_disable_callback): Remove.
9366 (struct scoped_btrace_disable): New.
9367 (record_btrace_open): Use scoped_btrace_disable.
9368
9369 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9372 reading values from registers.
9373
9374 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9375
9376 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9377 where appropriate.
9378
9379 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9382 change parameter type. Use GDB's print functions, and use
9383 core_addr_to_string where appropriate.
9384 (riscv_push_dummy_call): Use core_addr_to_string where
9385 appropriate, update call to riscv_print_arg_location, and reindent
9386 a few lines.
9387 (riscv_return_value): Update call to riscv_print_arg_location.
9388
9389 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9390 Tim Newsome <tim@sifive.com>
9391 Albert Ou <a0u@eecs.berkeley.edu>
9392 Darius Rad <darius@bluespec.com>
9393
9394 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9395 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9396 (ALLDEPFILES): Add riscv-tdep.c
9397 * configure.tgt: Add riscv support.
9398 * riscv-tdep.c: New file.
9399 * riscv-tdep.h: New file.
9400 * NEWS: Mention new target.
9401 * MAINTAINERS: Add entry for riscv.
9402
9403 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9404
9405 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9406 fields within aggregates.
9407
9408 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9409
9410 * record-btrace.c (btrace_print_lines): Change type of flags to
9411 gdb_disassembly_flags.
9412
9413 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9414
9415 * fbsd-nat.c: Include "inf-ptrace.h".
9416 (USE_SIGTRAP_SIGINFO): Conditionally define.
9417 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9418 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9419 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9420 function.
9421 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9422 Likewise.
9423 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9424 Likewise.
9425 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9426 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9427 "supports_stopped_by_hw_breakpoint" target methods.
9428
9429 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9430
9431 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9432 * fbsd-nat.c (debug_fbsd_nat): New variable.
9433 (show_fbsd_nat_debug): New function.
9434 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9435 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9436
9437 2018-03-04 John Baldwin <jhb@FreeBSD.org>
9438
9439 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
9440 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
9441 prototype.
9442 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
9443 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
9444 method.
9445
9446 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9447
9448 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
9449 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
9450
9451 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9452
9453 * charset.c (struct charset_vector): New.
9454 (charsets): Change type to charset_vector.
9455 (find_charset_names): Adjust.
9456 (add_one): Adjust.
9457 (_initialize_charset): Adjust.
9458
9459 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9460
9461 * progspace.h (struct program_space) <deleted_solibs>: Change
9462 type to std::vector<std::string>.
9463 * progspace.c (clear_program_space_solib_cache): Adjust.
9464 * breakpoint.c (print_solib_event): Adjust.
9465 (check_status_catch_solib): Adjust.
9466 * solib.c (update_solib_list): Adjust.
9467 * ui-out.h (class ui_out) <field_string>: New overload.
9468 * ui-out.c (ui_out::field_string): New overload.
9469
9470 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9471
9472 * progspace.h (struct program_space): Add constructor and
9473 destructor, initialize fields.
9474 (add_program_space): Remove.
9475 * progspace.c (add_program_space): Rename to...
9476 (program_space::program_space): ... this.
9477 (release_program_space): Rename to...
9478 (program_space::~program_space): ... this.
9479 (delete_program_space): Use delete to delete program_space.
9480 (initialize_progspace): Use new to allocate program_space.
9481 * inferior.c (add_inferior_with_spaces): Likewise.
9482 (clone_inferior_command): Likewise.
9483 * infrun.c (follow_fork_inferior): Likewise.
9484 (handle_vfork_child_exec_or_exit): Likewise.
9485
9486 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
9489 (delim_string_to_char_ptr_vec): Return std::vector of
9490 gdb::unique_xmalloc_ptr.
9491 (dirnames_to_char_ptr_vec_append): Take std::vector of
9492 gdb::unique_xmalloc_ptr.
9493 (dirnames_to_char_ptr_vec): Return std::vector of
9494 gdb::unique_xmalloc_ptr.
9495 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
9496 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
9497 (delim_string_to_char_ptr_vec): Return an std::vector of
9498 gdb::unique_xmalloc_ptr, adjust the code.
9499 (dirnames_to_char_ptr_vec_append): Take an std::vector of
9500 gdb::unique_xmalloc_ptr, adjust the code.
9501 (dirnames_to_char_ptr_vec): Return an std::vector of
9502 gdb::unique_xmalloc_ptr, adjust the code.
9503 * auto-load.c (auto_load_safe_path_vec): Change type to
9504 std::vector of gdb::unique_xmalloc_ptr.
9505 (auto_load_expand_dir_vars): Return an std::vector of
9506 gdb::unique_xmalloc_ptr, adjust the code.
9507 (auto_load_safe_path_vec_update): Adjust.
9508 (filename_is_in_auto_load_safe_path_vec): Adjust.
9509 (auto_load_objfile_script_1): Adjust.
9510 * build-id.c (build_id_to_debug_bfd): Adjust.
9511 * linux-thread-db.c (thread_db_load_search): Adjust.
9512 * source.c (add_path): Adjust.
9513 (openp): Adjust.
9514 * symfile.c (find_separate_debug_file): Adjust.
9515 * utils.c (do_free_char_ptr_vec): Remove.
9516 (make_cleanup_free_char_ptr_vec): Remove.
9517
9518 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
9519
9520 PR gdb/22907
9521 * common/pathstuff.c: Conditionally include "<windows.h>".
9522
9523 2018-03-01 Georg Sauthoff <mail@georg.so>
9524
9525 PR gdb/22888
9526 * gcore.in: Quote variables and switch interpreter to bash.
9527
9528 2018-03-01 Tom Tromey <tom@tromey.com>
9529
9530 * dwarf2read.c (alloc_discriminant_info): Fix default_index
9531 assertion. Add assertion for discriminant_index.
9532 (quirk_rust_enum): Use correct base type name in univariant case.
9533
9534 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
9535
9536 * record.c (get_call_history_modifiers): Return a
9537 record_print_flags.
9538 (cmd_record_call_history): Adjust.
9539 * record-btrace.c (record_btrace_call_history): Adjust.
9540 (record_btrace_call_history_range): Adjust.
9541 (record_btrace_call_history_from): Adjust.
9542 * target-debug.h (target_debug_print_record_print_flags): New.
9543 * target-delegates.c: Re-generate.
9544 * target.c (target_call_history): Change flags type.
9545 (target_call_history_from): Likewise.
9546 (target_call_history_range): Likewise.
9547 * target.h (struct target_ops) <target_call_history>: Likewise.
9548 (target_call_history_from): Likewise.
9549 (target_call_history_range): Likewise.
9550
9551 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9552 Simon Marchi <simon.marchi@polymtl.ca>
9553
9554 * common/common-utils.c: Include "sys/stat.h".
9555 (is_regular_file): Move here from "source.c"; change return
9556 type to "bool".
9557 * common/common-utils.h (is_regular_file): New prototype.
9558 * common/pathstuff.c (contains_dir_separator): New function.
9559 * common/pathstuff.h (contains_dir_separator): New prototype.
9560 * source.c: Don't include "sys/stat.h".
9561 (is_regular_file): Move to "common/common-utils.c".
9562
9563 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
9564
9565 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
9566 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
9567 * auto-load.c: Include "common/pathstuff.h".
9568 * common/common-def.h (current_directory): Move here.
9569 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
9570 function.
9571 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
9572 prototype.
9573 * common/pathstuff.c: New file.
9574 * common/pathstuff.h: New file.
9575 * compile/compile.c: Include "common/pathstuff.h".
9576 * defs.h (current_directory): Move to "common/common-defs.h".
9577 * dwarf2read.c: Include "common/pathstuff.h".
9578 * exec.c: Likewise.
9579 * guile/scm-safe-call.c: Likewise.
9580 * linux-thread-db.c: Likewise.
9581 * main.c: Likewise.
9582 * nto-tdep.c: Likewise.
9583 * objfiles.c: Likewise.
9584 * source.c: Likewise.
9585 * symtab.c: Likewise.
9586 * utils.c: Include "common/pathstuff.h".
9587 (gdb_realpath): Move to "common/pathstuff.c".
9588 (gdb_realpath_keepfile): Likewise.
9589 (gdb_abspath): Likewise.
9590 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
9591 (gdb_realpath_keepfile): Likewise.
9592 (gdb_abspath): Likewise.
9593
9594 2018-02-28 John Baldwin <jhb@FreeBSD.org>
9595
9596 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
9597 wildcard process pid for super_resume for kernels with a
9598 specific bug.
9599
9600 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
9601
9602 * compile/compile.c (get_args): Add additional comments
9603 explaining function.
9604
9605 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
9606 Tom Tromey <tom@tromey.com>
9607
9608 * target.h (memory_write_request_s): Remove typedef. Don't define
9609 VEC.
9610 (target_write_memory_blocks): Change argument to std::vector.
9611 (struct memory_write_request): Add constructor.
9612 * target-memory.c (compare_block_starting_address): Return bool.
9613 Change argument types.
9614 (claim_memory): Change arguments to use std::vector.
9615 (split_regular_and_flash_blocks, blocks_to_erase)
9616 (compute_garbled_blocks): Likewise.
9617 (cleanup_request_data, cleanup_write_requests_vector): Remove.
9618 (target_write_memory_blocks): Change argument to std::vector.
9619 * symfile.c (struct load_section_data): Add constructor and
9620 destructor. Use std::vector for "requests".
9621 (struct load_progress_data): Add initializers.
9622 (load_section_callback): Update. Use "new".
9623 (clear_memory_write_data): Remove.
9624 (generic_load): Update.
9625
9626 2018-02-27 Alan Hayward <alan.hayward@arm.com>
9627
9628 * arch/aarch64.h: Use common/tdesc.h.
9629
9630 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9631
9632 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
9633 architecture with a 64-bit ABI.
9634
9635 2018-02-26 Maciej W. Rozycki <macro@mips.com>
9636
9637 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
9638 ahead of target description loading.
9639
9640 2018-02-26 Tom Tromey <tom@tromey.com>
9641
9642 * stack.c (backtrace_command_1): Update.
9643 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
9644 of "flags".
9645 * python/py-framefilter.c (py_print_frame)
9646 (gdbpy_apply_frame_filter): Change type of "flags".
9647 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
9648 of "flags".
9649 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
9650 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
9651 * extension.h (enum frame_filter_flag): Rename from
9652 frame_filter_flags.
9653 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
9654 (apply_ext_lang_frame_filter): Change type of "flags".
9655 * extension.c (apply_ext_lang_frame_filter): Change type of
9656 "flags".
9657 * extension-priv.h (struct extension_language_ops)
9658 <apply_frame_filter>: Change type of "flags".
9659
9660 2018-02-26 Tom Tromey <tom@tromey.com>
9661
9662 PR python/16497:
9663 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
9664 off-by-one in py_end computation.
9665 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
9666 PRINT_MORE_FRAMES.
9667 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
9668 constant.
9669
9670 2018-02-26 Tom Tromey <tom@tromey.com>
9671
9672 * dwarf2read.c (struct variant_field): New.
9673 (struct nextfield) <variant>: New field.
9674 (dwarf2_add_field): Handle DW_TAG_variant_part.
9675 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
9676 discriminated union.
9677 (read_structure_type): Handle DW_TAG_variant_part.
9678 (handle_struct_member_die): New function, extracted from
9679 process_structure_scope. Handle DW_TAG_variant.
9680 (process_structure_scope): Handle discriminated unions. Call
9681 handle_struct_member_die.
9682
9683 2018-02-26 Tom Tromey <tom@tromey.com>
9684
9685 * rust-lang.h (rust_last_path_segment): Declare.
9686 * rust-lang.c (rust_last_path_segment): Now public. Change
9687 contract.
9688 (struct disr_info): Remove.
9689 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
9690 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
9691 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
9692 (rust_enum_p, rust_enum_variant): New function.
9693 (rust_underscore_fields): Remove "offset" parameter.
9694 (rust_print_enum): New function.
9695 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
9696 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
9697 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
9698 enums.
9699 (rust_internal_print_type): New function, from rust_print_type.
9700 Remove enum code.
9701 (rust_print_type): Call rust_internal_print_type.
9702 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
9703 Update enum handling.
9704 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
9705 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
9706 (rust_union_quirks): New functions.
9707 (process_full_comp_unit, process_full_type_unit): Call
9708 rust_union_quirks.
9709 (process_structure_scope): Update rust_unions if necessary.
9710
9711 2018-02-26 Tom Tromey <tom@tromey.com>
9712
9713 * value.h (value_union_variant): Declare.
9714 * valops.c (value_union_variant): New function.
9715 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
9716 (struct discriminant_info): New.
9717 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
9718 enumerator.
9719 (struct main_type) <flag_discriminated_union>: New field.
9720
9721 2018-02-26 Tom Tromey <tom@tromey.com>
9722
9723 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9724 unittests/unpack-selftests.c.
9725 * unittests/unpack-selftests.c: New file.
9726 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
9727
9728 2018-02-26 Yao Qi <yao.qi@linaro.org>
9729
9730 * dwarf2read.c (struct partial_die_info) <read>: New method.
9731 (read_partial_die): Remove the declaration.
9732 (load_partial_dies): Update.
9733 (partial_die_info::partial_die_info):
9734 (read_partial_die): Change it to partial_die_info::read.
9735
9736 2018-02-26 Yao Qi <yao.qi@linaro.org>
9737
9738 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
9739 (fixup_partial_die): Remove declaration.
9740 (scan_partial_symbols): Update.
9741 (partial_die_parent_scope): Likewise.
9742 (partial_die_full_name): Likewise.
9743 (fixup_partial_die): Change it to partial_die_info::fixup.
9744
9745 2018-02-26 Yao Qi <yao.qi@linaro.org>
9746
9747 * dwarf2read.c (read_partial_die): Update the declaration.
9748 (load_partial_dies): Caller update.
9749 (read_partial_die): Remove one argument abbrev_len.
9750
9751 2018-02-26 Yao Qi <yao.qi@linaro.org>
9752
9753 * dwarf2read.c (struct partial_die_info): Add ctor, delete
9754 assignment operator.
9755 (load_partial_dies): Use ctor and copy ctor.
9756 (read_partial_die): Update.
9757 (dwarf2_cu::find_partial_die): Use ctor.
9758
9759 2018-02-26 Yao Qi <yao.qi@linaro.org>
9760
9761 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
9762 (find_partial_die_in_comp_unit): Change it to
9763 dwarf2_cu::find_partial_die.
9764 (find_partial_die): Update.
9765
9766 2018-02-26 Yao Qi <yao.qi@linaro.org>
9767
9768 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
9769 is NULL.
9770
9771 2018-02-26 Yao Qi <yao.qi@linaro.org>
9772
9773 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
9774
9775 2018-02-26 Alan Hayward <alan.hayward@arm.com>
9776
9777 * arch/amd64.h: Use common/tdesc.h.
9778 * arch/i386.c: Likewise.
9779 * arch/i386.h: Likewise.
9780 * arch/tic6x.c: Likewise.
9781 * arch/tdesc.h: Move file from here...
9782 * common/tdesc.h: ...to here.
9783 * features/aarch64-core.c: Regenerate.
9784 * features/aarch64-fpu.c: Regenerate.
9785 * features/i386/32bit-avx.c: Regenerate.
9786 * features/i386/32bit-avx512.c: Regenerate.
9787 * features/i386/32bit-core.c: Regenerate.
9788 * features/i386/32bit-linux.c: Regenerate.
9789 * features/i386/32bit-mpx.c: Regenerate.
9790 * features/i386/32bit-pkeys.c: Regenerate.
9791 * features/i386/32bit-sse.c: Regenerate.
9792 * features/i386/64bit-avx.c: Regenerate.
9793 * features/i386/64bit-avx512.c: Regenerate.
9794 * features/i386/64bit-core.c: Regenerate.
9795 * features/i386/64bit-linux.c: Regenerate.
9796 * features/i386/64bit-mpx.c: Regenerate.
9797 * features/i386/64bit-pkeys.c: Regenerate.
9798 * features/i386/64bit-segments.c: Regenerate.
9799 * features/i386/64bit-sse.c: Regenerate.
9800 * features/i386/x32-core.c: Regenerate.
9801 * features/tic6x-c6xp.c: Regenerate.
9802 * features/tic6x-core.c: Regenerate.
9803 * features/tic6x-gp.c: Regenerate.
9804 * target-descriptions.c: Use common/tdesc.h.
9805 * target-descriptions.h: Likewise.
9806
9807 2018-02-24 Tom Tromey <tom@tromey.com>
9808
9809 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
9810 (try_thread_db_load_from_dir, thread_db_load_search): Use
9811 std::string.
9812 (info_auto_load_libthread_db_compare): Return bool. Change
9813 argument types.
9814 (info_auto_load_libthread_db): Use std::vector, std::string.
9815 Remove cleanups.
9816
9817 2018-02-24 Tom Tromey <tom@tromey.com>
9818
9819 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
9820 std::string.
9821 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
9822 std::string*.
9823 * gdbarch.c: Rebuild.
9824 * gdbarch.h: Rebuild.
9825 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
9826 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
9827 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
9828 std::string*.
9829
9830 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
9831
9832 * gdbtypes.h (sect_offset): Change type to uint64_t.
9833 (sect_offset_str): New function.
9834 * dwarf2read.c (create_addrmap_from_aranges): Use
9835 sect_offset_str.
9836 (error_check_comp_unit_head): Likewise.
9837 (create_debug_type_hash_table): Likewise.
9838 (read_cutu_die_from_dwo): Likewise.
9839 (init_cutu_and_read_dies): Likewise.
9840 (init_cutu_and_read_dies_no_follow): Likewise.
9841 (process_psymtab_comp_unit_reader): Likewise.
9842 (partial_die_parent_scope): Likewise.
9843 (peek_die_abbrev): Likewise.
9844 (process_queue): Likewise.
9845 (dwarf2_physname): Likewise.
9846 (read_namespace_alias): Likewise.
9847 (read_import_statement): Likewise.
9848 (create_dwo_cu_reader): Likewise.
9849 (create_cus_hash_table): Likewise.
9850 (lookup_dwo_cutu): Likewise.
9851 (inherit_abstract_dies): Likewise.
9852 (read_func_scope): Likewise.
9853 (read_call_site_scope): Likewise.
9854 (dwarf2_add_member_fn): Likewise.
9855 (read_common_block): Likewise.
9856 (read_module_type): Likewise.
9857 (read_typedef): Likewise.
9858 (read_subrange_type): Likewise.
9859 (load_partial_dies): Likewise.
9860 (read_partial_die): Likewise.
9861 (find_partial_die): Likewise.
9862 (read_str_index): Likewise.
9863 (dwarf2_string_attr): Likewise.
9864 (build_error_marker_type): Likewise.
9865 (lookup_die_type): Likewise.
9866 (dump_die_shallow): Likewise.
9867 (follow_die_ref): Likewise.
9868 (dwarf2_fetch_die_loc_sect_off): Likewise.
9869 (dwarf2_fetch_constant_bytes): Likewise.
9870 (follow_die_sig): Likewise.
9871 (get_signatured_type): Likewise.
9872 (get_DW_AT_signature_type): Likewise.
9873 (dwarf2_find_containing_comp_unit): Likewise.
9874 (set_die_type): Likewise.
9875
9876 2018-02-21 John Baldwin <jhb@FreeBSD.org>
9877
9878 * arch/aarch64.c: Include "common-defs.h".
9879 * arch/amd64.c: Likewise.
9880 * arch/i386.c: Likewise.
9881
9882 2018-02-21 Tom Tromey <tom@tromey.com>
9883
9884 * value.h: (extract_field_op): Update.
9885 * eval.c (extract_field_op): Return a const char *.
9886 * expression.h (parse_expression_for_completion): Update.
9887 * completer.c (complete_expression): Update.
9888 (add_struct_fields): Make fieldname const.
9889 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
9890 (mark_completion_tag, parse_exp_in_context_1): Update.
9891 (parse_expression_for_completion): Change "name" to
9892 unique_xmalloc_ptr*.
9893
9894 2018-02-21 Tom Tromey <tom@tromey.com>
9895
9896 * infcall.c (call_function_by_hand_dummy): Use std::vector.
9897
9898 2018-02-21 Yao Qi <yao.qi@linaro.org>
9899
9900 * avr-tdep.c (avr_read_pc): Change parameter type to
9901 readable_regcache.
9902 * gdbarch.sh (read_pc): Likewise.
9903 * gdbarch.c: Re-generated.
9904 * gdbarch.h: Re-generated.
9905 * hppa-tdep.c (hppa_read_pc): Change parameter type to
9906 readable_regcache.
9907 * ia64-tdep.c (ia64_read_pc): Likewise.
9908 * mips-tdep.c (mips_read_pc): Likewise.
9909 * spu-tdep.c (spu_read_pc): Likewise.
9910
9911 2018-02-21 Yao Qi <yao.qi@linaro.org>
9912
9913 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
9914 * regcache-dump.c: New file.
9915 * regcache.c: Move register_dump to regcache-dump.c.
9916 (maintenance_print_registers): Likewise.
9917 (maintenance_print_raw_registers): Likewise.
9918 (maintenance_print_cooked_registers): Likewise.
9919 (maintenance_print_register_groups): Likewise.
9920 (maintenance_print_remote_registers): Likewise.
9921 (_initialize_regcache): Likewise.
9922 * regcache.h (register_dump): Moved from regcache.c.
9923
9924 2018-02-21 Yao Qi <yao.qi@linaro.org>
9925
9926 * regcache.c (regcache::regcache): Update.
9927 (regcache::invalidate): Move it to detached_regcache::invalidate.
9928 (get_thread_arch_aspace_regcache): Update.
9929 (regcache::raw_update): Update.
9930 (regcache::cooked_read): Remove some code.
9931 (regcache::cooked_read_value): Likewise.
9932 (regcache::raw_write): Remove assert on m_readonly_p.
9933 (regcache::raw_supply_integer): Move it to
9934 detached_regcache::raw_supply_integer.
9935 (regcache::raw_supply_zeroed): Likewise.
9936 * regcache.h (detached_regcache) <raw_supply_integer>: New
9937 declaration.
9938 <raw_supply_zeroed, invalidate>: Likewise.
9939 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
9940 <invalidate>: Likewise.
9941 <m_readonly_p>: Removed.
9942
9943 2018-02-21 Yao Qi <yao.qi@linaro.org>
9944
9945 * infcmd.c (get_return_value): Let stop_regs point to
9946 get_current_regcache.
9947 * regcache.c (regcache::regcache): Remove.
9948 (register_dump_reg_buffer): New class.
9949 (regcache_print): Adjust.
9950 * regcache.h (regcache): Remove constructors.
9951
9952 2018-02-21 Yao Qi <yao.qi@linaro.org>
9953
9954 * regcache.c (class register_dump): New class.
9955 (register_dump_regcache, register_dump_none): New class.
9956 (register_dump_remote, register_dump_groups): New class.
9957 (regcache_print): Update.
9958 * regcache.h (regcache_dump_what): Move it to regcache.c.
9959 (regcache) <dump>: Remove.
9960
9961 2018-02-21 Yao Qi <yao.qi@linaro.org>
9962
9963 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
9964 reg_buffer_rw *.
9965 (jit_unwind_reg_set_impl): Call raw_supply.
9966 (jit_frame_sniffer): Use reg_buffer_rw.
9967 * record-full.c (record_full_core_regbuf): Change its type.
9968 (record_full_core_open_1): Use reg_buffer_rw.
9969 (record_full_close): Likewise.
9970 (record_full_core_fetch_registers): Use regcache->raw_supply.
9971 (record_full_core_store_registers): Likewise.
9972 * regcache.c (regcache::get_register_status): Move it to
9973 reg_buffer.
9974 (regcache_raw_set_cached_value): Remove.
9975 (regcache::raw_set_cached_value): Remove.
9976 (regcache::raw_write): Call raw_supply.
9977 (regcache::raw_supply): Move it to reg_buffer_rw.
9978 * regcache.h (regcache_raw_set_cached_value): Remove.
9979 (reg_buffer_rw): New class.
9980
9981 2018-02-21 Yao Qi <yao.qi@linaro.org>
9982
9983 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
9984 readonly_detached_regcache.
9985 (dummy_frame_prev_register): Use regcache->cooked_read.
9986 * frame.c (frame_save_as_regcache): Change return type.
9987 (frame_pop): Update.
9988 * frame.h (frame_save_as_regcache): Update declaration.
9989 * inferior.h (get_infcall_suspend_state_regcache): Update
9990 declaration.
9991 * infrun.c (infcall_suspend_state) <registers>: use
9992 readonly_detached_regcache.
9993 (save_infcall_suspend_state): Don't use regcache_dup.
9994 (get_infcall_suspend_state_regcache): Change return type.
9995 * linux-fork.c (struct fork_info) <savedregs>: Change to
9996 readonly_detached_regcache.
9997 <pc>: New field.
9998 (fork_save_infrun_state): Don't use regcache_dup.
9999 (info_checkpoints_command): Adjust.
10000 * mi/mi-main.c (register_changed_p): Update declaration.
10001 (mi_cmd_data_list_changed_registers): Use
10002 readonly_detached_regcache.
10003 (register_changed_p): Change parameter type to
10004 readonly_detached_regcache.
10005 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10006 readonly_detached_regcache.
10007 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10008 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10009 New.
10010 (regcache::save): Move it to reg_buffer.
10011 (regcache::restore): Change parameter type.
10012 (regcache_dup): Remove.
10013 * regcache.h (reg_buffer) <save>: New method.
10014 (readonly_detached_regcache): New class.
10015 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10016 readonly_detached_regcache.
10017 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10018
10019 2018-02-21 Yao Qi <yao.qi@linaro.org>
10020
10021 * frame.c (frame_save_as_regcache): Use regcache method save.
10022 (frame_pop): Use regcache method restore.
10023 * infrun.c (restore_infcall_suspend_state): Likewise.
10024 * linux-fork.c (fork_load_infrun_state): Likewise.
10025 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10026 save.
10027 * regcache.c (regcache_save): Remove.
10028 (regcache::restore): More asserts.
10029 (regcache_cpy): Remove.
10030 * regcache.h (regcache_save): Remove the declaration.
10031 (regcache::restore): Move from private to public.
10032 Remove the friend declaration of regcache_cpy.
10033 (regcache_cpy): Remove declaration.
10034
10035 2018-02-21 Yao Qi <yao.qi@linaro.org>
10036
10037 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10038 parameter type to 'readable_regcache *'.
10039 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10040 * arm-tdep.c (arm_neon_quad_read): Likewise.
10041 (arm_pseudo_read): Likewise.
10042 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10043 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10044 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10045 * gdbarch.c: Re-generated.
10046 * gdbarch.h: Re-generated.
10047 * gdbarch.sh (pseudo_register_read): Change parameter type to
10048 'readable_regcache *'.
10049 (pseudo_register_read_value): Likewise.
10050 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10051 (h8300_pseudo_register_read): Likewise.
10052 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10053 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10054 (i386_pseudo_register_read_into_value): Likewise.
10055 (i386_pseudo_register_read_value): Likewise.
10056 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10057 declaration.
10058 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10059 * m32c-tdep.c (m32c_raw_read): Likewise.
10060 (m32c_read_flg): Likewise.
10061 (m32c_banked_register): Likewise.
10062 (m32c_banked_read): Likewise.
10063 (m32c_sb_read): Likewise.
10064 (m32c_part_read): Likewise.
10065 (m32c_cat_read): Likewise.
10066 (m32c_r3r2r1r0_read): Likewise.
10067 (m32c_pseudo_register_read): Likewise.
10068 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10069 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10070 (mep_pseudo_cr64_read): Likewise.
10071 (mep_pseudo_register_read): Likewise.
10072 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10073 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10074 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10075 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10076 (regcache::cooked_read): Likewise.
10077 (regcache::cooked_read_value): Likewise.
10078 (regcache_cooked_read_signed):
10079 (regcache::cooked_read): Likewise.
10080 * regcache.h (readable_regcache): New class.
10081 (regcache): Inherit readable_regcache. Move some methods to
10082 readable_regcache.
10083 * rl78-tdep.c (rl78_pseudo_register_read): Change
10084 parameter type to 'readable_regcache *'.
10085 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10086 (e500_pseudo_register_read): Change parameter type to
10087 'readable_regcache *'.
10088 (dfp_pseudo_register_read): Likewise.
10089 (vsx_pseudo_register_read): Likewise.
10090 (efpr_pseudo_register_read): Likewise.
10091 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10092 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10093 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10094 (sh64_pseudo_register_read): Likewise.
10095 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10096 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10097 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10098 (spu_pseudo_register_read): Likewise.
10099 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10100 (xtensa_pseudo_register_read): Likewise.
10101
10102 2018-02-21 Yao Qi <yao.qi@linaro.org>
10103
10104 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10105 (regcache::arch): Move it to reg_buffer::arch.
10106 (regcache::register_buffer): Likewise.
10107 (regcache::assert_regnum): Likewise.
10108 (regcache::num_raw_registers): Likewise.
10109 * regcache.h (reg_buffer): New class.
10110 (regcache): Inherit reg_buffer.
10111
10112 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10113
10114 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10115 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10116
10117 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10118
10119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10120
10121 2018-02-19 Alan Hayward <alan.hayward@arm.com>
10122
10123 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10124 (SFILES): Remove common/*.c files.
10125 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10126 * common/common.host: Add common reference.
10127 * configure.ac: Likewise.
10128 * configure: Regenerate.
10129
10130 2018-02-16 Yao Qi <yao.qi@linaro.org>
10131
10132 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10133 (block_initialize_namespace): Use new.
10134 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10135 (dwarf2_free_objfile): Use delete.
10136 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10137 (copy_type_recursive): Use new.
10138 * gdb_obstack.h (allocate_on_obstack): New.
10139
10140 2018-02-15 Yao Qi <yao.qi@linaro.org>
10141
10142 PR gdb/22849
10143 * inferior.c (exit_inferior_1): Reset inf->control.
10144
10145 2018-02-15 Joel Brobecker <brobecker@adacore.com>
10146
10147 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10148 declaration.
10149
10150 2018-02-14 Pedro Alves <palves@redhat.com>
10151
10152 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10153 frame_cleanup_after_sniffer on exception.
10154
10155 2018-02-14 Tom Tromey <tom@tromey.com>
10156
10157 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10158 const.
10159 (solib_bfd_open): Make pathname const.
10160 * solib.c (solib_bfd_open): Make pathname const.
10161 * solib-spu.c (spu_bfd_fopen): Make name const.
10162 (spu_bfd_open): Make pathname const.
10163 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10164 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10165
10166 2018-02-14 Tom Tromey <tom@tromey.com>
10167
10168 * symfile.c (symfile_bfd_open): Update.
10169 * source.h (openp, source_full_path_of, find_and_open_source):
10170 Change argument type to unique_xmalloc_ptr.
10171 * source.c (openp): Take a unique_xmalloc_ptr.
10172 (source_full_path_of, find_and_open_source): Likewise.
10173 (open_source_file, symtab_to_fullname): Update.
10174 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10175 unique_xmalloc_ptr.
10176 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10177 (exec_file_find): Update.
10178 * psymtab.c (psymtab_to_fullname): Update.
10179 * nto-tdep.h (nto_find_and_open_solib): Update.
10180 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10181 unique_xmalloc_ptr.
10182 * exec.c (exec_file_attach): Update.
10183 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10184 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10185
10186 2018-02-14 Tom Tromey <tom@tromey.com>
10187
10188 * solib.c: Include source.h.
10189 * nto-tdep.c: Include source.h.
10190 * mi/mi-cmd-env.c: Include source.h.
10191 * infcmd.c: Include source.h.
10192 * exec.c: Include source.h.
10193 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10194 (add_path, directory_switch, source_path, init_source_path): Move
10195 declarations...
10196 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10197 (add_path, directory_switch, source_path, init_source_path):
10198 ...here.
10199
10200 2018-02-14 Tom Tromey <tom@tromey.com>
10201
10202 * solist.h (exec_file_find, solib_find): Return
10203 unique_xmalloc_ptr.
10204 (solib_bfd_fopen): Take a const char *.
10205 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10206 (exec_file_find, solib_find): Likewise.
10207 (solib_bfd_fopen): Do not take ownership of "pathname".
10208 (solib_bfd_open): Use unique_xmalloc_ptr.
10209 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10210 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10211 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10212 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10213
10214 2018-02-14 Joel Brobecker <brobecker@adacore.com>
10215
10216 * ada-lang.c (name_match_type_from_name): Remove reference to
10217 ada_name_for_lookup in function's documentation.
10218 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10219
10220 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10221
10222 * defs.h (enum openp_flags): New enum.
10223 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10224 Move to enum openp_flags.
10225 (openp_flags): New enum flags.
10226 (openp): Change parameter type to openp_flags.
10227 * source.c (openp): Change parameter type to openp_flags.
10228 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10229 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10230
10231 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10234 per-command.
10235
10236 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10239 into...
10240 (class dwarf2_queue_guard): ...the destructor of this new class.
10241 (dw2_do_instantiate_symtab): Create instance of the new class
10242 dwarf2_queue_guard, remove cleanup.
10243
10244 2018-02-09 Tom Tromey <tom@tromey.com>
10245
10246 * source.c (find_source_lines): Don't reference past the end of
10247 the vector.
10248
10249 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10250
10251 * remote.c (remote_btrace_maybe_reopen): Change error message.
10252 * btrace.c (btrace_enable): Likewise.
10253 (parse_xml_btrace): Likewise.
10254 (parse_xml_btrace_conf): Likewise.
10255
10256 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10257
10258 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10259 (linux_enable_pt, linux_enable_bts): Call
10260 diagnose_perf_event_open_fail.
10261
10262 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10263
10264 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10265 Remove parameter and change return type. Update callers. Move it.
10266 (linux_enable_bts, linux_enable_pt): Improve error message.
10267 (linux_enable_pt): Remove zero buffer size check.
10268 (linux_enable_btrace): Improve error messages. Remove NULL return
10269 check.
10270
10271 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10272
10273 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10274 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10275 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10276 (linux_supports_pt, linux_supports_btrace): Remove.
10277 (linux_enable_bts): Call cpu_supports_bts.
10278 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10279 * remote.c (remote_supports_btrace): Remove.
10280 (init_remote_ops): Remove remote_supports_btrace.
10281 * target-delegates.c: Regenerated.
10282 * target.c (target_supports_btrace): Remove.
10283 * target.h (target_ops) <to_supports_btrace>: Remove
10284 (target_supports_btrace): Remove.
10285 * x86-linux-nat.c (x86_linux_create_target): Remove
10286 linux_supports_btrace.
10287
10288 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10289
10290 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10291 btrace failed.
10292 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10293 exception and use message in own exception.
10294
10295 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10296
10297 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10298 (perf_event_pt_event_type): Use gdb_file_up.
10299 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
10300 scoped_fd, and scoped_mmap.
10301
10302 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10303
10304 * common/scoped_mmap.h: New.
10305 * unittests/scoped_mmap-selftest.c: New.
10306 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10307 unittests/scoped_mmap-selftest.c.
10308
10309 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10310
10311 * common/scoped_fd.h: New.
10312 * unittests/scoped_fd-selftest.c: New.
10313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10314 unittests/scoped_fd-selftest.c.
10315
10316 2018-02-09 Tom Tromey <tom@tromey.com>
10317
10318 * auto-load.c (auto_load_section_scripts): Use
10319 gdb::unique_xmalloc_ptr.
10320
10321 2018-02-09 Tom Tromey <tom@tromey.com>
10322
10323 * auto-load.c (execute_script_contents): Use std::string.
10324
10325 2018-02-09 Joel Brobecker <brobecker@adacore.com>
10326
10327 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10328 Python function, rather than a new command.
10329
10330 2018-02-08 Tom Tromey <tom@tromey.com>
10331
10332 * solib.c (solib_find_1): Use std::string.
10333 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10334
10335 2018-02-08 Tom Tromey <tom@tromey.com>
10336
10337 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10338
10339 2018-02-08 Tom Tromey <tom@tromey.com>
10340
10341 * source.c (find_source_lines): Use gdb::def_vector.
10342
10343 2018-02-08 Tom Tromey <tom@tromey.com>
10344
10345 * macrocmd.c (struct temporary_macro_definition): New.
10346 (macro_define_command): Use temporary_macro_definition. Remove
10347 cleanups.
10348 (free_macro_definition_ptr): Remove.
10349
10350 2018-02-08 Tom Tromey <tom@tromey.com>
10351
10352 * macroexp.c (maybe_expand): Use std::string.
10353
10354 2018-02-08 Tom Tromey <tom@tromey.com>
10355
10356 * macroexp.c (struct macro_buffer): Add initializers for some
10357 members.
10358 (init_buffer, init_shared_buffer, free_buffer)
10359 (free_buffer_return_text): Remove.
10360 (macro_buffer): New constructors.
10361 (~macro_buffer): New destructor.
10362 (macro_buffer::set_shared): New method.
10363 (macro_buffer::resize_buffer, macro_buffer::appendc)
10364 (macro_buffer::appendmem): Now methods, not free functions.
10365 (set_token, append_tokens_without_splicing, stringify)
10366 (macro_stringify): Update.
10367 (gather_arguments): Change return type. Remove argc_p argument,
10368 add args_ptr argument. Use std::vector.
10369 (substitute_args): Remove argc argument. Accept std::vector.
10370 (expand): Update. Use std::vector.
10371 (scan, macro_expand, macro_expand_next): Update.
10372
10373 2018-02-08 Tom Tromey <tom@tromey.com>
10374
10375 * symtab.c (default_collect_symbol_completion_matches_break_on):
10376 Use unique_xmalloc_ptr.
10377 * macroscope.h: (sal_macro_scope, user_macro_scope)
10378 (default_macro_scope): Return unique_xmalloc_ptr.
10379 * macroscope.c (sal_macro_scope, user_macro_scope)
10380 (default_macro_scope): Return unique_xmalloc_ptr.
10381 * macroexp.h (macro_expand, macro_expand_once): Return
10382 unique_xmalloc_ptr.
10383 * macroexp.c (macro_expand, macro_expand_once): Return
10384 unique_xmalloc_ptr.
10385 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10386 (info_macro_command, info_macros_command): Use
10387 unique_xmalloc_ptr.
10388 * compile/compile-c-support.c (write_macro_definitions): Use
10389 unique_xmalloc_ptr.
10390 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10391
10392 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10393
10394 * value.c (value_static_field): Assign field type instead of
10395 containing type when returning an optimized out value.
10396
10397 2018-02-06 Yao Qi <yao.qi@linaro.org>
10398
10399 * ft32-tdep.c (ft32_read_pc): Remove.
10400 (ft32_write_pc): Remove.
10401 (ft32_gdbarch_init): Update.
10402 * m32r-tdep.c (m32r_read_pc): Remove.
10403 (m32r_gdbarch_init): Update.
10404 * mep-tdep.c (mep_read_pc): Remove.
10405 (mep_gdbarch_init): Update.
10406 * microblaze-tdep.c (microblaze_write_pc): Remove.
10407 (microblaze_gdbarch_init): Update.
10408 * mn10300-tdep.c (mn10300_read_pc): Remove.
10409 (mn10300_write_pc): Remove.
10410 (mn10300_gdbarch_init): Update.
10411 * moxie-tdep.c (moxie_read_pc): Remove.
10412 (moxie_write_pc): Remove.
10413 (moxie_gdbarch_init): Update.
10414
10415 2018-02-06 Yao Qi <yao.qi@linaro.org>
10416
10417 * expprint.c (print_subexp_standard): Handle
10418 OP_F77_UNDETERMINED_ARGLIST.
10419 (dump_subexp_body_standard): Likewise.
10420
10421 2018-02-05 Alan Hayward <alan.hayward@arm.com>
10422
10423 * target-descriptions.c (tdesc_element_visitor) Add empty
10424 implementations.
10425 (tdesc_type): Move make_gdb_type from here.
10426 (tdesc_type_builtin): Likewise.
10427 (tdesc_type_vector): Likewise.
10428 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10429 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10430 (make_gdb_type_union): Likewise.
10431 (make_gdb_type_flags): Likewise.
10432 (make_gdb_type_enum): Likewise.
10433 (make_gdb_type): New function.
10434 (tdesc_register_type): Use static make_gdb_type.
10435
10436 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
10437
10438 * infcmd.c (default_print_one_register_info): Align natural-format
10439 column values consistently one under another.
10440 (pad_to_column): New function.
10441
10442 2018-02-05 Joel Brobecker <brobecker@adacore.com>
10443
10444 * dwarf2read.c (dwarf2_physname): Move commment.
10445
10446 2018-02-01 Leszek Swirski <leszeks@google.com>
10447
10448 * varobj.c (varobj_formatted_print_options): Allow recursive
10449 pretty printing if pretty printing is enabled.
10450
10451 2018-02-01 Leszek Swirski <leszeks@google.com>
10452
10453 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
10454 names after a structop as a filename.
10455
10456 2018-02-01 Yao Qi <yao.qi@linaro.org>
10457
10458 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
10459 (arm_record_coproc_data_proc): Likewise.
10460
10461 2018-02-01 Yao Qi <yao.qi@linaro.org>
10462
10463 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
10464
10465 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
10466
10467 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
10468 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
10469
10470 2018-01-31 Pedro Alves <palves@redhat.com>
10471
10472 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
10473 * inflow.c (child_terminal_save_inferior): Wrap reference to
10474 tcgetpgrp in HAVE_TERMIOS_H.
10475 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
10476 _WIN32.
10477 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
10478 always iterate over all inferiors.
10479 (gdbsim_cntrl_c): Adjust.
10480 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
10481
10482 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10483
10484 * gdbtypes.c (lookup_array_range_type): Make sure the array's
10485 index type is objfile-owned if the element type is as well.
10486
10487 2018-01-31 Joel Brobecker <brobecker@adacore.com>
10488
10489 GDB 8.1 released.
10490
10491 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
10492
10493 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
10494 "features/s390x-linux64.c".
10495 (_initialize_s390_linux_tdep): Remove initialization of tdescs
10496 s390_linux32 and s390x_linux64.
10497 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
10498 default tdesc.
10499 * s390-tdep.c: Include "features/s390-linux32.c" and
10500 "features/s390x-linux64.c".
10501 (s390_tdesc_valid): Add check for tdesc_has_registers.
10502 (s390_gdbarch_init): Make sure there is always a valid tdesc.
10503 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
10504 tdesc_s390x_linux64.
10505 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
10506 tdesc_s390x_linux64 to...
10507 * s390-tdep.h: ...here.
10508
10509 2018-01-30 Pedro Alves <palves@redhat.com>
10510
10511 PR gdb/13211
10512 * config.in, configure: Regenerate.
10513 * configure.ac: Check for getpgid.
10514 * go32-nat.c (go32_pass_ctrlc): New.
10515 (go32_target): Install it.
10516 * inf-child.c (inf_child_target): Install
10517 child_terminal_save_inferior, child_pass_ctrlc and
10518 child_interrupt.
10519 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
10520 (inf_ptrace_target): No longer install it.
10521 * infcmd.c (interrupt_target_1): Adjust.
10522 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
10523 (child_interrupt): Declare.
10524 (inferior::terminal_state): New.
10525 * inflow.c (struct terminal_info): Update comments.
10526 (inferior_process_group): Delete.
10527 (terminal_is_ours): Delete.
10528 (gdb_tty_state): New.
10529 (child_terminal_init): Adjust.
10530 (is_gdb_terminal, sharing_input_terminal_1)
10531 (sharing_input_terminal): New functions.
10532 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
10533 Set the process's actual process group in the foreground if
10534 possible. Handle is_ours_for_output/is_ours distinction. Don't
10535 mark terminal as the inferior's if not sharing GDB's terminal.
10536 Don't check attach_flag.
10537 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
10538 pass down a target_terminal_state.
10539 (child_terminal_save_inferior): New, factored out from ...
10540 (child_terminal_ours_1): ... this. Handle
10541 target_terminal_state::is_ours_for_output.
10542 (child_interrupt, child_pass_ctrlc): New.
10543 (inflow_inferior_exit): Clear the inferior's terminal_state.
10544 (copy_terminal_info): Copy the inferior's terminal state.
10545 (_initialize_inflow): Remove reference to terminal_is_ours.
10546 * inflow.h (inferior_process_group): Delete.
10547 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
10548 * procfs.c (procfs_target): Don't install procfs_interrupt.
10549 (procfs_interrupt): Delete.
10550 * remote.c (remote_serial_quit_handler): Adjust.
10551 (remote_interrupt): Remove ptid parameter. Adjust.
10552 * target-delegates.c: Regenerate.
10553 * target.c: Include "terminal.h".
10554 (target_terminal::terminal_state): Rename to ...
10555 (target_terminal::m_terminal_state): ... this.
10556 (target_terminal::init): Adjust.
10557 (target_terminal::inferior): Adjust to per-inferior
10558 terminal_state.
10559 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
10560 (target_terminal::ours, target_terminal::ours_for_output): Use
10561 target_terminal_is_ours_kind.
10562 (target_interrupt): Remove ptid parameter. Adjust.
10563 (default_target_pass_ctrlc): Adjust.
10564 * target.h (target_ops::to_terminal_save_inferior): New field.
10565 (target_ops::to_interrupt): Remove ptid_t parameter.
10566 (target_interrupt): Remove ptid_t parameter. Update comment.
10567 (target_pass_ctrlc): Update comment.
10568 * target/target.h (target_terminal_state): New scoped enum,
10569 factored out of ...
10570 (target_terminal::terminal_state): ... here.
10571 (target_terminal::inferior): Update comments.
10572 (target_terminal::restore_inferior): New.
10573 (target_terminal::is_inferior, target_terminal::is_ours)
10574 (target_terminal::is_ours_for_output): Adjust.
10575 (target_terminal::scoped_restore_terminal_state): Adjust to
10576 rename, and call restore_inferior() instead of inferior().
10577 (target_terminal::scoped_restore_terminal_state::m_state): Change
10578 type.
10579 (target_terminal::terminal_state): Rename to ...
10580 (target_terminal::m_terminal_state): ... this and change type.
10581
10582 2018-01-30 Pedro Alves <palves@redhat.com>
10583
10584 * linux-nat.c (wait_for_signal): New function.
10585 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
10586 directly.
10587 (async_terminal_is_ours)
10588 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
10589 (linux_nat_add_target): Don't override
10590 to_terminal_inferior/to_terminal_ours.
10591
10592 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
10593
10594 * remote.c (remote_follow_fork): Don't call "detach_inferior".
10595
10596 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
10597
10598 * dwarf2read.c (free_dwo_files): Add forward-declaration.
10599 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
10600 dwarf2_per_objfile_free here.
10601 (dwarf2_per_objfile_free): Remove.
10602 (_initialize_dwarf2_read): Don't register
10603 dwarf2_per_objfile_free as a registry cleanup.
10604
10605 2018-01-27 Eli Zaretskii <eliz@gnu.org>
10606
10607 Avoid compilation errors in MinGW native builds
10608
10609 The error is triggered by including python-internal.h, and the
10610 error message is:
10611
10612 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
10613 from build-gnulib/import/math.h:27,
10614 from d:/usr/Python26/include/pyport.h:235,
10615 from d:/usr/Python26/include/Python.h:58,
10616 from python/python-internal.h:94,
10617 from python/py-arch.c:24:
10618 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
10619 using ::hypot;
10620 ^~~~~
10621
10622 This happens because Python headers define 'hypot' to expand t
10623 '_hypot' in the Windows builds.
10624 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
10625 'hypoth'. This avoids a compilation error.
10626
10627 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10628
10629 * MAINTAINERS (Write After Approval): Fix ordering.
10630
10631 2018-01-26 Alan Hayward <alan.hayward@arm.com>
10632
10633 * MAINTAINERS (Write After Approval): Add Alan Hayward.
10634
10635 2018-01-26 Alan Modra <amodra@gmail.com>
10636
10637 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
10638 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
10639 Remove nop. Make const. Comment.
10640 (powerpc32_plt_stub_so_2): New.
10641 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
10642 Correct count. Update uses.
10643 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
10644 Move common code reading PLT entry word. Correct
10645 powerpc32_plt_stub PLT address calculation.
10646 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
10647 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
10648 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
10649 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
10650 (ppc64_standard_linkage8): Likewise.
10651 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
10652 Correct insns description.
10653 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
10654
10655 2018-01-24 Pedro Alves <palves@redhat.com>
10656
10657 GCC PR libstdc++/83906
10658 * gdbtypes.c (operator==(const dynamic_prop &,
10659 const dynamic_prop &)): New.
10660 (operator==(const range_bounds &, const range_bounds &)): New.
10661 (check_types_equal): Use them instead of memcmp.
10662 * gdbtypes.h (operator==(const dynamic_prop &,
10663 const dynamic_prop &)): Declare.
10664 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
10665 (operator==(const range_bounds &, const range_bounds &)): Declare.
10666 (operator!=(const range_bounds &, const range_bounds &)): Declare.
10667
10668 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10669
10670 * s390-linux-tdep.c (s390_record_address_mask)
10671 (s390_record_calc_disp_common, s390_record_calc_disp)
10672 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10673 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10674 (s390_process_record): Move to s390-tdep.c.
10675 (s390_linux_init_abi_any): Adjust.
10676 * s390-tdep.c (s390_record_address_mask)
10677 (s390_record_calc_disp_common, s390_record_calc_disp)
10678 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
10679 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
10680 (s390_process_record): Moved from s390-linux-tdep.c
10681 (s390_gdbarch_init): Adjust.
10682
10683 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10684
10685 * s390-linux-nat.c (s390-tdep.h): New include.
10686 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
10687 (HFILES_NO_SRCDIR): Add s390-tdep.h.
10688 (ALLDEPFILES): Add s390-tdep.c.
10689 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
10690 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
10691 * s390-tdep.h: ...this. New file.
10692 * s390-linux-tdep.c (s390-tdep.h): New include.
10693 (_initialize_s390_tdep): Rename to...
10694 (_initialize_s390_linux_tdep): ...this and adjust.
10695 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
10696 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
10697 s390-tdep.h.
10698 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
10699 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
10700 (s390_is_partial_instruction, s390_software_single_step)
10701 (is_non_branch_ril, s390_displaced_step_copy_insn)
10702 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
10703 (s390_prologue_data, s390_addr, s390_store, s390_load)
10704 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
10705 (s390_register_call_saved, s390_guess_tracepoint_registers)
10706 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
10707 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
10708 (s390_pseudo_register_name, s390_pseudo_register_type)
10709 (s390_pseudo_register_read, s390_pseudo_register_write)
10710 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
10711 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
10712 (s390_addr_bits_remove, s390_address_class_type_flags)
10713 (s390_address_class_type_flags_to_name)
10714 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
10715 (s390_function_arg_float, s390_function_arg_vector)
10716 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
10717 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
10718 (s390_frame_align, s390_register_return_value, s390_return_value)
10719 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
10720 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
10721 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
10722 (s390_trad_frame_prev_register, s390_unwind_cache)
10723 (s390_prologue_frame_unwind_cache)
10724 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
10725 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
10726 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
10727 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
10728 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
10729 (s390_frame_base_address, s390_local_base_address)
10730 (s390_frame_base, s390_gcc_target_options)
10731 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
10732 (s390_validate_reg_range, s390_tdesc_valid)
10733 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
10734 * s390-tdep.c: ...this. New file.
10735
10736 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10737
10738 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
10739 (s390_process_record, s390_gdbarch_tdep_alloc)
10740 (s390_linux_init_abi_any): Use/set new hook.
10741
10742 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10743
10744 * s390-linux-tdep.c (osabi.h): New include.
10745 (s390_linux_init_abi_31, s390_linux_init_abi_64)
10746 (s390_linux_init_abi_any): New functions.
10747 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
10748
10749 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10750
10751 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
10752 tdesc_has_registers check
10753
10754 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10755
10756 * s390-linux-tdep.c (s390_tdesc_valid): New function.
10757 (s390_validate_reg_range): New macro.
10758 (s390_gdbarch_init): Adjust.
10759
10760 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10761
10762 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
10763 (s390_gdbarch_tdep_alloc): Adjust.
10764 (s390_gdbarch_init): Adjust.
10765
10766 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10767
10768 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
10769 <have_tdb>: Change type to bool.
10770 (s390_gdbarch_tdep_alloc): Adjust.
10771 (s390_gdbarch_init): Adjust.
10772
10773 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10774
10775 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
10776 (gdbarch_tdep) <have_upper, have_vx>: New fields.
10777 (s390_gdbarch_tdep_alloc): New function.
10778 (s390_gdbarch_init): Allocate tdep at start and use its fields
10779 instead of separate variables.
10780
10781 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10782
10783 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
10784 when looking for cached gdbarch and add comment for remaining.
10785
10786 2018-01-22 Pedro Alves <palves@redhat.com>
10787 Sergio Durigan Junior <sergiodj@redhat.com>
10788
10789 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
10790 case.
10791
10792 2018-01-22 Maciej W. Rozycki <macro@mips.com>
10793
10794 * MAINTAINERS: Update my company e-mail address.
10795
10796 2018-01-22 Yao Qi <yao.qi@linaro.org>
10797
10798 * regcache.c (cooked_write_test): New function.
10799 (_initialize_regcache): Register the test.
10800
10801 2018-01-22 Yao Qi <yao.qi@linaro.org>
10802
10803 * ia64-tdep.c (ia64_pseudo_register_read): Call
10804 regcache->cooked_read instead of regcache_cooked_read_unsigned.
10805 * m32c-tdep.c (m32c_cat_read): Likewise.
10806 (m32c_r3r2r1r0_read): Likewise.
10807 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10808 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10809
10810 2018-01-22 Yao Qi <yao.qi@linaro.org>
10811
10812 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
10813 method raw_read instead of regcache_raw_read.
10814 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10815 * arm-tdep.c (arm_neon_quad_read): Likewise.
10816 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10817 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10818 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10819 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
10820 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10821 (i386_pseudo_register_read_into_value): Likewise.
10822 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10823 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10824 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10825 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
10826 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
10827 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10828 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10829 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10830 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
10831
10832 2018-01-22 Yao Qi <yao.qi@linaro.org>
10833
10834 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
10835 * configure.tgt: Remove target mt.
10836 * mt-tdep.c: Remove.
10837 * regcache.c (cooked_read_test): Remove the check for mt.
10838
10839 2018-01-22 Yao Qi <yao.qi@linaro.org>
10840
10841 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
10842 instead of gdbarch_pseudo_register_read_value.
10843
10844 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10845
10846 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
10847 language is Ada.
10848
10849 2018-01-22 Joel Brobecker <brobecker@adacore.com>
10850
10851 * linespec.c (create_sals_line_offset): Remove code that preserved
10852 the symtab_and_line's line number.
10853
10854 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * varobj.c (varobj_create): Don't set valid_block when creating a
10857 floating varobj.
10858
10859 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10860
10861 * varobj.c (varobj_create): Remove out of date comment.
10862
10863 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 PR mi/20395
10866 * ada-exp.y (write_var_from_sym): Pass extra parameter when
10867 updating innermost block.
10868 * parse.c (innermost_block_tracker::update): Take extra type
10869 parameter, and check types match before updating innermost block.
10870 (write_dollar_variable): Update innermost block for registers.
10871 * parser-defs.h (enum innermost_block_tracker_type): New enum.
10872 (innermost_block_tracker::innermost_block_tracker): Initialise
10873 m_types member.
10874 (innermost_block_tracker::reset): Take type parameter.
10875 (innermost_block_tracker::update): Take type parameter, and pass
10876 type through as needed.
10877 (innermost_block_tracker::m_types): New member.
10878 * varobj.c (varobj_create): Pass type when reseting innermost
10879 block.
10880
10881 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
10884 * ada-lang.c (resolve_subexp): Likewise.
10885 * breakpoint.c (set_breakpoint_condition) Likewise.
10886 (watch_command_1) Likewise.
10887 * c-exp.y (variable): Likewise.
10888 * d-exp.y (PrimaryExpression): Likewise.
10889 * f-exp.y (variable): Likewise.
10890 * go-exp.y (variable): Likewise.
10891 * m2-exp.y (variable): Likewise.
10892 * objfiles.c (objfile::~objfile): Likewise.
10893 * p-exp.y (variable): Likewise.
10894 * parse.c (innermost_block): Change type.
10895 * parser-defs.h (class innermost_block_tracker): New.
10896 (innermost_block): Change to innermost_block_tracker.
10897 * printcmd.c (display_command): Switch to innermost_block API.
10898 (do_one_display): Likewise.
10899 * rust-exp.y (do_one_display): Likewise.
10900 * symfile.c (clear_symtab_users): Likewise.
10901 * varobj.c (varobj_create): Switch to innermost_block API, replace
10902 use of innermost_block with block stored on varobj object.
10903
10904 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
10905
10906 * expression.h (innermost_block): Remove declaration.
10907 * varobj.c: Add 'parser-defs.h' include.
10908
10909 2018-01-19 Tom Tromey <tom@tromey.com>
10910
10911 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
10912 symbols in the static and global blocks.
10913
10914 2018-01-19 James Clarke <jrtc27@jrtc27.com>
10915
10916 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
10917 gdb_ptrace.h, and move including gdb_wait.h ...
10918 * nat/linux-ptrace.h: ... to here.
10919
10920 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10921
10922 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
10923 inf_ptrace_detach_success.
10924 (inf_ptrace_detach_success): Add inferior parameter, use it
10925 instead of inferior_ptid, pass it to detach_inferior.
10926 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
10927 parameter.
10928 * inferior.c (detach_inferior): Add overload that takes an
10929 inferior object.
10930 * inferior.h (detach_inferior): Likewise.
10931 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
10932 use inferior_ptid, adjust call to inf_ptrace_detach_success.
10933 * linux-thread-db.c (thread_db_detach): Use inf parameter.
10934
10935 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10936
10937 * target.h (struct target_ops) <to_detach>: Add inferior
10938 parameter.
10939 (target_detach): Likewise.
10940 * target.c (dispose_inferior): Pass inferior down.
10941 (target_detach): Pass inferior down. Assert that it is equal to
10942 the current inferior.
10943 * aix-thread.c (aix_thread_detach): Pass inferior down.
10944 * corefile.c (core_file_command): Pass current_inferior() down.
10945 * corelow.c (core_detach): Add inferior parameter.
10946 * darwin-nat.c (darwin_detach): Likewise.
10947 * gnu-nat.c (gnu_detach): Likewise.
10948 * inf-ptrace.c (inf_ptrace_detach): Likewise.
10949 * infcmd.c (detach_command): Pass current_inferior() down to
10950 target_detach.
10951 * infrun.c (follow_fork_inferior): Pass parent_inf to
10952 target_detach.
10953 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
10954 target_detach.
10955 * linux-nat.c (linux_nat_detach): Add inferior parameter.
10956 * linux-thread-db.c (thread_db_detach): Likewise.
10957 * nto-procfs.c (procfs_detach): Likewise.
10958 * procfs.c (procfs_detach): Likewise.
10959 * record.c (record_detach): Likewise.
10960 * record.h (struct inferior): Forward-declare.
10961 (record_detach): Add inferior parameter.
10962 * remote-sim.c (gdbsim_detach): Likewise.
10963 * remote.c (remote_detach_1): Likewise.
10964 (remote_detach): Likewise.
10965 (extended_remote_detach): Likewise.
10966 * sol-thread.c (sol_thread_detach): Likewise.
10967 * target-debug.h (target_debug_print_inferior_p): New macro.
10968 * target-delegates.c: Re-generate.
10969 * top.c (kill_or_detach): Pass inferior down to target_detach.
10970 * windows-nat.c (windows_detach): Add inferior parameter.
10971
10972 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
10973
10974 * target.h (struct target_ops) <to_detach>: Remove args
10975 parameter.
10976 (target_detach): Likewise.
10977 * target.c (dispose_inferior): Adjust.
10978 (target_detach): Remove args parameter, adjust.
10979 * aix-thread.c (aix_thread_detach): Adjust.
10980 * corefile.c (core_file_command): Adjust.
10981 * corelow.c (core_detach): Adjust.
10982 * darwin-nat.c (darwin_detach): Adjust.
10983 * gnu-nat.c (gnu_detach): Adjust.
10984 * inf-ptrace.c (inf_ptrace_detach): Adjust.
10985 * infcmd.c (detach_command): Adjust
10986 * infrun.c (follow_fork_inferior): Adjust.
10987 (handle_vfork_child_exec_or_exit): Adjust.
10988 * linux-fork.c (linux_fork_detach): Remove args parameter.
10989 * linux-fork.h (linux_fork_detach): Likewise.
10990 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
10991 * linux-thread-db.c (thread_db_detach): Likewise.
10992 * nto-procfs.c (procfs_detach): Likewise.
10993 * procfs.c (procfs_detach): Likewise.
10994 (do_detach): Remove signo parameter.
10995 * record.c (record_detach): Remove args parameter.
10996 * record.h (record_detach): Likewise.
10997 * remote-sim.c (gdbsim_detach): Likewise.
10998 * remote.c (remote_detach_1): Likewise.
10999 (remote_detach): Likewise.
11000 (extended_remote_detach): Likewise.
11001 * sol-thread.c (sol_thread_detach): Likewise.
11002 * target-delegates.c: Re-generate.
11003 * top.c (struct qt_args) <args>: Remove field.
11004 (kill_or_detach): Don't pass args.
11005 (quit_force): Don't set args.
11006 * windows-nat.c (windows_detach): Remove args parameter.
11007
11008 2018-01-19 Yao Qi <yao.qi@linaro.org>
11009
11010 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11011 (arm_linux_init_abi): Install it.
11012
11013 2018-01-19 Yao Qi <yao.qi@linaro.org>
11014
11015 * osabi.c (gdb_osabi_names): Extend the regexp for
11016 arm-linux-gnueabihf.
11017
11018 2018-01-18 Yao Qi <yao.qi@linaro.org>
11019
11020 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11021 m_abbrevs.
11022 (abbrev_table::add_abbrev): Update.
11023 (abbrev_table::lookup_abbrev): Update.
11024
11025 2018-01-18 Yao Qi <yao.qi@linaro.org>
11026
11027 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11028
11029 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11030
11031 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11032 to "std::string".
11033
11034 2018-01-17 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11037
11038 2018-01-17 Tom Tromey <tom@tromey.com>
11039
11040 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11041 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11042 (create_array_type_with_stride): Update.
11043 * dwarf2read.c (set_die_type): Update.
11044
11045 2018-01-17 Tom Tromey <tom@tromey.com>
11046
11047 * dwarf2read.c (delayed_method_info): Remove typedef.
11048 (dwarf2_cu::method_info): Now a std::vector.
11049 (add_to_method_list): Update.
11050 (free_delayed_list): Remove.
11051 (compute_delayed_physnames): Update.
11052 (process_full_comp_unit, process_full_type_unit): Clear the method
11053 list. Remove cleanups.
11054 (psymtab_include_file_name): Add name_holder parameter. Use
11055 unique_xmalloc_ptr.
11056 (dwarf_decode_lines): Update.
11057
11058 2018-01-17 Tom Tromey <tom@tromey.com>
11059 Simon Marchi <simon.marchi@ericsson.com>
11060
11061 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11062 (dwarf2_per_objfile::free_cached_comp_units)
11063 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11064 (init_cutu_and_read_dies_no_follow): Update.
11065 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11066 (dwarf2_cu::~dwarf2_cu): New.
11067 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11068 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11069
11070 2018-01-17 Tom Tromey <tom@tromey.com>
11071 Simon Marchi <simon.marchi@ericsson.com>
11072
11073 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11074 (struct die_reader_specs) <abbrev_table>: New member.
11075 (struct abbrev_table): Add constructor.
11076 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11077 <abbrev_obstack>: Now an auto_obstack.
11078 (abbrev_table_up): New typedef.
11079 (init_cu_die_reader): Add abbrev_table parameter.
11080 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11081 Add result_dwo_abbrev_table.
11082 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11083 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11084 Update.
11085 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11086 parameter.
11087 (skip_children): Update.
11088 (abbrev_table::alloc_abbrev): Rename from
11089 abbrev_table_alloc_abbrev.
11090 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11091 (abbrev_table::lookup_abbrev): Rename from
11092 abbrev_table_lookup_abbrev.
11093 (abbrev_table_read_table): Return abbrev_table_up.
11094 (abbrev_table_free, abbrev_table_free_cleanup)
11095 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11096 (load_partial_dies): Update.
11097
11098 2018-01-17 Tom Tromey <tom@tromey.com>
11099
11100 * dwarf2read.c (dwarf2_compute_name): Update comment.
11101 (read_func_scope, read_variable): Update.
11102 (new_symbol): Remove.
11103 (new_symbol_full): Rename to new_symbol.
11104
11105 2018-01-17 Mike Gulick <mgulick@mathworks.com>
11106
11107 PR gdb/16577
11108 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11109 a warning instead of throwing an error, set section size to 0 and return
11110 NULL.
11111 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11112
11113 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11114
11115 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11116 std::string.
11117 (linux_ptrace_attach_fail_reason_string): Likewise.
11118 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11119 Likewise.
11120 (linux_ptrace_attach_fail_reason_string): Likewise.
11121 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11122
11123 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11124
11125 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11126
11127 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11128
11129 PR gdb/21559
11130 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11131 checking for fs_base/gs_base fields in struct user_regs_struct.
11132 * configure: Regenerate.
11133
11134 2018-01-17 Yao Qi <yao.qi@linaro.org>
11135
11136 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11137 function.
11138 (aarch64_linux_init_abi): Install it to gdbarch hook
11139 gcc_target_options.
11140
11141 2018-01-15 Pedro Alves <palves@redhat.com>
11142
11143 * common/signals-state-save-restore.c
11144 (save_original_signals_state): Fix typos.
11145
11146 2017-01-12 Tom Tromey <tom@tromey.com>
11147 Sergio Durigan Junior <sergiodj@redhat.com>
11148
11149 * Makefile.in (install-only): Install gdb-add-index.
11150
11151 2018-01-12 John Baldwin <jhb@FreeBSD.org>
11152
11153 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11154
11155 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11156
11157 * infrun.c (keep_going_pass_signal): Clear step-over info when
11158 insert_breakpoints fails.
11159
11160 2018-01-11 Pedro Alves <palves@redhat.com>
11161
11162 PR gdb/22583
11163 * infrun.c (resume): Rename to ...
11164 (resume_1): ... this.
11165 (resume): Reimplement as wrapper around resume_1.
11166
11167 2018-01-11 Pedro Alves <palves@redhat.com>
11168
11169 PR remote/22597
11170 * remote.c (remote_parse_stop_reply): Default to the last-set
11171 general thread instead of to 'magic_null_ptid'.
11172
11173 2018-01-10 Pedro Alves <palves@redhat.com>
11174
11175 * language.h (language_get_symbol_name_matcher): Rename ...
11176 (get_symbol_name_matcher): ... this.
11177 * language.c (language_get_symbol_name_matcher): Ditto.
11178 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11179 callers adjusted.
11180
11181 2018-01-10 Pedro Alves <palves@redhat.com>
11182
11183 PR gdb/22670
11184 * dwarf2read.c
11185 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11186 Adjust to use language_get_symbol_name_matcher instead of
11187 language_defn::la_get_symbol_name_matcher.
11188 * language.c (language_get_symbol_name_matcher): If in Ada mode
11189 and the lookup name is a verbatim match, return Ada's matcher.
11190 * language.h (language_get_symbol_name_matcher): Adjust comment.
11191 (ada_lookup_name_info::verbatim_p):: New method.
11192
11193 2018-01-10 Pedro Alves <palves@redhat.com>
11194
11195 PR gdb/22670
11196 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11197 minsym's language is language_auto or language_cplus, pass down
11198 language_ada instead.
11199 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11200
11201 2018-01-10 Pedro Alves <palves@redhat.com>
11202
11203 PR gdb/22670
11204 * minsyms.c (linkage_name_str): New function.
11205 (iterate_over_minimal_symbols): Use it.
11206
11207 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11208
11209 * NEWS: Document that 'info proc' now works on FreeBSD.
11210
11211 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11212
11213 * configure.ac: Check for kinfo_getfile in libutil.
11214 * configure: Regenerate.
11215 * config.in: Regenerate.
11216 * fbsd-nat.c: Include "fbsd-tdep.h".
11217 (fbsd_fetch_cmdline): New.
11218 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11219 rather than calling error.
11220 (fbsd_info_proc): New.
11221 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11222 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11223 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11224
11225 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11226
11227 * fbsd-nat.c (struct free_deleter): Remove.
11228 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11229
11230 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11231
11232 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11233 NULL for an empty pathname.
11234
11235 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11236
11237 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11238 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11239 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11240 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11241 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11242 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11243 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11244 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11245 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11246 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11247 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11248 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11249 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11250 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11251 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11252
11253 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11254
11255 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11256 (gnu_xfer_auxv): New function.
11257 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11258 TARGET_OBJECT_AUXV.
11259
11260 2018-01-08 Yao Qi <yao.qi@linaro.org>
11261 Simon Marchi <simon.marchi@ericsson.com>
11262
11263 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11264 common/selftest.c.
11265 (COMMON_OBS): Remove selftest.o.
11266 * configure.ac: Append selftest-arch.c and common/selftest.c to
11267 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11268 * configure: Re-generated.
11269 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11270 GDB_SELF_TEST.
11271 (maintenance_info_selftests): Likewise.
11272
11273 2018-01-08 Xavier Roirand <roirand@adacore.com>
11274
11275 * ada-valprint.c (val_print_packed_array_elements): Use
11276 proper number of elements when printing an array indexed
11277 by an enumeration type.
11278
11279 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11280
11281 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11282 (dw2_get_file_names_reader): Adjust.
11283 (lookup_dwo_signatured_type): Adjust.
11284 (lookup_dwp_signatured_type): Adjust.
11285 (lookup_signatured_type): Adjust.
11286 (create_type_unit_group): Adjust.
11287 (get_type_unit_group): Adjust.
11288 (process_psymtab_comp_unit_reader): Adjust.
11289 (build_type_psymtabs_reader): Adjust.
11290 (scan_partial_symbols): Adjust.
11291 (add_partial_symbol): Adjust.
11292 (add_partial_subprogram): Adjust.
11293 (peek_die_abbrev): Adjust.
11294 (fixup_go_packaging): Adjust.
11295 (process_imported_unit_die): Adjust.
11296 (dwarf2_compute_name): Adjust.
11297 (dwarf2_physname): Adjust.
11298 (read_import_statement): Adjust.
11299 (handle_DW_AT_stmt_list): Adjust.
11300 (read_file_scope): Adjust.
11301 (read_func_scope): Adjust.
11302 (read_lexical_block_scope): Adjust.
11303 (read_call_site_scope): Adjust.
11304 (read_variable): Adjust.
11305 (dwarf2_rnglists_process): Adjust.
11306 (dwarf2_ranges_process): Adjust.
11307 (dwarf2_ranges_read): Adjust.
11308 (dwarf2_get_pc_bounds): Adjust.
11309 (dwarf2_record_block_ranges): Adjust.
11310 (dwarf2_add_field): Adjust.
11311 (dwarf2_add_member_fn): Adjust.
11312 (read_structure_type): Adjust.
11313 (process_structure_scope): Adjust.
11314 (read_enumeration_type): Adjust.
11315 (read_array_type): Adjust.
11316 (mark_common_block_symbol_computed): Adjust.
11317 (read_common_block): Adjust.
11318 (read_namespace_type): Adjust.
11319 (read_namespace): Adjust.
11320 (read_module_type): Adjust.
11321 (read_tag_pointer_type): Adjust.
11322 (read_tag_ptr_to_member_type): Adjust.
11323 (read_tag_string_type): Adjust.
11324 (read_subroutine_type): Adjust.
11325 (read_typedef): Adjust.
11326 (read_base_type): Adjust.
11327 (attr_to_dynamic_prop): Adjust.
11328 (read_subrange_type): Adjust.
11329 (read_unspecified_type): Adjust.
11330 (dwarf2_read_abbrevs): Adjust.
11331 (load_partial_dies): Adjust.
11332 (read_partial_die): Adjust.
11333 (find_partial_die): Adjust.
11334 (guess_partial_die_structure_name): Adjust.
11335 (fixup_partial_die): Adjust.
11336 (read_attribute_value): Adjust.
11337 (read_addr_index): Adjust.
11338 (read_addr_index_from_leb128): Adjust.
11339 (read_str_index): Adjust.
11340 (dwarf2_string_attr): Adjust.
11341 (get_debug_line_section): Adjust.
11342 (dwarf_decode_line_header): Adjust.
11343 (lnp_state_machine::check_line_address): Adjust.
11344 (dwarf_decode_lines_1): Adjust.
11345 (dwarf_decode_lines): Adjust.
11346 (dwarf2_start_symtab): Adjust.
11347 (var_decode_location): Adjust.
11348 (new_symbol_full): Adjust.
11349 (dwarf2_const_value_data): Adjust.
11350 (dwarf2_const_value_attr): Adjust.
11351 (dwarf2_const_value): Adjust.
11352 (die_type): Adjust.
11353 (die_containing_type): Adjust.
11354 (build_error_marker_type): Adjust.
11355 (lookup_die_type): Adjust.
11356 (guess_full_die_structure_name): Adjust.
11357 (anonymous_struct_prefix): Adjust.
11358 (determine_prefix): Adjust.
11359 (dwarf2_name): Adjust.
11360 (follow_die_ref_or_sig): Adjust.
11361 (follow_die_offset): Adjust.
11362 (follow_die_ref): Adjust.
11363 (follow_die_sig_1): Adjust.
11364 (follow_die_sig): Adjust.
11365 (get_signatured_type): Adjust.
11366 (get_DW_AT_signature_type): Adjust.
11367 (decode_locdesc): Adjust.
11368 (dwarf_decode_macros): Adjust.
11369 (cu_debug_loc_section): Adjust.
11370 (fill_in_loclist_baton): Adjust.
11371 (dwarf2_symbol_mark_computed): Adjust.
11372 (init_one_comp_unit): Don't assign
11373 dwarf2_cu::dwarf2_per_objfile.
11374 (set_die_type): Adjust.
11375
11376 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11377
11378 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11379 <dwarf2_per_objfile>: New field.
11380 (dwarf2_per_objfile): Remove global.
11381 (get_dwarf2_per_objfile): New function.
11382 (set_dwarf2_per_objfile): New function.
11383 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11384 dwarf2_per_objfile.
11385 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11386 (read_abbrev_offset): Likewise.
11387 (read_indirect_string): Likewise.
11388 (read_indirect_line_string): Likewise.
11389 (read_indirect_string_at_offset): Likewise.
11390 (read_indirect_string_from_dwz): Likewise.
11391 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11392 dwarf2_per_objfile.
11393 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11394 (create_all_comp_units): Change objfile parameter to
11395 dwarf2_per_objfile.
11396 (create_all_type_units): Likewise.
11397 (process_queue): Add dwarf2_per_objfile parameter.
11398 (read_and_check_comp_unit_head): Likewise.
11399 (lookup_dwo_unit_in_dwp): Likewise.
11400 (get_dwp_file): Likewise.
11401 (process_cu_includes): Likewise.
11402 (struct free_dwo_file_cleanup_data): New struct.
11403 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11404 set_dwarf2_per_objfile.
11405 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11406 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11407 context, adjust calls.
11408 (dw2_instantiate_symtab): Likewise.
11409 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11410 (dw2_get_cu): Likewise.
11411 (create_cu_from_index_list): Change objfile parameter to
11412 dwarf2_per_objfile.
11413 (create_cus_from_index_list): Get dwarf2_per_objfile from
11414 context, adjust calls.
11415 (create_cus_from_index): Likewise.
11416 (create_signatured_type_table_from_index): Change objfile
11417 parameter to dwarf2_per_objfile.
11418 (create_signatured_type_table_from_debug_names): Change objfile
11419 parameter to dwarf2_per_objfile.
11420 (create_addrmap_from_index): Likewise.
11421 (create_addrmap_from_aranges): Likewise.
11422 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11423 (dw2_setup): Remove.
11424 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11425 context.
11426 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11427 get_dwarf2_per_objfile.
11428 (dw2_forget_cached_source_info): Likewise.
11429 (dw2_map_symtabs_matching_filename): Likewise.
11430 (struct dw2_symtab_iterator) <index>: Remove.
11431 <dwarf2_per_objfile>: New field.
11432 (dw2_symtab_iter_init): Replace index parameter with
11433 dwarf2_per_objfile.
11434 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11435 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11436 (dw2_print_stats): Likewise.
11437 (dw2_dump): Likewise.
11438 (dw2_expand_symtabs_for_function): Likewise.
11439 (dw2_expand_all_symtabs): Likewise.
11440 (dw2_expand_symtabs_with_fullname): Likewise.
11441 (dw2_expand_marked_cus): Replace index and objfile parameters
11442 with dwarf2_per_objfile.
11443 (dw_expand_symtabs_matching_file_matcher): Add
11444 dwarf2_per_objfile parameter and adjust calls.
11445 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
11446 adjust calls.
11447 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
11448 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
11449 adjust calls.
11450 (create_cus_from_debug_names_list): Replace objfile parameter
11451 with dwarf2_per_objfile and adjust calls.
11452 (create_cus_from_debug_names): Likewise.
11453 (dwarf2_read_debug_names): Likewise.
11454 (mapped_debug_names::namei_to_name): Adjust call.
11455 (dw2_debug_names_iterator::next): Likewise.
11456 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
11457 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
11458 (dw2_debug_names_dump): Likewise.
11459 (dw2_debug_names_expand_symtabs_for_function): Likewise.
11460 (dw2_debug_names_expand_symtabs_matching): Likewise.
11461 (dwarf2_initialize_objfile): Likewise.
11462 (dwarf2_build_psymtabs): Likewise.
11463 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
11464 this_cu.
11465 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
11466 (read_and_check_comp_unit_head): Likewise.
11467 (read_abbrev_offset): Likewise.
11468 (create_debug_type_hash_table): Likewise.
11469 (create_debug_types_hash_table): Likewise.
11470 (create_all_type_units): Replace objfile parameter with
11471 dwarf2_per_objfile.
11472 (add_type_unit): Add dwarf2_per_objfile parameter.
11473 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
11474 with dwarf2_per_objfile.
11475 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
11476 (lookup_dwp_signatured_type): Likewise.
11477 (lookup_signatured_type): Likewise.
11478 (read_cutu_die_from_dwo): Likewise.
11479 (init_tu_and_read_dwo_dies): Likewise.
11480 (init_cutu_and_read_dies): Likewise.
11481 (init_cutu_and_read_dies_no_follow): Likewise.
11482 (allocate_type_unit_groups_table): Add objfile parameter.
11483 (create_type_unit_group): Use dwarf2_per_objfile from cu.
11484 (get_type_unit_group): Likewise.
11485 (process_psymtab_comp_unit): Update call.
11486 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
11487 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
11488 (print_tu_stats): Likewise.
11489 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
11490 in void* parameter.
11491 (build_type_psymtabs): Change objfile parameter to
11492 dwarf2_per_objfile.
11493 (process_skeletonless_type_unit): Use dwarf2_per_objfile
11494 passed in void* parameter.
11495 (process_skeletonless_type_units): Change objfile parameter to
11496 dwarf2_per_objfile.
11497 (set_partial_user): Likewise.
11498 (dwarf2_build_psymtabs_hard): Likewise.
11499 (read_comp_units_from_section): Likewise.
11500 (create_all_comp_units): Likewise.
11501 (scan_partial_symbols): Update calls.
11502 (add_partial_symbol): Likewise.
11503 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
11504 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
11505 (process_queue): Add dwarf2_per_objfile parameter.
11506 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
11507 (compute_compunit_symtab_includes): Likewise.
11508 (process_cu_includes): Add dwarf2_per_objfile parameter.
11509 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
11510 (process_full_type_unit): Likewise.
11511 (process_imported_unit_die): Update call.
11512 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
11513 (read_file_scope): Likewise.
11514 (allocate_dwo_file_hash_table): Add objfile parameter.
11515 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
11516 (create_cus_hash_table): Likewise.
11517 (create_dwp_hash_table): Likewise.
11518 (create_dwo_unit_in_dwp_v1): Likewise.
11519 (create_dwp_v2_section): Likewise.
11520 (create_dwo_unit_in_dwp_v2): Likewise.
11521 (lookup_dwo_unit_in_dwp): Likewise.
11522 (try_open_dwop_file): Likewise.
11523 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
11524 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
11525 cleanup to include a reference to dwarf2_per_objfile.
11526 (open_dwp_file): Add dwarf2_per_objfile parameter.
11527 (open_and_init_dwp_file): Likewise.
11528 (get_dwp_file): Likewise.
11529 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
11530 (queue_and_load_all_dwo_tus): Update call.
11531 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
11532 data.
11533 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
11534 (dwarf2_ranges_process): Likewise.
11535 (dwarf2_get_pc_bounds): Likewise.
11536 (mark_common_block_symbol_computed): Likewise.
11537 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11538 (dwarf2_read_abbrevs): Update call.
11539 (read_partial_die): Use dwarf2_per_objfile from cu.
11540 (find_partial_die): Likewise.
11541 (fixup_partial_die): Likewise.
11542 (read_attribute_value): Likewise.
11543 (read_indirect_string_at_offset_from): Add objfile parameter.
11544 (read_indirect_string_at_offset): Add dwarf2_per_objfile
11545 parameter.
11546 (read_indirect_string_from_dwz): Add objfile parameter.
11547 (read_indirect_string): Add objfile parameter.
11548 (read_addr_index_1): Add dwarf2_per_objfile parameter.
11549 (read_addr_index): Use dwarf2_per_objfile from cu.
11550 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
11551 call dw2_setup.
11552 (read_str_index): Use dwarf2_per_objfile from cu.
11553 (get_debug_line_section): Likewise.
11554 (read_formatted_entries): Add dwarf2_per_objfile parameter.
11555 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
11556 (new_symbol_full): Use dwarf2_per_objfile from cu.
11557 (build_error_marker_type): Likewise.
11558 (lookup_die_type): Likewise.
11559 (determine_prefix): Likewise.
11560 (follow_die_offset): Likewise.
11561 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
11562 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
11563 (dwarf2_fetch_die_type_sect_off): Likewise.
11564 (dwarf2_get_die_type): Likewise.
11565 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
11566 (get_signatured_type): Likewise.
11567 (get_DW_AT_signature_type): Likewise.
11568 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
11569 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
11570 (cu_debug_loc_section): Likewise.
11571 (fill_in_loclist_baton): Likewise.
11572 (dwarf2_symbol_mark_computed): Likewise.
11573 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11574 dwarf2_per_objfile.
11575 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
11576 parameter.
11577 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11578 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
11579 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
11580 (set_die_type): Use dwarf2_free_objfile from cu.
11581 (get_die_type_at_offset): Likewise.
11582 (dwarf2_per_objfile_free): Don't assign global variable.
11583 (debug_names) <constructor>: Add dwarf2_per_objfile
11584 parameter, update m_debugstrlookup construction.
11585 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
11586 parameter.
11587 <m_dwarf2_per_objfile>: New field.
11588 <lookup>: Use m_dwarf2_per_objfile.
11589 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
11590 (psyms_seen_size): Likewise.
11591 (write_gdbindex): Replace objfile parameter with
11592 dwarf2_per_objfile.
11593 (write_debug_names): Likewise.
11594 (write_psymtabs_to_index): Likewise.
11595 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
11596 calls.
11597
11598 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11599
11600 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
11601 <dwarf2_per_objfile>: New field.
11602 (struct dwarf2_per_cu_data) <objfile>: Remove.
11603 <dwarf2_per_objfile>: New field.
11604 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
11605 of objfile.
11606 (create_signatured_type_table_from_index): Likewise.
11607 (create_debug_type_hash_table): Likewise.
11608 (fill_in_sig_entry_from_dwo_entry): Likewise.
11609 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
11610 (create_type_unit_group): Assign dwarf2_per_objfile instead of
11611 objfile.
11612 (create_partial_symtab): Access objfile through
11613 dwarf2_per_objfile.
11614 (process_psymtab_comp_unit_reader): Likewise.
11615 (read_comp_units_from_section): Likewise.
11616 (scan_partial_symbols): Likewise.
11617 (add_partial_symbol): Likewise.
11618 (add_partial_subprogram): Likewise.
11619 (peek_die_abbrev): Likewise.
11620 (fixup_go_packaging): Likewise.
11621 (process_full_comp_unit): Likewise.
11622 (process_full_type_unit): Likewise.
11623 (process_imported_unit_die): Likewise.
11624 (dwarf2_compute_name): Likewise.
11625 (dwarf2_physname): Likewise.
11626 (read_import_statement): Likewise.
11627 (create_cus_hash_table): Assign dwarf2_physname instead of
11628 objfile.
11629 (read_func_scope): Access objfile through dwarf2_per_objfile.
11630 (read_lexical_block_scope): Likewise.
11631 (read_call_site_scope): Likewise.
11632 (read_variable): Likewise.
11633 (dwarf2_rnglists_process): Likewise.
11634 (dwarf2_ranges_process): Likewise.
11635 (dwarf2_ranges_read): Likewise.
11636 (dwarf2_record_block_ranges): Likewise.
11637 (dwarf2_add_field): Likewise.
11638 (dwarf2_add_member_fn): Likewise.
11639 (read_structure_type): Likewise.
11640 (process_structure_scope): Likewise.
11641 (read_enumeration_type): Likewise.
11642 (read_array_type): Likewise.
11643 (read_common_block): Likewise.
11644 (read_namespace_type): Likewise.
11645 (read_namespace): Likewise.
11646 (read_module_type): Likewise.
11647 (read_tag_pointer_type): Likewise.
11648 (read_tag_ptr_to_member_type): Likewise.
11649 (read_tag_string_type): Likewise.
11650 (read_subroutine_type): Likewise.
11651 (read_typedef): Likewise.
11652 (read_base_type): Likewise.
11653 (attr_to_dynamic_prop): Likewise.
11654 (read_subrange_type): Likewise.
11655 (read_unspecified_type): Likewise.
11656 (load_partial_dies): Likewise.
11657 (read_partial_die): Likewise.
11658 (find_partial_die): Likewise.
11659 (guess_partial_die_structure_name): Likewise.
11660 (fixup_partial_die): Likewise.
11661 (read_attribute_value): Likewise.
11662 (read_addr_index_from_leb128): Likewise.
11663 (dwarf2_read_addr_index): Likewise.
11664 (dwarf2_string_attr): Likewise.
11665 (lnp_state_machine::check_line_address): Likewise.
11666 (dwarf_decode_lines_1): Likewise.
11667 (dwarf_decode_lines): Likewise.
11668 (dwarf2_start_symtab): Likewise.
11669 (var_decode_location): Likewise.
11670 (new_symbol_full): Likewise.
11671 (dwarf2_const_value_data): Likewise.
11672 (dwarf2_const_value_attr): Likewise.
11673 (dwarf2_const_value): Likewise.
11674 (die_type): Likewise.
11675 (die_containing_type): Likewise.
11676 (lookup_die_type): Likewise.
11677 (guess_full_die_structure_name): Likewise.
11678 (anonymous_struct_prefix): Likewise.
11679 (dwarf2_name): Likewise.
11680 (follow_die_ref_or_sig): Likewise.
11681 (follow_die_offset): Likewise.
11682 (follow_die_ref): Likewise.
11683 (dwarf2_fetch_die_loc_sect_off): Likewise.
11684 (dwarf2_fetch_constant_bytes): Likewise.
11685 (dwarf2_fetch_die_type_sect_off): Likewise.
11686 (dwarf2_get_die_type): Likewise.
11687 (follow_die_sig): Likewise.
11688 (decode_locdesc): Likewise.
11689 (dwarf2_per_cu_objfile): Likewise.
11690 (dwarf2_per_cu_text_offset): Likewise.
11691 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
11692 objfile.
11693 (set_die_type): Access objfile through
11694 dwarf2_per_objfile.
11695
11696 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11697
11698 * valprint.c (converted_character_d): Remove typedef.
11699 (DEF_VEC_O (converted_character_d)): Remove.
11700 (count_next_character): Use std::vector.
11701 (print_converted_chars_to_obstack): Likewise.
11702 (generic_printstr): Likewise.
11703
11704 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11705
11706 * xml-support.h (struct gdb_xml_value): Add constructor.
11707 <value>: Change type to unique_xmalloc_ptr.
11708 (gdb_xml_value_s): Remove typedef.
11709 (DEF_VEC_O (gdb_xml_value_s)): Remove.
11710 (gdb_xml_element_start_handler): Change parameter type to
11711 std::vector.
11712 (xml_find_attribute): Likewise.
11713 * xml-support.c (xml_find_attribute): Change parameter type to
11714 std::vector and adjust.
11715 (gdb_xml_values_cleanup): Remove.
11716 (gdb_xml_parser::start_element): Adjust to std::vector.
11717 (xinclude_start_include): Change paraeter type to std::vector
11718 and adjust.
11719 * btrace.c (check_xml_btrace_version): Likewise.
11720 (parse_xml_btrace_block): Likewise.
11721 (parse_xml_btrace_pt_config_cpu): Likewise.
11722 (parse_xml_btrace_pt): Likewise.
11723 (parse_xml_btrace_conf_bts): Likewise.
11724 (parse_xml_btrace_conf_pt): Likewise.
11725 * memory-map.c (memory_map_start_memory): Likewise.
11726 (memory_map_start_property): Likewise.
11727 * osdata.c (osdata_start_osdata): Likewise.
11728 (osdata_start_item): Likewise.
11729 (osdata_start_column): Likewise.
11730 * remote.c (start_thread): Likewise.
11731 * solib-aix.c (library_list_start_library): Likewise.
11732 (library_list_start_list): Likewise.
11733 * solib-svr4.c (library_list_start_library): Likewise.
11734 (svr4_library_list_start_list): Likewise.
11735 * solib-target.c (library_list_start_segment): Likewise.
11736 (library_list_start_section): Likewise.
11737 (library_list_start_library): Likewise.
11738 (library_list_start_list): Likewise.
11739 * tracepoint.c (traceframe_info_start_memory): Likewise.
11740 (traceframe_info_start_tvar): Likewise.
11741 * xml-syscall.c (syscall_start_syscall): Likewise.
11742 * xml-tdesc.c (tdesc_start_target): Likewise.
11743 (tdesc_start_feature): Likewise.
11744 (tdesc_start_reg): Likewise.
11745 (tdesc_start_union): Likewise.
11746 (tdesc_start_struct): Likewise.
11747 (tdesc_start_flags): Likewise.
11748 (tdesc_start_enum): Likewise.
11749 (tdesc_start_field): Likewise.
11750 (tdesc_start_enum_value): Likewise.
11751 (tdesc_start_vector): Likewise.
11752
11753 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11754
11755 * extension.h (struct xmethod_worker) <clone>: Remove.
11756 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
11757 Remove.
11758 (python_xmethod_worker::clone): Remove.
11759 * valops.c (find_overload_match): Use std::move instead of
11760 clone.
11761
11762 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11763
11764 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
11765 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
11766 <free_xmethod_worker_data>: Remove.
11767 <get_matching_xmethod_workers>: Chance VEC to std::vector.
11768 <get_xmethod_arg_types>: Remove.
11769 <get_xmethod_result_type>: Remove.
11770 <invoke_xmethod>: Remove.
11771 * extension.c (new_xmethod_worker): Remove.
11772 (clone_xmethod_worker): Remove.
11773 (get_matching_xmethod_workers): Return void, pass std::vector by
11774 pointer.
11775 (get_xmethod_arg_types): Rename to...
11776 (xmethod_worker::get_arg_types): ... this, and adjust.
11777 (get_xmethod_result_type): Rename to...
11778 (xmethod_worker::get_result_type): ... this, and adjust.
11779 (invoke_xmethod): Remove.
11780 (free_xmethod_worker): Remove.
11781 (free_xmethod_worker_vec): Remove.
11782 * extension.h (enum ext_lang_rc): Move here from
11783 extension-priv.h.
11784 (struct xmethod_worker): Add constructor and destructor.
11785 <data>: Remove.
11786 <value>: Remove.
11787 <invoke, clone, do_get_result_type, do_get_arg_types>: New
11788 virtual pure methods.
11789 <get_arg_types, get_result_type>: New methods.
11790 (xmethod_worker_ptr): Remove typedef.
11791 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
11792 (xmethod_worker_vec): Remove typedef.
11793 (xmethod_worker_up): New typedef.
11794 (invoke_xmethod): Remove.
11795 (clone_xmethod_worker): Remove.
11796 (free_xmethod_worker): Remove.
11797 (free_xmethod_worker_vec): Remove.
11798 (get_xmethod_arg_types): Remove.
11799 (get_xmethod_result_type): Remove.
11800 * valops.c (find_method_list): Use std::vector, don't use
11801 intermediate vector.
11802 (value_find_oload_method_list): Use std::vector.
11803 (find_overload_match): Use std::vector.
11804 (find_oload_champ): Use std::vector.
11805 * value.c (value_free): Use operator delete.
11806 (value_of_xmethod): Rename to...
11807 (value_from_xmethod): ... this. Don't assign
11808 xmethod_worker::value, take rvalue-reference.
11809 (result_type_of_xmethod): Adjust.
11810 (call_xmethod): Adjust.
11811 * value.h: Include extension.h.
11812 (struct xmethod_worker): Don't forward-declare.
11813 (value_of_xmethod): Rename to...
11814 (value_from_xmethod): ... this, take rvalue-reference.
11815 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
11816 (struct python_xmethod_worker): ... this, add constructor and
11817 destructor.
11818 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
11819 (gdbpy_free_xmethod_worker_data): Rename to...
11820 (python_xmethod_worker::~python_xmethod_worker): ... this and
11821 adjust.
11822 (gdbpy_clone_xmethod_worker_data): Rename to...
11823 (python_xmethod_worker::clone): ... this and adjust.
11824 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
11825 temporary vector.
11826 (gdbpy_get_xmethod_arg_types): Rename to...
11827 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
11828 (gdbpy_get_xmethod_result_type): Rename to...
11829 (python_xmethod_worker::do_get_result_type): ... this and
11830 adjust.
11831 (gdbpy_invoke_xmethod): Rename to...
11832 (python_xmethod_worker::invoke): ... this and adjust.
11833 (new_python_xmethod_worker): Rename to...
11834 (python_xmethod_worker::python_xmethod_worker): ... this and
11835 adjust.
11836 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
11837 Remove.
11838 (gdbpy_free_xmethod_worker_data): Remove.
11839 (gdbpy_get_matching_xmethod_workers): Use std::vector.
11840 (gdbpy_get_xmethod_arg_types): Remove.
11841 (gdbpy_get_xmethod_result_type): Remove.
11842 (gdbpy_invoke_xmethod): Remove.
11843 * python/python.c (python_extension_ops): Remove obsolete
11844 callbacks.
11845
11846 2018-01-05 Pedro Alves <palves@redhat.com>
11847
11848 PR gdb/18653
11849 * common/signals-state-save-restore.c
11850 (save_original_signals_state): New parameter 'quiet'. Warn if we
11851 find a custom handler preinstalled, instead of internal erroring.
11852 But only warn if !quiet.
11853 * common/signals-state-save-restore.h
11854 (save_original_signals_state): New parameter 'quiet'.
11855 * main.c (captured_main_1): Move save_original_signals_state call
11856 after option handling, and pass QUIET.
11857
11858 2018-01-05 Pedro Alves <palves@redhat.com>
11859
11860 * spu-tdep.c (spu_catch_start): Pass
11861 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
11862
11863 2018-01-05 Pedro Alves <palves@redhat.com>
11864
11865 PR gdb/22670
11866 * ada-lang.c (literal_symbol_name_matcher): New function.
11867 (ada_get_symbol_name_matcher): Use it for
11868 symbol_name_match_type::SEARCH_NAME.
11869 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
11870 it down instead of assuming symbol_name_match_type::FULL.
11871 * block.h (block_lookup_symbol): New parameter 'match_type'.
11872 * c-valprint.c (print_unpacked_pointer): Use
11873 lookup_symbol_search_name instead of lookup_symbol.
11874 * compile/compile-object-load.c (get_out_value_type): Pass down
11875 symbol_name_match_type::SEARCH_NAME.
11876 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
11877 symbol_name_match_type::FULL.
11878 * cp-support.c (cp_get_symbol_name_matcher): Handle
11879 symbol_name_match_type::SEARCH_NAME.
11880 * infrun.c (insert_exception_resume_breakpoint): Use
11881 lookup_symbol_search_name.
11882 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
11883 * psymtab.c (maintenance_check_psymtabs): Use
11884 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
11885 * stack.c (print_frame_args): Use lookup_symbol_search_name and
11886 SYMBOL_SEARCH_NAME.
11887 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
11888 if symbol_name_match_type::SEARCH_NAME.
11889 (lookup_symbol_in_language): Pass down
11890 symbol_name_match_type::FULL.
11891 (lookup_symbol_search_name): New.
11892 (lookup_language_this): Pass down
11893 symbol_name_match_type::SEARCH_NAME.
11894 (lookup_symbol_aux, lookup_local_symbol): New parameter
11895 'match_type'. Pass it down.
11896 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
11897 (lookup_symbol_search_name): New declaration.
11898 (lookup_symbol_in_block): New 'match_type' parameter.
11899
11900 2018-01-05 Pedro Alves <palves@redhat.com>
11901
11902 PR gdb/22670
11903 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
11904 ada_lookup_symbol.
11905 (ada_lookup_symbol): Reimplement in terms of
11906 ada_lookup_symbol_list, bits factored out from
11907 ada_lookup_encoded_symbol.
11908
11909 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11910
11911 * ada-exp.y (write_object_renaming): When subscripting an array
11912 using a symbol as the index, pass the block in call to
11913 ada_lookup_encoded_symbol when looking that symbol up.
11914
11915 2018-01-05 Jerome Guitton <guitton@adacore.com>
11916
11917 * ada-lang.c (ada_array_length): Use ada_index_type instead of
11918 TYPE_INDEX_TYPE.
11919
11920 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11921
11922 * ada-lang.c (ada_to_fixed_value_create): Add handling of
11923 the case where VALUE_LVAL (val0) is not lval_memory.
11924
11925 2018-01-05 Xavier Roirand <roirand@adacore.com>
11926
11927 * ada-valprint.c (print_optional_low_bound): Handle
11928 character-indexed array printing like boolean-indexed array
11929 printing.
11930
11931 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11932
11933 * NEWS: Create a new section for the next release branch.
11934 Rename the section of the current branch, now that it has
11935 been cut.
11936
11937 2018-01-05 Joel Brobecker <brobecker@adacore.com>
11938
11939 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
11940 * version.in: Bump version to 8.1.50.DATE-git.
11941
11942 2018-01-03 Xavier Roirand <roirand@adacore.com>
11943
11944 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
11945 Add field.
11946 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
11947 Add field.
11948 (default_exception_support_info) <catch_handlers_sym>: Add field.
11949 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
11950 (ada_exception_name_addr_1): Add "catch handlers" handling.
11951 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
11952 Update all callers.
11953 (create_excep_cond_exprs) <ex>: Add parameter.
11954 (re_set_exception): Update create_excep_cond_exprs call.
11955 (print_it_exception, print_one_exception, print_mention_exception)
11956 (print_recreate_exception): Add "catch handler" handling.
11957 (allocate_location_catch_handlers, re_set_catch_handlers)
11958 (check_status_catch_handlers, print_it_catch_handlers)
11959 (print_one_catch_handlers, print_mention_catch_handlers)
11960 (print_recreate_catch_handlers): New function.
11961 (catch_handlers_breakpoint_ops): New variable.
11962 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
11963 Add parameter. Add "catch handler" handling.
11964 (ada_exception_sym_name, ada_exception_breakpoint_ops):
11965 Add "catch handler" handling.
11966 (ada_exception_catchpoint_cond_string): Add "catch handler"
11967 handling.
11968 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
11969 call.
11970 (catch_ada_handlers_command): New function.
11971 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
11972 operations structure.
11973 (_initialize_ada_language): Add "catch handlers" command entry.
11974 * NEWS: Document "catch handlers" feature.
11975
11976 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11977
11978 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
11979 account when creating the array type of the slice.
11980 (ada_value_slice): Likewise.
11981
11982 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11983
11984 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
11985 New enum value.
11986 (create_array_type_with_stride): Add byte_stride_prop parameter.
11987 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
11988 New parameter. Update all callers in this file.
11989 (array_type_has_dynamic_stride): New function.
11990 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
11991 of arrays with dynamic byte strides.
11992 * dwarf2read.c (read_array_type): Add support for dynamic
11993 DW_AT_byte_stride attributes.
11994
11995 2018-01-02 Joel Brobecker <brobecker@adacore.com>
11996
11997 * dwarf2read.c (read_unspecified_type): Treat
11998 DW_TAG_enumeration_type DIEs from Ada units as stubs.
11999
12000 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12001
12002 Update copyright year range in all GDB files.
12003
12004 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12005
12006 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12007 and gdb/testsuite/gdb.base/step-line.c.
12008
12009 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12010
12011 * copyright.py (main): Dump the contents of
12012 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12013 even if BY_HAND is empty.
12014
12015 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12016
12017 * top.c (print_gdb_version): Update Copyright year in version
12018 message.
12019
12020 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12021
12022 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
12023
12024 For older changes see ChangeLog-2017.
12025 \f
12026 Local Variables:
12027 mode: change-log
12028 left-margin: 8
12029 fill-column: 74
12030 version-control: never
12031 coding: utf-8
12032 End:
This page took 0.293386 seconds and 4 git commands to generate.