[spu] Fix C++ build problems
[external/binutils.git] / gdb / ChangeLog
1 2016-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
4         (spu_bfd_open): Likewise.
5
6 2016-05-04  Yao Qi  <yao.qi@linaro.org>
7
8         PR gdb/19947
9         * corefile.c (read_memory): Rename it to ...
10         (read_memory_object): ... it.  Add parameter object.
11         (read_memory): Call read_memory_object.
12         (read_stack): Likewise.
13         (read_code): Likewise.
14
15 2016-05-03  Yunlian Jiang <yunlian@google.com>
16             Doug Evans  <dje@google.com>
17
18         PR symtab/19914
19         * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
20         is separate debug file.
21
22 2016-05-03  Don Breazeal <donb@codesourcery.com>
23
24         * serial.h (gdb_pipe): Fix argument names in comment.
25
26 2016-05-03  Pedro Alves <palves@redhat.com>
27
28         PR python/20037
29         * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
30         oldloc.
31
32 2016-05-03  Pedro Alves <palves@redhat.com>
33
34         * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
35         code.
36
37 2016-05-03  Pedro Alves  <palves@redhat.com>
38
39         * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
40         * configure: Regenerate.
41
42 2016-05-03  Pedro Alves  <palves@redhat.com>
43
44         * configure.ac (checking for the dynamic export flag): Add
45         $PYTHON_CPPFLAGS to CPPFLAGS.
46         * configure: Regenerate.
47
48 2016-05-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
49
50         * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
51         warning.
52         (find_pc_mapped_section): Likewise.
53         (list_overlays_command): Likewise.
54
55 2016-05-02  Eli Zaretskii  <eliz@gnu.org>
56
57         * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
58         error in allocation of space for "$HOME/.gdbinit" string.  This
59         caused GDB to abort on startup whenever a '~/gdb.ini' file was
60         actually found, because xsnprintf would hit an assertion
61         violation.
62
63 2016-04-28  Simon Marchi  <simon.marchi@ericsson.com>
64
65         * cli/cli-decode.c (help_cmd_list): Do not list commands that
66         are deprecated.
67
68 2016-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
69
70         * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
71
72 2016-04-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
73
74         * c-valprint.c (c_value_print): Always convert val back to reference
75         type if we converted it to a pointer type.
76
77 2016-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
78
79         * configure.ac: Enhance configure check for babeltrace to reject
80         non-C++-enabled versions.
81         * configure: Regenerate.
82
83 2016-04-26  Sanimir Agovic  <sanimir.agovic@intel.com>
84             Keven Boell  <keven.boell@intel.com>
85             Bernhard Heckel  <bernhard.heckel@intel.com>
86
87         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
88         function.
89         (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
90         (f77_print_array_1): Use value_subscript to subscript a
91         value array.
92         (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
93         (f_val_print): Use value_field to construct a field value.
94
95 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
96
97         * valarith.c (value_address): Resolve dynamic types.
98
99 2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>
100             Keven Boell  <kevel.boell@intel.com>
101
102         * NEWS: Add new supported features for fortran.
103         * gdbtypes.c (remove_dyn_prop): New.
104         (resolve_dynamic_struct): Keep type length for fortran structs.
105         * gdbtypes.h: Forward declaration of new function.
106         * value.c (value_address): Return dynamic resolved location of a value.
107         (set_value_component_location): Adjust the value address
108         for single value prints.
109         (value_primitive_field): Support value types with a dynamic location.
110         (set_internalvar): Remove dynamic location property of
111         internal variables.
112
113 2016-04-25  Pedro Alves  <palves@redhat.com>
114             Yao Qi  <yao.qi@linaro.org>
115
116         * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
117         object.  Insert it if it is not inserted yet.  Increase the
118         refcount and link it into the proc's raw breakpoint list.
119
120 2016-04-25  Yao Qi  <yao.qi@linaro.org>
121
122         * breakpoint.c (should_be_inserted): Return 0 if the location's
123         owner is not single step breakpoint or single step breakpoint's
124         thread isn't the thread which is stepping past a breakpoint.
125         * gdbarch.sh (software_single_step): Update comments.
126         * gdbarch.h: Regenerated.
127         * infrun.c (struct step_over_info) <thread>: New field.
128         (set_step_over_info): New argument 'thread'.  Callers updated.
129         (clear_step_over_info): Set field thread to -1.
130         (thread_is_stepping_over_breakpoint): New function.
131         * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
132
133 2016-04-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
134
135         * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
136         and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
137
138 2016-04-22  Yao Qi  <yao.qi@linaro.org>
139
140         * valops.c (read_value_memory): New local variable 'stack'.
141         Set it to either TARGET_OBJECT_STACK_MEMORY or
142         TARGET_OBJECT_MEMORY.
143
144 2016-04-22  Pedro Alves  <palves@redhat.com>
145
146         * ada-exp.y: Remove all yy symbol remappings.
147         (GDB_YY_REMAP_PREFIX): Define.
148         Include "yy-remap.h".
149         * ada-lang.c (ada_language_defn): Adjust.
150         * ada-lang.h (ada_error): Rename to ...
151         (ada_yyerror): ... this.
152         * c-exp.y: Remove all yy symbol remappings.
153         (GDB_YY_REMAP_PREFIX): Define.
154         Include "yy-remap.h".
155         * c-lang.c (c_language_defn, cplus_language_defn)
156         (asm_language_defn, minimal_language_defn): Adjust.
157         * c-lang.h (c_error): Rename to ...
158         (c_yyerror): ... this.
159         * d-exp.y: Remove all yy symbol remappings.
160         (GDB_YY_REMAP_PREFIX): Define.
161         Include "yy-remap.h".
162         * d-lang.c (d_language_defn): Adjust.
163         * d-lang.h (d_error): Rename to ...
164         (d_yyerror): ... this.
165         * f-exp.y: Remove all yy symbol remappings.
166         (GDB_YY_REMAP_PREFIX): Define.
167         Include "yy-remap.h".
168         * f-lang.c (f_language_defn): Adjust.
169         * f-lang.h (f_error): Rename to ...
170         (f_yyerror): ... this.
171         * go-exp.y: Remove all yy symbol remappings.
172         (GDB_YY_REMAP_PREFIX): Define.
173         Include "yy-remap.h".
174         * go-lang.c (go_language_defn): Adjust.
175         * go-lang.h (go_error): Rename to ...
176         (go_yyerror): ... this.
177         * jv-exp.y: Remove all yy symbol remappings.
178         (GDB_YY_REMAP_PREFIX): Define.
179         Include "yy-remap.h".
180         * jv-lang.c (java_language_defn): Adjust.
181         * jv-lang.h (java_error): Rename to ...
182         (java_yyerror): ... this.
183         * m2-exp.y: Remove all yy symbol remappings.
184         (GDB_YY_REMAP_PREFIX): Define.
185         Include "yy-remap.h".
186         * m2-lang.c (m2_language_defn): Adjust.
187         * m2-lang.h (m2_error): Rename to ...
188         (m2_yyerror): ... this.
189         * objc-exp.y: Remove all yy symbol remappings.
190         (GDB_YY_REMAP_PREFIX): Define.
191         Include "yy-remap.h".
192         * objc-lang.c (objc_language_defn): Adjust.
193         * opencl-lang.c (opencl_language_defn): Adjust.
194         * p-exp.y: Remove all yy symbol remappings.
195         (GDB_YY_REMAP_PREFIX): Define.
196         Include "yy-remap.h".
197         * p-lang.c (pascal_language_defn): Adjust.
198         * p-lang.h (pascal_error): Rename to ...
199         (pascal_yyerror): ... this.
200         * yy-remap.h: New file.
201
202 2016-04-22  Pedro Alves  <palves@redhat.com>
203
204         * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
205         the foreign frames issue.
206         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
207
208 2016-04-22  Pedro Alves  <palves@redhat.com>
209
210         * common/common-exceptions.c (enum catcher_state, struct catcher)
211         (current_catcher): Define in C++ mode too.
212         (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
213         throw_exception.
214         (throw_exception_sjlj, throw_exception_cxx): New functions,
215         factored out from throw_exception.
216         (throw_exception): Reimplement.
217         * common/common-exceptions.h (exceptions_state_mc_init)
218         (exceptions_state_mc_action_iter)
219         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
220         Declare in C++ mode too.
221         (TRY): Rename to ...
222         (TRY_SJLJ): ... this.
223         (CATCH): Rename to ...
224         (CATCH_SJLJ): ... this.
225         (END_CATCH): Rename to ...
226         (END_CATCH_SJLJ): ... this.
227         [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
228         equivalents.
229         (throw_exception): Update comments.
230         (throw_exception_sjlj): Declare.
231         * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
232         comment.  Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
233         intercepted exception.
234         (gdb_rl_callback_handler): New function.
235         (gdb_rl_callback_handler_install): Always install
236         gdb_rl_callback_handler as readline callback.
237
238 2016-04-22  Pedro Alves  <palves@redhat.com>
239
240         * event-top.c (rl_callback_read_char_wrapper): Rename to ...
241         (gdb_rl_callback_read_char_wrapper): ... this.
242         (change_line_handler, gdb_setup_readline): Adjust.
243
244 2016-04-22  Yao Qi  <yao.qi@linaro.org>
245
246         * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
247         bits 20 to 23.
248
249 2016-04-22  Joel Brobecker  <brobecker@adacore.com>
250
251         * MAINTAINER: Remove myself as AIX Maintainer.
252
253 2016-04-22  Maciej W. Rozycki  <macro@imgtec.com>
254
255         * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
256         `num_regs' to 90 rather than 79.  Where a target description is
257         present adjust the setting appropriately.
258
259 2016-04-21  Pedro Alves  <palves@redhat.com>
260
261         * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
262         (GDB_XCPT): Always define as GDB_XCPT_SJMP.
263
264 2016-04-21  Pedro Alves  <palves@redhat.com>
265
266         * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
267         (aix_thread_resume): Use PTRACE_TYPE_ARG5.
268         * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
269         (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
270         pointer, and cast return to gdb_byte pointer.
271
272 2016-04-21  Pedro Alves  <palves@redhat.com>
273
274         * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
275         void * instead of gdb_byte *.
276
277 2016-04-21  Pedro Alves  <palves@redhat.com>
278
279         * dwarf2read.c (try_open_dwop_file, open_dwo_file)
280         (file_file_name, file_full_name): Add char * cast to sentinel in
281         concat/reconcat calls.
282         * event-top.c (top_level_prompt): Likewise.
283         * guile/guile.c (initialize_scheme_side): Likewise.
284         * linux-tdep.c (linux_fill_prpsinfo): Likewise.
285         * macrotab.c (macro_source_fullname): Likewise.
286         * main.c (get_init_files, captured_main): Likewise.
287         * psymtab.c (psymtab_to_fullname): Likewise.
288         * python/python.c (_initialize_python)
289         (gdbpy_finish_initialization): Likewise.
290         * source.c (symtab_to_fullname): Likewise.
291
292 2016-04-20  Pedro Alves  <palves@redhat.com>
293
294         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
295         * configure: Renegerate.
296
297 2016-04-20  Pedro Alves  <palves@redhat.com>
298
299         * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
300
301 2016-04-20  Pedro Alves  <palves@redhat.com>
302
303         * aarch64-tdep.c (aarch64_record_load_store): Change type of
304         'reg_rm_val' local to ULONGEST.
305
306 2016-04-20  Pedro Alves  <palves@redhat.com>
307
308         * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
309
310 2016-04-20  Doug Evans  <xdje42@gmail.com>
311
312         * symmisc.c (dump_symtab_1): Print owning compunit for identical
313         blockvectors.
314
315 2016-04-20  Yao Qi  <yao.qi@linaro.org>
316
317         * aarch32-linux-nat.c: Include "arch/arm-linux.h".
318
319 2016-04-20  Yao Qi  <yao.qi@linaro.org>
320
321         * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
322         * arch/arm-linux.h: ... here.
323
324 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
325
326         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
327         to void *.
328         (amd64bsd_store_inferior_registers): Likewise.
329         * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
330         (resume_all_threads_cb): Likewise.
331         * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
332         (i386bsd_collect_gregset): Likewise.
333         (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
334         (i386bsd_store_inferior_registers): Likewise.
335
336 2016-04-19  John Baldwin  <jhb@FreeBSD.org>
337
338         * main.c (setup_alternate_signal_stack): Cast to char *.
339
340 2016-04-19  Doug Evans  <xdje42@gmail.com>
341
342         * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
343         All callers updated.
344
345 2016-04-19  Doug Evans  <xdje42@gmail.com>
346
347         PR gdb/17911
348         * source.c (is_regular_file): New arg errno_ptr.
349         All callers updated.
350
351 2016-04-19  Andreas Arnez  <arnez@linux.vnet.ibm.com>
352
353         * linux-record.c (record_linux_system_call): Merge handling for
354         readlink/recv/read and pipe/pipe2.
355
356 2016-04-14  Walfred Tedeschi  <walfred.tedeschi@intel.com>
357
358         * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
359         * features/i386/amd64-mpx.xml: Remove AVX feature.
360         * features/i386/i386-mpx-linux.xml: Remove AVX feature.
361         * features/i386/i386-mpx.xml: Remove AVX feature.
362         * features/i386/amd64-mpx-linux.c: Regenerate.
363         * features/i386/amd64-mpx.c: Regenerate.
364         * features/i386/i386-mpx-linux.c: Regenerate.
365         * features/i386/i386-mpx.c: Regenerate.
366         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
367         * regformats/i386/amd64-mpx.dat: Regenerate.
368         * regformats/i386/i386-mpx-linux.dat: Regenerate.
369         * regformats/i386/i386-mpx.dat: Regenerate.
370
371 2016-04-16  Walfred Tedeschi  <walfred.tedeschi@intel.com>
372
373         * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
374         New include.
375         (amd64_linux_core_read_description): Add case for
376          X86_XSTATE_AVX_MPX_MASK.
377         (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
378         * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
379         * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
380         (amd64_target_description): Add case for  X86_XSTATE_AVX_MPX_MASK.
381         (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
382         * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
383         (X86_XSTATE_AVX_MPX_MASK): New case.
384         * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
385         (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
386         (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
387         (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
388         New expedites.
389         * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
390         include.
391         (i386_linux_core_read_description): Add case
392         X86_XSTATE_AVX_MPX_MASK.
393         (_initialize_i386_linux_tdep): Call
394         initialize_tdesc_i386_avx_mpx_linux.
395         * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
396         * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
397         (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
398         * x86-linux-nat.c (x86_linux_read_description): Add case for
399         X86_XSTATE_AVX_MPX_MASK.
400         * features/i386/amd64-avx-mpx-linux.xml: New file.
401         * features/i386/i386-avx-mpx-linux.xml: New file.
402         * features/i386/i386-avx-mpx.xml: New file.
403         * features/i386/amd64-avx-mpx.xml: New file.
404         * features/i386/amd64-avx-mpx-linux.c: Generated.
405         * features/i386/amd64-avx-mpx.c: Generated.
406         * features/i386/i386-avx-mpx-linux.c: Generated.
407         * features/i386/i386-avx-mpx.c: Generated.
408         * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
409         * regformats/i386/amd64-avx-mpx.dat: Generated.
410         * regformats/i386/i386-avx-mpx-linux.dat: Generated.
411         * regformats/i386/i386-avx-mpx.dat: Generated.
412
413 2016-04-18  Pedro Alves  <palves@redhat.com>
414
415         * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
416         * configure: Regenerate.
417
418 2016-04-18  Martin Galvan  <martin.galvan@tallertechnologies.com>
419
420         * valops.c (value_addr): For C++ references, set the copied value's
421         enclosing_type as well.
422
423 2016-04-18  Yao Qi  <yao.qi@linaro.org>
424
425         Revert:
426         2016-04-15  Yao Qi  <yao.qi@linaro.org>
427
428         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
429         PC is far from the end of function.
430
431 2016-04-16  Pedro Alves  <palves@redhat.com>
432
433         * ada-exp.y (yydefred): Define as ada_yydefred.
434
435 2016-04-15  Pedro Alves  <palves@redhat.com>
436
437         * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
438         'name_str' locals.
439
440 2016-04-15  Pedro Alves  <palves@redhat.com>
441
442         * btrace.c (pt_btrace_insn_flags): Change return type to
443         btrace_insn_flags.  Use btrace_insn_flags for local.
444
445 2016-04-15  Pedro Alves  <palves@redhat.com>
446
447         * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
448         accept TRAP_BRKPT.
449          [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
450
451 2016-04-15  Yao Qi  <yao.qi@linaro.org>
452
453         * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
454         PC is far from the end of function.
455
456 2016-04-14  Pedro Alves  <palves@redhat.com>
457
458         * cli/cli-cmds.c (alias_usage_error): New function.
459         (alias_command): Use it.
460         * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
461         ctf_save_write_metadata call.
462
463 2016-04-14  Pedro Alves  <palves@redhat.com>
464
465         * ada-typeprint.c (print_fixed_point_type): Don't pass float as
466         argument to function expecting LONGEST.
467         * value.c (unpack_long): Add casts to LONGEST.
468
469 2016-04-13  Luis Machado  <lgustavo@codesourcery.com>
470
471         * exec.c (exec_file_locate_attach): Guard a couple functions
472         that can throw errors.
473         (exception_print_same): New helper function.
474
475 2016-04-13  Pedro Alves  <palves@redhat.com>
476
477         PR remote/19840
478         * remote.c (struct remote_state) <last_resume_exec_dir>: New
479         field.
480         (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
481         (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
482         (remote_resume): Store the last execution direction.
483         (remote_execution_direction): New function.
484         (init_remote_ops): Install it as to_execution_direction target_ops
485         method.
486
487 2016-04-12  Pedro Alves  <palves@redhat.com>
488
489         * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
490         [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
491
492 2016-04-12  Pedro Alves  <palves@redhat.com>
493
494         * common/common-exceptions.c (struct catcher) <buf>: Now a
495         'jmp_buf' instead of SIGJMP_BUF.
496         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
497         (throw_exception): Use longjmp instead of SIGLONGJMP.
498         * common/common-exceptions.h: Include <setjmp.h> instead of
499         "gdb_setjmp.h".
500         (exceptions_state_mc_init): Change return type to 'jmp_buf'.
501         [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
502         SIGSETJMP.
503         * cp-support.c: Include "gdb_setjmp.h".
504
505 2016-04-12  Pedro Alves  <palves@redhat.com>
506
507         * common/common-exceptions.c (exception_rethrow): Remove
508         prepare_to_throw_exception call.
509         * common/common-exceptions.h (prepare_to_throw_exception): Delete
510         declaration.
511         * exceptions.c (prepare_to_throw_exception): Delete.
512
513 2016-04-12  Pedro Alves  <palves@redhat.com>
514
515         * target.c (target_check_pending_interrupt): Delete.
516         * target.h (struct target_ops) <to_check_pending_interrupt>:
517         Remove method.
518         (target_check_pending_interrupt): Remove declaration.
519         * target-delegates.c: Regenerate.
520
521 2016-04-12  Pedro Alves  <palves@redhat.com>
522
523         * defs.h: Update comments on SIGINT handling.
524         (immediate_quit): Delete declaration.
525         * event-loop.c (call_async_signal_handler): Delete.
526         * event-loop.h (call_async_signal_handler): Delete declaration.
527         (mark_async_signal_handler): Update comments.
528         (gdb_call_async_signal_handler): Delete declaration.
529         * event-top.c (handle_sigint): Call mark_async_signal_handler
530         instead of gdb_call_async_signal_handler.
531         * exceptions.c (prepare_to_throw_exception): Remove reference to
532         immediate_quit.
533         (exception_fprintf): Remove comments about immediate_quit.
534         * mingw-hdep.c (sigint_event, sigint_handler): Delete.
535         (gdb_select): Don't wait on sigint_event.
536         (gdb_call_async_signal_handler): Delete.
537         (_initialize_mingw_hdep): Delete.
538         * posix-hdep.c (gdb_call_async_signal_handler): Delete.
539         * utils.c (immediate_quit): Delete.
540
541 2016-04-12  Pedro Alves  <palves@redhat.com>
542
543         * defs.h (quit_handler_ftype, quit_handler)
544         (make_cleanup_override_quit_handler, default_quit_handler): New.
545         (QUIT): Adjust comments.
546         * event-top.c (default_quit_handler): New function.
547         (quit_handler): New global.
548         (struct quit_handler_cleanup_data): New.
549         (restore_quit_handler, restore_quit_handler_dtor)
550         (make_cleanup_override_quit_handler): New.
551         (async_request_quit): Call QUIT.
552         * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
553         (async_sigint_remote_twice_token, async_sigint_remote_token):
554         Delete.
555         (remote_close): Update comments.
556         (remote_start_remote): Don't set immediate_quit.  Set starting_up
557         earlier.
558         (remote_serial_quit_handler, remote_unpush_and_throw): New
559         functions.
560         (remote_open_1): Clear got_ctrlc_during_io.  Set
561         remote_async_terminal_ours_p unconditionally.
562         (async_initialize_sigint_signal_handler)
563         (async_handle_remote_sigint, async_handle_remote_sigint_twice)
564         (remote_check_pending_interrupt, async_remote_interrupt)
565         (async_remote_interrupt_twice)
566         (async_cleanup_sigint_signal_handler, ofunc)
567         (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
568         (remote_terminal_inferior, remote_terminal_ours): Remove async
569         checks.
570         (remote_wait_as): Don't install a SIGINT handler in sync mode.
571         (readchar, remote_serial_write): Override the quit handler with
572         remote_serial_quit_handler.
573         (getpkt_or_notif_sane_1): Don't call QUIT.
574         (initialize_remote_ops): Don't install
575         remote_check_pending_interrupt.
576         (_initialize_remote): Don't create async_sigint_remote_token and
577         async_sigint_remote_twice_token.
578         * ser-base.c (ser_base_wait_for): Call QUIT and use
579         interruptible_select.
580         (ser_base_write): Call QUIT.
581         * ser-go32.c (dos_readchar, dos_write): Call QUIT.
582         * ser-unix.c (wait_for): Don't use VTIME.  Always take the
583         gdb_select path, but call QUIT and interruptible_select.
584         * utils.c (maybe_quit): Call the current quit handler.  Don't call
585         target_check_pending_interrupt.
586         (defaulted_query, prompt_for_continue): Override the quit handler
587         with the default quit handler.
588
589 2016-04-12  Pedro Alves  <palves@redhat.com>
590
591         * tui/tui-hooks.c (tui_target_has_run): Delete.
592         (tui_about_to_proceed): Delete.
593         (tui_about_to_proceed_observer): Delete.
594         (tui_install_hooks, tui_remove_hooks): Don't install/remove an
595         about_to_proceed observer.
596
597 2016-04-12  Pedro Alves  <palves@redhat.com>
598
599         * mi/mi-interp.c (mi_new_thread): Put
600         target_terminal_ours_for_output in effect while outputting.
601         (mi_thread_exit): Use target_terminal_ours_for_output instead of
602         target_terminal_ours.
603         (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
604         (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
605         (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
606         (mi_breakpoint_created, mi_breakpoint_deleted)
607         (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
608         (mi_command_param_changed, mi_memory_changed)
609         (report_initial_inferior): Use target_terminal_ours_for_output
610         instead of target_terminal_ours.  Restore terminal settings.
611         * mi/mi-main.c (mi_execute_command): Use
612         target_terminal_ours_for_output instead of target_terminal_ours.
613         Restore terminal settings.
614
615 2016-04-12  Pedro Alves  <palves@redhat.com>
616
617         PR gdb/19828
618         * gnu-nat.c (inf_validate_task_sc): Don't call
619         target_terminal_ours / target_terminal_inferior around query.
620         * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
621         call target_terminal_ours / target_terminal_inferior around
622         yquery.
623         * linux-record.c (record_linux_system_call): Don't call
624         target_terminal_ours / target_terminal_inferior around yquery.
625         * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
626         / target_terminal_inferior around query.
627         * record-full.c (record_full_check_insn_num): Remove
628         'set_terminal' parameter.  Don't call target_terminal_ours /
629         target_terminal_inferior around query.
630         (record_full_message, record_full_registers_change)
631         (record_full_xfer_partial): Adjust.
632         * remote.c (interrupt_query): Don't call target_terminal_ours /
633         target_terminal_inferior around query.
634         * utils.c (defaulted_query): Install cleanup to restore target
635         terminal.  Put target_terminal_ours_for_output in effect while
636         defaulted producing, and target_terminal_ours in in effect while
637         handling input.
638         (prompt_for_continue): Install cleanup to restore target terminal.
639         Put target_terminal_ours in in effect while handling input.
640
641 2016-04-12  Pedro Alves  <palves@redhat.com>
642
643         * utils.c (defaulted_query, prompt_for_continue): Free temporary
644         strings with cleanups, instead of xfree.
645
646 2016-04-12  Pedro Alves  <palves@redhat.com>
647
648         * utils.c (vwarning, internal_vproblem): Use
649         make_cleanup_restore_target_terminal and
650         target_terminal_ours_for_output.
651
652 2016-04-12  Pedro Alves  <palves@redhat.com>
653
654         * infcmd.c (post_create_inferior, prepare_one_step): Use
655         target_terminal_ours_for_output instead of target_terminal_ours.
656
657 2016-04-12  Pedro Alves  <palves@redhat.com>
658
659         * exceptions.c (print_flush): Use target_terminal_ours_for_output
660         instead of target_terminal_ours, and restore target terminal with
661         a cleanup.
662
663 2016-04-12  Pedro Alves  <palves@redhat.com>
664
665         * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
666         instead of target_terminal_ours, and restore target terminal with
667         a cleanup.
668
669 2016-04-12  Pedro Alves  <palves@redhat.com>
670
671         * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
672         functions.
673         (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
674
675 2016-04-12  Pedro Alves  <palves@redhat.com>
676
677         * ser-base.c (fd_event): Retry read_prim on EINTR.
678         (do_ser_base_readchar): Retry read_prim on EINTR.
679         (ser_base_write): Retry write_prim on EINTR.
680         * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
681         (ser_unix_write_prim): Remove comment.
682
683 2016-04-12  Pedro Alves  <palves@redhat.com>
684
685         * remote.c (remote_pass_ctrlc): New function.
686         (init_remote_ops): Install it.
687         * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
688         target.
689         (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
690         * target.h (struct target_ops) <to_pass_ctrlc>: New method.
691         (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
692         * target-delegates.c: Regenerate.
693
694 2016-04-12  Pedro Alves  <palves@redhat.com>
695
696         * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
697         mode.
698         * linux-nat.c (linux_nat_interrupt): Delete.
699         (linux_nat_add_target): Don't install linux_nat_interrupt.
700         * remote.c (remote_interrupt_ns): Change return type to void.
701         Throw error if interrupting the target is not supported.
702         (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
703
704 2016-04-12  Pedro Alves  <palves@redhat.com>
705
706         * defs.h (clear_quit_flag): Remove declaration.
707         * extension-priv.h (struct extension_language_ops)
708         <clear_quit_flag>: Remove field and update comments.
709         * extension.c (clear_quit_flag): Delete.
710         * guile/guile.c (guile_extension_ops): Adjust.
711         * python/python.c (python_extension_ops): Adjust.
712         (gdbpy_clear_quit_flag): Delete.
713
714 2016-04-12  Pedro Alves  <palves@redhat.com>
715
716         * main.c (captured_main): Don't clear the quit flag.
717
718 2016-04-12  Pedro Alves  <palves@redhat.com>
719
720         * exceptions.c (prepare_to_throw_exception): Don't clear the quit
721         flag.
722
723 2016-04-12  Pedro Alves  <palves@redhat.com>
724
725         * event-top.c (command_handler): Don't call clear_quit_flag.
726
727 2016-04-12  Pedro Alves  <palves@redhat.com>
728
729         * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
730         * remote.c (remote_wait_as): Don't call clear_quit_flag.
731
732 2016-04-12  Pedro Alves  <palves@redhat.com>
733
734         * python/python.c: Include "ser-event.h".
735         (gdbpy_event_fds): Delete.
736         (gdbpy_serial_event): New.
737         (gdbpy_run_events): Change prototype.  Use serial_event_clear
738         instead of serial_readchar.
739         (gdbpy_post_event): Use serial_event_set instead of serial_write.
740         (gdbpy_initialize_events): Use make_serial_event instead of
741         serial_pipe.
742
743 2016-04-12  Pedro Alves  <palves@redhat.com>
744
745         * defs.h: Extend QUIT-related comments to mention
746         interruptible_select.
747         (quit_serial_event_set, quit_serial_event_clear): Declare.
748         * event-top.c: Include "ser-event.h" and "gdb_select.h".
749         (quit_serial_event): New global.
750         (async_init_signals): Make quit_serial_event.
751         (quit_serial_event_set, quit_serial_event_clear)
752         (quit_serial_event_fd, interruptible_select): New functions.
753         * extension.c (set_quit_flag): Set the quit serial event.
754         (check_quit_flag): Clear the quit serial event.
755         * gdb_select.h (interruptible_select): New declaration.
756         * guile/scm-ports.c (ioscm_input_waiting): Use
757         interruptible_select instead of gdb_select.
758         * top.c (gdb_readline_no_editing): Likewise.
759         * ui-file.c (stdio_file_read): Likewise.
760
761 2016-04-12  Pedro Alves  <palves@redhat.com>
762
763         * event-loop.c: Include "ser-event.h".
764         (async_signal_handlers_serial_event): New global.
765         (async_signals_handler, initialize_async_signal_handlers): New
766         functions.
767         (mark_async_signal_handler): Set
768         async_signal_handlers_serial_event.
769         (invoke_async_signal_handlers): Clear
770         async_signal_handlers_serial_event.
771         * event-top.c (async_init_signals): Call
772         initialize_async_signal_handlers.
773
774 2016-04-12  Pedro Alves  <palves@redhat.com>
775
776         * Makefile.in (SFILES): Add ser-event.c.
777         (HFILES_NO_SRCDIR): Add ser-event.h.
778         (COMMON_OBS): Add ser-event.o.
779         * ser-event.c, ser-event.h: New files.
780         * serial.c (new_serial): New function, factored out from
781         (serial_fdopen_ops): ... this.
782         (serial_open_ops_1): New function, factored out from
783         (serial_open): ... this.
784         (serial_open_ops): New function.
785         * serial.h (struct serial): Forware declare.
786         (serial_open_ops): New declaration.
787
788 2016-04-12  Pedro Alves  <palves@redhat.com>
789
790         * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
791         Remove references to name.
792         * serial.h (struct serial) <name>: Delete.
793
794 2016-04-12  Pedro Alves  <palves@redhat.com>
795
796         * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
797         Delete.
798         (async_remote_fileio_interrupt): Delete.
799         (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
800         handler.  Instead just always set the ctrl_c flag.
801         (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
802         re-enabling the SIGINT handler.
803         (remote_fileio_func_open, remote_fileio_func_close)
804         (remote_fileio_func_read, remote_fileio_func_write)
805         (remote_fileio_func_lseek, remote_fileio_func_rename)
806         (remote_fileio_func_unlink, remote_fileio_func_stat)
807         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
808         (remote_fileio_func_isatty, remote_fileio_func_system)
809         (remote_fileio_request): Remove references to
810         remote_fio_no_longjmp.
811         (initialize_remote_fileio): Don't create an async signal handler.
812
813 2016-04-12  Pedro Alves  <palves@redhat.com>
814
815         * event-top.c (stdin_event_handler): Call QUIT;
816         (prompt_for_continue): Don't run with immediate_quit set.
817
818 2016-04-12  Pedro Alves  <palves@redhat.com>
819
820         * tui/tui-io.c (tui_redisplay_readline): Check
821         gdb_in_secondary_prompt_p instead of immediate_quit.
822         * tui/tui.c: Include top.h.
823         (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
824         immediate_quit.
825
826 2016-04-12  Pedro Alves  <palves@redhat.com>
827
828         * top.c (read_command_file): Inline command_loop here.
829         (command_loop): Delete.
830
831 2016-04-12  Pedro Alves  <palves@redhat.com>
832
833         * top.c: Include "gdb_select.h".
834         (gdb_readline_no_editing): Wait for input with gdb_select instead
835         of blocking in fgetc.
836         (command_line_input): Don't set immediate_quit.
837
838 2016-04-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
839
840         * value.c (value_next): Make pass-by-reference parameters const-correct.
841         (value_parent): Likewise.
842         (value_enclosing_type): Likewise.
843         (value_lazy): Likewise.
844         (value_stack): Likewise.
845         (value_embedded_offset): Likewise.
846         (value_pointed_to_offset): Likewise.
847         (value_raw_address): Likewise.
848         (deprecated_value_modifiable): Likewise.
849         (value_free_to_mark): Likewise.
850         (value_release_to_mark): Likewise.
851         (internalvar_name): Likewise.
852         (readjust_indirect_value_type): Likewise.
853         (value_initialized): Likewise.
854         * value.h (value_next): Likewise.
855         (value_parent): Likewise.
856         (value_enclosing_type): Likewise.
857         (value_lazy): Likewise.
858         (value_stack): Likewise.
859         (value_embedded_offset): Likewise.
860         (value_pointed_to_offset): Likewise.
861         (value_raw_address): Likewise.
862         (deprecated_value_modifiable): Likewise.
863         (value_free_to_mark): Likewise.
864         (value_release_to_mark): Likewise.
865         (internalvar_name): Likewise.
866         (readjust_indirect_value_type): Likewise.
867         (value_initialized): Likewise.
868
869 2016-04-07  Yao Qi  <yao.qi@linaro.org>
870
871         * record-full.c (record_full_insert_breakpoint): Return
872         early if entry on the address is found in
873         record_full_breakpoints.
874
875 2016-04-07  Yao Qi  <yao.qi@linaro.org>
876
877         * record-full.c (record_full_insert_breakpoint): Set
878         bp_tgt->reqstd_address and bp_tgt->placed_size.
879
880 2016-04-06  Don Breazeal  <donb@codesourcery.com>
881
882         * value.c (value_actual_type): Don't try to get rtti type
883         of the value if it has been optimized out.
884         (value_optimized_out): If a memory access error occurs,
885         just check vaue->optimized_out.
886
887 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
888
889         Revert the previous commit adding unknown_v_replies_ok.
890
891 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
892
893         * remote.c (struct remote_state): New field unknown_v_replies_ok.
894         (packet_config_support): Read it.
895         (remote_start_remote): Set it.
896
897 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
898
899         * remote.c: Revert check-in by a mistake in the previous commit.
900
901 2016-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
902             Pedro Alves  <palves@redhat.com>
903
904         * exec.c (exec_file_locate_attach): Print warning for unsupported
905         target_pid_to_exec_file.
906         * symfile-mem.c (add_vsyscall_page): Remove the "file" command
907         message part.
908
909 2016-04-04  Simon Marchi  <simon.marchi@ericsson.com>
910
911         * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
912         trailing spaces.
913
914 2016-04-01  Artemiy Volkov  <artemiyv@acm.org>
915
916         PR gdb/19820
917         * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
918         the type of BINOP_REPEAT's second operand.
919
920 2016-03-31  Yichao Yu  <yyc1992@gmail.com>
921
922         PR gdb/19858
923         * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
924         got the breakpoint at the right address.
925         (jit_inferior_created): New function.
926         (_initialize_jit): Install jit_inferior_created as
927         inferior_created observer.
928
929 2016-03-31  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
930
931         * NEWS: Mention support for tracepoints on powerpc*-linux.
932
933 2016-03-31  Catalin Udma  <catalin.udma@freescale.com>
934
935         PR python/19743
936         * python/python.c (execute_gdb_command): Use console uiout
937         when executing gdb command.
938         * utils.c (restore_ui_out_closure): New structure.
939         (do_restore_ui_out): New function.
940         (make_cleanup_restore_ui_out): Likewise.
941         * utils.h (make_cleanup_restore_ui_out): Declare.
942
943 2016-03-31  Pedro Alves  <palves@redhat.com>
944
945         * NEWS: Mention that support for "target m32rsdi", "target mips",
946         "target pmon", "target ddb", "target rockhopper", and "target lsi"
947         was removed.
948         * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
949         remote-mips.o.
950         (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
951         * configure.tgt: Remove all references to remote-m32r-sdi.o and
952         remote-mips.o.
953         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
954         function.
955         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
956         declaration.
957         * remote-m32r-sdi.c, remote-mips.c: Delete files.
958         * symfile.c (generic_load, generic_load): Remove comments.
959
960 2016-03-30  Yao Qi  <yao.qi@linaro.org>
961
962         * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
963         0 rather than NULL.
964
965 2016-03-30  Yao Qi  <yao.qi@linaro.org>
966
967         * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
968         (arm_epilogue_frame_this_id): New function.
969         (arm_epilogue_frame_prev_register): New function.
970         (arm_epilogue_frame_sniffer): New function.
971         (arm_epilogue_frame_unwind): New.
972         (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
973
974 2016-03-30  Yao Qi  <yao.qi@linaro.org>
975
976         * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
977         (arm_stack_frame_destroyed_p_1): ... here.  Don't call
978         arm_pc_is_thumb.
979         (arm_stack_frame_destroyed_p): Call
980         thumb_stack_frame_destroyed_p and
981         arm_stack_frame_destroyed_p_1.
982
983 2016-03-30  Doug Evans  <dje@google.com>
984
985         * python/py-utils.c (host_string_to_python_string): New function.
986         * python/python-internal.h (host_string_to_python_string): Declare it.
987         * python/py-*.c (*): Update all calls to
988         PyString_Decode (str, strlen (str), host_charset (), NULL);
989         to use host_string_to_python_string instead.
990
991 2016-03-30  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
992
993         * remote.c (remote_check_symbols): Allocate own buffer for reply.
994
995 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
996
997         * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
998         Use safe_read_memory_integer instead of read_memory_integer.
999
1000 2016-03-29  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1001
1002         * NEWS: Mention support for tracepoints on s390*-linux.
1003
1004 2016-03-29  Don Breazeal  <donb@codesourcery.com>
1005
1006         * gdb/value.c (value_actual_type): Fix formatting issue.
1007
1008 2016-03-23  Yao Qi  <yao.qi@linaro.org>
1009
1010         * gdbarch.sh (software_single_step): Remove comments.
1011         * gdbarch.h: Regenerated.
1012
1013 2016-03-21  Yao Qi  <yao.qi@linaro.org>
1014
1015         * arm-tdep.c (arm_record_media): New.
1016         (arm_record_ld_st_reg_offset): Call arm_record_media.
1017
1018 2016-03-21  Yao Qi  <yao.qi@linaro.org>
1019
1020         * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
1021         more syscalls.
1022
1023 2016-03-18  Yao Qi  <yao.qi@linaro.org>
1024
1025         * sparc-tdep.c (sparc_software_single_step): Make it static.
1026         * sparc-tdep.h (sparc_software_single_step): Remove declaration.
1027
1028 2016-03-18  Yao Qi  <yao.qi@linaro.org>
1029
1030         * spu-tdep.c (spu_software_single_step): Throw error when
1031         target_read_memory fails.
1032
1033 2016-03-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1034
1035         * linux-thread-db.c (check_pid_namespace_match): Extend the message.
1036
1037 2016-03-17  Pedro Alves  <palves@redhat.com>
1038             Don Breazeal  <donb@codesourcery.com>
1039
1040         PR remote/19496
1041         * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
1042         instead of checking the 'non_stop' global.
1043         * remote.c (remote_add_thread): New parameter 'executing'.  Use it
1044         to set the new thread's executing state.
1045         (remote_notice_new_inferior): Rename parameter 'running' to
1046         'executing'.  Always set the thread state to THREAD_RUNNING in
1047         non-stop mode, and to THREAD_STOPPED in all-stop mode.  Pass
1048         EXECUTING to remote_add_thread and notice_new_inferior.
1049         (remote_update_thread_list): Update to pass executing state, not
1050         running state.
1051
1052 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1053
1054         * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
1055         to 374.
1056         * syscalls/s390x-linux.xml: Likewise.
1057
1058 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1059
1060         * linux-record.c (record_mem_at_reg): New helper function.
1061         (record_linux_system_call): Exploit new helper function where
1062         applicable.
1063
1064 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1065
1066         * linux-record.c: Fix whitespace issues; tabify, remove trailing
1067         spaces.
1068
1069 2016-03-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1070
1071         * linux-record.c (record_linux_system_call): Add missing return
1072         statements to handling of pipe and pipe2 syscalls.
1073
1074 2016-03-16  Doug Evans  <dje@google.com>
1075
1076         * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
1077
1078 2016-03-16  Yao Qi  <yao.qi@linaro.org>
1079
1080         * arm-linux-tdep.c (arm_linux_init_abi): Fix
1081         arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
1082         arm_linux_record_tdep.arg3.  Set arm_linux_record_tdep.arg4,
1083         arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
1084         arm_linux_record_tdep.arg7.
1085
1086 2016-03-15  Keith Seitz  <keiths@redhat.com>
1087
1088         PR breakpoints/18303
1089         * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
1090         look for "::" instead of simply ":".
1091         (cp_search_static_and_baseclasses): Return null_block_symbol for
1092         malformed input.
1093         Remove assertions.
1094         * cp-support.c (cp_find_first_component_aux): Do not return
1095         a prefix length for ':' unless the next character is also ':'.
1096
1097 2016-03-15  Doug Evans  <dje@google.com>
1098
1099         * features/aarch64-core.xml (cpsr_flags): New flags type.
1100         (cpsr): Use it.
1101         * features/aarch64.c: Regenerate.
1102
1103 2016-03-15  Doug Evans  <dje@google.com>
1104
1105         * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1106         * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1107         * features/i386/64bit-core.xml (i386_eflags): Ditto.
1108         * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1109         * features/i386/x32-core.xml (i386_eflags): Ditto.
1110
1111 2016-03-15  Doug Evans  <dje@google.com>
1112             Wei-cheng Wang  <cole945@gmail.com>
1113
1114         Extend flags to support multibit and enum bitfields.
1115         * NEWS: Document new features.
1116         * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
1117         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1118         * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
1119         (append_flags_type_field): New function.
1120         (append_flags_type_flag): Call it.
1121         * gdbtypes.h (append_flags_type_field): Declare.
1122         * target-descriptions.c (struct tdesc_type_flag): Delete.
1123         (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
1124         (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
1125         (struct tdesc_type) <u.f>: Delete.
1126         (tdesc_predefined_types): Add "bool".
1127         (tdesc_predefined_type): New function.
1128         (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
1129         Update TDESC_TYPE_FLAGS support.
1130         (tdesc_free_type): Handle TDESC_TYPE_ENUM.  Update TDESC_TYPE_FLAGS.
1131         (tdesc_create_flags): Update.
1132         (tdesc_create_enum): New function.
1133         (tdesc_add_field): Initialize start,end to -1.
1134         (tdesc_add_typed_bitfield): New function.
1135         (tdesc_add_bitfield): Call it.
1136         (tdesc_add_flag): Allow TDESC_TYPE_STRUCT.  Update.
1137         (tdesc_add_enum_value): New function.
1138         (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
1139         TDESC_TYPE_STRUCT.  Handle TDESC_TYPE_ENUM.
1140         * target-descriptions.h (tdesc_create_enum): Declare.
1141         (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
1142         * valprint.c (generic_val_print_enum_1): New function.
1143         (generic_val_print_enum): Call it.
1144         (val_print_type_code_flags): Make static.  Handle multibit bitfields
1145         and enum bitfields.
1146         * valprint.h (val_print_type_code_flags): Delete.
1147         * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
1148         Delete.  All uses removed.
1149         (tdesc_start_enum): New function.
1150         (tdesc_start_field): Handle multibit and enum bitfields.
1151         (tdesc_start_enum_value): New function.
1152         (enum_value_attributes, enum_children, enum_attributes): New static
1153         globals.
1154         (feature_children): Add "enum".
1155         * features/gdb-target.dtd (enum, evalue): New elements.
1156
1157 2016-03-15  Doug Evans  <dje@google.com>
1158
1159         * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
1160         from LONGEST to int.
1161         (struct tdesc_type) <u.f.size>: Ditto.
1162         (tdesc_set_struct_size): Change type of "size" arg from LONGEST
1163         to int.  Add assertion size > 0.
1164         (tdesc_create_flags): Ditto.
1165         * target-descriptions.h (tdesc_set_struct_size): Update.
1166         (tdesc_create_flags): Update.
1167         * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
1168         (MAX_VECTOR_SIZE): New macro.
1169         (tdesc_start_struct): Catch conversion errors from LONGEST to int.
1170         (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
1171
1172 2016-03-15  Doug Evans  <dje@google.com>
1173
1174         * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
1175         TYPE_CODE_FLAGS instead of "field_type", for consistency.
1176         * features/i386/amd64-avx-linux.c: Regenerate.
1177         * features/i386/amd64-avx.c: Regenerate.
1178         * features/i386/amd64-avx512-linux.c: Regenerate.
1179         * features/i386/amd64-avx512.c: Regenerate.
1180         * features/i386/amd64-linux.c: Regenerate.
1181         * features/i386/amd64-mpx-linux.c: Regenerate.
1182         * features/i386/amd64-mpx.c: Regenerate.
1183         * features/i386/amd64.c: Regenerate.
1184         * features/i386/i386-avx-linux.c: Regenerate.
1185         * features/i386/i386-avx.c: Regenerate.
1186         * features/i386/i386-avx512-linux.c: Regenerate.
1187         * features/i386/i386-avx512.c: Regenerate.
1188         * features/i386/i386-linux.c: Regenerate.
1189         * features/i386/i386-mmx-linux.c: Regenerate.
1190         * features/i386/i386-mmx.c: Regenerate.
1191         * features/i386/i386-mpx-linux.c: Regenerate.
1192         * features/i386/i386-mpx.c: Regenerate.
1193         * features/i386/i386.c: Regenerate.
1194         * features/i386/x32-avx-linux.c: Regenerate.
1195         * features/i386/x32-avx.c: Regenerate.
1196         * features/i386/x32-avx512-linux.c: Regenerate.
1197         * features/i386/x32-avx512.c: Regenerate.
1198         * features/i386/x32-linux.c: Regenerate.
1199         * features/i386/x32.c: Regenerate.
1200
1201 2016-03-15  Pedro Alves  <palves@redhat.com>
1202
1203         PR gdb/19676
1204         * linux-thread-db.c (try_thread_db_load_1): Leave
1205         info->td_ta_thr_iter_p NULL iff debugging a live process and we
1206         have /proc access.
1207         (find_new_threads_once): Assert that we have a non-NULL
1208         info->td_ta_thr_iter_p instead of checking whether the target has
1209         execution.
1210
1211 2016-03-15  Pedro Alves  <palves@redhat.com>
1212
1213         PR gdb/19676
1214         * infrun.c (displaced_step_prepare): Also disable displaced
1215         stepping on NOT_SUPPORTED_ERROR.
1216         * linux-tdep.c (linux_displaced_step_location): If reading auxv
1217         fails, throw NOT_SUPPORTED_ERROR instead of generic error.
1218
1219 2016-03-13  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1220
1221         * s390-linux-tdep.c (s390_gen_return_address): New function.
1222         (s390_gdbarch_init): Fill gen_return_address hook.
1223
1224 2016-03-11  Andrew Burgess  <andrew.burgess@embecosm.com>
1225
1226         * symmisc.c (maintenance_info_line_tables): New function.
1227         (maintenance_print_one_line_table): New function.
1228         (_initialize_symmisc): Register 'maint info line-table' command.
1229         * NEWS: Mention new command.
1230
1231 2016-03-11  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1232
1233         * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
1234         (s390_ax_pseudo_register_push_stack): New function.
1235         (s390_gdbarch_init): Fill ax_pseudo_register_collect and
1236         ax_pseudo_register_push_stack hooks.
1237
1238 2016-03-10  Simon Marchi  <simon.marchi@polymtl.ca>
1239
1240         * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
1241         gdb/function/as_string.py.
1242         * python/lib/gdb/function/as_string.py: New file.
1243         * NEWS: Mention the new $_as_string function.
1244
1245 2016-03-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
1246
1247         * target.h: Fix doc string of target_can_use_hardware_watchpoint.
1248
1249 2016-03-09  Pedro Alves  <palves@redhat.com>
1250
1251         * event-top.c (more_to_come): Delete.
1252         (struct readline_input_state): Delete.
1253         (readline_input_state): Delete.
1254         (get_command_line_buffer): New function.
1255         (command_handler): Update comments.  Don't handle NULL commands
1256         here.  Do not execute commented lines.
1257         (command_line_append_input_line): New function.
1258         (handle_line_of_input): New function, partly based on
1259         command_line_handler and command_line_input.
1260         (command_line_handler): Rewrite.
1261         * event-top.h (command_handler): New declaration.
1262         (command_loop): Defer command execution to command_handler.
1263         (command_line_input): Update comments.  Simplify, using struct
1264         buffer and handle_line_of_input.
1265         * top.h (struct buffer): New forward declaration.
1266         (handle_line_of_input): New declaration.
1267
1268 2016-03-09  Pedro Alves  <palves@redhat.com>
1269
1270         * event-top.c (command_line_handler): Use xfree + xstrdup instead
1271         of xrealloc + strcpy.
1272         * main.c (captured_main): Use xstrdup instead of xmalloc plus
1273         manual clear.
1274         * top.c (saved_command_line): Rewrite comment.
1275         (saved_command_line_size): Delete.
1276         (command_line_input): Use xfree + xstrdup instead of xrealloc +
1277         strcpy.
1278         * top.h (saved_command_line_size): Delete declaration.
1279
1280 2016-03-09  Pedro Alves  <palves@redhat.com>
1281
1282         * event-top.c: Include buffer.h.
1283         (gdb_readline_no_editing_callback): Use struct buffer instead
1284         of xrealloc.
1285
1286 2016-03-09  Pedro Alves  <palves@redhat.com>
1287
1288         * common/buffer.h (buffer_grow_char): New function.
1289         * top.c: Include buffer.h.
1290         (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
1291         'prompt'.  Use struct buffer instead of xrealloc.
1292
1293 2016-03-09  Pedro Alves  <palves@redhat.com>
1294
1295         * defs.h (gdb_readline): Delete declaration.
1296         * top.c (gdb_readline): Rename to ...
1297         (gdb_readline_no_editing): ... this, and make static.
1298
1299 2016-03-09  Pedro Alves  <palves@redhat.com>
1300
1301         * utils.c (prompt_for_continue): Update comments.
1302
1303 2016-03-09  Pedro Alves  <palves@redhat.com>
1304
1305         * event-top.c (async_annotation_suffix): Delete.
1306         (top_level_prompt, command_line_handler): Don't use
1307         'async_annotation_suffix' and simplify.
1308         * event-top.h (async_annotation_suffix): Delete declaration.
1309         (init_main): Remove reference to 'async_annotation_suffix'.
1310
1311 2016-03-09  Pedro Alves  <palves@redhat.com>
1312
1313         * event-top.c (gdb_readline2): Rename to ...
1314         (gdb_readline_no_editing_callback): ... this.
1315         (change_line_handler, stdin_event_handler)
1316         (gdb_setup_readline): Adjust.
1317         * event-top.h (gdb_readline2): Rename to ...
1318         (gdb_readline_no_editing_callback): ... this, and move closer to
1319         other readline-related declarations.
1320         * mi/mi-interp.c (mi_interpreter_resume): Adjust.
1321
1322 2016-03-09  Pedro Alves  <palves@redhat.com>
1323
1324         * top.c (window_hook): Delete.
1325         (command_loop): Remove references to window_hook.
1326
1327 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1328
1329         * corefile.c (safe_read_memory_unsigned_integer): New function.
1330         * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
1331         * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
1332
1333 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1334
1335         * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
1336         (rs6000_gen_return_address): New function.
1337         (rs6000_gdbarch_init): Wire in the above.
1338
1339 2016-03-09  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1340
1341         * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
1342         (rs6000_gdbarch_init): Wire in the above.
1343
1344 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1345
1346         * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
1347         instructions that do nothing or are conditional traps.
1348
1349 2016-03-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1350
1351         * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
1352         frame func's PC in info->func before any other failure can occur.
1353         (s390_frame_this_id): Use frame_id_build_unavailable_stack if
1354         info->func has been filled out.
1355
1356 2016-03-09  Pedro Alves  <palves@redhat.com>
1357
1358         * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
1359
1360 2016-03-09  Pedro Alves  <palves@redhat.com>
1361
1362         * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
1363
1364 2016-03-09  Pedro Alves  <palves@redhat.com>
1365
1366         * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
1367         order is BFD_ENDIAN_BIG or if the cris version is unsupported.
1368
1369 2016-03-09  Pedro Alves  <palves@redhat.com>
1370
1371         * doublest.c: Extend comments.
1372         (floatformat_to_doublest, floatformat_from_doublest): Copy the
1373         floatformat's total size, not the host type's size.
1374
1375 2016-03-09  Pedro Alves  <palves@redhat.com>
1376
1377         * doublest.c (floatformat_totalsize_bytes): New function.
1378         (floatformat_from_type): Assert that the type's length is at least
1379         as long as the floatformat's totalsize.
1380         * doublest.h (floatformat_totalsize_bytes): New declaration.
1381         * gdbtypes.c (arch_float_type): Assert that the type's length is
1382         at least as long as the floatformat's totalsize.
1383
1384 2016-03-09  Pedro Alves  <palves@redhat.com>
1385
1386         * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
1387         format to floatformats_ieee_double.
1388
1389 2016-03-07  Pedro Alves  <palves@redhat.com>
1390
1391         * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
1392         before calling bfd_get_flavour.
1393
1394 2016-03-05  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1395
1396         * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
1397         (avr_push_dummy_call): Correct last needed argument register.
1398         Write MSB of argument into register and subsequent bytes into
1399         other registers in decreasing order.
1400
1401 2016-03-04  Yao Qi  <yao.qi@linaro.org>
1402
1403         * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
1404         condition check.  Record the right D register number.
1405
1406 2016-03-04  Yao Qi  <yao.qi@linaro.org>
1407
1408         * arm-tdep.c (arm_record_extension_space): Remove code
1409         printing "Process record does not support".
1410         (arm_record_data_proc_misc_ld_str): Likewise.
1411         (decode_insn): Call arm_record_extension_space if condition
1412         is 0xf.  Call arm_record_unsupported_insn if ret isn't
1413         ARM_RECORD_SUCCESS.  Use 'ret' instead of 'insn_id' to hold
1414         the value of thumb2_record_decode_insn_handler.
1415
1416 2016-03-04  Simon Marchi  <simon.marchi@ericsson.com>
1417
1418         * features/feature_to_c.sh: Print the help when passing no
1419         argument.
1420
1421 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
1422
1423         * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
1424
1425 2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
1426
1427         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
1428
1429 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1430
1431         * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
1432         exception when attempting to access the inferior's backchain.
1433
1434 2016-02-29  Yao Qi  <yao.qi@linaro.org>
1435
1436         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
1437         eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
1438         Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
1439         for aarch64_sys_epoll_create1.
1440
1441 2016-02-29  Yao Qi  <yao.qi@linaro.org>
1442
1443         * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
1444         <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
1445         <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
1446         * linux-record.c (record_linux_system_call): Handle them.
1447
1448 2016-02-28  Iain Buclaw  <ibuclaw@gdcproject.org>
1449
1450         * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
1451         cyclic imports.
1452
1453 2016-02-26  Keith Seitz  <keiths@redhat.com>
1454
1455         * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
1456         to avoid invalid conversion from void *.
1457
1458 2016-02-26  Yao Qi  <yao.qi@linaro.org>
1459
1460         * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
1461         per bit 8.  Check bit 20 instead of bit 4 for VMOV
1462         instruction.  Record D registers for instructions changing
1463         S registers.  Change of the order of length and address
1464         in record_buf_mem array.
1465
1466 2016-02-26  Yao Qi  <yao.qi@linaro.org>
1467
1468         * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
1469         number of Rd.
1470
1471 2016-02-25  Doug Evans  <dje@google.com>
1472
1473         * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
1474         compiler warning.
1475         (recv_long_data): Ditto.
1476
1477 2016-02-25  Simon Marchi  <simon.marchi@ericsson.com>
1478
1479         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
1480         Initialize variables.
1481
1482 2016-02-25  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1483
1484         * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
1485         (ax_reg_mask): Likewise.
1486
1487 2016-02-24  Pedro Alves  <palves@redhat.com>
1488
1489         * linux-nat.c (save_sigtrap) Delete.
1490         (stop_wait_callback): Call save_stop_reason instead of
1491         save_sigtrap.
1492         (check_stopped_by_breakpoint): Rename to ...
1493         (save_stop_reason): ... this.  Bits of save_sigtrap folded here.
1494         Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
1495         GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.  Factor out
1496         common code between the USE_SIGTRAP_SIGINFO and
1497         !USE_SIGTRAP_SIGINFO blocks.
1498         (linux_nat_filter_event): Call save_stop_reason instead of
1499         save_sigtrap.
1500         * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
1501         si_code for MIPS.
1502         * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table.  Add
1503         comments on MIPS behavior.
1504         (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
1505
1506 2016-02-24  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1507
1508         * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
1509         to avoid spurious warnings.
1510
1511 2016-02-24  Gary Benson  <gbenson@redhat.com>
1512
1513         * exec.c (exec_file_locate_attach): Do not attempt to
1514         locate main executable locally if not found in sysroot.
1515
1516 2016-02-24  Joel Brobecker  <brobecker@adacore.com>
1517
1518         GDB 7.11 released.
1519
1520 2016-02-24  Wei-cheng Wang  <cole945@gmail.com>
1521
1522         * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
1523         unavailable PC/SP to build unavailable frame.
1524
1525 2016-02-23  Doug Evans  <dje@google.com>
1526
1527         Extend "skip" command to support -file, -gfile, -function, -rfunction.
1528         * NEWS: Document new features.
1529         * skip.c: #include "fnmatch.h", "gdb_regex.h".
1530         (skiplist_entry) <file>: Renamed from filename.
1531         <function>: Renamed from function_name.
1532         <file_is_glob, function_is_regexp>: New members.
1533         <compiled_function_regexp, compiled_function_regexp_is_valid>:
1534         New members.
1535         (make_skip_entry): New function.
1536         (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
1537         (make_free_skiplist_entry_cleanup): New function.
1538         (skip_file_command): Update.
1539         (skip_function, skip_function_command): Update.
1540         (compile_skip_regexp): New functions.
1541         (skip_command): Add support for new options.
1542         (skip_info): Update.
1543         (skip_file_p, skip_gfile_p): New functions.
1544         (skip_function_p, skip_rfunction_p): New functions.
1545         (function_name_is_marked_for_skip): Update and simplify.
1546         (_initialize_step_skip): Update.
1547         * symtab.c: #include "fnmatch.h".
1548         (compare_glob_filenames_for_search): New function.
1549         * symtab.h (compare_glob_filenames_for_search): Declare.
1550         * utils.c (count_path_elements): New function.
1551         (strip_leading_path_elements): New function.
1552         * utils.h (count_path_elements): Declare.
1553         (strip_leading_path_elements): Declare.
1554
1555 2016-02-23  Simon Marchi  <simon.marchi@ericsson.com>
1556
1557         * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
1558         (thumb_process_displaced_insn): Likewise.
1559         (arm_process_displaced_insn): Adjust calls.
1560
1561 2016-02-23  Yao Qi  <yao.qi@linaro.org>
1562
1563         * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
1564         Remove.
1565         <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
1566         <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
1567         <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
1568         <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
1569         <aarch64_sys_linkat, aarch64_sys_renameat>: New.
1570         <aarch64_sys_faccessat>: New.
1571         <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
1572         <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
1573         <aarch64_sys_newfstatat>: New.
1574         (UNSUPPORTED_SYSCALL_MAP): New macro.
1575         (aarch64_canonicalize_syscall): Add missing syscalls.
1576
1577 2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1578
1579         * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
1580
1581 2016-02-22  Yao Qi  <yao.qi@linaro.org>
1582
1583         * arm-tdep.c: Fix code format issues.
1584
1585 2016-02-21  Iain Buclaw  <ibuclaw@gdcproject.org>
1586
1587         * d-namespace.c (d_lookup_symbol_imports): Remove argument
1588         'search_parents'.  All callers updated.
1589
1590 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1591
1592         * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
1593         (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
1594
1595 2016-02-18  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1596
1597         * NEWS: Add entry for bound violation.
1598         * amd64-linux-tdep.c (amd64_linux_init_abi_common):
1599         Add handler for segmentation fault.
1600         * gdbarch.sh (handle_segmentation_fault): New.
1601         * gdbarch.c: Regenerate.
1602         * gdbarch.h: Regenerate.
1603         * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
1604         (SIG_CODE_BONDARY_FAULT): New define.
1605         (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
1606         * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
1607         * i386-tdep.c (i386_mpx_enabled): Add as external.
1608         * i386-tdep.c (i386_mpx_enabled): Add as external.
1609         * infrun.c (handle_segmentation_fault): New function.
1610         (print_signal_received_reason): Use handle_segmentation_fault.
1611
1612 2016-02-18  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1613
1614         * arch-utils.c (default_guess_tracepoint_registers): New function.
1615         * arch-utils.h (default_guess_tracepoint_registers): New prototype.
1616         * gdbarch.c: Regenerate.
1617         * gdbarch.h: Regenerate.
1618         * gdbarch.sh: Add guess_tracepoint_registers hook.
1619         * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
1620
1621 2016-02-17  Gary Benson  <gbenson@redhat.com>
1622
1623         * exec.c (exec_file_locate_attach): Add missing cleanup.
1624
1625 2016-02-16  Don Breazeal  <donb@codesourcery.com>
1626
1627         PR remote/19496
1628         * remote.c (remove_new_fork_children): Check for pending
1629         fork status in thread_info.suspend.
1630
1631 2016-02-16  Yao Qi  <yao.qi@linaro.org>
1632
1633         * arm-linux-tdep.c (arm_linux_software_single_step): Assign
1634         'old_chain' later.
1635
1636 2016-02-16  Yao Qi  <yao.qi@linaro.org>
1637
1638         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
1639         <syscall_next_pc>: Remove argument PC.  Callers updated.
1640         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
1641         Remove argument PC.  Get pc from regcache_read_pc.
1642         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
1643         argument PC.
1644
1645 2016-02-15  Yao Qi  <yao.qi@linaro.org>
1646
1647         * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
1648
1649 2016-02-12  Yao Qi  <yao.qi@linaro.org>
1650
1651         * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
1652         nextpc according to instruction.
1653
1654 2016-02-12  Yao Qi  <yao.qi@linaro.org>
1655
1656         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
1657         self->ops->fixup if it isn't NULL.
1658         * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
1659         (struct arm_get_next_pcs_ops) <fixup>: New field.
1660         * arch/arm-linux.c: Include common-regcache.h and
1661         arch/arm-get-next-pcs.h.
1662         (arm_linux_get_next_pcs_fixup): New function.
1663         * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
1664         * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
1665         it with arm_linux_get_next_pcs_fixup.
1666         (arm_linux_software_single_step): Move code to
1667         arm_linux_get_next_pcs_fixup.
1668         * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
1669
1670 2016-02-12  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1671
1672         * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
1673         and return NULL.
1674
1675 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1676
1677         * frame.h (skip_tailcall_frames): Update comment.
1678         * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
1679         if only artificial frames are found.  Update comment.
1680         (frame_unwind_caller_id): Handle NULL return.
1681         (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
1682         skip_artificial_frames does not return NULL.
1683         (frame_pop): Add an error if only tailcall frames are found.
1684         * infcmd.c (finish_command): Move skip_tailcall_frames call into
1685         forward-execution case.  Add an error if only tailcall frames are
1686         found.
1687
1688 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1689
1690         * stack.c (frame_info): Check frame_unwind_caller_id.
1691
1692 2016-02-12  Markus Metzger  <markus.t.metzger@intel.com>
1693
1694         * frame.h (skip_tailcall_frames): New.
1695         * frame.c (skip_tailcall_frames): New.
1696         (frame_pop): Call skip_tailcall_frames.
1697         * infcmd.c (finish_command): Call skip_tailcall_frames.
1698
1699 2016-02-11  Pedro Alves  <palves@redhat.com>
1700
1701         * Makefile.in (check-parallel): New rule.
1702
1703 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1704
1705         * arm-tdep.c (arm_skip_prologue): Remove unused variables.
1706         (arm_analyze_prologue): Likewise.
1707         (arm_scan_prologue): Likewise.
1708         (arm_m_exception_prev_register): Likewise.
1709         (arm_copy_block_xfer): Likewise.
1710         (thumb2_copy_block_xfer): Likewise.
1711         (arm_decode_miscellaneous): Likewise.
1712         (arm_decode_ld_st_word_ubyte): Likewise.
1713         (arm_decode_svc_copro): Likewise.
1714         (thumb2_decode_svc_copro): Likewise.
1715         (thumb_copy_16bit_ldr_literal): Likewise.
1716         (thumb_copy_pop_pc_16bit): Likewise.
1717         (decode_thumb_32bit_ld_mem_hints): Likewise.
1718         (arm_show_force_mode): Likewise.
1719         (_initialize_arm_tdep): Likewise.
1720         (arm_record_strx): Likewise.
1721         (arm_record_extension_space): Likewise.
1722         (arm_record_data_proc_misc_ld_str): Likewise.
1723         (arm_record_exreg_ld_st_insn): Likewise.
1724         (arm_record_vfp_data_proc_insn): Likewise.
1725         (arm_record_coproc_data_proc): Likewise.
1726         (thumb_record_misc): Likewise.
1727         (thumb_record_ldm_stm_swi): Likewise.
1728         (thumb2_record_ld_st_dual_ex_tbb): Likewise.
1729         (thumb2_record_ld_mem_hints): Likewise.
1730         (thumb2_record_lmul_lmla_div): Likewise.
1731         (thumb2_record_asimd_struct_ld_st): Likewise.
1732         (arm_process_record): Likewise.
1733
1734 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1735
1736         * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
1737         (ARM displaced stepping support): Remove reference to
1738         arm_displaced_step_copy_insn in comment.
1739         * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
1740         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
1741         reference to arm_displaced_step_copy_insn in comment.
1742
1743 2016-02-11  Simon Marchi  <simon.marchi@ericsson.com>
1744
1745         * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
1746         (thumb_copy_b): Likewise.
1747         (arm_decode_b_bl_ldmstm): Likewise.
1748         (thumb_copy_16bit_ldr_literal): Likewise.
1749         (thumb_copy_pop_pc_16bit): Likewise.
1750
1751 2016-02-11  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1752
1753         * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
1754         than loc->gdbarch.
1755
1756 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1757
1758         * tracefile-tfile.c (trace_tdesc): New static variable.
1759         (tfile_open): Clear trace_tdesc, call target_find_description.
1760         (tfile_interp_line): Recognize tdesc lines.
1761         (tfile_close): Clear trace_tdesc.
1762         (tfile_xfer_partial_features): New function.
1763         (tfile_xfer_partial): Call tfile_xfer_partial_features.
1764         (tfile_append_tdesc_line): New function.
1765
1766 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1767
1768         * ctf.c (ctf_write_tdesc): New function.
1769         (ctf_write_ops): Wire in ctf_write_tdesc.
1770         * tracefile-tfile.c (tfile_write_tdesc): New function.
1771         (tfile_write_ops): Wire in tfile_write_tdesc.
1772         * tracefile.c (trace_save): Call write_tdesc method.
1773         * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
1774         * xml-tdesc.c (target_fetch_description_xml): New function.
1775         * xml-tdesc.h: Add target_fetch_description_xml prototype.
1776
1777 2016-02-10  Simon Marchi  <simon.marchi@ericsson.com>
1778
1779         * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
1780         (arm_decode_dp_misc): Likewise.
1781
1782 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1783
1784         * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
1785         (amd64_init_abi): Fill ax_pseudo_register_collect hook.
1786         * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
1787         misleading comment.
1788         (i386_pseudo_register_write): Ditto.
1789         (i386_ax_pseudo_register_collect): New function.
1790         (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
1791         * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
1792
1793 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1794
1795         * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
1796         instead of gdb order.
1797
1798 2016-02-10  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
1799
1800         * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
1801         check.
1802
1803 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
1804
1805         * NEWS: Create a new section for the next release branch.
1806         Rename the section of the current branch, now that it has
1807         been cut.
1808
1809 2016-02-10  Joel Brobecker  <brobecker@adacore.com>
1810
1811         GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
1812         * version.in: Bump version to 7.11.50.DATE-git.
1813
1814 2016-02-09  Keith Seitz  <keiths@redhat.com>
1815
1816         PR breakpoints/19546
1817         * breakpoint.c (breakpoint_event_location_empty_p): New function.
1818         (update_breakpoints_after_exec, bkpt_re_set): Use this new function
1819         instead of event_location_empty_p.
1820
1821 2016-02-09  Keith Seitz  <keiths@redhat.com>
1822
1823         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
1824         string_to_event_location_basic instead of string_to_event_location.
1825
1826 2016-02-09  Keith Seitz  <keiths@redhat.com>
1827
1828         * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
1829         leading whitespace and use string_to_event_location_basic instead
1830         of new_linespec_location.
1831
1832 2016-02-09  Keith Seitz  <keiths@redhat.com>
1833
1834         PR python/19506
1835         * python/py-breakpoint.c (bppy_init): Use
1836         string_to_event_location_basic instead of new_linespec_location.
1837
1838 2016-02-09  Keith Seitz  <keiths@redhat.com>
1839
1840         * location.c (string_to_explicit_location): Note that "-p" is
1841         reserved for probe locations and return NULL for any input
1842         that starts with that.
1843         (string_to_event_location): Move "legacy" linespec code to ...
1844         (string_to_event_location_basic): ... here.
1845         * location.h (string_to_event_location): Update comment.
1846         (string_to_event_location_basic): New function.
1847
1848 2016-02-09  Simon Marchi  <simon.marchi@ericsson.com>
1849
1850         * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1851         to AC_OUTPUT.  Remove "exit 0" at the end.
1852         * configure: Regenerate.
1853
1854 2016-02-09  Pedro Alves  <palves@redhat.com>
1855
1856         PR breakpoints/19548
1857         * breakpoint.c (create_overlay_event_breakpoint): Don't update
1858         global location list here.
1859         (create_longjmp_master_breakpoint)
1860         (create_std_terminate_master_breakpoint)
1861         (create_exception_master_breakpoint, create_jit_event_breakpoint)
1862         (update_breakpoint_locations):
1863         (breakpoint_re_set): Update global location list after all
1864         breakpoints are re-set.
1865
1866 2016-02-08  Simon Marchi  <simon.marchi@ericsson.com>
1867
1868         * remote.c (remote_register_number_and_offset): Remove unused
1869         variable(s).
1870         (remote_thread_always_alive): Likewise.
1871         (remote_update_thread_list): Likewise.
1872         (process_initial_stop_replies): Likewise.
1873         (remote_start_remote): Likewise.
1874         (remote_check_symbols): Likewise.
1875         (discard_pending_stop_replies): Likewise.
1876         (process_stop_reply): Likewise.
1877         (putpkt_binary): Likewise.
1878         (getpkt): Likewise.
1879         (remote_add_target_side_condition): Likewise.
1880         (remote_insert_breakpoint): Likewise.
1881         (remote_supports_stopped_by_sw_breakpoint): Likewise.
1882         (remote_supports_stopped_by_hw_breakpoint): Likewise.
1883         (remote_xfer_partial): Likewise.
1884         (remote_read_btrace): Likewise.
1885         (remote_async_serial_handler): Likewise.
1886         (remote_thread_events): Likewise.
1887         (_initialize_remote): Likewise.
1888
1889 2016-02-07  Simon Marchi  <simon.marchi@polymtl.ca>
1890
1891         * varobj.h (varobj_delete): Remove dellist parameter, update and
1892         move documentation here.
1893         * varobj.c (struct cpstack, cppush, cppop): Remove.
1894         (delete_variable): Remove resultp (first) parameter.
1895         (delete_variable_1): Likewise.
1896         (varobj_delete): Remove dellist parameter and unused code.
1897         (update_dynamic_varobj_children): Adjust varobj_delete call.
1898         (update_type_if_necessary): Likewise.
1899         (varobj_set_visualizer): Likewise.
1900         (varobj_update): Likewise.
1901         (value_of_root): Likewise.
1902         (varobj_invalidate_iter): Likewise.
1903         * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
1904
1905 2016-02-04  Yao Qi  <yao.qi@linaro.org>
1906
1907         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
1908         0 before handling 'F' and set it back afterwards.
1909
1910 2016-02-02  Simon Marchi  <simon.marchi@ericsson.com>
1911
1912         * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
1913
1914 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1915
1916         * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
1917         New types.
1918         (compat_siginfo): New bound fields added.
1919         (compat_x32_siginfo): New field added.
1920         (cpt_si_addr_lsb): New define.
1921         (compat_siginfo_from_siginfo): Use nat_siginfo.
1922         (siginfo_from_compat_siginfo): Use nat_siginfo.
1923         (compat_x32_siginfo_from_siginfo): Likewise.
1924         (siginfo_from_compat_x32_siginfo): Likewise.
1925
1926 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1927
1928         * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
1929         structure to the siginfo if extra_fields contains
1930         LINUX_SIGINFO_FIELD_ADDR_BND.
1931
1932 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1933
1934         * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
1935         * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
1936         * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
1937         function.
1938         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
1939         x86_linux_get_siginfo_type for the amd64 abi.
1940         * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
1941         function.
1942         (i386_linux_init_abi): Add new function at the i386 ABI
1943         initialization.
1944
1945 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1946
1947         * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
1948         (linux_siginfo_extra_fields): New enum type.
1949         * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
1950         (linux_get_siginfo_type): Use new function.
1951
1952 2016-02-02  Walfred Tedeschi  <walfred.tedeschi@intel.com>
1953
1954         * nat/amd64-linux-siginfo.c: New file.
1955         * nat/amd64-linux-siginfo.h: New file.
1956         * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
1957         (amd64-linux-siginfo.o): New rule.
1958         * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
1959         * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
1960         (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
1961         (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
1962         (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
1963         (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
1964         (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
1965         (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
1966
1967 2016-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
1968
1969         * value.c (max_value_size): New variable.
1970         (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
1971         (set_max_value_size): New function.
1972         (show_max_value_size): New function.
1973         (check_type_length_before_alloc): New function.
1974         (allocate_value_contents): Call check_type_length_before_alloc.
1975         (set_value_enclosing_type): Likewise.
1976         (_initialize_values): Add set/show handler for max-value-size.
1977         * NEWS: Mention new set/show command.
1978
1979 2016-01-31  Simon Marchi  <simon.marchi@polymtl.ca>
1980
1981         * varobj.h (struct varobj): Fix typos in comments.
1982         (struct lang_varobj_ops): Likewise.
1983         * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
1984         (varobj_create): Move misplaced comment.
1985
1986 2016-01-29  Simon Marchi  <simon.marchi@ericsson.com>
1987
1988         * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
1989         to for include additional lines.
1990         * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
1991
1992 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
1993
1994         * gnulib/import/Makefile.am: Regenerate.
1995         * gnulib/import/Makefile.in: Regenerate.
1996         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1997         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
1998
1999 2016-01-28  Simon Marchi  <simon.marchi@ericsson.com>
2000
2001         * remote.c (skip_to_semicolon): Remove.
2002         (remote_parse_stop_reply): Use strchrnul instead of
2003         skip_to_semicolon.
2004         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2005         strchrnul.
2006         * gnulib/aclocal.m4: Regenerate.
2007         * gnulib/config.in: Regenerate.
2008         * gnulib/configure: Regenerate.
2009         * gnulib/import/Makefile.am: Regenerate.
2010         * gnulib/import/Makefile.in: Regenerate.
2011         * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2012         * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2013         * gnulib/import/m4/rawmemchr.m4: New file.
2014         * gnulib/import/m4/strchrnul.m4: New file.
2015         * gnulib/import/rawmemchr.c: New file.
2016         * gnulib/import/rawmemchr.valgrind: New file.
2017         * gnulib/import/strchrnul.c: New file.
2018         * gnulib/import/strchrnul.valgrind: New file.
2019
2020 2016-01-28  Yao Qi  <yao.qi@linaro.org>
2021
2022         * breakpoint.c (build_target_command_list): Don't call continue
2023         if aexpr is NULL.
2024         (build_target_condition_list): Likewise.
2025
2026 2016-01-27  Kevin Buettner  <kevinb@redhat.com>
2027
2028         * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
2029         bytes as aggregates.
2030
2031 2016-01-27  Joel Brobecker  <brobecker@adacore.com>
2032
2033         * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
2034         Linespec Maintainers.
2035
2036 2016-01-26  Simon Marchi  <simon.marchi@ericsson.com>
2037
2038         * common/common-utils.c (skip_spaces): Fix comment.
2039         (skip_to_space_const): Likewise.
2040
2041 2016-01-25  Yao Qi  <yao.qi@linaro.org>
2042
2043         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
2044         Remove argument pc.  Get pc by regcache_read_pc.  Callers updated.
2045         (arm_deal_with_atomic_sequence_raw): Likewise.
2046         (thumb_get_next_pcs_raw): Likewise.
2047         (arm_get_next_pcs_raw): Likewise.
2048         (arm_get_next_pcs): Remove argument pc.  Callers updated.
2049         * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
2050
2051 2016-01-25  Mark Wielaard  <mjw@redhat.com>
2052
2053         * ada-lang.c (ada_evaluate_subexp): Add proper else block.
2054         * c-typeprint.c (c_type_print_base): Fix misleading indentation of
2055         if statement.
2056         * inflow.c (child_terminal_ours_1): Fix misleading indentation of
2057         statement block by introducing an else.
2058         * linux-record.c (record_linux_sockaddr): Fix misleading indentation
2059         of return statements.
2060         (record_linux_msghdr): Likewise.
2061
2062 2016-01-25  Pedro Alves  <palves@redhat.com>
2063
2064         PR threads/19461
2065         * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
2066         parent/child running states.
2067
2068 2016-01-25  Pedro Alves  <palves@redhat.com>
2069
2070         PR gdb/19494
2071         * linux-nat.c (kill_one_lwp): New, factored out from ...
2072         (kill_callback): ... this.
2073         (kill_wait_callback): New, factored out from ...
2074         (kill_wait_one_lwp): ... this.
2075         (kill_unfollowed_fork_children): New function.
2076         (linux_nat_kill): Use it.
2077
2078 2016-01-22  John Baldwin  <jhb@FreeBSD.org>
2079
2080         * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
2081
2082 2016-01-22  Yao Qi  <yao.qi@linaro.org>
2083
2084         * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
2085         instead of warning.
2086         (store_fpregs, fetch_regs, store_regs): Likewise.
2087         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2088         (fetch_vfp_regs, store_vfp_regs): Likewise.
2089
2090 2016-01-21  Doug Evans  <dje@google.com>
2091
2092         * breakpoint.c (init_breakpoint_sal): Add comment.
2093
2094 2016-01-21  Marcin KoÅ›cielnicki  <koriakin@0x04.net>
2095
2096         * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
2097
2098 2016-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2099
2100         * disasm.c (maybe_add_dis_line_entry): Rename to...
2101         (add_dis_line_entry): ...this, and update header comment.
2102         (do_mixed_source_and_assembly): Now use add_dis_line_entry.
2103
2104 2016-01-21  Pedro Alves  <palves@redhat.com>
2105
2106         * Makefile.in (COMPILER_CFLAGS): New.
2107         (CXXFLAGS): Get it from configure.
2108         (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
2109         instead of CFLAGS.
2110         * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
2111         COMPILER_CFLAGS.
2112         * configure: Regenerate.
2113
2114 2016-01-21  Joel Brobecker  <brobecker@adacore.com>
2115
2116         * location.h (new_address_location): Add new parameters
2117         "addr_string" and "addr_string_len".
2118         (get_address_string_location): Add declaration.
2119         * location.c (new_address_location): Add new parameters
2120         "addr_string" and "addr_string_len".  If not NULL, store
2121         a copy of the addr_string in the new location as well.
2122         (get_address_string_location): New function.
2123         (string_to_event_location): Update call to new_address_location.
2124         * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
2125         Save the event location in the parser's state before
2126         passing it to convert_address_location_to_sals.
2127         * breakpoint.c (create_thread_event_breakpoint): Update call
2128         to new_address_location.
2129         (init_breakpoint_sal): Get the event location's string, if any,
2130         and use it to update call to new_address_location.
2131         * python/py-finishbreakpoint.c (bpfinishpy_init):
2132         Update call to new_address_location.
2133         * spu-tdep.c (spu_catch_start): Likewise.
2134
2135         * config/djgpp/fnchange.lst: Add entries for
2136         gdb/testsuite/gdb.base/break-fun-addr1.c and
2137         gdb/testsuite/gdb.base/break-fun-addr2.c.
2138
2139 2016-01-21  Yao Qi  <yao.qi@linaro.org>
2140
2141         * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
2142         is_thumb and set it according to CPSR saved on the stack.
2143         (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
2144         arm_linux_sigreturn_next_pc.
2145
2146 2016-01-20  Simon Marchi  <simon.marchi@polymtl.ca>
2147
2148         * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
2149         Fix enumerators sort key function.
2150
2151 2016-01-20  Joel Brobecker  <brobecker@adacore.com>
2152
2153         * printcmd.c (print_scalar_formatted): Move binary operator from
2154         end of line to beginning of next line.  Adjust formatting
2155         accordingly.
2156
2157 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2158
2159         * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
2160         "len" with sysctl.
2161
2162 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2163
2164         * fbsd-tdep.c (find_stop_signal): Remove.
2165         (struct fbsd_collect_regset_section_cb) <lwp>: New field.
2166         <stop_signal>: New field.
2167         <abort_iteration>: New field.
2168         (fbsd_collect_regset_section_cb): Use new fields.
2169         (fbsd_collect_thread_registers): New function.
2170         (struct fbsd_corefile_thread_data): New structure.
2171         (fbsd_corefile_thread): New function.
2172         (fbsd_make_corefile_notes): Use new function to dump notes for each
2173         non-exited thread in a process.
2174
2175 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2176
2177         * configure.ac: Check for support for LWP names on FreeBSD.
2178         * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
2179         [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
2180         (fbsd_fetch_kinfo_proc): Move function earlier.
2181         [PT_LWPINFO] (fbsd_thread_alive): New function.
2182         [PT_LWPINFO] (fbsd_pid_to_str): New function.
2183         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
2184         [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
2185         [PT_LWPINFO] (fbsd_add_threads): New function.
2186         [PT_LWPINFO] (fbsd_update_thread_list): New function.
2187         [PT_LWPINFO] New variable super_resume.
2188         [PT_LWPINFO] (resume_one_thread_cb): New function.
2189         [PT_LWPINFO] (resume_all_threads_cb): New function.
2190         [PT_LWPINFO] (fbsd_resume): New function.
2191         (fbsd_remember_child): Save full ptid instead of plain pid.
2192         (fbsd_is_child_pending): Return ptid of saved child process.
2193         (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
2194         first stop.
2195         [PT_LWP_EVENTS] Handle LWP events.
2196         [TDP_RFPPWAIT] Include LWP in child ptid.
2197         (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
2198         (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
2199         Add threads for existing processes.
2200         (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
2201         "fbsd_thread_alive".
2202         Set "to_pid_to_str" to "fbsd_pid_to_str".
2203         [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
2204         "fbsd_thread_name".
2205         [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
2206         Set "to_has_thread_control" to "tc_schedlock".
2207         Set "to_resume" to "fbsd_resume".
2208         (_initialize_fbsd_nat): New function.
2209         * configure: Regenerate.
2210         * config.in: Regenerate.
2211
2212 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2213
2214         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2215         get_ptrace_pid.
2216         (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
2217         (amd64bsd_dr_get): Use get_ptrace_pid.
2218         (amd64bsd_dr_set): Use get_ptrace_pid.
2219         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
2220         (i386bsd_store_inferior_registers): Use get_ptrace_pid.
2221         (i386bsd_dr_get): Use get_ptrace_pid.
2222         (i386bsd_dr_set): Use get_ptrace_pid.
2223         * inf-ptrace.c (get_ptrace_pid): Export.
2224         * inf-ptrace.h (get_ptrace_pid): Declare.
2225         * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
2226         (ppcfbsd_store_inferior_registers): Use lwp id.
2227
2228 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2229
2230         * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
2231         (fbsd_core_thread_name): New function.
2232         (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
2233         Add "core_thread_name" gdbarch method.
2234
2235 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2236
2237         * corelow.c (core_thread_name): New function.
2238         (init_core_ops): Use "core_thread_name" for the "to_thread_name"
2239         target op.
2240         * gdbarch.sh (core_thread_name): New gdbarch callback.
2241         * gdbarch.h: Re-generate.
2242         * gdbarch.c: Re-generate.
2243
2244 2016-01-19  Simon Marchi  <simon.marchi@polymtl.ca>
2245
2246         * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
2247         convert gdb.Value to integer type using int().
2248
2249 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
2250
2251         * configure.ac: Include <sys/types.h when checking for "r_fs" in
2252         "struct reg".
2253         * configure: Regenerate.
2254
2255 2016-01-19  Pedro Alves  <palves@redhat.com>
2256
2257         * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
2258         * break-catch-throw.c (re_set_exception_catchpoint): Pass the
2259         current program space down to linespec decoding and breakpoint
2260         location updating.
2261         * breakpoint.c (parse_breakpoint_sals): Adjust calls to
2262         decode_line_full.
2263         (until_break_command): Adjust calls to decode_line_1.
2264         (base_breakpoint_decode_location, bkpt_decode_location): Add
2265         'search_pspace' parameter.  Pass it along.
2266         (bkpt_probe_create_sals_from_location): Adjust calls to
2267         parse_probes.
2268         (tracepoint_decode_location, tracepoint_probe_decode_location)
2269         (strace_marker_decode_location): Add 'search_pspace' parameter.
2270         Pass it along.
2271         (all_locations_are_pending): Rewrite to take a breakpoint and
2272         program space as arguments instead.
2273         (hoist_existing_locations): New function.
2274         (update_breakpoint_locations): Add 'filter_pspace' parameter.  Use
2275         hoist_existing_locations instead of always removing all locations,
2276         and adjust to all_locations_are_pending change.
2277         (location_to_sals): Add 'search_pspace' parameter.  Pass it along.
2278         Don't disable the breakpoint if there are other locations in
2279         another program space.
2280         (breakpoint_re_set_default): Adjust to pass down the current
2281         program space as filter program space.
2282         (decode_location_default): Add 'search_pspace' parameter and pass
2283         it along.
2284         (prepare_re_set_context): Don't switch program space here.
2285         (breakpoint_re_set): Use save_current_space_and_thread instead of
2286         save_current_program_space.
2287         * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
2288         'search_pspace' parameter.
2289         (update_breakpoint_locations): Add 'filter_pspace' parameter.
2290         * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
2291         decode_line_1.
2292         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
2293         program space as filter program space.
2294         * linespec.c (struct linespec_state) <search_pspace>: New field.
2295         (create_sals_line_offset, convert_explicit_location_to_sals)
2296         (parse_linespec): Pass the search program space down.
2297         (linespec_state_constructor): Add 'search_pspace' parameter.
2298         Store it.
2299         (linespec_parser_new): Add 'search_pspace' parameter and pass it
2300         along.
2301         (linespec_lex_to_end): Adjust.
2302         (decode_line_full, decode_line_1): Add 'search_pspace' parameter
2303         and pass it along.
2304         (decode_line_with_last_displayed): Adjust.
2305         (collect_symtabs_from_filename, symtabs_from_filename): New
2306         'search_pspace' parameter.  Use it.
2307         (find_function_symbols): Pass the search program space down.
2308         * linespec.h (decode_line_1, decode_line_full): Add
2309         'search_pspace' parameter.
2310         * probe.c (parse_probes_in_pspace): New function, factored out
2311         from ...
2312         (parse_probes): ... this.  Add 'search_pspace' parameter and use
2313         it.
2314         * probe.h (parse_probes): Add pspace' parameter.
2315         * python/python.c (gdbpy_decode_line): Adjust.
2316         * tracepoint.c (scope_info): Adjust.
2317
2318 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2319
2320         * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
2321         instruction support.
2322         (micromips_next_pc): Likewise.
2323         (micromips_scan_prologue): Likewise.
2324         (micromips_deal_with_atomic_sequence): Likewise.
2325         (micromips_stack_frame_destroyed_p): Likewise.
2326         (mips_breakpoint_from_pc): Likewise.
2327
2328 2016-01-18  Maciej W. Rozycki  <macro@imgtec.com>
2329
2330         * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
2331         unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
2332
2333 2016-01-18  Pedro Alves  <palves@redhat.com>
2334
2335         * NEWS: Mention that GDB now displays the ID and name of the
2336         thread that hit a breakpoint or received a signal.
2337         * break-catch-sig.c (signal_catchpoint_print_it): Use
2338         maybe_print_thread_hit_breakpoint.
2339         * break-catch-syscall.c (print_it_catch_syscall): Likewise.
2340         * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
2341         * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
2342         (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
2343         (print_it_catch_exec, print_it_ranged_breakpoint)
2344         (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
2345         Use maybe_print_thread_hit_breakpoint.
2346         * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
2347         * gdbthread.h (show_thread_that_caused_stop): Declare.
2348         * infrun.c (print_signal_received_reason): Print which thread
2349         received signal.
2350         * thread.c (show_thread_that_caused_stop): New function.
2351
2352 2016-01-18  Gary Benson  <gbenson@redhat.com>
2353
2354         * nat/linux-namespaces.c (do_fork): New function.
2355         (linux_mntns_get_helper): Use the above.
2356
2357 2016-01-17  Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>  (tiny change)
2358
2359         Pushed by Joel Brobecker  <brobecker@adacore.com>.
2360         PR gdb/19208
2361         * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
2362         if the function has no name.
2363
2364 2016-01-15  Sandra Loosemore  <sandra@codesourcery.com>
2365
2366         * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
2367         Conditionalize for Windows host.
2368         (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
2369         (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
2370         (phony_iconv_open): Handle both UTF-32 endiannesses.
2371         (phony_iconv): Likewise.  Check for output overflow and clean up
2372         out-of-input cases.  Correct adjustment to input buffer pointer.
2373         (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
2374         phony_iconv_open.
2375
2376 2016-01-15  Pedro Alves  <palves@redhat.com>
2377
2378         * NEWS: Mention star wildcard ranges.
2379         * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
2380         (number_range_setup_range): New function.
2381         * cli/cli-utils.h (number_range_setup_range): New declaration.
2382         * thread.c (thread_apply_command): Support star TID ranges.
2383         * tid-parse.c (tid_range_parser_finished)
2384         (tid_range_parser_string, tid_range_parser_skip)
2385         (get_tid_or_range, get_tid_or_range): Handle
2386         TID_RANGE_STATE_STAR_RANGE.
2387         (tid_range_parser_star_range): New function.
2388         * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
2389         New value.
2390         (tid_range_parser_star_range): New declaration.
2391
2392 2016-01-15  Pedro Alves  <palves@redhat.com>
2393
2394         * thread.c (thread_apply_command): Use the tid range parser to
2395         advance past the thread ID list.
2396         * tid-parse.c (get_positive_number_trailer): New function.
2397         (parse_thread_id): Use it.
2398         (get_tid_or_range): Use it.  Return 0 instead of throwing invalid
2399         thread ID error.
2400         (get_tid_or_range): Detect negative values.  Return 0 instead of
2401         throwing invalid thread ID error.
2402
2403 2016-01-14  Yao Qi  <yao.qi@linaro.org>
2404
2405         * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2406         Declare.
2407         (arm_linux_get_next_pcs_ops): Install
2408         arm_linux_get_next_pcs_syscall_next_pc.
2409         (arm_linux_syscall_next_pc): Change to ...
2410         (arm_linux_get_next_pcs_syscall_next_pc): ... it.
2411         (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
2412         * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
2413         (arm_get_next_pcs_syscall_next_pc): Make it static.  Don't
2414         call tdep->syscall_next_pc.
2415         * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
2416         (arm_get_next_pcs_syscall_next_pc): Remove.
2417
2418 2016-01-14  Yao Qi  <yao.qi@linaro.org>
2419
2420         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
2421         * thread.c (do_captured_thread_select): Cast to const char *.
2422
2423 2016-01-14  Yao Qi  <yao.qi@linaro.org>
2424
2425         * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
2426         argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
2427         (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
2428         instead.
2429         * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
2430         <arm_thumb2_breakpoint>: Remove.
2431         <has_thumb2_breakpoint>: New field.
2432         (arm_get_next_pcs_ctor): Update declaration.
2433         * arm-linux-tdep.c (arm_linux_software_single_step): Pass
2434         1 to arm_get_next_pcs_ctor.
2435         * arm-tdep.c (arm_software_single_step): Pass 0 to
2436         arm_get_next_pcs_ctor.
2437
2438 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
2439
2440         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
2441
2442 2016-01-13  Yao Qi  <yao.qi@linaro.org>
2443
2444         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
2445         byte_order_for_code to read instruction.
2446
2447 2016-01-13  Pedro Alves  <palves@redhat.com>
2448
2449         * NEWS: Mention $_gthread.
2450         * gdbthread.h (struct thread_info) <global_num>: Mention
2451         $_gthread.
2452         * thread.c (thread_num_make_value_helper): New function.
2453         (thread_id_make_value): Delete.
2454         (thread_id_per_inf_num_make_value, global_thread_id_make_value):
2455         New.
2456         (thread_funcs): Adjust.
2457         (gthread_funcs): New.
2458         (_initialize_thread): Register $_gthread variable.
2459
2460 2016-01-13  Pedro Alves  <palves@redhat.com>
2461
2462         * NEWS: Mention "info threads -gid".
2463         * gdbthread.h (struct thread_info) <global_num>: Mention "info
2464         threads -gid".
2465         * thread.c (info_threads_command): Handle "-gid".
2466         (_initialize_thread): Adjust "info threads" help string to mention
2467         -gid.
2468
2469 2016-01-13  Pedro Alves  <palves@redhat.com>
2470
2471         * NEWS: Mention InferiorThread.global_num.
2472         * python/py-infthread.c (thpy_get_global_num): New function.
2473         (thread_object_getset): Register "global_num".
2474
2475 2016-01-13  Pedro Alves  <palves@redhat.com>
2476
2477         * NEWS: Mention that thread IDs are now per inferior and global
2478         thread IDs.
2479         * Makefile.in (SFILES): Add tid-parse.c.
2480         (COMMON_OBS): Add tid-parse.o.
2481         (HFILES_NO_SRCDIR): Add tid-parse.h.
2482         * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
2483         * breakpoint.c (insert_breakpoint_locations)
2484         (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
2485         (print_one_breakpoint_location, set_longjmp_breakpoint)
2486         (check_longjmp_breakpoint_for_call_dummy)
2487         (set_momentary_breakpoint): Adjust to use global IDs.
2488         (find_condition_and_thread, watch_command_1): Use parse_thread_id.
2489         (until_break_command, longjmp_bkpt_dtor)
2490         (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
2491         to use global IDs.
2492         * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
2493         ptid_to_global_thread_id.
2494         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
2495         * gdbthread.h (struct thread_info): Rename field 'num' to
2496         'global_num.  Add new fields 'per_inf_num' and 'inf'.
2497         (thread_id_to_pid): Rename thread_id_to_pid to
2498         global_thread_id_to_ptid.
2499         (pid_to_thread_id): Rename to ...
2500         (ptid_to_global_thread_id): ... this.
2501         (valid_thread_id): Rename to ...
2502         (valid_global_thread_id): ... this.
2503         (find_thread_id): Rename to ...
2504         (find_thread_global_id): ... this.
2505         (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
2506         (print_thread_info): Add comment.
2507         * tid-parse.h: New file.
2508         * tid-parse.c: New file.
2509         * infcmd.c (step_command_fsm_prepare)
2510         (step_command_fsm_should_stop): Adjust to use the global thread
2511         ID.
2512         (until_next_command, until_next_command)
2513         (finish_command_fsm_should_stop): Adjust to use the global thread
2514         ID.
2515         (attach_post_wait): Adjust to check the inferior number too.
2516         * inferior.h (struct inferior) <highest_thread_num>: New field.
2517         * infrun.c (handle_signal_stop)
2518         (insert_exception_resume_breakpoint)
2519         (insert_exception_resume_from_probe): Adjust to use the global
2520         thread ID.
2521         * record-btrace.c (record_btrace_open): Use global thread IDs.
2522         * remote.c (process_initial_stop_replies): Also consider the
2523         inferior number.
2524         * target.c (target_pre_inferior): Clear the inferior's highest
2525         thread num.
2526         * thread.c (clear_thread_inferior_resources): Adjust to use the
2527         global thread ID.
2528         (new_thread): New inferior parameter.  Adjust to use it.  Set both
2529         the thread's global ID and the thread's per-inferior ID.
2530         (add_thread_silent): Adjust.
2531         (find_thread_global_id): New.
2532         (find_thread_id): Make static.  Adjust to rename.
2533         (valid_thread_id): Rename to ...
2534         (valid_global_thread_id): ... this.
2535         (pid_to_thread_id): Rename to ...
2536         (ptid_to_global_thread_id): ... this.
2537         (thread_id_to_pid): Rename to ...
2538         (global_thread_id_to_ptid): ... this.  Adjust.
2539         (first_thread_of_process): Adjust.
2540         (do_captured_list_thread_ids): Adjust to use global thread IDs.
2541         (should_print_thread): New function.
2542         (print_thread_info): Rename to ...
2543         (print_thread_info_1): ... this, and add new show_global_ids
2544         parameter.  Handle it.  Iterate over inferiors.
2545         (print_thread_info): Reimplement as wrapper around
2546         print_thread_info_1.
2547         (show_inferior_qualified_tids): New function.
2548         (print_thread_id): Use it.
2549         (tp_array_compar): Compare inferior numbers too.
2550         (thread_apply_command): Use tid_range_parser.
2551         (do_captured_thread_select): Use parse_thread_id.
2552         (thread_id_make_value): Adjust.
2553         (_initialize_thread): Adjust "info threads" help string.
2554         * varobj.c (struct varobj_root): Update comment.
2555         (varobj_create): Adjust to use global thread IDs.
2556         (value_of_root_1): Adjust to use global_thread_id_to_ptid.
2557         * windows-tdep.c (display_tib): No longer accept an argument.
2558         * cli/cli-utils.c (get_number_trailer): Make extern.
2559         * cli/cli-utils.h (get_number_trailer): Declare.
2560         (get_number_const): Adjust documentation.
2561         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
2562         thread IDs.
2563         * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
2564         (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
2565         * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
2566         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
2567         Likewise.
2568         * python/py-breakpoint.c (bppy_set_thread): Likewise.
2569         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2570         * python/py-infthread.c (thpy_get_num): Add comment and return the
2571         per-inferior thread ID.
2572         (thread_object_getset): Update comment of "num".
2573
2574 2016-01-13  Pedro Alves  <palves@redhat.com>
2575
2576         * breakpoint.c (remove_threaded_breakpoints)
2577         (print_one_breakpoint_location): Use print_thread_id.
2578         * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2579         (btrace_fetch, btrace_clear): Use print_thread_id.
2580         * common/print-utils.c (CELLSIZE): Delete.
2581         (get_cell): Rename to ...
2582         (get_print_cell): ... this and made extern.  Adjust call callers.
2583         Adjust to use PRINT_CELL_SIZE.
2584         * common/print-utils.h (get_print_cell): Declare.
2585         (PRINT_CELL_SIZE): New.
2586         * gdbthread.h (print_thread_id): Declare.
2587         * infcmd.c (signal_command): Use print_thread_id.
2588         * inferior.c (print_inferior): Use print_thread_id.
2589         * infrun.c (handle_signal_stop)
2590         (insert_exception_resume_breakpoint)
2591         (insert_exception_resume_from_probe)
2592         (print_signal_received_reason): Use print_thread_id.
2593         * record-btrace.c (record_btrace_info)
2594         (record_btrace_resume_thread, record_btrace_cancel_resume)
2595         (record_btrace_step_thread, record_btrace_wait): Use
2596         print_thread_id.
2597         * thread.c (thread_apply_all_command): Use print_thread_id.
2598         (print_thread_id): New function.
2599         (thread_apply_command): Use print_thread_id.
2600         (thread_command, thread_find_command, do_captured_thread_select):
2601         Use print_thread_id.
2602
2603 2016-01-13  Pedro Alves  <palves@redhat.com>
2604
2605         * NEWS: Mention InferiorThread.inferior.
2606         * python/py-infthread.c (thpy_get_inferior): New.
2607         (thread_object_getset): Register "inferior".
2608
2609 2016-01-13  Pedro Alves  <palves@redhat.com>
2610
2611         * NEWS: Mention $_inferior.
2612         * inferior.c (inferior_id_make_value): New.
2613         (inferior_funcs): New.
2614         (_initialize_inferior): Create $_inferior variable.
2615
2616 2016-01-13  Pedro Alves  <palves@redhat.com>
2617
2618         PR breakpoints/19388
2619         * frame.c (get_current_frame): Use validate_registers_access.
2620         * gdbthread.h (validate_registers_access): Declare.
2621         * infrun.c (validate_siginfo_access): Delete.
2622         (siginfo_value_read, siginfo_value_write): Use
2623         validate_registers_access.
2624         * thread.c (validate_registers_access): New function.
2625
2626 2016-01-12  Josh Stone  <jistone@redhat.com>
2627             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2628
2629         * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
2630         syscall_entry and syscall_return stop reasons.  Mention GDB
2631         support for remote catch syscall.
2632         * remote.c (PACKET_QCatchSyscalls): New enum.
2633         (remote_set_syscall_catchpoint): New function.
2634         (remote_protocol_features): New element for QCatchSyscalls.
2635         (remote_parse_stop_reply): Parse syscall_entry/return stops.
2636         (init_remote_ops): Install remote_set_syscall_catchpoint.
2637         (_initialize_remote): Config QCatchSyscalls.
2638         * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
2639
2640 2016-01-12  Yao Qi  <yao.qi@linaro.org>
2641
2642         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
2643         to gdb_byte * and pass to linux_fork_to_function.
2644
2645 2016-01-12  Yao Qi  <yao.qi@linaro.org>
2646
2647         * nat/linux-ptrace.c (linux_fork_to_function): Change type
2648         of argument 'function'.
2649         (linux_grandchild_function): Change return type to 'int'.
2650         Change child_stack's type to 'void *'.
2651         (linux_child_function): Likewise.
2652
2653 2016-01-12  Pedro Alves  <palves@redhat.com>
2654
2655         Remove use of the registered trademark symbol throughout.
2656
2657 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
2658
2659         * reply_mig_hack.awk: Rewrite one regular expression.
2660
2661 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
2662
2663         * acinclude.m4: Include new warning.m4 file.
2664         * configure: Regenerated.
2665         * configure.ac: Move all warning logic ...
2666         * warning.m4: ... here.
2667
2668 2016-01-08  Yao Qi  <yao.qi@linaro.org>
2669
2670         * extension.c: Include target.h.
2671         (set_active_ext_lang): Only call install_gdb_sigint_handler,
2672         check_quit_flag, and set_quit_flag if target_terminal_is_ours
2673         returns false.
2674         (restore_active_ext_lang): Likewise.
2675         * target.c (target_terminal_is_ours): New function.
2676         * target.h (target_terminal_is_ours): Declare.
2677
2678 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
2679
2680         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
2681         to `err' in the little-endian leg.
2682
2683 2016-01-06  Yao Qi  <yao.qi@linaro.org>
2684
2685         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
2686         lines below.
2687         (thumb_get_next_pcs_raw): Make it static.
2688         (arm_get_next_pcs_raw): Likewise.
2689         * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
2690         declaration.
2691         (arm_get_next_pcs_raw): Likewise.
2692
2693 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2694
2695         * version.in: Change cvs to git.
2696
2697 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
2698
2699         * configure.tgt (score-*-*): Delete gdb_sim assignment.
2700
2701 2016-01-05  Pedro Alves  <palves@redhat.com>
2702
2703         PR sim/13418
2704         * configure.ac: Define WITH_PPC_SIM when linking in the sim and
2705         the target is powerpc*.
2706         * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
2707         of WITH_SIM.
2708         * configure: Regenerate.
2709         * config.in: Regenerate.
2710
2711 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
2712
2713         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
2714
2715 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
2716
2717         * configure.tgt (powerpc*-*-*): Delete test call and
2718         always assign gdb_sim.
2719
2720 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2721
2722         Update year range in copyright notice of all files.
2723
2724 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2725
2726         * top.c (print_gdb_version): Change copyright year in version
2727         message.
2728
2729 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
2730
2731         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
2732
2733 For older changes see ChangeLog-2015.
2734 \f
2735 Local Variables:
2736 mode: change-log
2737 left-margin: 8
2738 fill-column: 74
2739 version-control: never
2740 coding: utf-8
2741 End: