Create pseudo sections for FreeBSD NT_PTLWPINFO core notes.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2af9fc44
JB
12017-07-07 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4
382b69bb
JB
52017-07-07 John Baldwin <jhb@FreeBSD.org>
6
7 * corelow.c (get_core_siginfo): Remove.
8 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9 instead of get_core_siginfo.
10 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11 * gdbarch.h: Re-generate.
12 * gdbarch.c: Re-generate.
13 * linux-tdep.c (linux_core_xfer_siginfo): New.
14 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
15
6e5eab33
JB
162017-07-07 John Baldwin <jhb@FreeBSD.org>
17
18 * corelow.c (thread_section_name): Move to ...
19 * gdbcore.h (thread_section_name): ... here.
20
929edea9
JB
212017-07-07 John Baldwin <jhb@FreeBSD.org>
22
23 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
24 (struct siginfo32): New.
25 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
26 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
27 via ptrace(PT_LWPINFO).
28
762c974a
JB
292017-07-07 John Baldwin <jhb@FreeBSD.org>
30
31 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
32 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
33 (fbsd_get_siginfo_type): New.
34 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
35 (_initialize_fbsd_tdep): New.
36
33c5cd75
DB
372017-07-06 David Blaikie <dblaikie@gmail.com>
38
39 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
40 a singular dwo_unit*) to support multiple CUs in the same way that
41 multiple TUs are supported.
42 (create_cus_hash_table): Replace create_dwo_cu with a function for
43 parsing multiple CUs from a DWO file.
44 (open_and_init_dwo_file): Use create_cus_hash_table rather than
45 create_dwo_cu.
46 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
47 htab_find, rather than comparing the signature to a singleton CU in
48 the dwo_file.
49
8455d262
PA
502017-07-06 Pedro Alves <palves@redhat.com>
51
52 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
53
4da3eb35
PA
542017-07-04 Pedro Alves <palves@redhat.com>
55
56 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
57 * gdbtypes.h (TYPE_STATIC): Delete.
58 (struct fn_field) <is_public, is_abstract, is_static, is_final,
59 is_synchronized, is_native>: Delete.
60 <dummy>: Bump.
61 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
62 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
63 (TYPE_FN_FIELD_ABSTRACT): Delete.
64
5bfd255c
SM
652017-07-03 Simon Marchi <simon.marchi@ericsson.com>
66
67 * buffer.h (buffer_finish): Fix spelling mistakes.
68
25c54127
EZ
692017-07-01 Eli Zaretskii <eliz@gnu.org>
70
71 * .dir-locals.el: Automatically switch to C-style comments in
72 versions of Emacs that support the feature.
73
dc4bde35
SDJ
742017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
75 Pedro Alves <palves@redhat.com>
76
77 PR cli/21688
78 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
79 (process_next_line): New variable 'inline_cmd'.
80 Adjust 'if' clauses for "python", "compile" and "guile" to use
81 'command_name_equals' and check for '!inline_cmd'.
82
51ed89aa
SDJ
832017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
84
85 PR cli/21688
86 * cli/cli-script.c (command_name_equals_not_inline): New function.
87 (process_next_line): Adjust 'if' clauses for "python", "compile"
88 and "guile" to use command_name_equals_not_inline.
89
eb17d413
PA
902017-06-29 Pedro Alves <palves@redhat.com>
91
92 * completer.c (expression_completer): Call
93 linespec_location_completer instead of location_completer.
94
195bcdd5
PA
952017-06-29 Pedro Alves <palves@redhat.com>
96
97 * completer.c (expression_completer): Remove code that recomputes
98 'text' from 'word'.
99
adc764e7
YQ
1002017-06-29 Yao Qi <yao.qi@linaro.org>
101
102 * regformats/regdat.sh: Generate code with
103 "ifndef IN_PROCESS_AGENT".
104
6e75794e
PA
1052017-06-28 Pedro Alves <palves@redhat.com>
106
107 * command.h: Include "common/scoped_restore.h".
108
bc491f2e
YQ
1092017-06-28 Yao Qi <yao.qi@linaro.org>
110
111 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
112 instead of obstack_grow.
113
41664b45
DG
1142017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
115
116 PR gdb/21337
117 * symfile.c (reread_symbols): Call objfiles_changed just before
118 read_symbols.
119
6da67eb1
PA
1202017-06-27 Pedro Alves <palves@redhat.com>
121
122 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
123 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
124 (completion_list_add_symbol, completion_list_add_msymbol):
125 ... these new functions.
126 (add_symtab_completions)
127 (default_make_symbol_completion_list_break_on_1): Adjust.
128
23732b1e
PA
1292017-06-27 Pedro Alves <palves@redhat.com>
130
131 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
132 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
133 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
134 dtor.
135 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
136 'storage_obstack' field an auto_obstack. In-class initialize all
137 non-bitfield fields. Make minsyms_read bool.
138 * symfile.c (read_symbols): Adjust.
139
a4d1e79a
AH
1402017-06-27 Alan Hayward <alan.hayward@arm.com>
141
142 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
143 (gdbsim_store_register): Likewise.
144
8268c778
PA
1452017-06-27 Pedro Alves <palves@redhat.com>
146
147 * c-exp.y (name_obstack): Now an auto_obstack.
148 (yylex): Use auto_obstack::clear.
149 (c_parse): Use auto_obstack::clear instead of reinitializing and
150 freeing the obstack.
151 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
152 * d-exp.y (name_obstack): Now an auto_obstack.
153 (yylex): Use auto_obstack::clear.
154 (d_parse): Use auto_obstack::clear instead of reinitializing and
155 freeing the obstack.
156 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
157 auto_obstack.
158 * dwarf2read.c (create_addrmap_from_index)
159 (dwarf2_build_psymtabs_hard)
160 (update_enumeration_type_from_children): Likewise.
161 * gdb_obstack.h (auto_obstack): New type.
162 * go-exp.y (name_obstack): Now an auto_obstack.
163 (build_packaged_name): Use auto_obstack::clear.
164 (go_parse): Use auto_obstack::clear instead of reinitializing and
165 freeing the obstack.
166 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
167 auto_obstack.
168 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
169 * rust-exp.y (work_obstack): Now an auto_obstack.
170 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
171 reinitializing and freeing the obstack.
172 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
173 (host_char_to_target): Use auto_obstack.
174 * utils.h (make_cleanup_obstack_free): Delete declaration.
175 * valprint.c (generic_emit_char, generic_printstr): Use
176 auto_obstack.
177
db665f42
SM
1782017-06-27 Simon Marchi <simon.marchi@ericsson.com>
179
180 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
181 thread.
182 (darwin_init_thread_list): Don't update dummy thread.
183 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
184
873c0814
SM
1852017-06-26 Simon Marchi <simon.marchi@ericsson.com>
186
187 * record-full.c (netorder16): Remove.
188
8b5a7a6e
SM
1892017-06-26 Simon Marchi <simon.marchi@ericsson.com>
190
191 * common/diagnostics.h: Define macros for GCC.
192 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
193 * common/vec.h: Include diagnostics.h.
194 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
195 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
196 warning.
197
d1435379
SM
1982017-06-26 Simon Marchi <simon.marchi@ericsson.com>
199
200 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
201 New macro.
202 * ada-lex.l: Ignore deprecated register warnings.
203
cc75e0fd
SM
2042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
205
206 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
207 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
208
07809eaf
SM
2092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
210
211 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
212 its own line.
213
f076f034
SM
2142017-06-25 Simon Marchi <simon.marchi@ericsson.com>
215
216 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
217
0dd5cbc5
AH
2182017-06-23 Alan Hayward <alan.hayward@arm.com>
219
220 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
221 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
222 (xtensa_register_read_masked): Likewise.
223
d4c6ce5b
SDJ
2242017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
225
226 * common/environ.c (gdb_environ::unset): Update comment.
227
16892a03
AH
2282017-06-22 Alan Hayward <alan.hayward@arm.com>
229
230 * python/py-unwind.c (pyuw_sniffer): Allocate space for
231 registers.
232
d7dcbefc
AH
2332017-06-22 Alan Hayward <alan.hayward@arm.com>
234
235 * record-full.c (record_full_exec_insn): Use byte_vector.
236
b30ff123
YQ
2372017-06-22 Yao Qi <yao.qi@linaro.org>
238
239 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
240 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
241
4fa847d7
AH
2422017-06-22 Alan Hayward <alan.hayward@arm.com>
243
244 * remote.c (cached_reg): Move from here...
245 * regcache.h (cached_reg): ...to here.
246 * python/py-unwind.c (struct reg_info): Remove.
247 (cached_frame_info): Use cached_reg_t.
248 (pyuw_prev_register): Likewise.
249 (pyuw_sniffer): Use cached_reg_t and allocate registers.
250 (pyuw_dealloc_cache): Free all registers.
251
f4906a9a
PA
2522017-06-22 Pedro Alves <palves@redhat.com>
253 Simon Marchi <simon.marchi@ericsson.com>
254
255 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
256 warning.
257 * common/diagnostics.h: New file.
258
b45a1208
PA
2592017-06-22 Pedro Alves <palves@redhat.com>
260
261 * common/agent.h: Add include guards.
262
e4da2c61
SM
2632017-06-21 Simon Marchi <simon.marchi@ericsson.com>
264
265 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
266 talk about addressable units instead of bytes.
267
96160d60
SDJ
2682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
269
270 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
271 of '::const_iterator'.
272
9a6c7d9c
SDJ
2732017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
274
275 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
276 'unittests/environ-selftests.c'.
277 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
278 * charset.c (find_charset_names): Declare object 'iconv_env'.
279 Update code to use 'iconv_env' object. Remove call to
280 'free_environ'.
281 * common/environ.c: Include <utility>.
282 (make_environ): Delete function.
283 (free_environ): Delete function.
284 (gdb_environ::clear): New function.
285 (gdb_environ::operator=): New function.
286 (gdb_environ::get): Likewise.
287 (environ_vector): Delete function.
288 (set_in_environ): Delete function.
289 (gdb_environ::set): New function.
290 (unset_in_environ): Delete function.
291 (gdb_environ::unset): New function.
292 (gdb_environ::envp): Likewise.
293 * common/environ.h: Include <vector>.
294 (struct gdb_environ): Delete; transform into...
295 (class gdb_environ): ... this class.
296 (free_environ): Delete prototype.
297 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
298 environ_vector): Likewise.
299 * infcmd.c (run_command_1): Update code to call
300 'envp' from 'gdb_environ' class.
301 (environment_info): Update code to call methods from 'gdb_environ'
302 class.
303 (unset_environment_command): Likewise.
304 (path_info): Likewise.
305 (path_command): Likewise.
306 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
307 (inferior::inferior): Initialize 'environment' using the host's
308 information.
309 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
310 Include "environ.h".
311 (class inferior) <environment>: Change type from 'struct
312 gdb_environ' to 'gdb_environ'.
313 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
314 methods from 'gdb_environ' class.
315 * solib.c (solib_find_1): Likewise
316 * unittests/environ-selftests.c: New file.
317
75c554cf
YQ
3182017-06-20 Yao Qi <yao.qi@linaro.org>
319
320 * features/i386/i386-linux.xml: Exchange the order of including
321 32bit-linux.xml and 32bit-sse.xml.
322 * features/i386/i386-linux.c: Regenerated.
323
72ddacb7
YQ
3242017-06-20 Yao Qi <yao.qi@linaro.org>
325
326 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
327 Delete copy ctor and assignment operator.
328 (tdesc_type): Likewise.
329 (tdesc_feature): Likewise.
330 (tdesc_free_reg): Remove.
331 (tdesc_create_reg): Use new.
332 (tdesc_free_type): Remove.
333 (tdesc_create_vector): Use new.
334 (tdesc_create_union): Likewise.
335 (tdesc_create_flags): Likewise.
336 (tdesc_create_enum): Likewise.
337 (tdesc_free_feature): Delete.
338 (free_target_description): Use delete.
339
325c9fd4
JB
3402017-06-19 John Baldwin <jhb@FreeBSD.org>
341
342 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
343 registers.
344
16b7a719
PA
3452017-06-19 Pedro Alves <palves@redhat.com>
346
347 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
348 after gdb::unlinker.
349
1c8e01c9
SDJ
3502017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
353 gdb_environ to access an environment variable.
354
ffce45d2
TP
3552017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
356
357 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
358 gdb_byte*.
359
1d4fbac9
SM
3602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
361
362 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
363
8465943a
SM
3642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
365
366 * configure: Re-generate.
367 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
368
3e019bdc
SM
3692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
370
371 * configure: Re-generate.
372 * warning.m4: Pass -Werror to compiler when checking for
373 supported warning flags.
374
cf0dd6f0
SM
3752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
376
377 * Makefile.in (COMPILE.pre): Add "-x c++".
378
6f98355c
YQ
3792017-06-16 Alan Hayward <alan.hayward@arm.com>
380 Pedro Alves <palves@redhat.com>
381 Yao Qi <yao.qi@linaro.org>
382
383 * defs.h (RequireLongest): New.
384 (extract_integer): Declare function template.
385 (extract_signed_integer): Remove the declaration, but define it
386 static inline.
387 (extract_unsigned_integer): Likewise.
388 (store_integer): Declare function template.
389 (store_signed_integer): Remove the declaration, but define it
390 static inline.
391 (store_unsigned_integer): Likewise.
392 * findvar.c (extract_integer): New function template.
393 (extract_signed_integer): Remove.
394 (extract_unsigned_integer): Remove.
395 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
396 instantiations.
397 (store_integer): New function template.
398 (store_signed_integer): Remove.
399 (store_unsigned_integer): Remove.
400 (store_integer): Explicit instantiations.
401 * regcache.c (regcache_raw_read_signed): Update.
402 (regcache::raw_read): New function.
403 (regcache::raw_read_signed): Remove.
404 (regcache::raw_read_unsigned): Remove.
405 (regcache_raw_read_unsigned): Update.
406 (regcache_raw_write_unsigned): Update.
407 (regcache::raw_write_signed): Remove.
408 (regcache::raw_write): New function.
409 (regcache_cooked_read_signed): Update.
410 (regcache::raw_write_unsigned): Remove.
411 (regcache::cooked_read_signed): Remove.
412 (regcache_cooked_read_unsigned): Update.
413 (regcache::cooked_read_unsigned): Remove.
414 (regcache_cooked_write_signed): Update.
415 (regcache_cooked_write_unsigned): Update.
416 * regcache.h (regcache) <raw_read_signed>: Remove.
417 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
418 <raw_read, raw_write>: New.
419 <cooked_read_signed, cooked_write_signed>: Remove.
420 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
421 <cooked_read, cooked_write>: New.
422 * sh64-tdep.c (sh64_pseudo_register_read): Update.
423 (sh64_pseudo_register_write): Update.
424
a87dc45a
AK
4252017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
426
427 * arc-tdep.c (arc_disassembler_options): New variable.
428 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
429 of default_print_insn.
430 (arc_delayed_print_insn): Set info->section when needed,
431 use default_print_insn to retrieve a disassembler.
432
45159d6a
SDJ
4332017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
434
435 PR gdb/21574
436 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
437 to mention $SHELL and startup-with-shell.
438
b46c4cf0
MF
4392017-06-14 Max Filippov <jcmvbkbc@gmail.com>
440
441 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
442
6394c606
YQ
4432017-06-14 Yao Qi <yao.qi@linaro.org>
444
445 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
446 default_print_insn instead of print_insn_aarch64.
447 * arm-tdep.c (gdb_print_insn_arm): Call
448 default_print_insn instead of print_insn_big_arm
449 and print_insn_little_arm.
450 * i386-tdep.c (i386_print_insn): Call default_print_insn
451 instead of print_insn_i386.
452 * ia64-tdep.c (ia64_print_insn): Call
453 default_print_insn instead of print_insn_ia64.
454 * mips-tdep.c (gdb_print_insn_mips): Call
455 default_print_insn instead of print_insn_big_mips
456 and print_insn_little_mips.
457 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
458 instead of print_insn_spu.
459
d5722aa2
PA
4602017-06-14 Pedro Alves <palves@redhat.com>
461
462 * ada-lang.c: Include "common/byte-vector.h".
463 (ada_value_primitive_packed_val): Use gdb::byte_vector.
464 * charset.c (wchar_iterator::iterate): Resize the vector instead
465 of reserving it.
466 * common/byte-vector.h: Include "common/def-vector.h".
467 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
468 * cli/cli-dump.c: Include "common/byte-vector.h".
469 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
470 * common/byte-vector.h: New file.
471 * common/def-vector.h: New file.
472 * common/default-init-alloc.h: New file.
473 * dwarf2loc.c: Include "common/byte-vector.h".
474 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
475 instead of reserving it.
476 * dwarf2read.c: Include "common/byte-vector.h".
477 (data_buf::m_vec): Now a gdb::byte_vector.
478 * gdb_regex.c: Include "common/def-vector.h".
479 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
480 * mi/mi-main.c: Include "common/byte-vector.h".
481 (mi_cmd_data_read_memory): Use gdb::byte_vector.
482 * printcmd.c: Include "common/byte-vector.h".
483 (print_scalar_formatted): Use gdb::byte_vector.
484 * valprint.c: Include "common/byte-vector.h".
485 (maybe_negate_by_bytes, print_decimal_chars): Use
486 gdb::byte_vector.
487
01ec7a27
SM
4882017-06-13 Simon Marchi <simon.marchi@ericsson.com>
489
490 * darwin-nat.c: Include "nat/fork-inferior.h".
491
848d9074
SM
4922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
493
494 * configure.nat: Factor out Darwin bits that are not
495 architecture-specific. Add fork-inferior.o.
496
3b912944
SM
4972017-06-13 Simon Marchi <simon.marchi@ericsson.com>
498
499 * configure.nat: Factor out AIX bits that are not
500 architecture-specific. Add fork-inferior.o.
501
55acdf22
AA
5022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
503
504 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
505 (read_pieced_value, write_pieced_value): ...here. Reduce to
506 wrappers that just call rw_pieced_value.
507
f65e2044
AA
5082017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
509
510 * dwarf2loc.c (write_pieced_value): When writing the data for a
511 memory piece, use write_memory_with_notification instead of
512 write_memory.
513
23f945bf
AA
5142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * valops.c (read_value_memory): Change embedded_offset to
517 represent a bit offset instead of a byte offset.
518 * value.h (read_value_memory): Adjust comment.
519
f236533e
AA
5202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
521
522 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
523 dest_offset_bits and source_offset_bits.
524 (write_pieced_value): Likewise.
525
65d84b76
AA
5262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
527
528 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
529 given by DW_OP_bit_piece.
530 (write_pieced_value): Likewise.
531
242d31ab
AA
5322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
533
534 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
535 some other preparations to the places where sufficient information
536 is available.
537 (write_pieced_value): Likewise.
538
03c8af18
AA
5392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
540
541 * dwarf2loc.c (bits_to_bytes): New function.
542 (read_pieced_value): Fix offset calculations for register pieces
543 on big-endian targets.
544 (write_pieced_value): Likewise.
545
840989c1
AA
5462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
547
548 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
549 (write_pieced_value): Likewise.
550
359b19bb
AA
5512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
552
553 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
554 transfer the source value's least significant bits, instead of its
555 lowest-addressed ones. Rename type_len to max_offset.
556 (read_pieced_value): Mirror above changes to write_pieced_value as
557 applicable.
558
07c9ca3b
AA
5592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
560
561 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
562 truncate full bytes from dest_offset_bits before using it as an
563 offset into the buffer.
564
f1cc9874
AA
5652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
566
567 * dwarf2loc.c (write_pieced_value): Include transfer size in
568 byte-wise check.
569
cdaac320
AA
5702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
571
572 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
573 calculation of this_size.
574
af547a96
AA
5752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
576
577 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
578 when targeting a bit-field.
579 (write_pieced_value): Likewise.
580
ddd7882a
AA
5812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
582
583 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
584 (allocate_piece_closure): Drop addr_size parameter.
585 (dwarf2_evaluate_loc_desc_full): Adjust call to
586 allocate_piece_closure.
587
e9352324
AA
5882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
589
590 PR gdb/21226
591 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
592 the LSB end, independent of endianness.
593
d5d1163e
AA
5942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
595
596 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
597 size capping.
598
032bb6ea
YQ
5992017-06-13 Yao Qi <yao.qi@linaro.org>
600
601 * mips-linux-nat.c: Move include features/mips*-linux.c to
602 mips-linux-tdep.c.
603 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
604 to mips-linux-tdep.c.
605 * mips-linux-tdep.c: Include features/mips*-linux.c
606 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
607 functions.
608 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
609 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
610 (tdesc_mips64_dsp_linux): Declare.
611
f12f6bad
TT
6122017-06-12 Tom Tromey <tom@tromey.com>
613
614 * valprint.h (val_print_type_code_int): Remove.
615 * valprint.c (generic_val_print_int): Always call
616 val_print_scalar_formatted.
617 (val_print_type_code_int): Remove.
618 * printcmd.c (print_scalar_formatted): Handle options->format==0.
619 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
620 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
621 * ada-valprint.c (ada_val_print_num): Use
622 val_print_scalar_formatted.
623
d9109c80
TT
6242017-06-12 Tom Tromey <tom@tromey.com>
625
626 * printcmd.c (print_scalar_formatted): Unify the two switches.
627 Don't convert scalars to LONGEST.
628
4ac0cb1c
TT
6292017-06-12 Tom Tromey <tom@tromey.com>
630
631 PR exp/16225:
632 * valprint.h (print_decimal_chars): Update.
633 * valprint.c (maybe_negate_by_bytes): New function.
634 (print_decimal_chars): Add "is_signed" argument.
635 * printcmd.c (print_scalar_formatted): Update.
636
30a25466
TT
6372017-06-12 Tom Tromey <tom@tromey.com>
638
639 PR exp/16225:
640 * valprint.h (print_binary_chars, print_hex_chars): Update.
641 * valprint.c (val_print_type_code_int): Update.
642 (print_binary_chars): Add "zero_pad" argument.
643 (emit_octal_digit): New function.
644 (print_octal_chars): Don't zero-pad.
645 (print_decimal_chars): Likewise.
646 (print_hex_chars): Add "zero_pad" argument.
647 * sh64-tdep.c (sh64_do_fp_register): Update.
648 * regcache.c (regcache::dump): Update.
649 * printcmd.c (print_scalar_formatted): Update.
650 * infcmd.c (default_print_one_register_info): Update.
651
b3464d03
PA
6522017-06-12 Pedro Alves <palves@redhat.com>
653 Alan Hayward <alan.hayward@arm.com>
654
655 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
656 (mips_eabi_push_dummy_call): Rename local 'regsize' to
657 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
658 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
659 Assert that abi_regsize bytes fit in 'ref_valbuf'.
660
4b76cda9
PA
6612017-06-12 Pedro Alves <palves@redhat.com>
662
663 * dwarf2read.c (mapped_symtab::data): Now a vector of
664 symtab_index_entry instead of vector of
665 std::unique_ptr<symtab_index_entry>. All users adjusted to check
666 whether an element's name is NULL instead of checking whether the
667 element itself is NULL.
668 (find_slot): Change return type. Adjust.
669 (hash_expand, , add_index_entry, uniquify_cu_indices)
670 (write_hash_table): Adjust.
671
e8f8bcb3
PA
6722017-06-12 Pedro Alves <palves@redhat.com>
673
674 * dwarf2read.c (recursively_count_psymbols): New function.
675 (write_psymtabs_to_index): Call it to compute number of psyms and
676 pass estimate size of psyms_seen to unordered_set's ctor.
677
70a1152b
PA
6782017-06-12 Pedro Alves <palves@redhat.com>
679
680 * dwarf2read.c (write_hash_table): Check if key already exists
681 before emplacing.
682
c2f134ac
PA
6832017-06-12 Pedro Alves <palves@redhat.com>
684
685 * dwarf2read.c (data_buf::append_space): Rename to...
686 (data_buf::grow): ... this, and make private. Adjust all callers.
687 (data_buf::append_uint): New method.
688 (add_address_entry, write_one_signatured_type)
689 (write_psymtabs_to_index): Use it.
690
a81e6d4d
PA
6912017-06-12 Pedro Alves <palves@redhat.com>
692
693 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
694 (file_write (FILE *, const std::vector<Elem>&)): Delete.
695 (data_buf::file_write): Call ::fwrite directly.
696
6fd931f2
PA
6972017-06-12 Pedro Alves <palves@redhat.com>
698
699 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
700 std::vector::erase.
701
bc8f2430
JK
7022017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
703
704 Code cleanup: C++ify .gdb_index producer.
705 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
706 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
707 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
708 (create_strtab, add_string): Remove.
709 (file_write, data_buf): New.
710 (struct symtab_index_entry): Use std::vector for cu_indices.
711 (struct mapped_symtab): Use std::vector for data.
712 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
713 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
714 Remove.
715 (find_slot): Change return type. Update it to the new data structures.
716 (hash_expand, add_index_entry): Update it to the new data structures.
717 (offset_type_compare): Remove.
718 (uniquify_cu_indices): Update it to the new data structures.
719 (c_str_view, c_str_view_hasher, vector_hasher): New.
720 (add_indices_to_cpool): Remove.
721 (write_hash_table): Update it to the new data structures.
722 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
723 (eq_psymtab_cu_index): Remove.
724 (psym_index_map): New typedef.
725 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
726 reference and std::unordered_map for cu_index_htab.
727 (add_address_entry, add_address_entry_worker, write_address_map)
728 (write_psymbols): Update it to the new data structures.
729 (write_obstack): Remove.
730 (struct signatured_type_index_data): Change types_list to a data_buf
731 reference and psyms_seen to a std::unordered_set reference.
732 (write_one_signatured_type, recursively_write_psymbols)
733 (write_psymtabs_to_index): Update it to the new data structures.
734
c4dcb155
SM
7352017-06-11 Simon Marchi <simon.marchi@ericsson.com>
736
737 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
738 separate-debug-file commands.
739 * symfile.h (separate_debug_file_debug): New global.
740 * symfile.c (separate_debug_file_debug): New global.
741 (separate_debug_file_exists, find_separate_debug_file): Add
742 debug output.
743 (_initialize_symfile): Add "set debug separate-debug-file"
744 command.
745 * build-id.c (build_id_to_debug_bfd,
746 find_separate_debug_file_by_buildid): Add debug output.
747
6d45d4b4
SM
7482017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * gdbarch.sh (displaced_step_free_closure): Remove.
751 * gdbarch.h, gdbarch.c: Re-generate.
752 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
753 displaced_step_free_closure.
754 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
755 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
756 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
757 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
758 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
759 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
760 * arch-utils.h (simple_displaced_step_free_closure): Remove.
761 * arch-utils.c (simple_displaced_step_free_closure): Remove.
762 * infrun.c (displaced_step_clear): Call xfree instead of
763 gdbarch_displaced_step_free_closure.
764
2f91880f
SDJ
7652017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
766
767 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
768 NULL".
769
b8b6e72f
AH
7702017-06-08 Alan Hayward <alan.hayward@arm.com>
771
772 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
773 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
774 (mn10300_push_dummy_call): Likewise.
775
5369082e
AH
7762017-06-08 Alan Hayward <alan.hayward@arm.com>
777
778 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
779
ff4ca5ac
AH
7802017-06-08 Alan Hayward <alan.hayward@arm.com>
781
782 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
783
aefd8b33
SDJ
7842017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
785
786 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
787 able to start inferiors using a shell.
788 (New remote packets): Announce new packet "QStartupWithShell".
789 * remote.c: Add PACKET_QStartupWithShell.
790 (extended_remote_create_inferior): Handle new
791 PACKET_QStartupWithShell.
792 (remote_protocol_features) <QStartupWithShell>: New entry for
793 PACKET_QStartupWithShell.
794 (_initialize_remote): Call "add_packet_config_cmd" for
795 QStartupShell.
796
2090129c
SDJ
7972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
798 Pedro Alves <palves@redhat.com>
799
800 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
801 and "nat/fork-inferior.h".
802 * common/common-inferior.h: New file, with contents from
803 "gdb/inferior.h".
804 * commom/common-utils.c: Include "common-utils.h".
805 (stringify_argv): New function.
806 * common/common-utils.h (stringify_argv): New prototype.
807 * configure.nat: Add "fork-inferior.o" as a dependency for
808 "*linux*", "fbsd*" and "nbsd*" hosts.
809 * corefile.c (get_exec_file): Update comment.
810 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
811 instead of "startup_inferior".
812 (darwin_create_inferior): Call "add_thread_silent" after
813 "fork_inferior".
814 * fork-child.c: Cleanup unnecessary includes.
815 (SHELL_FILE): Move to "common/common-fork-child.c".
816 (environ): Likewise.
817 (exec_wrapper): Initialize.
818 (get_exec_wrapper): New function.
819 (breakup_args): Move to "common/common-fork-child.c"; rename to
820 "breakup_args_for_exec".
821 (escape_bang_in_quoted_argument): Move to
822 "common/common-fork-child.c".
823 (saved_ui): New variable.
824 (prefork_hook): New function.
825 (postfork_hook): Likewise.
826 (postfork_child_hook): Likewise.
827 (gdb_startup_inferior): Likewise.
828 (fork_inferior): Move to "common/common-fork-child.c". Update
829 function to support gdbserver.
830 (startup_inferior): Likewise.
831 * gdbcore.h (get_exec_file): Remove declaration.
832 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
833 instead of "startup_inferior". Call "add_thread_silent" after
834 "fork_inferior".
835 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
836 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
837 instead of "startup_inferior". Call "add_thread_silent" after
838 "fork_inferior".
839 * inferior.h: Include "common-inferior.h".
840 (trace_start_error): Move to "common/common-utils.h".
841 (trace_start_error_with_name): Likewise.
842 (fork_inferior): Move prototype to "nat/fork-inferior.h".
843 (startup_inferior): Likewise.
844 (gdb_startup_inferior): New prototype.
845 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
846 * nat/fork-inferior.h: New file.
847 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
848 instead of "startup_inferior". Call "add_thread_silent" after
849 "fork_inferior".
850 * target.h (target_terminal_init): Move prototype to
851 "target/target.h".
852 (target_terminal_inferior): Likewise.
853 (target_terminal_ours): Likewise.
854 * target/target.h (target_terminal_init): New prototype, moved
855 from "target.h".
856 (target_terminal_inferior): Likewise.
857 (target_terminal_ours): Likewise.
858 * utils.c (gdb_flush_out_err): New function.
859
043a4934
SDJ
8602017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
861
862 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
863 * common/common-gdbthread.h: New file, with parts from
864 "gdb/gdbthread.h".
865 * gdbthread.h: Include "common-gdbthread.h".
866 (switch_to_thread): Moved to "common/common-gdbthread.h".
867
15652511
SDJ
8682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
869
870 * Makefile.in (SFILES): Add "common/job-control.c".
871 (HFILES_NO_SRCDIR): Add "common/job-control.h".
872 (COMMON_OBS): Add "job-control.o".
873 * common/job-control.c: New file, with contents from
874 "gdb/inflow.c".
875 * common/job-control.h: New file, with contents from "terminal.h".
876 * fork-child.c: Include "job-control.h".
877 * inflow.c: Include "job-control.h".
878 (gdb_setpgid): Move to "common/common-inflow.c".
879 (_initialize_inflow): Move setting of "job_control" to
880 "handle_job_control".
881 * terminal.h (job_control): Moved to "common/common-terminal.h".
882 (gdb_setpgid): Likewise.
883 * top.c: Include "job_control.h".
884 * utils.c: Likewise.
885 (job_control): Moved to "job-control.c".
886
2d7cc5c7
PA
8872017-06-07 Pedro Alves <palves@redhat.com>
888
889 * Makefile.in (SFILES): Add gdb_regex.c.
890 (COMMON_OBS): Add gdb_regex.o.
891 * ada-lang.c (ada_add_standard_exceptions)
892 (ada_add_exceptions_from_frame, name_matches_regex)
893 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
894 parameter type to compiled_regex. Adjust.
895 (ada_exceptions_list): Use compiled_regex.
896 * break-catch-throw.c (exception_catchpoint::pattern): Now a
897 std::unique_ptr<compiled_regex>.
898 (exception_catchpoint::~exception_catchpoint): Remove regfree
899 call.
900 (check_status_exception_catchpoint): Adjust to use compiled_regex.
901 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
902 * breakpoint.c (solib_catchpoint::compiled): Now a
903 std::unique_ptr<compiled_regex>.
904 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
905 (check_status_catch_solib): Adjust to use compiled_regex.
906 (add_solib_catchpoint): Adjust to use compiled_regex.
907 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
908 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
909 compiled_regex reference. Adjust to use it.
910 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
911 declaration. Include "gdb_regex.h".
912 (apropos_cmd): Change regex parameter to compiled_regex reference.
913 * gdb_regex.c: New file.
914 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
915 declarations.
916 (class compiled_regex): New.
917 * linux-tdep.c: Include "common/gdb_optional.h".
918 (struct mapping_regexes): New, factored out from
919 mapping_is_anonymous_p, and adjusted to use compiled_regex.
920 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
921 gdb::optional and remove cleanups. Adjust to compiled_regex.
922 * probe.c: Include "common/gdb_optional.h".
923 (collect_probes): Use compiled_regex and gdb::optional and remove
924 cleanups.
925 * skip.c: Include "common/gdb_optional.h".
926 (skiplist_entry::compiled_function_regexp): Now a
927 gdb::optional<compiled_regex>.
928 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
929 (free_skiplist_entry): Remove regfree call.
930 (compile_skip_regexp, skip_rfunction_p): Adjust to use
931 compiled_regex and gdb::optional.
932 * symtab.c: Include "common/gdb_optional.h".
933 (search_symbols): Use compiled_regex and gdb::optional.
934 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
935 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
936 to gdb_regex.c.
937
50d6adef
AH
9382017-06-07 Alan Hayward <alan.hayward@arm.com>
939
940 * regcache.c (regcache::save): Avoid buffer use.
941 (regcache::dump): Likewise.
942
4a8a33c8
AH
9432017-06-07 Alan Hayward <alan.hayward@arm.com>
944
945 * sh-tdep.c (sh_pseudo_register_read): Remove
946 MAX_REGISTER_SIZE.
947 (sh_pseudo_register_write): Likewise.
948 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
949 (sh64_pseudo_register_write): Likewise
950
d1be909e
AH
9512017-06-07 Alan Hayward <alan.hayward@arm.com>
952
953 * aarch64-tdep.c (aarch64_store_return_value): Use
954 V_REGISTER_SIZE.
955 (aarch64_pseudo_read_value): Likewise.
956 (aarch64_pseudo_write): Likewise.
957
f4a65042
YQ
9582017-06-06 Yao Qi <yao.qi@linaro.org>
959
960 * regformats/regdef.h (set_register_cache): Remove the
961 declaration.
962
9f7fb0aa
AH
9632017-06-06 Alan Hayward <alan.hayward@arm.com>
964
965 * frame.c (frame_unwind_register_signed): Use
966 frame_unwind_register_value.
967
e1e01040
PA
9682017-06-06 Pedro Alves <palves@redhat.com>
969
970 PR breakpoints/21553
971 * breakpoint.c (create_breakpoints_sal_default)
972 (init_breakpoint_sal, create_breakpoint_sal): Use
973 gdb::unique_xmalloc_ptr for string parameters.
974 (create_breakpoint): Constify 'extra_string' and 'cond_string'
975 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
976 (base_breakpoint_create_breakpoints_sal)
977 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
978 (strace_marker_create_breakpoints_sal)
979 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
980 string parameters.
981 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
982 gdb::unique_xmalloc_ptr for string parameters.
983 (create_breakpoint): Constify 'extra_string' and 'cond_string'
984 parameters.
985
fbe654c8
AH
9862017-06-06 Alan Hayward <alan.hayward@arm.com>
987
988 * alpha-tdep.c (alpha_register_to_value): Use
989 get_frame_register_value.
990 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
991
ae0d01d6
AH
9922017-06-06 Alan Hayward <alan.hayward@arm.com>
993
994 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
995 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
996 (ia64_value_to_register): Likewise.
997 (ia64_extract_return_value): Likewise.
998 (ia64_store_return_value): Likewise.
999 (ia64_push_dummy_call): Likewise.
1000
49cf576c
JB
10012017-06-04 Joel Brobecker <brobecker@adacore.com>
1002
1003 GDB 8.0 released.
1004
26b6a6ab
SM
10052017-06-03 Simon Marchi <simon.marchi@ericsson.com>
1006
1007 * x86-linux-nat.c (struct arch_lwp_info): Remove.
1008
22827c51
SM
10092017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
1012 parameter.
1013 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
1014
0e05cf3a
SM
10152017-06-02 Simon Marchi <simon.marchi@ericsson.com>
1016
1017 * event-loop.c (poll_timers): Unallocate timer using delete
1018 instead of xfree.
1019
c1fc2657
SM
10202017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
1023 (struct breakpoint) <~breakpoint>: New.
1024 (struct watchpoint): Inherit from breakpoint.
1025 <~watchpoint>: New.
1026 <base>: Remove.
1027 (struct tracepoint): Inherit from breakpoint.
1028 <base>: Remove.
1029 * breakpoint.c (longjmp_breakpoint_ops): Remove.
1030 (struct longjmp_breakpoint): Inherit from breakpoint.
1031 <~longjmp_breakpoint>: New.
1032 <base>: Remove.
1033 (new_breakpoint_from_type): Remove casts.
1034 (watchpoint_in_thread_scope): Remove reference to base field.
1035 (watchpoint_del_at_next_stop): Likewise.
1036 (update_watchpoint): Likewise.
1037 (watchpoint_check): Likewise.
1038 (bpstat_check_watchpoint): Likewise.
1039 (set_longjmp_breakpoint): Likewise.
1040 (struct fork_catchpoint): Inherit from breakpoint.
1041 <base>: Remove.
1042 (struct solib_catchpoint): Inherit from breakpoint.
1043 <~solib_catchpoint>: New.
1044 <base>: Remove.
1045 (dtor_catch_solib): Change to ...
1046 (solib_catchpoint::~solib_catchpoint): ... this.
1047 (breakpoint_hit_catch_solib): Remove reference to base field.
1048 (add_solib_catchpoint): Likewise.
1049 (create_fork_vfork_event_catchpoint): Likewise.
1050 (struct exec_catchpoint): Inherit from breakpoint.
1051 <~exec_catchpoint>: New.
1052 <base>: Remove.
1053 (dtor_catch_exec): Change to ...
1054 (exec_catchpoint::~exec_catchpoint): ... this.
1055 (dtor_watchpoint): Change to ...
1056 (watchpoint::~watchpoint): ... this.
1057 (watch_command_1): Remove reference to base field.
1058 (catch_exec_command_1): Likewise.
1059 (base_breakpoint_dtor): Change to ...
1060 (breakpoint::~breakpoint): ... this.
1061 (base_breakpoint_ops): Remove dtor field value.
1062 (longjmp_bkpt_dtor): Change to ...
1063 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
1064 (strace_marker_create_breakpoints_sal): Remove reference to base
1065 field.
1066 (delete_breakpoint): Don't manually call breakpoint destructor.
1067 (create_tracepoint_from_upload): Remove reference to base field.
1068 (trace_pass_set_count): Likewise.
1069 (initialize_breakpoint_ops): Don't initialize
1070 momentary_breakpoint_ops, don't set dtors.
1071 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
1072 <~ada_catchpoint>: New.
1073 <base>: Remove.
1074 (create_excep_cond_exprs): Remove reference to base field.
1075 (dtor_exception): Change to ...
1076 (ada_catchpoint::~ada_catchpoint): ... this.
1077 (dtor_catch_exception): Remove.
1078 (dtor_catch_exception_unhandled): Remove.
1079 (dtor_catch_assert): Remove.
1080 (create_ada_exception_catchpoint): Remove reference to base
1081 field.
1082 (initialize_ada_catchpoint_ops): Don't set dtors.
1083 * break-catch-sig.c (struct signal_catchpoint): Inherit from
1084 breakpoint.
1085 <~signal_catchpoint>: New.
1086 <base>: Remove.
1087 (signal_catchpoint_dtor): Change to ...
1088 (signal_catchpoint::~signal_catchpoint): ... this.
1089 (create_signal_catchpoint): Remove reference to base field.
1090 (initialize_signal_catchpoint_ops): Don't set dtor.
1091 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
1092 from breakpoint.
1093 <~syscall_catchpoint>: New.
1094 <base>: Remove.
1095 (dtor_catch_syscall): Change to ...
1096 (syscall_catchpoint::~syscall_catchpoint): ... this.
1097 (create_syscall_event_catchpoint): Remove reference to base
1098 field.
1099 (initialize_syscall_catchpoint_ops): Don't set dtor.
1100 * break-catch-throw.c (struct exception_catchpoint): Inherit
1101 from breakpoint.
1102 <~exception_catchpoint>: New.
1103 <base>: Remove.
1104 (dtor_exception_catchpoint): Change to ...
1105 (exception_catchpoint::~exception_catchpoint): ... this.
1106 (handle_gnu_v3_exceptions): Remove reference to base field.
1107 (initialize_throw_catchpoint_ops): Don't set dtor.
1108 * ctf.c (ctf_get_traceframe_address): Remove reference to base
1109 field.
1110 * remote.c (remote_get_tracepoint_status): Likewise.
1111 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
1112 * tracefile.c (tracefile_fetch_registers): Likewise.
1113 * tracepoint.c (actions_command): Likewise.
1114 (validate_actionline): Likewise.
1115 (tfind_1): Likewise.
1116 (get_traceframe_location): Likewise.
1117 (find_matching_tracepoint_location): Likewise.
1118 (parse_tracepoint_status): Likewise.
1119 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1120
3b0871f4
SM
11212017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 * breakpoint.c (struct longjmp_breakpoint): New struct.
1124 (is_tracepoint_type): Change return type to bool.
1125 (is_longjmp_type): New function.
1126 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
1127 (set_raw_breakpoint_without_location): Use
1128 new_breakpoint_from_type.
1129 (set_raw_breakpoint): Likewise.
1130
a5e364af
SM
11312017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
1132
1133 * breakpoint.c (new_breakpoint_from_type): New function.
1134 (create_breakpoint_sal): Use new_breakpoint_from_type and
1135 unique_ptr.
1136 (create_breakpoint): Likewise.
1137
ae3b3f34
SM
11382017-05-31 Simon Marchi <simon.marchi@ericsson.com>
1139
1140 * memattr.c (mem_info_command): Rename to ...
1141 (info_mem_command): ... this.
1142 (mem_enable_command): Rename to ...
1143 (enable_mem_command): ... this.
1144 (mem_disable_command): Rename to ...
1145 (disable_mem_command): ... this.
1146 (mem_delete_command): Rename to ...
1147 (delete_mem_command): ... this.
1148 (_initialize_mem): Adjust function names.
1149
13ace077
MM
11502017-05-31 Markus Metzger <markus.t.metzger@intel.com>
1151
1152 * btrace.c (handle_pt_insn_events): New.
1153 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
1154 STATUS. Split into this and ...
1155 (handle_pt_insn_event_flags): ... this.
1156
c56ccc05
MM
11572017-05-31 Markus Metzger <markus.t.metzger@intel.com>
1158
1159 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
1160 and struct pt_insn.resynced.
1161 * configure: Regenerated.
1162 * config.in: Regenerated.
1163
08c3f6d2
TW
11642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1165
1166 * btrace.c (ftrace_find_call_by_number): New function.
1167 (ftrace_new_function): Store objects, not pointers.
1168 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
1169 ftrace_new_gap, ftrace_update_function,
1170 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
1171 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
1172 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
1173 btrace_ends_with_single_insn, btrace_call_get): Account for
1174 btrace_thread_info::functions now storing objects.
1175 * btrace.h (struct btrace_thread_info): Add constructor.
1176 (struct btrace_thread_info) <functions>: Make std::vector.
1177 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
1178 Initialize with default values.
1179 * record-btrace.c (record_btrace_frame_sniffer): Account for
1180 btrace_thread_info::functions now storing objects.
1181
8ffd39f2
TW
11822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1183
1184 * btrace.c: Remove typedef bfun_s.
1185 (ftrace_new_gap): Directly add gaps to the list of gaps.
1186 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
1187 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
1188 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
1189 instead of gdb VEC.
1190
4aeb0dfc
TW
11912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1192
1193 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
1194 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
1195 with btrace_thread_info::next_segment and
1196 btrace_thread_info::prev_segment.
1197 * btrace.h: Remove struct btrace_func_link.
1198 (struct btrace_function): Replace pair of function segment pointers
1199 with pair of indices.
1200 * python/py-record-btrace.c (btpy_call_prev_sibling,
1201 btpy_call_next_sibling): Replace references to
1202 btrace_thread_info::segment with btrace_thread_info::next_segment and
1203 btrace_thread_info::prev_segment.
1204 * record-btrace.c (record_btrace_frame_this_id): Use
1205 btrace_find_call_by_number.
1206
eb8f2b9c
TW
12072017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1208
1209 * btrace.c (ftrace_new_function, ftrace_fixup_level,
1210 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
1211 btrace_insn_next, btrace_insn_prev): Remove references to
1212 btrace_thread_info::flow.
1213 * btrace.h (struct btrace_function): Remove FLOW.
1214
42bfe59e
TW
12152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1216
1217 * btrace.c (ftrace_find_call_by_number): New function.
1218 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
1219 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
1220 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
1221 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
1222 index.
1223 * btrace.h (struct btrace_function): Turn UP into an index.
1224 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
1225 as an index.
1226 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
1227 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
1228 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
1229
b54b03bd
TW
12302017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1231
1232 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
1233 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
1234 ftrace_update_function, ftrace_compute_global_level_offset,
1235 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
1236 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
1237 btrace_insn_end, btrace_is_empty): Remove references to
1238 btrace_thread_info::begin and btrace_thread_info::end.
1239 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
1240 (struct btrace_thread_info) <functions>: Adjust comment.
1241 * record-btrace.c (record_btrace_start_replaying): Remove reference to
1242 btrace_thread_info::begin.
1243
8286623c
TW
12442017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1245
1246 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
1247 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
1248 ftrace_update_function): Remove arguments that implicitly were always
1249 BTINFO->END.
1250 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
1251 Don't pass BTINFO->END.
1252
a0f1b963
TW
12532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1254
1255 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
1256 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
1257 btrace_find_insn_by_number): Replace function segment pointer with
1258 index.
1259 (btrace_insn_cmp): Simplify.
1260 * btrace.h: (struct btrace_insn_iterator) Rename index to
1261 insn_index. Replace function segment pointer with index into function
1262 segment vector.
1263 * record-btrace.c (record_btrace_call_history): Replace function
1264 segment pointer use with index.
1265 (record_btrace_frame_sniffer): Retrieve function call segment through
1266 vector.
1267 (record_btrace_set_replay): Remove defunc't safety check.
1268
f158f208
TW
12692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1270
1271 * btrace.c (btrace_ends_with_single_insn): New function.
1272 (btrace_call_get, btrace_call_number, btrace_call_begin,
1273 btrace_call_end, btrace_call_next, btrace_call_prev,
1274 btrace_find_call_by_number): Use index into call segment vector
1275 instead of pointer.
1276 (btrace_call_cmp): Simplify.
1277 * btrace.h (struct btrace_call_iterator): Replace function call segment
1278 pointer with index into vector.
1279 * record-btrace.c (record_btrace_call_history): Use index instead of
1280 pointer.
1281
521103fd
TW
12822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1283
1284 * btrace.c (btrace_insn_begin, btrace_insn_end,
1285 btrace_find_insn_by_number): Add btinfo to iterator.
1286 * btrace.h (struct btrace_insn_iterator): Add btinfo.
1287
17b89b34
TW
12882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1289
1290 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
1291 and save pointers directly.
1292 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
1293 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
1294 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
1295 changed signature of functions.
1296 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
1297 (btrace_fetch): Remove code that adds btrace_function pointers to
1298 vector of btrace_functions.
1299 (btrace_clear): Simplify freeing vector of btrace_functions.
1300
2b51eddc
TW
13012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
1302
1303 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
1304 Replace VEC_* with std::vector functions.
1305 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
1306 (struct btrace_thread_info)<functions>: Change type to std::vector.
1307
db6be0d5
SM
13082017-05-30 Simon Marchi <simon.marchi@ericsson.com>
1309
1310 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
1311 "Removed targets and native configurations" up. Merge duplicate
1312 "New commands" sub-sections. Add "New options" sub-sections.
1313
b057297a
AH
13142017-05-26 Alan Hayward <alan.hayward@arm.com>
1315
1316 * defs.h (copy_integer_to_size): New declaration.
1317 * findvar.c (copy_integer_to_size): New function.
1318 (do_cint_test): New selftest function.
1319 (copy_integer_to_size_test): Likewise.
1320 (_initialize_findvar): Likewise.
1321 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
1322 (mips_fbsd_collect_reg): Use raw_collect_integer.
1323 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
1324 (mips64_fill_gregset): Use raw_collect_integer
1325 (mips64_fill_fpregset): Use raw_supply_integer.
1326 * regcache.c (regcache::raw_supply_integer): New function.
1327 (regcache::raw_collect_integer): Likewise.
1328 * regcache.h: (regcache::raw_supply_integer): New declaration.
1329 (regcache::raw_collect_integer): Likewise.
1330
b77b02a5
YQ
13312017-05-24 Yao Qi <yao.qi@linaro.org>
1332
1333 * Makefile.in (SFILES): Add gdbarch-selftests.c.
1334 (COMMON_OBS): Add gdbarch-selftests.o.
1335 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
1336 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
1337 * gdbarch-selftests.c: New file.
1338 * regcache.h (regcache) <~regcache>: Mark it virtual if
1339 GDB_SELF_TEST.
1340 <raw_write>: Likewise.
1341
e521e87e
YQ
13422017-05-24 Yao Qi <yao.qi@linaro.org>
1343
1344 * regcache.c (current_regcache): Change it to
1345 regcache::current_regcache.
1346 (regcache_observer_target_changed): Update.
1347 (regcache_thread_ptid_changed): Make it a regcache static
1348 method.
1349 (regcache_thread_ptid_changed): Update.
1350 (class regcache_access): New.
1351 (current_regcache_test): Update.
1352 (_initialize_regcache): Update.
1353 * regcache.h: Include forward_list.
1354 (regcache): Declare regcache_thread_ptid_changed and declare
1355 registers_changed_ptid as friend.
1356
d8e07dda
YQ
13572017-05-24 Yao Qi <yao.qi@linaro.org>
1358
1359 * i387-tdep.c (i387_register_to_value): Use register_size
1360 instead of TYPE_LENGTH.
1361 * m68k-tdep.c (m68k_register_to_value): Likewise.
1362
8c8f9122
YQ
13632017-05-24 Yao Qi <yao.qi@linaro.org>
1364
1365 * i387-tdep.c (i387_convert_register_p): Return false if type
1366 code isn't TYPE_CODE_FLT.
1367
68fce50f
YQ
13682017-05-24 Yao Qi <yao.qi@linaro.org>
1369
1370 * alpha-tdep.c (alpha_convert_register_p): Return true if type
1371 length is 4.
1372 (alpha_register_to_value): Remove type length check.
1373 (alpha_value_to_register): Likewise.
1374
88954b49
YQ
13752017-05-24 Yao Qi <yao.qi@linaro.org>
1376
1377 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
1378 TYPE_CODE_FLT.
1379
e3ec9b69
YQ
13802017-05-24 Yao Qi <yao.qi@linaro.org>
1381
1382 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
1383 TYPE_CODE_FLT or not.
1384
cdd238da
YQ
13852017-05-24 Yao Qi <yao.qi@linaro.org>
1386
1387 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
1388 * avr-tdep.c (avr_gdbarch_init): Likewise.
1389 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1390 * cris-tdep.c (cris_gdbarch_init): Likewise.
1391 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1392 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1393 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1395 * mep-tdep.c (mep_gdbarch_init): Likewise.
1396 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1397 * mips-tdep.c (mips_gdbarch_init): Likewise.
1398 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1399 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1400 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1401 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1402 * v850-tdep.c (v850_gdbarch_init): Likewise.
1403
7a3929c4
YQ
14042017-05-24 Yao Qi <yao.qi@linaro.org>
1405
1406 * selftest-arch.c (tests_with_arch): Call registers_changed
1407 and reinit_frame_cache.
1408 * selftest.c (run_self_tests): Likewise.
1409
f4985dba
YQ
14102017-05-24 Yao Qi <yao.qi@linaro.org>
1411
1412 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
1413 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
1414
ab20fa4a
YQ
14152017-05-24 Yao Qi <yao.qi@linaro.org>
1416
1417 * rl78-tdep.c (rl78_gdbarch_init): Don't call
1418 set_gdbarch_print_insn.
1419
f532ab94
YQ
14202017-05-24 Yao Qi <yao.qi@linaro.org>
1421
1422 * h8300-tdep.c (h8300_gdbarch_init): Don't call
1423 set_gdbarch_print_insn.
1424
39503f82
YQ
14252017-05-24 Yao Qi <yao.qi@linaro.org>
1426
1427 * alpha-tdep.c (alpha_gdbarch_init): Don't call
1428 set_gdbarch_print_insn.
1429 * arc-tdep.c (arc_gdbarch_init): Likewise.
1430 * arch-utils.c: include dis-asm.h.
1431 (default_print_insn): New function.
1432 * arch-utils.h (default_print_insn): Declare.
1433 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
1434 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
1435 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
1436 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
1437 * frv-tdep.c (frv_gdbarch_init): Likewise.
1438 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1439 * gdbarch.sh (print_insn): Use default_print_insn.
1440 * gdbarch.c: Regenerated.
1441 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1442 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
1443 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
1444 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
1445 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
1446 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
1447 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
1448 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1449 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
1450 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
1451 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1452 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
1453 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1454 * mt-tdep.c (mt_gdbarch_init): Likewise.
1455 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1456 * nios2-tdep.c (nios2_print_insn): Remove.
1457 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
1458 * rx-tdep.c (rx_gdbarch_init): Likewise.
1459 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1460 * score-tdep.c (score_print_insn): Remove.
1461 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
1462 * sh-tdep.c (sh_gdbarch_init): Likewise.
1463 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1464 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
1465 * tic6x-tdep.c (tic6x_print_insn): Remove.
1466 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
1467 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
1468 * v850-tdep.c (v850_gdbarch_init): Likewise.
1469 * vax-tdep.c (vax_gdbarch_init): Likewise.
1470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1471 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
1472
f7241d4f
JB
14732017-05-23 John Baldwin <jhb@FreeBSD.org>
1474
1475 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
1476 (MIPS_FP0_REGNUM): Remove.
1477 (MIPS_FSR_REGNUM): Remove.
1478 (mips_fbsd_supply_fpregs): Use mips_regnum.
1479 (mips_fbsd_supply_gregs): Likewise.
1480 (mips_fbsd_collect_fpregs): Likewise.
1481 (mips_fbsd_collect_gregs): Likewise.
1482
d489d81d
JB
14832017-05-23 John Baldwin <jhb@FreeBSD.org>
1484
1485 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
1486 (getpfpregs_supplies): New function.
1487 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
1488 getfpregs_supplies.
1489 (mips_fbsd_store_inferior_registers): Likewise.
1490
e11b3cdc
PA
14912017-05-22 Pedro Alves <palves@redhat.com>
1492
1493 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
1494 maintainer.
1495
0f068fb5
AH
14962017-05-22 Alan Hayward <alan.hayward@arm.com>
1497
1498 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
1499 (store_register): Likewise.
1500 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
1501 (get_decimal_float_return_value): Likewise.
1502 (do_ppc_sysv_return_value): Likewise.
1503 (ppc64_sysv_abi_push_integer): Likewise.
1504 (ppc64_sysv_abi_push_freg): Likewise.
1505 (ppc64_sysv_abi_return_value_base): Likewise.
1506 (ppc64_sysv_abi_return_value): Likewise.
1507 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
1508 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
1509 * rs6000-nat.c: Likewise.
1510 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
1511 (rs6000_value_to_register): Likewise.
1512 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
1513
e6cf65f2
TT
15142017-05-21 Tom Tromey <tom@tromey.com>
1515
1516 PR rust/21466:
1517 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
1518 arrays as "[T]", not "[T; ]".
1519
43cc5389
TT
15202017-05-19 Tom Tromey <tom@tromey.com>
1521
1522 PR rust/21484:
1523 * rust-lang.c (exp_descriptor_rust): New function.
1524 (rust_language_defn): Use it.
1525 * p-lang.c (pascal_language_defn): Update.
1526 * opencl-lang.c (opencl_language_defn): Update.
1527 * objc-lang.c (objc_language_defn): Update.
1528 * m2-lang.c (m2_language_defn): Update.
1529 * language.h (struct language_defn)
1530 <la_watch_location_expression>: New member.
1531 * language.c (unknown_language_defn, auto_language_defn)
1532 (local_language_defn): Update.
1533 * go-lang.c (go_language_defn): Update.
1534 * f-lang.c (f_language_defn): Update.
1535 * d-lang.c (d_language_defn): Update.
1536 * c-lang.h (c_watch_location_expression): Declare.
1537 * c-lang.c (c_watch_location_expression): New function.
1538 (c_language_defn, cplus_language_defn, asm_language_defn)
1539 (minimal_language_defn): Use it.
1540 * breakpoint.c (watch_command_1): Call
1541 la_watch_location_expression.
1542 * ada-lang.c (ada_language_defn): Update.
1543
7a6e7fcc
RO
15442017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1545
6e7e1744
RO
1546 PR tui/21482
1547 * gdb_curses.h (NOMACROS): Define.
1548 (NCURSES_NOMACROS): Define.
1549
15502017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1551
1552 PR tui/21482
7a6e7fcc
RO
1553 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
1554 arg to char *.
1555 * tui/tui-wingeneral.c (box_win): Likewise.
1556 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
1557 (tui_show_source_line): Likewise.
1558 (tui_show_exec_info_content): Likewise.
1559
1933fd8e
VM
15602017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
1561
1562 * sparc-tdep.c (sparc_structure_return_p)
1563 (sparc_arg_on_registers_p): New functions.
1564 (sparc32_store_arguments): Use them.
1565 * sparc64-tdep.c (sparc64_16_byte_align_p)
1566 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
1567 Handle TYPE_CODE_ARRAY.
1568
21873064
YQ
15692017-05-17 Yao Qi <yao.qi@linaro.org>
1570
1571 * cli/cli-decode.c (add_alias_cmd): New function.
1572 * command.h (add_alias_cmd): Declare.
1573 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
1574 instead call add_alias_cmd.
1575
2b351b19
PA
15762017-05-17 Pedro Alves <palves@redhat.com>
1577
1578 * Makefile.in (nat_extra_makefile_frag): Rename to ...
1579 (nat_makefile_frag): ... this. All references updated.
1580 * configure.ac: Likewise.
1581 * configure.nat: Likewise. Enhance comments.
1582 * configure: Regenerate.
1583
5f2ad7a3
RO
15842017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 * procfs.c (procfs_create_inferior): Change prototype to match
1587 definition.
1588
adf3dde5
EZ
15892017-05-13 Eli Zaretskii <eliz@gnu.org>
1590
1591 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
1592 C++ compiler warning.
1593
6830f270
TT
15942017-05-12 Tom Tromey <tom@tromey.com>
1595
1596 PR rust/21483:
1597 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
1598 recurse, just call value_struct_elt directly.
1599
68f2f2e3
TT
16002017-05-12 Tom Tromey <tom@tromey.com>
1601
1602 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
1603 OP_RUST_ARRAY>: Fix.
1604
256afbc2
TT
16052017-05-12 Tom Tromey <tom@tromey.com>
1606
1607 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
1608
94bb8dfe
YQ
16092017-05-09 Yao Qi <yao.qi@linaro.org>
1610
1611 * regcache.c: Include <forward_list>.
1612 (struct regcache_list): Remove.
1613 (current_regcache): Update.
1614 (get_thread_arch_aspace_regcache): Update for std::forward_list.
1615 (regcache_thread_ptid_changed): Likewise.
1616 (registers_changed_ptid): Likewise.
1617 (current_regcache_size): Likewise.
1618
8248946c
YQ
16192017-05-09 Yao Qi <yao.qi@linaro.org>
1620
1621 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
1622 (current_regcache_size): New function.
1623 (current_regcache_test): New function.
1624 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
1625
313c5961
AH
16262017-05-08 Alan Hayward <alan.hayward@arm.com>
1627
1628 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
1629 (print_gp_register_row): Use get_frame_register_value.
1630
27bfc1d1
AH
16312017-05-08 Alan Hayward <alan.hayward@arm.com>
1632
1633 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
1634 (mips_supply_fpregset): Likewise.
1635 (mips64_supply_gregset): Likewise.
1636
146e6c5c
AH
16372017-05-08 Alan Hayward <alan.hayward@arm.com>
1638
1639 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
1640 regcache->raw_supply_zeroed.
1641
e50f25ec
SDJ
16422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1643
1644 * configure.nat: Rearrange 'case' statements to match
1645 host before cpu.
1646
21ea5acd
SDJ
16472017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1648
1649 * Makefile.in: Remove "@host_makefile_frag@". Add variables
1650 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
1651 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
1652 "@nat_extra_makefile_frag@".
1653 (Makefile): Remove dependency on "@frags@".
1654 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
1655 (data-directory/Makefile): Likewise.
1656 * config/aarch64/linux.mh: Deleted; moved contents to
1657 "gdb/configure.nat".
1658 * config/alpha/alpha-linux.mh: Likewise.
1659 * config/alpha/nbsd.mh: Likewise.
1660 * config/arm/linux.mh: Likewise.
1661 * config/arm/nbsdelf.mh: Likewise.
1662 * config/i386/cygwin.mh: Likewise.
1663 * config/i386/cygwin64.mh: Likewise.
1664 * config/i386/darwin.mh: Likewise.
1665 * config/i386/fbsd.mh: Likewise.
1666 * config/i386/fbsd64.mh: Likewise.
1667 * config/i386/go32.mh: Likewise.
1668 * config/i386/i386gnu.mh: Likewise.
1669 * config/i386/i386sol2.mh: Likewise.
1670 * config/i386/linux.mh: Likewise.
1671 * config/i386/linux64.mh: Likewise.
1672 * config/i386/mingw.mh: Likewise.
1673 * config/i386/mingw64.mh: Likewise.
1674 * config/i386/nbsd64.mh: Likewise.
1675 * config/i386/nbsdelf.mh: Likewise.
1676 * config/i386/nto.mh: Likewise.
1677 * config/i386/obsd.mh: Likewise.
1678 * config/i386/obsd64.mh: Likewise.
1679 * config/i386/sol2-64.mh: Likewise.
1680 * config/ia64/linux.mh: Likewise.
1681 * config/m32r/linux.mh: Likewise.
1682 * config/m68k/linux.mh: Likewise.
1683 * config/m68k/nbsdelf.mh: Likewise.
1684 * config/m68k/obsd.mh: Likewise.
1685 * config/m88k/obsd.mh: Likewise.
1686 * config/mips/fbsd.mh: Likewise.
1687 * config/mips/linux.mh: Likewise.
1688 * config/mips/nbsd.mh: Likewise.
1689 * config/mips/obsd64.mh: Likewise.
1690 * config/pa/linux.mh: Likewise.
1691 * config/pa/nbsd.mh: Likewise.
1692 * config/pa/obsd.mh: Likewise.
1693 * config/powerpc/aix.mh: Likewise.
1694 * config/powerpc/fbsd.mh: Likewise.
1695 * config/powerpc/linux.mh: Likewise.
1696 * config/powerpc/nbsd.mh: Likewise.
1697 * config/powerpc/obsd.mh: Likewise.
1698 * config/powerpc/ppc64-linux.mh: Likewise.
1699 * config/powerpc/spu-linux.mh: Likewise.
1700 * config/s390/linux.mh: Likewise.
1701 * config/sh/nbsd.mh: Likewise.
1702 * config/sparc/fbsd.mh: Likewise.
1703 * config/sparc/linux.mh: Likewise.
1704 * config/sparc/linux64.mh: Likewise.
1705 * config/sparc/nbsd64.mh: Likewise.
1706 * config/sparc/nbsdelf.mh: Likewise.
1707 * config/sparc/obsd64.mh: Likewise.
1708 * config/sparc/sol2.mh: Likewise.
1709 * config/tilegx/linux.mh: Likewise.
1710 * config/vax/nbsdelf.mh: Likewise.
1711 * config/vax/obsd.mh: Likewise.
1712 * config/xtensa/linux.mh: Likewise.
1713 * config/i386/i386gnu.mn: New file, with excerpts from
1714 "config/i386/i386gnu.mh".
1715 * configure: Regenerate.
1716 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
1717 *.mh files under "gdb/config".
1718 * configure.nat: New file, with contents from the
1719 "gdb/config/*/*.mh" files.
1720
7ed1acaf
TW
17212017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
1722
1723 * btrace.c (btrace_clear): Free insn vector.
1724
e13cb306
PA
17252017-05-05 Pedro Alves <palves@redhat.com>
1726
1727 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
1728 * configure: Regenerate.
1729
5ed8105e
PA
17302017-05-04 Pedro Alves <palves@redhat.com>
1731
1732 * Makefile.in (SFILES): Add progspace-and-thread.c.
1733 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
1734 (COMMON_OBS): Add progspace-and-thread.o.
1735 * breakpoint.c: Include "progspace-and-thread.h".
1736 (update_inserted_breakpoint_locations)
1737 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
1738 Use scoped_restore_current_pspace_and_thread.
1739 (create_std_terminate_master_breakpoint): Use
1740 scoped_restore_current_program_space.
1741 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
1742 (print_breakpoint_location): Use
1743 scoped_restore_current_program_space.
1744 (bp_loc_is_permanent): Use
1745 scoped_restore_current_pspace_and_thread.
1746 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
1747 (download_tracepoint_locations): Use
1748 scoped_restore_current_pspace_and_thread.
1749 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
1750 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
1751 (enum step_over_calls_kind): Moved from inferior.h.
1752 (class scoped_restore_current_thread): New class.
1753 * gdbthread.h (make_cleanup_restore_current_thread): Delete
1754 declaration.
1755 (scoped_restore_current_thread): New class.
1756 * infcmd.c: Include "common/gdb_optional.h".
1757 (continue_1, proceed_after_attach): Use
1758 scoped_restore_current_thread.
1759 (notice_new_inferior): Use scoped_restore_current_thread.
1760 * inferior.c: Include "progspace-and-thread.h".
1761 (restore_inferior, save_current_inferior): Delete.
1762 (add_inferior_command, clone_inferior_command): Use
1763 scoped_restore_current_pspace_and_thread.
1764 * inferior.h (scoped_restore_current_inferior): New class.
1765 * infrun.c: Include "progspace-and-thread.h" and
1766 "common/gdb_optional.h".
1767 (follow_fork_inferior): Use
1768 scoped_restore_current_pspace_and_thread.
1769 (scoped_restore_exited_inferior): New class.
1770 (handle_vfork_child_exec_or_exit): Use
1771 scoped_restore_exited_inferior,
1772 scoped_restore_current_pspace_and_thread,
1773 scoped_restore_current_thread and scoped_restore.
1774 (fetch_inferior_event): Use scoped_restore_current_thread.
1775 * linespec.c (decode_line_full, decode_line_1): Use
1776 scoped_restore_current_program_space.
1777 * mi/mi-main.c: Include "progspace-and-thread.h".
1778 (exec_continue): Use scoped_restore_current_thread.
1779 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
1780 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
1781 * proc-service.c (ps_pglobal_lookup): Use
1782 scoped_restore_current_program_space.
1783 * progspace-and-thread.c: New file.
1784 * progspace-and-thread.h: New file.
1785 * progspace.c (release_program_space, clone_program_space): Use
1786 scoped_restore_current_program_space.
1787 (restore_program_space, save_current_program_space)
1788 (save_current_space_and_thread): Delete.
1789 (switch_to_program_space_and_thread): Moved to
1790 progspace-and-thread.c.
1791 * progspace.h (save_current_program_space)
1792 (save_current_space_and_thread): Delete declarations.
1793 (scoped_restore_current_program_space): New class.
1794 * remote.c (remote_btrace_maybe_reopen): Use
1795 scoped_restore_current_thread.
1796 * symtab.c: Include "progspace-and-thread.h".
1797 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
1798 * thread.c (print_thread_info_1): Use
1799 scoped_restore_current_thread.
1800 (struct current_thread_cleanup): Delete.
1801 (do_restore_current_thread_cleanup)
1802 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
1803 (scoped_restore_current_thread::~scoped_restore_current_thread):
1804 ... this new dtor.
1805 (make_cleanup_restore_current_thread): Rename/convert to ...
1806 (scoped_restore_current_thread::scoped_restore_current_thread):
1807 ... this new ctor.
1808 (thread_apply_all_command): Use scoped_restore_current_thread.
1809 (thread_apply_command): Use scoped_restore_current_thread.
1810 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
1811 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
1812
f6223dbb
PA
18132017-05-04 Pedro Alves <palves@redhat.com>
1814
1815 * thread.c (make_cleanup_restore_current_thread): Move
1816 find_thread_ptid call before the is_stopped call. Assert that the
1817 thread is found. Replace is_stopped call by checking the thread's
1818 state directly. Remove unnecessary NULL-thread check.
1819
3c3ae77e
PA
18202017-05-04 Pedro Alves <palves@redhat.com>
1821
1822 * corelow.c (thread_section_name): New class.
1823 (get_core_register_section, get_core_siginfo): Use it.
1824
45eba0ab
AA
18252017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1826
1827 * corelow.c (sniff_core_bfd): Remove extra semicolon.
1828 (get_core_register_section): Remove xfree of NULL pointer.
1829
f81fdd35
AH
18302017-05-03 Alan Hayward <alan.hayward@arm.com>
1831
1832 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
1833 * regcache.c (regcache::raw_supply_zeroed): New function.
1834 * regcache.h (regcache::raw_supply_zeroed): New declaration.
1835
35837774
SM
18362017-05-03 Simon Marchi <simon.marchi@ericsson.com>
1837
1838 * gdbarch.sh: Remove commented out definition of
1839 TARGET_CHAR_BIT.
1840 * gdbarch.h: Re-generate.
1841
c94fee56
SDJ
18422017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1843
1844 * configure: Regenerate.
1845
d17f7b36
SM
18462017-05-02 Simon Marchi <simon.marchi@ericsson.com>
1847
1848 * solib-target.c (solib_target_relocate_section_addresses):
1849 Remove num_section_bases, num_bases, segment_bases variables.
1850
b560ebd6
SM
18512017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1852
1853 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
1854
f2f46dfc
SM
18552017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1856
1857 * solib-target.c: Include <vector>
1858 (struct lm_info_target) <~lm_info_target>: Remove.
1859 <segment_bases, section_bases>: Change type to
1860 std::vector<CORE_ADDR>.
1861 (library_list_start_segment, library_list_start_section,
1862 library_list_end_library,
1863 solib_target_relocate_section_addresses): Adjust.
1864
a0ff9e1a
SM
18652017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * gdbarch.sh (software_single_step): Change return type to
1868 std::vector<CORE_ADDR>.
1869 * gdbarch.c, gdbarch.h: Re-generate.
1870 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
1871 Adjust.
1872 (arm_deal_with_atomic_sequence_raw): Adjust.
1873 (thumb_get_next_pcs_raw): Adjust.
1874 (arm_get_next_pcs_raw): Adjust.
1875 (arm_get_next_pcs): Adjust.
1876 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
1877 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
1878 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
1879 (alpha_software_single_step): Adjust.
1880 * alpha-tdep.h (alpha_software_single_step): Adjust.
1881 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
1882 * arm-tdep.c (arm_software_single_step): Adjust.
1883 (arm_breakpoint_kind_from_current_state): Adjust.
1884 * arm-tdep.h (arm_software_single_step): Adjust.
1885 * breakpoint.c (insert_single_step_breakpoint): Adjust.
1886 * cris-tdep.c (cris_software_single_step): Adjust.
1887 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
1888 (micromips_deal_with_atomic_sequence): Adjust.
1889 (deal_with_atomic_sequence): Adjust.
1890 (mips_software_single_step): Adjust.
1891 * mips-tdep.h (mips_software_single_step): Adjust.
1892 * moxie-tdep.c (moxie_software_single_step): Adjust.
1893 * nios2-tdep.c (nios2_software_single_step): Adjust.
1894 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
1895 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
1896 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
1897 * s390-linux-tdep.c (s390_software_single_step): Adjust.
1898 * sparc-tdep.c (sparc_software_single_step): Adjust.
1899 * spu-tdep.c (spu_software_single_step): Adjust.
1900 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
1901
ea480a30
SM
19022017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * gdbarch.sh: Use semi-colon as field separator instead of colon.
1905 * gdbarch.h: Re-generate.
1906
d050f7d7
TW
19072017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1908
1909 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
1910 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
1911 * python/py-instruction.c, python/py-instruction.h: New file.
1912 * python/py-record.c: Add py-instruction.h include.
1913 (gdbpy_initialize_record): Make gdb.Instruction a super class of
1914 gdb.RecordInstruction.
1915 * python/python-internal.h: Add gdbpy_initialize_instruction
1916 declaration.
1917 * python/python.c (do_start_initialization): Add
1918 gdbpy_initialize_instruction.
1919
14f819c8
TW
19202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1921
1922 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
1923 Remove.
1924 (btrace_func_from_recpy_func): New function.
1925 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
1926 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
1927 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
1928 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
1929 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
1930 Also, use new helper functions.
1931 (btpy_list_item): Use new helper functions.
1932 (recpy_bt_function_call_history): Use new type name.
1933 (btpy_call_getset): Remove.
1934 (gdbpy_initialize_btrace): Remove code to initialize
1935 gdb.BtraceFunctionCall.
1936 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
1937 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
1938 recpy_bt_func_prev, recpy_bt_func_next): New export.
1939 * python/py-record.c (recpy_func_type): New static object.
1940 (recpy_func_new, recpy_func_level, recpy_func_symbol,
1941 recpy_func_instructions, recpy_func_up, recpy_func_prev,
1942 recpy_func_next): New function.
1943 (recpy_element_hash, recpy_element_richcompare): Updated comment.
1944 (recpy_func_getset): New static object.
1945 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
1946 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
1947
0ed5da75
TW
19482017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1949
1950 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
1951 (btpy_object, btpy_insn_type, btpy_new): Remove.
1952 (btpy_list_object): Use gdb.RecordInstruction type instead of
1953 gdb.BtraceInstruction type.
1954 (btrace_insn_from_recpy_insn): New function.
1955 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
1956 btpy_new.
1957 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
1958 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
1959 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
1960 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
1961 instead of btpy_object.
1962 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1963 btpy_insn_data, btpy_insn_decode): Rename to ...
1964 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
1965 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
1966 recpy_bt_insn_decode): This. Also, use new helper functions.
1967 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
1968 recpy_insn_type.
1969 (btpy_insn_getset): Remove.
1970 (gdbpy_initialize_btrace): Remove code to initialize
1971 gdb.BtraceInstruction. Use recpy_element_object.
1972 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
1973 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
1974 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
1975 * python/py-record.c (recpy_insn_type): New static object.
1976 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
1977 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
1978 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
1979 New function.
1980 (recpy_insn_getset): New static object.
1981 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
1982 * python/py-record.h (recpy_element_object): New typedef.
1983 (recpy_insn_type, recpy_insn_new): New export.
1984
913aeadd
TW
19852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
1986
1987 * py-record-btrace.c (btpy_insn_new): Removed.
1988 (btpy_insn_or_gap_new): New function.
1989 (btpy_insn_error): Removed.
1990 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
1991 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
1992 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
1993 btpy_insn_or_gap_new instead of btpy_insn_new.
1994 (btpy_insn_getset): Remove btpy_insn_error.
1995 * py-record.c (recpy_gap_type): New static object.
1996 (recpy_gap_object): New typedef.
1997 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
1998 recpy_gap_reason_string): New function.
1999 (recpy_gap_getset): New static object.
2000 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
2001 * py-record.h (recpy_gap_new): New export.
2002
a3be24ad
TW
20032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
2004
2005 * python/py-record.c (recpy_ptid): Remove.
2006 (recpy_record_getset): Remove recpy_ptid.
2007
ae20e79a
TW
20082017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
2009
2010 * btrace.c (btrace_fetch): Set inferior_ptid.
2011 * python/py-record-btrace.c: Add "py-record.h" include.
2012 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
2013 recpy_bt_end, recpy_bt_instruction_history,
2014 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
2015 in gdb.Record object instead of current ptid.
2016 * python/py-record.c: Include new "py-record.h" file.
2017 (recpy_record_object): Moved to py-record.h.
2018 * python/py-record.h: New file.
2019
8d0050ea
TW
20202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
2021
2022 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
2023 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
2024 indentation.
2025
3f380b50
JB
20262017-05-01 Joel Brobecker <brobecker@adacore.com>
2027
2028 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
2029 the past maintainers section.
2030
07495424
YQ
20312017-04-28 Yao Qi <yao.qi@linaro.org>
2032
2033 * infcmd.c (get_return_value): Use regcache ctor, and remove
2034 cleanup.
2035
deb1fa3e
YQ
20362017-04-28 Yao Qi <yao.qi@linaro.org>
2037 Pedro Alves <palves@redhat.com>
2038
2039 * regcache.c (regcache::regcache): New tag dispatch ctor.
2040 (do_cooked_read): Moved above.
2041 (regcache_dup): Use the tag dispatch ctor..
2042 * regcache.h (regcache): Declare ctor, delete copy ctor and
2043 assignment operator, remove friend regcache_dup.
2044
b421c83c
YQ
20452017-04-28 Yao Qi <yao.qi@linaro.org>
2046
2047 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
2048 call method save instead of regcache_cpy.
2049 * regcache.h (struct regcache): Make regcache_dup a friend.
2050
ef79d9a3
YQ
20512017-04-28 Yao Qi <yao.qi@linaro.org>
2052
2053 * regcache.c (struct regcache): Move to regcache.h
2054 (regcache::arch): New method.
2055 (regcache_get_ptid): Update.
2056 (get_regcache_arch): Call arch method.
2057 (get_regcache_aspace): Call method aspace.
2058 (register_buffer): Change it to method.
2059 (regcache_save): Change it to regcache::save.
2060 (regcache_restore): Likewise.
2061 (regcache_cpy_no_passthrough): Remove the declaration.
2062 (regcache_cpy): Call methods restore and cpy_no_passthrough.
2063 (regcache_cpy_no_passthrough): Change it to method
2064 cpy_no_passthrough.
2065 (regcache_register_status): Change it to method
2066 get_register_status.
2067 (regcache_invalidate): Change it to method invalidate.
2068 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
2069 (regcache_raw_update): Change it to method raw_update.
2070 (regcache_raw_read): Likewise.
2071 (regcache_raw_read_signed): Likewise.
2072 (regcache_raw_read_unsigned): Likewise.
2073 (regcache_raw_write_signed): Likewise.
2074 (regcache_raw_write_unsigned): Likewise.
2075 (regcache_cooked_read): Likewise.
2076 (regcache_cooked_read_value): Likewise.
2077 (regcache_cooked_read_signed): Likewise.
2078 (regcache_cooked_read_unsigned): Likewise.
2079 (regcache_cooked_write_signed): Likewise.
2080 (regcache_cooked_write_unsigned): Likewise.
2081 (regcache_raw_set_cached_value): Likewise.
2082 (regcache_raw_write): Likewise.
2083 (regcache_cooked_write): Likewise.
2084 (regcache_xfer_part): Likewise.
2085 (regcache_raw_read_part): Likewise.
2086 (regcache_raw_write_part): Likewise.
2087 (regcache_cooked_read_part): Likewise.
2088 (regcache_cooked_write_part): Likewise.
2089 (regcache_raw_supply): Likewise.
2090 (regcache_raw_collect): Likewise.
2091 (regcache_transfer_regset): Likewise.
2092 (regcache_supply_regset): Likewise.
2093 (regcache_collect_regset): Likewise.
2094 (regcache_debug_print_register): Likewise.
2095 (enum regcache_dump_what): Move it to regcache.h.
2096 (regcache_dump): Change it to method dump.
2097 * regcache.h (enum regcache_dump_what): New.
2098 (class regcache): New.
2099 * target.c (target_fetch_registers): Call method
2100 debug_print_register.
2101 (target_store_registers): Likewise.
2102
f8fdb78e
SM
21032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2104
2105 * windows-nat.c (struct lm_info_windows): Initialize field.
2106 (windows_make_so): Allocate lm_info_windows with new.
2107 (windows_free_so): Free lm_info_windows with delete.
2108
9ccbfd7b
SM
21092017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2110
2111 * solib-darwin.c (struct lm_info_darwin): Initialize field.
2112 (darwin_current_sos): Allocate lm_info_darwin with new, remove
2113 cleanup.
2114 (darwin_free_so): Free lm_info_darwin with delete.
2115
76e75227
SM
21162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2117
2118 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
2119 <l_addr_p>: Change type to bool.
2120 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
2121 (svr4_free_so): Free lm_info_svr4 with delete.
2122 (svr4_copy_library_list): Replace memcpy with call to copy
2123 constructor.
2124 (library_list_start_library, svr4_default_sos): Allocate
2125 lm_info_svr4 with new.
2126
51046d9e
SM
21272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2128
2129 * solib-target.c (struct lm_info_target): Add destructor,
2130 initialize fields.
2131 <name>: Change type to std::string.
2132 (library_list_start_library): Allocate lm_info_target with new.
2133 (solib_target_free_library_list): Free lm_info_target with
2134 delete.
2135 (solib_target_current_sos): Adapt to std::string.
2136 (solib_target_free_so): Free lm_info_target with delete.
2137
4023ae76
SM
21382017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2139
2140 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
2141 fields.
2142 (frv_current_sos): Allocate lm_info_frv with new.
2143 (frv_relocate_main_executable): Free lm_info_frv with delete,
2144 allocate with new.
2145 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
2146
af43057b
SM
21472017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2148
2149 * solib-frv.c (struct lm_info_frv): Fix indentation.
2150
b0911207
SM
21512017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2152
2153 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
2154 map field.
2155 (dsbt_current_sos): Allocate lm_info_dsbt with new.
2156 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
2157 and allocate with new.
2158 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
2159
6c401f72
SM
21602017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2161
2162 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
2163 <filename, member_name>: Change type to std::string.
2164 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
2165 (library_list_start_library): Allocate lm_info_aix with new.
2166 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
2167 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
2168 with copy constructor.
2169
d0e449a1
SM
21702017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2171
2172 * solist.h (struct lm_info): Remove.
2173 (struct lm_info_base): New class.
2174 (struct so_list) <lm_info>: Change type to lm_info_base *.
2175 * nto-tdep.c (struct lm_info): Remove.
2176 (lm_addr): Adjust.
2177 * solib-aix.c (struct lm_info): Rename to ...
2178 (struct lm_info_aix): ... this. Extend lm_info_base.
2179 (lm_info_p): Rename to ...
2180 (lm_info_aix_p): ... this, and adjust.
2181 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
2182 solib_aix_parse_libraries, library_list_start_library,
2183 solib_aix_free_library_list, solib_aix_parse_libraries,
2184 solib_aix_get_library_list,
2185 solib_aix_relocate_section_addresses, solib_aix_free_so,
2186 solib_aix_get_section_offsets,
2187 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
2188 Adjust.
2189 (struct solib_aix_inferior_data) <library_list>: Adjust.
2190 * solib-darwin.c (struct lm_info): Rename to ...
2191 (struct lm_info_darwin): ... this. Extend lm_info_base.
2192 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
2193 * solib-dsbt.c (struct lm_info): Rename to ...
2194 (struct lm_info_dsbt): ... this. Extend lm_info_base.
2195 (struct dsbt_info) <main_executable_lm_info): Adjust.
2196 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
2197 dsbt_relocate_section_addresses): Adjust.
2198 * solib-frv.c (struct lm_info): Rename to ...
2199 (struct lm_info_frv): ... this. Extend lm_info_base.
2200 (main_executable_lm_info): Adjust.
2201 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
2202 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
2203 find_canonical_descriptor_in_load_object,
2204 frv_fdpic_find_canonical_descriptor): Adjust.
2205 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
2206 to lm_info_svr4.
2207 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
2208 svr4_clear_so, svr4_copy_library_list,
2209 library_list_start_library, svr4_default_sos, svr4_read_so_list,
2210 svr4_current_sos, svr4_fetch_objfile_link_map,
2211 solist_update_incremental): Adjust.
2212 * solib-svr4.h (struct lm_info_svr4): Move here from
2213 solib-svr4.c.
2214 * solib-target.c (struct lm_info): Rename to ...
2215 (struct lm_info_target): ... this. Extend lm_info_base.
2216 (lm_info_p): Rename to ...
2217 (lm_info_target_p): ... this.
2218 (solib_target_parse_libraries, library_list_start_segment,
2219 library_list_start_section, library_list_start_library,
2220 library_list_end_library, solib_target_free_library_list,
2221 solib_target_current_sos, solib_target_free_so,
2222 solib_target_relocate_section_addresses): Adjust.
2223 * windows-nat.c (struct lm_info): Rename to ...
2224 (struct lm_info_windows): ... this. Extend lm_info_base.
2225 (windows_make_so, handle_load_dll, handle_unload_dll,
2226 windows_xfer_shared_libraries): Adjust.
2227
434a4023
SM
22282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
2229
2230 * solib-darwin.c (struct darwin_so_list): Remove.
2231 (darwin_current_sos): Allocate an so_list object instead of a
2232 darwin_so_list, separately allocate an lm_info object.
2233 (darwin_free_so): Free lm_info.
2234
428544e8
JB
22352017-04-28 John Baldwin <jhb@FreeBSD.org>
2236
2237 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
2238 with fprintf_filtered.
2239
4621115f
YQ
22402017-04-28 Yao Qi <yao.qi@linaro.org>
2241
2242 * regcache.c (regcache::regcache): New function.
2243 (regcache::~regcache): New function.
2244 (regcache_xmalloc_1): Remove.
2245 (regcache_xmalloc): Call new regcache.
2246 (regcache_xfree): Call delete regcache.
2247 (get_thread_arch_aspace_regcache): Call new regcache.
2248
339053c2
YQ
22492017-04-28 Yao Qi <yao.qi@linaro.org>
2250
2251 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
2252 lwp instead of ptid_get_lwp.
2253
7974a605
YQ
22542017-04-28 Yao Qi <yao.qi@linaro.org>
2255
2256 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
2257 lwp_info instead of getting from inferior_ptid.
2258
e15c3eb4
KS
22592017-04-27 Keith Seitz <keiths@redhat.com>
2260
2261 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
2262 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
2263 (CV_CONVERSION_BADNESS): Define.
2264 (rank_one_type): Remove overly restrictive rvalue reference
2265 rank checks.
2266 Add cv-qualifier checks and subranks for type equality.
2267 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
2268 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
2269 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
2270
72bc1d24
SM
22712017-04-27 Simon Marchi <simon.marchi@ericsson.com>
2272
2273 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
2274 count when creating the object.
2275
55bcecda
UW
22762017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2277 Ulrich Weigand <uweigand@de.ibm.com>
2278
2279 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
2280 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
2281 is used in AIX.
2282 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
2283 (process_xcoff_symbol): Likewise.
2284 (scan_xcoff_symtab): Likewise.
2285
5c99fcf8
AH
22862017-04-26 Alan Hayward <alan.hayward@arm.com>
2287
2288 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
2289 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
2290 (ia64_access_reg): Use get_frame_register_unsigned.
2291 (ia64_access_rse_reg): Likewise.
2292 (ia64_libunwind_frame_prev_register): Likewise.
2293
b41c5a85
JW
22942017-04-26 Jiong Wang <jiong.wang@arm.com>
2295
2296 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
2297 * gdbarch.c: Regenerated.
2298 * gdbarch.h: Regenerated.
2299 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
2300 visibility external.
2301 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
2302 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
2303 (enum cfa_how_kind): Move to ...
2304 (struct dwarf2_frame_state_reg_info): Likewise.
2305 (struct dwarf2_frame_state): Likewise.
2306 * dwarf2-frame.h: ... here.
2307 (dwarf2_frame_state_alloc_regs): New declaration.
2308 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
2309 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
2310
c185f580
AH
23112017-04-26 Alan Hayward <alan.hayward@arm.com>
2312
2313 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
2314 regcache_raw_read_unsigned.
2315 (xtensa_pseudo_register_write): Likewise.
2316
19c45594
AH
23172017-04-26 Alan Hayward <alan.hayward@arm.com>
2318
2319 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
2320 (nds32_pseudo_register_write): Likewise.
2321
4658f12e
YQ
23222017-04-25 Yao Qi <yao.qi@linaro.org>
2323
2324 * regcache.c (struct regcache) <readonly_p>: Change its type
2325 to bool.
2326 (regcache_xmalloc_1): Update parameter type and callers update.
2327
d581dda8
YQ
23282017-04-25 Yao Qi <yao.qi@linaro.org>
2329
2330 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
2331 set_gdbarch_wchar_bit.
2332 * arm-tdep.c (arm_gdbarch_init): Likewise.
2333
debed3db
PA
23342017-04-25 Pedro Alves <palves@redhat.com>
2335
2336 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
2337 (BothAreRelocatable, memcopy, memmove): Don't define.
2338 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
2339 macros.
2340
b0b92aeb
PA
23412017-04-25 Pedro Alves <palves@redhat.com>
2342
2343 * common/common-defs.h: Include "common/poison.h".
2344 * common/function-view.h: (Not, Or, Requires): Move to traits.h
2345 and adjust.
2346 * common/poison.h: New file.
2347 * common/traits.h: Include <type_traits>.
2348 (Not, Or, Requires): New, moved from common/function-view.h.
2349
16c4d54a
PA
23502017-04-25 Pedro Alves <palves@redhat.com>
2351
2352 * breakpoint.h (struct breakpoint): In-class initialize all
2353 fields. Make boolean fields "bool".
2354 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2355 memset call and initializations no longer necessary.
2356
b5c36682
PA
23572017-04-25 Pedro Alves <palves@redhat.com>
2358
2359 * btrace.c (pt_btrace_insn_flags): Change parameter type to
2360 reference.
2361 (pt_btrace_insn): New function.
2362 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
2363
5625a286
PA
23642017-04-25 Pedro Alves <palves@redhat.com>
2365
2366 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
2367 "base" field and inherit from "bp_location" instead. Add
2368 non-default ctor.
2369 (allocate_location_exception): Use new non-default ctor.
2370 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
2371 (init_bp_location): Convert to ...
2372 (bp_location::bp_location): ... this new ctor, and remove memset
2373 call.
2374 (base_breakpoint_allocate_location): Use the new non-default ctor.
2375 * breakpoint.h (bp_location): Now a class. Declare default and
2376 non-default ctors. In-class initialize all members.
2377 (init_bp_location): Remove declaration.
2378
23bcc18f
PA
23792017-04-25 Pedro Alves <palves@redhat.com>
2380
2381 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
2382 assignment operator.
2383
e1ba3053
YQ
23842017-04-24 Yao Qi <yao.qi@linaro.org>
2385
2386 * doublest.c (convert_doublest_to_floatformat): Call
2387 floatformat_totalsize_bytes.
2388
10f489e5
TT
23892017-04-22 Tom Tromey <tom@tromey.com>
2390
2391 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2392 ui_out_emit_list.
2393 * stack.c (print_frame): Use ui_out_emit_list.
2394 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
2395 ui_out_emit_list.
2396 * mi/mi-main.c (print_one_inferior)
2397 (mi_cmd_data_list_register_names)
2398 (mi_cmd_data_list_register_values, mi_cmd_list_features)
2399 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
2400 ui_out_emit_list.
2401 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
2402 (mi_output_solib_attribs): Use ui_out_emit_list,
2403 ui_out_emit_tuple.
2404 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
2405 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2406 (mi_cmd_stack_list_args, list_args_or_locals): Use
2407 ui_out_emit_list.
2408 * disasm.c (do_assembly_only): Use ui_out_emit_list.
2409 * breakpoint.c (print_solib_event, output_thread_groups): Use
2410 ui_out_emit_list.
2411
0092b74d
TT
24122017-04-22 Tom Tromey <tom@tromey.com>
2413
2414 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
2415 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
2416 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
2417
a14a62dd
TT
24182017-04-22 Tom Tromey <tom@tromey.com>
2419
2420 * tracepoint.c (tvariables_info_1)
2421 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
2422
46b9c129
TT
24232017-04-22 Tom Tromey <tom@tromey.com>
2424
2425 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
2426 annotate_arg_emitter.
2427 * breakpoint.c (print_mention_watchpoint)
2428 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
2429 * annotate.h (struct annotate_arg_emitter): New.
2430
2e783024
TT
24312017-04-22 Tom Tromey <tom@tromey.com>
2432
2433 * record-btrace.c (record_btrace_insn_history)
2434 (record_btrace_insn_history_range, record_btrace_call_history)
2435 (record_btrace_call_history_range): Use ui_out_emit_tuple.
2436 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
2437 ui_out_emit_tuple.
2438 * stack.c (print_frame_info): Use ui_out_emit_tuple.
2439 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
2440 * skip.c (skip_info): Use ui_out_emit_tuple.
2441 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
2442 * progspace.c (print_program_space): Use ui_out_emit_tuple.
2443 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
2444 * osdata.c (info_osdata): Use ui_out_emit_tuple.
2445 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
2446 ui_out_emit_tuple.
2447 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
2448 (output_register, mi_cmd_data_read_memory)
2449 (mi_cmd_data_read_memory_bytes, mi_load_progress)
2450 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
2451 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
2452 Use ui_out_emit_tuple.
2453 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
2454 ui_out_emit_tuple.
2455 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
2456 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
2457 * linux-thread-db.c (info_auto_load_libthread_db): Use
2458 ui_out_emit_tuple.
2459 * inferior.c (print_inferior): Use ui_out_emit_tuple.
2460 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
2461 * disasm.c (do_mixed_source_and_assembly_deprecated)
2462 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
2463 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
2464 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
2465 * breakpoint.c (print_one_breakpoint_location)
2466 (print_one_breakpoint): Use ui_out_emit_tuple.
2467 * auto-load.c (print_script, info_auto_load_cmd): Use
2468 ui_out_emit_tuple.
2469 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
2470
9be21bb4
SM
24712017-04-21 Simon Marchi <simon.marchi@ericsson.com>
2472
2473 * thread.c (print_thread_info_1): Remove dead code.
2474
0d4c07af
JK
24752017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2476
2477 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
2478 GDB_SELF_TEST.
2479 * arm-tdep.c (selftests::arm_record_test): Likewise.
2480
4daf993d
YQ
24812017-04-21 Yao Qi <yao.qi@linaro.org>
2482
2483 * regcache.c (regcache_restore): Remove argument 2. Replace
2484 argument 3 with regcache. Get register status from
2485 src->register_status and get register contents from
2486 register_buffer (src, regnum).
2487 (regcache_cpy): Update.
2488
a6c21d4a
PA
24892017-04-19 Pedro Alves <palves@redhat.com>
2490
2491 * gdbthread.h (thread): Add missing closing parenthesis in
2492 comment.
2493
3a3fd0fd
PA
24942017-04-19 Pedro Alves <palves@redhat.com>
2495
2496 * common/refcounted-object.h: New file.
2497 * gdbthread.h: Include "common/refcounted-object.h".
2498 (thread_info): Inherit from refcounted_object and add comments.
2499 (thread_info::incref, thread_info::decref)
2500 (thread_info::m_refcount): Delete.
2501 (thread_info::deletable): Use the refcounted_object::refcount()
2502 method.
2503 * inferior.c (current_inferior_): Add comment.
2504 (set_current_inferior): Increment/decrement refcounts.
2505 (prune_inferiors, remove_inferior_command): Skip inferiors marked
2506 not-deletable instead of comparing with the current inferior.
2507 (initialize_inferiors): Increment the initial inferior's refcount.
2508 * inferior.h (struct inferior): Forward declare.
2509 Include "common/refcounted-object.h".
2510 (current_inferior, set_current_inferior): Move declaration to
2511 before struct inferior's definition, and fix comment.
2512 (inferior): Inherit from refcounted_object. Add comments.
2513 * thread.c (switch_to_thread_no_regs): Reference the thread's
2514 inferior pointer directly instead of doing a ptid lookup.
2515 (switch_to_no_thread): New function.
2516 (switch_to_thread(thread_info *)): New function, factored out
2517 from ...
2518 (switch_to_thread(ptid_t)): ... this.
2519 (restore_current_thread): Delete.
2520 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
2521 fields, and add 'inf' field.
2522 (do_restore_current_thread_cleanup): Check whether old->inf is
2523 alive instead of looking up an inferior by ptid. Use
2524 switch_to_thread and switch_to_no_thread.
2525 (restore_current_thread_cleanup_dtor): Use old->inf directly
2526 instead of lookup up an inferior by id. Decref the inferior.
2527 Don't restore 'removable'.
2528 (make_cleanup_restore_current_thread): Same the inferior pointer
2529 in old, instead of the inferior number. Incref the inferior.
2530 Don't save/clear 'removable'.
2531
9bcb1f16
PA
25322017-04-19 Pedro Alves <palves@redhat.com>
2533
2534 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2535 unittests/scoped_restore-selftests.c.
2536 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
2537 * common/scoped_restore.h (scoped_restore_base): Make "class".
2538 (scoped_restore_base::release): New public method.
2539 (scoped_restore_base::scoped_restore_base): New protected ctor.
2540 (scoped_restore_base::m_saved_var): New protected field.
2541 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
2542 scoped_restore_base base class instead of m_saved_var directly.
2543 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
2544 (scoped_restore_tmpl::scoped_restore_tmpl(const
2545 scoped_restore_tmpl<T>&)): Likewise.
2546 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
2547 method.
2548 (scoped_restore_tmpl::saved_var): New method.
2549 (scoped_restore_tmpl::m_saved_var): Delete.
2550 * inferior.h (inferior::detaching): Now a bool.
2551 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
2552 cleanup.
2553 * unittests/scoped_restore-selftests.c: New file.
2554
26fcd539
PA
25552017-04-19 Pedro Alves <palves@redhat.com>
2556
2557 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
2558 Re-sort in alphabetic order.
2559
fdd243b0
PA
25602017-04-18 Pedro Alves <palves@redhat.com>
2561
2562 * xml-support.c (obstack_xml_printf): Delete.
2563 * xml-support.h (obstack_xml_printf): Delete.
2564
4895cde2
PA
25652017-04-18 Pedro Alves <palves@redhat.com>
2566
2567 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
2568 vdebug, verror, body_text, start_element, end_element, name,
2569 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
2570 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
2571 is_xinclude>: Make private and add m_ prefix.
2572 (gdb_xml_parser::body_text): New method, based on ...
2573 (gdb_xml_body_text): ... this. Adjust.
2574 (gdb_xml_parser::vdebug): New method, based on ...
2575 (gdb_xml_debug): ... this. Adjust.
2576 (gdb_xml_parser::verror): New method, based on ...
2577 (gdb_xml_error): ... this. Adjust.
2578 (gdb_xml_parser::start_element): New method, based on ...
2579 (gdb_xml_start_element): ... this. Adjust.
2580 (gdb_xml_start_element_wrapper): Defer to
2581 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
2582 (gdb_xml_parser::end_element): New method, based on ...
2583 (gdb_xml_end_element_wrapper): ... this. Adjust.
2584 (gdb_xml_parser::~gdb_xml_parser): Adjust.
2585 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
2586 (gdb_xml_parser::use_dtd): New method, based on ...
2587 (gdb_xml_use_dtd): ... this. Adjust.
2588 (gdb_xml_parser::parse): New method, based on ...
2589 (gdb_xml_parse): ... this. Adjust.
2590 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
2591 (xinclude_start_include): Adjust to call the parser's name method.
2592 (xml_xinclude_default, xml_xinclude_start_doctype)
2593 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
2594 method.
2595 (xml_process_xincludes): Adjust to call parser methods.
2596 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
2597 declarations.
2598
bd8a901f
PA
25992017-04-18 Pedro Alves <palves@redhat.com>
2600
2601 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
2602 gdb::optional<std::string>.
2603 * xml-support.c: Include <string>.
2604 (scope_level::scope_level(scope_level &&))
2605 (scope_level::~scope_level): Delete.
2606 (scope_level::body): Now a std::string.
2607 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
2608 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
2609 parameter.
2610 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
2611 (xinclude_parsing_data::output): Now a std::string reference.
2612 (xinclude_start_include): Adjust.
2613 (xml_xinclude_default): Adjust.
2614 (xml_process_xincludes): Add 'output' parameter, and return bool.
2615 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
2616 and return bool.
2617 * xml-tdesc.c: Include <unordered_map> and <string>.
2618 (tdesc_xml_cache): Delete.
2619 (tdesc_xml_cache_s): Delete.
2620 (xml_cache): Now an std::unordered_map.
2621 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
2622 (target_fetch_description_xml): Change return type to
2623 gdb::optional<std::string>, and adjust.
2624 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
2625 (target_fetch_description_xml): Change return type to
2626 gdb::optional<std::string>.
2627
d35d1958
PA
26282017-04-18 Pedro Alves <palves@redhat.com>
2629
2630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2631 unittests/optional-selftests.c.
2632 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
2633 * unittests/optional-selftests.c: New file.
2634 * unittests/optional/assignment/1.cc: New file.
2635 * unittests/optional/assignment/2.cc: New file.
2636 * unittests/optional/assignment/3.cc: New file.
2637 * unittests/optional/assignment/4.cc: New file.
2638 * unittests/optional/assignment/5.cc: New file.
2639 * unittests/optional/assignment/6.cc: New file.
2640 * unittests/optional/assignment/7.cc: New file.
2641 * unittests/optional/cons/copy.cc: New file.
2642 * unittests/optional/cons/default.cc: New file.
2643 * unittests/optional/cons/move.cc: New file.
2644 * unittests/optional/cons/value.cc: New file.
2645 * unittests/optional/in_place.cc: New file.
2646 * unittests/optional/observers/1.cc: New file.
2647 * unittests/optional/observers/2.cc: New file.
2648
22796e97
PA
26492017-04-18 Pedro Alves <palves@redhat.com>
2650
2651 * common/gdb_optional.h: Include common/traits.h.
2652 (in_place_t): New type.
2653 (in_place): New constexpr variable.
2654 (optional::optional): Remove member initialization of
2655 m_instantiated.
2656 (optional::optional(in_place_t...)): New constructor.
2657 (optional::~optional): Use reset.
2658 (optional::optional(const optional&)): New.
2659 (optional::optional(const optional&&)): New.
2660 (optional::optional(T &)): New.
2661 (optional::optional(T &&)): New.
2662 (operator::operator=(const optional &)): New.
2663 (operator::operator=(optional &&)): New.
2664 (operator::operator= (const T &))
2665 (operator::operator= (T &&))
2666 (operator::emplace (Args &&... args)): Return a T&. Use reset.
2667 (operator::reset): New.
2668 (operator::m_instantiated):: Add in-class initializer.
2669 * common/traits.h: Include <type_traits>.
2670 (struct And): New types.
2671
a7fc9b61
PA
26722017-04-18 Pedro Alves <palves@redhat.com>
2673
2674 * xml-support.c: Include <vector>.
2675 (scope_level::scope_level(const gdb_xml_element *))
2676 (scope_level::scope_level(scope_level&&)): New.
2677 (scope_level::~scope_level): New.
2678 (scope_level_s): Delete.
2679 (gdb_xml_parser::scopes): Now a std::vector.
2680 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
2681 Use std::vector.
2682 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
2683 scope cleanup code.
2684 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
2685 of the scopes member. Use std::vector::emplace_back.
2686
010151c9
PA
26872017-04-18 Pedro Alves <palves@redhat.com>
2688
2689 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
2690 a bool.
2691 (gdb_xml_end_element): Change type of first parameter.
2692 (gdb_xml_cleanup): Rename to ...
2693 (gdb_xml_parser::~gdb_xml_parser): ... this.
2694 (gdb_xml_create_parser_and_cleanup): Delete with ...
2695 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
2696 to this new ctor.
2697 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
2698 using gdb_xml_create_parser_and_cleanup.
2699 (xinclude_parsing_data): Add ctor/dtor.
2700 (xml_xinclude_cleanup): Delete.
2701 (xml_process_xincludes): Create a local xinclude_parsing_data
2702 instead of heap-allocating one. Create a local gdb_xml_parser
2703 instead of heap-allocating one with
2704 gdb_xml_create_parser_and_cleanup.
2705
d56060f0
JB
27062017-04-18 John Baldwin <jhb@FreeBSD.org>
2707
2708 PR threads/20743
2709 * fbsd-nat.c (resume_one_thread_cb): Remove.
2710 (resume_all_threads_cb): Remove.
2711 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
2712 iterate_over_threads.
2713
305d16a9
JB
27142017-04-17 Joel Brobecker <brobecker@adacore.com>
2715
2716 * NEWS: Create a new section for the next release branch.
2717 Rename the section of the current branch, now that it has
2718 been cut.
2719
8bb57231
JB
27202017-04-17 Joel Brobecker <brobecker@adacore.com>
2721
2722 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
2723 * version.in: Bump version to 8.0.50.DATE-git.
2724
096c92dd
SDJ
27252017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
2726
2727 PR gdb/21385
2728 * windows-nat.c (windows_create_inferior): Declare 'allargs'
2729 independently of the host, and fix build breakage on Cygwin.
2730
0550c955
PA
27312017-04-13 Pedro Alves <palves@redhat.com>
2732
2733 * inferior.c (free_inferior): Convert to ...
2734 (inferior::~inferior): ... this dtor.
2735 (inferior::inferior): New ctor, factored out from ...
2736 (add_inferior_silent): ... here. Allocate the inferior with a new
2737 expression.
2738 (delete_inferior): Call delete instead of free_inferior.
2739 * inferior.h (gdb_environ, continuation): Forward declare.
2740 (inferior): Now a class. Add in-class initialization to all
2741 members. Make boolean fields bool, except 'detaching'.
2742 (inferior::inferior): New explicit ctor.
2743 (inferior::~inferior): New.
2744
e3d60dfc
PA
27452017-04-13 Pedro Alves <palves@redhat.com>
2746
2747 * inferior.c (init_inferior_list): Delete.
2748 * inferior.h (init_inferior_list): Delete.
2749
5fd69d0a
PA
27502017-04-13 Pedro Alves <palves@redhat.com>
2751
2752 PR threads/13217
2753 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
2754 (top level): Call it twice, with different thread sets.
2755
c6609450
PA
27562017-04-13 Pedro Alves <palves@redhat.com>
2757
2758 * thread.c: Include <algorithm>.
2759 (thread_array_cleanup): Delete.
2760 (scoped_inc_dec_ref): New class.
2761 (live_threads_count): New function.
2762 (set_thread_refcount): Delete.
2763 (tp_array_compar_ascending): Now a bool.
2764 (tp_array_compar): Convert to a std::sort comparison function.
2765 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
2766 and live_threads_count.
2767
2a00d7ce
PA
27682017-04-13 Pedro Alves <palves@redhat.com>
2769
2770 * infrun.c (follow_fork_inferior): Also switch the current
2771 inferior.
2772
441d7c93
PA
27732017-04-13 Pedro Alves <palves@redhat.com>
2774
2775 * breakpoint.c (watch_command_1): Save watchpoint-frame info
2776 before calling create_internal_breakpoint.
2777
808480f6
PA
27782017-04-13 Pedro Alves <palves@redhat.com>
2779
2780 * fork-child.c (execv_argv): New class.
2781 (breakup_args): Refactored as ...
2782 (execv_argv::init_for_no_shell): .. this method of execv_argv.
2783 Copy arguments to storage and replace separators with NULL
2784 terminators in place.
2785 (escape_bang_in_quoted_argument): Adjust to return bool.
2786 (execv_argv::execv_argv): New ctor.
2787 (execv_argv::init_for_shell): New method, factored out from
2788 fork_inferior. Don't strdup strings into the vector.
2789 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
2790 Remove free_vector_argv call.
2791
ad3d022a
YQ
27922017-04-13 Yao Qi <yao.qi@linaro.org>
2793
2794 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
2795 tdep->rx_psw_type.
2796
e6ddc3bf
YQ
27972017-04-13 Yao Qi <yao.qi@linaro.org>
2798
2799 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
2800 * rx-tdep.c (rx_gdbarch_init): Likewise.
2801
bfb8cf90
PA
28022017-04-13 Pedro Alves <palves@redhat.com>
2803
2804 * breakpoint.h (struct breakpoint): Reindent.
2805
f5336ca5
PA
28062017-04-13 Pedro Alves <palves@redhat.com>
2807
2808 * breakpoint.c (bp_location): Rename to ...
2809 (bp_locations): ... this. All references updated.
2810 (bp_location_count): Rename to ...
2811 (bp_locations_count): ... this. All references updated.
2812 (bp_location_placed_address_before_address_max): Rename to ...
2813 (bp_locations_placed_address_before_address_max): ... this. All
2814 references updated.
2815 (bp_location_shadow_len_after_address_max): Rename to ...
2816 (bp_locations_shadow_len_after_address_max): ... this. All
2817 references updated.
2818 (bp_location_compare_addrs): Rename to ...
2819 (bp_locations_compare_addrs): ... this. All references updated.
2820 (bp_location_compare):Rename to ...
2821 (bp_locations_compare): ... this. All references updated.
2822 (bp_location_target_extensions_update): Rename to ...
2823 (bp_locations_target_extensions_update): ... this. All references
2824 updated.
2825
be628ab8
SDJ
28262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
2827
2828 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
2829 * common/common.m4: Check headers 'termios.h', 'termio.h' and
2830 'sgtty.h'.
2831 * common/gdb_termios.h: New file, with parts of "terminal.h".
2832 * inflow.c: Include "gdb_termios.h".
2833 * ser-unix.c: Include "gdb_termios.h".
2834 * terminal.h: Move terminal-related defines to
2835 "common/gdb_termios.h".
2836
8e9e35b1
TT
28372017-04-12 Tom Tromey <tom@tromey.com>
2838
2839 * probe.c (parse_probes): Update.
2840 * location.h (delete_event_location): Don't declare.
2841 (event_location_deleter::operator()): Update.
2842 * location.c (event_location_deleter::operator()): Rename from
2843 delete_event_location.
2844 * linespec.h (linespec_result) <location>: Change type to
2845 event_location_up.
2846 * linespec.c (canonicalize_linespec, event_location_to_sals)
2847 (decode_objc): Update.
2848 (linespec_result): Don't call delete_event_location.
2849 * breakpoint.c (create_breakpoints_sal)
2850 (bkpt_probe_create_sals_from_location)
2851 (strace_marker_create_sals_from_location): Update.
2852
16e802b9
TT
28532017-04-12 Tom Tromey <tom@tromey.com>
2854
2855 * linespec.h (struct linespec_result): Add constructor and
2856 destructor.
2857 (init_linespec_result, destroy_linespec_result)
2858 (make_cleanup_destroy_linespec_result): Don't declare.
2859 * linespec.c (init_linespec_result): Remove.
2860 (linespec_result::~linespec_result): Rename from
2861 destroy_linespec_result. Update.
2862 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
2863 Remove.
2864 * breakpoint.c (create_breakpoint, break_range_command)
2865 (decode_location_default): Update.
2866 * ax-gdb.c (agent_command_1): Update.
2867
d28cd78a
TT
28682017-04-12 Tom Tromey <tom@tromey.com>
2869
2870 * remote.c (remote_download_tracepoint): Update.
2871 * python/py-breakpoint.c (bppy_get_location): Update.
2872 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
2873 (gdbscm_breakpoint_location): Update.
2874 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
2875 * breakpoint.h (struct breakpoint) <location, location_range_end>:
2876 Change type to event_location_up.
2877 * breakpoint.c (create_overlay_event_breakpoint)
2878 (create_longjmp_master_breakpoint)
2879 (create_std_terminate_master_breakpoint)
2880 (create_exception_master_breakpoint)
2881 (breakpoint_event_location_empty_p, print_breakpoint_location)
2882 (print_one_breakpoint_location, create_thread_event_breakpoint)
2883 (init_breakpoint_sal, create_breakpoint)
2884 (print_recreate_ranged_breakpoint, break_range_command)
2885 (init_ada_exception_breakpoint, say_where): Update.
2886 (base_breakpoint_dtor): Don't call delete_event_location.
2887 (bkpt_print_recreate, tracepoint_print_recreate)
2888 (dprintf_print_recreate, update_static_tracepoint)
2889 (breakpoint_re_set_default): Update.
2890
711799d5
TT
28912017-04-12 Tom Tromey <tom@tromey.com>
2892
2893 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2894 type of "to_do". Update.
2895 (compute_stack_depth): Use std::vector.
2896
52d214d3
TT
28972017-04-12 Tom Tromey <tom@tromey.com>
2898
2899 * printcmd.c (find_instruction_backward): Use std::vector.
2900
4c404b8b
TT
29012017-04-12 Tom Tromey <tom@tromey.com>
2902
2903 * symfile.c (objfilep): Remove typedef.
2904 (reread_symbols): Use a std::vector.
2905
156d9eab
TT
29062017-04-12 Tom Tromey <tom@tromey.com>
2907
2908 * mi/mi-main.c (exec_direction_forward): Remove.
2909 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
2910 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2911 scoped_restore.
2912 * guile/guile.c (guile_repl_command, guile_command)
2913 (gdbscm_execute_gdb_command): Use scoped_restore.
2914 * go-exp.y (go_parse): Use scoped_restore.
2915 * d-exp.y (d_parse): Use scoped_restore.
2916 * cli/cli-decode.c (cmd_func): Use scoped_restore.
2917 * c-exp.y (c_parse): Use scoped_restore.
2918
4d89769a
TT
29192017-04-12 Tom Tromey <tom@tromey.com>
2920
2921 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
2922 (mi_parse): Update return type.
2923 (mi_parse_free): Remove.
2924 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
2925 (mi_parse::~mi_parse): Rename from mi_parse_free.
2926 (mi_parse_cleanup): Remove.
2927 (mi_parse): Return a unique_ptr. Use new.
2928 * mi/mi-main.c (mi_execute_command): Update.
2929
4b217cc7
TT
29302017-04-12 Tom Tromey <tom@tromey.com>
2931
2932 * location.c (explicit_location_lex_one): Return a
2933 unique_xmalloc_ptr.
2934 (string_to_explicit_location): Update. Remove cleanups.
2935
59d3651b
TT
29362017-04-12 Tom Tromey <tom@tromey.com>
2937
2938 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
2939 (compare_value_and_voffset): Change type. Update.
2940 (compute_vtable_size): Change type of "offset_vec".
2941 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
2942 (gnuv3_get_typeid): Remove extraneous declaration.
2943
b24b0d6c
TT
29442017-04-12 Tom Tromey <tom@tromey.com>
2945
2946 * charset.h (wchar_iterator): Fix comment.
2947
80a3b8c5
TT
29482017-04-12 Tom Tromey <tom@tromey.com>
2949
2950 * charset.c (iconv_wrapper): New class.
2951 (cleanup_iconv): Remove.
2952 (convert_between_encodings): Use it.
2953
c83dd867
TT
29542017-04-12 Tom Tromey <tom@tromey.com>
2955
2956 * symfile.h (increment_reading_symtab): Update type.
2957 * symfile.c (decrement_reading_symtab): Remove.
2958 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
2959 * psymtab.c (psymtab_to_symtab): Update.
2960 * dwarf2read.c (dw2_instantiate_symtab): Update.
2961
0e8621a0
TT
29622017-04-12 Tom Tromey <tom@tromey.com>
2963
2964 * jit.c (struct jit_reader): Declare separately. Add constructor
2965 and destructor. Change type of "handle".
2966 (loaded_jit_reader): Define separately.
2967 (jit_reader_load): Update. New "new".
2968 (jit_reader_unload_command): Use "delete".
2969 * gdb-dlfcn.h (struct dlclose_deleter): New.
2970 (gdb_dlhandle_up): New typedef.
2971 (gdb_dlopen, gdb_dlsym): Update types.
2972 (gdb_dlclose): Remove.
2973 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
2974 (gdb_dlsym): Change type of "handle".
2975 (make_cleanup_dlclose): Remove.
2976 (dlclose_deleter::operator()): Rename from gdb_dlclose.
2977 * compile/compile-c-support.c (load_libcc): Update.
2978
67d89901
TT
29792017-04-12 Tom Tromey <tom@tromey.com>
2980
2981 * symtab.h (find_pcs_for_symtab_line): Change return type.
2982 * symtab.c (find_pcs_for_symtab_line): Change return type.
2983 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
2984 type of "vec". Update.
2985 (ltpy_get_pcs_for_line): Update.
2986 * linespec.c (decode_digits_ordinary): Update.
2987
93921405
TT
29882017-04-12 Tom Tromey <tom@tromey.com>
2989
2990 * tracepoint.c (actions_command): Update.
2991 * python/python.c (python_command, python_interactive_command):
2992 Update.
2993 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
2994 * guile/guile.c (guile_command): Update.
2995 * defs.h (read_command_lines, read_command_lines_1): Return
2996 command_line_up.
2997 (command_lines_deleter): New struct.
2998 (command_line_up): New typedef.
2999 * compile/compile.c (compile_code_command)
3000 (compile_print_command): Update.
3001 * cli/cli-script.h (get_command_line, copy_command_lines): Return
3002 command_line_up.
3003 (make_cleanup_free_command_lines): Remove.
3004 * cli/cli-script.c (get_command_line, read_command_lines_1)
3005 (copy_command_lines): Return command_line_up.
3006 (while_command, if_command, read_command_lines, define_command)
3007 (document_command): Update.
3008 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
3009 Remove.
3010 * breakpoint.h (breakpoint_set_commands): Change type of
3011 "commands".
3012 * breakpoint.c (breakpoint_set_commands): Change type of
3013 "commands". Update.
3014 (do_map_commands_command, update_dprintf_command_list)
3015 (create_tracepoint_from_upload): Update.
3016
ffc2605c
TT
30172017-04-12 Tom Tromey <tom@tromey.com>
3018
3019 * tracepoint.c (scope_info): Update.
3020 * spu-tdep.c (spu_catch_start): Update.
3021 * python/python.c (gdbpy_decode_line): Update.
3022 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
3023 * python/py-breakpoint.c (bppy_init): Update.
3024 * probe.c (parse_probes): Update.
3025 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
3026 * location.h (event_location_deleter): New struct.
3027 (event_location_up): New typedef.
3028 (new_linespec_location, new_address_location, new_probe_location)
3029 (new_explicit_location, copy_event_location)
3030 (string_to_event_location, string_to_event_location_basic)
3031 (string_to_explicit_location): Update return type.
3032 (make_cleanup_delete_event_location): Remove.
3033 * location.c (new_linespec_location, new_address_location)
3034 (new_probe_location, new_explicit_location, copy_event_location):
3035 Return event_location_up.
3036 (delete_event_location_cleanup)
3037 (make_cleanup_delete_event_location): Remove.
3038 (string_to_explicit_location, string_to_event_location_basic)
3039 (string_to_event_location): Return event_location_up.
3040 * linespec.c (canonicalize_linespec, event_location_to_sals)
3041 (decode_line_with_current_source)
3042 (decode_line_with_last_displayed, decode_objc): Update.
3043 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
3044 * completer.c (location_completer): Update.
3045 * cli/cli-cmds.c (edit_command, list_command): Update.
3046 * breakpoint.c (create_overlay_event_breakpoint)
3047 (create_longjmp_master_breakpoint)
3048 (create_std_terminate_master_breakpoint)
3049 (create_exception_master_breakpoint)
3050 (create_thread_event_breakpoint): Update.
3051 (init_breakpoint_sal): Update. Remove some dead code.
3052 (create_breakpoint_sal): Change type of "location". Update.
3053 (create_breakpoints_sal, create_breakpoint, break_command_1)
3054 (dprintf_command, break_range_command, until_break_command)
3055 (init_ada_exception_breakpoint)
3056 (strace_marker_create_sals_from_location)
3057 (update_static_tracepoint, trace_command, ftrace_command)
3058 (strace_command, create_tracepoint_from_upload): Update.
3059 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3060 * ax-gdb.c (agent_command_1): Update.
3061
8f10c932
PA
30622017-04-12 Pedro Alves <palves@redhat.com>
3063
3064 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
3065 * configure.tgt: Handle i[34567]86-*-go32* and
3066 i[34567]86-*-msdosdjgpp*.
3067 * i386-tdep.c (i386_svr4_reg_to_regnum):
3068 Make extern.
3069 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
3070 i386-go32-tdep.c.
3071 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
3072 * i386-go32-tdep.c: New file.
3073 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
3074 declarations.
3075
0a31ccfb
SM
30762017-04-12 Simon Marchi <simon.marchi@ericsson.com>
3077
3078 * aix-thread.c (pd_status2str): Change return type to const char *.
3079
e9bb3fbb
PA
30802017-04-12 Pedro Alves <palves@redhat.com>
3081
3082 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
3083 calls to set_gdbarch_gnu_triplet_regexp.
3084
53375380
PA
30852017-04-12 Pedro Alves <palves@redhat.com>
3086
3087 PR gdb/21323
3088 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
3089 New enum value.
3090 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
3091 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
3092 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
3093 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
3094 * gdbarch.h, gdbarch.c: Regenerate.
3095 * aarch64-tdep.c (aarch64_gdbarch_init): Override
3096 gdbarch_wchar_bit and gdbarch_wchar_signed.
3097 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
3098 * arm-tdep.c (arm_gdbarch_init): Likewise.
3099 * avr-tdep.c (avr_gdbarch_init): Likewise.
3100 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3101 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
3102 * i386-tdep.c (i386_go32_init_abi): Likewise.
3103 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3104 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3105 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3106 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
3107 * sh-tdep.c (sh_gdbarch_init): Likewise.
3108 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3109 * sparc64-tdep.c (sparc64_init_abi): Likewise.
3110 * windows-tdep.c (windows_init_abi): Likewise.
3111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3112
53e710ac
PA
31132017-04-12 Pedro Alves <palves@redhat.com>
3114
3115 PR c++/21323
3116 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
3117 cplus_primitive_type_char32_t>: New enum values.
3118 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
3119 and cplus_primitive_type_char32_t.
3120 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
3121 32, use the archtecture's built-in type for char16_t and char32_t,
3122 respectively. Otherwise, fallback to init_integer_type as before,
3123 but make the type unsigned, and issue a complaint.
3124 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
3125
ab0538b8
AH
31262017-04-12 Alan Hayward <alan.hayward@arm.com>
3127
5e0e0422 3128 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
3129 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
3130
5430098f
SDJ
31312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3132
3133 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
3134 'const char *'.
3135
7c5ded6a
SDJ
31362017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3137
3138 * common/common-utils.c (free_vector_argv): New function.
3139 * common/common-utils.h: Include <vector>.
3140 (free_vector_argv): New prototype.
3141 * darwin-nat.c (darwin_create_inferior): Rewrite function
3142 prototype in order to constify "exec_file" and accept a
3143 "std::string" for "allargs".
3144 * fork-child.c: Include <vector>.
3145 (breakup_args): Rewrite function, using C++.
3146 (fork_inferior): Rewrite function header, constify "exec_file_arg"
3147 and accept "std::string" for "allargs". Update the code to
3148 calculate "argv" based on "allargs". Update calls to "exec_fun"
3149 and "execvp".
3150 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
3151 order to constify "exec_file" and accept a "std::string" for
3152 "allargs".
3153 * go32-nat.c (go32_create_inferior): Likewise.
3154 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
3155 * infcmd.c (run_command_1): Constify "exec_file". Use
3156 "std::string" for inferior arguments.
3157 * inferior.h (fork_inferior): Update prototype.
3158 * linux-nat.c (linux_nat_create_inferior): Rewrite function
3159 prototype in order to constify "exec_file" and accept a
3160 "std::string" for "allargs".
3161 * nto-procfs.c (procfs_create_inferior): Likewise.
3162 * procfs.c (procfs_create_inferior): Likewise.
3163 * remote-sim.c (gdbsim_create_inferior): Likewise.
3164 * remote.c (extended_remote_run): Update code to accept
3165 "std::string" as argument.
3166 (extended_remote_create_inferior): Rewrite function prototype in
3167 order to constify "exec_file" and accept a "std::string" for
3168 "allargs".
3169 * rs6000-nat.c (super_create_inferior): Likewise.
3170 (rs6000_create_inferior): Likewise.
3171 * target.h (struct target_ops) <to_create_inferior>: Likewise.
3172 * windows-nat.c (windows_create_inferior): Likewise.
3173
ae0eee42
PA
31742017-04-11 Pedro Alves <palves@redhat.com>
3175
3176 * thread.c: Fix whitespace throughout.
3177
a6acac06
PR
31782017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
3179
3180 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
3181
64403bd1
AH
31822017-04-11 Alan Hayward <alan.hayward@arm.com>
3183
3184 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
3185
a5bef50f
SDJ
31862017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
3187
3188 PR gdb/21364
3189 * osdata.c (info_osdata): Check if 'type' is an empty string
3190 instead of NULL.
3191
9295a5a9
PA
31922017-04-10 Pedro Alves <palves@redhat.com>
3193
3194 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
3195 (ptid_to_global_thread_id, in_thread_list)
3196 (do_captured_list_thread_ids, set_resumed, set_running)
3197 (set_executing, set_stop_requested, finish_thread_state)
3198 (validate_registers_access, can_access_registers_ptid)
3199 (print_thread_info_1, switch_to_thread)
3200 (do_restore_current_thread_cleanup)
3201 (make_cleanup_restore_current_thread, thread_command)
3202 (thread_name_command): Use operator== instead of ptid_equal.
3203
996812e3
PA
32042017-04-10 Pedro Alves <palves@redhat.com>
3205
3206 * thread.c (struct current_thread_cleanup) <next>: Delete field.
3207 (current_thread_cleanup_chain): Delete.
3208 (restore_current_thread_cleanup_dtor)
3209 (make_cleanup_restore_current_thread): Remove references to
3210 current_thread_cleanup_chain.
3211
845b344f
AH
32122017-04-10 Alan Hayward <alan.hayward@arm.com>
3213
3214 * msp430-tdep.c (msp430_pseudo_register_read): Never return
3215 REG_UNKNOWN.
3216
803bdfe4
YQ
32172017-04-10 Yao Qi <yao.qi@linaro.org>
3218
3219 PR gdb/19942
3220 * gdbthread.h (thread_info::deletable): New method.
3221 (thread_info::incref): New method.
3222 (thread_info::decref): New method.
3223 (thread_info::refcount): Move it to private.
3224 * infrun.c (save_stop_context): Call inc_refcount.
3225 (release_stop_context_cleanup): Likewise.
3226 * thread.c (set_thread_exited): New function.
3227 (init_thread_list): Delete "tp" only it is deletable, otherwise
3228 call set_thread_exited.
3229 (delete_thread_1): Call set_thread_exited.
3230 (current_thread_cleanup) <inferior_pid>: Remove.
3231 <thread>: New field.
3232 (restore_current_thread_ptid_changed): Removed.
3233 (do_restore_current_thread_cleanup): Adjust.
3234 (restore_current_thread_cleanup_dtor): Don't call
3235 find_thread_ptid.
3236 (set_thread_refcount): Use dec_refcount.
3237 (make_cleanup_restore_current_thread): Adjust.
3238 (thread_apply_all_command): Call inc_refcount.
3239 (_initialize_thread): Don't call
3240 observer_attach_thread_ptid_changed.
3241
8c25b497
YQ
32422017-04-10 Yao Qi <yao.qi@linaro.org>
3243
3244 * thread.c (delete_thread_1): Hoist code on marking thread as
3245 exited.
3246
8473b447
SM
32472017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * windows-nat.c (windows_detach): Initialize ptid with
3250 minus_one_ptid.
3251
6670ec13
SM
32522017-04-07 Simon Marchi <simon.marchi@ericsson.com>
3253
3254 * unittests/ptid-selftests.c: Fix erroneous assert messages.
3255
ba2f91bb
AH
32562017-04-07 Alan Hayward <alan.hayward@arm.com>
3257
3258 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
3259 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
3260 (bfin_pseudo_register_write): Likewise
3261
436252de
SM
32622017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3263
3264 * common/ptid.h (struct ptid): Change to...
3265 (class ptid_t): ... this.
3266 <ptid_t>: New constructors.
3267 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
3268 matches>: New methods.
3269 <make_null, make_minus_one>: New static methods.
3270 <pid>: Rename to...
3271 <m_pid>: ...this.
3272 <lwp>: Rename to...
3273 <m_lwp>: ...this.
3274 <tid>: Rename to...
3275 <m_tid>: ...this.
3276 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3277 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
3278 as references, move comment to class ptid_t.
3279 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
3280 ptid_t static methods.
3281 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
3282 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
3283 Take ptid arguments as references, implement using ptid_t methods.
3284 * unittests/ptid-selftests.c: New file.
3285 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3286 unittests/ptid-selftests.c.
3287 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
3288
0dedf377
TP
32892017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3290
3291 * python/python.c (python_run_simple_file): Cast mode literal to
3292 non-const char pointer as expected by PyFile_FromString.
3293
4e9868d4
SM
32942017-04-05 Simon Marchi <simon.marchi@ericsson.com>
3295
3296 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
3297 minus_one_ptid and null_ptid.
3298
9bf2a700
PA
32992017-04-05 Pedro Alves <palves@redhat.com>
3300
3301 * warning.m4 (build_warnings): Remove -Wno-write-strings.
3302 * configure: Regenerate.
3303
a121b7c1
PA
33042017-04-05 Pedro Alves <palves@redhat.com>
3305
3306 * ada-exp.y (yyerror): Constify.
3307 * ada-lang.c (bound_name, get_selections)
3308 (ada_variant_discrim_type)
3309 (ada_variant_discrim_name, ada_value_struct_elt)
3310 (ada_lookup_struct_elt_type, is_unchecked_variant)
3311 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
3312 (catch_ada_exception_command_split)
3313 (catch_ada_assert_command_split, catch_assert_command)
3314 (ada_op_name): Constify.
3315 * ada-lang.h (ada_yyerror, get_selections)
3316 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
3317 * arc-tdep.c (arc_print_frame_cache): Constify.
3318 * arm-tdep.c (arm_skip_stub): Constify.
3319 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
3320 (gen_aggregate_elt_ref): Constify.
3321 * bcache.c (print_bcache_statistics): Constify.
3322 * bcache.h (print_bcache_statistics): Constify.
3323 * break-catch-throw.c (catch_exception_command_1):
3324 * breakpoint.c (struct ep_type_description::description):
3325 Constify.
3326 (add_solib_catchpoint): Constify.
3327 (catch_fork_command_1): Add cast.
3328 (add_catch_command): Constify.
3329 * breakpoint.h (add_catch_command, add_solib_catchpoint):
3330 Constify.
3331 * bsd-uthread.c (bsd_uthread_state): Constify.
3332 * buildsym.c (patch_subfile_names): Constify.
3333 * buildsym.h (next_symbol_text_func, patch_subfile_names):
3334 Constify.
3335 * c-exp.y (yyerror): Constify.
3336 (token::oper): Constify.
3337 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
3338 * c-varobj.c (cplus_describe_child): Constify.
3339 * charset.c (find_charset_names): Add cast.
3340 (find_charset_names): Constify array and add const_cast.
3341 * cli/cli-cmds.c (complete_command, cd_command): Constify.
3342 (edit_command): Constify.
3343 * cli/cli-decode.c (lookup_cmd): Constify.
3344 * cli/cli-dump.c (dump_memory_command, dump_value_command):
3345 Constify.
3346 (struct dump_context): Constify.
3347 (add_dump_command, restore_command): Constify.
3348 * cli/cli-script.c (get_command_line): Constify.
3349 * cli/cli-script.h (get_command_line): Constify.
3350 * cli/cli-utils.c (check_for_argument): Constify.
3351 * cli/cli-utils.h (check_for_argument): Constify.
3352 * coff-pe-read.c (struct read_pe_section_data): Constify.
3353 * command.h (lookup_cmd): Constify.
3354 * common/print-utils.c (decimal2str): Constify.
3355 * completer.c (gdb_print_filename): Constify.
3356 * corefile.c (set_gnutarget): Constify.
3357 * cp-name-parser.y (yyerror): Constify.
3358 * cp-valprint.c (cp_print_class_member): Constify.
3359 * cris-tdep.c (cris_register_name, crisv32_register_name):
3360 Constify.
3361 * d-exp.y (yyerror): Constify.
3362 (struct token::oper): Constify.
3363 * d-lang.h (d_yyerror): Constify.
3364 * dbxread.c (struct header_file_location::name): Constify.
3365 (add_old_header_file, add_new_header_file, last_function_name)
3366 (dbx_next_symbol_text, add_bincl_to_list)
3367 (find_corresponding_bincl_psymtab, set_namestring)
3368 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
3369 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
3370 * defs.h (command_line_input, print_address_symbolic)
3371 (deprecated_readline_begin_hook): Constify.
3372 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
3373 Constify.
3374 * event-top.c (handle_line_of_input): Constify and add cast.
3375 * exceptions.c (catch_errors): Constify.
3376 * exceptions.h (catch_errors): Constify.
3377 * expprint.c (print_subexp_standard, op_string, op_name)
3378 (op_name_standard, dump_raw_expression, dump_raw_expression):
3379 * expression.h (op_name, op_string, dump_raw_expression):
3380 Constify.
3381 * f-exp.y (yyerror): Constify.
3382 (struct token::oper): Constify.
3383 (struct f77_boolean_val::name): Constify.
3384 * f-lang.c (f_word_break_characters): Constify.
3385 * f-lang.h (f_yyerror): Constify.
3386 * fork-child.c (fork_inferior): Add cast.
3387 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
3388 (new_variant): Constify.
3389 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
3390 * gdbarch.c: Regenerate.
3391 * gdbcore.h (set_gnutarget): Constify.
3392 * go-exp.y (yyerror): Constify.
3393 (token::oper): Constify.
3394 * go-lang.h (go_yyerror): Constify.
3395 * go32-nat.c (go32_sysinfo): Constify.
3396 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
3397 * guile/scm-cmd.c (cmdscm_function): Constify.
3398 * guile/scm-param.c (pascm_param_value): Constify.
3399 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
3400 (h8300sx_register_name): Constify.
3401 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
3402 Constify.
3403 * ia64-tdep.c (ia64_register_names): Constify.
3404 * infcmd.c (construct_inferior_arguments): Constify.
3405 (path_command, attach_post_wait): Constify.
3406 * language.c (show_range_command, show_case_command)
3407 (unk_lang_error): Constify.
3408 * language.h (language_defn::la_error)
3409 (language_defn::la_name_of_this): Constify.
3410 * linespec.c (decode_line_2): Constify.
3411 * linux-thread-db.c (thread_db_err_str): Constify.
3412 * lm32-tdep.c (lm32_register_name): Constify.
3413 * m2-exp.y (yyerror): Constify.
3414 * m2-lang.h (m2_yyerror): Constify.
3415 * m32r-tdep.c (m32r_register_names): Constify and make static.
3416 * m68hc11-tdep.c (m68hc11_register_names): Constify.
3417 * m88k-tdep.c (m88k_register_name): Constify.
3418 * macroexp.c (appendmem): Constify.
3419 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
3420 (upgrade_type, parse_external, parse_partial_symbols)
3421 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
3422 (new_symbol): Constify.
3423 * memattr.c (mem_info_command): Constify.
3424 * mep-tdep.c (register_name_from_keyword): Constify.
3425 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
3426 Constify.
3427 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
3428 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
3429 * mi/mi-main.c (captured_mi_execute_command): Constify and add
3430 cast.
3431 (mi_execute_async_cli_command): Constify.
3432 * mips-tdep.c (mips_register_name): Constify.
3433 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
3434 (am33_register_name, am33_2_register_name)
3435 * moxie-tdep.c (moxie_register_names): Constify.
3436 * nat/linux-osdata.c (osdata_type): Constify fields.
3437 * nto-tdep.c (nto_parse_redirection): Constify.
3438 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
3439 (lookup_child_selector): Constify.
3440 (objc_methcall::name): Constify.
3441 * objc-lang.h (lookup_objc_class, lookup_child_selector)
3442 (lookup_struct_typedef): Constify.
3443 * objfiles.c (pc_in_section): Constify.
3444 * objfiles.h (pc_in_section): Constify.
3445 * p-exp.y (struct token::oper): Constify.
3446 (yyerror): Constify.
3447 * p-lang.h (pascal_yyerror): Constify.
3448 * parser-defs.h (op_name_standard): Constify.
3449 (op_print::string): Constify.
3450 (exp_descriptor::op_name): Constify.
3451 * printcmd.c (print_address_symbolic): Constify.
3452 * psymtab.c (print_partial_symbols): Constify.
3453 * python/py-breakpoint.c (stop_func): Constify.
3454 (bppy_get_expression): Constify.
3455 * python/py-cmd.c (cmdpy_completer::name): Constify.
3456 (cmdpy_function): Constify.
3457 * python/py-event.c (evpy_add_attribute)
3458 (gdbpy_initialize_event_generic): Constify.
3459 * python/py-event.h (evpy_add_attribute)
3460 (gdbpy_initialize_event_generic): Constify.
3461 * python/py-evts.c (add_new_registry): Constify.
3462 * python/py-finishbreakpoint.c (outofscope_func): Constify.
3463 * python/py-framefilter.c (get_py_iter_from_func): Constify.
3464 * python/py-inferior.c (get_buffer): Add cast.
3465 * python/py-param.c (parm_constant::name): Constify.
3466 * python/py-unwind.c (fprint_frame_id): Constify.
3467 * python/python.c (gdbpy_parameter_value): Constify.
3468 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
3469 * remote.c (memory_packet_config::name): Constify.
3470 (show_packet_config_cmd, remote_write_bytes)
3471 (remote_buffer_add_string):
3472 * reverse.c (exec_reverse_once): Constify.
3473 * rs6000-tdep.c (variant::name, variant::description): Constify.
3474 * rust-exp.y (rustyyerror): Constify.
3475 * rust-lang.c (rust_op_name): Constify.
3476 * rust-lang.h (rustyyerror): Constify.
3477 * serial.h (serial_ops::name): Constify.
3478 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
3479 (sh_sh3e_register_name, sh_sh2e_register_name)
3480 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
3481 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
3482 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
3483 (sh_sh4al_dsp_register_name): Constify.
3484 * sh64-tdep.c (sh64_register_name): Constify.
3485 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
3486 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
3487 * stabsread.c (patch_block_stabs, read_type_number)
3488 (ref_map::stabs, ref_add, process_reference)
3489 (symbol_reference_defined, define_symbol, define_symbol)
3490 (error_type, read_type, read_member_functions, read_cpp_abbrev)
3491 (read_one_struct_field, read_struct_fields, read_baseclasses)
3492 (read_tilde_fields, read_struct_type, read_array_type)
3493 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
3494 (read_huge_number, read_range_type, read_args, common_block_start)
3495 (find_name_end): Constify.
3496 * stabsread.h (common_block_start, define_symbol)
3497 (process_one_symbol, symbol_reference_defined, ref_add):
3498 * symfile.c (get_section_index, add_symbol_file_command):
3499 * symfile.h (get_section_index): Constify.
3500 * target-descriptions.c (tdesc_type::name): Constify.
3501 (tdesc_free_type): Add cast.
3502 * target.c (find_default_run_target):
3503 (add_deprecated_target_alias, find_default_run_target)
3504 (target_announce_detach): Constify.
3505 (do_option): Constify.
3506 * target.h (add_deprecated_target_alias): Constify.
3507 * thread.c (print_thread_info_1): Constify.
3508 * top.c (deprecated_readline_begin_hook, command_line_input):
3509 Constify.
3510 (init_main): Add casts.
3511 * top.h (handle_line_of_input): Constify.
3512 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
3513 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
3514 (tfind_command): Rename to ...
3515 (tfind_command_1): ... this and constify.
3516 (tfind_command): New function.
3517 (tfind_end_command, tfind_start_command): Adjust.
3518 (encode_source_string): Constify.
3519 * tracepoint.h (encode_source_string): Constify.
3520 * tui/tui-data.c (tui_partial_win_by_name): Constify.
3521 * tui/tui-data.h (tui_partial_win_by_name): Constify.
3522 * tui/tui-source.c (tui_set_source_content_nil): Constify.
3523 * tui/tui-source.h (tui_set_source_content_nil): Constify.
3524 * tui/tui-win.c (parse_scrolling_args): Constify.
3525 * tui/tui-windata.c (tui_erase_data_content): Constify.
3526 * tui/tui-windata.h (tui_erase_data_content): Constify.
3527 * tui/tui-winsource.c (tui_erase_source_content): Constify.
3528 * tui/tui.c (tui_enable): Add cast.
3529 * utils.c (defaulted_query): Constify.
3530 (init_page_info): Add cast.
3531 (puts_debug, subset_compare): Constify.
3532 * utils.h (subset_compare): Constify.
3533 * varobj.c (varobj_format_string): Constify.
3534 * varobj.h (varobj_format_string): Constify.
3535 * vax-tdep.c (vax_register_name): Constify.
3536 * windows-nat.c (windows_detach): Constify.
3537 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
3538 * xml-support.c (gdb_xml_end_element): Constify.
3539 * xml-tdesc.c (tdesc_start_reg): Constify.
3540 * xstormy16-tdep.c (xstormy16_register_name): Constify.
3541 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
3542 * xtensa-tdep.h (xtensa_register_t::name): Constify.
3543
995816ba
PA
35442017-04-05 Pedro Alves <palves@redhat.com>
3545
3546 * proc-api.c (struct trans): Constify.
3547 (procfs_note): Constify.
3548 * proc-events.c (struct trans, syscall_table):
3549 * proc-flags.c (struct trans): Constify.
3550 * proc-utils.h (procfs_note): Constify.
3551 * proc-why.c (struct trans): Constify.
3552 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
3553 (procfs_detach): Constify.
3554 * sol-thread.c (struct string_map): Constify.
3555 (td_err_string, td_state_string): Constify.
3556
3e83a920
PA
35572017-04-05 Pedro Alves <palves@redhat.com>
3558
3559 * proc-api.c (procfs_filename): Don't initialize
3560 procfs_filename.
3561 (prepare_to_trace): Assume procfs_filename is non-NULL.
3562 (_initialize_proc_api): Give procfs_filename a default value here.
3563
63160a43
PA
35642017-04-05 Pedro Alves <palves@redhat.com>
3565
3566 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
3567 'cond_string' parameter.
3568 (extract_exception_regexp): Constify 'string' parameter.
3569 (catch_exception_command_1): Constify.
3570 * breakpoint.c (init_catchpoint)
3571 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
3572 parameter.
3573 (ep_parse_optional_if_clause, catch_fork_command_1)
3574 (catch_exec_command_1): Constify.
3575 * breakpoint.h (init_catchpoint): Constify 'cond_string'
3576 parameter.
3577 (ep_parse_optional_if_clause): Constify.
3578 * cli/cli-utils.c (remove_trailing_whitespace)
3579 (check_for_argument): Constify.
3580 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
3581 non-const overload.
3582 (check_for_argument): Likewise.
3583
9b2eba3d
PA
35842017-04-05 Pedro Alves <palves@redhat.com>
3585
3586 * event-top.c (command_line_handler): Add cast to execute_command
3587 call.
3588 * record-btrace.c (cmd_record_btrace_bts_start)
3589 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
3590 (cmd_record_btrace_start): Add cast to execute_command call.
3591 * record-full.c (record_full_goto_insn):
3592 * record.c (record_start, record_stop): Add cast to
3593 execute_command_to_string calls.
3594 (cmd_record_start): Add cast to execute_command calls.
3595
2adadf51
PA
35962017-04-05 Pedro Alves <palves@redhat.com>
3597
3598 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
3599 static inline function.
3600 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
3601 array and use gdb_PyArg_ParseTupleAndKeywords.
3602 * python/py-cmd.c (cmdpy_init): Likewise.
3603 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3604 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
3605 (infpy_search_memory): Likewise.
3606 * python/py-objfile.c (objfpy_add_separate_debug_file)
3607 (gdbpy_lookup_objfile): Likewise.
3608 * python/py-symbol.c (gdbpy_lookup_symbol)
3609 (gdbpy_lookup_global_symbol): Likewise.
3610 * python/py-type.c (gdbpy_lookup_type): Likewise.
3611 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
3612 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
3613 Likewise.
3614
0d1f4ceb
PA
36152017-04-05 Pedro Alves <palves@redhat.com>
3616
3617 * python/python-internal.h (gdb_PyGetSetDef): New type.
3618 * python/py-block.c (block_object_getset)
3619 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
3620 * python/py-event.c (event_object_getset)
3621 (finish_breakpoint_object_getset): Likewise.
3622 * python/py-inferior.c (inferior_object_getset): Likewise.
3623 * python/py-infthread.c (thread_object_getset): Likewise.
3624 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
3625 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
3626 * python/py-objfile.c (objfile_getset): Likewise.
3627 * python/py-progspace.c (pspace_getset): Likewise.
3628 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
3629 Likewise.
3630 * python/py-record.c (recpy_record_getset): Likewise.
3631 * python/py-symbol.c (symbol_object_getset): Likewise.
3632 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
3633 Likewise.
3634 * python/py-type.c (type_object_getset, field_object_getset):
3635 Likewise.
3636 * python/py-value.c (value_object_getset): Likewise.
3637
4d759979
PA
36382017-04-05 Pedro Alves <palves@redhat.com>
3639
3640 * python/python-internal.h (gdb_PyObject_CallMethod)
3641 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
3642 New functions.
3643 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
3644 (PySys_GetObject, PySys_SetPath): New macros.
3645
fdf9e36f
PA
36462017-04-05 Pedro Alves <palves@redhat.com>
3647
3648 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
3649 info_osdata_command.
3650 * osdata.c (info_osdata_command): Rename to ...
3651 (info_osdata): ... this. Constify 'type' parameter, and remove
3652 the 'from_tty' parameter. Accept NULL TYPE.
3653 (info_osdata_command): New function.
3654 * osdata.h (info_osdata_command): Remove declaration.
3655 (info_osdata): New declaration.
3656
9f33b8b7
PA
36572017-04-05 Pedro Alves <palves@redhat.com>
3658
3659 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
3660 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
3661 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
3662 parameter.
3663 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
3664 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
3665 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
3666 parameter.
3667 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
3668 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
3669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3670 (mi_cmd_file_list_exec_source_files)
3671 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
3672 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
3673 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
3674 parameter.
3675 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
3676 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
3677 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
3678 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
3679 (mi_cmd_stack_info_frame): Constify 'command' parameter.
3680 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
3681 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
3682 'command' parameter.
3683 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
3684 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
3685 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
3686 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
3687 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
3688 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
3689 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
3690 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
3691 (mi_cmd_var_set_update_range): Constify 'command' parameter.
3692 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
3693 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
3694 parameter.
3695 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
3696 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
3697 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
3698 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
3699 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
3700 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
3701 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
3702 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
3703 (mi_cmd_data_list_changed_registers)
3704 (mi_cmd_data_write_register_values)
3705 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3706 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
3707 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
3708 (mi_cmd_list_features, mi_cmd_list_target_features)
3709 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
3710 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
3711 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
3712 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
3713 (mi_cmd_trace_frame_collected): Constify 'command'
3714 parameter.
3715 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
3716 'command' parameter.
3717
67cb5b2d
PA
37182017-04-05 Pedro Alves <palves@redhat.com>
3719
3720 * ada-lang.c (ada_completer_word_break_characters): Now a const
3721 array.
3722 (ada_get_gdb_completer_word_break_characters): Constify.
3723 * completer.c (gdb_completer_command_word_break_characters)
3724 (gdb_completer_file_name_break_characters)
3725 (gdb_completer_quote_characters): Now const arrays.
3726 (get_gdb_completer_quote_characters): Constify.
3727 (set_rl_completer_word_break_characters): New function.
3728 (set_gdb_completion_word_break_characters)
3729 (complete_line_internal): Use it.
3730 * completer.h (get_gdb_completer_quote_characters): Constify.
3731 (set_rl_completer_word_break_characters): Declare.
3732 * f-lang.c (f_word_break_characters): Constify.
3733 * language.c (default_word_break_characters): Constify.
3734 * language.h (language_defn::la_word_break_characters): Constify.
3735 (default_word_break_characters): Constify.
3736 * top.c (init_main): Use set_rl_completer_word_break_characters.
3737
7a114964
PA
37382017-04-05 Pedro Alves <palves@redhat.com>
3739
3740 * aix-thread.c (aix_thread_pid_to_str)
3741 (aix_thread_extra_thread_info): Constify.
3742 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
3743 * bsd-uthread.c (bsd_uthread_extra_thread_info)
3744 (bsd_uthread_pid_to_str): Constify.
3745 * corelow.c (core_pid_to_str): Constify.
3746 * darwin-nat.c (darwin_pid_to_str): Constify.
3747 * fbsd-nat.c (fbsd_pid_to_str): Constify.
3748 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
3749 Constify.
3750 * gnu-nat.c (gnu_pid_to_str): Constify.
3751 * go32-nat.c (go32_pid_to_str): Constify.
3752 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
3753 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
3754 * inferior.c (inferior_pid_to_str): Constify.
3755 * linux-nat.c (linux_nat_pid_to_str): Constify.
3756 * linux-tdep.c (linux_core_pid_to_str): Constify.
3757 * linux-thread-db.c (thread_db_pid_to_str)
3758 (thread_db_extra_thread_info): Constify.
3759 * nto-tdep.c (nto_extra_thread_info): Constify.
3760 * nto-tdep.h (nto_extra_thread_info): Constify.
3761 * obsd-nat.c (obsd_pid_to_str): Constify.
3762 * procfs.c (procfs_pid_to_str): Constify.
3763 * ravenscar-thread.c (ravenscar_extra_thread_info)
3764 (ravenscar_pid_to_str): Constify.
3765 * remote-sim.c (gdbsim_pid_to_str): Constify.
3766 * remote.c (remote_threads_extra_info, remote_pid_to_str):
3767 Constify.
3768 * sol-thread.c (solaris_pid_to_str): Constify.
3769 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
3770 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
3771 * target.c (default_pid_to_str, target_pid_to_str)
3772 (normal_pid_to_str, default_pid_to_str): Constify.
3773 * target.h (target_ops::to_pid_to_str)
3774 (target_ops::to_extra_thread_info): Constify.
3775 (target_pid_to_str, normal_pid_to_str): Constify.
3776 * windows-nat.c (windows_pid_to_str): Constify.
3777 * gdbarch.sh (core_pid_to_str): Constify.
3778 * target-delegates.c: Regenerate.
3779 * gdbarch.h, gdbarch.c: Regenerate.
3780
69bbf465
PA
37812017-04-05 Pedro Alves <palves@redhat.com>
3782
3783 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
3784 the memory of the temporary warning_pre_print override.
3785 * utils.c (warning_pre_print): Constify.
3786 * utils.h (warning_pre_print): Constify.
3787
be47f9e8
PA
37882017-04-05 Pedro Alves <palves@redhat.com>
3789
3790 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
3791 (shell_command): New function.
3792 (make_command): Use std::string.
3793 (init_cli_cmds): Register shell_command instead of shell_escape.
3794
bde6261a
PA
37952017-04-05 Pedro Alves <palves@redhat.com>
3796
3797 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
3798 * tracepoint.c (default_collect): Don't initialize.
3799
b38ef47f
PA
38002017-04-05 Pedro Alves <palves@redhat.com>
3801
3802 * macroexp.c (macro_buffer::shared): Now a bool.
3803 (init_buffer): Update.
3804 (init_shared_buffer): Constify 'addr' parameter.
3805 (substitute_args, expand, macro_expand, macro_expand_next): Remove
3806 casts.
3807
f995bbe8
PA
38082017-04-05 Pedro Alves <palves@redhat.com>
3809
3810 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
3811 * disasm.c (set_disassembler_options): Constify local.
3812 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
3813
4a596fe2
SDJ
38142017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3815
3816 PR gdb/21352
3817 * tracefile.c (tsave_command): Fix argument parsing for '-r'
3818 option.
3819
2cad08ea
YQ
38202017-04-05 Yao Qi <yao.qi@linaro.org>
3821
3822 * frame.c (frame_unwind_register_unsigned): Call
3823 frame_unwind_register_value.
3824
55a98976
YQ
38252017-04-05 Yao Qi <yao.qi@linaro.org>
3826
3827 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
3828 Use gdb_test_multiple, and don't match anchor.
3829
4ac40124
PA
38302017-04-05 Pedro Alves <palves@redhat.com>
3831
3832 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
3833 (Write After Approval): Remove Simon Marchi.
3834
c053b654
PA
38352017-04-05 Pedro Alves <palves@redhat.com>
3836
3837 * common/gdb_optional.h (optional::optional): Make constexpr and
3838 initialize m_dummy.
3839
4c7bf4f9
JB
38402017-04-04 John Baldwin <jhb@FreeBSD.org>
3841
3842 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
3843 (amd64fbsd_jmp_buf_reg_offset): Remove.
3844 (amd64fbsd_supply_uthread): Remove function.
3845 (amd64fbsd_collect_uthread): Remove function.
3846 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
3847 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
3848 (x86_64-*-freebsd*): Remove bsd-uthread.o.
3849 (fbsd-nat.c): Update comment.
3850 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
3851 (i386fbsd_jmp_buf_reg_offset): Remove.
3852 (i386fbsd_supply_uthread): Remove function.
3853 (i386fbsd_collect_uthread): Remove function.
3854 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
3855
1e1a8bef
JB
38562017-04-04 John Baldwin <jhb@FreeBSD.org>
3857
3858 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
3859 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
3860 * NEWS: Mention that support for FreeBSD/alpha was removed.
3861 * alpha-fbsd-tdep.c: Delete file.
3862 * config/alpha/fbsd.mh: Delete file.
3863 * configure.host: Delete alpha*-*-freebsd* and
3864 alpha*-*-kfreebsd*-gnu.
3865 * configure.tgt: Delete alpha*-*-freebsd* and
3866 alpha*-*-kfreebsd*-gnu.
3867
49907934
JB
38682017-04-04 John Baldwin <jhb@FreeBSD.org>
3869
3870 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
3871 amd64bsd_store_inferior_registers): Use ptid from regcache.
3872
6f77053d
PA
38732017-04-04 Pedro Alves <palves@redhat.com>
3874
3875 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
3876 data fields, make them private and add "m_" prefixes.
3877 (lnp_state_machine::lnp_state_machine): New ctor.
3878 (record_line, check_line_address, handle_set_discriminator)
3879 (handle_set_address, handle_advance_pc, handle_special_opcode)
3880 (handle_advance_line, handle_set_file, handle_negate_stmt)
3881 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
3882 (end_sequence, advance_line): New methods.
3883 (m_gdbarch, m_record_lines_p): New fields.
3884 (lnp_reader_state): Delete.
3885 (dwarf_record_line): Rename to ...
3886 (lnp_state_machine::record_line): ... adjust.
3887 (init_lnp_state_machine): Delete.
3888 (lnp_state_machine::lnp_state_machine): New.
3889 (check_line_address): Rename to ...
3890 (lnp_state_machine::check_line_address): This.
3891 (dwarf_decode_lines_1): Remove reference to "reader_state".
3892 Adjust lnp_state_machine having a non-default ctor. Use bool.
3893 State machine internal state manipulation moved to
3894 lnp_state_machine methods.
3895
9c541725
PA
38962017-04-04 Pedro Alves <palves@redhat.com>
3897
3898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3899 unittests/offset-type-selftests.c.
3900 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
3901 * common/offset-type.h: New file.
3902 * common/preprocessor.h: New file.
3903 * common/traits.h: New file.
3904 * common/valid-expr.h: New file.
3905 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
3906 sect_offset and cu_offset strong typedefs throughout.
3907 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
3908 typedefs throughout.
3909 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
3910 sect_offset and cu_offset strong typedefs throughout.
3911 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
3912 typedefs throughout.
3913 * gdbtypes.h: Include "common/offset-type.h".
3914 (cu_offset): Now an offset type (strong typedef) instead of a
3915 struct.
3916 (sect_offset): Likewise.
3917 (union call_site_parameter_u): Rename "param_offset" field to
3918 "param_cu_off".
3919 * unittests/offset-type-selftests.c: New file.
3920
ecfb656c
PA
39212017-04-04 Pedro Alves <palves@redhat.com>
3922
3923 * common/underlying.h: New file.
3924 * dwarf2read.c: Include "common/gdb_optional.h" and
3925 "common/underlying.h".
3926 (dir_index, file_name_index): New types.
3927 (file_entry): Use them.
3928 (file_entry::include): Use to_underlying.
3929 (line_header::add_file_name): Use dir_index.
3930 (read_formatted_entries): Use gdb::optional. Read form before
3931 writting to file_entry.
3932 (dwarf_decode_line_header): Use dir_index.
3933 (lnp_state_machine::current_file): Use to_underlying.
3934 (lnp_state_machine::file): Change type to file_name_index.
3935 (dwarf_record_line): Use to_underlying.
3936 (init_lnp_state_machine): Use file_name_index.
3937 (dwarf_decode_lines_1): Use dir_index and file_name_index.
3938
d194f1fe
PA
39392017-04-04 Pedro Alves <palves@redhat.com>
3940
3941 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
3942 operator bool, has_value and get methods.
3943
fff8551c
PA
39442017-04-04 Pedro Alves <palves@redhat.com>
3945
3946 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
3947 fields.
3948 (line_header): Initialize all data fields. Change type of
3949 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
3950 Change type of include_dirs to std::vector<const char *>. Remove
3951 num_include_dirs, include_dirs_size. Change type of file_names to
3952 std::vector<file_entry>. Remove num_file_names, file_names_size.
3953 (line_header::line_header): New.
3954 (line_header::add_include_dir, line_header::add_file_name): New
3955 methods.
3956 (line_header::include_dir_at): Remove NULL check.
3957 (line_header::file_name_at): Add const overload.
3958 (line_header_up): New unique_ptr typedef.
3959 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
3960 std::vector. Remove free_line_header call.
3961 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
3962 free_line_header call.
3963 (free_cu_line_header): Delete.
3964 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
3965 (setup_type_unit_groups): Use line_header_up instead of cleanups.
3966 Adjust to use std::vector.
3967 (free_line_header): Delete.
3968 (free_line_header_voidp): Use delete.
3969 (add_include_dir): Replace with ...
3970 (line_header::add_include_dir): ... this method. Use std::vector.
3971 (add_file_name): Replace with ...
3972 (line_header::add_file_name): ... this method. Use std::vector.
3973 (add_include_dir_stub): Delete.
3974 (read_formatted_entries): Remove memset.
3975 (dwarf_decode_line_header): Return a line_header_up instead of a
3976 raw pointer. Remove cleanup handling. Pass lambdas to
3977 read_formatted_entries. Adjust to use line_header methods.
3978 (dwarf_decode_lines_1): Adjust to use line_header methods.
3979 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
3980 use std::vector.
3981
d62a8ae2
SM
39822017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
3985 instead of struct ptid.
3986
db3a1dc7
AH
39872017-05-04 Alan Hayward <alan.hayward@arm.com>
3988
3989 * frame.c (get_frame_register_bytes): Unwind using value.
3990 (put_frame_register_bytes): Likewise.
3991
b1b45502
IB
39922017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
3993
3994 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
3995 aggregate-like.
3996
ec13808e
JK
39972017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3998
3999 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
4000
12316564
YQ
40012017-03-29 Yao Qi <yao.qi@linaro.org>
4002
4003 * gdbthread.h (struct thread_info): Declare constructor and
4004 destructor. Add some in-class member initializers.
4005 * thread.c (free_thread): Remove.
4006 (init_thread_list): Call delete instead of free_thread.
4007 (new_thread): Call thread_info constructor.
4008 (thread_info::thread_info): New function.
4009 (thread_info::~thread_info): New function.
4010 (delete_thread_1): Call delete instead of free_thread.
4011 (make_cleanup_restore_current_thread): Move tp and frame to
4012 inner block.
4013
fe5f7374
AK
40142017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
4015
4016 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
4017 (arc_skip_prologue): Likewise.
4018 (arc_make_frame_cache): Likewise.
4019 (arc_pv_get_operand): New function.
4020 (arc_is_in_prologue): Likewise.
4021 (arc_analyze_prologue): Likewise.
4022 (arc_print_frame_cache): Likewise.
4023 (MAX_PROLOGUE_LENGTH): New constant.
4024
eea78757
AK
40252017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
4026
4027 * configure.tgt: Add arc-insn.o.
4028 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
4029 (dump_arc_instruction_command): New function.
4030 (arc_fprintf_disasm): Likewise.
4031 (arc_disassemble_info): Likewise.
4032 (arc_insn_get_operand_value): Likewise.
4033 (arc_insn_get_operand_value_signed): Likewise.
4034 (arc_insn_get_memory_base_reg): Likewise.
4035 (arc_insn_get_memory_offset): Likewise.
4036 (arc_insn_get_branch_target): Likewise.
4037 (arc_insn_dump): Likewise.
4038 (arc_insn_get_linear_next_pc): Likewise.
4039 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
4040 (arc_disassemble_info): Likewise.
4041 (arc_insn_get_branch_target): Likewise.
4042 (arc_insn_get_linear_next_pc): Likewise.
4043 * NEWS: Mention new "maint print arc arc-instruction".
4044
3be78afd
AK
40452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
4046
4047 * arc-tdep (maintenance_print_arc_list): New variable.
4048 (maintenance_print_arc_command): New function.
4049
296ec4fa
AK
40502017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
4051
4052 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
4053 Add "limm" and "reserved".
4054 (arc_cannot_fetch_register, arc_cannot_store_register): Add
4055 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
4056 * arc-tdep.h (arc_regnum): Likewise.
4057
f74f865e
MF
40582017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4059
4060 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
4061 for THREADPTR register.
4062 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
4063 register.
4064 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
4065 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
4066 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
4067
0d0bf81a
MF
40682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4069
4070 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
4071 registers above gdbarch_num_regs (gdbarch) as privileged in
4072 call0 ABI.
4073
0ce4291e
MF
40742017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4075
4076 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
4077 for a single specified register or for all registers in
4078 a0_base..a0_base + C0_NREGS range.
4079 (supply_gregset_reg): Call regcache_raw_supply for a single
4080 specified register or for all registers in a0_base..a0_base +
4081 C0_NREGS range.
4082
c56054f9
MF
40832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4084
4085 * arch/xtensa.h (C0_NREGS): Add definition.
4086 * xtensa-tdep.c (C0_NREGS): Remove definition.
4087
a4398628
MF
40882017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4089
4090 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
4091 Drop xtensa_default_isa initialization.
4092 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
4093
8c43009f
PA
40942017-03-27 Pedro Alves <palves@redhat.com>
4095
4096 * dwarf2read.c (file_entry) <dir_index>: Add comment.
4097 (file_entry::include_dir): New method.
4098 (line_header::include_dir_at, line_header::file_name_at): New
4099 methods.
4100 (setup_type_unit_groups, setup_type_unit_groups)
4101 (psymtab_include_file_name): Simplify using the new methods.
4102 (lnp_state_machine) <the_line_header>: New field.
4103 <file>: Add comment.
4104 (lnp_state_machine::current_file): New method.
4105 (dwarf_record_line): Simplify using the new methods.
4106 (init_lnp_state_machine): Initialize the "the_line_header" field.
4107 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
4108 Simplify using the new methods.
4109
a7e80b9e
PA
41102017-03-27 Pedro Alves <palves@redhat.com>
4111
4112 * cp-name-parser.y (make_empty): Delete.
4113 (demangler_special, nested_name, ptr_operator, array_indicator)
4114 (direct_declarator, declarator_1): Use fill_comp instead of
4115 make_empty.
4116
21047726
PA
41172017-03-27 Pedro Alves <palves@redhat.com>
4118
4119 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
4120 to ATTRIBUTE_PRINTF.
4121 * solib-target.c (library_list_start_list): Print "string" not
4122 "version".
4123 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
4124 gdb_xml_error call.
4125
d721ba37
PA
41262017-03-27 Pedro Alves <palves@redhat.com>
4127
4128 * dwarf2read.c (struct file_and_directory): New.
4129 (dwarf2_get_dwz_file): Adjust to use std::string.
4130 (dw2_get_file_names_reader): Adjust to use file_and_directory.
4131 (find_file_and_directory): Adjust to return a file_and_directory
4132 object.
4133 (read_file_scope): Adjust to use file_and_directory. Remove
4134 make_cleanup/do_cleanups calls.
4135 (open_and_init_dwp_file): Adjust to use std::string. Remove
4136 make_cleanup/do_cleanups calls.
4137 * python/python.c (do_start_initialization): Adjust to ldirname
4138 returning a std::string.
4139 * utils.c (ldirname): Now returns a std::string.
4140 * utils.h (ldirname): Change return type to std::string.
4141 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
4142 returning a std::string.
4143 * xml-tdesc.c (file_read_description_xml): Likewise.
4144
ed771251
AH
41452017-03-24 Alan Hayward <alan.hayward@arm.com>
4146
4147 * regcache.c (regcache_debug_print_register): New function.
4148 * regcache.h (regcache_debug_print_register): New declaration.
4149 * target.c (debug_print_register): Remove.
4150 (target_fetch_registers): Call regcache_debug_print_register.
4151 (target_store_registers): Likewise.
4152
568c1b9f
PB
41532017-03-24 Pádraig Brady <pbrady@fb.com>
4154
4155 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
4156 reference beyond the 'lh->include_dirs' array before accessing to
4157 it.
4158 (psymtab_include_file_name): Likewise.
4159 (dwarf_decode_lines_1): Likewise.
4160 (dwarf_decode_lines): Likewise.
4161 (file_file_name): Likewise.
4162
3e00d44f
SM
41632017-03-23 Simon Marchi <simon.marchi@ericsson.com>
4164
4165 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
4166 inferior_ptid.
4167 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4168 ps_lsetfpregs): Likewise.
4169 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
4170 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4171 ps_lsetfpregs): Likewise.
4172 * target.c (target_fetch_registers, target_store_registers):
4173 Remove asserts.
4174
077ae656
AH
41752017-03-23 Alan Hayward <alan.hayward@arm.com>
4176
4177 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
4178
1e2b521d
YQ
41792017-03-23 Yao Qi <yao.qi@linaro.org>
4180
4181 * aarch64-tdep.c (aarch64_process_record_test): Declare.
4182 (_initialize_aarch64_tdep): Register it.
4183 (aarch64_record_load_store): Handle PRFM instruction.
4184 (aarch64_process_record_test): New function.
4185
33877125
YQ
41862017-03-23 Yao Qi <yao.qi@linaro.org>
4187
4188 * aarch64-tdep.c (aarch64_record_load_store): Fix code
4189 indentation.
4190
a0eef940
YQ
41912017-03-23 Yao Qi <yao.qi@linaro.org>
4192
4193 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
4194
3f2a3564
PR
41952017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
4196
4197 python/python.c (do_start_initialization): Fix memory leak.
4198
b67aeab0
SM
41992017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
4200
4201 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
4202 using get_ptrace_pid.
4203 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
4204 inferior_ptid.
4205 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
4206 inferior_ptid instead of pid.
4207
ffdbe864
YQ
42082017-03-22 Yao Qi <yao.qi@linaro.org>
4209
4210 * aarch64-tdep.c: Wrap locally used classes in anonymous
4211 namespace.
4212 * arm-tdep.c: Likewise.
4213 * linespec.c: Likewise.
4214 * ui-out.c: Likewise.
4215
9d736fbf
JG
42162017-03-22 Jonah Graham <jonah@kichwacoders.com>
4217
4218 PR gdb/19637
4219 * python/lib/gdb/printer/bound_registers.py: Import sys.
4220
3de88e9a
SM
42212017-03-21 Simon Marchi <simon.marchi@ericsson.com>
4222
4223 * windows-nat.c (do_windows_fetch_inferior_registers): Add
4224 windows_thread_info parameter and use it instead of
4225 current_thread.
4226 (windows_fetch_inferior_registers): Don't set current_thread,
4227 pass the thread to do_windows_fetch_inferior_registers. Use
4228 ptid from regcache instead of inferior_ptid.
4229 (do_windows_store_inferior_registers): Add windows_thread_info
4230 parameter and use it instead of current_thread.
4231 (windows_store_inferior_registers): Don't set current_thread,
4232 pass the thread to do_windows_store_inferior_registers. Use
4233 ptid from regcache instead of inferior_ptid.
4234
0e7b8f61
SM
42352017-03-21 Simon Marchi <simon.marchi@ericsson.com>
4236
4237 * ser-mingw.c (ser_windows_raw): Remove reference to
4238 struct serial::current_timeout.
4239
5badf10a
IR
42402017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
4241
4242 PR tdep/20928
4243 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
4244 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
4245 (sparc64_fsr_type): Fix %fsr decoding.
4246
cee59b3f
TW
42472017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
4248
4249 * python/py-record-btrace.c (btpy_insn_data): Change return type
4250 for Python 2.
4251
639a9038
SM
42522017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
4253
4254 * spu-linux-nat.c (spu_fetch_inferior_registers,
4255 spu_store_inferior_registers): Use ptid from regcache, set and
4256 restore inferior_ptid.
4257 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
4258 Likewise.
4259
bcc0c096
SM
42602017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
4261
4262 * i386-linux-nat.c (fetch_register, store_register,
4263 i386_linux_fetch_inferior_registers,
4264 i386_linux_store_inferior_registers): Use ptid from regcache.
4265 * ia64-linux-nat.c (ia64_linux_fetch_register,
4266 ia64_linux_store_register): Likewise.
4267 * inf-ptrace.c (inf_ptrace_fetch_register,
4268 inf_ptrace_store_register): Likewise.
4269 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
4270 m32r_linux_store_inferior_registers): Likewise.
4271 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
4272 m68kbsd_store_inferior_registers): Likewise.
4273 * m68k-linux-nat.c (fetch_register, store_register,
4274 m68k_linux_fetch_inferior_registers,
4275 m68k_linux_store_inferior_registers): Likewise.
4276 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
4277 m88kbsd_store_inferior_registers): Likewise.
4278 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
4279 mips_fbsd_store_inferior_registers): Likewise.
4280 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
4281 mips64_linux_regsets_store_registers): Likewise.
4282 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4283 mipsnbsd_store_inferior_registers): Likewise.
4284 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
4285 mips64obsd_store_inferior_registers): Likewise.
4286 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
4287 Likewise.
4288 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
4289 ppcfbsd_store_inferior_registers): Likewise.
4290 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
4291 ppc_linux_store_inferior_registers): Likewise.
4292 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
4293 ppcnbsd_store_inferior_registers): Likewise.
4294 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
4295 ppcobsd_store_registers): Likewise.
4296 * procfs.c (procfs_fetch_registers, procfs_store_registers):
4297 Likewise.
4298 * ravenscar-thread.c (ravenscar_fetch_registers,
4299 ravenscar_store_registers, ravenscar_prepare_to_store):
4300 Likewise.
4301 * record-btrace.c (record_btrace_fetch_registers,
4302 record_btrace_store_registers, record_btrace_prepare_to_store):
4303 Likewise.
4304 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
4305 Lookup inferior using ptid from regcache, instead of
4306 current_inferior.
4307 * remote.c (remote_fetch_registers, remote_store_registers): Use
4308 ptid from regcache.
4309 * rs6000-nat.c (fetch_register, store_register): Likewise.
4310 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
4311 s390_linux_store_inferior_registers): Likewise.
4312 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
4313 shnbsd_store_inferior_registers): Likewise.
4314 * sol-thread.c (sol_thread_fetch_registers,
4315 sol_thread_store_registers): Likewise.
4316 * sparc-nat.c (sparc_fetch_inferior_registers,
4317 sparc_store_inferior_registers): Likewise.
4318 * tilegx-linux-nat.c (fetch_inferior_registers,
4319 store_inferior_registers): Likewise.
4320 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
4321 vaxbsd_store_inferior_registers): Likewise.
4322 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
4323 store_xtregs): Likewise.
4324
c0f55cc6
AV
43252017-03-20 Artemiy Volkov <artemiyv@acm.org>
4326
4327 PR gdb/14441
4328 * NEWS: Mention support for rvalue references in GDB and python.
4329 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
4330 supports both lvalue and rvalue references.
4331
15c0a2a9
AV
43322017-03-20 Artemiy Volkov <artemiyv@acm.org>
4333
4334 PR gdb/14441
4335 * gdbtypes.c (rank_one_type): Implement overloading
4336 resolution rules regarding rvalue references.
4337
aa006118
AV
43382017-03-20 Artemiy Volkov <artemiyv@acm.org>
4339
4340 PR gdb/14441
4341 * aarch64-tdep.c (aarch64_type_align)
4342 (aarch64_extract_return_value, aarch64_store_return_value): Change
4343 lvalue reference type checks to general reference type checks.
4344 * amd64-tdep.c (amd64_classify): Likewise.
4345 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
4346 Likewise.
4347 * arm-tdep.c (arm_type_align, arm_extract_return_value)
4348 (arm_store_return_value): Likewise.
4349 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
4350 * c-typeprint.c (c_print_type): Likewise.
4351 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
4352 (cplus_number_of_children, cplus_describe_child): Likewise.
4353 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
4354 * completer.c (expression_completer): Likewise.
4355 * cp-support.c (make_symbol_overload_list_adl_namespace):
4356 Likewise.
4357 * darwin-nat-info.c (info_mach_region_command): Likewise.
4358 * dwarf2loc.c (entry_data_value_coerce_ref)
4359 (value_of_dwarf_reg_entry): Likewise.
4360 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
4361 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
4362 Likewise.
4363 * findvar.c (extract_typed_address, store_typed_address):
4364 Likewise.
4365 * gdbtypes.c (rank_one_type): Likewise.
4366 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
4367 * infcall.c (value_arg_coerce): Likewise.
4368 * language.c (pointer_type): Likewise.
4369 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
4370 Likewise.
4371 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
4372 * mn10300-tdep.c (mn10300_type_align): Likewise.
4373 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
4374 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
4375 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
4376 Likewise.
4377 * printcmd.c (print_formatted, x_command): Likewise.
4378 * python/py-type.c (typy_get_composite, typy_template_argument):
4379 Likewise.
4380 * python/py-value.c (valpy_referenced_value)
4381 (valpy_get_dynamic_type, value_has_field): Likewise.
4382 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
4383 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
4384 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
4385 * spu-tdep.c (spu_scalar_value_p): Likewise.
4386 * symtab.c (lookup_symbol_aux): Likewise.
4387 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
4388 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
4389 Likewise.
4390 * valops.c (value_cast_pointers, value_cast)
4391 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
4392 (value_struct_elt, value_struct_elt_bitpos)
4393 (value_find_oload_method_list, find_overload_match)
4394 (value_rtti_indirect_type): Likewise.
4395 * valprint.c (val_print_scalar_type_p, generic_val_print):
4396 Likewise.
4397 * value.c (value_actual_type, value_as_address, unpack_long)
4398 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
4399 (coerce_ref): Likewise.
4400 * varobj.c (varobj_get_value_type): Likewise.
4401
3fcf899d
AV
44022017-03-20 Artemiy Volkov <artemiyv@acm.org>
4403
4404 PR gdb/14441
4405 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
4406 table of constants.
4407 * python/lib/gdb/command/explore.py: Support exploring values
4408 of rvalue reference types.
4409 * python/lib/gdb/types.py: Implement get_basic_type() for
4410 rvalue reference types.
4411 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
4412 constant.
4413 * python/py-value.c (valpy_getitem): Add an rvalue reference
4414 check.
4415 (valpy_reference_value): Add new parameter "refcode".
4416 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
4417 New wrappers for valpy_reference_value().
4418 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
4419 (gdbpy_invoke_xmethod): Likewise.
4420
4297a3f0
AV
44212017-03-20 Artemiy Volkov <artemiyv@acm.org>
4422
4423 PR gdb/14441
4424 * dwarf2read.c (process_die, read_type_die_1): Handle the
4425 DW_TAG_rvalue_reference_type DIE.
4426 (read_tag_reference_type): Add new parameter "refcode".
4427
e1cb3213
AV
44282017-03-20 Artemiy Volkov <artemiyv@acm.org>
4429
4430 PR gdb/14441
4431 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
4432 (c_type_print_modifier, c_type_print_varspec_suffix)
4433 (c_type_print_base): Support printing rvalue reference types.
4434 * c-valprint.c (c_val_print, c_value_print): Support printing
4435 rvalue reference values.
4436
e4347c89
AV
44372017-03-20 Artemiy Volkov <artemiyv@acm.org>
4438
4439 PR gdb/14441
4440 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
4441 typename.
4442 * cp-support.c (replace_typedefs): Handle
4443 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
4444 * python/py-type.c (typy_lookup_type): Likewise.
4445
53cc15f5
AV
44462017-03-20 Artemiy Volkov <artemiyv@acm.org>
4447
4448 PR gdb/14441
4449 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
4450 * parse.c (insert_type): Change assert statement.
4451 (follow_types): Handle rvalue reference types.
4452 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
4453 constant.
4454
a65cfae5
AV
44552017-03-20 Artemiy Volkov <artemiyv@acm.org>
4456
4457 PR gdb/14441
4458 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
4459 value_ref() interface.
4460 * c-valprint.c (c_value_print): Likewise.
4461 * infcall.c (value_arg_coerce): Likewise.
4462 * python/py-value.c (valpy_reference_value): Likewise.
4463 * valops.c (value_cast, value_reinterpret_cast)
4464 (value_dynamic_cast, typecmp): Likewise.
4465 (value_ref): Parameterize by kind of return value reference type.
4466 * value.h (value_ref): Add new parameter "refcode".
4467
3b224330
AV
44682017-03-20 Artemiy Volkov <artemiyv@acm.org>
4469
4470 PR gdb/14441
4471 * dwarf2read.c (read_tag_reference_type): Use
4472 lookup_lvalue_reference_type() instead of lookup_reference_type().
4473 * eval.c (evaluate_subexp_standard): Likewise.
4474 * f-exp.y: Likewise.
4475 * gdbtypes.c (make_reference_type, lookup_reference_type):
4476 Generalize with rvalue reference types.
4477 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
4478 convenience wrappers for lookup_reference_type().
4479 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
4480 reference kind parameter.
4481 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
4482 wrappers for lookup_reference_type().
4483 * guile/scm-type.c (gdbscm_type_reference): Use
4484 lookup_lvalue_reference_type() instead of lookup_reference_type().
4485 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
4486 * parse.c (follow_types): Likewise.
4487 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
4488 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
4489 Likewise.
4490 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
4491 (gdbpy_invoke_xmethod): Likewise.
4492 * stabsread.c: Provide extra argument to make_reference_type()
4493 call.
4494 * valops.c (value_ref, value_rtti_indirect_type): Use
4495 lookup_lvalue_reference_type() instead of lookup_reference_type().
4496
f9aeb8d4
AV
44972017-03-20 Artemiy Volkov <artemiyv@acm.org>
4498
4499 PR gdb/14441
4500 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
4501 (TYPE_IS_REFERENCE): New macro.
4502 (struct type): Add rvalue_reference_type field.
4503 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
4504
51457a05
MAL
45052017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
4506
4507 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
4508 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
4509 New function definition.
4510 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
4511 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
4512 New function declaration.
4513 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
4514 * mi/mi-interp.h: New file.
4515 * solib.c (info_sharedlibrary_command): Replace for loop with
4516 ALL_SO_LIBS macro
4517 * solib.h (update_solib_list): New function declaration.
4518 (so_list_head): Move macro.
4519 * solist.h (ALL_SO_LIBS): New macro.
4520
e696b3ad
MAL
45212017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
4522
4523 * infcmd.c (post_create_inferior): Remove unused argument in
4524 call to solib_add.
4525 * remote.c (remote_start_remote): Likewise.
4526 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
4527 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
4528 (enable_break): Likewise.
4529 * solib.c (update_solib_list): Remove unused target argument
4530 and its documentation.
4531 (solib_add): Remove unused target argument. Remove unused
4532 argument in call to update_solib_list.
4533 (info_sharedlibrary_command): Remove unused argument in call
4534 to update_solib_list.
4535 (sharedlibrary_command): Remove unused argument in call to
4536 solib_add.
4537 (handle_solib_event): Likewise.
4538 (reload_shared_libraries): Likewise.
4539 * solib.h (solib_add): Remove unused target argument.
4540
dcb84eda
AA
45412017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
4542
4543 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
4544 (s390_displaced_step_fixup): Cover relative branches with the
4545 default fixup handling. This fixes lack of support for some
4546 relative branch instructions.
4547
d9cb6cdc
SM
45482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4549
4550 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
4551 ptid from regcache.
4552
1afaf9f4
SM
45532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
4556 i386_darwin_store_inferior_registers): Use ptid from regcache.
4557
aac12e24
SM
45582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
4561 i386bsd_store_inferior_registers): Use ptid from regcache.
4562
bbe1eef1
SM
45632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
4566 hppaobsd_store_registers): Use ptid from regcache.
4567
10799020
SM
45682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
4571 hppanbsd_store_registers): Use ptid from regcache.
4572
00204cf7
SM
45732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4574
4575 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
4576 from regcache. Use get_ptrace_pid.
4577
11a33714
SM
45782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4579
4580 * corelow.c (get_core_register_section): Use ptid from regcache,
4581 update doc.
4582
317cd492
SM
45832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * bsd-uthread.c (bsd_uthread_fetch_registers,
4586 bsd_uthread_store_registers): Use ptid from regcache, set and
4587 restore inferior_ptid.
4588
9ac8a7c2
SM
45892017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4590
4591 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4592 fetch_fp_regs, store_register, store_regs, store_fp_register,
4593 store_fp_regs): Use ptid from regcache.
4594
4ac4bb6a
SM
45952017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4596
4597 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
4598 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
4599 store_vfp_regs): Use ptid from regcache.
4600
9bcbdca8
PA
46012017-03-17 Pedro Alves <palves@redhat.com>
4602
4603 PR remote/21188
4604 * ser-base.c (ser_base_wait_for): Add comment.
4605 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
4606 version.
4607 * ser-unix.c (hardwire_raw): Remove reference to
4608 scb->current_timeout.
4609 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
4610 (hardwire_ops): Install ser_base_readchar instead of
4611 hardwire_readchar.
4612 * serial.h (struct serial) <current_timeout, timeout_remaining>:
4613 Remove fields.
4614
7503099f
JG
46152017-03-17 Jonah Graham <jonah@kichwacoders.com>
4616
4617 PR gdb/19637
4618 * python/lib/gdb/printer/bound_registers.py: Add support for
4619 Python 3.
4620
7942e96e
AA
46212017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4622
4623 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
4624 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
4625 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
4626 byte_offset to subobj_byte_offset. Fix the handling of
4627 DWARF_VALUE_STACK on big-endian targets when coming via an
4628 implicit pointer.
4629 (dwarf2_evaluate_loc_desc): Adjust call to
4630 dwarf2_evaluate_loc_desc_full.
4631 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
4632 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
4633
ba14f379
YQ
46342017-03-16 Yao Qi <yao.qi@linaro.org>
4635
4636 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
4637 and REVSH instructions.
4638
b121eeb9
YQ
46392017-03-16 Yao Qi <yao.qi@linaro.org>
4640
4641 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
4642 (arm_record_test): Declare.
4643 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
4644 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
4645 align with the manual.
4646 (thumb_record_misc): Adjust the code order to align with the
4647 manual.
4648 (thumb2_record_decode_insn_handler): Fix instruction matching.
4649 (instruction_reader_thumb): New class.
4650 (arm_record_test): New function.
4651
728a7913
YQ
46522017-03-16 Yao Qi <yao.qi@linaro.org>
4653
4654 * arm-tdep.c (abstract_memory_reader): New class.
4655 (instruction_reader): New class.
4656 (extract_arm_insn): Add argument 'reader'. Callers updated.
4657 (decode_insn): Likewise.
4658
34b43320
DE
46592017-03-16 Doug Evans <dje@google.com>
4660
a7c0469f
DE
4661 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
4662 member. Change type of TYPE member to SCM. All uses updated.
4663 (lsscm_make_lazy_string_smob): Add assert.
4664 (lsscm_make_lazy_string): Flag bad length values.
4665 (lsscm_elt_type): New function.
4666 (gdbscm_lazy_string_to_value): Rewrite to use
4667 lsscm_safe_lazy_string_to_value.
4668 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
4669 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
4670 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
4671 in incoming type.
4672 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
4673 * guile/scm-type.c (tyscm_scm_to_type): New function.
4674
46752017-03-15 Doug Evans <dje@google.com>
4676
34b43320
DE
4677 PR python/17728, python/18439, python/18779
4678 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
4679 member. Change type of TYPE member to PyObject *. All uses updated.
4680 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
4681 (gdbpy_create_lazy_string_object): Flag bad length values.
4682 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
4683 Handle typedefs in incoming type.
4684 (stpy_lazy_string_elt_type): New function.
4685 (gdbpy_extract_lazy_string): Call it.
4686 * python/py-value.c (valpy_lazy_string): Flag bad length values.
4687 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
4688 typedefs in incoming type.
4689
a3a5fecc
DE
46902017-03-16 Doug Evans <dje@google.com>
4691
4692 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
4693 * guile/scm-type.c (tyscm_scm_to_type): New function.
4694
28f1c605
JW
46952017-03-16 Jiong Wang <jiong.wang@arm.com>
4696
4697 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
4698 "ULONGEST" for "skip".
4699
87c336f6
AA
47002017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
4701
4702 PR gdb/21220
4703 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
4704 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
4705 (inf_ptrace_peek_poke): ...here. New function. Now also loop
4706 over ptrace peek/poke until end of buffer or error.
4707
cf81cf60
SM
47082017-03-14 Simon Marchi <simon.marchi@ericsson.com>
4709
4710 * parse.c (length_of_subexp): Make static.
4711 * parser-defs.h (length_of_subexp): Remove.
4712
a379284a
AA
47132017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
4714
4715 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
4716 as well.
4717
8a6200ba
PA
47182017-03-14 Pedro Alves <palves@redhat.com>
4719
4720 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
4721 (main): Use std::unique_ptr. Remove calls to
4722 cp_demangled_name_parse_free.
4723
f79ec206
SM
47242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
4727 alphabsd_store_inferior_registers): Use regcache->ptid instead
4728 of inferior_ptid.
4729
edb5fb00
SM
47302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * aix-thread.c (aix_thread_fetch_registers,
4733 aix_thread_store_registers): Use regcache->ptid instead of
4734 inferior_ptid.
4735
55119686
SM
47362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4737
4738 * aarch64-linux-nat.c (fetch_gregs_from_thread,
4739 store_gregs_to_thread, fetch_fpregs_from_thread,
4740 store_fpregs_to_thread): Use regcache->ptid instead of
4741 inferior_ptid.
4742
6a06fbb7
SM
47432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4744
4745 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
4746 amd64_linux_fetch_inferior_registers): Use regcache->ptid
4747 instead of inferior_ptid.
4748
c6386875
SM
47492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4750
4751 * target.c (target_fetch_registers, target_store_registers): Add
4752 assert.
4753
ddaaf0fb
SM
47542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4755
4756 * regcache.h (regcache_get_ptid): New function.
4757 * regcache.c (regcache_get_ptid): New function.
4758
b9da89d1 47592017-03-13 Mark Wielaard <mark@klomp.org>
4760
4761 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
4762
5f4d1085
KS
47632017-03-10 Keith Seitz <keiths@redhat.com>
4764
4765 PR c++/8218
4766 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
4767
c65d6b55
PA
47682017-03-08 Pedro Alves <palves@redhat.com>
4769
4770 PR gdb/18360
4771 * infrun.c (start_step_over, do_target_resume, resume)
4772 (restart_threads): Assert we're not resuming a thread that is
4773 meant to be stopped.
4774 (infrun_thread_stop_requested_callback): Delete.
4775 (infrun_thread_stop_requested): If the thread is internally
4776 stopped, queue a pending stop event and clear the thread's
4777 inline-frame state.
4778 (handle_stop_requested): New function.
4779 (handle_syscall_event, handle_inferior_event_1): Use
4780 handle_stop_requested.
4781 (handle_stop_requested): New function.
4782 (handle_signal_stop): Set the thread's stop_signal here instead of
4783 at caller.
4784 (finish_step_over): Clear step over info unconditionally.
4785 (handle_signal_stop): If the user had interrupted the event
4786 thread, consider the stop a random signal.
4787 (handle_signal_stop) <signal arrived while stepping over
4788 breakpoint>: Don't restart threads here.
4789 (stop_waiting): Don't clear step-over info here.
4790
15c22686
PA
47912017-03-08 Pedro Alves <palves@redhat.com>
4792
4793 PR 21206
4794 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
4795 goes to argument 2, not 1.
4796
6e5d74e7
PA
47972017-03-08 Pedro Alves <palves@redhat.com>
4798
4799 PR cli/21218
4800 * top.c (gdb_readline_wrapper): Avoid passing NULL to
4801 display_gdb_prompt.
4802 (command_line_input): Add comment.
4803
9753a2f6
PA
48042017-03-08 Pedro Alves <palves@redhat.com>
4805
4806 PR tui/21216
4807 * tui/tui-file.c (tui_file::write): New.
4808 * tui/tui-file.h (tui_file): Override "write".
4809 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
4810 factored out from ...
4811 (tui_puts): ... here.
4812 (tui_putc): Use them.
4813 (tui_write): New function.
4814 * tui/tui-io.h (tui_write): Declare.
4815
1672e0d9
SDJ
48162017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4817
4818 * Makefile.in (SFILES): Replace "environ.c" with
4819 "common/environ.c".
4820 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
4821 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
4822 to...
4823 * common/environ.c: ... here.
4824 * environ.h: Moved to...
4825 * common/environ.h: ... here.
4826
f7bb4e3a
PB
48272017-03-07 Peter Bergner <bergner@vnet.ibm.com>
4828
4829 * gdbarch.sh (pstring_ptr): New static function.
4830 (gdbarch_disassembler_options): Use it.
4831 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
4832 not valid_disassembler_option->name.
4833 * gdbarch.c: Regenerate.
4834
e45ced6c
PB
48352017-03-07 Peter Bergner <bergner@vnet.ibm.com>
4836
4837 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
4838
5f6fd321
PA
48392017-03-07 Pedro Alves <palves@redhat.com>
4840
4841 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
4842
6dbb839a 48432017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
4844
4845 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
4846 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
4847 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 4848 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 4849
d274ecf4
SM
48502017-03-06 Simon Marchi <simon.marchi@ericsson.com>
4851
4852 * xtensa-linux-nat.c (fetch_gregs): Remove const.
4853
df97be55
SM
48542017-03-03 Simon Marchi <simon.marchi@ericsson.com>
4855
4856 * remote.c (remote_add_target_side_commands): Use range-based
4857 for loop.
4858
7d45f3df
YQ
48592017-03-03 Yao Qi <yao.qi@linaro.org>
4860
4861 PR gdb/21165
4862 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
4863 value is lazy.
4864 * valprint.c (common_val_print): Likewise.
4865
65b48a81
PB
48662017-02-28 Peter Bergner <bergner@vnet.ibm.com>
4867
4868 * NEWS: Mention new set/show disassembler-options commands.
4869 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
4870 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
4871 (prospective_options): New static variable.
4872 (gdb_disassembler::gdb_disassembler): Initialize
4873 m_di.disassembler_options.
4874 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
4875 (get_disassembler_options): New function.
4876 (set_disassembler_options): Likewise.
4877 (set_disassembler_options_sfunc): Likewise.
4878 (show_disassembler_options_sfunc): Likewise.
4879 (disassembler_options_completer): Likewise.
4880 (_initialize_disasm): Likewise.
4881 * disasm.h (get_disassembler_options): New prototype.
4882 (set_disassembler_options): Likewise.
4883 * gdbarch.sh (gdbarch_disassembler_options): New variable.
4884 (gdbarch_verify_disassembler_options): Likewise.
4885 * gdbarch.c: Regenerate.
4886 * gdbarch.h: Likewise.
4887 * arm-tdep.c (num_disassembly_options): Delete.
4888 (set_disassembly_style): Likewise.
4889 (arm_disassembler_options): New static variable.
4890 (set_disassembly_style_sfunc): Convert short style name into long
4891 option name. Call set_disassembler_options.
4892 (show_disassembly_style_sfunc): New function.
4893 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
4894 set_gdbarch_verify_disassembler_options.
4895 (_initialize_arm_tdep): Delete regnames variable and update callers.
4896 (arm_disassembler_options): Initialize.
4897 (disasm_options): New variable.
4898 (num_disassembly_options): Rename from this...
4899 (num_disassembly_styles): ...to this. Compute by scanning through
4900 disasm_options.
4901 (valid_disassembly_styles): Initialize using disasm_options.
4902 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
4903 set_arm_regname_option.
4904 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
4905 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
4906 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
4907 set_gdbarch_verify_disassembler_options.
4908 * s390-tdep.c (s390_disassembler_options): New static variable.
4909 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
4910 set_gdbarch_verify_disassembler_options.
4911
d538e36d
SM
49122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
4913
4914 * remote.c (remote_add_target_side_condition): Remove "struct"
4915 keyword from range-based for loop.
4916
83621223
SM
49172017-02-27 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * remote.c (remote_add_target_side_condition): Use range-based
4920 for loop. Update comment.
4921
2123df0e
YQ
49222017-02-27 Yao Qi <yao.qi@linaro.org>
4923
4924 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
4925
8e368124
AH
49262017-02-26 Alan Hayward <alan.hayward@arm.com>
4927
4928 * regcache.c (regcache_raw_update): New function.
4929 (regcache_raw_read): Move code to regcache_raw_update.
4930 * regcache.h (regcache_raw_update): New declaration.
4931 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
4932
a49dd8dd
JK
49332017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 * dwarf2read.c (create_debug_type_hash_table): Initialize
4936 header.signature and header.type_offset_in_tu.
4937
34e4bae9
PA
49382017-02-24 Pedro Alves <palves@redhat.com>
4939
4940 * symtab.c (make_file_symbol_completion_list_1): Use
4941 add_symtab_completions.
4942
b0e4b369
AH
49432017-02-24 Alan Hayward <alan.hayward@arm.com>
4944
4945 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
4946
975c21ab
AH
49472017-02-24 Alan Hayward <alan.hayward@arm.com>
4948
4949 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
4950 I386_MAX_REGISTER_SIZE.
4951 (i386_pseudo_register_write): Likewise.
4952 (i386_process_record): Likewise.
4953 * i387-tdep.c (i387_supply_xsave): Likewise.
4954 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
4955 (store_register): Likewise.
4956
14bc53a8
PA
49572017-02-23 Pedro Alves <palves@redhat.com>
4958
4959 * ada-lang.c: Include "common/function-view.h".
4960 (ada_iterate_over_symbols): Adjust to use function_view as
4961 callback type.
4962 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
4963 (ada_make_symbol_completion_list): Use a lambda.
4964 (ada_exc_search_name_matches): Delete.
4965 (name_matches_regex): New.
4966 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
4967 * compile/compile-c-support.c: Include "common/function-view.h".
4968 (print_one_macro): Change prototype to accept a ui_file pointer.
4969 (write_macro_definitions): Use a lambda.
4970 * dwarf2read.c: Include "common/function-view.h".
4971 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4972 (dw2_expand_symtabs_matching): Adjust to use function_view as
4973 callback type.
4974 * language.h: Include "common/function-view.h".
4975 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
4976 function_view as callback type.
4977 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
4978 * linespec.c: Include "common/function-view.h".
4979 (collect_info::add_symbol): New method.
4980 (struct symbol_and_data_callback, iterate_inline_only, struct
4981 symbol_matcher_data, iterate_name_matcher): Delete.
4982 (iterate_over_all_matching_symtabs): Adjust to use function_view
4983 as callback type and lambdas.
4984 (iterate_over_file_blocks): Adjust to use function_view as
4985 callback type.
4986 (decode_compound_collector): Now a class with private fields.
4987 (decode_compound_collector::release_symbols): New method.
4988 (collect_one_symbol): Rename to...
4989 (decode_compound_collector::operator()): ... this and adjust.
4990 (lookup_prefix_sym): decode_compound_collector construction bits
4991 move to decode_compound_collector ctor. Pass the
4992 decode_compound_collector object directly as callback. Remove
4993 cleanups and use decode_compound_collector::release_symbols
4994 instead.
4995 (symtab_collector): Now a class with private fields.
4996 (symtab_collector::release_symtabs): New method.
4997 (add_symtabs_to_list): Rename to...
4998 (symtab_collector::operator()): ... this and adjust.
4999 (collect_symtabs_from_filename): symtab_collector construction
5000 bits move to symtab_collector ctor. Pass the symtab_collector
5001 object directly as callback. Remove cleanups and use
5002 symtab_collector::release_symtabs instead.
5003 (collect_symbols): Delete.
5004 (add_matching_symbols_to_info): Use lambdas.
5005 * macrocmd.c (print_macro_callback): Delete.
5006 (info_macro_command): Use a lambda.
5007 (info_macros_command): Pass print_macro_definition as callable
5008 directly.
5009 (print_one_macro): Remove 'ignore' parameter.
5010 (macro_list_command): Adjust.
5011 * macrotab.c (macro_for_each_data::fn): Now a function_view.
5012 (macro_for_each_data::user_data): Delete field.
5013 (foreach_macro): Adjust to call the function_view.
5014 (macro_for_each): Adjust to use function_view as callback type.
5015 (foreach_macro_in_scope): Adjust to call the function_view.
5016 (macro_for_each_in_scope): Adjust to use function_view as callback
5017 type.
5018 * macrotab.h: Include "common/function-view.h".
5019 (macro_callback_fn): Declare a prototype instead of a pointer.
5020 Remove "user_data" parameter.
5021 (macro_for_each, macro_for_each_in_scope): Adjust to use
5022 function_view as callback type.
5023 * psymtab.c (partial_map_expand_apply)
5024 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
5025 Adjust to use function_view as callback type and to return bool.
5026 (psym_expand_symtabs_matching): Adjust to use function_view as
5027 callback types.
5028 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
5029 to use function_view as callback type and to return bool.
5030 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
5031 callback types.
5032 * symfile.c (expand_symtabs_matching): Adjust to use function_view
5033 as callback types.
5034 * symfile.h: Include "common/function-view.h".
5035 (expand_symtabs_file_matcher_ftype)
5036 (expand_symtabs_symbol_matcher_ftype)
5037 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
5038 return bool.
5039 (quick_symbol_functions::map_symtabs_matching_filename)
5040 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
5041 function_view as callback type and return bool.
5042 (expand_symtabs_matching): Adjust to use function_view as callback
5043 type.
5044 (maintenance_expand_name_matcher)
5045 (maintenance_expand_file_matcher): Delete.
5046 (maintenance_expand_symtabs): Use lambdas.
5047 * symtab.c (iterate_over_some_symtabs): Adjust to use
5048 function_view as callback types and return bool.
5049 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
5050 of a cleanup.
5051 (lookup_symtab_callback): Delete.
5052 (lookup_symtab): Use a lambda.
5053 (iterate_over_symbols): Adjust to use function_view as callback
5054 type.
5055 (struct search_symbols_data, search_symbols_file_matches)
5056 (search_symbols_name_matches): Delete.
5057 (search_symbols): Use a pair of lambdas.
5058 (struct add_name_data, add_macro_name, symbol_completion_matcher)
5059 (symtab_expansion_callback): Delete.
5060 (default_make_symbol_completion_list_break_on_1): Use lambdas.
5061 * symtab.h: Include "common/function-view.h".
5062 (iterate_over_some_symtabs): Adjust to use function_view as
5063 callback type and return bool.
5064 (iterate_over_symtabs): Adjust to use function_view as callback
5065 type.
5066 (symbol_found_callback_ftype): Remove 'data' parameter and return
5067 bool.
5068 (iterate_over_symbols): Adjust to use function_view as callback
5069 type.
5070
07e253aa
PA
50712017-02-23 Pedro Alves <palves@redhat.com>
5072
5073 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
5074 (%.o) <unittests/%.c>: New pattern.
5075 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
5076 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
5077 * common/function-view.h: New file.
5078 * unittests/function-view-selftests.c: New file.
5079 * configure: Regenerate.
5080
8eaf5320
SM
50812017-02-23 Simon Marchi <simon.marchi@ericsson.com>
5082
5083 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
5084 inferior_ptid.
5085 * go32-nat.c (go32_thread_alive): Likewise.
5086
38768751
YQ
50872017-02-23 Yao Qi <yao.qi@linaro.org>
5088
5089 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
5090 delete.
5091
0a8beaba
YQ
50922017-02-23 Yao Qi <yao.qi@linaro.org>
5093
5094 * varobj.c (varobj_clear_saved_item): Use delete instead of
5095 xfree.
5096 (update_dynamic_varobj_children): Likewise.
5097
58fdfd2c
JK
50982017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5099
5100 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
5101
1b90b139
SM
51022017-02-21 Simon Marchi <simon.marchi@ericsson.com>
5103
5104 * common/enum-flags.h (enum_flags::enum_flags): Initialize
5105 m_enum_value to 0 in default constructor.
5106
2039d74e
EBM
51072017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5108
5109 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
5110 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
5111 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
5112 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
5113 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
5114 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
5115 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
5116 IS_STORE_CONDITIONAL_INSN.
5117
7814882a
JK
51182017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5119
5120 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
5121
0ae60b63
JK
51222017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5123
5124 * NEWS (Changes since GDB 7.12): Add DWARF-5.
5125
0224619f
JK
51262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 * dwarf2read.c (skip_one_die, read_attribute_value)
5129 (dwarf2_const_value_attr, dump_die_shallow)
5130 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5131 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
5132
0af92d60
JK
51332017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
5136 (dwarf_parse_macro_header): Accept DWARF version 5.
5137 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
5138
216f72a1
JK
51392017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
5142 DW_AT_GNU_*.
5143 * common/common-exceptions.h (enum errors): Likewise.
5144 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
5145 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
5146 (dwarf_expr_context::execute_stack_op): Likewise.
5147 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
5148 Likewise.
5149 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
5150 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
5151 (show_entry_values_debug, call_site_to_target_addr)
5152 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
5153 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
5154 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
5155 (value_of_dwarf_block_entry, indirect_pieced_value)
5156 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
5157 (disassemble_dwarf_expression): Likewise.
5158 * dwarf2read.c (process_die, inherit_abstract_dies)
5159 (read_call_site_scope): Likewise.
5160 * gdbtypes.h (struct func_type, struct call_site_parameter)
5161 (struct call_site): Likewise.
5162 * stack.c (read_frame_arg): Likewise.
5163 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
5164
43988095
JK
51652017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5166
5167 * defs.h (read_unsigned_leb128): New declaration.
5168 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
5169 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
5170 (dwarf2_find_location_expression): Call also
5171 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
5172 * dwarf2loc.h (dwarf2_version): New declaration.
5173 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
5174 rnglists.
5175 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
5176 .debug_rnglists.
5177 (struct dwop_section_names): Add loclists_dwo.
5178 (dwop_section_names): Add .debug_loclists.dwo.
5179 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
5180 (struct dwarf2_per_cu_data): Add dwarf_version.
5181 (struct dwo_sections): Add loclists.
5182 (struct attr_abbrev): Add implicit_const.
5183 (read_indirect_line_string): New declaration.
5184 (read_unsigned_leb128): Delete declaration.
5185 (rcuh_kind): New definition.
5186 (read_and_check_comp_unit_head): Change parameter
5187 is_debug_types_section to section_kind.
5188 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
5189 (read_comp_unit_head): Change parameter abfd to section, add parameter
5190 section_kind. Handle DWARF-5.
5191 (error_check_comp_unit_head): Accept also DWARF version 5.
5192 (read_and_check_comp_unit_head): Change parameter
5193 is_debug_types_section to section_kind.
5194 (read_and_check_type_unit_head): Delete function.
5195 (read_abbrev_offset): Handle DWARF-5.
5196 (create_debug_type_hash_table): Add parameter section_kind. Process
5197 only DW_UT_type. Use signature and type_offset_in_tu from struct
5198 comp_unit_head.
5199 (create_debug_types_hash_table): Update create_debug_type_hash_table
5200 caller.
5201 (create_all_type_units): Call create_debug_type_hash_table.
5202 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
5203 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
5204 caller.
5205 (skip_one_die): Handle DW_FORM_implicit_const.
5206 (dwarf2_rnglists_process): New function.
5207 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
5208 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
5209 (read_attribute_value): Handle DW_FORM_implicit_const,
5210 DW_FORM_line_strp.
5211 (read_attribute): Handle DW_FORM_implicit_const.
5212 (read_indirect_string_at_offset_from): New function from
5213 read_indirect_string_at_offset.
5214 (read_indirect_string_at_offset): Call
5215 read_indirect_string_at_offset_from.
5216 (read_indirect_line_string_at_offset): New function.
5217 (read_indirect_string): New function comment.
5218 (read_indirect_line_string): New function.
5219 (read_unsigned_leb128): Make it global.
5220 (dwarf2_string_attr): Handle DWARF-5.
5221 (add_include_dir_stub, read_formatted_entries): New functions.
5222 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
5223 Handle DWARF-5.
5224 (per_cu_header_read_in): Update read_comp_unit_head caller.
5225 (dwarf2_version): New function.
5226 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
5227 rnglists.
5228 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
5229 fields.
5230
22d2f3ab
JK
52312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5232
5233 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
5234
5f46c5a5
JK
52352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 * dwarf2read.c (dwarf2_ranges_process): New function from
5238 dwarf2_ranges_read.
5239 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
5240 dwarf2_ranges_process.
5241
78d4d2c5
JK
52422017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5243
5244 * dwarf2read.c (create_debug_type_hash_table): New function from
5245 create_debug_types_hash_table.
5246 (create_debug_types_hash_table): Call create_debug_type_hash_table.
5247 (create_all_type_units, open_and_init_dwo_file): Update
5248 create_debug_types_hash_table callers.
5249
1b076f25
SDJ
52502017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5251
5252 PR gdb/16188
5253 * fork-child.c (trace_start_error): Fix thinko. va_end should
5254 refer to 'ap', not 'args'.
5255
0db8980c
SDJ
52562017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
5257 Pedro Alves <palves@redhat.com>
5258
5259 PR gdb/16188
5260 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
5261 calls succeeded.
5262 * fork-child.c (trace_start_error): New function.
5263 (trace_start_error_with_name): Likewise.
5264 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
5265 * inf-ptrace.c (inf_ptrace_me): Likewise.
5266 * inferior.h (trace_start_error): New prototype.
5267 (trace_start_error_with_name): Likewise.
5268
99e8a4f9
SDJ
52692017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
5270
5271 PR gdb/21164
5272 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
5273 NULL before using it.
5274 * symmisc.c (maintenance_print_symbols): Likewise.
5275 (maintenance_print_msymbols): Likewise.
5276
4e746bb6
TW
52772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5278
5279 * NEWS: Add record Python bindings entry.
5280
52812017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5282
5283 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
5284 py-record-full.o.
5285 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
5286 * python/py-record-btrace.c, python/py-record-btrace.h,
5287 python/py-record-full.c, python/py-record-full.h: New file.
5288 * python/py-record.c: Add include for py-record-btrace.h and
5289 py-record-full.h.
5290 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
5291 recpy_instruction_history, recpy_function_call_history, recpy_begin,
5292 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
5293 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
5294 New definition.
5295 (gdbpy_initialize_btrace): New export.
5296 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
5297
52982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5299
5300 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
5301 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
5302 * python/py-record.c: New file.
5303 * python/python-internal.h (gdbpy_start_recording,
5304 gdbpy_current_recording, gdpy_stop_recording,
5305 gdbpy_initialize_record): New export.
5306 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
5307 (python_GdbMethods): Add gdbpy_start_recording,
5308 gdbpy_current_recording and gdbpy_stop_recording.
5309
53102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5311
5312 * record-btrace.c (record_btrace_record_method): New function.
5313 (init_record_btrace_ops): Initialize to_record_method.
5314 * record-full.c (record_full_record_method): New function.
5315 (init_record_full_ops, init_record_full_core_ops): Add
5316 record_full_record_method.
5317 * record.h (enum record_method): New enum.
5318 * target-debug.h (target_debug_print_enum_record_method: New define.
5319 * target-delegates.c: Regenerate.
5320 * target.c (target_record_method): New function.
5321 * target.h: Include record.h.
5322 (struct target_ops) <to_record_method>: New field.
5323 (target_record_method): New export.
5324
53252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5326
5327 * record.h (record_start, record_stop): New export.
5328 * record.c (record_start, record_stop): New function.
5329
53302017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5331
5332 * btrace.c (btrace_fetch): Copy function call segments pointer
5333 into a vector.
5334 (btrace_clear): Clear the vector.
5335 (btrace_find_insn_by_number): Use binary search to find the correct
5336 function call segment.
5337 * btrace.h (brace_fun_p): New typedef.
5338 (struct btrace_thread_info) <functions>: New field.
5339
53402017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5341
5342 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
5343 * btrace.c (btrace_decode_error): ... here. New function.
5344 * btrace.h (btrace_decode_error): New export.
5345
53462017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
5347
5348 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
5349 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
5350 btrace_find_insn_by_number): Remove special case for gaps.
5351 * btrace.h (btrace_insn_get_error): New export.
5352 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
5353 * record-btrace.c (btrace_insn_history): Print number for gaps.
5354 (record_btrace_info, record_btrace_goto): Handle gaps.
5355
3f77c769
TT
53562017-02-14 Tom Tromey <tom@tromey.com>
5357
5358 PR python/13598:
5359 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
5360 event.
5361 * python/py-evts.c (gdbpy_initialize_py_events): Add
5362 before_prompt registry.
5363 * python/py-events.h (events_object) <before_prompt>: New field.
5364
4c2c7ac6
MM
53652017-02-14 Markus Metzger <markus.t.metzger@intel.com>
5366
5367 * btrace.c (ftrace_new_switch): Preserve up link and flags.
5368
5cf30ebf
LM
53692017-02-13 Luis Machado <lgustavo@codesourcery.com>
5370
5371 * symfile (_initialize_symfile): Add usage text to the load command's
5372 help text.
5373
26a06916
SM
53742017-02-10 Simon Marchi <simon.marchi@ericsson.com>
5375
5376 * utils.c (defaulted_query): Don't query on secondary UIs.
5377
0b145e37
TT
53782017-02-10 Tom Tromey <tom@tromey.com>
5379
5380 * rust-lang.c (rust_get_disr_info): Remove unused variable.
5381
2d8365c4
TT
53822017-02-10 Tom Tromey <tom@tromey.com>
5383
5384 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
5385 "cleanup" local.
5386 * python/py-type.c (typy_legacy_template_argument): Remove
5387 unnecessary "cleanup" local.
5388
2bb8f231
TT
53892017-02-10 Tom Tromey <tom@tromey.com>
5390
5391 * python/python.c (do_start_initialization): New function, from
5392 _initialize_python.
5393 (_initialize_python): Call do_start_initialization.
5394 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
5395 goto.
5396
1bdfaf42
TT
53972017-02-10 Tom Tromey <tom@tromey.com>
5398
5399 * python/py-prettyprint.c (pretty_print_one_value): Use
5400 gdbpy_ref.
5401
88b6faea
TT
54022017-02-10 Tom Tromey <tom@tromey.com>
5403
5404 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
5405 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
5406 gdbpy_ref.
5407 * python/py-type.c (field_new): Use gdbpy_ref.
5408 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
5409 gdbpy_ref.
5410 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
5411 (py_free_pspace): Likewise.
5412 (pspace_to_pspace_object): Likewise.
5413 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
5414 (py_free_objfile): Likewise.
5415 (objfile_to_objfile_object): Likewise.
5416 * python/py-inferior.c (delete_thread_object): Use
5417 gdbpy_ref.
5418 (infpy_read_memory): Likewise.
5419 (py_free_inferior): Likewise.
5420 * python/py-evtregistry.c (create_eventregistry_object): Use
5421 gdbpy_ref.
5422 * python/py-event.c (create_event_object): Use gdbpy_ref.
5423
7780f186
TT
54242017-02-10 Tom Tromey <tom@tromey.com>
5425
5426 * python/py-ref.h (gdbpy_ref_policy): Now a template.
5427 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
5428 used.
5429 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
5430 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
5431 python/py-exitedevent.c, python/py-finishbreakpoint.c,
5432 python/py-framefilter.c, python/py-function.c,
5433 python/py-inferior.c, python/py-infevents.c,
5434 python/py-linetable.c, python/py-newobjfileevent.c,
5435 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
5436 python/py-signalevent.c, python/py-stopevent.c,
5437 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
5438 python/py-unwind.c, python/py-utils.c, python/py-value.c,
5439 python/py-varobj.c, python/py-xmethods.c, python/python.c,
5440 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
5441
d4b0bb18
TT
54422017-02-10 Tom Tromey <tom@tromey.com>
5443
5444 * ui-out.h (ui_out_emit_type): New class.
5445 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
5446 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
5447 and ui_out_emit_tuple.
5448 (enumerate_locals): Likewise.
5449 (py_mi_print_variables, py_print_locals, py_print_args): Use
5450 ui_out_emit_list.
5451 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
5452 ui_out_emit_list.
5453 * common/gdb_optional.h: New file.
5454
f67f945c
MG
54552017-02-10 Martin Galvan <martingalvan@sourceware.org>
5456
5457 * MAINTAINERS (Write After Approval): Update my e-mail address.
5458
18da0c51
MG
54592017-02-10 Martin Galvan <martingalvan@sourceware.org>
5460
5461 PR gdb/21122
5462 * breakpoint.c (_initialize_breakpoint): Update the help description
5463 of the 'commands' command to indicate that it takes a list argument.
5464
62c14536
SM
54652017-02-09 Simon Marchi <simon.marchi@ericsson.com>
5466
5467 * interps.c (current_interp_set_logging): Remove "return".
5468
ff6fa247
GB
54692017-02-09 Gary Benson <gbenson@redhat.com>
5470
5471 * symtab.c (add_symtab_completions): Prevent NULL pointer
5472 dereference.
5473
a474bd8e
PA
54742017-02-08 Pedro Alves <palves@redhat.com>
5475
5476 * interps.c (interp::interp): Remove reference to quiet_p.
5477 (interp_set): Make static. Remove dead "Switching to" output
5478 code.
5479 (interp_quiet_p, interp_set_quiet): Delete.
5480 (interpreter_exec_cmd): Don't set the interpreter quiet.
5481 * interps.h (interp_quiet_p): Make static.
5482 (class interp) <quiet_p>: Remove field
5483
3d7b173c
JG
54842017-02-08 Jerome Guitton <guitton@adacore.com>
5485
604c4576
JG
5486 * cli/cli-decode.c (find_command_name_length): Make it extern.
5487 * cli/cli-decode.h (find_command_name_length): Declare.
5488 * cli/cli-script.c (command_name_equals, line_first_arg):
5489 New functions.
5490 (process_next_line): Use cli-decode to parse command names.
5491 (build_command_line): Make args a constant pointer.
5492
54932017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 5494
3d7b173c
JG
5495 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
5496 Remove case-insensitive search.
5497
1291063d
JM
54982017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
5499
5500 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
5501 at the end of the line. Avoids an ARI warning.
5502
20b477a7
LM
55032017-02-06 Luis Machado <lgustavo@codesourcery.com>
5504
5505 * NEWS: Mention support for record/replay of Intel 64 rdrand and
5506 rdseed instructions.
5507 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
5508
3f7b46f2
IR
55092017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
5510
5511 PR tdep/20936
5512 Provide and use sparc32 and sparc64 target description XML files.
5513 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
5514 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
5515 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
5516 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
5517 * features/sparc/sparc32-solaris.xml: New file.
5518 * features/sparc/sparc64-solaris.xml: New file.
5519 * features/sparc/sparc32-solaris.c: Generated.
5520 * features/sparc/sparc64-solaris.c: Generated.
5521 * sparc-tdep.h: Account for differences in target descriptions.
5522 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
5523 (sparc32_register_type): Use target provided registers.
5524 (validate_tdesc_registers): New function.
5525 (sparc32_gdbarch_init): Use tdesc_has_registers.
5526 Set pseudoregister functions.
5527 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
5528 (sparc64_register_type): Use target provided registers.
5529 (sparc64_init_abi): Set pseudoregister functions.
5530
f0fd41c1
TT
55312017-02-03 Tom Tromey <tom@tromey.com>
5532
5533 PR rust/21097:
5534 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
5535 with a single member.
5536
d6f9b0fb
PA
55372017-02-03 Pedro Alves <palves@redhat.com>
5538
5539 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
5540 (cli_interp_base::~cli_interp_base): New.
5541 (cli_interp): New struct.
5542 (as_cli_interp): Cast the interp itself to cli_interp.
5543 (cli_interpreter_pre_command_loop): Rename to ...
5544 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
5545 parameter.
5546 (cli_interpreter_init): Rename to ...
5547 (cli_interp::init): ... this. Remove 'self' parameter. Use
5548 boolean. Make extern.
5549 (cli_interpreter_resume): Rename to ...
5550 (cli_interp::resume): ... this. Remove 'data' parameter. Make
5551 extern.
5552 (cli_interpreter_suspend): Rename to ...
5553 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
5554 extern.
5555 (cli_interpreter_exec): Rename to ...
5556 (cli_interp::exec): ... this. Remove 'data' parameter. Make
5557 extern.
5558 (cli_interpreter_supports_command_editing): Rename to ...
5559 (cli_interp_base::supports_command_editing): ... this. Remove
5560 'interp' parameter. Make extern.
5561 (cli_ui_out): Rename to ...
5562 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
5563 Make extern.
5564 (cli_set_logging): Rename to ...
5565 (cli_interp_base::set_logging): ... this. Remove 'interp'
5566 parameter. Make extern.
5567 (cli_interp_procs): Delete.
5568 (cli_interp_factory): Adjust to use "new".
5569 * cli/cli-interp.h: Include "interps.h".
5570 (struct cli_interp_base): New struct.
5571 * interps.c (struct interp): Delete. Fields moved to interps.h.
5572 (interp_new): Delete.
5573 (interp::interp, interp::~interp): New.
5574 (interp_set): Use bool, and return void. Assume the interpreter
5575 has suspend, init and resume methods, and that the all return
5576 void.
5577 (set_top_level_interpreter): interp_set returns void.
5578 (interp_ui_out): Adapt.
5579 (current_interp_set_logging): Adapt.
5580 (interp_data): Delete.
5581 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
5582 (interp_exec): Adapt.
5583 (top_level_interpreter_data): Delete.
5584 * interps.h (interp_init_ftype, interp_resume_ftype)
5585 (interp_suspend_ftype, interp_exec_ftype)
5586 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
5587 (class interp): New.
5588 (interp_new): Delete.
5589 (interp_set): Now returns void. Use bool.
5590 (interp_data, top_level_interpreter_data): Delete.
5591 * mi/mi-common.h: Include interps.h.
5592 (class mi_interp): Inherit from interp. Define a ctor. Declare
5593 init, resume, suspect, exec, interp_ui_out, set_logging and
5594 pre_command_loop methods.
5595 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
5596 (mi_interpreter_init): Rename to ...
5597 (mi_interp::init): ... this. Remove the 'interp' parameter, use
5598 bool, return void and make extern. Adjust.
5599 (mi_interpreter_resume): ... Rename to ...
5600 (mi_interp::resume): ... this. Remove the 'data' parameter,
5601 return void and make extern. Adjust.
5602 (mi_interpreter_suspend): ... Rename to ...
5603 (mi_interp::suspend): ... this. Remove the 'data' parameter,
5604 return void and make extern. Adjust.
5605 (mi_interpreter_exec): ... Rename to ...
5606 (mi_interp::exec): ... this. Remove the 'data' parameter and make
5607 extern. Adjust.
5608 (mi_interpreter_pre_command_loop): ... Rename to ...
5609 (mi_interp::pre_command_loop): ... this. Remove the 'self'
5610 parameter and make extern.
5611 (mi_on_normal_stop_1): Adjust.
5612 (mi_ui_out): Rename to ...
5613 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
5614 parameter and make extern. Adjust.
5615 (mi_set_logging): Rename to ...
5616 (mi_interp::set_logging): ... this. Remove the 'interp'
5617 parameter and make extern. Adjust.
5618 (mi_interp_procs): Delete.
5619 (mi_interp_factory): Adjust to use 'new'.
5620 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
5621 (mi_print_exception, mi_execute_command, mi_load_progress):
5622 Adjust.
5623 * tui/tui-interp.c (tui_interp): New class.
5624 (as_tui_interp): Return a tui_interp pointer.
5625 (tui_on_normal_stop, tui_on_signal_received)
5626 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
5627 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
5628 to use interp::interp_ui_out.
5629 (tui_init): Rename to ...
5630 (tui_interp::init): ... this. Remove the 'self' parameter, use
5631 bool, return void and make extern. Adjust.
5632 (tui_resume): Rename to ...
5633 (tui_interp::resume): ... this. Remove the 'data' parameter,
5634 return void and make extern. Adjust.
5635 (tui_suspend): Rename to ...
5636 (tui_interp::suspend): ... this. Remove the 'data' parameter,
5637 return void and make extern. Adjust.
5638 (tui_ui_out): Rename to ...
5639 (tui_interp::interp_ui_out): ... this. Remove the 'self'
5640 parameter, and make extern. Adjust.
5641 (tui_exec): Rename to ...
5642 (tui_interp::exec): ... this. Remove the 'data' parameter and
5643 make extern.
5644 (tui_interp_procs): Delete.
5645 (tui_interp_factory): Use "new".
5646
65c40c95
TT
56472017-02-02 Tom Tromey <tom@tromey.com>
5648
5649 * rust-exp.y (ends_raw_string, space_then_number)
5650 (rust_identifier_start_p): Return bool.
5651 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
5652 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
5653 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
5654 (rust_chartype_p): Return bool.
5655 (val_print_struct, rust_print_struct_def, rust_print_type):
5656 Update.
5657 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
5658 Return bool.
5659
b50f188d
TT
56602017-02-02 Tom Tromey <tom@tromey.com>
5661
5662 * rust-lang.c: Reindent.
5663
03c85b11
TT
56642017-02-02 Tom Tromey <tom@tromey.com>
5665
5666 * rust-lang.h (rust_crate_for_block): Update.
5667 * rust-lang.c (rust_crate_for_block): Return std::string.
5668 (rust_get_disr_info): Use std:;string, not
5669 gdb::unique_xmalloc_ptr.
5670 * rust-exp.y (crate_name): Update.
5671
9b6da501
PA
56722017-02-02 Pedro Alves <palves@redhat.com>
5673
5674 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
5675 field out of gdb_disassembler_test and make it static.
5676
ec4cb20b
PA
56772017-02-02 Pedro Alves <palves@redhat.com>
5678
5679 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
5680 mi1_interp and mi_interp fields.
5681
5be5dbf0
PA
56822017-02-02 Pedro Alves <palves@redhat.com>
5683
616268b6
PA
5684 * cli/cli-interp.c (struct saved_output_files, saved_output):
5685 Moved from cli/cli-logging.c.
5686 (cli_set_logging): New function.
5687 (cli_interp_procs): Install cli_set_logging.
5688 * cli/cli-interp.h (make_logging_output, cli_set_logging):
5689 Declare.
5690 * cli/cli-logging.c (struct saved_output_files, saved_output):
5691 Moved to cli/cli-interp.c.
5692 (pop_output_files): Don't save outputs here.
5693 (make_logging_output): New function.
5694 (handle_redirections): Don't build tee nor save previous outputs
5695 here.
5696 * interps.c (current_interp_set_logging): Change prototype.
5697 Assume there's always a set_logging_proc method installed.
5698 * interps.h (interp_set_logging_ftype): Change prototype.
5699 (current_interp_set_logging): Change prototype and adjust comment.
5700 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
5701 use make_logging_output.
5702 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
57032017-02-02 Pedro Alves <palves@redhat.com>
5704
5be5dbf0
PA
5705 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
5706 from ...
5707 (set_logging_overwrite): ... here.
5708 (logging_no_redirect_file): Delete.
5709 (set_logging_redirect): Don't handle redirection on the fly.
5710 Instead warn that "logging off" / "logging on" is necessary.
5711 (pop_output_files): Delete references to logging_no_redirect_file.
5712 (show_logging_command): Always speak in terms of what will happen
5713 once logging is reenabled.
5714
c99cc448
PA
57152017-02-02 Pedro Alves <palves@redhat.com>
5716
5717 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
5718
8b172ce7
PA
57192017-02-02 Pedro Alves <palves@redhat.com>
5720
5721 * disasm.c (gdb_pretty_print_insn): Rename to ...
5722 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
5723 Remove gdbarch parameter. Adapt to clear the object's buffers
5724 instead of allocating new buffers, and to print using the object's
5725 gdb_disassembler instead of calling gdb_print_insn.
5726 (dump_insns): Use gdb_pretty_print_disassembler.
5727 * disasm.h (gdb_pretty_print_insn): Delete declaration.
5728 (gdb_pretty_print_disassembler): New class.
5729 * record-btrace.c (btrace_insn_history): Use
5730 gdb_pretty_print_disassembler.
5731
d7e74731
PA
57322017-02-02 Pedro Alves <palves@redhat.com>
5733
5734 * ada-lang.c (type_as_string): Use string_file.
5735 * ada-valprint.c (ada_print_floating): Use string_file.
5736 * ada-varobj.c (ada_varobj_scalar_image)
5737 (ada_varobj_get_value_image): Use string_file.
5738 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
5739 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
5740 * breakpoint.c (update_inserted_breakpoint_locations)
5741 (insert_breakpoint_locations, reattach_breakpoints)
5742 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
5743 (print_it_watchpoint): Use string_file.
5744 (save_breakpoints): Use stdio_file.
5745 * c-exp.y (oper): Use string_file.
5746 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
5747 tee_file.
5748 (pop_output_files): Use delete.
5749 (handle_redirections): Use stdio_file and tee_file.
5750 * cli/cli-setshow.c (do_show_command): Use string_file.
5751 * compile/compile-c-support.c (c_compute_program): Use
5752 string_file.
5753 * compile/compile-c-symbols.c (generate_vla_size): Take a
5754 'string_file &' instead of a 'ui_file *'.
5755 (generate_c_for_for_one_variable): Take a 'string_file &' instead
5756 of a 'ui_file *'. Use string_file.
5757 (generate_c_for_variable_locations): Take a 'string_file &'
5758 instead of a 'ui_file *'.
5759 * compile/compile-internal.h (generate_c_for_for_one_variable):
5760 Take a 'string_file &' instead of a 'ui_file *'.
5761 * compile/compile-loc2c.c (push, pushf, unary, binary)
5762 (print_label, pushf_register_address, pushf_register)
5763 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
5764 'ui_file *'. Adjust.
5765 * compile/compile.c (compile_to_object): Use string_file.
5766 * compile/compile.h (compile_dwarf_expr_to_c)
5767 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
5768 'ui_file *'.
5769 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
5770 (replace_typedefs_qualified_name): Use string_file and
5771 obstack_copy0.
5772 * disasm.c (gdb_pretty_print_insn): Use string_file.
5773 (gdb_disassembly): Adjust reference the null_stream global.
5774 (do_ui_file_delete): Delete.
5775 (gdb_insn_length): Use null_stream.
5776 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
5777 * dwarf2loc.c (dwarf2_compile_property_to_c)
5778 (locexpr_generate_c_location, loclist_generate_c_location): Take a
5779 'string_file &' instead of a 'ui_file *'.
5780 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
5781 * dwarf2read.c (do_ui_file_peek_last): Delete.
5782 (dwarf2_compute_name): Use string_file.
5783 * event-top.c (gdb_setup_readline): Use stdio_file.
5784 * gdbarch.sh (verify_gdbarch): Use string_file.
5785 * gdbtypes.c (safe_parse_type): Use null_stream.
5786 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
5787 string_file.
5788 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
5789 'string_file *' instead of a 'ui_file *'.
5790 (gdbscm_arch_disassemble): Use string_file.
5791 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
5792 * guile/scm-ports.c (class ioscm_file_port): Now a class that
5793 inherits from ui_file.
5794 (ioscm_file_port_delete, ioscm_file_port_rewind)
5795 (ioscm_file_port_put): Delete.
5796 (ioscm_file_port_write): Rename to ...
5797 (ioscm_file_port::write): ... this. Remove file_port_magic
5798 checks.
5799 (ioscm_file_port_new): Delete.
5800 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
5801 ui_file_up.
5802 * guile/scm-type.c (tyscm_type_name): Use string_file.
5803 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
5804 Use string_file.
5805 * infcmd.c (print_return_value_1): Use string_file.
5806 * infrun.c (print_target_wait_results): Use string_file.
5807 * language.c (add_language): Use string_file.
5808 * location.c (explicit_to_string_internal): Use string_file.
5809 * main.c (captured_main_1): Use null_file.
5810 * maint.c (maintenance_print_architecture): Use stdio_file.
5811 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
5812 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
5813 event_channel>: Change type to mi_console_file pointer.
5814 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
5815 (mi_console_file_delete): Delete.
5816 (struct mi_console_file): Delete.
5817 (mi_console_file_magic): Delete.
5818 (mi_console_file_new): Delete.
5819 (mi_console_file::mi_console_file): New.
5820 (mi_console_file_delete): Delete.
5821 (mi_console_file_fputs): Delete.
5822 (mi_console_file::write): New.
5823 (mi_console_raw_packet): Delete.
5824 (mi_console_file::flush): New.
5825 (mi_console_file_flush): Delete.
5826 (mi_console_set_raw): Rename to ...
5827 (mi_console_file::set_raw): ... this.
5828 * mi/mi-console.h (class mi_console_file): New class.
5829 (mi_console_file_new, mi_console_set_raw): Delete.
5830 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
5831 (mi_set_logging): Use delete and tee_file. Adjust.
5832 * mi/mi-main.c (output_register): Use string_file.
5833 (mi_cmd_data_evaluate_expression): Use string_file.
5834 (mi_cmd_data_read_memory): Use string_file.
5835 (mi_cmd_execute, print_variable_or_computed): Use string_file.
5836 * mi/mi-out.c (mi_ui_out::main_stream): New.
5837 (mi_ui_out::rewind): Use main_stream and
5838 string_file.
5839 (mi_ui_out::put): Use main_stream and string_file.
5840 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
5841 Allocate a 'string_file' instead.
5842 (mi_out_new): Don't allocate a mem_fileopen stream here.
5843 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
5844 (mi_ui_out::main_stream): Declare method.
5845 * printcmd.c (eval_command): Use string_file.
5846 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
5847 * python/py-arch.c (archpy_disassemble): Use string_file.
5848 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
5849 * python/py-frame.c (frapy_str): Use string_file.
5850 * python/py-framefilter.c (py_print_type, py_print_single_arg):
5851 Use string_file.
5852 * python/py-type.c (typy_str): Use string_file.
5853 * python/py-unwind.c (unwind_infopy_str): Use string_file.
5854 * python/py-value.c (valpy_str): Use string_file.
5855 * record-btrace.c (btrace_insn_history): Use string_file.
5856 * regcache.c (regcache_print): Use stdio_file.
5857 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
5858 * remote.c (escape_buffer): Use string_file.
5859 * rust-lang.c (rust_get_disr_info): Use string_file.
5860 * serial.c (serial_open_ops_1): Use stdio_file.
5861 (do_serial_close): Use delete.
5862 * stack.c (print_frame_arg): Use string_file.
5863 (print_frame_args): Remove local mem_fileopen stream, not used.
5864 (print_frame): Use string_file.
5865 * symmisc.c (maintenance_print_symbols): Use stdio_file.
5866 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5867 Take a 'string_file *' instead of a 'ui_file *'.
5868 * top.c (new_ui): Use stdio_file and stderr_file.
5869 (free_ui): Use delete.
5870 (execute_command_to_string): Use string_file.
5871 (quit_confirm): Use string_file.
5872 * tracepoint.c (collection_list::append_exp): Use string_file.
5873 * tui/tui-disasm.c (tui_disassemble): Use string_file.
5874 * tui/tui-file.c: Don't include "ui-file.h".
5875 (enum streamtype, struct tui_stream): Delete.
5876 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
5877 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
5878 (tui_file::tui_file): New method.
5879 (tui_file_fputs): Delete.
5880 (tui_file_get_strbuf): Delete.
5881 (tui_file::puts): New method.
5882 (tui_file_adjust_strbuf): Delete.
5883 (tui_file_flush): Delete.
5884 (tui_file::flush): New method.
5885 * tui/tui-file.h: Tweak intro comment.
5886 Include ui-file.h.
5887 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
5888 (tui_file_adjust_strbuf): Delete declarations.
5889 (class tui_file): New class.
5890 * tui/tui-io.c (tui_initialize_io): Use tui_file.
5891 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
5892 (tui_register_format): Use string_stream.
5893 * tui/tui-stack.c (tui_make_status_line): Use string_file.
5894 (tui_get_function_from_frame): Use string_file.
5895 * typeprint.c (type_to_string): Use string_file.
5896 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
5897 (null_stream): New global.
5898 (ui_file_delete): Delete.
5899 (ui_file::ui_file): New.
5900 (null_file_isatty): Delete.
5901 (ui_file::~ui_file): New.
5902 (null_file_rewind): Delete.
5903 (ui_file::printf): New.
5904 (null_file_put): Delete.
5905 (null_file_flush): Delete.
5906 (ui_file::putstr): New.
5907 (null_file_write): Delete.
5908 (ui_file::putstrn): New.
5909 (null_file_read): Delete.
5910 (ui_file::putc): New.
5911 (null_file_fputs): Delete.
5912 (null_file_write_async_safe): Delete.
5913 (ui_file::vprintf): New.
5914 (null_file_delete): Delete.
5915 (null_file::write): New.
5916 (null_file_fseek): Delete.
5917 (null_file::puts): New.
5918 (ui_file_data): Delete.
5919 (null_file::write_async_safe): New.
5920 (gdb_flush, ui_file_isatty): Adjust.
5921 (ui_file_put, ui_file_rewind): Delete.
5922 (ui_file_write): Adjust.
5923 (ui_file_write_for_put): Delete.
5924 (ui_file_write_async_safe, ui_file_read): Adjust.
5925 (ui_file_fseek): Delete.
5926 (fputs_unfiltered): Adjust.
5927 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
5928 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
5929 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
5930 (set_ui_file_data): Delete.
5931 (string_file::~string_file, string_file::write)
5932 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
5933 (do_ui_file_as_string, ui_file_as_string): Delete.
5934 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
5935 (struct mem_file): Delete.
5936 (mem_file_new): Delete.
5937 (stdio_file::stdio_file): New.
5938 (mem_file_delete): Delete.
5939 (stdio_file::stdio_file): New.
5940 (mem_fileopen): Delete.
5941 (stdio_file::~stdio_file): New.
5942 (mem_file_rewind): Delete.
5943 (stdio_file::set_stream): New.
5944 (mem_file_put): Delete.
5945 (stdio_file::open): New.
5946 (mem_file_write): Delete.
5947 (stdio_file_magic, struct stdio_file): Delete.
5948 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
5949 (stdio_file::flush): New.
5950 (stdio_file_read): Rename to ...
5951 (stdio_file::read): ... this. Adjust.
5952 (stdio_file_write): Rename to ...
5953 (stdio_file::write): ... this. Adjust.
5954 (stdio_file_write_async_safe): Rename to ...
5955 (stdio_file::write_async_safe) ... this. Adjust.
5956 (stdio_file_fputs): Rename to ...
5957 (stdio_file::puts) ... this. Adjust.
5958 (stdio_file_isatty): Delete.
5959 (stdio_file_fseek): Delete.
5960 (stdio_file::isatty): New.
5961 (stderr_file_write): Rename to ...
5962 (stderr_file::write) ... this. Adjust.
5963 (stderr_file_fputs): Rename to ...
5964 (stderr_file::puts) ... this. Adjust.
5965 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
5966 (stderr_file::stderr_file): New.
5967 (tee_file_magic): Delete.
5968 (struct tee_file): Delete.
5969 (tee_file::tee_file): New.
5970 (tee_file_new): Delete.
5971 (tee_file::~tee_file): New.
5972 (tee_file_delete): Delete.
5973 (tee_file_flush): Rename to ...
5974 (tee_file::flush): ... this. Adjust.
5975 (tee_file_write): Rename to ...
5976 (tee_file::write): ... this. Adjust.
5977 (tee_file::write_async_safe): New.
5978 (tee_file_fputs): Rename to ...
5979 (tee_file::puts): ... this. Adjust.
5980 (tee_file_isatty): Rename to ...
5981 (tee_file::isatty): ... this. Adjust.
5982 * ui-file.h (struct obstack, struct ui_file): Don't
5983 forward-declare.
5984 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
5985 (ui_file_write_ftype)
5986 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
5987 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
5988 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
5989 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
5990 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
5991 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
5992 (set_ui_file_fseek): Delete.
5993 (ui_file_data, ui_file_delete, ui_file_rewind)
5994 (struct ui_file): New.
5995 (ui_file_up): New.
5996 (class null_file): New.
5997 (null_stream): Declare.
5998 (ui_file_write_for_put, ui_file_put): Delete.
5999 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
6000 Delete.
6001 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
6002 (gdb_fopen, tee_file_new): Delete.
6003 (struct string_file): New.
6004 (struct stdio_file): New.
6005 (stdio_file_up): New.
6006 (struct stderr_file): New.
6007 (class tee_file): New.
6008 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
6009 of a 'ui_file *'. Adjust.
6010 * ui-out.h (class ui_out) <field_stream>: Likewise.
6011 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
6012 (null_stream): Delete.
6013 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
6014 Adjust.
6015 * utils.h (struct ui_file): Delete forward declaration..
6016 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
6017 (error_stream): Take a 'string_file &' instead of a
6018 'ui_file *'.
6019 * varobj.c (varobj_value_get_print_value): Use string_file.
6020 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
6021 * gdbarch.c: Regenerate.
6022
187808b0
PA
60232017-02-02 Pedro Alves <palves@redhat.com>
6024
6025 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
6026 (gdb_pretty_print_insn): ... this. Now a free function. Add back
6027 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
6028 Adjust to call gdb_print_insn instead of
6029 gdb_disassembler::print_insn.
6030 (dump_insns, do_mixed_source_and_assembly_deprecated)
6031 (do_mixed_source_and_assembly, do_assembly_only): Add back a
6032 'gdbarch' parameter. Remove gdb_disassembler parameter.
6033 (gdb_disassembly): Don't allocate a gdb_disassembler here.
6034 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
6035 declaration.
6036 (gdb_pretty_print_insn): Re-add declaration.
6037 * record-btrace.c (btrace_insn_history): Don't allocate a
6038 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
6039
7a8eb317
SM
60402017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
6041
6042 * disasm.h (gdb_disassembly): Remove file_string parameter.
6043 * disasm.c (gdb_disassembly): Likewise.
6044 * cli/cli-cmds.c (print_disassembly): Adapt.
6045 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6046 * stack.c (do_gdb_disassembly): Likewise.
6047
7346ef59
AA
60482017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
6049
6050 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
6051 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
6052 targets. And if the implicit value is longer than needed, extract
6053 the first bytes instead of the "least significant" ones.
6054
cd4007e4
MM
60552017-02-01 Markus Metzger <markus.t.metzger@intel.com>
6056
6057 * btrace.c (btrace_enable): Do not call btrace_add_pc for
6058 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
6059 (btrace_fetch): Assert can_access_registers_ptid.
6060 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
6061 validate_registers_access.
6062
cf77c34e
MM
60632017-02-01 Markus Metzger <markus.t.metzger@intel.com>
6064
6065 * gdbthread.h (can_access_registers_ptid): New.
6066 * thread.c (can_access_registers_ptid): New.
6067
be85ce7d
PA
60682017-02-01 Pedro Alves <palves@redhat.com>
6069
6070 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
6071
29b0b251
PA
60722017-01-31 Pedro Alves <palves@redhat.com>
6073
6074 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
6075 Fix typos.
6076
289b5b24
PA
60772017-01-31 Pedro Alves <palves@redhat.com>
6078
6079 * stack.c (print_frame_args): Remove local mem_fileopen stream,
6080 not used.
6081
b47413b4
PA
60822017-01-31 Pedro Alves <palves@redhat.com>
6083
6084 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
6085
60adb36c
PA
60862017-01-31 Pedro Alves <palves@redhat.com>
6087
6088 * common/scoped_restore.h
6089 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
6090 change the value's parameter type to T2.
6091 (make_scoped_restore): Likewise.
6092
2735833d
WT
60932017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6094 Richard Henderson <rth@redhat.com>
6095
6096 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
6097 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
6098 GS_BASE for older kernels.
6099 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
6100 GS_BASE for older kernels.
6101 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
6102 and GS_BASE to the offset table.
6103 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
6104 system register group.
6105 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
6106 for older kernels.
6107 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
6108 amd64 ABI.
6109 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
6110 AMD64_GSBASE_REGNUM.
6111 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
6112 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
6113 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
6114 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
6115 i386/64bit-segments.xml in those rules.
6116 * features/i386/64bit-segments.xml: New file.
6117 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
6118 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
6119 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
6120 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
6121 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
6122 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
6123 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
6124 * features/i386/amd64-avx-linux.c: Regenerated.
6125 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
6126 * features/i386/amd64-avx-mpx.c: Regenerated.
6127 * features/i386/amd64-avx512-linux.c: Regenerated.
6128 * features/i386/amd64-linux.c: Regenerated.
6129 * features/i386/amd64-mpx-linux.c: Regenerated.
6130 * features/i386/i386-avx-mpx-linux.c: Regenerated.
6131 * features/i386/i386-avx-mpx.c: Regenerated.
6132 * features/i386/x32-avx-linux.c: Regenerated.
6133 * features/i386/x32-avx512-linux.c: Regenerated.
6134 * regformats/i386/amd64-avx-linux.dat: Regenerated.
6135 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
6136 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
6137 * regformats/i386/amd64-linux.dat: Regenerated.
6138 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
6139 * regformats/i386/x32-avx-linux.dat: Regenerated.
6140 * regformats/i386/x32-avx512-linux.dat: Regenerated.
6141 * regformats/i386/x32-linux.dat: Regenerated.
6142
8884e97e
WT
61432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6144
6145 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
6146 Set to AMD64_NUM_REGS.
6147
7005d26a
WT
61482017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
6149
6150 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
6151 that checks validity of a register number.
6152
4bd2e1b2
KC
61532017-01-27 Kees Cook <keescook@google.com>
6154
6155 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
6156 fetch_fpregs if target has fpa registers.
6157 (arm_linux_store_inferior_registers): Call store_fpregs if target
6158 has fpa registers.
6159
7cf1de6c
AA
61602017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
6161
6162 * cris-tdep.c (cris_gdbarch_init): Remove check for
6163 info.byte_order and force it to BFD_ENDIAN_LITTLE.
6164
874a1c8c
AT
61652017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
6166
6167 * corelow.c (get_core_register_section): Check for regset
6168 existence before checking for REGSET_VARIABLE_SIZE.
6169
d8b49cf0
YQ
61702017-01-26 Yao Qi <yao.qi@linaro.org>
6171 Pedro Alves <palves@redhat.com>
6172
6173 PR gdb/20939
6174 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
6175 call memory_error, save memaddr instead.
6176 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
6177 negative, cal memory_error.
6178 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
6179
658ca58c
YQ
61802017-01-26 Yao Qi <yao.qi@linaro.org>
6181
6182 * disasm-selftests.c (memory_error_test): New function.
6183 (_initialize_disasm_selftests): Register memory_error_test.
6184
79843d45
YQ
61852017-01-26 Yao Qi <yao.qi@linaro.org>
6186
6187 * Makefile.in (SFILES): Add disasm-selftests.c and
6188 selftest-arch.c.
6189 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
6190 * disasm-selftests.c: New file.
6191 * selftest-arch.c: New file.
6192 * selftest-arch.h: New file.
6193
8cafda32
YQ
61942017-01-26 Yao Qi <yao.qi@linaro.org>
6195
6196 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
6197 to bfd_arch_mep. Don't return 0 if section is not
6198 found. Call print_insn_mep.
6199
e47ad6c0
YQ
62002017-01-26 Pedro Alves <palves@redhat.com>
6201 Yao Qi <yao.qi@linaro.org>
6202
6203 * arm-tdep.c: Include "disasm.h".
6204 (gdb_print_insn_arm): Update code to get gdbarch.
6205 * disasm.c (dis_asm_read_memory): Change it to
6206 gdb_disassembler::dis_asm_read_memory.
6207 (dis_asm_memory_error): Likewise.
6208 (dis_asm_print_address): Likewise.
6209 (gdb_pretty_print_insn): Change it to
6210 gdb_disassembler::pretty_print_insn.
6211 (dump_insns): Add one argument gdb_disassemlber. All
6212 callers updated.
6213 (do_mixed_source_and_assembly_deprecated): Likewise.
6214 (do_mixed_source_and_assembly): Likewise.
6215 (do_assembly_only): Likewise.
6216 (gdb_disassembler::gdb_disassembler): New.
6217 (gdb_disassembler::print_insn): New.
6218 * disasm.h (class gdb_disassembler): New.
6219 (gdb_pretty_print_insn): Remove declaration.
6220 (gdb_disassemble_info): Likewise.
6221 * guile/scm-disasm.c (class gdbscm_disassembler): New.
6222 (gdbscm_disasm_read_memory_worker): Update.
6223 (gdbscm_disasm_read_memory): Update.
6224 (gdbscm_disasm_memory_error): Remove.
6225 (gdbscm_disasm_print_address): Remove.
6226 (gdbscm_disassembler::gdbscm_disassembler): New.
6227 (gdbscm_print_insn_from_port): Update.
6228 * mips-tdep.c: Include disasm.h.
6229 (gdb_print_insn_mips): Update code to get gdbarch.
6230 * record-btrace.c (btrace_insn_history): Update.
6231 * spu-tdep.c: Include disasm.h.
6232 (struct spu_dis_asm_data): Remove.
6233 (struct spu_dis_asm_info): New.
6234 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
6235 SPU id.
6236 (gdb_print_insn_spu): Cast disassemble_info to
6237 spu_dis_asm_info.
6238
80d75874
YQ
62392017-01-26 Yao Qi <yao.qi@linaro.org>
6240
6241 * disasm.c (do_ui_file_delete): Delete.
6242 (gdb_insn_length): Move code creating stream to ...
6243 * utils.c (null_stream): ... here. New function.
6244 * utils.h (null_stream): Declare.
6245
60685cd0
SM
62462017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6247
6248 * python/py-inferior.c (find_thread_object): Return directly
6249 from the loop. Remove "found" variable.
6250
eb1cdb62
JB
62512017-01-21 Joel Brobecker <brobecker@adacore.com>
6252
6253 GDB 7.12.1 released.
6254
b1ce6568
SM
62552017-01-20 Simon Marchi <simon.marchi@ericsson.com>
6256
6257 * python/py-function.c (fnpy_call): Reorder declarations to have
6258 the gdbpy_enter object declared first.
6259 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
6260
6f8b0407
SM
62612017-01-20 Simon Marchi <simon.marchi@ericsson.com>
6262
fec93fb1 6263 PR python/21068
6f8b0407
SM
6264 * python/python-internal.h (PyMem_RawMalloc): Define for
6265 Python < 3.4.
6266 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
6267 PyMem_RawMalloc instead of PyMem_Malloc.
6268
78cbbba8
LM
62692017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
6270 Luis Machado <lgustavo@codesourcery.com>
6271
6272 * NEWS (New commands): Mention flash-erase.
6273 (New MI commands): Mention target-flash-erase.
6274 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
6275 command.
6276 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
6277 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
6278 * target.c (flash_erase_command): New function.
6279 (initialize_targets): Add new flash-erase command.
6280 * target.h (flash_erase_command): New declaration.
6281
2132fe85
JB
62822017-01-20 Joel Brobecker <brobecker@adacore.com>
6283
6284 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
6285 HAVE_SYS_PROCFS_H is defined.
6286
d1dff226
AH
62872017-01-18 Alan Hayward <alan.hayward@arm.com>
6288
6289 * remote.c (struct cached_reg): Change data into a pointer.
6290 * (stop_reply_dtr): Free data pointers before deleting vector.
6291 (process_stop_reply): Likewise.
6292 (remote_parse_stop_reply): Allocate space for data
6293
9890e433
AH
62942017-01-18 Alan Hayward <alan.hayward@arm.com>
6295
6296 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
6297 MAX_REGISTER_SIZE.
6298 (amd64_pseudo_register_read_value): Likewise.
6299 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
6300 (store_register_using_P): Likewise.
6301 * regcache.c (regcache_xfer_part): Likewise.
6302
7a36499a
IR
63032017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
6304
6305 Split real and pseudo registers.
6306 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
6307 (sparc32_pseudo_regnum): New enum.
6308 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
6309 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
6310 (SPARC32_CP0_REGISTERS): New macro.
6311 (sparc32_pseudo_register_name): New function.
6312 (sparc32_register_name): Use sparc32_pseudo_register_name.
6313 (sparc32_pseudo_register_type): New function.
6314 (sparc32_register_type): Use sparc32_pseudo_register_type.
6315 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
6316 pseudo register numbers.
6317 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
6318 (SPARC64_CP0_REGISTERS): New macro.
6319 (sparc64_pseudo_register_name): New function.
6320 (sparc64_register_name): Use sparc64_pseudo_register_name.
6321 (sparc64_pseudo_register_type): New function.
6322 (sparc64_register_type): Use sparc64_pseudo_register_type.
6323 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
6324 pseudo register numbers.
6325 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
6326 sparc64_store_arguments): Handle pseudo register numbers.
6327
6f8976bf
YQ
63282017-01-13 Yao Qi <yao.qi@linaro.org>
6329
6330 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
6331 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
6332 output.
6333 (getpkt_or_notif_sane_1): Likewise.
6334
e4241ace
YQ
63352017-01-13 Yao Qi <yao.qi@linaro.org>
6336
6337 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
6338 of CC. Pass "-x c++-header" instead of "-x c".
6339
3015c064
SM
63402017-01-12 Simon Marchi <simon.marchi@ericsson.com>
6341
6342 * remote.c (remote_can_async_p): Update comment.
6343
fde1b17d
SM
63442017-01-12 Simon Marchi <simon.marchi@ericsson.com>
6345
6346 * linux-nat.c (linux_nat_can_async_p): Update comment.
6347
ca1ca08b
SM
63482017-01-12 Simon Marchi <simon.marchi@ericsson.com>
6349
6350 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
6351
4ad2da73
SM
63522017-01-11 Simon Marchi <simon.marchi@ericsson.com>
6353
6354 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
6355
c8b23b3f
TT
63562017-01-10 Tom Tromey <tom@tromey.com>
6357
6358 * python/py-type.c (typy_legacy_template_argument): Update.
6359 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
6360 ~demangle_parse_info): Declare new members.
6361 (cp_demangled_name_to_comp): Return unique_ptr.
6362 (cp_demangled_name_parse_free)
6363 (make_cleanup_cp_demangled_name_parse_free)
6364 (cp_new_demangle_parse_info): Remove.
6365 * cp-support.c (do_demangled_name_parse_free_cleanup)
6366 (make_cleanup_cp_demangled_name_parse_free): Remove.
6367 (inspect_type, cp_canonicalize_string_full)
6368 (cp_canonicalize_string): Update.
6369 (mangled_name_to_comp): Change return type.
6370 (cp_class_name_from_physname, method_name_from_physname)
6371 (cp_func_name, cp_remove_params): Update.
6372 * cp-name-parser.y (demangle_parse_info): New constructor, from
6373 cp_new_demangle_parse_info.
6374 (~demangle_parse_info): New destructor, from
6375 cp_demangled_name_parse_free.
6376 (cp_merge_demangle_parse_infos): Update.
6377 (cp_demangled_name_to_comp): Change return type.
6378
1ac32117
TT
63792017-01-10 Tom Tromey <tom@tromey.com>
6380
6381 * top.c (prevent_dont_repeat): Change return type.
6382 * python/python.c (execute_gdb_command): Use std::string.
6383 Update.
6384 * guile/guile.c (gdbscm_execute_gdb_command): Update.
6385 * command.h (prevent_dont_repeat): Change return type.
6386 * breakpoint.c (bpstat_do_actions_1): Update.
6387
0cf08227
TT
63882017-01-10 Tom Tromey <tom@tromey.com>
6389
6390 * value.h (scoped_value_mark::~scoped_value_mark): Call
6391 free_to_mark.
6392 (scoped_value_mark::free_to_mark): New method.
6393 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
6394 scoped_value_mark.
6395
eb115069
TT
63962017-01-10 Tom Tromey <tom@tromey.com>
6397
6398 * python/py-value.c (valpy_dereference, valpy_referenced_value)
6399 (valpy_reference_value, valpy_const_value, valpy_get_address)
6400 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6401 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
6402 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
6403 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6404 scoped_value_mark.
6405 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
6406 * value.h (scoped_value_mark): New class.
6407
906768f9
TT
64082017-01-10 Tom Tromey <tom@tromey.com>
6409
6410 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
6411 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
6412 * psymtab.c (discard_psymtabs_upto): Remove.
6413 (make_cleanup_discard_psymtabs): Remove.
6414 (struct psymtab_state): Remove.
6415
bef155c3
TT
64162017-01-10 Tom Tromey <tom@tromey.com>
6417
6418 * record-full.c (record_full_save_cleanups): Remove.
6419 (record_full_save): Use gdb::unlinker.
6420 * gcore.c (do_bfd_delete_cleanup): Remove.
6421 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
6422 cleanups.
6423 * dwarf2read.c (unlink_if_set): Remove.
6424 (write_psymtabs_to_index): Use gdb::unlinker.
6425 * common/gdb_unlinker.h: New file.
6426
192b62ce
TT
64272017-01-10 Tom Tromey <tom@tromey.com>
6428
6429 * windows-tdep.c (windows_xfer_shared_library): Update.
6430 * windows-nat.c (windows_make_so): Update.
6431 * utils.h (make_cleanup_bfd_unref): Remove.
6432 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
6433 * symfile.h (symfile_bfd_open)
6434 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
6435 * symfile.c (read_symbols, symbol_file_add)
6436 (separate_debug_file_exists): Update.
6437 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
6438 (generic_load, reread_symbols): Update.
6439 * symfile-mem.c (symbol_file_add_from_memory): Update.
6440 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
6441 (spu_symbol_file_add_from_memory): Update.
6442 * solist.h (struct target_so_ops) <bfd_open>: Return
6443 gdb_bfd_ref_ptr.
6444 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
6445 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
6446 gdb_bfd_ref_ptr.
6447 (solib_map_sections, reload_shared_libraries_1): Update.
6448 * solib-svr4.c (enable_break): Update.
6449 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
6450 * solib-frv.c (enable_break2): Update.
6451 * solib-dsbt.c (enable_break): Update.
6452 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
6453 gdb_bfd_ref_ptr.
6454 (darwin_solib_get_all_image_info_addr_at_init): Update.
6455 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
6456 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
6457 * record-full.c (record_full_save): Update.
6458 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
6459 * procfs.c (insert_dbx_link_bpt_in_file): Update.
6460 * minidebug.c (find_separate_debug_file_in_section): Return
6461 gdb_bfd_ref_ptr.
6462 * machoread.c (macho_add_oso_symfile): Change abfd to
6463 gdb_bfd_ref_ptr.
6464 (macho_symfile_read_all_oso): Update.
6465 (macho_check_dsym): Return gdb_bfd_ref_ptr.
6466 (macho_symfile_read): Update.
6467 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
6468 (jit_bfd_try_read_symtab): Update.
6469 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6470 (gdb_bfd_openw, gdb_bfd_openr_iovec)
6471 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
6472 gdb_bfd_ref_ptr.
6473 (gdb_bfd_ref_policy): New struct.
6474 (gdb_bfd_ref_ptr): New typedef.
6475 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
6476 (gdb_bfd_openw, gdb_bfd_openr_iovec)
6477 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
6478 gdb_bfd_ref_ptr.
6479 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
6480 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
6481 (gcore_command): Update.
6482 * exec.c (exec_file_attach): Update.
6483 * elfread.c (elf_symfile_read): Update.
6484 * dwarf2read.c (dwarf2_get_dwz_file): Update.
6485 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
6486 (open_and_init_dwo_file): Update.
6487 (open_dwp_file): Return gdb_bfd_ref_ptr.
6488 (open_and_init_dwp_file): Update.
6489 * corelow.c (core_open): Update.
6490 * compile/compile-object-load.c (compile_object_load): Update.
6491 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
6492 * coffread.c (coff_symfile_read): Update.
6493 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
6494 gdb_bfd_ref_ptr. Rename.
6495 (dump_bfd_file, restore_command): Update.
6496 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
6497 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
6498 (find_separate_debug_file_by_buildid): Update.
6499
50315b21
TT
65002017-01-10 Tom Tromey <tom@tromey.com>
6501
6502 * common/gdb_ref_ptr.h: New file.
6503 * python/py-ref.h (struct gdbpy_ref_policy): New.
6504 (gdbpy_ref): Now a typedef.
6505
fc4007c9
TT
65062017-01-10 Tom Tromey <tom@tromey.com>
6507
6508 * utils.h (make_cleanup_htab_delete): Don't declare.
6509 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
6510 Remove.
6511 * linespec.c (decode_compound_collector): Add constructor,
6512 destructor.
6513 (lookup_prefix_sym): Remove cleanup.
6514 (symtab_collector): Add constructor, destructor.
6515 (collect_symtabs_from_filename): Remove cleanup.
6516 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
6517 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
6518 Use htab_up.
6519 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
6520 * dwarf2read.c (dw2_expand_symtabs_matching)
6521 (dw2_map_symbol_filenames, dwarf_decode_macros)
6522 (write_psymtabs_to_index): Use htab_up.
6523 * dwarf2loc.c (func_verify_no_selftailcall)
6524 (call_site_find_chain_1, func_verify_no_selftailcall)
6525 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
6526 std::vector, gdb::unique_xmalloc_ptr.
6527 (call_sitep): Remove typedef.
6528 (dwarf2_locexpr_baton_eval): Remove unused variable.
6529
8dbcee67
TT
65302017-01-10 Tom Tromey <tom@tromey.com>
6531
6532 * python/python-internal.h (make_cleanup_py_decref)
6533 (make_cleanup_py_xdecref): Don't declare.
6534 * python/py-utils.c (py_decref, make_cleanup_py_decref)
6535 (py_xdecref, make_cleanup_py_xdecref): Remove.
6536
13df46cc
TT
65372017-01-10 Tom Tromey <tom@tromey.com>
6538
6539 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
6540 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
6541
06fc9bf7
TT
65422017-01-10 Tom Tromey <tom@tromey.com>
6543
6544 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
6545
830a4934
TT
65462017-01-10 Tom Tromey <tom@tromey.com>
6547
6548 * python/py-utils.c (unicode_to_encoded_string)
6549 (python_string_to_target_string)
6550 (python_string_to_target_python_string)
6551 (python_string_to_host_string, gdbpy_obj_to_string)
6552 (get_addr_from_python): Use gdbpy_ref.
6553
4586d543
TT
65542017-01-10 Tom Tromey <tom@tromey.com>
6555
6556 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
6557 gdbpy_ref.
6558
59876f8f
TT
65592017-01-10 Tom Tromey <tom@tromey.com>
6560
6561 * python/python.c (eval_python_command, gdbpy_decode_line)
6562 (gdbpy_run_events, gdbpy_start_type_printers)
6563 (gdbpy_apply_type_printers): Use gdbpy_ref.
6564
97d83487
TT
65652017-01-10 Tom Tromey <tom@tromey.com>
6566
6567 * python/py-param.c (get_doc_string, compute_enum_values): Use
6568 gdbpy_ref.
6569
9205649a
TT
65702017-01-10 Tom Tromey <tom@tromey.com>
6571
6572 * python/py-inferior.c (find_thread_object, build_inferior_list):
6573 Use gdbpy_ref.
6574
74c49d45
TT
65752017-01-10 Tom Tromey <tom@tromey.com>
6576
6577 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
6578
16361ffb
TT
65792017-01-10 Tom Tromey <tom@tromey.com>
6580
6581 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
6582 gdbpy_ref.
6583
905f2cca
TT
65842017-01-10 Tom Tromey <tom@tromey.com>
6585
6586 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
6587 extra incref.
6588 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
6589 Use gdbpy_ref.
6590
64081434
TT
65912017-01-10 Tom Tromey <tom@tromey.com>
6592
6593 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
6594 gdbpy_ref.
6595
59e9e831
TT
65962017-01-10 Tom Tromey <tom@tromey.com>
6597
6598 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
6599 decref results of PyArg_ParseTupleAndKeywords.
6600
9de10f6d
TT
66012017-01-10 Tom Tromey <tom@tromey.com>
6602
6603 * python/python.c (python_run_simple_file): Use
6604 unique_xmalloc_ptr, gdbpy_ref.
6605
2bd5759d
TT
66062017-01-10 Tom Tromey <tom@tromey.com>
6607
6608 * python/py-prettyprint.c (print_stack_unless_memory_error)
6609 (print_string_repr, print_children): Use gdbpy_ref.
6610 (dummy_python_frame): New class.
6611 (dummy_python_frame::dummy_python_frame): Rename from
6612 push_dummy_python_frame.
6613 (py_restore_tstate): Remove.
6614
3b4e0e01
TT
66152017-01-10 Tom Tromey <tom@tromey.com>
6616
6617 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
6618
17a22718
TT
66192017-01-10 Tom Tromey <tom@tromey.com>
6620
6621 * python/python.c (ensure_python_env, restore_python_env):
6622 Remove.
6623 * python/python-internal.h (ensure_python_env): Don't declare.
6624 * varobj.h (varobj_ensure_python_env): Don't declare.
6625 * varobj.c (varobj_ensure_python_env): Remove.
6626
68cdc557
TT
66272017-01-10 Tom Tromey <tom@tromey.com>
6628
6629 * varobj.c (varobj_value_get_print_value): Use
6630 gdbpy_enter_varobj.
6631
1eba6383
TT
66322017-01-10 Tom Tromey <tom@tromey.com>
6633
6634 * python/py-prettyprint.c (print_string_repr, print_children):
6635 Update.
6636 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
6637 of "encoding".
6638 * varobj.c (varobj_value_get_print_value): Update.
6639 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
6640
bde7b3e3
TT
66412017-01-10 Tom Tromey <tom@tromey.com>
6642
6643 * varobj.c (varobj_get_display_hint)
6644 (dynamic_varobj_has_child_method, install_new_value_visualizer)
6645 (varobj_set_visualizer, free_variable): Use
6646 gdbpy_enter_varobj.
6647
a7785f8c
TT
66482017-01-10 Tom Tromey <tom@tromey.com>
6649
6650 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
6651 (do_finish_initialization): New function. Use gdbpy_ref.
6652 (gdbpy_finish_initialization): Use gdbpy_enter. Call
6653 do_finish_initialization.
6654
2865bfce
TT
66552017-01-10 Tom Tromey <tom@tromey.com>
6656
6657 * python/py-param.c (get_set_value, get_show_value): Use
6658 gdbpy_enter, gdbpy_ref.
6659
0e9dcc75
TT
66602017-01-10 Tom Tromey <tom@tromey.com>
6661
6662 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
6663
12a5cedd
TT
66642017-01-10 Tom Tromey <tom@tromey.com>
6665
6666 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
6667
788f2586
TT
66682017-01-10 Tom Tromey <tom@tromey.com>
6669
6670 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
6671 Use gdbpy_enter_varobj.
6672
6cd67bea
TT
66732017-01-10 Tom Tromey <tom@tromey.com>
6674
6675 * varobj.c (gdbpy_enter_varobj): New constructor.
6676 * python/python-internal.h (gdbpy_enter_varobj): New class.
6677 * python/py-varobj.c (py_varobj_get_iterator): Use
6678 gdbpy_enter_varobj.
6679
14b122bf
TT
66802017-01-10 Tom Tromey <tom@tromey.com>
6681
6682 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
6683 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
6684 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
6685 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
6686 unique_xmalloc_ptr.
6687 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
6688
bf1ca3b9
TT
66892017-01-10 Tom Tromey <tom@tromey.com>
6690
6691 * python/py-xmethods.c (invoke_match_method): Use
6692 gdbpy_ref.
6693
572a5524
TT
66942017-01-10 Tom Tromey <tom@tromey.com>
6695
6696 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
6697 gdbpy_enter, gdbpy_ref.
6698
396a78b6
TT
66992017-01-10 Tom Tromey <tom@tromey.com>
6700
6701 * python/python.c (python_interactive_command): Use gdbpy_enter.
6702
a88b13c7
TT
67032017-01-10 Tom Tromey <tom@tromey.com>
6704
6705 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
6706 gdbpy_ref.
6707
e9f0c363
TT
67082017-01-10 Tom Tromey <tom@tromey.com>
6709
6710 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
6711 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
6712
6349f452
TT
67132017-01-10 Tom Tromey <tom@tromey.com>
6714
6715 * utils.h (htab_deleter): New struct.
6716 (htab_up): New typedef.
6717 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
6718 gdbpy_enter, gdbpy_ref, htab_up.
6719
c0171de6
TT
67202017-01-10 Tom Tromey <tom@tromey.com>
6721
6722 * python/py-unwind.c (pending_frame_invalidate): Remove.
6723 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
6724
f18e226f
TT
67252017-01-10 Tom Tromey <tom@tromey.com>
6726
6727 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
6728 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
6729
c57af3f1
TT
67302017-01-10 Tom Tromey <tom@tromey.com>
6731
6732 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
6733
60e600ec
TT
67342017-01-10 Tom Tromey <tom@tromey.com>
6735
6736 * python/python.c (gdbpy_eval_from_control_command)
6737 (gdbpy_source_script, gdbpy_run_events)
6738 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
6739 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
6740 gdbpy_enter.
6741
bf7da5b0
TT
67422017-01-10 Tom Tromey <tom@tromey.com>
6743
6744 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
6745
2d38bced
TT
67462017-01-10 Tom Tromey <tom@tromey.com>
6747
6748 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
6749
07bc7329
TT
67502017-01-10 Tom Tromey <tom@tromey.com>
6751
6752 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
6753 (python_on_inferior_call_pre, python_on_inferior_call_post)
6754 (python_on_memory_change, python_on_register_change)
6755 (python_inferior_exit, python_new_objfile, add_thread_object)
6756 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
6757
6e7c365e
TT
67582017-01-10 Tom Tromey <tom@tromey.com>
6759
6760 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
6761 (bpfinishpy_handle_exit): Use gdbpy_enter.
6762
6ba0cd40
TT
67632017-01-10 Tom Tromey <tom@tromey.com>
6764
6765 * python/py-cmd.c (cmdpy_destroyer)
6766 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
6767 gdbpy_enter.
6768
de2dc875
TT
67692017-01-10 Tom Tromey <tom@tromey.com>
6770
6771 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
6772 gdbpy_enter.
6773 (gdbpy_breakpoint_has_cond): Likewise.
6774
4ecee2c4
TT
67752017-01-10 Tom Tromey <tom@tromey.com>
6776
6777 * python/python.c (gdbpy_enter): New constructor.
6778 (~gdbpy_enter): New destructor.
6779 (restore_python_env, ensure_python_env): Rewrite.
6780 * python/python-internal.h (gdbpy_enter): New class.
6781
37fce74f
TT
67822017-01-10 Tom Tromey <tom@tromey.com>
6783
6784 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
6785
53a0cca3
TT
67862017-01-10 Tom Tromey <tom@tromey.com>
6787
6788 * python/py-value.c (value_has_field, get_field_flag)
6789 (get_field_type, valpy_getitem, convert_value_from_python): Use
6790 gdbpy_ref.
6791
ff3724f5
TT
67922017-01-10 Tom Tromey <tom@tromey.com>
6793
6794 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
6795 gdbpy_ref.
6796
0700aea5
TT
67972017-01-10 Tom Tromey <tom@tromey.com>
6798
6799 * python/py-prettyprint.c (search_pp_list)
6800 (find_pretty_printer_from_objfiles)
6801 (find_pretty_printer_from_progspace)
6802 (find_pretty_printer_from_gdb, find_pretty_printer)
6803 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
6804 gdbpy_ref.
6805
1bb44c9f
TT
68062017-01-10 Tom Tromey <tom@tromey.com>
6807
6808 * python/py-param.c (call_doc_function): Use gdbpy_ref.
6809
87ce03fd
TT
68102017-01-10 Tom Tromey <tom@tromey.com>
6811
6812 * python/py-linetable.c (build_line_table_tuple_from_pcs)
6813 (ltpy_get_all_source_lines): Use gdbpy_ref.
6814
ee0a3fb8
TT
68152017-01-10 Tom Tromey <tom@tromey.com>
6816
6817 * python/py-framefilter.c (extract_sym, extract_value)
6818 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
6819 gdbpy_ref.
6820
bf2a52fa
TT
68212017-01-10 Tom Tromey <tom@tromey.com>
6822
6823 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
6824
f59fe7f8
TT
68252017-01-10 Tom Tromey <tom@tromey.com>
6826
6827 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
6828
80bd970a
TT
68292017-01-10 Tom Tromey <tom@tromey.com>
6830
6831 * python/py-function.c (convert_values_to_python, fnpy_init): Use
6832 gdbpy_ref.
6833
d1b3de2e
TT
68342017-01-10 Tom Tromey <tom@tromey.com>
6835
6836 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
6837
3bb43384
TT
68382017-01-10 Tom Tromey <tom@tromey.com>
6839
6840 * python/py-type.c (convert_field, make_fielditem, typy_fields)
6841 (typy_range): Use gdbpy_ref.
6842
abf5651e
TT
68432017-01-10 Tom Tromey <tom@tromey.com>
6844
6845 * python/py-threadevent.c (create_thread_event_object): Use
6846 gdbpy_ref.
6847 * python/py-stopevent.c (create_stop_event_object): Simplify.
6848 (emit_stop_event): Use gdbpy_ref.
6849 * python/py-signalevent.c (create_signal_event_object): Use
6850 gdbpy_ref.
6851 * python/py-newobjfileevent.c (create_new_objfile_event_object)
6852 (emit_new_objfile_event, create_clear_objfiles_event_object)
6853 (emit_clear_objfiles_event): Use gdbpy_ref.
6854 * python/py-infevents.c (create_inferior_call_event_object)
6855 (create_register_changed_event_object)
6856 (create_memory_changed_event_object, emit_inferior_call_event)
6857 (emit_memory_changed_event, emit_register_changed_event): Use
6858 gdbpy_ref.
6859 * python/py-exitedevent.c (create_exited_event_object)
6860 (emit_exited_event): Use gdbpy_ref.
6861 * python/py-event.h (evpy_emit_event): Remove
6862 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
6863 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
6864 * python/py-continueevent.c (emit_continue_event): Use
6865 gdbpy_ref.
6866 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6867 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6868 gdbpy_ref.
6869 * python/py-bpevent.c (create_breakpoint_event_object): Use
6870 gdbpy_ref.
6871
a68ff33e
TT
68722017-01-10 Tom Tromey <tom@tromey.com>
6873
6874 * python/py-ref.h: New file.
6875
7becfd03
SM
68762017-01-10 Simon Marchi <simon.marchi@ericsson.com>
6877
6878 * cli-out.c (cli_ui_out::do_redirect): Change return type to
6879 void.
6880 * cli-out.h (cli_ui_out::do_redirect): Likewise.
6881 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
6882 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
6883 * ui-out.c (ui_out::redirect): Likewise.
6884 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
6885 * cli/cli-logging.c (set_logging_redirect): Update call site of
6886 ui_out::redirect.
6887 (handle_redirections): Likewise.
6888 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
6889 * top.c (execute_command_to_string): Likewise.
6890 * utils.c (do_ui_out_redirect_pop): Likewise.
6891
df294654
SM
68922017-01-10 Simon Marchi <simon.marchi@ericsson.com>
6893
6894 * stack.c (_initialize_stack): Update "frame" command help message.
6895
f5e6296e
IB
68962017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
6897
6898 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
6899
0e2d6fa6
YQ
69002017-01-06 Yao Qi <yao.qi@linaro.org>
6901
6902 * x86-linux-nat.h: Include gdb_proc_service.h.
6903
44d6d3f9
YQ
69042017-01-06 Yao Qi <yao.qi@linaro.org>
6905
6906 * ser-base.h: Include serial.h.
6907
656731fe
YQ
69082017-01-06 Yao Qi <yao.qi@linaro.org>
6909
6910 * ppc-linux-tdep.h: Include ppc-tdep.h.
6911
1ca8f924
YQ
69122017-01-06 Yao Qi <yao.qi@linaro.org>
6913
6914 * nat/amd64-linux-siginfo.h: Include signal.h.
6915
bc3008c4
YQ
69162017-01-06 Yao Qi <yao.qi@linaro.org>
6917
6918 * nat/aarch64-linux-hw-point.h: Include break-common.h.
6919
66c80d03
YQ
69202017-01-06 Yao Qi <yao.qi@linaro.org>
6921
6922 * mi/mi-parse.h: Include mi-cmds.h.
6923
051d2dda
YQ
69242017-01-06 Yao Qi <yao.qi@linaro.org>
6925
6926 * inf-loop.c: Don't include "target.h".
6927 * inf-loop.h: Include it here.
6928
8018d34f
YQ
69292017-01-06 Yao Qi <yao.qi@linaro.org>
6930
6931 * dfp.h: Include "dboulest.h" and "expression.h".
6932
c0b8369c
YQ
69332017-01-06 Yao Qi <yao.qi@linaro.org>
6934
6935 * ax-gdb.h: Include "ax.h".
6936
ad5cba2a
YQ
69372017-01-06 Yao Qi <yao.qi@linaro.org>
6938
6939 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
6940 with nat/gdb_ptrace.h.
6941
1c33cd7f
YQ
69422017-01-05 Yao Qi <yao.qi@linaro.org>
6943
6944 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
6945 new line.
6946 (mips64_fbsd_sigframe_init): Likewise.
6947
c988ac1d
JB
69482017-01-04 John Baldwin <jhb@FreeBSD.org>
6949
6950 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
6951 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
6952
b268007c
JB
69532017-01-04 John Baldwin <jhb@FreeBSD.org>
6954
6955 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6956 * NEWS: Mention new FreeBSD/mips native configuration.
6957 * config/mips/fbsd.mh: New file.
6958 * configure.host: Add mips*-*-freebsd*.
6959 * mips-fbsd-nat.c: New file.
6960
387360da
JB
69612017-01-04 John Baldwin <jhb@FreeBSD.org>
6962
6963 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
6964 (ALLDEPFILES): Add mips-fbsd-tdep.c.
6965 * NEWS: Mention new FreeBSD/mips target.
6966 * configure.tgt: Add mips*-*-freebsd*.
6967 * mips-fbsd-tdep.c: New file.
6968 * mips-fbsd-tdep.h: New file.
6969
2aaaf250
YQ
69702017-01-04 Yao Qi <yao.qi@linaro.org>
6971
6972 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
6973 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
6974
61baf725
JB
69752017-01-01 Joel Brobecker <brobecker@adacore.com>
6976
6dbb839a 6977 Update copyright year range in all GDB files.
61baf725 6978
c113e7ff 69792017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 6980
c113e7ff 6981 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 6982
c113e7ff 6983For older changes see ChangeLog-2016.
c906108c
SS
6984\f
6985Local Variables:
6986mode: change-log
6987left-margin: 8
6988fill-column: 74
6989version-control: never
57da7796 6990coding: utf-8
c906108c 6991End:
This page took 2.486285 seconds and 4 git commands to generate.