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