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