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