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