microMIPS: Add SYSCALL instruction decoding
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6592ceed
MR
12018-07-18 Maciej W. Rozycki <macro@mips.com>
2
3 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4 decoding.
5
c6c6149a
TT
62018-07-17 Tom Tromey <tom@tromey.com>
7
8 * guile/scm-param.c (pascm_set_func, pascm_show_func)
9 (compute_enum_list, pascm_set_param_value_x)
10 (gdbscm_parameter_value): Update.
11 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
12 (gdbscm_scm_to_host_string): Update.
13 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
14 Update.
15 * guile/scm-cmd.c (cmdscm_add_completion): Update.
16 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
17 * guile/scm-string.c (gdbscm_scm_to_string): Return
18 unique_xmalloc_ptr.
19 (gdbscm_scm_to_host_string): Likewise.
20
a1a31cb8
TT
212018-07-17 Tom Tromey <tom@tromey.com>
22
23 * guile/guile.c (gdbscm_eval_from_control_command): Update.
24 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
25 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
26 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
27 unique_xmalloc_ptr.
28
15bf3002
TT
292018-07-17 Tom Tromey <tom@tromey.com>
30
31 * guile/scm-param.c (pascm_signal_setshow_error): Update.
32 * guile/guile-internal.h (gdbscm_exception_message_to_string):
33 Update.
34 * guile/scm-cmd.c (cmdscm_function): Update.
35 * guile/scm-pretty-print.c
36 (ppscm_print_exception_unless_memory_error): Update.
37 * guile/scm-exception.c (gdbscm_exception_message_to_string):
38 Return unique_xmalloc_ptr.
39
7eb1a66c
TT
402018-07-17 Tom Tromey <tom@tromey.com>
41
42 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
43 Use string_printf.
44
ce73f310
JW
452018-07-17 Jim Wilson <jimw@sifive.com>
46
27724bad
JW
47 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
48 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
49 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
50 unecessary braces after EF_RISCV_RVC test. Delete call to
51 set_gdbarch_decr_pc_after_break.
52
ce73f310
JW
53 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
54 RISCV_LAST_FP_REGNUM + 1.
55 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
56
056dec39
TT
572018-07-17 Tom Tromey <tom@tromey.com>
58
59 * configure.ac: Remove --disable-gdbcli.
60 * configure: Rebuild.
61 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
62 (SUBDIR_CLI_CFLAGS): Remove.
63 (SFILES): Use SUBDIR_CLI_SRCS.
64 (COMMON_OBS): Use SUBDIR_CLI_OBS.
65
4735f0ed
TT
662018-07-17 Tom Tromey <tom@tromey.com>
67
68 PR gdb/18624:
69 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
70
117a0e99
JW
712018-07-16 Jim Wilson <jimw@sifive.com>
72
73 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
74
8a67aaa8
SM
752018-07-16 Simon Marchi <simon.marchi@ericsson.com>
76
77 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
78 variable.
79 (libunwind_frame_sniffer): Likewise.
80 (libunwind_frame_prev_register): Likewise.
81 (libunwind_sigtramp_frame_sniffer): Likewise.
82 * ia64-tdep.c (ia64_access_reg): Likewise.
83 (ia64_access_rse_reg): Likewise.
84 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
85 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
86
ec74dcd8
SM
872018-07-16 Simon Marchi <simon.marchi@ericsson.com>
88
89 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
90
a700e753
SM
912018-07-16 Simon Marchi <simon.marchi@ericsson.com>
92
93 * remote-sim.c (gdbsim_target::close,
94 gdbsim_target::mourn_inferior): Remove unused variables.
95
8b411ff8
SM
962018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
97
98 * ia64-tdep.c (ktab_buf): New global.
99 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
100 (get_kernel_table): Adjust.
101
edb0470b
TT
1022018-07-16 Tom Tromey <tom@tromey.com>
103
104 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
105 * dwarf2read.c (using_directives, new_symbol): Use
106 outermost_context_p.
107 * dbxread.c (process_one_symbol): Use outermost_context_p.
108 * coffread.c (coff_symtab_read): Use outermost_context_p.
109
6cccc9a8
TT
1102018-07-16 Tom Tromey <tom@tromey.com>
111
112 * dwarf2read.c (using_directives, read_func_scope)
113 (read_lexical_block_scope): Update.
114 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
115 * buildsym.h (local_using_directives, global_using_directives):
116 Don't declare.
117 (get_local_using_directives, set_local_using_directives)
118 (get_global_using_directives): Declare.
119 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
120 m_global_using_directives>: New members.
121 (finish_block_internal, prepare_for_building)
122 (reset_symtab_globals, end_symtab_get_static_block)
123 (push_context): Update.
124 (get_local_using_directives, set_local_using_directives)
125 (get_global_using_directives): New functions.
126 (buildsym_init): Update.
127
652788a7
TT
1282018-07-16 Tom Tromey <tom@tromey.com>
129
130 * xcoffread.c (xcoff_initial_scan): Don't call
131 free_pending_blocks.
132 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
133 * buildsym.h (class scoped_free_pendings): Add constructor.
134 (free_pending_blocks): Don't declare.
135 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
136 (free_pending_blocks): Now static.
137
8419ee53
TT
1382018-07-16 Tom Tromey <tom@tromey.com>
139
140 * buildsym.h (push_subfile, pop_subfile): Update declarations.
141 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
142 member.
143 (struct subfile_stack): Remove.
144 (subfile_stack): Remove.
145 (push_subfile, pop_subfile, buildsym_init): Update.
146
ccdac490
TT
1472018-07-16 Tom Tromey <tom@tromey.com>
148
149 * buildsym.c (push_subfile): Use gdb_assert.
150 (pop_subfile): Use gdb_assert.
151
43130d6f
TT
1522018-07-16 Tom Tromey <tom@tromey.com>
153
154 * buildsym.h (merge_symbol_lists): Remove.
155 * buildsym.c (merge_symbol_lists): Remove.
156
77d6f1aa
TT
1572018-07-16 Tom Tromey <tom@tromey.com>
158
159 * stabsread.c (scan_file_globals): Update comment.
160 * stabsread.h (scan_file_globals): Move from buildsym.h.
161 * buildsym.h (scan_file_globals): Move to stabsread.h.
162
2c722d18
TT
1632018-07-16 Tom Tromey <tom@tromey.com>
164
165 * xcoffread.c (xcoff_new_init): Update.
166 * mipsread.c (mipscoff_new_init): Update.
167 * mdebugread.c (mdebug_build_psymtabs): Update.
168 * elfread.c (elf_new_init): Update.
169 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
170 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
171 * buildsym.h (buildsym_new_init): Don't declare.
172 * buildsym.c (buildsym_new_init): Remove.
173
5985ac61
TT
1742018-07-16 Tom Tromey <tom@tromey.com>
175
176 * stabsread.h (within_function): Move from buildsym.h.
177 * stabsread.c (start_stabs): Clear within_function.
178 * coffread.c (coff_start_symtab): Clear within_function.
179 * buildsym.h (within_function): Move to stabsread.h.
180 * buildsym.c (prepare_for_building): Update.
181
6b84eeb2
TT
1822018-07-16 Tom Tromey <tom@tromey.com>
183
184 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
185 * dwarf2read.c (dwarf2_start_symtab): Don't set
186 processing_gcc_compilation.
187 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
188
2150c3ef
TT
1892018-07-16 Tom Tromey <tom@tromey.com>
190
191 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
192 (next_symbol_text_func): Move from buildsym.h.
193 * stabsread.c (hashname): Move from buildsym.c.
194 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
195 (next_symbol_text_func, hashname): Move to stabsread.h.
196 * buildsym.c: Don't include bcache.h
197 (hashname): Move to stasbread.c.
198
0ec44fc0
TT
1992018-07-16 Tom Tromey <tom@tromey.com>
200
201 * buildsym.h (context_stack_size): Don't declare.
202 * buildsym.c (context_stack_size): New global.
203
81cc346d
TT
2042018-07-16 Tom Tromey <tom@tromey.com>
205
206 * dbxread.c (processing_acc_compilation): New global.
207 * buildsym.h (processing_acc_compilation): Don't declare.
208
2c99ee5c
TT
2092018-07-16 Tom Tromey <tom@tromey.com>
210
211 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
212 * dbxread.c (read_ofile_symtab): Update.
213 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
214 * buildsym.h (last_source_start_addr): Remove.
215 (set_last_source_start_addr, get_last_source_start_addr):
216 Declare.
217 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
218 parameter.
219 (struct buildsym_compunit) <m_last_source_start_addr>: New
220 member.
221 (prepare_for_building): Remove start_addr parameter.
222 (start_symtab, restart_symtab, end_symtab_get_static_block)
223 (end_symtab_with_blockvector): Update.
224 (set_last_source_start_addr, get_last_source_start_addr): New
225 functions.
226
530fedbc
TT
2272018-07-16 Tom Tromey <tom@tromey.com>
228
229 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
230 member.
231 (have_line_numbers): Remove.
232 (record_line, prepare_for_building, end_symtab_get_static_block)
233 (augment_type_symtab): Update.
234
6a976300
TT
2352018-07-16 Tom Tromey <tom@tromey.com>
236
237 * buildsym.c (~buildsym_compunit): Free the macro table.
238 (struct buildsym_compunit) <get_macro_table, release_macros>: New
239 methods.
240 <m_pending_macros>: New member.
241 (pending_macros): Remove.
242 (~scoped_free_pendings, get_macro_table, prepare_for_building)
243 (reset_symtab_globals, end_symtab_get_static_block)
244 (end_symtab_with_blockvector, augment_type_symtab)
245 (buildsym_init): Update.
246
c0015d44
TT
2472018-07-16 Tom Tromey <tom@tromey.com>
248
249 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
250 parameter.
251 (buildsym_compunit::set_last_source_file): New method.
252 <m_last_source_file>: New member.
253 (prepare_for_building): Remove "name" parameter.
254 (start_symtab, restart_symtab, reset_symtab_globals): Update.
255 (last_source_file): Remove.
256 (set_last_source_file, get_last_source_file): Update.
257
e62cca7c
TT
2582018-07-16 Tom Tromey <tom@tromey.com>
259
260 * buildsym.c (prepare_for_building): Add assert.
261
905eb0e2
TT
2622018-07-16 Tom Tromey <tom@tromey.com>
263
264 * buildsym.c (~buildsym_compunit): Update.
265 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
266 (start_subfile, patch_subfile_names)
267 (end_symtab_with_blockvector): Update.
268
b248663f
TT
2692018-07-16 Tom Tromey <tom@tromey.com>
270
271 * buildsym.c (struct buildsym_compunit): Add constructor,
272 destructor, initializers.
273 (start_buildsym_compunit): Remove.
274 (free_buildsym_compunit): Use "delete".
275 (start_symtab, restart_symtab): Use "new".
276
ff27d073
SM
2772018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * symfile.c (set_objfile_default_section_offset): Remove struct
280 keyword.
281
6a15ecf5
SH
2822018-07-14 Stafford Horne <shorne@gmail.com>
283
284 * (Responsible Maintainers): Add myself as or1k maintainer.
285
027a4c30
TT
2862018-07-13 Tom Tromey <tom@tromey.com>
287
288 * symfile.c (set_objfile_default_section_offset): Use extra braces
289 around initializer.
290
5c1eda30
AA
2912018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
292
293 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
294 non-branching basr.
295
bc7b042b
PW
2962018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
297
298 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
299 unittests/cli-utils-selftests.c
300 * unittests/cli-utils-selftests.c: New file.
301
a14c4daa
PW
3022018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
303
304 * NEWS: Mention new commands. Mention change to 'thread apply'.
305
1fe75df7
PW
3062018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
307
308 * thread.c (thr_try_catch_cmd): New function.
309 (thread_apply_all_command): Handle qcs flags.
310 (thread_apply_command): Handle qcs flags.
311 (taas_command): New function.
312 (tfaas_command): New function.
313 (_initialize_thread): Update to setup the new commands 'taas
314 and 'tfaas'. Change doc string for 'thread apply'.
315
6a70eb7d
PW
3162018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
317
318 * stack.c: (trailing_outermost_frame): New function, mostly
319 extracted from backtrace_command_1.
320 (leading_innermost_frame): New function.
321 (backtrace_command_1): Update to call trailing_outermost_frame.
322 (frame_apply_command_count): New function.
323 (frame_apply_level_command): New function.
324 (frame_apply_all_command): New function.
325 (frame_apply_command): New function.
326 (faas_command): New function.
327 (frame_cmd_list): New variable.
328 (_initialize_stack): Update to setup the new commands 'frame apply'
329 and 'faas'.
330
529c08b2
PW
3312018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
332
333 * cli-utils.c (number_or_range_parser::get_number): Only handle
334 numbers or convenience var as numbers.
335 (parse_flags): New function.
336 (parse_flags_qcs): New function.
337 (number_or_range_parser::finished): Ensure parsing end is detected
338 before end of string.
339 * cli-utils.h (parse_flags): New function.
340 (parse_flags_qcs): New function.
341 (number_or_range_parser): Remove m_finished bool.
342 (number_or_range_parser::skip_range): Set m_in_range to false.
343
64b58472
SDJ
3442018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
345
346 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
347 on Windows.
348
c7ab0aef
SDJ
3492018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
350 Jan Kratochvil <jan.kratochvil@redhat.com>
351 Paul Fertser <fercerpav@gmail.com>
352 Tsutomu Seki <sekiriki@gmail.com>
353 Pedro Alves <palves@redhat.com>
354
355 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
356 'unittests/parse-connection-spec-selftests.c'.
357 (COMMON_SFILES): Add 'common/netstuff.c'.
358 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
359 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
360 * common/netstuff.c: New file.
361 * common/netstuff.h: New file.
362 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
363 (wait_for_connect): Update comment. New parameter
364 'gdb::optional<int> sock' instead of 'struct serial *scb'.
365 Use 'sock' directly instead of 'scb->fd'.
366 (try_connect): New function, with code from 'net_open'.
367 (net_open): Rewrite main loop to deal with multiple
368 sockets/addresses. Handle IPv6-style hostnames; implement
369 support for IPv6 connections.
370 * unittests/parse-connection-spec-selftests.c: New file.
371
4c7333b3
PA
3722018-07-11 Pedro Alves <palves@redhat.com>
373
374 PR gdb/23377
375 * remote.c (remote_target::remote_detach_pid): Call
376 set_current_process.
377
a6f88f6e
PA
3782018-07-11 Pedro Alves <palves@redhat.com>
379
380 * h8300-tdep.c (h8300_gdbarch_init): Remove
381 set_gdbarch_ecoff_reg_to_regnum calls.
382
16ff70dd
SDJ
3832018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
384
385 PR c++/23373
386 * c-typeprint.c (c_type_print_base_struct_union): Don't print
387 offsets/sizes for static members of a class/struct.
388
12863263
AH
3892018-07-11 Alan Hayward <alan.hayward@arm.com>
390
391 * target-descriptions.c (tdesc_register_bitsize): Rename.
392 * target-descriptions.h (tdesc_register_bitsize): Likewise.
393 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
394 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
395
1123588c
TT
3962018-07-10 Tom Tromey <tom@tromey.com>
397
398 * breakpoint.c (moribund_locations): Now static and a
399 std::vector.
400 (breakpoint_init_inferior, moribund_breakpoint_here_p)
401 (build_bpstat_chain, update_global_location_list)
402 (breakpoint_retire_moribund): Update.
403 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
404 VEC.
405
8c49aa89
AB
4062018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
409 (riscv_register_reggroup_p): Use new function, remove unneeded
410 parenthesis.
411 (riscv_push_dummy_call): Extend assert to compare against xlen or
412 flen based on register type.
413
42ecac17
AB
4142018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
417
055303e2
AB
4182018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 * remote.c (show_hardware_watchpoint_limit): New function.
421 (show_hardware_watchpoint_length_limit): New function.
422 (show_hardware_breakpoint_limit): New function.
423 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
424 where appropriate, update help text.
425
8fd32c1c
TT
4262018-07-09 Tom Tromey <tom@tromey.com>
427
428 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
429 (CLIBS): Don't mention NAT_CLIBS.
430
31278b51
TT
4312018-07-09 Tom Tromey <tom@tromey.com>
432
433 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
434 (LIBGDB_OBS, clean mostlyclean): Update.
435 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
436
e5fd1493
TT
4372018-07-09 Tom Tromey <tom@tromey.com>
438
439 * Makefile.in (%.c: %.y): Use ECHO_YACC.
440 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
441 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
442
981e0c0c
TT
4432018-07-09 Tom Tromey <tom@tromey.com>
444
445 * Makefile.in (ALLDEPFILES): Remove exec.c.
446 (COMMON_OBS): Remove exec.o.
447 (COMMON_SFILES): Add exec.c.
448
14ccceb2
TT
4492018-07-09 Tom Tromey <tom@tromey.com>
450
451 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
452
5d3c3a68
TT
4532018-07-09 Tom Tromey <tom@tromey.com>
454
455 * Makefile.in (clean mostlyclean): Remove stamp-version.
456 (version.c): Depend on stamp-version.
457 (stamp-version): New rule, from version.c rule.
458
1998086d
TT
4592018-07-09 Tom Tromey <tom@tromey.com>
460
461 * Makefile.in (init.c): Depend on stamp-init.
462 (stamp-init): New rule, from init.c rule.
463 (clean mostlyclean): Remove stamp-init.
464
4c754949
TT
4652018-07-09 Tom Tromey <tom@tromey.com>
466
467 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
468 SUBDIR_GCC_COMPILE_SRCS.
469
6497f1dd
TT
4702018-07-09 Tom Tromey <tom@tromey.com>
471
472 * Makefile.in (init.c): Remove some unused sed rules.
473
97a34db9
TT
4742018-07-09 Tom Tromey <tom@tromey.com>
475
476 * Makefile.in (TSOBS): Remove.
477 (INIT_FILES): Update.
478 (LIBGDB_OBS): Update.
479 (COMMON_SFILES): Add inflow.c.
480 (SFILES): Remove inflow.c.
481
25289ac1
JK
4822018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
485
e83f4d97
SM
4862018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
487
4869c585
SM
488 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
489 get_saveloc_name, is_signal_frame_name, step_name,
490 init_remote_name, create_addr_space_name,
491 destroy_addr_space_name, search_unwind_table_name,
492 find_dyn_list_name): Constify.
e83f4d97 493
6821842f
SM
4942018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * darwin-nat.c (darwin_pthread_kill): New function.
497 (darwin_resume_thread): Use darwin_pthread_kill.
498
c530603c
TV
4992018-07-05 Tom de Vries <tdevries@suse.de>
500
501 * macroexp.c (macro_buffer) <operator=>: New member function.
502
a7d0f0f0
TT
5032018-07-04 Tom Tromey <tom@tromey.com>
504
505 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
506
6242c6a6
SM
5072018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
510 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
511 * maint.c: Likewise.
512 * top.c: Likewise.
513
4e5b2f89
JB
5142018-07-04 Joel Brobecker <brobecker@adacore.com>
515
516 * NEWS: Create a new section for the next release branch.
517 Rename the section of the current branch, now that it has
518 been cut.
519
538ccc4a
JB
5202018-07-04 Joel Brobecker <brobecker@adacore.com>
521
522 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
523 * version.in: Bump version to 8.2.50.DATE-git.
524
1b919490
VB
5252018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
526 Pedro Alves <palves@redhat.com>
527
528 * linux-nat.c (linux_init_ptrace): Rename to ...
529 (linux_init_ptrace_procfs): ... this. Call
530 linux_proc_init_warnings.
531 (linux_nat_target::post_attach)
532 (linux_nat_target::post_startup_inferior): Adjust.
533 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
534 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
535
1ea5da02
TV
5362018-07-04 Tom de Vries <tdevries@suse.de>
537
538 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
539 check ...
540 (read_comp_unit_head): ... here.
541
f51e0e20
TT
5422018-07-03 Tom Tromey <tom@tromey.com>
543
544 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
545 (stop_tracing, tstatus_command)
546 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
547 (print_one_static_tracepoint_marker): Update.
548 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
549 std::vector.
550 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
551 VEC.
552 (all_tracepoints, static_tracepoints_here): Return std::vector.
553
d7e15655
TT
5542018-07-03 Tom Tromey <tom@tromey.com>
555
556 * common/ptid.c (ptid_equal): Remove.
557 * common/ptid.h (ptid_equal): Don't declare.
558 * ada-tasks.c: Update.
559 * breakpoint.c: Update.
560 * common/agent.c: Update.
561 * corelow.c: Update.
562 * darwin-nat-info.c: Update.
563 * darwin-nat.c: Update.
564 * dcache.c: Update.
565 * dtrace-probe.c: Update.
566 * dummy-frame.c: Update.
567 * fbsd-nat.c: Update.
568 * frame.c: Update.
569 * gdbthread.h: Update.
570 * gnu-nat.c: Update.
571 * go32-nat.c: Update.
572 * inf-loop.c: Update.
573 * inf-ptrace.c: Update.
574 * infcall.c: Update.
575 * infcmd.c: Update.
576 * inflow.c: Update.
577 * infrun.c: Update.
578 * linux-fork.c: Update.
579 * linux-nat.c: Update.
580 * linux-thread-db.c: Update.
581 * mi/mi-cmd-var.c: Update.
582 * mi/mi-interp.c: Update.
583 * mi/mi-main.c: Update.
584 * nto-procfs.c: Update.
585 * ppc-linux-tdep.c: Update.
586 * procfs.c: Update.
587 * python/py-inferior.c: Update.
588 * python/py-record-btrace.c: Update.
589 * python/py-record.c: Update.
590 * ravenscar-thread.c: Update.
591 * regcache.c: Update.
592 * remote-sim.c: Update.
593 * remote.c: Update.
594 * sol-thread.c: Update.
595 * solib.c: Update.
596 * target.c: Update.
597 * tui/tui-stack.c: Update.
598 * varobj.c: Update.
599 * windows-nat.c: Update.
600 * windows-tdep.c: Update.
601
26a57c92
TT
6022018-07-03 Tom Tromey <tom@tromey.com>
603
604 * common/ptid.c (ptid_match): Remove.
605 * common/ptid.h (ptid_match): Don't declare.
606 * fbsd-nat.c: Update.
607 * infcmd.c: Update.
608 * infrun.c: Update.
609 * linux-nat.c: Update.
610 * record-btrace.c: Update.
611 * regcache.c: Update.
612 * remote.c: Update.
613
d2a107e3
TT
6142018-07-03 Tom Tromey <tom@tromey.com>
615
616 * common/ptid.c (ptid_tid_p): Remove.
617 * common/ptid.h (ptid_tid_p): Don't declare.
618 * sol-thread.c: Update.
619
15a9e13e
TT
6202018-07-03 Tom Tromey <tom@tromey.com>
621
622 * common/ptid.c (ptid_lwp_p): Remove.
623 * common/ptid.h (ptid_lwp_p): Don't declare.
624 * fbsd-nat.c: Update.
625 * linux-nat.c: Update.
626 * nat/linux-procfs.c: Update.
627 * nat/x86-linux-dregs.c: Update.
628 * sol-thread.c: Update.
629
0e998d96
TT
6302018-07-03 Tom Tromey <tom@tromey.com>
631
632 * common/ptid.c (ptid_is_pid): Remove.
633 * common/ptid.h (ptid_is_pid): Don't declare.
634 * infrun.c: Update.
635 * linux-nat.c: Update.
636 * mi/mi-interp.c: Update.
637 * remote.c: Update.
638 * thread.c: Update.
639
cc6bcb54
TT
6402018-07-03 Tom Tromey <tom@tromey.com>
641
642 * common/ptid.c (ptid_get_tid): Remove.
643 * common/ptid.h (ptid_get_tid): Don't declare.
644 * ada-tasks.c: Update.
645 * aix-thread.c: Update.
646 * bsd-uthread.c: Update.
647 * darwin-nat.c: Update.
648 * fbsd-nat.c: Update.
649 * i386-darwin-nat.c: Update.
650 * infrun.c: Update.
651 * linux-tdep.c: Update.
652 * nto-procfs.c: Update.
653 * ppc-ravenscar-thread.c: Update.
654 * python/py-infthread.c: Update.
655 * ravenscar-thread.c: Update.
656 * sol-thread.c: Update.
657 * sparc-ravenscar-thread.c: Update.
658 * windows-nat.c: Update.
659
e38504b3
TT
6602018-07-03 Tom Tromey <tom@tromey.com>
661
662 * common/ptid.c (ptid_get_lwp): Remove.
663 * common/ptid.h (ptid_get_lwp): Don't declare.
664 * aarch64-linux-nat.c: Update.
665 * ada-tasks.c: Update.
666 * aix-thread.c: Update.
667 * amd64-linux-nat.c: Update.
668 * arm-linux-nat.c: Update.
669 * corelow.c: Update.
670 * fbsd-nat.c: Update.
671 * fbsd-tdep.c: Update.
672 * gnu-nat.c: Update.
673 * i386-cygwin-tdep.c: Update.
674 * i386-gnu-nat.c: Update.
675 * i386-linux-nat.c: Update.
676 * ia64-linux-nat.c: Update.
677 * inf-ptrace.c: Update.
678 * infrun.c: Update.
679 * linux-fork.c: Update.
680 * linux-nat.c: Update.
681 * linux-tdep.c: Update.
682 * linux-thread-db.c: Update.
683 * mips-linux-nat.c: Update.
684 * nat/aarch64-linux-hw-point.c: Update.
685 * nat/aarch64-linux.c: Update.
686 * nat/linux-btrace.c: Update.
687 * nat/linux-osdata.c: Update.
688 * nat/linux-procfs.c: Update.
689 * nat/x86-linux-dregs.c: Update.
690 * obsd-nat.c: Update.
691 * ppc-fbsd-nat.c: Update.
692 * ppc-linux-nat.c: Update.
693 * procfs.c: Update.
694 * python/py-infthread.c: Update.
695 * ravenscar-thread.c: Update.
696 * remote.c: Update.
697 * s390-linux-nat.c: Update.
698 * sol-thread.c: Update.
699 * sol2-tdep.c: Update.
700 * spu-linux-nat.c: Update.
701 * x86-linux-nat.c: Update.
702 * xtensa-linux-nat.c: Update.
703
e99b03dc
TT
7042018-07-03 Tom Tromey <tom@tromey.com>
705
706 * common/ptid.c (ptid_get_pid): Remove.
707 * common/ptid.h (ptid_get_pid): Don't declare.
708 * aarch64-linux-nat.c: Update.
709 * ada-lang.c: Update.
710 * aix-thread.c: Update.
711 * alpha-bsd-nat.c: Update.
712 * amd64-fbsd-nat.c: Update.
713 * amd64-linux-nat.c: Update.
714 * arm-linux-nat.c: Update.
715 * arm-nbsd-nat.c: Update.
716 * auxv.c: Update.
717 * break-catch-syscall.c: Update.
718 * breakpoint.c: Update.
719 * bsd-uthread.c: Update.
720 * corelow.c: Update.
721 * ctf.c: Update.
722 * darwin-nat.c: Update.
723 * fbsd-nat.c: Update.
724 * fbsd-tdep.c: Update.
725 * gcore.c: Update.
726 * gnu-nat.c: Update.
727 * hppa-nbsd-nat.c: Update.
728 * hppa-obsd-nat.c: Update.
729 * i386-fbsd-nat.c: Update.
730 * ia64-linux-nat.c: Update.
731 * inf-ptrace.c: Update.
732 * infcmd.c: Update.
733 * inferior.c: Update.
734 * inferior.h: Update.
735 * inflow.c: Update.
736 * infrun.c: Update.
737 * linux-fork.c: Update.
738 * linux-nat.c: Update.
739 * linux-tdep.c: Update.
740 * linux-thread-db.c: Update.
741 * m68k-bsd-nat.c: Update.
742 * mi/mi-interp.c: Update.
743 * mi/mi-main.c: Update.
744 * mips-linux-nat.c: Update.
745 * mips-nbsd-nat.c: Update.
746 * mips64-obsd-nat.c: Update.
747 * nat/aarch64-linux-hw-point.c: Update.
748 * nat/aarch64-linux.c: Update.
749 * nat/linux-btrace.c: Update.
750 * nat/linux-osdata.c: Update.
751 * nat/linux-procfs.c: Update.
752 * nat/x86-linux-dregs.c: Update.
753 * nto-procfs.c: Update.
754 * obsd-nat.c: Update.
755 * ppc-linux-nat.c: Update.
756 * ppc-nbsd-nat.c: Update.
757 * ppc-obsd-nat.c: Update.
758 * proc-service.c: Update.
759 * procfs.c: Update.
760 * python/py-inferior.c: Update.
761 * python/py-infthread.c: Update.
762 * ravenscar-thread.c: Update.
763 * record.c: Update.
764 * remote-sim.c: Update.
765 * remote.c: Update.
766 * rs6000-nat.c: Update.
767 * s390-linux-nat.c: Update.
768 * sh-nbsd-nat.c: Update.
769 * sol-thread.c: Update.
770 * sparc-nat.c: Update.
771 * sparc64-tdep.c: Update.
772 * spu-linux-nat.c: Update.
773 * spu-tdep.c: Update.
774 * target-debug.h: Update.
775 * target.c: Update.
776 * thread.c: Update.
777 * tid-parse.c: Update.
778 * tracefile-tfile.c: Update.
779 * vax-bsd-nat.c: Update.
780 * windows-nat.c: Update.
781 * x86-linux-nat.c: Update.
782 * x86-nat.c: Update.
783
f2907e49
TT
7842018-07-03 Tom Tromey <tom@tromey.com>
785
786 * common/ptid.c (pid_to_ptid): Remove.
787 * common/ptid.h (pid_to_ptid): Don't declare.
788 * aix-thread.c: Update.
789 * arm-linux-nat.c: Update.
790 * common/ptid.c: Update.
791 * common/ptid.h: Update.
792 * corelow.c: Update.
793 * ctf.c: Update.
794 * darwin-nat.c: Update.
795 * fbsd-nat.c: Update.
796 * fork-child.c: Update.
797 * gnu-nat.c: Update.
798 * go32-nat.c: Update.
799 * inf-ptrace.c: Update.
800 * infcmd.c: Update.
801 * inferior.c: Update.
802 * infrun.c: Update.
803 * linux-fork.c: Update.
804 * linux-nat.c: Update.
805 * nat/aarch64-linux-hw-point.c: Update.
806 * nat/fork-inferior.c: Update.
807 * nat/x86-linux-dregs.c: Update.
808 * nto-procfs.c: Update.
809 * obsd-nat.c: Update.
810 * procfs.c: Update.
811 * progspace.c: Update.
812 * remote.c: Update.
813 * rs6000-nat.c: Update.
814 * s390-linux-nat.c: Update.
815 * sol-thread.c: Update.
816 * spu-linux-nat.c: Update.
817 * target.c: Update.
818 * top.c: Update.
819 * tracefile-tfile.c: Update.
820 * windows-nat.c: Update.
821
fd79271b
TT
8222018-07-03 Tom Tromey <tom@tromey.com>
823
824 * common/ptid.h (ptid_build): Don't declare.
825 * common/ptid.c (ptid_build): Remove.
826 * aix-thread.c: Update.
827 * bsd-kvm.c: Update.
828 * bsd-uthread.c: Update.
829 * common/agent.c: Update.
830 * common/ptid.c: Update.
831 * common/ptid.h: Update.
832 * corelow.c: Update.
833 * darwin-nat.c: Update.
834 * fbsd-nat.c: Update.
835 * gnu-nat.c: Update.
836 * linux-fork.c: Update.
837 * linux-nat.c: Update.
838 * linux-thread-db.c: Update.
839 * nat/linux-osdata.c: Update.
840 * nat/linux-procfs.c: Update.
841 * nto-procfs.c: Update.
842 * obsd-nat.c: Update.
843 * proc-service.c: Update.
844 * procfs.c: Update.
845 * ravenscar-thread.c: Update.
846 * remote-sim.c: Update.
847 * remote.c: Update.
848 * sol-thread.c: Update.
849 * target.c: Update.
850 * windows-nat.c: Update.
851
057302ce
TT
8522018-07-03 Tom Tromey <tom@tromey.com>
853
854 * infrun.c (follow_exec): Use exit_inferior_silent.
855 * inferior.c (exit_inferior_num_silent): Remove.
856 * inferior.h (exit_inferior_num_silent): Don't declare.
857
a50c11c6
TT
8582018-07-03 Tom Tromey <tom@tromey.com>
859
860 PR cli/23340:
861 * darwin-nat.c (darwin_attach_pid): Reset inferior and
862 inferior_ptid on error.
863
471b9d15
MR
8642018-07-02 Maciej W. Rozycki <macro@mips.com>
865 Simon Marchi <simon.marchi@polymtl.ca>
866
867 PR tdep/8282
868 * disasm.h (gdb_disassembler): Add
869 `m_disassembler_options_holder'. member
870 * disasm.c (get_all_disassembler_options): New function.
871 (gdb_disassembler::gdb_disassembler): Use it.
872 (gdb_buffered_insn_length_init_dis): Likewise.
873 (gdb_buffered_insn_length): Adjust accordingly.
874 (set_disassembler_options): Handle options with arguments.
875 (show_disassembler_options_sfunc): Likewise. Add a leading new
876 line if showing options with descriptions.
877 (disassembler_options_completer): Adapt to using the
878 `disasm_options_and_args_t' structure.
879 * mips-tdep.c (mips_disassembler_options): New variable.
880 (mips_disassembler_options_o32): Likewise.
881 (mips_disassembler_options_n32): Likewise.
882 (mips_disassembler_options_n64): Likewise.
883 (gdb_print_insn_mips): Don't set `disassembler_options'.
884 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
885 functions.
886 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
887 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
888 `gdbarch_disassembler_options_implicit' and
889 `gdbarch_valid_disassembler_options'.
890 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
891 `disasm_options_and_args_t' structure.
892 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
893 method.
894 (valid_disassembler_options): Switch from `disasm_options_t' to
895 the `disasm_options_and_args_t' structure.
896 * NEWS: Document `set disassembler-options' support for the MIPS
897 target.
898 * gdbarch.h: Regenerate.
899 * gdbarch.c: Regenerate.
900
41823f29
SH
9012018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
902
903 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
904
41206e32
JB
9052018-06-29 Joel Brobecker <brobecker@adacore.com>
906
907 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
908 parameter in call to amd64_target_description.
909 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
910 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
911 (amd64fbsd_init_abi): Likewise.
912 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
913 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
914 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
915 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
916
de52b960
PA
9172018-06-29 Pedro Alves <palves@redhat.com>
918
919 * gdb/amd64-tdep.h (amd64_create_target_description): Add
920 "segments" parameter.
921 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
922 (_initialize_amd64_tdep): Update call to
923 amd64_create_target_description.
924 (amd64_target_description): Add "segments" parameter. Adjust
925 the implementation to use it.
926 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
927 call to amd64_create_target_description.
928 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
929 * gdb/arch/amd64.h (amd64_create_target_description): Add
930 "segments" register.
931 * gdb/arch/amd64.c (amd64_create_target_description): Add
932 "segments" parameter. Call create_feature_i386_64bit_segments
933 only if SEGMENTS is true.
934 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
935 call to amd64_create_target_description.
936
75acb486
PA
9372018-06-29 Pedro Alves <palves@redhat.com>
938
939 * thread.c (thread_target_id_str): New, factored out from ...
940 (print_thread_info_1): ... here. Use it to compute the max
941 "Target Id" column width.
942
c76a8ea3
PA
9432018-06-29 Pedro Alves <palves@redhat.com>
944
945 * remote.c (remote_target::extra_thread_info): Delete
946 'display_buf' and 'n' locals. from the cache, regardless of
947 packet mechanims is in use. Use cache for qThreadExtra and qP
948 methods too.
949
cd2bb709
PA
9502018-06-29 Pedro Alves <palves@redhat.com>
951
952 * blockframe.c (find_pc_sect_containing_function): New function.
953 * breakpoint.c (print_breakpoint_location): Don't call
954 find_pc_sect_function.
955 * linespec.c (create_sals_line_offset): Record the location's
956 symbol in the sal.
957 * linespec.c (convert_address_location_to_sals): Fill in sal's
958 symbol with find_pc_sect_containing_function.
959 * symtab.c (find_function_start_sal): Rename to ...
960 (find_function_start_sal_1): ... this.
961 (find_function_start_sal): Reimplement as wrapper around
962 find_function_start_sal_1, and use
963 find_pc_sect_containing_function to fill in the sal's symbol.
964 (find_function_start_sal(symbol*, bool)): Adjust.
965 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
966 comments.
967 (find_pc_sect_containing_function): Declare.
968
991ff292
PA
9692018-06-29 Pedro Alves <palves@redhat.com>
970
971 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
972 true if the the location has no symbol.
973
44cee4fd
TT
9742018-06-28 Tom Tromey <tom@tromey.com>
975
976 * NEWS: Mention --enable-codesign.
977 * silent-rules.mk (ECHO_SIGN): New variable.
978 * configure.ac: Add --enable-codesign.
979 * configure: Rebuild.
980 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
981 (gdb$(EXEEXT)): Optionally invoke codesign.
982
f2ffa92b
PA
9832018-06-28 Pedro Alves <palves@redhat.com>
984
985 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
986 comments.
987 (switch_to_thread_no_regs): Adjust comment.
988 * infcmd.c (stop_pc): Delete.
989 (post_create_inferior, info_program_command): Replace references
990 to stop_pc with references to thread_info->suspend.stop_pc.
991 * inferior.h (stop_pc): Delete declaration.
992 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
993 (handle_inferior_event_1, handle_signal_stop)
994 (process_event_stop_test, keep_going_stepped_thread)
995 (handle_step_into_function, handle_step_into_function_backward)
996 (print_stop_location): Replace references to stop_pc with
997 references to thread_info->suspend.stop_pc.
998 (struct infcall_suspend_state) <stop_pc>: Delete field.
999 (save_infcall_suspend_state, restore_infcall_suspend_state):
1000 Remove references to inf_stat->stop_pc.
1001 * linux-fork.c (fork_load_infrun_state): Likewise.
1002 * record-btrace.c (record_btrace_set_replay): Likewise.
1003 * record-full.c (record_full_goto_entry): Likewise.
1004 * remote.c (print_one_stopped_thread): Likewise.
1005 * target.c (target_resume): Extend comment.
1006 * thread.c (set_executing_thread): New.
1007 (set_executing): Use it.
1008 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
1009 Remove references to stop_pc.
1010
ecdc3a72
PA
10112018-06-28 Pedro Alves <palves@redhat.com>
1012
1013 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
1014 Moving fetching stop_pc until after ecs->event_thread is refreshed.
1015
d95d3aef
TT
10162018-06-28 Tom Tromey <tom@tromey.com>
1017
1018 * coffread.c (coff_symfile_finish): Update.
1019 * xcoffread.c (xcoff_symfile_finish): Update.
1020 * elfread.c (elf_symfile_finish): Update.
1021 * symfile.h (dwarf2_free_objfile): Don't declare.
1022 * dwarf2read.c (_initialize_dwarf2_read): Use
1023 register_objfile_data_with_cleanup.
1024 (dwarf2_free_objfile): Now static. Change signature.
1025
291f9a96
PT
10262018-06-28 Petr Tesarik <ptesarik@suse.cz>
1027
1028 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
1029 option "-o" to add-symbol-file-load to add an offset to each
1030 section's load address.
1031 * symfile.c (set_objfile_default_section_offset): New function.
1032
d81a3eaf
PT
10332018-06-28 Petr Tesarik <ptesarik@suse.cz>
1034
1035 * symfile.c (add_symbol_file_command): Make sure that sections
1036 with the same name are sorted in the same order.
1037
ed6dfe51
PT
10382018-06-28 Petr Tesarik <ptesarik@suse.cz>
1039
1040 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
1041 require the second argument. If omitted, load sections at the
1042 addresses specified in the file.
1043
d4d429d5
PT
10442018-06-28 Petr Tesarik <ptesarik@suse.cz>
1045
1046 * symfile.c (symbol_file_command, symbol_file_add_main_1)
1047 (_initialize_symfile): Add option "-o" to symbol-file to add an
1048 offset to each section of the symbol file.
1049
39b27ab6
PT
10502018-06-28 Petr Tesarik <ptesarik@suse.cz>
1051
1052 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
1053
41827fc3
TT
10542018-06-27 Tom Tromey <tom@tromey.com>
1055
1056 * stack.c (_initialize_stack): Update "func" help text.
1057
0c6aef22
TT
10582018-06-27 Tom Tromey <tom@tromey.com>
1059
1060 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
1061 std::vector.
1062 (unwind_infopy_str, pyuw_create_unwind_info)
1063 (unwind_infopy_add_saved_register, pyuw_sniffer)
1064 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
1065 Update.
1066 (struct saved_reg): Add constructor.
1067 <value>: Now a gdbpy_ref<>.
1068
63177289
TT
10692018-06-27 Tom Tromey <tom@tromey.com>
1070
1071 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
1072
e76f78a0
SM
10732018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1074
1075 * gdb-gdb.py.in: Format using autopep8.
1076
9a14af7b
SM
10772018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1078
1079 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
1080 (type_lookup_function): Recognize CORE_ADDR values.
1081
189366cd
SM
10822018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1083
1084 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
1085 print tag_name.
1086
68ad5fb9
SM
10872018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1088
1089 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
1090 <__lt__>: Add.
1091
141ec9f6
SM
10922018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1093
1094 * gdb-gdb.py: Move to...
1095 * gdb-gdb.py.in: ... here.
1096 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
1097 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
1098 dependencies.
1099 (distclean): Remove gdb-gdb.py when cleaning.
1100 (gdb-gdb.py, gdb-gdb.gdb): New rules.
1101 * configure: Re-generate.
1102
4c4e7ad4
PA
11032018-06-27 Pedro Alves <palves@redhat.com>
1104
1105 * proc-service.c (get_ps_regcache): New.
1106 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1107 (ps_lsetfpregs): Use it.
1108
7ab6656f
OJ
11092018-06-27 Omair Javaid <omair.javaid@linaro.org>
1110
1111 PR gdb/21695
1112 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
1113 (dwarf_decode_lines_1): Adjust.
1114
bd583225
SM
11152018-06-27 Simon Marchi <simon.marchi@ericsson.com>
1116
1117 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
1118 override.
1119 <info_proc>: Likewise.
1120
9a325b7b
JB
11212018-06-26 Joel Brobecker <brobecker@adacore.com>
1122
1123 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
1124 to windows_fetch_one_register, and only handle the case of
1125 fetching one register. Move the code that reloads the context
1126 and iterates over all registers if R is negative to...
1127 (windows_nat_target::fetch_registers): ... here.
1128 (do_windows_store_inferior_registers): Rename to
1129 windows_store_one_register, and only handle the case of storing
1130 one register. Move the code that handles the case where r is
1131 negative to...
1132 (windows_nat_target::store_registers) ... here.
1133
a33ccfc7
TT
11342018-06-26 Tom Tromey <tom@tromey.com>
1135
1136 PR rust/22574:
1137 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
1138 * rust-lang.c (rust_print_struct_def): Add podata parameter.
1139 Update.
1140 (rust_internal_print_type): Add podata parameter.
1141 (rust_print_type): Update.
1142
e0c547d1
TT
11432018-06-26 Tom Tromey <tom@tromey.com>
1144
1145 * typeprint.h (struct print_offset_data) <update, finish,
1146 maybe_print_hole>: New methods.
1147 <indentation>: New constant.
1148 * typeprint.c (print_offset_data::indentation): Define.
1149 (print_offset_data::maybe_print_hole, print_offset_data::update)
1150 (print_offset_data::finish): Move from c-typeprint.c and rename.
1151 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
1152 (print_spaces_filtered_with_print_options): Update.
1153 (c_print_type_union_field_offset, maybe_print_hole)
1154 (c_print_type_struct_field_offset): Move to typeprint.c and
1155 rename.
1156 (c_type_print_base_struct_union): Update.
1157
75cbc781
PA
11582018-06-25 Pedro Alves <palves@redhat.com>
1159
1160 * gdbthread.h (thread_info_ref, delete_thread)
1161 (delete_thread_silent, first_thread_of_inferior)
1162 (any_thread_of_inferior, switch_to_thread)
1163 (enable_thread_stack_temporaries)
1164 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1165 (get_last_thread_stack_temporary)
1166 (value_in_thread_stack_temporaries, can_access_registers_thread):
1167 Spell out "struct thread_info" instead of just "thread_info".
1168 * inferior.h (notice_new_inferior): Likewise.
1169
b7a08269
PA
11702018-06-25 Pedro Alves <palves@redhat.com>
1171
1172 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1173 pass thread_info pointer to delete_thread.
1174 (windows_nat_target::detach): Pass inferior pointer to
1175 detach_inferior.
1176 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
1177 delete_thread.
1178 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
1179 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
1180 and pass a thread_info pointer to delete_thread.
1181 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
1182 pass thread_info pointer to delete_thread.
1183 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
1184 delete_thread_silent call.
1185 * procfs.c (procfs_target::detach): Pass inferior pointer to
1186 detach_inferior.
1187 (procfs_target::wait): Pass thread_info pointer to delete_thread.
1188 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
1189 delete_thread_silent call.
1190 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
1191 pass thread_info pointer to delete_thread.
1192 (windows_nat_target::detach): Pass inferior pointer to
1193 delete_inferior.
1194
8e7767e3
AH
11952018-06-22 Alan Hayward <alan.hayward@arm.com>
1196
1197 * regcache.c (readable_regcache::read_part): Fix asserts.
1198 (reg_buffer::raw_collect_part): New function.
1199 (regcache::write_part): Fix asserts.
1200 (reg_buffer::raw_supply_part): New function.
1201 (regcache::transfer_regset_register): New helper function.
1202 (regcache::transfer_regset): Call new functions.
1203 (regcache_supply_regset): Use gdb_byte*.
1204 (regcache::supply_regset): Likewise.
1205 (regcache_collect_regset): Likewise.
1206 (regcache::collect_regset): Likewise.
1207 * regcache.h (reg_buffer::raw_collect_part): New declaration.
1208 (reg_buffer::raw_supply_part): Likewise.
1209 (regcache::transfer_regset_register): Likewise.
1210 (regcache::transfer_regset): Use gdb_byte*.
1211
bfd60e34
AH
12122018-06-22 Alan Hayward <alan.hayward@arm.com>
1213
1214 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
1215
00431a78
PA
12162018-06-21 Pedro Alves <palves@redhat.com>
1217
1218 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
1219 instead of a ptid_t. All callers adjusted.
1220 * ada-tasks.c (ada_get_task_number): Likewise. All callers
1221 adjusted.
1222 (print_ada_task_info, display_current_task_id, task_command_1):
1223 Adjust.
1224 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
1225 inferior_thread.
1226 (breakpoint_kind): Adjust.
1227 (remove_breakpoints_pid): Rename to ...
1228 (remove_breakpoints_inf): ... this. Adjust to take an inferior
1229 pointer. All callers adjusted.
1230 (bpstat_clear_actions): Use inferior_thread.
1231 (get_bpstat_thread): New.
1232 (bpstat_do_actions): Use it.
1233 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
1234 to take a thread_info pointer. All callers adjusted.
1235 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
1236 (breakpoint_re_set_thread): Use inferior_thread.
1237 * breakpoint.h (struct inferior): Forward declare.
1238 (bpstat_stop_status): Update.
1239 (remove_breakpoints_pid): Delete.
1240 (remove_breakpoints_inf): New.
1241 * bsd-uthread.c (bsd_uthread_target::wait)
1242 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
1243 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
1244 (maint_btrace_packet_history_cmd)
1245 (maint_btrace_clear_packet_history_cmd): Adjust.
1246 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
1247 inferior_thread.
1248 * cli/cli-interp.c: Include "inferior.h".
1249 * common/refcounted-object.h (struct
1250 refcounted_object_ref_policy): New.
1251 * compile/compile-object-load.c: Include gdbthread.h.
1252 (store_regs): Use inferior_thread.
1253 * corelow.c (core_target::close): Use current_inferior.
1254 (core_target_open): Adjust to use first_thread_of_inferior and use
1255 the current inferior.
1256 * ctf.c (ctf_target::close): Adjust to use current_inferior.
1257 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
1258 <thread>: ... this new field. All references adjusted.
1259 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
1260 Take a thread_info pointer instead of a ptid_t.
1261 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
1262 (dummy_frame_discard, register_dummy_frame_dtor): Take a
1263 thread_info pointer instead of a ptid_t.
1264 * elfread.c: Include "inferior.h".
1265 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
1266 Use inferior_thread.
1267 * eval.c (evaluate_subexp): Likewise.
1268 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
1269 inferior_thread.
1270 * gdb_proc_service.h (struct thread_info): Forward declare.
1271 (struct ps_prochandle) <ptid>: Delete, replaced by ...
1272 <thread>: ... this new field. All references adjusted.
1273 * gdbarch.h, gdbarch.c: Regenerate.
1274 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
1275 'thread' parameter. All implementations and callers adjusted.
1276 * gdbthread.h (thread_info) <set_running>: New method.
1277 (delete_thread, delete_thread_silent): Take a thread_info pointer
1278 instead of a ptid.
1279 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
1280 (first_thread_of_process): Delete, replaced by ...
1281 (first_thread_of_inferior): ... this new function. All callers
1282 adjusted.
1283 (any_live_thread_of_process): Delete, replaced by ...
1284 (any_live_thread_of_inferior): ... this new function. All callers
1285 adjusted.
1286 (switch_to_thread, switch_to_no_thread): Declare.
1287 (is_executing): Delete.
1288 (enable_thread_stack_temporaries): Update comment.
1289 <enable_thread_stack_temporaries>: Take a thread_info pointer
1290 instead of a ptid_t. Incref the thread.
1291 <~enable_thread_stack_temporaries>: Decref the thread.
1292 <m_ptid>: Delete
1293 <m_thr>: New.
1294 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1295 (get_last_thread_stack_temporary)
1296 (value_in_thread_stack_temporaries, can_access_registers_thread):
1297 Take a thread_info pointer instead of a ptid_t. All callers
1298 adjusted.
1299 * infcall.c (get_call_return_value): Use inferior_thread.
1300 (run_inferior_call): Work with thread pointers instead of ptid_t.
1301 (call_function_by_hand_dummy): Work with thread pointers instead
1302 of ptid_t. Use thread_info_ref.
1303 * infcmd.c (proceed_thread_callback): Access thread's state
1304 directly.
1305 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
1306 access thread's state directly.
1307 (continue_command): Use inferior_thread.
1308 (info_program_command): Use find_thread_ptid and access thread
1309 state directly.
1310 (proceed_after_attach_callback): Use thread state directly.
1311 (notice_new_inferior): Take a thread_info pointer instead of a
1312 ptid_t. All callers adjusted.
1313 (exit_inferior): Take an inferior pointer instead of a pid. All
1314 callers adjusted.
1315 (exit_inferior_silent): New.
1316 (detach_inferior): Delete.
1317 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
1318 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
1319 (detach_inferior_command, kill_inferior_command): Use
1320 find_inferior_id instead of valid_gdb_inferior_id and
1321 gdb_inferior_id_to_pid.
1322 (inferior_command): Use inferior and thread pointers.
1323 * inferior.h (struct thread_info): Forward declare.
1324 (notice_new_inferior): Take a thread_info pointer instead of a
1325 ptid_t. All callers adjusted.
1326 (detach_inferior): Delete declaration.
1327 (exit_inferior, exit_inferior_silent): Take an inferior pointer
1328 instead of a pid. All callers adjusted.
1329 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1330 (valid_gdb_inferior_id): Delete.
1331 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
1332 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
1333 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
1334 ...
1335 <inf>: ... this new field.
1336 <step_ptid>: Delete, replaced by ...
1337 <step_thread>: ... this new field.
1338 (get_displaced_stepping_state): Take an inferior pointer instead
1339 of a pid. All callers adjusted.
1340 (displaced_step_in_progress_any_inferior): Adjust.
1341 (displaced_step_in_progress_thread): Take a thread pointer instead
1342 of a ptid_t. All callers adjusted.
1343 (displaced_step_in_progress, add_displaced_stepping_state): Take
1344 an inferior pointer instead of a pid. All callers adjusted.
1345 (get_displaced_step_closure_by_addr): Adjust.
1346 (remove_displaced_stepping_state): Take an inferior pointer
1347 instead of a pid. All callers adjusted.
1348 (displaced_step_prepare_throw, displaced_step_prepare)
1349 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
1350 All callers adjusted.
1351 (start_step_over): Adjust.
1352 (infrun_thread_ptid_changed): Remove bit updating ptids in the
1353 displaced step queue.
1354 (do_target_resume): Adjust.
1355 (fetch_inferior_event): Use inferior_thread.
1356 (context_switch, get_inferior_stop_soon): Take an
1357 execution_control_state pointer instead of a ptid_t. All callers
1358 adjusted.
1359 (switch_to_thread_cleanup): Delete.
1360 (stop_all_threads): Use scoped_restore_current_thread.
1361 * inline-frame.c: Include "gdbthread.h".
1362 (inline_state) <inline_state>: Take a thread pointer instead of a
1363 ptid_t. All callers adjusted.
1364 <ptid>: Delete, replaced by ...
1365 <thread>: ... this new field.
1366 (find_inline_frame_state): Take a thread pointer instead of a
1367 ptid_t. All callers adjusted.
1368 (skip_inline_frames, step_into_inline_frame)
1369 (inline_skipped_frames, inline_skipped_symbol): Take a thread
1370 pointer instead of a ptid_t. All callers adjusted.
1371 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
1372 (inline_skipped_frames, inline_skipped_symbol): Likewise.
1373 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
1374 pointers directly.
1375 * linux-nat.c (get_detach_signal): Likewise.
1376 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
1377 (thread_db_notice_clone): Adjust.
1378 (thread_db_find_new_threads_silently)
1379 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
1380 a thread pointer instead of a ptid_t. All callers adjusted.
1381 * mi/mi-cmd-var.c: Include "inferior.h".
1382 (mi_cmd_var_update_iter): Update to use thread pointers.
1383 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
1384 inferior directly.
1385 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
1386 out to ...
1387 (mi_output_running): ... this new function.
1388 (mi_on_resume_1): Adjust to use it.
1389 (mi_user_selected_context_changed): Adjust to use inferior_thread.
1390 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
1391 directly.
1392 (interrupt_thread_callback): : Adjust to use thread and inferior
1393 pointers.
1394 * proc-service.c: Include "gdbthread.h".
1395 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
1396 * progspace-and-thread.c: Include "inferior.h".
1397 * progspace.c: Include "inferior.h".
1398 * python/py-exitedevent.c (create_exited_event_object): Adjust to
1399 hold a reference to an inferior_object.
1400 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
1401 inferior_thread.
1402 * python/py-inferior.c (struct inferior_object): Give the type a
1403 tag name instead of a typedef.
1404 (python_on_normal_stop): No need to check if the current thread is
1405 listed.
1406 (inferior_to_inferior_object): Change return type to
1407 inferior_object. All callers adjusted.
1408 (find_thread_object): Delete, bits factored out to ...
1409 (thread_to_thread_object): ... this new function.
1410 * python/py-infthread.c (create_thread_object): Use
1411 inferior_to_inferior_object.
1412 (thpy_is_stopped): Use thread pointer directly.
1413 (gdbpy_selected_thread): Use inferior_thread.
1414 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
1415 field, replaced with ...
1416 <thread>: ... this new field. All users adjusted.
1417 (btpy_insn_or_gap_new): Drop const.
1418 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
1419 callers adjusted.
1420 * python/py-record.c: Include "gdbthread.h".
1421 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1422 a ptid_t. All callers adjusted.
1423 (gdbpy_current_recording): Use inferior_thread.
1424 * python/py-record.h (recpy_record_object) <ptid>: Delete
1425 field, replaced with ...
1426 <thread>: ... this new field. All users adjusted.
1427 (recpy_element_object) <ptid>: Delete
1428 field, replaced with ...
1429 <thread>: ... this new field. All users adjusted.
1430 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
1431 a ptid_t. All callers adjusted.
1432 * python/py-threadevent.c: Include "gdbthread.h".
1433 (get_event_thread): Use thread_to_thread_object.
1434 * python/python-internal.h (struct inferior_object): Forward
1435 declare.
1436 (find_thread_object, find_inferior_object): Delete declarations.
1437 (thread_to_thread_object, inferior_to_inferior_object): New
1438 declarations.
1439 * record-btrace.c: Include "inferior.h".
1440 (require_btrace_thread): Use inferior_thread.
1441 (record_btrace_frame_sniffer)
1442 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
1443 (get_thread_current_frame): Use scoped_restore_current_thread and
1444 switch_to_thread.
1445 (get_thread_current_frame): Use thread pointer directly.
1446 (record_btrace_replay_at_breakpoint): Use thread's inferior
1447 pointer directly.
1448 * record-full.c: Include "inferior.h".
1449 * regcache.c: Include "gdbthread.h".
1450 (get_thread_arch_regcache): Use the inferior's address space
1451 directly.
1452 (get_thread_regcache, registers_changed_thread): New.
1453 * regcache.h (get_thread_regcache(thread_info *thread)): New
1454 overload.
1455 (registers_changed_thread): New.
1456 (remote_target) <remote_detach_1>: Swap order of parameters.
1457 (remote_add_thread): <remote_add_thread>: Return the new thread.
1458 (get_remote_thread_info(ptid_t)): New overload.
1459 (remote_target::remote_notice_new_inferior): Use thread pointers
1460 directly.
1461 (remote_target::process_initial_stop_replies): Use
1462 thread_info::set_running.
1463 (remote_target::remote_detach_1, remote_target::detach)
1464 (extended_remote_target::detach): Adjust.
1465 * stack.c (frame_show_address): Use inferior_thread.
1466 * target-debug.h (target_debug_print_thread_info_pp): New.
1467 * target-delegates.c: Regenerate.
1468 * target.c (default_thread_address_space): Delete.
1469 (memory_xfer_partial_1): Use current_inferior.
1470 (target_detach): Use current_inferior.
1471 (target_thread_address_space): Delete.
1472 (generic_mourn_inferior): Use current_inferior.
1473 * target.h (struct target_ops) <thread_address_space>: Delete.
1474 (target_thread_address_space): Delete.
1475 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
1476 pointers directly.
1477 (delete_thread_1, delete_thread, delete_thread_silent): Take a
1478 thread pointer instead of a ptid_t. Adjust all callers.
1479 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
1480 (first_thread_of_process): Delete, replaced by ...
1481 (first_thread_of_inferior): ... this new function. All callers
1482 adjusted.
1483 (any_thread_of_process): Rename to ...
1484 (any_thread_of_inferior): ... this, and take an inferior pointer.
1485 (any_live_thread_of_process): Rename to ...
1486 (any_live_thread_of_inferior): ... this, and take an inferior
1487 pointer.
1488 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1489 (value_in_thread_stack_temporaries)
1490 (get_last_thread_stack_temporary): Take a thread pointer instead
1491 of a ptid_t. Adjust all callers.
1492 (thread_info::set_running): New.
1493 (validate_registers_access): Use inferior_thread.
1494 (can_access_registers_ptid): Rename to ...
1495 (can_access_registers_thread): ... this, and take a thread
1496 pointer.
1497 (print_thread_info_1): Adjust to compare thread pointers instead
1498 of ptids.
1499 (switch_to_no_thread, switch_to_thread): Make extern.
1500 (scoped_restore_current_thread::~scoped_restore_current_thread):
1501 Use m_thread pointer directly.
1502 (scoped_restore_current_thread::scoped_restore_current_thread):
1503 Use inferior_thread.
1504 (thread_command): Use thread pointer directly.
1505 (thread_num_make_value_helper): Use inferior_thread.
1506 * top.c (execute_command): Use inferior_thread.
1507 * tui/tui-interp.c: Include "inferior.h".
1508 * varobj.c (varobj_create): Use inferior_thread.
1509 (value_of_root_1): Use find_thread_global_id instead of
1510 global_thread_id_to_ptid.
1511
33bab475
AH
15122018-06-21 Alan Hayward <alan.hayward@arm.com>
1513
1514 * regcache.c (readable_regcache::read_part): Avoid memcpy when
1515 possible.
1516 (regcache::write_part): Likewise.
1517 (readable_regcache::cooked_read_part): Update comment.
1518 (readable_regcache::cooked_write_part): Likewise.
1519 * regcache.h: (readable_regcache::read_part): Likewise.
1520 (regcache::write_part): Likewise.
1521
8363f9d5
RB
15222018-06-21 Richard Bunt <richard.bunt@arm.com>
1523 Dirk Schubert <dirk.schubert@arm.com>
1524
1525 * aarch64-linux-nat.c (post_attach): New.
1526 (aarch64_linux_nat_target::post_attach): Override post_attach to
1527 record the number of hardware debug registers.
1528
0d0b0ea2
TT
15292018-06-20 Tom Tromey <tom@tromey.com>
1530
1531 * python/py-param.c (add_setshow_generic): Make parameters const.
1532 (parmpy_init): Update.
1533
302abd6e
SM
15342018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1535
1536 * regcache.h (regcache_cooked_read_ftype): Rename to...
1537 (register_read_ftype): ...this, change type to function_view.
1538 (class reg_buffer) <save>: Remove src parameter.
1539 (readonly_detached_regcache) <readonly_detached_regcache>: Make
1540 parameter non-const in first overload. Remove src parameter in
1541 second overload.
1542 * regcache.c (do_cooked_read): Remove.
1543 (readonly_detached_regcache::readonly_detached_regcache): Make
1544 parameter non-const, adjust call to other constructor.
1545 (reg_buffer::save): Remove src parameter.
1546 * frame.c (do_frame_register_read): Remove.
1547 (frame_save_as_regcache): Use lambda function.
1548 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
1549 parameter to ppu2spu_data *.
1550 (ppu2spu_sniffer): Use lambda function.
1551
19f3f25f
SM
15522018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * record-full.c (record_full_target::insert_breakpoint): Remove
1555 "struct" keyword, add const.
1556
d0ac1c44
SM
15572018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1558
1559 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
1560 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
1561 * configure.ac: Remove AC_PREREQ, add missing quoting.
1562 * gnulib/configure.ac: Modernize usage of
1563 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
1564 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
1565 (AUTOMAKE_VERSION): Bump to 1.15.1.
1566 * configure: Re-generate.
1567 * config.in: Re-generate.
1568 * aclocal.m4: Re-generate.
1569 * gnulib/aclocal.m4: Re-generate.
1570 * gnulib/config.in: Re-generate.
1571 * gnulib/configure: Re-generate.
1572 * gnulib/import/Makefile.in: Re-generate.
1573
6ae50267
PA
15742018-06-19 Pedro Alves <palves@redhat.com>
1575
1576 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
1577 (lookup_minimal_symbol_by_pc_section): ... here with
1578 gdb_assert_not_reached added.
1579
61b04dd0
PA
15802018-06-19 Pedro Alves <palves@redhat.com>
1581
1582 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
1583 parameter with a block parameter. Compare location's block symbol
1584 with the frame's block instead of addresses.
1585 (skip_inline_frames): Pass the current block instead of the
1586 frame's address. Break out as soon as we determine the frame
1587 should not be skipped.
1588
f709fabb
TT
15892018-06-18 Tom Tromey <tom@tromey.com>
1590
1591 * solib-aix.c (solib_aix_get_section_offsets): Return
1592 unique_xmalloc_ptr.
1593 (solib_aix_solib_create_inferior_hook): Update.
1594
668eb2f0
TT
15952018-06-18 Tom Tromey <tom@tromey.com>
1596
1597 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
1598
309822ca
TT
15992018-06-18 Tom Tromey <tom@tromey.com>
1600
1601 * solib-frv.c (frv_relocate_main_executable): Use
1602 unique_xmalloc_ptr.
1603 * solib-dsbt.c (dsbt_relocate_main_executable): Use
1604 unique_xmalloc_ptr.
1605
06424eac
TT
16062018-06-18 Tom Tromey <tom@tromey.com>
1607
1608 * objfiles.h (inhibit_section_map_updates): Update.
1609 (resume_section_map_updates, resume_section_map_updates_cleanup):
1610 Remove.
1611 * solib-svr4.c (svr4_handle_solib_event): Update.
1612 * objfiles.c (inhibit_section_map_updates): Return
1613 scoped_restore_tmpl<int>.
1614 (resume_section_map_updates, resume_section_map_updates_cleanup):
1615 Remove.
1616
b4be9fad
TT
16172018-06-18 Tom Tromey <tom@tromey.com>
1618
1619 * valprint.h (read_string): Update.
1620 * valprint.c (read_string): Change type of "buffer".
1621 (val_print_string): Update.
1622 * python/py-value.c (valpy_string): Update.
1623 * language.h (struct language_defn) <la_get_string>: Change
1624 type of "buffer".
1625 (default_get_string, c_get_string): Update.
1626 * language.c (default_get_string): Change type of "buffer".
1627 * guile/scm-value.c (gdbscm_value_to_string): Update.
1628 * c-lang.c (c_get_string): Change type of "buffer".
1629
3f0dbd67
TT
16302018-06-18 Tom Tromey <tom@tromey.com>
1631
1632 * ser-mingw.c (struct pipe_state_destroyer): New.
1633 (pipe_state_up): New typedef.
1634 (cleanup_pipe_state): Remove.
1635 (pipe_windows_open): Use pipe_state_up. Don't release argv.
1636
69d340c6
TT
16372018-06-18 Tom Tromey <tom@tromey.com>
1638
1639 * rust-lang.h (rust_yyerror): Don't declare.
1640 * rust-lang.c (rust_language_defn): Update.
1641 * rust-exp.y (yyerror): Now static.
1642 * parse.c (parse_exp_in_context_1): Update.
1643 * p-lang.h (p_yyerror): Don't declare.
1644 * p-lang.c (p_language_defn): Update.
1645 * p-exp.y (yyerror): Now static.
1646 * opencl-lang.c (opencl_language_defn): Update.
1647 * objc-lang.c (objc_language_defn): Update.
1648 * m2-lang.h (m2_yyerror): Don't declare.
1649 * m2-lang.c (m2_language_defn): Update.
1650 * m2-exp.y (yyerror): Now static.
1651 * language.h (struct language_defn) <la_error>: Remove.
1652 * language.c (unk_lang_error): Remove.
1653 (unknown_language_defn, auto_language_defn): Remove.
1654 * go-lang.h (go_yyerror): Don't declare.
1655 * go-lang.c (go_language_defn): Update.
1656 * go-exp.y (yyerror): Now static.
1657 * f-lang.h (f_yyerror): Don't declare.
1658 * f-lang.c (f_language_defn): Update.
1659 * f-exp.y (yyerror): Now static.
1660 * d-lang.h (d_yyerror): Don't declare.
1661 * d-lang.c (d_language_defn): Update.
1662 * d-exp.y (yyerror): Now static.
1663 * c-lang.h (c_yyerror): Don't declare.
1664 * c-lang.c (c_language_defn, cplus_language_defn)
1665 (asm_language_defn, minimal_language_defn): Update.
1666 * c-exp.y (yyerror): Now static.
1667 * ada-lang.h (ada_yyerror): Don't declare.
1668 * ada-lang.c (ada_language_defn): Update.
1669 * ada-exp.y (yyerror): Now static.
1670
e9902bfc
AH
16712018-06-18 Alan Hayward <alan.hayward@arm.com>
1672
1673 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
1674 (store_sveregs_to_thread): Likewise.
1675 (aarch64_linux_fetch_inferior_registers): Check for SVE.
1676 (aarch64_linux_store_inferior_registers): Likewise.
1677 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
1678 function.
1679 (aarch64_sve_regs_copy_to_regcache): Likewise.
1680 (aarch64_sve_regs_copy_from_regcache): Likewise.
1681 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
1682 declaration.
1683 (aarch64_sve_regs_copy_to_regcache): Likewise.
1684 (aarch64_sve_regs_copy_from_regcache): Likewise.
1685 (sve_context): Structure from Linux headers.
1686 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
1687 (SVE_SIG_ZREG_SIZE): Likewise.
1688 (SVE_SIG_PREG_SIZE): Likewise.
1689 (SVE_SIG_FFR_SIZE): Likewise.
1690 (SVE_SIG_REGS_OFFSET): Likewise.
1691 (SVE_SIG_ZREGS_OFFSET): Likewise.
1692 (SVE_SIG_ZREG_OFFSET): Likewise.
1693 (SVE_SIG_ZREGS_SIZE): Likewise.
1694 (SVE_SIG_PREGS_OFFSET): Likewise.
1695 (SVE_SIG_PREG_OFFSET): Likewise.
1696 (SVE_SIG_PREGS_SIZE): Likewise.
1697 (SVE_SIG_FFR_OFFSET): Likewise.
1698 (SVE_SIG_REGS_SIZE): Likewise.
1699 (SVE_SIG_CONTEXT_SIZE): Likewise.
1700 (SVE_PT_REGS_MASK): Likewise.
1701 (SVE_PT_REGS_FPSIMD): Likewise.
1702 (SVE_PT_REGS_SVE): Likewise.
1703 (SVE_PT_VL_INHERIT): Likewise.
1704 (SVE_PT_VL_ONEXEC): Likewise.
1705 (SVE_PT_REGS_OFFSET): Likewise.
1706 (SVE_PT_FPSIMD_OFFSET): Likewise.
1707 (SVE_PT_FPSIMD_SIZE): Likewise.
1708 (SVE_PT_SVE_ZREG_SIZE): Likewise.
1709 (SVE_PT_SVE_PREG_SIZE): Likewise.
1710 (SVE_PT_SVE_FFR_SIZE): Likewise.
1711 (SVE_PT_SVE_FPSR_SIZE): Likewise.
1712 (SVE_PT_SVE_FPCR_SIZE): Likewise.
1713 (__SVE_SIG_TO_PT): Likewise.
1714 (SVE_PT_SVE_OFFSET): Likewise.
1715 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
1716 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
1717 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
1718 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
1719 (SVE_PT_SVE_PREG_OFFSET): Likewise.
1720 (SVE_PT_SVE_PREGS_SIZE): Likewise.
1721 (SVE_PT_SVE_FFR_OFFSET): Likewise.
1722 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
1723 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
1724 (SVE_PT_SVE_SIZE): Likewise.
1725 (SVE_PT_SIZE): Likewise.
1726 (HAS_SVE_STATE): New define.
1727
17a1cc89
AH
17282018-06-18 Alan Hayward <alan.hayward@arm.com>
1729
1730 * nat/aarch64-sve-linux-sigcontext.h: New file.
1731 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
1732 new files.
1733 (SVE_VQ_MIN): Likewise.
1734 (SVE_VQ_MAX): Likewise.
1735 (SVE_VL_MIN): Likewise.
1736 (SVE_VL_MAX): Likewise.
1737 (SVE_NUM_ZREGS): Likewise.
1738 (SVE_NUM_PREGS): Likewise.
1739 (sve_vl_valid): Likewise.
1740 (struct user_sve_header): Likewise.
1741
7010835a
AB
17422018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
1743 Richard Bunt <Richard.Bunt@arm.com>
1744
1745 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
1746 was requested by GDB.
1747
479b3ef4
TV
17482018-06-15 Tom de Vries <tdevries@suse.de>
1749
1750 * MAINTAINERS (Write After Approval): Add Tom de Vries.
1751
8199b8f4
SM
17522018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * gnulib/update-gnulib.sh: Print expected versions of
1755 autoconf/aclocal.
1756
55c748a1
SM
17572018-06-14 Simon Marchi <simon.marchi@ericsson.com>
1758
1759 * arch-utils.c (default_type_align): Use type_length_units.
1760 * gdbtypes.c (type_align): Use type_length_units.
1761
87a8eca7
PW
17622018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1763
1764 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
1765 of 'define' command.
1766
5d9a0608
TV
17672018-06-14 Tom de Vries <tdevries@suse.de>
1768
1769 PR cli/22573
1770 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
1771 get_no_prettyformat_print_options.
1772
ab89b5a5
SM
17732018-06-13 Simon Marchi <simon.marchi@ericsson.com>
1774
1775 * sparc-nat.h: Include target.h.
1776 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
1777 <fetch_registers>: Remove this argument in function call.
1778 <store_registers>: Remove this argument in function call, remove
1779 extra semicolon.
1780 <low_forget_process>: Call sparc64_forget_process instead of
1781 sparc_forget_process.
1782
62c808ae
RO
17832018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1784
1785 * procfs.c (_initialize_procfs): Use add_inf_child_target.
1786 (procfs_target::make_corefile_notes): Adjust to new
1787 target_read_alloc return type.
1788
1840d81a
AB
17892018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1790 Stephen Roberts <stephen.roberts@arm.com>
1791
1792 PR gdb/22882
1793 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
1794 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
1795 Move should_notify_stop local into more inner scope.
1796
9516f85a
AB
17972018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1798 Stephen Roberts <stephen.roberts@arm.com>
1799
1800 PR gdb/22882
1801 * infrun.c (resume_1): Add call to mark_async_event_handler.
1802
defd2172
AB
18032018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 * infrun.c (do_target_wait): Change old version of $pc printed.
1806
7b23e087
SM
18072018-06-11 Simon Marchi <simon.marchi@ericsson.com>
1808
1809 * dwarf2read.c (read_index_from_section): Rename to...
1810 (read_gdb_index_from_section): ... this, update all callers.
1811 (dwarf2_read_index): Rename to...
1812 (dwarf2_read_gdb_index): ... this, update all callers.
1813
69c67a0b
JDA
18142018-06-11 John David Anglin <danglin@gcc.gnu.org>
1815
1816 * gdb/hppa-linux-nat.c
1817 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
1818 hppa_linux_nat_target::fetch_registers.
1819
65d4cada
AH
18202018-06-11 Alan Hayward <alan.hayward@arm.com>
1821
1822 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
1823 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
1824 (AARCH64_DWARF_SVE_FFR): Likewise.
1825 (AARCH64_DWARF_SVE_P0): Likewise.
1826 (AARCH64_DWARF_SVE_Z0): Likewise.
1827
f868386e
AH
18282018-06-11 Alan Hayward <alan.hayward@arm.com>
1829
1830 * common/common-regcache.h (raw_compare): New function.
1831 * regcache.c (regcache::raw_compare): Likewise.
1832 * regcache.h (regcache::raw_compare): New declaration.
1833
9c861883
AH
18342018-06-11 Alan Hayward <alan.hayward@arm.com>
1835
1836 * common/common-regcache.h (reg_buffer_common): New structure.
1837 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
1838 (reg_buffer::raw_supply): Likewise.
1839 (reg_buffer::raw_supply_integer): Likewise.
1840 (reg_buffer::raw_supply_zeroed): Likewise.
1841 (reg_buffer::raw_collect): Likewise.
1842 (reg_buffer::raw_collect_integer): Likewise.
1843 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
1844 (reg_buffer::raw_supply): Likewise.
1845 (reg_buffer::raw_supply_integer): Likewise.
1846 (reg_buffer::raw_supply_zeroed): Likewise.
1847 (reg_buffer::raw_collect): Likewise.
1848 (reg_buffer::raw_collect_integer): Likewise.
1849
953edf2b
TT
18502018-06-10 Tom Tromey <tom@tromey.com>
1851
1852 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
1853 (class remote_state) <stop_reply_queue>: Now std::vector.
1854 (remote_state::~remote_state)
1855 (remote_target::stop_reply_queue_length): Update.
1856 (struct queue_iter_param, remove_child_of_pending_fork)
1857 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
1858 (check_pending_event_prevents_wildcard_vcont_callback)
1859 (remove_stop_reply_for_inferior)
1860 (remove_stop_reply_of_remote_state)
1861 (remote_notif_remove_once_on_match)
1862 (stop_reply_match_ptid_and_ws)
1863 (remote_kill_child_of_pending_fork): Remove.
1864 (remote_target::remove_new_fork_children)
1865 (remote_target::check_pending_events_prevent_wildcard_vcont)
1866 (remote_target::discard_pending_stop_replies)
1867 (remote_target::discard_pending_stop_replies_in_queue)
1868 (remote_target::remote_notif_remove_queued_reply)
1869 (remote_target::queued_stop_reply)
1870 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
1871 (remote_target::wait, remote_target::kill_new_fork_children)
1872 (remote_target::async): Update.
1873
1ddbba9d
TT
18742018-06-10 Tom Tromey <tom@tromey.com>
1875
1876 * record-full.c (record_full_arch_list_cleanups): Remove.
1877 (record_full_message): Use try/catch.
1878 (record_full_wait_cleanups): Remove.
1879 (record_full_wait_1): Use try/catch.
1880 (record_full_restore): Likewise.
1881
219605fd
TT
18822018-06-10 Tom Tromey <tom@tromey.com>
1883
1884 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
1885 declare VEC. Add constructor.
1886 <in_target_beneath>: Now bool.
1887 (record_full_breakpoints): Now a std::vector, static.
1888 (record_full_sync_record_breakpoints)
1889 (record_full_init_record_breakpoints)
1890 (record_full_target::insert_breakpoint)
1891 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
1892
71b73764
SM
18932018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * dwarf2read.c (process_cu_includes): Remove struct keyword.
1896 * serial.c (serial_interface_lookup): Remove struct keyword.
1897
4360561f
TT
18982018-06-10 Tom Tromey <tom@tromey.com>
1899
1900 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
1901 method.
1902 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
1903 a method.
1904 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
1905 method.
1906 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
1907 "beneath" as a method.
1908 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
1909 Use "beneath" as a method.
1910
d14b92bf
TT
19112018-06-10 Tom Tromey <tom@tromey.com>
1912
1913 * tracefile.c (struct trace_file_writer_deleter): New.
1914 <operator()>: Rename from trace_file_writer_xfree.
1915 (trace_file_writer_up): New typedef.
1916 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
1917
835dcf92
SM
19182018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1919
1920 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
1921 <m_registers, m_register_status>: Change type to
1922 std::unique_ptr.
1923 * regcache.c (reg_buffer::reg_buffer): Use new instead of
1924 XCNEWVEC.
1925
aac0d564
SM
19262018-06-09 Simon Marchi <simon.marchi@ericsson.com>
1927
1928 * common/common-regcache.h (enum register_status): Add
1929 underlying type "signed char".
1930 * regcache.h (reg_buffer) <m_register_status>: Change type to
1931 register_status *.
1932 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
1933 register_status instead of signed char.
1934 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
1935 (reg_buffer::get_register_status): Remove cast.
1936 (readable_regcache::raw_read): Remove cast.
1937 (readable_regcache::cooked_read): Remove cast.
1938
77ad7394
TT
19392018-06-09 Tom Tromey <tom@tromey.com>
1940
1941 * source.c (reverse_search_command, forward_search_command): Use
1942 scoped_fd.
1943
191cca63
TT
19442018-06-09 Tom Tromey <tom@tromey.com>
1945
1946 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
1947 (serial_ops_list): Now static, std::vector.
1948 (serial_interface_lookup, serial_add_interface): Update.
1949
c5d0225d
TT
19502018-06-09 Tom Tromey <tom@tromey.com>
1951
1952 * dwarf2read.c (process_cu_includes): Update.
1953 (process_full_comp_unit): Update.
1954 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
1955 std::vector.
1956
aeab5128
PK
19572018-06-08 Paul Koning <paul_koning@dell.com>
1958
1959 PR gdb/23252
1960
1961 * python/python.c (do_start_initialization):
1962 Avoid call to internal Python API.
1963 (init__gdb_module): New function.
1964
5045b3d7
GB
19652018-06-08 Gary Benson <gbenson@redhat.com>
1966
1967 * linux-thread-db.c (valprint.h): New include.
1968 (struct check_thread_db_info): New structure.
1969 (check_thread_db_on_load, tdb_testinfo): New static globals.
1970 (check_thread_db, check_thread_db_callback): New functions.
1971 (try_thread_db_load_1): Run integrity checks if requested.
1972 (maintenance_check_libthread_db): New function.
1973 (_initialize_thread_db): Register "maint check libthread-db"
1974 and "maint set/show check-libthread-db".
1975 * NEWS: Mention the above new commands.
1976
2f4f025f
TT
19772018-06-08 Tom Tromey <tom@tromey.com>
1978
1979 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
1980 now a method.
1981
343b0027
TT
19822018-06-08 Tom Tromey <tom@tromey.com>
1983
1984 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
1985
8dcc53b3
TT
19862018-06-08 Tom Tromey <tom@tromey.com>
1987
1988 * common/btrace-common.h (struct btrace_data): Add constructor,
1989 destructor, move assignment operator.
1990 <empty, clear, fini>: New methods.
1991 <format>: Initialize.
1992 (btrace_data_init, btrace_data_fini, btrace_data_clear)
1993 (btrace_data_empty): Don't declare.
1994 * common/btrace-common.c (btrace_data_init): Remove.
1995 (btrace_data::fini): Rename from btrace_data_fini.
1996 (btrace_data::empty): Rename from btrace_data_empty.
1997 (btrace_data::clear): Rename from btrace_data_clear. Return
1998 bool.
1999 * btrace.h (make_cleanup_btrace_data): Don't declare.
2000 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
2001 (parse_xml_btrace): Update.
2002 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
2003 (maint_btrace_clear_packet_history_cmd): Update.
2004
a1740ee1
PA
20052018-06-07 Pedro Alves <palves@redhat.com>
2006
2007 * target.h (target_ops) <beneath>: Now a method. All references
2008 updated.
2009 (class target_stack): New.
2010 * target.c (g_target_stack): New.
2011 (g_current_top_target): Delete.
2012 (current_top_target): Get the top target out of g_target_stack.
2013 (target_stack::push, target_stack::unpush): New.
2014 (push_target, unpush_target): Reimplement.
2015 (target_is_pushed): Reimplement in terms of g_target_stack.
2016 (target_ops::beneath, target_stack::find_beneath): New.
2017
d6ca69cd
PA
20182018-06-07 Pedro Alves <palves@redhat.com>
2019
2020 * target.h (find_target_beneath): Delete declaration.
2021 * target.c (find_target_beneath): Delete definition.
2022 * aix-thread.c: All callers of find_target_beneath adjusted to
2023 call target_ops::beneath instead.
2024 * bsd-uthread.c: Likewise.
2025 * linux-thread-db.c: Likewise.
2026 * ravenscar-thread.c: Likewise.
2027 * sol-thread.c: Likewise.
2028 * spu-multiarch.c: Likewise.
2029
b6a8c27b
PA
20302018-06-07 Pedro Alves <palves@redhat.com>
2031
2032 * target.h (target_ops) <beneath>: Now a method. All references
2033 updated.
2034 (target_ops) <m_beneath>: New.
2035 * target.c (target_ops::beneath): New.
2036 * corelow.c: Adjust all references to target_ops::beneath.
2037 * linux-thread-db.c: Likewise.
2038 * make-target-delegates: Likewise.
2039 * record-btrace.c: Likewise.
2040 * record-full.c: Likewise.
2041 * remote.c: Likewise.
2042 * target.c: Likewise.
2043 * target-delegates.c: Regenerate.
2044
8b88a78e
PA
20452018-06-07 Pedro Alves <palves@redhat.com>
2046
2047 * target.h (target_stack): Delete.
2048 (current_top_target): Declare function.
2049 * target.c (target_stack): Delete.
2050 (g_current_top_target): New.
2051 (current_top_target): New function.
2052 * auxv.c: Use current_top_target instead of target_stack
2053 throughout.
2054 * avr-tdep.c: Likewise.
2055 * breakpoint.c: Likewise.
2056 * corefile.c: Likewise.
2057 * elfread.c: Likewise.
2058 * eval.c: Likewise.
2059 * exceptions.c: Likewise.
2060 * frame.c: Likewise.
2061 * gdbarch-selftests.c: Likewise.
2062 * gnu-v3-abi.c: Likewise.
2063 * ia64-tdep.c: Likewise.
2064 * ia64-vms-tdep.c: Likewise.
2065 * infcall.c: Likewise.
2066 * infcmd.c: Likewise.
2067 * infrun.c: Likewise.
2068 * linespec.c: Likewise.
2069 * linux-tdep.c: Likewise.
2070 * minsyms.c: Likewise.
2071 * ppc-linux-nat.c: Likewise.
2072 * ppc-linux-tdep.c: Likewise.
2073 * procfs.c: Likewise.
2074 * regcache.c: Likewise.
2075 * remote.c: Likewise.
2076 * rs6000-tdep.c: Likewise.
2077 * s390-linux-nat.c: Likewise.
2078 * s390-tdep.c: Likewise.
2079 * solib-aix.c: Likewise.
2080 * solib-darwin.c: Likewise.
2081 * solib-dsbt.c: Likewise.
2082 * solib-spu.c: Likewise.
2083 * solib-svr4.c: Likewise.
2084 * solib-target.c: Likewise.
2085 * sparc-tdep.c: Likewise.
2086 * sparc64-tdep.c: Likewise.
2087 * spu-tdep.c: Likewise.
2088 * symfile.c: Likewise.
2089 * symtab.c: Likewise.
2090 * target-descriptions.c: Likewise.
2091 * target-memory.c: Likewise.
2092 * target.c: Likewise.
2093 * target.h: Likewise.
2094 * tracefile-tfile.c: Likewise.
2095 * tracepoint.c: Likewise.
2096 * valops.c: Likewise.
2097 * valprint.c: Likewise.
2098 * value.c: Likewise.
2099 * windows-tdep.c: Likewise.
2100 * mi/mi-main.c: Likewise.
2101
c7110220
TT
21022018-06-07 Tom Tromey <tom@tromey.com>
2103
2104 * valprint.h (build_address_symbolic): Declare.
2105 * printcmd.c (print_address_symbolic): Update.
2106 (build_address_symbolic): Change "name" and "filename" to
2107 std::string.
2108 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2109 Update.
2110 * defs.h (build_address_symbolic): Remove declaration.
2111
63bad7b6
AH
21122018-06-07 Alan Hayward <alan.hayward@arm.com>
2113
2114 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
2115 (aarch64_vnv_type): Add function.
2116 (aarch64_pseudo_register_name): Add V regs for SVE.
2117 (aarch64_pseudo_register_type): Likewise.
2118 (aarch64_pseudo_register_reggroup_p): Likewise.
2119 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
2120 (aarch64_pseudo_read_value): Add V regs for SVE.
2121 (aarch64_pseudo_write_2): Use V0 offset for SVE
2122 (aarch64_pseudo_write): Add V regs for SVE.
2123 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
2124
13e3c608
SDJ
21252018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
2126
2127 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
2128 (sve_vl_from_vq): Likewise.
2129
c61b06a1
TT
21302018-06-05 Tom Tromey <tom@tromey.com>
2131
2132 * cli/cli-cmds.c (show_version): Update.
2133 * top.c (print_gdb_version): Add "interactive" parameter.
2134 Update.
2135 * main.c (captured_main_1): Update.
2136 * top.h (print_gdb_version): Add "interactive" parameter and a
2137 comment.
2138
115f7325
DM
21392018-06-05 David Malcolm <dmalcolm@redhat.com>
2140
2141 * common/enum-flags.h: Add trailing semicolon to example in
2142 comment.
2143
eb6af809
TT
21442018-06-05 Tom Tromey <tom@tromey.com>
2145
2146 PR cli/12326:
2147 * NEWS: Add entry about pager.
2148 * utils.c (pagination_disabled_for_command): New global.
2149 (prompt_for_continue): Allow "c" response to prompt.
2150 (reinitialize_more_filter): Clear
2151 pagination_disabled_for_command.
2152 (fputs_maybe_filtered): Check pagination_disabled_for_command.
2153
54d343a2
TT
21542018-06-04 Tom Tromey <tom@tromey.com>
2155
2156 * ada-lang.h (ada_lookup_symbol_list): Update.
2157 * ada-lang.c (resolve_subexp): Update.
2158 (symbols_are_identical_enums): Change type of syms. Remove nsyms
2159 parameter.
2160 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
2161 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
2162 results parameter to std::vector.
2163 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
2164 Update.
2165 * ada-exp.y (block_lookup): Update.
2166 (select_possible_type_sym): Change type of syms. Remove nsyms
2167 parameter.
2168 (write_var_or_type, write_name_assoc): Update.
2169
178d6a63
JB
21702018-06-04 Joel Brobecker <brobecker@adacore.com>
2171
2172 * windows-nat.c (windows_nat_target::xfer_partial): Return
2173 TARGET_XFER_E_IO if we need to delegate to the target beneath
2174 but BENEATH is NULL.
2175
baf00c2d
SM
21762018-06-04 Simon Marchi <simon.marchi@ericsson.com>
2177
2178 * Makefile.in (config.status): Add configure.nat as a
2179 dependency.
2180
214b073c
TT
21812018-06-04 Tom Tromey <tom@tromey.com>
2182
2183 * cp-name-parser.y (cpname_state): Add method declarations.
2184 (HANDLE_QUAL): Update.
2185 (cpname_state::d_grab, cpname_state::fill_comp)
2186 (cpname_state::make_operator, cpname_state::make_dtor)
2187 (cpname_state::make_builtin_type, cpname_state::make_name)
2188 (cpname_state::d_qualify, cpname_state::d_int_type)
2189 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
2190 (%union): Move earlier.
2191
62b74cb8
AH
21922018-06-04 Alan Hayward <alan.hayward@arm.com>
2193
2194 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
2195
3c5cd5c3
AH
21962018-06-04 Alan Hayward <alan.hayward@arm.com>
2197
2198 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
2199 (aarch64_pseudo_write_1): Likewise.
2200 (aarch64_pseudo_read_value): Use helper.
2201 (aarch64_pseudo_write): Likewise.
2202
59f413d5
PA
22032018-06-04 Pedro Alves <palves@redhat.com>
2204
2205 * darwin-nat.c (darwin_ops): Delete.
2206 (darwin_attach_pid): Use get_native_target.
2207
1332a140
AH
22082018-06-04 Alan Hayward <alan.hayward@arm.com>
2209
2210 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
2211 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
2212
ba2d2bb2
AH
22132018-06-04 Alan Hayward <alan.hayward@arm.com>
2214
2215 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
2216 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
2217 (aarch64_gdbarch_init): Check for SVE.
2218 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
2219
22202018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
2221
2222 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
2223 * aarch64-tdep.h (aarch64_read_description): Likewise.
2224 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2225 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2226 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
2227 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
2228 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
2229
41c60b4b
SM
22302018-06-02 Simon Marchi <simon.marchi@ericsson.com>
2231
2232 * value.c (value_fetch_lazy_bitfield): New.
2233 (value_fetch_lazy_memory): New.
2234 (value_fetch_lazy_register): New.
2235 (value_fetch_lazy): Factor out to smaller functions.
2236
7b640f72
TT
22372018-06-01 Tom Tromey <tom@tromey.com>
2238
2239 * cp-name-parser.y (backslashable, represented): Now const.
2240
98e69eb3
TT
22412018-06-01 Tom Tromey <tom@tromey.com>
2242
2243 * cp-name-parser.y: Include parser-defs.h.
2244 (parser_fprintf): Remove declaration.
2245
49265499
TT
22462018-06-01 Tom Tromey <tom@tromey.com>
2247
2248 * cp-name-parser.y: Use %pure-parser, %lex-param, and
2249 %parse-param.
2250 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
2251 (global_result): Remove globals.
2252 (struct cpname_state): New.
2253 (yyparse): Don't declare.
2254 (yylex, yyerror): Move declarations after %union.
2255 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
2256 (make_name): Add state parameter.
2257 Update all callers.
2258 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
2259 parameter.
2260 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
2261 Update.
2262 (yylex): Add lvalp, state parameters.
2263 (yyerror): Add state parameter.
2264 (cp_demangled_name_to_comp): Update.
2265
55b6c984
TT
22662018-06-01 Tom Tromey <tom@tromey.com>
2267
2268 * cp-name-parser.y (parser_fprintf): Declare.
2269 (GDB_YY_REMAP_PREFIX): Define.
2270 Include yy-remap.h. Don't redefine yy* identifiers.
2271
3513a6bb
TT
22722018-06-01 Tom Tromey <tom@tromey.com>
2273
2274 * python/py-type.c (typy_legacy_template_argument): Update.
2275 * cp-support.h (cp_demangled_name_to_comp): Update.
2276 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
2277 parameter to be a "std::string *".
2278 (main): Update.
2279
e9cb46ab
L
22802018-06-01 H.J. Lu <hongjiu.lu@intel.com>
2281
2282 * ada-lex.l: Include "diagnostics.h" instead of
2283 "common/diagnostics.h".
2284 * unittests/environ-selftests.c: Likewise.
2285 * common/diagnostics.h: Moved to ../include.
2286
8e817061
JB
22872018-06-01 Joel Brobecker <brobecker@adacore.com>
2288
2289 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
2290 to language_mode_manual while calling breakpoint_re_set_one.
2291
a737d952
TT
22922018-06-01 Tom Tromey <tom@tromey.com>
2293
2294 * valops.c (value_cast_structs, destructor_name_p): Update.
2295 * symtab.c (gdb_mangle_name): Update.
2296 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
2297 Update.
2298 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
2299 (pascal_object_print_value_fields, pascal_object_print_value):
2300 Update.
2301 * p-typeprint.c (pascal_type_print_derivation_info): Update.
2302 * linespec.c (find_methods): Update.
2303 * gdbtypes.h (type_name_no_tag): Remove.
2304 (type_name_or_error): Rename from type_name_no_tag_or_error.
2305 * gdbtypes.c (type_name_no_tag): Remove.
2306 (type_name_or_error): Rename from type_name_no_tag_or_error.
2307 (lookup_struct_elt_type, check_typedef): Update.
2308 * expprint.c (print_subexp_standard): Update.
2309 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
2310 * d-namespace.c (d_lookup_nested_symbol): Update.
2311 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
2312 (cp_print_class_member): Update.
2313 * cp-namespace.c (cp_lookup_nested_symbol): Update.
2314 * completer.c (add_struct_fields): Update.
2315 * c-typeprint.c (cp_type_print_derivation_info)
2316 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
2317 Update.
2318 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
2319 (ada_prefer_type, ada_is_exception_sym): Update.
2320
e86ca25f
TT
23212018-06-01 Tom Tromey <tom@tromey.com>
2322
2323 * valops.c (enum_constant_from_type, value_namespace_elt)
2324 (value_maybe_namespace_elt): Update.
2325 * valarith.c (find_size_for_pointer_math): Update.
2326 * target-descriptions.c (make_gdb_type): Update.
2327 * symmisc.c (print_symbol): Update.
2328 * stabsread.c (define_symbol, read_type)
2329 (complain_about_struct_wipeout, add_undefined_type)
2330 (cleanup_undefined_types_1): Update.
2331 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
2332 (rust_range_type_p, val_print_struct, rust_print_struct_def)
2333 (rust_internal_print_type, rust_composite_type)
2334 (rust_evaluate_funcall, rust_evaluate_subexp)
2335 (rust_inclusive_range_type_p): Update.
2336 * python/py-type.c (typy_get_tag): Update.
2337 * p-typeprint.c (pascal_type_print_base): Update.
2338 * mdebugread.c (parse_symbol, parse_type): Update.
2339 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
2340 Update.
2341 * guile/scm-type.c (gdbscm_type_tag): Update.
2342 * go-lang.c (sixg_string_p): Update.
2343 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
2344 Update.
2345 * gdbtypes.h (struct main_type) <tag_name>: Remove.
2346 (TYPE_TAG_NAME): Remove.
2347 * gdbtypes.c (type_name_no_tag): Simplify.
2348 (check_typedef, check_types_equal, recursive_dump_type)
2349 (copy_type_recursive, arch_composite_type): Update.
2350 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
2351 in summary mode when needed.
2352 * eval.c (evaluate_funcall): Update.
2353 * dwarf2read.c (fixup_go_packaging, read_structure_type)
2354 (process_structure_scope, read_enumeration_type)
2355 (read_namespace_type, read_module_type, determine_prefix): Update.
2356 * cp-support.c (inspect_type): Update.
2357 * coffread.c (process_coff_symbol, decode_base_type): Update.
2358 * c-varobj.c (c_is_path_expr_parent): Update.
2359 * c-typeprint.c (c_type_print_base_struct_union): Update.
2360 (c_type_print_base_1): Update. Print struct/class/union/enum in
2361 summary when using C language.
2362 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
2363 (gen_maybe_namespace_elt): Update.
2364 * ada-lang.c (ada_type_name): Simplify.
2365 (empty_record, ada_template_to_fixed_record_type_1)
2366 (template_to_static_fixed_type)
2367 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
2368
c1ec8cea
TT
23692018-06-01 Tom Tromey <tom@tromey.com>
2370
2371 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
2372 c_print_type.
2373 * c-typeprint.c (c_print_type_1): Add "language" parameter.
2374 (c_print_type): Update.
2375 (c_print_type): New overload.
2376 (c_type_print_varspec_prefix, c_type_print_args)
2377 (c_type_print_varspec_suffix, c_print_type_no_offsets)
2378 (c_type_print_base_struct_union, c_type_print_base_1)
2379 (cp_type_print_method_args): Add "language" parameter.
2380 (c_type_print_base): Update.
2381 * c-lang.h (c_print_type): Add new overload.
2382
bc8453a7
TT
23832018-06-01 Tom Tromey <tom@tromey.com>
2384
2385 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
2386 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
2387
739e8682
AH
23882018-06-01 Alan Hayward <alan.hayward@arm.com>
2389
2390 * aarch64-tdep.c (aarch64_sve_register_names): New const
2391 var.
2392 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
2393 (AARCH64_SVE_Z_REGS_NUM): New define.
2394 (AARCH64_SVE_P_REGS_NUM): Likewise.
2395 (AARCH64_SVE_NUM_REGS): Likewise.
2396
8a60efe7
UB
23972018-05-31 Uros Bizjak <ubizjak@gmail.com>
2398
2399 * nat/linux-ptrace.h [__alpha__]
2400 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
2401 definitions.
2402
4b2dfa9d
MR
24032018-05-31 Maciej W. Rozycki <macro@mips.com>
2404
2405 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
2406 the endianness selected.
2407 * NEWS: Document `set endian auto' mode operation update.
2408
122394f1
AH
24092018-05-31 Alan Hayward <alan.hayward@arm.com>
2410
2411 * Makefile.in: Add new header.
2412 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
2413 (sve_vl_from_vg): Likewise.
2414 (sve_vq_from_vl): Likewise.
2415 (sve_vl_from_vq): Likewise.
2416 (sve_vq_from_vg): Likewise.
2417 (sve_vg_from_vq): Likewise.
2418 * configure.nat: Add new c file.
2419 * nat/aarch64-sve-linux-ptrace.c: New file.
2420 * nat/aarch64-sve-linux-ptrace.h: New file.
2421
95228a0d
AH
24222018-05-31 Alan Hayward <alan.hayward@arm.com>
2423
2424 * aarch64-linux-nat.c (aarch64_linux_read_description):
2425 Add parmeter zero.
2426 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2427 Likewise.
2428 * aarch64-tdep.c (tdesc_aarch64_list): Add.
2429 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
2430 (aarch64_gdbarch_init): Add parmeter zero.
2431 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
2432 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
2433 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
2434 parmeter.
2435 * doc/gdb.texinfo: Describe SVE feature
2436 * features/aarch64-sve.c: New file.
2437
5969f0db
OJ
24382018-05-31 Omair Javaid <omair.javaid@linaro.org>
2439
2440 PR gdb/23210
2441 * gdbarch.sh (significant_addr_bit): Default to zero when
2442 not set by target architecture.
2443 * gdbarch.c: Re-generated.
2444 * utils.c (address_significant): Update.
2445
61367c61
JB
24462018-05-30 Joel Brobecker <brobecker@adacore.com>
2447
2448 * stack.c (func_command): Remove trailing newline in call to error.
2449
34a79281
SM
24502018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2451
2452 * regcache.h (regcache_raw_collect): Remove, update callers to
2453 use regcache::raw_collect.
2454 * regcache.c (regcache_raw_collect): Remove.
2455
73e1c03f
SM
24562018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2457
2458 * regcache.h (regcache_raw_supply): Remove, update callers to
2459 use detached_regcache::raw_supply.
2460 * regcache.c (regcache_raw_supply): Remove.
2461
e4c4a59b
SM
24622018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2463
2464 * regcache.h (regcache_cooked_write_part): Remove, update
2465 callers to use regcache::cooked_write_part.
2466 * regcache.c (regcache_cooked_write_part): Remove.
2467
73bb0000
SM
24682018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2469
2470 * regcache.h (regcache_cooked_read_part): Remove, update callers
2471 to use readable_regcache::cooked_read_part.
2472 * regcache.c (regcache_cooked_read_part): Remove.
2473
46a45e9d
SM
24742018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2475
2476 * regcache.h (regcache_cooked_read_value): Remove, update
2477 callers to use readable_regcache::cooked_read_value.
2478 * regcache.c (regcache_cooked_read_value): Remove.
2479
b66f5587
SM
24802018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2481
2482 * regcache.h (regcache_cooked_write): Remove, update callers to
2483 use regcache::cooked_write.
2484 * regcache.c (regcache_cooked_write): Remove.
2485
6aa7d724
SM
24862018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2487
2488 * regcache.h (regcache_invalidate): Remove, update callers to
2489 use detached_regcache::invalidate instead.
2490 * regcache.c (regcache_invalidate): Remove.
2491
4f0420fd
SM
24922018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2493
2494 * regcache.h (regcache_raw_write_part): Remove, update callers
2495 to use regcache::raw_write_part instead.
2496 * regcache.c (regcache_raw_write_part): Remove.
2497
502fe83e
SM
24982018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2499
2500 * regcache.h (regcache_raw_read_part): Remove, update callers to
2501 use readable_regcache::raw_read_part instead.
2502 * regcache.c (regcache_raw_read_part): Remove.
2503
dca08e1f
SM
25042018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2505
2506 * regcache.h (regcache_cooked_read): Remove, update callers to
2507 use readable_regcache::cooked_read instead.
2508 * regcache.c (regcache_cooked_read): Remove.
2509
10eaee5f
SM
25102018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2511
2512 * regcache.h (regcache_raw_write): Remove, update callers to use
2513 regcache::raw_write instead.
2514 * regcache.c (regcache_raw_write): Remove.
2515
0b883586
SM
25162018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2517
2518 * regcache.h (regcache_raw_read): Remove, update callers to use
2519 readable_regcache::raw_read instead.
2520 * regcache.c (regcache_raw_read): Remove.
2521
0b47d985
SM
25222018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2523
2524 * regcache.h (regcache_raw_update): Remove, update callers to
2525 use readable_regcache::raw_update instead.
2526 * regcache.c (regcache_raw_update): Remove.
2527
0ec9f114
SM
25282018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2529
2530 * regcache.h (regcache_register_status): Remove, update callers
2531 to use reg_buffer::get_register_status directly instead.
2532 * regcache.c (regcache_register_status): Remove.
2533
222312d3
SM
25342018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2535
2536 * regcache.h (regcache_get_ptid): Remove, update all callers to
2537 call regcache::ptid instead.
2538 * regcache.c (regcache_get_ptid): Remove.
2539
fdbe37e3
SM
25402018-05-30 Simon Marchi <simon.marchi@ericsson.com>
2541
2542 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
2543
f7c6f423
PA
25442018-05-30 Pedro Alves <palves@redhat.com>
2545
2546 * common/common-exceptions.h (exception_rethrow): Use
2547 ATTRIBUTE_NORETURN.
2548
52941706
SM
25492018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * breakpoint.c (print_solib_event, check_status_catch_solib):
2552 Remove struct keyword in range-based for loops.
2553 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
2554 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
2555 Likewise.
2556 * linespec.c (find_superclass_methods, search_minsyms_for_name):
2557 Likewise.
2558 * symfile.c (addr_info_make_relative): Likewise.
2559 * thread.c (value_in_thread_stack_temporaries): Likewise.
2560
bf2977b5
WP
25612018-06-12 Weimin Pan <weimin.pan@oracle.com>
2562
2563 PR gdb/16841
2564 * valops.c (value_struct_elt_for_reference): Call check_typedef on
2565 aggregate type to get its real type before accessing it.
2566
64cc34d8
WP
25672018-05-29 Weimin Pan <weimin.pan@oracle.com>
2568
2569 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
2570 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
2571 * coff-pe-read.c (add_pe_forwarded_sym): Replace
2572 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
2573 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
2574 * jit.c (jit_breakpoint_re_set_internal): Likewise.
2575 * printcmd.c (info_address_command): Likewise.
2576
e7ec8713
TT
25772018-05-29 Tom Tromey <tom@tromey.com>
2578
2579 * windows-nat.c (handle_exception): Update fall-through comment.
2580
bcb430e4
TT
25812018-05-29 Tom Tromey <tom@tromey.com>
2582
2583 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
2584 (struct program_space) <added_solibs>: Now a std::vector.
2585 * breakpoint.c (print_solib_event): Update.
2586 (check_status_catch_solib): Update.
2587 * progspace.c (clear_program_space_solib_cache): Update.
2588 * solib.c (update_solib_list): Update.
2589
894882e3
TT
25902018-05-29 Tom Tromey <tom@tromey.com>
2591
2592 * python/py-type.c (typy_richcompare): Update.
2593 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
2594 * gdbtypes.h (types_deeply_equal): Return bool.
2595 (types_equal): Likewise.
2596 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
2597 declare VEC.
2598 (check_types_equal): Change worklist to std::vector. Return
2599 bool.
2600 (struct type_equality_entry): Add constructor.
2601 (compare_maybe_null_strings): Return bool.
2602 (check_types_worklist): Return bool. Change worklist to
2603 std::vector.
2604 (types_deeply_equal): Use std::vector.
2605 (types_equal): Return bool.
2606 (compare_maybe_null_strings): Simplify.
2607
10b2ded4
TT
26082018-05-29 Tom Tromey <tom@tromey.com>
2609
2610 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
2611
4f7deebe
TT
26122018-05-29 Tom Tromey <tom@tromey.com>
2613
2614 * objc-lang.h: Don't include cp-support.h.
2615 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
2616 declare VEC.
2617
b8283aea
TT
26182018-05-27 Tom Tromey <tom@tromey.com>
2619
2620 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
2621
41a883c8
TT
26222018-05-25 Tom Tromey <tom@tromey.com>
2623
2624 * value.c (value::location): Initialize.
2625
bf259e25
TT
26262018-05-25 Tom Tromey <tom@tromey.com>
2627
2628 * dbxread.c (init_bincl_list): Remove.
2629 (bincl_list): Now a std::vector.
2630 (bincls_allocated, next_bincl): Remove.
2631 (free_bincl_list, do_free_bincl_list_cleanup)
2632 (make_cleanup_free_bincl_list): Remove.
2633 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
2634 unique_xmalloc_ptr.
2635 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
2636 (struct header_file_location): Add constructor.
2637 (add_bincl_to_list): Remove.
2638
d525a99b
TT
26392018-05-25 Tom Tromey <tom@tromey.com>
2640
2641 * tui/tui.c (tui_enable): Update.
2642 * mi/mi-interp.c (mi_interp::init): Update.
2643 * interps.h (class interp) <name>: New method.
2644 <m_name>: Rename from name.
2645 (~scoped_restore_interp): Update.
2646 * interps.c (interp::interp): Update.
2647 (interp_add, interp_set, interp_lookup_existing)
2648 (current_interp_named_p): Update.
2649
da505cff
TT
26502018-05-25 Tom Tromey <tom@tromey.com>
2651
2652 * interps.c (interp_name): Remove.
2653 * mi/mi-interp.c (mi_interp::init): Update.
2654 * interps.h (interp_name): Remove.
2655 (~scoped_restore_interp): Update.
2656 * tui/tui.c (tui_enable): Update.
2657
29f94340
TT
26582018-05-25 Tom Tromey <tom@tromey.com>
2659
2660 * utils.c (fputs_maybe_filtered): Update.
2661 * linespec.c (decode_line_full): Update.
2662 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
2663 (mi_print_breakpoint_for_event, mi_solib_loaded)
2664 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2665 (mi_user_selected_context_changed): Update.
2666 * mi/mi-main.c (mi_execute_command): Update.
2667 * cli/cli-script.c (execute_control_command): Update.
2668 * python/python.c (execute_gdb_command): Update.
2669 * solib.c (info_sharedlibrary_command): Update.
2670 * interps.c (interp_ui_out): Remove.
2671 * interps.h (interp_ui_out): Remove.
2672
716b8bc5
TT
26732018-05-25 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
2676 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
2677 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
2678
753ff9bd
TT
26792018-05-25 Tom Tromey <tom@tromey.com>
2680
2681 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
2682 * interps.c (interp_exec): Use scoped_restore.
2683
5ca3b260
TT
26842018-05-25 Tom Tromey <tom@tromey.com>
2685
2686 * remote.c (remote_target::remote_file_get): Use
2687 gdb::byte_vector.
2688 (remote_target::remote_file_put): Likewise.
2689
3173aa2f
TT
26902018-05-25 Tom Tromey <tom@tromey.com>
2691
2692 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
2693 a std::string.
2694 (get_pe_section_index, add_pe_exported_sym): Update.
2695 (read_pe_exported_syms): Use gdb::def_vector.
2696
09a5e1b5
TT
26972018-05-25 Tom Tromey <tom@tromey.com>
2698
2699 * frame.c (remove_prev_frame): Remove.
2700 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
2701
d8dab6c3
MR
27022018-05-25 Maciej W. Rozycki <macro@mips.com>
2703
2704 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
2705 Remove prototypes.
2706 * mips-linux-nat.c (supply_fpregset): Always call
2707 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
2708 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
2709 `mips_fill_fpregset'.
2710 * mips-linux-tdep.c (mips_supply_fpregset)
2711 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
2712 (mips_fill_fpregset_wrapper): Remove functions.
2713 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
2714 (mips_linux_fpregset): Remove variable.
2715 (mips_linux_iterate_over_regset_sections): Use
2716 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
2717 (mips_linux_o32_sigframe_init): Remove comment.
2718
3c69da40
PA
27192018-05-25 Pedro Alves <palves@redhat.com>
2720
2721 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
2722 (struct readahead_cache, struct packet_reg, struct
2723 remote_arch_state, class remote_state): Move higher up in the
2724 file.
2725 (remote_target::m_remote_state): Now an object instead of a pointer.
2726 (remote_target::get_remote_state): Adjust.
2727
39f0c204
AB
27282018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * stack.c (select_and_print_frame): Delete.
2731 (struct function_bounds): Move struct within function.
2732 (func_command): Most content moved into new function
2733 find_frame_for_function, use new function, print result, add
2734 function comment.
2735 (find_frame_for_function): New function, now returns a result.
2736
d392224a
PW
27372018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2738
2739 * stack.c (iterate_over_block_arg_vars): Fix comment.
2740 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
2741
45f25d6c
AB
27422018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 PR gdb/23203
2745 * frame.c
2746 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2747 Define.
2748 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2749 Define.
2750 * frame.h (class scoped_restore_selected_frame): New class.
2751 * stack.c (print_frame_local_vars): Remove catching and rethrowing
2752 of any exception, use scoped_restore_selected_frame to restore the
2753 frame instead.
2754
da05d921
PA
27552018-05-24 Pedro Alves <palves@redhat.com>
2756
2757 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
2758 override.
2759
a8be540e
TT
27602018-05-23 Tom Tromey <tom@tromey.com>
2761
2762 * complaints.c (struct complaints): Remove.
2763 (symfile_complaint_book): Remove.
2764 (series): New global.
2765 (complaint_internal): Update.
2766 (clear_complaints): Update.
2767
ff1cf532
TT
27682018-05-23 Tom Tromey <tom@tromey.com>
2769
2770 * complaints.c (counters): New global.
2771 (struct complain): Remove.
2772 (struct complaints) <root>: Remove.
2773 (complaint_sentinel): Remove.
2774 (symfile_complaint_book): Update.
2775 (find_complaint) Remove.
2776 (complaint_internal, clear_complaints): Update.
2777
7ff88174
TT
27782018-05-23 Tom Tromey <tom@tromey.com>
2779
2780 * complaints.c (struct complain) <file, line>: Remove.
2781 (find_complaint): Remove file, line parameters.
2782 (complaint_internal): Update.
2783
de54e1a5
TT
27842018-05-23 Tom Tromey <tom@tromey.com>
2785
2786 * complaints.c (vcomplaint): Remove.
2787 (complaint_internal) Merge in contents of vcomplaint.
2788
2ac237e5
TT
27892018-05-23 Tom Tromey <tom@tromey.com>
2790
2791 * complaints.c (struct complaints) <explanation>: Remove.
2792 (symfile_explanations): Remove.
2793 (symfile_complaint_book): Update.
2794 (vcomplaint): Update.
2795 (struct explanation): Remove.
2796
b98664d3
TT
27972018-05-23 Tom Tromey <tom@tromey.com>
2798
2799 * complaints.c (symfile_complaints): Remove.
2800 (complaint_internal): Remove "complaints" parameter.
2801 (clear_complaints, vcomplaint): Remove "c" parameter.
2802 (get_complaints): Remove.
2803 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
2804 (dwarf2_debug_line_missing_file_complaint)
2805 (dwarf2_debug_line_missing_end_sequence_complaint)
2806 (dwarf2_complex_location_expr_complaint)
2807 (dwarf2_const_value_length_mismatch_complaint)
2808 (dwarf2_section_buffer_overflow_complaint)
2809 (dwarf2_macro_malformed_definition_complaint)
2810 (dwarf2_invalid_attrib_class_complaint)
2811 (create_addrmap_from_index, dw2_symtab_iter_next)
2812 (dw2_expand_marked_cus)
2813 (dw2_debug_names_iterator::find_vec_in_debug_names)
2814 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
2815 (create_debug_type_hash_table, init_cutu_and_read_dies)
2816 (partial_die_parent_scope, add_partial_enumeration)
2817 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
2818 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
2819 (read_import_statement, read_file_scope, create_dwo_cu_reader)
2820 (create_cus_hash_table, create_dwp_hash_table)
2821 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2822 (dwarf2_rnglists_process, dwarf2_ranges_process)
2823 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
2824 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
2825 (handle_struct_member_die, process_structure_scope)
2826 (read_array_type, read_common_block, read_module_type)
2827 (read_tag_pointer_type, read_typedef, read_base_type)
2828 (read_subrange_type, load_partial_dies, partial_die_info::read)
2829 (partial_die_info::read, partial_die_info::read)
2830 (partial_die_info::read, read_checked_initial_length_and_offset)
2831 (dwarf2_string_attr, read_formatted_entries)
2832 (dwarf_decode_line_header)
2833 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2834 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
2835 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
2836 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2837 (get_signatured_type, get_DW_AT_signature_type)
2838 (decode_locdesc, file_file_name, consume_improper_spaces)
2839 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
2840 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2841 (dwarf2_symbol_mark_computed, set_die_type)
2842 (read_attribute_value): Update.
2843 * stap-probe.c (handle_stap_probe, get_stap_base_address):
2844 Update.
2845 * dbxread.c (unknown_symtype_complaint)
2846 (lbrac_mismatch_complaint, repeated_header_complaint)
2847 (set_namestring, function_outside_compilation_unit_complaint)
2848 (read_dbx_symtab, process_one_symbol): Update.
2849 * gdbtypes.c (stub_noname_complaint): Update.
2850 * windows-nat.c (handle_unload_dll): Update.
2851 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
2852 (decode_base_type): Update.
2853 * xcoffread.c (bf_notfound_complaint, ef_complaint)
2854 (eb_complaint, record_include_begin, record_include_end)
2855 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
2856 (process_xcoff_symbol, read_symbol)
2857 (function_outside_compilation_unit_complaint)
2858 (scan_xcoff_symtab): Update.
2859 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
2860 * buildsym.c (finish_block_internal, make_blockvector)
2861 (end_symtab_get_static_block, augment_type_symtab): Update.
2862 * dtrace-probe.c (dtrace_process_dof)
2863 (dtrace_static_probe_ops::get_probes): Update.
2864 * complaints.h (struct complaint): Don't declare.
2865 (symfile_complaints): Remove.
2866 (complaint_internal): Remove "complaints" parameter.
2867 (complaint): Likewise.
2868 (clear_complaints): Likewise.
2869 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2870 (reread_symbols): Update.
2871 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
2872 (dwarf2_frame_cache, decode_frame_entry): Update.
2873 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
2874 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2875 (info_selectors_command): Update.
2876 * macrotab.c (macro_include, check_for_redefinition)
2877 (macro_undef): Update.
2878 * objfiles.c (filter_overlapping_sections): Update.
2879 * stabsread.c (invalid_cpp_abbrev_complaint)
2880 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
2881 (define_symbol, error_type, read_type, rs6000_builtin_type)
2882 (stabs_method_name_from_physname, read_member_functions)
2883 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
2884 (attach_fields_to_type, complain_about_struct_wipeout)
2885 (read_range_type, read_args, common_block_start)
2886 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
2887 Update.
2888 * mdebugread.c (index_complaint, unknown_ext_complaint)
2889 (basic_type_complaint, bad_tag_guess_complaint)
2890 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
2891 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
2892 (parse_procedure, parse_lines)
2893 (function_outside_compilation_unit_complaint)
2894 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
2895 (bad_tag_guess_complaint, reg_value_complaint): Update.
2896 * cp-support.c (demangled_name_complaint): Update.
2897 * macroscope.c (sal_macro_scope): Update.
2898 * dwarf-index-write.c (class debug_names): Update.
2899
4e9668d0
TT
29002018-05-23 Tom Tromey <tom@tromey.com>
2901
2902 * complaints.c (clear_complaints): Remove "noisy" parameter.
2903 * complaints.h (clear_complaints): Update.
2904 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2905 (reread_symbols): Update.
2906
43ba33c7
TT
29072018-05-23 Tom Tromey <tom@tromey.com>
2908
2909 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
2910 SUBSEQUENT_MESSAGE.
2911 (vcomplaint, clear_complaints): Update.
2912 (symfile_explanations): Remove some messages.
2913
2b9496b2
TT
29142018-05-23 Tom Tromey <tom@tromey.com>
2915
2916 * complaints.c (internal_complaint): Remove.
2917 * complaints.h (internal_complaint): Remove.
2918
35f1fea3
MR
29192018-05-22 Maciej W. Rozycki <macro@mips.com>
2920
2921 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
2922
6b8edb51
PA
29232018-05-22 Pedro Alves <palves@redhat.com>
2924
2925 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
2926 (remote_fileio_badfd, remote_fileio_return_errno)
2927 (remote_fileio_return_success, remote_fileio_func_open)
2928 (remote_fileio_func_open, remote_fileio_func_close)
2929 (remote_fileio_func_read, remote_fileio_func_write)
2930 (remote_fileio_func_lseek, remote_fileio_func_rename)
2931 (remote_fileio_func_unlink, remote_fileio_func_stat)
2932 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
2933 (remote_fileio_func_isatty, remote_fileio_func_system): Add
2934 remote_target parameter.
2935 (remote_fio_func_map) <func>: Add remote_target parameter.
2936 (do_remote_fileio_request, remote_fileio_request):
2937 * remote-fileio.h (remote_fileio_request):
2938 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
2939 remote_target parameter.
2940 (remote_notif_process, handle_notification): Adjust to pass down
2941 the remote.
2942 (remote_notif_state_allocate): Add remote_target parameter. Save
2943 it.
2944 * remote-notif.h (struct remote_target): Forward declare.
2945 (struct notif_client) <parse, ack, can_get_pending_events>: Add
2946 remote_target parameter.
2947 (struct remote_notif_state) <remote>: New field.
2948 (remote_notif_ack, remote_notif_parse): Add remote_target
2949 parameter.
2950 (remote_notif_state_allocate, remote_notif_state_allocate): Add
2951 remote_target parameter.
2952 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
2953 (threads_listing_context, rmt_thread_action, protocol_feature)
2954 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
2955 (packet_result, struct threads_listing_context, remote_state):
2956 Move definitions and declarations higher up.
2957 (remote_target) <~remote_target>: Declare.
2958 (remote_download_command_source, remote_file_put, remote_file_get)
2959 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
2960 (remote_hostio_pread_vFile, remote_hostio_send_command)
2961 (remote_hostio_set_filesystem, remote_hostio_open)
2962 (remote_hostio_close, remote_hostio_unlink, remote_state)
2963 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
2964 (get_memory_write_packet_size, get_memory_read_packet_size)
2965 (append_pending_thread_resumptions, remote_detach_1)
2966 (append_resumption, remote_resume_with_vcont)
2967 (add_current_inferior_and_thread, wait_ns, wait_as)
2968 (process_stop_reply, remote_notice_new_inferior)
2969 (process_initial_stop_replies, remote_add_thread)
2970 (btrace_sync_conf, remote_btrace_maybe_reopen)
2971 (remove_new_fork_children, kill_new_fork_children)
2972 (discard_pending_stop_replies, stop_reply_queue_length)
2973 (check_pending_events_prevent_wildcard_vcont)
2974 (discard_pending_stop_replies_in_queue, stop_reply)
2975 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
2976 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
2977 (remote_interrupt_as, remote_interrupt_ns)
2978 (remote_get_noisy_reply, remote_query_attached)
2979 (remote_add_inferior, remote_current_thread, get_current_thread)
2980 (set_thread, set_general_thread, set_continue_thread)
2981 (set_general_process, write_ptid)
2982 (remote_unpack_thread_info_response, remote_get_threadinfo)
2983 (parse_threadlist_response, remote_get_threadlist)
2984 (remote_threadlist_iterator, remote_get_threads_with_ql)
2985 (remote_get_threads_with_qxfer)
2986 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
2987 (get_offsets, remote_check_symbols, remote_supported_packet)
2988 (remote_query_supported, remote_packet_size)
2989 (remote_serial_quit_handler, remote_detach_pid)
2990 (remote_vcont_probe, remote_resume_with_hc)
2991 (send_interrupt_sequence, interrupt_query)
2992 (remote_notif_get_pending_events, fetch_register_using_p)
2993 (send_g_packet, process_g_packet, fetch_registers_using_g)
2994 (store_register_using_P, store_registers_using_G)
2995 (set_remote_traceframe, check_binary_download)
2996 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
2997 (remote_xfer_live_readonly_partial, remote_read_bytes)
2998 (remote_send_printf, remote_flash_write, readchar)
2999 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
3000 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
3001 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
3002 (extended_remote_disable_randomization, extended_remote_run)
3003 (send_environment_packet, extended_remote_environment_support)
3004 (extended_remote_set_inferior_cwd, remote_write_qxfer)
3005 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
3006 (packet_command): Now methods of ...
3007 (remote_target): ... this class.
3008 (m_remote_state) <remote_target>: New field.
3009 (struct remote_state) <stop_reply_queue,
3010 remote_async_inferior_event_token, wait_forever_enabled_p>: New
3011 fields.
3012 (remote_state::remote_state): Allocate stop_reply_queue.
3013 (remote_state): Delete global.
3014 (get_remote_state_raw): Delete.
3015 (remote_target::get_remote_state): Allocate m_remote_state on
3016 demand.
3017 (get_current_remote_target): New.
3018 (remote_ops, extended_remote_ops): Delete.
3019 (wait_forever_enabled_p, remote_async_inferior_event_token):
3020 Delete, moved to struct remote_state.
3021 (remote_target::close): Delete self. Destruction bits split to
3022 ...
3023 (remote_target::~remote_target): ... this.
3024 (show_memory_packet_size): Adjust to use
3025 get_current_remote_target.
3026 (struct protocol_feature) <func>: Add remote_target parameter.
3027 All callers adjusted.
3028 (curr_quit_handler_target): New.
3029 (remote_serial_quit_handler): Reimplement.
3030 (remote_target::open_1): Adjust to use get_current_remote_target.
3031 Heap-allocate remote_target/extended_remote_target instances.
3032 (vcont_builder::vcont_builder): Add remote_target parameter, and
3033 save it in m_remote. All callers adjusted.
3034 (vcont_builder::m_remote): New field.
3035 (vcont_builder::restart, vcont_builder::flush)
3036 (vcont_builder::push_action): Use it.
3037 (remote_target::commit_resume): Use it.
3038 (struct queue_iter_param) <remote>: New field.
3039 (remote_target::remove_new_fork_children): Fill in 'remote' field.
3040 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
3041 (check_pending_event_prevents_wildcard_vcont_callback)
3042 (remote_target::check_pending_events_prevent_wildcard_vcont)
3043 (remote_target::discard_pending_stop_replies)
3044 (remote_target::discard_pending_stop_replies_in_queue)
3045 (remote_target::remote_notif_remove_queued_reply): Fill in
3046 'remote' field.
3047 (remote_notif_get_pending_events): New.
3048 (remote_target::readchar, remote_target::remote_serial_write):
3049 Save/restore curr_quit_handler_target.
3050 (putpkt): New.
3051 (kill_new_fork_children): Fill in 'remote' field.
3052 (packet_command): Use get_current_remote_target, defer to
3053 remote_target method of same name.
3054 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
3055 parameter, and save it in m_remote. All callers adjusted.
3056 (scoped_remote_fd::release): Use m_remote.
3057 (scoped_remote_fd::m_remote): New field.
3058 (remote_file_put, remote_file_get, remote_file_delete): Use
3059 get_current_remote_target, defer to remote_target method of same
3060 name.
3061 (remote_btrace_reset): Add remote_state paremeter. Update all
3062 callers.
3063 (remote_async_inferior_event_handler). Pass down 'data'.
3064 (remote_new_objfile): Use get_current_remote_target.
3065 (remote_target::vcont_r_supported): New.
3066 (set_range_stepping): Use get_current_remote_target and
3067 remote_target::vcont_r_supported.
3068 (_initialize_remote): Don't allocate 'remote_state' and
3069 'stop_reply_queue' globals.
3070 * remote.h (struct remote_target): Forward declare.
3071 (getpkt, putpkt, remote_notif_get_pending_events): Add
3072 'remote_target' parameter.
3073
f5db4863
PA
30742018-05-22 Pedro Alves <palves@redhat.com>
3075
3076 * remote.c (vcont_builder): Now a class. Make all data members
3077 private.
3078 (vcont_builder) <vcont_builder, restart, flush, push_action>:
3079 Declare methods.
3080 (vcont_builder_restart): Rename to ...
3081 (vcont_builder::restart): ... this.
3082 (vcont_builder_flush): Rename to ...
3083 (vcont_builder::flush): ... this.
3084 (vcont_builder_push_action): Rename to ...
3085 (vcont_builder::push_action): ... this.
3086 (remote_target::commit_resume): Adjust.
3087
cc0be08f
PA
30882018-05-22 Pedro Alves <palves@redhat.com>
3089
3090 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
3091 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
3092 (get_fixed_memory_packet_size): New.
3093 (get_memory_packet_size): Use it.
3094 (set_memory_packet_size): Don't override the config size with
3095 DEFAULT_MAX_MEMORY_PACKET_SIZE.
3096 (show_memory_packet_size): Use get_fixed_memory_packet_size.
3097 Don't refer to get_memory_packet_size if not connected to a remote
3098 target. Show "(default)" if configured size is 0.
3099
9607784a
PA
31002018-05-22 Pedro Alves <palves@redhat.com>
3101
3102 * remote.c (remote_target::mourn_inferior): Move
3103 discard_pending_stop_replies call here from ...
3104 (_initialize_remote): ... here.
3105
0e9a6b2f
PA
31062018-05-22 Pedro Alves <palves@redhat.com>
3107
3108 * remote.c (compare_section_command): Remove set_general_process
3109 call.
3110
43c3a0e4
PA
31112018-05-22 Pedro Alves <palves@redhat.com>
3112
3113 * remote.c (struct packet_reg, struct remote_arch_state):
3114 Move higher up in the file.
3115 (remote_state) <m_arch_states>: Store remote_arch_state values
3116 instead of remote_arch_state pointers.
3117 (remote_state::get_remote_arch_state): Adjust.
3118
9d6eea31
PA
31192018-05-22 Pedro Alves <palves@redhat.com>
3120
3121 * remote.c: Include <unordered_map>.
3122 (remote_state): Now a class.
3123 (remote_state) <get_remote_arch_state>: Declare method.
3124 <get_remote_arch_state>: New field.
3125 (remote_arch_state) <remote_arch_state>: Declare ctor.
3126 <regs>: Now a unique_ptr.
3127 (remote_gdbarch_data_handle): Delete.
3128 (get_remote_arch_state): Delete.
3129 (remote_state::get_remote_arch_state): New.
3130 (get_remote_state): Adjust to call remote_state's
3131 get_remote_arch_state method.
3132 (init_remote_state): Delete, bits factored out to ...
3133 (remote_arch_state::remote_arch_state): ... this new method.
3134 (get_remote_packet_size, get_memory_packet_size)
3135 (process_g_packet, remote_target::fetch_registers)
3136 (remote_target::prepare_to_store, store_registers_using_G)
3137 (remote_target::store_registers, remote_target::get_trace_status):
3138 Adjust to call remote_state's method.
3139 (_initialize_remote): Remove reference to
3140 remote_gdbarch_data_handle.
3141
dd194f6b
PA
31422018-05-22 Pedro Alves <palves@redhat.com>
3143
3144 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
3145 pread>: New method declarations.
3146 (remote_target::open_1): Adjust.
3147 (readahead_cache_invalidate): Rename to ...
3148 (readahead_cache::invalidate): ... this, and adjust to be a class
3149 method.
3150 (readahead_cache_invalidate_fd): Rename to ...
3151 (readahead_cache::invalidate_fd): ... this, and adjust to be a
3152 class method.
3153 (remote_hostio_pwrite): Adjust.
3154 (remote_hostio_pread_from_cache): Rename to ...
3155 (readahead_cache::pread): ... this, and adjust to be a class
3156 method.
3157 (remote_hostio_close): Adjust.
3158
440b7aec
PA
31592018-05-22 Pedro Alves <palves@redhat.com>
3160
3161 * remote.c (remote_hostio_close_cleanup): Delete.
3162 (class scoped_remote_fd): New.
3163 (remote_file_put, remote_file_get): Use it.
3164
de44f5a7
PA
31652018-05-22 Pedro Alves <palves@redhat.com>
3166
3167 (struct vCont_action_support): Use bool and initialize all fields.
3168 (struct readahead_cache): Initialize all fields.
3169 (remote_state): Use bool and initialize all fields.
3170 (remote_state::remote_state, remote_state::~remote_state): New.
3171 (new_remote_state): Delete.
3172 (_initialize_remote): Use new to allocate remote_state.
3173
b1b60145
PA
31742018-05-22 Pedro Alves <palves@redhat.com>
3175 張俊芝 <zjz@zjz.name>
3176
3177 PR gdb/22973
3178 * c-exp.y: Include "c-support.h".
3179 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
3180 of tolower. Use c_ident_is_alpha to scan names.
3181 * c-lang.c: Include "c-support.h".
3182 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
3183 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
3184 * c-support.h: New file, with bits factored out from ...
3185 * cp-name-parser.y: ... this file.
3186 Include "c-support.h".
3187 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
3188 c-support.h and renamed.
3189 (symbol_end, yylex): Adjust.
3190
0ec848ad
PFC
31912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3192
3193 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
3194 parameter type to CORE_ADDR.
3195 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
3196 parameter type in declaration to CORE_ADDR.
3197 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
3198 target_auxv_search to get AT_HWCAP and use the result to get the
3199 target description.
3200 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
3201 to CORE_ADDR. Remove the cast of the return value to unsigned
3202 long. Fix error predicate of target_auxv_search.
3203 (ppc_linux_nat_target::read_description): Change the type of the
3204 hwcap variable to CORE_ADDR.
3205
0fb2aaa1
PFC
32062018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3207
3208 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
3209 if the size of fpscr is larger than 32 bits.
3210
2c3305f6
PFC
32112018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3212
3213 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
3214 (ppc32_linux_vsxregmap): New global.
3215 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
3216 regcache_supply_regset, and regcache_collect_regset.
3217 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
3218 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
3219 (fetch_vsx_register, store_vsx_register): Remove.
3220 (fetch_vsx_registers): Add regno parameter. Get regset using
3221 ppc_linux_vsxregset. Use regset to supply registers.
3222 (store_vsx_registers): Add regno parameter. Get regset using
3223 ppc_linux_vsxregset. Use regset to collect registers.
3224 (fetch_register): Call fetch_vsx_registers instead of
3225 fetch_vsx_register.
3226 (store_register): Call store_vsx_registers instead of
3227 store_vsx_register.
3228 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
3229 new regno parameter.
3230 (store_ppc_registers): Call store_vsx_registers with -1 for the
3231 new regno parameter.
3232 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
3233 (ppc_collect_vsxregset): Remove.
3234
1d75a658
PFC
32352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3236
3237 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
3238 offset fields.
3239 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
3240 for vector register offset fields.
3241 (ppc64_fbsd_reg_offsets): Likewise.
3242 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3243 to vector register offset fields.
3244 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
3245 to vector register offset fields.
3246 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
3247 vector register offset fields.
3248 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
3249 initializers for vector register offset fields.
3250 (rs6000_aix64_reg_offsets): Likewise.
3251 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
3252 (ppc_supply_vrregset): Remove.
3253 (ppc_collect_vrregset): Remove.
3254 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
3255 (ppc_linux_vrregset) : New function.
3256 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
3257 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
3258 (ppc32_linux_vrregset): Remove.
3259 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
3260 and use result instead of ppc32_linux_vrregset.
3261 (ppc32_linux_reg_offsets): Remove initializers for vector register
3262 offset fields.
3263 (ppc64_linux_reg_offsets): Likewise.
3264 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
3265 * ppc-linux-nat.c: Include regset.h.
3266 (gdb_vrregset_t): Adjust comment to account for little-endian
3267 mode.
3268 (supply_vrregset, fill_vrregset): Remove.
3269 (fetch_altivec_register, store_altivec_register): Remove.
3270 (fetch_altivec_registers): Add regno parameter. Get regset using
3271 ppc_linux_vrregset. Use regset to supply registers.
3272 (store_altivec_registers): Add regno parameter. Get regset using
3273 ppc_linux_vrregset. Use regset to collect registers.
3274 (fetch_register): Call fetch_altivec_registers instead of
3275 fetch_altivec_register.
3276 (store_register): Call store_altivec_registers instead of
3277 store_altivec_register.
3278 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
3279 the new regno parameter.
3280 (store_ppc_registers): Call store_altivec_registers with -1 for
3281 the new regno parameter.
3282
d078308a
PFC
32832018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3284
3285 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
3286 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
3287 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3288 (gdb_vrregset_t): Change array type size to
3289 PPC_LINUX_SIZEOF_VRREGSET.
3290 (gdb_vsxregset_t): Change array type size to
3291 PPC_LINUX_SIZEOF_VSXREGSET.
3292 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
3293 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
3294 PPC_LINUX_SIZEOF_VSXREGSET.
3295
2e077f5e
PFC
32962018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3297
3298 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
3299 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
3300 nat/ppc-linux.c.
3301 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
3302 ppc_linux_target_wordsize with tid.
3303 (ppc_linux_nat_target::read_description): Call ppc_linux_target
3304 wordsize with tid.
3305 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
3306 (ppc64_64bit_inferior_p): Add static and inline specifiers.
3307 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
3308 tid parameter. Remove static specifier.
3309 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
3310 (ppc_linux_target_wordsize): New declaration.
3311
bd64614e
PFC
33122018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3313
3314 * arch/ppc-linux-common.c: New file.
3315 * arch/ppc-linux-common.h: New file.
3316 * arch/ppc-linux-tdesc.h: New file.
3317 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
3318 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
3319 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
3320 arch/ppc-linux-tdesc.h.
3321 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
3322 arch/ppc-linux-tdesc.h.
3323 (ppc_linux_nat_target::read_description): Remove target
3324 description matching code. Fill a ppc_linux_features struct and
3325 call ppc_linux_match_description with it. Move comment about ISA
3326 2.05 to ppc-linux-common.c.
3327 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
3328 arch/ppc-linux-tdesc.h.
3329 (ppc_linux_core_read_description): Remove target description
3330 matching code. Fill a ppc_linux_features struct and call
3331 ppc_linux_match_description with it.
3332 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3333 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3334 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3335 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3336 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3337 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3338 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3339 (tdesc_powerpc_e500l): Remove.
3340
241db429
JB
33412018-05-22 Joel Brobecker <brobecker@adacore.com>
3342
3343 * ada-lang.c (catch_assert_command): Pass empty string instead
3344 of NULL for excep_string argument.
3345
75d74cca
MR
33462018-05-22 Maciej W. Rozycki <macro@mips.com>
3347
3348 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
3349 the width of the requested register exceeds the width of the
3350 `ptrace' data type.
3351
122b53ea
TT
33522018-05-21 Tom Tromey <tom@tromey.com>
3353
3354 * printcmd.c (output_command): Remove.
3355 (output_command_const): Rename to output_command.
3356 * valprint.h (output_command): Rename from output_command_const.
3357 * tracepoint.c (trace_dump_actions): Call output_command.
3358
bc18fbb5
TT
33592018-05-21 Tom Tromey <tom@tromey.com>
3360
3361 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3362 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
3363 * ada-lang.h (create_ada_exception_catchpoint): Update.
3364 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
3365 std::string.
3366 (create_excep_cond_exprs, ~ada_catchpoint)
3367 (should_stop_exception, print_one_exception)
3368 (print_mention_exception, print_recreate_exception): Update.
3369 (ada_get_next_arg): Remove.
3370 (catch_ada_exception_command_split): Use std::string. Change type
3371 of "excep_string", "cond_string".
3372 (catch_ada_exception_command): Update.
3373 (create_ada_exception_catchpoint): Change type of excep_string.
3374 (ada_exception_sal): Remove excep_string parameter.
3375 (~ada_catchpoint): Remove.
3376
790217f6
TT
33772018-05-21 Tom Tromey <tom@tromey.com>
3378
3379 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
3380 cleanup.
3381
6f46ac85
TT
33822018-05-21 Tom Tromey <tom@tromey.com>
3383
3384 * ada-lang.c (ada_exception_message_1, ada_exception_message):
3385 Return unique_xmalloc_ptr.
3386 (print_it_exception): Update.
3387
15b6611c
TT
33882018-05-21 Tom Tromey <tom@tromey.com>
3389
3390 * tracepoint.c (trace_dump_actions): Use std::string.
3391
c0c9f665
TT
33922018-05-21 Tom Tromey <tom@tromey.com>
3393
3394 * symfile.c (reread_symbols): Use std::string for original_name.
3395
22ca247e
TT
33962018-05-21 Tom Tromey <tom@tromey.com>
3397
3398 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
3399 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
3400 constructor.
3401
184cde75
SM
34022018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
3403
3404 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
3405 instance to...
3406 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
3407 * objfiles.c (get_objfile_bfd_data): Allocate
3408 objfile_per_bfd_storage with obstack_new when allocating on
3409 obstack.
3410
e39db4db
SM
34112018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3412
3413 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
3414 OBSTACK_ZALLOC.
3415 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3416 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3417 * mdebugread.c (mdebug_build_psymtabs): Likewise.
3418 (add_pending): Likewise.
3419 (parse_symbol): Likewise.
3420 (parse_partial_symbols): Likewise.
3421 (psymtab_to_symtab_1): Likewise.
3422 (new_psymtab): Likewise.
3423 (elfmdebug_build_psymtabs): Likewise.
3424 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3425 * objfiles.c (get_objfile_bfd_data): Likewise.
3426 (objfile_register_static_link): Likewise.
3427 * psymtab.c (allocate_psymtab): Likewise.
3428 * stabsread.c (read_member_functions): Likewise.
3429 * xcoffread.c (xcoff_end_psymtab): Likewise.
3430
284a0e3c
SM
34312018-05-20 Simon Marchi <simon.marchi@ericsson.com>
3432
3433 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
3434 compiler supports std::is_trivially_constructible.
3435 * common/poison.h: Include obstack.h.
3436 (IsMallocable): Define to is_trivially_constructible if the
3437 compiler supports it, define to true_type otherwise.
3438 (xobnew): New.
3439 (XOBNEW): Redefine.
3440 (xobnewvec): New.
3441 (XOBNEWVEC): Redefine.
3442 * gdb_obstack.h (obstack_zalloc): New.
3443 (OBSTACK_ZALLOC): Redefine.
3444 (obstack_calloc): New.
3445 (OBSTACK_CALLOC): Redefine.
3446 (obstack_new): New.
3447 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
3448 (gdbarch_obstack): New declaration in gdbarch.h, definition in
3449 gdbarch.c.
3450 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
3451 obstack_calloc/obstack_zalloc.
3452 (gdbarch_obstack_zalloc): Remove.
3453 * target-descriptions.c (tdesc_data_init): Use obstack_new.
3454
59f66be3
PW
34552018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3456
3457 * stack.c (backtrace_command_1): Remove useless variable int i.
3458
50c65c2d
PW
34592018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3460
3461 * stack.c (print_frame_info): Fix comment.
3462
7ff8cb8c
TT
34632018-05-18 Tom Tromey <tom@tromey.com>
3464
3465 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
3466 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
3467 (~dwarf2_per_objfile): Update
3468 (dwarf2_get_dwz_file): Use new.
3469 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
3470 unique_ptr.
3471
400174b1
TT
34722018-05-18 Tom Tromey <tom@tromey.com>
3473
3474 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
3475 unique_ptr.
3476 * dwarf2read.c (struct dwp_file): Add constructor and
3477 initializers.
3478 (open_and_init_dwp_file): Return a unique_ptr.
3479 (dwarf2_per_objfile, create_dwp_hash_table)
3480 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
3481 (lookup_dwo_unit_in_dwp): Update.
3482 (open_and_init_dwp_file, get_dwp_file): Update.
3483
3063847f
TT
34842018-05-18 Tom Tromey <tom@tromey.com>
3485
3486 * dwarf2read.c (dwarf2_per_objfile): Update.
3487 (struct mapped_index): Add initializers.
3488 (dwarf2_read_index): Use new.
3489 (dw2_symtab_iter_init): Update.
3490 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
3491 unique_ptr.
3492
d3d02dee
SM
34932018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3494
3495 * dwarf2read.c (mapped_index) <total_size>: Remove.
3496
1d143c36
SM
34972018-05-18 Simon Marchi <simon.marchi@ericsson.com>
3498
3499 * unittests/format_pieces-selftests.c (test_format_specifier):
3500 Add ARI comments.
3501
ce1e8424
TT
35022018-05-18 Tom Tromey <tom@tromey.com>
3503
3504 * c-typeprint.c (maybe_print_hole): New function.
3505 (c_print_type_struct_field_offset): Update.
3506 (c_type_print_base_struct_union): Call maybe_print_hole.
3507
ddfe970e
KS
35082018-05-17 Keith Seitz <keiths@redhat.com>
3509
3510 * breakpoint.c (build_bpstat_chain): New function, moved from
3511 bpstat_stop_status.
3512 (bpstat_stop_status): Add optional parameter, `stop_chain'.
3513 If no stop chain is passed, call build_bpstat_chain to build it.
3514 * breakpoint.h (build_bpstat_chain): Declare.
3515 (bpstat_stop_status): Move documentation here from breakpoint.c.
3516 * infrun.c (handle_signal_stop): Before eliding inlined frames,
3517 build the stop chain and pass it to skip_inline_frames.
3518 Pass this stop chain to bpstat_stop_status.
3519 * inline-frame.c: Include breakpoint.h.
3520 (stopped_by_user_bp_inline_frame): New function.
3521 (skip_inline_frames): Add parameter `stop_chain'.
3522 Move documention to inline-frame.h.
3523 If non-NULL, use stopped_by_user_bp_inline_frame to determine
3524 whether the frame should be elided.
3525 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
3526 Add moved documentation and update for new parameter.
3527
b17992c1
SM
35282018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3529
3530 PR cli/14975
3531 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3532 unittests/format_pieces-selftests.c.
3533 * common/format.h (format_piece) <operator==>: New.
3534 (format_pieces) <operator[]>: Remove.
3535 * common/format.c (format_pieces::format_pieces): Handle \e.
3536 * unittests/format_pieces-selftests.c: New.
3537
58f0c718
TT
35382018-05-17 Tom Tromey <tom@tromey.com>
3539
3540 PR symtab/23010:
3541 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
3542 (dw2_instantiate_symtab): Add skip_partial parameter.
3543 (dw2_find_last_source_symtab, dw2_map_expand_apply)
3544 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
3545 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
3546 (dw2_expand_symtabs_matching_one)
3547 (dw2_find_pc_sect_compunit_symtab)
3548 (dw2_debug_names_lookup_symbol)
3549 (dw2_debug_names_expand_symtabs_for_function): Update.
3550 (init_cutu_and_read_dies): Add skip_partial parameter.
3551 (process_psymtab_comp_unit, build_type_psymtabs_1)
3552 (process_skeletonless_type_unit, load_partial_comp_unit)
3553 (psymtab_to_symtab_1): Update.
3554 (load_full_comp_unit): Add skip_partial parameter.
3555 (process_imported_unit_die, dwarf2_read_addr_index)
3556 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
3557 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
3558 (read_signatured_type): Update.
3559
3e618834
SM
35602018-05-17 Simon Marchi <simon.marchi@ericsson.com>
3561
3562 * value.c (release_value): Remove unused variable.
3563 (record_latest_value): Likewise.
3564 (access_value_history): Likewise.
3565 (preserve_values): Likewise.
3566
fe10fe31
TT
35672018-05-17 Tom Tromey <tom@tromey.com>
3568
3569 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
3570 Initialize.
3571
1d761124
MR
35722018-05-16 Maciej W. Rozycki <macro@mips.com>
3573
3574 PR gdb/22286
3575 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
3576 Also handle registers whose width is not a multiple of
3577 PTRACE_TYPE_RET.
3578 (linux_nat_trad_target::store_register): Likewise.
3579
06333fea
TT
35802018-05-16 Tom Tromey <tom@tromey.com>
3581
3582 * gdbcore.h (core_bfd): Redefine.
3583 * corelow.c (core_target::close): Update.
3584 (core_target_open): Update.
3585 * progspace.h (struct program_space) <cbfd>: Now a
3586 gdb_bfd_ref_ptr.
3587
921222e2
TT
35882018-05-16 Tom Tromey <tom@tromey.com>
3589
3590 PR cli/19551:
3591 * symfile-add-flags.h (enum symfile_add_flags)
3592 <SYMFILE_NOT_FILENAME>: New constant.
3593 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
3594 objfile name from BFD.
3595 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
3596 * minidebug.c (find_separate_debug_file_in_section): Put
3597 ".gnu_debugdata" into BFD's file name.
3598
3acb7083
SM
35992018-05-16 Simon Marchi <simon.marchi@ericsson.com>
3600
3601 * regcache.c (regcache_read_ftype, regcache_write_ftype):
3602 Remove.
3603
561a72d4
TC
36042018-05-15 Tamar Christina <tamar.christina@arm.com>
3605
3606 PR binutils/21446
3607 * aarch64-tdep.c (aarch64_analyze_prologue,
3608 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
3609 Indicate not interested in errors.
3610
4e6ff0e1
MR
36112018-05-15 Maciej W. Rozycki <macro@mips.com>
3612
3613 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
3614 Supply the MIPS_ZERO_REGNUM register.
3615
ea33cd92
MR
36162018-05-15 Maciej W. Rozycki <macro@mips.com>
3617
3618 * mips-tdep.c (mask_address_var): Make variable static.
3619
2d79090e
TT
36202018-05-14 Tom Tromey <tom@tromey.com>
3621
3622 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
3623
cf4912ae
AB
36242018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
3627 FXSAVE_ADDR for the mxcsr register.
3628
67e6f569
MF
36292018-05-11 Max Filippov <jcmvbkbc@gmail.com>
3630
3631 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
3632
15244507
PA
36332018-05-11 Pedro Alves <palves@redhat.com>
3634
3635 * corelow.c (core_target) <core_target>: No longer inline.
3636 Initialize m_core_gdbarch, m_core_vec and build the section table
3637 here.
3638 <~core_target>: New.
3639 <core_gdbarch, get_core_register_section>: New methods.
3640 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
3641 factored out from ...
3642 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
3643 (core_ops): Delete.
3644 (sniff_core_bfd): Add gdbarch parameter.
3645 (core_close): Delete, merged into ...
3646 (core_target::close): ... here. Delete self.
3647 (core_close_cleanup): Delete.
3648 (core_target_open): Allocate a core_target on the heap. Use a
3649 unique_ptr instead of a cleanup. Bits moved into the core_target
3650 ctor. Adjust to use core_target methods instead of globals.
3651 (get_core_register_section): Rename to ...
3652 (core_target::get_core_register_section): ... this and adjust.
3653 (struct get_core_registers_cb_data): New.
3654 (get_core_registers_cb): Use it. Use bool.
3655 (core_target::fetch_registers, core_target::files_info)
3656 (core_target::xfer_partial, core_target::read_description)
3657 (core_target::pid_to, core_target::thread_name): Adjust to
3658 reference class fields instead of globals.
3659 * target.h (struct target_ops_deleter, target_ops_up): New.
3660
451953fa
PA
36612018-05-11 Pedro Alves <palves@redhat.com>
3662
3663 * corefile.c (core_file_command): Move to corelow.c.
3664 * corelow.c (the_core_target): Delete.
3665 (core_file_command): Moved from corefile.c. Check exec_bfd
3666 instead of the_core_target. Use target_detach instead of calling
3667 into the_core_target directly.
3668 (maybe_say_no_core_file_now): New.
3669 (core_target::detach): Use it.
3670 (_initialize_corelow): Remove references to the_core_target.
3671 * gdbcore.h (the_core_target): Delete.
3672
e540a5a2 36732018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 3674 Pedro Alves <palves@redhat.com>
e540a5a2
TT
3675
3676 * corefile.c (core_bfd): Remove.
3677 * gdbcore.h (core_bfd): Now a macro.
3678 * progspace.h (struct program_space) <cbfd>: New field.
3679
633cf254
TT
36802018-05-11 Tom Tromey <tom@tromey.com>
3681
3682 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
3683 gdb::def_vector.
3684
1a34f210
TT
36852018-05-10 Tom Tromey <tom@tromey.com>
3686
3687 * configure: Rebuild.
3688 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
3689
190852c8
JB
36902018-05-10 Joel Brobecker <brobecker@adacore.com>
3691
3692 PR server/23158:
3693 * regformats/regdat.sh: Adjust script, following the addition
3694 of the new expedite_regs parameter to init_target_desc.
3695
8727de56
OJ
36962018-05-10 Omair Javaid <omair.javaid@linaro.org>
3697
3698 PR gdb/23127
3699 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
3700 set_gdbarch_significant_addr_bit.
3701 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
3702 set_gdbarch_significant_addr_bit.
3703 * utils.c (address_significant): Update to sign extend addr.
3704
37d9e062
MF
37052018-05-09 Max Filippov <jcmvbkbc@gmail.com>
3706
3707 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
3708 (xtensa_linux_init_abi): Limit tdep->num_regs by
3709 tdep->num_nopriv_regs.
3710 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
3711 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
3712 not initialized.
3713
7402fbca
SM
37142018-05-08 Simon Marchi <simon.marchi@ericsson.com>
3715
3716 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
3717
8ee22052
AB
37182018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
3721 (I387_MXCSR_INIT_VAL): New constant.
3722 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
3723 buffer if it was supplied by the inferior.
3724 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
3725 (i387_xsave_get_clear_bv): New function.
3726 (i387_supply_xsave): Only read x87 control registers from the
3727 xsave buffer if the feature is enabled, and the state will have
3728 been written, otherwise, provide a suitable default.
3729 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
3730 including x87 control registers. Update control registers if they
3731 have changed from the default value, and mark features as enabled
3732 as required.
3733 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
3734
968ae51b
UW
37352018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
3736
3737 * spu-tdep.c (info_spu_event_command): Fix output formatting.
3738
aff689d3
TT
37392018-05-07 Tom Tromey <tom@tromey.com>
3740
3741 * configure: Rebuild.
3742 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
3743
ce887586
TT
37442018-05-07 Tom Tromey <tom@tromey.com>
3745
3746 PR tdep/20362:
3747 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
3748 bit. Use correct value for VDIV.
3749
85e26832
TT
37502018-05-04 Tom Tromey <tom@tromey.com>
3751
3752 * configure: Rebuild.
3753 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
3754
449b1ac7
TT
37552018-05-04 Tom Tromey <tom@tromey.com>
3756
3757 * linux-record.c (record_linux_system_call) <case
3758 RECORD_SYS_RECVFROM>: Add "break".
3759
15c9ffd6
TT
37602018-05-04 Tom Tromey <tom@tromey.com>
3761
3762 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
3763 Add missing "break".
3764 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
3765 Add missing "break".
3766
e3829d13
TT
37672018-05-04 Tom Tromey <tom@tromey.com>
3768
3769 * rs6000-tdep.c (ppc_process_record_op4)
3770 (ppc_process_record_op63): Add fall-through comment.
3771
da0e1563
TT
37722018-05-04 Tom Tromey <tom@tromey.com>
3773
3774 * i386-tdep.c (i386_process_record): Add fall-through comment.
3775
0019cd49
TT
37762018-05-04 Tom Tromey <tom@tromey.com>
3777
3778 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
3779 comment.
3780
565e0eda
TT
37812018-05-04 Tom Tromey <tom@tromey.com>
3782
3783 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
3784 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
3785 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
3786 comment.
3787 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
3788 comment.
3789 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
3790 comment.
3791
621846f4
TT
37922018-05-04 Tom Tromey <tom@tromey.com>
3793
3794 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
3795
86a73007
TT
37962018-05-04 Tom Tromey <tom@tromey.com>
3797
3798 * s390-tdep.c (s390_process_record): Fix fall-through comments.
3799 * xcoffread.c (scan_xcoff_symtab): Move comment later.
3800 * symfile.c (section_is_mapped): Fix fall-through comment.
3801 * stabsread.c (define_symbol, read_member_functions): Fix
3802 fall-through comment.
3803 * s390-linux-tdep.c (s390_process_record): Fix fall-through
3804 comment.
3805 * remote.c (remote_wait_as): Fix fall-through comment.
3806 * p-exp.y (yylex): Fix fall-through comment.
3807 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
3808 comment.
3809 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
3810 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
3811 * jv-exp.y (yylex): Fix fall-through comment.
3812 * go-exp.y (lex_one_token): Fix fall-through comment.
3813 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
3814 fall-through comment.
3815 * f-exp.y (yylex): Fix fall-through comment.
3816 * dwarf2read.c (process_die): Fix fall-through comments.
3817 * dbxread.c (process_one_symbol): Fix fall-through comment.
3818 * d-exp.y (lex_one_token): Fix fall-through comment.
3819 * cp-name-parser.y (yylex): Fix fall-through comment.
3820 * coffread.c (coff_symtab_read): Fix fall-through comment.
3821 * c-exp.y (lex_one_token): Fix fall-through comment.
3822 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
3823 comment.
3824 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
3825 comment.
3826
56bcdbea
TT
38272018-05-04 Tom Tromey <tom@tromey.com>
3828
3829 PR python/22730:
3830 * NEWS: Mention gdb.execute change.
3831 * gdbcmd.h (execute_control_command): Don't declare.
3832 * python/python.c (execute_gdb_command): Use read_command_lines_1,
3833 execute_control_commands, execute_control_commands_to_string.
3834 * cli/cli-script.h (execute_control_commands)
3835 (execute_control_commands_to_string): Declare.
3836 (execute_control_command): Add from_tty parameter.
3837 * cli/cli-script.c (execute_control_commands)
3838 (execute_control_commands_to_string): New functions.
3839 (execute_user_command): Use execute_control_commands.
3840 (execute_control_command_1): Add "from_tty" parameter. Update.
3841 (execute_control_command): Likewise.
3842
a913fffb
TT
38432018-05-04 Tom Tromey <tom@tromey.com>
3844
3845 PR python/22731:
3846 * NEWS: Mention that breakpoint commands are writable.
3847 * python/py-breakpoint.c (bppy_set_commands): New function.
3848 (breakpoint_object_getset) <"commands">: Use it.
3849
60b3cef2
TT
38502018-05-04 Tom Tromey <tom@tromey.com>
3851
3852 * tracepoint.c (actions_command): Update.
3853 * mi/mi-cmd-break.c (mi_command_line_array)
3854 (mi_command_line_array_cnt, mi_command_line_array_ptr)
3855 (mi_read_next_line): Remove.
3856 (mi_cmd_break_commands): Update.
3857 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
3858 function_view.
3859 * cli/cli-script.c (get_command_line): Update.
3860 (process_next_line): Use function_view. Constify.
3861 (recurse_read_control_structure, read_command_lines)
3862 (read_command_lines_1): Change argument types to function_view.
3863 (do_define_command, document_command): Update.
3864 * breakpoint.h (check_tracepoint_command): Don't declare.
3865 * breakpoint.c (check_tracepoint_command): Remove.
3866 (commands_command_1, create_tracepoint_from_upload): Update.
3867
7a2c85f2
TT
38682018-05-04 Tom Tromey <tom@tromey.com>
3869
3870 PR gdb/11750:
3871 * cli/cli-script.h (enum command_control_type) <define_control>:
3872 New constant.
3873 * cli/cli-script.c (multi_line_command_p): Handle define_control.
3874 (build_command_line, execute_control_command_1)
3875 (process_next_line): Likewise.
3876 (do_define_command): New function, extracted from define_command.
3877 (define_command): Use it.
3878
295dc222
TT
38792018-05-04 Tom Tromey <tom@tromey.com>
3880
3881 * tracepoint.c (actions_command): Update.
3882 * cli/cli-script.h (read_command_lines): Update.
3883 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
3884 (MAX_TMPBUF): Remove define.
3885 (define_command): Use string_printf.
3886 (document_command): Likewise.
3887 * breakpoint.c (commands_command_1): Update.
3888
1263a9d5
TT
38892018-05-04 Tom Tromey <tom@tromey.com>
3890
3891 * top.c (execute_command): Update.
3892 * cli/cli-script.h (print_command_lines): Now varargs.
3893 * cli/cli-script.c (print_command_lines): Now varargs.
3894 (execute_control_command_1) <case while_control, case if_control>:
3895 Update.
3896
12973681
TT
38972018-05-04 Tom Tromey <tom@tromey.com>
3898
3899 * tracepoint.c (all_tracepoint_actions): Rename from
3900 all_tracepoint_actions_and_cleanup. Change return type.
3901 (actions_command, encode_actions_1, encode_actions)
3902 (trace_dump_actions, tdump_command): Update.
3903 * remote.c (remote_download_command_source): Update.
3904 * python/python.c (gdbpy_eval_from_control_command)
3905 (python_command, python_interactive_command): Update.
3906 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
3907 * guile/guile.c (guile_command)
3908 (gdbscm_eval_from_control_command, guile_command): Update.
3909 * compile/compile.c (compile_code_command)
3910 (compile_print_command, compile_to_object): Update.
3911 * cli/cli-script.h (struct command_lines_deleter): New.
3912 (counted_command_line): New typedef.
3913 (struct command_line): Add constructor, destructor.
3914 <body_list>: Remove.
3915 <body_list_0, body_list_1>: New members.
3916 (command_line_up): Remove typedef.
3917 (read_command_lines, read_command_lines_1, get_command_line):
3918 Update.
3919 (copy_command_lines): Don't declare.
3920 * cli/cli-script.c (build_command_line): Use "new".
3921 (get_command_line): Return counted_command_line.
3922 (print_command_lines, execute_user_command)
3923 (execute_control_command_1, while_command, if_command): Update.
3924 (realloc_body_list): Remove.
3925 (process_next_line, recurse_read_control_structure): Update.
3926 (read_command_lines, read_command_lines_1): Return counted_command_line.
3927 (free_command_lines): Use "delete".
3928 (copy_command_lines): Remove.
3929 (define_command, document_command, show_user_1): Update.
3930 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
3931 a counted_command_line.
3932 * breakpoint.h (counted_command_line): Remove typedef.
3933 (breakpoint_set_commands): Update.
3934 * breakpoint.c (check_no_tracepoint_commands)
3935 (validate_commands_for_breakpoint): Update.
3936 (breakpoint_set_commands): Change commands to be a
3937 counted_command_line.
3938 (commands_command_1, update_dprintf_command_list)
3939 (create_tracepoint_from_upload): Update.
3940
e2fc72e2
TT
39412018-05-04 Tom Tromey <tom@tromey.com>
3942
3943 * cli/cli-decode.h (cmd_list_element): New constructor.
3944 (~cmd_list_element): New destructor.
3945 (struct cmd_list_element): Add initializers.
3946 * cli/cli-decode.c (do_add_cmd): Use "new".
3947 (delete_cmd): Use "delete".
3948
a3b60e45
JK
39492018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3950 Pedro Alves <palves@redhat.com>
3951
3952 PR breakpoints/19806 and support for PR external/20207.
3953 * NEWS: Mention Aarch64 watchpoint improvements.
3954 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
3955 watchpoints and PR external/20207 watchpoints.
3956 * nat/aarch64-linux-hw-point.c
3957 (kernel_supports_any_contiguous_range): New.
3958 (aarch64_watchpoint_offset): New.
3959 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
3960 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
3961 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
3962 (aarch64_align_watchpoint): New parameters aligned_offset_p and
3963 next_addr_orig_p. Support PR external/20207 watchpoints.
3964 (aarch64_downgrade_regs): New.
3965 (aarch64_dr_state_insert_one_point): New parameters offset and
3966 addr_orig.
3967 (aarch64_dr_state_remove_one_point): Likewise.
3968 (aarch64_handle_breakpoint): Update caller.
3969 (aarch64_handle_aligned_watchpoint): Likewise.
3970 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
3971 aligned_offset.
3972 (aarch64_linux_set_debug_regs): Remove const from state. Call
3973 aarch64_downgrade_regs.
3974 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
3975 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
3976 (DR_CONTROL_MASK): ... this.
3977 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
3978 (unsigned int aarch64_watchpoint_offset): New prototype.
3979 (aarch64_linux_set_debug_regs): Remove const from state.
3980 * utils.c (align_up, align_down): Move to ...
3981 * common/common-utils.c (align_up, align_down): ... here.
3982 * utils.h (align_up, align_down): Move to ...
3983 * common/common-utils.h (align_up, align_down): ... here.
3984
05bc7456
JB
39852018-05-04 Joel Brobecker <brobecker@adacore.com>
3986
3987 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
3988 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
3989 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
3990 Re-implement to match the ABI as summarized in GCC's
3991 gcc/config/sparc/sparc.c. All callers updated.
3992 (sparc32_store_arguments): Remove assertion.
3993
2f433492
TT
39942018-05-04 Tom Tromey <tom@tromey.com>
3995
3996 * printcmd.c: Don't include tui.h.
3997 (decode_format): Use skip_spaces.
3998
9be2ae8f
TT
39992018-05-04 Tom Tromey <tom@tromey.com>
4000
4001 PR gdb/22619:
4002 * printcmd.c (last_count): New global.
4003 (x_command): Use saved count when repeating.
4004
f0b3976b
TT
40052018-05-04 Tom Tromey <tom@tromey.com>
4006
4007 * nto-procfs.c (do_closedir_cleanup): Remove.
4008 (procfs_pidlist): Use gdb_dir_up.
4009 * procfs.c (do_closedir_cleanup): Remove.
4010 (proc_update_threads): Use gdb_dir_up.
4011 * common/filestuff.h (struct gdb_dir_deleter): New.
4012 (gdb_dir_up): New typedef.
4013
862d101a
TT
40142018-05-04 Tom Tromey <tom@tromey.com>
4015
4016 * ada-lang.c (print_mention_exception): Use std::string.
4017
cb7de75e
TT
40182018-05-04 Tom Tromey <tom@tromey.com>
4019
4020 * ada-lang.c (create_excep_cond_exprs): Update.
4021 (ada_exception_catchpoint_cond_string): Use std::string.
4022
49d83361
TT
40232018-05-04 Tom Tromey <tom@tromey.com>
4024
4025 * ada-lang.c (xget_renaming_scope): Return std::string.
4026 (old_renaming_is_invisible): Update.
4027
ade72a34
TT
40282018-05-04 Tom Tromey <tom@tromey.com>
4029
4030 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
4031 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
4032
2be4d7f0
UW
40332018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
4034
4035 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
4036
69b6ecb0
TT
40372018-05-04 Tom Tromey <tom@tromey.com>
4038
4039 * remote.c (remote_query_supported_append): Change type.
4040 (remote_check_symbols): Update.
4041
bf27f0e2
PP
40422018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
4043
4044 PR gdb/11420
4045 * configure.ac: Prepend libpython.
4046 * python/python-config.py: Likewise.
4047 * configure: Regenerate.
4048
4ea17de8
SM
40492018-05-03 Simon Marchi <simon.marchi@ericsson.com>
4050
4051 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
4052
bd732259
PA
40532018-05-03 Pedro Alves <palves@redhat.com>
4054
4055 * s390-linux-nat.c
4056 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
4057 override. Write 'true' instead of '1'.
4058 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
4059 declaration.
4060
d9f719f1
PA
40612018-05-02 Pedro Alves <palves@redhat.com>
4062
4063 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
4064 add_inf_child_target.
4065 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
4066 add_inf_child_target.
4067 * aix-thread.c (aix_thread_target_info): New.
4068 (aix_thread_target) <shortname, longname, doc>: Delete.
4069 <info>: New.
4070 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
4071 add_inf_child_target.
4072 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
4073 add_inf_child_target.
4074 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
4075 add_inf_child_target.
4076 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
4077 add_inf_child_target.
4078 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
4079 add_inf_child_target.
4080 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
4081 add_inf_child_target.
4082 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
4083 add_inf_child_target.
4084 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
4085 add_inf_child_target.
4086 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
4087 add_inf_child_target.
4088 * bfd-target.c (target_bfd_target_info): New.
4089 (target_bfd) <shortname, longname, doc>: Delete.
4090 <info>: New.
4091 * bsd-kvm.c (bsd_kvm_target_info): New.
4092 (bsd_kvm_target) <shortname, longname, doc>: Delete.
4093 <info>: New.
4094 (bsd_kvm_target::open): Rename to ...
4095 (bsd_kvm_target_open): ... this. Adjust.
4096 * bsd-uthread.c (bsd_uthread_target_info): New.
4097 (bsd_uthread_target) <shortname, longname, doc>: Delete.
4098 <info>: New.
4099 * corefile.c (core_file_command): Adjust.
4100 * corelow.c (core_target_info): New.
4101 (core_target) <shortname, longname, doc>: Delete.
4102 <info>: New.
4103 (core_target::open): Rename to ...
4104 (core_target_open): ... this. Adjust.
4105 * ctf.c (ctf_target_info): New.
4106 (ctf_target) <shortname, longname, doc>: Delete.
4107 <info>: New.
4108 (ctf_target::open): Rename to ...
4109 (ctf_target_open): ... this.
4110 (_initialize_ctf): Adjust.
4111 * exec.c (exec_target_info): New.
4112 (exec_target) <shortname, longname, doc>: Delete.
4113 <info>: New.
4114 (exec_target::open): Rename to ...
4115 (exec_target_open): ... this.
4116 * gdbcore.h (core_target_open): Declare.
4117 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
4118 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
4119 add_inf_child_target.
4120 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
4121 add_inf_child_target.
4122 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
4123 add_inf_child_target.
4124 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
4125 add_inf_child_target.
4126 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
4127 add_inf_child_target.
4128 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
4129 add_inf_child_target.
4130 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
4131 add_inf_child_target.
4132 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
4133 add_inf_child_target.
4134 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
4135 add_inf_child_target.
4136 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
4137 add_inf_child_target.
4138 * inf-child.c (inf_child_target_info): New.
4139 (inf_child_target::info): New.
4140 (inf_child_open_target): Remove 'target' parameter. Use
4141 get_native_target instead.
4142 (inf_child_target::open): Delete.
4143 (add_inf_child_target): New.
4144 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
4145 Delete.
4146 <info>: New.
4147 (add_inf_child_target): Declare.
4148 (inf_child_open_target): Declare.
4149 * linux-thread-db.c (thread_db_target_info): New.
4150 (thread_db_target) <shortname, longname, doc>: Delete.
4151 <info>: New.
4152 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
4153 add_inf_child_target.
4154 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
4155 add_inf_child_target.
4156 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
4157 add_inf_child_target.
4158 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
4159 add_inf_child_target.
4160 * make-target-delegates (print_class): Adjust.
4161 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
4162 add_inf_child_target.
4163 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
4164 add_inf_child_target.
4165 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
4166 add_inf_child_target.
4167 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
4168 add_inf_child_target.
4169 * nto-procfs.c (nto_native_target_info): New.
4170 (nto_procfs_target_native) <shortname, longname, doc>:
4171 Delete.
4172 <info>: New.
4173 (nto_procfs_target_info): New.
4174 (nto_procfs_target_procfs) <shortname, longname, doc>:
4175 Delete.
4176 <info>: New.
4177 (init_procfs_targets): Adjust.
4178 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
4179 add_inf_child_target.
4180 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
4181 add_inf_child_target.
4182 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
4183 add_inf_child_target.
4184 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
4185 add_inf_child_target.
4186 * ravenscar-thread.c (ravenscar_target_info): New.
4187 (ravenscar_thread_target) <shortname, longname, doc>:
4188 Delete.
4189 <info>: New.
4190 * record-btrace.c (record_btrace_target_info):
4191 (record_btrace_target) <shortname, longname, doc>: Delete.
4192 <info>: New.
4193 (record_btrace_target::open): Rename to ...
4194 (record_btrace_target_open): ... this. Adjust.
4195 * record-full.c (record_longname, record_doc): New.
4196 (record_full_base_target) <shortname, longname, doc>: Delete.
4197 <info>: New.
4198 (record_full_target_info): New.
4199 (record_full_target): <shortname>: Delete.
4200 <info>: New.
4201 (record_full_core_open_1, record_full_open_1): Update comments.
4202 (record_full_base_target::open): Rename to ...
4203 (record_full_open): ... this.
4204 (cmd_record_full_restore): Update.
4205 (_initialize_record_full): Update.
4206 * remote-sim.c (remote_sim_target_info): New.
4207 (gdbsim_target) <shortname, longname, doc>: Delete.
4208 <info>: New.
4209 (gdbsim_target::open): Rename to ...
4210 (gdbsim_target_open): ... this.
4211 (_initialize_remote_sim): Adjust.
4212 * remote.c (remote_doc): New.
4213 (remote_target_info): New.
4214 (remote_target) <shortname, longname, doc>: Delete.
4215 <info>: New.
4216 (extended_remote_target_info): New.
4217 (extended_remote_target) <shortname, longname, doc>: Delete.
4218 <info>: New.
4219 (remote_target::open_1): Make static. Adjust.
4220 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
4221 * s390-linux-nat.c (_initialize_s390_nat): Use
4222 add_inf_child_target.
4223 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
4224 add_inf_child_target.
4225 * sol-thread.c (thread_db_target_info): New.
4226 (sol_thread_target) <shortname, longname, doc>: Delete.
4227 <info>: New.
4228 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
4229 add_inf_child_target.
4230 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
4231 add_inf_child_target.
4232 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
4233 add_inf_child_target.
4234 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
4235 add_inf_child_target.
4236 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
4237 add_inf_child_target.
4238 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
4239 add_inf_child_target.
4240 * spu-linux-nat.c (_initialize_spu_nat): Use
4241 add_inf_child_target.
4242 * spu-multiarch.c (spu_multiarch_target_info): New.
4243 (spu_multiarch_target) <shortname, longname, doc>: Delete.
4244 <info>: New.
4245 * target-delegates.c: Regenerate.
4246 * target.c: Include <unordered_map>.
4247 (target_ops_p): Delete.
4248 (DEF_VEC_P(target_ops_p)): Delete.
4249 (target_factories): New.
4250 (test_target_info): New.
4251 (test_target_ops::info): New.
4252 (open_target): Adjust to use target_factories.
4253 (add_target_with_completer): Rename to ...
4254 (add_target): ... this. Change prototype. Register target_info
4255 and open callback in target_factories. Register target_info in
4256 command context instead of target_ops.
4257 (add_target): Delete old implementation.
4258 (add_deprecated_target_alias): Change prototype. Adjust.
4259 (the_native_target): New.
4260 (set_native_target, get_native_target): New.
4261 (find_default_run_target): Use the_native_target.
4262 (find_attach_target, find_run_target): Simplify.
4263 (target_ops::open): Delete.
4264 (dummy_target_info): New.
4265 (dummy_target::shortname, dummy_target::longname)
4266 (dummy_target::doc): Delete.
4267 (dummy_target::info): New.
4268 (debug_target::shortname, debug_target::longname)
4269 (debug_target::doc): Delete.
4270 (debug_target::info): New.
4271 * target.h (struct target_info): New.
4272 (target_ops::~target_ops): Add comment.
4273 (target_ops::info): New.
4274 (target_ops::shortname, target_ops::longname, target_ops::doc): No
4275 longer virtual. Implement in terms of target_info.
4276 (set_native_target, get_native_target): Declare.
4277 (target_open_ftype): New.
4278 (add_target, add_target_with_completer)
4279 (add_deprecated_target_alias): Change prototype.
4280 (test_target) <shortname, longname, doc>: Delete.
4281 <info>: New.
4282 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
4283 add_inf_child_target.
4284 * tracefile-tfile.c (tfile_target_info): New.
4285 (tfile_target) <shortname, longname, doc>: Delete.
4286 <info>: New.
4287 (tfile_target::open): Rename to ...
4288 (tfile_target_open): ... this.
4289 (_initialize_tracefile_tfile): Adjust.
4290 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
4291 add_inf_child_target.
4292 * windows-nat.c (_initialize_windows_nat): Use
4293 add_inf_child_target.
4294 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
4295 add_inf_child_target.
4296
135340af
PA
42972018-05-02 Pedro Alves <palves@redhat.com>
4298
4299 * linux-nat.h (linux_nat_target) <low_new_thread,
4300 low_delete_thread, low_new_fork, low_forget_process,
4301 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
4302 New virtual methods.
4303 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4304 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
4305 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
4306 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4307 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
4308 Delete.
4309 * linux-fork.c (delete_fork): Adjust to call low method.
4310 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
4311 (linux_nat_new_fork, linux_nat_forget_process_hook)
4312 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
4313 (linux_nat_status_is_event):
4314 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
4315 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
4316 to call low method.
4317 (sigtrap_is_event): Rename to ...
4318 (linux_nat_target::low_status_is_event): ... this.
4319 (linux_nat_set_status_is_event): Delete.
4320 (save_stop_reason, linux_nat_wait_1)
4321 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
4322 low methods.
4323 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
4324 (linux_nat_set_new_fork, linux_nat_set_forget_process)
4325 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
4326 (linux_nat_set_prepare_to_resume): Delete.
4327 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
4328 low virtual methods.
4329 * amd64-linux-nat.c: Likewise.
4330 * arm-linux-nat.c: Likewise.
4331 * i386-linux-nat.c: Likewise.
4332 * ia64-linux-nat.c: Likewise.
4333 * mips-linux-nat.c: Likewise.
4334 * ppc-linux-nat.c: Likewise.
4335 * s390-linux-nat.c: Likewise.
4336 * sparc64-linux-nat.c: Likewise.
4337 * x86-linux-nat.c: Likewise.
4338 * x86-linux-nat.h: Include "nat/x86-linux.h".
4339 (x86_linux_nat_target) <low_new_fork, low_forget_process,
4340 low_prepare_to_resume, low_new_thread, low_delete_thread>:
4341 Override methods.
4342
57810aa7
PA
43432018-05-02 Pedro Alves <palves@redhat.com>
4344
4345 * target.h (target_ops)
4346 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
4347 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
4348 stopped_by_watchpoint, have_continuable_watchpoint,
4349 stopped_data_address, watchpoint_addr_within_range,
4350 can_accel_watchpoint_condition, can_run, thread_alive,
4351 has_all_memory, has_memory, has_stack, has_registers,
4352 has_execution, can_async_p, is_async_p, supports_non_stop,
4353 always_non_stop_p, can_execute_reverse, supports_multi_process,
4354 supports_enable_disable_tracepoint,
4355 supports_disable_randomization, supports_string_tracing,
4356 supports_evaluation_of_breakpoint_conditions,
4357 can_run_breakpoint_commands, filesystem_is_local,
4358 can_download_tracepoint, get_trace_state_variable_value,
4359 set_trace_notes, get_tib_address, use_agent, can_use_agent,
4360 record_is_replaying, record_will_replay,
4361 augmented_libraries_svr4_read>: Adjust to return bool.
4362 * aarch64-linux-nat.c: All implementations adjusted.
4363 * aix-thread.c: All implementations adjusted.
4364 * arm-linux-nat.c: All implementations adjusted.
4365 * breakpoint.c: All implementations adjusted.
4366 * bsd-kvm.c: All implementations adjusted.
4367 * bsd-uthread.c: All implementations adjusted.
4368 * corelow.c: All implementations adjusted.
4369 * ctf.c: All implementations adjusted.
4370 * darwin-nat.c: All implementations adjusted.
4371 * darwin-nat.h: All implementations adjusted.
4372 * exec.c: All implementations adjusted.
4373 * fbsd-nat.c: All implementations adjusted.
4374 * fbsd-nat.h: All implementations adjusted.
4375 * gnu-nat.c: All implementations adjusted.
4376 * gnu-nat.h: All implementations adjusted.
4377 * go32-nat.c: All implementations adjusted.
4378 * ia64-linux-nat.c: All implementations adjusted.
4379 * inf-child.c: All implementations adjusted.
4380 * inf-child.h: All implementations adjusted.
4381 * inf-ptrace.c: All implementations adjusted.
4382 * inf-ptrace.h: All implementations adjusted.
4383 * linux-nat.c: All implementations adjusted.
4384 * linux-nat.h: All implementations adjusted.
4385 * mips-linux-nat.c: All implementations adjusted.
4386 * nto-procfs.c: All implementations adjusted.
4387 * ppc-linux-nat.c: All implementations adjusted.
4388 * procfs.c: All implementations adjusted.
4389 * ravenscar-thread.c: All implementations adjusted.
4390 * record-btrace.c: All implementations adjusted.
4391 * record-full.c: All implementations adjusted.
4392 * remote-sim.c: All implementations adjusted.
4393 * remote.c: All implementations adjusted.
4394 * s390-linux-nat.c: All implementations adjusted.
4395 * sol-thread.c: All implementations adjusted.
4396 * spu-multiarch.c: All implementations adjusted.
4397 * target-delegates.c: All implementations adjusted.
4398 * target.c: All implementations adjusted.
4399 * target.h: All implementations adjusted.
4400 * tracefile-tfile.c: All implementations adjusted.
4401 * tracefile.c: All implementations adjusted.
4402 * tracefile.h: All implementations adjusted.
4403 * windows-nat.c: All implementations adjusted.
4404 * x86-linux-nat.h: All implementations adjusted.
4405 * x86-nat.h: All implementations adjusted.
4406
ad6a4e2d
PA
44072018-05-02 Pedro Alves <palves@redhat.com>
4408
4409 * make-target-delegates (scan_target_h): Don't trim lines here.
4410 Replace sequences of tabs and/or whitespace with a single
4411 whitespace.
4412 (top level, parsing methods): Trim each line before processing it
4413 here.
4414
f6ac5f3d
PA
44152018-05-02 Pedro Alves <palves@redhat.com>
4416 John Baldwin <jhb@freebsd.org>
4417
4418 * target.h (enum strata) <debug_stratum>: New.
4419 (struct target_ops) <all delegation methods>: Replace by C++
4420 virtual methods, and drop "to_" prefix. All references updated
4421 throughout.
4422 <to_shortname, to_longname, to_doc, to_data,
4423 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
4424 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
4425 virtual methods. All references updated throughout.
4426 <can_attach, supports_terminal_ours, can_create_inferior,
4427 get_thread_control_capabilities, attach_no_wait>: New
4428 virtual methods.
4429 <insert_breakpoint, remove_breakpoint>: Now
4430 TARGET_DEFAULT_NORETURN methods.
4431 <info_proc>: Now returns bool.
4432 <to_magic>: Delete.
4433 (OPS_MAGIC): Delete.
4434 (current_target): Delete. All references replaced by references
4435 to ...
4436 (target_stack): ... this. New.
4437 (target_shortname, target_longname): Adjust.
4438 (target_can_run): Now a function declaration.
4439 (default_child_has_all_memory, default_child_has_memory)
4440 (default_child_has_stack, default_child_has_registers)
4441 (default_child_has_execution): Remove target_ops parameter.
4442 (complete_target_initialization): Delete.
4443 (memory_breakpoint_target): New template class.
4444 (test_target_ops): Refactor as a C++ class with virtual methods.
4445 * make-target-delegates (NAME_PART): Tighten.
4446 (POINTER_PART, CP_SYMBOL): New.
4447 (SIMPLE_RETURN_PART): Reimplement.
4448 (VEC_RETURN_PART): Expect less.
4449 (RETURN_PART, VIRTUAL_PART): New.
4450 (METHOD): Adjust to C++ virtual methods.
4451 (scan_target_h): Remove reference to C99.
4452 (dname): Output "target_ops::" prefix.
4453 (write_function_header): Adjust to output a C++ class method.
4454 (write_declaration): New.
4455 (write_delegator): Adjust to output a C++ class method.
4456 (tdname): Output "dummy_target::" prefix.
4457 (write_tdefault, write_debugmethod): Adjust to output a C++ class
4458 method.
4459 (tdefault_names, debug_names): Delete.
4460 (return_types, tdefaults, styles, argtypes_array): New.
4461 (top level): All methods are delegators.
4462 (print_class): New.
4463 (top level): Print dummy_target and debug_target classes.
4464 * target-delegates.c: Regenerate.
4465 * target-debug.h (target_debug_print_enum_info_proc_what)
4466 (target_debug_print_thread_control_capabilities)
4467 (target_debug_print_thread_info_p): New.
4468 * target.c (dummy_target): Delete.
4469 (the_dummy_target, the_debug_target): New.
4470 (target_stack): Now extern.
4471 (set_targetdebug): Push/unpush debug target.
4472 (default_child_has_all_memory, default_child_has_memory)
4473 (default_child_has_stack, default_child_has_registers)
4474 (default_child_has_execution): Remove target_ops parameter.
4475 (complete_target_initialization): Delete.
4476 (add_target_with_completer): No longer call
4477 complete_target_initialization.
4478 (target_supports_terminal_ours): Use regular delegation.
4479 (update_current_target): Delete.
4480 (push_target): No longer check magic number. Don't call
4481 update_current_target.
4482 (unpush_target): Don't call update_current_target.
4483 (target_is_pushed): No longer check magic number.
4484 (target_require_runnable): Skip for all stratums over
4485 process_stratum.
4486 (target_ops::info_proc): New.
4487 (target_info_proc): Use find_target_at and
4488 find_default_run_target.
4489 (target_supports_disable_randomization): Use regular delegation.
4490 (target_get_osdata): Use find_target_at.
4491 (target_ops::open, target_ops::close, target_ops::can_attach)
4492 (target_ops::attach, target_ops::can_create_inferior)
4493 (target_ops::create_inferior, target_ops::can_run)
4494 (target_can_run): New.
4495 (default_fileio_target): Use regular delegation.
4496 (target_ops::fileio_open, target_ops::fileio_pwrite)
4497 (target_ops::fileio_pread, target_ops::fileio_fstat)
4498 (target_ops::fileio_close, target_ops::fileio_unlink)
4499 (target_ops::fileio_readlink): New.
4500 (target_fileio_open_1, target_fileio_unlink)
4501 (target_fileio_readlink): Always call the target method. Handle
4502 FILEIO_ENOSYS.
4503 (return_zero, return_zero_has_execution): Delete.
4504 (init_dummy_target): Delete.
4505 (dummy_target::dummy_target, dummy_target::shortname)
4506 (dummy_target::longname, dummy_target::doc)
4507 (debug_target::debug_target, debug_target::shortname)
4508 (debug_target::longname, debug_target::doc): New.
4509 (target_supports_delete_record): Use regular delegation.
4510 (setup_target_debug): Delete.
4511 (maintenance_print_target_stack): Skip debug_stratum.
4512 (initialize_targets): Instantiate the_dummy_target and
4513 the_debug_target.
4514 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
4515 use target_stack.
4516 (target_auxv_search, fprint_target_auxv): Adjust.
4517 (info_auxv_command): Adjust to use target_stack.
4518 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
4519 * exceptions.c (print_flush): Handle a NULL target_stack.
4520 * regcache.c (target_ops_no_register): Refactor as class with
4521 virtual methods.
4522
4523 * exec.c (exec_target): New class.
4524 (exec_ops): Now an exec_target.
4525 (exec_open, exec_close_1, exec_get_section_table)
4526 (exec_xfer_partial, exec_files_info, exec_has_memory)
4527 (exec_make_note_section): Refactor as exec_target methods.
4528 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
4529 Delete.
4530 (exec_target::find_memory_regions): New.
4531 (_initialize_exec): Don't call init_exec_ops.
4532 * gdbcore.h (exec_file_clear): Delete.
4533
4534 * corefile.c (core_target): Delete.
4535 (core_file_command): Adjust.
4536 * corelow.c (core_target): New class.
4537 (the_core_target): New.
4538 (core_close): Remove target_ops parameter.
4539 (core_close_cleanup): Adjust.
4540 (core_target::close): New.
4541 (core_open, core_detach, get_core_registers, core_files_info)
4542 (core_xfer_partial, core_thread_alive, core_read_description)
4543 (core_pid_to_str, core_thread_name, core_has_memory)
4544 (core_has_stack, core_has_registers, core_info_proc): Rework as
4545 core_target methods.
4546 (ignore, core_remove_breakpoint, init_core_ops): Delete.
4547 (_initialize_corelow): Initialize the_core_target.
4548 * gdbcore.h (core_target): Delete.
4549 (the_core_target): New.
4550
4551 * ctf.c: (ctf_target): New class.
4552 (ctf_ops): Now a ctf_target.
4553 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
4554 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
4555 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
4556 methods.
4557 (init_ctf_ops): Delete.
4558 (_initialize_ctf): Don't call it.
4559 * tracefile-tfile.c (tfile_target): New class.
4560 (tfile_ops): Now a tfile_target.
4561 (tfile_open, tfile_close, tfile_files_info)
4562 (tfile_get_tracepoint_status, tfile_trace_find)
4563 (tfile_fetch_registers, tfile_xfer_partial)
4564 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
4565 Refactor as tfile_target methods.
4566 (tfile_xfer_partial_features): Remove target_ops parameter.
4567 (init_tfile_ops): Delete.
4568 (_initialize_tracefile_tfile): Don't call it.
4569 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
4570 (tracefile_has_stack, tracefile_has_registers)
4571 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
4572 tracefile_target methods.
4573 (init_tracefile_ops): Delete.
4574 (tracefile_target::tracefile_target): New.
4575 * tracefile.h: Include "target.h".
4576 (tracefile_target): New class.
4577 (init_tracefile_ops): Delete.
4578
4579 * spu-multiarch.c (spu_multiarch_target): New class.
4580 (spu_ops): Now a spu_multiarch_target.
4581 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
4582 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4583 (spu_search_memory, spu_mourn_inferior): Refactor as
4584 spu_multiarch_target methods.
4585 (init_spu_ops): Delete.
4586 (_initialize_spu_multiarch): Remove references to init_spu_ops,
4587 complete_target_initialization.
4588
4589 * ravenscar-thread.c (ravenscar_thread_target): New class.
4590 (ravenscar_ops): Now a ravenscar_thread_target.
4591 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
4592 (ravenscar_thread_alive, ravenscar_pid_to_str)
4593 (ravenscar_fetch_registers, ravenscar_store_registers)
4594 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
4595 (ravenscar_stopped_by_hw_breakpoint)
4596 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
4597 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
4598 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
4599 methods.
4600 (init_ravenscar_thread_ops): Delete.
4601 (_initialize_ravenscar): Remove references to
4602 init_ravenscar_thread_ops and complete_target_initialization.
4603
4604 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
4605 (bsd_uthread_target): New class.
4606 (bsd_uthread_ops): Now a bsd_uthread_target.
4607 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
4608 (bsd_uthread_close, bsd_uthread_mourn_inferior)
4609 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
4610 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
4611 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
4612 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
4613 (bsd_uthread_target): Delete function.
4614 (_initialize_bsd_uthread): Remove reference to
4615 complete_target_initialization.
4616
4617 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
4618 (target_bfd): ... this new class.
4619 (target_bfd_xfer_partial, target_bfd_get_section_table)
4620 (target_bfd_close): Refactor as target_bfd methods.
4621 (target_bfd::~target_bfd): New.
4622 (target_bfd_reopen): Adjust.
4623 (target_bfd::close): New.
4624
4625 * record-btrace.c (record_btrace_target): New class.
4626 (record_btrace_ops): Now a record_btrace_target.
4627 (record_btrace_open, record_btrace_stop_recording)
4628 (record_btrace_disconnect, record_btrace_close)
4629 (record_btrace_async, record_btrace_info)
4630 (record_btrace_insn_history, record_btrace_insn_history_range)
4631 (record_btrace_insn_history_from, record_btrace_call_history)
4632 (record_btrace_call_history_range)
4633 (record_btrace_call_history_from, record_btrace_record_method)
4634 (record_btrace_is_replaying, record_btrace_will_replay)
4635 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4636 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
4637 (record_btrace_store_registers, record_btrace_prepare_to_store)
4638 (record_btrace_to_get_unwinder)
4639 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
4640 (record_btrace_commit_resume, record_btrace_wait)
4641 (record_btrace_stop, record_btrace_can_execute_reverse)
4642 (record_btrace_stopped_by_sw_breakpoint)
4643 (record_btrace_supports_stopped_by_sw_breakpoint)
4644 (record_btrace_stopped_by_hw_breakpoint)
4645 (record_btrace_supports_stopped_by_hw_breakpoint)
4646 (record_btrace_update_thread_list, record_btrace_thread_alive)
4647 (record_btrace_goto_begin, record_btrace_goto_end)
4648 (record_btrace_goto, record_btrace_stop_replaying_all)
4649 (record_btrace_execution_direction)
4650 (record_btrace_prepare_to_generate_core)
4651 (record_btrace_done_generating_core): Refactor as
4652 record_btrace_target methods.
4653 (init_record_btrace_ops): Delete.
4654 (_initialize_record_btrace): Remove reference to
4655 init_record_btrace_ops.
4656 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
4657 the execution_direction global.
4658 (record_full_base_target, record_full_target)
4659 (record_full_core_target): New classes.
4660 (record_full_ops): Now a record_full_target.
4661 (record_full_core_ops): Now a record_full_core_target.
4662 (record_full_target::detach, record_full_target::disconnect)
4663 (record_full_core_target::disconnect)
4664 (record_full_target::mourn_inferior, record_full_target::kill):
4665 New.
4666 (record_full_open, record_full_close, record_full_async): Refactor
4667 as methods of the record_full_base_target class.
4668 (record_full_resume, record_full_commit_resume): Refactor
4669 as methods of the record_full_target class.
4670 (record_full_wait, record_full_stopped_by_watchpoint)
4671 (record_full_stopped_data_address)
4672 (record_full_stopped_by_sw_breakpoint)
4673 (record_full_supports_stopped_by_sw_breakpoint)
4674 (record_full_stopped_by_hw_breakpoint)
4675 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
4676 methods of the record_full_base_target class.
4677 (record_full_store_registers, record_full_xfer_partial)
4678 (record_full_insert_breakpoint, record_full_remove_breakpoint):
4679 Refactor as methods of the record_full_target class.
4680 (record_full_can_execute_reverse, record_full_get_bookmark)
4681 (record_full_goto_bookmark, record_full_execution_direction)
4682 (record_full_record_method, record_full_info, record_full_delete)
4683 (record_full_is_replaying, record_full_will_replay)
4684 (record_full_goto_begin, record_full_goto_end, record_full_goto)
4685 (record_full_stop_replaying): Refactor as methods of the
4686 record_full_base_target class.
4687 (record_full_core_resume, record_full_core_kill)
4688 (record_full_core_fetch_registers)
4689 (record_full_core_prepare_to_store)
4690 (record_full_core_store_registers, record_full_core_xfer_partial)
4691 (record_full_core_insert_breakpoint)
4692 (record_full_core_remove_breakpoint)
4693 (record_full_core_has_execution): Refactor
4694 as methods of the record_full_core_target class.
4695 (record_full_base_target::supports_delete_record): New.
4696 (init_record_full_ops): Delete.
4697 (init_record_full_core_ops): Delete.
4698 (record_full_save): Refactor as method of the
4699 record_full_base_target class.
4700 (_initialize_record_full): Remove references to
4701 init_record_full_ops and init_record_full_core_ops.
4702
4703 * remote.c (remote_target, extended_remote_target): New classes.
4704 (remote_ops): Now a remote_target.
4705 (extended_remote_ops): Now an extended_remote_target.
4706 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
4707 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
4708 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
4709 (remote_pass_signals, remote_set_syscall_catchpoint)
4710 (remote_program_signals, )
4711 (remote_thread_always_alive): Remove target_ops parameter.
4712 (remote_thread_alive, remote_thread_name)
4713 (remote_update_thread_list, remote_threads_extra_info)
4714 (remote_static_tracepoint_marker_at)
4715 (remote_static_tracepoint_markers_by_strid)
4716 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
4717 (remote_open): Refactor as methods of remote_target.
4718 (extended_remote_open, extended_remote_detach)
4719 (extended_remote_attach, extended_remote_post_attach):
4720 (extended_remote_supports_disable_randomization)
4721 (extended_remote_create_inferior): : Refactor as method of
4722 extended_remote_target.
4723 (remote_set_permissions, remote_open_1, remote_detach)
4724 (remote_follow_fork, remote_follow_exec, remote_disconnect)
4725 (remote_resume, remote_commit_resume, remote_stop)
4726 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
4727 (remote_terminal_ours, remote_wait, remote_fetch_registers)
4728 (remote_prepare_to_store, remote_store_registers)
4729 (remote_flash_erase, remote_flash_done, remote_files_info)
4730 (remote_kill, remote_mourn, remote_insert_breakpoint)
4731 (remote_remove_breakpoint, remote_insert_watchpoint)
4732 (remote_watchpoint_addr_within_range)
4733 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
4734 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
4735 (remote_supports_stopped_by_sw_breakpoint)
4736 (remote_stopped_by_hw_breakpoint)
4737 (remote_supports_stopped_by_hw_breakpoint)
4738 (remote_stopped_by_watchpoint, remote_stopped_data_address)
4739 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
4740 (remote_verify_memory): Refactor as methods of remote_target.
4741 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
4742 parameter.
4743 (remote_xfer_partial, remote_get_memory_xfer_limit)
4744 (remote_search_memory, remote_rcmd, remote_memory_map)
4745 (remote_pid_to_str, remote_get_thread_local_address)
4746 (remote_get_tib_address, remote_read_description): Refactor as
4747 methods of remote_target.
4748 (remote_target::fileio_open, remote_target::fileio_pwrite)
4749 (remote_target::fileio_pread, remote_target::fileio_close): New.
4750 (remote_hostio_readlink, remote_hostio_fstat)
4751 (remote_filesystem_is_local, remote_can_execute_reverse)
4752 (remote_supports_non_stop, remote_supports_disable_randomization)
4753 (remote_supports_multi_process, remote_supports_cond_breakpoints)
4754 (remote_supports_enable_disable_tracepoint)
4755 (remote_supports_string_tracing)
4756 (remote_can_run_breakpoint_commands, remote_trace_init)
4757 (remote_download_tracepoint, remote_can_download_tracepoint)
4758 (remote_download_trace_state_variable, remote_enable_tracepoint)
4759 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
4760 (remote_trace_start, remote_get_trace_status)
4761 (remote_get_tracepoint_status, remote_trace_stop)
4762 (remote_trace_find, remote_get_trace_state_variable_value)
4763 (remote_save_trace_data, remote_get_raw_trace_data)
4764 (remote_set_disconnected_tracing, remote_core_of_thread)
4765 (remote_set_circular_trace_buffer, remote_traceframe_info)
4766 (remote_get_min_fast_tracepoint_insn_len)
4767 (remote_set_trace_buffer_size, remote_set_trace_notes)
4768 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
4769 (remote_disable_btrace, remote_teardown_btrace)
4770 (remote_read_btrace, remote_btrace_conf)
4771 (remote_augmented_libraries_svr4_read, remote_load)
4772 (remote_pid_to_exec_file, remote_can_do_single_step)
4773 (remote_execution_direction, remote_thread_handle_to_thread_info):
4774 Refactor as methods of remote_target.
4775 (init_remote_ops, init_extended_remote_ops): Delete.
4776 (remote_can_async_p, remote_is_async_p, remote_async)
4777 (remote_thread_events, remote_upload_tracepoints)
4778 (remote_upload_trace_state_variables): Refactor as methods of
4779 remote_target.
4780 (_initialize_remote): Remove references to init_remote_ops and
4781 init_extended_remote_ops.
4782
4783 * remote-sim.c (gdbsim_target): New class.
4784 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
4785 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
4786 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
4787 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
4788 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
4789 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
4790 Refactor as methods of gdbsim_target.
4791 (gdbsim_ops): Now a gdbsim_target.
4792 (init_gdbsim_ops): Delete.
4793 (gdbsim_cntrl_c): Adjust.
4794 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
4795
4796 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
4797 (the_amd64_linux_nat_target): New.
4798 (amd64_linux_fetch_inferior_registers)
4799 (amd64_linux_store_inferior_registers): Refactor as methods of
4800 amd64_linux_nat_target.
4801 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
4802 * i386-linux-nat.c: Don't include "linux-nat.h".
4803 (i386_linux_nat_target): New class.
4804 (the_i386_linux_nat_target): New.
4805 (i386_linux_fetch_inferior_registers)
4806 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
4807 as methods of i386_linux_nat_target.
4808 (_initialize_i386_linux_nat): Adjust. Set linux_target.
4809 * inf-child.c (inf_child_ops): Delete.
4810 (inf_child_fetch_inferior_registers)
4811 (inf_child_store_inferior_registers): Delete.
4812 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
4813 methods of inf_child_target.
4814 (inf_child_target::supports_terminal_ours)
4815 (inf_child_target::terminal_init)
4816 (inf_child_target::terminal_inferior)
4817 (inf_child_target::terminal_ours_for_output)
4818 (inf_child_target::terminal_ours, inf_child_target::interrupt)
4819 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
4820 New.
4821 (inf_child_open, inf_child_disconnect, inf_child_close)
4822 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
4823 (inf_child_post_startup_inferior, inf_child_can_run)
4824 (inf_child_pid_to_exec_file): Refactor as methods of
4825 inf_child_target.
4826 (inf_child_follow_fork): Delete.
4827 (inf_child_target::can_create_inferior)
4828 (inf_child_target::can_attach): New.
4829 (inf_child_target::has_all_memory, inf_child_target::has_memory)
4830 (inf_child_target::has_stack, inf_child_target::has_registers)
4831 (inf_child_target::has_execution): New.
4832 (inf_child_fileio_open, inf_child_fileio_pwrite)
4833 (inf_child_fileio_pread, inf_child_fileio_fstat)
4834 (inf_child_fileio_close, inf_child_fileio_unlink)
4835 (inf_child_fileio_readlink, inf_child_use_agent)
4836 (inf_child_can_use_agent): Refactor as methods of
4837 inf_child_target.
4838 (return_zero, inf_child_target): Delete.
4839 (inf_child_target::inf_child_target): New.
4840 * inf-child.h: Include "target.h".
4841 (inf_child_target): Delete function prototype.
4842 (inf_child_target): New class.
4843 (inf_child_open_target, inf_child_mourn_inferior)
4844 (inf_child_maybe_unpush_target): Delete.
4845 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
4846 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
4847 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
4848 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
4849 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
4850 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
4851 (inf_ptrace_wait, inf_ptrace_xfer_partial)
4852 (inf_ptrace_thread_alive, inf_ptrace_files_info)
4853 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
4854 methods of inf_ptrace_target.
4855 (inf_ptrace_target): Delete function.
4856 * inf-ptrace.h: Include "inf-child.h".
4857 (inf_ptrace_target): Delete function declaration.
4858 (inf_ptrace_target): New class.
4859 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
4860 * linux-nat.c (linux_target): New.
4861 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
4862 (linux_nat_target::~linux_nat_target): New.
4863 (linux_child_post_attach, linux_child_post_startup_inferior)
4864 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
4865 (linux_child_remove_fork_catchpoint)
4866 (linux_child_insert_vfork_catchpoint)
4867 (linux_child_remove_vfork_catchpoint)
4868 (linux_child_insert_exec_catchpoint)
4869 (linux_child_remove_exec_catchpoint)
4870 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
4871 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
4872 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
4873 (linux_nat_stopped_data_address)
4874 (linux_nat_stopped_by_sw_breakpoint)
4875 (linux_nat_supports_stopped_by_sw_breakpoint)
4876 (linux_nat_stopped_by_hw_breakpoint)
4877 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
4878 (linux_nat_kill, linux_nat_mourn_inferior)
4879 (linux_nat_xfer_partial, linux_nat_thread_alive)
4880 (linux_nat_update_thread_list, linux_nat_pid_to_str)
4881 (linux_nat_thread_name, linux_child_pid_to_exec_file)
4882 (linux_child_static_tracepoint_markers_by_strid)
4883 (linux_nat_is_async_p, linux_nat_can_async_p)
4884 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
4885 (linux_nat_supports_multi_process)
4886 (linux_nat_supports_disable_randomization, linux_nat_async)
4887 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
4888 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
4889 (linux_nat_fileio_open, linux_nat_fileio_readlink)
4890 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
4891 methods of linux_nat_target.
4892 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
4893 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
4894 parameter.
4895 (check_stopped_by_watchpoint): Adjust.
4896 (linux_xfer_partial): Delete.
4897 (linux_target_install_ops, linux_target, linux_nat_add_target):
4898 Delete.
4899 (linux_nat_target::linux_nat_target): New.
4900 * linux-nat.h: Include "inf-ptrace.h".
4901 (linux_nat_target): New.
4902 (linux_target, linux_target_install_ops, linux_nat_add_target):
4903 Delete function declarations.
4904 (linux_target): Declare global.
4905 * linux-thread-db.c (thread_db_target): New.
4906 (thread_db_target::thread_db_target): New.
4907 (thread_db_ops): Delete.
4908 (the_thread_db_target): New.
4909 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
4910 (thread_db_update_thread_list, thread_db_pid_to_str)
4911 (thread_db_extra_thread_info)
4912 (thread_db_thread_handle_to_thread_info)
4913 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
4914 (thread_db_resume): Refactor as methods of thread_db_target.
4915 (init_thread_db_ops): Delete.
4916 (_initialize_thread_db): Remove reference to init_thread_db_ops.
4917 * x86-linux-nat.c: Don't include "linux-nat.h".
4918 (super_post_startup_inferior): Delete.
4919 (x86_linux_nat_target::~x86_linux_nat_target): New.
4920 (x86_linux_child_post_startup_inferior)
4921 (x86_linux_read_description, x86_linux_enable_btrace)
4922 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
4923 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
4924 methods of x86_linux_nat_target.
4925 (x86_linux_create_target): Delete. Bits folded ...
4926 (x86_linux_add_target): ... here. Now takes a linux_nat_target
4927 pointer.
4928 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
4929 (x86_linux_nat_target): New class.
4930 (x86_linux_create_target): Delete.
4931 (x86_linux_add_target): Now takes a linux_nat_target pointer.
4932 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
4933 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
4934 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
4935 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
4936 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
4937 make extern.
4938 (x86_use_watchpoints): Delete.
4939 * x86-nat.h: Include "breakpoint.h" and "target.h".
4940 (x86_use_watchpoints): Delete.
4941 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
4942 (x86_stopped_by_watchpoint, x86_stopped_data_address)
4943 (x86_insert_watchpoint, x86_remove_watchpoint)
4944 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
4945 (x86_stopped_by_hw_breakpoint): New declarations.
4946 (x86_nat_target): New template class.
4947
4948 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
4949 (the_ppc_linux_nat_target): New.
4950 (ppc_linux_fetch_inferior_registers)
4951 (ppc_linux_can_use_hw_breakpoint)
4952 (ppc_linux_region_ok_for_hw_watchpoint)
4953 (ppc_linux_ranged_break_num_registers)
4954 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
4955 (ppc_linux_insert_mask_watchpoint)
4956 (ppc_linux_remove_mask_watchpoint)
4957 (ppc_linux_can_accel_watchpoint_condition)
4958 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
4959 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
4960 (ppc_linux_watchpoint_addr_within_range)
4961 (ppc_linux_masked_watch_num_registers)
4962 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
4963 (ppc_linux_read_description): Refactor as methods of
4964 ppc_linux_nat_target.
4965 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
4966
4967 * procfs.c (procfs_xfer_partial): Delete forward declaration.
4968 (procfs_target): New class.
4969 (the_procfs_target): New.
4970 (procfs_target): Delete function.
4971 (procfs_auxv_parse, procfs_attach, procfs_detach)
4972 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
4973 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
4974 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
4975 (procfs_create_inferior, procfs_update_thread_list)
4976 (procfs_thread_alive, procfs_pid_to_str)
4977 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
4978 (procfs_stopped_data_address, procfs_insert_watchpoint)
4979 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
4980 (proc_find_memory_regions, procfs_info_proc)
4981 (procfs_make_note_section): Refactor as methods of procfs_target.
4982 (_initialize_procfs): Adjust.
4983 * sol-thread.c (sol_thread_target): New class.
4984 (sol_thread_ops): Now a sol_thread_target.
4985 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
4986 (sol_thread_fetch_registers, sol_thread_store_registers)
4987 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
4988 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
4989 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
4990 (init_sol_thread_ops): Delete.
4991 (_initialize_sol_thread): Adjust. Remove references to
4992 init_sol_thread_ops and complete_target_initialization.
4993
4994 * windows-nat.c (windows_nat_target): New class.
4995 (windows_fetch_inferior_registers)
4996 (windows_store_inferior_registers, windows_resume, windows_wait)
4997 (windows_attach, windows_detach, windows_pid_to_exec_file)
4998 (windows_files_info, windows_create_inferior)
4999 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
5000 (windows_close, windows_pid_to_str, windows_xfer_partial)
5001 (windows_get_tib_address, windows_get_ada_task_ptid)
5002 (windows_thread_name, windows_thread_alive): Refactor as
5003 windows_nat_target methods.
5004 (do_initial_windows_stuff): Adjust.
5005 (windows_target): Delete function.
5006 (_initialize_windows_nat): Adjust.
5007
5008 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
5009 (darwin_mourn_inferior, darwin_kill_inferior)
5010 (darwin_create_inferior, darwin_attach, darwin_detach)
5011 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
5012 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
5013 (darwin_supports_multi_process): Refactor as darwin_nat_target
5014 methods.
5015 (darwin_resume_to, darwin_files_info): Delete.
5016 (_initialize_darwin_inferior): Rename to ...
5017 (_initialize_darwin_nat): ... this. Adjust to C++ification.
5018 * darwin-nat.h: Include "inf-child.h".
5019 (darwin_nat_target): New class.
5020 (darwin_complete_target): Delete.
5021 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
5022 (darwin_target): New.
5023 (i386_darwin_fetch_inferior_registers)
5024 (i386_darwin_store_inferior_registers): Refactor as methods of
5025 darwin_nat_target.
5026 (darwin_complete_target): Delete, with ...
5027 (_initialize_i386_darwin_nat): ... bits factored out here.
5028
5029 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
5030 (the_alpha_linux_nat_target): New.
5031 (alpha_linux_register_u_offset): Refactor as
5032 alpha_linux_nat_target method.
5033 (_initialize_alpha_linux_nat): Adjust.
5034 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
5035 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5036 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
5037 methods of linux_nat_trad_target.
5038 (linux_trad_target): Delete.
5039 * linux-nat-trad.h (linux_trad_target): Delete function.
5040 (linux_nat_trad_target): New class.
5041 * mips-linux-nat.c (mips_linux_nat_target): New class.
5042 (super_fetch_registers, super_store_registers, super_close):
5043 Delete.
5044 (the_mips_linux_nat_target): New.
5045 (mips64_linux_regsets_fetch_registers)
5046 (mips64_linux_regsets_store_registers)
5047 (mips64_linux_fetch_registers, mips64_linux_store_registers)
5048 (mips_linux_register_u_offset, mips_linux_read_description)
5049 (mips_linux_can_use_hw_breakpoint)
5050 (mips_linux_stopped_by_watchpoint)
5051 (mips_linux_stopped_data_address)
5052 (mips_linux_region_ok_for_hw_watchpoint)
5053 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
5054 (mips_linux_close): Refactor as methods of mips_linux_nat.
5055 (_initialize_mips_linux_nat): Adjust to C++ification.
5056
5057 * aix-thread.c (aix_thread_target): New class.
5058 (aix_thread_ops): Now an aix_thread_target.
5059 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
5060 (aix_thread_fetch_registers, aix_thread_store_registers)
5061 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
5062 (aix_thread_thread_alive, aix_thread_pid_to_str)
5063 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
5064 Refactor as methods of aix_thread_target.
5065 (init_aix_thread_ops): Delete.
5066 (_initialize_aix_thread): Remove references to init_aix_thread_ops
5067 and complete_target_initialization.
5068 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
5069 (rs6000_nat_target): New class.
5070 (the_rs6000_nat_target): New.
5071 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
5072 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
5073 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
5074 (super_create_inferior): Delete.
5075 (_initialize_rs6000_nat): Adjust to C++ification.
5076
5077 * arm-linux-nat.c (arm_linux_nat_target): New class.
5078 (the_arm_linux_nat_target): New.
5079 (arm_linux_fetch_inferior_registers)
5080 (arm_linux_store_inferior_registers, arm_linux_read_description)
5081 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
5082 (arm_linux_remove_hw_breakpoint)
5083 (arm_linux_region_ok_for_hw_watchpoint)
5084 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
5085 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
5086 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
5087 arm_linux_nat_target.
5088 (_initialize_arm_linux_nat): Adjust to C++ification.
5089
5090 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
5091 (the_aarch64_linux_nat_target): New.
5092 (aarch64_linux_fetch_inferior_registers)
5093 (aarch64_linux_store_inferior_registers)
5094 (aarch64_linux_child_post_startup_inferior)
5095 (aarch64_linux_read_description)
5096 (aarch64_linux_can_use_hw_breakpoint)
5097 (aarch64_linux_insert_hw_breakpoint)
5098 (aarch64_linux_remove_hw_breakpoint)
5099 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
5100 (aarch64_linux_region_ok_for_hw_watchpoint)
5101 (aarch64_linux_stopped_data_address)
5102 (aarch64_linux_stopped_by_watchpoint)
5103 (aarch64_linux_watchpoint_addr_within_range)
5104 (aarch64_linux_can_do_single_step): Refactor as methods of
5105 aarch64_linux_nat_target.
5106 (super_post_startup_inferior): Delete.
5107 (_initialize_aarch64_linux_nat): Adjust to C++ification.
5108
5109 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
5110 (the_hppa_linux_nat_target): New.
5111 (hppa_linux_fetch_inferior_registers)
5112 (hppa_linux_store_inferior_registers): Refactor as methods of
5113 hppa_linux_nat_target.
5114 (_initialize_hppa_linux_nat): Adjust to C++ification.
5115
5116 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
5117 (the_ia64_linux_nat_target): New.
5118 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5119 (ia64_linux_stopped_data_address)
5120 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
5121 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
5122 ia64_linux_nat_target methods.
5123 (super_xfer_partial): Delete.
5124 (_initialize_ia64_linux_nat): Adjust to C++ification.
5125
5126 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
5127 (the_m32r_linux_nat_target): New.
5128 (m32r_linux_fetch_inferior_registers)
5129 (m32r_linux_store_inferior_registers): Refactor as
5130 m32r_linux_nat_target methods.
5131 (_initialize_m32r_linux_nat): Adjust to C++ification.
5132
5133 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
5134 (the_m68k_linux_nat_target): New.
5135 (m68k_linux_fetch_inferior_registers)
5136 (m68k_linux_store_inferior_registers): Refactor as
5137 m68k_linux_nat_target methods.
5138 (_initialize_m68k_linux_nat): Adjust to C++ification.
5139
5140 * s390-linux-nat.c (s390_linux_nat_target): New class.
5141 (the_s390_linux_nat_target): New.
5142 (s390_linux_fetch_inferior_registers)
5143 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
5144 (s390_insert_watchpoint, s390_remove_watchpoint)
5145 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
5146 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
5147 (s390_auxv_parse, s390_read_description): Refactor as methods of
5148 s390_linux_nat_target.
5149 (_initialize_s390_nat): Adjust to C++ification.
5150
5151 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
5152 (the_sparc_linux_nat_target): New.
5153 (_initialize_sparc_linux_nat): Adjust to C++ification.
5154 * sparc-nat.c (sparc_fetch_inferior_registers)
5155 (sparc_store_inferior_registers): Remove target_ops parameter.
5156 * sparc-nat.h (sparc_fetch_inferior_registers)
5157 (sparc_store_inferior_registers): Remove target_ops parameter.
5158 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
5159 (the_sparc64_linux_nat_target): New.
5160 (_initialize_sparc64_linux_nat): Adjust to C++ification.
5161
5162 * spu-linux-nat.c (spu_linux_nat_target): New class.
5163 (the_spu_linux_nat_target): New.
5164 (spu_child_post_startup_inferior, spu_child_post_attach)
5165 (spu_child_wait, spu_fetch_inferior_registers)
5166 (spu_store_inferior_registers, spu_xfer_partial)
5167 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
5168 methods.
5169 (_initialize_spu_nat): Adjust to C++ification.
5170
5171 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
5172 (the_tilegx_linux_nat_target): New.
5173 (fetch_inferior_registers, store_inferior_registers):
5174 Refactor as methods.
5175 (_initialize_tile_linux_nat): Adjust to C++ification.
5176
5177 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
5178 (the_xtensa_linux_nat_target): New.
5179 (xtensa_linux_fetch_inferior_registers)
5180 (xtensa_linux_store_inferior_registers): Refactor as
5181 xtensa_linux_nat_target methods.
5182 (_initialize_xtensa_linux_nat): Adjust to C++ification.
5183
5184 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
5185 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
5186 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
5187 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
5188 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
5189 (fbsd_stopped_by_sw_breakpoint)
5190 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
5191 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
5192 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
5193 (fbsd_post_startup_inferior, fbsd_post_attach)
5194 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
5195 (fbsd_set_syscall_catchpoint)
5196 (super_xfer_partial, super_resume, super_wait)
5197 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
5198 (fbsd_handle_debug_trap): Remove target_ops parameter.
5199 (fbsd_nat_add_target): Delete.
5200 * fbsd-nat.h: Include "inf-ptrace.h".
5201 (fbsd_nat_add_target): Delete.
5202 (USE_SIGTRAP_SIGINFO): Define.
5203 (fbsd_nat_target): New class.
5204
5205 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
5206 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
5207 (amd64bsd_target): Delete.
5208 * amd64-bsd-nat.h: New file.
5209 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
5210 "x86-bsd-nat.h".
5211 (amd64_fbsd_nat_target): New class.
5212 (the_amd64_fbsd_nat_target): New.
5213 (amd64fbsd_read_description): Refactor as method of
5214 amd64_fbsd_nat_target.
5215 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5216 (_initialize_amd64fbsd_nat): Adjust to C++ification.
5217 * amd64-nat.h (amd64bsd_target): Delete function declaration.
5218 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
5219 (i386bsd_store_inferior_registers): Remove target_ops parameter.
5220 (i386bsd_target): Delete.
5221 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
5222 (i386bsd_fetch_inferior_registers)
5223 (i386bsd_store_inferior_registers): Declare.
5224 (i386_bsd_nat_target): New class.
5225 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
5226 (the_i386_fbsd_nat_target): New.
5227 (i386fbsd_resume, i386fbsd_read_description): Refactor as
5228 i386_fbsd_nat_target methods.
5229 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
5230 (_initialize_i386fbsd_nat): Adjust to C++ification.
5231 * x86-bsd-nat.c (super_mourn_inferior): Delete.
5232 (x86bsd_mourn_inferior, x86bsd_target): Delete.
5233 (_initialize_x86_bsd_nat): Adjust to C++ification.
5234 * x86-bsd-nat.h: Include "x86-nat.h".
5235 (x86bsd_target): Delete declaration.
5236 (x86bsd_nat_target): New class.
5237
5238 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
5239 (the_aarch64_fbsd_nat_target): New.
5240 (aarch64_fbsd_fetch_inferior_registers)
5241 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
5242 aarch64_fbsd_nat_target.
5243 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
5244 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
5245 (the_alpha_bsd_nat_target): New.
5246 (alphabsd_fetch_inferior_registers)
5247 (alphabsd_store_inferior_registers): Refactor as
5248 alpha_bsd_nat_target methods.
5249 (_initialize_alphabsd_nat): Refactor as methods of
5250 alpha_bsd_nat_target.
5251 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
5252 (the_amd64_nbsd_nat_target): New.
5253 (_initialize_amd64nbsd_nat): Adjust to C++ification.
5254 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
5255 (the_amd64_obsd_nat_target): New.
5256 (_initialize_amd64obsd_nat): Adjust to C++ification.
5257 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
5258 (the_arm_fbsd_nat_target): New.
5259 (arm_fbsd_fetch_inferior_registers)
5260 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
5261 (_initialize_arm_fbsd_nat): Refactor as methods of
5262 arm_fbsd_nat_target.
5263 (_initialize_arm_fbsd_nat): Adjust to C++ification.
5264 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
5265 (the_arm_netbsd_nat_target): New.
5266 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
5267 arm_netbsd_nat_target.
5268 (_initialize_arm_netbsd_nat): Adjust to C++ification.
5269 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
5270 (the_hppa_nbsd_nat_target): New.
5271 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
5272 hppa_nbsd_nat_target methods.
5273 (_initialize_hppanbsd_nat): Adjust to C++ification.
5274 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
5275 (the_hppa_obsd_nat_target): New.
5276 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
5277 methods of hppa_obsd_nat_target.
5278 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
5279 add_target.
5280 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
5281 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
5282 add_target.
5283 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
5284 (_initialize_i386obsd_nat): Use add_target.
5285 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
5286 (the_m68k_bsd_nat_target): New.
5287 (m68kbsd_fetch_inferior_registers)
5288 (m68kbsd_store_inferior_registers): Refactor as methods of
5289 m68k_bsd_nat_target.
5290 (_initialize_m68kbsd_nat): Adjust to C++ification.
5291 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
5292 (the_mips_fbsd_nat_target): New.
5293 (mips_fbsd_fetch_inferior_registers)
5294 (mips_fbsd_store_inferior_registers): Refactor as methods of
5295 mips_fbsd_nat_target.
5296 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
5297 add_target.
5298 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
5299 (the_mips_nbsd_nat_target): New.
5300 (mipsnbsd_fetch_inferior_registers)
5301 (mipsnbsd_store_inferior_registers): Refactor as methods of
5302 mips_nbsd_nat_target.
5303 (_initialize_mipsnbsd_nat): Adjust to C++ification.
5304 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
5305 (the_mips64_obsd_nat_target): New.
5306 (mips64obsd_fetch_inferior_registers)
5307 (mips64obsd_store_inferior_registers): Refactor as methods of
5308 mips64_obsd_nat_target.
5309 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
5310 add_target.
5311 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
5312 nbsd_nat_target.
5313 * nbsd-nat.h: Include "inf-ptrace.h".
5314 (nbsd_nat_target): New class.
5315 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
5316 (obsd_wait): Refactor as methods of obsd_nat_target.
5317 (obsd_add_target): Delete.
5318 * obsd-nat.h: Include "inf-ptrace.h".
5319 (obsd_nat_target): New class.
5320 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
5321 (the_ppc_fbsd_nat_target): New.
5322 (ppcfbsd_fetch_inferior_registers)
5323 (ppcfbsd_store_inferior_registers): Refactor as methods of
5324 ppc_fbsd_nat_target.
5325 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
5326 add_target.
5327 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
5328 (the_ppc_nbsd_nat_target): New.
5329 (ppcnbsd_fetch_inferior_registers)
5330 (ppcnbsd_store_inferior_registers): Refactor as methods of
5331 ppc_nbsd_nat_target.
5332 (_initialize_ppcnbsd_nat): Adjust to C++ification.
5333 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
5334 (the_ppc_obsd_nat_target): New.
5335 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
5336 methods of ppc_obsd_nat_target.
5337 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
5338 add_target.
5339 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
5340 (the_sh_nbsd_nat_target): New.
5341 (shnbsd_fetch_inferior_registers)
5342 (shnbsd_store_inferior_registers): Refactor as methods of
5343 sh_nbsd_nat_target.
5344 (_initialize_shnbsd_nat): Adjust to C++ification.
5345 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
5346 (inf_ptrace_xfer_partial): Delete.
5347 (sparc_xfer_partial, sparc_target): Delete.
5348 * sparc-nat.h (sparc_fetch_inferior_registers)
5349 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
5350 (sparc_target): Delete function declaration.
5351 (sparc_target): New template class.
5352 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
5353 (_initialize_sparcnbsd_nat): Adjust to C++ification.
5354 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
5355 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
5356 add_target.
5357 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
5358 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
5359 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
5360 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
5361 add_target.
5362 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
5363 (the_vax_bsd_nat_target): New.
5364 (vaxbsd_fetch_inferior_registers)
5365 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
5366 methods.
5367 (_initialize_vaxbsd_nat): Adjust to C++ification.
5368
5369 * bsd-kvm.c (bsd_kvm_target): New class.
5370 (bsd_kvm_ops): Now a bsd_kvm_target.
5371 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
5372 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
5373 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
5374 bsd_kvm_target.
5375 (bsd_kvm_return_one): Delete.
5376 (bsd_kvm_add_target): Adjust to C++ification.
5377
5378 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
5379 (nto_procfs_target_procfs): New classes.
5380 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
5381 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
5382 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
5383 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
5384 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
5385 (procfs_remove_hw_breakpoint, procfs_resume)
5386 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
5387 (procfs_kill_inferior, procfs_store_registers)
5388 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
5389 as methods of nto_procfs_target.
5390 (nto_procfs_ops): Now an nto_procfs_target_procfs.
5391 (nto_native_ops): Delete.
5392 (procfs_open, procfs_native_open): Delete.
5393 (nto_native_ops): Now an nto_procfs_target_native.
5394 (init_procfs_targets): Adjust to C++ification.
5395 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
5396 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
5397 Refactor as methods of nto_procfs_target.
5398
5399 * go32-nat.c (go32_nat_target): New class.
5400 (the_go32_nat_target): New.
5401 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
5402 (go32_store_registers, go32_xfer_partial, go32_files_info)
5403 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
5404 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
5405 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
5406 (go32_pid_to_str): Refactor as methods of go32_nat_target.
5407 (go32_target): Delete.
5408 (_initialize_go32_nat): Adjust to C++ification.
5409
5410 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
5411 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
5412 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
5413 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
5414 gnu_nat_target.
5415 (gnu_target): Delete.
5416 * gnu-nat.h (gnu_target): Delete.
5417 (gnu_nat_target): New class.
5418 * i386-gnu-nat.c (gnu_base_target): New.
5419 (i386_gnu_nat_target): New class.
5420 (the_i386_gnu_nat_target): New.
5421 (_initialize_i386gnu_nat): Adjust to C++ification.
5422
3fffc070
PA
54232018-05-02 Pedro Alves <palves@redhat.com>
5424
5425 * bfd-target.c (target_bfd_xclose): Rename to ...
5426 (target_bfd_close): ... this.
5427 (target_bfd_reopen): Adjust.
5428 * target.c (target_close): Remove references to to_xclose.
5429 * target.h (target_ops::to_xclose): Delete.
5430 (target_ops::to_close): Update comments.
5431
6798487f
PA
54322018-05-02 Pedro Alves <palves@redhat.com>
5433
5434 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
5435 "linux-nat.h".
5436 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
5437 * inf-ptrace.c (inf_ptrace_register_u_offset)
5438 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
5439 (inf_ptrace_store_register, inf_ptrace_store_registers)
5440 (inf_ptrace_trad_target): Move to ...
5441 * linux-nat-trad.c: ... this new file.
5442 * linux-nat-trad.h: New file.
5443 * linux-nat.c (linux_target_install_ops): Make extern.
5444 (linux_trad_target): Delete.
5445 * linux-nat.h (linux_trad_target): Delete declaration.
5446 (linux_target_install_ops): Declare.
5447 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
5448 "linux-nat.h".
5449
c1955e17
PA
54502018-05-02 Pedro Alves <palves@redhat.com>
5451
5452 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5453 procfs_target/add_target here.
5454 * procfs.c (procfs_target): Make static.
5455 (_initialize_procfs): Call add_target here.
5456 * procfs.h (struct target_ops): Remove forward declaration.
5457 (procfs_target): Remove declaration.
5458 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
5459
b5c8fcb1
PA
54602018-05-02 Pedro Alves <palves@redhat.com>
5461
5462 * procfs.c (procfs_stopped_by_watchpoint)
5463 (procfs_insert_watchpoint, procfs_remove_watchpoint)
5464 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
5465 Forward declare.
5466 (procfs_use_watchpoints): Delete, move contents...
5467 (procfs_target): ... here.
5468 * procfs.h (procfs_use_watchpoints): Delete declaration.
5469 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
5470 procfs_use_watchpoints.
5471 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
5472 procfs_use_watchpoints.
5473
0489430a
TT
54742018-05-02 Tom Tromey <tom@tromey.com>
5475
5476 PR python/20084:
5477 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
5478 and var_zuinteger_unlimited.
5479 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
5480 and PARAM_ZUINTEGER_UNLIMITED.
5481 (set_parameter_value): Handle var_zuinteger and
5482 var_zuinteger_unlimited.
5483 (add_setshow_generic): Likewise.
5484 (parmpy_init): Likewise.
5485
1632f8ba
DR
54862018-04-28 Dan Robertson <danlrobertson89@gmail.com>
5487
5488 PR rust/23124
5489 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
5490 pointer is not null before dereferencing it.
5491
76761936
TT
54922018-04-30 Tom Tromey <tom@tromey.com>
5493
5494 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
5495 is_mi_like_p.
5496
2d33446d
TT
54972018-04-30 Tom Tromey <tom@tromey.com>
5498
5499 * breakpoint.c (mention): Remove use of is_mi_like_p.
5500 (print_mention_ranged_breakpoint): Likewise.
5501 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
5502 of is_mi_like_p.
5503
f3c6abab
TT
55042018-04-30 Tom Tromey <tom@tromey.com>
5505
5506 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
5507
40c03530
TT
55082018-04-30 Tom Tromey <tom@tromey.com>
5509
5510 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
5511 (info_spu_event_command): Remove some uses of is_mi_like_p.
5512
2038b7fd
TT
55132018-04-30 Tom Tromey <tom@tromey.com>
5514
5515 * python/py-framefilter.c (py_print_single_arg)
5516 (enumerate_locals, py_print_args, py_print_frame): Remove some
5517 uses of is_mi_like_p.
5518
4904c3c6
TT
55192018-04-30 Tom Tromey <tom@tromey.com>
5520
5521 * ui-out.c: Update.
5522 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
5523 * ui-out.h (ui_out::is_mi_like_p): Now const.
5524 (ui_out::do_is_mi_like_p): Now const.
5525 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
5526
7c66fffc
TT
55272018-04-30 Tom Tromey <tom@tromey.com>
5528
5529 * varobj.c (varobj_set_visualizer): Use new_reference.
5530 * python/python.c (gdbpy_decode_line): Use new_reference.
5531 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
5532 new_reference.
5533
bbfa6f00
TT
55342018-04-30 Tom Tromey <tom@tromey.com>
5535
5536 * varobj.c (install_new_value): Use new_reference.
5537 * value.h (value_incref): Return void. Swap intro comment with
5538 value_decref.
5539 * value.c (set_value_parent): Use new_reference.
5540 (value_incref): Return void. Update intro comment.
5541 (release_value): Use new_reference.
5542 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
5543
1831a9f9
TT
55442018-04-30 Tom Tromey <tom@tromey.com>
5545
5546 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
5547 * gdb_bfd.h (new_bfd_ref): Remove.
5548 (gdb_bfd_open): Update comment.
5549 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5550 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
5551 (gdb_bfd_fdopenr): Use new_reference.
5552 * exec.c (exec_file_attach): Use new_reference.
5553
7c1b5f3d
TT
55542018-04-30 Tom Tromey <tom@tromey.com>
5555
5556 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
5557 method.
5558
e11fb955
TT
55592018-04-30 Tom Tromey <tom@tromey.com>
5560
5561 * jit.c (jit_read_code_entry): Use type_align.
5562 * i386-tdep.c (i386_gdbarch_init): Don't call
5563 set_gdbarch_long_long_align_bit.
5564 * gdbarch.sh: Remove long_long_align_bit.
5565 * gdbarch.c, gdbarch.h: Rebuild.
5566 * arc-tdep.c (arc_type_align): New function.
5567 (arc_gdbarch_init): Use arc_type_align. Don't call
5568 set_gdbarch_long_long_align_bit.
5569
2fff16dd
TT
55702018-04-30 Tom Tromey <tom@tromey.com>
5571
5572 * rust-lang.c (rust_type_alignment): Remove.
5573 (rust_composite_type): Use type_align.
5574
6d7bb824
TT
55752018-04-30 Tom Tromey <tom@tromey.com>
5576
5577 * NEWS: Mention Type.align.
5578 * python/py-type.c (typy_get_alignof): New function.
5579 (type_object_getset): Add "alignof".
5580
007e1530
TT
55812018-04-30 Tom Tromey <tom@tromey.com>
5582
5583 PR exp/17095:
5584 * NEWS: Update.
5585 * std-operator.def (UNOP_ALIGNOF): New operator.
5586 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
5587 New.
5588 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
5589 * c-lang.c (c_op_print_tab): Add alignof.
5590 * c-exp.y (ALIGNOF): New token.
5591 (exp): Add "ALIGNOF" production.
5592 (ident_tokens): Add _Alignof and alignof.
5593
2b4424c3
TT
55942018-04-30 Tom Tromey <tom@tromey.com>
5595
5596 * i386-tdep.c (i386_type_align): New function.
5597 (i386_gdbarch_init): Update.
5598 * gdbarch.sh (type_align): New method.
5599 * gdbarch.c, gdbarch.h: Rebuild.
5600 * arch-utils.h (default_type_align): Declare.
5601 * arch-utils.c (default_type_align): New function.
5602 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
5603 (struct type) <align_log2>: New field.
5604 <instance_flags>: Now a bitfield.
5605 (TYPE_RAW_ALIGN): New macro.
5606 (type_align, type_raw_align, set_type_align): Declare.
5607 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
5608 functions.
5609 * dwarf2read.c (quirk_rust_enum): Set type alignment.
5610 (get_alignment, maybe_set_alignment): New functions.
5611 (read_structure_type, read_enumeration_type, read_array_type)
5612 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
5613 (read_subrange_type, read_base_type): Set type alignment.
5614
d33bc52e
SM
56152018-04-30 Simon Marchi <simon.marchi@ericsson.com>
5616
5617 * dwarf2read.c (read_index_from_section): Use bool.
5618
e28b63a9
FG
56192018-04-29 Fabian Groffen <grobian@gentoo.org>
5620
5621 PR gdb/22950
5622 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
5623 with #ifdef.
5624
cd8c76e4
JR
56252018-04-29 John Reiser <jreiser@BitWagon.com>
5626
5627 PR build/22873
5628 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
5629 last step, and do it atomically.
5630
476d250e
AO
56312018-04-27 Alexandre Oliva <aoliva@redhat.com>
5632
5633 * compile/compile-c-types.c (convert_int, convert_float):
5634 Update for C FE v1.
5635
6873858b
TT
56362018-04-27 Tom Tromey <tom@tromey.com>
5637
5638 PR rust/22545:
5639 * rust-lang.c (rust_inclusive_range_type_p): New function.
5640 (rust_range): Handle inclusive ranges.
5641 (rust_compute_range): Likewise.
5642 * rust-exp.y (struct rust_op) <inclusive>: New field.
5643 (DOTDOTEQ): New constant.
5644 (range_expr): Add "..=" productions.
5645 (operator_tokens): Add "..=" token.
5646 (ast_range): Add "inclusive" parameter.
5647 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
5648 ranges.
5649 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
5650 bounds values.
5651 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
5652 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
5653 Update comments.
5654 * expprint.c (print_subexp_standard): Handle new bounds values.
5655 (dump_subexp_body_standard): Likewise.
5656
632e107b
TT
56572018-04-27 Tom Tromey <tom@tromey.com>
5658
5659 * configure: Rebuild.
5660 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
5661 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
5662 "OVERRIDE".
5663 (class symbol_needs_eval_context): Likewise.
5664 * dwarf2read.c (mock_mapped_index::symbol_name_count)
5665 (mock_mapped_index::symbol_name_at): Use "override". Remove
5666 "virtual".
5667 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
5668 "override".
5669 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
5670 * aarch64-tdep.c (instruction_reader::read): Use "override".
5671 (instruction_reader_test::read): Likewise.
5672 * arm-tdep.c (instruction_reader::read): Use "override".
5673 (instruction_reader_thumb::read): Likewise.
5674
b75abf5b
AK
56752018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
5676
5677 PR remote/9665
5678 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
5679 instead of remote_send.
5680 (remote_send): Remove.
5681
79188d8d
PA
56822018-04-26 Pedro Alves <palves@redhat.com>
5683
5684 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
5685 find_function_start_sal instead of find_pc_line.
5686
f50776aa
PA
56872018-04-26 Pedro Alves <palves@redhat.com>
5688
5689 * breakpoint.c (set_breakpoint_location_function): Handle
5690 mst_data_gnu_ifunc.
5691 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
5692 * elfread.c (elf_symtab_read): Give data symbols with
5693 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
5694 (elf_rel_plt_read): Update comment.
5695 * linespec.c (convert_linespec_to_sals): Handle
5696 mst_data_gnu_ifunc.
5697 (minsym_found): Handle mst_data_gnu_ifunc.
5698 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
5699 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
5700 * parse.c (find_minsym_type_and_address): Handle
5701 mst_data_gnu_ifunc.
5702 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
5703 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
5704 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
5705 comment.
5706 <mst_data_gnu_ifunc>: New enumerator.
5707
20944a6e
PA
57082018-04-26 Pedro Alves <palves@redhat.com>
5709
5710 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
5711 (lookup_minimal_symbol_by_pc_section): ... this. Replace
5712 'want_trampoline' parameter by a lookup_msym_prefer parameter.
5713 Handle it.
5714 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
5715 (lookup_minimal_symbol_by_pc): Adjust.
5716 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
5717 (lookup_solib_trampoline_symbol_by_pc): Adjust.
5718 * minsyms.h (lookup_msym_prefer): New enum.
5719 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5720 parameter by a lookup_msym_prefer parameter.
5721
1adeb822
PA
57222018-04-26 Pedro Alves <palves@redhat.com>
5723
5724 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
5725 ends in "@plt" instead of looking at the symbol's section.
5726
a0aca7b0
PA
57272018-04-26 Pedro Alves <palves@redhat.com>
5728
5729 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
5730 all references.
5731 (find_pc_partial_function_gnu_ifunc): Rename to ...
5732 (find_pc_partial_function): ... this, and remove references to
5733 'is_gnu_ifunc_p'.
5734 (find_pc_partial_function): Delete old implementation.
5735 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
5736
76af0f26
PA
57372018-04-26 Pedro Alves <palves@redhat.com>
5738
5739 * linespec.c (struct bound_minimal_symbol_search_key): New.
5740 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
5741 skip first line if we found a GNU ifunc minimal symbol by name.
5742 (compare_msymbols): Change parameters to work with a destructured
5743 lhs minsym.
5744 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
5745 functions.
5746
3467ec66
PA
57472018-04-26 Pedro Alves <palves@redhat.com>
5748
5749 * breakpoint.c (set_breakpoint_location_function): Don't resolve
5750 ifunc targets here. Instead, if we have an ifunc minsym, use its
5751 address/name.
5752 (add_location_to_breakpoint): Store the minsym and the objfile in
5753 the breakpoint location.
5754 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
5755 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
5756 Record the minsym in the sal.
5757 * symtab.h (symtab_and_line) <msymbol>: New field.
5758
28f4fa4d
PA
57592018-04-26 Pedro Alves <palves@redhat.com>
5760
5761 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
5762 unless we actually resolved the ifunc.
5763
ca31ab1d
PA
57642018-04-26 Pedro Alves <palves@redhat.com>
5765
5766 * c-exp.y (variable production): Prefer ifunc minsyms over
5767 regular function symbols.
5768 * symtab.c (find_gnu_ifunc): New function.
5769 * minsyms.h (lookup_msym_prefer): New enum.
5770 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
5771 parameter by a lookup_msym_prefer parameter.
5772 * symtab.h (find_gnu_ifunc): New declaration.
5773
8388016d
PA
57742018-04-26 Pedro Alves <palves@redhat.com>
5775
5776 * blockframe.c (find_gnu_ifunc_target_type): New function.
5777 (find_function_type): New.
5778 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
5779 return a value with a memory address.
5780 (eval_call): For calls to GNU ifunc functions, try to find the
5781 type of the target function from the type that the resolver
5782 returns.
5783 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
5784 symbols.
5785 * infcall.c (find_function_return_type): Delete.
5786 (find_function_addr): Add 'function_type' parameter. For calls to
5787 GNU ifunc functions, try to find the type of the target function
5788 from the type that the resolver returns, and return it via
5789 FUNCTION_TYPE.
5790 (call_function_by_hand_dummy): Adjust to use the function type
5791 returned by find_function_addr.
5792 (find_function_addr): Add 'function_type' parameter and move
5793 description here.
5794 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
5795 declarations.
5796
a376e11d
PA
57972018-04-26 Pedro Alves <palves@redhat.com>
5798
5799 * c-exp.y (variable production): Skip finding an alias for ifunc
5800 symbols.
5801
02e169e2
PA
58022018-04-26 Pedro Alves <palves@redhat.com>
5803
5804 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
5805
249b5733
PA
58062018-04-25 Pedro Alves <palves@redhat.com>
5807
5808 * infcmd.c (kill_command): Print the pid as string, not the whole
5809 thread's ptid. Add comment. s/has been killed/killed/ in output
5810 message.
5811 * remote.c (remote_detach_1): Print the pid as string, not the
5812 whole thread's ptid.
5813
f67c0c91
SDJ
58142018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 Sergio Durigan Junior <sergiodj@redhat.com>
5816 Pedro Alves <palves@redhat.com>
5817
5818 * infcmd.c (kill_command): Print message when inferior has
5819 been killed.
5820 * inferior.c (print_inferior_events): Remove 'static'. Set as
5821 '1'.
5822 (add_inferior): Improve message printed when
5823 'print_inferior_events' is on.
5824 (exit_inferior): Remove message printed when
5825 'print_inferior_events' is on.
5826 (detach_inferior): Improve message printed when
5827 'print_inferior_events' is on.
5828 (initialize_inferiors): Use 'add_inferior_silent' to set
5829 'current_inferior_'.
5830 * inferior.h (print_inferior_events): Declare here as
5831 'extern'.
5832 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
5833 '[Detaching...]' messages when 'print_inferior_events' is on.
5834 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
5835 as prefix/suffix for messages. Remove periods. Fix erroneous
5836 'Detaching after fork from child...', replace it by '... from
5837 parent...'.
5838 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
5839 prefix/suffix when printing 'Detaching...' messages. Print
5840 them when 'print_inferior_events' is on.
5841 * remote.c (remote_detach_1): Print message when detaching
5842 from inferior and '!is_fork_parent'.
5843
e427af18
TT
58442018-04-24 Tom Tromey <tom@tromey.com>
5845
5846 * cli-out.h: Reindent.
5847
05b1d8d6
TT
58482018-04-24 Tom Tromey <tom@tromey.com>
5849
5850 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
5851 (cli_ui_out::do_field_string): Use fputs_filtered.
5852 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
5853
a95c7dab
TT
58542018-04-23 Tom Tromey <tom@tromey.com>
5855
5856 * guile/scm-frame.c (gdbscm_frame_read_var): Use
5857 gdb::unique_xmalloc_ptr.
5858
458412c3
TT
58592018-04-23 Tom Tromey <tom@tromey.com>
5860
5861 * configure: Rebuild.
5862
db86b02b
RS
58632018-04-22 Rajendra SY <rajendra.sy@gmail.com>
5864
5865 PR gdb/23095
5866 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
5867 prepare_for_testing. Set normal_bp to r_debug_state if target
5868 is bsd.
5869
00aecdcf
PA
58702018-04-21 Pedro Alves <palves@redhat.com>
5871 Rajendra SY <rajendra.sy@gmail.com>
5872
5873 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
5874 * remote.c (extended_remote_attach): In all-stop mode, mark the
5875 thread as executing.
5876
224608c3
PW
58772018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5878
5879 * thread.c (thread_apply_all_command): Fix comment.
5880 (thread_command): Fix comment.
5881
3b74854b
AH
58822018-04-10 Alan Hayward <alan.hayward@arm.com>
5883
5884 * common/tdesc.h (tdesc_create_feature): Remove xml filename
5885 parameter.
5886 * features/aarch64-core.c (create_feature_aarch64_core):
5887 Regenerate.
5888 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
5889 Likewise.
5890 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
5891 Likewise.
5892 * features/i386/32bit-avx512.c
5893 (create_feature_i386_32bit_avx512): Likewise.
5894 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
5895 Likewise.
5896 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
5897 Likewise.
5898 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
5899 Likewise.
5900 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
5901 Likewise.
5902 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
5903 Likewise.
5904 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
5905 Likewise.
5906 * features/i386/64bit-avx512.c
5907 (create_feature_i386_64bit_avx512): Likewise.
5908 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
5909 Likewise.
5910 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
5911 Likewise.
5912 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
5913 Likewise.
5914 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
5915 Likewise.
5916 * features/i386/64bit-segments.c
5917 (create_feature_i386_64bit_segments): Likewise.
5918 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
5919 Likewise.
5920 * features/i386/x32-core.c
5921 (create_feature_i386_x32_core): Likewise.
5922 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
5923 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
5924 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
5925 * target-descriptions.c: In generated code, don't pass xml
5926 filename.
5927
e98577a9
AH
59282018-04-18 Alan Hayward <alan.hayward@arm.com>
5929
5930 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
5931 (print_xml_feature::visit_post): Likewise.
5932 (print_xml_feature::visit): Likewise.
5933 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
5934 (print_xml_feature): Add new class.
5935 * regformats/regdat.sh: Null xmltarget on feature targets.
5936 * target-descriptions.c (struct target_desc): Add xmltarget.
5937 (maintenance_check_tdesc_xml_convert): Add unittest function.
5938 (tdesc_get_features_xml): Add function to get xml.
5939 (maintenance_check_xml_descriptions): Test xml generation.
5940 * xml-tdesc.c (string_read_description_xml): Add function.
5941 * xml-tdesc.h (string_read_description_xml): Add declaration.
5942
ad7fc756
AH
59432018-04-18 Alan Hayward <alan.hayward@arm.com>
5944
5945 * features/Makefile: Add feature marker to targets with new style
5946 target descriptions.
5947 * regformats/aarch64.dat: Regenerate.
5948 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
5949 * regformats/i386/amd64-avx-linux.dat: Likewise.
5950 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
5951 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
5952 * regformats/i386/amd64-linux.dat: Likewise.
5953 * regformats/i386/amd64-mpx-linux.dat: Likewise.
5954 * regformats/i386/amd64.dat: Likewise.
5955 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
5956 * regformats/i386/i386-avx-linux.dat: Likewise.
5957 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
5958 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
5959 * regformats/i386/i386-linux.dat: Likewise.
5960 * regformats/i386/i386-mmx-linux.dat: Likewise.
5961 * regformats/i386/i386-mpx-linux.dat: Likewise.
5962 * regformats/i386/i386.dat: Likewise.
5963 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
5964 * regformats/i386/x32-avx-linux.dat: Likewise.
5965 * regformats/i386/x32-linux.dat: Likewise.
5966 * regformats/tic6x-c62x-linux.dat: Likewise.
5967 * regformats/tic6x-c64x-linux.dat: Likewise.
5968 * regformats/tic6x-c64xp-linux.dat: Likewise.
5969 * regformats/regdat.sh: Parse feature marker.
5970
d278f585
AH
59712018-04-18 Alan Hayward <alan.hayward@arm.com>
5972
5973 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
5974 (tdesc_osabi_name): Likewise.
5975 * target-descriptions.c (tdesc_architecture_name): Add new
5976 function.
5977 (tdesc_osabi_name): Likewise.
5978
eee8a18d
AH
59792018-04-18 Alan Hayward <alan.hayward@arm.com>
5980
5981 * common/tdesc.c (tdesc_predefined_type): Move to here.
5982 (tdesc_named_type): Likewise.
5983 (tdesc_create_vector): Likewise.
5984 (tdesc_create_struct): Likewise.
5985 (tdesc_set_struct_size): Likewise.
5986 (tdesc_create_union): Likewise.
5987 (tdesc_create_flags): Likewise.
5988 (tdesc_create_enum): Likewise.
5989 (tdesc_add_field): Likewise.
5990 (tdesc_add_typed_bitfield): Likewise.
5991 (tdesc_add_bitfield): Likewise.
5992 (tdesc_add_flag): Likewise.
5993 (tdesc_add_enum_value): Likewise.
5994 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
5995 (struct tdesc_type_vector): Likewise.
5996 (struct tdesc_type_field): Likewise.
5997 (struct tdesc_type_with_fields): Likewise.
5998 (tdesc_create_enum): Add declaration.
5999 (tdesc_add_typed_bitfield): Likewise.
6000 (tdesc_add_enum_value): Likewise.
6001 * target-descriptions.c (tdesc_type_field): Move from here.
6002 (tdesc_type_builtin): Likewise.
6003 (tdesc_type_vector): Likewise.
6004 (tdesc_type_with_fields): Likewise.
6005 (tdesc_predefined_types): Likewise.
6006 (tdesc_named_type): Likewise.
6007 (tdesc_create_vector): Likewise.
6008 (tdesc_create_struct): Likewise.
6009 (tdesc_set_struct_size): Likewise.
6010 (tdesc_create_union): Likewise.
6011 (tdesc_create_flags): Likewise.
6012 (tdesc_create_enum): Likewise.
6013 (tdesc_add_field): Likewise.
6014 (tdesc_add_typed_bitfield): Likewise.
6015 (tdesc_add_bitfield): Likewise.
6016 (tdesc_add_flag): Likewise.
6017 (tdesc_add_enum_value): Likewise.
6018 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
6019 (tdesc_add_typed_bitfield): Likewise.
6020 (tdesc_add_enum_value): Likewise.
6021
82ec9bc7
AH
60222018-04-18 Alan Hayward <alan.hayward@arm.com>
6023
6024 * common/tdesc.c (tdesc_feature::accept): Move to here.
6025 (tdesc_feature::operator==): Likewise.
6026 (tdesc_create_reg): Likewise.
6027 * common/tdesc.h (tdesc_type_kind): Likewise.
6028 (struct tdesc_type): Likewise.
6029 (struct tdesc_feature): Likewise.
6030 * regformats/regdat.sh: Create a feature.
6031 * target-descriptions.c (tdesc_type_kind): Move from here.
6032 (tdesc_type): Likewise.
6033 (tdesc_type_up): Likewise.
6034 (tdesc_feature): Likewise.
6035 (tdesc_create_reg): Likewise.
6036
ea3e7d71
AH
60372018-04-18 Alan Hayward <alan.hayward@arm.com>
6038
6039 * Makefile.in: Add arch/tdesc.c
6040 * common/tdesc.c: New file.
6041 * common/tdesc.h (tdesc_element_visitor): Move to here.
6042 (tdesc_element): Likewise.
6043 (tdesc_reg): Likewise.
6044 (tdesc_reg_up): Likewise.
6045 * regformats/regdef.h (reg): Add offset to constructors.
6046 * target-descriptions.c (tdesc_element_visitor): Move from here.
6047 (tdesc_element): Likewise.
6048 (tdesc_reg): Likewise.
6049 (tdesc_reg_up): Likewise.
6050
bedda9ac
TT
60512018-04-17 Tom Tromey <tom@tromey.com>
6052
6053 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
6054 discriminant field.
6055
a037790e
TT
60562018-04-17 Tom Tromey <tom@tromey.com>
6057
6058 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
6059
c7dcbf88
AA
60602018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6061
6062 * symtab.c (print_symbol_info): Skip printing filename and line
6063 number when `last' is NULL.
6064 (symtab_symbol_info): Use empty string instead of NULL for first
6065 invocation of print_symbol_info.
6066 (rbreak_command): Pass NULL to `last' parameter of
6067 print_symbol_info.
6068
07d28c77
SM
60692018-04-16 Simon Marchi <simon.marchi@ericsson.com>
6070
6071 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
6072 instead of nullptr.
6073
8a3de5e1
PA
60742018-04-16 Pedro Alves <palves@redhat.com>
6075
6076 * MAINTAINERS (sh): Remove.
6077 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
6078 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
6079 (ALLDEPFILES): Remove sh64-tdep.c.
6080 * NEWS: Mentions that support for SH-5/SH64 is removed.
6081 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
6082 (sh*-*-openbsd*): Ditto.
6083 (sh64-*-elf*): Remove.
6084 (sh*): Remove.
6085 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
6086 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
6087 * sh-tdep.c: No longer include "sh64-tdep.h".
6088 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
6089 * sh64-tdep.c, sh64-tdep.h: Remove files.
6090
a2a79012
PA
60912018-04-16 Pedro Alves <palves@redhat.com>
6092
6093 * MAINTAINERS: Remove m88k.
6094 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
6095 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
6096 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
6097 * NEWS: Mention that support for m88k was removed.
6098 * configure.host (m88*-*-*): Remove support.
6099 * configure.nat (m88k-*-*): Remove support.
6100 * configure.tgt (m88*-*-openbsd*): Remove.
6101 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
6102
eda4efb1
SM
61032018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
6104
6105 * configure.tgt (x86_tobjs): New variable.
6106 (amd64_tobjs, i386_tobjs): Use it.
6107
b744723f
AA
61082018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6109
6110 * symtab.c (print_symbol_info): Precede the symbol definition by
6111 the line number when available.
6112 * NEWS: Advertise this enhancement.
6113
4a4495d6
MM
61142018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6115
6116 * NEWS (New options): announce set/show record btrace cpu.
6117 * btrace.c: Include record-btrace.h.
6118 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
6119 the vendor is unknown.
6120 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
6121 Maybe overwrite the btrace configuration's cpu.
6122 (btrace_compute_ftrace): Add cpu parameter. Update callers.
6123 (btrace_fetch): Add cpu parameter. Update callers.
6124 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
6125 Maybe overwrite the btrace configuration's cpu. Skip enabling
6126 errata workarounds if the vendor is unknown.
6127 * python/py-record-btrace.c: Include record-btrace.h.
6128 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
6129 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
6130 * record-btrace.c (record_btrace_cpu_state_kind): New.
6131 (record_btrace_cpu): New.
6132 (set_record_btrace_cpu_cmdlist): New.
6133 (record_btrace_get_cpu): New.
6134 (require_btrace_thread, record_btrace_info)
6135 (record_btrace_resume_thread): Call record_btrace_get_cpu.
6136 (cmd_set_record_btrace_cpu_none): New.
6137 (cmd_set_record_btrace_cpu_auto): New.
6138 (cmd_set_record_btrace_cpu): New.
6139 (cmd_show_record_btrace_cpu): New.
6140 (_initialize_record_btrace): Initialize set/show record btrace cpu
6141 commands.
6142 * record-btrace.h (record_btrace_get_cpu): New.
6143
69f90c75
MM
61442018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6145
6146 * record.c (set_record_command): Fix typo in message.
6147
b85310e1
MM
61482018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6149
6150 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
6151
1d509aa6
MM
61522018-04-13 Markus Metzger <markus.t.metzger@intel.com>
6153
6154 * infrun.c (process_event_stop_test): Call
6155 gdbarch_in_indirect_branch_thunk.
6156 * gdbarch.sh (in_indirect_branch_thunk): New.
6157 * gdbarch.c: Regenerated.
6158 * gdbarch.h: Regenerated.
6159 * x86-tdep.h: New.
6160 * x86-tdep.c: New.
6161 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
6162 (HFILES_NO_SRCDIR): Add x86-tdep.h.
6163 (ALLDEPFILES): Add x86-tdep.c.
6164 * arch-utils.h (default_in_indirect_branch_thunk): New.
6165 * arch-utils.c (default_in_indirect_branch_thunk): New.
6166 * i386-tdep: Include x86-tdep.h.
6167 (i386_in_indirect_branch_thunk): New.
6168 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
6169 function.
6170 * amd64-tdep: Include x86-tdep.h.
6171 (amd64_in_indirect_branch_thunk): New.
6172 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
6173
b4be9bfd
JK
61742018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6175
6176 PR gdb/23053
6177 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
6178 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
6179 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
6180 regression.
6181
53d7df28
TT
61822018-04-12 Tom Tromey <tom@tromey.com>
6183
6184 * rust-lang.c (rust_print_struct_def): Remove univariant code.
6185 (rust_evaluate_subexp): Likewise.
6186
70b33f19
PA
61872018-04-12 Pedro Alves <palves@redhat.com>
6188
6189 * procfs.c (procfs_detach): Make forward declaration's prototype
6190 match definition's protototype.
6191 (proc_get_LDT_entry): Remove stale do_cleanups call.
6192
436411b1
PA
61932018-04-12 Pedro Alves <palves@redhat.com>
6194
6195 * target.h (target_ops::to_has_exited): Delete.
6196 (target_has_exited): Delete.
6197 * target-delegates.c: Regenerate.
6198
20db9c52
PA
61992018-04-11 Pedro Alves <palves@redhat.com>
6200
6201 * target.c (fileio_fh_t::t): Add comment.
6202 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6203 (target_fileio_close): Handle a NULL target.
6204 (invalidate_fileio_fh): New.
6205 (target_close): Call it.
6206 * remote.c (remote_hostio_send_command): No longer check whether
6207 remote_desc is open.
6208
5ff79300
PA
62092018-04-11 Pedro Alves <palves@redhat.com>
6210
6211 * target.c (fileio_fh_t): Make it a named struct instead of a
6212 typedef.
6213 (fileio_fh_t::is_closed): New method.
6214 (DEF_VEC_O (fileio_fh_t)): Remove.
6215 (fileio_fhandles): Now a std::vector.
6216 (is_closed_fileio_fh): Delete.
6217 (acquire_fileio_fd): Adjust. Rename parameters.
6218 (release_fileio_fd): Adjust.
6219 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
6220 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
6221 (target_fileio_close): Adjust.
6222
6e22e10d
SM
62232018-04-10 Simon Marchi <simon.marchi@ericsson.com>
6224
6225 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
6226 index.
6227
731f534f
PA
62282018-04-10 Pedro Alves <palves@redhat.com>
6229
6230 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
6231 (scoped_finish_thread_state): New class.
6232 * infcmd.c (run_command_1): Use it instead of finish_thread_state
6233 cleanup.
6234 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
6235 (fetch_inferior_event, normal_stop): Likewise.
6236 * thread.c (finish_thread_state_cleanup): Delete.
6237
d5f4488f
SM
62382018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6239 Pedro Alves <palves@redhat.com>
6240
6241 * value.c: Include "selftest.h" and "common/array-view.h".
6242 (struct range) <operator ==>: New.
6243 (test_ranges_contain): New.
6244 (check_ranges_vector): New.
6245 (test_insert_into_bit_range_vector): New.
6246 (_initialize_values): Register selftests.
6247 * common/array-view.h (operator==, operator!=): New.
6248
b24531ed
SM
62492018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6250
6251 * common/gdb_vecs.h (unordered_remove): Add overload that takes
6252 an iterator.
6253 * inline-frame.c: Include <algorithm>.
6254 (struct inline_state): Add constructor.
6255 (inline_state_s): Remove.
6256 (DEF_VEC_O(inline_state_s)): Remove.
6257 (inline_states): Change type to std::vector.
6258 (find_inline_frame_state): Adjust to std::vector.
6259 (allocate_inline_frame_state): Remove.
6260 (clear_inline_frame_state): Adjust to std::vector.
6261 (skip_inline_frames): Adjust to std::vector.
6262
c252925c
SM
62632018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * tracepoint.h (struct trace_state_variable): Add constructor.
6266 <name>: Change type to std::string.
6267 * tracepoint.c (tsv_s): Remove.
6268 (DEF_VEC_O(tsv_s)): Remove.
6269 (tvariables): Change to std::vector.
6270 (create_trace_state_variable): Adjust to std::vector.
6271 (find_trace_state_variable): Likewise.
6272 (find_trace_state_variable_by_number): Likewise.
6273 (delete_trace_state_variable): Likewise.
6274 (trace_variable_command): Adjust to std::string.
6275 (delete_trace_variable_command): Likewise.
6276 (tvariables_info_1): Adjust to std::vector.
6277 (save_trace_state_variables): Likewise.
6278 (start_tracing): Likewise.
6279 (merge_uploaded_trace_state_variables): Adjust to std::vector
6280 and std::string.
6281 * target.h (struct target_ops)
6282 <to_download_trace_state_variable>: Pass reference to
6283 trace_state_variable.
6284 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
6285 * target-delegates.c: Re-generate.
6286 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
6287 (mi_tsv_deleted): Likewise.
6288 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6289 * remote.c (remote_download_trace_state_variable): Change
6290 pointer to reference and adjust.
6291 * make-target-delegates (parse_argtypes): Handle references.
6292 (write_function_header): Likewise.
6293 (munge_type): Likewise.
6294
c9638d26
SM
62952018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6298 string_view-selftests.c.
6299 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
6300 testsuite.
6301 * unittests/basic_string_view/cons/char/1.cc: Likewise.
6302 * unittests/basic_string_view/cons/char/2.cc: Likewise.
6303 * unittests/basic_string_view/cons/char/3.cc: Likewise.
6304 * unittests/basic_string_view/element_access/char/1.cc:
6305 Likewise.
6306 * unittests/basic_string_view/element_access/char/empty.cc:
6307 Likewise.
6308 * unittests/basic_string_view/element_access/char/front_back.cc:
6309 Likewise.
6310 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
6311 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
6312 Likewise.
6313 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
6314 Likewise.
6315 * unittests/basic_string_view/modifiers/swap/char/1.cc:
6316 Likewise.
6317 * unittests/basic_string_view/operations/compare/char/1.cc:
6318 Likewise.
6319 * unittests/basic_string_view/operations/compare/char/13650.cc:
6320 Likewise.
6321 * unittests/basic_string_view/operations/copy/char/1.cc:
6322 Likewise.
6323 * unittests/basic_string_view/operations/data/char/1.cc:
6324 Likewise.
6325 * unittests/basic_string_view/operations/find/char/1.cc:
6326 Likewise.
6327 * unittests/basic_string_view/operations/find/char/2.cc:
6328 Likewise.
6329 * unittests/basic_string_view/operations/find/char/3.cc:
6330 Likewise.
6331 * unittests/basic_string_view/operations/find/char/4.cc:
6332 Likewise.
6333 * unittests/basic_string_view/operations/rfind/char/1.cc:
6334 Likewise.
6335 * unittests/basic_string_view/operations/rfind/char/2.cc:
6336 Likewise.
6337 * unittests/basic_string_view/operations/rfind/char/3.cc:
6338 Likewise.
6339 * unittests/basic_string_view/operations/substr/char/1.cc:
6340 Likewise.
6341 * unittests/basic_string_view/operators/char/2.cc: Likewise.
6342 * unittests/string_view-selftests.c: New file.
6343
fdc11678
SM
63442018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * unittests/basic_string_view/capacity/1.cc: New file.
6347 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
6348 * unittests/basic_string_view/cons/char/1.cc: New file.
6349 * unittests/basic_string_view/cons/char/2.cc: New file.
6350 * unittests/basic_string_view/cons/char/3.cc: New file.
6351 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
6352 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
6353 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
6354 * unittests/basic_string_view/element_access/char/1.cc: New file.
6355 * unittests/basic_string_view/element_access/char/2.cc: New file.
6356 * unittests/basic_string_view/element_access/char/empty.cc: New file.
6357 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
6358 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
6359 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
6360 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
6361 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
6362 * unittests/basic_string_view/include.cc: New file.
6363 * unittests/basic_string_view/inserters/char/1.cc: New file.
6364 * unittests/basic_string_view/inserters/char/2.cc: New file.
6365 * unittests/basic_string_view/inserters/char/3.cc: New file.
6366 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
6367 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
6368 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
6369 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
6370 * unittests/basic_string_view/literals/types.cc: New file.
6371 * unittests/basic_string_view/literals/values.cc: New file.
6372 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
6373 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
6374 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
6375 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
6376 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
6377 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
6378 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
6379 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
6380 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
6381 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
6382 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
6383 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
6384 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
6385 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
6386 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
6387 * unittests/basic_string_view/operations/data/char/1.cc: New file.
6388 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
6389 * unittests/basic_string_view/operations/find/char/1.cc: New file.
6390 * unittests/basic_string_view/operations/find/char/2.cc: New file.
6391 * unittests/basic_string_view/operations/find/char/3.cc: New file.
6392 * unittests/basic_string_view/operations/find/char/4.cc: New file.
6393 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
6394 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
6395 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
6396 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
6397 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
6398 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
6399 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
6400 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
6401 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
6402 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
6403 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
6404 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
6405 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
6406 * unittests/basic_string_view/operators/char/2.cc: New file.
6407 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
6408 * unittests/basic_string_view/range_access/char/1.cc: New file.
6409 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
6410 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
6411 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
6412 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
6413 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
6414 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
6415 * unittests/basic_string_view/requirements/typedefs.cc: New file.
6416 * unittests/basic_string_view/typedefs.cc: New file.
6417 * unittests/basic_string_view/types/1.cc: New file.
6418
8345c4a2
SM
64192018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6420
6421 * common/gdb_string_view.h: Remove libstdc++ implementation
6422 details, adjust to gdb reality.
6423 * common/gdb_string_view.tcc: Likewise.
6424 * cli/cli-script.c (struct string_view): Remove.
6425 (user_args) <m_args>: Change element type to gdb::string_view.
6426 (user_args::insert_args): Adjust.
6427
7adcdf08
SM
64282018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6429
6430 * common/gdb_string_view.h: New file.
6431 * common/gdb_string_view.tcc: New file.
6432
41260ac2
SM
64332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6434
6435 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
6436 * configure: Re-generate.
6437
0bee6dd4
PA
64382018-04-09 Pedro Alves <palves@redhat.com>
6439
6440 * gdbarch.sh: Include "observable.h" instead of "observer.h".
6441 (set_target_gdbarch): Call
6442 gdb::observers::architecture_changed.notify instead of
6443 observer_notify_architecture_changed.
6444
6f14adc5
SM
64452018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * tracepoint.c (struct current_traceframe_cleanup): Remove.
6448 (do_restore_current_traceframe_cleanup): Remove.
6449 (restore_current_traceframe_cleanup_dtor): Remove.
6450 (make_cleanup_restore_current_traceframe): Remove.
6451 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
6452 New.
6453 * tracepoint.h (struct scoped_restore_current_traceframe): New.
6454 * infrun.c (fetch_inferior_event): Use
6455 scoped_restore_current_traceframe.
6456
b2bdb8cf
SM
64572018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6458
6459 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
6460 Remove.
6461 <n_allocated_type_units>: Remove.
6462 <all_type_units>: Change to std::vector.
6463 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6464 to std::vector change.
6465 (dwarf2_per_objfile::get_cutu): Likewise.
6466 (dwarf2_per_objfile::get_tu): Likewise.
6467 (create_signatured_type_table_from_index): Likewise.
6468 (create_signatured_type_table_from_debug_names): Likewise.
6469 (dw2_symtab_iter_next): Likewise.
6470 (dw2_print_stats): Likewise.
6471 (dw2_expand_all_symtabs): Likewise.
6472 (dw2_expand_marked_cus): Likewise.
6473 (dw2_debug_names_iterator::next): Likewise.
6474 (dwarf2_initialize_objfile): Likewise.
6475 (add_signatured_type_cu_to_table): Likewise.
6476 (create_all_type_units): Likewise.
6477 (add_type_unit): Likewise.
6478 (struct tu_abbrev_offset): Add constructor.
6479 (build_type_psymtabs_1): Adjust to std::vector change.
6480 (print_tu_stats): Likewise.
6481 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6482 (write_debug_names): Likewise.
6483
b76e467d
SM
64842018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6485
6486 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
6487 Make an std::vector.
6488 <n_comp_units>: Remove.
6489 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
6490 to std::vector change.
6491 (dwarf2_per_objfile::get_cutu): Likewise.
6492 (dwarf2_per_objfile::get_cu): Likewise.
6493 (create_cus_from_index): Likewise.
6494 (create_addrmap_from_index): Likewise.
6495 (create_addrmap_from_aranges): Likewise.
6496 (dwarf2_read_index): Likewise.
6497 (dw2_find_last_source_symtab): Likewise.
6498 (dw2_map_symtabs_matching_filename): Likewise.
6499 (dw2_symtab_iter_next): Likewise.
6500 (dw2_print_stats): Likewise.
6501 (dw2_expand_all_symtabs): Likewise.
6502 (dw2_expand_symtabs_with_fullname): Likewise.
6503 (dw2_expand_marked_cus): Likewise.
6504 (dw2_map_symbol_filenames): Likewise.
6505 (create_cus_from_debug_names): Likewise.
6506 (dwarf2_read_debug_names): Likewise.
6507 (dw2_debug_names_iterator::next): Likewise.
6508 (dwarf2_initialize_objfile): Likewise.
6509 (set_partial_user): Likewise.
6510 (dwarf2_build_psymtabs_hard): Likewise.
6511 (read_comp_units_from_section): Remove arguments, adjust to
6512 std::vector change.
6513 (create_all_comp_units): Adjust to std::vector and
6514 read_comp_units_from_section changes.
6515 (dwarf2_find_containing_comp_unit): Adjust to std::vector
6516 change.
6517 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
6518 (psyms_seen_size): Likewise.
6519 (write_gdbindex): Likewise.
6520 (write_debug_names): Likewise.
6521
12359b5e
SM
65222018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
6525 with dwarf2_per_objfile.
6526 (create_cus_from_index): Likewise.
6527 (create_signatured_type_table_from_index): Likewise.
6528 (dwarf2_read_index): Likewise.
6529 (dwarf2_initialize_objfile): Likewise.
6530 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
6531 per_cu rather than get_dwarf2_per_objfile.
6532
ff4c9fec
SM
65332018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * dwarf2read.h (struct signatured_type): Forward declare.
6536 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
6537 New methods.
6538 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
6539 (dw2_get_cutu): ...this.
6540 (dwarf2_per_objfile::get_cu): Rename from...
6541 (dw2_get_cu): ...this.
6542 (dwarf2_per_objfile::get_tu): New.
6543 (create_addrmap_from_index): Adjust.
6544 (create_addrmap_from_aranges): Adjust.
6545 (dw2_find_last_source_symtab): Adjust.
6546 (dw2_map_symtabs_matching_filename): Adjust.
6547 (dw2_symtab_iter_next): Adjust.
6548 (dw2_print_stats): Adjust.
6549 (dw2_expand_all_symtabs): Adjust.
6550 (dw2_expand_symtabs_with_fullname): Adjust.
6551 (dw2_expand_marked_cus): Adjust.
6552 (dw_expand_symtabs_matching_file_matcher): Adjust.
6553 (dw2_map_symbol_filenames): Adjust.
6554 (dw2_debug_names_iterator::next): Adjust.
6555 (dwarf2_initialize_objfile): Adjust.
6556 (set_partial_user): Adjust.
6557 (dwarf2_build_psymtabs_hard): Adjust.
6558
5ca3fcb6
SM
65592018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6560
6561 * dwarf2read.c (create_signatured_type_table_from_debug_names):
6562 Remove unused variables.
6563 (dw2_map_symtabs_matching_filename): Likewise.
6564 (dwarf2_record_block_ranges): Likewise.
6565 (dwarf2_read_addr_index): Likewise.
6566 (follow_die_offset): Likewise.
6567
b2e586e8
SM
65682018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
6571 to symbol_file_add_main.
6572
7c4e78cf
SM
65732018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6574
6575 PR mi/22299
6576 * mi/mi-console.c (do_fputc_async_safe): New.
6577 (mi_console_file::write_async_safe): New.
6578 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
6579 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
6580 New.
6581 * ui-file.c (ui_file::putstrn): Adjust call to
6582 fputstrn_unfiltered.
6583 * utils.c (printchar): Replace do_fputs and do_fprintf
6584 parameters by do_fputc.
6585 (fputstr_filtered): Adjust call to printchar.
6586 (fputstr_unfiltered): Likewise.
6587 (fputstrn_filtered): Likewise.
6588 (fputstrn_unfiltered): Add do_fputc parameter, pass to
6589 printchar.
6590 * utils.h (do_fputc_ftype): New typedef.
6591 (fputstrn_unfiltered): Add do_fputc parameter.
6592
5dc026d3
SM
65932018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * regformats/i386/i386-avx.dat: Remove.
6596
c912f608
SM
65972018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6598
6599 PR gdb/22979
6600 * amd64-tdep.c (amd64_none_init_abi): New function.
6601 (amd64_x32_none_init_abi): New function.
6602 (_initialize_amd64_tdep): Register handlers for x86-64 and
6603 x64_32 with GDB_OSABI_NONE.
6604 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
6605 GDB_OSABI_NONE osabi.
6606
26540402
SM
66072018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 PR gdb/22980
6610 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
6611 GDB_OSABI_NONE.
6612 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
6613 * osabi.c (gdb_osabi_names): Add "unknown" entry.
6614
9018be22
SM
66152018-04-07 Simon Marchi <simon.marchi@ericsson.com>
6616
6617 * common/byte-vector.h (char_vector): New type.
6618 * target.h (target_read_alloc): Return
6619 gdb::optional<byte_vector>.
6620 (target_read_stralloc): Return gdb::optional<char_vector>.
6621 (target_get_osdata): Return gdb::optional<char_vector>.
6622 * target.c (target_read_alloc_1): Templatize. Replacement
6623 manual memory management with vector.
6624 (target_read_alloc): Change return type, adjust.
6625 (target_read_stralloc): Change return type, adjust.
6626 (target_get_osdata): Change return type, adjust.
6627 * auxv.c (struct auxv_info) <length>: Remove.
6628 <data>: Change type to gdb::optional<byte_vector>.
6629 (auxv_inferior_data_cleanup): Free auxv_info with delete.
6630 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
6631 (target_auxv_search): Adjust.
6632 (fprint_target_auxv): Adjust.
6633 * avr-tdep.c (avr_io_reg_read_command): Adjust.
6634 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
6635 (linux_make_corefile_notes): Adjust.
6636 * osdata.c (get_osdata): Adjust.
6637 * remote.c (remote_get_threads_with_qxfer): Adjust.
6638 (remote_memory_map): Adjust.
6639 (remote_traceframe_info): Adjust.
6640 (btrace_read_config): Adjust.
6641 (remote_read_btrace): Adjust.
6642 (remote_pid_to_exec_file): Adjust.
6643 * solib-aix.c (solib_aix_get_library_list): Adjust.
6644 * solib-dsbt.c (decode_loadmap): Don't free buf.
6645 (dsbt_get_initial_loadmaps): Adjust.
6646 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
6647 * solib-target.c (solib_target_current_sos): Adjust.
6648 * tracepoint.c (sdata_make_value): Adjust.
6649 * xml-support.c (xinclude_start_include): Adjust.
6650 (xml_fetch_content_from_file): Adjust.
6651 * xml-support.h (xml_fetch_another): Change return type.
6652 (xml_fetch_content_from_file): Change return type.
6653 * xml-syscall.c (xml_init_syscalls_info): Adjust.
6654 * xml-tdesc.c (file_read_description_xml): Adjust.
6655 (fetch_available_features_from_target): Change return type.
6656 (target_fetch_description_xml): Adjust.
6657 (target_read_description_xml): Adjust.
6658
14c88955
TT
66592018-04-06 Tom Tromey <tom@tromey.com>
6660
6661 * value.c (~value): Update.
6662 (struct value) <contents>: Now unique_xmalloc_ptr.
6663 (value_contents_bits_eq, allocate_value_contents)
6664 (value_contents_raw, value_contents_all_raw)
6665 (value_contents_for_printing, value_contents_for_printing_const)
6666 (set_value_enclosing_type): Update.
6667
0c7e6dd8
TT
66682018-04-06 Tom Tromey <tom@tromey.com>
6669
6670 * value.c (range_s): Remove typedef, VEC.
6671 (struct range): Add operator<.
6672 (range_lessthan): Remove.
6673 (ranges_contain): Change type.
6674 (~value): Update.
6675 (struct value) <unavailable, optimized_out>: Now std::vector.
6676 (value_entirely_available)
6677 (value_entirely_covered_by_range_vector)
6678 (value_entirely_unavailable, value_entirely_optimized_out):
6679 Update.
6680 (insert_into_bit_range_vector): Change argument type.
6681 (find_first_range_overlap): Likewise.
6682 (struct ranges_and_idx, value_contents_bits_eq)
6683 (require_not_optimized_out, require_available): Update.
6684 (ranges_copy_adjusted): Change argument types.
6685 (value_optimized_out, value_copy, value_fetch_lazy): Update.
6686
2c8331b9
TT
66872018-04-06 Tom Tromey <tom@tromey.com>
6688
6689 * value.c (~value): Update.
6690 (struct value) <parent>: Now a value_ref_ptr.
6691 (value_parent, set_value_parent, value_address, value_copy):
6692 Update.
6693
466ce3ae
TT
66942018-04-06 Tom Tromey <tom@tromey.com>
6695
6696 * value.c (struct value): Add constructor, destructor, and member
6697 initializers.
6698 (allocate_value_lazy, value_decref): Update.
6699
062d818d
TT
67002018-04-06 Tom Tromey <tom@tromey.com>
6701
6702 * value.c (struct value) <released, next>: Remove.
6703 (all_values): Now a std::vector.
6704 (allocate_value_lazy): Update.
6705 (value_next): Remove.
6706 (value_mark, value_free_to_mark, release_value)
6707 (value_release_to_mark): Update.
6708
a6535de1
TT
67092018-04-06 Tom Tromey <tom@tromey.com>
6710
6711 * value.h (fetch_subexp_value, value_release_to_mark): Update.
6712 (free_value_chain): Remove.
6713 * value.c (free_value_chain): Remove.
6714 (value_release_to_mark): Return a std::vector.
6715 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
6716 std::vector.
6717 (check_condition): Update.
6718 * eval.c (fetch_subexp_value): Change "val_chain" to a
6719 std::vector.
6720 * breakpoint.c (update_watchpoint): Update.
6721 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
6722
b5621201
TT
67232018-04-06 Tom Tromey <tom@tromey.com>
6724
6725 * value.h (free_all_values): Remove.
6726 * value.c (free_all_values): Remove.
6727
4d0266a0
TT
67282018-04-06 Tom Tromey <tom@tromey.com>
6729
6730 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
6731 (value_history_chain, value_history_count): Remove.
6732 (value_history): New global.
6733 (record_latest_value, access_value_history, show_values)
6734 (preserve_values): Update.
6735
b4d61099
TT
67362018-04-06 Tom Tromey <tom@tromey.com>
6737
6738 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
6739 * varobj.c (varobj_set_display_format, varobj_set_value)
6740 (install_default_visualizer, construct_visualizer)
6741 (install_new_value, ~varobj, varobj_get_value_type)
6742 (my_value_of_variable, varobj_editable_p): Update.
6743 * c-varobj.c (c_describe_child, c_value_of_variable)
6744 (cplus_number_of_children, cplus_describe_child): Update.
6745 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
6746 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
6747 (ada_value_of_variable, ada_value_is_changeable_p): Update.
6748
9b558729
TT
67492018-04-06 Tom Tromey <tom@tromey.com>
6750
6751 * printcmd.c (last_examine_address): Change type to
6752 value_ref_ptr.
6753 (do_examine, x_command): Update.
6754
850645cf
TT
67552018-04-06 Tom Tromey <tom@tromey.com>
6756
6757 * value.c (release_value): Update.
6758 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
6759 (struct bpstats) <val>: Now a value_ref_ptr.
6760 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6761 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6762 (~watchpoint, print_it_watchpoint, watch_command_1)
6763 (invalidate_bp_value_on_memory_change): Update.
6764
22bc8444
TT
67652018-04-06 Tom Tromey <tom@tromey.com>
6766
6767 * varobj.c (varobj_clear_saved_item)
6768 (update_dynamic_varobj_children, install_new_value, ~varobj):
6769 Update.
6770 * value.h (value_incref): Move declaration earlier.
6771 (value_decref): Rename from value_free.
6772 (struct value_ref_policy): New.
6773 (value_ref_ptr): New typedef.
6774 (struct value_deleter): Remove.
6775 (gdb_value_up): Remove typedef.
6776 (release_value): Change return type.
6777 (release_value_or_incref): Remove.
6778 * value.c (set_value_parent): Update.
6779 (value_incref): Change return type.
6780 (value_decref): Rename from value_free.
6781 (value_free_to_mark, free_all_values, free_value_chain): Update.
6782 (release_value): Return value_ref_ptr.
6783 (release_value_or_incref): Remove.
6784 (record_latest_value, set_internalvar, clear_internalvar):
6785 Update.
6786 * stack.c (info_frame_command): Don't call value_free.
6787 * python/py-value.c (valpy_dealloc, valpy_new)
6788 (value_to_value_object): Update.
6789 * printcmd.c (do_examine): Update.
6790 * opencl-lang.c (lval_func_free_closure): Update.
6791 * mi/mi-main.c (register_changed_p): Don't call value_free.
6792 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
6793 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
6794 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
6795 value_free.
6796 * guile/scm-value.c (vlscm_free_value_smob)
6797 (vlscm_scm_from_value): Update.
6798 * frame.c (frame_register_unwind, frame_unwind_register_signed)
6799 (frame_unwind_register_unsigned, get_frame_register_bytes)
6800 (put_frame_register_bytes): Don't call value_free.
6801 * findvar.c (address_from_register): Don't call value_free.
6802 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
6803 * dwarf2loc.c (entry_data_value_free_closure)
6804 (value_of_dwarf_reg_entry, free_pieced_value_closure)
6805 (dwarf2_evaluate_loc_desc_full): Update.
6806 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
6807 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
6808 (~watchpoint, watch_command_1)
6809 (invalidate_bp_value_on_memory_change): Update.
6810 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
6811
7f8a5d38
SM
68122018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
6813
6814 PR gdb/23022
6815 * warning.m4: Add -Wno-error=deprecated-register.
6816 * configure: Re-generate.
6817
8a76bd3b
TT
68182018-04-05 Tom Tromey <tom@tromey.com>
6819
6820 * linespec.h: Remove include of "vec.h".
6821
8e8d776e
TT
68222018-04-05 Tom Tromey <tom@tromey.com>
6823
6824 * linespec.c (typep): Remove typedef.
6825 (find_methods, find_superclass_methods): Take a std::vector.
6826 (find_method): Use std::vector.
6827
9b2f8581
TT
68282018-04-05 Tom Tromey <tom@tromey.com>
6829
6830 * utils.c (compare_strings): Remove.
6831 * utils.h (compare_strings): Remove.
6832 * objc-lang.h (find_imps): Update.
6833 * objc-lang.c (find_methods): Take a std::vector.
6834 (uniquify_strings, find_imps): Likewise.
6835 * linespec.c (find_methods): Take a std::vector.
6836 (decode_objc): Use std::vector.
6837 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
6838 a std::vector.
6839 (find_method, find_function_symbols): Use std::vector.
6840
459a2e4c
TT
68412018-04-05 Tom Tromey <tom@tromey.com>
6842
6843 * completer.c (completion_tracker::completion_tracker): Remove
6844 cast.
6845 (completion_tracker::discard_completions): Likewise.
6846 * breakpoint.c (ambiguous_names_p): Remove cast.
6847 * ada-lang.c (_initialize_ada_language): Remove cast.
6848 * utils.h (streq): Update.
6849 (streq_hash): Add new declaration.
6850 * utils.c (streq): Return bool.
6851 (streq_hash): New function.
6852
9be2c17a
TT
68532018-04-05 Tom Tromey <tom@tromey.com>
6854
6855 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
6856 Remove a string copy.
6857
f73c6ece
TT
68582018-04-05 Tom Tromey <tom@tromey.com>
6859
6860 * linespec.c (filter_results): Use std::vector.
6861 (decode_line_2, decode_line_full): Update.
6862
53a0f8a2
TT
68632018-04-05 Tom Tromey <tom@tromey.com>
6864
6865 * linespec.c (canonical_to_fullform): Return std::string.
6866 (filter_results): Update.
6867 (struct decode_line_2_item): Add constructor.
6868 <fullform, displayform>: Now std::string.
6869 (decode_line_2_compare_items): Now a std::sort comparator.
6870 (decode_line_2): Update.
6871
a5b5adf5
TT
68722018-04-05 Tom Tromey <tom@tromey.com>
6873
6874 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
6875 (unexpected_linespec_error): Update.
6876 (linespec_parse_basic, parse_linespec): Update.
6877
6a307fc5
TT
68782018-04-05 Tom Tromey <tom@tromey.com>
6879
6880 * linespec.c (linespec_parse_basic): Reindent.
6881
41c1efc6
TT
68822018-04-05 Tom Tromey <tom@tromey.com>
6883
6884 * minsyms.h (iterate_over_minimal_symbols): Update.
6885 * minsyms.c (iterate_over_minimal_symbols): Take a
6886 gdb::function_view.
6887 * linespec.c (struct collect_minsyms): Remove.
6888 (compare_msyms): Now a std::sort comparator.
6889 (add_minsym): Add parameters.
6890 (search_minsyms_for_name): Update. Use std::vector.
6891
c5edbf3d
TT
68922018-04-03 Tom Tromey <tom@tromey.com>
6893
6894 * mipsread.c (read_alphacoff_dynamic_symtab): Use
6895 gdb::byte_vector.
6896
b39efc48
WP
68972018-04-02 Weimin Pan <weimin.pan@oracle.com>
6898
6899 * MAINTAINERS (Write After Approval): Add Weimin Pan.
6900
121ad66c 69012018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
6902
6903 PR gdb/16959
6904 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
6905 printing static type.
6906
09473be8
TT
69072018-04-01 Tom Tromey <tom@tromey.com>
6908
6909 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
6910 (rs6000_xfer_shared_libraries): Update.
6911
ec1f2d91
SM
69122018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6913
6914 * common/gdb_vecs.h (char_ptr): Remove.
6915 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
6916
d8611974
SM
69172018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6918
6919 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
6920 with std::vector.
6921 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
6922
a18ba4e4
SM
69232018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6924
6925 * tracepoint.h (struct uploaded_tp): Initialize fields.
6926 <actions, step_actions, cmd_strings>: Change type to
6927 std::vector<char *>.
6928 * tracepoint.c (get_uploaded_tp): Allocate with new.
6929 (free_uploaded_tps): Free with delete.
6930 (parse_tracepoint_definition): Adjust to std::vector change.
6931 * breakpoint.c (read_uploaded_action): Likewise.
6932 (create_tracepoint_from_upload): Likewise.
6933 * ctf.c (ctf_write_uploaded_tp): Likewise.
6934 (SET_ARRAY_FIELD): Likewise.
6935 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
6936
a7961323
TT
69372018-03-30 Tom Tromey <tom@tromey.com>
6938
6939 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
6940 std::unique_ptr.
6941 (svr4_keep_data_in_core): Update.
6942 (svr4_read_so_list): Update.
6943
e83e4e24
TT
69442018-03-30 Tom Tromey <tom@tromey.com>
6945
6946 * windows-nat.c (handle_output_debug_string, handle_exception):
6947 Update.
6948 * target.h (target_read_string): Update.
6949 * target.c (target_read_string): Change "string" to
6950 unique_xmalloc_ptr.
6951 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6952 Update.
6953 * solib-frv.c (frv_current_sos): Update.
6954 * solib-dsbt.c (dsbt_current_sos): Update.
6955 * solib-darwin.c (darwin_current_sos): Update.
6956 * linux-thread-db.c (inferior_has_bug): Update.
6957 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
6958 Update. Remove alloca.
6959 * ada-lang.c (ada_main_name): Update.
6960
263db9a1
TT
69612018-03-30 Tom Tromey <tom@tromey.com>
6962
6963 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
6964 (struct dwo_file_deleter): New.
6965 (dwo_file_up): New typedef.
6966 (open_and_init_dwo_file): Use dwo_file_up.
6967 (free_dwo_file_cleanup): Remove.
6968
5dafb3d1
TT
69692018-03-30 Tom Tromey <tom@tromey.com>
6970
6971 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
6972 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
6973
11ed8cad
TT
69742018-03-30 Tom Tromey <tom@tromey.com>
6975
6976 * dwarf2read.c (class free_cached_comp_units): New class.
6977 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
6978 (free_cached_comp_units): Remove function.
6979
9ae79dac
TT
69802018-03-30 Tom Tromey <tom@tromey.com>
6981
6982 * utils.h (make_cleanup_unpush_target): Remove.
6983 * inf-ptrace.c (struct target_unpusher): New.
6984 (target_unpush_up) New typedef.
6985 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
6986 target_unpush_up.
6987 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
6988
5aa89276
TT
69892018-03-27 Tom Tromey <tom@tromey.com>
6990
6991 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
6992
1dbeed45
TT
69932018-03-27 Pedro Alves <palves@redhat.com>
6994 Tom Tromey <tom@tromey.com>
6995
6996 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
6997 destructor. Now a class.
6998 (gdb_readline_wrapper_cleanup): Remove function.
6999 (gdb_readline_wrapper): Remove cleanups.
7000
c819b2c0
TT
70012018-03-27 Tom Tromey <tom@tromey.com>
7002
7003 * typeprint.h (struct type_print_options) <local_typedefs,
7004 global_typedefs>: Remove "struct" keyword.
7005 (class typedef_hash_table): New class.
7006 (recursively_update_typedef_hash, add_template_parameters)
7007 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
7008 (find_typedef_in_hash): Don't declare.
7009 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
7010 (typedef_hash_table::recursively_update): Rename from
7011 recursively_update_typedef_hash. Now a member.
7012 (typedef_hash_table::add_template_parameters): Rename from
7013 add_template_parameters. Now a member.
7014 (typedef_hash_table::typedef_hash_table): Now a constructor;
7015 rename from create_typedef_hash.
7016 (typedef_hash_table::~typedef_hash_table): Now a destructor;
7017 rename from free_typedef_hash.
7018 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
7019 (do_free_global_table): Remove.
7020 (typedef_hash_table::typedef_hash_table): New constructor; renamed
7021 from copy_type_recursive.
7022 (create_global_typedef_table): Remove.
7023 (typedef_hash_table::find_global_typedef): Now a member of
7024 typedef_hash_table.
7025 (typedef_hash_table::find_typedef): Rename from
7026 find_typedef_in_hash; now a member.
7027 (whatis_exp): Update.
7028 * extension.h (struct ext_lang_type_printers): Add constructor and
7029 destructor.
7030 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
7031 declare.
7032 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
7033 Now a constructor; rename from start_ext_lang_type_printers.
7034 (ext_lang_type_printers): Now a destructor; rename from
7035 free_ext_lang_type_printers.
7036 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
7037 Update.
7038 (c_type_print_base_struct_union): Update. Remove cleanups.
7039
608219fb
TT
70402018-03-27 Tom Tromey <tom@tromey.com>
7041
7042 * dwarf-index-write.c: Include <cmath>.
7043
3fcded8f
JB
70442018-03-27 Joel Brobecker <brobecker@adacore.com>
7045
7046 * NEWS: Add entry describing new "set|show varsize-limit" command.
7047 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
7048 command.
7049 * printcmd.c (_initialize_printcmd): Add "set var" alias of
7050 "set variable".
7051
cd4fb1b2
SM
70522018-03-27 Simon Marchi <simon.marchi@ericsson.com>
7053
7054 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
7055 dwarf-index-write.c
7056 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
7057 * dwarf-index-common.c: New file.
7058 * dwarf-index-common.h: New file.
7059 * dwarf-index-write.c: New file.
7060 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
7061 (struct dwarf2_section_info): Move from here.
7062 (dwarf2_section_info_def): Likewise.
7063 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
7064 (offset_type): Likewise.
7065 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
7066 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
7067 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
7068 (byte_swap): Likewise.
7069 (MAYBE_SWAP): Likewise.
7070 (dwarf2_per_cu_ptr): Likewise.
7071 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
7072 (struct tu_stats): Likewise.
7073 (struct dwarf2_per_objfile): Likewise.
7074 (struct dwarf2_per_cu_data): Likewise.
7075 (struct signatured_type): Likewise.
7076 (sig_type_ptr): Likewise.
7077 (DEF_VEC_P (sig_type_ptr)): Likewise.
7078 (INDEX4_SUFFIX): Likewise.
7079 (INDEX5_SUFFIX): Likewise.
7080 (DEBUG_STR_SUFFIX): Likewise.
7081 (dwarf2_read_section): Make non-static.
7082 (mapped_index_string_hash): Move from here.
7083 (dwarf5_djb_hash): Likewise.
7084 (file_write): Likewise.
7085 (class data_buf): Likewise.
7086 (struct symtab_index_entry): Likewise.
7087 (struct mapped_symtab): Likewise.
7088 (find_slot): Likewise.
7089 (hash_expand): Likewise.
7090 (add_index_entry): Likewise.
7091 (uniquify_cu_indices): Likewise.
7092 (class c_str_view): Likewise.
7093 (class c_str_view_hasher): Likewise.
7094 (class vector_hasher): Likewise.
7095 (write_hash_table): Likewise.
7096 (psym_index_map): Likewise.
7097 (struct addrmap_index_data): Likewise.
7098 (add_address_entry): Likewise.
7099 (add_address_entry_worker): Likewise.
7100 (write_address_map): Likewise.
7101 (symbol_kind): Likewise.
7102 (write_psymbols): Likewise.
7103 (struct signatured_type_index_data): Likewise.
7104 (write_one_signatured_type): Likewise.
7105 (recursively_count_psymbols): Likewise.
7106 (recursively_write_psymbols): Likewise.
7107 (class debug_names): Likewise.
7108 (check_dwarf64_offsets): Likewise.
7109 (psyms_seen_size): Likewise.
7110 (write_gdbindex): Likewise.
7111 (write_debug_names): Likewise.
7112 (assert_file_size): Likewise.
7113 (write_psymtabs_to_index): Likewise.
7114 (save_gdb_index_command): Likewise.
7115 (_initialize_dwarf2_read): Don't register the "save gdb-index"
7116 command.
7117 * dwarf2read.h: New file.
7118
59cc4834
JB
71192018-03-27 Joel Brobecker <brobecker@adacore.com>
7120
7121 PR gdb/22670
7122 * dwarf2read.c (dwarf2_physname): Do not return the demangled
7123 symbol name if the CU's language stores symbol names in linkage
7124 format.
7125 * language.h (struct language_defn)
7126 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
7127 all instances of this struct.
7128
67501539
TT
71292018-03-26 Tom Tromey <tom@tromey.com>
7130
7131 * stack.c (backtrace_command_1): Remove verbose code.
7132
76c939ac
TT
71332018-03-26 Tom Tromey <tom@tromey.com>
7134
7135 * python/py-framefilter.c (py_print_type): Don't catch
7136 exceptions. Return void.
7137 (py_print_value): Likewise.
7138 (py_print_single_arg): Likewise.
7139 (enumerate_args): Don't catch exceptions.
7140 (py_print_args): Likewise.
7141 (py_print_frame): Likewise.
7142 (gdbpy_apply_frame_filter): Catch exceptions here.
7143
9507b29c
TT
71442018-03-26 Tom Tromey <tom@tromey.com>
7145
7146 * stack.c (_initialize_stack): Remove trailing newlines from help
7147 text. Add "Usage" line to "backtrace" help.
7148
eb68e487
TT
71492018-03-26 Tom Tromey <tom@tromey.com>
7150
7151 PR python/16486:
7152 * python/py-framefilter.c (py_print_args): Call wrap_hint.
7153
1f111921
TT
71542018-03-26 Tom Tromey <tom@tromey.com>
7155
7156 * python/py-framefilter.c (py_print_single_arg): Return
7157 EXT_LANG_BT_ERROR from catch.
7158
fb7eb8b5
TT
71592018-03-26 Tom Tromey <tom@tromey.com>
7160
7161 PR backtrace/15584:
7162 * stack.c (backtrace_command_1): Move some code into no-filters
7163 "if".
7164
4ca59a9f
TT
71652018-03-26 Tom Tromey <tom@tromey.com>
7166
7167 * python/py-framefilter.c (throw_quit_or_print_exception): New
7168 function.
7169 (gdbpy_apply_frame_filter): Use it.
7170
92256134
TT
71712018-03-26 Tom Tromey <tom@tromey.com>
7172
7173 PR cli/17716:
7174 * python/py-framefilter.c (py_print_type, py_print_value)
7175 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
7176 RETURN_MASK_ERROR.
7177
7a630bc2
TT
71782018-03-26 Tom Tromey <tom@tromey.com>
7179
7180 * python/py-framefilter.c (enumerate_args): Use
7181 gdb::unique_xmalloc_ptr.
7182
63283d4a
TT
71832018-03-26 Tom Tromey <tom@tromey.com>
7184
7185 * python/py-framefilter.c (py_print_frame): Return
7186 EXT_LANG_BT_OK.
7187 (gdbpy_apply_frame_filter): Update comment.
7188 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
7189 Remove.
7190 <EXT_LANG_BT_NO_FILTERS>: Change value.
7191
978d6c75
TT
71922018-03-26 Tom Tromey <tom@tromey.com>
7193
7194 PR backtrace/15582:
7195 * stack.c (backtrace_command): Parse "hide" argument.
7196 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
7197 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
7198 constant.
7199
1cf7e640
TT
72002018-03-26 Tom Tromey <tom@tromey.com>
7201
7202 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
7203 add "flags".
7204 (backtrace_command): Remove "fulltrace", add "flags".
7205
ea3b0687
TT
72062018-03-26 Tom Tromey <tom@tromey.com>
7207
7208 * stack.c (backtrace_command): Rewrite command line parsing.
7209
9f034d75
SM
72102018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7211
7212 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
7213
ce1459e5
SM
72142018-03-26 Simon Marchi <simon.marchi@ericsson.com>
7215
7216 * filename-seen-cache.h: Add include guard.
7217
4f7ae6f5
KS
72182018-03-26 Keith Seitz <keiths@redhat.com>
7219
7220 * symfile.c (place_section): Remove "struct" from section_addr_info
7221 in comment.
7222 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
7223 "struct" keyword from section_addr_info.
7224
5cd3e386
AH
72252018-03-26 Alan Hayward <alan.hayward@arm.com>
7226
7227 * regformats/regdef.h (reg): Add constructors.
7228
3e5ef9a4
PA
72292018-03-25 Pedro Alves <palves@redhat.com>
7230
7231 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
7232 if then/else bodies in var_func_name extraction.
7233
c88d2fcc 72342018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
7235
7236 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
7237 lookup_minimal_symbol() to find symbol entry.
7238 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
7239
b7fee5a3
KS
72402018-03-23 Keith Seitz <keiths@redhat.com>
7241
7242 PR c++/22968
7243 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
7244 nested type definitions for C++, too.
7245
2cc9b304
TT
72462018-03-23 Tom Tromey <tom@tromey.com>
7247
7248 * machoread.c (struct oso_el): Add a constructor. Don't define as
7249 a typedef.
7250 (macho_register_oso): Remove.
7251 (macho_symtab_read): Take a std::vector.
7252 (oso_el_compare_name): Now a std::sort comparator.
7253 (macho_symfile_read_all_oso): Take a std::vector.
7254 (macho_symfile_read): Use std::vector. Remove cleanups.
7255
a2b2bc12
TT
72562018-03-22 Tom Tromey <tom@tromey.com>
7257
7258 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
7259 (record_full_goto_bookmark): Use std::string.
7260
7a8f494c
PFC
72612018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7262
7263 PR tdep/18295
7264 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
7265 a single mask.
7266
dd6d677f
PFC
72672018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7268
7269 * rs6000-tdep.c (store_insn_p): New function.
7270 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
7271 and cr_reg to their unshifted values. Use store_insn_p to
7272 match LR saves using either R1 or fdata->alloca_reg. Use
7273 store_insn_p to match CR saves. Set alloca_reg_offset
7274 when alloca_reg and framep are set. Remove lr_reg shift
7275 when assigning to fdata->lr_register.
7276
26d6cec4
AA
72772018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
7278
7279 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
7280 command line args instead of emitting a warning.
7281
5d9310c4
SM
72822018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7283
7284 * tracepoint.h (struct static_tracepoint_marker): Initialize
7285 fields, define default constructor, move constructor and move
7286 assignment, disable the rest.
7287 <str_id, extra>: Make std::string.
7288 (release_static_tracepoint_marker): Remove.
7289 (free_current_marker): Remove.
7290 * tracepoint.c (free_current_marker): Remove.
7291 (parse_static_tracepoint_marker_definition): Adjust to
7292 std::string, use new hex2str overload.
7293 (release_static_tracepoint_marker): Remove.
7294 (print_one_static_tracepoint_marker): Get marker by reference
7295 and adjust to std::string.
7296 (info_static_tracepoint_markers_command): Adjust to std::vector
7297 changes
7298 * target.h (static_tracepoint_marker_p): Remove typedef.
7299 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
7300 (struct target_ops) <to_static_tracepoint_marker_at>: Return
7301 bool.
7302 <to_static_tracepoint_markers_by_strid>: Return std::vector.
7303 * target-debug.h
7304 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
7305 (target_debug_print_std_vector_static_tracepoint_marker): New.
7306 (target_debug_print_struct_static_tracepoint_marker_p): Rename
7307 to...
7308 (target_debug_print_static_tracepoint_marker_p): ... this.
7309 * target-delegates.c: Re-generate.
7310 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
7311 Make std::string.
7312 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
7313 (decode_static_tracepoint_spec): Adjust to std::vector.
7314 (tracepoint_print_one_detail): Adjust to std::string.
7315 (strace_marker_decode_location): Adjust to std::string.
7316 (update_static_tracepoint): Adjust to std::string, remove call
7317 to release_static_tracepoint_marker.
7318 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7319 Adjust to std::vector.
7320 * remote.c (remote_static_tracepoint_marker_at): Return bool.
7321 (remote_static_tracepoint_markers_by_strid): Adjust to
7322 std::vector.
7323 * common/rsp-low.h (hex2str): New overload with explicit count
7324 of bytes.
7325 * common/rsp-low.c (hex2str): New overload with explicit count
7326 of bytes.
7327 * unittests/rsp-low-selftests.c (test_hex2str): New function.
7328 (_initialize_rsp_low_selftests): Add test_hex2str test.
7329 * unittests/tracepoint-selftests.c
7330 (test_parse_static_tracepoint_marker_definition): Adjust to
7331 std::string.
7332
62c222b6
SM
73332018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
7334
7335 * tracepoint.c (parse_static_tracepoint_marker_definition):
7336 Consider case where the definition is followed by more
7337 definitions.
7338 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7339 tracepoint-selftests.c.
7340 * unittests/tracepoint-selftests.c: New.
7341
7eb2418f
PFC
73422018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7343
7344 * MAINTAINERS (Write After Approval): Add Pedro Franco de
7345 Carvalho.
7346
7cbe16e9
SR
73472018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7348
3d6b3b82 7349 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 7350
4ee89e90
SR
73512018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7352
3d6b3b82 7353 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 7354
92630041
TT
73552018-03-19 Tom Tromey <tom@tromey.com>
7356
7357 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
7358 "IDENT" production.
7359
76727919
TT
73602018-03-19 Pedro Alves <palves@redhat.com>
7361 Tom Tromey <tom@tromey.com>
7362
7363 * unittests/observable-selftests.c: New file.
7364 * common/observable.h: New file.
7365 * observable.h: New file.
7366 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
7367 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
7368 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
7369 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
7370 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
7371 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
7372 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
7373 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
7374 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
7375 python/py-breakpoint.c, python/py-finishbreakpoint.c,
7376 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
7377 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
7378 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
7379 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
7380 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
7381 tui/tui-interp.c, valops.c: Update all users.
7382 * tui/tui-hooks.c (tui_bp_created_observer)
7383 (tui_bp_deleted_observer, tui_bp_modified_observer)
7384 (tui_inferior_exit_observer, tui_before_prompt_observer)
7385 (tui_normal_stop_observer, tui_register_changed_observer):
7386 Remove.
7387 (tui_observers_token): New global.
7388 (attach_or_detach, tui_attach_detach_observers): New functions.
7389 (tui_install_hooks, tui_remove_hooks): Use
7390 tui_attach_detach_observers.
7391 * record-btrace.c (record_btrace_thread_observer): Remove.
7392 (record_btrace_thread_observer_token): New global.
7393 * observer.sh: Remove.
7394 * observer.c: Rename to observable.c.
7395 * observable.c (namespace gdb_observers): Define new objects.
7396 (observer_debug): Move into gdb_observers namespace.
7397 (struct observer, struct observer_list, xalloc_observer_list_node)
7398 (xfree_observer_list_node, generic_observer_attach)
7399 (generic_observer_detach, generic_observer_notify): Remove.
7400 (_initialize_observer): Update.
7401 Don't include observer.inc.
7402 * Makefile.in (generated_files): Remove observer.h, observer.inc.
7403 (clean mostlyclean): Likewise.
7404 (observer.h, observer.inc): Remove targets.
7405 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
7406 (COMMON_SFILES): Use observable.c, not observer.c.
7407 * .gitignore: Remove observer.h.
7408
1cb1f3da
TT
74092018-03-18 Tom Tromey <tom@tromey.com>
7410
7411 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
7412 gdb::def_vector.
7413 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
7414
a06ab151
TT
74152018-03-17 Tom Tromey <tom@tromey.com>
7416
7417 * auto-load.c (auto_load_objfile_script_1): Use std::string.
7418
770623f7
TT
74192018-03-17 Tom Tromey <tom@tromey.com>
7420
7421 * target.c (class scoped_target_fd): New.
7422 (target_fileio_close_cleanup): Remove.
7423 (target_fileio_read_alloc_1): Use scoped_target_fd.
7424
39be3c7e
SM
74252018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
7426
7427 * silent-rules.mk: New.
7428 * Makefile.in: Include silent-rules.mk
7429 (srcdir, VPATH, top_srcdir): Move up.
7430 (COMPILE): Add ECHO_CXX.
7431 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
7432 (init.c): Add ECHO_INIT_C.
7433 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
7434 (version.c): Add ECHO_GEN.
7435 (printcmd.o): Add ECHO_CXX.
7436 (target-float.o): Add ECHO_CXX.
7437 (ada-exp.o): Add ECHO_CXX.
7438 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
7439 (insight$(EXEEXT)): Add ECHO_CXXLD.
7440 * gnulib/configure.ac: Add AM_SILENT_RULES.
7441 * gnulib/aclocal.m4: Re-generate.
7442 * gnulib/configure: Re-generate.
7443 * gnulib/import/Makefile.in: Re-generate.
7444
37e136b1
TT
74452018-03-16 Tom Tromey <tom@tromey.com>
7446
7447 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
7448 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
7449 * utils.c (do_free_section_addr_info)
7450 (make_cleanup_free_section_addr_info): Remove.
7451 * symfile.h (struct other_sections): Add constructor.
7452 (struct section_addr_info): Remove.
7453 (section_addr_info): New typedef.
7454 (struct sym_fns) <sym_offsets>: Change type of parameter.
7455 (build_section_addr_info_from_objfile)
7456 (relative_addr_info_to_section_offsets, addr_info_make_relative)
7457 (default_symfile_offsets, symbol_file_add)
7458 (symbol_file_add_from_bfd)
7459 (build_section_addr_info_from_section_table): Update.
7460 (alloc_section_addr_info, free_section_addr_info): Don't declare.
7461 * symfile.c (alloc_section_addr_info): Remove.
7462 (build_section_addr_info_from_section_table): Change return type.
7463 Update.
7464 (build_section_addr_info_from_bfd)
7465 (build_section_addr_info_from_objfile): Likewise.
7466 (free_section_addr_info): Remove.
7467 (relative_addr_info_to_section_offsets): Change type of "addrs".
7468 (addrs_section_compar): Now a std::sort comparator.
7469 (addrs_section_sort): Change return type.
7470 (addr_info_make_relative): Change type of "addrs". Update.
7471 (default_symfile_offsets, syms_from_objfile_1)
7472 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
7473 (symbol_file_add_separate): Update.
7474 (symbol_file_add): Change type of "addrs". Update.
7475 (add_symbol_file_command): Update. Remove cleanups.
7476 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
7477 cleanups.
7478 * symfile-debug.c (debug_sym_offsets): Change type of "info".
7479 * solib.c (solib_read_symbols): Update.
7480 * objfiles.c (objfile_relocate): Update. Remove cleanups.
7481 * machoread.c (macho_symfile_offsets): Update.
7482 * jit.c (jit_bfd_try_read_symtab): Update.
7483
03afa6ef
SM
74842018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
7485
7486 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7487 unittests/utils-selftests.c.
7488 * unittests/utils-selftests.c: New file.
7489
3ae9ce5d
TT
74902018-03-14 Tom Tromey <tom@tromey.com>
7491
7492 PR cli/14977:
7493 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
7494 for NULL.
7495
b8c2339b
TT
74962018-03-14 Tom Tromey <tom@tromey.com>
7497
7498 PR cli/19918:
7499 * printcmd.c (printf_pointer): Allow "-" in format.
7500
80ae639d
TT
75012018-03-14 Tom Tromey <tom@tromey.com>
7502
7503 * printcmd.c (_initialize_printcmd): Add usage to printf.
7504
0d671d99
YQ
75052018-03-14 Yao Qi <qiyao@sourceware.org>
7506
7507 * MAINTAINERS: Update my email address.
7508
b577b6af
TT
75092018-03-13 Tom Tromey <tom@tromey.com>
7510
7511 * machoread.c (macho_check_dsym): Change filenamep to a
7512 std::string*.
7513 (macho_symfile_read): Update.
7514 * symfile.c (load_command): Use std::string.
7515
89a3b63e
AB
75162018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
7517
7518 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
7519 to error message string.
7520 (riscv_register_name): Use xsnprintf instead of sprintf.
7521 (riscv_insn::fetch_instruction): Use gdb_assert instead of
7522 internal_error.
7523 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
7524 error.
7525 (riscv_push_dummy_call): Likewise.
7526
984c7238
TT
75272018-03-12 Tom Tromey <tom@tromey.com>
7528
7529 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
7530 Use gdb::byte_vector.
7531 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
7532
933522d1
YQ
75332018-03-12 Yao Qi <yao.qi@linaro.org>
7534
7535 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
7536 parameter type to readable_regcache.
7537 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
7538 the declaration.
7539
be2daae6
TT
75402018-03-11 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2read.c (struct nextfield): Add initializers.
7543 (struct nextfnfield): Remove.
7544 (struct fnfieldlist): Add initializers. Remove "length" and
7545 "head", use std::vector.
7546 (struct decl_field_list): Remove.
7547 (struct field_info): Add initializers.
7548 <fields, baseclasses>: Now std::vector.
7549 <nbaseclasses, nfnfields, typedef_field_list_count,
7550 nested_types_list_count>: Remove.
7551 (dwarf2_add_field, dwarf2_add_type_defn)
7552 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
7553 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
7554 (process_structure_scope): Update.
7555
484cf504
TT
75562018-03-11 Tom Tromey <tom@tromey.com>
7557
7558 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
7559 for use by std::sort.
7560 (build_type_psymtabs_1): Use std::vector.
7561
9bd8e0b0
EZ
75622018-03-09 Eli Zaretskii <eliz@gnu.org>
7563
7564 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
7565 and LIBMPFR in the printed configuration.
7566
5dc1a704
TT
75672018-03-08 Tom Tromey <tom@tromey.com>
7568
7569 * source.c (get_filename_and_charpos): Use scoped_fd.
7570 * nto-procfs.c (procfs_open_1): Use scoped_fd.
7571 (procfs_pidlist): Likewise.
7572 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
7573 (iterate_over_mappings): Likewise.
7574
fdf07f3a
TT
75752018-03-08 Tom Tromey <tom@tromey.com>
7576
7577 * infcall.c (struct call_return_meta_info)
7578 <stack_temporaries_enabled>: Remove.
7579 (get_call_return_value, call_function_by_hand_dummy): Update.
7580 * thread.c (disable_thread_stack_temporaries): Remove.
7581 (enable_thread_stack_temporaries): Remove.
7582 (thread_stack_temporaries_enabled_p): Return bool.
7583 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
7584 (get_last_thread_stack_temporary): Update.
7585 * eval.c (evaluate_subexp): Update.
7586 * gdbthread.h (class enable_thread_stack_temporaries): Now a
7587 class, not a function.
7588 (value_ptr, value_vec): Remove typedefs.
7589 (class thread_info) <stack_temporaries_enabled>: Now bool.
7590 <stack_temporaries>: Now a std::vector.
7591 (thread_stack_temporaries_enabled_p)
7592 (value_in_thread_stack_temporaries): Return bool.
7593
567a3e54
SM
75942018-03-08 Simon Marchi <simon.marchi@ericsson.com>
7595
7596 * remote.c (putpkt_binary): Fix omitted bytes reporting.
7597 (getpkt_or_notif_sane_1): Likewise.
7598
00b40057
SM
75992018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7600
7601 * build-id.c (build_id_to_debug_bfd): Use std::string.
7602
a8dbfd58
SM
76032018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7604
7605 * build-id.c (find_separate_debug_file_by_buildid): Return
7606 std::string.
7607 * build-id.h (find_separate_debug_file_by_buildid): Return
7608 std::string.
7609 * coffread.c (coff_symfile_read): Adjust to std::string.
7610 * elfread.c (elf_symfile_read): Adjust to std::string.
7611 * symfile.c (separate_debug_file_exists): Change parameter to
7612 std::string.
7613 (find_separate_debug_file): Return std::string.
7614 (find_separate_debug_file_by_debuglink): Return std::string.
7615 * symfile.h (find_separate_debug_file_by_debuglink): Return
7616 std::string.
7617
e6a58aa8
SM
76182018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
7619
7620 * common/xml-utils.c (xml_escape_text): Move code to...
7621 (xml_escape_text_append): ... this new function.
7622 * common/xml-utils.h (xml_escape_text_append): New declaration.
7623 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
7624 New function.
7625 (_initialize_xml_utils): register test_xml_escape_text_append as
7626 a selftest.
7627
4ef0bef6
AH
76282018-03-07 Alan Hayward <alan.hayward@arm.com>
7629
7630 * defs.h: Remove MAX_REGISTER_SIZE.
7631 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
7632 asserts.
7633 * python/py-unwind.c (pyuw_sniffer): Likewise.
7634
e0d3522b
TT
76352018-03-07 Tom Tromey <tom@tromey.com>
7636
7637 * linux-tdep.c (linux_info_proc): Update.
7638 * target.h (struct target_ops) <to_fileio_readlink>: Return
7639 optional<string>.
7640 (target_fileio_readlink): Return optional<string>.
7641 * remote.c (remote_hostio_readlink): Return optional<string>.
7642 * inf-child.c (inf_child_fileio_readlink): Return
7643 optional<string>.
7644 * target.c (target_fileio_readlink): Return optional<string>.
7645
ea005f31
AB
76462018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
7647
7648 * regcache.c (cooked_read_test): Add riscv to the list of
7649 architectures that have a save_reggroup.
7650
e95a97d4
AA
76512018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
7652
7653 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
7654 value is not a dynamic class object.
7655
d8344f3d
TT
76562018-03-06 Tom Tromey <tom@tromey.com>
7657
7658 * rust-exp.y: Formatting fixes.
7659
9add17f2
AB
76602018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * riscv-tdep.c (riscv_register_name): Remove target description
7663 support.
7664 (riscv_gdbarch_init): Remove target description check.
7665
c9486dfe
AB
76662018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
7669 comment.
7670 * riscv-tdep.h: Likewise.
7671
d74aff3d
AB
76722018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7673
7674 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
7675 (riscv_pseudo_register_write): Delete.
7676 (riscv_gdbarch_init): Remove all use of pseudo registers.
7677
7ea78b59
SM
76782018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7679
7680 * record-btrace.c (btrace_print_lines): Replace cleanup
7681 parameter with RAII equivalents.
7682 (btrace_insn_history): Replace cleanup with RAII equivalents.
7683 * ui-out.h (make_cleanup_ui_out_list_begin_end,
7684 make_cleanup_ui_out_tuple_begin_end): Remove.
7685 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
7686 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
7687 make_cleanup_ui_out_list_begin_end): Remove.
7688
53127008
SM
76892018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7690
7691 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
7692 parameter types to std::vector. Use bool.
7693 (record_btrace_wait): Replace VEC(tp_t) with
7694 std::vector<thread_info *>.
7695 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
7696
228f1508
SM
76972018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7698
7699 * record-btrace.c (record_btrace_disable_callback): Remove.
7700 (struct scoped_btrace_disable): New.
7701 (record_btrace_open): Use scoped_btrace_disable.
7702
b2970c23
AB
77032018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7704
7705 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
7706 reading values from registers.
7707
fb294655
AB
77082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
7711 where appropriate.
7712
cab5bb9d
AB
77132018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7714
7715 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
7716 change parameter type. Use GDB's print functions, and use
7717 core_addr_to_string where appropriate.
7718 (riscv_push_dummy_call): Use core_addr_to_string where
7719 appropriate, update call to riscv_print_arg_location, and reindent
7720 a few lines.
7721 (riscv_return_value): Update call to riscv_print_arg_location.
7722
dbbb1059
AB
77232018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7724 Tim Newsome <tim@sifive.com>
7725 Albert Ou <a0u@eecs.berkeley.edu>
7726 Darius Rad <darius@bluespec.com>
7727
7728 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
7729 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
7730 (ALLDEPFILES): Add riscv-tdep.c
7731 * configure.tgt: Add riscv support.
7732 * riscv-tdep.c: New file.
7733 * riscv-tdep.h: New file.
7734 * NEWS: Mention new target.
7735 * MAINTAINERS: Add entry for riscv.
7736
5dc43913
AB
77372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7738
7739 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
7740 fields within aggregates.
7741
3dea1ef7
SM
77422018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
7743
7744 * record-btrace.c (btrace_print_lines): Change type of flags to
7745 gdb_disassembly_flags.
7746
7efba073
JB
77472018-03-04 John Baldwin <jhb@FreeBSD.org>
7748
7749 * fbsd-nat.c: Include "inf-ptrace.h".
7750 (USE_SIGTRAP_SIGINFO): Conditionally define.
7751 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
7752 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
7753 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
7754 function.
7755 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
7756 Likewise.
7757 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
7758 Likewise.
7759 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
7760 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
7761 "supports_stopped_by_hw_breakpoint" target methods.
7762
386a8676
JB
77632018-03-04 John Baldwin <jhb@FreeBSD.org>
7764
7765 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
7766 * fbsd-nat.c (debug_fbsd_nat): New variable.
7767 (show_fbsd_nat_debug): New function.
7768 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
7769 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
7770
12279366
JB
77712018-03-04 John Baldwin <jhb@FreeBSD.org>
7772
7773 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
7774 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
7775 prototype.
7776 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
7777 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
7778 method.
7779
54693cf5
SM
77802018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7781
7782 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
7783 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
7784
ccb2231c
SM
77852018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7786
7787 * charset.c (struct charset_vector): New.
7788 (charsets): Change type to charset_vector.
7789 (find_charset_names): Adjust.
7790 (add_one): Adjust.
7791 (_initialize_charset): Adjust.
7792
6fb16ce6
SM
77932018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7794
7795 * progspace.h (struct program_space) <deleted_solibs>: Change
7796 type to std::vector<std::string>.
7797 * progspace.c (clear_program_space_solib_cache): Adjust.
7798 * breakpoint.c (print_solib_event): Adjust.
7799 (check_status_catch_solib): Adjust.
7800 * solib.c (update_solib_list): Adjust.
7801 * ui-out.h (class ui_out) <field_string>: New overload.
7802 * ui-out.c (ui_out::field_string): New overload.
7803
564b1e3f
SM
78042018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7805
7806 * progspace.h (struct program_space): Add constructor and
7807 destructor, initialize fields.
7808 (add_program_space): Remove.
7809 * progspace.c (add_program_space): Rename to...
7810 (program_space::program_space): ... this.
7811 (release_program_space): Rename to...
7812 (program_space::~program_space): ... this.
7813 (delete_program_space): Use delete to delete program_space.
7814 (initialize_progspace): Use new to allocate program_space.
7815 * inferior.c (add_inferior_with_spaces): Likewise.
7816 (clone_inferior_command): Likewise.
7817 * infrun.c (follow_fork_inferior): Likewise.
7818 (handle_vfork_child_exec_or_exit): Likewise.
7819
e80aaf61
SM
78202018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7821
7822 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
7823 (delim_string_to_char_ptr_vec): Return std::vector of
7824 gdb::unique_xmalloc_ptr.
7825 (dirnames_to_char_ptr_vec_append): Take std::vector of
7826 gdb::unique_xmalloc_ptr.
7827 (dirnames_to_char_ptr_vec): Return std::vector of
7828 gdb::unique_xmalloc_ptr.
7829 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
7830 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
7831 (delim_string_to_char_ptr_vec): Return an std::vector of
7832 gdb::unique_xmalloc_ptr, adjust the code.
7833 (dirnames_to_char_ptr_vec_append): Take an std::vector of
7834 gdb::unique_xmalloc_ptr, adjust the code.
7835 (dirnames_to_char_ptr_vec): Return an std::vector of
7836 gdb::unique_xmalloc_ptr, adjust the code.
7837 * auto-load.c (auto_load_safe_path_vec): Change type to
7838 std::vector of gdb::unique_xmalloc_ptr.
7839 (auto_load_expand_dir_vars): Return an std::vector of
7840 gdb::unique_xmalloc_ptr, adjust the code.
7841 (auto_load_safe_path_vec_update): Adjust.
7842 (filename_is_in_auto_load_safe_path_vec): Adjust.
7843 (auto_load_objfile_script_1): Adjust.
7844 * build-id.c (build_id_to_debug_bfd): Adjust.
7845 * linux-thread-db.c (thread_db_load_search): Adjust.
7846 * source.c (add_path): Adjust.
7847 (openp): Adjust.
7848 * symfile.c (find_separate_debug_file): Adjust.
7849 * utils.c (do_free_char_ptr_vec): Remove.
7850 (make_cleanup_free_char_ptr_vec): Remove.
7851
ab818ade
SDJ
78522018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
7853
7854 PR gdb/22907
7855 * common/pathstuff.c: Conditionally include "<windows.h>".
7856
e1e6f073
GS
78572018-03-01 Georg Sauthoff <mail@georg.so>
7858
7859 PR gdb/22888
7860 * gcore.in: Quote variables and switch interpreter to bash.
7861
c7b15a66
TT
78622018-03-01 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2read.c (alloc_discriminant_info): Fix default_index
7865 assertion. Add assertion for discriminant_index.
7866 (quirk_rust_enum): Use correct base type name in univariant case.
7867
0cb7c7b0
SM
78682018-03-01 Simon Marchi <simon.marchi@ericsson.com>
7869
7870 * record.c (get_call_history_modifiers): Return a
7871 record_print_flags.
7872 (cmd_record_call_history): Adjust.
7873 * record-btrace.c (record_btrace_call_history): Adjust.
7874 (record_btrace_call_history_range): Adjust.
7875 (record_btrace_call_history_from): Adjust.
7876 * target-debug.h (target_debug_print_record_print_flags): New.
7877 * target-delegates.c: Re-generate.
7878 * target.c (target_call_history): Change flags type.
7879 (target_call_history_from): Likewise.
7880 (target_call_history_range): Likewise.
7881 * target.h (struct target_ops) <target_call_history>: Likewise.
7882 (target_call_history_from): Likewise.
7883 (target_call_history_range): Likewise.
7884
25e3c82c
SDJ
78852018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7886 Simon Marchi <simon.marchi@polymtl.ca>
7887
7888 * common/common-utils.c: Include "sys/stat.h".
7889 (is_regular_file): Move here from "source.c"; change return
7890 type to "bool".
7891 * common/common-utils.h (is_regular_file): New prototype.
7892 * common/pathstuff.c (contains_dir_separator): New function.
7893 * common/pathstuff.h (contains_dir_separator): New prototype.
7894 * source.c: Don't include "sys/stat.h".
7895 (is_regular_file): Move to "common/common-utils.c".
7896
b4987c95
SDJ
78972018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
7898
7899 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
7900 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
7901 * auto-load.c: Include "common/pathstuff.h".
7902 * common/common-def.h (current_directory): Move here.
7903 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
7904 function.
7905 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
7906 prototype.
7907 * common/pathstuff.c: New file.
7908 * common/pathstuff.h: New file.
7909 * compile/compile.c: Include "common/pathstuff.h".
7910 * defs.h (current_directory): Move to "common/common-defs.h".
7911 * dwarf2read.c: Include "common/pathstuff.h".
7912 * exec.c: Likewise.
7913 * guile/scm-safe-call.c: Likewise.
7914 * linux-thread-db.c: Likewise.
7915 * main.c: Likewise.
7916 * nto-tdep.c: Likewise.
7917 * objfiles.c: Likewise.
7918 * source.c: Likewise.
7919 * symtab.c: Likewise.
7920 * utils.c: Include "common/pathstuff.h".
7921 (gdb_realpath): Move to "common/pathstuff.c".
7922 (gdb_realpath_keepfile): Likewise.
7923 (gdb_abspath): Likewise.
7924 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
7925 (gdb_realpath_keepfile): Likewise.
7926 (gdb_abspath): Likewise.
7927
f169cfdc
JB
79282018-02-28 John Baldwin <jhb@FreeBSD.org>
7929
7930 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
7931 wildcard process pid for super_resume for kernels with a
7932 specific bug.
7933
e05cac70
PM
79342018-02-27 Phil Muldoon <pmuldoon@redhat.com>
7935
7936 * compile/compile.c (get_args): Add additional comments
7937 explaining function.
7938
55089490
TT
79392018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
7940 Tom Tromey <tom@tromey.com>
7941
7942 * target.h (memory_write_request_s): Remove typedef. Don't define
7943 VEC.
7944 (target_write_memory_blocks): Change argument to std::vector.
7945 (struct memory_write_request): Add constructor.
7946 * target-memory.c (compare_block_starting_address): Return bool.
7947 Change argument types.
7948 (claim_memory): Change arguments to use std::vector.
7949 (split_regular_and_flash_blocks, blocks_to_erase)
7950 (compute_garbled_blocks): Likewise.
7951 (cleanup_request_data, cleanup_write_requests_vector): Remove.
7952 (target_write_memory_blocks): Change argument to std::vector.
7953 * symfile.c (struct load_section_data): Add constructor and
7954 destructor. Use std::vector for "requests".
7955 (struct load_progress_data): Add initializers.
7956 (load_section_callback): Update. Use "new".
7957 (clear_memory_write_data): Remove.
7958 (generic_load): Update.
7959
0c305b61
AH
79602018-02-27 Alan Hayward <alan.hayward@arm.com>
7961
7962 * arch/aarch64.h: Use common/tdesc.h.
7963
c5196c92
MR
79642018-02-26 Maciej W. Rozycki <macro@mips.com>
7965
7966 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
7967 architecture with a 64-bit ABI.
7968
37c33887
MR
79692018-02-26 Maciej W. Rozycki <macro@mips.com>
7970
7971 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
7972 ahead of target description loading.
7973
d4dd3282
TT
79742018-02-26 Tom Tromey <tom@tromey.com>
7975
7976 * stack.c (backtrace_command_1): Update.
7977 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
7978 of "flags".
7979 * python/py-framefilter.c (py_print_frame)
7980 (gdbpy_apply_frame_filter): Change type of "flags".
7981 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
7982 of "flags".
7983 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
7984 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
7985 * extension.h (enum frame_filter_flag): Rename from
7986 frame_filter_flags.
7987 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
7988 (apply_ext_lang_frame_filter): Change type of "flags".
7989 * extension.c (apply_ext_lang_frame_filter): Change type of
7990 "flags".
7991 * extension-priv.h (struct extension_language_ops)
7992 <apply_frame_filter>: Change type of "flags".
7993
6893c19a
TT
79942018-02-26 Tom Tromey <tom@tromey.com>
7995
7996 PR python/16497:
7997 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
7998 off-by-one in py_end computation.
7999 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
8000 PRINT_MORE_FRAMES.
8001 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
8002 constant.
8003
2ddeaf8a
TT
80042018-02-26 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2read.c (struct variant_field): New.
8007 (struct nextfield) <variant>: New field.
8008 (dwarf2_add_field): Handle DW_TAG_variant_part.
8009 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
8010 discriminated union.
8011 (read_structure_type): Handle DW_TAG_variant_part.
8012 (handle_struct_member_die): New function, extracted from
8013 process_structure_scope. Handle DW_TAG_variant.
8014 (process_structure_scope): Handle discriminated unions. Call
8015 handle_struct_member_die.
8016
c9317f21
TT
80172018-02-26 Tom Tromey <tom@tromey.com>
8018
8019 * rust-lang.h (rust_last_path_segment): Declare.
8020 * rust-lang.c (rust_last_path_segment): Now public. Change
8021 contract.
8022 (struct disr_info): Remove.
8023 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
8024 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
8025 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
8026 (rust_enum_p, rust_enum_variant): New function.
8027 (rust_underscore_fields): Remove "offset" parameter.
8028 (rust_print_enum): New function.
8029 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
8030 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
8031 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
8032 enums.
8033 (rust_internal_print_type): New function, from rust_print_type.
8034 Remove enum code.
8035 (rust_print_type): Call rust_internal_print_type.
8036 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
8037 Update enum handling.
8038 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
8039 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
8040 (rust_union_quirks): New functions.
8041 (process_full_comp_unit, process_full_type_unit): Call
8042 rust_union_quirks.
8043 (process_structure_scope): Update rust_unions if necessary.
8044
7c22600a
TT
80452018-02-26 Tom Tromey <tom@tromey.com>
8046
8047 * value.h (value_union_variant): Declare.
8048 * valops.c (value_union_variant): New function.
8049 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
8050 (struct discriminant_info): New.
8051 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
8052 enumerator.
8053 (struct main_type) <flag_discriminated_union>: New field.
8054
15ce8941
TT
80552018-02-26 Tom Tromey <tom@tromey.com>
8056
8057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8058 unittests/unpack-selftests.c.
8059 * unittests/unpack-selftests.c: New file.
8060 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
8061
48fbe735
YQ
80622018-02-26 Yao Qi <yao.qi@linaro.org>
8063
8064 * dwarf2read.c (struct partial_die_info) <read>: New method.
8065 (read_partial_die): Remove the declaration.
8066 (load_partial_dies): Update.
8067 (partial_die_info::partial_die_info):
8068 (read_partial_die): Change it to partial_die_info::read.
8069
52356b79
YQ
80702018-02-26 Yao Qi <yao.qi@linaro.org>
8071
8072 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
8073 (fixup_partial_die): Remove declaration.
8074 (scan_partial_symbols): Update.
8075 (partial_die_parent_scope): Likewise.
8076 (partial_die_full_name): Likewise.
8077 (fixup_partial_die): Change it to partial_die_info::fixup.
8078
35cc7ed7
YQ
80792018-02-26 Yao Qi <yao.qi@linaro.org>
8080
8081 * dwarf2read.c (read_partial_die): Update the declaration.
8082 (load_partial_dies): Caller update.
8083 (read_partial_die): Remove one argument abbrev_len.
8084
6f06d47b
YQ
80852018-02-26 Yao Qi <yao.qi@linaro.org>
8086
8087 * dwarf2read.c (struct partial_die_info): Add ctor, delete
8088 assignment operator.
8089 (load_partial_dies): Use ctor and copy ctor.
8090 (read_partial_die): Update.
8091 (dwarf2_cu::find_partial_die): Use ctor.
8092
d590ff25
YQ
80932018-02-26 Yao Qi <yao.qi@linaro.org>
8094
8095 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
8096 (find_partial_die_in_comp_unit): Change it to
8097 dwarf2_cu::find_partial_die.
8098 (find_partial_die): Update.
8099
fd0a254f
YQ
81002018-02-26 Yao Qi <yao.qi@linaro.org>
8101
8102 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
8103 is NULL.
8104
cd9983dd
YQ
81052018-02-26 Yao Qi <yao.qi@linaro.org>
8106
8107 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
8108
f46cd62a
AH
81092018-02-26 Alan Hayward <alan.hayward@arm.com>
8110
8111 * arch/amd64.h: Use common/tdesc.h.
8112 * arch/i386.c: Likewise.
8113 * arch/i386.h: Likewise.
8114 * arch/tic6x.c: Likewise.
8115 * arch/tdesc.h: Move file from here...
8116 * common/tdesc.h: ...to here.
8117 * features/aarch64-core.c: Regenerate.
8118 * features/aarch64-fpu.c: Regenerate.
8119 * features/i386/32bit-avx.c: Regenerate.
8120 * features/i386/32bit-avx512.c: Regenerate.
8121 * features/i386/32bit-core.c: Regenerate.
8122 * features/i386/32bit-linux.c: Regenerate.
8123 * features/i386/32bit-mpx.c: Regenerate.
8124 * features/i386/32bit-pkeys.c: Regenerate.
8125 * features/i386/32bit-sse.c: Regenerate.
8126 * features/i386/64bit-avx.c: Regenerate.
8127 * features/i386/64bit-avx512.c: Regenerate.
8128 * features/i386/64bit-core.c: Regenerate.
8129 * features/i386/64bit-linux.c: Regenerate.
8130 * features/i386/64bit-mpx.c: Regenerate.
8131 * features/i386/64bit-pkeys.c: Regenerate.
8132 * features/i386/64bit-segments.c: Regenerate.
8133 * features/i386/64bit-sse.c: Regenerate.
8134 * features/i386/x32-core.c: Regenerate.
8135 * features/tic6x-c6xp.c: Regenerate.
8136 * features/tic6x-core.c: Regenerate.
8137 * features/tic6x-gp.c: Regenerate.
8138 * target-descriptions.c: Use common/tdesc.h.
8139 * target-descriptions.h: Likewise.
8140
9b292f68
TT
81412018-02-24 Tom Tromey <tom@tromey.com>
8142
8143 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8144 (try_thread_db_load_from_dir, thread_db_load_search): Use
8145 std::string.
8146 (info_auto_load_libthread_db_compare): Return bool. Change
8147 argument types.
8148 (info_auto_load_libthread_db): Use std::vector, std::string.
8149 Remove cleanups.
8150
281d762b
TT
81512018-02-24 Tom Tromey <tom@tromey.com>
8152
8153 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
8154 std::string.
8155 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
8156 std::string*.
8157 * gdbarch.c: Rebuild.
8158 * gdbarch.h: Rebuild.
8159 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
8160 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
8161 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
8162 std::string*.
8163
9d8780f0
SM
81642018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
8165
8166 * gdbtypes.h (sect_offset): Change type to uint64_t.
8167 (sect_offset_str): New function.
8168 * dwarf2read.c (create_addrmap_from_aranges): Use
8169 sect_offset_str.
8170 (error_check_comp_unit_head): Likewise.
8171 (create_debug_type_hash_table): Likewise.
8172 (read_cutu_die_from_dwo): Likewise.
8173 (init_cutu_and_read_dies): Likewise.
8174 (init_cutu_and_read_dies_no_follow): Likewise.
8175 (process_psymtab_comp_unit_reader): Likewise.
8176 (partial_die_parent_scope): Likewise.
8177 (peek_die_abbrev): Likewise.
8178 (process_queue): Likewise.
8179 (dwarf2_physname): Likewise.
8180 (read_namespace_alias): Likewise.
8181 (read_import_statement): Likewise.
8182 (create_dwo_cu_reader): Likewise.
8183 (create_cus_hash_table): Likewise.
8184 (lookup_dwo_cutu): Likewise.
8185 (inherit_abstract_dies): Likewise.
8186 (read_func_scope): Likewise.
8187 (read_call_site_scope): Likewise.
8188 (dwarf2_add_member_fn): Likewise.
8189 (read_common_block): Likewise.
8190 (read_module_type): Likewise.
8191 (read_typedef): Likewise.
8192 (read_subrange_type): Likewise.
8193 (load_partial_dies): Likewise.
8194 (read_partial_die): Likewise.
8195 (find_partial_die): Likewise.
8196 (read_str_index): Likewise.
8197 (dwarf2_string_attr): Likewise.
8198 (build_error_marker_type): Likewise.
8199 (lookup_die_type): Likewise.
8200 (dump_die_shallow): Likewise.
8201 (follow_die_ref): Likewise.
8202 (dwarf2_fetch_die_loc_sect_off): Likewise.
8203 (dwarf2_fetch_constant_bytes): Likewise.
8204 (follow_die_sig): Likewise.
8205 (get_signatured_type): Likewise.
8206 (get_DW_AT_signature_type): Likewise.
8207 (dwarf2_find_containing_comp_unit): Likewise.
8208 (set_die_type): Likewise.
8209
8ec57239
JB
82102018-02-21 John Baldwin <jhb@FreeBSD.org>
8211
8212 * arch/aarch64.c: Include "common-defs.h".
8213 * arch/amd64.c: Likewise.
8214 * arch/i386.c: Likewise.
8215
3eac2b65
TT
82162018-02-21 Tom Tromey <tom@tromey.com>
8217
8218 * value.h: (extract_field_op): Update.
8219 * eval.c (extract_field_op): Return a const char *.
8220 * expression.h (parse_expression_for_completion): Update.
8221 * completer.c (complete_expression): Update.
8222 (add_struct_fields): Make fieldname const.
8223 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
8224 (mark_completion_tag, parse_exp_in_context_1): Update.
8225 (parse_expression_for_completion): Change "name" to
8226 unique_xmalloc_ptr*.
8227
6ccb583f
TT
82282018-02-21 Tom Tromey <tom@tromey.com>
8229
8230 * infcall.c (call_function_by_hand_dummy): Use std::vector.
8231
c113ed0c
YQ
82322018-02-21 Yao Qi <yao.qi@linaro.org>
8233
8234 * avr-tdep.c (avr_read_pc): Change parameter type to
8235 readable_regcache.
8236 * gdbarch.sh (read_pc): Likewise.
8237 * gdbarch.c: Re-generated.
8238 * gdbarch.h: Re-generated.
8239 * hppa-tdep.c (hppa_read_pc): Change parameter type to
8240 readable_regcache.
8241 * ia64-tdep.c (ia64_read_pc): Likewise.
8242 * mips-tdep.c (mips_read_pc): Likewise.
8243 * spu-tdep.c (spu_read_pc): Likewise.
8244
4c74fe6b
YQ
82452018-02-21 Yao Qi <yao.qi@linaro.org>
8246
8247 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
8248 * regcache-dump.c: New file.
8249 * regcache.c: Move register_dump to regcache-dump.c.
8250 (maintenance_print_registers): Likewise.
8251 (maintenance_print_raw_registers): Likewise.
8252 (maintenance_print_cooked_registers): Likewise.
8253 (maintenance_print_register_groups): Likewise.
8254 (maintenance_print_remote_registers): Likewise.
8255 (_initialize_regcache): Likewise.
8256 * regcache.h (register_dump): Moved from regcache.c.
8257
796bb026
YQ
82582018-02-21 Yao Qi <yao.qi@linaro.org>
8259
8260 * regcache.c (regcache::regcache): Update.
8261 (regcache::invalidate): Move it to detached_regcache::invalidate.
8262 (get_thread_arch_aspace_regcache): Update.
8263 (regcache::raw_update): Update.
8264 (regcache::cooked_read): Remove some code.
8265 (regcache::cooked_read_value): Likewise.
8266 (regcache::raw_write): Remove assert on m_readonly_p.
8267 (regcache::raw_supply_integer): Move it to
8268 detached_regcache::raw_supply_integer.
8269 (regcache::raw_supply_zeroed): Likewise.
8270 * regcache.h (detached_regcache) <raw_supply_integer>: New
8271 declaration.
8272 <raw_supply_zeroed, invalidate>: Likewise.
8273 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
8274 <invalidate>: Likewise.
8275 <m_readonly_p>: Removed.
8276
215c69dc
YQ
82772018-02-21 Yao Qi <yao.qi@linaro.org>
8278
8279 * infcmd.c (get_return_value): Let stop_regs point to
8280 get_current_regcache.
8281 * regcache.c (regcache::regcache): Remove.
8282 (register_dump_reg_buffer): New class.
8283 (regcache_print): Adjust.
8284 * regcache.h (regcache): Remove constructors.
8285
f3384e66
YQ
82862018-02-21 Yao Qi <yao.qi@linaro.org>
8287
8288 * regcache.c (class register_dump): New class.
8289 (register_dump_regcache, register_dump_none): New class.
8290 (register_dump_remote, register_dump_groups): New class.
8291 (regcache_print): Update.
8292 * regcache.h (regcache_dump_what): Move it to regcache.c.
8293 (regcache) <dump>: Remove.
8294
c8ec2f33
YQ
82952018-02-21 Yao Qi <yao.qi@linaro.org>
8296
8297 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
8298 reg_buffer_rw *.
8299 (jit_unwind_reg_set_impl): Call raw_supply.
8300 (jit_frame_sniffer): Use reg_buffer_rw.
8301 * record-full.c (record_full_core_regbuf): Change its type.
8302 (record_full_core_open_1): Use reg_buffer_rw.
8303 (record_full_close): Likewise.
8304 (record_full_core_fetch_registers): Use regcache->raw_supply.
8305 (record_full_core_store_registers): Likewise.
8306 * regcache.c (regcache::get_register_status): Move it to
8307 reg_buffer.
8308 (regcache_raw_set_cached_value): Remove.
8309 (regcache::raw_set_cached_value): Remove.
8310 (regcache::raw_write): Call raw_supply.
8311 (regcache::raw_supply): Move it to reg_buffer_rw.
8312 * regcache.h (regcache_raw_set_cached_value): Remove.
8313 (reg_buffer_rw): New class.
8314
daf6667d
YQ
83152018-02-21 Yao Qi <yao.qi@linaro.org>
8316
8317 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
8318 readonly_detached_regcache.
8319 (dummy_frame_prev_register): Use regcache->cooked_read.
8320 * frame.c (frame_save_as_regcache): Change return type.
8321 (frame_pop): Update.
8322 * frame.h (frame_save_as_regcache): Update declaration.
8323 * inferior.h (get_infcall_suspend_state_regcache): Update
8324 declaration.
8325 * infrun.c (infcall_suspend_state) <registers>: use
8326 readonly_detached_regcache.
8327 (save_infcall_suspend_state): Don't use regcache_dup.
8328 (get_infcall_suspend_state_regcache): Change return type.
8329 * linux-fork.c (struct fork_info) <savedregs>: Change to
8330 readonly_detached_regcache.
8331 <pc>: New field.
8332 (fork_save_infrun_state): Don't use regcache_dup.
8333 (info_checkpoints_command): Adjust.
8334 * mi/mi-main.c (register_changed_p): Update declaration.
8335 (mi_cmd_data_list_changed_registers): Use
8336 readonly_detached_regcache.
8337 (register_changed_p): Change parameter type to
8338 readonly_detached_regcache.
8339 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
8340 readonly_detached_regcache.
8341 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
8342 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
8343 New.
8344 (regcache::save): Move it to reg_buffer.
8345 (regcache::restore): Change parameter type.
8346 (regcache_dup): Remove.
8347 * regcache.h (reg_buffer) <save>: New method.
8348 (readonly_detached_regcache): New class.
8349 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
8350 readonly_detached_regcache.
8351 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
8352
fc5b8736
YQ
83532018-02-21 Yao Qi <yao.qi@linaro.org>
8354
8355 * frame.c (frame_save_as_regcache): Use regcache method save.
8356 (frame_pop): Use regcache method restore.
8357 * infrun.c (restore_infcall_suspend_state): Likewise.
8358 * linux-fork.c (fork_load_infrun_state): Likewise.
8359 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
8360 save.
8361 * regcache.c (regcache_save): Remove.
8362 (regcache::restore): More asserts.
8363 (regcache_cpy): Remove.
8364 * regcache.h (regcache_save): Remove the declaration.
8365 (regcache::restore): Move from private to public.
8366 Remove the friend declaration of regcache_cpy.
8367 (regcache_cpy): Remove declaration.
8368
849d0ba8
YQ
83692018-02-21 Yao Qi <yao.qi@linaro.org>
8370
8371 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
8372 parameter type to 'readable_regcache *'.
8373 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
8374 * arm-tdep.c (arm_neon_quad_read): Likewise.
8375 (arm_pseudo_read): Likewise.
8376 * avr-tdep.c (avr_pseudo_register_read): Likewise.
8377 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
8378 * frv-tdep.c (frv_pseudo_register_read): Likewise.
8379 * gdbarch.c: Re-generated.
8380 * gdbarch.h: Re-generated.
8381 * gdbarch.sh (pseudo_register_read): Change parameter type to
8382 'readable_regcache *'.
8383 (pseudo_register_read_value): Likewise.
8384 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
8385 (h8300_pseudo_register_read): Likewise.
8386 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
8387 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
8388 (i386_pseudo_register_read_into_value): Likewise.
8389 (i386_pseudo_register_read_value): Likewise.
8390 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
8391 declaration.
8392 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
8393 * m32c-tdep.c (m32c_raw_read): Likewise.
8394 (m32c_read_flg): Likewise.
8395 (m32c_banked_register): Likewise.
8396 (m32c_banked_read): Likewise.
8397 (m32c_sb_read): Likewise.
8398 (m32c_part_read): Likewise.
8399 (m32c_cat_read): Likewise.
8400 (m32c_r3r2r1r0_read): Likewise.
8401 (m32c_pseudo_register_read): Likewise.
8402 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
8403 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
8404 (mep_pseudo_cr64_read): Likewise.
8405 (mep_pseudo_register_read): Likewise.
8406 * mips-tdep.c (mips_pseudo_register_read): Likewise.
8407 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
8408 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
8409 * regcache.c (regcache::raw_read): Move it to readable_regcache.
8410 (regcache::cooked_read): Likewise.
8411 (regcache::cooked_read_value): Likewise.
8412 (regcache_cooked_read_signed):
8413 (regcache::cooked_read): Likewise.
8414 * regcache.h (readable_regcache): New class.
8415 (regcache): Inherit readable_regcache. Move some methods to
8416 readable_regcache.
8417 * rl78-tdep.c (rl78_pseudo_register_read): Change
8418 parameter type to 'readable_regcache *'.
8419 * rs6000-tdep.c (do_regcache_raw_read): Remove.
8420 (e500_pseudo_register_read): Change parameter type to
8421 'readable_regcache *'.
8422 (dfp_pseudo_register_read): Likewise.
8423 (vsx_pseudo_register_read): Likewise.
8424 (efpr_pseudo_register_read): Likewise.
8425 * s390-tdep.c (s390_pseudo_register_read): Likewise.
8426 * sh-tdep.c (sh_pseudo_register_read): Likewise.
8427 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
8428 (sh64_pseudo_register_read): Likewise.
8429 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
8430 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
8431 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
8432 (spu_pseudo_register_read): Likewise.
8433 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
8434 (xtensa_pseudo_register_read): Likewise.
8435
31716595
YQ
84362018-02-21 Yao Qi <yao.qi@linaro.org>
8437
8438 * regcache.c (regcache::regcache): Call reg_buffer ctor.
8439 (regcache::arch): Move it to reg_buffer::arch.
8440 (regcache::register_buffer): Likewise.
8441 (regcache::assert_regnum): Likewise.
8442 (regcache::num_raw_registers): Likewise.
8443 * regcache.h (reg_buffer): New class.
8444 (regcache): Inherit reg_buffer.
8445
7104e59b
SM
84462018-02-20 Simon Marchi <simon.marchi@ericsson.com>
8447
8448 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
8449 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
8450
2d8adcbd
MM
84512018-02-20 Markus Metzger <markus.t.metzger@intel.com>
8452
8453 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
8454
b5884fa7
AH
84552018-02-19 Alan Hayward <alan.hayward@arm.com>
8456
8457 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
8458 (SFILES): Remove common/*.c files.
8459 (COMMON_OBS): Remove some *.o files built from common/*.c files.
8460 * common/common.host: Add common reference.
8461 * configure.ac: Likewise.
8462 * configure: Regenerate.
8463
fd90ace4
YQ
84642018-02-16 Yao Qi <yao.qi@linaro.org>
8465
8466 * block.c (block_namespace_info): Inherit allocate_on_obstack.
8467 (block_initialize_namespace): Use new.
8468 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
8469 (dwarf2_free_objfile): Use delete.
8470 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
8471 (copy_type_recursive): Use new.
8472 * gdb_obstack.h (allocate_on_obstack): New.
8473
85046ae2
YQ
84742018-02-15 Yao Qi <yao.qi@linaro.org>
8475
8476 PR gdb/22849
8477 * inferior.c (exit_inferior_1): Reset inf->control.
8478
355c559b
JB
84792018-02-15 Joel Brobecker <brobecker@adacore.com>
8480
8481 * ada-lang.c (ada_to_fixed_value_create): Delete advance
8482 declaration.
8483
980548fd
PA
84842018-02-14 Pedro Alves <palves@redhat.com>
8485
8486 * frame-unwind.c (frame_unwind_try_unwinder): Always call
8487 frame_cleanup_after_sniffer on exception.
8488
692d6f97
TT
84892018-02-14 Tom Tromey <tom@tromey.com>
8490
8491 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
8492 const.
8493 (solib_bfd_open): Make pathname const.
8494 * solib.c (solib_bfd_open): Make pathname const.
8495 * solib-spu.c (spu_bfd_fopen): Make name const.
8496 (spu_bfd_open): Make pathname const.
8497 * solib-darwin.c (darwin_bfd_open): Make pathname const.
8498 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
8499
e0cc99a6
TT
85002018-02-14 Tom Tromey <tom@tromey.com>
8501
8502 * symfile.c (symfile_bfd_open): Update.
8503 * source.h (openp, source_full_path_of, find_and_open_source):
8504 Change argument type to unique_xmalloc_ptr.
8505 * source.c (openp): Take a unique_xmalloc_ptr.
8506 (source_full_path_of, find_and_open_source): Likewise.
8507 (open_source_file, symtab_to_fullname): Update.
8508 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
8509 unique_xmalloc_ptr.
8510 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
8511 (exec_file_find): Update.
8512 * psymtab.c (psymtab_to_fullname): Update.
8513 * nto-tdep.h (nto_find_and_open_solib): Update.
8514 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
8515 unique_xmalloc_ptr.
8516 * exec.c (exec_file_attach): Update.
8517 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
8518 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
8519
b46a8d7c
TT
85202018-02-14 Tom Tromey <tom@tromey.com>
8521
8522 * solib.c: Include source.h.
8523 * nto-tdep.c: Include source.h.
8524 * mi/mi-cmd-env.c: Include source.h.
8525 * infcmd.c: Include source.h.
8526 * exec.c: Include source.h.
8527 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
8528 (add_path, directory_switch, source_path, init_source_path): Move
8529 declarations...
8530 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
8531 (add_path, directory_switch, source_path, init_source_path):
8532 ...here.
8533
797bc1cb
TT
85342018-02-14 Tom Tromey <tom@tromey.com>
8535
8536 * solist.h (exec_file_find, solib_find): Return
8537 unique_xmalloc_ptr.
8538 (solib_bfd_fopen): Take a const char *.
8539 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
8540 (exec_file_find, solib_find): Likewise.
8541 (solib_bfd_fopen): Do not take ownership of "pathname".
8542 (solib_bfd_open): Use unique_xmalloc_ptr.
8543 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
8544 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
8545 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
8546 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
8547
f98b2e33
JB
85482018-02-14 Joel Brobecker <brobecker@adacore.com>
8549
8550 * ada-lang.c (name_match_type_from_name): Remove reference to
8551 ada_name_for_lookup in function's documentation.
8552 * ada-lang.h (ada_name_for_lookup): Delete declaration.
8553
24b9144d
SM
85542018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8555
8556 * defs.h (enum openp_flags): New enum.
8557 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
8558 Move to enum openp_flags.
8559 (openp_flags): New enum flags.
8560 (openp): Change parameter type to openp_flags.
8561 * source.c (openp): Change parameter type to openp_flags.
8562 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
8563 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
8564
387cd15b
SM
85652018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
8566
8567 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
8568 per-command.
8569
b303c6f6
AB
85702018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
8571
8572 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
8573 into...
8574 (class dwarf2_queue_guard): ...the destructor of this new class.
8575 (dw2_do_instantiate_symtab): Create instance of the new class
8576 dwarf2_queue_guard, remove cleanup.
8577
9c3630e9
TT
85782018-02-09 Tom Tromey <tom@tromey.com>
8579
8580 * source.c (find_source_lines): Don't reference past the end of
8581 the vector.
8582
c4e12631
MM
85832018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8584
8585 * remote.c (remote_btrace_maybe_reopen): Change error message.
8586 * btrace.c (btrace_enable): Likewise.
8587 (parse_xml_btrace): Likewise.
8588 (parse_xml_btrace_conf): Likewise.
8589
88711fbf
MM
85902018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8591
8592 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
8593 (linux_enable_pt, linux_enable_bts): Call
8594 diagnose_perf_event_open_fail.
8595
17ad2a4f
MM
85962018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8597
8598 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
8599 Remove parameter and change return type. Update callers. Move it.
8600 (linux_enable_bts, linux_enable_pt): Improve error message.
8601 (linux_enable_pt): Remove zero buffer size check.
8602 (linux_enable_btrace): Improve error messages. Remove NULL return
8603 check.
8604
de6242d3
MM
86052018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8606
8607 * btrace.c (btrace_enable): Remove target_supports_btrace call.
8608 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
8609 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
8610 (linux_supports_pt, linux_supports_btrace): Remove.
8611 (linux_enable_bts): Call cpu_supports_bts.
8612 * nat/linux-btrace.h (linux_supports_btrace): Remove.
8613 * remote.c (remote_supports_btrace): Remove.
8614 (init_remote_ops): Remove remote_supports_btrace.
8615 * target-delegates.c: Regenerated.
8616 * target.c (target_supports_btrace): Remove.
8617 * target.h (target_ops) <to_supports_btrace>: Remove
8618 (target_supports_btrace): Remove.
8619 * x86-linux-nat.c (x86_linux_create_target): Remove
8620 linux_supports_btrace.
8621
9ee23a85
MM
86222018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8623
8624 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
8625 btrace failed.
8626 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
8627 exception and use message in own exception.
8628
5c3284c1
MM
86292018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8630
8631 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
8632 (perf_event_pt_event_type): Use gdb_file_up.
8633 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
8634 scoped_fd, and scoped_mmap.
8635
84696f37
MM
86362018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8637
8638 * common/scoped_mmap.h: New.
8639 * unittests/scoped_mmap-selftest.c: New.
8640 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8641 unittests/scoped_mmap-selftest.c.
8642
ea4a0888
MM
86432018-02-09 Markus Metzger <markus.t.metzger@intel.com>
8644
8645 * common/scoped_fd.h: New.
8646 * unittests/scoped_fd-selftest.c: New.
8647 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8648 unittests/scoped_fd-selftest.c.
8649
869e8290
TT
86502018-02-09 Tom Tromey <tom@tromey.com>
8651
8652 * auto-load.c (auto_load_section_scripts): Use
8653 gdb::unique_xmalloc_ptr.
8654
a37a2ae7
TT
86552018-02-09 Tom Tromey <tom@tromey.com>
8656
8657 * auto-load.c (execute_script_contents): Use std::string.
8658
4e725347
JB
86592018-02-09 Joel Brobecker <brobecker@adacore.com>
8660
8661 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8662 Python function, rather than a new command.
8663
9a897d43
TT
86642018-02-08 Tom Tromey <tom@tromey.com>
8665
8666 * solib.c (solib_find_1): Use std::string.
8667 (solib_bfd_fopen): Use unique_xmalloc_ptr.
8668
58ef3771
TT
86692018-02-08 Tom Tromey <tom@tromey.com>
8670
8671 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
8672
a9abc434
TT
86732018-02-08 Tom Tromey <tom@tromey.com>
8674
8675 * source.c (find_source_lines): Use gdb::def_vector.
8676
84f27c6f
TT
86772018-02-08 Tom Tromey <tom@tromey.com>
8678
8679 * macrocmd.c (struct temporary_macro_definition): New.
8680 (macro_define_command): Use temporary_macro_definition. Remove
8681 cleanups.
8682 (free_macro_definition_ptr): Remove.
8683
0354904b
TT
86842018-02-08 Tom Tromey <tom@tromey.com>
8685
8686 * macroexp.c (maybe_expand): Use std::string.
8687
1739cf24
TT
86882018-02-08 Tom Tromey <tom@tromey.com>
8689
8690 * macroexp.c (struct macro_buffer): Add initializers for some
8691 members.
8692 (init_buffer, init_shared_buffer, free_buffer)
8693 (free_buffer_return_text): Remove.
8694 (macro_buffer): New constructors.
8695 (~macro_buffer): New destructor.
8696 (macro_buffer::set_shared): New method.
8697 (macro_buffer::resize_buffer, macro_buffer::appendc)
8698 (macro_buffer::appendmem): Now methods, not free functions.
8699 (set_token, append_tokens_without_splicing, stringify)
8700 (macro_stringify): Update.
8701 (gather_arguments): Change return type. Remove argc_p argument,
8702 add args_ptr argument. Use std::vector.
8703 (substitute_args): Remove argc argument. Accept std::vector.
8704 (expand): Update. Use std::vector.
8705 (scan, macro_expand, macro_expand_next): Update.
8706
f6c2623e
TT
87072018-02-08 Tom Tromey <tom@tromey.com>
8708
8709 * symtab.c (default_collect_symbol_completion_matches_break_on):
8710 Use unique_xmalloc_ptr.
8711 * macroscope.h: (sal_macro_scope, user_macro_scope)
8712 (default_macro_scope): Return unique_xmalloc_ptr.
8713 * macroscope.c (sal_macro_scope, user_macro_scope)
8714 (default_macro_scope): Return unique_xmalloc_ptr.
8715 * macroexp.h (macro_expand, macro_expand_once): Return
8716 unique_xmalloc_ptr.
8717 * macroexp.c (macro_expand, macro_expand_once): Return
8718 unique_xmalloc_ptr.
8719 * macrocmd.c (macro_expand_command, macro_expand_once_command)
8720 (info_macro_command, info_macros_command): Use
8721 unique_xmalloc_ptr.
8722 * compile/compile-c-support.c (write_macro_definitions): Use
8723 unique_xmalloc_ptr.
8724 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
8725
c2e0e465
SM
87262018-02-07 Simon Marchi <simon.marchi@ericsson.com>
8727
8728 * value.c (value_static_field): Assign field type instead of
8729 containing type when returning an optimized out value.
8730
3f8c94b4
YQ
87312018-02-06 Yao Qi <yao.qi@linaro.org>
8732
8733 * ft32-tdep.c (ft32_read_pc): Remove.
8734 (ft32_write_pc): Remove.
8735 (ft32_gdbarch_init): Update.
8736 * m32r-tdep.c (m32r_read_pc): Remove.
8737 (m32r_gdbarch_init): Update.
8738 * mep-tdep.c (mep_read_pc): Remove.
8739 (mep_gdbarch_init): Update.
8740 * microblaze-tdep.c (microblaze_write_pc): Remove.
8741 (microblaze_gdbarch_init): Update.
8742 * mn10300-tdep.c (mn10300_read_pc): Remove.
8743 (mn10300_write_pc): Remove.
8744 (mn10300_gdbarch_init): Update.
8745 * moxie-tdep.c (moxie_read_pc): Remove.
8746 (moxie_write_pc): Remove.
8747 (moxie_gdbarch_init): Update.
8748
bca65a23
YQ
87492018-02-06 Yao Qi <yao.qi@linaro.org>
8750
8751 * expprint.c (print_subexp_standard): Handle
8752 OP_F77_UNDETERMINED_ARGLIST.
8753 (dump_subexp_body_standard): Likewise.
8754
583e3f90 87552018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 8756
583e3f90
YQ
8757 * target-descriptions.c (tdesc_element_visitor) Add empty
8758 implementations.
b8df6ca7
AH
8759 (tdesc_type): Move make_gdb_type from here.
8760 (tdesc_type_builtin): Likewise.
8761 (tdesc_type_vector): Likewise.
8762 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
8763 (make_gdb_type_struct): Move from tdesc_type_with_fields.
8764 (make_gdb_type_union): Likewise.
8765 (make_gdb_type_flags): Likewise.
8766 (make_gdb_type_enum): Likewise.
8767 (make_gdb_type): New function.
8768 (tdesc_register_type): Use static make_gdb_type.
8769
e813d34a
RK
87702018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
8771
8772 * infcmd.c (default_print_one_register_info): Align natural-format
8773 column values consistently one under another.
8774 (pad_to_column): New function.
8775
0eb876f5
JB
87762018-02-05 Joel Brobecker <brobecker@adacore.com>
8777
8778 * dwarf2read.c (dwarf2_physname): Move commment.
8779
0625771b
LS
87802018-02-01 Leszek Swirski <leszeks@google.com>
8781
8782 * varobj.c (varobj_formatted_print_options): Allow recursive
8783 pretty printing if pretty printing is enabled.
8784
59498c30
LS
87852018-02-01 Leszek Swirski <leszeks@google.com>
8786
8787 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
8788 names after a structop as a filename.
8789
2d9e6acb
YQ
87902018-02-01 Yao Qi <yao.qi@linaro.org>
8791
8792 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
8793 (arm_record_coproc_data_proc): Likewise.
8794
df95a9cf
YQ
87952018-02-01 Yao Qi <yao.qi@linaro.org>
8796
8797 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
8798
07e5f5cf
NP
87992018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
8800
8801 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
8802 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
8803
3045b475
PA
88042018-01-31 Pedro Alves <palves@redhat.com>
8805
8806 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
8807 * inflow.c (child_terminal_save_inferior): Wrap reference to
8808 tcgetpgrp in HAVE_TERMIOS_H.
8809 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
8810 _WIN32.
8811 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
8812 always iterate over all inferiors.
8813 (gdbsim_cntrl_c): Adjust.
8814 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
8815
929b5ad4
JB
88162018-01-31 Joel Brobecker <brobecker@adacore.com>
8817
8818 * gdbtypes.c (lookup_array_range_type): Make sure the array's
8819 index type is objfile-owned if the element type is as well.
8820
29236ca2
JB
88212018-01-31 Joel Brobecker <brobecker@adacore.com>
8822
8823 GDB 8.1 released.
8824
c81e8879
PR
88252018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
8826
8827 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
8828 "features/s390x-linux64.c".
8829 (_initialize_s390_linux_tdep): Remove initialization of tdescs
8830 s390_linux32 and s390x_linux64.
8831 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
8832 default tdesc.
8833 * s390-tdep.c: Include "features/s390-linux32.c" and
8834 "features/s390x-linux64.c".
8835 (s390_tdesc_valid): Add check for tdesc_has_registers.
8836 (s390_gdbarch_init): Make sure there is always a valid tdesc.
8837 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
8838 tdesc_s390x_linux64.
8839 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
8840 tdesc_s390x_linux64 to...
8841 * s390-tdep.h: ...here.
8842
e671cd59
PA
88432018-01-30 Pedro Alves <palves@redhat.com>
8844
8845 PR gdb/13211
8846 * config.in, configure: Regenerate.
8847 * configure.ac: Check for getpgid.
8848 * go32-nat.c (go32_pass_ctrlc): New.
8849 (go32_target): Install it.
8850 * inf-child.c (inf_child_target): Install
8851 child_terminal_save_inferior, child_pass_ctrlc and
8852 child_interrupt.
8853 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
8854 (inf_ptrace_target): No longer install it.
8855 * infcmd.c (interrupt_target_1): Adjust.
8856 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
8857 (child_interrupt): Declare.
8858 (inferior::terminal_state): New.
8859 * inflow.c (struct terminal_info): Update comments.
8860 (inferior_process_group): Delete.
8861 (terminal_is_ours): Delete.
8862 (gdb_tty_state): New.
8863 (child_terminal_init): Adjust.
8864 (is_gdb_terminal, sharing_input_terminal_1)
8865 (sharing_input_terminal): New functions.
8866 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
8867 Set the process's actual process group in the foreground if
8868 possible. Handle is_ours_for_output/is_ours distinction. Don't
8869 mark terminal as the inferior's if not sharing GDB's terminal.
8870 Don't check attach_flag.
8871 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
8872 pass down a target_terminal_state.
8873 (child_terminal_save_inferior): New, factored out from ...
8874 (child_terminal_ours_1): ... this. Handle
8875 target_terminal_state::is_ours_for_output.
8876 (child_interrupt, child_pass_ctrlc): New.
8877 (inflow_inferior_exit): Clear the inferior's terminal_state.
8878 (copy_terminal_info): Copy the inferior's terminal state.
8879 (_initialize_inflow): Remove reference to terminal_is_ours.
8880 * inflow.h (inferior_process_group): Delete.
8881 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
8882 * procfs.c (procfs_target): Don't install procfs_interrupt.
8883 (procfs_interrupt): Delete.
8884 * remote.c (remote_serial_quit_handler): Adjust.
8885 (remote_interrupt): Remove ptid parameter. Adjust.
8886 * target-delegates.c: Regenerate.
8887 * target.c: Include "terminal.h".
8888 (target_terminal::terminal_state): Rename to ...
8889 (target_terminal::m_terminal_state): ... this.
8890 (target_terminal::init): Adjust.
8891 (target_terminal::inferior): Adjust to per-inferior
8892 terminal_state.
8893 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
8894 (target_terminal::ours, target_terminal::ours_for_output): Use
8895 target_terminal_is_ours_kind.
8896 (target_interrupt): Remove ptid parameter. Adjust.
8897 (default_target_pass_ctrlc): Adjust.
8898 * target.h (target_ops::to_terminal_save_inferior): New field.
8899 (target_ops::to_interrupt): Remove ptid_t parameter.
8900 (target_interrupt): Remove ptid_t parameter. Update comment.
8901 (target_pass_ctrlc): Update comment.
8902 * target/target.h (target_terminal_state): New scoped enum,
8903 factored out of ...
8904 (target_terminal::terminal_state): ... here.
8905 (target_terminal::inferior): Update comments.
8906 (target_terminal::restore_inferior): New.
8907 (target_terminal::is_inferior, target_terminal::is_ours)
8908 (target_terminal::is_ours_for_output): Adjust.
8909 (target_terminal::scoped_restore_terminal_state): Adjust to
8910 rename, and call restore_inferior() instead of inferior().
8911 (target_terminal::scoped_restore_terminal_state::m_state): Change
8912 type.
8913 (target_terminal::terminal_state): Rename to ...
8914 (target_terminal::m_terminal_state): ... this and change type.
8915
9c3a5d93
PA
89162018-01-30 Pedro Alves <palves@redhat.com>
8917
8918 * linux-nat.c (wait_for_signal): New function.
8919 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
8920 directly.
8921 (async_terminal_is_ours)
8922 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
8923 (linux_nat_add_target): Don't override
8924 to_terminal_inferior/to_terminal_ours.
8925
69ab5edb
SDJ
89262018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
8927
8928 * remote.c (remote_follow_fork): Don't call "detach_inferior".
8929
fc8e7e75
SM
89302018-01-28 Simon Marchi <simon.marchi@ericsson.com>
8931
8932 * dwarf2read.c (free_dwo_files): Add forward-declaration.
8933 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
8934 dwarf2_per_objfile_free here.
8935 (dwarf2_per_objfile_free): Remove.
8936 (_initialize_dwarf2_read): Don't register
8937 dwarf2_per_objfile_free as a registry cleanup.
8938
b2a426e2
EZ
89392018-01-27 Eli Zaretskii <eliz@gnu.org>
8940
8941 Avoid compilation errors in MinGW native builds
8942
8943 The error is triggered by including python-internal.h, and the
8944 error message is:
8945
8946 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
8947 from build-gnulib/import/math.h:27,
8948 from d:/usr/Python26/include/pyport.h:235,
8949 from d:/usr/Python26/include/Python.h:58,
8950 from python/python-internal.h:94,
8951 from python/py-arch.c:24:
8952 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
8953 using ::hypot;
8954 ^~~~~
8955
8956 This happens because Python headers define 'hypot' to expand t
8957 '_hypot' in the Windows builds.
8958 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
8959 'hypoth'. This avoids a compilation error.
8960
0bdd8eac
AH
89612018-01-26 Alan Hayward <alan.hayward@arm.com>
8962
8963 * MAINTAINERS (Write After Approval): Fix ordering.
8964
56ae9dc3
AH
89652018-01-26 Alan Hayward <alan.hayward@arm.com>
8966
8967 * MAINTAINERS (Write After Approval): Add Alan Hayward.
8968
7433498b
AM
89692018-01-26 Alan Modra <amodra@gmail.com>
8970
8971 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
8972 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
8973 Remove nop. Make const. Comment.
8974 (powerpc32_plt_stub_so_2): New.
8975 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
8976 Correct count. Update uses.
8977 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
8978 Move common code reading PLT entry word. Correct
8979 powerpc32_plt_stub PLT address calculation.
8980 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
8981 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
8982 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
8983 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
8984 (ppc64_standard_linkage8): Likewise.
8985 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
8986 Correct insns description.
8987 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
8988
0f59d5fc
PA
89892018-01-24 Pedro Alves <palves@redhat.com>
8990
8991 GCC PR libstdc++/83906
8992 * gdbtypes.c (operator==(const dynamic_prop &,
8993 const dynamic_prop &)): New.
8994 (operator==(const range_bounds &, const range_bounds &)): New.
8995 (check_types_equal): Use them instead of memcmp.
8996 * gdbtypes.h (operator==(const dynamic_prop &,
8997 const dynamic_prop &)): Declare.
8998 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
8999 (operator==(const range_bounds &, const range_bounds &)): Declare.
9000 (operator!=(const range_bounds &, const range_bounds &)): Declare.
9001
ef8914a4
PR
90022018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9003
9004 * s390-linux-tdep.c (s390_record_address_mask)
9005 (s390_record_calc_disp_common, s390_record_calc_disp)
9006 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
9007 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
9008 (s390_process_record): Move to s390-tdep.c.
9009 (s390_linux_init_abi_any): Adjust.
9010 * s390-tdep.c (s390_record_address_mask)
9011 (s390_record_calc_disp_common, s390_record_calc_disp)
9012 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
9013 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
9014 (s390_process_record): Moved from s390-linux-tdep.c
9015 (s390_gdbarch_init): Adjust.
9016
d6e58945
PR
90172018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9018
9019 * s390-linux-nat.c (s390-tdep.h): New include.
9020 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
9021 (HFILES_NO_SRCDIR): Add s390-tdep.h.
9022 (ALLDEPFILES): Add s390-tdep.c.
9023 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
9024 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
9025 * s390-tdep.h: ...this. New file.
9026 * s390-linux-tdep.c (s390-tdep.h): New include.
9027 (_initialize_s390_tdep): Rename to...
9028 (_initialize_s390_linux_tdep): ...this and adjust.
9029 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
9030 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
9031 s390-tdep.h.
9032 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
9033 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
9034 (s390_is_partial_instruction, s390_software_single_step)
9035 (is_non_branch_ril, s390_displaced_step_copy_insn)
9036 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
9037 (s390_prologue_data, s390_addr, s390_store, s390_load)
9038 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
9039 (s390_register_call_saved, s390_guess_tracepoint_registers)
9040 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
9041 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
9042 (s390_pseudo_register_name, s390_pseudo_register_type)
9043 (s390_pseudo_register_read, s390_pseudo_register_write)
9044 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
9045 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
9046 (s390_addr_bits_remove, s390_address_class_type_flags)
9047 (s390_address_class_type_flags_to_name)
9048 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
9049 (s390_function_arg_float, s390_function_arg_vector)
9050 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
9051 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
9052 (s390_frame_align, s390_register_return_value, s390_return_value)
9053 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
9054 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
9055 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
9056 (s390_trad_frame_prev_register, s390_unwind_cache)
9057 (s390_prologue_frame_unwind_cache)
9058 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
9059 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
9060 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
9061 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
9062 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
9063 (s390_frame_base_address, s390_local_base_address)
9064 (s390_frame_base, s390_gcc_target_options)
9065 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
9066 (s390_validate_reg_range, s390_tdesc_valid)
9067 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
9068 * s390-tdep.c: ...this. New file.
9069
9c0b896e
PR
90702018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9071
9072 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
9073 (s390_process_record, s390_gdbarch_tdep_alloc)
9074 (s390_linux_init_abi_any): Use/set new hook.
9075
7042632b
PR
90762018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9077
9078 * s390-linux-tdep.c (osabi.h): New include.
9079 (s390_linux_init_abi_31, s390_linux_init_abi_64)
9080 (s390_linux_init_abi_any): New functions.
9081 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
9082
650f5e13
PR
90832018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9084
9085 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
9086 tdesc_has_registers check
9087
47c9317e
PR
90882018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9089
9090 * s390-linux-tdep.c (s390_tdesc_valid): New function.
9091 (s390_validate_reg_range): New macro.
9092 (s390_gdbarch_init): Adjust.
9093
095085d8
PR
90942018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9095
9096 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
9097 (s390_gdbarch_tdep_alloc): Adjust.
9098 (s390_gdbarch_init): Adjust.
9099
ab9bcc67
PR
91002018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9101
9102 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
9103 <have_tdb>: Change type to bool.
9104 (s390_gdbarch_tdep_alloc): Adjust.
9105 (s390_gdbarch_init): Adjust.
9106
21f6f5ff
PR
91072018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9108
9109 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
9110 (gdbarch_tdep) <have_upper, have_vx>: New fields.
9111 (s390_gdbarch_tdep_alloc): New function.
9112 (s390_gdbarch_init): Allocate tdep at start and use its fields
9113 instead of separate variables.
9114
0eb97953
PR
91152018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9116
9117 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
9118 when looking for cached gdbarch and add comment for remaining.
9119
5c319bb2
PA
91202018-01-22 Pedro Alves <palves@redhat.com>
9121 Sergio Durigan Junior <sergiodj@redhat.com>
9122
9123 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
9124 case.
9125
d65ce302
MR
91262018-01-22 Maciej W. Rozycki <macro@mips.com>
9127
9128 * MAINTAINERS: Update my company e-mail address.
9129
ec7a5fcb
YQ
91302018-01-22 Yao Qi <yao.qi@linaro.org>
9131
9132 * regcache.c (cooked_write_test): New function.
9133 (_initialize_regcache): Register the test.
9134
11f57cb6
YQ
91352018-01-22 Yao Qi <yao.qi@linaro.org>
9136
9137 * ia64-tdep.c (ia64_pseudo_register_read): Call
9138 regcache->cooked_read instead of regcache_cooked_read_unsigned.
9139 * m32c-tdep.c (m32c_cat_read): Likewise.
9140 (m32c_r3r2r1r0_read): Likewise.
9141 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
9142 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
9143
03f50fc8
YQ
91442018-01-22 Yao Qi <yao.qi@linaro.org>
9145
9146 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
9147 method raw_read instead of regcache_raw_read.
9148 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
9149 * arm-tdep.c (arm_neon_quad_read): Likewise.
9150 * avr-tdep.c (avr_pseudo_register_read): Likewise.
9151 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
9152 * frv-tdep.c (frv_pseudo_register_read): Likewise.
9153 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
9154 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
9155 (i386_pseudo_register_read_into_value): Likewise.
9156 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
9157 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
9158 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
9159 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
9160 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
9161 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
9162 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
9163 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
9164 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
9165
dc711524
YQ
91662018-01-22 Yao Qi <yao.qi@linaro.org>
9167
9168 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
9169 * configure.tgt: Remove target mt.
9170 * mt-tdep.c: Remove.
9171 * regcache.c (cooked_read_test): Remove the check for mt.
9172
3f5a868b
YQ
91732018-01-22 Yao Qi <yao.qi@linaro.org>
9174
9175 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
9176 instead of gdbarch_pseudo_register_read_value.
9177
de4cb04a
JB
91782018-01-22 Joel Brobecker <brobecker@adacore.com>
9179
9180 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
9181 language is Ada.
9182
a9e40818
JB
91832018-01-22 Joel Brobecker <brobecker@adacore.com>
9184
9185 * linespec.c (create_sals_line_offset): Remove code that preserved
9186 the symtab_and_line's line number.
9187
e707fc44
AB
91882018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9189
9190 * varobj.c (varobj_create): Don't set valid_block when creating a
9191 floating varobj.
9192
03d0bf7b
AB
91932018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9194
9195 * varobj.c (varobj_create): Remove out of date comment.
9196
ae451627
AB
91972018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9198
9199 PR mi/20395
9200 * ada-exp.y (write_var_from_sym): Pass extra parameter when
9201 updating innermost block.
9202 * parse.c (innermost_block_tracker::update): Take extra type
9203 parameter, and check types match before updating innermost block.
9204 (write_dollar_variable): Update innermost block for registers.
9205 * parser-defs.h (enum innermost_block_tracker_type): New enum.
9206 (innermost_block_tracker::innermost_block_tracker): Initialise
9207 m_types member.
9208 (innermost_block_tracker::reset): Take type parameter.
9209 (innermost_block_tracker::update): Take type parameter, and pass
9210 type through as needed.
9211 (innermost_block_tracker::m_types): New member.
9212 * varobj.c (varobj_create): Pass type when reseting innermost
9213 block.
9214
aee1fcdf
AB
92152018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9216
9217 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
9218 * ada-lang.c (resolve_subexp): Likewise.
9219 * breakpoint.c (set_breakpoint_condition) Likewise.
9220 (watch_command_1) Likewise.
9221 * c-exp.y (variable): Likewise.
9222 * d-exp.y (PrimaryExpression): Likewise.
9223 * f-exp.y (variable): Likewise.
9224 * go-exp.y (variable): Likewise.
9225 * m2-exp.y (variable): Likewise.
9226 * objfiles.c (objfile::~objfile): Likewise.
9227 * p-exp.y (variable): Likewise.
9228 * parse.c (innermost_block): Change type.
9229 * parser-defs.h (class innermost_block_tracker): New.
9230 (innermost_block): Change to innermost_block_tracker.
9231 * printcmd.c (display_command): Switch to innermost_block API.
9232 (do_one_display): Likewise.
9233 * rust-exp.y (do_one_display): Likewise.
9234 * symfile.c (clear_symtab_users): Likewise.
9235 * varobj.c (varobj_create): Switch to innermost_block API, replace
9236 use of innermost_block with block stored on varobj object.
9237
396af9a1
AB
92382018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
9239
9240 * expression.h (innermost_block): Remove declaration.
9241 * varobj.c: Add 'parser-defs.h' include.
9242
fcfcc376
TT
92432018-01-19 Tom Tromey <tom@tromey.com>
9244
9245 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
9246 symbols in the static and global blocks.
9247
5a6c3296
JC
92482018-01-19 James Clarke <jrtc27@jrtc27.com>
9249
9250 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
9251 gdb_ptrace.h, and move including gdb_wait.h ...
9252 * nat/linux-ptrace.h: ... to here.
9253
bc09b0c1
SM
92542018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9255
9256 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
9257 inf_ptrace_detach_success.
9258 (inf_ptrace_detach_success): Add inferior parameter, use it
9259 instead of inferior_ptid, pass it to detach_inferior.
9260 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
9261 parameter.
9262 * inferior.c (detach_inferior): Add overload that takes an
9263 inferior object.
9264 * inferior.h (detach_inferior): Likewise.
9265 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
9266 use inferior_ptid, adjust call to inf_ptrace_detach_success.
9267 * linux-thread-db.c (thread_db_detach): Use inf parameter.
9268
6e1e1966
SM
92692018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9270
9271 * target.h (struct target_ops) <to_detach>: Add inferior
9272 parameter.
9273 (target_detach): Likewise.
9274 * target.c (dispose_inferior): Pass inferior down.
9275 (target_detach): Pass inferior down. Assert that it is equal to
9276 the current inferior.
9277 * aix-thread.c (aix_thread_detach): Pass inferior down.
9278 * corefile.c (core_file_command): Pass current_inferior() down.
9279 * corelow.c (core_detach): Add inferior parameter.
9280 * darwin-nat.c (darwin_detach): Likewise.
9281 * gnu-nat.c (gnu_detach): Likewise.
9282 * inf-ptrace.c (inf_ptrace_detach): Likewise.
9283 * infcmd.c (detach_command): Pass current_inferior() down to
9284 target_detach.
9285 * infrun.c (follow_fork_inferior): Pass parent_inf to
9286 target_detach.
9287 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
9288 target_detach.
9289 * linux-nat.c (linux_nat_detach): Add inferior parameter.
9290 * linux-thread-db.c (thread_db_detach): Likewise.
9291 * nto-procfs.c (procfs_detach): Likewise.
9292 * procfs.c (procfs_detach): Likewise.
9293 * record.c (record_detach): Likewise.
9294 * record.h (struct inferior): Forward-declare.
9295 (record_detach): Add inferior parameter.
9296 * remote-sim.c (gdbsim_detach): Likewise.
9297 * remote.c (remote_detach_1): Likewise.
9298 (remote_detach): Likewise.
9299 (extended_remote_detach): Likewise.
9300 * sol-thread.c (sol_thread_detach): Likewise.
9301 * target-debug.h (target_debug_print_inferior_p): New macro.
9302 * target-delegates.c: Re-generate.
9303 * top.c (kill_or_detach): Pass inferior down to target_detach.
9304 * windows-nat.c (windows_detach): Add inferior parameter.
9305
6bd6f3b6
SM
93062018-01-19 Simon Marchi <simon.marchi@ericsson.com>
9307
9308 * target.h (struct target_ops) <to_detach>: Remove args
9309 parameter.
9310 (target_detach): Likewise.
9311 * target.c (dispose_inferior): Adjust.
9312 (target_detach): Remove args parameter, adjust.
9313 * aix-thread.c (aix_thread_detach): Adjust.
9314 * corefile.c (core_file_command): Adjust.
9315 * corelow.c (core_detach): Adjust.
9316 * darwin-nat.c (darwin_detach): Adjust.
9317 * gnu-nat.c (gnu_detach): Adjust.
9318 * inf-ptrace.c (inf_ptrace_detach): Adjust.
9319 * infcmd.c (detach_command): Adjust
9320 * infrun.c (follow_fork_inferior): Adjust.
9321 (handle_vfork_child_exec_or_exit): Adjust.
9322 * linux-fork.c (linux_fork_detach): Remove args parameter.
9323 * linux-fork.h (linux_fork_detach): Likewise.
9324 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
9325 * linux-thread-db.c (thread_db_detach): Likewise.
9326 * nto-procfs.c (procfs_detach): Likewise.
9327 * procfs.c (procfs_detach): Likewise.
9328 (do_detach): Remove signo parameter.
9329 * record.c (record_detach): Remove args parameter.
9330 * record.h (record_detach): Likewise.
9331 * remote-sim.c (gdbsim_detach): Likewise.
9332 * remote.c (remote_detach_1): Likewise.
9333 (remote_detach): Likewise.
9334 (extended_remote_detach): Likewise.
9335 * sol-thread.c (sol_thread_detach): Likewise.
9336 * target-delegates.c: Re-generate.
9337 * top.c (struct qt_args) <args>: Remove field.
9338 (kill_or_detach): Don't pass args.
9339 (quit_force): Don't set args.
9340 * windows-nat.c (windows_detach): Remove args parameter.
9341
88af8ea8
YQ
93422018-01-19 Yao Qi <yao.qi@linaro.org>
9343
9344 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
9345 (arm_linux_init_abi): Install it.
9346
dea445b9
YQ
93472018-01-19 Yao Qi <yao.qi@linaro.org>
9348
9349 * osabi.c (gdb_osabi_names): Extend the regexp for
9350 arm-linux-gnueabihf.
9351
4a17f768
YQ
93522018-01-18 Yao Qi <yao.qi@linaro.org>
9353
9354 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
9355 m_abbrevs.
9356 (abbrev_table::add_abbrev): Update.
9357 (abbrev_table::lookup_abbrev): Update.
9358
d679c21a
YQ
93592018-01-18 Yao Qi <yao.qi@linaro.org>
9360
9361 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
9362
7d937cad
SDJ
93632018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9364
9365 * compile/compile.c (compile_to_object): Convert "triplet_rx"
9366 to "std::string".
9367
9e14690d
TT
93682018-01-17 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
9371
50a82047
TT
93722018-01-17 Tom Tromey <tom@tromey.com>
9373
9374 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
9375 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
9376 (create_array_type_with_stride): Update.
9377 * dwarf2read.c (set_die_type): Update.
9378
c89b44cd
TT
93792018-01-17 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2read.c (delayed_method_info): Remove typedef.
9382 (dwarf2_cu::method_info): Now a std::vector.
9383 (add_to_method_list): Update.
9384 (free_delayed_list): Remove.
9385 (compute_delayed_physnames): Update.
9386 (process_full_comp_unit, process_full_type_unit): Clear the method
9387 list. Remove cleanups.
9388 (psymtab_include_file_name): Add name_holder parameter. Use
9389 unique_xmalloc_ptr.
9390 (dwarf_decode_lines): Update.
9391
fcd3b13d
SM
93922018-01-17 Tom Tromey <tom@tromey.com>
9393 Simon Marchi <simon.marchi@ericsson.com>
9394
9395 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
9396 (dwarf2_per_objfile::free_cached_comp_units)
9397 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9398 (init_cutu_and_read_dies_no_follow): Update.
9399 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
9400 (dwarf2_cu::~dwarf2_cu): New.
9401 (free_heap_comp_unit, free_stack_comp_unit): Remove.
9402 (age_cached_comp_units, free_one_cached_comp_unit): Update.
9403
685af9cd
TT
94042018-01-17 Tom Tromey <tom@tromey.com>
9405 Simon Marchi <simon.marchi@ericsson.com>
9406
9407 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
9408 (struct die_reader_specs) <abbrev_table>: New member.
9409 (struct abbrev_table): Add constructor.
9410 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
9411 <abbrev_obstack>: Now an auto_obstack.
9412 (abbrev_table_up): New typedef.
9413 (init_cu_die_reader): Add abbrev_table parameter.
9414 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
9415 Add result_dwo_abbrev_table.
9416 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
9417 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
9418 Update.
9419 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
9420 parameter.
9421 (skip_children): Update.
9422 (abbrev_table::alloc_abbrev): Rename from
9423 abbrev_table_alloc_abbrev.
9424 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
9425 (abbrev_table::lookup_abbrev): Rename from
9426 abbrev_table_lookup_abbrev.
9427 (abbrev_table_read_table): Return abbrev_table_up.
9428 (abbrev_table_free, abbrev_table_free_cleanup)
9429 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
9430 (load_partial_dies): Update.
9431
5e2db402
TT
94322018-01-17 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2read.c (dwarf2_compute_name): Update comment.
9435 (read_func_scope, read_variable): Update.
9436 (new_symbol): Remove.
9437 (new_symbol_full): Rename to new_symbol.
9438
ee7f689e 94392018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
9440
9441 PR gdb/16577
9442 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
9443 a warning instead of throwing an error, set section size to 0 and return
9444 NULL.
9445 * gdb_bfd.h (gdb_bfd_map_section): Update description.
9446
4d9b86e1
SM
94472018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9448
9449 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
9450 std::string.
9451 (linux_ptrace_attach_fail_reason_string): Likewise.
9452 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
9453 Likewise.
9454 (linux_ptrace_attach_fail_reason_string): Likewise.
9455 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
9456
a7b2d0fb
SM
94572018-01-17 Simon Marchi <simon.marchi@ericsson.com>
9458
9459 * linux-nat.c (linux_nat_attach): Remove xstrdup.
9460
f517c180
EA
94612018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
9462
9463 PR gdb/21559
9464 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
9465 checking for fs_base/gs_base fields in struct user_regs_struct.
9466 * configure: Regenerate.
9467
7045b1ca
YQ
94682018-01-17 Yao Qi <yao.qi@linaro.org>
9469
9470 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
9471 function.
9472 (aarch64_linux_init_abi): Install it to gdbarch hook
9473 gcc_target_options.
9474
db422fb2
PA
94752018-01-15 Pedro Alves <palves@redhat.com>
9476
9477 * common/signals-state-save-restore.c
9478 (save_original_signals_state): Fix typos.
9479
ba643918
SDJ
94802017-01-12 Tom Tromey <tom@tromey.com>
9481 Sergio Durigan Junior <sergiodj@redhat.com>
9482
9483 * Makefile.in (install-only): Install gdb-add-index.
9484
906b4aac
JB
94852018-01-12 John Baldwin <jhb@FreeBSD.org>
9486
9487 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
9488
bdf2a94a
AA
94892018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9490
9491 * infrun.c (keep_going_pass_signal): Clear step-over info when
9492 insert_breakpoints fails.
9493
71d378ae
PA
94942018-01-11 Pedro Alves <palves@redhat.com>
9495
9496 PR gdb/22583
9497 * infrun.c (resume): Rename to ...
9498 (resume_1): ... this.
9499 (resume): Reimplement as wrapper around resume_1.
9500
3cada740
PA
95012018-01-11 Pedro Alves <palves@redhat.com>
9502
9503 PR remote/22597
9504 * remote.c (remote_parse_stop_reply): Default to the last-set
9505 general thread instead of to 'magic_null_ptid'.
9506
618daa93
PA
95072018-01-10 Pedro Alves <palves@redhat.com>
9508
9509 * language.h (language_get_symbol_name_matcher): Rename ...
9510 (get_symbol_name_matcher): ... this.
9511 * language.c (language_get_symbol_name_matcher): Ditto.
9512 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
9513 callers adjusted.
9514
c63d3e8d
PA
95152018-01-10 Pedro Alves <palves@redhat.com>
9516
9517 PR gdb/22670
9518 * dwarf2read.c
9519 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
9520 Adjust to use language_get_symbol_name_matcher instead of
9521 language_defn::la_get_symbol_name_matcher.
9522 * language.c (language_get_symbol_name_matcher): If in Ada mode
9523 and the lookup name is a verbatim match, return Ada's matcher.
9524 * language.h (language_get_symbol_name_matcher): Adjust comment.
9525 (ada_lookup_name_info::verbatim_p):: New method.
9526
d4c2a405
PA
95272018-01-10 Pedro Alves <palves@redhat.com>
9528
9529 PR gdb/22670
9530 * ada-lang.c (ada_collect_symbol_completion_matches): If the
9531 minsym's language is language_auto or language_cplus, pass down
9532 language_ada instead.
9533 * symtab.c (compare_symbol_name): Don't frob symbol language here.
9534
8825213e
PA
95352018-01-10 Pedro Alves <palves@redhat.com>
9536
9537 PR gdb/22670
9538 * minsyms.c (linkage_name_str): New function.
9539 (iterate_over_minimal_symbols): Use it.
9540
2d97a5d9
JB
95412018-01-09 John Baldwin <jhb@FreeBSD.org>
9542
9543 * NEWS: Document that 'info proc' now works on FreeBSD.
9544
92fce24d
JB
95452018-01-09 John Baldwin <jhb@FreeBSD.org>
9546
9547 * configure.ac: Check for kinfo_getfile in libutil.
9548 * configure: Regenerate.
9549 * config.in: Regenerate.
9550 * fbsd-nat.c: Include "fbsd-tdep.h".
9551 (fbsd_fetch_cmdline): New.
9552 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
9553 rather than calling error.
9554 (fbsd_info_proc): New.
9555 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
9556 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
9557 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
9558
262f62f5
JB
95592018-01-09 John Baldwin <jhb@FreeBSD.org>
9560
9561 * fbsd-nat.c (struct free_deleter): Remove.
9562 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
9563
b999e203
JB
95642018-01-09 John Baldwin <jhb@FreeBSD.org>
9565
9566 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
9567 NULL for an empty pathname.
9568
d2176225
JB
95692018-01-09 John Baldwin <jhb@FreeBSD.org>
9570
9571 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
9572 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
9573 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9574 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9575 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
9576 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
9577 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
9578 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
9579 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
9580 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
9581 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
9582 (fbsd_core_fetch_timeval, fbsd_print_sigset)
9583 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
9584 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
9585 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
9586
9c4ac400
ST
95872018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9588
9589 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
9590 (gnu_xfer_auxv): New function.
9591 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
9592 TARGET_OBJECT_AUXV.
9593
1e5ded6c
YQ
95942018-01-08 Yao Qi <yao.qi@linaro.org>
9595 Simon Marchi <simon.marchi@ericsson.com>
9596
9597 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
9598 common/selftest.c.
9599 (COMMON_OBS): Remove selftest.o.
9600 * configure.ac: Append selftest-arch.c and common/selftest.c to
9601 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
9602 * configure: Re-generated.
9603 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
9604 GDB_SELF_TEST.
9605 (maintenance_info_selftests): Likewise.
9606
04bafb1e
XR
96072018-01-08 Xavier Roirand <roirand@adacore.com>
9608
9609 * ada-valprint.c (val_print_packed_array_elements): Use
9610 proper number of elements when printing an array indexed
9611 by an enumeration type.
9612
518817b3
SM
96132018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
9614
9615 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
9616 (dw2_get_file_names_reader): Adjust.
9617 (lookup_dwo_signatured_type): Adjust.
9618 (lookup_dwp_signatured_type): Adjust.
9619 (lookup_signatured_type): Adjust.
9620 (create_type_unit_group): Adjust.
9621 (get_type_unit_group): Adjust.
9622 (process_psymtab_comp_unit_reader): Adjust.
9623 (build_type_psymtabs_reader): Adjust.
9624 (scan_partial_symbols): Adjust.
9625 (add_partial_symbol): Adjust.
9626 (add_partial_subprogram): Adjust.
9627 (peek_die_abbrev): Adjust.
9628 (fixup_go_packaging): Adjust.
9629 (process_imported_unit_die): Adjust.
9630 (dwarf2_compute_name): Adjust.
9631 (dwarf2_physname): Adjust.
9632 (read_import_statement): Adjust.
9633 (handle_DW_AT_stmt_list): Adjust.
9634 (read_file_scope): Adjust.
9635 (read_func_scope): Adjust.
9636 (read_lexical_block_scope): Adjust.
9637 (read_call_site_scope): Adjust.
9638 (read_variable): Adjust.
9639 (dwarf2_rnglists_process): Adjust.
9640 (dwarf2_ranges_process): Adjust.
9641 (dwarf2_ranges_read): Adjust.
9642 (dwarf2_get_pc_bounds): Adjust.
9643 (dwarf2_record_block_ranges): Adjust.
9644 (dwarf2_add_field): Adjust.
9645 (dwarf2_add_member_fn): Adjust.
9646 (read_structure_type): Adjust.
9647 (process_structure_scope): Adjust.
9648 (read_enumeration_type): Adjust.
9649 (read_array_type): Adjust.
9650 (mark_common_block_symbol_computed): Adjust.
9651 (read_common_block): Adjust.
9652 (read_namespace_type): Adjust.
9653 (read_namespace): Adjust.
9654 (read_module_type): Adjust.
9655 (read_tag_pointer_type): Adjust.
9656 (read_tag_ptr_to_member_type): Adjust.
9657 (read_tag_string_type): Adjust.
9658 (read_subroutine_type): Adjust.
9659 (read_typedef): Adjust.
9660 (read_base_type): Adjust.
9661 (attr_to_dynamic_prop): Adjust.
9662 (read_subrange_type): Adjust.
9663 (read_unspecified_type): Adjust.
9664 (dwarf2_read_abbrevs): Adjust.
9665 (load_partial_dies): Adjust.
9666 (read_partial_die): Adjust.
9667 (find_partial_die): Adjust.
9668 (guess_partial_die_structure_name): Adjust.
9669 (fixup_partial_die): Adjust.
9670 (read_attribute_value): Adjust.
9671 (read_addr_index): Adjust.
9672 (read_addr_index_from_leb128): Adjust.
9673 (read_str_index): Adjust.
9674 (dwarf2_string_attr): Adjust.
9675 (get_debug_line_section): Adjust.
9676 (dwarf_decode_line_header): Adjust.
9677 (lnp_state_machine::check_line_address): Adjust.
9678 (dwarf_decode_lines_1): Adjust.
9679 (dwarf_decode_lines): Adjust.
9680 (dwarf2_start_symtab): Adjust.
9681 (var_decode_location): Adjust.
9682 (new_symbol_full): Adjust.
9683 (dwarf2_const_value_data): Adjust.
9684 (dwarf2_const_value_attr): Adjust.
9685 (dwarf2_const_value): Adjust.
9686 (die_type): Adjust.
9687 (die_containing_type): Adjust.
9688 (build_error_marker_type): Adjust.
9689 (lookup_die_type): Adjust.
9690 (guess_full_die_structure_name): Adjust.
9691 (anonymous_struct_prefix): Adjust.
9692 (determine_prefix): Adjust.
9693 (dwarf2_name): Adjust.
9694 (follow_die_ref_or_sig): Adjust.
9695 (follow_die_offset): Adjust.
9696 (follow_die_ref): Adjust.
9697 (follow_die_sig_1): Adjust.
9698 (follow_die_sig): Adjust.
9699 (get_signatured_type): Adjust.
9700 (get_DW_AT_signature_type): Adjust.
9701 (decode_locdesc): Adjust.
9702 (dwarf_decode_macros): Adjust.
9703 (cu_debug_loc_section): Adjust.
9704 (fill_in_loclist_baton): Adjust.
9705 (dwarf2_symbol_mark_computed): Adjust.
9706 (init_one_comp_unit): Don't assign
9707 dwarf2_cu::dwarf2_per_objfile.
9708 (set_die_type): Adjust.
9709
ed2dc618
SM
97102018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9711
9712 * dwarf2read.c (struct mapped_debug_names): Add constructor.
9713 <dwarf2_per_objfile>: New field.
9714 (dwarf2_per_objfile): Remove global.
9715 (get_dwarf2_per_objfile): New function.
9716 (set_dwarf2_per_objfile): New function.
9717 (dwarf2_build_psymtabs_hard): Change objfile parameter to
9718 dwarf2_per_objfile.
9719 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9720 (read_abbrev_offset): Likewise.
9721 (read_indirect_string): Likewise.
9722 (read_indirect_line_string): Likewise.
9723 (read_indirect_string_at_offset): Likewise.
9724 (read_indirect_string_from_dwz): Likewise.
9725 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9726 dwarf2_per_objfile.
9727 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9728 (create_all_comp_units): Change objfile parameter to
9729 dwarf2_per_objfile.
9730 (create_all_type_units): Likewise.
9731 (process_queue): Add dwarf2_per_objfile parameter.
9732 (read_and_check_comp_unit_head): Likewise.
9733 (lookup_dwo_unit_in_dwp): Likewise.
9734 (get_dwp_file): Likewise.
9735 (process_cu_includes): Likewise.
9736 (struct free_dwo_file_cleanup_data): New struct.
9737 (dwarf2_has_info): Use get_dwarf2_per_objfile and
9738 set_dwarf2_per_objfile.
9739 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
9740 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
9741 context, adjust calls.
9742 (dw2_instantiate_symtab): Likewise.
9743 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
9744 (dw2_get_cu): Likewise.
9745 (create_cu_from_index_list): Change objfile parameter to
9746 dwarf2_per_objfile.
9747 (create_cus_from_index_list): Get dwarf2_per_objfile from
9748 context, adjust calls.
9749 (create_cus_from_index): Likewise.
9750 (create_signatured_type_table_from_index): Change objfile
9751 parameter to dwarf2_per_objfile.
9752 (create_signatured_type_table_from_debug_names): Change objfile
9753 parameter to dwarf2_per_objfile.
9754 (create_addrmap_from_index): Likewise.
9755 (create_addrmap_from_aranges): Likewise.
9756 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
9757 (dw2_setup): Remove.
9758 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
9759 context.
9760 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
9761 get_dwarf2_per_objfile.
9762 (dw2_forget_cached_source_info): Likewise.
9763 (dw2_map_symtabs_matching_filename): Likewise.
9764 (struct dw2_symtab_iterator) <index>: Remove.
9765 <dwarf2_per_objfile>: New field.
9766 (dw2_symtab_iter_init): Replace index parameter with
9767 dwarf2_per_objfile.
9768 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
9769 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
9770 (dw2_print_stats): Likewise.
9771 (dw2_dump): Likewise.
9772 (dw2_expand_symtabs_for_function): Likewise.
9773 (dw2_expand_all_symtabs): Likewise.
9774 (dw2_expand_symtabs_with_fullname): Likewise.
9775 (dw2_expand_marked_cus): Replace index and objfile parameters
9776 with dwarf2_per_objfile.
9777 (dw_expand_symtabs_matching_file_matcher): Add
9778 dwarf2_per_objfile parameter and adjust calls.
9779 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
9780 adjust calls.
9781 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
9782 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
9783 adjust calls.
9784 (create_cus_from_debug_names_list): Replace objfile parameter
9785 with dwarf2_per_objfile and adjust calls.
9786 (create_cus_from_debug_names): Likewise.
9787 (dwarf2_read_debug_names): Likewise.
9788 (mapped_debug_names::namei_to_name): Adjust call.
9789 (dw2_debug_names_iterator::next): Likewise.
9790 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9791 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
9792 (dw2_debug_names_dump): Likewise.
9793 (dw2_debug_names_expand_symtabs_for_function): Likewise.
9794 (dw2_debug_names_expand_symtabs_matching): Likewise.
9795 (dwarf2_initialize_objfile): Likewise.
9796 (dwarf2_build_psymtabs): Likewise.
9797 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
9798 this_cu.
9799 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
9800 (read_and_check_comp_unit_head): Likewise.
9801 (read_abbrev_offset): Likewise.
9802 (create_debug_type_hash_table): Likewise.
9803 (create_debug_types_hash_table): Likewise.
9804 (create_all_type_units): Replace objfile parameter with
9805 dwarf2_per_objfile.
9806 (add_type_unit): Add dwarf2_per_objfile parameter.
9807 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
9808 with dwarf2_per_objfile.
9809 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
9810 (lookup_dwp_signatured_type): Likewise.
9811 (lookup_signatured_type): Likewise.
9812 (read_cutu_die_from_dwo): Likewise.
9813 (init_tu_and_read_dwo_dies): Likewise.
9814 (init_cutu_and_read_dies): Likewise.
9815 (init_cutu_and_read_dies_no_follow): Likewise.
9816 (allocate_type_unit_groups_table): Add objfile parameter.
9817 (create_type_unit_group): Use dwarf2_per_objfile from cu.
9818 (get_type_unit_group): Likewise.
9819 (process_psymtab_comp_unit): Update call.
9820 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
9821 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
9822 (print_tu_stats): Likewise.
9823 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
9824 in void* parameter.
9825 (build_type_psymtabs): Change objfile parameter to
9826 dwarf2_per_objfile.
9827 (process_skeletonless_type_unit): Use dwarf2_per_objfile
9828 passed in void* parameter.
9829 (process_skeletonless_type_units): Change objfile parameter to
9830 dwarf2_per_objfile.
9831 (set_partial_user): Likewise.
9832 (dwarf2_build_psymtabs_hard): Likewise.
9833 (read_comp_units_from_section): Likewise.
9834 (create_all_comp_units): Likewise.
9835 (scan_partial_symbols): Update calls.
9836 (add_partial_symbol): Likewise.
9837 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
9838 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
9839 (process_queue): Add dwarf2_per_objfile parameter.
9840 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
9841 (compute_compunit_symtab_includes): Likewise.
9842 (process_cu_includes): Add dwarf2_per_objfile parameter.
9843 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
9844 (process_full_type_unit): Likewise.
9845 (process_imported_unit_die): Update call.
9846 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
9847 (read_file_scope): Likewise.
9848 (allocate_dwo_file_hash_table): Add objfile parameter.
9849 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
9850 (create_cus_hash_table): Likewise.
9851 (create_dwp_hash_table): Likewise.
9852 (create_dwo_unit_in_dwp_v1): Likewise.
9853 (create_dwp_v2_section): Likewise.
9854 (create_dwo_unit_in_dwp_v2): Likewise.
9855 (lookup_dwo_unit_in_dwp): Likewise.
9856 (try_open_dwop_file): Likewise.
9857 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
9858 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
9859 cleanup to include a reference to dwarf2_per_objfile.
9860 (open_dwp_file): Add dwarf2_per_objfile parameter.
9861 (open_and_init_dwp_file): Likewise.
9862 (get_dwp_file): Likewise.
9863 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
9864 (queue_and_load_all_dwo_tus): Update call.
9865 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
9866 data.
9867 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
9868 (dwarf2_ranges_process): Likewise.
9869 (dwarf2_get_pc_bounds): Likewise.
9870 (mark_common_block_symbol_computed): Likewise.
9871 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
9872 (dwarf2_read_abbrevs): Update call.
9873 (read_partial_die): Use dwarf2_per_objfile from cu.
9874 (find_partial_die): Likewise.
9875 (fixup_partial_die): Likewise.
9876 (read_attribute_value): Likewise.
9877 (read_indirect_string_at_offset_from): Add objfile parameter.
9878 (read_indirect_string_at_offset): Add dwarf2_per_objfile
9879 parameter.
9880 (read_indirect_string_from_dwz): Add objfile parameter.
9881 (read_indirect_string): Add objfile parameter.
9882 (read_addr_index_1): Add dwarf2_per_objfile parameter.
9883 (read_addr_index): Use dwarf2_per_objfile from cu.
9884 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
9885 call dw2_setup.
9886 (read_str_index): Use dwarf2_per_objfile from cu.
9887 (get_debug_line_section): Likewise.
9888 (read_formatted_entries): Add dwarf2_per_objfile parameter.
9889 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
9890 (new_symbol_full): Use dwarf2_per_objfile from cu.
9891 (build_error_marker_type): Likewise.
9892 (lookup_die_type): Likewise.
9893 (determine_prefix): Likewise.
9894 (follow_die_offset): Likewise.
9895 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
9896 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
9897 (dwarf2_fetch_die_type_sect_off): Likewise.
9898 (dwarf2_get_die_type): Likewise.
9899 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
9900 (get_signatured_type): Likewise.
9901 (get_DW_AT_signature_type): Likewise.
9902 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
9903 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
9904 (cu_debug_loc_section): Likewise.
9905 (fill_in_loclist_baton): Likewise.
9906 (dwarf2_symbol_mark_computed): Likewise.
9907 (dwarf2_find_containing_comp_unit): Change objfile parameter to
9908 dwarf2_per_objfile.
9909 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
9910 parameter.
9911 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
9912 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
9913 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
9914 (set_die_type): Use dwarf2_free_objfile from cu.
9915 (get_die_type_at_offset): Likewise.
9916 (dwarf2_per_objfile_free): Don't assign global variable.
9917 (debug_names) <constructor>: Add dwarf2_per_objfile
9918 parameter, update m_debugstrlookup construction.
9919 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
9920 parameter.
9921 <m_dwarf2_per_objfile>: New field.
9922 <lookup>: Use m_dwarf2_per_objfile.
9923 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
9924 (psyms_seen_size): Likewise.
9925 (write_gdbindex): Replace objfile parameter with
9926 dwarf2_per_objfile.
9927 (write_debug_names): Likewise.
9928 (write_psymtabs_to_index): Likewise.
9929 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
9930 calls.
9931
e3b94546
SM
99322018-01-07 Simon Marchi <simon.marchi@ericsson.com>
9933
9934 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
9935 <dwarf2_per_objfile>: New field.
9936 (struct dwarf2_per_cu_data) <objfile>: Remove.
9937 <dwarf2_per_objfile>: New field.
9938 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
9939 of objfile.
9940 (create_signatured_type_table_from_index): Likewise.
9941 (create_debug_type_hash_table): Likewise.
9942 (fill_in_sig_entry_from_dwo_entry): Likewise.
9943 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
9944 (create_type_unit_group): Assign dwarf2_per_objfile instead of
9945 objfile.
9946 (create_partial_symtab): Access objfile through
9947 dwarf2_per_objfile.
9948 (process_psymtab_comp_unit_reader): Likewise.
9949 (read_comp_units_from_section): Likewise.
9950 (scan_partial_symbols): Likewise.
9951 (add_partial_symbol): Likewise.
9952 (add_partial_subprogram): Likewise.
9953 (peek_die_abbrev): Likewise.
9954 (fixup_go_packaging): Likewise.
9955 (process_full_comp_unit): Likewise.
9956 (process_full_type_unit): Likewise.
9957 (process_imported_unit_die): Likewise.
9958 (dwarf2_compute_name): Likewise.
9959 (dwarf2_physname): Likewise.
9960 (read_import_statement): Likewise.
9961 (create_cus_hash_table): Assign dwarf2_physname instead of
9962 objfile.
9963 (read_func_scope): Access objfile through dwarf2_per_objfile.
9964 (read_lexical_block_scope): Likewise.
9965 (read_call_site_scope): Likewise.
9966 (read_variable): Likewise.
9967 (dwarf2_rnglists_process): Likewise.
9968 (dwarf2_ranges_process): Likewise.
9969 (dwarf2_ranges_read): Likewise.
9970 (dwarf2_record_block_ranges): Likewise.
9971 (dwarf2_add_field): Likewise.
9972 (dwarf2_add_member_fn): Likewise.
9973 (read_structure_type): Likewise.
9974 (process_structure_scope): Likewise.
9975 (read_enumeration_type): Likewise.
9976 (read_array_type): Likewise.
9977 (read_common_block): Likewise.
9978 (read_namespace_type): Likewise.
9979 (read_namespace): Likewise.
9980 (read_module_type): Likewise.
9981 (read_tag_pointer_type): Likewise.
9982 (read_tag_ptr_to_member_type): Likewise.
9983 (read_tag_string_type): Likewise.
9984 (read_subroutine_type): Likewise.
9985 (read_typedef): Likewise.
9986 (read_base_type): Likewise.
9987 (attr_to_dynamic_prop): Likewise.
9988 (read_subrange_type): Likewise.
9989 (read_unspecified_type): Likewise.
9990 (load_partial_dies): Likewise.
9991 (read_partial_die): Likewise.
9992 (find_partial_die): Likewise.
9993 (guess_partial_die_structure_name): Likewise.
9994 (fixup_partial_die): Likewise.
9995 (read_attribute_value): Likewise.
9996 (read_addr_index_from_leb128): Likewise.
9997 (dwarf2_read_addr_index): Likewise.
9998 (dwarf2_string_attr): Likewise.
9999 (lnp_state_machine::check_line_address): Likewise.
10000 (dwarf_decode_lines_1): Likewise.
10001 (dwarf_decode_lines): Likewise.
10002 (dwarf2_start_symtab): Likewise.
10003 (var_decode_location): Likewise.
10004 (new_symbol_full): Likewise.
10005 (dwarf2_const_value_data): Likewise.
10006 (dwarf2_const_value_attr): Likewise.
10007 (dwarf2_const_value): Likewise.
10008 (die_type): Likewise.
10009 (die_containing_type): Likewise.
10010 (lookup_die_type): Likewise.
10011 (guess_full_die_structure_name): Likewise.
10012 (anonymous_struct_prefix): Likewise.
10013 (dwarf2_name): Likewise.
10014 (follow_die_ref_or_sig): Likewise.
10015 (follow_die_offset): Likewise.
10016 (follow_die_ref): Likewise.
10017 (dwarf2_fetch_die_loc_sect_off): Likewise.
10018 (dwarf2_fetch_constant_bytes): Likewise.
10019 (dwarf2_fetch_die_type_sect_off): Likewise.
10020 (dwarf2_get_die_type): Likewise.
10021 (follow_die_sig): Likewise.
10022 (decode_locdesc): Likewise.
10023 (dwarf2_per_cu_objfile): Likewise.
10024 (dwarf2_per_cu_text_offset): Likewise.
10025 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
10026 objfile.
10027 (set_die_type): Access objfile through
10028 dwarf2_per_objfile.
10029
b01ba14d
SM
100302018-01-07 Simon Marchi <simon.marchi@ericsson.com>
10031
10032 * valprint.c (converted_character_d): Remove typedef.
10033 (DEF_VEC_O (converted_character_d)): Remove.
10034 (count_next_character): Use std::vector.
10035 (print_converted_chars_to_obstack): Likewise.
10036 (generic_printstr): Likewise.
10037
4d0fdd9b
SM
100382018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10039
10040 * xml-support.h (struct gdb_xml_value): Add constructor.
10041 <value>: Change type to unique_xmalloc_ptr.
10042 (gdb_xml_value_s): Remove typedef.
10043 (DEF_VEC_O (gdb_xml_value_s)): Remove.
10044 (gdb_xml_element_start_handler): Change parameter type to
10045 std::vector.
10046 (xml_find_attribute): Likewise.
10047 * xml-support.c (xml_find_attribute): Change parameter type to
10048 std::vector and adjust.
10049 (gdb_xml_values_cleanup): Remove.
10050 (gdb_xml_parser::start_element): Adjust to std::vector.
10051 (xinclude_start_include): Change paraeter type to std::vector
10052 and adjust.
10053 * btrace.c (check_xml_btrace_version): Likewise.
10054 (parse_xml_btrace_block): Likewise.
10055 (parse_xml_btrace_pt_config_cpu): Likewise.
10056 (parse_xml_btrace_pt): Likewise.
10057 (parse_xml_btrace_conf_bts): Likewise.
10058 (parse_xml_btrace_conf_pt): Likewise.
10059 * memory-map.c (memory_map_start_memory): Likewise.
10060 (memory_map_start_property): Likewise.
10061 * osdata.c (osdata_start_osdata): Likewise.
10062 (osdata_start_item): Likewise.
10063 (osdata_start_column): Likewise.
10064 * remote.c (start_thread): Likewise.
10065 * solib-aix.c (library_list_start_library): Likewise.
10066 (library_list_start_list): Likewise.
10067 * solib-svr4.c (library_list_start_library): Likewise.
10068 (svr4_library_list_start_list): Likewise.
10069 * solib-target.c (library_list_start_segment): Likewise.
10070 (library_list_start_section): Likewise.
10071 (library_list_start_library): Likewise.
10072 (library_list_start_list): Likewise.
10073 * tracepoint.c (traceframe_info_start_memory): Likewise.
10074 (traceframe_info_start_tvar): Likewise.
10075 * xml-syscall.c (syscall_start_syscall): Likewise.
10076 * xml-tdesc.c (tdesc_start_target): Likewise.
10077 (tdesc_start_feature): Likewise.
10078 (tdesc_start_reg): Likewise.
10079 (tdesc_start_union): Likewise.
10080 (tdesc_start_struct): Likewise.
10081 (tdesc_start_flags): Likewise.
10082 (tdesc_start_enum): Likewise.
10083 (tdesc_start_field): Likewise.
10084 (tdesc_start_enum_value): Likewise.
10085 (tdesc_start_vector): Likewise.
10086
f979c73f
SM
100872018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10088
10089 * extension.h (struct xmethod_worker) <clone>: Remove.
10090 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
10091 Remove.
10092 (python_xmethod_worker::clone): Remove.
10093 * valops.c (find_overload_match): Use std::move instead of
10094 clone.
10095
ba18742c
SM
100962018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
10097
10098 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
10099 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
10100 <free_xmethod_worker_data>: Remove.
10101 <get_matching_xmethod_workers>: Chance VEC to std::vector.
10102 <get_xmethod_arg_types>: Remove.
10103 <get_xmethod_result_type>: Remove.
10104 <invoke_xmethod>: Remove.
10105 * extension.c (new_xmethod_worker): Remove.
10106 (clone_xmethod_worker): Remove.
10107 (get_matching_xmethod_workers): Return void, pass std::vector by
10108 pointer.
10109 (get_xmethod_arg_types): Rename to...
10110 (xmethod_worker::get_arg_types): ... this, and adjust.
10111 (get_xmethod_result_type): Rename to...
10112 (xmethod_worker::get_result_type): ... this, and adjust.
10113 (invoke_xmethod): Remove.
10114 (free_xmethod_worker): Remove.
10115 (free_xmethod_worker_vec): Remove.
10116 * extension.h (enum ext_lang_rc): Move here from
10117 extension-priv.h.
10118 (struct xmethod_worker): Add constructor and destructor.
10119 <data>: Remove.
10120 <value>: Remove.
10121 <invoke, clone, do_get_result_type, do_get_arg_types>: New
10122 virtual pure methods.
10123 <get_arg_types, get_result_type>: New methods.
10124 (xmethod_worker_ptr): Remove typedef.
10125 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
10126 (xmethod_worker_vec): Remove typedef.
10127 (xmethod_worker_up): New typedef.
10128 (invoke_xmethod): Remove.
10129 (clone_xmethod_worker): Remove.
10130 (free_xmethod_worker): Remove.
10131 (free_xmethod_worker_vec): Remove.
10132 (get_xmethod_arg_types): Remove.
10133 (get_xmethod_result_type): Remove.
10134 * valops.c (find_method_list): Use std::vector, don't use
10135 intermediate vector.
10136 (value_find_oload_method_list): Use std::vector.
10137 (find_overload_match): Use std::vector.
10138 (find_oload_champ): Use std::vector.
10139 * value.c (value_free): Use operator delete.
10140 (value_of_xmethod): Rename to...
10141 (value_from_xmethod): ... this. Don't assign
10142 xmethod_worker::value, take rvalue-reference.
10143 (result_type_of_xmethod): Adjust.
10144 (call_xmethod): Adjust.
10145 * value.h: Include extension.h.
10146 (struct xmethod_worker): Don't forward-declare.
10147 (value_of_xmethod): Rename to...
10148 (value_from_xmethod): ... this, take rvalue-reference.
10149 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
10150 (struct python_xmethod_worker): ... this, add constructor and
10151 destructor.
10152 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
10153 (gdbpy_free_xmethod_worker_data): Rename to...
10154 (python_xmethod_worker::~python_xmethod_worker): ... this and
10155 adjust.
10156 (gdbpy_clone_xmethod_worker_data): Rename to...
10157 (python_xmethod_worker::clone): ... this and adjust.
10158 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
10159 temporary vector.
10160 (gdbpy_get_xmethod_arg_types): Rename to...
10161 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
10162 (gdbpy_get_xmethod_result_type): Rename to...
10163 (python_xmethod_worker::do_get_result_type): ... this and
10164 adjust.
10165 (gdbpy_invoke_xmethod): Rename to...
10166 (python_xmethod_worker::invoke): ... this and adjust.
10167 (new_python_xmethod_worker): Rename to...
10168 (python_xmethod_worker::python_xmethod_worker): ... this and
10169 adjust.
10170 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
10171 Remove.
10172 (gdbpy_free_xmethod_worker_data): Remove.
10173 (gdbpy_get_matching_xmethod_workers): Use std::vector.
10174 (gdbpy_get_xmethod_arg_types): Remove.
10175 (gdbpy_get_xmethod_result_type): Remove.
10176 (gdbpy_invoke_xmethod): Remove.
10177 * python/python.c (python_extension_ops): Remove obsolete
10178 callbacks.
10179
e379cee6
PA
101802018-01-05 Pedro Alves <palves@redhat.com>
10181
10182 PR gdb/18653
10183 * common/signals-state-save-restore.c
10184 (save_original_signals_state): New parameter 'quiet'. Warn if we
10185 find a custom handler preinstalled, instead of internal erroring.
10186 But only warn if !quiet.
10187 * common/signals-state-save-restore.h
10188 (save_original_signals_state): New parameter 'quiet'.
10189 * main.c (captured_main_1): Move save_original_signals_state call
10190 after option handling, and pass QUIET.
10191
a655456c
PA
101922018-01-05 Pedro Alves <palves@redhat.com>
10193
10194 * spu-tdep.c (spu_catch_start): Pass
10195 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
10196
de63c46b
PA
101972018-01-05 Pedro Alves <palves@redhat.com>
10198
10199 PR gdb/22670
10200 * ada-lang.c (literal_symbol_name_matcher): New function.
10201 (ada_get_symbol_name_matcher): Use it for
10202 symbol_name_match_type::SEARCH_NAME.
10203 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
10204 it down instead of assuming symbol_name_match_type::FULL.
10205 * block.h (block_lookup_symbol): New parameter 'match_type'.
10206 * c-valprint.c (print_unpacked_pointer): Use
10207 lookup_symbol_search_name instead of lookup_symbol.
10208 * compile/compile-object-load.c (get_out_value_type): Pass down
10209 symbol_name_match_type::SEARCH_NAME.
10210 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
10211 symbol_name_match_type::FULL.
10212 * cp-support.c (cp_get_symbol_name_matcher): Handle
10213 symbol_name_match_type::SEARCH_NAME.
10214 * infrun.c (insert_exception_resume_breakpoint): Use
10215 lookup_symbol_search_name.
10216 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
10217 * psymtab.c (maintenance_check_psymtabs): Use
10218 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
10219 * stack.c (print_frame_args): Use lookup_symbol_search_name and
10220 SYMBOL_SEARCH_NAME.
10221 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
10222 if symbol_name_match_type::SEARCH_NAME.
10223 (lookup_symbol_in_language): Pass down
10224 symbol_name_match_type::FULL.
10225 (lookup_symbol_search_name): New.
10226 (lookup_language_this): Pass down
10227 symbol_name_match_type::SEARCH_NAME.
10228 (lookup_symbol_aux, lookup_local_symbol): New parameter
10229 'match_type'. Pass it down.
10230 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
10231 (lookup_symbol_search_name): New declaration.
10232 (lookup_symbol_in_block): New 'match_type' parameter.
10233
f98fc17b
PA
102342018-01-05 Pedro Alves <palves@redhat.com>
10235
10236 PR gdb/22670
10237 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
10238 ada_lookup_symbol.
10239 (ada_lookup_symbol): Reimplement in terms of
10240 ada_lookup_symbol_list, bits factored out from
10241 ada_lookup_encoded_symbol.
10242
342f8240
JB
102432018-01-05 Joel Brobecker <brobecker@adacore.com>
10244
10245 * ada-exp.y (write_object_renaming): When subscripting an array
10246 using a symbol as the index, pass the block in call to
10247 ada_lookup_encoded_symbol when looking that symbol up.
10248
7150d33c
JG
102492018-01-05 Jerome Guitton <guitton@adacore.com>
10250
10251 * ada-lang.c (ada_array_length): Use ada_index_type instead of
10252 TYPE_INDEX_TYPE.
10253
cc0e770c
JB
102542018-01-05 Joel Brobecker <brobecker@adacore.com>
10255
10256 * ada-lang.c (ada_to_fixed_value_create): Add handling of
10257 the case where VALUE_LVAL (val0) is not lval_memory.
10258
f79da888 102592018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
10260
10261 * ada-valprint.c (print_optional_low_bound): Handle
10262 character-indexed array printing like boolean-indexed array
10263 printing.
10264
cd385f94
JB
102652018-01-05 Joel Brobecker <brobecker@adacore.com>
10266
10267 * NEWS: Create a new section for the next release branch.
10268 Rename the section of the current branch, now that it has
10269 been cut.
10270
09aca949
JB
102712018-01-05 Joel Brobecker <brobecker@adacore.com>
10272
10273 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
10274 * version.in: Bump version to 8.1.50.DATE-git.
10275
9f757bf7
XR
102762018-01-03 Xavier Roirand <roirand@adacore.com>
10277
10278 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
10279 Add field.
10280 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
10281 Add field.
10282 (default_exception_support_info) <catch_handlers_sym>: Add field.
10283 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
10284 (ada_exception_name_addr_1): Add "catch handlers" handling.
10285 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
10286 Update all callers.
10287 (create_excep_cond_exprs) <ex>: Add parameter.
10288 (re_set_exception): Update create_excep_cond_exprs call.
10289 (print_it_exception, print_one_exception, print_mention_exception)
10290 (print_recreate_exception): Add "catch handler" handling.
10291 (allocate_location_catch_handlers, re_set_catch_handlers)
10292 (check_status_catch_handlers, print_it_catch_handlers)
10293 (print_one_catch_handlers, print_mention_catch_handlers)
10294 (print_recreate_catch_handlers): New function.
10295 (catch_handlers_breakpoint_ops): New variable.
10296 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
10297 Add parameter. Add "catch handler" handling.
10298 (ada_exception_sym_name, ada_exception_breakpoint_ops):
10299 Add "catch handler" handling.
10300 (ada_exception_catchpoint_cond_string): Add "catch handler"
10301 handling.
10302 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
10303 call.
10304 (catch_ada_handlers_command): New function.
10305 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
10306 operations structure.
10307 (_initialize_ada_language): Add "catch handlers" command entry.
10308 * NEWS: Document "catch handlers" feature.
10309
9fe561ab
JB
103102018-01-02 Joel Brobecker <brobecker@adacore.com>
10311
10312 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
10313 account when creating the array type of the slice.
10314 (ada_value_slice): Likewise.
10315
a405673c
JB
103162018-01-02 Joel Brobecker <brobecker@adacore.com>
10317
10318 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
10319 New enum value.
10320 (create_array_type_with_stride): Add byte_stride_prop parameter.
10321 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
10322 New parameter. Update all callers in this file.
10323 (array_type_has_dynamic_stride): New function.
10324 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
10325 of arrays with dynamic byte strides.
10326 * dwarf2read.c (read_array_type): Add support for dynamic
10327 DW_AT_byte_stride attributes.
10328
74a2f8ff
JB
103292018-01-02 Joel Brobecker <brobecker@adacore.com>
10330
10331 * dwarf2read.c (read_unspecified_type): Treat
10332 DW_TAG_enumeration_type DIEs from Ada units as stubs.
10333
e2882c85
JB
103342018-01-01 Joel Brobecker <brobecker@adacore.com>
10335
10336 Update copyright year range in all GDB files.
10337
1690bb24
JB
103382018-01-01 Joel Brobecker <brobecker@adacore.com>
10339
10340 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
10341 and gdb/testsuite/gdb.base/step-line.c.
10342
0f0c98a8
JB
103432018-01-01 Joel Brobecker <brobecker@adacore.com>
10344
10345 * copyright.py (main): Dump the contents of
10346 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
10347 even if BY_HAND is empty.
10348
82e1e79a
JB
103492018-01-01 Joel Brobecker <brobecker@adacore.com>
10350
10351 * top.c (print_gdb_version): Update Copyright year in version
10352 message.
10353
053f54e5 103542018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 10355
053f54e5 10356 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 10357
053f54e5 10358For older changes see ChangeLog-2017.
c906108c
SS
10359\f
10360Local Variables:
10361mode: change-log
10362left-margin: 8
10363fill-column: 74
10364version-control: never
57da7796 10365coding: utf-8
c906108c 10366End:
This page took 2.660507 seconds and 4 git commands to generate.