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