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