darwin: Add fork-inferior.o to NATDEPFILES
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
848d9074
SM
12017-06-13 Simon Marchi <simon.marchi@ericsson.com>
2
3 * configure.nat: Factor out Darwin bits that are not
4 architecture-specific. Add fork-inferior.o.
5
3b912944
SM
62017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7
8 * configure.nat: Factor out AIX bits that are not
9 architecture-specific. Add fork-inferior.o.
10
55acdf22
AA
112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
12
13 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
14 (read_pieced_value, write_pieced_value): ...here. Reduce to
15 wrappers that just call rw_pieced_value.
16
f65e2044
AA
172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
18
19 * dwarf2loc.c (write_pieced_value): When writing the data for a
20 memory piece, use write_memory_with_notification instead of
21 write_memory.
22
23f945bf
AA
232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
24
25 * valops.c (read_value_memory): Change embedded_offset to
26 represent a bit offset instead of a byte offset.
27 * value.h (read_value_memory): Adjust comment.
28
f236533e
AA
292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
30
31 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
32 dest_offset_bits and source_offset_bits.
33 (write_pieced_value): Likewise.
34
65d84b76
AA
352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
36
37 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
38 given by DW_OP_bit_piece.
39 (write_pieced_value): Likewise.
40
242d31ab
AA
412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
44 some other preparations to the places where sufficient information
45 is available.
46 (write_pieced_value): Likewise.
47
03c8af18
AA
482017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
49
50 * dwarf2loc.c (bits_to_bytes): New function.
51 (read_pieced_value): Fix offset calculations for register pieces
52 on big-endian targets.
53 (write_pieced_value): Likewise.
54
840989c1
AA
552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
56
57 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
58 (write_pieced_value): Likewise.
59
359b19bb
AA
602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
61
62 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
63 transfer the source value's least significant bits, instead of its
64 lowest-addressed ones. Rename type_len to max_offset.
65 (read_pieced_value): Mirror above changes to write_pieced_value as
66 applicable.
67
07c9ca3b
AA
682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
69
70 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
71 truncate full bytes from dest_offset_bits before using it as an
72 offset into the buffer.
73
f1cc9874
AA
742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
75
76 * dwarf2loc.c (write_pieced_value): Include transfer size in
77 byte-wise check.
78
cdaac320
AA
792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
80
81 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
82 calculation of this_size.
83
af547a96
AA
842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
87 when targeting a bit-field.
88 (write_pieced_value): Likewise.
89
ddd7882a
AA
902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
93 (allocate_piece_closure): Drop addr_size parameter.
94 (dwarf2_evaluate_loc_desc_full): Adjust call to
95 allocate_piece_closure.
96
e9352324
AA
972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 PR gdb/21226
100 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
101 the LSB end, independent of endianness.
102
d5d1163e
AA
1032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
104
105 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
106 size capping.
107
032bb6ea
YQ
1082017-06-13 Yao Qi <yao.qi@linaro.org>
109
110 * mips-linux-nat.c: Move include features/mips*-linux.c to
111 mips-linux-tdep.c.
112 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
113 to mips-linux-tdep.c.
114 * mips-linux-tdep.c: Include features/mips*-linux.c
115 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
116 functions.
117 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
118 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
119 (tdesc_mips64_dsp_linux): Declare.
120
f12f6bad
TT
1212017-06-12 Tom Tromey <tom@tromey.com>
122
123 * valprint.h (val_print_type_code_int): Remove.
124 * valprint.c (generic_val_print_int): Always call
125 val_print_scalar_formatted.
126 (val_print_type_code_int): Remove.
127 * printcmd.c (print_scalar_formatted): Handle options->format==0.
128 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
129 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
130 * ada-valprint.c (ada_val_print_num): Use
131 val_print_scalar_formatted.
132
d9109c80
TT
1332017-06-12 Tom Tromey <tom@tromey.com>
134
135 * printcmd.c (print_scalar_formatted): Unify the two switches.
136 Don't convert scalars to LONGEST.
137
4ac0cb1c
TT
1382017-06-12 Tom Tromey <tom@tromey.com>
139
140 PR exp/16225:
141 * valprint.h (print_decimal_chars): Update.
142 * valprint.c (maybe_negate_by_bytes): New function.
143 (print_decimal_chars): Add "is_signed" argument.
144 * printcmd.c (print_scalar_formatted): Update.
145
30a25466
TT
1462017-06-12 Tom Tromey <tom@tromey.com>
147
148 PR exp/16225:
149 * valprint.h (print_binary_chars, print_hex_chars): Update.
150 * valprint.c (val_print_type_code_int): Update.
151 (print_binary_chars): Add "zero_pad" argument.
152 (emit_octal_digit): New function.
153 (print_octal_chars): Don't zero-pad.
154 (print_decimal_chars): Likewise.
155 (print_hex_chars): Add "zero_pad" argument.
156 * sh64-tdep.c (sh64_do_fp_register): Update.
157 * regcache.c (regcache::dump): Update.
158 * printcmd.c (print_scalar_formatted): Update.
159 * infcmd.c (default_print_one_register_info): Update.
160
b3464d03
PA
1612017-06-12 Pedro Alves <palves@redhat.com>
162 Alan Hayward <alan.hayward@arm.com>
163
164 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
165 (mips_eabi_push_dummy_call): Rename local 'regsize' to
166 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
167 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
168 Assert that abi_regsize bytes fit in 'ref_valbuf'.
169
4b76cda9
PA
1702017-06-12 Pedro Alves <palves@redhat.com>
171
172 * dwarf2read.c (mapped_symtab::data): Now a vector of
173 symtab_index_entry instead of vector of
174 std::unique_ptr<symtab_index_entry>. All users adjusted to check
175 whether an element's name is NULL instead of checking whether the
176 element itself is NULL.
177 (find_slot): Change return type. Adjust.
178 (hash_expand, , add_index_entry, uniquify_cu_indices)
179 (write_hash_table): Adjust.
180
e8f8bcb3
PA
1812017-06-12 Pedro Alves <palves@redhat.com>
182
183 * dwarf2read.c (recursively_count_psymbols): New function.
184 (write_psymtabs_to_index): Call it to compute number of psyms and
185 pass estimate size of psyms_seen to unordered_set's ctor.
186
70a1152b
PA
1872017-06-12 Pedro Alves <palves@redhat.com>
188
189 * dwarf2read.c (write_hash_table): Check if key already exists
190 before emplacing.
191
c2f134ac
PA
1922017-06-12 Pedro Alves <palves@redhat.com>
193
194 * dwarf2read.c (data_buf::append_space): Rename to...
195 (data_buf::grow): ... this, and make private. Adjust all callers.
196 (data_buf::append_uint): New method.
197 (add_address_entry, write_one_signatured_type)
198 (write_psymtabs_to_index): Use it.
199
a81e6d4d
PA
2002017-06-12 Pedro Alves <palves@redhat.com>
201
202 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
203 (file_write (FILE *, const std::vector<Elem>&)): Delete.
204 (data_buf::file_write): Call ::fwrite directly.
205
6fd931f2
PA
2062017-06-12 Pedro Alves <palves@redhat.com>
207
208 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
209 std::vector::erase.
210
bc8f2430
JK
2112017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
212
213 Code cleanup: C++ify .gdb_index producer.
214 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
215 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
216 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
217 (create_strtab, add_string): Remove.
218 (file_write, data_buf): New.
219 (struct symtab_index_entry): Use std::vector for cu_indices.
220 (struct mapped_symtab): Use std::vector for data.
221 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
222 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
223 Remove.
224 (find_slot): Change return type. Update it to the new data structures.
225 (hash_expand, add_index_entry): Update it to the new data structures.
226 (offset_type_compare): Remove.
227 (uniquify_cu_indices): Update it to the new data structures.
228 (c_str_view, c_str_view_hasher, vector_hasher): New.
229 (add_indices_to_cpool): Remove.
230 (write_hash_table): Update it to the new data structures.
231 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
232 (eq_psymtab_cu_index): Remove.
233 (psym_index_map): New typedef.
234 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
235 reference and std::unordered_map for cu_index_htab.
236 (add_address_entry, add_address_entry_worker, write_address_map)
237 (write_psymbols): Update it to the new data structures.
238 (write_obstack): Remove.
239 (struct signatured_type_index_data): Change types_list to a data_buf
240 reference and psyms_seen to a std::unordered_set reference.
241 (write_one_signatured_type, recursively_write_psymbols)
242 (write_psymtabs_to_index): Update it to the new data structures.
243
c4dcb155
SM
2442017-06-11 Simon Marchi <simon.marchi@ericsson.com>
245
246 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
247 separate-debug-file commands.
248 * symfile.h (separate_debug_file_debug): New global.
249 * symfile.c (separate_debug_file_debug): New global.
250 (separate_debug_file_exists, find_separate_debug_file): Add
251 debug output.
252 (_initialize_symfile): Add "set debug separate-debug-file"
253 command.
254 * build-id.c (build_id_to_debug_bfd,
255 find_separate_debug_file_by_buildid): Add debug output.
256
6d45d4b4
SM
2572017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * gdbarch.sh (displaced_step_free_closure): Remove.
260 * gdbarch.h, gdbarch.c: Re-generate.
261 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
262 displaced_step_free_closure.
263 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
264 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
265 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
266 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
267 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
268 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
269 * arch-utils.h (simple_displaced_step_free_closure): Remove.
270 * arch-utils.c (simple_displaced_step_free_closure): Remove.
271 * infrun.c (displaced_step_clear): Call xfree instead of
272 gdbarch_displaced_step_free_closure.
273
2f91880f
SDJ
2742017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
275
276 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
277 NULL".
278
b8b6e72f
AH
2792017-06-08 Alan Hayward <alan.hayward@arm.com>
280
281 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
282 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
283 (mn10300_push_dummy_call): Likewise.
284
5369082e
AH
2852017-06-08 Alan Hayward <alan.hayward@arm.com>
286
287 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
288
ff4ca5ac
AH
2892017-06-08 Alan Hayward <alan.hayward@arm.com>
290
291 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
292
aefd8b33
SDJ
2932017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
294
295 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
296 able to start inferiors using a shell.
297 (New remote packets): Announce new packet "QStartupWithShell".
298 * remote.c: Add PACKET_QStartupWithShell.
299 (extended_remote_create_inferior): Handle new
300 PACKET_QStartupWithShell.
301 (remote_protocol_features) <QStartupWithShell>: New entry for
302 PACKET_QStartupWithShell.
303 (_initialize_remote): Call "add_packet_config_cmd" for
304 QStartupShell.
305
2090129c
SDJ
3062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
307 Pedro Alves <palves@redhat.com>
308
309 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
310 and "nat/fork-inferior.h".
311 * common/common-inferior.h: New file, with contents from
312 "gdb/inferior.h".
313 * commom/common-utils.c: Include "common-utils.h".
314 (stringify_argv): New function.
315 * common/common-utils.h (stringify_argv): New prototype.
316 * configure.nat: Add "fork-inferior.o" as a dependency for
317 "*linux*", "fbsd*" and "nbsd*" hosts.
318 * corefile.c (get_exec_file): Update comment.
319 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
320 instead of "startup_inferior".
321 (darwin_create_inferior): Call "add_thread_silent" after
322 "fork_inferior".
323 * fork-child.c: Cleanup unnecessary includes.
324 (SHELL_FILE): Move to "common/common-fork-child.c".
325 (environ): Likewise.
326 (exec_wrapper): Initialize.
327 (get_exec_wrapper): New function.
328 (breakup_args): Move to "common/common-fork-child.c"; rename to
329 "breakup_args_for_exec".
330 (escape_bang_in_quoted_argument): Move to
331 "common/common-fork-child.c".
332 (saved_ui): New variable.
333 (prefork_hook): New function.
334 (postfork_hook): Likewise.
335 (postfork_child_hook): Likewise.
336 (gdb_startup_inferior): Likewise.
337 (fork_inferior): Move to "common/common-fork-child.c". Update
338 function to support gdbserver.
339 (startup_inferior): Likewise.
340 * gdbcore.h (get_exec_file): Remove declaration.
341 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
342 instead of "startup_inferior". Call "add_thread_silent" after
343 "fork_inferior".
344 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
345 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
346 instead of "startup_inferior". Call "add_thread_silent" after
347 "fork_inferior".
348 * inferior.h: Include "common-inferior.h".
349 (trace_start_error): Move to "common/common-utils.h".
350 (trace_start_error_with_name): Likewise.
351 (fork_inferior): Move prototype to "nat/fork-inferior.h".
352 (startup_inferior): Likewise.
353 (gdb_startup_inferior): New prototype.
354 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
355 * nat/fork-inferior.h: New file.
356 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
357 instead of "startup_inferior". Call "add_thread_silent" after
358 "fork_inferior".
359 * target.h (target_terminal_init): Move prototype to
360 "target/target.h".
361 (target_terminal_inferior): Likewise.
362 (target_terminal_ours): Likewise.
363 * target/target.h (target_terminal_init): New prototype, moved
364 from "target.h".
365 (target_terminal_inferior): Likewise.
366 (target_terminal_ours): Likewise.
367 * utils.c (gdb_flush_out_err): New function.
368
043a4934
SDJ
3692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
370
371 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
372 * common/common-gdbthread.h: New file, with parts from
373 "gdb/gdbthread.h".
374 * gdbthread.h: Include "common-gdbthread.h".
375 (switch_to_thread): Moved to "common/common-gdbthread.h".
376
15652511
SDJ
3772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
378
379 * Makefile.in (SFILES): Add "common/job-control.c".
380 (HFILES_NO_SRCDIR): Add "common/job-control.h".
381 (COMMON_OBS): Add "job-control.o".
382 * common/job-control.c: New file, with contents from
383 "gdb/inflow.c".
384 * common/job-control.h: New file, with contents from "terminal.h".
385 * fork-child.c: Include "job-control.h".
386 * inflow.c: Include "job-control.h".
387 (gdb_setpgid): Move to "common/common-inflow.c".
388 (_initialize_inflow): Move setting of "job_control" to
389 "handle_job_control".
390 * terminal.h (job_control): Moved to "common/common-terminal.h".
391 (gdb_setpgid): Likewise.
392 * top.c: Include "job_control.h".
393 * utils.c: Likewise.
394 (job_control): Moved to "job-control.c".
395
2d7cc5c7
PA
3962017-06-07 Pedro Alves <palves@redhat.com>
397
398 * Makefile.in (SFILES): Add gdb_regex.c.
399 (COMMON_OBS): Add gdb_regex.o.
400 * ada-lang.c (ada_add_standard_exceptions)
401 (ada_add_exceptions_from_frame, name_matches_regex)
402 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
403 parameter type to compiled_regex. Adjust.
404 (ada_exceptions_list): Use compiled_regex.
405 * break-catch-throw.c (exception_catchpoint::pattern): Now a
406 std::unique_ptr<compiled_regex>.
407 (exception_catchpoint::~exception_catchpoint): Remove regfree
408 call.
409 (check_status_exception_catchpoint): Adjust to use compiled_regex.
410 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
411 * breakpoint.c (solib_catchpoint::compiled): Now a
412 std::unique_ptr<compiled_regex>.
413 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
414 (check_status_catch_solib): Adjust to use compiled_regex.
415 (add_solib_catchpoint): Adjust to use compiled_regex.
416 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
417 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
418 compiled_regex reference. Adjust to use it.
419 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
420 declaration. Include "gdb_regex.h".
421 (apropos_cmd): Change regex parameter to compiled_regex reference.
422 * gdb_regex.c: New file.
423 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
424 declarations.
425 (class compiled_regex): New.
426 * linux-tdep.c: Include "common/gdb_optional.h".
427 (struct mapping_regexes): New, factored out from
428 mapping_is_anonymous_p, and adjusted to use compiled_regex.
429 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
430 gdb::optional and remove cleanups. Adjust to compiled_regex.
431 * probe.c: Include "common/gdb_optional.h".
432 (collect_probes): Use compiled_regex and gdb::optional and remove
433 cleanups.
434 * skip.c: Include "common/gdb_optional.h".
435 (skiplist_entry::compiled_function_regexp): Now a
436 gdb::optional<compiled_regex>.
437 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
438 (free_skiplist_entry): Remove regfree call.
439 (compile_skip_regexp, skip_rfunction_p): Adjust to use
440 compiled_regex and gdb::optional.
441 * symtab.c: Include "common/gdb_optional.h".
442 (search_symbols): Use compiled_regex and gdb::optional.
443 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
444 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
445 to gdb_regex.c.
446
50d6adef
AH
4472017-06-07 Alan Hayward <alan.hayward@arm.com>
448
449 * regcache.c (regcache::save): Avoid buffer use.
450 (regcache::dump): Likewise.
451
4a8a33c8
AH
4522017-06-07 Alan Hayward <alan.hayward@arm.com>
453
454 * sh-tdep.c (sh_pseudo_register_read): Remove
455 MAX_REGISTER_SIZE.
456 (sh_pseudo_register_write): Likewise.
457 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
458 (sh64_pseudo_register_write): Likewise
459
d1be909e
AH
4602017-06-07 Alan Hayward <alan.hayward@arm.com>
461
462 * aarch64-tdep.c (aarch64_store_return_value): Use
463 V_REGISTER_SIZE.
464 (aarch64_pseudo_read_value): Likewise.
465 (aarch64_pseudo_write): Likewise.
466
f4a65042
YQ
4672017-06-06 Yao Qi <yao.qi@linaro.org>
468
469 * regformats/regdef.h (set_register_cache): Remove the
470 declaration.
471
9f7fb0aa
AH
4722017-06-06 Alan Hayward <alan.hayward@arm.com>
473
474 * frame.c (frame_unwind_register_signed): Use
475 frame_unwind_register_value.
476
e1e01040
PA
4772017-06-06 Pedro Alves <palves@redhat.com>
478
479 PR breakpoints/21553
480 * breakpoint.c (create_breakpoints_sal_default)
481 (init_breakpoint_sal, create_breakpoint_sal): Use
482 gdb::unique_xmalloc_ptr for string parameters.
483 (create_breakpoint): Constify 'extra_string' and 'cond_string'
484 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
485 (base_breakpoint_create_breakpoints_sal)
486 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
487 (strace_marker_create_breakpoints_sal)
488 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
489 string parameters.
490 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
491 gdb::unique_xmalloc_ptr for string parameters.
492 (create_breakpoint): Constify 'extra_string' and 'cond_string'
493 parameters.
494
fbe654c8
AH
4952017-06-06 Alan Hayward <alan.hayward@arm.com>
496
497 * alpha-tdep.c (alpha_register_to_value): Use
498 get_frame_register_value.
499 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
500
ae0d01d6
AH
5012017-06-06 Alan Hayward <alan.hayward@arm.com>
502
503 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
504 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
505 (ia64_value_to_register): Likewise.
506 (ia64_extract_return_value): Likewise.
507 (ia64_store_return_value): Likewise.
508 (ia64_push_dummy_call): Likewise.
509
49cf576c
JB
5102017-06-04 Joel Brobecker <brobecker@adacore.com>
511
512 GDB 8.0 released.
513
26b6a6ab
SM
5142017-06-03 Simon Marchi <simon.marchi@ericsson.com>
515
516 * x86-linux-nat.c (struct arch_lwp_info): Remove.
517
22827c51
SM
5182017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
519
520 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
521 parameter.
522 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
523
0e05cf3a
SM
5242017-06-02 Simon Marchi <simon.marchi@ericsson.com>
525
526 * event-loop.c (poll_timers): Unallocate timer using delete
527 instead of xfree.
528
c1fc2657
SM
5292017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
532 (struct breakpoint) <~breakpoint>: New.
533 (struct watchpoint): Inherit from breakpoint.
534 <~watchpoint>: New.
535 <base>: Remove.
536 (struct tracepoint): Inherit from breakpoint.
537 <base>: Remove.
538 * breakpoint.c (longjmp_breakpoint_ops): Remove.
539 (struct longjmp_breakpoint): Inherit from breakpoint.
540 <~longjmp_breakpoint>: New.
541 <base>: Remove.
542 (new_breakpoint_from_type): Remove casts.
543 (watchpoint_in_thread_scope): Remove reference to base field.
544 (watchpoint_del_at_next_stop): Likewise.
545 (update_watchpoint): Likewise.
546 (watchpoint_check): Likewise.
547 (bpstat_check_watchpoint): Likewise.
548 (set_longjmp_breakpoint): Likewise.
549 (struct fork_catchpoint): Inherit from breakpoint.
550 <base>: Remove.
551 (struct solib_catchpoint): Inherit from breakpoint.
552 <~solib_catchpoint>: New.
553 <base>: Remove.
554 (dtor_catch_solib): Change to ...
555 (solib_catchpoint::~solib_catchpoint): ... this.
556 (breakpoint_hit_catch_solib): Remove reference to base field.
557 (add_solib_catchpoint): Likewise.
558 (create_fork_vfork_event_catchpoint): Likewise.
559 (struct exec_catchpoint): Inherit from breakpoint.
560 <~exec_catchpoint>: New.
561 <base>: Remove.
562 (dtor_catch_exec): Change to ...
563 (exec_catchpoint::~exec_catchpoint): ... this.
564 (dtor_watchpoint): Change to ...
565 (watchpoint::~watchpoint): ... this.
566 (watch_command_1): Remove reference to base field.
567 (catch_exec_command_1): Likewise.
568 (base_breakpoint_dtor): Change to ...
569 (breakpoint::~breakpoint): ... this.
570 (base_breakpoint_ops): Remove dtor field value.
571 (longjmp_bkpt_dtor): Change to ...
572 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
573 (strace_marker_create_breakpoints_sal): Remove reference to base
574 field.
575 (delete_breakpoint): Don't manually call breakpoint destructor.
576 (create_tracepoint_from_upload): Remove reference to base field.
577 (trace_pass_set_count): Likewise.
578 (initialize_breakpoint_ops): Don't initialize
579 momentary_breakpoint_ops, don't set dtors.
580 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
581 <~ada_catchpoint>: New.
582 <base>: Remove.
583 (create_excep_cond_exprs): Remove reference to base field.
584 (dtor_exception): Change to ...
585 (ada_catchpoint::~ada_catchpoint): ... this.
586 (dtor_catch_exception): Remove.
587 (dtor_catch_exception_unhandled): Remove.
588 (dtor_catch_assert): Remove.
589 (create_ada_exception_catchpoint): Remove reference to base
590 field.
591 (initialize_ada_catchpoint_ops): Don't set dtors.
592 * break-catch-sig.c (struct signal_catchpoint): Inherit from
593 breakpoint.
594 <~signal_catchpoint>: New.
595 <base>: Remove.
596 (signal_catchpoint_dtor): Change to ...
597 (signal_catchpoint::~signal_catchpoint): ... this.
598 (create_signal_catchpoint): Remove reference to base field.
599 (initialize_signal_catchpoint_ops): Don't set dtor.
600 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
601 from breakpoint.
602 <~syscall_catchpoint>: New.
603 <base>: Remove.
604 (dtor_catch_syscall): Change to ...
605 (syscall_catchpoint::~syscall_catchpoint): ... this.
606 (create_syscall_event_catchpoint): Remove reference to base
607 field.
608 (initialize_syscall_catchpoint_ops): Don't set dtor.
609 * break-catch-throw.c (struct exception_catchpoint): Inherit
610 from breakpoint.
611 <~exception_catchpoint>: New.
612 <base>: Remove.
613 (dtor_exception_catchpoint): Change to ...
614 (exception_catchpoint::~exception_catchpoint): ... this.
615 (handle_gnu_v3_exceptions): Remove reference to base field.
616 (initialize_throw_catchpoint_ops): Don't set dtor.
617 * ctf.c (ctf_get_traceframe_address): Remove reference to base
618 field.
619 * remote.c (remote_get_tracepoint_status): Likewise.
620 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
621 * tracefile.c (tracefile_fetch_registers): Likewise.
622 * tracepoint.c (actions_command): Likewise.
623 (validate_actionline): Likewise.
624 (tfind_1): Likewise.
625 (get_traceframe_location): Likewise.
626 (find_matching_tracepoint_location): Likewise.
627 (parse_tracepoint_status): Likewise.
628 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
629
3b0871f4
SM
6302017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
631
632 * breakpoint.c (struct longjmp_breakpoint): New struct.
633 (is_tracepoint_type): Change return type to bool.
634 (is_longjmp_type): New function.
635 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
636 (set_raw_breakpoint_without_location): Use
637 new_breakpoint_from_type.
638 (set_raw_breakpoint): Likewise.
639
a5e364af
SM
6402017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * breakpoint.c (new_breakpoint_from_type): New function.
643 (create_breakpoint_sal): Use new_breakpoint_from_type and
644 unique_ptr.
645 (create_breakpoint): Likewise.
646
ae3b3f34
SM
6472017-05-31 Simon Marchi <simon.marchi@ericsson.com>
648
649 * memattr.c (mem_info_command): Rename to ...
650 (info_mem_command): ... this.
651 (mem_enable_command): Rename to ...
652 (enable_mem_command): ... this.
653 (mem_disable_command): Rename to ...
654 (disable_mem_command): ... this.
655 (mem_delete_command): Rename to ...
656 (delete_mem_command): ... this.
657 (_initialize_mem): Adjust function names.
658
13ace077
MM
6592017-05-31 Markus Metzger <markus.t.metzger@intel.com>
660
661 * btrace.c (handle_pt_insn_events): New.
662 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
663 STATUS. Split into this and ...
664 (handle_pt_insn_event_flags): ... this.
665
c56ccc05
MM
6662017-05-31 Markus Metzger <markus.t.metzger@intel.com>
667
668 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
669 and struct pt_insn.resynced.
670 * configure: Regenerated.
671 * config.in: Regenerated.
672
08c3f6d2
TW
6732017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
674
675 * btrace.c (ftrace_find_call_by_number): New function.
676 (ftrace_new_function): Store objects, not pointers.
677 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
678 ftrace_new_gap, ftrace_update_function,
679 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
680 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
681 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
682 btrace_ends_with_single_insn, btrace_call_get): Account for
683 btrace_thread_info::functions now storing objects.
684 * btrace.h (struct btrace_thread_info): Add constructor.
685 (struct btrace_thread_info) <functions>: Make std::vector.
686 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
687 Initialize with default values.
688 * record-btrace.c (record_btrace_frame_sniffer): Account for
689 btrace_thread_info::functions now storing objects.
690
8ffd39f2
TW
6912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
692
693 * btrace.c: Remove typedef bfun_s.
694 (ftrace_new_gap): Directly add gaps to the list of gaps.
695 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
696 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
697 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
698 instead of gdb VEC.
699
4aeb0dfc
TW
7002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
701
702 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
703 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
704 with btrace_thread_info::next_segment and
705 btrace_thread_info::prev_segment.
706 * btrace.h: Remove struct btrace_func_link.
707 (struct btrace_function): Replace pair of function segment pointers
708 with pair of indices.
709 * python/py-record-btrace.c (btpy_call_prev_sibling,
710 btpy_call_next_sibling): Replace references to
711 btrace_thread_info::segment with btrace_thread_info::next_segment and
712 btrace_thread_info::prev_segment.
713 * record-btrace.c (record_btrace_frame_this_id): Use
714 btrace_find_call_by_number.
715
eb8f2b9c
TW
7162017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
717
718 * btrace.c (ftrace_new_function, ftrace_fixup_level,
719 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
720 btrace_insn_next, btrace_insn_prev): Remove references to
721 btrace_thread_info::flow.
722 * btrace.h (struct btrace_function): Remove FLOW.
723
42bfe59e
TW
7242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
725
726 * btrace.c (ftrace_find_call_by_number): New function.
727 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
728 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
729 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
730 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
731 index.
732 * btrace.h (struct btrace_function): Turn UP into an index.
733 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
734 as an index.
735 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
736 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
737 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
738
b54b03bd
TW
7392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
740
741 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
742 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
743 ftrace_update_function, ftrace_compute_global_level_offset,
744 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
745 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
746 btrace_insn_end, btrace_is_empty): Remove references to
747 btrace_thread_info::begin and btrace_thread_info::end.
748 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
749 (struct btrace_thread_info) <functions>: Adjust comment.
750 * record-btrace.c (record_btrace_start_replaying): Remove reference to
751 btrace_thread_info::begin.
752
8286623c
TW
7532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
754
755 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
756 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
757 ftrace_update_function): Remove arguments that implicitly were always
758 BTINFO->END.
759 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
760 Don't pass BTINFO->END.
761
a0f1b963
TW
7622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
763
764 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
765 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
766 btrace_find_insn_by_number): Replace function segment pointer with
767 index.
768 (btrace_insn_cmp): Simplify.
769 * btrace.h: (struct btrace_insn_iterator) Rename index to
770 insn_index. Replace function segment pointer with index into function
771 segment vector.
772 * record-btrace.c (record_btrace_call_history): Replace function
773 segment pointer use with index.
774 (record_btrace_frame_sniffer): Retrieve function call segment through
775 vector.
776 (record_btrace_set_replay): Remove defunc't safety check.
777
f158f208
TW
7782017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
779
780 * btrace.c (btrace_ends_with_single_insn): New function.
781 (btrace_call_get, btrace_call_number, btrace_call_begin,
782 btrace_call_end, btrace_call_next, btrace_call_prev,
783 btrace_find_call_by_number): Use index into call segment vector
784 instead of pointer.
785 (btrace_call_cmp): Simplify.
786 * btrace.h (struct btrace_call_iterator): Replace function call segment
787 pointer with index into vector.
788 * record-btrace.c (record_btrace_call_history): Use index instead of
789 pointer.
790
521103fd
TW
7912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
792
793 * btrace.c (btrace_insn_begin, btrace_insn_end,
794 btrace_find_insn_by_number): Add btinfo to iterator.
795 * btrace.h (struct btrace_insn_iterator): Add btinfo.
796
17b89b34
TW
7972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
798
799 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
800 and save pointers directly.
801 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
802 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
803 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
804 changed signature of functions.
805 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
806 (btrace_fetch): Remove code that adds btrace_function pointers to
807 vector of btrace_functions.
808 (btrace_clear): Simplify freeing vector of btrace_functions.
809
2b51eddc
TW
8102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
811
812 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
813 Replace VEC_* with std::vector functions.
814 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
815 (struct btrace_thread_info)<functions>: Change type to std::vector.
816
db6be0d5
SM
8172017-05-30 Simon Marchi <simon.marchi@ericsson.com>
818
819 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
820 "Removed targets and native configurations" up. Merge duplicate
821 "New commands" sub-sections. Add "New options" sub-sections.
822
b057297a
AH
8232017-05-26 Alan Hayward <alan.hayward@arm.com>
824
825 * defs.h (copy_integer_to_size): New declaration.
826 * findvar.c (copy_integer_to_size): New function.
827 (do_cint_test): New selftest function.
828 (copy_integer_to_size_test): Likewise.
829 (_initialize_findvar): Likewise.
830 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
831 (mips_fbsd_collect_reg): Use raw_collect_integer.
832 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
833 (mips64_fill_gregset): Use raw_collect_integer
834 (mips64_fill_fpregset): Use raw_supply_integer.
835 * regcache.c (regcache::raw_supply_integer): New function.
836 (regcache::raw_collect_integer): Likewise.
837 * regcache.h: (regcache::raw_supply_integer): New declaration.
838 (regcache::raw_collect_integer): Likewise.
839
b77b02a5
YQ
8402017-05-24 Yao Qi <yao.qi@linaro.org>
841
842 * Makefile.in (SFILES): Add gdbarch-selftests.c.
843 (COMMON_OBS): Add gdbarch-selftests.o.
844 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
845 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
846 * gdbarch-selftests.c: New file.
847 * regcache.h (regcache) <~regcache>: Mark it virtual if
848 GDB_SELF_TEST.
849 <raw_write>: Likewise.
850
e521e87e
YQ
8512017-05-24 Yao Qi <yao.qi@linaro.org>
852
853 * regcache.c (current_regcache): Change it to
854 regcache::current_regcache.
855 (regcache_observer_target_changed): Update.
856 (regcache_thread_ptid_changed): Make it a regcache static
857 method.
858 (regcache_thread_ptid_changed): Update.
859 (class regcache_access): New.
860 (current_regcache_test): Update.
861 (_initialize_regcache): Update.
862 * regcache.h: Include forward_list.
863 (regcache): Declare regcache_thread_ptid_changed and declare
864 registers_changed_ptid as friend.
865
d8e07dda
YQ
8662017-05-24 Yao Qi <yao.qi@linaro.org>
867
868 * i387-tdep.c (i387_register_to_value): Use register_size
869 instead of TYPE_LENGTH.
870 * m68k-tdep.c (m68k_register_to_value): Likewise.
871
8c8f9122
YQ
8722017-05-24 Yao Qi <yao.qi@linaro.org>
873
874 * i387-tdep.c (i387_convert_register_p): Return false if type
875 code isn't TYPE_CODE_FLT.
876
68fce50f
YQ
8772017-05-24 Yao Qi <yao.qi@linaro.org>
878
879 * alpha-tdep.c (alpha_convert_register_p): Return true if type
880 length is 4.
881 (alpha_register_to_value): Remove type length check.
882 (alpha_value_to_register): Likewise.
883
88954b49
YQ
8842017-05-24 Yao Qi <yao.qi@linaro.org>
885
886 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
887 TYPE_CODE_FLT.
888
e3ec9b69
YQ
8892017-05-24 Yao Qi <yao.qi@linaro.org>
890
891 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
892 TYPE_CODE_FLT or not.
893
cdd238da
YQ
8942017-05-24 Yao Qi <yao.qi@linaro.org>
895
896 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
897 * avr-tdep.c (avr_gdbarch_init): Likewise.
898 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
899 * cris-tdep.c (cris_gdbarch_init): Likewise.
900 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
901 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
902 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
904 * mep-tdep.c (mep_gdbarch_init): Likewise.
905 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
906 * mips-tdep.c (mips_gdbarch_init): Likewise.
907 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
908 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
909 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
910 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
911 * v850-tdep.c (v850_gdbarch_init): Likewise.
912
7a3929c4
YQ
9132017-05-24 Yao Qi <yao.qi@linaro.org>
914
915 * selftest-arch.c (tests_with_arch): Call registers_changed
916 and reinit_frame_cache.
917 * selftest.c (run_self_tests): Likewise.
918
f4985dba
YQ
9192017-05-24 Yao Qi <yao.qi@linaro.org>
920
921 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
922 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
923
ab20fa4a
YQ
9242017-05-24 Yao Qi <yao.qi@linaro.org>
925
926 * rl78-tdep.c (rl78_gdbarch_init): Don't call
927 set_gdbarch_print_insn.
928
f532ab94
YQ
9292017-05-24 Yao Qi <yao.qi@linaro.org>
930
931 * h8300-tdep.c (h8300_gdbarch_init): Don't call
932 set_gdbarch_print_insn.
933
39503f82
YQ
9342017-05-24 Yao Qi <yao.qi@linaro.org>
935
936 * alpha-tdep.c (alpha_gdbarch_init): Don't call
937 set_gdbarch_print_insn.
938 * arc-tdep.c (arc_gdbarch_init): Likewise.
939 * arch-utils.c: include dis-asm.h.
940 (default_print_insn): New function.
941 * arch-utils.h (default_print_insn): Declare.
942 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
943 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
944 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
945 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
946 * frv-tdep.c (frv_gdbarch_init): Likewise.
947 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
948 * gdbarch.sh (print_insn): Use default_print_insn.
949 * gdbarch.c: Regenerated.
950 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
951 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
952 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
953 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
954 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
955 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
956 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
957 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
958 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
959 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
960 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
961 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
962 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
963 * mt-tdep.c (mt_gdbarch_init): Likewise.
964 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
965 * nios2-tdep.c (nios2_print_insn): Remove.
966 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
967 * rx-tdep.c (rx_gdbarch_init): Likewise.
968 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
969 * score-tdep.c (score_print_insn): Remove.
970 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
971 * sh-tdep.c (sh_gdbarch_init): Likewise.
972 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
973 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
974 * tic6x-tdep.c (tic6x_print_insn): Remove.
975 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
976 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
977 * v850-tdep.c (v850_gdbarch_init): Likewise.
978 * vax-tdep.c (vax_gdbarch_init): Likewise.
979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
980 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
981
f7241d4f
JB
9822017-05-23 John Baldwin <jhb@FreeBSD.org>
983
984 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
985 (MIPS_FP0_REGNUM): Remove.
986 (MIPS_FSR_REGNUM): Remove.
987 (mips_fbsd_supply_fpregs): Use mips_regnum.
988 (mips_fbsd_supply_gregs): Likewise.
989 (mips_fbsd_collect_fpregs): Likewise.
990 (mips_fbsd_collect_gregs): Likewise.
991
d489d81d
JB
9922017-05-23 John Baldwin <jhb@FreeBSD.org>
993
994 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
995 (getpfpregs_supplies): New function.
996 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
997 getfpregs_supplies.
998 (mips_fbsd_store_inferior_registers): Likewise.
999
e11b3cdc
PA
10002017-05-22 Pedro Alves <palves@redhat.com>
1001
1002 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
1003 maintainer.
1004
0f068fb5
AH
10052017-05-22 Alan Hayward <alan.hayward@arm.com>
1006
1007 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
1008 (store_register): Likewise.
1009 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1010 (get_decimal_float_return_value): Likewise.
1011 (do_ppc_sysv_return_value): Likewise.
1012 (ppc64_sysv_abi_push_integer): Likewise.
1013 (ppc64_sysv_abi_push_freg): Likewise.
1014 (ppc64_sysv_abi_return_value_base): Likewise.
1015 (ppc64_sysv_abi_return_value): Likewise.
1016 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1017 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1018 * rs6000-nat.c: Likewise.
1019 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
1020 (rs6000_value_to_register): Likewise.
1021 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
1022
e6cf65f2
TT
10232017-05-21 Tom Tromey <tom@tromey.com>
1024
1025 PR rust/21466:
1026 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
1027 arrays as "[T]", not "[T; ]".
1028
43cc5389
TT
10292017-05-19 Tom Tromey <tom@tromey.com>
1030
1031 PR rust/21484:
1032 * rust-lang.c (exp_descriptor_rust): New function.
1033 (rust_language_defn): Use it.
1034 * p-lang.c (pascal_language_defn): Update.
1035 * opencl-lang.c (opencl_language_defn): Update.
1036 * objc-lang.c (objc_language_defn): Update.
1037 * m2-lang.c (m2_language_defn): Update.
1038 * language.h (struct language_defn)
1039 <la_watch_location_expression>: New member.
1040 * language.c (unknown_language_defn, auto_language_defn)
1041 (local_language_defn): Update.
1042 * go-lang.c (go_language_defn): Update.
1043 * f-lang.c (f_language_defn): Update.
1044 * d-lang.c (d_language_defn): Update.
1045 * c-lang.h (c_watch_location_expression): Declare.
1046 * c-lang.c (c_watch_location_expression): New function.
1047 (c_language_defn, cplus_language_defn, asm_language_defn)
1048 (minimal_language_defn): Use it.
1049 * breakpoint.c (watch_command_1): Call
1050 la_watch_location_expression.
1051 * ada-lang.c (ada_language_defn): Update.
1052
7a6e7fcc
RO
10532017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1054
6e7e1744
RO
1055 PR tui/21482
1056 * gdb_curses.h (NOMACROS): Define.
1057 (NCURSES_NOMACROS): Define.
1058
10592017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1060
1061 PR tui/21482
7a6e7fcc
RO
1062 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
1063 arg to char *.
1064 * tui/tui-wingeneral.c (box_win): Likewise.
1065 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
1066 (tui_show_source_line): Likewise.
1067 (tui_show_exec_info_content): Likewise.
1068
1933fd8e
VM
10692017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
1070
1071 * sparc-tdep.c (sparc_structure_return_p)
1072 (sparc_arg_on_registers_p): New functions.
1073 (sparc32_store_arguments): Use them.
1074 * sparc64-tdep.c (sparc64_16_byte_align_p)
1075 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
1076 Handle TYPE_CODE_ARRAY.
1077
21873064
YQ
10782017-05-17 Yao Qi <yao.qi@linaro.org>
1079
1080 * cli/cli-decode.c (add_alias_cmd): New function.
1081 * command.h (add_alias_cmd): Declare.
1082 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
1083 instead call add_alias_cmd.
1084
2b351b19
PA
10852017-05-17 Pedro Alves <palves@redhat.com>
1086
1087 * Makefile.in (nat_extra_makefile_frag): Rename to ...
1088 (nat_makefile_frag): ... this. All references updated.
1089 * configure.ac: Likewise.
1090 * configure.nat: Likewise. Enhance comments.
1091 * configure: Regenerate.
1092
5f2ad7a3
RO
10932017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1094
1095 * procfs.c (procfs_create_inferior): Change prototype to match
1096 definition.
1097
adf3dde5
EZ
10982017-05-13 Eli Zaretskii <eliz@gnu.org>
1099
1100 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
1101 C++ compiler warning.
1102
6830f270
TT
11032017-05-12 Tom Tromey <tom@tromey.com>
1104
1105 PR rust/21483:
1106 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
1107 recurse, just call value_struct_elt directly.
1108
68f2f2e3
TT
11092017-05-12 Tom Tromey <tom@tromey.com>
1110
1111 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
1112 OP_RUST_ARRAY>: Fix.
1113
256afbc2
TT
11142017-05-12 Tom Tromey <tom@tromey.com>
1115
1116 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
1117
94bb8dfe
YQ
11182017-05-09 Yao Qi <yao.qi@linaro.org>
1119
1120 * regcache.c: Include <forward_list>.
1121 (struct regcache_list): Remove.
1122 (current_regcache): Update.
1123 (get_thread_arch_aspace_regcache): Update for std::forward_list.
1124 (regcache_thread_ptid_changed): Likewise.
1125 (registers_changed_ptid): Likewise.
1126 (current_regcache_size): Likewise.
1127
8248946c
YQ
11282017-05-09 Yao Qi <yao.qi@linaro.org>
1129
1130 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
1131 (current_regcache_size): New function.
1132 (current_regcache_test): New function.
1133 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
1134
313c5961
AH
11352017-05-08 Alan Hayward <alan.hayward@arm.com>
1136
1137 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
1138 (print_gp_register_row): Use get_frame_register_value.
1139
27bfc1d1
AH
11402017-05-08 Alan Hayward <alan.hayward@arm.com>
1141
1142 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
1143 (mips_supply_fpregset): Likewise.
1144 (mips64_supply_gregset): Likewise.
1145
146e6c5c
AH
11462017-05-08 Alan Hayward <alan.hayward@arm.com>
1147
1148 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
1149 regcache->raw_supply_zeroed.
1150
e50f25ec
SDJ
11512017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1152
1153 * configure.nat: Rearrange 'case' statements to match
1154 host before cpu.
1155
21ea5acd
SDJ
11562017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1157
1158 * Makefile.in: Remove "@host_makefile_frag@". Add variables
1159 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
1160 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
1161 "@nat_extra_makefile_frag@".
1162 (Makefile): Remove dependency on "@frags@".
1163 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
1164 (data-directory/Makefile): Likewise.
1165 * config/aarch64/linux.mh: Deleted; moved contents to
1166 "gdb/configure.nat".
1167 * config/alpha/alpha-linux.mh: Likewise.
1168 * config/alpha/nbsd.mh: Likewise.
1169 * config/arm/linux.mh: Likewise.
1170 * config/arm/nbsdelf.mh: Likewise.
1171 * config/i386/cygwin.mh: Likewise.
1172 * config/i386/cygwin64.mh: Likewise.
1173 * config/i386/darwin.mh: Likewise.
1174 * config/i386/fbsd.mh: Likewise.
1175 * config/i386/fbsd64.mh: Likewise.
1176 * config/i386/go32.mh: Likewise.
1177 * config/i386/i386gnu.mh: Likewise.
1178 * config/i386/i386sol2.mh: Likewise.
1179 * config/i386/linux.mh: Likewise.
1180 * config/i386/linux64.mh: Likewise.
1181 * config/i386/mingw.mh: Likewise.
1182 * config/i386/mingw64.mh: Likewise.
1183 * config/i386/nbsd64.mh: Likewise.
1184 * config/i386/nbsdelf.mh: Likewise.
1185 * config/i386/nto.mh: Likewise.
1186 * config/i386/obsd.mh: Likewise.
1187 * config/i386/obsd64.mh: Likewise.
1188 * config/i386/sol2-64.mh: Likewise.
1189 * config/ia64/linux.mh: Likewise.
1190 * config/m32r/linux.mh: Likewise.
1191 * config/m68k/linux.mh: Likewise.
1192 * config/m68k/nbsdelf.mh: Likewise.
1193 * config/m68k/obsd.mh: Likewise.
1194 * config/m88k/obsd.mh: Likewise.
1195 * config/mips/fbsd.mh: Likewise.
1196 * config/mips/linux.mh: Likewise.
1197 * config/mips/nbsd.mh: Likewise.
1198 * config/mips/obsd64.mh: Likewise.
1199 * config/pa/linux.mh: Likewise.
1200 * config/pa/nbsd.mh: Likewise.
1201 * config/pa/obsd.mh: Likewise.
1202 * config/powerpc/aix.mh: Likewise.
1203 * config/powerpc/fbsd.mh: Likewise.
1204 * config/powerpc/linux.mh: Likewise.
1205 * config/powerpc/nbsd.mh: Likewise.
1206 * config/powerpc/obsd.mh: Likewise.
1207 * config/powerpc/ppc64-linux.mh: Likewise.
1208 * config/powerpc/spu-linux.mh: Likewise.
1209 * config/s390/linux.mh: Likewise.
1210 * config/sh/nbsd.mh: Likewise.
1211 * config/sparc/fbsd.mh: Likewise.
1212 * config/sparc/linux.mh: Likewise.
1213 * config/sparc/linux64.mh: Likewise.
1214 * config/sparc/nbsd64.mh: Likewise.
1215 * config/sparc/nbsdelf.mh: Likewise.
1216 * config/sparc/obsd64.mh: Likewise.
1217 * config/sparc/sol2.mh: Likewise.
1218 * config/tilegx/linux.mh: Likewise.
1219 * config/vax/nbsdelf.mh: Likewise.
1220 * config/vax/obsd.mh: Likewise.
1221 * config/xtensa/linux.mh: Likewise.
1222 * config/i386/i386gnu.mn: New file, with excerpts from
1223 "config/i386/i386gnu.mh".
1224 * configure: Regenerate.
1225 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
1226 *.mh files under "gdb/config".
1227 * configure.nat: New file, with contents from the
1228 "gdb/config/*/*.mh" files.
1229
7ed1acaf
TW
12302017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
1231
1232 * btrace.c (btrace_clear): Free insn vector.
1233
e13cb306
PA
12342017-05-05 Pedro Alves <palves@redhat.com>
1235
1236 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
1237 * configure: Regenerate.
1238
5ed8105e
PA
12392017-05-04 Pedro Alves <palves@redhat.com>
1240
1241 * Makefile.in (SFILES): Add progspace-and-thread.c.
1242 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
1243 (COMMON_OBS): Add progspace-and-thread.o.
1244 * breakpoint.c: Include "progspace-and-thread.h".
1245 (update_inserted_breakpoint_locations)
1246 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
1247 Use scoped_restore_current_pspace_and_thread.
1248 (create_std_terminate_master_breakpoint): Use
1249 scoped_restore_current_program_space.
1250 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
1251 (print_breakpoint_location): Use
1252 scoped_restore_current_program_space.
1253 (bp_loc_is_permanent): Use
1254 scoped_restore_current_pspace_and_thread.
1255 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
1256 (download_tracepoint_locations): Use
1257 scoped_restore_current_pspace_and_thread.
1258 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
1259 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
1260 (enum step_over_calls_kind): Moved from inferior.h.
1261 (class scoped_restore_current_thread): New class.
1262 * gdbthread.h (make_cleanup_restore_current_thread): Delete
1263 declaration.
1264 (scoped_restore_current_thread): New class.
1265 * infcmd.c: Include "common/gdb_optional.h".
1266 (continue_1, proceed_after_attach): Use
1267 scoped_restore_current_thread.
1268 (notice_new_inferior): Use scoped_restore_current_thread.
1269 * inferior.c: Include "progspace-and-thread.h".
1270 (restore_inferior, save_current_inferior): Delete.
1271 (add_inferior_command, clone_inferior_command): Use
1272 scoped_restore_current_pspace_and_thread.
1273 * inferior.h (scoped_restore_current_inferior): New class.
1274 * infrun.c: Include "progspace-and-thread.h" and
1275 "common/gdb_optional.h".
1276 (follow_fork_inferior): Use
1277 scoped_restore_current_pspace_and_thread.
1278 (scoped_restore_exited_inferior): New class.
1279 (handle_vfork_child_exec_or_exit): Use
1280 scoped_restore_exited_inferior,
1281 scoped_restore_current_pspace_and_thread,
1282 scoped_restore_current_thread and scoped_restore.
1283 (fetch_inferior_event): Use scoped_restore_current_thread.
1284 * linespec.c (decode_line_full, decode_line_1): Use
1285 scoped_restore_current_program_space.
1286 * mi/mi-main.c: Include "progspace-and-thread.h".
1287 (exec_continue): Use scoped_restore_current_thread.
1288 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
1289 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
1290 * proc-service.c (ps_pglobal_lookup): Use
1291 scoped_restore_current_program_space.
1292 * progspace-and-thread.c: New file.
1293 * progspace-and-thread.h: New file.
1294 * progspace.c (release_program_space, clone_program_space): Use
1295 scoped_restore_current_program_space.
1296 (restore_program_space, save_current_program_space)
1297 (save_current_space_and_thread): Delete.
1298 (switch_to_program_space_and_thread): Moved to
1299 progspace-and-thread.c.
1300 * progspace.h (save_current_program_space)
1301 (save_current_space_and_thread): Delete declarations.
1302 (scoped_restore_current_program_space): New class.
1303 * remote.c (remote_btrace_maybe_reopen): Use
1304 scoped_restore_current_thread.
1305 * symtab.c: Include "progspace-and-thread.h".
1306 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
1307 * thread.c (print_thread_info_1): Use
1308 scoped_restore_current_thread.
1309 (struct current_thread_cleanup): Delete.
1310 (do_restore_current_thread_cleanup)
1311 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
1312 (scoped_restore_current_thread::~scoped_restore_current_thread):
1313 ... this new dtor.
1314 (make_cleanup_restore_current_thread): Rename/convert to ...
1315 (scoped_restore_current_thread::scoped_restore_current_thread):
1316 ... this new ctor.
1317 (thread_apply_all_command): Use scoped_restore_current_thread.
1318 (thread_apply_command): Use scoped_restore_current_thread.
1319 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
1320 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
1321
f6223dbb
PA
13222017-05-04 Pedro Alves <palves@redhat.com>
1323
1324 * thread.c (make_cleanup_restore_current_thread): Move
1325 find_thread_ptid call before the is_stopped call. Assert that the
1326 thread is found. Replace is_stopped call by checking the thread's
1327 state directly. Remove unnecessary NULL-thread check.
1328
3c3ae77e
PA
13292017-05-04 Pedro Alves <palves@redhat.com>
1330
1331 * corelow.c (thread_section_name): New class.
1332 (get_core_register_section, get_core_siginfo): Use it.
1333
45eba0ab
AA
13342017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1335
1336 * corelow.c (sniff_core_bfd): Remove extra semicolon.
1337 (get_core_register_section): Remove xfree of NULL pointer.
1338
f81fdd35
AH
13392017-05-03 Alan Hayward <alan.hayward@arm.com>
1340
1341 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
1342 * regcache.c (regcache::raw_supply_zeroed): New function.
1343 * regcache.h (regcache::raw_supply_zeroed): New declaration.
1344
35837774
SM
13452017-05-03 Simon Marchi <simon.marchi@ericsson.com>
1346
1347 * gdbarch.sh: Remove commented out definition of
1348 TARGET_CHAR_BIT.
1349 * gdbarch.h: Re-generate.
1350
c94fee56
SDJ
13512017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1352
1353 * configure: Regenerate.
1354
d17f7b36
SM
13552017-05-02 Simon Marchi <simon.marchi@ericsson.com>
1356
1357 * solib-target.c (solib_target_relocate_section_addresses):
1358 Remove num_section_bases, num_bases, segment_bases variables.
1359
b560ebd6
SM
13602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1361
1362 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
1363
f2f46dfc
SM
13642017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * solib-target.c: Include <vector>
1367 (struct lm_info_target) <~lm_info_target>: Remove.
1368 <segment_bases, section_bases>: Change type to
1369 std::vector<CORE_ADDR>.
1370 (library_list_start_segment, library_list_start_section,
1371 library_list_end_library,
1372 solib_target_relocate_section_addresses): Adjust.
1373
a0ff9e1a
SM
13742017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1375
1376 * gdbarch.sh (software_single_step): Change return type to
1377 std::vector<CORE_ADDR>.
1378 * gdbarch.c, gdbarch.h: Re-generate.
1379 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1380 Adjust.
1381 (arm_deal_with_atomic_sequence_raw): Adjust.
1382 (thumb_get_next_pcs_raw): Adjust.
1383 (arm_get_next_pcs_raw): Adjust.
1384 (arm_get_next_pcs): Adjust.
1385 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
1386 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
1387 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
1388 (alpha_software_single_step): Adjust.
1389 * alpha-tdep.h (alpha_software_single_step): Adjust.
1390 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
1391 * arm-tdep.c (arm_software_single_step): Adjust.
1392 (arm_breakpoint_kind_from_current_state): Adjust.
1393 * arm-tdep.h (arm_software_single_step): Adjust.
1394 * breakpoint.c (insert_single_step_breakpoint): Adjust.
1395 * cris-tdep.c (cris_software_single_step): Adjust.
1396 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
1397 (micromips_deal_with_atomic_sequence): Adjust.
1398 (deal_with_atomic_sequence): Adjust.
1399 (mips_software_single_step): Adjust.
1400 * mips-tdep.h (mips_software_single_step): Adjust.
1401 * moxie-tdep.c (moxie_software_single_step): Adjust.
1402 * nios2-tdep.c (nios2_software_single_step): Adjust.
1403 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
1404 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
1405 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
1406 * s390-linux-tdep.c (s390_software_single_step): Adjust.
1407 * sparc-tdep.c (sparc_software_single_step): Adjust.
1408 * spu-tdep.c (spu_software_single_step): Adjust.
1409 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
1410
ea480a30
SM
14112017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * gdbarch.sh: Use semi-colon as field separator instead of colon.
1414 * gdbarch.h: Re-generate.
1415
d050f7d7
TW
14162017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1417
1418 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
1419 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
1420 * python/py-instruction.c, python/py-instruction.h: New file.
1421 * python/py-record.c: Add py-instruction.h include.
1422 (gdbpy_initialize_record): Make gdb.Instruction a super class of
1423 gdb.RecordInstruction.
1424 * python/python-internal.h: Add gdbpy_initialize_instruction
1425 declaration.
1426 * python/python.c (do_start_initialization): Add
1427 gdbpy_initialize_instruction.
1428
14f819c8
TW
14292017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1430
1431 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
1432 Remove.
1433 (btrace_func_from_recpy_func): New function.
1434 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
1435 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
1436 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
1437 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
1438 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
1439 Also, use new helper functions.
1440 (btpy_list_item): Use new helper functions.
1441 (recpy_bt_function_call_history): Use new type name.
1442 (btpy_call_getset): Remove.
1443 (gdbpy_initialize_btrace): Remove code to initialize
1444 gdb.BtraceFunctionCall.
1445 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
1446 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
1447 recpy_bt_func_prev, recpy_bt_func_next): New export.
1448 * python/py-record.c (recpy_func_type): New static object.
1449 (recpy_func_new, recpy_func_level, recpy_func_symbol,
1450 recpy_func_instructions, recpy_func_up, recpy_func_prev,
1451 recpy_func_next): New function.
1452 (recpy_element_hash, recpy_element_richcompare): Updated comment.
1453 (recpy_func_getset): New static object.
1454 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
1455 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
1456
0ed5da75
TW
14572017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1458
1459 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
1460 (btpy_object, btpy_insn_type, btpy_new): Remove.
1461 (btpy_list_object): Use gdb.RecordInstruction type instead of
1462 gdb.BtraceInstruction type.
1463 (btrace_insn_from_recpy_insn): New function.
1464 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
1465 btpy_new.
1466 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
1467 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
1468 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
1469 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
1470 instead of btpy_object.
1471 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1472 btpy_insn_data, btpy_insn_decode): Rename to ...
1473 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
1474 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
1475 recpy_bt_insn_decode): This. Also, use new helper functions.
1476 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
1477 recpy_insn_type.
1478 (btpy_insn_getset): Remove.
1479 (gdbpy_initialize_btrace): Remove code to initialize
1480 gdb.BtraceInstruction. Use recpy_element_object.
1481 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
1482 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
1483 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
1484 * python/py-record.c (recpy_insn_type): New static object.
1485 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
1486 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
1487 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
1488 New function.
1489 (recpy_insn_getset): New static object.
1490 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
1491 * python/py-record.h (recpy_element_object): New typedef.
1492 (recpy_insn_type, recpy_insn_new): New export.
1493
913aeadd
TW
14942017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1495
1496 * py-record-btrace.c (btpy_insn_new): Removed.
1497 (btpy_insn_or_gap_new): New function.
1498 (btpy_insn_error): Removed.
1499 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1500 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
1501 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
1502 btpy_insn_or_gap_new instead of btpy_insn_new.
1503 (btpy_insn_getset): Remove btpy_insn_error.
1504 * py-record.c (recpy_gap_type): New static object.
1505 (recpy_gap_object): New typedef.
1506 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
1507 recpy_gap_reason_string): New function.
1508 (recpy_gap_getset): New static object.
1509 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
1510 * py-record.h (recpy_gap_new): New export.
1511
a3be24ad
TW
15122017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1513
1514 * python/py-record.c (recpy_ptid): Remove.
1515 (recpy_record_getset): Remove recpy_ptid.
1516
ae20e79a
TW
15172017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1518
1519 * btrace.c (btrace_fetch): Set inferior_ptid.
1520 * python/py-record-btrace.c: Add "py-record.h" include.
1521 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
1522 recpy_bt_end, recpy_bt_instruction_history,
1523 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
1524 in gdb.Record object instead of current ptid.
1525 * python/py-record.c: Include new "py-record.h" file.
1526 (recpy_record_object): Moved to py-record.h.
1527 * python/py-record.h: New file.
1528
8d0050ea
TW
15292017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1530
1531 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
1532 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
1533 indentation.
1534
3f380b50
JB
15352017-05-01 Joel Brobecker <brobecker@adacore.com>
1536
1537 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
1538 the past maintainers section.
1539
07495424
YQ
15402017-04-28 Yao Qi <yao.qi@linaro.org>
1541
1542 * infcmd.c (get_return_value): Use regcache ctor, and remove
1543 cleanup.
1544
deb1fa3e
YQ
15452017-04-28 Yao Qi <yao.qi@linaro.org>
1546 Pedro Alves <palves@redhat.com>
1547
1548 * regcache.c (regcache::regcache): New tag dispatch ctor.
1549 (do_cooked_read): Moved above.
1550 (regcache_dup): Use the tag dispatch ctor..
1551 * regcache.h (regcache): Declare ctor, delete copy ctor and
1552 assignment operator, remove friend regcache_dup.
1553
b421c83c
YQ
15542017-04-28 Yao Qi <yao.qi@linaro.org>
1555
1556 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
1557 call method save instead of regcache_cpy.
1558 * regcache.h (struct regcache): Make regcache_dup a friend.
1559
ef79d9a3
YQ
15602017-04-28 Yao Qi <yao.qi@linaro.org>
1561
1562 * regcache.c (struct regcache): Move to regcache.h
1563 (regcache::arch): New method.
1564 (regcache_get_ptid): Update.
1565 (get_regcache_arch): Call arch method.
1566 (get_regcache_aspace): Call method aspace.
1567 (register_buffer): Change it to method.
1568 (regcache_save): Change it to regcache::save.
1569 (regcache_restore): Likewise.
1570 (regcache_cpy_no_passthrough): Remove the declaration.
1571 (regcache_cpy): Call methods restore and cpy_no_passthrough.
1572 (regcache_cpy_no_passthrough): Change it to method
1573 cpy_no_passthrough.
1574 (regcache_register_status): Change it to method
1575 get_register_status.
1576 (regcache_invalidate): Change it to method invalidate.
1577 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
1578 (regcache_raw_update): Change it to method raw_update.
1579 (regcache_raw_read): Likewise.
1580 (regcache_raw_read_signed): Likewise.
1581 (regcache_raw_read_unsigned): Likewise.
1582 (regcache_raw_write_signed): Likewise.
1583 (regcache_raw_write_unsigned): Likewise.
1584 (regcache_cooked_read): Likewise.
1585 (regcache_cooked_read_value): Likewise.
1586 (regcache_cooked_read_signed): Likewise.
1587 (regcache_cooked_read_unsigned): Likewise.
1588 (regcache_cooked_write_signed): Likewise.
1589 (regcache_cooked_write_unsigned): Likewise.
1590 (regcache_raw_set_cached_value): Likewise.
1591 (regcache_raw_write): Likewise.
1592 (regcache_cooked_write): Likewise.
1593 (regcache_xfer_part): Likewise.
1594 (regcache_raw_read_part): Likewise.
1595 (regcache_raw_write_part): Likewise.
1596 (regcache_cooked_read_part): Likewise.
1597 (regcache_cooked_write_part): Likewise.
1598 (regcache_raw_supply): Likewise.
1599 (regcache_raw_collect): Likewise.
1600 (regcache_transfer_regset): Likewise.
1601 (regcache_supply_regset): Likewise.
1602 (regcache_collect_regset): Likewise.
1603 (regcache_debug_print_register): Likewise.
1604 (enum regcache_dump_what): Move it to regcache.h.
1605 (regcache_dump): Change it to method dump.
1606 * regcache.h (enum regcache_dump_what): New.
1607 (class regcache): New.
1608 * target.c (target_fetch_registers): Call method
1609 debug_print_register.
1610 (target_store_registers): Likewise.
1611
f8fdb78e
SM
16122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1613
1614 * windows-nat.c (struct lm_info_windows): Initialize field.
1615 (windows_make_so): Allocate lm_info_windows with new.
1616 (windows_free_so): Free lm_info_windows with delete.
1617
9ccbfd7b
SM
16182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1619
1620 * solib-darwin.c (struct lm_info_darwin): Initialize field.
1621 (darwin_current_sos): Allocate lm_info_darwin with new, remove
1622 cleanup.
1623 (darwin_free_so): Free lm_info_darwin with delete.
1624
76e75227
SM
16252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1626
1627 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
1628 <l_addr_p>: Change type to bool.
1629 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
1630 (svr4_free_so): Free lm_info_svr4 with delete.
1631 (svr4_copy_library_list): Replace memcpy with call to copy
1632 constructor.
1633 (library_list_start_library, svr4_default_sos): Allocate
1634 lm_info_svr4 with new.
1635
51046d9e
SM
16362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1637
1638 * solib-target.c (struct lm_info_target): Add destructor,
1639 initialize fields.
1640 <name>: Change type to std::string.
1641 (library_list_start_library): Allocate lm_info_target with new.
1642 (solib_target_free_library_list): Free lm_info_target with
1643 delete.
1644 (solib_target_current_sos): Adapt to std::string.
1645 (solib_target_free_so): Free lm_info_target with delete.
1646
4023ae76
SM
16472017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1648
1649 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
1650 fields.
1651 (frv_current_sos): Allocate lm_info_frv with new.
1652 (frv_relocate_main_executable): Free lm_info_frv with delete,
1653 allocate with new.
1654 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
1655
af43057b
SM
16562017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1657
1658 * solib-frv.c (struct lm_info_frv): Fix indentation.
1659
b0911207
SM
16602017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1661
1662 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
1663 map field.
1664 (dsbt_current_sos): Allocate lm_info_dsbt with new.
1665 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
1666 and allocate with new.
1667 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
1668
6c401f72
SM
16692017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1670
1671 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
1672 <filename, member_name>: Change type to std::string.
1673 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
1674 (library_list_start_library): Allocate lm_info_aix with new.
1675 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
1676 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
1677 with copy constructor.
1678
d0e449a1
SM
16792017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1680
1681 * solist.h (struct lm_info): Remove.
1682 (struct lm_info_base): New class.
1683 (struct so_list) <lm_info>: Change type to lm_info_base *.
1684 * nto-tdep.c (struct lm_info): Remove.
1685 (lm_addr): Adjust.
1686 * solib-aix.c (struct lm_info): Rename to ...
1687 (struct lm_info_aix): ... this. Extend lm_info_base.
1688 (lm_info_p): Rename to ...
1689 (lm_info_aix_p): ... this, and adjust.
1690 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
1691 solib_aix_parse_libraries, library_list_start_library,
1692 solib_aix_free_library_list, solib_aix_parse_libraries,
1693 solib_aix_get_library_list,
1694 solib_aix_relocate_section_addresses, solib_aix_free_so,
1695 solib_aix_get_section_offsets,
1696 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
1697 Adjust.
1698 (struct solib_aix_inferior_data) <library_list>: Adjust.
1699 * solib-darwin.c (struct lm_info): Rename to ...
1700 (struct lm_info_darwin): ... this. Extend lm_info_base.
1701 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
1702 * solib-dsbt.c (struct lm_info): Rename to ...
1703 (struct lm_info_dsbt): ... this. Extend lm_info_base.
1704 (struct dsbt_info) <main_executable_lm_info): Adjust.
1705 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
1706 dsbt_relocate_section_addresses): Adjust.
1707 * solib-frv.c (struct lm_info): Rename to ...
1708 (struct lm_info_frv): ... this. Extend lm_info_base.
1709 (main_executable_lm_info): Adjust.
1710 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
1711 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
1712 find_canonical_descriptor_in_load_object,
1713 frv_fdpic_find_canonical_descriptor): Adjust.
1714 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
1715 to lm_info_svr4.
1716 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
1717 svr4_clear_so, svr4_copy_library_list,
1718 library_list_start_library, svr4_default_sos, svr4_read_so_list,
1719 svr4_current_sos, svr4_fetch_objfile_link_map,
1720 solist_update_incremental): Adjust.
1721 * solib-svr4.h (struct lm_info_svr4): Move here from
1722 solib-svr4.c.
1723 * solib-target.c (struct lm_info): Rename to ...
1724 (struct lm_info_target): ... this. Extend lm_info_base.
1725 (lm_info_p): Rename to ...
1726 (lm_info_target_p): ... this.
1727 (solib_target_parse_libraries, library_list_start_segment,
1728 library_list_start_section, library_list_start_library,
1729 library_list_end_library, solib_target_free_library_list,
1730 solib_target_current_sos, solib_target_free_so,
1731 solib_target_relocate_section_addresses): Adjust.
1732 * windows-nat.c (struct lm_info): Rename to ...
1733 (struct lm_info_windows): ... this. Extend lm_info_base.
1734 (windows_make_so, handle_load_dll, handle_unload_dll,
1735 windows_xfer_shared_libraries): Adjust.
1736
434a4023
SM
17372017-04-28 Simon Marchi <simon.marchi@ericsson.com>
1738
1739 * solib-darwin.c (struct darwin_so_list): Remove.
1740 (darwin_current_sos): Allocate an so_list object instead of a
1741 darwin_so_list, separately allocate an lm_info object.
1742 (darwin_free_so): Free lm_info.
1743
428544e8
JB
17442017-04-28 John Baldwin <jhb@FreeBSD.org>
1745
1746 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
1747 with fprintf_filtered.
1748
4621115f
YQ
17492017-04-28 Yao Qi <yao.qi@linaro.org>
1750
1751 * regcache.c (regcache::regcache): New function.
1752 (regcache::~regcache): New function.
1753 (regcache_xmalloc_1): Remove.
1754 (regcache_xmalloc): Call new regcache.
1755 (regcache_xfree): Call delete regcache.
1756 (get_thread_arch_aspace_regcache): Call new regcache.
1757
339053c2
YQ
17582017-04-28 Yao Qi <yao.qi@linaro.org>
1759
1760 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
1761 lwp instead of ptid_get_lwp.
1762
7974a605
YQ
17632017-04-28 Yao Qi <yao.qi@linaro.org>
1764
1765 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
1766 lwp_info instead of getting from inferior_ptid.
1767
e15c3eb4
KS
17682017-04-27 Keith Seitz <keiths@redhat.com>
1769
1770 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
1771 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
1772 (CV_CONVERSION_BADNESS): Define.
1773 (rank_one_type): Remove overly restrictive rvalue reference
1774 rank checks.
1775 Add cv-qualifier checks and subranks for type equality.
1776 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
1777 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
1778 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
1779
72bc1d24
SM
17802017-04-27 Simon Marchi <simon.marchi@ericsson.com>
1781
1782 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
1783 count when creating the object.
1784
55bcecda
UW
17852017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1786 Ulrich Weigand <uweigand@de.ibm.com>
1787
1788 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
1789 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
1790 is used in AIX.
1791 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
1792 (process_xcoff_symbol): Likewise.
1793 (scan_xcoff_symtab): Likewise.
1794
5c99fcf8
AH
17952017-04-26 Alan Hayward <alan.hayward@arm.com>
1796
1797 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
1798 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
1799 (ia64_access_reg): Use get_frame_register_unsigned.
1800 (ia64_access_rse_reg): Likewise.
1801 (ia64_libunwind_frame_prev_register): Likewise.
1802
b41c5a85
JW
18032017-04-26 Jiong Wang <jiong.wang@arm.com>
1804
1805 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
1806 * gdbarch.c: Regenerated.
1807 * gdbarch.h: Regenerated.
1808 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
1809 visibility external.
1810 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
1811 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
1812 (enum cfa_how_kind): Move to ...
1813 (struct dwarf2_frame_state_reg_info): Likewise.
1814 (struct dwarf2_frame_state): Likewise.
1815 * dwarf2-frame.h: ... here.
1816 (dwarf2_frame_state_alloc_regs): New declaration.
1817 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
1818 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
1819
c185f580
AH
18202017-04-26 Alan Hayward <alan.hayward@arm.com>
1821
1822 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
1823 regcache_raw_read_unsigned.
1824 (xtensa_pseudo_register_write): Likewise.
1825
19c45594
AH
18262017-04-26 Alan Hayward <alan.hayward@arm.com>
1827
1828 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
1829 (nds32_pseudo_register_write): Likewise.
1830
4658f12e
YQ
18312017-04-25 Yao Qi <yao.qi@linaro.org>
1832
1833 * regcache.c (struct regcache) <readonly_p>: Change its type
1834 to bool.
1835 (regcache_xmalloc_1): Update parameter type and callers update.
1836
d581dda8
YQ
18372017-04-25 Yao Qi <yao.qi@linaro.org>
1838
1839 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1840 set_gdbarch_wchar_bit.
1841 * arm-tdep.c (arm_gdbarch_init): Likewise.
1842
debed3db
PA
18432017-04-25 Pedro Alves <palves@redhat.com>
1844
1845 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
1846 (BothAreRelocatable, memcopy, memmove): Don't define.
1847 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
1848 macros.
1849
b0b92aeb
PA
18502017-04-25 Pedro Alves <palves@redhat.com>
1851
1852 * common/common-defs.h: Include "common/poison.h".
1853 * common/function-view.h: (Not, Or, Requires): Move to traits.h
1854 and adjust.
1855 * common/poison.h: New file.
1856 * common/traits.h: Include <type_traits>.
1857 (Not, Or, Requires): New, moved from common/function-view.h.
1858
16c4d54a
PA
18592017-04-25 Pedro Alves <palves@redhat.com>
1860
1861 * breakpoint.h (struct breakpoint): In-class initialize all
1862 fields. Make boolean fields "bool".
1863 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1864 memset call and initializations no longer necessary.
1865
b5c36682
PA
18662017-04-25 Pedro Alves <palves@redhat.com>
1867
1868 * btrace.c (pt_btrace_insn_flags): Change parameter type to
1869 reference.
1870 (pt_btrace_insn): New function.
1871 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
1872
5625a286
PA
18732017-04-25 Pedro Alves <palves@redhat.com>
1874
1875 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
1876 "base" field and inherit from "bp_location" instead. Add
1877 non-default ctor.
1878 (allocate_location_exception): Use new non-default ctor.
1879 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
1880 (init_bp_location): Convert to ...
1881 (bp_location::bp_location): ... this new ctor, and remove memset
1882 call.
1883 (base_breakpoint_allocate_location): Use the new non-default ctor.
1884 * breakpoint.h (bp_location): Now a class. Declare default and
1885 non-default ctors. In-class initialize all members.
1886 (init_bp_location): Remove declaration.
1887
23bcc18f
PA
18882017-04-25 Pedro Alves <palves@redhat.com>
1889
1890 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
1891 assignment operator.
1892
e1ba3053
YQ
18932017-04-24 Yao Qi <yao.qi@linaro.org>
1894
1895 * doublest.c (convert_doublest_to_floatformat): Call
1896 floatformat_totalsize_bytes.
1897
10f489e5
TT
18982017-04-22 Tom Tromey <tom@tromey.com>
1899
1900 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1901 ui_out_emit_list.
1902 * stack.c (print_frame): Use ui_out_emit_list.
1903 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
1904 ui_out_emit_list.
1905 * mi/mi-main.c (print_one_inferior)
1906 (mi_cmd_data_list_register_names)
1907 (mi_cmd_data_list_register_values, mi_cmd_list_features)
1908 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
1909 ui_out_emit_list.
1910 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
1911 (mi_output_solib_attribs): Use ui_out_emit_list,
1912 ui_out_emit_tuple.
1913 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
1914 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1915 (mi_cmd_stack_list_args, list_args_or_locals): Use
1916 ui_out_emit_list.
1917 * disasm.c (do_assembly_only): Use ui_out_emit_list.
1918 * breakpoint.c (print_solib_event, output_thread_groups): Use
1919 ui_out_emit_list.
1920
0092b74d
TT
19212017-04-22 Tom Tromey <tom@tromey.com>
1922
1923 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
1924 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
1925 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
1926
a14a62dd
TT
19272017-04-22 Tom Tromey <tom@tromey.com>
1928
1929 * tracepoint.c (tvariables_info_1)
1930 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
1931
46b9c129
TT
19322017-04-22 Tom Tromey <tom@tromey.com>
1933
1934 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
1935 annotate_arg_emitter.
1936 * breakpoint.c (print_mention_watchpoint)
1937 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
1938 * annotate.h (struct annotate_arg_emitter): New.
1939
2e783024
TT
19402017-04-22 Tom Tromey <tom@tromey.com>
1941
1942 * record-btrace.c (record_btrace_insn_history)
1943 (record_btrace_insn_history_range, record_btrace_call_history)
1944 (record_btrace_call_history_range): Use ui_out_emit_tuple.
1945 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
1946 ui_out_emit_tuple.
1947 * stack.c (print_frame_info): Use ui_out_emit_tuple.
1948 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
1949 * skip.c (skip_info): Use ui_out_emit_tuple.
1950 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
1951 * progspace.c (print_program_space): Use ui_out_emit_tuple.
1952 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
1953 * osdata.c (info_osdata): Use ui_out_emit_tuple.
1954 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
1955 ui_out_emit_tuple.
1956 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
1957 (output_register, mi_cmd_data_read_memory)
1958 (mi_cmd_data_read_memory_bytes, mi_load_progress)
1959 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
1960 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
1961 Use ui_out_emit_tuple.
1962 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
1963 ui_out_emit_tuple.
1964 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
1965 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
1966 * linux-thread-db.c (info_auto_load_libthread_db): Use
1967 ui_out_emit_tuple.
1968 * inferior.c (print_inferior): Use ui_out_emit_tuple.
1969 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
1970 * disasm.c (do_mixed_source_and_assembly_deprecated)
1971 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
1972 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
1973 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
1974 * breakpoint.c (print_one_breakpoint_location)
1975 (print_one_breakpoint): Use ui_out_emit_tuple.
1976 * auto-load.c (print_script, info_auto_load_cmd): Use
1977 ui_out_emit_tuple.
1978 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
1979
9be21bb4
SM
19802017-04-21 Simon Marchi <simon.marchi@ericsson.com>
1981
1982 * thread.c (print_thread_info_1): Remove dead code.
1983
0d4c07af
JK
19842017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
1987 GDB_SELF_TEST.
1988 * arm-tdep.c (selftests::arm_record_test): Likewise.
1989
4daf993d
YQ
19902017-04-21 Yao Qi <yao.qi@linaro.org>
1991
1992 * regcache.c (regcache_restore): Remove argument 2. Replace
1993 argument 3 with regcache. Get register status from
1994 src->register_status and get register contents from
1995 register_buffer (src, regnum).
1996 (regcache_cpy): Update.
1997
a6c21d4a
PA
19982017-04-19 Pedro Alves <palves@redhat.com>
1999
2000 * gdbthread.h (thread): Add missing closing parenthesis in
2001 comment.
2002
3a3fd0fd
PA
20032017-04-19 Pedro Alves <palves@redhat.com>
2004
2005 * common/refcounted-object.h: New file.
2006 * gdbthread.h: Include "common/refcounted-object.h".
2007 (thread_info): Inherit from refcounted_object and add comments.
2008 (thread_info::incref, thread_info::decref)
2009 (thread_info::m_refcount): Delete.
2010 (thread_info::deletable): Use the refcounted_object::refcount()
2011 method.
2012 * inferior.c (current_inferior_): Add comment.
2013 (set_current_inferior): Increment/decrement refcounts.
2014 (prune_inferiors, remove_inferior_command): Skip inferiors marked
2015 not-deletable instead of comparing with the current inferior.
2016 (initialize_inferiors): Increment the initial inferior's refcount.
2017 * inferior.h (struct inferior): Forward declare.
2018 Include "common/refcounted-object.h".
2019 (current_inferior, set_current_inferior): Move declaration to
2020 before struct inferior's definition, and fix comment.
2021 (inferior): Inherit from refcounted_object. Add comments.
2022 * thread.c (switch_to_thread_no_regs): Reference the thread's
2023 inferior pointer directly instead of doing a ptid lookup.
2024 (switch_to_no_thread): New function.
2025 (switch_to_thread(thread_info *)): New function, factored out
2026 from ...
2027 (switch_to_thread(ptid_t)): ... this.
2028 (restore_current_thread): Delete.
2029 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
2030 fields, and add 'inf' field.
2031 (do_restore_current_thread_cleanup): Check whether old->inf is
2032 alive instead of looking up an inferior by ptid. Use
2033 switch_to_thread and switch_to_no_thread.
2034 (restore_current_thread_cleanup_dtor): Use old->inf directly
2035 instead of lookup up an inferior by id. Decref the inferior.
2036 Don't restore 'removable'.
2037 (make_cleanup_restore_current_thread): Same the inferior pointer
2038 in old, instead of the inferior number. Incref the inferior.
2039 Don't save/clear 'removable'.
2040
9bcb1f16
PA
20412017-04-19 Pedro Alves <palves@redhat.com>
2042
2043 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2044 unittests/scoped_restore-selftests.c.
2045 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
2046 * common/scoped_restore.h (scoped_restore_base): Make "class".
2047 (scoped_restore_base::release): New public method.
2048 (scoped_restore_base::scoped_restore_base): New protected ctor.
2049 (scoped_restore_base::m_saved_var): New protected field.
2050 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
2051 scoped_restore_base base class instead of m_saved_var directly.
2052 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
2053 (scoped_restore_tmpl::scoped_restore_tmpl(const
2054 scoped_restore_tmpl<T>&)): Likewise.
2055 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
2056 method.
2057 (scoped_restore_tmpl::saved_var): New method.
2058 (scoped_restore_tmpl::m_saved_var): Delete.
2059 * inferior.h (inferior::detaching): Now a bool.
2060 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
2061 cleanup.
2062 * unittests/scoped_restore-selftests.c: New file.
2063
26fcd539
PA
20642017-04-19 Pedro Alves <palves@redhat.com>
2065
2066 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
2067 Re-sort in alphabetic order.
2068
fdd243b0
PA
20692017-04-18 Pedro Alves <palves@redhat.com>
2070
2071 * xml-support.c (obstack_xml_printf): Delete.
2072 * xml-support.h (obstack_xml_printf): Delete.
2073
4895cde2
PA
20742017-04-18 Pedro Alves <palves@redhat.com>
2075
2076 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
2077 vdebug, verror, body_text, start_element, end_element, name,
2078 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
2079 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
2080 is_xinclude>: Make private and add m_ prefix.
2081 (gdb_xml_parser::body_text): New method, based on ...
2082 (gdb_xml_body_text): ... this. Adjust.
2083 (gdb_xml_parser::vdebug): New method, based on ...
2084 (gdb_xml_debug): ... this. Adjust.
2085 (gdb_xml_parser::verror): New method, based on ...
2086 (gdb_xml_error): ... this. Adjust.
2087 (gdb_xml_parser::start_element): New method, based on ...
2088 (gdb_xml_start_element): ... this. Adjust.
2089 (gdb_xml_start_element_wrapper): Defer to
2090 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
2091 (gdb_xml_parser::end_element): New method, based on ...
2092 (gdb_xml_end_element_wrapper): ... this. Adjust.
2093 (gdb_xml_parser::~gdb_xml_parser): Adjust.
2094 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
2095 (gdb_xml_parser::use_dtd): New method, based on ...
2096 (gdb_xml_use_dtd): ... this. Adjust.
2097 (gdb_xml_parser::parse): New method, based on ...
2098 (gdb_xml_parse): ... this. Adjust.
2099 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
2100 (xinclude_start_include): Adjust to call the parser's name method.
2101 (xml_xinclude_default, xml_xinclude_start_doctype)
2102 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
2103 method.
2104 (xml_process_xincludes): Adjust to call parser methods.
2105 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
2106 declarations.
2107
bd8a901f
PA
21082017-04-18 Pedro Alves <palves@redhat.com>
2109
2110 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
2111 gdb::optional<std::string>.
2112 * xml-support.c: Include <string>.
2113 (scope_level::scope_level(scope_level &&))
2114 (scope_level::~scope_level): Delete.
2115 (scope_level::body): Now a std::string.
2116 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
2117 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
2118 parameter.
2119 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
2120 (xinclude_parsing_data::output): Now a std::string reference.
2121 (xinclude_start_include): Adjust.
2122 (xml_xinclude_default): Adjust.
2123 (xml_process_xincludes): Add 'output' parameter, and return bool.
2124 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
2125 and return bool.
2126 * xml-tdesc.c: Include <unordered_map> and <string>.
2127 (tdesc_xml_cache): Delete.
2128 (tdesc_xml_cache_s): Delete.
2129 (xml_cache): Now an std::unordered_map.
2130 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
2131 (target_fetch_description_xml): Change return type to
2132 gdb::optional<std::string>, and adjust.
2133 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
2134 (target_fetch_description_xml): Change return type to
2135 gdb::optional<std::string>.
2136
d35d1958
PA
21372017-04-18 Pedro Alves <palves@redhat.com>
2138
2139 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2140 unittests/optional-selftests.c.
2141 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
2142 * unittests/optional-selftests.c: New file.
2143 * unittests/optional/assignment/1.cc: New file.
2144 * unittests/optional/assignment/2.cc: New file.
2145 * unittests/optional/assignment/3.cc: New file.
2146 * unittests/optional/assignment/4.cc: New file.
2147 * unittests/optional/assignment/5.cc: New file.
2148 * unittests/optional/assignment/6.cc: New file.
2149 * unittests/optional/assignment/7.cc: New file.
2150 * unittests/optional/cons/copy.cc: New file.
2151 * unittests/optional/cons/default.cc: New file.
2152 * unittests/optional/cons/move.cc: New file.
2153 * unittests/optional/cons/value.cc: New file.
2154 * unittests/optional/in_place.cc: New file.
2155 * unittests/optional/observers/1.cc: New file.
2156 * unittests/optional/observers/2.cc: New file.
2157
22796e97
PA
21582017-04-18 Pedro Alves <palves@redhat.com>
2159
2160 * common/gdb_optional.h: Include common/traits.h.
2161 (in_place_t): New type.
2162 (in_place): New constexpr variable.
2163 (optional::optional): Remove member initialization of
2164 m_instantiated.
2165 (optional::optional(in_place_t...)): New constructor.
2166 (optional::~optional): Use reset.
2167 (optional::optional(const optional&)): New.
2168 (optional::optional(const optional&&)): New.
2169 (optional::optional(T &)): New.
2170 (optional::optional(T &&)): New.
2171 (operator::operator=(const optional &)): New.
2172 (operator::operator=(optional &&)): New.
2173 (operator::operator= (const T &))
2174 (operator::operator= (T &&))
2175 (operator::emplace (Args &&... args)): Return a T&. Use reset.
2176 (operator::reset): New.
2177 (operator::m_instantiated):: Add in-class initializer.
2178 * common/traits.h: Include <type_traits>.
2179 (struct And): New types.
2180
a7fc9b61
PA
21812017-04-18 Pedro Alves <palves@redhat.com>
2182
2183 * xml-support.c: Include <vector>.
2184 (scope_level::scope_level(const gdb_xml_element *))
2185 (scope_level::scope_level(scope_level&&)): New.
2186 (scope_level::~scope_level): New.
2187 (scope_level_s): Delete.
2188 (gdb_xml_parser::scopes): Now a std::vector.
2189 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
2190 Use std::vector.
2191 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
2192 scope cleanup code.
2193 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
2194 of the scopes member. Use std::vector::emplace_back.
2195
010151c9
PA
21962017-04-18 Pedro Alves <palves@redhat.com>
2197
2198 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
2199 a bool.
2200 (gdb_xml_end_element): Change type of first parameter.
2201 (gdb_xml_cleanup): Rename to ...
2202 (gdb_xml_parser::~gdb_xml_parser): ... this.
2203 (gdb_xml_create_parser_and_cleanup): Delete with ...
2204 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
2205 to this new ctor.
2206 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
2207 using gdb_xml_create_parser_and_cleanup.
2208 (xinclude_parsing_data): Add ctor/dtor.
2209 (xml_xinclude_cleanup): Delete.
2210 (xml_process_xincludes): Create a local xinclude_parsing_data
2211 instead of heap-allocating one. Create a local gdb_xml_parser
2212 instead of heap-allocating one with
2213 gdb_xml_create_parser_and_cleanup.
2214
d56060f0
JB
22152017-04-18 John Baldwin <jhb@FreeBSD.org>
2216
2217 PR threads/20743
2218 * fbsd-nat.c (resume_one_thread_cb): Remove.
2219 (resume_all_threads_cb): Remove.
2220 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
2221 iterate_over_threads.
2222
305d16a9
JB
22232017-04-17 Joel Brobecker <brobecker@adacore.com>
2224
2225 * NEWS: Create a new section for the next release branch.
2226 Rename the section of the current branch, now that it has
2227 been cut.
2228
8bb57231
JB
22292017-04-17 Joel Brobecker <brobecker@adacore.com>
2230
2231 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
2232 * version.in: Bump version to 8.0.50.DATE-git.
2233
096c92dd
SDJ
22342017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
2235
2236 PR gdb/21385
2237 * windows-nat.c (windows_create_inferior): Declare 'allargs'
2238 independently of the host, and fix build breakage on Cygwin.
2239
0550c955
PA
22402017-04-13 Pedro Alves <palves@redhat.com>
2241
2242 * inferior.c (free_inferior): Convert to ...
2243 (inferior::~inferior): ... this dtor.
2244 (inferior::inferior): New ctor, factored out from ...
2245 (add_inferior_silent): ... here. Allocate the inferior with a new
2246 expression.
2247 (delete_inferior): Call delete instead of free_inferior.
2248 * inferior.h (gdb_environ, continuation): Forward declare.
2249 (inferior): Now a class. Add in-class initialization to all
2250 members. Make boolean fields bool, except 'detaching'.
2251 (inferior::inferior): New explicit ctor.
2252 (inferior::~inferior): New.
2253
e3d60dfc
PA
22542017-04-13 Pedro Alves <palves@redhat.com>
2255
2256 * inferior.c (init_inferior_list): Delete.
2257 * inferior.h (init_inferior_list): Delete.
2258
5fd69d0a
PA
22592017-04-13 Pedro Alves <palves@redhat.com>
2260
2261 PR threads/13217
2262 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
2263 (top level): Call it twice, with different thread sets.
2264
c6609450
PA
22652017-04-13 Pedro Alves <palves@redhat.com>
2266
2267 * thread.c: Include <algorithm>.
2268 (thread_array_cleanup): Delete.
2269 (scoped_inc_dec_ref): New class.
2270 (live_threads_count): New function.
2271 (set_thread_refcount): Delete.
2272 (tp_array_compar_ascending): Now a bool.
2273 (tp_array_compar): Convert to a std::sort comparison function.
2274 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
2275 and live_threads_count.
2276
2a00d7ce
PA
22772017-04-13 Pedro Alves <palves@redhat.com>
2278
2279 * infrun.c (follow_fork_inferior): Also switch the current
2280 inferior.
2281
441d7c93
PA
22822017-04-13 Pedro Alves <palves@redhat.com>
2283
2284 * breakpoint.c (watch_command_1): Save watchpoint-frame info
2285 before calling create_internal_breakpoint.
2286
808480f6
PA
22872017-04-13 Pedro Alves <palves@redhat.com>
2288
2289 * fork-child.c (execv_argv): New class.
2290 (breakup_args): Refactored as ...
2291 (execv_argv::init_for_no_shell): .. this method of execv_argv.
2292 Copy arguments to storage and replace separators with NULL
2293 terminators in place.
2294 (escape_bang_in_quoted_argument): Adjust to return bool.
2295 (execv_argv::execv_argv): New ctor.
2296 (execv_argv::init_for_shell): New method, factored out from
2297 fork_inferior. Don't strdup strings into the vector.
2298 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
2299 Remove free_vector_argv call.
2300
ad3d022a
YQ
23012017-04-13 Yao Qi <yao.qi@linaro.org>
2302
2303 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
2304 tdep->rx_psw_type.
2305
e6ddc3bf
YQ
23062017-04-13 Yao Qi <yao.qi@linaro.org>
2307
2308 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
2309 * rx-tdep.c (rx_gdbarch_init): Likewise.
2310
bfb8cf90
PA
23112017-04-13 Pedro Alves <palves@redhat.com>
2312
2313 * breakpoint.h (struct breakpoint): Reindent.
2314
f5336ca5
PA
23152017-04-13 Pedro Alves <palves@redhat.com>
2316
2317 * breakpoint.c (bp_location): Rename to ...
2318 (bp_locations): ... this. All references updated.
2319 (bp_location_count): Rename to ...
2320 (bp_locations_count): ... this. All references updated.
2321 (bp_location_placed_address_before_address_max): Rename to ...
2322 (bp_locations_placed_address_before_address_max): ... this. All
2323 references updated.
2324 (bp_location_shadow_len_after_address_max): Rename to ...
2325 (bp_locations_shadow_len_after_address_max): ... this. All
2326 references updated.
2327 (bp_location_compare_addrs): Rename to ...
2328 (bp_locations_compare_addrs): ... this. All references updated.
2329 (bp_location_compare):Rename to ...
2330 (bp_locations_compare): ... this. All references updated.
2331 (bp_location_target_extensions_update): Rename to ...
2332 (bp_locations_target_extensions_update): ... this. All references
2333 updated.
2334
be628ab8
SDJ
23352017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2336
2337 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
2338 * common/common.m4: Check headers 'termios.h', 'termio.h' and
2339 'sgtty.h'.
2340 * common/gdb_termios.h: New file, with parts of "terminal.h".
2341 * inflow.c: Include "gdb_termios.h".
2342 * ser-unix.c: Include "gdb_termios.h".
2343 * terminal.h: Move terminal-related defines to
2344 "common/gdb_termios.h".
2345
8e9e35b1
TT
23462017-04-12 Tom Tromey <tom@tromey.com>
2347
2348 * probe.c (parse_probes): Update.
2349 * location.h (delete_event_location): Don't declare.
2350 (event_location_deleter::operator()): Update.
2351 * location.c (event_location_deleter::operator()): Rename from
2352 delete_event_location.
2353 * linespec.h (linespec_result) <location>: Change type to
2354 event_location_up.
2355 * linespec.c (canonicalize_linespec, event_location_to_sals)
2356 (decode_objc): Update.
2357 (linespec_result): Don't call delete_event_location.
2358 * breakpoint.c (create_breakpoints_sal)
2359 (bkpt_probe_create_sals_from_location)
2360 (strace_marker_create_sals_from_location): Update.
2361
16e802b9
TT
23622017-04-12 Tom Tromey <tom@tromey.com>
2363
2364 * linespec.h (struct linespec_result): Add constructor and
2365 destructor.
2366 (init_linespec_result, destroy_linespec_result)
2367 (make_cleanup_destroy_linespec_result): Don't declare.
2368 * linespec.c (init_linespec_result): Remove.
2369 (linespec_result::~linespec_result): Rename from
2370 destroy_linespec_result. Update.
2371 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
2372 Remove.
2373 * breakpoint.c (create_breakpoint, break_range_command)
2374 (decode_location_default): Update.
2375 * ax-gdb.c (agent_command_1): Update.
2376
d28cd78a
TT
23772017-04-12 Tom Tromey <tom@tromey.com>
2378
2379 * remote.c (remote_download_tracepoint): Update.
2380 * python/py-breakpoint.c (bppy_get_location): Update.
2381 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
2382 (gdbscm_breakpoint_location): Update.
2383 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
2384 * breakpoint.h (struct breakpoint) <location, location_range_end>:
2385 Change type to event_location_up.
2386 * breakpoint.c (create_overlay_event_breakpoint)
2387 (create_longjmp_master_breakpoint)
2388 (create_std_terminate_master_breakpoint)
2389 (create_exception_master_breakpoint)
2390 (breakpoint_event_location_empty_p, print_breakpoint_location)
2391 (print_one_breakpoint_location, create_thread_event_breakpoint)
2392 (init_breakpoint_sal, create_breakpoint)
2393 (print_recreate_ranged_breakpoint, break_range_command)
2394 (init_ada_exception_breakpoint, say_where): Update.
2395 (base_breakpoint_dtor): Don't call delete_event_location.
2396 (bkpt_print_recreate, tracepoint_print_recreate)
2397 (dprintf_print_recreate, update_static_tracepoint)
2398 (breakpoint_re_set_default): Update.
2399
711799d5
TT
24002017-04-12 Tom Tromey <tom@tromey.com>
2401
2402 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2403 type of "to_do". Update.
2404 (compute_stack_depth): Use std::vector.
2405
52d214d3
TT
24062017-04-12 Tom Tromey <tom@tromey.com>
2407
2408 * printcmd.c (find_instruction_backward): Use std::vector.
2409
4c404b8b
TT
24102017-04-12 Tom Tromey <tom@tromey.com>
2411
2412 * symfile.c (objfilep): Remove typedef.
2413 (reread_symbols): Use a std::vector.
2414
156d9eab
TT
24152017-04-12 Tom Tromey <tom@tromey.com>
2416
2417 * mi/mi-main.c (exec_direction_forward): Remove.
2418 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
2419 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2420 scoped_restore.
2421 * guile/guile.c (guile_repl_command, guile_command)
2422 (gdbscm_execute_gdb_command): Use scoped_restore.
2423 * go-exp.y (go_parse): Use scoped_restore.
2424 * d-exp.y (d_parse): Use scoped_restore.
2425 * cli/cli-decode.c (cmd_func): Use scoped_restore.
2426 * c-exp.y (c_parse): Use scoped_restore.
2427
4d89769a
TT
24282017-04-12 Tom Tromey <tom@tromey.com>
2429
2430 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
2431 (mi_parse): Update return type.
2432 (mi_parse_free): Remove.
2433 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
2434 (mi_parse::~mi_parse): Rename from mi_parse_free.
2435 (mi_parse_cleanup): Remove.
2436 (mi_parse): Return a unique_ptr. Use new.
2437 * mi/mi-main.c (mi_execute_command): Update.
2438
4b217cc7
TT
24392017-04-12 Tom Tromey <tom@tromey.com>
2440
2441 * location.c (explicit_location_lex_one): Return a
2442 unique_xmalloc_ptr.
2443 (string_to_explicit_location): Update. Remove cleanups.
2444
59d3651b
TT
24452017-04-12 Tom Tromey <tom@tromey.com>
2446
2447 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
2448 (compare_value_and_voffset): Change type. Update.
2449 (compute_vtable_size): Change type of "offset_vec".
2450 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
2451 (gnuv3_get_typeid): Remove extraneous declaration.
2452
b24b0d6c
TT
24532017-04-12 Tom Tromey <tom@tromey.com>
2454
2455 * charset.h (wchar_iterator): Fix comment.
2456
80a3b8c5
TT
24572017-04-12 Tom Tromey <tom@tromey.com>
2458
2459 * charset.c (iconv_wrapper): New class.
2460 (cleanup_iconv): Remove.
2461 (convert_between_encodings): Use it.
2462
c83dd867
TT
24632017-04-12 Tom Tromey <tom@tromey.com>
2464
2465 * symfile.h (increment_reading_symtab): Update type.
2466 * symfile.c (decrement_reading_symtab): Remove.
2467 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
2468 * psymtab.c (psymtab_to_symtab): Update.
2469 * dwarf2read.c (dw2_instantiate_symtab): Update.
2470
0e8621a0
TT
24712017-04-12 Tom Tromey <tom@tromey.com>
2472
2473 * jit.c (struct jit_reader): Declare separately. Add constructor
2474 and destructor. Change type of "handle".
2475 (loaded_jit_reader): Define separately.
2476 (jit_reader_load): Update. New "new".
2477 (jit_reader_unload_command): Use "delete".
2478 * gdb-dlfcn.h (struct dlclose_deleter): New.
2479 (gdb_dlhandle_up): New typedef.
2480 (gdb_dlopen, gdb_dlsym): Update types.
2481 (gdb_dlclose): Remove.
2482 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
2483 (gdb_dlsym): Change type of "handle".
2484 (make_cleanup_dlclose): Remove.
2485 (dlclose_deleter::operator()): Rename from gdb_dlclose.
2486 * compile/compile-c-support.c (load_libcc): Update.
2487
67d89901
TT
24882017-04-12 Tom Tromey <tom@tromey.com>
2489
2490 * symtab.h (find_pcs_for_symtab_line): Change return type.
2491 * symtab.c (find_pcs_for_symtab_line): Change return type.
2492 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
2493 type of "vec". Update.
2494 (ltpy_get_pcs_for_line): Update.
2495 * linespec.c (decode_digits_ordinary): Update.
2496
93921405
TT
24972017-04-12 Tom Tromey <tom@tromey.com>
2498
2499 * tracepoint.c (actions_command): Update.
2500 * python/python.c (python_command, python_interactive_command):
2501 Update.
2502 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
2503 * guile/guile.c (guile_command): Update.
2504 * defs.h (read_command_lines, read_command_lines_1): Return
2505 command_line_up.
2506 (command_lines_deleter): New struct.
2507 (command_line_up): New typedef.
2508 * compile/compile.c (compile_code_command)
2509 (compile_print_command): Update.
2510 * cli/cli-script.h (get_command_line, copy_command_lines): Return
2511 command_line_up.
2512 (make_cleanup_free_command_lines): Remove.
2513 * cli/cli-script.c (get_command_line, read_command_lines_1)
2514 (copy_command_lines): Return command_line_up.
2515 (while_command, if_command, read_command_lines, define_command)
2516 (document_command): Update.
2517 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
2518 Remove.
2519 * breakpoint.h (breakpoint_set_commands): Change type of
2520 "commands".
2521 * breakpoint.c (breakpoint_set_commands): Change type of
2522 "commands". Update.
2523 (do_map_commands_command, update_dprintf_command_list)
2524 (create_tracepoint_from_upload): Update.
2525
ffc2605c
TT
25262017-04-12 Tom Tromey <tom@tromey.com>
2527
2528 * tracepoint.c (scope_info): Update.
2529 * spu-tdep.c (spu_catch_start): Update.
2530 * python/python.c (gdbpy_decode_line): Update.
2531 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2532 * python/py-breakpoint.c (bppy_init): Update.
2533 * probe.c (parse_probes): Update.
2534 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2535 * location.h (event_location_deleter): New struct.
2536 (event_location_up): New typedef.
2537 (new_linespec_location, new_address_location, new_probe_location)
2538 (new_explicit_location, copy_event_location)
2539 (string_to_event_location, string_to_event_location_basic)
2540 (string_to_explicit_location): Update return type.
2541 (make_cleanup_delete_event_location): Remove.
2542 * location.c (new_linespec_location, new_address_location)
2543 (new_probe_location, new_explicit_location, copy_event_location):
2544 Return event_location_up.
2545 (delete_event_location_cleanup)
2546 (make_cleanup_delete_event_location): Remove.
2547 (string_to_explicit_location, string_to_event_location_basic)
2548 (string_to_event_location): Return event_location_up.
2549 * linespec.c (canonicalize_linespec, event_location_to_sals)
2550 (decode_line_with_current_source)
2551 (decode_line_with_last_displayed, decode_objc): Update.
2552 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2553 * completer.c (location_completer): Update.
2554 * cli/cli-cmds.c (edit_command, list_command): Update.
2555 * breakpoint.c (create_overlay_event_breakpoint)
2556 (create_longjmp_master_breakpoint)
2557 (create_std_terminate_master_breakpoint)
2558 (create_exception_master_breakpoint)
2559 (create_thread_event_breakpoint): Update.
2560 (init_breakpoint_sal): Update. Remove some dead code.
2561 (create_breakpoint_sal): Change type of "location". Update.
2562 (create_breakpoints_sal, create_breakpoint, break_command_1)
2563 (dprintf_command, break_range_command, until_break_command)
2564 (init_ada_exception_breakpoint)
2565 (strace_marker_create_sals_from_location)
2566 (update_static_tracepoint, trace_command, ftrace_command)
2567 (strace_command, create_tracepoint_from_upload): Update.
2568 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2569 * ax-gdb.c (agent_command_1): Update.
2570
8f10c932
PA
25712017-04-12 Pedro Alves <palves@redhat.com>
2572
2573 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
2574 * configure.tgt: Handle i[34567]86-*-go32* and
2575 i[34567]86-*-msdosdjgpp*.
2576 * i386-tdep.c (i386_svr4_reg_to_regnum):
2577 Make extern.
2578 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
2579 i386-go32-tdep.c.
2580 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
2581 * i386-go32-tdep.c: New file.
2582 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
2583 declarations.
2584
0a31ccfb
SM
25852017-04-12 Simon Marchi <simon.marchi@ericsson.com>
2586
2587 * aix-thread.c (pd_status2str): Change return type to const char *.
2588
e9bb3fbb
PA
25892017-04-12 Pedro Alves <palves@redhat.com>
2590
2591 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
2592 calls to set_gdbarch_gnu_triplet_regexp.
2593
53375380
PA
25942017-04-12 Pedro Alves <palves@redhat.com>
2595
2596 PR gdb/21323
2597 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
2598 New enum value.
2599 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
2600 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
2601 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
2602 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
2603 * gdbarch.h, gdbarch.c: Regenerate.
2604 * aarch64-tdep.c (aarch64_gdbarch_init): Override
2605 gdbarch_wchar_bit and gdbarch_wchar_signed.
2606 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
2607 * arm-tdep.c (arm_gdbarch_init): Likewise.
2608 * avr-tdep.c (avr_gdbarch_init): Likewise.
2609 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2610 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
2611 * i386-tdep.c (i386_go32_init_abi): Likewise.
2612 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2613 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2614 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
2615 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
2616 * sh-tdep.c (sh_gdbarch_init): Likewise.
2617 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2618 * sparc64-tdep.c (sparc64_init_abi): Likewise.
2619 * windows-tdep.c (windows_init_abi): Likewise.
2620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2621
53e710ac
PA
26222017-04-12 Pedro Alves <palves@redhat.com>
2623
2624 PR c++/21323
2625 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
2626 cplus_primitive_type_char32_t>: New enum values.
2627 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
2628 and cplus_primitive_type_char32_t.
2629 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
2630 32, use the archtecture's built-in type for char16_t and char32_t,
2631 respectively. Otherwise, fallback to init_integer_type as before,
2632 but make the type unsigned, and issue a complaint.
2633 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
2634
ab0538b8
AH
26352017-04-12 Alan Hayward <alan.hayward@arm.com>
2636
5e0e0422 2637 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
2638 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
2639
5430098f
SDJ
26402017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2641
2642 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
2643 'const char *'.
2644
7c5ded6a
SDJ
26452017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2646
2647 * common/common-utils.c (free_vector_argv): New function.
2648 * common/common-utils.h: Include <vector>.
2649 (free_vector_argv): New prototype.
2650 * darwin-nat.c (darwin_create_inferior): Rewrite function
2651 prototype in order to constify "exec_file" and accept a
2652 "std::string" for "allargs".
2653 * fork-child.c: Include <vector>.
2654 (breakup_args): Rewrite function, using C++.
2655 (fork_inferior): Rewrite function header, constify "exec_file_arg"
2656 and accept "std::string" for "allargs". Update the code to
2657 calculate "argv" based on "allargs". Update calls to "exec_fun"
2658 and "execvp".
2659 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
2660 order to constify "exec_file" and accept a "std::string" for
2661 "allargs".
2662 * go32-nat.c (go32_create_inferior): Likewise.
2663 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
2664 * infcmd.c (run_command_1): Constify "exec_file". Use
2665 "std::string" for inferior arguments.
2666 * inferior.h (fork_inferior): Update prototype.
2667 * linux-nat.c (linux_nat_create_inferior): Rewrite function
2668 prototype in order to constify "exec_file" and accept a
2669 "std::string" for "allargs".
2670 * nto-procfs.c (procfs_create_inferior): Likewise.
2671 * procfs.c (procfs_create_inferior): Likewise.
2672 * remote-sim.c (gdbsim_create_inferior): Likewise.
2673 * remote.c (extended_remote_run): Update code to accept
2674 "std::string" as argument.
2675 (extended_remote_create_inferior): Rewrite function prototype in
2676 order to constify "exec_file" and accept a "std::string" for
2677 "allargs".
2678 * rs6000-nat.c (super_create_inferior): Likewise.
2679 (rs6000_create_inferior): Likewise.
2680 * target.h (struct target_ops) <to_create_inferior>: Likewise.
2681 * windows-nat.c (windows_create_inferior): Likewise.
2682
ae0eee42
PA
26832017-04-11 Pedro Alves <palves@redhat.com>
2684
2685 * thread.c: Fix whitespace throughout.
2686
a6acac06
PR
26872017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
2688
2689 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
2690
64403bd1
AH
26912017-04-11 Alan Hayward <alan.hayward@arm.com>
2692
2693 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
2694
a5bef50f
SDJ
26952017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
2696
2697 PR gdb/21364
2698 * osdata.c (info_osdata): Check if 'type' is an empty string
2699 instead of NULL.
2700
9295a5a9
PA
27012017-04-10 Pedro Alves <palves@redhat.com>
2702
2703 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
2704 (ptid_to_global_thread_id, in_thread_list)
2705 (do_captured_list_thread_ids, set_resumed, set_running)
2706 (set_executing, set_stop_requested, finish_thread_state)
2707 (validate_registers_access, can_access_registers_ptid)
2708 (print_thread_info_1, switch_to_thread)
2709 (do_restore_current_thread_cleanup)
2710 (make_cleanup_restore_current_thread, thread_command)
2711 (thread_name_command): Use operator== instead of ptid_equal.
2712
996812e3
PA
27132017-04-10 Pedro Alves <palves@redhat.com>
2714
2715 * thread.c (struct current_thread_cleanup) <next>: Delete field.
2716 (current_thread_cleanup_chain): Delete.
2717 (restore_current_thread_cleanup_dtor)
2718 (make_cleanup_restore_current_thread): Remove references to
2719 current_thread_cleanup_chain.
2720
845b344f
AH
27212017-04-10 Alan Hayward <alan.hayward@arm.com>
2722
2723 * msp430-tdep.c (msp430_pseudo_register_read): Never return
2724 REG_UNKNOWN.
2725
803bdfe4
YQ
27262017-04-10 Yao Qi <yao.qi@linaro.org>
2727
2728 PR gdb/19942
2729 * gdbthread.h (thread_info::deletable): New method.
2730 (thread_info::incref): New method.
2731 (thread_info::decref): New method.
2732 (thread_info::refcount): Move it to private.
2733 * infrun.c (save_stop_context): Call inc_refcount.
2734 (release_stop_context_cleanup): Likewise.
2735 * thread.c (set_thread_exited): New function.
2736 (init_thread_list): Delete "tp" only it is deletable, otherwise
2737 call set_thread_exited.
2738 (delete_thread_1): Call set_thread_exited.
2739 (current_thread_cleanup) <inferior_pid>: Remove.
2740 <thread>: New field.
2741 (restore_current_thread_ptid_changed): Removed.
2742 (do_restore_current_thread_cleanup): Adjust.
2743 (restore_current_thread_cleanup_dtor): Don't call
2744 find_thread_ptid.
2745 (set_thread_refcount): Use dec_refcount.
2746 (make_cleanup_restore_current_thread): Adjust.
2747 (thread_apply_all_command): Call inc_refcount.
2748 (_initialize_thread): Don't call
2749 observer_attach_thread_ptid_changed.
2750
8c25b497
YQ
27512017-04-10 Yao Qi <yao.qi@linaro.org>
2752
2753 * thread.c (delete_thread_1): Hoist code on marking thread as
2754 exited.
2755
8473b447
SM
27562017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
2757
2758 * windows-nat.c (windows_detach): Initialize ptid with
2759 minus_one_ptid.
2760
6670ec13
SM
27612017-04-07 Simon Marchi <simon.marchi@ericsson.com>
2762
2763 * unittests/ptid-selftests.c: Fix erroneous assert messages.
2764
ba2f91bb
AH
27652017-04-07 Alan Hayward <alan.hayward@arm.com>
2766
2767 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
2768 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
2769 (bfin_pseudo_register_write): Likewise
2770
436252de
SM
27712017-04-06 Simon Marchi <simon.marchi@ericsson.com>
2772
2773 * common/ptid.h (struct ptid): Change to...
2774 (class ptid_t): ... this.
2775 <ptid_t>: New constructors.
2776 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
2777 matches>: New methods.
2778 <make_null, make_minus_one>: New static methods.
2779 <pid>: Rename to...
2780 <m_pid>: ...this.
2781 <lwp>: Rename to...
2782 <m_lwp>: ...this.
2783 <tid>: Rename to...
2784 <m_tid>: ...this.
2785 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
2786 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
2787 as references, move comment to class ptid_t.
2788 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
2789 ptid_t static methods.
2790 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
2791 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
2792 Take ptid arguments as references, implement using ptid_t methods.
2793 * unittests/ptid-selftests.c: New file.
2794 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2795 unittests/ptid-selftests.c.
2796 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
2797
0dedf377
TP
27982017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2799
2800 * python/python.c (python_run_simple_file): Cast mode literal to
2801 non-const char pointer as expected by PyFile_FromString.
2802
4e9868d4
SM
28032017-04-05 Simon Marchi <simon.marchi@ericsson.com>
2804
2805 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
2806 minus_one_ptid and null_ptid.
2807
9bf2a700
PA
28082017-04-05 Pedro Alves <palves@redhat.com>
2809
2810 * warning.m4 (build_warnings): Remove -Wno-write-strings.
2811 * configure: Regenerate.
2812
a121b7c1
PA
28132017-04-05 Pedro Alves <palves@redhat.com>
2814
2815 * ada-exp.y (yyerror): Constify.
2816 * ada-lang.c (bound_name, get_selections)
2817 (ada_variant_discrim_type)
2818 (ada_variant_discrim_name, ada_value_struct_elt)
2819 (ada_lookup_struct_elt_type, is_unchecked_variant)
2820 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
2821 (catch_ada_exception_command_split)
2822 (catch_ada_assert_command_split, catch_assert_command)
2823 (ada_op_name): Constify.
2824 * ada-lang.h (ada_yyerror, get_selections)
2825 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
2826 * arc-tdep.c (arc_print_frame_cache): Constify.
2827 * arm-tdep.c (arm_skip_stub): Constify.
2828 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
2829 (gen_aggregate_elt_ref): Constify.
2830 * bcache.c (print_bcache_statistics): Constify.
2831 * bcache.h (print_bcache_statistics): Constify.
2832 * break-catch-throw.c (catch_exception_command_1):
2833 * breakpoint.c (struct ep_type_description::description):
2834 Constify.
2835 (add_solib_catchpoint): Constify.
2836 (catch_fork_command_1): Add cast.
2837 (add_catch_command): Constify.
2838 * breakpoint.h (add_catch_command, add_solib_catchpoint):
2839 Constify.
2840 * bsd-uthread.c (bsd_uthread_state): Constify.
2841 * buildsym.c (patch_subfile_names): Constify.
2842 * buildsym.h (next_symbol_text_func, patch_subfile_names):
2843 Constify.
2844 * c-exp.y (yyerror): Constify.
2845 (token::oper): Constify.
2846 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
2847 * c-varobj.c (cplus_describe_child): Constify.
2848 * charset.c (find_charset_names): Add cast.
2849 (find_charset_names): Constify array and add const_cast.
2850 * cli/cli-cmds.c (complete_command, cd_command): Constify.
2851 (edit_command): Constify.
2852 * cli/cli-decode.c (lookup_cmd): Constify.
2853 * cli/cli-dump.c (dump_memory_command, dump_value_command):
2854 Constify.
2855 (struct dump_context): Constify.
2856 (add_dump_command, restore_command): Constify.
2857 * cli/cli-script.c (get_command_line): Constify.
2858 * cli/cli-script.h (get_command_line): Constify.
2859 * cli/cli-utils.c (check_for_argument): Constify.
2860 * cli/cli-utils.h (check_for_argument): Constify.
2861 * coff-pe-read.c (struct read_pe_section_data): Constify.
2862 * command.h (lookup_cmd): Constify.
2863 * common/print-utils.c (decimal2str): Constify.
2864 * completer.c (gdb_print_filename): Constify.
2865 * corefile.c (set_gnutarget): Constify.
2866 * cp-name-parser.y (yyerror): Constify.
2867 * cp-valprint.c (cp_print_class_member): Constify.
2868 * cris-tdep.c (cris_register_name, crisv32_register_name):
2869 Constify.
2870 * d-exp.y (yyerror): Constify.
2871 (struct token::oper): Constify.
2872 * d-lang.h (d_yyerror): Constify.
2873 * dbxread.c (struct header_file_location::name): Constify.
2874 (add_old_header_file, add_new_header_file, last_function_name)
2875 (dbx_next_symbol_text, add_bincl_to_list)
2876 (find_corresponding_bincl_psymtab, set_namestring)
2877 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
2878 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
2879 * defs.h (command_line_input, print_address_symbolic)
2880 (deprecated_readline_begin_hook): Constify.
2881 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
2882 Constify.
2883 * event-top.c (handle_line_of_input): Constify and add cast.
2884 * exceptions.c (catch_errors): Constify.
2885 * exceptions.h (catch_errors): Constify.
2886 * expprint.c (print_subexp_standard, op_string, op_name)
2887 (op_name_standard, dump_raw_expression, dump_raw_expression):
2888 * expression.h (op_name, op_string, dump_raw_expression):
2889 Constify.
2890 * f-exp.y (yyerror): Constify.
2891 (struct token::oper): Constify.
2892 (struct f77_boolean_val::name): Constify.
2893 * f-lang.c (f_word_break_characters): Constify.
2894 * f-lang.h (f_yyerror): Constify.
2895 * fork-child.c (fork_inferior): Add cast.
2896 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
2897 (new_variant): Constify.
2898 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
2899 * gdbarch.c: Regenerate.
2900 * gdbcore.h (set_gnutarget): Constify.
2901 * go-exp.y (yyerror): Constify.
2902 (token::oper): Constify.
2903 * go-lang.h (go_yyerror): Constify.
2904 * go32-nat.c (go32_sysinfo): Constify.
2905 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
2906 * guile/scm-cmd.c (cmdscm_function): Constify.
2907 * guile/scm-param.c (pascm_param_value): Constify.
2908 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
2909 (h8300sx_register_name): Constify.
2910 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
2911 Constify.
2912 * ia64-tdep.c (ia64_register_names): Constify.
2913 * infcmd.c (construct_inferior_arguments): Constify.
2914 (path_command, attach_post_wait): Constify.
2915 * language.c (show_range_command, show_case_command)
2916 (unk_lang_error): Constify.
2917 * language.h (language_defn::la_error)
2918 (language_defn::la_name_of_this): Constify.
2919 * linespec.c (decode_line_2): Constify.
2920 * linux-thread-db.c (thread_db_err_str): Constify.
2921 * lm32-tdep.c (lm32_register_name): Constify.
2922 * m2-exp.y (yyerror): Constify.
2923 * m2-lang.h (m2_yyerror): Constify.
2924 * m32r-tdep.c (m32r_register_names): Constify and make static.
2925 * m68hc11-tdep.c (m68hc11_register_names): Constify.
2926 * m88k-tdep.c (m88k_register_name): Constify.
2927 * macroexp.c (appendmem): Constify.
2928 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
2929 (upgrade_type, parse_external, parse_partial_symbols)
2930 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
2931 (new_symbol): Constify.
2932 * memattr.c (mem_info_command): Constify.
2933 * mep-tdep.c (register_name_from_keyword): Constify.
2934 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
2935 Constify.
2936 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
2937 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
2938 * mi/mi-main.c (captured_mi_execute_command): Constify and add
2939 cast.
2940 (mi_execute_async_cli_command): Constify.
2941 * mips-tdep.c (mips_register_name): Constify.
2942 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
2943 (am33_register_name, am33_2_register_name)
2944 * moxie-tdep.c (moxie_register_names): Constify.
2945 * nat/linux-osdata.c (osdata_type): Constify fields.
2946 * nto-tdep.c (nto_parse_redirection): Constify.
2947 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
2948 (lookup_child_selector): Constify.
2949 (objc_methcall::name): Constify.
2950 * objc-lang.h (lookup_objc_class, lookup_child_selector)
2951 (lookup_struct_typedef): Constify.
2952 * objfiles.c (pc_in_section): Constify.
2953 * objfiles.h (pc_in_section): Constify.
2954 * p-exp.y (struct token::oper): Constify.
2955 (yyerror): Constify.
2956 * p-lang.h (pascal_yyerror): Constify.
2957 * parser-defs.h (op_name_standard): Constify.
2958 (op_print::string): Constify.
2959 (exp_descriptor::op_name): Constify.
2960 * printcmd.c (print_address_symbolic): Constify.
2961 * psymtab.c (print_partial_symbols): Constify.
2962 * python/py-breakpoint.c (stop_func): Constify.
2963 (bppy_get_expression): Constify.
2964 * python/py-cmd.c (cmdpy_completer::name): Constify.
2965 (cmdpy_function): Constify.
2966 * python/py-event.c (evpy_add_attribute)
2967 (gdbpy_initialize_event_generic): Constify.
2968 * python/py-event.h (evpy_add_attribute)
2969 (gdbpy_initialize_event_generic): Constify.
2970 * python/py-evts.c (add_new_registry): Constify.
2971 * python/py-finishbreakpoint.c (outofscope_func): Constify.
2972 * python/py-framefilter.c (get_py_iter_from_func): Constify.
2973 * python/py-inferior.c (get_buffer): Add cast.
2974 * python/py-param.c (parm_constant::name): Constify.
2975 * python/py-unwind.c (fprint_frame_id): Constify.
2976 * python/python.c (gdbpy_parameter_value): Constify.
2977 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
2978 * remote.c (memory_packet_config::name): Constify.
2979 (show_packet_config_cmd, remote_write_bytes)
2980 (remote_buffer_add_string):
2981 * reverse.c (exec_reverse_once): Constify.
2982 * rs6000-tdep.c (variant::name, variant::description): Constify.
2983 * rust-exp.y (rustyyerror): Constify.
2984 * rust-lang.c (rust_op_name): Constify.
2985 * rust-lang.h (rustyyerror): Constify.
2986 * serial.h (serial_ops::name): Constify.
2987 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
2988 (sh_sh3e_register_name, sh_sh2e_register_name)
2989 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
2990 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
2991 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
2992 (sh_sh4al_dsp_register_name): Constify.
2993 * sh64-tdep.c (sh64_register_name): Constify.
2994 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
2995 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
2996 * stabsread.c (patch_block_stabs, read_type_number)
2997 (ref_map::stabs, ref_add, process_reference)
2998 (symbol_reference_defined, define_symbol, define_symbol)
2999 (error_type, read_type, read_member_functions, read_cpp_abbrev)
3000 (read_one_struct_field, read_struct_fields, read_baseclasses)
3001 (read_tilde_fields, read_struct_type, read_array_type)
3002 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
3003 (read_huge_number, read_range_type, read_args, common_block_start)
3004 (find_name_end): Constify.
3005 * stabsread.h (common_block_start, define_symbol)
3006 (process_one_symbol, symbol_reference_defined, ref_add):
3007 * symfile.c (get_section_index, add_symbol_file_command):
3008 * symfile.h (get_section_index): Constify.
3009 * target-descriptions.c (tdesc_type::name): Constify.
3010 (tdesc_free_type): Add cast.
3011 * target.c (find_default_run_target):
3012 (add_deprecated_target_alias, find_default_run_target)
3013 (target_announce_detach): Constify.
3014 (do_option): Constify.
3015 * target.h (add_deprecated_target_alias): Constify.
3016 * thread.c (print_thread_info_1): Constify.
3017 * top.c (deprecated_readline_begin_hook, command_line_input):
3018 Constify.
3019 (init_main): Add casts.
3020 * top.h (handle_line_of_input): Constify.
3021 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
3022 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
3023 (tfind_command): Rename to ...
3024 (tfind_command_1): ... this and constify.
3025 (tfind_command): New function.
3026 (tfind_end_command, tfind_start_command): Adjust.
3027 (encode_source_string): Constify.
3028 * tracepoint.h (encode_source_string): Constify.
3029 * tui/tui-data.c (tui_partial_win_by_name): Constify.
3030 * tui/tui-data.h (tui_partial_win_by_name): Constify.
3031 * tui/tui-source.c (tui_set_source_content_nil): Constify.
3032 * tui/tui-source.h (tui_set_source_content_nil): Constify.
3033 * tui/tui-win.c (parse_scrolling_args): Constify.
3034 * tui/tui-windata.c (tui_erase_data_content): Constify.
3035 * tui/tui-windata.h (tui_erase_data_content): Constify.
3036 * tui/tui-winsource.c (tui_erase_source_content): Constify.
3037 * tui/tui.c (tui_enable): Add cast.
3038 * utils.c (defaulted_query): Constify.
3039 (init_page_info): Add cast.
3040 (puts_debug, subset_compare): Constify.
3041 * utils.h (subset_compare): Constify.
3042 * varobj.c (varobj_format_string): Constify.
3043 * varobj.h (varobj_format_string): Constify.
3044 * vax-tdep.c (vax_register_name): Constify.
3045 * windows-nat.c (windows_detach): Constify.
3046 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
3047 * xml-support.c (gdb_xml_end_element): Constify.
3048 * xml-tdesc.c (tdesc_start_reg): Constify.
3049 * xstormy16-tdep.c (xstormy16_register_name): Constify.
3050 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
3051 * xtensa-tdep.h (xtensa_register_t::name): Constify.
3052
995816ba
PA
30532017-04-05 Pedro Alves <palves@redhat.com>
3054
3055 * proc-api.c (struct trans): Constify.
3056 (procfs_note): Constify.
3057 * proc-events.c (struct trans, syscall_table):
3058 * proc-flags.c (struct trans): Constify.
3059 * proc-utils.h (procfs_note): Constify.
3060 * proc-why.c (struct trans): Constify.
3061 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
3062 (procfs_detach): Constify.
3063 * sol-thread.c (struct string_map): Constify.
3064 (td_err_string, td_state_string): Constify.
3065
3e83a920
PA
30662017-04-05 Pedro Alves <palves@redhat.com>
3067
3068 * proc-api.c (procfs_filename): Don't initialize
3069 procfs_filename.
3070 (prepare_to_trace): Assume procfs_filename is non-NULL.
3071 (_initialize_proc_api): Give procfs_filename a default value here.
3072
63160a43
PA
30732017-04-05 Pedro Alves <palves@redhat.com>
3074
3075 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
3076 'cond_string' parameter.
3077 (extract_exception_regexp): Constify 'string' parameter.
3078 (catch_exception_command_1): Constify.
3079 * breakpoint.c (init_catchpoint)
3080 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
3081 parameter.
3082 (ep_parse_optional_if_clause, catch_fork_command_1)
3083 (catch_exec_command_1): Constify.
3084 * breakpoint.h (init_catchpoint): Constify 'cond_string'
3085 parameter.
3086 (ep_parse_optional_if_clause): Constify.
3087 * cli/cli-utils.c (remove_trailing_whitespace)
3088 (check_for_argument): Constify.
3089 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
3090 non-const overload.
3091 (check_for_argument): Likewise.
3092
9b2eba3d
PA
30932017-04-05 Pedro Alves <palves@redhat.com>
3094
3095 * event-top.c (command_line_handler): Add cast to execute_command
3096 call.
3097 * record-btrace.c (cmd_record_btrace_bts_start)
3098 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
3099 (cmd_record_btrace_start): Add cast to execute_command call.
3100 * record-full.c (record_full_goto_insn):
3101 * record.c (record_start, record_stop): Add cast to
3102 execute_command_to_string calls.
3103 (cmd_record_start): Add cast to execute_command calls.
3104
2adadf51
PA
31052017-04-05 Pedro Alves <palves@redhat.com>
3106
3107 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
3108 static inline function.
3109 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
3110 array and use gdb_PyArg_ParseTupleAndKeywords.
3111 * python/py-cmd.c (cmdpy_init): Likewise.
3112 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3113 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
3114 (infpy_search_memory): Likewise.
3115 * python/py-objfile.c (objfpy_add_separate_debug_file)
3116 (gdbpy_lookup_objfile): Likewise.
3117 * python/py-symbol.c (gdbpy_lookup_symbol)
3118 (gdbpy_lookup_global_symbol): Likewise.
3119 * python/py-type.c (gdbpy_lookup_type): Likewise.
3120 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
3121 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
3122 Likewise.
3123
0d1f4ceb
PA
31242017-04-05 Pedro Alves <palves@redhat.com>
3125
3126 * python/python-internal.h (gdb_PyGetSetDef): New type.
3127 * python/py-block.c (block_object_getset)
3128 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
3129 * python/py-event.c (event_object_getset)
3130 (finish_breakpoint_object_getset): Likewise.
3131 * python/py-inferior.c (inferior_object_getset): Likewise.
3132 * python/py-infthread.c (thread_object_getset): Likewise.
3133 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
3134 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
3135 * python/py-objfile.c (objfile_getset): Likewise.
3136 * python/py-progspace.c (pspace_getset): Likewise.
3137 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
3138 Likewise.
3139 * python/py-record.c (recpy_record_getset): Likewise.
3140 * python/py-symbol.c (symbol_object_getset): Likewise.
3141 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
3142 Likewise.
3143 * python/py-type.c (type_object_getset, field_object_getset):
3144 Likewise.
3145 * python/py-value.c (value_object_getset): Likewise.
3146
4d759979
PA
31472017-04-05 Pedro Alves <palves@redhat.com>
3148
3149 * python/python-internal.h (gdb_PyObject_CallMethod)
3150 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
3151 New functions.
3152 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
3153 (PySys_GetObject, PySys_SetPath): New macros.
3154
fdf9e36f
PA
31552017-04-05 Pedro Alves <palves@redhat.com>
3156
3157 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
3158 info_osdata_command.
3159 * osdata.c (info_osdata_command): Rename to ...
3160 (info_osdata): ... this. Constify 'type' parameter, and remove
3161 the 'from_tty' parameter. Accept NULL TYPE.
3162 (info_osdata_command): New function.
3163 * osdata.h (info_osdata_command): Remove declaration.
3164 (info_osdata): New declaration.
3165
9f33b8b7
PA
31662017-04-05 Pedro Alves <palves@redhat.com>
3167
3168 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
3169 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
3170 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
3171 parameter.
3172 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
3173 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
3174 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
3175 parameter.
3176 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
3177 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
3178 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3179 (mi_cmd_file_list_exec_source_files)
3180 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
3181 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
3182 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
3183 parameter.
3184 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
3185 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
3186 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3187 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
3188 (mi_cmd_stack_info_frame): Constify 'command' parameter.
3189 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
3190 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
3191 'command' parameter.
3192 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
3193 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
3194 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
3195 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
3196 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
3197 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
3198 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
3199 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
3200 (mi_cmd_var_set_update_range): Constify 'command' parameter.
3201 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
3202 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
3203 parameter.
3204 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
3205 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
3206 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
3207 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
3208 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
3209 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
3210 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
3211 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
3212 (mi_cmd_data_list_changed_registers)
3213 (mi_cmd_data_write_register_values)
3214 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3215 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
3216 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
3217 (mi_cmd_list_features, mi_cmd_list_target_features)
3218 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
3219 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
3220 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
3221 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
3222 (mi_cmd_trace_frame_collected): Constify 'command'
3223 parameter.
3224 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
3225 'command' parameter.
3226
67cb5b2d
PA
32272017-04-05 Pedro Alves <palves@redhat.com>
3228
3229 * ada-lang.c (ada_completer_word_break_characters): Now a const
3230 array.
3231 (ada_get_gdb_completer_word_break_characters): Constify.
3232 * completer.c (gdb_completer_command_word_break_characters)
3233 (gdb_completer_file_name_break_characters)
3234 (gdb_completer_quote_characters): Now const arrays.
3235 (get_gdb_completer_quote_characters): Constify.
3236 (set_rl_completer_word_break_characters): New function.
3237 (set_gdb_completion_word_break_characters)
3238 (complete_line_internal): Use it.
3239 * completer.h (get_gdb_completer_quote_characters): Constify.
3240 (set_rl_completer_word_break_characters): Declare.
3241 * f-lang.c (f_word_break_characters): Constify.
3242 * language.c (default_word_break_characters): Constify.
3243 * language.h (language_defn::la_word_break_characters): Constify.
3244 (default_word_break_characters): Constify.
3245 * top.c (init_main): Use set_rl_completer_word_break_characters.
3246
7a114964
PA
32472017-04-05 Pedro Alves <palves@redhat.com>
3248
3249 * aix-thread.c (aix_thread_pid_to_str)
3250 (aix_thread_extra_thread_info): Constify.
3251 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
3252 * bsd-uthread.c (bsd_uthread_extra_thread_info)
3253 (bsd_uthread_pid_to_str): Constify.
3254 * corelow.c (core_pid_to_str): Constify.
3255 * darwin-nat.c (darwin_pid_to_str): Constify.
3256 * fbsd-nat.c (fbsd_pid_to_str): Constify.
3257 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
3258 Constify.
3259 * gnu-nat.c (gnu_pid_to_str): Constify.
3260 * go32-nat.c (go32_pid_to_str): Constify.
3261 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
3262 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
3263 * inferior.c (inferior_pid_to_str): Constify.
3264 * linux-nat.c (linux_nat_pid_to_str): Constify.
3265 * linux-tdep.c (linux_core_pid_to_str): Constify.
3266 * linux-thread-db.c (thread_db_pid_to_str)
3267 (thread_db_extra_thread_info): Constify.
3268 * nto-tdep.c (nto_extra_thread_info): Constify.
3269 * nto-tdep.h (nto_extra_thread_info): Constify.
3270 * obsd-nat.c (obsd_pid_to_str): Constify.
3271 * procfs.c (procfs_pid_to_str): Constify.
3272 * ravenscar-thread.c (ravenscar_extra_thread_info)
3273 (ravenscar_pid_to_str): Constify.
3274 * remote-sim.c (gdbsim_pid_to_str): Constify.
3275 * remote.c (remote_threads_extra_info, remote_pid_to_str):
3276 Constify.
3277 * sol-thread.c (solaris_pid_to_str): Constify.
3278 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
3279 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
3280 * target.c (default_pid_to_str, target_pid_to_str)
3281 (normal_pid_to_str, default_pid_to_str): Constify.
3282 * target.h (target_ops::to_pid_to_str)
3283 (target_ops::to_extra_thread_info): Constify.
3284 (target_pid_to_str, normal_pid_to_str): Constify.
3285 * windows-nat.c (windows_pid_to_str): Constify.
3286 * gdbarch.sh (core_pid_to_str): Constify.
3287 * target-delegates.c: Regenerate.
3288 * gdbarch.h, gdbarch.c: Regenerate.
3289
69bbf465
PA
32902017-04-05 Pedro Alves <palves@redhat.com>
3291
3292 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
3293 the memory of the temporary warning_pre_print override.
3294 * utils.c (warning_pre_print): Constify.
3295 * utils.h (warning_pre_print): Constify.
3296
be47f9e8
PA
32972017-04-05 Pedro Alves <palves@redhat.com>
3298
3299 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
3300 (shell_command): New function.
3301 (make_command): Use std::string.
3302 (init_cli_cmds): Register shell_command instead of shell_escape.
3303
bde6261a
PA
33042017-04-05 Pedro Alves <palves@redhat.com>
3305
3306 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
3307 * tracepoint.c (default_collect): Don't initialize.
3308
b38ef47f
PA
33092017-04-05 Pedro Alves <palves@redhat.com>
3310
3311 * macroexp.c (macro_buffer::shared): Now a bool.
3312 (init_buffer): Update.
3313 (init_shared_buffer): Constify 'addr' parameter.
3314 (substitute_args, expand, macro_expand, macro_expand_next): Remove
3315 casts.
3316
f995bbe8
PA
33172017-04-05 Pedro Alves <palves@redhat.com>
3318
3319 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
3320 * disasm.c (set_disassembler_options): Constify local.
3321 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
3322
4a596fe2
SDJ
33232017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3324
3325 PR gdb/21352
3326 * tracefile.c (tsave_command): Fix argument parsing for '-r'
3327 option.
3328
2cad08ea
YQ
33292017-04-05 Yao Qi <yao.qi@linaro.org>
3330
3331 * frame.c (frame_unwind_register_unsigned): Call
3332 frame_unwind_register_value.
3333
55a98976
YQ
33342017-04-05 Yao Qi <yao.qi@linaro.org>
3335
3336 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
3337 Use gdb_test_multiple, and don't match anchor.
3338
4ac40124
PA
33392017-04-05 Pedro Alves <palves@redhat.com>
3340
3341 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
3342 (Write After Approval): Remove Simon Marchi.
3343
c053b654
PA
33442017-04-05 Pedro Alves <palves@redhat.com>
3345
3346 * common/gdb_optional.h (optional::optional): Make constexpr and
3347 initialize m_dummy.
3348
4c7bf4f9
JB
33492017-04-04 John Baldwin <jhb@FreeBSD.org>
3350
3351 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
3352 (amd64fbsd_jmp_buf_reg_offset): Remove.
3353 (amd64fbsd_supply_uthread): Remove function.
3354 (amd64fbsd_collect_uthread): Remove function.
3355 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
3356 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
3357 (x86_64-*-freebsd*): Remove bsd-uthread.o.
3358 (fbsd-nat.c): Update comment.
3359 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
3360 (i386fbsd_jmp_buf_reg_offset): Remove.
3361 (i386fbsd_supply_uthread): Remove function.
3362 (i386fbsd_collect_uthread): Remove function.
3363 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
3364
1e1a8bef
JB
33652017-04-04 John Baldwin <jhb@FreeBSD.org>
3366
3367 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
3368 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
3369 * NEWS: Mention that support for FreeBSD/alpha was removed.
3370 * alpha-fbsd-tdep.c: Delete file.
3371 * config/alpha/fbsd.mh: Delete file.
3372 * configure.host: Delete alpha*-*-freebsd* and
3373 alpha*-*-kfreebsd*-gnu.
3374 * configure.tgt: Delete alpha*-*-freebsd* and
3375 alpha*-*-kfreebsd*-gnu.
3376
49907934
JB
33772017-04-04 John Baldwin <jhb@FreeBSD.org>
3378
3379 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
3380 amd64bsd_store_inferior_registers): Use ptid from regcache.
3381
6f77053d
PA
33822017-04-04 Pedro Alves <palves@redhat.com>
3383
3384 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
3385 data fields, make them private and add "m_" prefixes.
3386 (lnp_state_machine::lnp_state_machine): New ctor.
3387 (record_line, check_line_address, handle_set_discriminator)
3388 (handle_set_address, handle_advance_pc, handle_special_opcode)
3389 (handle_advance_line, handle_set_file, handle_negate_stmt)
3390 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
3391 (end_sequence, advance_line): New methods.
3392 (m_gdbarch, m_record_lines_p): New fields.
3393 (lnp_reader_state): Delete.
3394 (dwarf_record_line): Rename to ...
3395 (lnp_state_machine::record_line): ... adjust.
3396 (init_lnp_state_machine): Delete.
3397 (lnp_state_machine::lnp_state_machine): New.
3398 (check_line_address): Rename to ...
3399 (lnp_state_machine::check_line_address): This.
3400 (dwarf_decode_lines_1): Remove reference to "reader_state".
3401 Adjust lnp_state_machine having a non-default ctor. Use bool.
3402 State machine internal state manipulation moved to
3403 lnp_state_machine methods.
3404
9c541725
PA
34052017-04-04 Pedro Alves <palves@redhat.com>
3406
3407 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3408 unittests/offset-type-selftests.c.
3409 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
3410 * common/offset-type.h: New file.
3411 * common/preprocessor.h: New file.
3412 * common/traits.h: New file.
3413 * common/valid-expr.h: New file.
3414 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
3415 sect_offset and cu_offset strong typedefs throughout.
3416 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
3417 typedefs throughout.
3418 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
3419 sect_offset and cu_offset strong typedefs throughout.
3420 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
3421 typedefs throughout.
3422 * gdbtypes.h: Include "common/offset-type.h".
3423 (cu_offset): Now an offset type (strong typedef) instead of a
3424 struct.
3425 (sect_offset): Likewise.
3426 (union call_site_parameter_u): Rename "param_offset" field to
3427 "param_cu_off".
3428 * unittests/offset-type-selftests.c: New file.
3429
ecfb656c
PA
34302017-04-04 Pedro Alves <palves@redhat.com>
3431
3432 * common/underlying.h: New file.
3433 * dwarf2read.c: Include "common/gdb_optional.h" and
3434 "common/underlying.h".
3435 (dir_index, file_name_index): New types.
3436 (file_entry): Use them.
3437 (file_entry::include): Use to_underlying.
3438 (line_header::add_file_name): Use dir_index.
3439 (read_formatted_entries): Use gdb::optional. Read form before
3440 writting to file_entry.
3441 (dwarf_decode_line_header): Use dir_index.
3442 (lnp_state_machine::current_file): Use to_underlying.
3443 (lnp_state_machine::file): Change type to file_name_index.
3444 (dwarf_record_line): Use to_underlying.
3445 (init_lnp_state_machine): Use file_name_index.
3446 (dwarf_decode_lines_1): Use dir_index and file_name_index.
3447
d194f1fe
PA
34482017-04-04 Pedro Alves <palves@redhat.com>
3449
3450 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
3451 operator bool, has_value and get methods.
3452
fff8551c
PA
34532017-04-04 Pedro Alves <palves@redhat.com>
3454
3455 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
3456 fields.
3457 (line_header): Initialize all data fields. Change type of
3458 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
3459 Change type of include_dirs to std::vector<const char *>. Remove
3460 num_include_dirs, include_dirs_size. Change type of file_names to
3461 std::vector<file_entry>. Remove num_file_names, file_names_size.
3462 (line_header::line_header): New.
3463 (line_header::add_include_dir, line_header::add_file_name): New
3464 methods.
3465 (line_header::include_dir_at): Remove NULL check.
3466 (line_header::file_name_at): Add const overload.
3467 (line_header_up): New unique_ptr typedef.
3468 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
3469 std::vector. Remove free_line_header call.
3470 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
3471 free_line_header call.
3472 (free_cu_line_header): Delete.
3473 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
3474 (setup_type_unit_groups): Use line_header_up instead of cleanups.
3475 Adjust to use std::vector.
3476 (free_line_header): Delete.
3477 (free_line_header_voidp): Use delete.
3478 (add_include_dir): Replace with ...
3479 (line_header::add_include_dir): ... this method. Use std::vector.
3480 (add_file_name): Replace with ...
3481 (line_header::add_file_name): ... this method. Use std::vector.
3482 (add_include_dir_stub): Delete.
3483 (read_formatted_entries): Remove memset.
3484 (dwarf_decode_line_header): Return a line_header_up instead of a
3485 raw pointer. Remove cleanup handling. Pass lambdas to
3486 read_formatted_entries. Adjust to use line_header methods.
3487 (dwarf_decode_lines_1): Adjust to use line_header methods.
3488 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
3489 use std::vector.
3490
d62a8ae2
SM
34912017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
3492
3493 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
3494 instead of struct ptid.
3495
db3a1dc7
AH
34962017-05-04 Alan Hayward <alan.hayward@arm.com>
3497
3498 * frame.c (get_frame_register_bytes): Unwind using value.
3499 (put_frame_register_bytes): Likewise.
3500
b1b45502
IB
35012017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
3502
3503 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
3504 aggregate-like.
3505
ec13808e
JK
35062017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
3509
12316564
YQ
35102017-03-29 Yao Qi <yao.qi@linaro.org>
3511
3512 * gdbthread.h (struct thread_info): Declare constructor and
3513 destructor. Add some in-class member initializers.
3514 * thread.c (free_thread): Remove.
3515 (init_thread_list): Call delete instead of free_thread.
3516 (new_thread): Call thread_info constructor.
3517 (thread_info::thread_info): New function.
3518 (thread_info::~thread_info): New function.
3519 (delete_thread_1): Call delete instead of free_thread.
3520 (make_cleanup_restore_current_thread): Move tp and frame to
3521 inner block.
3522
fe5f7374
AK
35232017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3524
3525 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
3526 (arc_skip_prologue): Likewise.
3527 (arc_make_frame_cache): Likewise.
3528 (arc_pv_get_operand): New function.
3529 (arc_is_in_prologue): Likewise.
3530 (arc_analyze_prologue): Likewise.
3531 (arc_print_frame_cache): Likewise.
3532 (MAX_PROLOGUE_LENGTH): New constant.
3533
eea78757
AK
35342017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3535
3536 * configure.tgt: Add arc-insn.o.
3537 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
3538 (dump_arc_instruction_command): New function.
3539 (arc_fprintf_disasm): Likewise.
3540 (arc_disassemble_info): Likewise.
3541 (arc_insn_get_operand_value): Likewise.
3542 (arc_insn_get_operand_value_signed): Likewise.
3543 (arc_insn_get_memory_base_reg): Likewise.
3544 (arc_insn_get_memory_offset): Likewise.
3545 (arc_insn_get_branch_target): Likewise.
3546 (arc_insn_dump): Likewise.
3547 (arc_insn_get_linear_next_pc): Likewise.
3548 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
3549 (arc_disassemble_info): Likewise.
3550 (arc_insn_get_branch_target): Likewise.
3551 (arc_insn_get_linear_next_pc): Likewise.
3552 * NEWS: Mention new "maint print arc arc-instruction".
3553
3be78afd
AK
35542017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3555
3556 * arc-tdep (maintenance_print_arc_list): New variable.
3557 (maintenance_print_arc_command): New function.
3558
296ec4fa
AK
35592017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
3560
3561 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
3562 Add "limm" and "reserved".
3563 (arc_cannot_fetch_register, arc_cannot_store_register): Add
3564 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
3565 * arc-tdep.h (arc_regnum): Likewise.
3566
f74f865e
MF
35672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3568
3569 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
3570 for THREADPTR register.
3571 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
3572 register.
3573 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
3574 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
3575 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
3576
0d0bf81a
MF
35772017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3578
3579 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
3580 registers above gdbarch_num_regs (gdbarch) as privileged in
3581 call0 ABI.
3582
0ce4291e
MF
35832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3584
3585 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
3586 for a single specified register or for all registers in
3587 a0_base..a0_base + C0_NREGS range.
3588 (supply_gregset_reg): Call regcache_raw_supply for a single
3589 specified register or for all registers in a0_base..a0_base +
3590 C0_NREGS range.
3591
c56054f9
MF
35922017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3593
3594 * arch/xtensa.h (C0_NREGS): Add definition.
3595 * xtensa-tdep.c (C0_NREGS): Remove definition.
3596
a4398628
MF
35972017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3598
3599 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
3600 Drop xtensa_default_isa initialization.
3601 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
3602
8c43009f
PA
36032017-03-27 Pedro Alves <palves@redhat.com>
3604
3605 * dwarf2read.c (file_entry) <dir_index>: Add comment.
3606 (file_entry::include_dir): New method.
3607 (line_header::include_dir_at, line_header::file_name_at): New
3608 methods.
3609 (setup_type_unit_groups, setup_type_unit_groups)
3610 (psymtab_include_file_name): Simplify using the new methods.
3611 (lnp_state_machine) <the_line_header>: New field.
3612 <file>: Add comment.
3613 (lnp_state_machine::current_file): New method.
3614 (dwarf_record_line): Simplify using the new methods.
3615 (init_lnp_state_machine): Initialize the "the_line_header" field.
3616 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
3617 Simplify using the new methods.
3618
a7e80b9e
PA
36192017-03-27 Pedro Alves <palves@redhat.com>
3620
3621 * cp-name-parser.y (make_empty): Delete.
3622 (demangler_special, nested_name, ptr_operator, array_indicator)
3623 (direct_declarator, declarator_1): Use fill_comp instead of
3624 make_empty.
3625
21047726
PA
36262017-03-27 Pedro Alves <palves@redhat.com>
3627
3628 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
3629 to ATTRIBUTE_PRINTF.
3630 * solib-target.c (library_list_start_list): Print "string" not
3631 "version".
3632 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
3633 gdb_xml_error call.
3634
d721ba37
PA
36352017-03-27 Pedro Alves <palves@redhat.com>
3636
3637 * dwarf2read.c (struct file_and_directory): New.
3638 (dwarf2_get_dwz_file): Adjust to use std::string.
3639 (dw2_get_file_names_reader): Adjust to use file_and_directory.
3640 (find_file_and_directory): Adjust to return a file_and_directory
3641 object.
3642 (read_file_scope): Adjust to use file_and_directory. Remove
3643 make_cleanup/do_cleanups calls.
3644 (open_and_init_dwp_file): Adjust to use std::string. Remove
3645 make_cleanup/do_cleanups calls.
3646 * python/python.c (do_start_initialization): Adjust to ldirname
3647 returning a std::string.
3648 * utils.c (ldirname): Now returns a std::string.
3649 * utils.h (ldirname): Change return type to std::string.
3650 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
3651 returning a std::string.
3652 * xml-tdesc.c (file_read_description_xml): Likewise.
3653
ed771251
AH
36542017-03-24 Alan Hayward <alan.hayward@arm.com>
3655
3656 * regcache.c (regcache_debug_print_register): New function.
3657 * regcache.h (regcache_debug_print_register): New declaration.
3658 * target.c (debug_print_register): Remove.
3659 (target_fetch_registers): Call regcache_debug_print_register.
3660 (target_store_registers): Likewise.
3661
568c1b9f
PB
36622017-03-24 Pádraig Brady <pbrady@fb.com>
3663
3664 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
3665 reference beyond the 'lh->include_dirs' array before accessing to
3666 it.
3667 (psymtab_include_file_name): Likewise.
3668 (dwarf_decode_lines_1): Likewise.
3669 (dwarf_decode_lines): Likewise.
3670 (file_file_name): Likewise.
3671
3e00d44f
SM
36722017-03-23 Simon Marchi <simon.marchi@ericsson.com>
3673
3674 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
3675 inferior_ptid.
3676 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3677 ps_lsetfpregs): Likewise.
3678 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
3679 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3680 ps_lsetfpregs): Likewise.
3681 * target.c (target_fetch_registers, target_store_registers):
3682 Remove asserts.
3683
077ae656
AH
36842017-03-23 Alan Hayward <alan.hayward@arm.com>
3685
3686 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
3687
1e2b521d
YQ
36882017-03-23 Yao Qi <yao.qi@linaro.org>
3689
3690 * aarch64-tdep.c (aarch64_process_record_test): Declare.
3691 (_initialize_aarch64_tdep): Register it.
3692 (aarch64_record_load_store): Handle PRFM instruction.
3693 (aarch64_process_record_test): New function.
3694
33877125
YQ
36952017-03-23 Yao Qi <yao.qi@linaro.org>
3696
3697 * aarch64-tdep.c (aarch64_record_load_store): Fix code
3698 indentation.
3699
a0eef940
YQ
37002017-03-23 Yao Qi <yao.qi@linaro.org>
3701
3702 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
3703
3f2a3564
PR
37042017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3705
3706 python/python.c (do_start_initialization): Fix memory leak.
3707
b67aeab0
SM
37082017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
3711 using get_ptrace_pid.
3712 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
3713 inferior_ptid.
3714 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
3715 inferior_ptid instead of pid.
3716
ffdbe864
YQ
37172017-03-22 Yao Qi <yao.qi@linaro.org>
3718
3719 * aarch64-tdep.c: Wrap locally used classes in anonymous
3720 namespace.
3721 * arm-tdep.c: Likewise.
3722 * linespec.c: Likewise.
3723 * ui-out.c: Likewise.
3724
9d736fbf
JG
37252017-03-22 Jonah Graham <jonah@kichwacoders.com>
3726
3727 PR gdb/19637
3728 * python/lib/gdb/printer/bound_registers.py: Import sys.
3729
3de88e9a
SM
37302017-03-21 Simon Marchi <simon.marchi@ericsson.com>
3731
3732 * windows-nat.c (do_windows_fetch_inferior_registers): Add
3733 windows_thread_info parameter and use it instead of
3734 current_thread.
3735 (windows_fetch_inferior_registers): Don't set current_thread,
3736 pass the thread to do_windows_fetch_inferior_registers. Use
3737 ptid from regcache instead of inferior_ptid.
3738 (do_windows_store_inferior_registers): Add windows_thread_info
3739 parameter and use it instead of current_thread.
3740 (windows_store_inferior_registers): Don't set current_thread,
3741 pass the thread to do_windows_store_inferior_registers. Use
3742 ptid from regcache instead of inferior_ptid.
3743
0e7b8f61
SM
37442017-03-21 Simon Marchi <simon.marchi@ericsson.com>
3745
3746 * ser-mingw.c (ser_windows_raw): Remove reference to
3747 struct serial::current_timeout.
3748
5badf10a
IR
37492017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
3750
3751 PR tdep/20928
3752 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
3753 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
3754 (sparc64_fsr_type): Fix %fsr decoding.
3755
cee59b3f
TW
37562017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
3757
3758 * python/py-record-btrace.c (btpy_insn_data): Change return type
3759 for Python 2.
3760
639a9038
SM
37612017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * spu-linux-nat.c (spu_fetch_inferior_registers,
3764 spu_store_inferior_registers): Use ptid from regcache, set and
3765 restore inferior_ptid.
3766 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
3767 Likewise.
3768
bcc0c096
SM
37692017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
3770
3771 * i386-linux-nat.c (fetch_register, store_register,
3772 i386_linux_fetch_inferior_registers,
3773 i386_linux_store_inferior_registers): Use ptid from regcache.
3774 * ia64-linux-nat.c (ia64_linux_fetch_register,
3775 ia64_linux_store_register): Likewise.
3776 * inf-ptrace.c (inf_ptrace_fetch_register,
3777 inf_ptrace_store_register): Likewise.
3778 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
3779 m32r_linux_store_inferior_registers): Likewise.
3780 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
3781 m68kbsd_store_inferior_registers): Likewise.
3782 * m68k-linux-nat.c (fetch_register, store_register,
3783 m68k_linux_fetch_inferior_registers,
3784 m68k_linux_store_inferior_registers): Likewise.
3785 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
3786 m88kbsd_store_inferior_registers): Likewise.
3787 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
3788 mips_fbsd_store_inferior_registers): Likewise.
3789 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
3790 mips64_linux_regsets_store_registers): Likewise.
3791 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3792 mipsnbsd_store_inferior_registers): Likewise.
3793 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
3794 mips64obsd_store_inferior_registers): Likewise.
3795 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
3796 Likewise.
3797 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
3798 ppcfbsd_store_inferior_registers): Likewise.
3799 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
3800 ppc_linux_store_inferior_registers): Likewise.
3801 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
3802 ppcnbsd_store_inferior_registers): Likewise.
3803 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
3804 ppcobsd_store_registers): Likewise.
3805 * procfs.c (procfs_fetch_registers, procfs_store_registers):
3806 Likewise.
3807 * ravenscar-thread.c (ravenscar_fetch_registers,
3808 ravenscar_store_registers, ravenscar_prepare_to_store):
3809 Likewise.
3810 * record-btrace.c (record_btrace_fetch_registers,
3811 record_btrace_store_registers, record_btrace_prepare_to_store):
3812 Likewise.
3813 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3814 Lookup inferior using ptid from regcache, instead of
3815 current_inferior.
3816 * remote.c (remote_fetch_registers, remote_store_registers): Use
3817 ptid from regcache.
3818 * rs6000-nat.c (fetch_register, store_register): Likewise.
3819 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
3820 s390_linux_store_inferior_registers): Likewise.
3821 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
3822 shnbsd_store_inferior_registers): Likewise.
3823 * sol-thread.c (sol_thread_fetch_registers,
3824 sol_thread_store_registers): Likewise.
3825 * sparc-nat.c (sparc_fetch_inferior_registers,
3826 sparc_store_inferior_registers): Likewise.
3827 * tilegx-linux-nat.c (fetch_inferior_registers,
3828 store_inferior_registers): Likewise.
3829 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
3830 vaxbsd_store_inferior_registers): Likewise.
3831 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
3832 store_xtregs): Likewise.
3833
c0f55cc6
AV
38342017-03-20 Artemiy Volkov <artemiyv@acm.org>
3835
3836 PR gdb/14441
3837 * NEWS: Mention support for rvalue references in GDB and python.
3838 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
3839 supports both lvalue and rvalue references.
3840
15c0a2a9
AV
38412017-03-20 Artemiy Volkov <artemiyv@acm.org>
3842
3843 PR gdb/14441
3844 * gdbtypes.c (rank_one_type): Implement overloading
3845 resolution rules regarding rvalue references.
3846
aa006118
AV
38472017-03-20 Artemiy Volkov <artemiyv@acm.org>
3848
3849 PR gdb/14441
3850 * aarch64-tdep.c (aarch64_type_align)
3851 (aarch64_extract_return_value, aarch64_store_return_value): Change
3852 lvalue reference type checks to general reference type checks.
3853 * amd64-tdep.c (amd64_classify): Likewise.
3854 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3855 Likewise.
3856 * arm-tdep.c (arm_type_align, arm_extract_return_value)
3857 (arm_store_return_value): Likewise.
3858 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
3859 * c-typeprint.c (c_print_type): Likewise.
3860 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
3861 (cplus_number_of_children, cplus_describe_child): Likewise.
3862 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3863 * completer.c (expression_completer): Likewise.
3864 * cp-support.c (make_symbol_overload_list_adl_namespace):
3865 Likewise.
3866 * darwin-nat-info.c (info_mach_region_command): Likewise.
3867 * dwarf2loc.c (entry_data_value_coerce_ref)
3868 (value_of_dwarf_reg_entry): Likewise.
3869 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
3870 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
3871 Likewise.
3872 * findvar.c (extract_typed_address, store_typed_address):
3873 Likewise.
3874 * gdbtypes.c (rank_one_type): Likewise.
3875 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
3876 * infcall.c (value_arg_coerce): Likewise.
3877 * language.c (pointer_type): Likewise.
3878 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
3879 Likewise.
3880 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
3881 * mn10300-tdep.c (mn10300_type_align): Likewise.
3882 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
3883 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
3884 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
3885 Likewise.
3886 * printcmd.c (print_formatted, x_command): Likewise.
3887 * python/py-type.c (typy_get_composite, typy_template_argument):
3888 Likewise.
3889 * python/py-value.c (valpy_referenced_value)
3890 (valpy_get_dynamic_type, value_has_field): Likewise.
3891 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
3892 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
3893 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
3894 * spu-tdep.c (spu_scalar_value_p): Likewise.
3895 * symtab.c (lookup_symbol_aux): Likewise.
3896 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
3897 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
3898 Likewise.
3899 * valops.c (value_cast_pointers, value_cast)
3900 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
3901 (value_struct_elt, value_struct_elt_bitpos)
3902 (value_find_oload_method_list, find_overload_match)
3903 (value_rtti_indirect_type): Likewise.
3904 * valprint.c (val_print_scalar_type_p, generic_val_print):
3905 Likewise.
3906 * value.c (value_actual_type, value_as_address, unpack_long)
3907 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
3908 (coerce_ref): Likewise.
3909 * varobj.c (varobj_get_value_type): Likewise.
3910
3fcf899d
AV
39112017-03-20 Artemiy Volkov <artemiyv@acm.org>
3912
3913 PR gdb/14441
3914 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
3915 table of constants.
3916 * python/lib/gdb/command/explore.py: Support exploring values
3917 of rvalue reference types.
3918 * python/lib/gdb/types.py: Implement get_basic_type() for
3919 rvalue reference types.
3920 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
3921 constant.
3922 * python/py-value.c (valpy_getitem): Add an rvalue reference
3923 check.
3924 (valpy_reference_value): Add new parameter "refcode".
3925 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
3926 New wrappers for valpy_reference_value().
3927 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
3928 (gdbpy_invoke_xmethod): Likewise.
3929
4297a3f0
AV
39302017-03-20 Artemiy Volkov <artemiyv@acm.org>
3931
3932 PR gdb/14441
3933 * dwarf2read.c (process_die, read_type_die_1): Handle the
3934 DW_TAG_rvalue_reference_type DIE.
3935 (read_tag_reference_type): Add new parameter "refcode".
3936
e1cb3213
AV
39372017-03-20 Artemiy Volkov <artemiyv@acm.org>
3938
3939 PR gdb/14441
3940 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
3941 (c_type_print_modifier, c_type_print_varspec_suffix)
3942 (c_type_print_base): Support printing rvalue reference types.
3943 * c-valprint.c (c_val_print, c_value_print): Support printing
3944 rvalue reference values.
3945
e4347c89
AV
39462017-03-20 Artemiy Volkov <artemiyv@acm.org>
3947
3948 PR gdb/14441
3949 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
3950 typename.
3951 * cp-support.c (replace_typedefs): Handle
3952 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3953 * python/py-type.c (typy_lookup_type): Likewise.
3954
53cc15f5
AV
39552017-03-20 Artemiy Volkov <artemiyv@acm.org>
3956
3957 PR gdb/14441
3958 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
3959 * parse.c (insert_type): Change assert statement.
3960 (follow_types): Handle rvalue reference types.
3961 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
3962 constant.
3963
a65cfae5
AV
39642017-03-20 Artemiy Volkov <artemiyv@acm.org>
3965
3966 PR gdb/14441
3967 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
3968 value_ref() interface.
3969 * c-valprint.c (c_value_print): Likewise.
3970 * infcall.c (value_arg_coerce): Likewise.
3971 * python/py-value.c (valpy_reference_value): Likewise.
3972 * valops.c (value_cast, value_reinterpret_cast)
3973 (value_dynamic_cast, typecmp): Likewise.
3974 (value_ref): Parameterize by kind of return value reference type.
3975 * value.h (value_ref): Add new parameter "refcode".
3976
3b224330
AV
39772017-03-20 Artemiy Volkov <artemiyv@acm.org>
3978
3979 PR gdb/14441
3980 * dwarf2read.c (read_tag_reference_type): Use
3981 lookup_lvalue_reference_type() instead of lookup_reference_type().
3982 * eval.c (evaluate_subexp_standard): Likewise.
3983 * f-exp.y: Likewise.
3984 * gdbtypes.c (make_reference_type, lookup_reference_type):
3985 Generalize with rvalue reference types.
3986 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
3987 convenience wrappers for lookup_reference_type().
3988 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
3989 reference kind parameter.
3990 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
3991 wrappers for lookup_reference_type().
3992 * guile/scm-type.c (gdbscm_type_reference): Use
3993 lookup_lvalue_reference_type() instead of lookup_reference_type().
3994 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
3995 * parse.c (follow_types): Likewise.
3996 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
3997 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
3998 Likewise.
3999 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
4000 (gdbpy_invoke_xmethod): Likewise.
4001 * stabsread.c: Provide extra argument to make_reference_type()
4002 call.
4003 * valops.c (value_ref, value_rtti_indirect_type): Use
4004 lookup_lvalue_reference_type() instead of lookup_reference_type().
4005
f9aeb8d4
AV
40062017-03-20 Artemiy Volkov <artemiyv@acm.org>
4007
4008 PR gdb/14441
4009 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
4010 (TYPE_IS_REFERENCE): New macro.
4011 (struct type): Add rvalue_reference_type field.
4012 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
4013
51457a05
MAL
40142017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
4015
4016 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
4017 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
4018 New function definition.
4019 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
4020 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
4021 New function declaration.
4022 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
4023 * mi/mi-interp.h: New file.
4024 * solib.c (info_sharedlibrary_command): Replace for loop with
4025 ALL_SO_LIBS macro
4026 * solib.h (update_solib_list): New function declaration.
4027 (so_list_head): Move macro.
4028 * solist.h (ALL_SO_LIBS): New macro.
4029
e696b3ad
MAL
40302017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
4031
4032 * infcmd.c (post_create_inferior): Remove unused argument in
4033 call to solib_add.
4034 * remote.c (remote_start_remote): Likewise.
4035 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
4036 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
4037 (enable_break): Likewise.
4038 * solib.c (update_solib_list): Remove unused target argument
4039 and its documentation.
4040 (solib_add): Remove unused target argument. Remove unused
4041 argument in call to update_solib_list.
4042 (info_sharedlibrary_command): Remove unused argument in call
4043 to update_solib_list.
4044 (sharedlibrary_command): Remove unused argument in call to
4045 solib_add.
4046 (handle_solib_event): Likewise.
4047 (reload_shared_libraries): Likewise.
4048 * solib.h (solib_add): Remove unused target argument.
4049
dcb84eda
AA
40502017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
4051
4052 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
4053 (s390_displaced_step_fixup): Cover relative branches with the
4054 default fixup handling. This fixes lack of support for some
4055 relative branch instructions.
4056
d9cb6cdc
SM
40572017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4058
4059 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
4060 ptid from regcache.
4061
1afaf9f4
SM
40622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4063
4064 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
4065 i386_darwin_store_inferior_registers): Use ptid from regcache.
4066
aac12e24
SM
40672017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4068
4069 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
4070 i386bsd_store_inferior_registers): Use ptid from regcache.
4071
bbe1eef1
SM
40722017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
4075 hppaobsd_store_registers): Use ptid from regcache.
4076
10799020
SM
40772017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4078
4079 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
4080 hppanbsd_store_registers): Use ptid from regcache.
4081
00204cf7
SM
40822017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
4085 from regcache. Use get_ptrace_pid.
4086
11a33714
SM
40872017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * corelow.c (get_core_register_section): Use ptid from regcache,
4090 update doc.
4091
317cd492
SM
40922017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4093
4094 * bsd-uthread.c (bsd_uthread_fetch_registers,
4095 bsd_uthread_store_registers): Use ptid from regcache, set and
4096 restore inferior_ptid.
4097
9ac8a7c2
SM
40982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4101 fetch_fp_regs, store_register, store_regs, store_fp_register,
4102 store_fp_regs): Use ptid from regcache.
4103
4ac4bb6a
SM
41042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4105
4106 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
4107 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
4108 store_vfp_regs): Use ptid from regcache.
4109
9bcbdca8
PA
41102017-03-17 Pedro Alves <palves@redhat.com>
4111
4112 PR remote/21188
4113 * ser-base.c (ser_base_wait_for): Add comment.
4114 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
4115 version.
4116 * ser-unix.c (hardwire_raw): Remove reference to
4117 scb->current_timeout.
4118 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
4119 (hardwire_ops): Install ser_base_readchar instead of
4120 hardwire_readchar.
4121 * serial.h (struct serial) <current_timeout, timeout_remaining>:
4122 Remove fields.
4123
7503099f
JG
41242017-03-17 Jonah Graham <jonah@kichwacoders.com>
4125
4126 PR gdb/19637
4127 * python/lib/gdb/printer/bound_registers.py: Add support for
4128 Python 3.
4129
7942e96e
AA
41302017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4131
4132 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
4133 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
4134 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
4135 byte_offset to subobj_byte_offset. Fix the handling of
4136 DWARF_VALUE_STACK on big-endian targets when coming via an
4137 implicit pointer.
4138 (dwarf2_evaluate_loc_desc): Adjust call to
4139 dwarf2_evaluate_loc_desc_full.
4140 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
4141 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
4142
ba14f379
YQ
41432017-03-16 Yao Qi <yao.qi@linaro.org>
4144
4145 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
4146 and REVSH instructions.
4147
b121eeb9
YQ
41482017-03-16 Yao Qi <yao.qi@linaro.org>
4149
4150 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
4151 (arm_record_test): Declare.
4152 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
4153 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
4154 align with the manual.
4155 (thumb_record_misc): Adjust the code order to align with the
4156 manual.
4157 (thumb2_record_decode_insn_handler): Fix instruction matching.
4158 (instruction_reader_thumb): New class.
4159 (arm_record_test): New function.
4160
728a7913
YQ
41612017-03-16 Yao Qi <yao.qi@linaro.org>
4162
4163 * arm-tdep.c (abstract_memory_reader): New class.
4164 (instruction_reader): New class.
4165 (extract_arm_insn): Add argument 'reader'. Callers updated.
4166 (decode_insn): Likewise.
4167
34b43320
DE
41682017-03-16 Doug Evans <dje@google.com>
4169
a7c0469f
DE
4170 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
4171 member. Change type of TYPE member to SCM. All uses updated.
4172 (lsscm_make_lazy_string_smob): Add assert.
4173 (lsscm_make_lazy_string): Flag bad length values.
4174 (lsscm_elt_type): New function.
4175 (gdbscm_lazy_string_to_value): Rewrite to use
4176 lsscm_safe_lazy_string_to_value.
4177 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
4178 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
4179 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
4180 in incoming type.
4181 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
4182 * guile/scm-type.c (tyscm_scm_to_type): New function.
4183
41842017-03-15 Doug Evans <dje@google.com>
4185
34b43320
DE
4186 PR python/17728, python/18439, python/18779
4187 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
4188 member. Change type of TYPE member to PyObject *. All uses updated.
4189 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
4190 (gdbpy_create_lazy_string_object): Flag bad length values.
4191 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
4192 Handle typedefs in incoming type.
4193 (stpy_lazy_string_elt_type): New function.
4194 (gdbpy_extract_lazy_string): Call it.
4195 * python/py-value.c (valpy_lazy_string): Flag bad length values.
4196 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
4197 typedefs in incoming type.
4198
a3a5fecc
DE
41992017-03-16 Doug Evans <dje@google.com>
4200
4201 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
4202 * guile/scm-type.c (tyscm_scm_to_type): New function.
4203
28f1c605
JW
42042017-03-16 Jiong Wang <jiong.wang@arm.com>
4205
4206 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
4207 "ULONGEST" for "skip".
4208
87c336f6
AA
42092017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
4210
4211 PR gdb/21220
4212 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
4213 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
4214 (inf_ptrace_peek_poke): ...here. New function. Now also loop
4215 over ptrace peek/poke until end of buffer or error.
4216
cf81cf60
SM
42172017-03-14 Simon Marchi <simon.marchi@ericsson.com>
4218
4219 * parse.c (length_of_subexp): Make static.
4220 * parser-defs.h (length_of_subexp): Remove.
4221
a379284a
AA
42222017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
4223
4224 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
4225 as well.
4226
8a6200ba
PA
42272017-03-14 Pedro Alves <palves@redhat.com>
4228
4229 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
4230 (main): Use std::unique_ptr. Remove calls to
4231 cp_demangled_name_parse_free.
4232
f79ec206
SM
42332017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4234
4235 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
4236 alphabsd_store_inferior_registers): Use regcache->ptid instead
4237 of inferior_ptid.
4238
edb5fb00
SM
42392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * aix-thread.c (aix_thread_fetch_registers,
4242 aix_thread_store_registers): Use regcache->ptid instead of
4243 inferior_ptid.
4244
55119686
SM
42452017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * aarch64-linux-nat.c (fetch_gregs_from_thread,
4248 store_gregs_to_thread, fetch_fpregs_from_thread,
4249 store_fpregs_to_thread): Use regcache->ptid instead of
4250 inferior_ptid.
4251
6a06fbb7
SM
42522017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4253
4254 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
4255 amd64_linux_fetch_inferior_registers): Use regcache->ptid
4256 instead of inferior_ptid.
4257
c6386875
SM
42582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 * target.c (target_fetch_registers, target_store_registers): Add
4261 assert.
4262
ddaaf0fb
SM
42632017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4264
4265 * regcache.h (regcache_get_ptid): New function.
4266 * regcache.c (regcache_get_ptid): New function.
4267
b9da89d1 42682017-03-13 Mark Wielaard <mark@klomp.org>
4269
4270 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
4271
5f4d1085
KS
42722017-03-10 Keith Seitz <keiths@redhat.com>
4273
4274 PR c++/8218
4275 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
4276
c65d6b55
PA
42772017-03-08 Pedro Alves <palves@redhat.com>
4278
4279 PR gdb/18360
4280 * infrun.c (start_step_over, do_target_resume, resume)
4281 (restart_threads): Assert we're not resuming a thread that is
4282 meant to be stopped.
4283 (infrun_thread_stop_requested_callback): Delete.
4284 (infrun_thread_stop_requested): If the thread is internally
4285 stopped, queue a pending stop event and clear the thread's
4286 inline-frame state.
4287 (handle_stop_requested): New function.
4288 (handle_syscall_event, handle_inferior_event_1): Use
4289 handle_stop_requested.
4290 (handle_stop_requested): New function.
4291 (handle_signal_stop): Set the thread's stop_signal here instead of
4292 at caller.
4293 (finish_step_over): Clear step over info unconditionally.
4294 (handle_signal_stop): If the user had interrupted the event
4295 thread, consider the stop a random signal.
4296 (handle_signal_stop) <signal arrived while stepping over
4297 breakpoint>: Don't restart threads here.
4298 (stop_waiting): Don't clear step-over info here.
4299
15c22686
PA
43002017-03-08 Pedro Alves <palves@redhat.com>
4301
4302 PR 21206
4303 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
4304 goes to argument 2, not 1.
4305
6e5d74e7
PA
43062017-03-08 Pedro Alves <palves@redhat.com>
4307
4308 PR cli/21218
4309 * top.c (gdb_readline_wrapper): Avoid passing NULL to
4310 display_gdb_prompt.
4311 (command_line_input): Add comment.
4312
9753a2f6
PA
43132017-03-08 Pedro Alves <palves@redhat.com>
4314
4315 PR tui/21216
4316 * tui/tui-file.c (tui_file::write): New.
4317 * tui/tui-file.h (tui_file): Override "write".
4318 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
4319 factored out from ...
4320 (tui_puts): ... here.
4321 (tui_putc): Use them.
4322 (tui_write): New function.
4323 * tui/tui-io.h (tui_write): Declare.
4324
1672e0d9
SDJ
43252017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4326
4327 * Makefile.in (SFILES): Replace "environ.c" with
4328 "common/environ.c".
4329 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
4330 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
4331 to...
4332 * common/environ.c: ... here.
4333 * environ.h: Moved to...
4334 * common/environ.h: ... here.
4335
f7bb4e3a
PB
43362017-03-07 Peter Bergner <bergner@vnet.ibm.com>
4337
4338 * gdbarch.sh (pstring_ptr): New static function.
4339 (gdbarch_disassembler_options): Use it.
4340 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
4341 not valid_disassembler_option->name.
4342 * gdbarch.c: Regenerate.
4343
e45ced6c
PB
43442017-03-07 Peter Bergner <bergner@vnet.ibm.com>
4345
4346 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
4347
5f6fd321
PA
43482017-03-07 Pedro Alves <palves@redhat.com>
4349
4350 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
4351
6dbb839a 43522017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
4353
4354 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
4355 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
4356 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 4357 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 4358
d274ecf4
SM
43592017-03-06 Simon Marchi <simon.marchi@ericsson.com>
4360
4361 * xtensa-linux-nat.c (fetch_gregs): Remove const.
4362
df97be55
SM
43632017-03-03 Simon Marchi <simon.marchi@ericsson.com>
4364
4365 * remote.c (remote_add_target_side_commands): Use range-based
4366 for loop.
4367
7d45f3df
YQ
43682017-03-03 Yao Qi <yao.qi@linaro.org>
4369
4370 PR gdb/21165
4371 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
4372 value is lazy.
4373 * valprint.c (common_val_print): Likewise.
4374
65b48a81
PB
43752017-02-28 Peter Bergner <bergner@vnet.ibm.com>
4376
4377 * NEWS: Mention new set/show disassembler-options commands.
4378 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
4379 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
4380 (prospective_options): New static variable.
4381 (gdb_disassembler::gdb_disassembler): Initialize
4382 m_di.disassembler_options.
4383 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
4384 (get_disassembler_options): New function.
4385 (set_disassembler_options): Likewise.
4386 (set_disassembler_options_sfunc): Likewise.
4387 (show_disassembler_options_sfunc): Likewise.
4388 (disassembler_options_completer): Likewise.
4389 (_initialize_disasm): Likewise.
4390 * disasm.h (get_disassembler_options): New prototype.
4391 (set_disassembler_options): Likewise.
4392 * gdbarch.sh (gdbarch_disassembler_options): New variable.
4393 (gdbarch_verify_disassembler_options): Likewise.
4394 * gdbarch.c: Regenerate.
4395 * gdbarch.h: Likewise.
4396 * arm-tdep.c (num_disassembly_options): Delete.
4397 (set_disassembly_style): Likewise.
4398 (arm_disassembler_options): New static variable.
4399 (set_disassembly_style_sfunc): Convert short style name into long
4400 option name. Call set_disassembler_options.
4401 (show_disassembly_style_sfunc): New function.
4402 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
4403 set_gdbarch_verify_disassembler_options.
4404 (_initialize_arm_tdep): Delete regnames variable and update callers.
4405 (arm_disassembler_options): Initialize.
4406 (disasm_options): New variable.
4407 (num_disassembly_options): Rename from this...
4408 (num_disassembly_styles): ...to this. Compute by scanning through
4409 disasm_options.
4410 (valid_disassembly_styles): Initialize using disasm_options.
4411 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
4412 set_arm_regname_option.
4413 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
4414 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
4415 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
4416 set_gdbarch_verify_disassembler_options.
4417 * s390-tdep.c (s390_disassembler_options): New static variable.
4418 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
4419 set_gdbarch_verify_disassembler_options.
4420
d538e36d
SM
44212017-02-27 Simon Marchi <simon.marchi@ericsson.com>
4422
4423 * remote.c (remote_add_target_side_condition): Remove "struct"
4424 keyword from range-based for loop.
4425
83621223
SM
44262017-02-27 Simon Marchi <simon.marchi@ericsson.com>
4427
4428 * remote.c (remote_add_target_side_condition): Use range-based
4429 for loop. Update comment.
4430
2123df0e
YQ
44312017-02-27 Yao Qi <yao.qi@linaro.org>
4432
4433 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
4434
8e368124
AH
44352017-02-26 Alan Hayward <alan.hayward@arm.com>
4436
4437 * regcache.c (regcache_raw_update): New function.
4438 (regcache_raw_read): Move code to regcache_raw_update.
4439 * regcache.h (regcache_raw_update): New declaration.
4440 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
4441
a49dd8dd
JK
44422017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4443
4444 * dwarf2read.c (create_debug_type_hash_table): Initialize
4445 header.signature and header.type_offset_in_tu.
4446
34e4bae9
PA
44472017-02-24 Pedro Alves <palves@redhat.com>
4448
4449 * symtab.c (make_file_symbol_completion_list_1): Use
4450 add_symtab_completions.
4451
b0e4b369
AH
44522017-02-24 Alan Hayward <alan.hayward@arm.com>
4453
4454 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
4455
975c21ab
AH
44562017-02-24 Alan Hayward <alan.hayward@arm.com>
4457
4458 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
4459 I386_MAX_REGISTER_SIZE.
4460 (i386_pseudo_register_write): Likewise.
4461 (i386_process_record): Likewise.
4462 * i387-tdep.c (i387_supply_xsave): Likewise.
4463 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
4464 (store_register): Likewise.
4465
14bc53a8
PA
44662017-02-23 Pedro Alves <palves@redhat.com>
4467
4468 * ada-lang.c: Include "common/function-view.h".
4469 (ada_iterate_over_symbols): Adjust to use function_view as
4470 callback type.
4471 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
4472 (ada_make_symbol_completion_list): Use a lambda.
4473 (ada_exc_search_name_matches): Delete.
4474 (name_matches_regex): New.
4475 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
4476 * compile/compile-c-support.c: Include "common/function-view.h".
4477 (print_one_macro): Change prototype to accept a ui_file pointer.
4478 (write_macro_definitions): Use a lambda.
4479 * dwarf2read.c: Include "common/function-view.h".
4480 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4481 (dw2_expand_symtabs_matching): Adjust to use function_view as
4482 callback type.
4483 * language.h: Include "common/function-view.h".
4484 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
4485 function_view as callback type.
4486 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
4487 * linespec.c: Include "common/function-view.h".
4488 (collect_info::add_symbol): New method.
4489 (struct symbol_and_data_callback, iterate_inline_only, struct
4490 symbol_matcher_data, iterate_name_matcher): Delete.
4491 (iterate_over_all_matching_symtabs): Adjust to use function_view
4492 as callback type and lambdas.
4493 (iterate_over_file_blocks): Adjust to use function_view as
4494 callback type.
4495 (decode_compound_collector): Now a class with private fields.
4496 (decode_compound_collector::release_symbols): New method.
4497 (collect_one_symbol): Rename to...
4498 (decode_compound_collector::operator()): ... this and adjust.
4499 (lookup_prefix_sym): decode_compound_collector construction bits
4500 move to decode_compound_collector ctor. Pass the
4501 decode_compound_collector object directly as callback. Remove
4502 cleanups and use decode_compound_collector::release_symbols
4503 instead.
4504 (symtab_collector): Now a class with private fields.
4505 (symtab_collector::release_symtabs): New method.
4506 (add_symtabs_to_list): Rename to...
4507 (symtab_collector::operator()): ... this and adjust.
4508 (collect_symtabs_from_filename): symtab_collector construction
4509 bits move to symtab_collector ctor. Pass the symtab_collector
4510 object directly as callback. Remove cleanups and use
4511 symtab_collector::release_symtabs instead.
4512 (collect_symbols): Delete.
4513 (add_matching_symbols_to_info): Use lambdas.
4514 * macrocmd.c (print_macro_callback): Delete.
4515 (info_macro_command): Use a lambda.
4516 (info_macros_command): Pass print_macro_definition as callable
4517 directly.
4518 (print_one_macro): Remove 'ignore' parameter.
4519 (macro_list_command): Adjust.
4520 * macrotab.c (macro_for_each_data::fn): Now a function_view.
4521 (macro_for_each_data::user_data): Delete field.
4522 (foreach_macro): Adjust to call the function_view.
4523 (macro_for_each): Adjust to use function_view as callback type.
4524 (foreach_macro_in_scope): Adjust to call the function_view.
4525 (macro_for_each_in_scope): Adjust to use function_view as callback
4526 type.
4527 * macrotab.h: Include "common/function-view.h".
4528 (macro_callback_fn): Declare a prototype instead of a pointer.
4529 Remove "user_data" parameter.
4530 (macro_for_each, macro_for_each_in_scope): Adjust to use
4531 function_view as callback type.
4532 * psymtab.c (partial_map_expand_apply)
4533 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
4534 Adjust to use function_view as callback type and to return bool.
4535 (psym_expand_symtabs_matching): Adjust to use function_view as
4536 callback types.
4537 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
4538 to use function_view as callback type and to return bool.
4539 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
4540 callback types.
4541 * symfile.c (expand_symtabs_matching): Adjust to use function_view
4542 as callback types.
4543 * symfile.h: Include "common/function-view.h".
4544 (expand_symtabs_file_matcher_ftype)
4545 (expand_symtabs_symbol_matcher_ftype)
4546 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
4547 return bool.
4548 (quick_symbol_functions::map_symtabs_matching_filename)
4549 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
4550 function_view as callback type and return bool.
4551 (expand_symtabs_matching): Adjust to use function_view as callback
4552 type.
4553 (maintenance_expand_name_matcher)
4554 (maintenance_expand_file_matcher): Delete.
4555 (maintenance_expand_symtabs): Use lambdas.
4556 * symtab.c (iterate_over_some_symtabs): Adjust to use
4557 function_view as callback types and return bool.
4558 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
4559 of a cleanup.
4560 (lookup_symtab_callback): Delete.
4561 (lookup_symtab): Use a lambda.
4562 (iterate_over_symbols): Adjust to use function_view as callback
4563 type.
4564 (struct search_symbols_data, search_symbols_file_matches)
4565 (search_symbols_name_matches): Delete.
4566 (search_symbols): Use a pair of lambdas.
4567 (struct add_name_data, add_macro_name, symbol_completion_matcher)
4568 (symtab_expansion_callback): Delete.
4569 (default_make_symbol_completion_list_break_on_1): Use lambdas.
4570 * symtab.h: Include "common/function-view.h".
4571 (iterate_over_some_symtabs): Adjust to use function_view as
4572 callback type and return bool.
4573 (iterate_over_symtabs): Adjust to use function_view as callback
4574 type.
4575 (symbol_found_callback_ftype): Remove 'data' parameter and return
4576 bool.
4577 (iterate_over_symbols): Adjust to use function_view as callback
4578 type.
4579
07e253aa
PA
45802017-02-23 Pedro Alves <palves@redhat.com>
4581
4582 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
4583 (%.o) <unittests/%.c>: New pattern.
4584 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
4585 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
4586 * common/function-view.h: New file.
4587 * unittests/function-view-selftests.c: New file.
4588 * configure: Regenerate.
4589
8eaf5320
SM
45902017-02-23 Simon Marchi <simon.marchi@ericsson.com>
4591
4592 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
4593 inferior_ptid.
4594 * go32-nat.c (go32_thread_alive): Likewise.
4595
38768751
YQ
45962017-02-23 Yao Qi <yao.qi@linaro.org>
4597
4598 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
4599 delete.
4600
0a8beaba
YQ
46012017-02-23 Yao Qi <yao.qi@linaro.org>
4602
4603 * varobj.c (varobj_clear_saved_item): Use delete instead of
4604 xfree.
4605 (update_dynamic_varobj_children): Likewise.
4606
58fdfd2c
JK
46072017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4608
4609 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
4610
1b90b139
SM
46112017-02-21 Simon Marchi <simon.marchi@ericsson.com>
4612
4613 * common/enum-flags.h (enum_flags::enum_flags): Initialize
4614 m_enum_value to 0 in default constructor.
4615
2039d74e
EBM
46162017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4617
4618 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
4619 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
4620 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
4621 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
4622 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
4623 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
4624 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
4625 IS_STORE_CONDITIONAL_INSN.
4626
7814882a
JK
46272017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4628
4629 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
4630
0ae60b63
JK
46312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4632
4633 * NEWS (Changes since GDB 7.12): Add DWARF-5.
4634
0224619f
JK
46352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4636
4637 * dwarf2read.c (skip_one_die, read_attribute_value)
4638 (dwarf2_const_value_attr, dump_die_shallow)
4639 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4640 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
4641
0af92d60
JK
46422017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4643
4644 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
4645 (dwarf_parse_macro_header): Accept DWARF version 5.
4646 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
4647
216f72a1
JK
46482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4649
4650 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
4651 DW_AT_GNU_*.
4652 * common/common-exceptions.h (enum errors): Likewise.
4653 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
4654 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
4655 (dwarf_expr_context::execute_stack_op): Likewise.
4656 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
4657 Likewise.
4658 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
4659 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4660 (show_entry_values_debug, call_site_to_target_addr)
4661 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
4662 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
4663 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
4664 (value_of_dwarf_block_entry, indirect_pieced_value)
4665 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
4666 (disassemble_dwarf_expression): Likewise.
4667 * dwarf2read.c (process_die, inherit_abstract_dies)
4668 (read_call_site_scope): Likewise.
4669 * gdbtypes.h (struct func_type, struct call_site_parameter)
4670 (struct call_site): Likewise.
4671 * stack.c (read_frame_arg): Likewise.
4672 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
4673
43988095
JK
46742017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 * defs.h (read_unsigned_leb128): New declaration.
4677 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
4678 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
4679 (dwarf2_find_location_expression): Call also
4680 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
4681 * dwarf2loc.h (dwarf2_version): New declaration.
4682 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
4683 rnglists.
4684 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
4685 .debug_rnglists.
4686 (struct dwop_section_names): Add loclists_dwo.
4687 (dwop_section_names): Add .debug_loclists.dwo.
4688 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
4689 (struct dwarf2_per_cu_data): Add dwarf_version.
4690 (struct dwo_sections): Add loclists.
4691 (struct attr_abbrev): Add implicit_const.
4692 (read_indirect_line_string): New declaration.
4693 (read_unsigned_leb128): Delete declaration.
4694 (rcuh_kind): New definition.
4695 (read_and_check_comp_unit_head): Change parameter
4696 is_debug_types_section to section_kind.
4697 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
4698 (read_comp_unit_head): Change parameter abfd to section, add parameter
4699 section_kind. Handle DWARF-5.
4700 (error_check_comp_unit_head): Accept also DWARF version 5.
4701 (read_and_check_comp_unit_head): Change parameter
4702 is_debug_types_section to section_kind.
4703 (read_and_check_type_unit_head): Delete function.
4704 (read_abbrev_offset): Handle DWARF-5.
4705 (create_debug_type_hash_table): Add parameter section_kind. Process
4706 only DW_UT_type. Use signature and type_offset_in_tu from struct
4707 comp_unit_head.
4708 (create_debug_types_hash_table): Update create_debug_type_hash_table
4709 caller.
4710 (create_all_type_units): Call create_debug_type_hash_table.
4711 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
4712 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
4713 caller.
4714 (skip_one_die): Handle DW_FORM_implicit_const.
4715 (dwarf2_rnglists_process): New function.
4716 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
4717 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
4718 (read_attribute_value): Handle DW_FORM_implicit_const,
4719 DW_FORM_line_strp.
4720 (read_attribute): Handle DW_FORM_implicit_const.
4721 (read_indirect_string_at_offset_from): New function from
4722 read_indirect_string_at_offset.
4723 (read_indirect_string_at_offset): Call
4724 read_indirect_string_at_offset_from.
4725 (read_indirect_line_string_at_offset): New function.
4726 (read_indirect_string): New function comment.
4727 (read_indirect_line_string): New function.
4728 (read_unsigned_leb128): Make it global.
4729 (dwarf2_string_attr): Handle DWARF-5.
4730 (add_include_dir_stub, read_formatted_entries): New functions.
4731 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
4732 Handle DWARF-5.
4733 (per_cu_header_read_in): Update read_comp_unit_head caller.
4734 (dwarf2_version): New function.
4735 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
4736 rnglists.
4737 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
4738 fields.
4739
22d2f3ab
JK
47402017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4741
4742 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
4743
5f46c5a5
JK
47442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 * dwarf2read.c (dwarf2_ranges_process): New function from
4747 dwarf2_ranges_read.
4748 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
4749 dwarf2_ranges_process.
4750
78d4d2c5
JK
47512017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 * dwarf2read.c (create_debug_type_hash_table): New function from
4754 create_debug_types_hash_table.
4755 (create_debug_types_hash_table): Call create_debug_type_hash_table.
4756 (create_all_type_units, open_and_init_dwo_file): Update
4757 create_debug_types_hash_table callers.
4758
1b076f25
SDJ
47592017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4760
4761 PR gdb/16188
4762 * fork-child.c (trace_start_error): Fix thinko. va_end should
4763 refer to 'ap', not 'args'.
4764
0db8980c
SDJ
47652017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4766 Pedro Alves <palves@redhat.com>
4767
4768 PR gdb/16188
4769 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
4770 calls succeeded.
4771 * fork-child.c (trace_start_error): New function.
4772 (trace_start_error_with_name): Likewise.
4773 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
4774 * inf-ptrace.c (inf_ptrace_me): Likewise.
4775 * inferior.h (trace_start_error): New prototype.
4776 (trace_start_error_with_name): Likewise.
4777
99e8a4f9
SDJ
47782017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
4779
4780 PR gdb/21164
4781 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
4782 NULL before using it.
4783 * symmisc.c (maintenance_print_symbols): Likewise.
4784 (maintenance_print_msymbols): Likewise.
4785
4e746bb6
TW
47862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4787
4788 * NEWS: Add record Python bindings entry.
4789
47902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4791
4792 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
4793 py-record-full.o.
4794 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
4795 * python/py-record-btrace.c, python/py-record-btrace.h,
4796 python/py-record-full.c, python/py-record-full.h: New file.
4797 * python/py-record.c: Add include for py-record-btrace.h and
4798 py-record-full.h.
4799 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
4800 recpy_instruction_history, recpy_function_call_history, recpy_begin,
4801 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
4802 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
4803 New definition.
4804 (gdbpy_initialize_btrace): New export.
4805 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
4806
48072017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4808
4809 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
4810 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
4811 * python/py-record.c: New file.
4812 * python/python-internal.h (gdbpy_start_recording,
4813 gdbpy_current_recording, gdpy_stop_recording,
4814 gdbpy_initialize_record): New export.
4815 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
4816 (python_GdbMethods): Add gdbpy_start_recording,
4817 gdbpy_current_recording and gdbpy_stop_recording.
4818
48192017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4820
4821 * record-btrace.c (record_btrace_record_method): New function.
4822 (init_record_btrace_ops): Initialize to_record_method.
4823 * record-full.c (record_full_record_method): New function.
4824 (init_record_full_ops, init_record_full_core_ops): Add
4825 record_full_record_method.
4826 * record.h (enum record_method): New enum.
4827 * target-debug.h (target_debug_print_enum_record_method: New define.
4828 * target-delegates.c: Regenerate.
4829 * target.c (target_record_method): New function.
4830 * target.h: Include record.h.
4831 (struct target_ops) <to_record_method>: New field.
4832 (target_record_method): New export.
4833
48342017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4835
4836 * record.h (record_start, record_stop): New export.
4837 * record.c (record_start, record_stop): New function.
4838
48392017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4840
4841 * btrace.c (btrace_fetch): Copy function call segments pointer
4842 into a vector.
4843 (btrace_clear): Clear the vector.
4844 (btrace_find_insn_by_number): Use binary search to find the correct
4845 function call segment.
4846 * btrace.h (brace_fun_p): New typedef.
4847 (struct btrace_thread_info) <functions>: New field.
4848
48492017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4850
4851 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
4852 * btrace.c (btrace_decode_error): ... here. New function.
4853 * btrace.h (btrace_decode_error): New export.
4854
48552017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
4856
4857 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
4858 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
4859 btrace_find_insn_by_number): Remove special case for gaps.
4860 * btrace.h (btrace_insn_get_error): New export.
4861 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
4862 * record-btrace.c (btrace_insn_history): Print number for gaps.
4863 (record_btrace_info, record_btrace_goto): Handle gaps.
4864
3f77c769
TT
48652017-02-14 Tom Tromey <tom@tromey.com>
4866
4867 PR python/13598:
4868 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
4869 event.
4870 * python/py-evts.c (gdbpy_initialize_py_events): Add
4871 before_prompt registry.
4872 * python/py-events.h (events_object) <before_prompt>: New field.
4873
4c2c7ac6
MM
48742017-02-14 Markus Metzger <markus.t.metzger@intel.com>
4875
4876 * btrace.c (ftrace_new_switch): Preserve up link and flags.
4877
5cf30ebf
LM
48782017-02-13 Luis Machado <lgustavo@codesourcery.com>
4879
4880 * symfile (_initialize_symfile): Add usage text to the load command's
4881 help text.
4882
26a06916
SM
48832017-02-10 Simon Marchi <simon.marchi@ericsson.com>
4884
4885 * utils.c (defaulted_query): Don't query on secondary UIs.
4886
0b145e37
TT
48872017-02-10 Tom Tromey <tom@tromey.com>
4888
4889 * rust-lang.c (rust_get_disr_info): Remove unused variable.
4890
2d8365c4
TT
48912017-02-10 Tom Tromey <tom@tromey.com>
4892
4893 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
4894 "cleanup" local.
4895 * python/py-type.c (typy_legacy_template_argument): Remove
4896 unnecessary "cleanup" local.
4897
2bb8f231
TT
48982017-02-10 Tom Tromey <tom@tromey.com>
4899
4900 * python/python.c (do_start_initialization): New function, from
4901 _initialize_python.
4902 (_initialize_python): Call do_start_initialization.
4903 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
4904 goto.
4905
1bdfaf42
TT
49062017-02-10 Tom Tromey <tom@tromey.com>
4907
4908 * python/py-prettyprint.c (pretty_print_one_value): Use
4909 gdbpy_ref.
4910
88b6faea
TT
49112017-02-10 Tom Tromey <tom@tromey.com>
4912
4913 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
4914 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
4915 gdbpy_ref.
4916 * python/py-type.c (field_new): Use gdbpy_ref.
4917 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
4918 gdbpy_ref.
4919 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
4920 (py_free_pspace): Likewise.
4921 (pspace_to_pspace_object): Likewise.
4922 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
4923 (py_free_objfile): Likewise.
4924 (objfile_to_objfile_object): Likewise.
4925 * python/py-inferior.c (delete_thread_object): Use
4926 gdbpy_ref.
4927 (infpy_read_memory): Likewise.
4928 (py_free_inferior): Likewise.
4929 * python/py-evtregistry.c (create_eventregistry_object): Use
4930 gdbpy_ref.
4931 * python/py-event.c (create_event_object): Use gdbpy_ref.
4932
7780f186
TT
49332017-02-10 Tom Tromey <tom@tromey.com>
4934
4935 * python/py-ref.h (gdbpy_ref_policy): Now a template.
4936 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
4937 used.
4938 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
4939 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
4940 python/py-exitedevent.c, python/py-finishbreakpoint.c,
4941 python/py-framefilter.c, python/py-function.c,
4942 python/py-inferior.c, python/py-infevents.c,
4943 python/py-linetable.c, python/py-newobjfileevent.c,
4944 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
4945 python/py-signalevent.c, python/py-stopevent.c,
4946 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
4947 python/py-unwind.c, python/py-utils.c, python/py-value.c,
4948 python/py-varobj.c, python/py-xmethods.c, python/python.c,
4949 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
4950
d4b0bb18
TT
49512017-02-10 Tom Tromey <tom@tromey.com>
4952
4953 * ui-out.h (ui_out_emit_type): New class.
4954 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
4955 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
4956 and ui_out_emit_tuple.
4957 (enumerate_locals): Likewise.
4958 (py_mi_print_variables, py_print_locals, py_print_args): Use
4959 ui_out_emit_list.
4960 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
4961 ui_out_emit_list.
4962 * common/gdb_optional.h: New file.
4963
f67f945c
MG
49642017-02-10 Martin Galvan <martingalvan@sourceware.org>
4965
4966 * MAINTAINERS (Write After Approval): Update my e-mail address.
4967
18da0c51
MG
49682017-02-10 Martin Galvan <martingalvan@sourceware.org>
4969
4970 PR gdb/21122
4971 * breakpoint.c (_initialize_breakpoint): Update the help description
4972 of the 'commands' command to indicate that it takes a list argument.
4973
62c14536
SM
49742017-02-09 Simon Marchi <simon.marchi@ericsson.com>
4975
4976 * interps.c (current_interp_set_logging): Remove "return".
4977
ff6fa247
GB
49782017-02-09 Gary Benson <gbenson@redhat.com>
4979
4980 * symtab.c (add_symtab_completions): Prevent NULL pointer
4981 dereference.
4982
a474bd8e
PA
49832017-02-08 Pedro Alves <palves@redhat.com>
4984
4985 * interps.c (interp::interp): Remove reference to quiet_p.
4986 (interp_set): Make static. Remove dead "Switching to" output
4987 code.
4988 (interp_quiet_p, interp_set_quiet): Delete.
4989 (interpreter_exec_cmd): Don't set the interpreter quiet.
4990 * interps.h (interp_quiet_p): Make static.
4991 (class interp) <quiet_p>: Remove field
4992
3d7b173c
JG
49932017-02-08 Jerome Guitton <guitton@adacore.com>
4994
604c4576
JG
4995 * cli/cli-decode.c (find_command_name_length): Make it extern.
4996 * cli/cli-decode.h (find_command_name_length): Declare.
4997 * cli/cli-script.c (command_name_equals, line_first_arg):
4998 New functions.
4999 (process_next_line): Use cli-decode to parse command names.
5000 (build_command_line): Make args a constant pointer.
5001
50022017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 5003
3d7b173c
JG
5004 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
5005 Remove case-insensitive search.
5006
1291063d
JM
50072017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5008
5009 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
5010 at the end of the line. Avoids an ARI warning.
5011
20b477a7
LM
50122017-02-06 Luis Machado <lgustavo@codesourcery.com>
5013
5014 * NEWS: Mention support for record/replay of Intel 64 rdrand and
5015 rdseed instructions.
5016 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
5017
3f7b46f2
IR
50182017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
5019
5020 PR tdep/20936
5021 Provide and use sparc32 and sparc64 target description XML files.
5022 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
5023 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
5024 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
5025 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
5026 * features/sparc/sparc32-solaris.xml: New file.
5027 * features/sparc/sparc64-solaris.xml: New file.
5028 * features/sparc/sparc32-solaris.c: Generated.
5029 * features/sparc/sparc64-solaris.c: Generated.
5030 * sparc-tdep.h: Account for differences in target descriptions.
5031 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
5032 (sparc32_register_type): Use target provided registers.
5033 (validate_tdesc_registers): New function.
5034 (sparc32_gdbarch_init): Use tdesc_has_registers.
5035 Set pseudoregister functions.
5036 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
5037 (sparc64_register_type): Use target provided registers.
5038 (sparc64_init_abi): Set pseudoregister functions.
5039
f0fd41c1
TT
50402017-02-03 Tom Tromey <tom@tromey.com>
5041
5042 PR rust/21097:
5043 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
5044 with a single member.
5045
d6f9b0fb
PA
50462017-02-03 Pedro Alves <palves@redhat.com>
5047
5048 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
5049 (cli_interp_base::~cli_interp_base): New.
5050 (cli_interp): New struct.
5051 (as_cli_interp): Cast the interp itself to cli_interp.
5052 (cli_interpreter_pre_command_loop): Rename to ...
5053 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
5054 parameter.
5055 (cli_interpreter_init): Rename to ...
5056 (cli_interp::init): ... this. Remove 'self' parameter. Use
5057 boolean. Make extern.
5058 (cli_interpreter_resume): Rename to ...
5059 (cli_interp::resume): ... this. Remove 'data' parameter. Make
5060 extern.
5061 (cli_interpreter_suspend): Rename to ...
5062 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
5063 extern.
5064 (cli_interpreter_exec): Rename to ...
5065 (cli_interp::exec): ... this. Remove 'data' parameter. Make
5066 extern.
5067 (cli_interpreter_supports_command_editing): Rename to ...
5068 (cli_interp_base::supports_command_editing): ... this. Remove
5069 'interp' parameter. Make extern.
5070 (cli_ui_out): Rename to ...
5071 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
5072 Make extern.
5073 (cli_set_logging): Rename to ...
5074 (cli_interp_base::set_logging): ... this. Remove 'interp'
5075 parameter. Make extern.
5076 (cli_interp_procs): Delete.
5077 (cli_interp_factory): Adjust to use "new".
5078 * cli/cli-interp.h: Include "interps.h".
5079 (struct cli_interp_base): New struct.
5080 * interps.c (struct interp): Delete. Fields moved to interps.h.
5081 (interp_new): Delete.
5082 (interp::interp, interp::~interp): New.
5083 (interp_set): Use bool, and return void. Assume the interpreter
5084 has suspend, init and resume methods, and that the all return
5085 void.
5086 (set_top_level_interpreter): interp_set returns void.
5087 (interp_ui_out): Adapt.
5088 (current_interp_set_logging): Adapt.
5089 (interp_data): Delete.
5090 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
5091 (interp_exec): Adapt.
5092 (top_level_interpreter_data): Delete.
5093 * interps.h (interp_init_ftype, interp_resume_ftype)
5094 (interp_suspend_ftype, interp_exec_ftype)
5095 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
5096 (class interp): New.
5097 (interp_new): Delete.
5098 (interp_set): Now returns void. Use bool.
5099 (interp_data, top_level_interpreter_data): Delete.
5100 * mi/mi-common.h: Include interps.h.
5101 (class mi_interp): Inherit from interp. Define a ctor. Declare
5102 init, resume, suspect, exec, interp_ui_out, set_logging and
5103 pre_command_loop methods.
5104 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
5105 (mi_interpreter_init): Rename to ...
5106 (mi_interp::init): ... this. Remove the 'interp' parameter, use
5107 bool, return void and make extern. Adjust.
5108 (mi_interpreter_resume): ... Rename to ...
5109 (mi_interp::resume): ... this. Remove the 'data' parameter,
5110 return void and make extern. Adjust.
5111 (mi_interpreter_suspend): ... Rename to ...
5112 (mi_interp::suspend): ... this. Remove the 'data' parameter,
5113 return void and make extern. Adjust.
5114 (mi_interpreter_exec): ... Rename to ...
5115 (mi_interp::exec): ... this. Remove the 'data' parameter and make
5116 extern. Adjust.
5117 (mi_interpreter_pre_command_loop): ... Rename to ...
5118 (mi_interp::pre_command_loop): ... this. Remove the 'self'
5119 parameter and make extern.
5120 (mi_on_normal_stop_1): Adjust.
5121 (mi_ui_out): Rename to ...
5122 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
5123 parameter and make extern. Adjust.
5124 (mi_set_logging): Rename to ...
5125 (mi_interp::set_logging): ... this. Remove the 'interp'
5126 parameter and make extern. Adjust.
5127 (mi_interp_procs): Delete.
5128 (mi_interp_factory): Adjust to use 'new'.
5129 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
5130 (mi_print_exception, mi_execute_command, mi_load_progress):
5131 Adjust.
5132 * tui/tui-interp.c (tui_interp): New class.
5133 (as_tui_interp): Return a tui_interp pointer.
5134 (tui_on_normal_stop, tui_on_signal_received)
5135 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
5136 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
5137 to use interp::interp_ui_out.
5138 (tui_init): Rename to ...
5139 (tui_interp::init): ... this. Remove the 'self' parameter, use
5140 bool, return void and make extern. Adjust.
5141 (tui_resume): Rename to ...
5142 (tui_interp::resume): ... this. Remove the 'data' parameter,
5143 return void and make extern. Adjust.
5144 (tui_suspend): Rename to ...
5145 (tui_interp::suspend): ... this. Remove the 'data' parameter,
5146 return void and make extern. Adjust.
5147 (tui_ui_out): Rename to ...
5148 (tui_interp::interp_ui_out): ... this. Remove the 'self'
5149 parameter, and make extern. Adjust.
5150 (tui_exec): Rename to ...
5151 (tui_interp::exec): ... this. Remove the 'data' parameter and
5152 make extern.
5153 (tui_interp_procs): Delete.
5154 (tui_interp_factory): Use "new".
5155
65c40c95
TT
51562017-02-02 Tom Tromey <tom@tromey.com>
5157
5158 * rust-exp.y (ends_raw_string, space_then_number)
5159 (rust_identifier_start_p): Return bool.
5160 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
5161 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
5162 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
5163 (rust_chartype_p): Return bool.
5164 (val_print_struct, rust_print_struct_def, rust_print_type):
5165 Update.
5166 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
5167 Return bool.
5168
b50f188d
TT
51692017-02-02 Tom Tromey <tom@tromey.com>
5170
5171 * rust-lang.c: Reindent.
5172
03c85b11
TT
51732017-02-02 Tom Tromey <tom@tromey.com>
5174
5175 * rust-lang.h (rust_crate_for_block): Update.
5176 * rust-lang.c (rust_crate_for_block): Return std::string.
5177 (rust_get_disr_info): Use std:;string, not
5178 gdb::unique_xmalloc_ptr.
5179 * rust-exp.y (crate_name): Update.
5180
9b6da501
PA
51812017-02-02 Pedro Alves <palves@redhat.com>
5182
5183 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
5184 field out of gdb_disassembler_test and make it static.
5185
ec4cb20b
PA
51862017-02-02 Pedro Alves <palves@redhat.com>
5187
5188 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
5189 mi1_interp and mi_interp fields.
5190
5be5dbf0
PA
51912017-02-02 Pedro Alves <palves@redhat.com>
5192
616268b6
PA
5193 * cli/cli-interp.c (struct saved_output_files, saved_output):
5194 Moved from cli/cli-logging.c.
5195 (cli_set_logging): New function.
5196 (cli_interp_procs): Install cli_set_logging.
5197 * cli/cli-interp.h (make_logging_output, cli_set_logging):
5198 Declare.
5199 * cli/cli-logging.c (struct saved_output_files, saved_output):
5200 Moved to cli/cli-interp.c.
5201 (pop_output_files): Don't save outputs here.
5202 (make_logging_output): New function.
5203 (handle_redirections): Don't build tee nor save previous outputs
5204 here.
5205 * interps.c (current_interp_set_logging): Change prototype.
5206 Assume there's always a set_logging_proc method installed.
5207 * interps.h (interp_set_logging_ftype): Change prototype.
5208 (current_interp_set_logging): Change prototype and adjust comment.
5209 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
5210 use make_logging_output.
5211 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
52122017-02-02 Pedro Alves <palves@redhat.com>
5213
5be5dbf0
PA
5214 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
5215 from ...
5216 (set_logging_overwrite): ... here.
5217 (logging_no_redirect_file): Delete.
5218 (set_logging_redirect): Don't handle redirection on the fly.
5219 Instead warn that "logging off" / "logging on" is necessary.
5220 (pop_output_files): Delete references to logging_no_redirect_file.
5221 (show_logging_command): Always speak in terms of what will happen
5222 once logging is reenabled.
5223
c99cc448
PA
52242017-02-02 Pedro Alves <palves@redhat.com>
5225
5226 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
5227
8b172ce7
PA
52282017-02-02 Pedro Alves <palves@redhat.com>
5229
5230 * disasm.c (gdb_pretty_print_insn): Rename to ...
5231 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
5232 Remove gdbarch parameter. Adapt to clear the object's buffers
5233 instead of allocating new buffers, and to print using the object's
5234 gdb_disassembler instead of calling gdb_print_insn.
5235 (dump_insns): Use gdb_pretty_print_disassembler.
5236 * disasm.h (gdb_pretty_print_insn): Delete declaration.
5237 (gdb_pretty_print_disassembler): New class.
5238 * record-btrace.c (btrace_insn_history): Use
5239 gdb_pretty_print_disassembler.
5240
d7e74731
PA
52412017-02-02 Pedro Alves <palves@redhat.com>
5242
5243 * ada-lang.c (type_as_string): Use string_file.
5244 * ada-valprint.c (ada_print_floating): Use string_file.
5245 * ada-varobj.c (ada_varobj_scalar_image)
5246 (ada_varobj_get_value_image): Use string_file.
5247 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
5248 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
5249 * breakpoint.c (update_inserted_breakpoint_locations)
5250 (insert_breakpoint_locations, reattach_breakpoints)
5251 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
5252 (print_it_watchpoint): Use string_file.
5253 (save_breakpoints): Use stdio_file.
5254 * c-exp.y (oper): Use string_file.
5255 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
5256 tee_file.
5257 (pop_output_files): Use delete.
5258 (handle_redirections): Use stdio_file and tee_file.
5259 * cli/cli-setshow.c (do_show_command): Use string_file.
5260 * compile/compile-c-support.c (c_compute_program): Use
5261 string_file.
5262 * compile/compile-c-symbols.c (generate_vla_size): Take a
5263 'string_file &' instead of a 'ui_file *'.
5264 (generate_c_for_for_one_variable): Take a 'string_file &' instead
5265 of a 'ui_file *'. Use string_file.
5266 (generate_c_for_variable_locations): Take a 'string_file &'
5267 instead of a 'ui_file *'.
5268 * compile/compile-internal.h (generate_c_for_for_one_variable):
5269 Take a 'string_file &' instead of a 'ui_file *'.
5270 * compile/compile-loc2c.c (push, pushf, unary, binary)
5271 (print_label, pushf_register_address, pushf_register)
5272 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
5273 'ui_file *'. Adjust.
5274 * compile/compile.c (compile_to_object): Use string_file.
5275 * compile/compile.h (compile_dwarf_expr_to_c)
5276 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
5277 'ui_file *'.
5278 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
5279 (replace_typedefs_qualified_name): Use string_file and
5280 obstack_copy0.
5281 * disasm.c (gdb_pretty_print_insn): Use string_file.
5282 (gdb_disassembly): Adjust reference the null_stream global.
5283 (do_ui_file_delete): Delete.
5284 (gdb_insn_length): Use null_stream.
5285 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
5286 * dwarf2loc.c (dwarf2_compile_property_to_c)
5287 (locexpr_generate_c_location, loclist_generate_c_location): Take a
5288 'string_file &' instead of a 'ui_file *'.
5289 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
5290 * dwarf2read.c (do_ui_file_peek_last): Delete.
5291 (dwarf2_compute_name): Use string_file.
5292 * event-top.c (gdb_setup_readline): Use stdio_file.
5293 * gdbarch.sh (verify_gdbarch): Use string_file.
5294 * gdbtypes.c (safe_parse_type): Use null_stream.
5295 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
5296 string_file.
5297 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
5298 'string_file *' instead of a 'ui_file *'.
5299 (gdbscm_arch_disassemble): Use string_file.
5300 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
5301 * guile/scm-ports.c (class ioscm_file_port): Now a class that
5302 inherits from ui_file.
5303 (ioscm_file_port_delete, ioscm_file_port_rewind)
5304 (ioscm_file_port_put): Delete.
5305 (ioscm_file_port_write): Rename to ...
5306 (ioscm_file_port::write): ... this. Remove file_port_magic
5307 checks.
5308 (ioscm_file_port_new): Delete.
5309 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
5310 ui_file_up.
5311 * guile/scm-type.c (tyscm_type_name): Use string_file.
5312 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
5313 Use string_file.
5314 * infcmd.c (print_return_value_1): Use string_file.
5315 * infrun.c (print_target_wait_results): Use string_file.
5316 * language.c (add_language): Use string_file.
5317 * location.c (explicit_to_string_internal): Use string_file.
5318 * main.c (captured_main_1): Use null_file.
5319 * maint.c (maintenance_print_architecture): Use stdio_file.
5320 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
5321 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
5322 event_channel>: Change type to mi_console_file pointer.
5323 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
5324 (mi_console_file_delete): Delete.
5325 (struct mi_console_file): Delete.
5326 (mi_console_file_magic): Delete.
5327 (mi_console_file_new): Delete.
5328 (mi_console_file::mi_console_file): New.
5329 (mi_console_file_delete): Delete.
5330 (mi_console_file_fputs): Delete.
5331 (mi_console_file::write): New.
5332 (mi_console_raw_packet): Delete.
5333 (mi_console_file::flush): New.
5334 (mi_console_file_flush): Delete.
5335 (mi_console_set_raw): Rename to ...
5336 (mi_console_file::set_raw): ... this.
5337 * mi/mi-console.h (class mi_console_file): New class.
5338 (mi_console_file_new, mi_console_set_raw): Delete.
5339 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
5340 (mi_set_logging): Use delete and tee_file. Adjust.
5341 * mi/mi-main.c (output_register): Use string_file.
5342 (mi_cmd_data_evaluate_expression): Use string_file.
5343 (mi_cmd_data_read_memory): Use string_file.
5344 (mi_cmd_execute, print_variable_or_computed): Use string_file.
5345 * mi/mi-out.c (mi_ui_out::main_stream): New.
5346 (mi_ui_out::rewind): Use main_stream and
5347 string_file.
5348 (mi_ui_out::put): Use main_stream and string_file.
5349 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
5350 Allocate a 'string_file' instead.
5351 (mi_out_new): Don't allocate a mem_fileopen stream here.
5352 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
5353 (mi_ui_out::main_stream): Declare method.
5354 * printcmd.c (eval_command): Use string_file.
5355 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
5356 * python/py-arch.c (archpy_disassemble): Use string_file.
5357 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
5358 * python/py-frame.c (frapy_str): Use string_file.
5359 * python/py-framefilter.c (py_print_type, py_print_single_arg):
5360 Use string_file.
5361 * python/py-type.c (typy_str): Use string_file.
5362 * python/py-unwind.c (unwind_infopy_str): Use string_file.
5363 * python/py-value.c (valpy_str): Use string_file.
5364 * record-btrace.c (btrace_insn_history): Use string_file.
5365 * regcache.c (regcache_print): Use stdio_file.
5366 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
5367 * remote.c (escape_buffer): Use string_file.
5368 * rust-lang.c (rust_get_disr_info): Use string_file.
5369 * serial.c (serial_open_ops_1): Use stdio_file.
5370 (do_serial_close): Use delete.
5371 * stack.c (print_frame_arg): Use string_file.
5372 (print_frame_args): Remove local mem_fileopen stream, not used.
5373 (print_frame): Use string_file.
5374 * symmisc.c (maintenance_print_symbols): Use stdio_file.
5375 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5376 Take a 'string_file *' instead of a 'ui_file *'.
5377 * top.c (new_ui): Use stdio_file and stderr_file.
5378 (free_ui): Use delete.
5379 (execute_command_to_string): Use string_file.
5380 (quit_confirm): Use string_file.
5381 * tracepoint.c (collection_list::append_exp): Use string_file.
5382 * tui/tui-disasm.c (tui_disassemble): Use string_file.
5383 * tui/tui-file.c: Don't include "ui-file.h".
5384 (enum streamtype, struct tui_stream): Delete.
5385 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
5386 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
5387 (tui_file::tui_file): New method.
5388 (tui_file_fputs): Delete.
5389 (tui_file_get_strbuf): Delete.
5390 (tui_file::puts): New method.
5391 (tui_file_adjust_strbuf): Delete.
5392 (tui_file_flush): Delete.
5393 (tui_file::flush): New method.
5394 * tui/tui-file.h: Tweak intro comment.
5395 Include ui-file.h.
5396 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
5397 (tui_file_adjust_strbuf): Delete declarations.
5398 (class tui_file): New class.
5399 * tui/tui-io.c (tui_initialize_io): Use tui_file.
5400 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
5401 (tui_register_format): Use string_stream.
5402 * tui/tui-stack.c (tui_make_status_line): Use string_file.
5403 (tui_get_function_from_frame): Use string_file.
5404 * typeprint.c (type_to_string): Use string_file.
5405 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
5406 (null_stream): New global.
5407 (ui_file_delete): Delete.
5408 (ui_file::ui_file): New.
5409 (null_file_isatty): Delete.
5410 (ui_file::~ui_file): New.
5411 (null_file_rewind): Delete.
5412 (ui_file::printf): New.
5413 (null_file_put): Delete.
5414 (null_file_flush): Delete.
5415 (ui_file::putstr): New.
5416 (null_file_write): Delete.
5417 (ui_file::putstrn): New.
5418 (null_file_read): Delete.
5419 (ui_file::putc): New.
5420 (null_file_fputs): Delete.
5421 (null_file_write_async_safe): Delete.
5422 (ui_file::vprintf): New.
5423 (null_file_delete): Delete.
5424 (null_file::write): New.
5425 (null_file_fseek): Delete.
5426 (null_file::puts): New.
5427 (ui_file_data): Delete.
5428 (null_file::write_async_safe): New.
5429 (gdb_flush, ui_file_isatty): Adjust.
5430 (ui_file_put, ui_file_rewind): Delete.
5431 (ui_file_write): Adjust.
5432 (ui_file_write_for_put): Delete.
5433 (ui_file_write_async_safe, ui_file_read): Adjust.
5434 (ui_file_fseek): Delete.
5435 (fputs_unfiltered): Adjust.
5436 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
5437 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
5438 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
5439 (set_ui_file_data): Delete.
5440 (string_file::~string_file, string_file::write)
5441 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
5442 (do_ui_file_as_string, ui_file_as_string): Delete.
5443 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
5444 (struct mem_file): Delete.
5445 (mem_file_new): Delete.
5446 (stdio_file::stdio_file): New.
5447 (mem_file_delete): Delete.
5448 (stdio_file::stdio_file): New.
5449 (mem_fileopen): Delete.
5450 (stdio_file::~stdio_file): New.
5451 (mem_file_rewind): Delete.
5452 (stdio_file::set_stream): New.
5453 (mem_file_put): Delete.
5454 (stdio_file::open): New.
5455 (mem_file_write): Delete.
5456 (stdio_file_magic, struct stdio_file): Delete.
5457 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
5458 (stdio_file::flush): New.
5459 (stdio_file_read): Rename to ...
5460 (stdio_file::read): ... this. Adjust.
5461 (stdio_file_write): Rename to ...
5462 (stdio_file::write): ... this. Adjust.
5463 (stdio_file_write_async_safe): Rename to ...
5464 (stdio_file::write_async_safe) ... this. Adjust.
5465 (stdio_file_fputs): Rename to ...
5466 (stdio_file::puts) ... this. Adjust.
5467 (stdio_file_isatty): Delete.
5468 (stdio_file_fseek): Delete.
5469 (stdio_file::isatty): New.
5470 (stderr_file_write): Rename to ...
5471 (stderr_file::write) ... this. Adjust.
5472 (stderr_file_fputs): Rename to ...
5473 (stderr_file::puts) ... this. Adjust.
5474 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
5475 (stderr_file::stderr_file): New.
5476 (tee_file_magic): Delete.
5477 (struct tee_file): Delete.
5478 (tee_file::tee_file): New.
5479 (tee_file_new): Delete.
5480 (tee_file::~tee_file): New.
5481 (tee_file_delete): Delete.
5482 (tee_file_flush): Rename to ...
5483 (tee_file::flush): ... this. Adjust.
5484 (tee_file_write): Rename to ...
5485 (tee_file::write): ... this. Adjust.
5486 (tee_file::write_async_safe): New.
5487 (tee_file_fputs): Rename to ...
5488 (tee_file::puts): ... this. Adjust.
5489 (tee_file_isatty): Rename to ...
5490 (tee_file::isatty): ... this. Adjust.
5491 * ui-file.h (struct obstack, struct ui_file): Don't
5492 forward-declare.
5493 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
5494 (ui_file_write_ftype)
5495 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
5496 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
5497 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
5498 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
5499 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
5500 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
5501 (set_ui_file_fseek): Delete.
5502 (ui_file_data, ui_file_delete, ui_file_rewind)
5503 (struct ui_file): New.
5504 (ui_file_up): New.
5505 (class null_file): New.
5506 (null_stream): Declare.
5507 (ui_file_write_for_put, ui_file_put): Delete.
5508 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
5509 Delete.
5510 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
5511 (gdb_fopen, tee_file_new): Delete.
5512 (struct string_file): New.
5513 (struct stdio_file): New.
5514 (stdio_file_up): New.
5515 (struct stderr_file): New.
5516 (class tee_file): New.
5517 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
5518 of a 'ui_file *'. Adjust.
5519 * ui-out.h (class ui_out) <field_stream>: Likewise.
5520 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
5521 (null_stream): Delete.
5522 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
5523 Adjust.
5524 * utils.h (struct ui_file): Delete forward declaration..
5525 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
5526 (error_stream): Take a 'string_file &' instead of a
5527 'ui_file *'.
5528 * varobj.c (varobj_value_get_print_value): Use string_file.
5529 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
5530 * gdbarch.c: Regenerate.
5531
187808b0
PA
55322017-02-02 Pedro Alves <palves@redhat.com>
5533
5534 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
5535 (gdb_pretty_print_insn): ... this. Now a free function. Add back
5536 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
5537 Adjust to call gdb_print_insn instead of
5538 gdb_disassembler::print_insn.
5539 (dump_insns, do_mixed_source_and_assembly_deprecated)
5540 (do_mixed_source_and_assembly, do_assembly_only): Add back a
5541 'gdbarch' parameter. Remove gdb_disassembler parameter.
5542 (gdb_disassembly): Don't allocate a gdb_disassembler here.
5543 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
5544 declaration.
5545 (gdb_pretty_print_insn): Re-add declaration.
5546 * record-btrace.c (btrace_insn_history): Don't allocate a
5547 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
5548
7a8eb317
SM
55492017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
5550
5551 * disasm.h (gdb_disassembly): Remove file_string parameter.
5552 * disasm.c (gdb_disassembly): Likewise.
5553 * cli/cli-cmds.c (print_disassembly): Adapt.
5554 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5555 * stack.c (do_gdb_disassembly): Likewise.
5556
7346ef59
AA
55572017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5558
5559 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
5560 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
5561 targets. And if the implicit value is longer than needed, extract
5562 the first bytes instead of the "least significant" ones.
5563
cd4007e4
MM
55642017-02-01 Markus Metzger <markus.t.metzger@intel.com>
5565
5566 * btrace.c (btrace_enable): Do not call btrace_add_pc for
5567 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
5568 (btrace_fetch): Assert can_access_registers_ptid.
5569 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
5570 validate_registers_access.
5571
cf77c34e
MM
55722017-02-01 Markus Metzger <markus.t.metzger@intel.com>
5573
5574 * gdbthread.h (can_access_registers_ptid): New.
5575 * thread.c (can_access_registers_ptid): New.
5576
be85ce7d
PA
55772017-02-01 Pedro Alves <palves@redhat.com>
5578
5579 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
5580
29b0b251
PA
55812017-01-31 Pedro Alves <palves@redhat.com>
5582
5583 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
5584 Fix typos.
5585
289b5b24
PA
55862017-01-31 Pedro Alves <palves@redhat.com>
5587
5588 * stack.c (print_frame_args): Remove local mem_fileopen stream,
5589 not used.
5590
b47413b4
PA
55912017-01-31 Pedro Alves <palves@redhat.com>
5592
5593 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
5594
60adb36c
PA
55952017-01-31 Pedro Alves <palves@redhat.com>
5596
5597 * common/scoped_restore.h
5598 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
5599 change the value's parameter type to T2.
5600 (make_scoped_restore): Likewise.
5601
2735833d
WT
56022017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5603 Richard Henderson <rth@redhat.com>
5604
5605 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
5606 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
5607 GS_BASE for older kernels.
5608 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
5609 GS_BASE for older kernels.
5610 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
5611 and GS_BASE to the offset table.
5612 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
5613 system register group.
5614 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
5615 for older kernels.
5616 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
5617 amd64 ABI.
5618 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
5619 AMD64_GSBASE_REGNUM.
5620 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
5621 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
5622 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
5623 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
5624 i386/64bit-segments.xml in those rules.
5625 * features/i386/64bit-segments.xml: New file.
5626 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
5627 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
5628 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
5629 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
5630 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
5631 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
5632 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
5633 * features/i386/amd64-avx-linux.c: Regenerated.
5634 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
5635 * features/i386/amd64-avx-mpx.c: Regenerated.
5636 * features/i386/amd64-avx512-linux.c: Regenerated.
5637 * features/i386/amd64-linux.c: Regenerated.
5638 * features/i386/amd64-mpx-linux.c: Regenerated.
5639 * features/i386/i386-avx-mpx-linux.c: Regenerated.
5640 * features/i386/i386-avx-mpx.c: Regenerated.
5641 * features/i386/x32-avx-linux.c: Regenerated.
5642 * features/i386/x32-avx512-linux.c: Regenerated.
5643 * regformats/i386/amd64-avx-linux.dat: Regenerated.
5644 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
5645 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
5646 * regformats/i386/amd64-linux.dat: Regenerated.
5647 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
5648 * regformats/i386/x32-avx-linux.dat: Regenerated.
5649 * regformats/i386/x32-avx512-linux.dat: Regenerated.
5650 * regformats/i386/x32-linux.dat: Regenerated.
5651
8884e97e
WT
56522017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5653
5654 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
5655 Set to AMD64_NUM_REGS.
5656
7005d26a
WT
56572017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5658
5659 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
5660 that checks validity of a register number.
5661
4bd2e1b2
KC
56622017-01-27 Kees Cook <keescook@google.com>
5663
5664 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
5665 fetch_fpregs if target has fpa registers.
5666 (arm_linux_store_inferior_registers): Call store_fpregs if target
5667 has fpa registers.
5668
7cf1de6c
AA
56692017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
5670
5671 * cris-tdep.c (cris_gdbarch_init): Remove check for
5672 info.byte_order and force it to BFD_ENDIAN_LITTLE.
5673
874a1c8c
AT
56742017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
5675
5676 * corelow.c (get_core_register_section): Check for regset
5677 existence before checking for REGSET_VARIABLE_SIZE.
5678
d8b49cf0
YQ
56792017-01-26 Yao Qi <yao.qi@linaro.org>
5680 Pedro Alves <palves@redhat.com>
5681
5682 PR gdb/20939
5683 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
5684 call memory_error, save memaddr instead.
5685 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
5686 negative, cal memory_error.
5687 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
5688
658ca58c
YQ
56892017-01-26 Yao Qi <yao.qi@linaro.org>
5690
5691 * disasm-selftests.c (memory_error_test): New function.
5692 (_initialize_disasm_selftests): Register memory_error_test.
5693
79843d45
YQ
56942017-01-26 Yao Qi <yao.qi@linaro.org>
5695
5696 * Makefile.in (SFILES): Add disasm-selftests.c and
5697 selftest-arch.c.
5698 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
5699 * disasm-selftests.c: New file.
5700 * selftest-arch.c: New file.
5701 * selftest-arch.h: New file.
5702
8cafda32
YQ
57032017-01-26 Yao Qi <yao.qi@linaro.org>
5704
5705 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
5706 to bfd_arch_mep. Don't return 0 if section is not
5707 found. Call print_insn_mep.
5708
e47ad6c0
YQ
57092017-01-26 Pedro Alves <palves@redhat.com>
5710 Yao Qi <yao.qi@linaro.org>
5711
5712 * arm-tdep.c: Include "disasm.h".
5713 (gdb_print_insn_arm): Update code to get gdbarch.
5714 * disasm.c (dis_asm_read_memory): Change it to
5715 gdb_disassembler::dis_asm_read_memory.
5716 (dis_asm_memory_error): Likewise.
5717 (dis_asm_print_address): Likewise.
5718 (gdb_pretty_print_insn): Change it to
5719 gdb_disassembler::pretty_print_insn.
5720 (dump_insns): Add one argument gdb_disassemlber. All
5721 callers updated.
5722 (do_mixed_source_and_assembly_deprecated): Likewise.
5723 (do_mixed_source_and_assembly): Likewise.
5724 (do_assembly_only): Likewise.
5725 (gdb_disassembler::gdb_disassembler): New.
5726 (gdb_disassembler::print_insn): New.
5727 * disasm.h (class gdb_disassembler): New.
5728 (gdb_pretty_print_insn): Remove declaration.
5729 (gdb_disassemble_info): Likewise.
5730 * guile/scm-disasm.c (class gdbscm_disassembler): New.
5731 (gdbscm_disasm_read_memory_worker): Update.
5732 (gdbscm_disasm_read_memory): Update.
5733 (gdbscm_disasm_memory_error): Remove.
5734 (gdbscm_disasm_print_address): Remove.
5735 (gdbscm_disassembler::gdbscm_disassembler): New.
5736 (gdbscm_print_insn_from_port): Update.
5737 * mips-tdep.c: Include disasm.h.
5738 (gdb_print_insn_mips): Update code to get gdbarch.
5739 * record-btrace.c (btrace_insn_history): Update.
5740 * spu-tdep.c: Include disasm.h.
5741 (struct spu_dis_asm_data): Remove.
5742 (struct spu_dis_asm_info): New.
5743 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
5744 SPU id.
5745 (gdb_print_insn_spu): Cast disassemble_info to
5746 spu_dis_asm_info.
5747
80d75874
YQ
57482017-01-26 Yao Qi <yao.qi@linaro.org>
5749
5750 * disasm.c (do_ui_file_delete): Delete.
5751 (gdb_insn_length): Move code creating stream to ...
5752 * utils.c (null_stream): ... here. New function.
5753 * utils.h (null_stream): Declare.
5754
60685cd0
SM
57552017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * python/py-inferior.c (find_thread_object): Return directly
5758 from the loop. Remove "found" variable.
5759
eb1cdb62
JB
57602017-01-21 Joel Brobecker <brobecker@adacore.com>
5761
5762 GDB 7.12.1 released.
5763
b1ce6568
SM
57642017-01-20 Simon Marchi <simon.marchi@ericsson.com>
5765
5766 * python/py-function.c (fnpy_call): Reorder declarations to have
5767 the gdbpy_enter object declared first.
5768 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
5769
6f8b0407
SM
57702017-01-20 Simon Marchi <simon.marchi@ericsson.com>
5771
fec93fb1 5772 PR python/21068
6f8b0407
SM
5773 * python/python-internal.h (PyMem_RawMalloc): Define for
5774 Python < 3.4.
5775 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
5776 PyMem_RawMalloc instead of PyMem_Malloc.
5777
78cbbba8
LM
57782017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
5779 Luis Machado <lgustavo@codesourcery.com>
5780
5781 * NEWS (New commands): Mention flash-erase.
5782 (New MI commands): Mention target-flash-erase.
5783 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
5784 command.
5785 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
5786 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
5787 * target.c (flash_erase_command): New function.
5788 (initialize_targets): Add new flash-erase command.
5789 * target.h (flash_erase_command): New declaration.
5790
2132fe85
JB
57912017-01-20 Joel Brobecker <brobecker@adacore.com>
5792
5793 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
5794 HAVE_SYS_PROCFS_H is defined.
5795
d1dff226
AH
57962017-01-18 Alan Hayward <alan.hayward@arm.com>
5797
5798 * remote.c (struct cached_reg): Change data into a pointer.
5799 * (stop_reply_dtr): Free data pointers before deleting vector.
5800 (process_stop_reply): Likewise.
5801 (remote_parse_stop_reply): Allocate space for data
5802
9890e433
AH
58032017-01-18 Alan Hayward <alan.hayward@arm.com>
5804
5805 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
5806 MAX_REGISTER_SIZE.
5807 (amd64_pseudo_register_read_value): Likewise.
5808 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
5809 (store_register_using_P): Likewise.
5810 * regcache.c (regcache_xfer_part): Likewise.
5811
7a36499a
IR
58122017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
5813
5814 Split real and pseudo registers.
5815 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
5816 (sparc32_pseudo_regnum): New enum.
5817 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
5818 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
5819 (SPARC32_CP0_REGISTERS): New macro.
5820 (sparc32_pseudo_register_name): New function.
5821 (sparc32_register_name): Use sparc32_pseudo_register_name.
5822 (sparc32_pseudo_register_type): New function.
5823 (sparc32_register_type): Use sparc32_pseudo_register_type.
5824 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
5825 pseudo register numbers.
5826 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
5827 (SPARC64_CP0_REGISTERS): New macro.
5828 (sparc64_pseudo_register_name): New function.
5829 (sparc64_register_name): Use sparc64_pseudo_register_name.
5830 (sparc64_pseudo_register_type): New function.
5831 (sparc64_register_type): Use sparc64_pseudo_register_type.
5832 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
5833 pseudo register numbers.
5834 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
5835 sparc64_store_arguments): Handle pseudo register numbers.
5836
6f8976bf
YQ
58372017-01-13 Yao Qi <yao.qi@linaro.org>
5838
5839 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
5840 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
5841 output.
5842 (getpkt_or_notif_sane_1): Likewise.
5843
e4241ace
YQ
58442017-01-13 Yao Qi <yao.qi@linaro.org>
5845
5846 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
5847 of CC. Pass "-x c++-header" instead of "-x c".
5848
3015c064
SM
58492017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * remote.c (remote_can_async_p): Update comment.
5852
fde1b17d
SM
58532017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5854
5855 * linux-nat.c (linux_nat_can_async_p): Update comment.
5856
ca1ca08b
SM
58572017-01-12 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
5860
4ad2da73
SM
58612017-01-11 Simon Marchi <simon.marchi@ericsson.com>
5862
5863 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
5864
c8b23b3f
TT
58652017-01-10 Tom Tromey <tom@tromey.com>
5866
5867 * python/py-type.c (typy_legacy_template_argument): Update.
5868 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
5869 ~demangle_parse_info): Declare new members.
5870 (cp_demangled_name_to_comp): Return unique_ptr.
5871 (cp_demangled_name_parse_free)
5872 (make_cleanup_cp_demangled_name_parse_free)
5873 (cp_new_demangle_parse_info): Remove.
5874 * cp-support.c (do_demangled_name_parse_free_cleanup)
5875 (make_cleanup_cp_demangled_name_parse_free): Remove.
5876 (inspect_type, cp_canonicalize_string_full)
5877 (cp_canonicalize_string): Update.
5878 (mangled_name_to_comp): Change return type.
5879 (cp_class_name_from_physname, method_name_from_physname)
5880 (cp_func_name, cp_remove_params): Update.
5881 * cp-name-parser.y (demangle_parse_info): New constructor, from
5882 cp_new_demangle_parse_info.
5883 (~demangle_parse_info): New destructor, from
5884 cp_demangled_name_parse_free.
5885 (cp_merge_demangle_parse_infos): Update.
5886 (cp_demangled_name_to_comp): Change return type.
5887
1ac32117
TT
58882017-01-10 Tom Tromey <tom@tromey.com>
5889
5890 * top.c (prevent_dont_repeat): Change return type.
5891 * python/python.c (execute_gdb_command): Use std::string.
5892 Update.
5893 * guile/guile.c (gdbscm_execute_gdb_command): Update.
5894 * command.h (prevent_dont_repeat): Change return type.
5895 * breakpoint.c (bpstat_do_actions_1): Update.
5896
0cf08227
TT
58972017-01-10 Tom Tromey <tom@tromey.com>
5898
5899 * value.h (scoped_value_mark::~scoped_value_mark): Call
5900 free_to_mark.
5901 (scoped_value_mark::free_to_mark): New method.
5902 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5903 scoped_value_mark.
5904
eb115069
TT
59052017-01-10 Tom Tromey <tom@tromey.com>
5906
5907 * python/py-value.c (valpy_dereference, valpy_referenced_value)
5908 (valpy_reference_value, valpy_const_value, valpy_get_address)
5909 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5910 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
5911 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
5912 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5913 scoped_value_mark.
5914 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
5915 * value.h (scoped_value_mark): New class.
5916
906768f9
TT
59172017-01-10 Tom Tromey <tom@tromey.com>
5918
5919 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
5920 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
5921 * psymtab.c (discard_psymtabs_upto): Remove.
5922 (make_cleanup_discard_psymtabs): Remove.
5923 (struct psymtab_state): Remove.
5924
bef155c3
TT
59252017-01-10 Tom Tromey <tom@tromey.com>
5926
5927 * record-full.c (record_full_save_cleanups): Remove.
5928 (record_full_save): Use gdb::unlinker.
5929 * gcore.c (do_bfd_delete_cleanup): Remove.
5930 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
5931 cleanups.
5932 * dwarf2read.c (unlink_if_set): Remove.
5933 (write_psymtabs_to_index): Use gdb::unlinker.
5934 * common/gdb_unlinker.h: New file.
5935
192b62ce
TT
59362017-01-10 Tom Tromey <tom@tromey.com>
5937
5938 * windows-tdep.c (windows_xfer_shared_library): Update.
5939 * windows-nat.c (windows_make_so): Update.
5940 * utils.h (make_cleanup_bfd_unref): Remove.
5941 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
5942 * symfile.h (symfile_bfd_open)
5943 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
5944 * symfile.c (read_symbols, symbol_file_add)
5945 (separate_debug_file_exists): Update.
5946 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
5947 (generic_load, reread_symbols): Update.
5948 * symfile-mem.c (symbol_file_add_from_memory): Update.
5949 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
5950 (spu_symbol_file_add_from_memory): Update.
5951 * solist.h (struct target_so_ops) <bfd_open>: Return
5952 gdb_bfd_ref_ptr.
5953 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
5954 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
5955 gdb_bfd_ref_ptr.
5956 (solib_map_sections, reload_shared_libraries_1): Update.
5957 * solib-svr4.c (enable_break): Update.
5958 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
5959 * solib-frv.c (enable_break2): Update.
5960 * solib-dsbt.c (enable_break): Update.
5961 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
5962 gdb_bfd_ref_ptr.
5963 (darwin_solib_get_all_image_info_addr_at_init): Update.
5964 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
5965 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
5966 * record-full.c (record_full_save): Update.
5967 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
5968 * procfs.c (insert_dbx_link_bpt_in_file): Update.
5969 * minidebug.c (find_separate_debug_file_in_section): Return
5970 gdb_bfd_ref_ptr.
5971 * machoread.c (macho_add_oso_symfile): Change abfd to
5972 gdb_bfd_ref_ptr.
5973 (macho_symfile_read_all_oso): Update.
5974 (macho_check_dsym): Return gdb_bfd_ref_ptr.
5975 (macho_symfile_read): Update.
5976 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
5977 (jit_bfd_try_read_symtab): Update.
5978 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5979 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5980 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5981 gdb_bfd_ref_ptr.
5982 (gdb_bfd_ref_policy): New struct.
5983 (gdb_bfd_ref_ptr): New typedef.
5984 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
5985 (gdb_bfd_openw, gdb_bfd_openr_iovec)
5986 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
5987 gdb_bfd_ref_ptr.
5988 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5989 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
5990 (gcore_command): Update.
5991 * exec.c (exec_file_attach): Update.
5992 * elfread.c (elf_symfile_read): Update.
5993 * dwarf2read.c (dwarf2_get_dwz_file): Update.
5994 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
5995 (open_and_init_dwo_file): Update.
5996 (open_dwp_file): Return gdb_bfd_ref_ptr.
5997 (open_and_init_dwp_file): Update.
5998 * corelow.c (core_open): Update.
5999 * compile/compile-object-load.c (compile_object_load): Update.
6000 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
6001 * coffread.c (coff_symfile_read): Update.
6002 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
6003 gdb_bfd_ref_ptr. Rename.
6004 (dump_bfd_file, restore_command): Update.
6005 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
6006 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
6007 (find_separate_debug_file_by_buildid): Update.
6008
50315b21
TT
60092017-01-10 Tom Tromey <tom@tromey.com>
6010
6011 * common/gdb_ref_ptr.h: New file.
6012 * python/py-ref.h (struct gdbpy_ref_policy): New.
6013 (gdbpy_ref): Now a typedef.
6014
fc4007c9
TT
60152017-01-10 Tom Tromey <tom@tromey.com>
6016
6017 * utils.h (make_cleanup_htab_delete): Don't declare.
6018 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
6019 Remove.
6020 * linespec.c (decode_compound_collector): Add constructor,
6021 destructor.
6022 (lookup_prefix_sym): Remove cleanup.
6023 (symtab_collector): Add constructor, destructor.
6024 (collect_symtabs_from_filename): Remove cleanup.
6025 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
6026 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
6027 Use htab_up.
6028 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
6029 * dwarf2read.c (dw2_expand_symtabs_matching)
6030 (dw2_map_symbol_filenames, dwarf_decode_macros)
6031 (write_psymtabs_to_index): Use htab_up.
6032 * dwarf2loc.c (func_verify_no_selftailcall)
6033 (call_site_find_chain_1, func_verify_no_selftailcall)
6034 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
6035 std::vector, gdb::unique_xmalloc_ptr.
6036 (call_sitep): Remove typedef.
6037 (dwarf2_locexpr_baton_eval): Remove unused variable.
6038
8dbcee67
TT
60392017-01-10 Tom Tromey <tom@tromey.com>
6040
6041 * python/python-internal.h (make_cleanup_py_decref)
6042 (make_cleanup_py_xdecref): Don't declare.
6043 * python/py-utils.c (py_decref, make_cleanup_py_decref)
6044 (py_xdecref, make_cleanup_py_xdecref): Remove.
6045
13df46cc
TT
60462017-01-10 Tom Tromey <tom@tromey.com>
6047
6048 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
6049 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
6050
06fc9bf7
TT
60512017-01-10 Tom Tromey <tom@tromey.com>
6052
6053 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
6054
830a4934
TT
60552017-01-10 Tom Tromey <tom@tromey.com>
6056
6057 * python/py-utils.c (unicode_to_encoded_string)
6058 (python_string_to_target_string)
6059 (python_string_to_target_python_string)
6060 (python_string_to_host_string, gdbpy_obj_to_string)
6061 (get_addr_from_python): Use gdbpy_ref.
6062
4586d543
TT
60632017-01-10 Tom Tromey <tom@tromey.com>
6064
6065 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
6066 gdbpy_ref.
6067
59876f8f
TT
60682017-01-10 Tom Tromey <tom@tromey.com>
6069
6070 * python/python.c (eval_python_command, gdbpy_decode_line)
6071 (gdbpy_run_events, gdbpy_start_type_printers)
6072 (gdbpy_apply_type_printers): Use gdbpy_ref.
6073
97d83487
TT
60742017-01-10 Tom Tromey <tom@tromey.com>
6075
6076 * python/py-param.c (get_doc_string, compute_enum_values): Use
6077 gdbpy_ref.
6078
9205649a
TT
60792017-01-10 Tom Tromey <tom@tromey.com>
6080
6081 * python/py-inferior.c (find_thread_object, build_inferior_list):
6082 Use gdbpy_ref.
6083
74c49d45
TT
60842017-01-10 Tom Tromey <tom@tromey.com>
6085
6086 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
6087
16361ffb
TT
60882017-01-10 Tom Tromey <tom@tromey.com>
6089
6090 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
6091 gdbpy_ref.
6092
905f2cca
TT
60932017-01-10 Tom Tromey <tom@tromey.com>
6094
6095 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
6096 extra incref.
6097 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
6098 Use gdbpy_ref.
6099
64081434
TT
61002017-01-10 Tom Tromey <tom@tromey.com>
6101
6102 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
6103 gdbpy_ref.
6104
59e9e831
TT
61052017-01-10 Tom Tromey <tom@tromey.com>
6106
6107 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
6108 decref results of PyArg_ParseTupleAndKeywords.
6109
9de10f6d
TT
61102017-01-10 Tom Tromey <tom@tromey.com>
6111
6112 * python/python.c (python_run_simple_file): Use
6113 unique_xmalloc_ptr, gdbpy_ref.
6114
2bd5759d
TT
61152017-01-10 Tom Tromey <tom@tromey.com>
6116
6117 * python/py-prettyprint.c (print_stack_unless_memory_error)
6118 (print_string_repr, print_children): Use gdbpy_ref.
6119 (dummy_python_frame): New class.
6120 (dummy_python_frame::dummy_python_frame): Rename from
6121 push_dummy_python_frame.
6122 (py_restore_tstate): Remove.
6123
3b4e0e01
TT
61242017-01-10 Tom Tromey <tom@tromey.com>
6125
6126 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
6127
17a22718
TT
61282017-01-10 Tom Tromey <tom@tromey.com>
6129
6130 * python/python.c (ensure_python_env, restore_python_env):
6131 Remove.
6132 * python/python-internal.h (ensure_python_env): Don't declare.
6133 * varobj.h (varobj_ensure_python_env): Don't declare.
6134 * varobj.c (varobj_ensure_python_env): Remove.
6135
68cdc557
TT
61362017-01-10 Tom Tromey <tom@tromey.com>
6137
6138 * varobj.c (varobj_value_get_print_value): Use
6139 gdbpy_enter_varobj.
6140
1eba6383
TT
61412017-01-10 Tom Tromey <tom@tromey.com>
6142
6143 * python/py-prettyprint.c (print_string_repr, print_children):
6144 Update.
6145 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
6146 of "encoding".
6147 * varobj.c (varobj_value_get_print_value): Update.
6148 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
6149
bde7b3e3
TT
61502017-01-10 Tom Tromey <tom@tromey.com>
6151
6152 * varobj.c (varobj_get_display_hint)
6153 (dynamic_varobj_has_child_method, install_new_value_visualizer)
6154 (varobj_set_visualizer, free_variable): Use
6155 gdbpy_enter_varobj.
6156
a7785f8c
TT
61572017-01-10 Tom Tromey <tom@tromey.com>
6158
6159 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
6160 (do_finish_initialization): New function. Use gdbpy_ref.
6161 (gdbpy_finish_initialization): Use gdbpy_enter. Call
6162 do_finish_initialization.
6163
2865bfce
TT
61642017-01-10 Tom Tromey <tom@tromey.com>
6165
6166 * python/py-param.c (get_set_value, get_show_value): Use
6167 gdbpy_enter, gdbpy_ref.
6168
0e9dcc75
TT
61692017-01-10 Tom Tromey <tom@tromey.com>
6170
6171 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
6172
12a5cedd
TT
61732017-01-10 Tom Tromey <tom@tromey.com>
6174
6175 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
6176
788f2586
TT
61772017-01-10 Tom Tromey <tom@tromey.com>
6178
6179 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
6180 Use gdbpy_enter_varobj.
6181
6cd67bea
TT
61822017-01-10 Tom Tromey <tom@tromey.com>
6183
6184 * varobj.c (gdbpy_enter_varobj): New constructor.
6185 * python/python-internal.h (gdbpy_enter_varobj): New class.
6186 * python/py-varobj.c (py_varobj_get_iterator): Use
6187 gdbpy_enter_varobj.
6188
14b122bf
TT
61892017-01-10 Tom Tromey <tom@tromey.com>
6190
6191 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
6192 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
6193 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
6194 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
6195 unique_xmalloc_ptr.
6196 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
6197
bf1ca3b9
TT
61982017-01-10 Tom Tromey <tom@tromey.com>
6199
6200 * python/py-xmethods.c (invoke_match_method): Use
6201 gdbpy_ref.
6202
572a5524
TT
62032017-01-10 Tom Tromey <tom@tromey.com>
6204
6205 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
6206 gdbpy_enter, gdbpy_ref.
6207
396a78b6
TT
62082017-01-10 Tom Tromey <tom@tromey.com>
6209
6210 * python/python.c (python_interactive_command): Use gdbpy_enter.
6211
a88b13c7
TT
62122017-01-10 Tom Tromey <tom@tromey.com>
6213
6214 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
6215 gdbpy_ref.
6216
e9f0c363
TT
62172017-01-10 Tom Tromey <tom@tromey.com>
6218
6219 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
6220 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
6221
6349f452
TT
62222017-01-10 Tom Tromey <tom@tromey.com>
6223
6224 * utils.h (htab_deleter): New struct.
6225 (htab_up): New typedef.
6226 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
6227 gdbpy_enter, gdbpy_ref, htab_up.
6228
c0171de6
TT
62292017-01-10 Tom Tromey <tom@tromey.com>
6230
6231 * python/py-unwind.c (pending_frame_invalidate): Remove.
6232 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
6233
f18e226f
TT
62342017-01-10 Tom Tromey <tom@tromey.com>
6235
6236 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
6237 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
6238
c57af3f1
TT
62392017-01-10 Tom Tromey <tom@tromey.com>
6240
6241 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
6242
60e600ec
TT
62432017-01-10 Tom Tromey <tom@tromey.com>
6244
6245 * python/python.c (gdbpy_eval_from_control_command)
6246 (gdbpy_source_script, gdbpy_run_events)
6247 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
6248 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
6249 gdbpy_enter.
6250
bf7da5b0
TT
62512017-01-10 Tom Tromey <tom@tromey.com>
6252
6253 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
6254
2d38bced
TT
62552017-01-10 Tom Tromey <tom@tromey.com>
6256
6257 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
6258
07bc7329
TT
62592017-01-10 Tom Tromey <tom@tromey.com>
6260
6261 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6262 (python_on_inferior_call_pre, python_on_inferior_call_post)
6263 (python_on_memory_change, python_on_register_change)
6264 (python_inferior_exit, python_new_objfile, add_thread_object)
6265 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
6266
6e7c365e
TT
62672017-01-10 Tom Tromey <tom@tromey.com>
6268
6269 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
6270 (bpfinishpy_handle_exit): Use gdbpy_enter.
6271
6ba0cd40
TT
62722017-01-10 Tom Tromey <tom@tromey.com>
6273
6274 * python/py-cmd.c (cmdpy_destroyer)
6275 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
6276 gdbpy_enter.
6277
de2dc875
TT
62782017-01-10 Tom Tromey <tom@tromey.com>
6279
6280 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
6281 gdbpy_enter.
6282 (gdbpy_breakpoint_has_cond): Likewise.
6283
4ecee2c4
TT
62842017-01-10 Tom Tromey <tom@tromey.com>
6285
6286 * python/python.c (gdbpy_enter): New constructor.
6287 (~gdbpy_enter): New destructor.
6288 (restore_python_env, ensure_python_env): Rewrite.
6289 * python/python-internal.h (gdbpy_enter): New class.
6290
37fce74f
TT
62912017-01-10 Tom Tromey <tom@tromey.com>
6292
6293 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
6294
53a0cca3
TT
62952017-01-10 Tom Tromey <tom@tromey.com>
6296
6297 * python/py-value.c (value_has_field, get_field_flag)
6298 (get_field_type, valpy_getitem, convert_value_from_python): Use
6299 gdbpy_ref.
6300
ff3724f5
TT
63012017-01-10 Tom Tromey <tom@tromey.com>
6302
6303 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
6304 gdbpy_ref.
6305
0700aea5
TT
63062017-01-10 Tom Tromey <tom@tromey.com>
6307
6308 * python/py-prettyprint.c (search_pp_list)
6309 (find_pretty_printer_from_objfiles)
6310 (find_pretty_printer_from_progspace)
6311 (find_pretty_printer_from_gdb, find_pretty_printer)
6312 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
6313 gdbpy_ref.
6314
1bb44c9f
TT
63152017-01-10 Tom Tromey <tom@tromey.com>
6316
6317 * python/py-param.c (call_doc_function): Use gdbpy_ref.
6318
87ce03fd
TT
63192017-01-10 Tom Tromey <tom@tromey.com>
6320
6321 * python/py-linetable.c (build_line_table_tuple_from_pcs)
6322 (ltpy_get_all_source_lines): Use gdbpy_ref.
6323
ee0a3fb8
TT
63242017-01-10 Tom Tromey <tom@tromey.com>
6325
6326 * python/py-framefilter.c (extract_sym, extract_value)
6327 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
6328 gdbpy_ref.
6329
bf2a52fa
TT
63302017-01-10 Tom Tromey <tom@tromey.com>
6331
6332 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
6333
f59fe7f8
TT
63342017-01-10 Tom Tromey <tom@tromey.com>
6335
6336 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
6337
80bd970a
TT
63382017-01-10 Tom Tromey <tom@tromey.com>
6339
6340 * python/py-function.c (convert_values_to_python, fnpy_init): Use
6341 gdbpy_ref.
6342
d1b3de2e
TT
63432017-01-10 Tom Tromey <tom@tromey.com>
6344
6345 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
6346
3bb43384
TT
63472017-01-10 Tom Tromey <tom@tromey.com>
6348
6349 * python/py-type.c (convert_field, make_fielditem, typy_fields)
6350 (typy_range): Use gdbpy_ref.
6351
abf5651e
TT
63522017-01-10 Tom Tromey <tom@tromey.com>
6353
6354 * python/py-threadevent.c (create_thread_event_object): Use
6355 gdbpy_ref.
6356 * python/py-stopevent.c (create_stop_event_object): Simplify.
6357 (emit_stop_event): Use gdbpy_ref.
6358 * python/py-signalevent.c (create_signal_event_object): Use
6359 gdbpy_ref.
6360 * python/py-newobjfileevent.c (create_new_objfile_event_object)
6361 (emit_new_objfile_event, create_clear_objfiles_event_object)
6362 (emit_clear_objfiles_event): Use gdbpy_ref.
6363 * python/py-infevents.c (create_inferior_call_event_object)
6364 (create_register_changed_event_object)
6365 (create_memory_changed_event_object, emit_inferior_call_event)
6366 (emit_memory_changed_event, emit_register_changed_event): Use
6367 gdbpy_ref.
6368 * python/py-exitedevent.c (create_exited_event_object)
6369 (emit_exited_event): Use gdbpy_ref.
6370 * python/py-event.h (evpy_emit_event): Remove
6371 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
6372 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
6373 * python/py-continueevent.c (emit_continue_event): Use
6374 gdbpy_ref.
6375 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6376 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6377 gdbpy_ref.
6378 * python/py-bpevent.c (create_breakpoint_event_object): Use
6379 gdbpy_ref.
6380
a68ff33e
TT
63812017-01-10 Tom Tromey <tom@tromey.com>
6382
6383 * python/py-ref.h: New file.
6384
7becfd03
SM
63852017-01-10 Simon Marchi <simon.marchi@ericsson.com>
6386
6387 * cli-out.c (cli_ui_out::do_redirect): Change return type to
6388 void.
6389 * cli-out.h (cli_ui_out::do_redirect): Likewise.
6390 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
6391 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
6392 * ui-out.c (ui_out::redirect): Likewise.
6393 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
6394 * cli/cli-logging.c (set_logging_redirect): Update call site of
6395 ui_out::redirect.
6396 (handle_redirections): Likewise.
6397 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
6398 * top.c (execute_command_to_string): Likewise.
6399 * utils.c (do_ui_out_redirect_pop): Likewise.
6400
df294654
SM
64012017-01-10 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * stack.c (_initialize_stack): Update "frame" command help message.
6404
f5e6296e
IB
64052017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
6406
6407 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
6408
0e2d6fa6
YQ
64092017-01-06 Yao Qi <yao.qi@linaro.org>
6410
6411 * x86-linux-nat.h: Include gdb_proc_service.h.
6412
44d6d3f9
YQ
64132017-01-06 Yao Qi <yao.qi@linaro.org>
6414
6415 * ser-base.h: Include serial.h.
6416
656731fe
YQ
64172017-01-06 Yao Qi <yao.qi@linaro.org>
6418
6419 * ppc-linux-tdep.h: Include ppc-tdep.h.
6420
1ca8f924
YQ
64212017-01-06 Yao Qi <yao.qi@linaro.org>
6422
6423 * nat/amd64-linux-siginfo.h: Include signal.h.
6424
bc3008c4
YQ
64252017-01-06 Yao Qi <yao.qi@linaro.org>
6426
6427 * nat/aarch64-linux-hw-point.h: Include break-common.h.
6428
66c80d03
YQ
64292017-01-06 Yao Qi <yao.qi@linaro.org>
6430
6431 * mi/mi-parse.h: Include mi-cmds.h.
6432
051d2dda
YQ
64332017-01-06 Yao Qi <yao.qi@linaro.org>
6434
6435 * inf-loop.c: Don't include "target.h".
6436 * inf-loop.h: Include it here.
6437
8018d34f
YQ
64382017-01-06 Yao Qi <yao.qi@linaro.org>
6439
6440 * dfp.h: Include "dboulest.h" and "expression.h".
6441
c0b8369c
YQ
64422017-01-06 Yao Qi <yao.qi@linaro.org>
6443
6444 * ax-gdb.h: Include "ax.h".
6445
ad5cba2a
YQ
64462017-01-06 Yao Qi <yao.qi@linaro.org>
6447
6448 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
6449 with nat/gdb_ptrace.h.
6450
1c33cd7f
YQ
64512017-01-05 Yao Qi <yao.qi@linaro.org>
6452
6453 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
6454 new line.
6455 (mips64_fbsd_sigframe_init): Likewise.
6456
c988ac1d
JB
64572017-01-04 John Baldwin <jhb@FreeBSD.org>
6458
6459 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
6460 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
6461
b268007c
JB
64622017-01-04 John Baldwin <jhb@FreeBSD.org>
6463
6464 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6465 * NEWS: Mention new FreeBSD/mips native configuration.
6466 * config/mips/fbsd.mh: New file.
6467 * configure.host: Add mips*-*-freebsd*.
6468 * mips-fbsd-nat.c: New file.
6469
387360da
JB
64702017-01-04 John Baldwin <jhb@FreeBSD.org>
6471
6472 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
6473 (ALLDEPFILES): Add mips-fbsd-tdep.c.
6474 * NEWS: Mention new FreeBSD/mips target.
6475 * configure.tgt: Add mips*-*-freebsd*.
6476 * mips-fbsd-tdep.c: New file.
6477 * mips-fbsd-tdep.h: New file.
6478
2aaaf250
YQ
64792017-01-04 Yao Qi <yao.qi@linaro.org>
6480
6481 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
6482 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
6483
61baf725
JB
64842017-01-01 Joel Brobecker <brobecker@adacore.com>
6485
6dbb839a 6486 Update copyright year range in all GDB files.
61baf725 6487
c113e7ff 64882017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 6489
c113e7ff 6490 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 6491
c113e7ff 6492For older changes see ChangeLog-2016.
c906108c
SS
6493\f
6494Local Variables:
6495mode: change-log
6496left-margin: 8
6497fill-column: 74
6498version-control: never
57da7796 6499coding: utf-8
c906108c 6500End:
This page took 2.550298 seconds and 4 git commands to generate.