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