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