Use scoped_restore for ui_file
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-10-21 Tom Tromey <tom@tromey.com>
2
3 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
4 (struct restore_ui_file_closure): Remove.
5 * utils.h (make_cleanup_restore_ui_file): Don't declare.
6 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7 scoped_restore.
8 * top.c (execute_command_to_string): Use scoped_restore.
9
10 2016-10-21 Tom Tromey <tom@tromey.com>
11
12 * common/scoped_restore.h: New file.
13 * utils.h: Include scoped_restore.h.
14 * top.c (execute_command_to_string): Use scoped_restore.
15 * python/python.c (python_interactive_command): Use
16 scoped_restore.
17 (python_command, execute_gdb_command): Likewise.
18 * printcmd.c (do_one_display): Use scoped_restore.
19 * mi/mi-main.c (exec_continue): Use scoped_restore.
20 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
21 * linux-fork.c (checkpoint_command): Use scoped_restore.
22 * infrun.c (restore_execution_direction): Remove.
23 (fetch_inferior_event): Use scoped_restore.
24 * compile/compile.c (compile_file_command): Use
25 scoped_restore.
26 (compile_code_command, compile_print_command): Likewise.
27 * cli/cli-script.c (execute_user_command): Use
28 scoped_restore.
29 (while_command, if_command, script_from_file): Likewise.
30 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
31 scoped_restore.
32
33 2016-10-21 Tom Tromey <tom@tromey.com>
34
35 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
36
37 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
38 Ulrich Weigand <uweigand@de.ibm.com>
39
40 * xcoffread.c (read_xcoff_symtab): Make name of current file as
41 pst->filename instead of _start_ in AIX.
42
43 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
44
45 * solist.h (struct target_so_ops): Delete special_symbol_handling
46 hook.
47 * solib.c (solib_add, reload_shared_libraries): Adjust.
48 * solib-aix.c (solib_aix_special_symbol_handling): Delete
49 (_initialize_solib_aix): Adjust
50 * solib-darwin.c (darwin_special_symbol_handling): Delete
51 (_initialize_darwin_solib): Adjust
52 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
53 (_initialize_dsbt_solib): Adjust
54 * solib-frv.c (frv_special_symbol_handling): Delete
55 (_initialize_frv_solib): Adjust
56 * solib-svr4.c (svr4_special_symbol_handling): Delete
57 (_initialize_svr4_solib): Adjust
58 * solib-target.c (solib_target_special_symbol_handling): Delete
59 (_initialize_solib_target): Adjust
60
61 2016-10-20 Yao Qi <yao.qi@linaro.org>
62
63 * configure.tgt: Don't configure if target is *-*-vxworks*.
64
65 2016-10-19 Pedro Alves <palves@redhat.com>
66
67 * config.in: Regenerate.
68
69 2016-10-18 Pedro Alves <palves@redhat.com>
70
71 * common/common-defs.h (__STDC_CONSTANT_MACROS)
72 (__STDC_LIMIT_MACROS): Delete.
73
74 2016-10-18 Pedro Alves <palves@redhat.com>
75
76 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
77 2692e23a48e21f6daa029e8af9f1a143b7532f47.
78 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
79 Regenerate.
80 * gnulib/import/Makefile: Update.
81 * gnulib/import/alloca: Update.
82 * gnulib/import/basename-lgpl: Update.
83 * gnulib/import/canonicalize-lgpl: Update.
84 * gnulib/import/config: Update.
85 * gnulib/import/dirent: Update.
86 * gnulib/import/dirfd: Update.
87 * gnulib/import/dirname-lgpl: Update.
88 * gnulib/import/dirname.h: Update.
89 * gnulib/import/dosname.h: Update.
90 * gnulib/import/errno: Update.
91 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
92 * gnulib/import/extra/snippet/c++defs.h: Update.
93 * gnulib/import/extra/snippet/warn-on-use.h: Update.
94 * gnulib/import/extra/update-copyright: Update.
95 * gnulib/import/flexmember.h: Update.
96 * gnulib/import/float+.h: Update.
97 * gnulib/import/float: Update.
98 * gnulib/import/float: Update.
99 * gnulib/import/fnmatch: Update.
100 * gnulib/import/fnmatch: Update.
101 * gnulib/import/fnmatch_loop: Update.
102 * gnulib/import/fpucw.h: Update.
103 * gnulib/import/frexp: Update.
104 * gnulib/import/frexpl: Update.
105 * gnulib/import/gettimeofday: Update.
106 * gnulib/import/hard-locale: Update.
107 * gnulib/import/hard-locale.h: Update.
108 * gnulib/import/inttypes: Update.
109 * gnulib/import/isnan: Update.
110 * gnulib/import/isnand-nolibm.h: Update.
111 * gnulib/import/isnand: Update.
112 * gnulib/import/isnanl-nolibm.h: Update.
113 * gnulib/import/isnanl: Update.
114 * gnulib/import/itold: Update.
115 * gnulib/import/limits: Update.
116 * gnulib/import/localcharset: Update.
117 * gnulib/import/localcharset.h: Update.
118 * gnulib/import/lstat: Update.
119 * gnulib/import/m4/00gnulib: Update.
120 * gnulib/import/m4/absolute-header: Update.
121 * gnulib/import/m4/alloca: Update.
122 * gnulib/import/m4/canonicalize: Update.
123 * gnulib/import/m4/codeset: Update.
124 * gnulib/import/m4/configmake: Update.
125 * gnulib/import/m4/dirent_h: Update.
126 * gnulib/import/m4/dirfd: Update.
127 * gnulib/import/m4/dirname: Update.
128 * gnulib/import/m4/double-slash-root: Update.
129 * gnulib/import/m4/eealloc: Update.
130 * gnulib/import/m4/errno_h: Update.
131 * gnulib/import/m4/exponentd: Update.
132 * gnulib/import/m4/exponentl: Update.
133 * gnulib/import/m4/extensions: Update.
134 * gnulib/import/m4/extern-inline: Update.
135 * gnulib/import/m4/fcntl-o: Update.
136 * gnulib/import/m4/flexmember: Update.
137 * gnulib/import/m4/float_h: Update.
138 * gnulib/import/m4/fnmatch: Update.
139 * gnulib/import/m4/fpieee: Update.
140 * gnulib/import/m4/frexp: Update.
141 * gnulib/import/m4/frexpl: Update.
142 * gnulib/import/m4/gettimeofday: Update.
143 * gnulib/import/m4/glibc21: Update.
144 * gnulib/import/m4/gnulib-cache: Update.
145 * gnulib/import/m4/gnulib-common: Update.
146 * gnulib/import/m4/gnulib-comp: Update.
147 * gnulib/import/m4/gnulib-tool: Update.
148 * gnulib/import/m4/hard-locale: Update.
149 * gnulib/import/m4/include_next: Update.
150 * gnulib/import/m4/inttypes-pri: Update.
151 * gnulib/import/m4/inttypes: Update.
152 * gnulib/import/m4/isnand: Update.
153 * gnulib/import/m4/isnanl: Update.
154 * gnulib/import/m4/largefile: Update.
155 * gnulib/import/m4/limits-h: Update.
156 * gnulib/import/m4/localcharset: Update.
157 * gnulib/import/m4/locale-fr: Update.
158 * gnulib/import/m4/locale-ja: Update.
159 * gnulib/import/m4/locale-zh: Update.
160 * gnulib/import/m4/longlong: Update.
161 * gnulib/import/m4/lstat: Update.
162 * gnulib/import/m4/malloc: Update.
163 * gnulib/import/m4/malloca: Update.
164 * gnulib/import/m4/math_h: Update.
165 * gnulib/import/m4/mbrtowc: Update.
166 * gnulib/import/m4/mbsinit: Update.
167 * gnulib/import/m4/mbsrtowcs: Update.
168 * gnulib/import/m4/mbstate_t: Update.
169 * gnulib/import/m4/memchr: Update.
170 * gnulib/import/m4/memmem: Update.
171 * gnulib/import/m4/mmap-anon: Update.
172 * gnulib/import/m4/multiarch: Update.
173 * gnulib/import/m4/nocrash: Update.
174 * gnulib/import/m4/off_t: Update.
175 * gnulib/import/m4/pathmax: Update.
176 * gnulib/import/m4/rawmemchr: Update.
177 * gnulib/import/m4/readlink: Update.
178 * gnulib/import/m4/rename: Update.
179 * gnulib/import/m4/rmdir: Update.
180 * gnulib/import/m4/signal_h: Update.
181 * gnulib/import/m4/ssize_t: Update.
182 * gnulib/import/m4/stat: Update.
183 * gnulib/import/m4/stdbool: Update.
184 * gnulib/import/m4/stddef_h: Update.
185 * gnulib/import/m4/stdint: Update.
186 * gnulib/import/m4/stdio_h: Update.
187 * gnulib/import/m4/stdlib_h: Update.
188 * gnulib/import/m4/strchrnul: Update.
189 * gnulib/import/m4/string_h: Update.
190 * gnulib/import/m4/strstr: Update.
191 * gnulib/import/m4/strtok_r: Update.
192 * gnulib/import/m4/sys_socket_h: Update.
193 * gnulib/import/m4/sys_stat_h: Update.
194 * gnulib/import/m4/sys_time_h: Update.
195 * gnulib/import/m4/sys_types_h: Update.
196 * gnulib/import/m4/time_h: Update.
197 * gnulib/import/m4/unistd_h: Update.
198 * gnulib/import/m4/warn-on-use: Update.
199 * gnulib/import/m4/wchar_h: Update.
200 * gnulib/import/m4/wchar_t: Update.
201 * gnulib/import/m4/wctype_h: Update.
202 * gnulib/import/m4/wint_t: Update.
203 * gnulib/import/malloc: Update.
204 * gnulib/import/malloca: Update.
205 * gnulib/import/malloca.h: Update.
206 * gnulib/import/math: Update.
207 * gnulib/import/math: Update.
208 * gnulib/import/mbrtowc: Update.
209 * gnulib/import/mbsinit: Update.
210 * gnulib/import/mbsrtowcs-impl.h: Update.
211 * gnulib/import/mbsrtowcs-state: Update.
212 * gnulib/import/mbsrtowcs: Update.
213 * gnulib/import/memchr: Update.
214 * gnulib/import/memmem: Update.
215 * gnulib/import/pathmax.h: Update.
216 * gnulib/import/rawmemchr: Update.
217 * gnulib/import/readlink: Update.
218 * gnulib/import/ref-add.sin: Update.
219 * gnulib/import/ref-del.sin: Update.
220 * gnulib/import/rename: Update.
221 * gnulib/import/rmdir: Update.
222 * gnulib/import/same-inode.h: Update.
223 * gnulib/import/signal: Update.
224 * gnulib/import/stat: Update.
225 * gnulib/import/stdbool: Update.
226 * gnulib/import/stddef: Update.
227 * gnulib/import/stdint: Update.
228 * gnulib/import/stdio: Update.
229 * gnulib/import/stdlib: Update.
230 * gnulib/import/str-two-way.h: Update.
231 * gnulib/import/strchrnul: Update.
232 * gnulib/import/streq.h: Update.
233 * gnulib/import/string: Update.
234 * gnulib/import/stripslash: Update.
235 * gnulib/import/strnlen1: Update.
236 * gnulib/import/strnlen1.h: Update.
237 * gnulib/import/strstr: Update.
238 * gnulib/import/strtok_r: Update.
239 * gnulib/import/sys_stat: Update.
240 * gnulib/import/sys_time: Update.
241 * gnulib/import/sys_types: Update.
242 * gnulib/import/time: Update.
243 * gnulib/import/unistd: Update.
244 * gnulib/import/unistd: Update.
245 * gnulib/import/verify.h: Update.
246 * gnulib/import/wchar: Update.
247 * gnulib/import/wctype: Update.
248 * gnulib/import/flexmember.h: New file.
249 * gnulib/import/hard-locale.c: New file.
250 * gnulib/import/hard-locale.h: New file.
251 * gnulib/import/limits.in.h: New file.
252 * gnulib/import/m4/flexmember.m4: New file.
253 * gnulib/import/m4/hard-locale.m4: New file.
254 * gnulib/import/m4/limits-h.m4: New file.
255
256 2016-10-18 Pedro Alves <palves@redhat.com>
257
258 * common/common-defs.h: Include "gdb_unique_ptr.h".
259 * common/gdb_unique_ptr.h: New.
260
261 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
262
263 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
264 is `bfd_arch_i386' before proceeding.
265 (i386_mpx_set_bounds): Likewise.
266
267 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
268
269 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
270 type for `operands'.
271
272 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
273
274 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
275 before using it.
276
277 2016-10-17 Pedro Alves <palves@redhat.com>
278
279 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
280 'int' as type.
281
282 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
283 Ulrich Weigand <uweigand@de.ibm.com>
284
285 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
286 path is set properly if program has a dependency on .a archive and
287 sysroot is set via set sysroot command.
288
289 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
290
291 * nat/linux-btrace.c: Remove leftover comment.
292
293 2016-10-14 Eli Zaretskii <eliz@gnu.org>
294
295 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
296 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
297
298 2016-10-13 Pedro Alves <palves@redhat.com>
299
300 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
301 (false, true): Remove checks.
302
303 2016-10-12 Tom Tromey <tom@tromey.com>
304
305 * machoread.c (macho_symfile_read_all_oso): Use std::string.
306
307 2016-10-12 Tom Tromey <tom@tromey.com>
308
309 * tracepoint.c (trace_dump_command): Remove unnecessary
310 null_cleanup.
311
312 2016-10-12 Tom Tromey <tom@tromey.com>
313
314 * valprint.c (generic_emit_char, count_next_character)
315 (generic_printstr): Update.
316 * charset.c (struct wchar_iterator): Move to charset.h.
317 (wchar_iterator::wchar_iterator): Rename from
318 make_wchar_iterator, turn into a constructor.
319 (wchar_iterator::~wchar_iterator): Rename from
320 do_cleanup_iterator, turn into a destructor.
321 (make_cleanup_wchar_iterator): Remove.
322 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
323 "iter" argument. Update.
324 * charset.h: Include <vector>.
325 (class wchar_iterator): New class, from old struct
326 wchar_iterator.
327 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
328 declare.
329
330 2016-10-12 Tom Tromey <tom@tromey.com>
331
332 * selftest.c: Include <vector>, not "vec.h".
333 (self_test_function_ptr): Remove.
334 (tests): Now a std::vector.
335 (register_self_test, run_self_tests): Update.
336
337 2016-10-13 Pedro Alves <palves@redhat.com>
338 Tom Tromey <tom@tromey.com>
339
340 * tid-parse.h (tid_range_parser): New class.
341 (enum tid_range_state): Move into tid_range_parser's scope.
342 Remove TID_RANGE_ prefix from all values.
343 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
344 (tid_range_parser_star_range, tid_range_parser_finished)
345 (tid_range_parser_skip, tid_range_parser_qualified): Don't
346 declare.
347 (tid_is_in_list): Update comment.
348 * tid-parse.c (tid_range_parser::tid_range_parser): New.
349 (init, finished, get_string, skip, tid_is_qualified)
350 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
351 turn into methods.
352 (tid_is_in_list): Adjust.
353 * cli/cli-utils.h (number_or_range_parser): New class.
354 (init_number_or_range, get_number_or_range)
355 (number_range_setup_range): Don't declare.
356 * cli/cli-utils.c
357 (number_or_range_parser::number_or_range_parser): New.
358 (init_number_or_range, get_number_or_range)
359 (number_range_setup_range): Rename; turn into methods.
360 (number_is_in_list): Adjust.
361 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
362 (trace_pass_command, get_tracepoint_by_number): Adjust.
363 * breakpoint.h (get_tracepoint_by_number): Adjust.
364 * inferior.c (detach_inferior_command, kill_inferior_command)
365 (remove_inferior_command): Adjust.
366 * linespec.c (decode_line_2): Adjust.
367 * memattr.c (mem_enable_command, mem_disable_command)
368 (mem_delete_command): Adjust.
369 * printcmd.c (map_display_numbers): Adjust.
370 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
371 * thread.c (thread_apply_command): Adjust.
372
373 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
374
375 * arc-newlib-tdep.c: New file.
376 * configure.tgt: Add newlib support for ARC.
377
378 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
379
380 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
381 * arc-tdep.c (arc_get_longjmp_target): New function.
382 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
383 (arc_dump_tdep): Print jb_pc.
384
385 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
386
387 * arc-tdep.h (struct gdbarch_tdep): New.
388 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
389
390 2016-10-12 Yao Qi <yao.qi@linaro.org>
391
392 PR tdep/20682
393 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
394 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
395 Assert that operand 0 and 1 can be X or D registers. Update
396 register number for D registers. Update registers in frame
397 cache.
398 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
399
400 2016-10-10 Yao Qi <yao.qi@linaro.org>
401
402 * arch/arm.h (enum arm_breakpoint_kinds): New.
403 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
404 ARM_BP_KIND_THUMB2.
405
406 2016-10-10 Yao Qi <yao.qi@linaro.org>
407
408 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
409 'gdbarch'.
410
411 2016-10-10 Yao Qi <yao.qi@linaro.org>
412
413 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
414 breakpoint instruction.
415 (v850_dbtrap_breakpoint_from_pc): Remove.
416 (v850_gdbarch_init): Update.
417
418 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * ui-out.c (push_level): Remove "id" parameter.
421 (ui_out_begin): Update call.
422
423 2016-10-07 Joel Brobecker <brobecker@adacore.com>
424
425 GDB 7.12 released.
426
427 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
428
429 * python/python.c (gdbpy_decode_line): Call
430 string_to_event_location_basic instead of new_linespec_location.
431
432 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
433
434 * target.c (target_supports_multi_process): New function, moved
435 from...
436 * target.h (target_supports_multi_process): ... here. Remove
437 macro.
438 * target/target.h (target_supports_multi_process): New prototype.
439
440 2016-10-06 Pedro Alves <palves@redhat.com>
441
442 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
443 EXPORTED_CONST.
444 * stub-termcap.c: Remove __cplusplus checks.
445 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
446 EXTERN_C_POP): Delete.
447 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
448 (GDB_XCPT) [!__cplusplus]: Delete.
449 (throw_exception, throw_exception_sjlj): Update comments.
450 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
451 * guile/guile.c (extension_language_guile): Write "extern const"
452 instead of EXPORTED_CONST.
453 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
454 "extern const" instead of EXPORTED_CONST.
455
456 2016-10-06 Doug Evans <dje@google.com>
457
458 * python/py-value.c (valpy_long): Handle unsigned values.
459
460 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
461
462 * frame.h: Forward-declare struct ui_out.
463
464 2016-10-06 Tom Tromey <tom@tromey.com>
465
466 * MAINTAINERS: Remove Java test maintainer.
467 * varobj.h (java_varobj_ops): Don't declare.
468 * valprint.h (struct value_print_options)
469 <pascal_static_field_print>: Update comment.
470 * utils.c (producer_is_gcc): Remove java reference.
471 * symtab.h (struct general_symbol_info): Remove java references.
472 (SYMBOL_SEARCH_NAME): Likewise.
473 * objfiles.c (allocate_objfile): Update comment.
474 * linespec.c (find_linespec_symbols): Remove java references.
475 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
476 java references.
477 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
478 (TYPE_CPLUS_REALLY_JAVA): Remove.
479 * c-varobj.c (enum vsections): Update comment.
480 * symtab.c (symbol_set_language, symbol_set_names)
481 (symbol_natural_name, symbol_demangled_name)
482 (demangle_for_lookup, symbol_matches_domain)
483 (default_make_symbol_completion_list_break_on_1): Remove java
484 references.
485 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
486 * psymtab.c (match_partial_symbol, psymtab_search_name)
487 (lookup_partial_symbol): Remove java references.
488 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
489 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
490 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
491 (process_structure_scope, read_subroutine_type)
492 (read_subrange_type, load_partial_dies)
493 (new_symbol_full, determine_prefix, typename_concat)
494 (dwarf2_name): Remove java references.
495 (set_cu_language): Treat Java as C++.
496 * c-typeprint.c (c_type_print_args): Remove java reference.
497 * defs.h (enum language) <language_java>: Remove.
498 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
499 (YYOBJ, local-maintainer-clean): Don't mention java files.
500 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
501 jv-varobj.c: Remove.
502
503 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
504
505 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
506 32-bit.
507
508 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
509
510 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
511 throughout.
512
513 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
514
515 * stack.c (frame_info): Call val_print_not_saved instead of
516 val_print_unavailable if frame_id check fails.
517
518 2016-10-06 Pedro Alves <palves@redhat.com>
519
520 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
521 the cached code address.
522
523 2016-10-06 Doug Evans <dje@google.com>
524
525 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
526 "end" in all fields.
527 * features/aarch64.c: Regenerate.
528 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
529 and "enabled" fields. Correct size of "enabled" field.
530 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
531 and "enabled" fields.
532 * features/i386/i386-avx-mpx-linux.c: Regenerate.
533 * features/i386/i386-avx-mpx.c: Regenerate.
534 * features/i386/i386-avx512-linux.c: Regenerate.
535 * features/i386/i386-avx512.c: Regenerate.
536 * features/i386/i386-mpx-linux.c: Regenerate.
537 * features/i386/i386-mpx.c: Regenerate.
538 * features/arc-arcompact.c: Regenerate.
539 * features/arc-v2.c: Regenerate.
540 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
541 fields default to "bool" type.
542
543 Revert 2016-03-15 Doug Evans <dje@google.com>
544 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
545 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
546 * features/i386/64bit-core.xml (i386_eflags): Ditto.
547 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
548 * features/i386/x32-core.xml (i386_eflags): Ditto.
549
550 2016-10-05 Tom Tromey <tom@tromey.com>
551
552 PR breakpoints/20653:
553 * location.c (string_to_explicit_location): Use NULL, not '\0'.
554
555 2016-10-05 Tom Tromey <tom@tromey.com>
556
557 PR symtab/20652:
558 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
559 fields.
560
561 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
562
563 * dwarf2expr.c (dwarf_expr_require_composition): Allow
564 DW_OP_GNU_uninit.
565 (execute_stack_op): Use dwarf_expr_require_composition instead of
566 copying its logic.
567
568 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
569
570 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
571
572 2016-10-05 Yao Qi <yao.qi@linaro.org>
573
574 * features/Makefile (WHICH): Add
575 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
576 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
577 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
578 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
579 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
580 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
581 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
582 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
583 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
584
585 2016-10-05 Yao Qi <yao.qi@linaro.org>
586
587 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
588 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
589 s390x-vx-linux64.xml.
590
591 2016-10-05 Yao Qi <yao.qi@linaro.org>
592
593 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
594 amd64-expedite, and x32-expedite.
595
596 2016-10-05 Terry Guo <terry.guo@arm.com>
597 Yao Qi <yao.qi@linaro.org>
598
599 * arm-tdep.c: Adjust includes.
600 * features/Makefile (WHICH): Add "arm/" directory to arm
601 target descriptions.
602 (XMLTOC): Likewise.
603 (arm/arm-with-iwmmxt.dat): Adjust the path for
604 dependencies.
605 * features/arm-core.xml: Moved to ...
606 * features/arm/arm-core.xml: ... it.
607 * features/arm-fpa.xml: Moved to ...
608 * features/arm/arm-fpa.xml: ... it.
609 * features/arm-m-profile.xml: Moved to ...
610 * features/arm/arm-m-profile.xm: ... it.
611 * features/arm-vfpv2.xml: Moved to ...
612 * features/arm/arm-vfpv2.xm: ... it.
613 * features/arm-vfpv3.xml: Moved to ...
614 * features/arm/arm-vfpv3.xml: ... it.
615 * features/arm-with-iwmmxt.c: Moved to ...
616 * features/arm/arm-with-iwmmxt.c: ... it.
617 * features/arm-with-iwmmxt.xml: Moved to ...
618 * features/arm/arm-with-iwmmxt.xml: ... it.
619 * features/arm-with-m-fpa-layout.c: Moved to ...
620 * features/arm/arm-with-m-fpa-layout.c: ... it.
621 * features/arm-with-m-fpa-layout.xml: Moved to ...
622 * features/arm/arm-with-m-fpa-layout.xml: ... it.
623 * features/arm-with-m-vfp-d16.c: Moved to ...
624 * features/arm/arm-with-m-vfp-d16.c: ... it.
625 * features/arm-with-m-vfp-d16.xml: Moved to ...
626 * features/arm/arm-with-m-vfp-d16.xml: ... it.
627 * features/arm-with-m.c: Moved to ...
628 * features/arm/arm-with-m.c: ... it.
629 * features/arm-with-m.xml: Moved to ...
630 * features/arm/arm-with-m.xm: ... it.
631 * features/arm-with-neon.c: Moved to ...
632 * features/arm/arm-with-neon.c: ... it.
633 * features/arm-with-neon.xml: Moved to ...
634 * features/arm/arm-with-neon.xml: ... it.
635 * features/arm-with-vfpv2.c: Moved to ...
636 * features/arm/arm-with-vfpv2.c: ... it.
637 * features/arm-with-vfpv2.xml: Moved to ...
638 * features/arm/arm-with-vfpv2.xml: ... it.
639 * features/arm-with-vfpv3.c: Moved to ...
640 * features/arm/arm-with-vfpv3.c: ... it.
641 * features/arm-with-vfpv3.xml: Moved to ...
642 * features/arm/arm-with-vfpv3.xml: ... it.
643 * features/xscale-iwmmxt.xml: Moved to ...
644 * features/arm/xscale-iwmmxt.xml: ... it.
645
646 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
647 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
648
649 PR gdb/20487
650 * NEWS: Mention new frame field of =thread-selected event.
651 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
652 (add_com_suppress_notification): New function definition.
653 (cmd_func): Set and restore the suppress_notification flag.
654 * cli/cli-deicode.h (struct cmd_list_element)
655 <suppress_notification>: New field.
656 * cli/cli-interp.c (cli_suppress_notification): New global variable.
657 (cli_on_user_selected_context_changed): New function.
658 (_initialize_cli_interp): Attach to user_selected_context_changed
659 observer.
660 * command.h (struct cli_suppress_notification): New structure.
661 (cli_suppress_notification): New global variable declaration.
662 (add_com_suppress_notification): New function declaration.
663 * defs.h (enum user_selected_what_flag): New enum.
664 (user_selected_what): New enum flag type.
665 * frame.h (print_stack_frame_to_uiout): New function declaration.
666 * gdbthread.h (print_selected_thread_frame): New function declaration.
667 * inferior.c (print_selected_inferior): New function definition.
668 (inferior_command): Remove printing of inferior/thread/frame switch
669 notifications, notify user_selected_context_changed observer.
670 * inferior.h (print_selected_inferior): New function declaration.
671 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
672 suppression to stack-select-frame and thread-select commands.
673 * mi/mi-interp.c (struct mi_suppress_notification)
674 <user_selected_context>: Initialize.
675 (mi_user_selected_context_changed): New function definition.
676 (_initialize_mi_interp): Attach to user_selected_context_changed.
677 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
678 (mi_execute_command): Handle notification suppression. Notify
679 user_selected_context_changed observer on thread change instead of printing
680 event directly. Don't send it if command already sends the notification.
681 (command_notifies_uscc_observer): New function.
682 (mi_cmd_execute): Don't handle notification suppression.
683 * mi/mi-main.h (struct mi_suppress_notification)
684 <user_selected_context>: New field.
685 * stack.c (print_stack_frame_to_uiout): New function definition.
686 (select_frame_command): Notify user_selected_context_changed
687 observer.
688 (frame_command): Call print_selected_thread_frame if there's no frame
689 change or notify user_selected_context_changed observer if there is.
690 (up_command): Notify user_selected_context_changed observer.
691 (down_command): Likewise.
692 (_initialize_stack): Suppress user_selected_context notification for
693 command select-frame.
694 * thread.c (thread_command): Notify
695 user_selected_context_changed if the thread has changed, print
696 thread info directly if it hasn't.
697 (do_captured_thread_select): Do not print thread switch event.
698 (print_selected_thread_frame): New function definition.
699 * tui/tui-interp.c (tui_on_user_selected_context_changed):
700 New function definition.
701 (_initialize_tui_interp): Attach to user_selected_context_changed
702 observer.
703
704 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
705
706 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
707 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
708 Use it.
709 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
710 * infcmd.c (setup_inferior): Update caller.
711 * remote.c (remote_add_inferior): Likewise.
712
713 2016-09-28 Pedro Alves <palves@redhat.com>
714
715 * infcall.c (run_inferior_call): Remove input from the event
716 loop while running the infcall.
717
718 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
719
720 * arm-tdep.c (arm_m_addr_is_magic): New function.
721 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
722 (arm_m_exception_unwind_sniffer): Likewise.
723
724 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
725
726 * windows-nat.c (windows_delete_thread): Adjusting call to
727 target_mourn_inferior to include ptid_t argument.
728
729 2016-09-23 Tom Tromey <tom@tromey.com>
730
731 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
732 * utils.c: Don't include dyn-string.h.
733 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
734 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
735 (argv_to_string): Rename. Change return type to std::string.
736 (alias_command): Use std::string.
737
738 2016-09-23 Tom Tromey <tom@tromey.com>
739
740 * objfiles.c: Include <vector>.
741 (objfile_relocate): Use std::vector.
742
743 2016-09-23 Tom Tromey <tom@tromey.com>
744
745 * rust-lang.c: Include <string> and <vector>.
746 (rust_evaluate_funcall): Use std::vector, std::string.
747 (rust_evaluate_subexp): Use std::string.
748 (rust_lookup_symbol_nonlocal): Use std::string.
749
750 2016-09-23 Tom Tromey <tom@tromey.com>
751
752 * cp-namespace.c: Include <string>.
753 (cp_search_static_and_baseclasses)
754 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
755 Use std::string.
756
757 2016-09-23 Tom Tromey <tom@tromey.com>
758
759 * break-catch-sig.c: Include <string>.
760 (signal_catchpoint_print_one): Use std::string.
761
762 2016-09-23 Tom Tromey <tom@tromey.com>
763
764 * utils.c (struct restore_ui_out_closure): Remove.
765 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
766
767 2016-09-23 Yao Qi <yao.qi@linaro.org>
768
769 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
770 sprintf with xsnprintf.
771 (linux_xfer_osdata_fds): Likewise.
772
773 2016-09-23 Pedro Alves <palves@redhat.com>
774
775 * Makefile.in (SFILES): Add common/new-op.c.
776 (COMMON_OBS): Add common/new-op.o.
777 (new-op.o): New rule.
778 * common/common-exceptions.h: Include <new>.
779 (struct gdb_quit_bad_alloc): New type.
780 * common/new-op.c: New file.
781
782 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
783
784 * rs6000-tdep.c (ppc_process_record_op31): Fix
785 regcache_raw_read_unsigned call using the correct parameter type.
786
787 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
788
789 * arc-tdep.c: Fix ARI warning for printf(%p).
790
791 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
792
793 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
794
795 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
796
797 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
798 (HFILES_NO_SRCDIR): Add arc-tdep.h.
799 (ALLDEPFILES): Add arc-tdep.c.
800 * NEWS: Mention new ARC port.
801 * configure.tgt: Add ARC.
802 * arc-tdep.c: New file.
803 * arc-tdep.h: New file.
804 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
805 * features/arc-v2.xml: New file.
806 * features/arc-v2.c: New file (generated).
807 * features/arc-arcompact.xml: New file.
808 * features/arc-arcompact.c: New file (generated).
809
810 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
811
812 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
813 handlers.
814
815 2016-09-21 Tom Tromey <tom@tromey.com>
816
817 PR gdb/20604:
818 * top.h (quit_force): Update.
819 * top.c (quit_force): Changed type of first argument. Don't
820 evaluate expression. Pass NULL to kill_or_detach.
821 * cli/cli-cmds.c (quit_command): Evaluate "args".
822
823 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
824
825 * .gitignore: Ignore more files.
826 * data-directory/.gitignore: Likewise.
827
828 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
829
830 * rs6000-tdep.c (PPC_DQ): New macro.
831 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
832 (ppc_process_record_op19): Likewise.
833 (ppc_process_record_op31): Likewise.
834 (ppc_process_record_op59): Likewise.
835 (ppc_process_record_op60): Likewise.
836 (ppc_process_record_op63): Likewise.
837 (ppc_process_record): Likewise.
838 (ppc_process_record_op61): New function.
839
840 2016-09-21 Yao Qi <yao.qi@linaro.org>
841
842 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
843 bits 20 to 23.
844
845 2016-09-20 Tom Tromey <tom@tromey.com>
846
847 * python/py-value.c (convert_value_from_python): Make PyInt_Check
848 conditional on Python 2.
849 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
850 conditional on Python 2.
851
852 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
853
854 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
855 Word instructions.
856
857 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
858
859 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
860 'resume_ptid' to 'target_mourn_inferior'. Fix regression
861 introduced by my last commit.
862
863 2016-09-19 Pedro Alves <palves@redhat.com>
864
865 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
866 textdomain, bindtextdomain): Delete macros.
867 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
868 textdomain calls.
869
870 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
871
872 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
873 target_mourn_inferior to include ptid_t argument.
874 * fork-child.c (startup_inferior): Likewise.
875 * gnu-nat.c (gnu_kill_inferior): Likewise.
876 * inf-ptrace.c (inf_ptrace_kill): Likewise.
877 * infrun.c (handle_inferior_event_1): Likewise.
878 * linux-nat.c (linux_nat_attach): Likewise.
879 (linux_nat_kill): Likewise.
880 * nto-procfs.c (interrupt_query): Likewise.
881 (procfs_interrupt): Likewise.
882 (procfs_kill_inferior): Likewise.
883 * procfs.c (procfs_kill_inferior): Likewise.
884 * record.c (record_mourn_inferior): Likewise.
885 * remote-sim.c (gdbsim_kill): Likewise.
886 * remote.c (remote_detach_1): Likewise.
887 (remote_kill): Likewise.
888 * target.c (target_mourn_inferior): Change declaration to accept
889 new ptid_t argument; use gdb_assert on it.
890 * target.h (target_mourn_inferior): Move function prototype from
891 here...
892 * target/target.h (target_mourn_inferior): ... to here. Adjust it
893 to accept new ptid_t argument.
894 * windows-nat.c (get_windows_debug_event): Adjusting call to
895 target_mourn_inferior to include ptid_t argument.
896
897 2016-09-18 Pedro Alves <palves@redhat.com>
898
899 * s390-linux-nat.c: Include <algorithm>.
900
901 2016-09-18 Pedro Alves <palves@redhat.com>
902
903 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
904 specify the std:min/std::max specialization.
905 * exec.c (section_table_read_available_memory): Likewise.
906 * remote.c (remote_read_qxfer): Likewise.
907 * target.c (simple_verify_memory): Likewise.
908
909 2016-09-16 Simon Marchi <simark@simark.ca>
910
911 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
912 (print_stop_event): Use make_cleanup_restore_current_uiout.
913 * python/python.c (execute_gdb_command): Likewise.
914 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
915 (make_cleanup_restore_current_uiout): New function definition.
916 * ui-out.h (make_cleanup_restore_current_uiout): New function
917 declaration.
918 * utils.c (do_restore_ui_out): Remove.
919 (make_cleanup_restore_ui_out): Remove.
920 * utils.h (make_cleanup_restore_ui_out): Remove.
921
922 2016-09-16 Pedro Alves <palves@redhat.com>
923
924 * defs.h (min, max): Delete.
925 * aarch64-tdep.c: Include <algorithm> and use std::min and
926 std::max throughout.
927 * aarch64-tdep.c: Likewise.
928 * alpha-tdep.c: Likewise.
929 * amd64-tdep.c: Likewise.
930 * amd64-windows-tdep.c: Likewise.
931 * arm-tdep.c: Likewise.
932 * avr-tdep.c: Likewise.
933 * breakpoint.c: Likewise.
934 * btrace.c: Likewise.
935 * ctf.c: Likewise.
936 * disasm.c: Likewise.
937 * doublest.c: Likewise.
938 * dwarf2loc.c: Likewise.
939 * dwarf2read.c: Likewise.
940 * environ.c: Likewise.
941 * exec.c: Likewise.
942 * f-exp.y: Likewise.
943 * findcmd.c: Likewise.
944 * ft32-tdep.c: Likewise.
945 * gcore.c: Likewise.
946 * hppa-tdep.c: Likewise.
947 * i386-darwin-tdep.c: Likewise.
948 * i386-tdep.c: Likewise.
949 * linux-thread-db.c: Likewise.
950 * lm32-tdep.c: Likewise.
951 * m32r-tdep.c: Likewise.
952 * m88k-tdep.c: Likewise.
953 * memrange.c: Likewise.
954 * minidebug.c: Likewise.
955 * mips-tdep.c: Likewise.
956 * moxie-tdep.c: Likewise.
957 * nds32-tdep.c: Likewise.
958 * nios2-tdep.c: Likewise.
959 * nto-procfs.c: Likewise.
960 * parse.c: Likewise.
961 * ppc-sysv-tdep.c: Likewise.
962 * probe.c: Likewise.
963 * record-btrace.c: Likewise.
964 * remote.c: Likewise.
965 * rs6000-tdep.c: Likewise.
966 * rx-tdep.c: Likewise.
967 * s390-linux-nat.c: Likewise.
968 * s390-linux-tdep.c: Likewise.
969 * ser-tcp.c: Likewise.
970 * sh-tdep.c: Likewise.
971 * sh64-tdep.c: Likewise.
972 * source.c: Likewise.
973 * sparc-tdep.c: Likewise.
974 * symfile.c: Likewise.
975 * target-memory.c: Likewise.
976 * target.c: Likewise.
977 * tic6x-tdep.c: Likewise.
978 * tilegx-tdep.c: Likewise.
979 * tracefile-tfile.c: Likewise.
980 * tracepoint.c: Likewise.
981 * valprint.c: Likewise.
982 * value.c: Likewise.
983 * xtensa-tdep.c: Likewise.
984 * cli/cli-cmds.c: Likewise.
985 * compile/compile-object-load.c: Likewise.
986
987 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
988
989 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
990 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
991 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
992 (PER_CONTROL_ALTERATION): New macros.
993 (struct s390_debug_reg_state) <break_areas>: New member.
994 (s390_forget_process): Free break_areas as well.
995 (s390_linux_new_fork): Copy break_areas as well.
996 (s390_prepare_to_resume): Install hardware breakpoints.
997 (s390_can_use_hw_breakpoint): Indicate support for hardware
998 breakpoints.
999 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
1000 linux_nat target methods.
1001 (_initialize_s390_nat): Register them.
1002
1003 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004
1005 * nat/linux-nat.h (lwp_is_stepping): New declaration.
1006 * linux-nat.c (lwp_is_stepping): New function.
1007
1008 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1009
1010 * s390-linux-nat.c (gdbcmd.h): New include.
1011 (s390_show_debug_regs): New function.
1012 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
1013 (s390_prepare_to_resume): Likewise.
1014 (_initialize_s390_nat): Register the command "maint set
1015 show-debug-regs".
1016
1017 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1018
1019 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
1020 member of...
1021 (struct s390_debug_reg_state): ...this. New struct.
1022 (struct s390_process_info): New struct.
1023 (s390_process_list): New variable.
1024 (s390_find_process_pid, s390_add_process, s390_process_info_get)
1025 (s390_get_debug_reg_state): New functions.
1026 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
1027 s390_get_debug_reg_state.
1028 (s390_prepare_to_resume): Likewise.
1029 (s390_insert_watchpoint): Likewise.
1030 (s390_remove_watchpoint): Likewise.
1031 (s390_forget_process, s390_linux_new_fork): New linux_nat target
1032 methods.
1033 (_initialize_s390_nat): Register them.
1034
1035 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1036
1037 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
1038 (watch_base): Remove variable.
1039 (watch_areas): New variable.
1040 (s390_stopped_by_watchpoint): Transform operations on the
1041 watch_base list to equivalent operations on the watch_areas VEC.
1042 (s390_prepare_to_resume): Likewise.
1043 (s390_insert_watchpoint): Likewise.
1044 (s390_remove_watchpoint): Likewise.
1045
1046 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
1047
1048 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
1049 functions instead of accessing lwp_info structure members.
1050 (s390_mark_per_info_changed): New function.
1051 (s390_new_thread): Use it.
1052 (s390_refresh_per_info_cb): New function.
1053 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
1054 the current process.
1055 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
1056 (s390_remove_watchpoint): Likewise.
1057
1058 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059
1060 * elfread.c (auxv.h): New include.
1061 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
1062
1063 2016-09-08 Tom Tromey <tom@tromey.com>
1064
1065 * remote.c (remote_notif_stop_ack, remote_wait_as)
1066 (show_remote_cmd): Remove unneeded casts.
1067
1068 2016-09-06 Pedro Alves <palves@redhat.com>
1069
1070 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
1071 change across events. Restore the current UI before returning.
1072 (gdb_readline_wrapper): Restore the current UI before returning.
1073
1074 2016-09-06 Pedro Alves <palves@redhat.com>
1075
1076 * event-top.c (restore_ui_cleanup): Now static.
1077 (make_cleanup_restore_current_ui): New function.
1078 (switch_thru_all_uis_init): Use it.
1079 * infcall.c (call_thread_fsm_should_stop): Use it.
1080 * infrun.c (fetch_inferior_event): Use it.
1081 * top.c (new_ui_command): Use it.
1082 * top.h (restore_ui_cleanup): Delete declaration.
1083 (make_cleanup_restore_current_ui): New declaration.
1084
1085 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1086
1087 * i386-tdep.c (i386_floatformat_for_type): New function.
1088 (i386_gdbarch_init): Install it.
1089 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
1090 (ppc_linux_init_abi): Install it.
1091
1092 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1093
1094 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
1095 * gdbarch.h, gdbarch.c: Re-generate.
1096 * arch-utils.h (default_floatformat_for_type): New prototype.
1097 * arch-utils.c (default_floatformat_for_type): New function.
1098
1099 * doublest.c (floatformat_from_length): Remove.
1100 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
1101 * gdbtypes.c (verify_floatformat): Require non-NULL format.
1102
1103 * dwarf2read.c (dwarf2_init_float_type): New function.
1104 (read_base_type): Use it.
1105 * stabsread.c (dbx_init_float_type): New function.
1106 (read_sun_floating_type): Use it.
1107 (read_range_type): Likewise.
1108
1109 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1110
1111 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
1112 platform ABI floating-point formats for built-in types.
1113 * d-lang.c (build_d_types): Likewise.
1114 * f-lang.c (build_fortran_types): Likewise.
1115 * m2-lang.c (build_m2_types): Likewise.
1116 * mdebugread.c (basic_type): Likewise.
1117
1118 * go-lang.c (build_go_types): Use IEEE floating-point formats
1119 for language built-in types as mandanted by the language.
1120 * jv-lang.c (build_java_types): Likewise.
1121 * rust-lang.c (rust_language_arch_info): Likewise.
1122 * stabsread.c (rs6000_builtin_type): Likewise.
1123
1124 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1125
1126 * gdbtypes.c (init_type): Remove "char" special case.
1127 (arch_integer_type): Likewise.
1128 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
1129 (objfile_type): Likewise.
1130 * mdebugread.c (basic_type): Likewise.
1131 * stabsread.c (rs6000_builtin_type): Likewise.
1132
1133 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1134
1135 * gdbtypes.h (enum type_flag_value): Remove.
1136 Remove references to TYPE_FLAG_... in comments throughout.
1137 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
1138 flags, print the corresponding TYPE_... access macro names.
1139 Remove references to TYPE_FLAG_... in comments throughout.
1140 * infcall.c: Remove references to TYPE_FLAG_... in comments.
1141 * valprint.c: Likewise.
1142 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
1143 values, only TYPE_INSTANCE_FLAG_... values.
1144 (class TypeFlagsPrinter): Likewise.
1145
1146 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1147
1148 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
1149 argument to first position.
1150 (init_integer_type): New prototype.
1151 (init_character_type): Likewise.
1152 (init_boolean_type): Likewise.
1153 (init_float_type): Likewise.
1154 (init_decfloat_type): Likewise.
1155 (init_complex_type): Likewise.
1156 (init_pointer_type): Likewise.
1157 * gdbtypes.c (verify_floatflormat): New function.
1158 (init_type): Remove FLAGS argument and processing. Move OBJFILE
1159 argument to first position.
1160 (init_integer_type): New function.
1161 (init_character_type): Likewise.
1162 (init_boolean_type): Likewise.
1163 (init_float_type): Likewise.
1164 (init_decfloat_type): Likewise.
1165 (init_complex_type): Likewise.
1166 (init_pointer_type): Likewise.
1167 (arch_float_type): Use verify_floatflormat.
1168 (objfile_type): Use init_..._type helpers instead of calling
1169 init_type directly.
1170 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
1171 prototype.
1172 (read_namespace_type): Likewise.
1173 (read_module_type): Likewise.
1174 (read_typedef): Likewise.
1175 (read_unspecified_type): Likewise.
1176 (build_error_marker_type): Likewise.
1177 (read_base_type): Use init_..._type helpers.
1178 * mdebugread.c (basic_type): Use init_..._type helpers.
1179 (parse_type): Update to changed init_type prototype.
1180 (cross_ref): Likewise.
1181 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
1182 (read_sun_builtin_type): Likewise.
1183 (read_sun_floating_type): Likewise.
1184 (read_range_type): Likewise. Also update to changed init_type
1185 prototype.
1186
1187 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1188
1189 * gdbtypes.h (arch_decfloat_type): New prototype.
1190 (arch_pointer_type): Likewise.
1191 * gdbtypes.c (arch_decfloat_type): New function.
1192 (arch_pointer_type): Likewise.
1193 (gdbtypes_post_init): Use arch_decfloat_type.
1194 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
1195 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1196 * m32c-tdep.c (make_types): Likewise.
1197 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1198
1199 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1200
1201 * gdbtypes.c (set_type_code): New function.
1202 (init_type, arch_type): Use it.
1203
1204 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1205
1206 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
1207 instead of gdbarch_double_bit for "long_long_float".
1208
1209 2016-09-05 Pedro Alves <palves@redhat.com>
1210
1211 * NEWS: Mention that a C++ compiler is now required.
1212 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
1213 (COMPILE.pre, CC_LD): Use CXX directly.
1214 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
1215 * acinclude.m4: Don't include build-with-cxx.m4.
1216 * build-with-cxx.m4: Delete file.
1217 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
1218 * warning.m4: Assume $enable_build_with_cxx is yes.
1219 * configure: Regenerate.
1220
1221 2016-09-05 Pedro Alves <palves@redhat.com>
1222
1223 PR backtrace/19927
1224 * frame.c (get_frame_id): Compute the frame id if not computed
1225 yet.
1226 (unwind_to_current_frame): Delete.
1227 (get_current_frame): Use get_prev_frame_always_1 to get the
1228 current frame and assert that that always succeeds.
1229 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
1230 the current frame.
1231
1232 2016-09-02 Tom Tromey <tom@tromey.com>
1233
1234 PR gdb/11616:
1235 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
1236 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
1237 DW_OP_form_tls_address.
1238 (locexpr_describe_location_piece): Likewise.
1239 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
1240 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
1241 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
1242 * compile/compile-loc2c.c (struct insn_info): Update comment.
1243 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
1244
1245 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1246
1247 * target.c (target_wait): Mention that the function's prototype
1248 can be found at target/target.h.
1249 * target.h (target_wait): Move prototype from here...
1250 * target/target.h (target_wait): ... to here.
1251
1252 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1253
1254 * fork-child.c (startup_inferior): Replace calls to target_resume
1255 by target_continue{,_no_signal}, depending on the case.
1256 * linux-nat.c (cleanup_target_stop): Call
1257 target_continue_no_signal instead of target_resume.
1258 * procfs.c (procfs_wait): Likewise.
1259 * target.c (target_continue): New function.
1260 * target/target.h (target_continue): New prototype.
1261
1262 2016-08-31 Yao Qi <yao.qi@linaro.org>
1263
1264 * record-full.c (record_full_insert_breakpoint): Fix typo.
1265
1266 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1267
1268 * thread.c (tp_array_compar): Insert missing parentheses.
1269
1270 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1271
1272 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
1273 designated initializer list by plain initializer list, for C++
1274 compliance.
1275
1276 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1277
1278 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
1279 struct ps_prochandle.
1280 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
1281 * arm-linux-nat.c (ps_get_thread_area): Likewise.
1282 * gdb_proc_service.h (ps_get_thread_area): Likewise.
1283 * i386-linux-nat.c (ps_get_thread_area): Likewise.
1284 * m68klinux-nat.c (ps_get_thread_area): Likewise.
1285 * mips-linux-nat.c (ps_get_thread_area): Likewise.
1286 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
1287 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
1288 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
1289
1290 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
1291
1292 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
1293 NULL if terminal_name is an empty string.
1294 (_initialize_infcmd): Make the argument of "set inferior-tty"
1295 optional, mention it in the help doc.
1296
1297 2016-08-24 Carl Love <cel@us.ibm.com>
1298
1299 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
1300 set_gdbarch_deprecated_fp_regnum() architecture
1301 initialization function.
1302
1303 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
1304
1305 * stack.c (parse_frame_specification): Fix typo in comment.
1306
1307 2016-08-23 Pedro Alves <palves@redhat.com>
1308
1309 PR gdb/20494
1310 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
1311 comments.
1312 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
1313 Delete.
1314 (set_initial_gdb_ttystate): Record our_terminal_info here too,
1315 instead of ...
1316 (gdb_has_a_terminal): ... here. Reimplement in terms of
1317 initial_gdb_ttystate. Make static.
1318 * terminal.h (gdb_has_a_terminal): Delete declaration.
1319 (set_initial_gdb_ttystate): Add comment.
1320 * top.c (show_interactive_mode): Use input_interactive_p instead
1321 of gdb_has_a_terminal.
1322
1323 2016-08-22 Pedro Alves <palves@redhat.com>
1324
1325 PR gdb/20505
1326 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
1327 find the vDSO's start address with AT_SYSINFO_EHDR too, and
1328 determine the vDSO's size by finding the PT_LOAD segment that
1329 matches AT_SYSINFO_EHDR.
1330
1331 2016-08-19 Yao Qi <yao.qi@linaro.org>
1332
1333 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
1334 based STP instruction.
1335
1336 2016-08-19 Yao Qi <yao.qi@linaro.org>
1337
1338 * completer.c (linespec_location_completer): Make file_to_match
1339 null-terminated.
1340
1341 2016-08-19 Pedro Alves <palves@redhat.com>
1342
1343 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
1344 addresses over 0x7fffffff.
1345
1346 2016-08-18 Carl Love <cel@us.ibm.com>
1347
1348 * MAINTANERS Write After Approval): Add "Carl Love".
1349
1350 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1351
1352 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
1353
1354 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1355
1356 * inferior.c (remove_inferior_command): Fix error message.
1357
1358 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
1359
1360 * inferior.c (exit_inferior_1): Remove comment.
1361
1362 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
1363
1364 PR gdb/20457
1365 * gdb_proc_service.h: Add an include of gregset.h
1366 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
1367
1368 2016-08-15 Yao Qi <yao.qi@linaro.org>
1369
1370 * location.c (explicit_location_lex_one): Compare the return
1371 value of strncmp with zero. Don't check (*inp)[9]. Increment
1372 *inp by 8.
1373
1374 2016-08-11 Pedro Alves <palves@redhat.com>
1375
1376 PR gdb/20413
1377 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
1378 "gregset.h".
1379
1380 2016-08-10 Pedro Alves <palves@redhat.com>
1381
1382 PR gdb/19187
1383 * record-full.c (record_full_remove_breakpoint): Don't remove the
1384 breakpoint from the record_full_breakpoints VEC if we're detaching
1385 the breakpoint from a fork child.
1386
1387 2016-08-10 Pedro Alves <palves@redhat.com>
1388
1389 PR gdb/19187
1390 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
1391 interface.
1392 * break-catch-syscall.c (remove_catch_syscall):
1393 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
1394 (remove_breakpoint_1): Pass 'reason' down.
1395 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
1396 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
1397 (base_breakpoint_remove_location, bkpt_remove_location)
1398 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
1399 interface.
1400 * breakpoint.h (enum remove_bp_reason): Moved here from
1401 breakpoint.c.
1402 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
1403 * corelow.c (core_remove_breakpoint): New function.
1404 (init_core_ops): Install it as to_remove_breakpoint method.
1405 * exec.c (exec_remove_breakpoint): New function.
1406 (init_exec_ops): Install it as to_remove_breakpoint method.
1407 * mem-break.c (memory_remove_breakpoint): Adjust interface.
1408 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
1409 interface.
1410 * record-full.c (record_full_remove_breakpoint)
1411 (record_full_core_remove_breakpoint): Adjust interface.
1412 * remote.c (remote_remove_breakpoint): Adjust interface.
1413 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
1414 macro.
1415 * target-delegates.c: Regenerate.
1416 * target.c (target_remove_breakpoint): Add 'reason' parameter.
1417 * target.h (struct target_ops) <to_remove_breakpoint>: Add
1418 'reason' parameter.
1419 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
1420 parameter.
1421
1422 2016-08-10 Pedro Alves <palves@redhat.com>
1423
1424 PR gdb/19187
1425 * breakpoint.c (insertion_state_t): Delete.
1426 (enum remove_bp_reason): New.
1427 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
1428 Adjust to use enum remove_bp_reason instead of insertion_state_t.
1429
1430 2016-08-10 Pedro Alves <palves@redhat.com>
1431
1432 PR gdb/19187
1433 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
1434 always pass mark_uninserted to remove_breakpoint_1.
1435 (insert_breakpoint_locations, remove_breakpoints)
1436 (remove_breakpoints_pid, update_global_location_list): Update
1437 callers.
1438
1439 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
1440 Pedro Alves <palves@redhat.com>
1441
1442 * windows-nat.c (MS_VC_EXCEPTION): New define.
1443 (handle_exception_result): New enum.
1444 (windows_delete_thread): Free the thread's name.
1445 (handle_exception): Handle MS_VC_EXCEPTION.
1446 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
1447 (windows_thread_name): New function.
1448 (windows_target): Install it as to_thread_name method.
1449 * NEWS: Mention the thread naming support on MS-Windows.
1450
1451 2016-08-10 Pedro Alves <palves@redhat.com>
1452
1453 * common/signals-state-save-restore.c
1454 (save_original_signals_state, restore_original_signals_state):
1455 Wrap perror_with_name arguments with '()'.
1456
1457 2016-08-09 Pedro Alves <palves@redhat.com>
1458
1459 PR gdb/20418
1460 * event-top.c (ui_register_input_event_handler)
1461 (ui_unregister_input_event_handler): New functions.
1462 (async_enable_stdin): Register input in the event loop.
1463 (async_disable_stdin): Unregister input from the event loop.
1464 (gdb_setup_readline): Register input in the event loop.
1465 * infrun.c (check_curr_ui_sync_execution_done): Register input in
1466 the event loop.
1467 * target.c (target_terminal_inferior): Don't unregister input from
1468 the event loop.
1469 (target_terminal_ours): Don't register input in the event loop.
1470 * target.h (target_terminal_inferior)
1471 (target_terminal_ours_for_output, target_terminal_ours): Update
1472 comments.
1473 * top.h (ui_register_input_event_handler)
1474 (ui_unregister_input_event_handler): New declarations.
1475 * utils.c (ui_unregister_input_event_handler_cleanup)
1476 (prepare_to_handle_input): New functions.
1477 (defaulted_query, prompt_for_continue): Use
1478 prepare_to_handle_input.
1479
1480 2016-08-09 Pedro Alves <palves@redhat.com>
1481
1482 PR mi/20431
1483 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
1484 state to PROMPT_NEEDED.
1485
1486 2016-08-09 Pedro Alves <palves@redhat.com>
1487
1488 PR gdb/18653
1489 * Makefile.in (SFILES): Add
1490 common/signals-state-save-restore.c.
1491 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
1492 (COMMON_OBS): Add signals-state-save-restore.o.
1493 (signals-state-save-restore.o): New rule.
1494 * configure: Regenerate.
1495 * fork-child.c: Include "signals-state-save-restore.h".
1496 (fork_inferior): Call restore_original_signals_state.
1497 * main.c: Include "signals-state-save-restore.h".
1498 (captured_main): Call save_original_signals_state.
1499 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
1500 * common/signals-state-save-restore.c: New file.
1501 * common/signals-state-save-restore.h: New file.
1502
1503 2016-08-09 Pedro Alves <palves@redhat.com>
1504
1505 * value.c (unpack_value_bitfield): Skip unpacking if the parent
1506 has no contents buffer to begin with.
1507
1508 2016-08-08 Pedro Alves <palves@redhat.com>
1509
1510 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
1511 * features/i386/amd64-avx-mpx.c: Regenerate.
1512 * features/i386/i386-avx-mpx-linux.c: Regenerate.
1513 * features/i386/i386-avx-mpx.c: Regenerate.
1514
1515 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
1516
1517 * event-top.h (cli_command_loop): Remove.
1518
1519 2016-08-05 Pedro Alves <palves@redhat.com>
1520
1521 PR remote/20398
1522 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
1523 flag before calling quit.
1524
1525 2016-08-05 Pedro Alves <palves@redhat.com>
1526
1527 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
1528 by default.
1529
1530 2016-08-05 Pedro Alves <palves@redhat.com>
1531
1532 * build-with-cxx.m4: Change help string to be in terms of
1533 --disable-build-with-cxx.
1534 * configure: Regenerate.
1535
1536 2016-08-04 Yao Qi <yao.qi@linaro.org>
1537
1538 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
1539 declaration.
1540 (aarch64_linux_read_description): Remove code on getting
1541 auxv and select target description on it. Select target
1542 description by the result of NT_ARM_VFP ptrace request.
1543
1544 2016-08-03 Tom Tromey <tom@tromey.com>
1545
1546 PR python/18565:
1547 * python/py-frame.c (frapy_function): Use find_frame_funname.
1548
1549 2016-08-03 Tom Tromey <tom@tromey.com>
1550
1551 * stack.c (find_frame_funname): Avoid any possible leak in case
1552 cp_remove_params can throw.
1553
1554 2016-08-03 Tom Tromey <tom@tromey.com>
1555
1556 * NEWS: Mention new Python breakpoint events.
1557
1558 2016-08-02 Tom Tromey <tom@tromey.com>
1559
1560 * MAINTAINERS (Core): Add self as Rust maintainer.
1561
1562 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1563
1564 * NEWS: Create a new section for the next release branch.
1565 Rename the section of the current branch, now that it has
1566 been cut.
1567
1568 2016-08-01 Joel Brobecker <brobecker@adacore.com>
1569
1570 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
1571 * version.in: Bump version to 7.12.50.DATE-git.
1572
1573 2016-07-27 Alan Modra <amodra@gmail.com>
1574
1575 * amd64-darwin-tdep.c: Don't include libbfd.h.
1576 * i386-darwin-tdep.c: Likewise.
1577 * rs6000-nat.c: Likewise.
1578 * rs6000-tdep.c: Likewise.
1579
1580 2016-07-26 Tom Tromey <tom@tromey.com>
1581
1582 * symtab.c (register_symbol_computed_impl): Update.
1583 PR python/20190:
1584 * value.h (symbol_read_needs): Declare.
1585 (symbol_read_needs_frame): Add comment.
1586 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
1587 comment.
1588 <get_symbol_read_needs>: Rename. Change return type.
1589 * findvar.c (symbol_read_needs): New function.
1590 (symbol_read_needs_frame): Rewrite.
1591 (default_read_var_value): Use symbol_read_needs.
1592 * dwarf2loc.c (struct symbol_needs_baton): Rename.
1593 <needs>: Renamed from needs_frame. Changed type.
1594 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
1595 (symbol_needs_read_mem, symbol_needs_frame_base)
1596 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1597 (symbol_needs_dwarf_call): Rename.
1598 (needs_dwarf_reg_entry_value): Update.
1599 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
1600 Rename and update.
1601 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
1602 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
1603 * defs.h (enum symbol_needs_kind): New.
1604
1605 2016-07-26 Pedro Alves <palves@redhat.com>
1606
1607 * nat/linux-ptrace.c: Include "gregset.h".
1608 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
1609 PTRACE_PEEKUSER.
1610
1611 2016-07-26 Pedro Alves <palves@redhat.com>
1612
1613 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
1614 parameter to 'ptrace'.
1615 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
1616 (nat_uptr_t): New an unsigned long.
1617 (nat_clock_t): Remove attribute __aligned__.
1618 (struct nat_timeval): Delete.
1619 (nat_siginfo_t): Remove attribute __aligned__.
1620 (ptrace_siginfo_t): Define.
1621 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1622 (compat_x32_siginfo_from_siginfo)
1623 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
1624 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
1625 Remove casts.
1626 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
1627 'ptrace'. Remove static assertions.
1628 (top level): New static assertions.
1629
1630 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
1631
1632 * top.h (make_delete_ui_cleanup): New declaration.
1633 * top.c (delete_ui_cleanup): New function.
1634 (make_delete_ui_cleanup): New function.
1635 (new_ui_command): Create restore_ui cleanup earlier, create a
1636 delete_ui cleanup and discard it on success.
1637
1638 2016-07-25 Pedro Alves <palves@redhat.com>
1639 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
1642 't'.
1643
1644 2016-07-25 Pedro Alves <palves@redhat.com>
1645
1646 * nat/linux-procfs.c (enum proc_state): New enum.
1647 (parse_proc_status_state): New function.
1648 (linux_proc_pid_get_state): Replace output string buffer parameter
1649 with an output proc_state parameter. Use parse_proc_status_state.
1650 (linux_proc_pid_is_gone): Adjust to use proc_state values.
1651 (linux_proc_pid_has_state): Change type of 'state' parameter; now
1652 an enum proc_state. Adjust to linux_proc_pid_get_state interface
1653 change.
1654 (linux_proc_pid_is_stopped)
1655 (linux_proc_pid_is_trace_stopped_nowarn)
1656 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
1657 linux_proc_pid_get_state interface change.
1658
1659 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1660
1661 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
1662
1663 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
1664
1665 * NEWS: Resume btrace on reconnect.
1666 * record-btrace.c: Added record-btrace.h include.
1667 (record_btrace_open): Split into this and ...
1668 (record_btrace_push_target): ... this.
1669 (record_btrace_disconnect): New function.
1670 (init_record_btrace_ops): Use record_btrace_disconnect.
1671 * record-btrace.h: New file.
1672 * remote.c: Added record-btrace.h include.
1673 (remote_start_remote): Check recording status.
1674 (remote_btrace_maybe_reopen): New function.
1675
1676 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
1677
1678 * xml-syscall.c (get_syscalls_by_group): New.
1679 (get_syscall_group_names): New.
1680 (struct syscall_group_desc): New structure to store group data.
1681 (struct syscalls_info): Include field to store the group list.
1682 (sysinfo_free_syscall_group_desc): New.
1683 (free_syscalls_info): Free group list.
1684 (syscall_group_create_syscall_group_desc): New.
1685 (syscall_group_add_syscall): New.
1686 (syscall_create_syscall_desc): Add syscall to its groups.
1687 (syscall_start_syscall): Load group attribute.
1688 (syscall_group_get_group_by_name): New.
1689 (xml_list_syscalls_by_group): New.
1690 (xml_list_of_groups): New.
1691 * xml-syscall.h (get_syscalls_by_group): Export function
1692 to retrieve a list of syscalls filtered by the group name.
1693 (get_syscall_group_names): Export function to retrieve the list
1694 of syscall groups.
1695 * break-catch-syscall.c (catch_syscall_split_args): Verify if
1696 argument is a syscall group and expand it to a list of syscalls
1697 when creating catchpoints.
1698 (catch_syscall_completer): Add word completion for system call
1699 groups.
1700 * configure.ac: Include dependency for xsltproc when building
1701 in maintainer-mode.
1702 * break-catch-syscall.c (_initialize_breakpoint): Update catch
1703 syscall command documentation.
1704 * NEWS: Include section about catching groups of syscalls.
1705 * configure: Regenerate.
1706 * data-directory/Makefile.in: Generate syscall xml when building
1707 in maintainer mode.
1708 * syscalls/gdb-syscalls.dtd: Include group attribute to the
1709 syscall element.
1710 * syscalls/apply-defaults.xsl: New.
1711 * syscalls/linux-defaults.xml.in: New.
1712 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
1713 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
1714 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
1715 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
1716 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
1717 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
1718 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
1719 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
1720 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
1721 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
1722 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
1723 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
1724 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
1725 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
1726 * syscalls/aarch64-linux.xml: Regenerate.
1727 * syscalls/amd64-linux.xml: Regenerate.
1728 * syscalls/arm-linux.xml: Regenerate.
1729 * syscalls/i386-linux.xml: Regenerate.
1730 * syscalls/mips-n32-linux.xml: Regenerate.
1731 * syscalls/mips-n64-linux.xml: Regenerate.
1732 * syscalls/mips-o32-linux.xml: Regenerate.
1733 * syscalls/ppc-linux.xml: Regenerate.
1734 * syscalls/ppc64-linux.xml: Regenerate.
1735 * syscalls/s390-linux.xml: Regenerate.
1736 * syscalls/s390x-linux.xml: Regenerate.
1737 * syscalls/sparc-linux.xml: Regenerate.
1738 * syscalls/sparc64-linux.xml: Regenerate.
1739
1740 2016-07-23 Andrew Pinski <apinski@cavium.com>
1741
1742 * nat/aarch64-linux-hw-point.c
1743 (aarch64_linux_get_debug_reg_capacity): Handle
1744 ARMv8.1 and ARMv8.2 debug versions.
1745 * nat/aarch64-linux-hw-point.h
1746 (AARCH64_DEBUG_ARCH_V8_1): New define.
1747 (AARCH64_DEBUG_ARCH_V8_2): New define.
1748
1749 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
1750
1751 PR gdb/14529
1752 * windows-nat.c (signal_event_command): New command 'signal-event'
1753 for W32 JIT debug support.
1754 * NEWS: Add an entry about the new 'signal-event' command.
1755
1756 2016-07-22 Tom Tromey <tom@tromey.com>
1757
1758 PR rust/20162:
1759 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
1760 Call scan_partial_symbols for children when reading a Rust CU.
1761 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
1762 rustc.
1763 (process_structure_scope) <DW_TAG_subprogram>: Call
1764 read_func_scope for Rust.
1765
1766 2016-07-22 Yao Qi <yao.qi@linaro.org>
1767
1768 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
1769 bt_ctf_get_int64.
1770
1771 2016-07-21 Tom Tromey <tom@tromey.com>
1772
1773 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
1774 structs.
1775 * rust-exp.y (struct_expr_list): Allow empty elements.
1776
1777 2016-07-21 Tom Tromey <tom@tromey.com>
1778
1779 * configure: Rebuild.
1780 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
1781 -Wunused-but-set-parameter, -Wunused-but-set-variable.
1782
1783 2016-07-21 Pedro Alves <palves@redhat.com>
1784
1785 * go32-nat.c (go32_create_inferior): Add cast.
1786 * ser-go32.c (dos_noop): Delete.
1787 (dos_flush_output, dos_setparity, dos_drain_output): New
1788 functions.
1789 (dos_write): Add cast.
1790 (dos_ops): Use dos_flush_output, dos_setparity and
1791 dos_drain_output.
1792 * top.c (do_chdir_cleanup): Add cast.
1793
1794 2016-07-21 Pedro Alves <palves@redhat.com>
1795
1796 * windows-nat.c (handle_exception): Remove "th".
1797
1798 2016-07-21 Pedro Alves <palves@redhat.com>
1799
1800 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
1801 scope that uses it.
1802
1803 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1804
1805 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
1806 events.
1807 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
1808 defined.
1809 (fbsd_add_vfork_done): Likewise.
1810 (fbsd_is_vfork_done_pending): Likewise.
1811 (fbsd_next_vfork_done): Likewise.
1812 (fbsd_resume): Only ignore pending vfork done events if
1813 "PTRACE_VFORK" is not defined.
1814 (fbsd_wait): Only look for pending vfork done events if
1815 "PTRACE_VFORK" is not defined.
1816 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
1817 events.
1818 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
1819 is not defined.
1820
1821 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1822
1823 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
1824 new child processes.
1825
1826 2016-07-20 John Baldwin <jhb@FreeBSD.org>
1827
1828 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
1829 (fbsd_enable_proc_events): New function.
1830 (fbsd_enable_follow_fork): Remove function.
1831 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
1832 (fbsd_post_attach): Likewise.
1833
1834 2016-07-15 John Baldwin <jhb@FreeBSD.org>
1835
1836 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
1837 (do_gdb_signal_to_host): Likewise.
1838 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
1839 programs.
1840 * proc-events.c (signal_table): Add entry for SIGLIBRT.
1841
1842 2016-07-14 Tom Tromey <tom@tromey.com>
1843
1844 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
1845 newline.
1846
1847 2016-07-14 Tom Tromey <tom@tromey.com>
1848
1849 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
1850 (mips_o32_push_dummy_call): Remove "stack_used_p".
1851 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
1852 "insn_bit28".
1853 * rust-lang.c (rust_print_type): Remove "len".
1854 * rust-exp.y (super_name): Remove "current_len".
1855 * python/py-framefilter.c (py_print_type): Remove "type".
1856 * mdebugread.c (parse_partial_symbols): Remove
1857 "past_first_source_file".
1858 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
1859 * m2-valprint.c (m2_print_unbounded_array): Remove
1860 "content_type".
1861 (m2_val_print): Remove "i".
1862 * linespec.c (unexpected_linespec_error): Remove "cleanup".
1863 * f-valprint.c (f_val_print): Remove "i".
1864 * elfread.c (elf_symtab_read): Remove "offset".
1865 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
1866 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
1867
1868 2016-07-14 Tom Tromey <tom@tromey.com>
1869
1870 * arch-utils.c (default_skip_permanent_breakpoint): Remove
1871 "bp_insn".
1872 * disasm.c (do_assembly_only): Remove "num_displayed".
1873 * dwarf2read.c (read_abbrev_offset): Remove "length".
1874 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
1875 "constant".
1876 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
1877 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
1878 * tracefile.c (trace_save): Remove "status".
1879
1880 2016-07-14 Tom Tromey <tom@tromey.com>
1881
1882 * symfile.c (simple_overlay_update_1): Remove initialization
1883 of "size", and commented-out code.
1884 (simple_overlay_update): Likewise.
1885
1886 2016-07-14 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
1889 * tui/tui-io.c (tui_puts): Use getcurx.
1890 (tui_redisplay_readline): Likewise.
1891
1892 2016-07-14 Tom Tromey <tom@tromey.com>
1893
1894 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
1895
1896 2016-07-14 Tom Tromey <tom@tromey.com>
1897
1898 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
1899 succeeded.
1900
1901 2016-07-13 Tom Tromey <tom@tromey.com>
1902
1903 PR python/15620, PR python/18620:
1904 * python/py-evts.c (gdbpy_initialize_py_events): Call
1905 add_new_registry for new events.
1906 * python/py-events.h (events_object) <breakpoint_created,
1907 breakpoint_deleted, breakpoint_modified>: New fields.
1908 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
1909 breakpoint changed event.
1910 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
1911 (gdbpy_breakpoint_modified): New function.
1912 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
1913 observer.
1914
1915 2016-07-13 Tom Tromey <tom@tromey.com>
1916
1917 PR python/17698:
1918 * NEWS: Update.
1919 * python/py-breakpoint.c (bppy_get_pending): New function.
1920 (breakpoint_object_getset): Add entry for "pending".
1921 * breakpoint.h (pending_breakpoint_p): Declare.
1922 * breakpoint.c (pending_breakpoint_p): New function.
1923
1924 2016-07-13 Tom Tromey <tom@tromey.com>
1925
1926 * python/py-breakpoint.c (bppy_get_visibility)
1927 (gdbpy_breakpoint_created): Use user_breakpoint_p.
1928
1929 2016-07-13 Tom Tromey <tom@tromey.com>
1930
1931 PR cli/18053:
1932 * jit.c (jit_reader_load_command): Use tilde_expand.
1933 (_initialize_jit): Fix help for jit-reader-unload. Set completer
1934 for new commands.
1935
1936 2016-07-12 Tom Tromey <tom@tromey.com>
1937
1938 PR python/19293:
1939 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
1940 gdb.invalidate_cached_frames.
1941 * python/lib/gdb/unwinder.py (register_unwinder): Call
1942 gdb.invalidate_cached_frames.
1943 * python/python.c (gdbpy_invalidate_cached_frames): New function.
1944 (python_GdbMethods): Add entry for invalidate_cached_frames.
1945
1946 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1947
1948 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
1949 lang_this.symbol.
1950
1951 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
1952
1953 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
1954 parameter to look for the symbol "this".
1955
1956
1957 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1958
1959 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
1960
1961 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1962
1963 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
1964 left shifts.
1965
1966 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1967
1968 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
1969 the MEDIA_FP_REGNUM register.
1970
1971 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1972
1973 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
1974 negative size.
1975
1976 2016-07-06 John Baldwin <jhb@FreeBSD.org>
1977
1978 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
1979
1980 2016-07-06 Yao Qi <yao.qi@linaro.org>
1981
1982 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
1983 arm_vfp_cprc_sub_candidate for static field.
1984
1985 2016-07-06 Manish Goregaokar <manish@mozilla.com>
1986
1987 * rust-lang.c (rust_subscript): Allow subscripting pointers
1988
1989 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 * configure: Regenerate.
1992 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
1993
1994 2016-07-01 Don Breazeal <donb@codesourcery.com>
1995
1996 * remote.c (remote_get_memory_xfer_limit): New function.
1997 * target-delegates.c: Regenerate.
1998 * target.c (memory_xfer_partial): Call
1999 target_ops.to_get_memory_xfer_limit.
2000 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
2001 member.
2002
2003 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2004
2005 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
2006 (struct fbsd_fork_info): ... this.
2007 (struct fbsd_fork_info) <child>: Rename to ...
2008 (struct fbsd_fork_info) <ptid>: ... this.
2009 (fbsd_pending_children): Update type.
2010 (fbsd_remember_child): Update type and field name.
2011 (fbsd_is_child_pending): Likewise.
2012 (fbsd_pending_vfork_done): New variable.
2013 (fbsd_is_vfork_done_pending): New function.
2014 (fbsd_next_vfork_done): New function.
2015 (fbsd_resume): Don't resume processes with a pending vfork done
2016 event.
2017 (fbsd_wait): Report pending vfork done events.
2018 (fbsd_follow_fork): Delay and record a pending vfork done event
2019 for a vfork parent when detaching the child.
2020
2021 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2022
2023 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
2024 (resume_one_thread_cb): Move below fork following helper code.
2025 (resume_all_threads_cb): Likewise.
2026 (fbsd_resume): Likewise.
2027
2028 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2029
2030 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
2031 "detach_fork" is true.
2032
2033 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2034
2035 * x86bsd-nat.c: Include 'gdbthread.h'.
2036 (x86bsd_dr_set): Set debug registers on all threads belonging to
2037 the current inferior.
2038
2039 2016-07-01 John Baldwin <jhb@FreeBSD.org>
2040
2041 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
2042 'x86bsd-nat.h'.
2043 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
2044 'amd64bsd-nat.h'.
2045 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
2046 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
2047 with 'x86bsd_xsave_len'.
2048 (amd64bsd_store_inferior_registers): Likewise.
2049 (amd64bsd_target): Inherit from x86bsd_target.
2050 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
2051 (amd64bsd_dr_set): Likewise.
2052 (amd64bsd_dr_set_control): Likewise.
2053 (amd64bsd_dr_set_addr): Likewise.
2054 (amd64bsd_dr_get_addr): Likewise.
2055 (amd64bsd_dr_get_status): Likewise.
2056 (amd64bsd_dr_get_control): Likewise.
2057 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
2058 'amd64bsd-nat.h'.
2059 (super_mourn_inferior): Move to x86bsd-nat.c.
2060 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
2061 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
2062 'x86bsd_xsave_len'.
2063 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
2064 mourn_inferior' target op.
2065 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
2066 * config/i386/fbsd64.mh: Likewise.
2067 * config/i386/nbsd64.mh: Likewise.
2068 * config/i386/nbsdelf.mh: Likewise.
2069 * config/i386/obsd.mh: Likewise.
2070 * config/i386/obsd64.mh: Likewise.
2071 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
2072 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
2073 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
2074 with 'x86bsd_xsave_len'.
2075 (i386bsd_store_inferior_registers): Likewise.
2076 (i386bsd_target): Inherit from x86bsd_target.
2077 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
2078 (i386bsd_dr_set): Likewise.
2079 (i386bsd_dr_set_control): Likewise.
2080 (i386bsd_dr_set_addr): Likewise.
2081 (i386bsd_dr_get_addr): Likewise.
2082 (i386bsd_dr_get_status): Likewise.
2083 (i386bsd_dr_get_control): Likewise.
2084 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
2085 (i386bsd_dr_set_control): Remove.
2086 (i386bsd_dr_set_addr): Remove.
2087 (i386bsd_dr_get_addr): Remove.
2088 (i386bsd_dr_get_status): Remove.
2089 (i386bsd_dr_get_control): Remove.
2090 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
2091 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
2092 'x86bsd_xsave_len'.
2093 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
2094 mourn_inferior' target op.
2095 * x86bsd-nat.c: New file.
2096 * x86bsd-nat.h: New file.
2097
2098 2016-07-01 Pedro Alves <palves@redhat.com>
2099 Tom Tromey <tom@tromey.com>
2100
2101 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
2102 jit_inferior_created_hook.
2103 (jit_reader_unload_command): Call reinit_frame_cache and
2104 jit_inferior_exit_hook.
2105 * jit.c (struct jit_unwind_private) <registers>: Delete field.
2106 <regcache>: New field.
2107 (jit_unwind_reg_set_impl): Set the register's value in the
2108 regcache. Free the passed-in gdb_reg_value.
2109 (jit_dealloc_cache): Adjust to free the regcache.
2110 (jit_frame_sniffer): Allocate a regcache instead of an array of
2111 gdb_reg_value pointers.
2112 (jit_frame_this_id): Adjust.
2113 (jit_frame_prev_register): Read raw registers off of the regcache
2114 instead of from the gdb_reg_value pointer array. Use
2115 gdbarch_pseudo_register_read_value to read pseudo registers.
2116 * regcache.c (regcache_raw_set_cached_value): New function,
2117 factored out from ...
2118 (regcache_raw_write): ... here.
2119 * regcache.h (regcache_raw_set_cached_value): Declare.
2120
2121 2016-07-01 Pedro Alves <palves@redhat.com>
2122 Antoine Tremblay <antoine.tremblay@ericsson.com>
2123
2124 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
2125 out from ...
2126 (inf_ptrace_detach): ... here.
2127 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
2128 * linux-nat.c (get_pending_status): Rename to ...
2129 (get_detach_signal): ... this, and return a host signal instead of
2130 filling in a wait status.
2131 (detach_one_lwp): New function, factored out from detach_callback
2132 and adjusted to handle detaching from a zombie thread.
2133 (detach_callback): Skip the leader thread.
2134 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
2135 the leader thread, nor build a signal string to pass down.
2136 Instead, use target_announce_detach, detach_one_lwp and
2137 inf_ptrace_detach_success.
2138
2139 2016-07-01 Pedro Alves <palves@redhat.com>
2140
2141 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
2142 locations.
2143 * infcmd.c (detach_command): Call breakpoint_init_inferior.
2144
2145 2016-07-01 Pedro Alves <palves@redhat.com>
2146
2147 * darwin-nat.c (darwin_detach): Use target_announce_detach.
2148 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2149 * nto-procfs.c (procfs_detach): Likewise.
2150 * remote.c (remote_detach_1): Likewise.
2151 * target.c (target_announce_detach): New function.
2152 * target.h (target_announce_detach): New declaration.
2153
2154 2016-06-29 Tom Tromey <tom@tromey.com>
2155
2156 PR python/20129:
2157 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
2158 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
2159 not "name".
2160
2161 2016-06-29 Tom Tromey <tom@tromey.com>
2162
2163 PR gdb/17210:
2164 * target.c (free_memory_read_result_vector): Take a pointer to the
2165 VEC as an argument.
2166 (read_memory_robust): Install a cleanup for "result".
2167 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
2168
2169 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2170
2171 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
2172
2173 2016-06-29 Manish Goregaokar <manish@mozilla.com>
2174
2175 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
2176
2177 2016-06-28 Yao Qi <yao.qi@linaro.org>
2178
2179 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
2180 variable new_offset.
2181
2182 2016-06-27 Manish Goregaokar <manish@mozilla.com>
2183
2184 * rust-lang.c (rust_print_type, rust_decorations): Print unit
2185 types as "()".
2186 (rust_print_type): Omit return type for functions returning unit.
2187
2188 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
2189
2190 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
2191 when there is an error during the breakpoint creation.
2192
2193 2016-06-25 Tom Tromey <tom@tromey.com>
2194
2195 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
2196 formatting.
2197
2198 2016-06-25 Manish Goregaokar <manish@mozilla.com>
2199
2200 PR gdb/20239
2201 * rust-lang.c (rust_get_disr_info): Correctly interpret
2202 NonZero-optimized enums of arbitrary depth.
2203 (rust_print_type): Correctly print NonZero-optimized
2204 enums.
2205
2206 2016-06-24 David Taylor <dtaylor@emc.com>
2207
2208 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
2209 * c-lang.h: Change all parameters, variables, and struct or union
2210 members used as struct or union fie3ld offsets from int to
2211 LONGEST.
2212 * c-valprint.c: Likewise.
2213 * cp-abi.c: Likewise.
2214 * cp-abi.h: Likewise.
2215 * cp-valprint.c: Likewise.
2216 * d-valprint.c: Likewise.
2217 * dwarf2loc.c: Likewise.
2218 * eval.c: Likewise.
2219 * extension-priv.h: Likewise.
2220 * extension.c: Likewise.
2221 * extension.h: Likewise.
2222 * findvar.c: Likewise.
2223 * gdbtypes.h: Likewise.
2224 * gnu-v2-abi.c: Likewise.
2225 * gnu-v3-abi.c: Likewise.
2226 * go-valprint.c: Likewise.
2227 * guile/guile-internal.h: Likewise.
2228 * guile/scm-pretty-print.c: Likewise.
2229 * jv-valprint.c Likewise.
2230 * opencl-lang.c: Likewise.
2231 * p-lang.h: Likewise.
2232 * python/py-prettyprint.c: Likewise.
2233 * python/python-internal.h: Likewise.
2234 * spu-tdep.c: Likewise.
2235 * typeprint.c: Likewise.
2236 * valarith.c: Likewise.
2237 * valops.c: Likewise.
2238 * valprint.c: Likewise.
2239 * valprint.h: Likewise.
2240 * value.c: Likewise.
2241 * value.h: Likewise.
2242 * p-valprint.c: Likewise.
2243 * c-typeprint.c (c_type_print_base): When printing offset, use
2244 plongest, not %d.
2245 * gdbtypes.c (recursive_dump_type): Ditto.
2246
2247 2016-06-24 David Taylor <david.taylor@emc.com>
2248
2249 * MAINTAINERS (Write After Approval): Add David Taylor.
2250
2251 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2252
2253 * configure.ac: Check for support for system call LWP fields on
2254 FreeBSD.
2255 * config.in, configure: Rebuild.
2256 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
2257 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2258 Report system call events.
2259 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
2260 (fbsd_set_syscall_catchpoint): New function.
2261 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
2262 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
2263 * fbsd-tdep.c: Include xml-syscall.h
2264 (fbsd_get_syscall_number): New function.
2265 (fbsd_init_abi): Set XML system call file name.
2266 Add "get_syscall_number" gdbarch method.
2267 * syscalls/freebsd.xml: New file.
2268
2269 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2270
2271 * fbsd-tdep.c: Include "auxv.h".
2272 (fbsd_print_auxv_entry): New function.
2273 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
2274
2275 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2276
2277 * auxv.c (fprint_auxv_entry): New function.
2278 (default_print_auxv_entry): New function.
2279 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
2280 * auxv.h (enum auxv_format): New enum.
2281 (fprint_auxv_entry): Declare.
2282 (default_print_auxv_entry): Declare.
2283 * gdbarch.sh (print_auxv_entry): New.
2284 * gdbarch.c, gdbarch.h: Re-generated.
2285
2286 2016-06-24 John Baldwin <jhb@FreeBSD.org>
2287
2288 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
2289 (fbsd_xfer_partial): New function.
2290 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
2291 "fbsd_xfer_partial".
2292
2293 2016-06-23 Tom Tromey <tom@tromey.com>
2294
2295 * symtab.c (symbol_find_demangled_name): Loop over languages and
2296 use language_sniff_from_mangled_name.
2297 * rust-lang.c (rust_sniff_from_mangled_name): New function.
2298 (rust_language_defn): Update.
2299 * p-lang.c (pascal_language_defn): Update.
2300 * opencl-lang.c (opencl_language_defn): Update.
2301 * objc-lang.c (objc_sniff_from_mangled_name): New function.
2302 (objc_language_defn): Update.
2303 * m2-lang.c (m2_language_defn): Update.
2304 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
2305 field.
2306 (language_sniff_from_mangled_name): Declare.
2307 * language.c (language_sniff_from_mangled_name): New function.
2308 (unknown_language_defn, auto_language_defn, local_language_defn):
2309 Update.
2310 * jv-lang.c (java_sniff_from_mangled_name): New function.
2311 (java_language_defn): Use it.
2312 * go-lang.c (go_sniff_from_mangled_name): New function.
2313 (go_language_defn): Use it.
2314 * f-lang.c (f_language_defn): Update.
2315 * defs.h (enum language): Reorder.
2316 * d-lang.c (d_sniff_from_mangled_name): New function.
2317 (d_language_defn): Use it.
2318 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
2319 * cp-support.c (gdb_sniff_from_mangled_name): New function.
2320 * c-lang.c (c_language_defn, cplus_language_defn)
2321 (asm_language_defn, minimal_language_defn): Update.
2322 * ada-lang.c (ada_sniff_from_mangled_name): New function.
2323 (ada_language_defn): Use it.
2324
2325 2016-06-23 Tom Tromey <tom@tromey.com>
2326
2327 * ada-lang.c (ada_extensions): New array.
2328 (ada_language_defn): Use it.
2329 * c-lang.c (c_extensions): New array.
2330 (c_language_defn): Use it.
2331 (cplus_extensions): New array.
2332 (cplus_language_defn): Use it.
2333 (asm_extensions): New array.
2334 (asm_language_defn): Use it.
2335 (minimal_language_defn): Update.
2336 * d-lang.c (d_extensions): New array.
2337 (d_language_defn): Use it.
2338 * f-lang.c (f_extensions): New array.
2339 (f_language_defn): Use it.
2340 * go-lang.c (go_language_defn): Update.
2341 * jv-lang.c (java_extensions): New array.
2342 (java_language_defn): Use it.
2343 * language.c (add_language): Call add_filename_language.
2344 (unknown_language_defn, auto_language_defn, local_language_defn):
2345 Update.
2346 * language.h (struct language_defn) <la_filename_extensions>: New
2347 field.
2348 * m2-lang.c (m2_language_defn): Update.
2349 * objc-lang.c (objc_extensions): New array.
2350 (objc_language_defn): Use it.
2351 * opencl-lang.c (opencl_language_defn): Update.
2352 * p-lang.c (p_extensions): New array.
2353 (pascal_language_defn): Use it.
2354 * rust-lang.c (rust_extensions): New array.
2355 (rust_language_defn): Use it.
2356 * symfile.c (add_filename_language): No longer static. Make "ext"
2357 const.
2358 (init_filename_language_table): Remove.
2359 (_initialize_symfile): Update.
2360 * symfile.h (add_filename_language): Declare.
2361
2362 2016-06-23 Tom Tromey <tom@tromey.com>
2363
2364 * symfile.c (filename_language_table): Now a VEC.
2365 (fl_table_size, fl_table_next): Remove.
2366 (add_filename_language): Use VEC_safe_push.
2367 (set_ext_lang_command, info_ext_lang_command)
2368 (deduce_language_from_filename): Use VEC_iterate.
2369 (init_filename_language_table): Use VEC_empty.
2370
2371 2016-06-23 Tom Tromey <tom@tromey.com>
2372
2373 * python/python.c (gdbpy_parameter): Now static.
2374 * python/python-internal.h (gdbpy_parameter): Don't declare.
2375
2376 2016-06-23 Tom Tromey <tom@tromey.com>
2377
2378 PR gdb/16483:
2379 * python/lib/gdb/command/frame_filters.py
2380 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
2381 nothing if no filters found. Return value indicating whether
2382 filters were printed.
2383 (InfoFrameFilter.print_list): Remove.
2384 (InfoFrameFilter.invoke): Print message if no frame filters
2385 found.
2386
2387 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
2388
2389 * f-valprint.c (f_val_print): Add field names for printing
2390 derived types fields.
2391
2392 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2393
2394 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
2395 in name of last-break regset.
2396
2397 2016-06-21 Pedro Alves <palves@redhat.com>
2398
2399 * fork-child.c (fork_inferior): Switch the child to the main UI
2400 right after vfork. Save/restore the current UI in the parent.
2401 Flush outputs of the main UI instead of the current UI.
2402
2403 2016-06-21 Pedro Alves <palves@redhat.com>
2404
2405 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
2406 to all UIs.
2407
2408 2016-06-21 Pedro Alves <palves@redhat.com>
2409
2410 * NEWS: Mention support for running interpreters on separate
2411 UIs and the new new-ui command.
2412
2413 2016-06-21 Pedro Alves <palves@redhat.com>
2414
2415 * interps.c (set_top_level_interpreter): New function, factored
2416 out from captured_main.
2417 (interpreter_completer): Make extern.
2418 * interps.h (set_top_level_interpreter, interpreter_completer):
2419 New declarations.
2420 (captured_main): Use set_top_level_interpreter.
2421 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
2422 (open_terminal_stream, new_ui_command): New functions.
2423 (init_main): Install the "new-ui" command.
2424
2425 2016-06-21 Pedro Alves <palves@redhat.com>
2426
2427 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
2428 (read_command_lines): Use input_interactive_p instead of
2429 input_from_terminal_p.
2430 * defs.h (struct ui): Forward declare.
2431 (input_from_terminal_p): Rename to ...
2432 (input_interactive_p): ... this.
2433 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
2434 to quit_command.
2435 (command_handler): Adjust to per-UI stdin.
2436 (handle_line_of_input): Adjust to per-UI stdin and use
2437 input_interactive_p instead of ISATTY and input_from_terminal_p.
2438 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
2439 (command_line_handler): Always pass true as "from_tty" parameter
2440 of handle_line_of_input and execute_command.
2441 (async_sigterm_handler): Pass 0 as from_tty argument to
2442 quit_command.
2443 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
2444 (gdb_has_a_terminal): Don't check interactive_mode here.
2445 (_initialize_inflow): Don't install "set interactive-mode" here.
2446 * main.c (captured_command_loop): Adjust to per-UI stdin.
2447 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
2448 stdin.
2449 * top.c (new_ui): Save the stdin stream and whether it's a tty.
2450 (dont_repeat): Adjust to per-UI stdin.
2451 (command_line_input): Adjust to per-UI stdin and to use
2452 input_interactive_p.
2453 (quit_force): Write history if any UI supports interactive input.
2454 (interactive_mode, show_interactive_mode): Move here, from
2455 inflow.c.
2456 (input_from_terminal_p): Rename to ...
2457 (input_interactive_p): ... this, and check the "interactive_mode"
2458 global instead of calling gdb_has_a_terminal.
2459 (_initialize_top): Install "set interactive-mode" here.
2460 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
2461 fields.
2462 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
2463 (defaulted_query): Adjust to per-UI stdin and to use
2464 input_interactive_p.
2465
2466 2016-06-21 Pedro Alves <palves@redhat.com>
2467
2468 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
2469 secondary UI's input stream that closed. Instead, just delete the
2470 UI.
2471
2472 2016-06-21 Pedro Alves <palves@redhat.com>
2473
2474 * event-top.c (main_ui_): Delete.
2475 (main_ui, current_ui, ui_list): No longer initialize here.
2476 * main.c (captured_main): UI initialization code factored out to
2477 new new_ui function.
2478 (gdb_main): Wrap captured_main with TRY/CATCH instead of
2479 catch_errors.
2480 * top.c (highest_ui_num): New global.
2481 (new_ui): New function.
2482 * top.h (struct ui) <num>: New field.
2483 (new_ui): New declaration.
2484
2485 2016-06-21 Pedro Alves <palves@redhat.com>
2486
2487 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
2488 nothing to print. Use should_print_stop_to_console.
2489 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
2490
2491 2016-06-21 Pedro Alves <palves@redhat.com>
2492
2493 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
2494 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
2495 thread parameter.
2496 (until_break_command): Pass command interpreter to thread fsm
2497 ctor.
2498 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
2499 * gdbthread.h (struct thread_control_state) <command_interp>:
2500 Delete field.
2501 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
2502 Pass it down.
2503 (call_thread_fsm_should_stop): Add thread parameter.
2504 (call_function_by_hand_dummy): Pass command interpreter to thread
2505 fsm ctor. Pass thread pointer to fsm clean up method.
2506 * infcmd.c: Include interps.h.
2507 (struct step_command_fsm) <thread>: Delete field.
2508 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
2509 (step_command_fsm_prepare): Remove references to fsm's thread
2510 field.
2511 (step_1): Pass command interpreter to thread
2512 fsm ctor. Pass thread pointer to fsm clean up method.
2513 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
2514 thread parameter and use it.
2515 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
2516 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
2517 parameter and use it.
2518 (until_next_command): Pass command interpreter to thread fsm ctor.
2519 (struct finish_command_fsm) <thread>: Delete field.
2520 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
2521 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
2522 down. Remove thread parameter and adjust.
2523 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
2524 thread parameter and use it.
2525 (finish_command): Pass command interpreter to thread fsm ctor.
2526 Don't pass thread.
2527 * infrun.c (follow_fork): Move thread fsm to child fork instead of
2528 command interpreter, only.
2529 (clear_proceed_status_thread): Remove reference to command_interp.
2530 (proceed): Don't record the thread's command interpreter.
2531 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
2532 method.
2533 (fetch_inferior_event): Pass thread to fsm should_stop method.
2534 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
2535 Store it.
2536 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2537 parameter and pass it down.
2538 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
2539 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
2540 parameter.
2541 (thread_fsm_ctor): Add 'cmd_interp' parameter.
2542 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
2543 parameter.
2544 * thread.c (thread_cancel_execution_command): Pass thread to
2545 thread fsm clean_up method.
2546
2547 2016-06-21 Pedro Alves <palves@redhat.com>
2548
2549 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
2550 (should_print_stop_to_console): New function, factored out from
2551 mi_on_normal_stop_1.
2552 * cli/cli-interp.h (should_print_stop_to_console): Declare.
2553 * mi/mi-interp.c (mi_on_normal_stop_1): Use
2554 should_print_stop_to_console. Pass it the current UI's console
2555 interpreter.
2556 * mi/mi-main.c (captured_mi_execute_command): Use the
2557 INTERP_CONSOLE symbol rather than explicit "console".
2558
2559 2016-06-21 Pedro Alves <palves@redhat.com>
2560
2561 * infcmd.c (prepare_execution_command): Use
2562 all_uis_on_sync_execution_starting.
2563 * infrun.c (all_uis_on_sync_execution_starting): New function.
2564 * infrun.h (all_uis_on_sync_execution_starting): Declare.
2565
2566 2016-06-21 Pedro Alves <palves@redhat.com>
2567
2568 * annotate.c: Include top.h.
2569 (async_background_execution_p): Delete.
2570 (print_value_flags): Check the UI's prompt state rather then
2571 async_background_execution_p.
2572 * event-loop.c (start_event_loop): Set the prompt state to
2573 PROMPT_NEEDED.
2574 * event-top.c (display_gdb_prompt, async_enable_stdin)
2575 (async_disable_stdin): Check the current UI's prompt state instead
2576 of the sync_execution global.
2577 (command_line_handler): Set the prompt state to PROMPT_NEEDED
2578 before running a command, and display the prompt if still needed
2579 afterwards.
2580 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
2581 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
2582 (call_thread_fsm_should_stop): Set the prompt state to
2583 PROMPT_NEEDED.
2584 (run_inferior_call): Adjust to temporarily set the prompt state to
2585 PROMPT_BLOCKED instead of using the sync_execution global.
2586 (call_function_by_hand_dummy): Pass the current UI to
2587 new_call_thread_fsm.
2588 * infcmd.c: Include top.h.
2589 (continue_1): Check the current UI's prompt state instead of the
2590 sync_execution global.
2591 (continue_command): Validate global execution state before calling
2592 prepare_execution_command.
2593 (step_1): Call all_uis_check_sync_execution_done.
2594 (attach_post_wait): Don't call async_enable_stdin here. Remove
2595 reference to sync_execution.
2596 * infrun.c (sync_execution): Delete global.
2597 (follow_fork_inferior)
2598 (reinstall_readline_callback_handler_cleanup): Check the current
2599 UI's prompt state instead of the sync_execution global.
2600 (check_curr_ui_sync_execution_done)
2601 (all_uis_check_sync_execution_done): New functions.
2602 (fetch_inferior_event): Call all_uis_check_sync_execution_done
2603 instead of trying to determine whether the global sync execution
2604 changed.
2605 (handle_no_resumed): Check the prompt state of all UIs.
2606 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
2607 UIs. Emit the "Switching to" notification to all UIs. Enable
2608 stdin in all UIs.
2609 * infrun.h (sync_execution): Delete.
2610 (all_uis_check_sync_execution_done): Declare.
2611 * main.c (captured_command_loop): Don't call
2612 interp_pre_command_loop if the prompt is blocked.
2613 (catch_command_errors, catch_command_errors_const): Adjust.
2614 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
2615 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
2616 PROMPTED.
2617 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
2618 comment.
2619 (mi_execute_command_input_handler): Set the prompt state to
2620 PROMPT_NEEDED before executing the command, and only display the
2621 prompt if the prompt state is PROMPT_NEEDED afterwards.
2622 (mi_on_resume_1): Adjust to check the prompt state.
2623 * target.c (target_terminal_inferior): Adjust to check the prompt
2624 state.
2625 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
2626 (execute_command): Check the current UI's prompt state instead of
2627 sync_execution.
2628 * top.h (enum prompt_state): New.
2629 (struct ui) <prompt_state>: New field.
2630 (ALL_UIS): New macro.
2631
2632 2016-06-21 Pedro Alves <palves@redhat.com>
2633
2634 * top.c (gdb_secondary_prompt_depth): Delete.
2635 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
2636 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
2637 per-UI gdb_secondary_prompt_depth.
2638 * top.h (struct ui) <secondary_prompt_depth>: New field.
2639
2640 2016-06-21 Pedro Alves <palves@redhat.com>
2641
2642 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
2643 function.
2644 (cli_interp_procs): Install it instead of cli_command_loop.
2645 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
2646 * event-top.c (cli_command_loop): Delete.
2647 * interps.c (interp_new): Remove reference to command_loop_proc.
2648 (current_interp_command_loop): Delete.
2649 (interp_pre_command_loop): New function.
2650 (interp_command_loop_ftype): Delete.
2651 * interps.h (interp_pre_command_loop_ftype): New typedef.
2652 (struct interp_procs) <command_loop_proc>: Delele field.
2653 <pre_command_loop_proc>: New field.
2654 (current_interp_command_loop): Delete declaration.
2655 (interp_pre_command_loop): New declaration.
2656 * main.c (captured_command_loop): Call interp_pre_command_loop
2657 instead of current_interp_command_loop and start an event loop.
2658 * mi/mi-interp.c (mi_command_loop): Delete.
2659 (mi_interpreter_pre_command_loop): New.
2660 (mi_interp_procs): Update.
2661 * tui/tui-interp.c (tui_interp_procs): Install
2662 cli_interpreter_pre_command_loop instead of cli_command_loop.
2663
2664 2016-06-21 Pedro Alves <palves@redhat.com>
2665
2666 * interps.c (current_interpreter): New function.
2667 * interps.h (current_interpreter): New declaration.
2668 * mi/mi-cmds.h (raw_stdout): Delete declaration.
2669 * mi/mi-common.h (struct mi_interp) <raw_stdout,
2670 saved_raw_stdout>: New field.
2671 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
2672 to per-UI raw_stdout.
2673 (mi_interpreter_init): Adjust to per-UI raw_stdout.
2674 (mi_on_sync_execution_done, mi_execute_command_input_handler)
2675 (mi_command_loop): Pass MI instance to display_mi_prompt.
2676 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
2677 (mi_on_resume): Adjust to per-UI raw_stdout.
2678 (saved_raw_stdout): Delete.
2679 (mi_set_logging): Adjust to per-UI raw_stdout and
2680 saved_raw_stdout.
2681 * mi/mi-main.c (raw_stdout): Delete.
2682 (mi_cmd_gdb_exit, captured_mi_execute_command)
2683 (mi_print_exception, mi_load_progress): Adjust to per-UI
2684 raw_stdout.
2685 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
2686 Pass it along.
2687 (print_diff): New ui_file parameter. Send output there instead of
2688 raw_stdout.
2689 * mi/mi-main.h (struct ui_file): Forward declare.
2690 (mi_print_timing_maybe): Add ui_file parameter.
2691
2692 2016-06-21 Pedro Alves <palves@redhat.com>
2693
2694 * mi/mi-interp.c (display_mi_prompt): New function.
2695
2696 2016-06-21 Pedro Alves <palves@redhat.com>
2697
2698 * target.c (target_terminal_inferior): Bail out after
2699 unregistering input_fd if not on the main UI.
2700 (target_terminal_ours): Bail out after registering input_fd if not
2701 on the main UI.
2702 (target_terminal_ours_for_output): Bail out if not on the main UI.
2703
2704 2016-06-21 Pedro Alves <palves@redhat.com>
2705
2706 * event-top.c (restore_ui_cleanup): Make extern.
2707 * infrun.c (fetch_inferior_event): Always switch to the main UI.
2708 * top.h (restore_ui_cleanup): Declare.
2709
2710 2016-06-21 Pedro Alves <palves@redhat.com>
2711
2712 PR mi/20034
2713 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
2714 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
2715 UI's input_handler here.
2716 (cli_interpreter_supports_command_editing): New function.
2717 (cli_interp_procs): Install it.
2718 * cli/cli-interp.h: New file.
2719 * event-top.c (async_command_editing_p): Rename to ...
2720 (set_editing_cmd_var): ... this.
2721 (change_line_handler): Add parameter 'editing', and use it. Bail
2722 early if the interpreter doesn't support editing. Don't touch
2723 readline state if editing is off.
2724 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2725 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
2726 main UI.
2727 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
2728 not using readline. Check whether the current UI is using command
2729 editing instead of checking the async_command_editing_p global.
2730 (set_async_editing_command): Delete.
2731 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
2732 on the main UI. Don't touch readline state if editing is off.
2733 (gdb_disable_readline): Don't touch readline state if editing is
2734 off.
2735 * event-top.h (gdb_setup_readline): Add 'int' parameter.
2736 (set_async_editing_command): Delete declaration.
2737 (change_line_handler, command_line_handler): Declare.
2738 (async_command_editing_p): Rename to ...
2739 (set_editing_cmd_var): ... this.
2740 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
2741 whether the current UI has editing enabled rather than checking
2742 the async_command_editing_p global.
2743 * interps.c (interp_supports_command_editing): New function.
2744 * interps.h (interp_supports_command_editing_ftype): New typedef.
2745 (struct interp_procs) <supports_command_editing_proc>: New field.
2746 (interp_supports_command_editing): Declare.
2747 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
2748 gdb_setup_readline. Don't clear the async_command_editing_p
2749 global. Update comments.
2750 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
2751 whether the current UI has editing enabled rather than checking
2752 the async_command_editing_p global. Don't touch readline state if
2753 editing is off.
2754 (undo_terminal_modifications_before_exit): Switch to the main UI.
2755 Unconditionally call gdb_disable_readline.
2756 (set_editing): New function.
2757 (show_async_command_editing_p): Rename to ...
2758 (show_editing): ... this. Show the state of the current UI.
2759 (_initialize_top): Adjust.
2760 * top.h (struct ui) <command_editing>: New field.
2761 * tui/tui-interp.c: Include cli/cli-interp.h.
2762 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
2763 input_handler.
2764 (tui_interp_procs): Install
2765 cli_interpreter_supports_command_editing.
2766 * tui/tui-io.c (tui_getc): Check whether the current UI has
2767 editing enabled rather than checking the async_command_editing_p
2768 global.
2769
2770 2016-06-21 Pedro Alves <palves@redhat.com>
2771
2772 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
2773 * top.h (struct ui) <m_current_uiout>: New field.
2774 * ui-out.c (current_uiout): Delete.
2775 * ui-out.h (current_uiout): Delete.
2776 (current_ui_current_uiout_ptr): New declaration.
2777 (current_uiout): Reimplement as wrapper around
2778 current_ui_current_uiout_ptr.
2779
2780 2016-06-21 Pedro Alves <palves@redhat.com>
2781
2782 * ui-out.c (default_ui_out_impl): Delete.
2783 (def_uiout): Delete.
2784 (current_uiout): Set to NULL.
2785 (default_table_begin, default_table_body, default_table_end)
2786 (default_table_header, default_begin, default_end)
2787 (default_field_int, default_field_skip, default_field_string)
2788 (default_field_fmt, default_spaces, default_text, default_message)
2789 (default_wrap_hint, default_flush, default_data_destroy): Delete.
2790
2791 2016-06-21 Pedro Alves <palves@redhat.com>
2792
2793 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
2794 errstream to stdout_fileopen and stderr_fileopen.
2795 * exceptions.c: Include top.h.
2796 (print_flush): Open the current UI's outstream file descriptor,
2797 instead of hardcoding file descriptor 1.
2798 * main.c (captured_main): Save the main UI's out and error
2799 streams. Adjust stderr_fileopen call.
2800 * top.h (struct ui) <outstream, errstream>: New fields.
2801 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
2802 instead of stderr.
2803 * ui-file.h (stderr_fileopen): Add stream parameter and update
2804 comment.
2805
2806 2016-06-21 Pedro Alves <palves@redhat.com>
2807
2808 * event-top.c (input_fd): Delete.
2809 (stdin_event_handler): Switch to the UI whose input descriptor got
2810 the event. Adjust to per-UI input_fd.
2811 (gdb_setup_readline): Don't set the input_fd global. Adjust to
2812 per-UI input_fd.
2813 (gdb_disable_readline): Adjust to per-UI input_fd.
2814 * event-top.h (input_fd): Delete declaration.
2815 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
2816 from the event-loop here.
2817 (linux_nat_terminal_ours): Don't register input_fd in the
2818 event-loop here.
2819 * main.c (captured_main): Adjust to per-UI input_fd.
2820 * remote.c (remote_terminal_inferior): Don't remove input_fd from
2821 the event-loop here.
2822 (remote_terminal_ours): Don't register input_fd in the event-loop
2823 here.
2824 * target.c: Include top.h and event-top.h.
2825 (target_terminal_inferior): Remove input_fd from the event-loop
2826 here.
2827 (target_terminal_ours): Register input_fd in the event-loop.
2828 * top.h (struct ui) <input_fd>: New field.
2829
2830 2016-06-21 Pedro Alves <palves@redhat.com>
2831
2832 * cli/cli-script.c (execute_user_command, read_next_line)
2833 (read_next_line): Adjust to per-UI instream.
2834 * event-top.c (stdin_event_handler, command_handler)
2835 (handle_line_of_input, command_line_handler)
2836 (gdb_readline_no_editing_callback, async_sigterm_handler)
2837 (gdb_setup_readline): Likewise.
2838 * inflow.c: Include top.h.
2839 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
2840 (gdb_save_tty_state, child_terminal_inferior)
2841 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
2842 (initialize_stdin_serial): Adjust to per-UI instream.
2843 * main.c (captured_command_loop, captured_main): Adjust to per-UI
2844 instream.
2845 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
2846 * python/python.c (python_interactive_command): Likewise.
2847 * terminal.h (struct ui): Forward declare.
2848 (initialize_stdin_serial): Add struct ui parameter.
2849 * top.c (instream): Delete.
2850 (do_restore_instream_cleanup, read_command_file, dont_repeat)
2851 (gdb_readline_no_editing, command_line_input)
2852 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
2853 * top.h (struct ui) <instream>: New field.
2854 (instream): Delete declaration.
2855 (quit): Adjust to per-UI instream.
2856
2857 2016-06-21 Pedro Alves <palves@redhat.com>
2858
2859 * event-loop.c: Include top.h.
2860 (invoke_async_signal_handlers): Switch to the main UI.
2861 * event-top.c (main_ui_): Update comment.
2862 (main_ui): New global.
2863 * top.h (main_ui): Declare.
2864
2865 2016-06-21 Pedro Alves <palves@redhat.com>
2866
2867 * cli/cli-interp.c (cli_interp): Delete.
2868 (as_cli_interp): New function.
2869 (cli_on_normal_stop, cli_on_signal_received)
2870 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2871 (cli_on_no_history): Send output to all CLI UIs.
2872 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
2873 the top level interpreter is not a CLI.
2874 (cli_interpreter_init): Don't set cli_interp or install observers
2875 here.
2876 (_initialize_cli_interp): Install observers here.
2877 * event-top.c (main_ui_, ui_list): New globals.
2878 (current_ui): Point to main_ui_.
2879 (restore_ui_cleanup, switch_thru_all_uis_init)
2880 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
2881 functions.
2882 * mi/mi-interp.c (as_mi_interp): New function.
2883 (mi_interpreter_init): Don't install observers here.
2884 (mi_on_sync_execution_done): Skip output if the top level
2885 interpreter is not a MI.
2886 (mi_new_thread, mi_thread_exit, mi_record_changed)
2887 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
2888 (mi_inferior_removed): Send output to all MI UIs.
2889 (find_mi_interpreter, mi_interp_data): Delete.
2890 (find_mi_interp): New function.
2891 (mi_on_signal_received, mi_on_end_stepping_range)
2892 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
2893 to all MI UIs.
2894 (mi_on_normal_stop): Rename to ...
2895 (mi_on_normal_stop_1): ... this.
2896 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
2897 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
2898 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
2899 (mi_breakpoint_modified, mi_output_running_pid): Send output to
2900 all MI UIs.
2901 (mi_on_resume): Rename to ...
2902 (mi_on_resume_1): ... this. Don't handle infcalls here.
2903 (mi_on_resume): Reimplement, sending output to all MI UIs.
2904 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
2905 (mi_memory_changed): Send output to all MI UIs.
2906 (report_initial_inferior): Install observers here.
2907 * top.h (struct ui) <next>: New field.
2908 (ui_list): Declare.
2909 (struct switch_thru_all_uis): New.
2910 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
2911 (switch_thru_all_uis_next): Declare.
2912 (SWITCH_THRU_ALL_UIS): New macro.
2913 * tui/tui-interp.c (tui_interp): Delete global.
2914 (as_tui_interp): New function.
2915 (tui_on_normal_stop, tui_on_signal_received)
2916 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
2917 (tui_on_no_history): Send output to all TUI UIs.
2918 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
2919 the top level interpreter is not a TUI.
2920 (tui_init): Don't set tui_interp or install observers here.
2921 (_initialize_tui_interp): Install observers here.
2922
2923 2016-06-21 Pedro Alves <palves@redhat.com>
2924
2925 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
2926 (struct cli_interp): ... this new structure.
2927 (cli_on_normal_stop, cli_on_signal_received)
2928 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
2929 (cli_on_no_history): Use interp_ui_out.
2930 (cli_interpreter_init): If top level, set the cli_interp global.
2931 (cli_interpreter_init): Return the interp's data instead of NULL.
2932 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
2933 to cli_uiout being in the interpreter's data.
2934 (cli_interp_procs): New, factored out from _initialize_cli_interp.
2935 (cli_interp_factory): New function.
2936 (_initialize_cli_interp): Call interp_factory_register.
2937 * interps.c (get_interp_info): New, factored out from ...
2938 (get_current_interp_info): ... this.
2939 (interp_new): Add parameter 'data'. Store it.
2940 (struct interp_factory): New function.
2941 (interp_factory_p): New typedef. Define a VEC_P.
2942 (interpreter_factories): New global.
2943 (interp_factory_register): New function.
2944 (interp_add): Add 'ui' parameter. Use get_interp_info and
2945 interp_lookup_existing.
2946 (interp_lookup): Rename to ...
2947 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
2948 check for NULL or empty name here.
2949 (interp_lookup): Add 'ui' parameter and reimplement.
2950 (interp_set_temp, interpreter_exec_cmd): Adjust.
2951 (interpreter_completer): Complete on registered interpreter
2952 factories instead of interpreters.
2953 * interps.h (interp_factory_func): New typedef.
2954 (interp_factory_register): Declare.
2955 (interp_new, interp_add): Adjust.
2956 (interp_lookup): Declare.
2957 * main.c (captured_main): Adjust.
2958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
2959 (mi_interp_procs): New, factored out from
2960 _initialize_mi_interp.
2961 (mi_interp_factory): New function.
2962 * python/python.c (execute_gdb_command): Adjust.
2963 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
2964 global.
2965 (tui_interp_procs): New.
2966 (tui_interp_factory): New function.
2967 (_initialize_tui_interp): Call interp_factory_register.
2968
2969 2016-06-21 Pedro Alves <palves@redhat.com>
2970
2971 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
2972 async field instead of the interpreter_async global.
2973 * cli/cli-script.c (execute_user_command, while_command)
2974 (if_command, script_from_file): Likewise.
2975 * compile/compile.c: Include top.h instead of interps.h.
2976 (compile_file_command, compile_code_command)
2977 (compile_print_command): Access the current UI's async field
2978 instead of the interpreter_async global.
2979 * guile/guile.c: Include top.h instead of interps.h.
2980 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
2981 Access the current UI's async field instead of the
2982 interpreter_async global.
2983 * guile/scm-ports.c: Include top.h instead of interps.h.
2984 (ioscm_with_output_to_port_worker): Access the current UI's async
2985 field instead of the interpreter_async global.
2986 * inf-loop.c (inferior_event_handler): Likewise.
2987 * infcall.c (run_inferior_call): Likewise.
2988 * infrun.c (reinstall_readline_callback_handler_cleanup)
2989 (fetch_inferior_event): Likewise.
2990 * interps.c (interpreter_async): Delete.
2991 (struct ui_interp_info): New.
2992 (get_current_interp_info): New function.
2993 (interp_list, current_interpreter, top_level_interpreter_ptr):
2994 Delete.
2995 (interp_add, interp_set, interp_lookup, interp_ui_out)
2996 (current_interp_set_logging, interp_set_temp)
2997 (current_interp_named_p): Adjust to per-UI interpreters.
2998 (command_interpreter): Delete.
2999 (command_interp, current_interp_command_loop, interp_quiet_p)
3000 (interp_exec, interpreter_exec_cmd, interpreter_completer)
3001 (top_level_interpreter, top_level_interpreter_data): Adjust to
3002 per-UI interpreters.
3003 * interps.h (interpreter_async): Delete.
3004 * main.c (captured_command_loop): Access the current UI's async
3005 field instead of the interpreter_async global.
3006 * python/python.c (python_interactive_command, python_command)
3007 (execute_gdb_command): Likewise.
3008 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
3009 Access the current UI's async field instead of the
3010 interpreter_async global.
3011 * top.h (struct tl_interp_info): Forward declare.
3012 (struct ui) <interp_info, async>: New fields.
3013
3014 2016-06-21 Pedro Alves <palves@redhat.com>
3015
3016 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
3017 globals.
3018 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
3019 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
3020 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
3021 m_gdb_stdlog>: New fields.
3022 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
3023 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
3024 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
3025 macros.
3026
3027 2016-06-21 Pedro Alves <palves@redhat.com>
3028
3029 * event-top.c: Update readline-related comments.
3030 (input_handler, call_readline): Delete globals.
3031 (gdb_rl_callback_handler): Call the current UI's input_handler
3032 method.
3033 (change_line_handler): Adjust to set current UI's properties
3034 instead of globals.
3035 (current_ui_, current_ui): New globals.
3036 (get_command_line_buffer): Rewrite to refer to the current UI.
3037 (stdin_event_handler): Adjust to call the call_readline method of
3038 the current UI.
3039 (gdb_readline_no_editing_callback): Adjust to call the current UI's
3040 input_handler method.
3041 (gdb_setup_readline): Adjust to set current UI's properties
3042 instead of globals.
3043 * event-top.h (call_readline, input_handler): Delete declarations.
3044 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
3045 UI's properties instead of globals.
3046 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
3047 properties instead of globals.
3048 (gdb_readline_wrapper): Adjust to call and set current UI's
3049 methods instead of globals.
3050 * top.h: Include buffer.h and event-loop.h.
3051 (struct ui): New struct.
3052 (current_ui): New declaration.
3053
3054 2016-06-21 Pedro Alves <palves@redhat.com>
3055
3056 * ada-lang.c (ada_exception_name_addr_1): Add comment.
3057 (print_it_exception): Select the current frame.
3058
3059 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
3060
3061 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
3062 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
3063 (ALLDEPFILES): Add nds32-tdep.c.
3064 * NEWS: Mention new NDS32 port.
3065 * configure.tgt: Add NDS32.
3066 * nds32-tdep.c: New file.
3067 * nds32-tdep.h: New file.
3068 * features/Makefile (XMLTOC): Add nds32.xml.
3069 * features/nds32-core.xml: New file.
3070 * features/nds32-fpu.xml: New file.
3071 * features/nds32-system.xml: New file.
3072 * features/nds32.c: New file (generated).
3073 * features/nds32.xml: New file.
3074
3075 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3076
3077 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
3078
3079 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3080
3081 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
3082
3083 2016-06-14 John Baldwin <jhb@FreeBSD.org>
3084
3085 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
3086
3087 2016-06-13 Nick Clifton <nickc@redhat.com>
3088
3089 * gdbtypes.c (replace_type): Fix assertion.
3090
3091 2016-06-10 Tom Tromey <tom@tromey.com>
3092
3093 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
3094 (arch_boolean_type, arch_float_type, arch_complex_type)
3095 (arch_flags_type, append_flags_type_field)
3096 (append_flags_type_flag, arch_composite_type)
3097 (append_composite_type_field_raw)
3098 (append_composite_type_field_aligned)
3099 (append_composite_type_field): Make "name" parameter const.
3100 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
3101 (arch_boolean_type, arch_float_type, arch_complex_type)
3102 (append_composite_type_field, append_composite_type_field_aligned)
3103 (append_composite_type_field_raw, arch_flags_type)
3104 (append_flags_type_field, append_flags_type_flag): Constify.
3105
3106 2016-06-10 Tom Tromey <tom@tromey.com>
3107
3108 PR rust/20110:
3109 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
3110
3111 2016-06-10 Tom Tromey <tom@tromey.com>
3112
3113 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
3114 (YYFILES): Add rust-exp.c.
3115 (YYOBJ): Add rust-exp.o.
3116 (local-maintainer-clean): Remove rust-exp.c.
3117
3118 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3119
3120 * NEWS: Mention that GDB now supports a negative repeat count in
3121 the 'x' command.
3122 * printcmd.c (decode_format): Allow '-' in the parameter
3123 "string_ptr" to accept a negative repeat count.
3124 (find_instruction_backward): New function.
3125 (read_memory_backward): New function.
3126 (integer_is_zero): New function.
3127 (find_string_backward): New function.
3128 (do_examine): Use new functions to examine memory backward.
3129 (_initialize_printcmd): Mention that 'x' command supports a negative
3130 repeat count.
3131
3132 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
3133
3134 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
3135
3136 2016-06-09 Tom Tromey <tom@tromey.com>
3137
3138 PR python/19819:
3139 * python/py-xmethods.c (invoke_method_name)
3140 (py_get_result_type_method_name, py_invoke_method_name): Remove.
3141 (gdbpy_initialize_xmethods): Don't initialize
3142 py_invoke_method_name, py_get_result_type_method_name.
3143
3144 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
3145
3146 * mi/mi-interp.c (mi_record_changed): Add missing braces.
3147
3148 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
3149
3150 * findvar.c (follow_static_link): Check for valid pointer.
3151
3152 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
3153
3154 * NEWS: Mention the new fields in =record-started.
3155 * common/btrace-common.h (btrace_format_short_string): New function
3156 declaration.
3157 * common/btrace-common.c (btrace_format_short_string): New
3158 function.
3159 * mi/mi-interp.c (mi_record_changed): Output method and format
3160 fields in the =record-started record.
3161 * record-btrace.c (record_btrace_open): Adapt record_changed
3162 notification.
3163 * record-full.c (record_full_open): Likewise.
3164 * record.c (cmd_record_stop): Likewise.
3165
3166 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
3167
3168 * windows-nat.c (handle_output_debug_string): Return type of
3169 gdb_signal_from_host() is gdb_signal, not an int.
3170 (windows_get_exec_module_filename): Add pointer casts for C++.
3171
3172 2016-06-02 Tom Tromey <tom@tromey.com>
3173
3174 PR python/18984:
3175 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
3176
3177 2016-06-01 Pedro Alves <palves@redhat.com>
3178
3179 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
3180 (remote_fio_osa)
3181 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
3182 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
3183 Delete.
3184 (remote_fileio_o_quit_handler): New global.
3185 (remote_fileio_quit_handler): New function.
3186 (remote_fileio_reply): Check the quit flag instead of the custom
3187 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
3188 of changing the SIGINT handler.
3189 (do_remote_fileio_request): Override the quit handler instead of
3190 changing the SIGINT handler.
3191
3192 2016-06-01 Nick Clifton <nickc@redhat.com>
3193
3194 * common/common-utils.c (xmalloc_failed): New function. Provided
3195 so that the version in libiberty is not linked in.
3196
3197 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
3198
3199 * infcmd.c (skip_finish_frames): New.
3200 (finish_command): Call skip_finish_frames.
3201
3202 2016-06-01 Yao Qi <yao.qi@linaro.org>
3203
3204 PR remote/19998
3205 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
3206 quit_serial_event_set.
3207
3208 2016-06-01 Joel Brobecker <brobecker@adacore.com>
3209
3210 GDB 7.11.1 released.
3211
3212 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
3213
3214 PR c++/19893
3215 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
3216 fetch_const_value_from_synthetic_pointer): New functions.
3217 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
3218 (pieced_value_funcs): Implement coerce_ref.
3219 * valops.c (value_addr): Call coerce_ref for synthetic references.
3220 * valprint.c (valprint_check_validity): Return true for synthetic
3221 references. Also, don't show "<synthetic pointer>" if they reference
3222 addressable values.
3223 (generic_val_print_ref): Handle synthetic references. Also move some
3224 code to print_ref_address.
3225 (print_ref_address, get_value_addr_contents): New functions.
3226
3227 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3228
3229 PR c++/15231
3230 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
3231 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
3232 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
3233 (read_call_site_scope): Adjust callers.
3234 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
3235 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3236
3237 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
3240 * dwarf2read.c (enum pc_bounds_kind) New.
3241 (dwarf2_get_pc_bounds): Use it in the declaration.
3242 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
3243 to cu_bounds_kind.
3244 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
3245 Adjust callers.
3246 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
3247 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
3248
3249 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
3252 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
3253 deleted.
3254
3255 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 * NEWS (N stop reply): Remove empty line.
3258
3259 2016-05-28 Alan Modra <amodra@gmail.com>
3260
3261 * compile/compile-object-load.c (link_callbacks_multiple_definition,
3262 link_callbacks_warning, link_callbacks_undefined_symbol,
3263 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
3264 link_callbacks_reloc_dangerous,
3265 link_callbacks_unattached_reloc): Return void.
3266
3267 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * opencl-lang.c (evaluate_subexp_opencl): If
3270 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
3271 the returned value in the STRUCTOP_STRUCT case.
3272
3273 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
3274
3275 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
3276 mode, forward the VALUE_LVAL attribute to the returned value in
3277 the STRUCTOP_PTR case.
3278
3279 2016-05-25 Tom Tromey <tom@tromey.com>
3280
3281 * python/py-value.c (value_object_as_number): Use correct spelling
3282 of HAVE_LIBPYTHON2_4.
3283
3284 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3285
3286 * f-typeprint.c (f_type_print_base): Replace 0 by show.
3287
3288 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3289
3290 * f-typeprint.c (f_type_print_base): Decrease show by one.
3291
3292 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3293
3294 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
3295
3296 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
3297
3298 * f-typeprint.c (f_type_print_base): Take print level into account.
3299
3300 2016-05-24 Tom Tromey <tom@tromey.com>
3301
3302 PR python/17386:
3303 * python/py-value.c (value_object_as_number): Add
3304 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
3305
3306 2016-05-24 Tom Tromey <tom@tromey.com>
3307
3308 * python/py-value.c (value_object_as_number): Add
3309 nb_inplace_divide for Python 2.
3310
3311 2016-05-23 Tom Tromey <tom@tromey.com>
3312
3313 PR python/17981:
3314 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
3315 when there are no breakpoints.
3316
3317 2016-05-24 Pedro Alves <palves@redhat.com>
3318
3319 PR gdb/19828
3320 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
3321 resumed, and add the thread to GDB's thread list.
3322
3323 2016-05-24 Pedro Alves <palves@redhat.com>
3324
3325 PR gdb/19828
3326 * linux-nat.c (get_pending_status): If the thread reported the
3327 event to the core and it's pending, use the pending status signal
3328 number.
3329
3330 2016-05-24 Pedro Alves <palves@redhat.com>
3331
3332 PR gdb/19828
3333 * linux-nat.c (lwp_lwpid_htab): New htab.
3334 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3335 (lwp_lwpid_htab_add_lwp): New functions.
3336 (lwp_list): Tweak comment.
3337 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3338 functions.
3339 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3340 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3341 (delete_lwp): Use lwp_list_remove. Remove htab too.
3342 (find_lwp_pid): Search in htab.
3343 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3344 * linux-nat.h (struct lwp_info) <prev>: New field.
3345
3346 2016-05-24 Pedro Alves <palves@redhat.com>
3347
3348 PR gdb/19828
3349 * linux-nat.c (lwp_lwpid_htab): New htab.
3350 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
3351 (lwp_lwpid_htab_add_lwp): New functions.
3352 (lwp_list): Tweak comment.
3353 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
3354 functions.
3355 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
3356 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
3357 (delete_lwp): Use lwp_list_remove. Remove htab too.
3358 (find_lwp_pid): Search in htab.
3359 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
3360 * linux-nat.h (struct lwp_info) <prev>: New field.
3361
3362 2016-05-24 Pedro Alves <palves@redhat.com>
3363
3364 PR gdb/19828
3365 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
3366 field.
3367 (linux_nat_update_thread_list): Don't fetch the core if already
3368 known.
3369
3370 2016-05-24 Pedro Alves <palves@redhat.com>
3371
3372 PR gdb/19828
3373 * linux-tdep.c (find_mapping_size): Delete.
3374 (linux_vsyscall_range_raw): Rewrite reading from
3375 /proc/PID/task/PID/maps directly instead of using
3376 gdbarch_find_memory_regions.
3377
3378 2016-05-24 Pedro Alves <palves@redhat.com>
3379
3380 PR gdb/19828
3381 * linux-nat.c (report_thread_events): New global.
3382 (linux_handle_extended_wait): Report
3383 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
3384 enabled.
3385 (wait_lwp, linux_nat_filter_event): Report all thread exits if
3386 thread event reporting is enabled. Remove comment.
3387 (filter_exit_event): New function.
3388 (linux_nat_wait_1): Use it.
3389 (linux_nat_thread_events): New function.
3390 (linux_nat_add_target): Install it as target_thread_events method.
3391
3392 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
3393
3394 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
3395
3396 2016-05-23 Yao Qi <yao.qi@arm.com>
3397
3398 * arch-utils.c (default_code_of_frame_writable): New function.
3399 * arch-utils.h (default_code_of_frame_writable): Declare.
3400 * arm-tdep.c (arm_code_of_frame_writable): New function.
3401 (arm_gdbarch_init): Install gdbarch method
3402 code_of_frame_writable if the target is M-profile.
3403 * frame.c (skip_unwritable_frames): New function.
3404 * frame.h (skip_unwritable_frames): Declare.
3405 * gdbarch.sh (code_of_frame_writable): New.
3406 * gdbarch.c, gdbarch.h: Re-generated.
3407 * infcmd.c (finish_command): Call skip_unwritable_frames.
3408
3409 2016-05-23 Tom Tromey <tom@tromey.com>
3410
3411 PR python/19438, PR python/18393:
3412 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
3413 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
3414
3415 2016-05-23 Gary Benson <gbenson@redhat.com>
3416
3417 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
3418 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
3419 Remove field.
3420 (try_thread_db_load_1): Remove td_thr_validate initialization.
3421
3422 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
3423
3424 * configure.ac: Search for libutil-freebsd as alternative to libutil.
3425 * configure: Re-generated.
3426
3427 2016-05-19 Andreas Schwab <schwab@suse.de>
3428
3429 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
3430 (libunwind_frame_set_descr): Likewise.
3431 (libunwind_frame_cache): Likewise.
3432 (libunwind_frame_dealloc_cache): Likewise.
3433 (libunwind_frame_sniffer): Likewise.
3434 (libunwind_search_unwind_table): Likewise.
3435 (libunwind_sigtramp_frame_sniffer): Likewise.
3436 (libunwind_get_reg_special): Likewise.
3437 (libunwind_load): Likewise.
3438 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3439 (ia64_linux_store_register): Likewise.
3440 (ia64_linux_xfer_partial): Likewise.
3441 * ia64-tdep.c (ia64_access_reg): Likewise.
3442 (ia64_access_fpreg): Likewise.
3443 (ia64_access_rse_reg): Likewise.
3444 (ia64_access_rse_fpreg): Likewise.
3445
3446 2016-05-18 Tom Tromey <tom@tromey.com>
3447
3448 * rust-lang.c (rust_subscript): Initialize "high".
3449
3450 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3451
3452 PR gdb/20045
3453 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
3454 of target_is_async_p.
3455
3456 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
3457
3458 PR gdb/18077
3459 * mi/mi-main.c (run_one_inferior): Use run target to determine
3460 whether to run async or not.
3461 (mi_cmd_exec_run): Likewise.
3462
3463 2016-05-17 Tom Tromey <tom@tromey.com>
3464
3465 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
3466 * rust-lang.c: Don't include f-lang.h.
3467 (rust_range, rust_compute_range, rust_subscript)
3468 (rust_evaluate_subexp): Update.
3469 * rust-exp.y: Don't include f-lang.h.
3470 (ast_range, convert_ast_to_expression): Update.
3471 * parse.c (operator_length_standard): Update.
3472 * f-lang.h (enum f90_range_type): Move to expression.h.
3473 * f-exp.y: Use OP_RANGE.
3474 * expression.h (enum range_type): New enum; renamed from
3475 f90_range_type.
3476 * expprint.c: Don't include f-lang.h.
3477 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
3478 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
3479
3480 2016-05-17 Tom Tromey <tom@tromey.com>
3481
3482 * NEWS: Add Rust item.
3483
3484 2016-05-17 Tom Tromey <tom@tromey.com>
3485 Manish Goregaokar <manishsmail@gmail.com>
3486
3487 * symtab.c (symbol_find_demangled_name): Handle Rust.
3488 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
3489 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
3490 constants.
3491 * rust-lang.h: New file.
3492 * rust-lang.c: New file.
3493 * rust-exp.y: New file.
3494 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
3495 (dwarf2_compute_name, read_func_scope, read_structure_type)
3496 (read_base_type, read_subrange_type, set_cu_language)
3497 (new_symbol_full, determine_prefix): Handle Rust.
3498 * defs.h (enum language) <language_rust>: New constant.
3499 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
3500 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
3501
3502 2016-05-17 Tom Tromey <tom@tromey.com>
3503
3504 * valprint.h (struct generic_val_print_array) <array_start,
3505 array_end>: New fields.
3506 * valprint.c (generic_val_print_array): Add "decorations"
3507 parameter. Use "array_start", "array_end".
3508 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
3509 * p-valprint.c (p_decorations): Update.
3510 * m2-valprint.c (m2_decorations): Update.
3511 * f-valprint.c (f_decorations): Update.
3512 * c-valprint.c (c_decorations): Update.
3513
3514 2016-05-17 Tom Tromey <tom@tromey.com>
3515
3516 * NEWS: Add "maint selftest" entry.
3517 * selftest.h: New file.
3518 * selftest.c: New file.
3519 * maint.c: Include selftest.h.
3520 (maintenance_selftest): New function.
3521 (_initialize_maint_cmds): Add "maint selftest" command.
3522 * configure.ac (GDB_SELF_TEST): Maybe define.
3523 * config.in, configure: Rebuild.
3524 * Makefile.in (SFILES): Add selftest.c.
3525 (COMMON_OBS): Add selftest.o.
3526
3527 2016-05-17 Tom Tromey <tom@tromey.com>
3528
3529 * expprint.c: Include f-lang.h.
3530 (print_subexp_standard, dump_subexp_body_standard): Handle
3531 OP_F90_RANGE.
3532
3533 2016-05-17 Tom Tromey <tom@tromey.com>
3534
3535 * Makefile.in (init.c): Search .y files for initialization
3536 functions.
3537
3538 2016-05-12 Doug Evans <dje@google.com>
3539
3540 PR symtab/19999
3541 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
3542 add base_offset.
3543
3544 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3545
3546 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
3547 anything.
3548 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
3549
3550 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3551
3552 * arm-tdep.c (arm_elf_make_msymbol_special): Use
3553 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
3554
3555 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
3556
3557 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
3558 variables.
3559 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
3560 (aarch64_scan_prologue): Likewise.
3561 (aarch64_prologue_prev_register): Likewise.
3562 (aarch64_dwarf2_prev_register): Likewise.
3563 (pass_in_v): Likewise.
3564 (aarch64_push_dummy_call): Likewise.
3565 (aarch64_breakpoint_from_pc): Likewise.
3566 (aarch64_return_in_memory): Likewise.
3567 (aarch64_return_value): Likewise.
3568 (aarch64_displaced_step_b_cond): Likewise.
3569 (aarch64_displaced_step_cb): Likewise.
3570 (aarch64_displaced_step_tb): Likewise.
3571 (aarch64_gdbarch_init): Likewise.
3572 (aarch64_process_record): Likewise.
3573 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
3574 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
3575 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3576 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
3577 * amd64-tdep.c (fixup_riprel): Likewise.
3578 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
3579 (amd64_windows_frame_decode_insns): Likewise.
3580 (amd64_windows_frame_cache): Likewise.
3581 (amd64_windows_frame_prev_register): Likewise.
3582 (amd64_windows_frame_this_id): Likewise.
3583 (amd64_windows_init_abi): Likewise.
3584 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
3585 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3586 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
3587 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
3588 (arm_epilogue_frame_prev_register): Likewise.
3589 (arm_record_vdata_transfer_insn): Likewise.
3590 (arm_record_exreg_ld_st_insn): Likewise.
3591 * auto-load.c (execute_script_contents): Likewise.
3592 (print_scripts): Likewise.
3593 * avr-tdep.c (avr_frame_prev_register): Likewise.
3594 (avr_push_dummy_call): Likewise.
3595 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
3596 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3597 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
3598 * break-catch-throw.c (fetch_probe_arguments): Likewise.
3599 * breakpoint.c (breakpoint_xfer_memory): Likewise.
3600 (breakpoint_init_inferior): Likewise.
3601 (breakpoint_inserted_here_p): Likewise.
3602 (software_breakpoint_inserted_here_p): Likewise.
3603 (hardware_breakpoint_inserted_here_p): Likewise.
3604 (bpstat_what): Likewise.
3605 (break_range_command): Likewise.
3606 (save_breakpoints): Likewise.
3607 * coffread.c (coff_symfile_read): Likewise.
3608 * cris-tdep.c (cris_push_dummy_call): Likewise.
3609 (cris_scan_prologue): Likewise.
3610 (cris_register_size): Likewise.
3611 (_initialize_cris_tdep): Likewise.
3612 * d-exp.y: Likewise.
3613 * dbxread.c (dbx_read_symtab): Likewise.
3614 (process_one_symbol): Likewise.
3615 (coffstab_build_psymtabs): Likewise.
3616 (elfstab_build_psymtabs): Likewise.
3617 * dicos-tdep.c (dicos_init_abi): Likewise.
3618 * disasm.c (do_mixed_source_and_assembly): Likewise.
3619 (gdb_disassembly): Likewise.
3620 * dtrace-probe.c (dtrace_process_dof): Likewise.
3621 * dwarf2read.c (error_check_comp_unit_head): Likewise.
3622 (build_type_psymtabs_1): Likewise.
3623 (skip_one_die): Likewise.
3624 (process_imported_unit_die): Likewise.
3625 (dwarf2_physname): Likewise.
3626 (read_file_scope): Likewise.
3627 (setup_type_unit_groups): Likewise.
3628 (create_dwo_cu_reader): Likewise.
3629 (create_dwo_cu): Likewise.
3630 (create_dwo_unit_in_dwp_v1): Likewise.
3631 (create_dwo_unit_in_dwp_v2): Likewise.
3632 (lookup_dwo_unit_in_dwp): Likewise.
3633 (free_dwo_file): Likewise.
3634 (check_producer): Likewise.
3635 (dwarf2_add_typedef): Likewise.
3636 (dwarf2_add_member_fn): Likewise.
3637 (read_unsigned_leb128): Likewise.
3638 (read_signed_leb128): Likewise.
3639 (dwarf2_const_value): Likewise.
3640 (follow_die_sig_1): Likewise.
3641 (dwarf_decode_macro_bytes): Likewise.
3642 * extension.c (restore_active_ext_lang): Likewise.
3643 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
3644 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
3645 * gdbtypes.c (lookup_typename): Likewise.
3646 (resolve_dynamic_range): Likewise.
3647 (check_typedef): Likewise.
3648 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
3649 (h8300_gdbarch_init): Likewise.
3650 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
3651 (hppa_frame_this_id): Likewise.
3652 (_initialize_hppa_tdep): Likewise.
3653 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
3654 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
3655 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
3656 * i386-tdep.c (i386_bnd_type): Likewise.
3657 (i386_gdbarch_init): Likewise.
3658 (i386_mpx_bd_base): Likewise.
3659 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
3660 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
3661 * ia64-tdep.c (examine_prologue): Likewise.
3662 (ia64_frame_cache): Likewise.
3663 (ia64_push_dummy_call): Likewise.
3664 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
3665 (default_print_one_register_info): Likewise.
3666 * infrun.c (infrun_thread_ptid_changed): Likewise.
3667 (thread_still_needs_step_over): Likewise.
3668 (stop_all_threads): Likewise.
3669 (restart_threads): Likewise.
3670 (keep_going_stepped_thread): Likewise.
3671 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
3672 * language.c (language_init_primitive_type_symbols): Likewise.
3673 * linespec.c (add_sal_to_sals): Likewise.
3674 * linux-nat.c (status_callback): Likewise.
3675 (kill_unfollowed_fork_children): Likewise.
3676 (linux_nat_kill): Likewise.
3677 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
3678 * linux-thread-db.c (thread_db_notice_clone): Likewise.
3679 (record_thread): Likewise.
3680 * location.c (string_to_event_location_basic): Likewise.
3681 * m32c-tdep.c (m32c_prev_register): Likewise.
3682 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
3683 * m32r-tdep.c (decode_prologue): Likewise.
3684 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3685 * machoread.c (macho_symtab_read): Likewise.
3686 (macho_symfile_read): Likewise.
3687 (macho_symfile_offsets): Likewise.
3688 * maint.c (set_per_command_cmd): Likewise.
3689 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3690 (mi_cmd_stack_list_variables): Likewise.
3691 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
3692 (output_register): Likewise.
3693 (mi_cmd_execute): Likewise.
3694 (mi_cmd_trace_define_variable): Likewise.
3695 (print_variable_or_computed): Likewise.
3696 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
3697 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
3698 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
3699 * mt-tdep.c (mt_registers_info): Likewise.
3700 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
3701 (nios2_push_dummy_call): Likewise.
3702 (nios2_frame_unwind_cache): Likewise.
3703 (nios2_stub_frame_cache): Likewise.
3704 (nios2_stub_frame_sniffer): Likewise.
3705 (nios2_gdbarch_init): Likewise.
3706 * ppc-ravenscar-thread.c: Likewise.
3707 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
3708 * python/py-evts.c (add_new_registry): Likewise.
3709 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3710 (bpfinishpy_detect_out_scope_cb): Likewise.
3711 * python/py-framefilter.c (py_print_value): Likewise.
3712 * python/py-inferior.c (infpy_write_memory): Likewise.
3713 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
3714 * python/py-infthread.c (thpy_get_ptid): Likewise.
3715 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
3716 (ltpy_get_all_source_lines): Likewise.
3717 (ltpy_is_valid): Likewise.
3718 (ltpy_iternext): Likewise.
3719 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
3720 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
3721 (unwind_infopy_str): Likewise.
3722 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
3723 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3724 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
3725 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
3726 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
3727 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
3728 (s390_frame_prev_register): Likewise.
3729 (s390_dwarf2_frame_init_reg): Likewise.
3730 (s390_record_vr): Likewise.
3731 (s390_process_record): Likewise.
3732 * score-tdep.c (score_push_dummy_call): Likewise.
3733 (score3_analyze_prologue): Likewise.
3734 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3735 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
3736 (sh64_push_dummy_call): Likewise.
3737 (sh64_extract_return_value): Likewise.
3738 (sh64_do_fp_register): Likewise.
3739 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
3740 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
3741 (darwin_solib_read_all_image_info_addr): Likewise.
3742 * solib-dsbt.c (enable_break): Likewise.
3743 * solib-frv.c (enable_break2): Likewise.
3744 (frv_fdpic_find_canonical_descriptor): Likewise.
3745 * solib-svr4.c (svr4_handle_solib_event): Likewise.
3746 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
3747 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
3748 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3749 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3750 * stack.c (read_frame_local): Likewise.
3751 * symfile.c (symbol_file_add_separate): Likewise.
3752 (remove_symbol_file_command): Likewise.
3753 * symmisc.c (maintenance_print_one_line_table): Likewise.
3754 * symtab.c (symbol_cache_flush): Likewise.
3755 (basic_lookup_transparent_type): Likewise.
3756 (sort_search_symbols_remove_dups): Likewise.
3757 * target.c (target_memory_map): Likewise.
3758 (target_detach): Likewise.
3759 (target_resume): Likewise.
3760 (acquire_fileio_fd): Likewise.
3761 (target_store_registers): Likewise.
3762 * thread.c (print_thread_info_1): Likewise.
3763 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
3764 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
3765 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3766 (tilegx_analyze_prologue): Likewise.
3767 (tilegx_stack_frame_destroyed_p): Likewise.
3768 (tilegx_frame_cache): Likewise.
3769 * tracefile.c (trace_save): Likewise.
3770 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
3771 (start_tracing): Likewise.
3772 (print_one_static_tracepoint_marker): Likewise.
3773 * tui/tui.c (tui_enable): Likewise.
3774 * valops.c (value_struct_elt_bitpos): Likewise.
3775 (find_overload_match): Likewise.
3776 (find_oload_champ): Likewise.
3777 * value.c (value_contents_copy_raw): Likewise.
3778 * windows-tdep.c (windows_get_tlb_type): Likewise.
3779 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
3780 * xcoffread.c (record_minimal_symbol): Likewise.
3781 (scan_xcoff_symtab): Likewise.
3782 * xtensa-tdep.c (execute_code): Likewise.
3783 (xtensa_gdbarch_init): Likewise.
3784 (_initialize_xtensa_tdep): Likewise.
3785
3786 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
3787
3788 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
3789 (spu_bfd_open): Likewise.
3790
3791 2016-05-04 Yao Qi <yao.qi@linaro.org>
3792
3793 PR gdb/19947
3794 * corefile.c (read_memory): Rename it to ...
3795 (read_memory_object): ... it. Add parameter object.
3796 (read_memory): Call read_memory_object.
3797 (read_stack): Likewise.
3798 (read_code): Likewise.
3799
3800 2016-05-03 Yunlian Jiang <yunlian@google.com>
3801 Doug Evans <dje@google.com>
3802
3803 PR symtab/19914
3804 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
3805 is separate debug file.
3806
3807 2016-05-03 Don Breazeal <donb@codesourcery.com>
3808
3809 * serial.h (gdb_pipe): Fix argument names in comment.
3810
3811 2016-05-03 Pedro Alves <palves@redhat.com>
3812
3813 PR python/20037
3814 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
3815 oldloc.
3816
3817 2016-05-03 Pedro Alves <palves@redhat.com>
3818
3819 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
3820 code.
3821
3822 2016-05-03 Pedro Alves <palves@redhat.com>
3823
3824 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
3825 * configure: Regenerate.
3826
3827 2016-05-03 Pedro Alves <palves@redhat.com>
3828
3829 * configure.ac (checking for the dynamic export flag): Add
3830 $PYTHON_CPPFLAGS to CPPFLAGS.
3831 * configure: Regenerate.
3832
3833 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3834
3835 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
3836 warning.
3837 (find_pc_mapped_section): Likewise.
3838 (list_overlays_command): Likewise.
3839
3840 2016-05-02 Eli Zaretskii <eliz@gnu.org>
3841
3842 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
3843 error in allocation of space for "$HOME/.gdbinit" string. This
3844 caused GDB to abort on startup whenever a '~/gdb.ini' file was
3845 actually found, because xsnprintf would hit an assertion
3846 violation.
3847
3848 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
3849
3850 * cli/cli-decode.c (help_cmd_list): Do not list commands that
3851 are deprecated.
3852
3853 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
3856
3857 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
3858
3859 * c-valprint.c (c_value_print): Always convert val back to reference
3860 type if we converted it to a pointer type.
3861
3862 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
3863
3864 * configure.ac: Enhance configure check for babeltrace to reject
3865 non-C++-enabled versions.
3866 * configure: Regenerate.
3867
3868 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
3869 Keven Boell <keven.boell@intel.com>
3870 Bernhard Heckel <bernhard.heckel@intel.com>
3871
3872 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
3873 function.
3874 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
3875 (f77_print_array_1): Use value_subscript to subscript a
3876 value array.
3877 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
3878 (f_val_print): Use value_field to construct a field value.
3879
3880 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3881
3882 * valarith.c (value_address): Resolve dynamic types.
3883
3884 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
3885 Keven Boell <kevel.boell@intel.com>
3886
3887 * NEWS: Add new supported features for fortran.
3888 * gdbtypes.c (remove_dyn_prop): New.
3889 (resolve_dynamic_struct): Keep type length for fortran structs.
3890 * gdbtypes.h: Forward declaration of new function.
3891 * value.c (value_address): Return dynamic resolved location of a value.
3892 (set_value_component_location): Adjust the value address
3893 for single value prints.
3894 (value_primitive_field): Support value types with a dynamic location.
3895 (set_internalvar): Remove dynamic location property of
3896 internal variables.
3897
3898 2016-04-25 Pedro Alves <palves@redhat.com>
3899 Yao Qi <yao.qi@linaro.org>
3900
3901 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
3902 object. Insert it if it is not inserted yet. Increase the
3903 refcount and link it into the proc's raw breakpoint list.
3904
3905 2016-04-25 Yao Qi <yao.qi@linaro.org>
3906
3907 * breakpoint.c (should_be_inserted): Return 0 if the location's
3908 owner is not single step breakpoint or single step breakpoint's
3909 thread isn't the thread which is stepping past a breakpoint.
3910 * gdbarch.sh (software_single_step): Update comments.
3911 * gdbarch.h: Regenerated.
3912 * infrun.c (struct step_over_info) <thread>: New field.
3913 (set_step_over_info): New argument 'thread'. Callers updated.
3914 (clear_step_over_info): Set field thread to -1.
3915 (thread_is_stepping_over_breakpoint): New function.
3916 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
3917
3918 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3919
3920 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
3921 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
3922
3923 2016-04-22 Yao Qi <yao.qi@linaro.org>
3924
3925 * valops.c (read_value_memory): New local variable 'stack'.
3926 Set it to either TARGET_OBJECT_STACK_MEMORY or
3927 TARGET_OBJECT_MEMORY.
3928
3929 2016-04-22 Pedro Alves <palves@redhat.com>
3930
3931 * ada-exp.y: Remove all yy symbol remappings.
3932 (GDB_YY_REMAP_PREFIX): Define.
3933 Include "yy-remap.h".
3934 * ada-lang.c (ada_language_defn): Adjust.
3935 * ada-lang.h (ada_error): Rename to ...
3936 (ada_yyerror): ... this.
3937 * c-exp.y: Remove all yy symbol remappings.
3938 (GDB_YY_REMAP_PREFIX): Define.
3939 Include "yy-remap.h".
3940 * c-lang.c (c_language_defn, cplus_language_defn)
3941 (asm_language_defn, minimal_language_defn): Adjust.
3942 * c-lang.h (c_error): Rename to ...
3943 (c_yyerror): ... this.
3944 * d-exp.y: Remove all yy symbol remappings.
3945 (GDB_YY_REMAP_PREFIX): Define.
3946 Include "yy-remap.h".
3947 * d-lang.c (d_language_defn): Adjust.
3948 * d-lang.h (d_error): Rename to ...
3949 (d_yyerror): ... this.
3950 * f-exp.y: Remove all yy symbol remappings.
3951 (GDB_YY_REMAP_PREFIX): Define.
3952 Include "yy-remap.h".
3953 * f-lang.c (f_language_defn): Adjust.
3954 * f-lang.h (f_error): Rename to ...
3955 (f_yyerror): ... this.
3956 * go-exp.y: Remove all yy symbol remappings.
3957 (GDB_YY_REMAP_PREFIX): Define.
3958 Include "yy-remap.h".
3959 * go-lang.c (go_language_defn): Adjust.
3960 * go-lang.h (go_error): Rename to ...
3961 (go_yyerror): ... this.
3962 * jv-exp.y: Remove all yy symbol remappings.
3963 (GDB_YY_REMAP_PREFIX): Define.
3964 Include "yy-remap.h".
3965 * jv-lang.c (java_language_defn): Adjust.
3966 * jv-lang.h (java_error): Rename to ...
3967 (java_yyerror): ... this.
3968 * m2-exp.y: Remove all yy symbol remappings.
3969 (GDB_YY_REMAP_PREFIX): Define.
3970 Include "yy-remap.h".
3971 * m2-lang.c (m2_language_defn): Adjust.
3972 * m2-lang.h (m2_error): Rename to ...
3973 (m2_yyerror): ... this.
3974 * objc-exp.y: Remove all yy symbol remappings.
3975 (GDB_YY_REMAP_PREFIX): Define.
3976 Include "yy-remap.h".
3977 * objc-lang.c (objc_language_defn): Adjust.
3978 * opencl-lang.c (opencl_language_defn): Adjust.
3979 * p-exp.y: Remove all yy symbol remappings.
3980 (GDB_YY_REMAP_PREFIX): Define.
3981 Include "yy-remap.h".
3982 * p-lang.c (pascal_language_defn): Adjust.
3983 * p-lang.h (pascal_error): Rename to ...
3984 (pascal_yyerror): ... this.
3985 * yy-remap.h: New file.
3986
3987 2016-04-22 Pedro Alves <palves@redhat.com>
3988
3989 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
3990 the foreign frames issue.
3991 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
3992
3993 2016-04-22 Pedro Alves <palves@redhat.com>
3994
3995 * common/common-exceptions.c (enum catcher_state, struct catcher)
3996 (current_catcher): Define in C++ mode too.
3997 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
3998 throw_exception.
3999 (throw_exception_sjlj, throw_exception_cxx): New functions,
4000 factored out from throw_exception.
4001 (throw_exception): Reimplement.
4002 * common/common-exceptions.h (exceptions_state_mc_init)
4003 (exceptions_state_mc_action_iter)
4004 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
4005 Declare in C++ mode too.
4006 (TRY): Rename to ...
4007 (TRY_SJLJ): ... this.
4008 (CATCH): Rename to ...
4009 (CATCH_SJLJ): ... this.
4010 (END_CATCH): Rename to ...
4011 (END_CATCH_SJLJ): ... this.
4012 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
4013 equivalents.
4014 (throw_exception): Update comments.
4015 (throw_exception_sjlj): Declare.
4016 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
4017 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
4018 intercepted exception.
4019 (gdb_rl_callback_handler): New function.
4020 (gdb_rl_callback_handler_install): Always install
4021 gdb_rl_callback_handler as readline callback.
4022
4023 2016-04-22 Pedro Alves <palves@redhat.com>
4024
4025 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
4026 (gdb_rl_callback_read_char_wrapper): ... this.
4027 (change_line_handler, gdb_setup_readline): Adjust.
4028
4029 2016-04-22 Yao Qi <yao.qi@linaro.org>
4030
4031 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
4032 bits 20 to 23.
4033
4034 2016-04-22 Joel Brobecker <brobecker@adacore.com>
4035
4036 * MAINTAINER: Remove myself as AIX Maintainer.
4037
4038 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
4039
4040 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
4041 `num_regs' to 90 rather than 79. Where a target description is
4042 present adjust the setting appropriately.
4043
4044 2016-04-21 Pedro Alves <palves@redhat.com>
4045
4046 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
4047 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
4048
4049 2016-04-21 Pedro Alves <palves@redhat.com>
4050
4051 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
4052 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
4053 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
4054 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
4055 pointer, and cast return to gdb_byte pointer.
4056
4057 2016-04-21 Pedro Alves <palves@redhat.com>
4058
4059 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
4060 void * instead of gdb_byte *.
4061
4062 2016-04-21 Pedro Alves <palves@redhat.com>
4063
4064 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
4065 (file_file_name, file_full_name): Add char * cast to sentinel in
4066 concat/reconcat calls.
4067 * event-top.c (top_level_prompt): Likewise.
4068 * guile/guile.c (initialize_scheme_side): Likewise.
4069 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
4070 * macrotab.c (macro_source_fullname): Likewise.
4071 * main.c (get_init_files, captured_main): Likewise.
4072 * psymtab.c (psymtab_to_fullname): Likewise.
4073 * python/python.c (_initialize_python)
4074 (gdbpy_finish_initialization): Likewise.
4075 * source.c (symtab_to_fullname): Likewise.
4076
4077 2016-04-20 Pedro Alves <palves@redhat.com>
4078
4079 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
4080 * configure: Renegerate.
4081
4082 2016-04-20 Pedro Alves <palves@redhat.com>
4083
4084 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
4085
4086 2016-04-20 Pedro Alves <palves@redhat.com>
4087
4088 * aarch64-tdep.c (aarch64_record_load_store): Change type of
4089 'reg_rm_val' local to ULONGEST.
4090
4091 2016-04-20 Pedro Alves <palves@redhat.com>
4092
4093 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
4094
4095 2016-04-20 Doug Evans <xdje42@gmail.com>
4096
4097 * symmisc.c (dump_symtab_1): Print owning compunit for identical
4098 blockvectors.
4099
4100 2016-04-20 Yao Qi <yao.qi@linaro.org>
4101
4102 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
4103
4104 2016-04-20 Yao Qi <yao.qi@linaro.org>
4105
4106 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
4107 * arch/arm-linux.h: ... here.
4108
4109 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4110
4111 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
4112 to void *.
4113 (amd64bsd_store_inferior_registers): Likewise.
4114 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
4115 (resume_all_threads_cb): Likewise.
4116 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
4117 (i386bsd_collect_gregset): Likewise.
4118 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
4119 (i386bsd_store_inferior_registers): Likewise.
4120
4121 2016-04-19 John Baldwin <jhb@FreeBSD.org>
4122
4123 * main.c (setup_alternate_signal_stack): Cast to char *.
4124
4125 2016-04-19 Doug Evans <xdje42@gmail.com>
4126
4127 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
4128 All callers updated.
4129
4130 2016-04-19 Doug Evans <xdje42@gmail.com>
4131
4132 PR gdb/17911
4133 * source.c (is_regular_file): New arg errno_ptr.
4134 All callers updated.
4135
4136 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
4137
4138 * linux-record.c (record_linux_system_call): Merge handling for
4139 readlink/recv/read and pipe/pipe2.
4140
4141 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
4142
4143 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
4144 * features/i386/amd64-mpx.xml: Remove AVX feature.
4145 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
4146 * features/i386/i386-mpx.xml: Remove AVX feature.
4147 * features/i386/amd64-mpx-linux.c: Regenerate.
4148 * features/i386/amd64-mpx.c: Regenerate.
4149 * features/i386/i386-mpx-linux.c: Regenerate.
4150 * features/i386/i386-mpx.c: Regenerate.
4151 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
4152 * regformats/i386/amd64-mpx.dat: Regenerate.
4153 * regformats/i386/i386-mpx-linux.dat: Regenerate.
4154 * regformats/i386/i386-mpx.dat: Regenerate.
4155
4156 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4157
4158 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
4159 New include.
4160 (amd64_linux_core_read_description): Add case for
4161 X86_XSTATE_AVX_MPX_MASK.
4162 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
4163 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
4164 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
4165 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4166 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
4167 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
4168 (X86_XSTATE_AVX_MPX_MASK): New case.
4169 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
4170 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
4171 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
4172 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
4173 New expedites.
4174 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
4175 include.
4176 (i386_linux_core_read_description): Add case
4177 X86_XSTATE_AVX_MPX_MASK.
4178 (_initialize_i386_linux_tdep): Call
4179 initialize_tdesc_i386_avx_mpx_linux.
4180 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
4181 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
4182 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
4183 * x86-linux-nat.c (x86_linux_read_description): Add case for
4184 X86_XSTATE_AVX_MPX_MASK.
4185 * features/i386/amd64-avx-mpx-linux.xml: New file.
4186 * features/i386/i386-avx-mpx-linux.xml: New file.
4187 * features/i386/i386-avx-mpx.xml: New file.
4188 * features/i386/amd64-avx-mpx.xml: New file.
4189 * features/i386/amd64-avx-mpx-linux.c: Generated.
4190 * features/i386/amd64-avx-mpx.c: Generated.
4191 * features/i386/i386-avx-mpx-linux.c: Generated.
4192 * features/i386/i386-avx-mpx.c: Generated.
4193 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
4194 * regformats/i386/amd64-avx-mpx.dat: Generated.
4195 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
4196 * regformats/i386/i386-avx-mpx.dat: Generated.
4197
4198 2016-04-18 Pedro Alves <palves@redhat.com>
4199
4200 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
4201 * configure: Regenerate.
4202
4203 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
4204
4205 * valops.c (value_addr): For C++ references, set the copied value's
4206 enclosing_type as well.
4207
4208 2016-04-18 Yao Qi <yao.qi@linaro.org>
4209
4210 Revert:
4211 2016-04-15 Yao Qi <yao.qi@linaro.org>
4212
4213 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4214 PC is far from the end of function.
4215
4216 2016-04-16 Pedro Alves <palves@redhat.com>
4217
4218 * ada-exp.y (yydefred): Define as ada_yydefred.
4219
4220 2016-04-15 Pedro Alves <palves@redhat.com>
4221
4222 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
4223 'name_str' locals.
4224
4225 2016-04-15 Pedro Alves <palves@redhat.com>
4226
4227 * btrace.c (pt_btrace_insn_flags): Change return type to
4228 btrace_insn_flags. Use btrace_insn_flags for local.
4229
4230 2016-04-15 Pedro Alves <palves@redhat.com>
4231
4232 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
4233 accept TRAP_BRKPT.
4234 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
4235
4236 2016-04-15 Yao Qi <yao.qi@linaro.org>
4237
4238 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
4239 PC is far from the end of function.
4240
4241 2016-04-14 Pedro Alves <palves@redhat.com>
4242
4243 * cli/cli-cmds.c (alias_usage_error): New function.
4244 (alias_command): Use it.
4245 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
4246 ctf_save_write_metadata call.
4247
4248 2016-04-14 Pedro Alves <palves@redhat.com>
4249
4250 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
4251 argument to function expecting LONGEST.
4252 * value.c (unpack_long): Add casts to LONGEST.
4253
4254 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
4255
4256 * exec.c (exec_file_locate_attach): Guard a couple functions
4257 that can throw errors.
4258 (exception_print_same): New helper function.
4259
4260 2016-04-13 Pedro Alves <palves@redhat.com>
4261
4262 PR remote/19840
4263 * remote.c (struct remote_state) <last_resume_exec_dir>: New
4264 field.
4265 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
4266 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
4267 (remote_resume): Store the last execution direction.
4268 (remote_execution_direction): New function.
4269 (init_remote_ops): Install it as to_execution_direction target_ops
4270 method.
4271
4272 2016-04-12 Pedro Alves <palves@redhat.com>
4273
4274 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
4275 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
4276
4277 2016-04-12 Pedro Alves <palves@redhat.com>
4278
4279 * common/common-exceptions.c (struct catcher) <buf>: Now a
4280 'jmp_buf' instead of SIGJMP_BUF.
4281 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4282 (throw_exception): Use longjmp instead of SIGLONGJMP.
4283 * common/common-exceptions.h: Include <setjmp.h> instead of
4284 "gdb_setjmp.h".
4285 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
4286 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
4287 SIGSETJMP.
4288 * cp-support.c: Include "gdb_setjmp.h".
4289
4290 2016-04-12 Pedro Alves <palves@redhat.com>
4291
4292 * common/common-exceptions.c (exception_rethrow): Remove
4293 prepare_to_throw_exception call.
4294 * common/common-exceptions.h (prepare_to_throw_exception): Delete
4295 declaration.
4296 * exceptions.c (prepare_to_throw_exception): Delete.
4297
4298 2016-04-12 Pedro Alves <palves@redhat.com>
4299
4300 * target.c (target_check_pending_interrupt): Delete.
4301 * target.h (struct target_ops) <to_check_pending_interrupt>:
4302 Remove method.
4303 (target_check_pending_interrupt): Remove declaration.
4304 * target-delegates.c: Regenerate.
4305
4306 2016-04-12 Pedro Alves <palves@redhat.com>
4307
4308 * defs.h: Update comments on SIGINT handling.
4309 (immediate_quit): Delete declaration.
4310 * event-loop.c (call_async_signal_handler): Delete.
4311 * event-loop.h (call_async_signal_handler): Delete declaration.
4312 (mark_async_signal_handler): Update comments.
4313 (gdb_call_async_signal_handler): Delete declaration.
4314 * event-top.c (handle_sigint): Call mark_async_signal_handler
4315 instead of gdb_call_async_signal_handler.
4316 * exceptions.c (prepare_to_throw_exception): Remove reference to
4317 immediate_quit.
4318 (exception_fprintf): Remove comments about immediate_quit.
4319 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
4320 (gdb_select): Don't wait on sigint_event.
4321 (gdb_call_async_signal_handler): Delete.
4322 (_initialize_mingw_hdep): Delete.
4323 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
4324 * utils.c (immediate_quit): Delete.
4325
4326 2016-04-12 Pedro Alves <palves@redhat.com>
4327
4328 * defs.h (quit_handler_ftype, quit_handler)
4329 (make_cleanup_override_quit_handler, default_quit_handler): New.
4330 (QUIT): Adjust comments.
4331 * event-top.c (default_quit_handler): New function.
4332 (quit_handler): New global.
4333 (struct quit_handler_cleanup_data): New.
4334 (restore_quit_handler, restore_quit_handler_dtor)
4335 (make_cleanup_override_quit_handler): New.
4336 (async_request_quit): Call QUIT.
4337 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
4338 (async_sigint_remote_twice_token, async_sigint_remote_token):
4339 Delete.
4340 (remote_close): Update comments.
4341 (remote_start_remote): Don't set immediate_quit. Set starting_up
4342 earlier.
4343 (remote_serial_quit_handler, remote_unpush_and_throw): New
4344 functions.
4345 (remote_open_1): Clear got_ctrlc_during_io. Set
4346 remote_async_terminal_ours_p unconditionally.
4347 (async_initialize_sigint_signal_handler)
4348 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
4349 (remote_check_pending_interrupt, async_remote_interrupt)
4350 (async_remote_interrupt_twice)
4351 (async_cleanup_sigint_signal_handler, ofunc)
4352 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
4353 (remote_terminal_inferior, remote_terminal_ours): Remove async
4354 checks.
4355 (remote_wait_as): Don't install a SIGINT handler in sync mode.
4356 (readchar, remote_serial_write): Override the quit handler with
4357 remote_serial_quit_handler.
4358 (getpkt_or_notif_sane_1): Don't call QUIT.
4359 (initialize_remote_ops): Don't install
4360 remote_check_pending_interrupt.
4361 (_initialize_remote): Don't create async_sigint_remote_token and
4362 async_sigint_remote_twice_token.
4363 * ser-base.c (ser_base_wait_for): Call QUIT and use
4364 interruptible_select.
4365 (ser_base_write): Call QUIT.
4366 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
4367 * ser-unix.c (wait_for): Don't use VTIME. Always take the
4368 gdb_select path, but call QUIT and interruptible_select.
4369 * utils.c (maybe_quit): Call the current quit handler. Don't call
4370 target_check_pending_interrupt.
4371 (defaulted_query, prompt_for_continue): Override the quit handler
4372 with the default quit handler.
4373
4374 2016-04-12 Pedro Alves <palves@redhat.com>
4375
4376 * tui/tui-hooks.c (tui_target_has_run): Delete.
4377 (tui_about_to_proceed): Delete.
4378 (tui_about_to_proceed_observer): Delete.
4379 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
4380 about_to_proceed observer.
4381
4382 2016-04-12 Pedro Alves <palves@redhat.com>
4383
4384 * mi/mi-interp.c (mi_new_thread): Put
4385 target_terminal_ours_for_output in effect while outputting.
4386 (mi_thread_exit): Use target_terminal_ours_for_output instead of
4387 target_terminal_ours.
4388 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
4389 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
4390 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
4391 (mi_breakpoint_created, mi_breakpoint_deleted)
4392 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
4393 (mi_command_param_changed, mi_memory_changed)
4394 (report_initial_inferior): Use target_terminal_ours_for_output
4395 instead of target_terminal_ours. Restore terminal settings.
4396 * mi/mi-main.c (mi_execute_command): Use
4397 target_terminal_ours_for_output instead of target_terminal_ours.
4398 Restore terminal settings.
4399
4400 2016-04-12 Pedro Alves <palves@redhat.com>
4401
4402 PR gdb/19828
4403 * gnu-nat.c (inf_validate_task_sc): Don't call
4404 target_terminal_ours / target_terminal_inferior around query.
4405 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
4406 call target_terminal_ours / target_terminal_inferior around
4407 yquery.
4408 * linux-record.c (record_linux_system_call): Don't call
4409 target_terminal_ours / target_terminal_inferior around yquery.
4410 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
4411 / target_terminal_inferior around query.
4412 * record-full.c (record_full_check_insn_num): Remove
4413 'set_terminal' parameter. Don't call target_terminal_ours /
4414 target_terminal_inferior around query.
4415 (record_full_message, record_full_registers_change)
4416 (record_full_xfer_partial): Adjust.
4417 * remote.c (interrupt_query): Don't call target_terminal_ours /
4418 target_terminal_inferior around query.
4419 * utils.c (defaulted_query): Install cleanup to restore target
4420 terminal. Put target_terminal_ours_for_output in effect while
4421 defaulted producing, and target_terminal_ours in in effect while
4422 handling input.
4423 (prompt_for_continue): Install cleanup to restore target terminal.
4424 Put target_terminal_ours in in effect while handling input.
4425
4426 2016-04-12 Pedro Alves <palves@redhat.com>
4427
4428 * utils.c (defaulted_query, prompt_for_continue): Free temporary
4429 strings with cleanups, instead of xfree.
4430
4431 2016-04-12 Pedro Alves <palves@redhat.com>
4432
4433 * utils.c (vwarning, internal_vproblem): Use
4434 make_cleanup_restore_target_terminal and
4435 target_terminal_ours_for_output.
4436
4437 2016-04-12 Pedro Alves <palves@redhat.com>
4438
4439 * infcmd.c (post_create_inferior, prepare_one_step): Use
4440 target_terminal_ours_for_output instead of target_terminal_ours.
4441
4442 2016-04-12 Pedro Alves <palves@redhat.com>
4443
4444 * exceptions.c (print_flush): Use target_terminal_ours_for_output
4445 instead of target_terminal_ours, and restore target terminal with
4446 a cleanup.
4447
4448 2016-04-12 Pedro Alves <palves@redhat.com>
4449
4450 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
4451 instead of target_terminal_ours, and restore target terminal with
4452 a cleanup.
4453
4454 2016-04-12 Pedro Alves <palves@redhat.com>
4455
4456 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
4457 functions.
4458 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
4459
4460 2016-04-12 Pedro Alves <palves@redhat.com>
4461
4462 * ser-base.c (fd_event): Retry read_prim on EINTR.
4463 (do_ser_base_readchar): Retry read_prim on EINTR.
4464 (ser_base_write): Retry write_prim on EINTR.
4465 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
4466 (ser_unix_write_prim): Remove comment.
4467
4468 2016-04-12 Pedro Alves <palves@redhat.com>
4469
4470 * remote.c (remote_pass_ctrlc): New function.
4471 (init_remote_ops): Install it.
4472 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
4473 target.
4474 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
4475 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
4476 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
4477 * target-delegates.c: Regenerate.
4478
4479 2016-04-12 Pedro Alves <palves@redhat.com>
4480
4481 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
4482 mode.
4483 * linux-nat.c (linux_nat_interrupt): Delete.
4484 (linux_nat_add_target): Don't install linux_nat_interrupt.
4485 * remote.c (remote_interrupt_ns): Change return type to void.
4486 Throw error if interrupting the target is not supported.
4487 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
4488
4489 2016-04-12 Pedro Alves <palves@redhat.com>
4490
4491 * defs.h (clear_quit_flag): Remove declaration.
4492 * extension-priv.h (struct extension_language_ops)
4493 <clear_quit_flag>: Remove field and update comments.
4494 * extension.c (clear_quit_flag): Delete.
4495 * guile/guile.c (guile_extension_ops): Adjust.
4496 * python/python.c (python_extension_ops): Adjust.
4497 (gdbpy_clear_quit_flag): Delete.
4498
4499 2016-04-12 Pedro Alves <palves@redhat.com>
4500
4501 * main.c (captured_main): Don't clear the quit flag.
4502
4503 2016-04-12 Pedro Alves <palves@redhat.com>
4504
4505 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
4506 flag.
4507
4508 2016-04-12 Pedro Alves <palves@redhat.com>
4509
4510 * event-top.c (command_handler): Don't call clear_quit_flag.
4511
4512 2016-04-12 Pedro Alves <palves@redhat.com>
4513
4514 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
4515 * remote.c (remote_wait_as): Don't call clear_quit_flag.
4516
4517 2016-04-12 Pedro Alves <palves@redhat.com>
4518
4519 * python/python.c: Include "ser-event.h".
4520 (gdbpy_event_fds): Delete.
4521 (gdbpy_serial_event): New.
4522 (gdbpy_run_events): Change prototype. Use serial_event_clear
4523 instead of serial_readchar.
4524 (gdbpy_post_event): Use serial_event_set instead of serial_write.
4525 (gdbpy_initialize_events): Use make_serial_event instead of
4526 serial_pipe.
4527
4528 2016-04-12 Pedro Alves <palves@redhat.com>
4529
4530 * defs.h: Extend QUIT-related comments to mention
4531 interruptible_select.
4532 (quit_serial_event_set, quit_serial_event_clear): Declare.
4533 * event-top.c: Include "ser-event.h" and "gdb_select.h".
4534 (quit_serial_event): New global.
4535 (async_init_signals): Make quit_serial_event.
4536 (quit_serial_event_set, quit_serial_event_clear)
4537 (quit_serial_event_fd, interruptible_select): New functions.
4538 * extension.c (set_quit_flag): Set the quit serial event.
4539 (check_quit_flag): Clear the quit serial event.
4540 * gdb_select.h (interruptible_select): New declaration.
4541 * guile/scm-ports.c (ioscm_input_waiting): Use
4542 interruptible_select instead of gdb_select.
4543 * top.c (gdb_readline_no_editing): Likewise.
4544 * ui-file.c (stdio_file_read): Likewise.
4545
4546 2016-04-12 Pedro Alves <palves@redhat.com>
4547
4548 * event-loop.c: Include "ser-event.h".
4549 (async_signal_handlers_serial_event): New global.
4550 (async_signals_handler, initialize_async_signal_handlers): New
4551 functions.
4552 (mark_async_signal_handler): Set
4553 async_signal_handlers_serial_event.
4554 (invoke_async_signal_handlers): Clear
4555 async_signal_handlers_serial_event.
4556 * event-top.c (async_init_signals): Call
4557 initialize_async_signal_handlers.
4558
4559 2016-04-12 Pedro Alves <palves@redhat.com>
4560
4561 * Makefile.in (SFILES): Add ser-event.c.
4562 (HFILES_NO_SRCDIR): Add ser-event.h.
4563 (COMMON_OBS): Add ser-event.o.
4564 * ser-event.c, ser-event.h: New files.
4565 * serial.c (new_serial): New function, factored out from
4566 (serial_fdopen_ops): ... this.
4567 (serial_open_ops_1): New function, factored out from
4568 (serial_open): ... this.
4569 (serial_open_ops): New function.
4570 * serial.h (struct serial): Forware declare.
4571 (serial_open_ops): New declaration.
4572
4573 2016-04-12 Pedro Alves <palves@redhat.com>
4574
4575 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4576 Remove references to name.
4577 * serial.h (struct serial) <name>: Delete.
4578
4579 2016-04-12 Pedro Alves <palves@redhat.com>
4580
4581 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
4582 Delete.
4583 (async_remote_fileio_interrupt): Delete.
4584 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
4585 handler. Instead just always set the ctrl_c flag.
4586 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
4587 re-enabling the SIGINT handler.
4588 (remote_fileio_func_open, remote_fileio_func_close)
4589 (remote_fileio_func_read, remote_fileio_func_write)
4590 (remote_fileio_func_lseek, remote_fileio_func_rename)
4591 (remote_fileio_func_unlink, remote_fileio_func_stat)
4592 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
4593 (remote_fileio_func_isatty, remote_fileio_func_system)
4594 (remote_fileio_request): Remove references to
4595 remote_fio_no_longjmp.
4596 (initialize_remote_fileio): Don't create an async signal handler.
4597
4598 2016-04-12 Pedro Alves <palves@redhat.com>
4599
4600 * event-top.c (stdin_event_handler): Call QUIT;
4601 (prompt_for_continue): Don't run with immediate_quit set.
4602
4603 2016-04-12 Pedro Alves <palves@redhat.com>
4604
4605 * tui/tui-io.c (tui_redisplay_readline): Check
4606 gdb_in_secondary_prompt_p instead of immediate_quit.
4607 * tui/tui.c: Include top.h.
4608 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
4609 immediate_quit.
4610
4611 2016-04-12 Pedro Alves <palves@redhat.com>
4612
4613 * top.c (read_command_file): Inline command_loop here.
4614 (command_loop): Delete.
4615
4616 2016-04-12 Pedro Alves <palves@redhat.com>
4617
4618 * top.c: Include "gdb_select.h".
4619 (gdb_readline_no_editing): Wait for input with gdb_select instead
4620 of blocking in fgetc.
4621 (command_line_input): Don't set immediate_quit.
4622
4623 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
4624
4625 * value.c (value_next): Make pass-by-reference parameters const-correct.
4626 (value_parent): Likewise.
4627 (value_enclosing_type): Likewise.
4628 (value_lazy): Likewise.
4629 (value_stack): Likewise.
4630 (value_embedded_offset): Likewise.
4631 (value_pointed_to_offset): Likewise.
4632 (value_raw_address): Likewise.
4633 (deprecated_value_modifiable): Likewise.
4634 (value_free_to_mark): Likewise.
4635 (value_release_to_mark): Likewise.
4636 (internalvar_name): Likewise.
4637 (readjust_indirect_value_type): Likewise.
4638 (value_initialized): Likewise.
4639 * value.h (value_next): Likewise.
4640 (value_parent): Likewise.
4641 (value_enclosing_type): Likewise.
4642 (value_lazy): Likewise.
4643 (value_stack): Likewise.
4644 (value_embedded_offset): Likewise.
4645 (value_pointed_to_offset): Likewise.
4646 (value_raw_address): Likewise.
4647 (deprecated_value_modifiable): Likewise.
4648 (value_free_to_mark): Likewise.
4649 (value_release_to_mark): Likewise.
4650 (internalvar_name): Likewise.
4651 (readjust_indirect_value_type): Likewise.
4652 (value_initialized): Likewise.
4653
4654 2016-04-07 Yao Qi <yao.qi@linaro.org>
4655
4656 * record-full.c (record_full_insert_breakpoint): Return
4657 early if entry on the address is found in
4658 record_full_breakpoints.
4659
4660 2016-04-07 Yao Qi <yao.qi@linaro.org>
4661
4662 * record-full.c (record_full_insert_breakpoint): Set
4663 bp_tgt->reqstd_address and bp_tgt->placed_size.
4664
4665 2016-04-06 Don Breazeal <donb@codesourcery.com>
4666
4667 * value.c (value_actual_type): Don't try to get rtti type
4668 of the value if it has been optimized out.
4669 (value_optimized_out): If a memory access error occurs,
4670 just check vaue->optimized_out.
4671
4672 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4673
4674 Revert the previous commit adding unknown_v_replies_ok.
4675
4676 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4677
4678 * remote.c (struct remote_state): New field unknown_v_replies_ok.
4679 (packet_config_support): Read it.
4680 (remote_start_remote): Set it.
4681
4682 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4683
4684 * remote.c: Revert check-in by a mistake in the previous commit.
4685
4686 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4687 Pedro Alves <palves@redhat.com>
4688
4689 * exec.c (exec_file_locate_attach): Print warning for unsupported
4690 target_pid_to_exec_file.
4691 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
4692 message part.
4693
4694 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
4695
4696 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
4697 trailing spaces.
4698
4699 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
4700
4701 PR gdb/19820
4702 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
4703 the type of BINOP_REPEAT's second operand.
4704
4705 2016-03-31 Yichao Yu <yyc1992@gmail.com>
4706
4707 PR gdb/19858
4708 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
4709 got the breakpoint at the right address.
4710 (jit_inferior_created): New function.
4711 (_initialize_jit): Install jit_inferior_created as
4712 inferior_created observer.
4713
4714 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4715
4716 * NEWS: Mention support for tracepoints on powerpc*-linux.
4717
4718 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
4719
4720 PR python/19743
4721 * python/python.c (execute_gdb_command): Use console uiout
4722 when executing gdb command.
4723 * utils.c (restore_ui_out_closure): New structure.
4724 (do_restore_ui_out): New function.
4725 (make_cleanup_restore_ui_out): Likewise.
4726 * utils.h (make_cleanup_restore_ui_out): Declare.
4727
4728 2016-03-31 Pedro Alves <palves@redhat.com>
4729
4730 * NEWS: Mention that support for "target m32rsdi", "target mips",
4731 "target pmon", "target ddb", "target rockhopper", and "target lsi"
4732 was removed.
4733 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
4734 remote-mips.o.
4735 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
4736 * configure.tgt: Remove all references to remote-m32r-sdi.o and
4737 remote-mips.o.
4738 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
4739 function.
4740 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
4741 declaration.
4742 * remote-m32r-sdi.c, remote-mips.c: Delete files.
4743 * symfile.c (generic_load, generic_load): Remove comments.
4744
4745 2016-03-30 Yao Qi <yao.qi@linaro.org>
4746
4747 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
4748 0 rather than NULL.
4749
4750 2016-03-30 Yao Qi <yao.qi@linaro.org>
4751
4752 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
4753 (arm_epilogue_frame_this_id): New function.
4754 (arm_epilogue_frame_prev_register): New function.
4755 (arm_epilogue_frame_sniffer): New function.
4756 (arm_epilogue_frame_unwind): New.
4757 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
4758
4759 2016-03-30 Yao Qi <yao.qi@linaro.org>
4760
4761 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
4762 (arm_stack_frame_destroyed_p_1): ... here. Don't call
4763 arm_pc_is_thumb.
4764 (arm_stack_frame_destroyed_p): Call
4765 thumb_stack_frame_destroyed_p and
4766 arm_stack_frame_destroyed_p_1.
4767
4768 2016-03-30 Doug Evans <dje@google.com>
4769
4770 * python/py-utils.c (host_string_to_python_string): New function.
4771 * python/python-internal.h (host_string_to_python_string): Declare it.
4772 * python/py-*.c (*): Update all calls to
4773 PyString_Decode (str, strlen (str), host_charset (), NULL);
4774 to use host_string_to_python_string instead.
4775
4776 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4777
4778 * remote.c (remote_check_symbols): Allocate own buffer for reply.
4779
4780 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
4781
4782 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
4783 Use safe_read_memory_integer instead of read_memory_integer.
4784
4785 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4786
4787 * NEWS: Mention support for tracepoints on s390*-linux.
4788
4789 2016-03-29 Don Breazeal <donb@codesourcery.com>
4790
4791 * gdb/value.c (value_actual_type): Fix formatting issue.
4792
4793 2016-03-23 Yao Qi <yao.qi@linaro.org>
4794
4795 * gdbarch.sh (software_single_step): Remove comments.
4796 * gdbarch.h: Regenerated.
4797
4798 2016-03-21 Yao Qi <yao.qi@linaro.org>
4799
4800 * arm-tdep.c (arm_record_media): New.
4801 (arm_record_ld_st_reg_offset): Call arm_record_media.
4802
4803 2016-03-21 Yao Qi <yao.qi@linaro.org>
4804
4805 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
4806 more syscalls.
4807
4808 2016-03-18 Yao Qi <yao.qi@linaro.org>
4809
4810 * sparc-tdep.c (sparc_software_single_step): Make it static.
4811 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
4812
4813 2016-03-18 Yao Qi <yao.qi@linaro.org>
4814
4815 * spu-tdep.c (spu_software_single_step): Throw error when
4816 target_read_memory fails.
4817
4818 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
4821
4822 2016-03-17 Pedro Alves <palves@redhat.com>
4823 Don Breazeal <donb@codesourcery.com>
4824
4825 PR remote/19496
4826 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
4827 instead of checking the 'non_stop' global.
4828 * remote.c (remote_add_thread): New parameter 'executing'. Use it
4829 to set the new thread's executing state.
4830 (remote_notice_new_inferior): Rename parameter 'running' to
4831 'executing'. Always set the thread state to THREAD_RUNNING in
4832 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
4833 EXECUTING to remote_add_thread and notice_new_inferior.
4834 (remote_update_thread_list): Update to pass executing state, not
4835 running state.
4836
4837 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4838
4839 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
4840 to 374.
4841 * syscalls/s390x-linux.xml: Likewise.
4842
4843 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4844
4845 * linux-record.c (record_mem_at_reg): New helper function.
4846 (record_linux_system_call): Exploit new helper function where
4847 applicable.
4848
4849 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4850
4851 * linux-record.c: Fix whitespace issues; tabify, remove trailing
4852 spaces.
4853
4854 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4855
4856 * linux-record.c (record_linux_system_call): Add missing return
4857 statements to handling of pipe and pipe2 syscalls.
4858
4859 2016-03-16 Doug Evans <dje@google.com>
4860
4861 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
4862
4863 2016-03-16 Yao Qi <yao.qi@linaro.org>
4864
4865 * arm-linux-tdep.c (arm_linux_init_abi): Fix
4866 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
4867 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
4868 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
4869 arm_linux_record_tdep.arg7.
4870
4871 2016-03-15 Keith Seitz <keiths@redhat.com>
4872
4873 PR breakpoints/18303
4874 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
4875 look for "::" instead of simply ":".
4876 (cp_search_static_and_baseclasses): Return null_block_symbol for
4877 malformed input.
4878 Remove assertions.
4879 * cp-support.c (cp_find_first_component_aux): Do not return
4880 a prefix length for ':' unless the next character is also ':'.
4881
4882 2016-03-15 Doug Evans <dje@google.com>
4883
4884 * features/aarch64-core.xml (cpsr_flags): New flags type.
4885 (cpsr): Use it.
4886 * features/aarch64.c: Regenerate.
4887
4888 2016-03-15 Doug Evans <dje@google.com>
4889
4890 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
4891 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
4892 * features/i386/64bit-core.xml (i386_eflags): Ditto.
4893 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
4894 * features/i386/x32-core.xml (i386_eflags): Ditto.
4895
4896 2016-03-15 Doug Evans <dje@google.com>
4897 Wei-cheng Wang <cole945@gmail.com>
4898
4899 Extend flags to support multibit and enum bitfields.
4900 * NEWS: Document new features.
4901 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
4902 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
4903 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
4904 (append_flags_type_field): New function.
4905 (append_flags_type_flag): Call it.
4906 * gdbtypes.h (append_flags_type_field): Declare.
4907 * target-descriptions.c (struct tdesc_type_flag): Delete.
4908 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
4909 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
4910 (struct tdesc_type) <u.f>: Delete.
4911 (tdesc_predefined_types): Add "bool".
4912 (tdesc_predefined_type): New function.
4913 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
4914 Update TDESC_TYPE_FLAGS support.
4915 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
4916 (tdesc_create_flags): Update.
4917 (tdesc_create_enum): New function.
4918 (tdesc_add_field): Initialize start,end to -1.
4919 (tdesc_add_typed_bitfield): New function.
4920 (tdesc_add_bitfield): Call it.
4921 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
4922 (tdesc_add_enum_value): New function.
4923 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
4924 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
4925 * target-descriptions.h (tdesc_create_enum): Declare.
4926 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
4927 * valprint.c (generic_val_print_enum_1): New function.
4928 (generic_val_print_enum): Call it.
4929 (val_print_type_code_flags): Make static. Handle multibit bitfields
4930 and enum bitfields.
4931 * valprint.h (val_print_type_code_flags): Delete.
4932 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
4933 Delete. All uses removed.
4934 (tdesc_start_enum): New function.
4935 (tdesc_start_field): Handle multibit and enum bitfields.
4936 (tdesc_start_enum_value): New function.
4937 (enum_value_attributes, enum_children, enum_attributes): New static
4938 globals.
4939 (feature_children): Add "enum".
4940 * features/gdb-target.dtd (enum, evalue): New elements.
4941
4942 2016-03-15 Doug Evans <dje@google.com>
4943
4944 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
4945 from LONGEST to int.
4946 (struct tdesc_type) <u.f.size>: Ditto.
4947 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
4948 to int. Add assertion size > 0.
4949 (tdesc_create_flags): Ditto.
4950 * target-descriptions.h (tdesc_set_struct_size): Update.
4951 (tdesc_create_flags): Update.
4952 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
4953 (MAX_VECTOR_SIZE): New macro.
4954 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
4955 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
4956
4957 2016-03-15 Doug Evans <dje@google.com>
4958
4959 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
4960 TYPE_CODE_FLAGS instead of "field_type", for consistency.
4961 * features/i386/amd64-avx-linux.c: Regenerate.
4962 * features/i386/amd64-avx.c: Regenerate.
4963 * features/i386/amd64-avx512-linux.c: Regenerate.
4964 * features/i386/amd64-avx512.c: Regenerate.
4965 * features/i386/amd64-linux.c: Regenerate.
4966 * features/i386/amd64-mpx-linux.c: Regenerate.
4967 * features/i386/amd64-mpx.c: Regenerate.
4968 * features/i386/amd64.c: Regenerate.
4969 * features/i386/i386-avx-linux.c: Regenerate.
4970 * features/i386/i386-avx.c: Regenerate.
4971 * features/i386/i386-avx512-linux.c: Regenerate.
4972 * features/i386/i386-avx512.c: Regenerate.
4973 * features/i386/i386-linux.c: Regenerate.
4974 * features/i386/i386-mmx-linux.c: Regenerate.
4975 * features/i386/i386-mmx.c: Regenerate.
4976 * features/i386/i386-mpx-linux.c: Regenerate.
4977 * features/i386/i386-mpx.c: Regenerate.
4978 * features/i386/i386.c: Regenerate.
4979 * features/i386/x32-avx-linux.c: Regenerate.
4980 * features/i386/x32-avx.c: Regenerate.
4981 * features/i386/x32-avx512-linux.c: Regenerate.
4982 * features/i386/x32-avx512.c: Regenerate.
4983 * features/i386/x32-linux.c: Regenerate.
4984 * features/i386/x32.c: Regenerate.
4985
4986 2016-03-15 Pedro Alves <palves@redhat.com>
4987
4988 PR gdb/19676
4989 * linux-thread-db.c (try_thread_db_load_1): Leave
4990 info->td_ta_thr_iter_p NULL iff debugging a live process and we
4991 have /proc access.
4992 (find_new_threads_once): Assert that we have a non-NULL
4993 info->td_ta_thr_iter_p instead of checking whether the target has
4994 execution.
4995
4996 2016-03-15 Pedro Alves <palves@redhat.com>
4997
4998 PR gdb/19676
4999 * infrun.c (displaced_step_prepare): Also disable displaced
5000 stepping on NOT_SUPPORTED_ERROR.
5001 * linux-tdep.c (linux_displaced_step_location): If reading auxv
5002 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
5003
5004 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
5005
5006 * s390-linux-tdep.c (s390_gen_return_address): New function.
5007 (s390_gdbarch_init): Fill gen_return_address hook.
5008
5009 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * symmisc.c (maintenance_info_line_tables): New function.
5012 (maintenance_print_one_line_table): New function.
5013 (_initialize_symmisc): Register 'maint info line-table' command.
5014 * NEWS: Mention new command.
5015
5016 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
5017
5018 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
5019 (s390_ax_pseudo_register_push_stack): New function.
5020 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
5021 ax_pseudo_register_push_stack hooks.
5022
5023 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
5026 gdb/function/as_string.py.
5027 * python/lib/gdb/function/as_string.py: New file.
5028 * NEWS: Mention the new $_as_string function.
5029
5030 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5031
5032 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
5033
5034 2016-03-09 Pedro Alves <palves@redhat.com>
5035
5036 * event-top.c (more_to_come): Delete.
5037 (struct readline_input_state): Delete.
5038 (readline_input_state): Delete.
5039 (get_command_line_buffer): New function.
5040 (command_handler): Update comments. Don't handle NULL commands
5041 here. Do not execute commented lines.
5042 (command_line_append_input_line): New function.
5043 (handle_line_of_input): New function, partly based on
5044 command_line_handler and command_line_input.
5045 (command_line_handler): Rewrite.
5046 * event-top.h (command_handler): New declaration.
5047 (command_loop): Defer command execution to command_handler.
5048 (command_line_input): Update comments. Simplify, using struct
5049 buffer and handle_line_of_input.
5050 * top.h (struct buffer): New forward declaration.
5051 (handle_line_of_input): New declaration.
5052
5053 2016-03-09 Pedro Alves <palves@redhat.com>
5054
5055 * event-top.c (command_line_handler): Use xfree + xstrdup instead
5056 of xrealloc + strcpy.
5057 * main.c (captured_main): Use xstrdup instead of xmalloc plus
5058 manual clear.
5059 * top.c (saved_command_line): Rewrite comment.
5060 (saved_command_line_size): Delete.
5061 (command_line_input): Use xfree + xstrdup instead of xrealloc +
5062 strcpy.
5063 * top.h (saved_command_line_size): Delete declaration.
5064
5065 2016-03-09 Pedro Alves <palves@redhat.com>
5066
5067 * event-top.c: Include buffer.h.
5068 (gdb_readline_no_editing_callback): Use struct buffer instead
5069 of xrealloc.
5070
5071 2016-03-09 Pedro Alves <palves@redhat.com>
5072
5073 * common/buffer.h (buffer_grow_char): New function.
5074 * top.c: Include buffer.h.
5075 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
5076 'prompt'. Use struct buffer instead of xrealloc.
5077
5078 2016-03-09 Pedro Alves <palves@redhat.com>
5079
5080 * defs.h (gdb_readline): Delete declaration.
5081 * top.c (gdb_readline): Rename to ...
5082 (gdb_readline_no_editing): ... this, and make static.
5083
5084 2016-03-09 Pedro Alves <palves@redhat.com>
5085
5086 * utils.c (prompt_for_continue): Update comments.
5087
5088 2016-03-09 Pedro Alves <palves@redhat.com>
5089
5090 * event-top.c (async_annotation_suffix): Delete.
5091 (top_level_prompt, command_line_handler): Don't use
5092 'async_annotation_suffix' and simplify.
5093 * event-top.h (async_annotation_suffix): Delete declaration.
5094 (init_main): Remove reference to 'async_annotation_suffix'.
5095
5096 2016-03-09 Pedro Alves <palves@redhat.com>
5097
5098 * event-top.c (gdb_readline2): Rename to ...
5099 (gdb_readline_no_editing_callback): ... this.
5100 (change_line_handler, stdin_event_handler)
5101 (gdb_setup_readline): Adjust.
5102 * event-top.h (gdb_readline2): Rename to ...
5103 (gdb_readline_no_editing_callback): ... this, and move closer to
5104 other readline-related declarations.
5105 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
5106
5107 2016-03-09 Pedro Alves <palves@redhat.com>
5108
5109 * top.c (window_hook): Delete.
5110 (command_loop): Remove references to window_hook.
5111
5112 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5113
5114 * corefile.c (safe_read_memory_unsigned_integer): New function.
5115 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
5116 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
5117
5118 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5119
5120 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
5121 (rs6000_gen_return_address): New function.
5122 (rs6000_gdbarch_init): Wire in the above.
5123
5124 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5125
5126 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
5127 (rs6000_gdbarch_init): Wire in the above.
5128
5129 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5130
5131 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
5132 instructions that do nothing or are conditional traps.
5133
5134 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
5135
5136 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
5137 frame func's PC in info->func before any other failure can occur.
5138 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
5139 info->func has been filled out.
5140
5141 2016-03-09 Pedro Alves <palves@redhat.com>
5142
5143 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
5144
5145 2016-03-09 Pedro Alves <palves@redhat.com>
5146
5147 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
5148
5149 2016-03-09 Pedro Alves <palves@redhat.com>
5150
5151 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
5152 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
5153
5154 2016-03-09 Pedro Alves <palves@redhat.com>
5155
5156 * doublest.c: Extend comments.
5157 (floatformat_to_doublest, floatformat_from_doublest): Copy the
5158 floatformat's total size, not the host type's size.
5159
5160 2016-03-09 Pedro Alves <palves@redhat.com>
5161
5162 * doublest.c (floatformat_totalsize_bytes): New function.
5163 (floatformat_from_type): Assert that the type's length is at least
5164 as long as the floatformat's totalsize.
5165 * doublest.h (floatformat_totalsize_bytes): New declaration.
5166 * gdbtypes.c (arch_float_type): Assert that the type's length is
5167 at least as long as the floatformat's totalsize.
5168
5169 2016-03-09 Pedro Alves <palves@redhat.com>
5170
5171 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
5172 format to floatformats_ieee_double.
5173
5174 2016-03-07 Pedro Alves <palves@redhat.com>
5175
5176 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
5177 before calling bfd_get_flavour.
5178
5179 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5180
5181 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
5182 (avr_push_dummy_call): Correct last needed argument register.
5183 Write MSB of argument into register and subsequent bytes into
5184 other registers in decreasing order.
5185
5186 2016-03-04 Yao Qi <yao.qi@linaro.org>
5187
5188 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
5189 condition check. Record the right D register number.
5190
5191 2016-03-04 Yao Qi <yao.qi@linaro.org>
5192
5193 * arm-tdep.c (arm_record_extension_space): Remove code
5194 printing "Process record does not support".
5195 (arm_record_data_proc_misc_ld_str): Likewise.
5196 (decode_insn): Call arm_record_extension_space if condition
5197 is 0xf. Call arm_record_unsupported_insn if ret isn't
5198 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
5199 the value of thumb2_record_decode_insn_handler.
5200
5201 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
5202
5203 * features/feature_to_c.sh: Print the help when passing no
5204 argument.
5205
5206 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5207
5208 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
5209
5210 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
5211
5212 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
5213
5214 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
5215
5216 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
5217 exception when attempting to access the inferior's backchain.
5218
5219 2016-02-29 Yao Qi <yao.qi@linaro.org>
5220
5221 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
5222 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
5223 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
5224 for aarch64_sys_epoll_create1.
5225
5226 2016-02-29 Yao Qi <yao.qi@linaro.org>
5227
5228 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
5229 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
5230 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
5231 * linux-record.c (record_linux_system_call): Handle them.
5232
5233 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
5234
5235 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
5236 cyclic imports.
5237
5238 2016-02-26 Keith Seitz <keiths@redhat.com>
5239
5240 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
5241 to avoid invalid conversion from void *.
5242
5243 2016-02-26 Yao Qi <yao.qi@linaro.org>
5244
5245 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
5246 per bit 8. Check bit 20 instead of bit 4 for VMOV
5247 instruction. Record D registers for instructions changing
5248 S registers. Change of the order of length and address
5249 in record_buf_mem array.
5250
5251 2016-02-26 Yao Qi <yao.qi@linaro.org>
5252
5253 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
5254 number of Rd.
5255
5256 2016-02-25 Doug Evans <dje@google.com>
5257
5258 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
5259 compiler warning.
5260 (recv_long_data): Ditto.
5261
5262 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
5263
5264 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
5265 Initialize variables.
5266
5267 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
5268
5269 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
5270 (ax_reg_mask): Likewise.
5271
5272 2016-02-24 Pedro Alves <palves@redhat.com>
5273
5274 * linux-nat.c (save_sigtrap) Delete.
5275 (stop_wait_callback): Call save_stop_reason instead of
5276 save_sigtrap.
5277 (check_stopped_by_breakpoint): Rename to ...
5278 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
5279 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
5280 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
5281 common code between the USE_SIGTRAP_SIGINFO and
5282 !USE_SIGTRAP_SIGINFO blocks.
5283 (linux_nat_filter_event): Call save_stop_reason instead of
5284 save_sigtrap.
5285 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
5286 si_code for MIPS.
5287 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
5288 comments on MIPS behavior.
5289 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
5290
5291 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
5292
5293 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
5294 to avoid spurious warnings.
5295
5296 2016-02-24 Gary Benson <gbenson@redhat.com>
5297
5298 * exec.c (exec_file_locate_attach): Do not attempt to
5299 locate main executable locally if not found in sysroot.
5300
5301 2016-02-24 Joel Brobecker <brobecker@adacore.com>
5302
5303 GDB 7.11 released.
5304
5305 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
5306
5307 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
5308 unavailable PC/SP to build unavailable frame.
5309
5310 2016-02-23 Doug Evans <dje@google.com>
5311
5312 Extend "skip" command to support -file, -gfile, -function, -rfunction.
5313 * NEWS: Document new features.
5314 * skip.c: #include "fnmatch.h", "gdb_regex.h".
5315 (skiplist_entry) <file>: Renamed from filename.
5316 <function>: Renamed from function_name.
5317 <file_is_glob, function_is_regexp>: New members.
5318 <compiled_function_regexp, compiled_function_regexp_is_valid>:
5319 New members.
5320 (make_skip_entry): New function.
5321 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
5322 (make_free_skiplist_entry_cleanup): New function.
5323 (skip_file_command): Update.
5324 (skip_function, skip_function_command): Update.
5325 (compile_skip_regexp): New functions.
5326 (skip_command): Add support for new options.
5327 (skip_info): Update.
5328 (skip_file_p, skip_gfile_p): New functions.
5329 (skip_function_p, skip_rfunction_p): New functions.
5330 (function_name_is_marked_for_skip): Update and simplify.
5331 (_initialize_step_skip): Update.
5332 * symtab.c: #include "fnmatch.h".
5333 (compare_glob_filenames_for_search): New function.
5334 * symtab.h (compare_glob_filenames_for_search): Declare.
5335 * utils.c (count_path_elements): New function.
5336 (strip_leading_path_elements): New function.
5337 * utils.h (count_path_elements): Declare.
5338 (strip_leading_path_elements): Declare.
5339
5340 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
5341
5342 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
5343 (thumb_process_displaced_insn): Likewise.
5344 (arm_process_displaced_insn): Adjust calls.
5345
5346 2016-02-23 Yao Qi <yao.qi@linaro.org>
5347
5348 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
5349 Remove.
5350 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
5351 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
5352 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
5353 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
5354 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
5355 <aarch64_sys_faccessat>: New.
5356 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
5357 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
5358 <aarch64_sys_newfstatat>: New.
5359 (UNSUPPORTED_SYSCALL_MAP): New macro.
5360 (aarch64_canonicalize_syscall): Add missing syscalls.
5361
5362 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5363
5364 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
5365
5366 2016-02-22 Yao Qi <yao.qi@linaro.org>
5367
5368 * arm-tdep.c: Fix code format issues.
5369
5370 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
5371
5372 * d-namespace.c (d_lookup_symbol_imports): Remove argument
5373 'search_parents'. All callers updated.
5374
5375 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5376
5377 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
5378 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
5379
5380 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
5381
5382 * NEWS: Add entry for bound violation.
5383 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
5384 Add handler for segmentation fault.
5385 * gdbarch.sh (handle_segmentation_fault): New.
5386 * gdbarch.c: Regenerate.
5387 * gdbarch.h: Regenerate.
5388 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
5389 (SIG_CODE_BONDARY_FAULT): New define.
5390 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
5391 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
5392 * i386-tdep.c (i386_mpx_enabled): Add as external.
5393 * i386-tdep.c (i386_mpx_enabled): Add as external.
5394 * infrun.c (handle_segmentation_fault): New function.
5395 (print_signal_received_reason): Use handle_segmentation_fault.
5396
5397 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
5398
5399 * arch-utils.c (default_guess_tracepoint_registers): New function.
5400 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
5401 * gdbarch.c: Regenerate.
5402 * gdbarch.h: Regenerate.
5403 * gdbarch.sh: Add guess_tracepoint_registers hook.
5404 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
5405
5406 2016-02-17 Gary Benson <gbenson@redhat.com>
5407
5408 * exec.c (exec_file_locate_attach): Add missing cleanup.
5409
5410 2016-02-16 Don Breazeal <donb@codesourcery.com>
5411
5412 PR remote/19496
5413 * remote.c (remove_new_fork_children): Check for pending
5414 fork status in thread_info.suspend.
5415
5416 2016-02-16 Yao Qi <yao.qi@linaro.org>
5417
5418 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
5419 'old_chain' later.
5420
5421 2016-02-16 Yao Qi <yao.qi@linaro.org>
5422
5423 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
5424 <syscall_next_pc>: Remove argument PC. Callers updated.
5425 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
5426 Remove argument PC. Get pc from regcache_read_pc.
5427 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
5428 argument PC.
5429
5430 2016-02-15 Yao Qi <yao.qi@linaro.org>
5431
5432 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
5433
5434 2016-02-12 Yao Qi <yao.qi@linaro.org>
5435
5436 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
5437 nextpc according to instruction.
5438
5439 2016-02-12 Yao Qi <yao.qi@linaro.org>
5440
5441 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
5442 self->ops->fixup if it isn't NULL.
5443 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
5444 (struct arm_get_next_pcs_ops) <fixup>: New field.
5445 * arch/arm-linux.c: Include common-regcache.h and
5446 arch/arm-get-next-pcs.h.
5447 (arm_linux_get_next_pcs_fixup): New function.
5448 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
5449 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
5450 it with arm_linux_get_next_pcs_fixup.
5451 (arm_linux_software_single_step): Move code to
5452 arm_linux_get_next_pcs_fixup.
5453 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
5454
5455 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5456
5457 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
5458 and return NULL.
5459
5460 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5461
5462 * frame.h (skip_tailcall_frames): Update comment.
5463 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
5464 if only artificial frames are found. Update comment.
5465 (frame_unwind_caller_id): Handle NULL return.
5466 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
5467 skip_artificial_frames does not return NULL.
5468 (frame_pop): Add an error if only tailcall frames are found.
5469 * infcmd.c (finish_command): Move skip_tailcall_frames call into
5470 forward-execution case. Add an error if only tailcall frames are
5471 found.
5472
5473 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5474
5475 * stack.c (frame_info): Check frame_unwind_caller_id.
5476
5477 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
5478
5479 * frame.h (skip_tailcall_frames): New.
5480 * frame.c (skip_tailcall_frames): New.
5481 (frame_pop): Call skip_tailcall_frames.
5482 * infcmd.c (finish_command): Call skip_tailcall_frames.
5483
5484 2016-02-11 Pedro Alves <palves@redhat.com>
5485
5486 * Makefile.in (check-parallel): New rule.
5487
5488 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
5491 (arm_analyze_prologue): Likewise.
5492 (arm_scan_prologue): Likewise.
5493 (arm_m_exception_prev_register): Likewise.
5494 (arm_copy_block_xfer): Likewise.
5495 (thumb2_copy_block_xfer): Likewise.
5496 (arm_decode_miscellaneous): Likewise.
5497 (arm_decode_ld_st_word_ubyte): Likewise.
5498 (arm_decode_svc_copro): Likewise.
5499 (thumb2_decode_svc_copro): Likewise.
5500 (thumb_copy_16bit_ldr_literal): Likewise.
5501 (thumb_copy_pop_pc_16bit): Likewise.
5502 (decode_thumb_32bit_ld_mem_hints): Likewise.
5503 (arm_show_force_mode): Likewise.
5504 (_initialize_arm_tdep): Likewise.
5505 (arm_record_strx): Likewise.
5506 (arm_record_extension_space): Likewise.
5507 (arm_record_data_proc_misc_ld_str): Likewise.
5508 (arm_record_exreg_ld_st_insn): Likewise.
5509 (arm_record_vfp_data_proc_insn): Likewise.
5510 (arm_record_coproc_data_proc): Likewise.
5511 (thumb_record_misc): Likewise.
5512 (thumb_record_ldm_stm_swi): Likewise.
5513 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
5514 (thumb2_record_ld_mem_hints): Likewise.
5515 (thumb2_record_lmul_lmla_div): Likewise.
5516 (thumb2_record_asimd_struct_ld_st): Likewise.
5517 (arm_process_record): Likewise.
5518
5519 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5520
5521 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
5522 (ARM displaced stepping support): Remove reference to
5523 arm_displaced_step_copy_insn in comment.
5524 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
5525 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
5526 reference to arm_displaced_step_copy_insn in comment.
5527
5528 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
5529
5530 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
5531 (thumb_copy_b): Likewise.
5532 (arm_decode_b_bl_ldmstm): Likewise.
5533 (thumb_copy_16bit_ldr_literal): Likewise.
5534 (thumb_copy_pop_pc_16bit): Likewise.
5535
5536 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
5537
5538 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
5539 than loc->gdbarch.
5540
5541 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5542
5543 * tracefile-tfile.c (trace_tdesc): New static variable.
5544 (tfile_open): Clear trace_tdesc, call target_find_description.
5545 (tfile_interp_line): Recognize tdesc lines.
5546 (tfile_close): Clear trace_tdesc.
5547 (tfile_xfer_partial_features): New function.
5548 (tfile_xfer_partial): Call tfile_xfer_partial_features.
5549 (tfile_append_tdesc_line): New function.
5550
5551 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5552
5553 * ctf.c (ctf_write_tdesc): New function.
5554 (ctf_write_ops): Wire in ctf_write_tdesc.
5555 * tracefile-tfile.c (tfile_write_tdesc): New function.
5556 (tfile_write_ops): Wire in tfile_write_tdesc.
5557 * tracefile.c (trace_save): Call write_tdesc method.
5558 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
5559 * xml-tdesc.c (target_fetch_description_xml): New function.
5560 * xml-tdesc.h: Add target_fetch_description_xml prototype.
5561
5562 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
5563
5564 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
5565 (arm_decode_dp_misc): Likewise.
5566
5567 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5568
5569 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
5570 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
5571 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
5572 misleading comment.
5573 (i386_pseudo_register_write): Ditto.
5574 (i386_ax_pseudo_register_collect): New function.
5575 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
5576 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
5577
5578 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5579
5580 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
5581 instead of gdb order.
5582
5583 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
5584
5585 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
5586 check.
5587
5588 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5589
5590 * NEWS: Create a new section for the next release branch.
5591 Rename the section of the current branch, now that it has
5592 been cut.
5593
5594 2016-02-10 Joel Brobecker <brobecker@adacore.com>
5595
5596 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
5597 * version.in: Bump version to 7.11.50.DATE-git.
5598
5599 2016-02-09 Keith Seitz <keiths@redhat.com>
5600
5601 PR breakpoints/19546
5602 * breakpoint.c (breakpoint_event_location_empty_p): New function.
5603 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
5604 instead of event_location_empty_p.
5605
5606 2016-02-09 Keith Seitz <keiths@redhat.com>
5607
5608 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
5609 string_to_event_location_basic instead of string_to_event_location.
5610
5611 2016-02-09 Keith Seitz <keiths@redhat.com>
5612
5613 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
5614 leading whitespace and use string_to_event_location_basic instead
5615 of new_linespec_location.
5616
5617 2016-02-09 Keith Seitz <keiths@redhat.com>
5618
5619 PR python/19506
5620 * python/py-breakpoint.c (bppy_init): Use
5621 string_to_event_location_basic instead of new_linespec_location.
5622
5623 2016-02-09 Keith Seitz <keiths@redhat.com>
5624
5625 * location.c (string_to_explicit_location): Note that "-p" is
5626 reserved for probe locations and return NULL for any input
5627 that starts with that.
5628 (string_to_event_location): Move "legacy" linespec code to ...
5629 (string_to_event_location_basic): ... here.
5630 * location.h (string_to_event_location): Update comment.
5631 (string_to_event_location_basic): New function.
5632
5633 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5634
5635 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5636 to AC_OUTPUT. Remove "exit 0" at the end.
5637 * configure: Regenerate.
5638
5639 2016-02-09 Pedro Alves <palves@redhat.com>
5640
5641 PR breakpoints/19548
5642 * breakpoint.c (create_overlay_event_breakpoint): Don't update
5643 global location list here.
5644 (create_longjmp_master_breakpoint)
5645 (create_std_terminate_master_breakpoint)
5646 (create_exception_master_breakpoint, create_jit_event_breakpoint)
5647 (update_breakpoint_locations):
5648 (breakpoint_re_set): Update global location list after all
5649 breakpoints are re-set.
5650
5651 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
5652
5653 * remote.c (remote_register_number_and_offset): Remove unused
5654 variable(s).
5655 (remote_thread_always_alive): Likewise.
5656 (remote_update_thread_list): Likewise.
5657 (process_initial_stop_replies): Likewise.
5658 (remote_start_remote): Likewise.
5659 (remote_check_symbols): Likewise.
5660 (discard_pending_stop_replies): Likewise.
5661 (process_stop_reply): Likewise.
5662 (putpkt_binary): Likewise.
5663 (getpkt): Likewise.
5664 (remote_add_target_side_condition): Likewise.
5665 (remote_insert_breakpoint): Likewise.
5666 (remote_supports_stopped_by_sw_breakpoint): Likewise.
5667 (remote_supports_stopped_by_hw_breakpoint): Likewise.
5668 (remote_xfer_partial): Likewise.
5669 (remote_read_btrace): Likewise.
5670 (remote_async_serial_handler): Likewise.
5671 (remote_thread_events): Likewise.
5672 (_initialize_remote): Likewise.
5673
5674 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
5675
5676 * varobj.h (varobj_delete): Remove dellist parameter, update and
5677 move documentation here.
5678 * varobj.c (struct cpstack, cppush, cppop): Remove.
5679 (delete_variable): Remove resultp (first) parameter.
5680 (delete_variable_1): Likewise.
5681 (varobj_delete): Remove dellist parameter and unused code.
5682 (update_dynamic_varobj_children): Adjust varobj_delete call.
5683 (update_type_if_necessary): Likewise.
5684 (varobj_set_visualizer): Likewise.
5685 (varobj_update): Likewise.
5686 (value_of_root): Likewise.
5687 (varobj_invalidate_iter): Likewise.
5688 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
5689
5690 2016-02-04 Yao Qi <yao.qi@linaro.org>
5691
5692 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
5693 0 before handling 'F' and set it back afterwards.
5694
5695 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
5696
5697 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
5698
5699 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5700
5701 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
5702 New types.
5703 (compat_siginfo): New bound fields added.
5704 (compat_x32_siginfo): New field added.
5705 (cpt_si_addr_lsb): New define.
5706 (compat_siginfo_from_siginfo): Use nat_siginfo.
5707 (siginfo_from_compat_siginfo): Use nat_siginfo.
5708 (compat_x32_siginfo_from_siginfo): Likewise.
5709 (siginfo_from_compat_x32_siginfo): Likewise.
5710
5711 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5712
5713 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
5714 structure to the siginfo if extra_fields contains
5715 LINUX_SIGINFO_FIELD_ADDR_BND.
5716
5717 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5718
5719 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
5720 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
5721 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
5722 function.
5723 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
5724 x86_linux_get_siginfo_type for the amd64 abi.
5725 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
5726 function.
5727 (i386_linux_init_abi): Add new function at the i386 ABI
5728 initialization.
5729
5730 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5731
5732 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
5733 (linux_siginfo_extra_fields): New enum type.
5734 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
5735 (linux_get_siginfo_type): Use new function.
5736
5737 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5738
5739 * nat/amd64-linux-siginfo.c: New file.
5740 * nat/amd64-linux-siginfo.h: New file.
5741 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
5742 (amd64-linux-siginfo.o): New rule.
5743 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
5744 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
5745 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5746 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5747 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5748 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5749 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5750 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
5751
5752 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * value.c (max_value_size): New variable.
5755 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
5756 (set_max_value_size): New function.
5757 (show_max_value_size): New function.
5758 (check_type_length_before_alloc): New function.
5759 (allocate_value_contents): Call check_type_length_before_alloc.
5760 (set_value_enclosing_type): Likewise.
5761 (_initialize_values): Add set/show handler for max-value-size.
5762 * NEWS: Mention new set/show command.
5763
5764 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
5765
5766 * varobj.h (struct varobj): Fix typos in comments.
5767 (struct lang_varobj_ops): Likewise.
5768 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
5769 (varobj_create): Move misplaced comment.
5770
5771 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
5772
5773 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
5774 to for include additional lines.
5775 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
5776
5777 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * gnulib/import/Makefile.am: Regenerate.
5780 * gnulib/import/Makefile.in: Regenerate.
5781 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5782 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
5783
5784 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * remote.c (skip_to_semicolon): Remove.
5787 (remote_parse_stop_reply): Use strchrnul instead of
5788 skip_to_semicolon.
5789 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5790 strchrnul.
5791 * gnulib/aclocal.m4: Regenerate.
5792 * gnulib/config.in: Regenerate.
5793 * gnulib/configure: Regenerate.
5794 * gnulib/import/Makefile.am: Regenerate.
5795 * gnulib/import/Makefile.in: Regenerate.
5796 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5797 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5798 * gnulib/import/m4/rawmemchr.m4: New file.
5799 * gnulib/import/m4/strchrnul.m4: New file.
5800 * gnulib/import/rawmemchr.c: New file.
5801 * gnulib/import/rawmemchr.valgrind: New file.
5802 * gnulib/import/strchrnul.c: New file.
5803 * gnulib/import/strchrnul.valgrind: New file.
5804
5805 2016-01-28 Yao Qi <yao.qi@linaro.org>
5806
5807 * breakpoint.c (build_target_command_list): Don't call continue
5808 if aexpr is NULL.
5809 (build_target_condition_list): Likewise.
5810
5811 2016-01-27 Kevin Buettner <kevinb@redhat.com>
5812
5813 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
5814 bytes as aggregates.
5815
5816 2016-01-27 Joel Brobecker <brobecker@adacore.com>
5817
5818 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
5819 Linespec Maintainers.
5820
5821 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * common/common-utils.c (skip_spaces): Fix comment.
5824 (skip_to_space_const): Likewise.
5825
5826 2016-01-25 Yao Qi <yao.qi@linaro.org>
5827
5828 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
5829 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
5830 (arm_deal_with_atomic_sequence_raw): Likewise.
5831 (thumb_get_next_pcs_raw): Likewise.
5832 (arm_get_next_pcs_raw): Likewise.
5833 (arm_get_next_pcs): Remove argument pc. Callers updated.
5834 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
5835
5836 2016-01-25 Mark Wielaard <mjw@redhat.com>
5837
5838 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
5839 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
5840 if statement.
5841 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
5842 statement block by introducing an else.
5843 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
5844 of return statements.
5845 (record_linux_msghdr): Likewise.
5846
5847 2016-01-25 Pedro Alves <palves@redhat.com>
5848
5849 PR threads/19461
5850 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
5851 parent/child running states.
5852
5853 2016-01-25 Pedro Alves <palves@redhat.com>
5854
5855 PR gdb/19494
5856 * linux-nat.c (kill_one_lwp): New, factored out from ...
5857 (kill_callback): ... this.
5858 (kill_wait_callback): New, factored out from ...
5859 (kill_wait_one_lwp): ... this.
5860 (kill_unfollowed_fork_children): New function.
5861 (linux_nat_kill): Use it.
5862
5863 2016-01-22 John Baldwin <jhb@FreeBSD.org>
5864
5865 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
5866
5867 2016-01-22 Yao Qi <yao.qi@linaro.org>
5868
5869 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
5870 instead of warning.
5871 (store_fpregs, fetch_regs, store_regs): Likewise.
5872 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5873 (fetch_vfp_regs, store_vfp_regs): Likewise.
5874
5875 2016-01-21 Doug Evans <dje@google.com>
5876
5877 * breakpoint.c (init_breakpoint_sal): Add comment.
5878
5879 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5880
5881 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
5882
5883 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * disasm.c (maybe_add_dis_line_entry): Rename to...
5886 (add_dis_line_entry): ...this, and update header comment.
5887 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
5888
5889 2016-01-21 Pedro Alves <palves@redhat.com>
5890
5891 * Makefile.in (COMPILER_CFLAGS): New.
5892 (CXXFLAGS): Get it from configure.
5893 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
5894 instead of CFLAGS.
5895 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
5896 COMPILER_CFLAGS.
5897 * configure: Regenerate.
5898
5899 2016-01-21 Joel Brobecker <brobecker@adacore.com>
5900
5901 * location.h (new_address_location): Add new parameters
5902 "addr_string" and "addr_string_len".
5903 (get_address_string_location): Add declaration.
5904 * location.c (new_address_location): Add new parameters
5905 "addr_string" and "addr_string_len". If not NULL, store
5906 a copy of the addr_string in the new location as well.
5907 (get_address_string_location): New function.
5908 (string_to_event_location): Update call to new_address_location.
5909 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
5910 Save the event location in the parser's state before
5911 passing it to convert_address_location_to_sals.
5912 * breakpoint.c (create_thread_event_breakpoint): Update call
5913 to new_address_location.
5914 (init_breakpoint_sal): Get the event location's string, if any,
5915 and use it to update call to new_address_location.
5916 * python/py-finishbreakpoint.c (bpfinishpy_init):
5917 Update call to new_address_location.
5918 * spu-tdep.c (spu_catch_start): Likewise.
5919
5920 * config/djgpp/fnchange.lst: Add entries for
5921 gdb/testsuite/gdb.base/break-fun-addr1.c and
5922 gdb/testsuite/gdb.base/break-fun-addr2.c.
5923
5924 2016-01-21 Yao Qi <yao.qi@linaro.org>
5925
5926 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
5927 is_thumb and set it according to CPSR saved on the stack.
5928 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
5929 arm_linux_sigreturn_next_pc.
5930
5931 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
5934 Fix enumerators sort key function.
5935
5936 2016-01-20 Joel Brobecker <brobecker@adacore.com>
5937
5938 * printcmd.c (print_scalar_formatted): Move binary operator from
5939 end of line to beginning of next line. Adjust formatting
5940 accordingly.
5941
5942 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5943
5944 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
5945 "len" with sysctl.
5946
5947 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5948
5949 * fbsd-tdep.c (find_stop_signal): Remove.
5950 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
5951 <stop_signal>: New field.
5952 <abort_iteration>: New field.
5953 (fbsd_collect_regset_section_cb): Use new fields.
5954 (fbsd_collect_thread_registers): New function.
5955 (struct fbsd_corefile_thread_data): New structure.
5956 (fbsd_corefile_thread): New function.
5957 (fbsd_make_corefile_notes): Use new function to dump notes for each
5958 non-exited thread in a process.
5959
5960 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5961
5962 * configure.ac: Check for support for LWP names on FreeBSD.
5963 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
5964 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
5965 (fbsd_fetch_kinfo_proc): Move function earlier.
5966 [PT_LWPINFO] (fbsd_thread_alive): New function.
5967 [PT_LWPINFO] (fbsd_pid_to_str): New function.
5968 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
5969 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
5970 [PT_LWPINFO] (fbsd_add_threads): New function.
5971 [PT_LWPINFO] (fbsd_update_thread_list): New function.
5972 [PT_LWPINFO] New variable super_resume.
5973 [PT_LWPINFO] (resume_one_thread_cb): New function.
5974 [PT_LWPINFO] (resume_all_threads_cb): New function.
5975 [PT_LWPINFO] (fbsd_resume): New function.
5976 (fbsd_remember_child): Save full ptid instead of plain pid.
5977 (fbsd_is_child_pending): Return ptid of saved child process.
5978 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
5979 first stop.
5980 [PT_LWP_EVENTS] Handle LWP events.
5981 [TDP_RFPPWAIT] Include LWP in child ptid.
5982 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
5983 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
5984 Add threads for existing processes.
5985 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
5986 "fbsd_thread_alive".
5987 Set "to_pid_to_str" to "fbsd_pid_to_str".
5988 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
5989 "fbsd_thread_name".
5990 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
5991 Set "to_has_thread_control" to "tc_schedlock".
5992 Set "to_resume" to "fbsd_resume".
5993 (_initialize_fbsd_nat): New function.
5994 * configure: Regenerate.
5995 * config.in: Regenerate.
5996
5997 2016-01-19 John Baldwin <jhb@FreeBSD.org>
5998
5999 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6000 get_ptrace_pid.
6001 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
6002 (amd64bsd_dr_get): Use get_ptrace_pid.
6003 (amd64bsd_dr_set): Use get_ptrace_pid.
6004 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
6005 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
6006 (i386bsd_dr_get): Use get_ptrace_pid.
6007 (i386bsd_dr_set): Use get_ptrace_pid.
6008 * inf-ptrace.c (get_ptrace_pid): Export.
6009 * inf-ptrace.h (get_ptrace_pid): Declare.
6010 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
6011 (ppcfbsd_store_inferior_registers): Use lwp id.
6012
6013 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6014
6015 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
6016 (fbsd_core_thread_name): New function.
6017 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
6018 Add "core_thread_name" gdbarch method.
6019
6020 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6021
6022 * corelow.c (core_thread_name): New function.
6023 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
6024 target op.
6025 * gdbarch.sh (core_thread_name): New gdbarch callback.
6026 * gdbarch.h: Re-generate.
6027 * gdbarch.c: Re-generate.
6028
6029 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
6030
6031 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
6032 convert gdb.Value to integer type using int().
6033
6034 2016-01-19 John Baldwin <jhb@FreeBSD.org>
6035
6036 * configure.ac: Include <sys/types.h when checking for "r_fs" in
6037 "struct reg".
6038 * configure: Regenerate.
6039
6040 2016-01-19 Pedro Alves <palves@redhat.com>
6041
6042 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
6043 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
6044 current program space down to linespec decoding and breakpoint
6045 location updating.
6046 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
6047 decode_line_full.
6048 (until_break_command): Adjust calls to decode_line_1.
6049 (base_breakpoint_decode_location, bkpt_decode_location): Add
6050 'search_pspace' parameter. Pass it along.
6051 (bkpt_probe_create_sals_from_location): Adjust calls to
6052 parse_probes.
6053 (tracepoint_decode_location, tracepoint_probe_decode_location)
6054 (strace_marker_decode_location): Add 'search_pspace' parameter.
6055 Pass it along.
6056 (all_locations_are_pending): Rewrite to take a breakpoint and
6057 program space as arguments instead.
6058 (hoist_existing_locations): New function.
6059 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
6060 hoist_existing_locations instead of always removing all locations,
6061 and adjust to all_locations_are_pending change.
6062 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
6063 Don't disable the breakpoint if there are other locations in
6064 another program space.
6065 (breakpoint_re_set_default): Adjust to pass down the current
6066 program space as filter program space.
6067 (decode_location_default): Add 'search_pspace' parameter and pass
6068 it along.
6069 (prepare_re_set_context): Don't switch program space here.
6070 (breakpoint_re_set): Use save_current_space_and_thread instead of
6071 save_current_program_space.
6072 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
6073 'search_pspace' parameter.
6074 (update_breakpoint_locations): Add 'filter_pspace' parameter.
6075 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
6076 decode_line_1.
6077 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
6078 program space as filter program space.
6079 * linespec.c (struct linespec_state) <search_pspace>: New field.
6080 (create_sals_line_offset, convert_explicit_location_to_sals)
6081 (parse_linespec): Pass the search program space down.
6082 (linespec_state_constructor): Add 'search_pspace' parameter.
6083 Store it.
6084 (linespec_parser_new): Add 'search_pspace' parameter and pass it
6085 along.
6086 (linespec_lex_to_end): Adjust.
6087 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
6088 and pass it along.
6089 (decode_line_with_last_displayed): Adjust.
6090 (collect_symtabs_from_filename, symtabs_from_filename): New
6091 'search_pspace' parameter. Use it.
6092 (find_function_symbols): Pass the search program space down.
6093 * linespec.h (decode_line_1, decode_line_full): Add
6094 'search_pspace' parameter.
6095 * probe.c (parse_probes_in_pspace): New function, factored out
6096 from ...
6097 (parse_probes): ... this. Add 'search_pspace' parameter and use
6098 it.
6099 * probe.h (parse_probes): Add pspace' parameter.
6100 * python/python.c (gdbpy_decode_line): Adjust.
6101 * tracepoint.c (scope_info): Adjust.
6102
6103 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6104
6105 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
6106 instruction support.
6107 (micromips_next_pc): Likewise.
6108 (micromips_scan_prologue): Likewise.
6109 (micromips_deal_with_atomic_sequence): Likewise.
6110 (micromips_stack_frame_destroyed_p): Likewise.
6111 (mips_breakpoint_from_pc): Likewise.
6112
6113 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
6114
6115 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
6116 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
6117
6118 2016-01-18 Pedro Alves <palves@redhat.com>
6119
6120 * NEWS: Mention that GDB now displays the ID and name of the
6121 thread that hit a breakpoint or received a signal.
6122 * break-catch-sig.c (signal_catchpoint_print_it): Use
6123 maybe_print_thread_hit_breakpoint.
6124 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6125 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
6126 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
6127 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
6128 (print_it_catch_exec, print_it_ranged_breakpoint)
6129 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
6130 Use maybe_print_thread_hit_breakpoint.
6131 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
6132 * gdbthread.h (show_thread_that_caused_stop): Declare.
6133 * infrun.c (print_signal_received_reason): Print which thread
6134 received signal.
6135 * thread.c (show_thread_that_caused_stop): New function.
6136
6137 2016-01-18 Gary Benson <gbenson@redhat.com>
6138
6139 * nat/linux-namespaces.c (do_fork): New function.
6140 (linux_mntns_get_helper): Use the above.
6141
6142 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
6143
6144 Pushed by Joel Brobecker <brobecker@adacore.com>.
6145 PR gdb/19208
6146 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6147 if the function has no name.
6148
6149 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
6150
6151 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
6152 Conditionalize for Windows host.
6153 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
6154 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
6155 (phony_iconv_open): Handle both UTF-32 endiannesses.
6156 (phony_iconv): Likewise. Check for output overflow and clean up
6157 out-of-input cases. Correct adjustment to input buffer pointer.
6158 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
6159 phony_iconv_open.
6160
6161 2016-01-15 Pedro Alves <palves@redhat.com>
6162
6163 * NEWS: Mention star wildcard ranges.
6164 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
6165 (number_range_setup_range): New function.
6166 * cli/cli-utils.h (number_range_setup_range): New declaration.
6167 * thread.c (thread_apply_command): Support star TID ranges.
6168 * tid-parse.c (tid_range_parser_finished)
6169 (tid_range_parser_string, tid_range_parser_skip)
6170 (get_tid_or_range, get_tid_or_range): Handle
6171 TID_RANGE_STATE_STAR_RANGE.
6172 (tid_range_parser_star_range): New function.
6173 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
6174 New value.
6175 (tid_range_parser_star_range): New declaration.
6176
6177 2016-01-15 Pedro Alves <palves@redhat.com>
6178
6179 * thread.c (thread_apply_command): Use the tid range parser to
6180 advance past the thread ID list.
6181 * tid-parse.c (get_positive_number_trailer): New function.
6182 (parse_thread_id): Use it.
6183 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
6184 thread ID error.
6185 (get_tid_or_range): Detect negative values. Return 0 instead of
6186 throwing invalid thread ID error.
6187
6188 2016-01-14 Yao Qi <yao.qi@linaro.org>
6189
6190 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
6191 Declare.
6192 (arm_linux_get_next_pcs_ops): Install
6193 arm_linux_get_next_pcs_syscall_next_pc.
6194 (arm_linux_syscall_next_pc): Change to ...
6195 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
6196 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
6197 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
6198 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
6199 call tdep->syscall_next_pc.
6200 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
6201 (arm_get_next_pcs_syscall_next_pc): Remove.
6202
6203 2016-01-14 Yao Qi <yao.qi@linaro.org>
6204
6205 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
6206 * thread.c (do_captured_thread_select): Cast to const char *.
6207
6208 2016-01-14 Yao Qi <yao.qi@linaro.org>
6209
6210 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
6211 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
6212 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
6213 instead.
6214 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
6215 <arm_thumb2_breakpoint>: Remove.
6216 <has_thumb2_breakpoint>: New field.
6217 (arm_get_next_pcs_ctor): Update declaration.
6218 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
6219 1 to arm_get_next_pcs_ctor.
6220 * arm-tdep.c (arm_software_single_step): Pass 0 to
6221 arm_get_next_pcs_ctor.
6222
6223 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
6224
6225 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
6226
6227 2016-01-13 Yao Qi <yao.qi@linaro.org>
6228
6229 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
6230 byte_order_for_code to read instruction.
6231
6232 2016-01-13 Pedro Alves <palves@redhat.com>
6233
6234 * NEWS: Mention $_gthread.
6235 * gdbthread.h (struct thread_info) <global_num>: Mention
6236 $_gthread.
6237 * thread.c (thread_num_make_value_helper): New function.
6238 (thread_id_make_value): Delete.
6239 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
6240 New.
6241 (thread_funcs): Adjust.
6242 (gthread_funcs): New.
6243 (_initialize_thread): Register $_gthread variable.
6244
6245 2016-01-13 Pedro Alves <palves@redhat.com>
6246
6247 * NEWS: Mention "info threads -gid".
6248 * gdbthread.h (struct thread_info) <global_num>: Mention "info
6249 threads -gid".
6250 * thread.c (info_threads_command): Handle "-gid".
6251 (_initialize_thread): Adjust "info threads" help string to mention
6252 -gid.
6253
6254 2016-01-13 Pedro Alves <palves@redhat.com>
6255
6256 * NEWS: Mention InferiorThread.global_num.
6257 * python/py-infthread.c (thpy_get_global_num): New function.
6258 (thread_object_getset): Register "global_num".
6259
6260 2016-01-13 Pedro Alves <palves@redhat.com>
6261
6262 * NEWS: Mention that thread IDs are now per inferior and global
6263 thread IDs.
6264 * Makefile.in (SFILES): Add tid-parse.c.
6265 (COMMON_OBS): Add tid-parse.o.
6266 (HFILES_NO_SRCDIR): Add tid-parse.h.
6267 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
6268 * breakpoint.c (insert_breakpoint_locations)
6269 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
6270 (print_one_breakpoint_location, set_longjmp_breakpoint)
6271 (check_longjmp_breakpoint_for_call_dummy)
6272 (set_momentary_breakpoint): Adjust to use global IDs.
6273 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
6274 (until_break_command, longjmp_bkpt_dtor)
6275 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
6276 to use global IDs.
6277 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
6278 ptid_to_global_thread_id.
6279 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
6280 * gdbthread.h (struct thread_info): Rename field 'num' to
6281 'global_num. Add new fields 'per_inf_num' and 'inf'.
6282 (thread_id_to_pid): Rename thread_id_to_pid to
6283 global_thread_id_to_ptid.
6284 (pid_to_thread_id): Rename to ...
6285 (ptid_to_global_thread_id): ... this.
6286 (valid_thread_id): Rename to ...
6287 (valid_global_thread_id): ... this.
6288 (find_thread_id): Rename to ...
6289 (find_thread_global_id): ... this.
6290 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
6291 (print_thread_info): Add comment.
6292 * tid-parse.h: New file.
6293 * tid-parse.c: New file.
6294 * infcmd.c (step_command_fsm_prepare)
6295 (step_command_fsm_should_stop): Adjust to use the global thread
6296 ID.
6297 (until_next_command, until_next_command)
6298 (finish_command_fsm_should_stop): Adjust to use the global thread
6299 ID.
6300 (attach_post_wait): Adjust to check the inferior number too.
6301 * inferior.h (struct inferior) <highest_thread_num>: New field.
6302 * infrun.c (handle_signal_stop)
6303 (insert_exception_resume_breakpoint)
6304 (insert_exception_resume_from_probe): Adjust to use the global
6305 thread ID.
6306 * record-btrace.c (record_btrace_open): Use global thread IDs.
6307 * remote.c (process_initial_stop_replies): Also consider the
6308 inferior number.
6309 * target.c (target_pre_inferior): Clear the inferior's highest
6310 thread num.
6311 * thread.c (clear_thread_inferior_resources): Adjust to use the
6312 global thread ID.
6313 (new_thread): New inferior parameter. Adjust to use it. Set both
6314 the thread's global ID and the thread's per-inferior ID.
6315 (add_thread_silent): Adjust.
6316 (find_thread_global_id): New.
6317 (find_thread_id): Make static. Adjust to rename.
6318 (valid_thread_id): Rename to ...
6319 (valid_global_thread_id): ... this.
6320 (pid_to_thread_id): Rename to ...
6321 (ptid_to_global_thread_id): ... this.
6322 (thread_id_to_pid): Rename to ...
6323 (global_thread_id_to_ptid): ... this. Adjust.
6324 (first_thread_of_process): Adjust.
6325 (do_captured_list_thread_ids): Adjust to use global thread IDs.
6326 (should_print_thread): New function.
6327 (print_thread_info): Rename to ...
6328 (print_thread_info_1): ... this, and add new show_global_ids
6329 parameter. Handle it. Iterate over inferiors.
6330 (print_thread_info): Reimplement as wrapper around
6331 print_thread_info_1.
6332 (show_inferior_qualified_tids): New function.
6333 (print_thread_id): Use it.
6334 (tp_array_compar): Compare inferior numbers too.
6335 (thread_apply_command): Use tid_range_parser.
6336 (do_captured_thread_select): Use parse_thread_id.
6337 (thread_id_make_value): Adjust.
6338 (_initialize_thread): Adjust "info threads" help string.
6339 * varobj.c (struct varobj_root): Update comment.
6340 (varobj_create): Adjust to use global thread IDs.
6341 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
6342 * windows-tdep.c (display_tib): No longer accept an argument.
6343 * cli/cli-utils.c (get_number_trailer): Make extern.
6344 * cli/cli-utils.h (get_number_trailer): Declare.
6345 (get_number_const): Adjust documentation.
6346 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
6347 thread IDs.
6348 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6349 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
6350 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
6351 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
6352 Likewise.
6353 * python/py-breakpoint.c (bppy_set_thread): Likewise.
6354 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
6355 * python/py-infthread.c (thpy_get_num): Add comment and return the
6356 per-inferior thread ID.
6357 (thread_object_getset): Update comment of "num".
6358
6359 2016-01-13 Pedro Alves <palves@redhat.com>
6360
6361 * breakpoint.c (remove_threaded_breakpoints)
6362 (print_one_breakpoint_location): Use print_thread_id.
6363 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
6364 (btrace_fetch, btrace_clear): Use print_thread_id.
6365 * common/print-utils.c (CELLSIZE): Delete.
6366 (get_cell): Rename to ...
6367 (get_print_cell): ... this and made extern. Adjust call callers.
6368 Adjust to use PRINT_CELL_SIZE.
6369 * common/print-utils.h (get_print_cell): Declare.
6370 (PRINT_CELL_SIZE): New.
6371 * gdbthread.h (print_thread_id): Declare.
6372 * infcmd.c (signal_command): Use print_thread_id.
6373 * inferior.c (print_inferior): Use print_thread_id.
6374 * infrun.c (handle_signal_stop)
6375 (insert_exception_resume_breakpoint)
6376 (insert_exception_resume_from_probe)
6377 (print_signal_received_reason): Use print_thread_id.
6378 * record-btrace.c (record_btrace_info)
6379 (record_btrace_resume_thread, record_btrace_cancel_resume)
6380 (record_btrace_step_thread, record_btrace_wait): Use
6381 print_thread_id.
6382 * thread.c (thread_apply_all_command): Use print_thread_id.
6383 (print_thread_id): New function.
6384 (thread_apply_command): Use print_thread_id.
6385 (thread_command, thread_find_command, do_captured_thread_select):
6386 Use print_thread_id.
6387
6388 2016-01-13 Pedro Alves <palves@redhat.com>
6389
6390 * NEWS: Mention InferiorThread.inferior.
6391 * python/py-infthread.c (thpy_get_inferior): New.
6392 (thread_object_getset): Register "inferior".
6393
6394 2016-01-13 Pedro Alves <palves@redhat.com>
6395
6396 * NEWS: Mention $_inferior.
6397 * inferior.c (inferior_id_make_value): New.
6398 (inferior_funcs): New.
6399 (_initialize_inferior): Create $_inferior variable.
6400
6401 2016-01-13 Pedro Alves <palves@redhat.com>
6402
6403 PR breakpoints/19388
6404 * frame.c (get_current_frame): Use validate_registers_access.
6405 * gdbthread.h (validate_registers_access): Declare.
6406 * infrun.c (validate_siginfo_access): Delete.
6407 (siginfo_value_read, siginfo_value_write): Use
6408 validate_registers_access.
6409 * thread.c (validate_registers_access): New function.
6410
6411 2016-01-12 Josh Stone <jistone@redhat.com>
6412 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6413
6414 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
6415 syscall_entry and syscall_return stop reasons. Mention GDB
6416 support for remote catch syscall.
6417 * remote.c (PACKET_QCatchSyscalls): New enum.
6418 (remote_set_syscall_catchpoint): New function.
6419 (remote_protocol_features): New element for QCatchSyscalls.
6420 (remote_parse_stop_reply): Parse syscall_entry/return stops.
6421 (init_remote_ops): Install remote_set_syscall_catchpoint.
6422 (_initialize_remote): Config QCatchSyscalls.
6423 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
6424
6425 2016-01-12 Yao Qi <yao.qi@linaro.org>
6426
6427 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
6428 to gdb_byte * and pass to linux_fork_to_function.
6429
6430 2016-01-12 Yao Qi <yao.qi@linaro.org>
6431
6432 * nat/linux-ptrace.c (linux_fork_to_function): Change type
6433 of argument 'function'.
6434 (linux_grandchild_function): Change return type to 'int'.
6435 Change child_stack's type to 'void *'.
6436 (linux_child_function): Likewise.
6437
6438 2016-01-12 Pedro Alves <palves@redhat.com>
6439
6440 Remove use of the registered trademark symbol throughout.
6441
6442 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
6443
6444 * reply_mig_hack.awk: Rewrite one regular expression.
6445
6446 2016-01-11 Mike Frysinger <vapier@gentoo.org>
6447
6448 * acinclude.m4: Include new warning.m4 file.
6449 * configure: Regenerated.
6450 * configure.ac: Move all warning logic ...
6451 * warning.m4: ... here.
6452
6453 2016-01-08 Yao Qi <yao.qi@linaro.org>
6454
6455 * extension.c: Include target.h.
6456 (set_active_ext_lang): Only call install_gdb_sigint_handler,
6457 check_quit_flag, and set_quit_flag if target_terminal_is_ours
6458 returns false.
6459 (restore_active_ext_lang): Likewise.
6460 * target.c (target_terminal_is_ours): New function.
6461 * target.h (target_terminal_is_ours): Declare.
6462
6463 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
6464
6465 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
6466 to `err' in the little-endian leg.
6467
6468 2016-01-06 Yao Qi <yao.qi@linaro.org>
6469
6470 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
6471 lines below.
6472 (thumb_get_next_pcs_raw): Make it static.
6473 (arm_get_next_pcs_raw): Likewise.
6474 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
6475 declaration.
6476 (arm_get_next_pcs_raw): Likewise.
6477
6478 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6479
6480 * version.in: Change cvs to git.
6481
6482 2016-01-05 Mike Frysinger <vapier@gentoo.org>
6483
6484 * configure.tgt (score-*-*): Delete gdb_sim assignment.
6485
6486 2016-01-05 Pedro Alves <palves@redhat.com>
6487
6488 PR sim/13418
6489 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
6490 the target is powerpc*.
6491 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
6492 of WITH_SIM.
6493 * configure: Regenerate.
6494 * config.in: Regenerate.
6495
6496 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
6497
6498 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
6499
6500 2016-01-02 Mike Frysinger <vapier@gentoo.org>
6501
6502 * configure.tgt (powerpc*-*-*): Delete test call and
6503 always assign gdb_sim.
6504
6505 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6506
6507 Update year range in copyright notice of all files.
6508
6509 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6510
6511 * top.c (print_gdb_version): Change copyright year in version
6512 message.
6513
6514 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6515
6516 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
6517
6518 For older changes see ChangeLog-2015.
6519 \f
6520 Local Variables:
6521 mode: change-log
6522 left-margin: 8
6523 fill-column: 74
6524 version-control: never
6525 coding: utf-8
6526 End:
This page took 0.20337 seconds and 4 git commands to generate.