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