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